create-storybook 9.1.0-beta.0 → 9.1.0-beta.2
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.
|
@@ -687,7 +687,7 @@ to your top-level package.json.
|
|
|
687
687
|
`);},this),this.showProgress();}};log2._format=function(msg,style){if(stream3){var output="";if(this.useColor()){style=style||{};var settings2=[];style.fg&&settings2.push(style.fg),style.bg&&settings2.push("bg"+style.bg[0].toUpperCase()+style.bg.slice(1)),style.bold&&settings2.push("bold"),style.underline&&settings2.push("underline"),style.inverse&&settings2.push("inverse"),settings2.length&&(output+=consoleControl.color(settings2)),style.beep&&(output+=consoleControl.beep());}return output+=msg,this.useColor()&&(output+=consoleControl.color("reset")),output}};log2.write=function(msg,style){stream3&&stream3.write(this._format(msg,style));};log2.addLevel=function(lvl,n10,style,disp){disp==null&&(disp=lvl),this.levels[lvl]=n10,this.style[lvl]=style,this[lvl]||(this[lvl]=function(){var a5=new Array(arguments.length+1);a5[0]=lvl;for(var i10=0;i10<arguments.length;i10++)a5[i10+1]=arguments[i10];return this.log.apply(this,a5)}.bind(this)),this.disp[lvl]=disp;};log2.prefixStyle={fg:"magenta"};log2.headingStyle={fg:"white",bg:"black"};log2.style={};log2.levels={};log2.disp={};log2.addLevel("silly",-1/0,{inverse:!0},"sill");log2.addLevel("verbose",1e3,{fg:"cyan",bg:"black"},"verb");log2.addLevel("info",2e3,{fg:"green"});log2.addLevel("timing",2500,{fg:"green",bg:"black"});log2.addLevel("http",3e3,{fg:"green",bg:"black"});log2.addLevel("notice",3500,{fg:"cyan",bg:"black"});log2.addLevel("warn",4e3,{fg:"black",bg:"yellow"},"WARN");log2.addLevel("error",5e3,{fg:"red",bg:"black"},"ERR!");log2.addLevel("silent",1/0);log2.on("error",function(){});}});var require_pretty_hrtime=__commonJS({"../../node_modules/pretty-hrtime/index.js"(exports,module2){var minimalDesc=["h","min","s","ms","\u03BCs","ns"],verboseDesc=["hour","minute","second","millisecond","microsecond","nanosecond"],convert=[3600,60,1,1e6,1e3,1];module2.exports=function(source,opts){var verbose,precise,i10,spot,sourceAtStep,valAtStep,decimals,strAtStep,results,totalSeconds;if(verbose=!1,precise=!1,opts&&(verbose=opts.verbose||!1,precise=opts.precise||!1),!Array.isArray(source)||source.length!==2||typeof source[0]!="number"||typeof source[1]!="number")return "";for(source[1]<0&&(totalSeconds=source[0]+source[1]/1e9,source[0]=parseInt(totalSeconds),source[1]=parseFloat((totalSeconds%1).toPrecision(9))*1e9),results="",i10=0;i10<6&&(spot=i10<3?0:1,sourceAtStep=source[spot],i10!==3&&i10!==0&&(sourceAtStep=sourceAtStep%convert[i10-1]),i10===2&&(sourceAtStep+=source[1]/1e9),valAtStep=sourceAtStep/convert[i10],!(valAtStep>=1&&(verbose&&(valAtStep=Math.floor(valAtStep)),precise?strAtStep=valAtStep.toString():(decimals=valAtStep>=10?0:2,strAtStep=valAtStep.toFixed(decimals)),strAtStep.indexOf(".")>-1&&strAtStep[strAtStep.length-1]==="0"&&(strAtStep=strAtStep.replace(/\.?0+$/,"")),results&&(results+=" "),results+=strAtStep,verbose?(results+=" "+verboseDesc[i10],strAtStep!=="1"&&(results+="s")):results+=" "+minimalDesc[i10],!verbose)));i10++);return results};}});var require_strip_final_newline=__commonJS({"node_modules/strip-final-newline/index.js"(exports,module2){module2.exports=input=>{let LF2=typeof input=="string"?`
|
|
688
688
|
`:10,CR3=typeof input=="string"?"\r":13;return input[input.length-1]===LF2&&(input=input.slice(0,input.length-1)),input[input.length-1]===CR3&&(input=input.slice(0,input.length-1)),input};}});var require_npm_run_path=__commonJS({"../../node_modules/npm-run-path/index.js"(exports,module2){var path12=__require("path"),pathKey2=require_path_key(),npmRunPath2=options=>{options={cwd:process.cwd(),path:process.env[pathKey2()],execPath:process.execPath,...options};let previous,cwdPath=path12.resolve(options.cwd),result=[];for(;previous!==cwdPath;)result.push(path12.join(cwdPath,"node_modules/.bin")),previous=cwdPath,cwdPath=path12.resolve(cwdPath,"..");let execPathDir=path12.resolve(options.cwd,options.execPath,"..");return result.push(execPathDir),result.concat(options.path).join(path12.delimiter)};module2.exports=npmRunPath2;module2.exports.default=npmRunPath2;module2.exports.env=options=>{options={env:process.env,...options};let env3={...options.env},path13=pathKey2({env:env3});return options.path=env3[path13],env3[path13]=module2.exports(options),env3};}});var require_core4=__commonJS({"node_modules/human-signals/build/src/core.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGNALS=void 0;var SIGNALS2=[{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"}];exports.SIGNALS=SIGNALS2;}});var require_realtime=__commonJS({"node_modules/human-signals/build/src/realtime.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;var getRealtimeSignals2=function(){let length=SIGRTMAX2-SIGRTMIN2+1;return Array.from({length},getRealtimeSignal2)};exports.getRealtimeSignals=getRealtimeSignals2;var getRealtimeSignal2=function(value2,index){return {name:`SIGRT${index+1}`,number:SIGRTMIN2+index,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},SIGRTMIN2=34,SIGRTMAX2=64;exports.SIGRTMAX=SIGRTMAX2;}});var require_signals3=__commonJS({"node_modules/human-signals/build/src/signals.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.getSignals=void 0;var _os=__require("os"),_core=require_core4(),_realtime=require_realtime(),getSignals2=function(){let realtimeSignals=(0, _realtime.getRealtimeSignals)();return [..._core.SIGNALS,...realtimeSignals].map(normalizeSignal2)};exports.getSignals=getSignals2;var normalizeSignal2=function({name,number:defaultNumber,description,action,forced=!1,standard}){let{signals:{[name]:constantSignal}}=_os.constants,supported=constantSignal!==void 0;return {name,number:supported?constantSignal:defaultNumber,description,supported,action,forced,standard}};}});var require_main3=__commonJS({"node_modules/human-signals/build/src/main.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__require("os"),_signals=require_signals3(),_realtime=require_realtime(),getSignalsByName2=function(){return (0, _signals.getSignals)().reduce(getSignalByName2,{})},getSignalByName2=function(signalByNameMemo,{name,number,description,supported,action,forced,standard}){return {...signalByNameMemo,[name]:{name,number,description,supported,action,forced,standard}}},signalsByName2=getSignalsByName2();exports.signalsByName=signalsByName2;var getSignalsByNumber2=function(){let signals2=(0, _signals.getSignals)(),length=_realtime.SIGRTMAX+1,signalsA=Array.from({length},(value2,number)=>getSignalByNumber2(number,signals2));return Object.assign({},...signalsA)},getSignalByNumber2=function(number,signals2){let signal=findSignalByNumber2(number,signals2);if(signal===void 0)return {};let{name,description,supported,action,forced,standard}=signal;return {[number]:{name,number,description,supported,action,forced,standard}}},findSignalByNumber2=function(number,signals2){let signal=signals2.find(({name})=>_os.constants.signals[name]===number);return signal!==void 0?signal:signals2.find(signalA=>signalA.number===number)},signalsByNumber2=getSignalsByNumber2();exports.signalsByNumber=signalsByNumber2;}});var require_error3=__commonJS({"node_modules/execa/lib/error.js"(exports,module2){var{signalsByName:signalsByName2}=require_main3(),getErrorPrefix2=({timedOut:timedOut2,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})=>timedOut2?`timed out after ${timeout} milliseconds`:isCanceled?"was canceled":errorCode!==void 0?`failed with ${errorCode}`:signal!==void 0?`was killed with ${signal} (${signalDescription})`:exitCode!==void 0?`failed with exit code ${exitCode}`:"failed",makeError2=({stdout,stderr,all:all2,error:error2,signal,exitCode,command,escapedCommand,timedOut:timedOut2,isCanceled,killed,parsed:{options:{timeout}}})=>{exitCode=exitCode===null?void 0:exitCode,signal=signal===null?void 0:signal;let signalDescription=signal===void 0?void 0:signalsByName2[signal].description,errorCode=error2&&error2.code,execaMessage=`Command ${getErrorPrefix2({timedOut:timedOut2,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})}: ${command}`,isError=Object.prototype.toString.call(error2)==="[object Error]",shortMessage=isError?`${execaMessage}
|
|
689
689
|
${error2.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
|
|
690
|
-
`);return isError?(error2.originalMessage=error2.message,error2.message=message):error2=new Error(message),error2.shortMessage=shortMessage,error2.command=command,error2.escapedCommand=escapedCommand,error2.exitCode=exitCode,error2.signal=signal,error2.signalDescription=signalDescription,error2.stdout=stdout,error2.stderr=stderr,all2!==void 0&&(error2.all=all2),"bufferedData"in error2&&delete error2.bufferedData,error2.failed=!0,error2.timedOut=!!timedOut2,error2.isCanceled=isCanceled,error2.killed=killed&&!timedOut2,error2};module2.exports=makeError2;}});var require_stdio=__commonJS({"node_modules/execa/lib/stdio.js"(exports,module2){var aliases3=["stdin","stdout","stderr"],hasAlias2=options=>aliases3.some(alias=>options[alias]!==void 0),normalizeStdio2=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases3.map(alias=>options[alias]);if(hasAlias2(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases3.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases3.length);return Array.from({length},(value2,index)=>stdio[index])};module2.exports=normalizeStdio2;module2.exports.node=options=>{let stdio=normalizeStdio2(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]};}});var require_kill=__commonJS({"node_modules/execa/lib/kill.js"(exports,module2){var os8=__require("os"),onExit2=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT2=1e3*5,spawnedKill2=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout2(kill,signal,options,killResult),killResult},setKillTimeout2=(kill,signal,options,killResult)=>{if(!shouldForceKill2(signal,options,killResult))return;let timeout=getForceKillAfterTimeout2(options),t20=setTimeout(()=>{kill("SIGKILL");},timeout);t20.unref&&t20.unref();},shouldForceKill2=(signal,{forceKillAfterTimeout},killResult)=>isSigterm2(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm2=signal=>signal===os8.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout2=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT2;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel2=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0);},timeoutKill2=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}));},setupTimeout2=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve9,reject)=>{timeoutId=setTimeout(()=>{timeoutKill2(spawned,killSignal,reject);},timeout);}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId);});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout2=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler2=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit2(()=>{spawned.kill();});return timedPromise.finally(()=>{removeExitHandler();})};module2.exports={spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2};}});var require_is_stream=__commonJS({"../../node_modules/is-stream/index.js"(exports,module2){var isStream3=stream3=>stream3!==null&&typeof stream3=="object"&&typeof stream3.pipe=="function";isStream3.writable=stream3=>isStream3(stream3)&&stream3.writable!==!1&&typeof stream3._write=="function"&&typeof stream3._writableState=="object";isStream3.readable=stream3=>isStream3(stream3)&&stream3.readable!==!1&&typeof stream3._read=="function"&&typeof stream3._readableState=="object";isStream3.duplex=stream3=>isStream3.writable(stream3)&&isStream3.readable(stream3);isStream3.transform=stream3=>isStream3.duplex(stream3)&&typeof stream3._transform=="function";module2.exports=isStream3;}});var require_buffer_stream2=__commonJS({"../../node_modules/get-stream/buffer-stream.js"(exports,module2){var{PassThrough:PassThroughStream2}=__require("stream");module2.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream3=new PassThroughStream2({objectMode});encoding&&stream3.setEncoding(encoding);let length=0,chunks=[];return stream3.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length;}),stream3.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream3.getBufferedLength=()=>length,stream3};}});var require_get_stream2=__commonJS({"../../node_modules/get-stream/index.js"(exports,module2){var{constants:BufferConstants}=__require("buffer"),stream3=__require("stream"),{promisify:promisify4}=__require("util"),bufferStream=require_buffer_stream2(),streamPipelinePromisified=promisify4(stream3.pipeline),MaxBufferError2=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream4=bufferStream(options);return await new Promise((resolve9,reject)=>{let rejectPromise=error2=>{error2&&stream4.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error2.bufferedData=stream4.getBufferedValue()),reject(error2);};(async()=>{try{await streamPipelinePromisified(inputStream,stream4),resolve9();}catch(error2){rejectPromise(error2);}})(),stream4.on("data",()=>{stream4.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError2);});}),stream4.getBufferedValue()}module2.exports=getStream;module2.exports.buffer=(stream4,options)=>getStream(stream4,{...options,encoding:"buffer"});module2.exports.array=(stream4,options)=>getStream(stream4,{...options,array:!0});module2.exports.MaxBufferError=MaxBufferError2;}});var require_stream5=__commonJS({"node_modules/execa/lib/stream.js"(exports,module2){var isStream3=require_is_stream(),getStream=require_get_stream2(),mergeStream2=require_merge_stream(),handleInput2=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream3(input)?input.pipe(spawned.stdin):spawned.stdin.end(input));},makeAllStream2=(spawned,{all:all2})=>{if(!all2||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream2();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData2=async(stream3,streamPromise)=>{if(stream3){stream3.destroy();try{return await streamPromise}catch(error2){return error2.bufferedData}}},getStreamPromise2=(stream3,{encoding,buffer,maxBuffer})=>{if(!(!stream3||!buffer))return encoding?getStream(stream3,{encoding,maxBuffer}):getStream.buffer(stream3,{maxBuffer})},getSpawnedResult2=async({stdout,stderr,all:all2},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise2(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise2(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise2(all2,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error2){return Promise.all([{error:error2,signal:error2.signal,timedOut:error2.timedOut},getBufferedData2(stdout,stdoutPromise),getBufferedData2(stderr,stderrPromise),getBufferedData2(all2,allPromise)])}},validateInputSync=({input})=>{if(isStream3(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module2.exports={handleInput:handleInput2,makeAllStream:makeAllStream2,getSpawnedResult:getSpawnedResult2,validateInputSync};}});var require_promise=__commonJS({"node_modules/execa/lib/promise.js"(exports,module2){var nativePromisePrototype2=(async()=>{})().constructor.prototype,descriptors2=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype2,property)]),mergePromise2=(spawned,promise)=>{for(let[property,descriptor]of descriptors2){let value2=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value:value2});}return spawned},getSpawnedPromise2=spawned=>new Promise((resolve9,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve9({exitCode,signal});}),spawned.on("error",error2=>{reject(error2);}),spawned.stdin&&spawned.stdin.on("error",error2=>{reject(error2);});});module2.exports={mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2};}});var require_command=__commonJS({"node_modules/execa/lib/command.js"(exports,module2){var normalizeArgs2=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP2=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg2=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP2.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand2=(file,args)=>normalizeArgs2(file,args).join(" "),getEscapedCommand2=(file,args)=>normalizeArgs2(file,args).map(arg=>escapeArg2(arg)).join(" "),SPACES_REGEXP2=/ +/g,parseCommand2=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP2)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token);}return tokens};module2.exports={joinCommand:joinCommand2,getEscapedCommand:getEscapedCommand2,parseCommand:parseCommand2};}});var require_execa=__commonJS({"node_modules/execa/index.js"(exports,module2){var path12=__require("path"),childProcess2=__require("child_process"),crossSpawn2=require_cross_spawn(),stripFinalNewline2=require_strip_final_newline(),npmRunPath2=require_npm_run_path(),onetime2=require_onetime(),makeError2=require_error3(),normalizeStdio2=require_stdio(),{spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2}=require_kill(),{handleInput:handleInput2,getSpawnedResult:getSpawnedResult2,makeAllStream:makeAllStream2,validateInputSync}=require_stream5(),{mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2}=require_promise(),{joinCommand:joinCommand2,parseCommand:parseCommand2,getEscapedCommand:getEscapedCommand2}=require_command(),DEFAULT_MAX_BUFFER2=1e3*1e3*100,getEnv2=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env3=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath2.env({env:env3,cwd:localDir,execPath}):env3},handleArguments2=(file,args,options={})=>{let parsed=crossSpawn2._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER2,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv2(options),options.stdio=normalizeStdio2(options),process.platform==="win32"&&path12.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput2=(options,value2,error2)=>typeof value2!="string"&&!Buffer.isBuffer(value2)?error2===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline2(value2):value2,execa3=(file,args,options)=>{let parsed=handleArguments2(file,args,options),command=joinCommand2(file,args),escapedCommand=getEscapedCommand2(file,args);validateTimeout2(parsed.options);let spawned;try{spawned=childProcess2.spawn(parsed.file,parsed.args,parsed.options);}catch(error2){let dummySpawned=new childProcess2.ChildProcess,errorPromise=Promise.reject(makeError2({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise2(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise2(spawned),timedPromise=setupTimeout2(spawned,parsed.options,spawnedPromise),processDone=setExitHandler2(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill2.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel2.bind(null,spawned,context);let handlePromiseOnce=onetime2(async()=>{let[{error:error2,exitCode,signal,timedOut:timedOut2},stdoutResult,stderrResult,allResult]=await getSpawnedResult2(spawned,parsed.options,processDone),stdout=handleOutput2(parsed.options,stdoutResult),stderr=handleOutput2(parsed.options,stderrResult),all2=handleOutput2(parsed.options,allResult);if(error2||exitCode!==0||signal!==null){let returnedError=makeError2({error:error2,exitCode,signal,stdout,stderr,all:all2,command,escapedCommand,parsed,timedOut:timedOut2,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return {command,escapedCommand,exitCode:0,stdout,stderr,all:all2,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput2(spawned,parsed.options.input),spawned.all=makeAllStream2(spawned,parsed.options),mergePromise2(spawned,handlePromiseOnce)};module2.exports=execa3;module2.exports.sync=(file,args,options)=>{let parsed=handleArguments2(file,args,options),command=joinCommand2(file,args),escapedCommand=getEscapedCommand2(file,args);validateInputSync(parsed.options);let result;try{result=childProcess2.spawnSync(parsed.file,parsed.args,parsed.options);}catch(error2){throw makeError2({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput2(parsed.options,result.stdout,result.error),stderr=handleOutput2(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error2=makeError2({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error2;throw error2}return {command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module2.exports.command=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3(file,args,options)};module2.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3.sync(file,args,options)};module2.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio2.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa3(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})};}});var import_fetch_retry=__toESM(require_fetch_retry_umd(),1);var urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var POOL_SIZE_MULTIPLIER=128,pool,poolOffset,fillPool=bytes=>{!pool||pool.length<bytes?(pool=Buffer.allocUnsafe(bytes*POOL_SIZE_MULTIPLIER),randomFillSync(pool),poolOffset=0):poolOffset+bytes>pool.length&&(randomFillSync(pool),poolOffset=0),poolOffset+=bytes;};var nanoid=(size=21)=>{fillPool(size-=0);let id2="";for(let i10=poolOffset-size;i10<poolOffset;i10++)id2+=urlAlphabet[pool[i10]&63];return id2};var version="9.1.0-beta.0";var __filename2=fileURLToPath(import.meta.url);dirname(__filename2);var require2=ESM_COMPAT_Module1.createRequire(import.meta.url),qf=Object.create,vt=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,jf=Object.getOwnPropertyNames,Gf=Object.getPrototypeOf,Wf=Object.prototype.hasOwnProperty,s=(t20,e5)=>vt(t20,"name",{value:e5,configurable:!0}),k=(t20=>typeof require2<"u"?require2:typeof Proxy<"u"?new Proxy(t20,{get:(e5,r5)=>(typeof require2<"u"?require2:e5)[r5]}):t20)(function(t20){if(typeof require2<"u")return require2.apply(this,arguments);throw Error('Dynamic require of "'+t20+'" is not supported')}),wn=(t20,e5)=>()=>(t20&&(e5=t20(t20=0)),e5),c=(t20,e5)=>()=>(e5||t20((e5={exports:{}}).exports,e5),e5.exports),tr=(t20,e5)=>{for(var r5 in e5)vt(t20,r5,{get:e5[r5],enumerable:!0});},An=(t20,e5,r5,u5)=>{if(e5&&typeof e5=="object"||typeof e5=="function")for(let n10 of jf(e5))!Wf.call(t20,n10)&&n10!==r5&&vt(t20,n10,{get:()=>e5[n10],enumerable:!(u5=Nf(e5,n10))||u5.enumerable});return t20},P=(t20,e5,r5)=>(r5=t20!=null?qf(Gf(t20)):{},An(e5||!t20||!t20.__esModule?vt(r5,"default",{value:t20,enumerable:!0}):r5,t20)),Vf=t20=>An(vt({},"__esModule",{value:!0}),t20),mu=c((DE3,Sn5)=>{var Uf3=k("events"),Yf3=0,pu3=class extends Uf3{static{s(this,"TrackerBase");}constructor(e5){super(),this.id=++Yf3,this.name=e5;}};Sn5.exports=pu3;}),rr=c((lE3,Tn4)=>{var Hf3=mu(),gu3=class extends Hf3{static{s(this,"Tracker");}constructor(e5,r5){super(e5),this.workDone=0,this.workTodo=r5||0;}completed(){return this.workTodo===0?0:this.workDone/this.workTodo}addWork(e5){this.workTodo+=e5,this.emit("change",this.name,this.completed(),this);}completeWork(e5){this.workDone+=e5,this.workDone>this.workTodo&&(this.workDone=this.workTodo),this.emit("change",this.name,this.completed(),this);}finish(){this.workTodo=this.workDone=1,this.emit("change",this.name,1,this);}};Tn4.exports=gu3;}),Cu=c((cE4,$n6)=>{var zf5=k("stream"),Kf2=rr(),Fu3=class extends zf5.Transform{static{s(this,"TrackerStream");}constructor(e5,r5,u5){super(u5),this.tracker=new Kf2(e5,r5),this.name=e5,this.id=this.tracker.id,this.tracker.on("change",this.trackerChange.bind(this));}trackerChange(e5,r5){this.emit("change",e5,r5,this);}_transform(e5,r5,u5){this.tracker.completeWork(e5.length?e5.length:1),this.push(e5),u5();}_flush(e5){this.tracker.finish(),e5();}completed(){return this.tracker.completed()}addWork(e5){return this.tracker.addWork(e5)}finish(){return this.tracker.finish()}};$n6.exports=Fu3;}),In=c((fE2,_n8)=>{var Zf3=mu(),On5=rr(),Jf2=Cu(),Eu4=class t20 extends Zf3{static{s(this,"TrackerGroup");}parentGroup=null;trackers=[];completion={};weight={};totalWeight=0;finished=!1;bubbleChange=Xf2(this);nameInTree(){for(var e5=[],r5=this;r5;)e5.unshift(r5.name),r5=r5.parentGroup;return e5.join("/")}addUnit(e5,r5){if(e5.addUnit){for(var u5=this;u5;){if(e5===u5)throw new Error("Attempted to add tracker group "+e5.name+" to tree that already includes it "+this.nameInTree(this));u5=u5.parentGroup;}e5.parentGroup=this;}return this.weight[e5.id]=r5||1,this.totalWeight+=this.weight[e5.id],this.trackers.push(e5),this.completion[e5.id]=e5.completed(),e5.on("change",this.bubbleChange),this.finished||this.emit("change",e5.name,this.completion[e5.id],e5),e5}completed(){if(this.trackers.length===0)return 0;for(var e5=1/this.totalWeight,r5=0,u5=0;u5<this.trackers.length;u5++){var n10=this.trackers[u5].id;r5+=e5*this.weight[n10]*this.completion[n10];}return r5}newGroup(e5,r5){return this.addUnit(new t20(e5),r5)}newItem(e5,r5,u5){return this.addUnit(new On5(e5,r5),u5)}newStream(e5,r5,u5){return this.addUnit(new Jf2(e5,r5),u5)}finish(){this.finished=!0,this.trackers.length||this.addUnit(new On5,1,!0);for(var e5=0;e5<this.trackers.length;e5++){var r5=this.trackers[e5];r5.finish(),r5.removeListener("change",this.bubbleChange);}this.emit("change",this.name,1,this);}debug(e5=0){let r5=" ".repeat(e5),u5=`${r5}${this.name||"top"}: ${this.completed()}
|
|
690
|
+
`);return isError?(error2.originalMessage=error2.message,error2.message=message):error2=new Error(message),error2.shortMessage=shortMessage,error2.command=command,error2.escapedCommand=escapedCommand,error2.exitCode=exitCode,error2.signal=signal,error2.signalDescription=signalDescription,error2.stdout=stdout,error2.stderr=stderr,all2!==void 0&&(error2.all=all2),"bufferedData"in error2&&delete error2.bufferedData,error2.failed=!0,error2.timedOut=!!timedOut2,error2.isCanceled=isCanceled,error2.killed=killed&&!timedOut2,error2};module2.exports=makeError2;}});var require_stdio=__commonJS({"node_modules/execa/lib/stdio.js"(exports,module2){var aliases3=["stdin","stdout","stderr"],hasAlias2=options=>aliases3.some(alias=>options[alias]!==void 0),normalizeStdio2=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases3.map(alias=>options[alias]);if(hasAlias2(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases3.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases3.length);return Array.from({length},(value2,index)=>stdio[index])};module2.exports=normalizeStdio2;module2.exports.node=options=>{let stdio=normalizeStdio2(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]};}});var require_kill=__commonJS({"node_modules/execa/lib/kill.js"(exports,module2){var os8=__require("os"),onExit2=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT2=1e3*5,spawnedKill2=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout2(kill,signal,options,killResult),killResult},setKillTimeout2=(kill,signal,options,killResult)=>{if(!shouldForceKill2(signal,options,killResult))return;let timeout=getForceKillAfterTimeout2(options),t20=setTimeout(()=>{kill("SIGKILL");},timeout);t20.unref&&t20.unref();},shouldForceKill2=(signal,{forceKillAfterTimeout},killResult)=>isSigterm2(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm2=signal=>signal===os8.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout2=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT2;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel2=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0);},timeoutKill2=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}));},setupTimeout2=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve9,reject)=>{timeoutId=setTimeout(()=>{timeoutKill2(spawned,killSignal,reject);},timeout);}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId);});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout2=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler2=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit2(()=>{spawned.kill();});return timedPromise.finally(()=>{removeExitHandler();})};module2.exports={spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2};}});var require_is_stream=__commonJS({"../../node_modules/is-stream/index.js"(exports,module2){var isStream3=stream3=>stream3!==null&&typeof stream3=="object"&&typeof stream3.pipe=="function";isStream3.writable=stream3=>isStream3(stream3)&&stream3.writable!==!1&&typeof stream3._write=="function"&&typeof stream3._writableState=="object";isStream3.readable=stream3=>isStream3(stream3)&&stream3.readable!==!1&&typeof stream3._read=="function"&&typeof stream3._readableState=="object";isStream3.duplex=stream3=>isStream3.writable(stream3)&&isStream3.readable(stream3);isStream3.transform=stream3=>isStream3.duplex(stream3)&&typeof stream3._transform=="function";module2.exports=isStream3;}});var require_buffer_stream2=__commonJS({"../../node_modules/get-stream/buffer-stream.js"(exports,module2){var{PassThrough:PassThroughStream2}=__require("stream");module2.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream3=new PassThroughStream2({objectMode});encoding&&stream3.setEncoding(encoding);let length=0,chunks=[];return stream3.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length;}),stream3.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream3.getBufferedLength=()=>length,stream3};}});var require_get_stream2=__commonJS({"../../node_modules/get-stream/index.js"(exports,module2){var{constants:BufferConstants}=__require("buffer"),stream3=__require("stream"),{promisify:promisify4}=__require("util"),bufferStream=require_buffer_stream2(),streamPipelinePromisified=promisify4(stream3.pipeline),MaxBufferError2=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream4=bufferStream(options);return await new Promise((resolve9,reject)=>{let rejectPromise=error2=>{error2&&stream4.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error2.bufferedData=stream4.getBufferedValue()),reject(error2);};(async()=>{try{await streamPipelinePromisified(inputStream,stream4),resolve9();}catch(error2){rejectPromise(error2);}})(),stream4.on("data",()=>{stream4.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError2);});}),stream4.getBufferedValue()}module2.exports=getStream;module2.exports.buffer=(stream4,options)=>getStream(stream4,{...options,encoding:"buffer"});module2.exports.array=(stream4,options)=>getStream(stream4,{...options,array:!0});module2.exports.MaxBufferError=MaxBufferError2;}});var require_stream5=__commonJS({"node_modules/execa/lib/stream.js"(exports,module2){var isStream3=require_is_stream(),getStream=require_get_stream2(),mergeStream2=require_merge_stream(),handleInput2=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream3(input)?input.pipe(spawned.stdin):spawned.stdin.end(input));},makeAllStream2=(spawned,{all:all2})=>{if(!all2||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream2();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData2=async(stream3,streamPromise)=>{if(stream3){stream3.destroy();try{return await streamPromise}catch(error2){return error2.bufferedData}}},getStreamPromise2=(stream3,{encoding,buffer,maxBuffer})=>{if(!(!stream3||!buffer))return encoding?getStream(stream3,{encoding,maxBuffer}):getStream.buffer(stream3,{maxBuffer})},getSpawnedResult2=async({stdout,stderr,all:all2},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise2(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise2(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise2(all2,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error2){return Promise.all([{error:error2,signal:error2.signal,timedOut:error2.timedOut},getBufferedData2(stdout,stdoutPromise),getBufferedData2(stderr,stderrPromise),getBufferedData2(all2,allPromise)])}},validateInputSync=({input})=>{if(isStream3(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module2.exports={handleInput:handleInput2,makeAllStream:makeAllStream2,getSpawnedResult:getSpawnedResult2,validateInputSync};}});var require_promise=__commonJS({"node_modules/execa/lib/promise.js"(exports,module2){var nativePromisePrototype2=(async()=>{})().constructor.prototype,descriptors2=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype2,property)]),mergePromise2=(spawned,promise)=>{for(let[property,descriptor]of descriptors2){let value2=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value:value2});}return spawned},getSpawnedPromise2=spawned=>new Promise((resolve9,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve9({exitCode,signal});}),spawned.on("error",error2=>{reject(error2);}),spawned.stdin&&spawned.stdin.on("error",error2=>{reject(error2);});});module2.exports={mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2};}});var require_command=__commonJS({"node_modules/execa/lib/command.js"(exports,module2){var normalizeArgs2=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP2=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg2=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP2.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand2=(file,args)=>normalizeArgs2(file,args).join(" "),getEscapedCommand2=(file,args)=>normalizeArgs2(file,args).map(arg=>escapeArg2(arg)).join(" "),SPACES_REGEXP2=/ +/g,parseCommand2=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP2)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token);}return tokens};module2.exports={joinCommand:joinCommand2,getEscapedCommand:getEscapedCommand2,parseCommand:parseCommand2};}});var require_execa=__commonJS({"node_modules/execa/index.js"(exports,module2){var path12=__require("path"),childProcess2=__require("child_process"),crossSpawn2=require_cross_spawn(),stripFinalNewline2=require_strip_final_newline(),npmRunPath2=require_npm_run_path(),onetime2=require_onetime(),makeError2=require_error3(),normalizeStdio2=require_stdio(),{spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2}=require_kill(),{handleInput:handleInput2,getSpawnedResult:getSpawnedResult2,makeAllStream:makeAllStream2,validateInputSync}=require_stream5(),{mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2}=require_promise(),{joinCommand:joinCommand2,parseCommand:parseCommand2,getEscapedCommand:getEscapedCommand2}=require_command(),DEFAULT_MAX_BUFFER2=1e3*1e3*100,getEnv2=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env3=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath2.env({env:env3,cwd:localDir,execPath}):env3},handleArguments2=(file,args,options={})=>{let parsed=crossSpawn2._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER2,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv2(options),options.stdio=normalizeStdio2(options),process.platform==="win32"&&path12.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput2=(options,value2,error2)=>typeof value2!="string"&&!Buffer.isBuffer(value2)?error2===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline2(value2):value2,execa3=(file,args,options)=>{let parsed=handleArguments2(file,args,options),command=joinCommand2(file,args),escapedCommand=getEscapedCommand2(file,args);validateTimeout2(parsed.options);let spawned;try{spawned=childProcess2.spawn(parsed.file,parsed.args,parsed.options);}catch(error2){let dummySpawned=new childProcess2.ChildProcess,errorPromise=Promise.reject(makeError2({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise2(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise2(spawned),timedPromise=setupTimeout2(spawned,parsed.options,spawnedPromise),processDone=setExitHandler2(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill2.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel2.bind(null,spawned,context);let handlePromiseOnce=onetime2(async()=>{let[{error:error2,exitCode,signal,timedOut:timedOut2},stdoutResult,stderrResult,allResult]=await getSpawnedResult2(spawned,parsed.options,processDone),stdout=handleOutput2(parsed.options,stdoutResult),stderr=handleOutput2(parsed.options,stderrResult),all2=handleOutput2(parsed.options,allResult);if(error2||exitCode!==0||signal!==null){let returnedError=makeError2({error:error2,exitCode,signal,stdout,stderr,all:all2,command,escapedCommand,parsed,timedOut:timedOut2,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return {command,escapedCommand,exitCode:0,stdout,stderr,all:all2,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput2(spawned,parsed.options.input),spawned.all=makeAllStream2(spawned,parsed.options),mergePromise2(spawned,handlePromiseOnce)};module2.exports=execa3;module2.exports.sync=(file,args,options)=>{let parsed=handleArguments2(file,args,options),command=joinCommand2(file,args),escapedCommand=getEscapedCommand2(file,args);validateInputSync(parsed.options);let result;try{result=childProcess2.spawnSync(parsed.file,parsed.args,parsed.options);}catch(error2){throw makeError2({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput2(parsed.options,result.stdout,result.error),stderr=handleOutput2(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error2=makeError2({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error2;throw error2}return {command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module2.exports.command=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3(file,args,options)};module2.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3.sync(file,args,options)};module2.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio2.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa3(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})};}});var import_fetch_retry=__toESM(require_fetch_retry_umd(),1);var urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var POOL_SIZE_MULTIPLIER=128,pool,poolOffset,fillPool=bytes=>{!pool||pool.length<bytes?(pool=Buffer.allocUnsafe(bytes*POOL_SIZE_MULTIPLIER),randomFillSync(pool),poolOffset=0):poolOffset+bytes>pool.length&&(randomFillSync(pool),poolOffset=0),poolOffset+=bytes;};var nanoid=(size=21)=>{fillPool(size-=0);let id2="";for(let i10=poolOffset-size;i10<poolOffset;i10++)id2+=urlAlphabet[pool[i10]&63];return id2};var version="9.1.0-beta.2";var __filename2=fileURLToPath(import.meta.url);dirname(__filename2);var require2=ESM_COMPAT_Module1.createRequire(import.meta.url),qf=Object.create,vt=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,jf=Object.getOwnPropertyNames,Gf=Object.getPrototypeOf,Wf=Object.prototype.hasOwnProperty,s=(t20,e5)=>vt(t20,"name",{value:e5,configurable:!0}),k=(t20=>typeof require2<"u"?require2:typeof Proxy<"u"?new Proxy(t20,{get:(e5,r5)=>(typeof require2<"u"?require2:e5)[r5]}):t20)(function(t20){if(typeof require2<"u")return require2.apply(this,arguments);throw Error('Dynamic require of "'+t20+'" is not supported')}),wn=(t20,e5)=>()=>(t20&&(e5=t20(t20=0)),e5),c=(t20,e5)=>()=>(e5||t20((e5={exports:{}}).exports,e5),e5.exports),tr=(t20,e5)=>{for(var r5 in e5)vt(t20,r5,{get:e5[r5],enumerable:!0});},An=(t20,e5,r5,u5)=>{if(e5&&typeof e5=="object"||typeof e5=="function")for(let n10 of jf(e5))!Wf.call(t20,n10)&&n10!==r5&&vt(t20,n10,{get:()=>e5[n10],enumerable:!(u5=Nf(e5,n10))||u5.enumerable});return t20},P=(t20,e5,r5)=>(r5=t20!=null?qf(Gf(t20)):{},An(e5||!t20||!t20.__esModule?vt(r5,"default",{value:t20,enumerable:!0}):r5,t20)),Vf=t20=>An(vt({},"__esModule",{value:!0}),t20),mu=c((DE3,Sn5)=>{var Uf3=k("events"),Yf3=0,pu3=class extends Uf3{static{s(this,"TrackerBase");}constructor(e5){super(),this.id=++Yf3,this.name=e5;}};Sn5.exports=pu3;}),rr=c((lE3,Tn4)=>{var Hf3=mu(),gu3=class extends Hf3{static{s(this,"Tracker");}constructor(e5,r5){super(e5),this.workDone=0,this.workTodo=r5||0;}completed(){return this.workTodo===0?0:this.workDone/this.workTodo}addWork(e5){this.workTodo+=e5,this.emit("change",this.name,this.completed(),this);}completeWork(e5){this.workDone+=e5,this.workDone>this.workTodo&&(this.workDone=this.workTodo),this.emit("change",this.name,this.completed(),this);}finish(){this.workTodo=this.workDone=1,this.emit("change",this.name,1,this);}};Tn4.exports=gu3;}),Cu=c((cE4,$n6)=>{var zf5=k("stream"),Kf2=rr(),Fu3=class extends zf5.Transform{static{s(this,"TrackerStream");}constructor(e5,r5,u5){super(u5),this.tracker=new Kf2(e5,r5),this.name=e5,this.id=this.tracker.id,this.tracker.on("change",this.trackerChange.bind(this));}trackerChange(e5,r5){this.emit("change",e5,r5,this);}_transform(e5,r5,u5){this.tracker.completeWork(e5.length?e5.length:1),this.push(e5),u5();}_flush(e5){this.tracker.finish(),e5();}completed(){return this.tracker.completed()}addWork(e5){return this.tracker.addWork(e5)}finish(){return this.tracker.finish()}};$n6.exports=Fu3;}),In=c((fE2,_n8)=>{var Zf3=mu(),On5=rr(),Jf2=Cu(),Eu4=class t20 extends Zf3{static{s(this,"TrackerGroup");}parentGroup=null;trackers=[];completion={};weight={};totalWeight=0;finished=!1;bubbleChange=Xf2(this);nameInTree(){for(var e5=[],r5=this;r5;)e5.unshift(r5.name),r5=r5.parentGroup;return e5.join("/")}addUnit(e5,r5){if(e5.addUnit){for(var u5=this;u5;){if(e5===u5)throw new Error("Attempted to add tracker group "+e5.name+" to tree that already includes it "+this.nameInTree(this));u5=u5.parentGroup;}e5.parentGroup=this;}return this.weight[e5.id]=r5||1,this.totalWeight+=this.weight[e5.id],this.trackers.push(e5),this.completion[e5.id]=e5.completed(),e5.on("change",this.bubbleChange),this.finished||this.emit("change",e5.name,this.completion[e5.id],e5),e5}completed(){if(this.trackers.length===0)return 0;for(var e5=1/this.totalWeight,r5=0,u5=0;u5<this.trackers.length;u5++){var n10=this.trackers[u5].id;r5+=e5*this.weight[n10]*this.completion[n10];}return r5}newGroup(e5,r5){return this.addUnit(new t20(e5),r5)}newItem(e5,r5,u5){return this.addUnit(new On5(e5,r5),u5)}newStream(e5,r5,u5){return this.addUnit(new Jf2(e5,r5),u5)}finish(){this.finished=!0,this.trackers.length||this.addUnit(new On5,1,!0);for(var e5=0;e5<this.trackers.length;e5++){var r5=this.trackers[e5];r5.finish(),r5.removeListener("change",this.bubbleChange);}this.emit("change",this.name,1,this);}debug(e5=0){let r5=" ".repeat(e5),u5=`${r5}${this.name||"top"}: ${this.completed()}
|
|
691
691
|
`;return this.trackers.forEach(function(n10){u5+=n10 instanceof t20?n10.debug(e5+1):`${r5} ${n10.name}: ${n10.completed()}
|
|
692
692
|
`;}),u5}};function Xf2(t20){return function(e5,r5,u5){t20.completion[u5.id]=r5,!t20.finished&&t20.emit("change",e5||t20.name,t20.completed(),t20);}}s(Xf2,"bubbleChange"),_n8.exports=Eu4;}),Ln=c(ur5=>{ur5.TrackerGroup=In(),ur5.Tracker=rr(),ur5.TrackerStream=Cu();}),ir=c(N13=>{var H10="\x1B[";N13.up=s(function(e5){return H10+(e5||"")+"A"},"up"),N13.down=s(function(e5){return H10+(e5||"")+"B"},"down"),N13.forward=s(function(e5){return H10+(e5||"")+"C"},"forward"),N13.back=s(function(e5){return H10+(e5||"")+"D"},"back"),N13.nextLine=s(function(e5){return H10+(e5||"")+"E"},"nextLine"),N13.previousLine=s(function(e5){return H10+(e5||"")+"F"},"previousLine"),N13.horizontalAbsolute=s(function(e5){if(e5==null)throw new Error("horizontalAboslute requires a column to position to");return H10+e5+"G"},"horizontalAbsolute"),N13.eraseData=s(function(){return H10+"J"},"eraseData"),N13.eraseLine=s(function(){return H10+"K"},"eraseLine"),N13.goto=function(t20,e5){return H10+e5+";"+t20+"H"},N13.gotoSOL=function(){return "\r"},N13.beep=function(){return "\x07"},N13.hideCursor=s(function(){return H10+"?25l"},"hideCursor"),N13.showCursor=s(function(){return H10+"?25h"},"showCursor");var kn6={reset:0,bold:1,italic:3,underline:4,inverse:7,stopBold:22,stopItalic:23,stopUnderline:24,stopInverse:27,white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,bgWhite:47,bgBlack:40,bgBlue:44,bgCyan:46,bgGreen:42,bgMagenta:45,bgRed:41,bgYellow:43,grey:90,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97,bgGrey:100,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107};N13.color=s(function(e5){return (arguments.length!==1||!Array.isArray(e5))&&(e5=Array.prototype.slice.call(arguments)),H10+e5.map(Qf3).join(";")+"m"},"color");function Qf3(t20){if(kn6[t20]!=null)return kn6[t20];throw new Error("Unknown color or style name: "+t20)}s(Qf3,"colorNameToCode");}),Mn=c((CE4,Pn5)=>{Pn5.exports=({onlyFirst:t20=!1}={})=>{let e5=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e5,t20?void 0:"g")};}),qn=c((EE5,Rn6)=>{var e0=Mn();Rn6.exports=t20=>typeof t20=="string"?t20.replace(e0(),""):t20;}),jn=c((bE4,bu4)=>{var Nn8=s(t20=>Number.isNaN(t20)?!1:t20>=4352&&(t20<=4447||t20===9001||t20===9002||11904<=t20&&t20<=12871&&t20!==12351||12880<=t20&&t20<=19903||19968<=t20&&t20<=42182||43360<=t20&&t20<=43388||44032<=t20&&t20<=55203||63744<=t20&&t20<=64255||65040<=t20&&t20<=65049||65072<=t20&&t20<=65131||65281<=t20&&t20<=65376||65504<=t20&&t20<=65510||110592<=t20&&t20<=110593||127488<=t20&&t20<=127569||131072<=t20&&t20<=262141),"isFullwidthCodePoint");bu4.exports=Nn8,bu4.exports.default=Nn8;}),Wn=c((vE3,Gn5)=>{Gn5.exports=function(){return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};}),Ze=c((yE3,xu4)=>{var t02=qn(),r03=jn(),u0=Wn(),Vn4=s(t20=>{if(typeof t20!="string"||t20.length===0||(t20=t02(t20),t20.length===0))return 0;t20=t20.replace(u0()," ");let e5=0;for(let r5=0;r5<t20.length;r5++){let u5=t20.codePointAt(r5);u5<=31||u5>=127&&u5<=159||u5>=768&&u5<=879||(u5>65535&&r5++,e5+=r03(u5)?2:1);}return e5},"stringWidth");xu4.exports=Vn4,xu4.exports.default=Vn4;}),Un=c(nr7=>{var vu3=Ze();nr7.center=n02,nr7.left=i02,nr7.right=s02;function sr6(t20){var e5="",r5=" ",u5=t20;do u5%2&&(e5+=r5),u5=Math.floor(u5/2),r5+=r5;while(u5);return e5}s(sr6,"createPadding");function i02(t20,e5){var r5=t20.trimRight();if(r5.length===0&&t20.length>=e5)return t20;var u5="",n10=vu3(r5);return n10<e5&&(u5=sr6(e5-n10)),r5+u5}s(i02,"alignLeft");function s02(t20,e5){var r5=t20.trimLeft();if(r5.length===0&&t20.length>=e5)return t20;var u5="",n10=vu3(r5);return n10<e5&&(u5=sr6(e5-n10)),u5+r5}s(s02,"alignRight");function n02(t20,e5){var r5=t20.trim();if(r5.length===0&&t20.length>=e5)return t20;var u5="",n10="",o10=vu3(r5);if(o10<e5){var i10=parseInt((e5-o10)/2,10);u5=sr6(i10),n10=sr6(e5-(o10+i10));}return u5+r5+n10}s(n02,"alignCenter");}),Dr=c((SE5,Zn4)=>{Zn4.exports=zn5;function o03(t20){return t20!=null&&typeof t20=="object"&&t20.hasOwnProperty("callee")}s(o03,"isArguments");var ie7={"*":{label:"any",check:s(()=>!0,"check")},A:{label:"array",check:s(t20=>Array.isArray(t20)||o03(t20),"check")},S:{label:"string",check:s(t20=>typeof t20=="string","check")},N:{label:"number",check:s(t20=>typeof t20=="number","check")},F:{label:"function",check:s(t20=>typeof t20=="function","check")},O:{label:"object",check:s(t20=>typeof t20=="object"&&t20!=null&&!ie7.A.check(t20)&&!ie7.E.check(t20),"check")},B:{label:"boolean",check:s(t20=>typeof t20=="boolean","check")},E:{label:"error",check:s(t20=>t20 instanceof Error,"check")},Z:{label:"null",check:s(t20=>t20==null,"check")}};function or7(t20,e5){let r5=e5[t20.length]=e5[t20.length]||[];r5.indexOf(t20)===-1&&r5.push(t20);}s(or7,"addSchema");function zn5(t20,e5){if(arguments.length!==2)throw Hn4(["SA"],arguments.length);if(!t20)throw Yn6(0);if(!e5)throw Yn6(1);if(!ie7.S.check(t20))throw yu3(0,["string"],t20);if(!ie7.A.check(e5))throw yu3(1,["array"],e5);let r5=t20.split("|"),u5={};r5.forEach(o10=>{for(let i10=0;i10<o10.length;++i10){let D10=o10[i10];if(!ie7[D10])throw D0(i10,D10)}if(/E.*E/.test(o10))throw a03(o10);or7(o10,u5),/E/.test(o10)&&(or7(o10.replace(/E.*$/,"E"),u5),or7(o10.replace(/E/,"Z"),u5),o10.length===1&&or7("",u5));});let n10=u5[e5.length];if(!n10)throw Hn4(Object.keys(u5),e5.length);for(let o10=0;o10<e5.length;++o10){let i10=n10.filter(D10=>{let a5=D10[o10],l7=ie7[a5].check;return l7(e5[o10])});if(!i10.length){let D10=n10.map(a5=>ie7[a5[o10]].label).filter(a5=>a5!=null);throw yu3(o10,D10,e5[o10])}n10=i10;}}s(zn5,"validate");function Yn6(t20){return yt8("EMISSINGARG","Missing required argument #"+(t20+1))}s(Yn6,"missingRequiredArg");function D0(t20,e5){return yt8("EUNKNOWNTYPE","Unknown type "+e5+" in argument #"+(t20+1))}s(D0,"unknownType");function yu3(t20,e5,r5){let u5;return Object.keys(ie7).forEach(n10=>{ie7[n10].check(r5)&&(u5=ie7[n10].label);}),yt8("EINVALIDTYPE","Argument #"+(t20+1)+": Expected "+Kn7(e5)+" but got "+u5)}s(yu3,"invalidType");function Kn7(t20){return t20.join(", ").replace(/, ([^,]+)$/," or $1")}s(Kn7,"englishList");function Hn4(t20,e5){let r5=Kn7(t20),u5=t20.every(n10=>n10.length===1)?"argument":"arguments";return yt8("EWRONGARGCOUNT","Expected "+r5+" "+u5+" but got "+e5)}s(Hn4,"wrongNumberOfArgs");function a03(t20){return yt8("ETOOMANYERRORTYPES",'Only one error type per argument signature is allowed, more than one found in "'+t20+'"')}s(a03,"moreThanOneError");function yt8(t20,e5){let r5=new Error(e5);return r5.code=t20,Error.captureStackTrace&&Error.captureStackTrace(r5,zn5),r5}s(yt8,"newException");}),Xn=c(($E4,Jn5)=>{Jn5.exports=({onlyFirst:t20=!1}={})=>{let e5=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e5,t20?void 0:"g")};}),eo=c((OE4,Qn6)=>{var l02=Xn();Qn6.exports=t20=>typeof t20=="string"?t20.replace(l02(),""):t20;}),wu=c((_E5,to6)=>{var Bu3=Ze(),h0=eo();to6.exports=c03;function c03(t20,e5){if(Bu3(t20)===0)return t20;if(e5<=0)return "";if(Bu3(t20)<=e5)return t20;for(var r5=h0(t20),u5=t20.length+r5.length,n10=t20.slice(0,e5+u5);Bu3(n10)>e5;)n10=n10.slice(0,-1);return n10}s(c03,"wideTruncate");}),ro=c(ar4=>{var d03=k("util"),f02=ar4.User=s(function t20(e5){var r5=new Error(e5);return Error.captureStackTrace(r5,t20),r5.code="EGAUGE",r5},"User");ar4.MissingTemplateValue=s(function t20(e5,r5){var u5=new f02(d03.format('Missing template value "%s"',e5.type));return Error.captureStackTrace(u5,t20),u5.template=e5,u5.values=r5,u5},"MissingTemplateValue"),ar4.Internal=s(function t20(e5){var r5=new Error(e5);return Error.captureStackTrace(r5,t20),r5.code="EGAUGEINTERNAL",r5},"Internal");}),io=c((PE3,uo6)=>{var p03=Ze();uo6.exports=Je8;function Au4(t20){return typeof t20!="string"?!1:t20.slice(-1)==="%"}s(Au4,"isPercent");function Su4(t20){return Number(t20.slice(0,-1))/100}s(Su4,"percent");function Je8(t20,e5){if(this.overallOutputLength=e5,this.finished=!1,this.type=null,this.value=null,this.length=null,this.maxLength=null,this.minLength=null,this.kerning=null,this.align="left",this.padLeft=0,this.padRight=0,this.index=null,this.first=null,this.last=null,typeof t20=="string")this.value=t20;else for(var r5 in t20)this[r5]=t20[r5];return Au4(this.length)&&(this.length=Math.round(this.overallOutputLength*Su4(this.length))),Au4(this.minLength)&&(this.minLength=Math.round(this.overallOutputLength*Su4(this.minLength))),Au4(this.maxLength)&&(this.maxLength=Math.round(this.overallOutputLength*Su4(this.maxLength))),this}s(Je8,"TemplateItem"),Je8.prototype={},Je8.prototype.getBaseLength=function(){var t20=this.length;return t20==null&&typeof this.value=="string"&&this.maxLength==null&&this.minLength==null&&(t20=p03(this.value)),t20},Je8.prototype.getLength=function(){var t20=this.getBaseLength();return t20==null?null:t20+this.padLeft+this.padRight},Je8.prototype.getMaxLength=function(){return this.maxLength==null?null:this.maxLength+this.padLeft+this.padRight},Je8.prototype.getMinLength=function(){return this.minLength==null?null:this.minLength+this.padLeft+this.padRight};}),Tu=c((RE5,Do6)=>{var Bt6=Un(),m02=Dr(),so5=wu(),Xe8=ro(),g03=io();function F0(t20){return function(e5){return y03(e5,t20)}}s(F0,"renderValueWithValues");var C02=Do6.exports=function(t20,e5,r5){var u5=x02(t20,e5,r5),n10=u5.map(F0(r5)).join("");return Bt6.left(so5(n10,t20),t20)};function no6(t20){var e5=t20.type[0].toUpperCase()+t20.type.slice(1);return "pre"+e5}s(no6,"preType");function oo7(t20){var e5=t20.type[0].toUpperCase()+t20.type.slice(1);return "post"+e5}s(oo7,"postType");function E0(t20,e5){if(t20.type)return e5[no6(t20)]||e5[oo7(t20)]}s(E0,"hasPreOrPost");function b02(t20,e5){var r5=Object.assign({},t20),u5=Object.create(e5),n10=[],o10=no6(r5),i10=oo7(r5);return u5[o10]&&(n10.push({value:u5[o10]}),u5[o10]=null),r5.minLength=null,r5.length=null,r5.maxLength=null,n10.push(r5),u5[r5.type]=u5[r5.type],u5[i10]&&(n10.push({value:u5[i10]}),u5[i10]=null),function(D10,a5,l7){return C02(l7,n10,u5)}}s(b02,"generatePreAndPost");function x02(t20,e5,r5){function u5(d7,m7,g5){var F8=new g03(d7,t20),E5=F8.type;if(F8.value==null)if(E5 in r5)F8.value=r5[E5];else {if(F8.default==null)throw new Xe8.MissingTemplateValue(F8,r5);F8.value=F8.default;}return F8.value==null||F8.value===""?null:(F8.index=m7,F8.first=m7===0,F8.last=m7===g5.length-1,E0(F8,r5)&&(F8.value=b02(F8,r5)),F8)}s(u5,"cloneAndObjectify");var n10=e5.map(u5).filter(function(d7){return d7!=null}),o10=t20,i10=n10.length;function D10(d7){d7>o10&&(d7=o10),o10-=d7;}s(D10,"consumeSpace");function a5(d7,m7){if(d7.finished)throw new Xe8.Internal("Tried to finish template item that was already finished");if(m7===1/0)throw new Xe8.Internal("Length of template item cannot be infinity");if(m7!=null&&(d7.length=m7),d7.minLength=null,d7.maxLength=null,--i10,d7.finished=!0,d7.length==null&&(d7.length=d7.getBaseLength()),d7.length==null)throw new Xe8.Internal("Finished template items must have a length");D10(d7.getLength());}s(a5,"finishSizing"),n10.forEach(function(d7){if(d7.kerning){var m7=d7.first?0:n10[d7.index-1].padRight;!d7.first&&m7<d7.kerning&&(d7.padLeft=d7.kerning-m7),d7.last||(d7.padRight=d7.kerning);}}),n10.forEach(function(d7){d7.getBaseLength()!=null&&a5(d7);});var l7=0,h8,p7;do h8=!1,p7=Math.round(o10/i10),n10.forEach(function(d7){d7.finished||d7.maxLength&&d7.getMaxLength()<p7&&(a5(d7,d7.maxLength),h8=!0);});while(h8&&l7++<n10.length);if(h8)throw new Xe8.Internal("Resize loop iterated too many times while determining maxLength");l7=0;do h8=!1,p7=Math.round(o10/i10),n10.forEach(function(d7){d7.finished||d7.minLength&&d7.getMinLength()>=p7&&(a5(d7,d7.minLength),h8=!0);});while(h8&&l7++<n10.length);if(h8)throw new Xe8.Internal("Resize loop iterated too many times while determining minLength");return p7=Math.round(o10/i10),n10.forEach(function(d7){d7.finished||a5(d7,p7);}),n10}s(x02,"prepareItems");function v0(t20,e5,r5){return m02("OON",arguments),t20.type?t20.value(e5,e5[t20.type+"Theme"]||{},r5):t20.value(e5,{},r5)}s(v0,"renderFunction");function y03(t20,e5){var r5=t20.getBaseLength(),u5=typeof t20.value=="function"?v0(t20,e5,r5):t20.value;if(u5==null||u5==="")return "";var n10=Bt6[t20.align]||Bt6.left,o10=t20.padLeft?Bt6.left("",t20.padLeft):"",i10=t20.padRight?Bt6.right("",t20.padRight):"",D10=so5(String(u5),r5),a5=n10(D10,r5);return o10+a5+i10}s(y03,"renderValue");}),lo=c((NE3,ao7)=>{var Pe8=ir(),B02=Tu(),lr6=Dr(),be8=ao7.exports=function(t20,e5,r5){r5||(r5=80),lr6("OAN",[t20,e5,r5]),this.showing=!1,this.theme=t20,this.width=r5,this.template=e5;};be8.prototype={},be8.prototype.setTheme=function(t20){lr6("O",[t20]),this.theme=t20;},be8.prototype.setTemplate=function(t20){lr6("A",[t20]),this.template=t20;},be8.prototype.setWidth=function(t20){lr6("N",[t20]),this.width=t20;},be8.prototype.hide=function(){return Pe8.gotoSOL()+Pe8.eraseLine()},be8.prototype.hideCursor=Pe8.hideCursor,be8.prototype.showCursor=Pe8.showCursor,be8.prototype.show=function(t20){var e5=Object.create(this.theme);for(var r5 in t20)e5[r5]=t20[r5];return B02(this.width,this.template,e5).trim()+Pe8.color("reset")+Pe8.eraseLine()+Pe8.gotoSOL()};}),co=c((GE4,ho6)=>{var w03=k("os");ho6.exports=function(){if(w03.type()=="Windows_NT")return !1;var t20=/UTF-?8$/i,e5=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return t20.test(e5)};}),mo=c((WE4,po5)=>{po5.exports=fo6({alwaysReturn:!0},fo6);function Qe9(t20,e5){return t20.level=0,t20.hasBasic=!1,t20.has256=!1,t20.has16m=!1,e5.alwaysReturn?t20:!1}s(Qe9,"hasNone");function hr6(t20){return t20.hasBasic=!0,t20.has256=!1,t20.has16m=!1,t20.level=1,t20}s(hr6,"hasBasic");function et8(t20){return t20.hasBasic=!0,t20.has256=!0,t20.has16m=!1,t20.level=2,t20}s(et8,"has256");function cr5(t20){return t20.hasBasic=!0,t20.has256=!0,t20.has16m=!0,t20.level=3,t20}s(cr5,"has16m");function fo6(t20,e5){if(t20=t20||{},e5=e5||{},typeof t20.level=="number")switch(t20.level){case 0:return Qe9(e5,t20);case 1:return hr6(e5);case 2:return et8(e5);case 3:return cr5(e5)}if(e5.level=0,e5.hasBasic=!1,e5.has256=!1,e5.has16m=!1,typeof process>"u"||!process||!process.stdout||!process.env||!process.platform)return Qe9(e5,t20);var r5=t20.env||process.env,u5=t20.stream||process.stdout,n10=t20.term||r5.TERM||"",o10=t20.platform||process.platform;if(!t20.ignoreTTY&&!u5.isTTY||!t20.ignoreDumb&&n10==="dumb"&&!r5.COLORTERM)return Qe9(e5,t20);if(o10==="win32")return hr6(e5);if(r5.TMUX)return et8(e5);if(!t20.ignoreCI&&(r5.CI||r5.TEAMCITY_VERSION))return r5.TRAVIS?et8(e5):Qe9(e5,t20);switch(r5.TERM_PROGRAM){case"iTerm.app":var i10=r5.TERM_PROGRAM_VERSION||"0.";return /^[0-2]\./.test(i10)?et8(e5):cr5(e5);case"HyperTerm":case"Hyper":return cr5(e5);case"MacTerm":return cr5(e5);case"Apple_Terminal":return et8(e5)}return /^xterm-256/.test(n10)?et8(e5):/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(n10)||r5.COLORTERM?hr6(e5):Qe9(e5,t20)}s(fo6,"colorSupport");}),Fo=c((UE4,go6)=>{var A02=mo();go6.exports=A02().hasBasic;}),xe,Co=wn(()=>{xe=[],xe.push("SIGHUP","SIGINT","SIGTERM"),process.platform!=="win32"&&xe.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&xe.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");}),Eo={};tr(Eo,{load:()=>O0,onExit:()=>$0,signals:()=>xe,unload:()=>_0});var dr,$u,Ou,S0,_u,fr,T0,Iu,Lu,ku,$0,O0,_0,bo=wn(()=>{Co(),dr=s(t20=>!!t20&&typeof t20=="object"&&typeof t20.removeListener=="function"&&typeof t20.emit=="function"&&typeof t20.reallyExit=="function"&&typeof t20.listeners=="function"&&typeof t20.kill=="function"&&typeof t20.pid=="number"&&typeof t20.on=="function","processOk"),$u=Symbol.for("signal-exit emitter"),Ou=globalThis,S0=Object.defineProperty.bind(Object),_u=class{static{s(this,"Emitter");}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Ou[$u])return Ou[$u];S0(Ou,$u,{value:this,writable:!1,enumerable:!1,configurable:!1});}on(e5,r5){this.listeners[e5].push(r5);}removeListener(e5,r5){let u5=this.listeners[e5],n10=u5.indexOf(r5);n10!==-1&&(n10===0&&u5.length===1?u5.length=0:u5.splice(n10,1));}emit(e5,r5,u5){if(this.emitted[e5])return !1;this.emitted[e5]=!0;let n10=!1;for(let o10 of this.listeners[e5])n10=o10(r5,u5)===!0||n10;return e5==="exit"&&(n10=this.emit("afterExit",r5,u5)||n10),n10}},fr=class{static{s(this,"SignalExitBase");}},T0=s(t20=>({onExit(e5,r5){return t20.onExit(e5,r5)},load(){return t20.load()},unload(){return t20.unload()}}),"signalExitWrap"),Iu=class extends fr{static{s(this,"SignalExitFallback");}onExit(){return ()=>{}}load(){}unload(){}},Lu=class extends fr{static{s(this,"SignalExit");}#u=ku.platform==="win32"?"SIGINT":"SIGHUP";#t=new _u;#e;#s;#n;#i={};#r=!1;constructor(e5){super(),this.#e=e5,this.#i={};for(let r5 of xe)this.#i[r5]=()=>{let u5=this.#e.listeners(r5),{count:n10}=this.#t,o10=e5;if(typeof o10.__signal_exit_emitter__=="object"&&typeof o10.__signal_exit_emitter__.count=="number"&&(n10+=o10.__signal_exit_emitter__.count),u5.length===n10){this.unload();let i10=this.#t.emit("exit",null,r5),D10=r5==="SIGHUP"?this.#u:r5;i10||e5.kill(e5.pid,D10);}};this.#n=e5.reallyExit,this.#s=e5.emit;}onExit(e5,r5){if(!dr(this.#e))return ()=>{};this.#r===!1&&this.load();let u5=r5?.alwaysLast?"afterExit":"exit";return this.#t.on(u5,e5),()=>{this.#t.removeListener(u5,e5),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload();}}load(){if(!this.#r){this.#r=!0,this.#t.count+=1;for(let e5 of xe)try{let r5=this.#i[e5];r5&&this.#e.on(e5,r5);}catch{}this.#e.emit=(e5,...r5)=>this.#D(e5,...r5),this.#e.reallyExit=e5=>this.#o(e5);}}unload(){this.#r&&(this.#r=!1,xe.forEach(e5=>{let r5=this.#i[e5];if(!r5)throw new Error("Listener not defined for signal: "+e5);try{this.#e.removeListener(e5,r5);}catch{}}),this.#e.emit=this.#s,this.#e.reallyExit=this.#n,this.#t.count-=1);}#o(e5){return dr(this.#e)?(this.#e.exitCode=e5||0,this.#t.emit("exit",this.#e.exitCode,null),this.#n.call(this.#e,this.#e.exitCode)):0}#D(e5,...r5){let u5=this.#s;if(e5==="exit"&&dr(this.#e)){typeof r5[0]=="number"&&(this.#e.exitCode=r5[0]);let n10=u5.call(this.#e,e5,...r5);return this.#t.emit("exit",this.#e.exitCode,null),n10}else return u5.call(this.#e,e5,...r5)}},ku=globalThis.process,{onExit:$0,load:O0,unload:_0}=T0(dr(ku)?new Lu(ku):new Iu);}),vo=c((KE4,xo6)=>{xo6.exports=s(function(e5,r5){return e5[r5%e5.length]},"spin");}),wo=c((JE3,Bo7)=>{var I02=Dr(),L02=Tu(),k02=wu(),P03=Ze();Bo7.exports=function(t20,e5,r5){if(I02("ONN",[t20,e5,r5]),r5<0&&(r5=0),r5>1&&(r5=1),e5<=0)return "";var u5=Math.round(e5*r5),n10=e5-u5,o10=[{type:"complete",value:yo5(t20.complete,u5),length:u5},{type:"remaining",value:yo5(t20.remaining,n10),length:n10}];return L02(e5,o10,t20)};function yo5(t20,e5){var r5="",u5=e5;do u5%2&&(r5+=t20),u5=Math.floor(u5/2),t20+=t20;while(u5&&P03(r5)<e5);return k02(r5,e5)}s(yo5,"repeat");}),So=c((QE3,Ao6)=>{var M02=vo(),R0=wo();Ao6.exports={activityIndicator:s(function(t20,e5){if(t20.spun!=null)return M02(e5,t20.spun)},"activityIndicator"),progressbar:s(function(t20,e5,r5){if(t20.completed!=null)return R0(e5,r5,t20.completed)},"progressbar")};}),$o=c((t82,To6)=>{To6.exports=function(){return z14.newThemeSet()};var z14={};z14.baseTheme=So(),z14.newTheme=function(t20,e5){return e5||(e5=t20,t20=this.baseTheme),Object.assign({},t20,e5)},z14.getThemeNames=function(){return Object.keys(this.themes)},z14.addTheme=function(t20,e5,r5){this.themes[t20]=this.newTheme(e5,r5);},z14.addToAllThemes=function(t20){var e5=this.themes;Object.keys(e5).forEach(function(r5){Object.assign(e5[r5],t20);}),Object.assign(this.baseTheme,t20);},z14.getTheme=function(t20){if(!this.themes[t20])throw this.newMissingThemeError(t20);return this.themes[t20]},z14.setDefault=function(t20,e5){e5==null&&(e5=t20,t20={});var r5=t20.platform==null?"fallback":t20.platform,u5=!!t20.hasUnicode,n10=!!t20.hasColor;this.defaults[r5]||(this.defaults[r5]={true:{},false:{}}),this.defaults[r5][u5][n10]=e5;},z14.getDefault=function(t20){t20||(t20={});var e5=t20.platform||process.platform,r5=this.defaults[e5]||this.defaults.fallback,u5=!!t20.hasUnicode,n10=!!t20.hasColor;if(!r5)throw this.newMissingDefaultThemeError(e5,u5,n10);if(!r5[u5][n10]){if(u5&&n10&&r5[!u5][n10])u5=!1;else if(u5&&n10&&r5[u5][!n10])n10=!1;else if(u5&&n10&&r5[!u5][!n10])u5=!1,n10=!1;else if(u5&&!n10&&r5[!u5][n10])u5=!1;else if(!u5&&n10&&r5[u5][!n10])n10=!1;else if(r5===this.defaults.fallback)throw this.newMissingDefaultThemeError(e5,u5,n10)}return r5[u5][n10]?this.getTheme(r5[u5][n10]):this.getDefault(Object.assign({},t20,{platform:"fallback"}))},z14.newMissingThemeError=s(function t20(e5){var r5=new Error('Could not find a gauge theme named "'+e5+'"');return Error.captureStackTrace.call(r5,t20),r5.theme=e5,r5.code="EMISSINGTHEME",r5},"newMissingThemeError"),z14.newMissingDefaultThemeError=s(function t20(e5,r5,u5){var n10=new Error(`Could not find a gauge theme for your platform/unicode/color use combo:
|
|
693
693
|
platform = `+e5+`
|
|
@@ -2602,7 +2602,7 @@ Filtered results for: ${this.inputValue?this.inputValue:yt8.gray("Enter somethin
|
|
|
2602
2602
|
`}renderOption(A11,e5,r5){let i10;return e5.disabled?i10=A11===r5?yt8.gray().underline(e5.title):yt8.strikethrough().gray(e5.title):i10=A11===r5?yt8.cyan().underline(e5.title):e5.title,(e5.selected?yt8.green(Vr6.radioOn):Vr6.radioOff)+" "+i10}renderDoneOrInstructions(){if(this.done)return this.value.filter(e5=>e5.selected).map(e5=>e5.title).join(", ");let A11=[yt8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&A11.push(yt8.yellow(this.warn)),A11.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(JU.hide),super.render();let A11=[vm3.symbol(this.done,this.aborted),yt8.bold(this.msg),vm3.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(A11+=yt8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),A11+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+A11),this.clear=Rm2(A11,this.out.columns);}};Lm3.exports=rI2;}),Gm2=m2((e62,_m3)=>{var Ym2=yA2(),TU=wt7(),{style:Pm2,clear:HU}=Ge6(),{erase:jU,cursor:Um2}=SA3(),iI2=class extends TU{static{s7(this,"ConfirmPrompt");}constructor(A11={}){super(A11),this.msg=A11.message,this.value=A11.initial,this.initialValue=!!A11.initial,this.yesMsg=A11.yes||"yes",this.yesOption=A11.yesOption||"(Y/n)",this.noMsg=A11.no||"no",this.noOption=A11.noOption||"(y/N)",this.render();}reset(){this.value=this.initialValue,this.fire(),this.render();}exit(){this.abort();}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
2603
2603
|
`),this.close();}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
2604
2604
|
`),this.close();}_(A11,e5){return A11.toLowerCase()==="y"?(this.value=!0,this.submit()):A11.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Um2.hide):this.out.write(HU(this.outputText,this.out.columns)),super.render(),this.outputText=[Pm2.symbol(this.done,this.aborted),Ym2.bold(this.msg),Pm2.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Ym2.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(jU.line+Um2.to(0)+this.outputText));}};_m3.exports=iI2;}),Om2=m2((r62,Jm)=>{Jm.exports={TextPrompt:_w2(),SelectPrompt:Tw2(),TogglePrompt:zw2(),DatePrompt:dm2(),NumberPrompt:ym2(),MultiselectPrompt:Zc(),AutocompletePrompt:Mm2(),AutocompleteMultiselectPrompt:xm3(),ConfirmPrompt:Gm2()};}),Hm2=m2(Tm2=>{var ae6=Tm2,qU=Om2(),Ro7=s7(t20=>t20,"noop");function At9(t20,A11,e5={}){return new Promise((r5,i10)=>{let n10=new qU[t20](A11),o10=e5.onAbort||Ro7,g5=e5.onSubmit||Ro7,C10=e5.onExit||Ro7;n10.on("state",A11.onState||Ro7),n10.on("submit",I13=>r5(g5(I13))),n10.on("exit",I13=>r5(C10(I13))),n10.on("abort",I13=>i10(o10(I13)));})}s7(At9,"toPrompt"),ae6.text=t20=>At9("TextPrompt",t20),ae6.password=t20=>(t20.style="password",ae6.text(t20)),ae6.invisible=t20=>(t20.style="invisible",ae6.text(t20)),ae6.number=t20=>At9("NumberPrompt",t20),ae6.date=t20=>At9("DatePrompt",t20),ae6.confirm=t20=>At9("ConfirmPrompt",t20),ae6.list=t20=>{let A11=t20.separator||",";return At9("TextPrompt",t20,{onSubmit:s7(e5=>e5.split(A11).map(r5=>r5.trim()),"onSubmit")})},ae6.toggle=t20=>At9("TogglePrompt",t20),ae6.select=t20=>At9("SelectPrompt",t20),ae6.multiselect=t20=>{t20.choices=[].concat(t20.choices||[]);let A11=s7(e5=>e5.filter(r5=>r5.selected).map(r5=>r5.value),"toSelected");return At9("MultiselectPrompt",t20,{onAbort:A11,onSubmit:A11})},ae6.autocompleteMultiselect=t20=>{t20.choices=[].concat(t20.choices||[]);let A11=s7(e5=>e5.filter(r5=>r5.selected).map(r5=>r5.value),"toSelected");return At9("AutocompleteMultiselectPrompt",t20,{onAbort:A11,onSubmit:A11})};var zU=s7((t20,A11)=>Promise.resolve(A11.filter(e5=>e5.title.slice(0,t20.length).toLowerCase()===t20.toLowerCase())),"byTitle");ae6.autocomplete=t20=>(t20.suggest=t20.suggest||zU,t20.choices=[].concat(t20.choices||[]),At9("AutocompletePrompt",t20));}),zm=m2((n62,qm2)=>{var sI2=Hm2(),WU=["suggest","format","onState","validate","onRender","type"],jm3=s7(()=>{},"noop");async function Ht8(t20=[],{onSubmit:A11=jm3,onCancel:e5=jm3}={}){let r5={},i10=Ht8._override||{};t20=[].concat(t20);let n10,o10,g5,C10,I13,E5,Q12=s7(async(B11,p7,w8=!1)=>{if(!(!w8&&B11.validate&&B11.validate(p7)!==!0))return B11.format?await B11.format(p7,r5):p7},"getFormattedAnswer");for(o10 of t20)if({name:C10,type:I13}=o10,typeof I13=="function"&&(I13=await I13(n10,{...r5},o10),o10.type=I13),!!I13){for(let B11 in o10){if(WU.includes(B11))continue;let p7=o10[B11];o10[B11]=typeof p7=="function"?await p7(n10,{...r5},E5):p7;}if(E5=o10,typeof o10.message!="string")throw new Error("prompt message is required");if({name:C10,type:I13}=o10,sI2[I13]===void 0)throw new Error(`prompt type (${I13}) is not defined`);if(i10[o10.name]!==void 0&&(n10=await Q12(o10,i10[o10.name]),n10!==void 0)){r5[C10]=n10;continue}try{n10=Ht8._injected?VU(Ht8._injected,o10.initial):await sI2[I13](o10),r5[C10]=n10=await Q12(o10,n10,!0),g5=await A11(o10,n10,r5);}catch{g5=!await e5(o10,r5);}if(g5)return r5}return r5}s7(Ht8,"prompt");function VU(t20,A11){let e5=t20.shift();if(e5 instanceof Error)throw e5;return e5===void 0?A11:e5}s7(VU,"getInjectedAnswer");function XU(t20){Ht8._injected=(Ht8._injected||[]).concat(t20);}s7(XU,"inject");function $U(t20){Ht8._override=Object.assign({},t20);}s7($U,"override"),qm2.exports=Object.assign(Ht8,{prompt:Ht8,prompts:sI2,inject:XU,override:$U});}),Vm2=m2((g62,Wm3)=>{function ZU(t20){t20=(Array.isArray(t20)?t20:t20.split(".")).map(Number);let A11=0,e5=process.versions.node.split(".").map(Number);for(;A11<t20.length;A11++){if(e5[A11]>t20[A11])return !1;if(t20[A11]>e5[A11])return !0}return !1}s7(ZU,"isNodeLT"),Wm3.exports=ZU("8.6.0")?dw2():zm();});function aI2(t20){if(!Array.isArray(t20))throw new TypeError(`Expected an array, got \`${typeof t20}\`.`);for(let i10 of t20)oI2(i10);let A11=t20.some(({readableObjectMode:i10})=>i10),e5=r_2(t20,A11),r5=new nI2({objectMode:A11,writableHighWaterMark:e5,readableHighWaterMark:e5});for(let i10 of t20)r5.add(i10);return t20.length===0&&ty(r5),r5}var r_2,nI2,i_,s_,n_2,oI2,o_,Ay3,g_2,a_2,C_2,ey,ty,gI2,ry,c_,vo4,Xm,$m2,iy2=ue6(()=>{s7(aI2,"mergeStreams"),r_2=s7((t20,A11)=>{if(t20.length===0)return 16384;let e5=t20.filter(({readableObjectMode:r5})=>r5===A11).map(({readableHighWaterMark:r5})=>r5);return Math.max(...e5)},"getHighWaterMark"),nI2=class extends PassThrough{static{s7(this,"MergedStream");}#A=new Set([]);#e=new Set([]);#t=new Set([]);#r;add(A11){oI2(A11),!this.#A.has(A11)&&(this.#A.add(A11),this.#r??=i_(this,this.#A),o_({passThroughStream:this,stream:A11,streams:this.#A,ended:this.#e,aborted:this.#t,onFinished:this.#r}),A11.pipe(this,{end:!1}));}remove(A11){return oI2(A11),this.#A.has(A11)?(A11.unpipe(this),!0):!1}},i_=s7(async(t20,A11)=>{vo4(t20,Xm);let e5=new AbortController;try{await Promise.race([s_(t20,e5),n_2(t20,A11,e5)]);}finally{e5.abort(),vo4(t20,-Xm);}},"onMergedStreamFinished"),s_=s7(async(t20,{signal:A11})=>{await finished(t20,{signal:A11,cleanup:!0});},"onMergedStreamEnd"),n_2=s7(async(t20,A11,{signal:e5})=>{for await(let[r5]of on$1(t20,"unpipe",{signal:e5}))A11.has(r5)&&r5.emit(ey);},"onInputStreamsUnpipe"),oI2=s7(t20=>{if(typeof t20?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof t20}\`.`)},"validateStream"),o_=s7(async({passThroughStream:t20,stream:A11,streams:e5,ended:r5,aborted:i10,onFinished:n10})=>{vo4(t20,$m2);let o10=new AbortController;try{await Promise.race([g_2(n10,A11),a_2({passThroughStream:t20,stream:A11,streams:e5,ended:r5,aborted:i10,controller:o10}),C_2({stream:A11,streams:e5,ended:r5,aborted:i10,controller:o10})]);}finally{o10.abort(),vo4(t20,-$m2);}e5.size===r5.size+i10.size&&(r5.size===0&&i10.size>0?gI2(t20):ty(t20));},"endWhenStreamsDone"),Ay3=s7(t20=>t20?.code==="ERR_STREAM_PREMATURE_CLOSE","isAbortError"),g_2=s7(async(t20,A11)=>{try{await t20,gI2(A11);}catch(e5){Ay3(e5)?gI2(A11):ry(A11,e5);}},"afterMergedStreamFinished"),a_2=s7(async({passThroughStream:t20,stream:A11,streams:e5,ended:r5,aborted:i10,controller:{signal:n10}})=>{try{await finished(A11,{signal:n10,cleanup:!0,readable:!0,writable:!1}),e5.has(A11)&&r5.add(A11);}catch(o10){if(n10.aborted||!e5.has(A11))return;Ay3(o10)?i10.add(A11):ry(t20,o10);}},"onInputStreamEnd"),C_2=s7(async({stream:t20,streams:A11,ended:e5,aborted:r5,controller:{signal:i10}})=>{await once(t20,ey,{signal:i10}),A11.delete(t20),e5.delete(t20),r5.delete(t20);},"onInputStreamUnpipe"),ey=Symbol("unpipe"),ty=s7(t20=>{t20.writable&&t20.end();},"endStream"),gI2=s7(t20=>{(t20.readable||t20.writable)&&t20.destroy();},"abortStream"),ry=s7((t20,A11)=>{t20.destroyed||(t20.once("error",c_),t20.destroy(A11));},"errorStream"),c_=s7(()=>{},"noop"),vo4=s7((t20,A11)=>{let e5=t20.getMaxListeners();e5!==0&&e5!==Number.POSITIVE_INFINITY&&t20.setMaxListeners(e5+A11);},"updateMaxListeners"),Xm=2,$m2=1;}),sy=m2(Xr7=>{Object.defineProperty(Xr7,"__esModule",{value:!0}),Xr7.splitWhen=Xr7.flatten=void 0;function I_2(t20){return t20.reduce((A11,e5)=>[].concat(A11,e5),[])}s7(I_2,"flatten"),Xr7.flatten=I_2;function h_(t20,A11){let e5=[[]],r5=0;for(let i10 of t20)A11(i10)?(r5++,e5[r5]=[]):e5[r5].push(i10);return e5}s7(h_,"splitWhen"),Xr7.splitWhen=h_;}),ny=m2(Lo7=>{Object.defineProperty(Lo7,"__esModule",{value:!0}),Lo7.isEnoentCodeError=void 0;function l_2(t20){return t20.code==="ENOENT"}s7(l_2,"isEnoentCodeError"),Lo7.isEnoentCodeError=l_2;}),oy=m2(xo6=>{Object.defineProperty(xo6,"__esModule",{value:!0}),xo6.createDirentFromStats=void 0;var CI2=class{static{s7(this,"DirentFromStats");}constructor(A11,e5){this.name=A11,this.isBlockDevice=e5.isBlockDevice.bind(e5),this.isCharacterDevice=e5.isCharacterDevice.bind(e5),this.isDirectory=e5.isDirectory.bind(e5),this.isFIFO=e5.isFIFO.bind(e5),this.isFile=e5.isFile.bind(e5),this.isSocket=e5.isSocket.bind(e5),this.isSymbolicLink=e5.isSymbolicLink.bind(e5);}};function E_2(t20,A11){return new CI2(t20,A11)}s7(E_2,"createDirentFromStats"),xo6.createDirentFromStats=E_2;}),cy=m2(MA2=>{Object.defineProperty(MA2,"__esModule",{value:!0}),MA2.convertPosixPathToPattern=MA2.convertWindowsPathToPattern=MA2.convertPathToPattern=MA2.escapePosixPath=MA2.escapeWindowsPath=MA2.escape=MA2.removeLeadingDotSegment=MA2.makeAbsolute=MA2.unixify=void 0;var u_=v11("os"),B_=v11("path"),gy2=u_.platform()==="win32",Q_=2,f_=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,d_=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,p_=/^\\\\([.?])/,w_2=/\\(?![!()+@[\]{}])/g;function m_2(t20){return t20.replace(/\\/g,"/")}s7(m_2,"unixify"),MA2.unixify=m_2;function y_(t20,A11){return B_.resolve(t20,A11)}s7(y_,"makeAbsolute"),MA2.makeAbsolute=y_;function D_(t20){if(t20.charAt(0)==="."){let A11=t20.charAt(1);if(A11==="/"||A11==="\\")return t20.slice(Q_)}return t20}s7(D_,"removeLeadingDotSegment"),MA2.removeLeadingDotSegment=D_,MA2.escape=gy2?cI2:II3;function cI2(t20){return t20.replace(d_,"\\$2")}s7(cI2,"escapeWindowsPath"),MA2.escapeWindowsPath=cI2;function II3(t20){return t20.replace(f_,"\\$2")}s7(II3,"escapePosixPath"),MA2.escapePosixPath=II3,MA2.convertPathToPattern=gy2?ay:Cy3;function ay(t20){return cI2(t20).replace(p_,"//$1").replace(w_2,"/")}s7(ay,"convertWindowsPathToPattern"),MA2.convertWindowsPathToPattern=ay;function Cy3(t20){return II3(t20)}s7(Cy3,"convertPosixPathToPattern"),MA2.convertPosixPathToPattern=Cy3;}),hy=m2((m62,Iy3)=>{Iy3.exports=s7(function(A11){if(typeof A11!="string"||A11==="")return !1;for(var e5;e5=/(\\).|([@?!+*]\(.*\))/g.exec(A11);){if(e5[2])return !0;A11=A11.slice(e5.index+e5[0].length);}return !1},"isExtglob");}),uy=m2((D63,Ey3)=>{var S_=hy(),ly={"{":"}","(":")","[":"]"},K_=s7(function(t20){if(t20[0]==="!")return !0;for(var A11=0,e5=-2,r5=-2,i10=-2,n10=-2,o10=-2;A11<t20.length;){if(t20[A11]==="*"||t20[A11+1]==="?"&&/[\].+)]/.test(t20[A11])||r5!==-1&&t20[A11]==="["&&t20[A11+1]!=="]"&&(r5<A11&&(r5=t20.indexOf("]",A11)),r5>A11&&(o10===-1||o10>r5||(o10=t20.indexOf("\\",A11),o10===-1||o10>r5)))||i10!==-1&&t20[A11]==="{"&&t20[A11+1]!=="}"&&(i10=t20.indexOf("}",A11),i10>A11&&(o10=t20.indexOf("\\",A11),o10===-1||o10>i10))||n10!==-1&&t20[A11]==="("&&t20[A11+1]==="?"&&/[:!=]/.test(t20[A11+2])&&t20[A11+3]!==")"&&(n10=t20.indexOf(")",A11),n10>A11&&(o10=t20.indexOf("\\",A11),o10===-1||o10>n10))||e5!==-1&&t20[A11]==="("&&t20[A11+1]!=="|"&&(e5<A11&&(e5=t20.indexOf("|",A11)),e5!==-1&&t20[e5+1]!==")"&&(n10=t20.indexOf(")",e5),n10>e5&&(o10=t20.indexOf("\\",e5),o10===-1||o10>n10))))return !0;if(t20[A11]==="\\"){var g5=t20[A11+1];A11+=2;var C10=ly[g5];if(C10){var I13=t20.indexOf(C10,A11);I13!==-1&&(A11=I13+1);}if(t20[A11]==="!")return !0}else A11++;}return !1},"strictCheck"),F_2=s7(function(t20){if(t20[0]==="!")return !0;for(var A11=0;A11<t20.length;){if(/[*?{}()[\]]/.test(t20[A11]))return !0;if(t20[A11]==="\\"){var e5=t20[A11+1];A11+=2;var r5=ly[e5];if(r5){var i10=t20.indexOf(r5,A11);i10!==-1&&(A11=i10+1);}if(t20[A11]==="!")return !0}else A11++;}return !1},"relaxedCheck");Ey3.exports=s7(function(A11,e5){if(typeof A11!="string"||A11==="")return !1;if(S_(A11))return !0;var r5=K_;return e5&&e5.strict===!1&&(r5=F_2),r5(A11)},"isGlob");}),Qy3=m2((K63,By3)=>{var b_2=uy(),k_2=v11("path").posix.dirname,N_=v11("os").platform()==="win32",hI2="/",M_=/\\/g,R_2=/[\{\[].*[\}\]]$/,v_=/(^|[^\\])([\{\[]|\([^\)]+$)/,L_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;By3.exports=s7(function(A11,e5){var r5=Object.assign({flipBackslashes:!0},e5);r5.flipBackslashes&&N_&&A11.indexOf(hI2)<0&&(A11=A11.replace(M_,hI2)),R_2.test(A11)&&(A11+=hI2),A11+="a";do A11=k_2(A11);while(b_2(A11)||v_.test(A11));return A11.replace(L_,"$1")},"globParent");}),Yo4=m2(me9=>{me9.isInteger=t20=>typeof t20=="number"?Number.isInteger(t20):typeof t20=="string"&&t20.trim()!==""?Number.isInteger(Number(t20)):!1,me9.find=(t20,A11)=>t20.nodes.find(e5=>e5.type===A11),me9.exceedsLimit=(t20,A11,e5=1,r5)=>r5===!1||!me9.isInteger(t20)||!me9.isInteger(A11)?!1:(Number(A11)-Number(t20))/Number(e5)>=r5,me9.escapeNode=(t20,A11=0,e5)=>{let r5=t20.nodes[A11];r5&&(e5&&r5.type===e5||r5.type==="open"||r5.type==="close")&&r5.escaped!==!0&&(r5.value="\\"+r5.value,r5.escaped=!0);},me9.encloseBrace=t20=>t20.type!=="brace"?!1:t20.commas>>0+t20.ranges>>0===0?(t20.invalid=!0,!0):!1,me9.isInvalidBrace=t20=>t20.type!=="brace"?!1:t20.invalid===!0||t20.dollar?!0:t20.commas>>0+t20.ranges>>0===0||t20.open!==!0||t20.close!==!0?(t20.invalid=!0,!0):!1,me9.isOpenOrClose=t20=>t20.type==="open"||t20.type==="close"?!0:t20.open===!0||t20.close===!0,me9.reduce=t20=>t20.reduce((A11,e5)=>(e5.type==="text"&&A11.push(e5.value),e5.type==="range"&&(e5.type="text"),A11),[]),me9.flatten=(...t20)=>{let A11=[],e5=s7(r5=>{for(let i10=0;i10<r5.length;i10++){let n10=r5[i10];if(Array.isArray(n10)){e5(n10);continue}n10!==void 0&&A11.push(n10);}return A11},"flat");return e5(t20),A11};}),Po5=m2((N63,dy)=>{var fy=Yo4();dy.exports=(t20,A11={})=>{let e5=s7((r5,i10={})=>{let n10=A11.escapeInvalid&&fy.isInvalidBrace(i10),o10=r5.invalid===!0&&A11.escapeInvalid===!0,g5="";if(r5.value)return (n10||o10)&&fy.isOpenOrClose(r5)?"\\"+r5.value:r5.value;if(r5.value)return r5.value;if(r5.nodes)for(let C10 of r5.nodes)g5+=e5(C10);return g5},"stringify");return e5(t20)};}),wy2=m2((R62,py)=>{py.exports=function(t20){return typeof t20=="number"?t20-t20===0:typeof t20=="string"&&t20.trim()!==""?Number.isFinite?Number.isFinite(+t20):isFinite(+t20):!1};}),Ny2=m2((v63,ky2)=>{var my=wy2(),lr6=s7((t20,A11,e5)=>{if(my(t20)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A11===void 0||t20===A11)return String(t20);if(my(A11)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r5={relaxZeros:!0,...e5};typeof r5.strictZeros=="boolean"&&(r5.relaxZeros=r5.strictZeros===!1);let i10=String(r5.relaxZeros),n10=String(r5.shorthand),o10=String(r5.capture),g5=String(r5.wrap),C10=t20+":"+A11+"="+i10+n10+o10+g5;if(lr6.cache.hasOwnProperty(C10))return lr6.cache[C10].result;let I13=Math.min(t20,A11),E5=Math.max(t20,A11);if(Math.abs(I13-E5)===1){let D10=t20+"|"+A11;return r5.capture?`(${D10})`:r5.wrap===!1?D10:`(?:${D10})`}let Q12=by(t20)||by(A11),B11={min:t20,max:A11,a:I13,b:E5},p7=[],w8=[];if(Q12&&(B11.isPadded=Q12,B11.maxLen=String(B11.max).length),I13<0){let D10=E5<0?Math.abs(E5):1;w8=yy2(D10,Math.abs(I13),B11,r5),I13=B11.a=0;}return E5>=0&&(p7=yy2(I13,E5,B11,r5)),B11.negatives=w8,B11.positives=p7,B11.result=x_(w8,p7),r5.capture===!0?B11.result=`(${B11.result})`:r5.wrap!==!1&&p7.length+w8.length>1&&(B11.result=`(?:${B11.result})`),lr6.cache[C10]=B11,B11.result},"toRegexRange");function x_(t20,A11,e5){let r5=lI2(t20,A11,"-",!1)||[],i10=lI2(A11,t20,"",!1)||[],n10=lI2(t20,A11,"-?",!0)||[];return r5.concat(n10).concat(i10).join("|")}s7(x_,"collatePatterns");function Y_2(t20,A11){let e5=1,r5=1,i10=Sy2(t20,e5),n10=new Set([A11]);for(;t20<=i10&&i10<=A11;)n10.add(i10),e5+=1,i10=Sy2(t20,e5);for(i10=Ky2(A11+1,r5)-1;t20<i10&&i10<=A11;)n10.add(i10),r5+=1,i10=Ky2(A11+1,r5)-1;return n10=[...n10],n10.sort(__2),n10}s7(Y_2,"splitToRanges");function P_(t20,A11,e5){if(t20===A11)return {pattern:t20,count:[],digits:0};let r5=U_(t20,A11),i10=r5.length,n10="",o10=0;for(let g5=0;g5<i10;g5++){let[C10,I13]=r5[g5];C10===I13?n10+=C10:C10!=="0"||I13!=="9"?n10+=G_2(C10,I13):o10++;}return o10&&(n10+=e5.shorthand===!0?"\\d":"[0-9]"),{pattern:n10,count:[o10],digits:i10}}s7(P_,"rangeToPattern");function yy2(t20,A11,e5,r5){let i10=Y_2(t20,A11),n10=[],o10=t20,g5;for(let C10=0;C10<i10.length;C10++){let I13=i10[C10],E5=P_(String(o10),String(I13),r5),Q12="";if(!e5.isPadded&&g5&&g5.pattern===E5.pattern){g5.count.length>1&&g5.count.pop(),g5.count.push(E5.count[0]),g5.string=g5.pattern+Fy2(g5.count),o10=I13+1;continue}e5.isPadded&&(Q12=J_2(I13,e5,r5)),E5.string=Q12+E5.pattern+Fy2(E5.count),n10.push(E5),o10=I13+1,g5=E5;}return n10}s7(yy2,"splitToPatterns");function lI2(t20,A11,e5,r5,i10){let n10=[];for(let o10 of t20){let{string:g5}=o10;!r5&&!Dy3(A11,"string",g5)&&n10.push(e5+g5),r5&&Dy3(A11,"string",g5)&&n10.push(e5+g5);}return n10}s7(lI2,"filterPatterns");function U_(t20,A11){let e5=[];for(let r5=0;r5<t20.length;r5++)e5.push([t20[r5],A11[r5]]);return e5}s7(U_,"zip");function __2(t20,A11){return t20>A11?1:A11>t20?-1:0}s7(__2,"compare");function Dy3(t20,A11,e5){return t20.some(r5=>r5[A11]===e5)}s7(Dy3,"contains");function Sy2(t20,A11){return Number(String(t20).slice(0,-A11)+"9".repeat(A11))}s7(Sy2,"countNines");function Ky2(t20,A11){return t20-t20%Math.pow(10,A11)}s7(Ky2,"countZeros");function Fy2(t20){let[A11=0,e5=""]=t20;return e5||A11>1?`{${A11+(e5?","+e5:"")}}`:""}s7(Fy2,"toQuantifier");function G_2(t20,A11,e5){return `[${t20}${A11-t20===1?"":"-"}${A11}]`}s7(G_2,"toCharacterClass");function by(t20){return /^-?(0+)\d/.test(t20)}s7(by,"hasPadding");function J_2(t20,A11,e5){if(!A11.isPadded)return t20;let r5=Math.abs(A11.maxLen-String(t20).length),i10=e5.relaxZeros!==!1;switch(r5){case 0:return "";case 1:return i10?"0?":"0";case 2:return i10?"0{0,2}":"00";default:return i10?`0{0,${r5}}`:`0{${r5}}`}}s7(J_2,"padZeros"),lr6.cache={},lr6.clearCache=()=>lr6.cache={},ky2.exports=lr6;}),BI3=m2((x62,Py2)=>{var O_2=v11("util"),Ry2=Ny2(),My2=s7(t20=>t20!==null&&typeof t20=="object"&&!Array.isArray(t20),"isObject"),T_=s7(t20=>A11=>t20===!0?Number(A11):String(A11),"transform"),EI2=s7(t20=>typeof t20=="number"||typeof t20=="string"&&t20!=="","isValidValue"),ls4=s7(t20=>Number.isInteger(+t20),"isNumber"),uI2=s7(t20=>{let A11=`${t20}`,e5=-1;if(A11[0]==="-"&&(A11=A11.slice(1)),A11==="0")return !1;for(;A11[++e5]==="0";);return e5>0},"zeros"),H_2=s7((t20,A11,e5)=>typeof t20=="string"||typeof A11=="string"?!0:e5.stringify===!0,"stringify"),j_=s7((t20,A11,e5)=>{if(A11>0){let r5=t20[0]==="-"?"-":"";r5&&(t20=t20.slice(1)),t20=r5+t20.padStart(r5?A11-1:A11,"0");}return e5===!1?String(t20):t20},"pad"),_o7=s7((t20,A11)=>{let e5=t20[0]==="-"?"-":"";for(e5&&(t20=t20.slice(1),A11--);t20.length<A11;)t20="0"+t20;return e5?"-"+t20:t20},"toMaxLen"),q_=s7((t20,A11,e5)=>{t20.negatives.sort((g5,C10)=>g5<C10?-1:g5>C10?1:0),t20.positives.sort((g5,C10)=>g5<C10?-1:g5>C10?1:0);let r5=A11.capture?"":"?:",i10="",n10="",o10;return t20.positives.length&&(i10=t20.positives.map(g5=>_o7(String(g5),e5)).join("|")),t20.negatives.length&&(n10=`-(${r5}${t20.negatives.map(g5=>_o7(String(g5),e5)).join("|")})`),i10&&n10?o10=`${i10}|${n10}`:o10=i10||n10,A11.wrap?`(${r5}${o10})`:o10},"toSequence"),vy2=s7((t20,A11,e5,r5)=>{if(e5)return Ry2(t20,A11,{wrap:!1,...r5});let i10=String.fromCharCode(t20);if(t20===A11)return i10;let n10=String.fromCharCode(A11);return `[${i10}-${n10}]`},"toRange"),Ly3=s7((t20,A11,e5)=>{if(Array.isArray(t20)){let r5=e5.wrap===!0,i10=e5.capture?"":"?:";return r5?`(${i10}${t20.join("|")})`:t20.join("|")}return Ry2(t20,A11,e5)},"toRegex"),xy2=s7((...t20)=>new RangeError("Invalid range arguments: "+O_2.inspect(...t20)),"rangeError"),Yy2=s7((t20,A11,e5)=>{if(e5.strictRanges===!0)throw xy2([t20,A11]);return []},"invalidRange"),z_2=s7((t20,A11)=>{if(A11.strictRanges===!0)throw new TypeError(`Expected step "${t20}" to be a number`);return []},"invalidStep"),W_2=s7((t20,A11,e5=1,r5={})=>{let i10=Number(t20),n10=Number(A11);if(!Number.isInteger(i10)||!Number.isInteger(n10)){if(r5.strictRanges===!0)throw xy2([t20,A11]);return []}i10===0&&(i10=0),n10===0&&(n10=0);let o10=i10>n10,g5=String(t20),C10=String(A11),I13=String(e5);e5=Math.max(Math.abs(e5),1);let E5=uI2(g5)||uI2(C10)||uI2(I13),Q12=E5?Math.max(g5.length,C10.length,I13.length):0,B11=E5===!1&&H_2(t20,A11,r5)===!1,p7=r5.transform||T_(B11);if(r5.toRegex&&e5===1)return vy2(_o7(t20,Q12),_o7(A11,Q12),!0,r5);let w8={negatives:[],positives:[]},D10=s7(_11=>w8[_11<0?"negatives":"positives"].push(Math.abs(_11)),"push"),N13=[],b8=0;for(;o10?i10>=n10:i10<=n10;)r5.toRegex===!0&&e5>1?D10(i10):N13.push(j_(p7(i10,b8),Q12,B11)),i10=o10?i10-e5:i10+e5,b8++;return r5.toRegex===!0?e5>1?q_(w8,r5,Q12):Ly3(N13,null,{wrap:!1,...r5}):N13},"fillNumbers"),V_=s7((t20,A11,e5=1,r5={})=>{if(!ls4(t20)&&t20.length>1||!ls4(A11)&&A11.length>1)return Yy2(t20,A11,r5);let i10=r5.transform||(B11=>String.fromCharCode(B11)),n10=`${t20}`.charCodeAt(0),o10=`${A11}`.charCodeAt(0),g5=n10>o10,C10=Math.min(n10,o10),I13=Math.max(n10,o10);if(r5.toRegex&&e5===1)return vy2(C10,I13,!1,r5);let E5=[],Q12=0;for(;g5?n10>=o10:n10<=o10;)E5.push(i10(n10,Q12)),n10=g5?n10-e5:n10+e5,Q12++;return r5.toRegex===!0?Ly3(E5,null,{wrap:!1,options:r5}):E5},"fillLetters"),Uo6=s7((t20,A11,e5,r5={})=>{if(A11==null&&EI2(t20))return [t20];if(!EI2(t20)||!EI2(A11))return Yy2(t20,A11,r5);if(typeof e5=="function")return Uo6(t20,A11,1,{transform:e5});if(My2(e5))return Uo6(t20,A11,0,e5);let i10={...r5};return i10.capture===!0&&(i10.wrap=!0),e5=e5||i10.step||1,ls4(e5)?ls4(t20)&&ls4(A11)?W_2(t20,A11,e5,i10):V_(t20,A11,Math.max(Math.abs(e5),1),i10):e5!=null&&!My2(e5)?z_2(e5,i10):Uo6(t20,A11,1,e5)},"fill");Py2.exports=Uo6;}),Gy2=m2((P62,_y3)=>{var X_=BI3(),Uy2=Yo4(),$_2=s7((t20,A11={})=>{let e5=s7((r5,i10={})=>{let n10=Uy2.isInvalidBrace(i10),o10=r5.invalid===!0&&A11.escapeInvalid===!0,g5=n10===!0||o10===!0,C10=A11.escapeInvalid===!0?"\\":"",I13="";if(r5.isOpen===!0)return C10+r5.value;if(r5.isClose===!0)return console.log("node.isClose",C10,r5.value),C10+r5.value;if(r5.type==="open")return g5?C10+r5.value:"(";if(r5.type==="close")return g5?C10+r5.value:")";if(r5.type==="comma")return r5.prev.type==="comma"?"":g5?r5.value:"|";if(r5.value)return r5.value;if(r5.nodes&&r5.ranges>0){let E5=Uy2.reduce(r5.nodes),Q12=X_(...E5,{...A11,wrap:!1,toRegex:!0,strictZeros:!0});if(Q12.length!==0)return E5.length>1&&Q12.length>1?`(${Q12})`:Q12}if(r5.nodes)for(let E5 of r5.nodes)I13+=e5(E5,r5);return I13},"walk");return e5(t20)},"compile");_y3.exports=$_2;}),Ty2=m2((_63,Oy2)=>{var Z_3=BI3(),Jy2=Po5(),$r9=Yo4(),Er8=s7((t20="",A11="",e5=!1)=>{let r5=[];if(t20=[].concat(t20),A11=[].concat(A11),!A11.length)return t20;if(!t20.length)return e5?$r9.flatten(A11).map(i10=>`{${i10}}`):A11;for(let i10 of t20)if(Array.isArray(i10))for(let n10 of i10)r5.push(Er8(n10,A11,e5));else for(let n10 of A11)e5===!0&&typeof n10=="string"&&(n10=`{${n10}}`),r5.push(Array.isArray(n10)?Er8(i10,n10,e5):i10+n10);return $r9.flatten(r5)},"append"),AG=s7((t20,A11={})=>{let e5=A11.rangeLimit===void 0?1e3:A11.rangeLimit,r5=s7((i10,n10={})=>{i10.queue=[];let o10=n10,g5=n10.queue;for(;o10.type!=="brace"&&o10.type!=="root"&&o10.parent;)o10=o10.parent,g5=o10.queue;if(i10.invalid||i10.dollar){g5.push(Er8(g5.pop(),Jy2(i10,A11)));return}if(i10.type==="brace"&&i10.invalid!==!0&&i10.nodes.length===2){g5.push(Er8(g5.pop(),["{}"]));return}if(i10.nodes&&i10.ranges>0){let Q12=$r9.reduce(i10.nodes);if($r9.exceedsLimit(...Q12,A11.step,e5))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let B11=Z_3(...Q12,A11);B11.length===0&&(B11=Jy2(i10,A11)),g5.push(Er8(g5.pop(),B11)),i10.nodes=[];return}let C10=$r9.encloseBrace(i10),I13=i10.queue,E5=i10;for(;E5.type!=="brace"&&E5.type!=="root"&&E5.parent;)E5=E5.parent,I13=E5.queue;for(let Q12=0;Q12<i10.nodes.length;Q12++){let B11=i10.nodes[Q12];if(B11.type==="comma"&&i10.type==="brace"){Q12===1&&I13.push(""),I13.push("");continue}if(B11.type==="close"){g5.push(Er8(g5.pop(),I13,C10));continue}if(B11.value&&B11.type!=="open"){I13.push(Er8(I13.pop(),B11.value));continue}B11.nodes&&r5(B11,i10);}return I13},"walk");return $r9.flatten(r5(t20))},"expand");Oy2.exports=AG;}),jy2=m2((J63,Hy2)=>{Hy2.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
2605
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};}),Xy2=m2((O63,Vy3)=>{var eG2=Po5(),{MAX_LENGTH:qy2,CHAR_BACKSLASH:QI3,CHAR_BACKTICK:tG2,CHAR_COMMA:rG2,CHAR_DOT:iG2,CHAR_LEFT_PARENTHESES:sG2,CHAR_RIGHT_PARENTHESES:nG2,CHAR_LEFT_CURLY_BRACE:oG2,CHAR_RIGHT_CURLY_BRACE:gG,CHAR_LEFT_SQUARE_BRACKET:zy2,CHAR_RIGHT_SQUARE_BRACKET:Wy2,CHAR_DOUBLE_QUOTE:aG2,CHAR_SINGLE_QUOTE:CG,CHAR_NO_BREAK_SPACE:cG2,CHAR_ZERO_WIDTH_NOBREAK_SPACE:IG}=jy2(),hG=s7((t20,A11={})=>{if(typeof t20!="string")throw new TypeError("Expected a string");let e5=A11||{},r5=typeof e5.maxLength=="number"?Math.min(qy2,e5.maxLength):qy2;if(t20.length>r5)throw new SyntaxError(`Input length (${t20.length}), exceeds max characters (${r5})`);let i10={type:"root",input:t20,nodes:[]},n10=[i10],o10=i10,g5=i10,C10=0,I13=t20.length,E5=0,Q12=0,B11,p7=s7(()=>t20[E5++],"advance"),w8=s7(D10=>{if(D10.type==="text"&&g5.type==="dot"&&(g5.type="text"),g5&&g5.type==="text"&&D10.type==="text"){g5.value+=D10.value;return}return o10.nodes.push(D10),D10.parent=o10,D10.prev=g5,g5=D10,D10},"push");for(w8({type:"bos"});E5<I13;)if(o10=n10[n10.length-1],B11=p7(),!(B11===IG||B11===cG2)){if(B11===QI3){w8({type:"text",value:(A11.keepEscaping?B11:"")+p7()});continue}if(B11===Wy2){w8({type:"text",value:"\\"+B11});continue}if(B11===zy2){C10++;let D10;for(;E5<I13&&(D10=p7());){if(B11+=D10,D10===zy2){C10++;continue}if(D10===QI3){B11+=p7();continue}if(D10===Wy2&&(C10--,C10===0))break}w8({type:"text",value:B11});continue}if(B11===sG2){o10=w8({type:"paren",nodes:[]}),n10.push(o10),w8({type:"text",value:B11});continue}if(B11===nG2){if(o10.type!=="paren"){w8({type:"text",value:B11});continue}o10=n10.pop(),w8({type:"text",value:B11}),o10=n10[n10.length-1];continue}if(B11===aG2||B11===CG||B11===tG2){let D10=B11,N13;for(A11.keepQuotes!==!0&&(B11="");E5<I13&&(N13=p7());){if(N13===QI3){B11+=N13+p7();continue}if(N13===D10){A11.keepQuotes===!0&&(B11+=N13);break}B11+=N13;}w8({type:"text",value:B11});continue}if(B11===oG2){Q12++;let N13={type:"brace",open:!0,close:!1,dollar:g5.value&&g5.value.slice(-1)==="$"||o10.dollar===!0,depth:Q12,commas:0,ranges:0,nodes:[]};o10=w8(N13),n10.push(o10),w8({type:"open",value:B11});continue}if(B11===gG){if(o10.type!=="brace"){w8({type:"text",value:B11});continue}let D10="close";o10=n10.pop(),o10.close=!0,w8({type:D10,value:B11}),Q12--,o10=n10[n10.length-1];continue}if(B11===rG2&&Q12>0){if(o10.ranges>0){o10.ranges=0;let D10=o10.nodes.shift();o10.nodes=[D10,{type:"text",value:eG2(o10)}];}w8({type:"comma",value:B11}),o10.commas++;continue}if(B11===iG2&&Q12>0&&o10.commas===0){let D10=o10.nodes;if(Q12===0||D10.length===0){w8({type:"text",value:B11});continue}if(g5.type==="dot"){if(o10.range=[],g5.value+=B11,g5.type="range",o10.nodes.length!==3&&o10.nodes.length!==5){o10.invalid=!0,o10.ranges=0,g5.type="text";continue}o10.ranges++,o10.args=[];continue}if(g5.type==="range"){D10.pop();let N13=D10[D10.length-1];N13.value+=g5.value+B11,g5=N13,o10.ranges--;continue}w8({type:"dot",value:B11});continue}w8({type:"text",value:B11});}do if(o10=n10.pop(),o10.type!=="root"){o10.nodes.forEach(b8=>{b8.nodes||(b8.type==="open"&&(b8.isOpen=!0),b8.type==="close"&&(b8.isClose=!0),b8.nodes||(b8.type="text"),b8.invalid=!0);});let D10=n10[n10.length-1],N13=D10.nodes.indexOf(o10);D10.nodes.splice(N13,1,...o10.nodes);}while(n10.length>0);return w8({type:"eos"}),i10},"parse");Vy3.exports=hG;}),AD2=m2((H62,Zy4)=>{var $y2=Po5(),lG2=Gy2(),EG=Ty2(),uG2=Xy2(),Ee7=s7((t20,A11={})=>{let e5=[];if(Array.isArray(t20))for(let r5 of t20){let i10=Ee7.create(r5,A11);Array.isArray(i10)?e5.push(...i10):e5.push(i10);}else e5=[].concat(Ee7.create(t20,A11));return A11&&A11.expand===!0&&A11.nodupes===!0&&(e5=[...new Set(e5)]),e5},"braces");Ee7.parse=(t20,A11={})=>uG2(t20,A11),Ee7.stringify=(t20,A11={})=>$y2(typeof t20=="string"?Ee7.parse(t20,A11):t20,A11),Ee7.compile=(t20,A11={})=>(typeof t20=="string"&&(t20=Ee7.parse(t20,A11)),lG2(t20,A11)),Ee7.expand=(t20,A11={})=>{typeof t20=="string"&&(t20=Ee7.parse(t20,A11));let e5=EG(t20,A11);return A11.noempty===!0&&(e5=e5.filter(Boolean)),A11.nodupes===!0&&(e5=[...new Set(e5)]),e5},Ee7.create=(t20,A11={})=>t20===""||t20.length<3?[t20]:A11.expand!==!0?Ee7.compile(t20,A11):Ee7.expand(t20,A11),Zy4.exports=Ee7;}),nD2=m2((q63,sD3)=>{var tD4=v11("util"),rD3=AD2(),et8=Nn6(),fI2=ji(),eD3=s7(t20=>t20===""||t20==="./","isEmptyString"),iD2=s7(t20=>{let A11=t20.indexOf("{");return A11>-1&&t20.indexOf("}",A11)>-1},"hasBraces"),wA2=s7((t20,A11,e5)=>{A11=[].concat(A11),t20=[].concat(t20);let r5=new Set,i10=new Set,n10=new Set,o10=0,g5=s7(E5=>{n10.add(E5.output),e5&&e5.onResult&&e5.onResult(E5);},"onResult");for(let E5=0;E5<A11.length;E5++){let Q12=et8(String(A11[E5]),{...e5,onResult:g5},!0),B11=Q12.state.negated||Q12.state.negatedExtglob;B11&&o10++;for(let p7 of t20){let w8=Q12(p7,!0);(B11?!w8.isMatch:w8.isMatch)&&(B11?r5.add(w8.output):(r5.delete(w8.output),i10.add(w8.output)));}}let I13=(o10===A11.length?[...n10]:[...i10]).filter(E5=>!r5.has(E5));if(e5&&I13.length===0){if(e5.failglob===!0)throw new Error(`No matches found for "${A11.join(", ")}"`);if(e5.nonull===!0||e5.nullglob===!0)return e5.unescape?A11.map(E5=>E5.replace(/\\/g,"")):A11}return I13},"micromatch");wA2.match=wA2,wA2.matcher=(t20,A11)=>et8(t20,A11),wA2.isMatch=(t20,A11,e5)=>et8(A11,e5)(t20),wA2.any=wA2.isMatch,wA2.not=(t20,A11,e5={})=>{A11=[].concat(A11).map(String);let r5=new Set,i10=[],n10=s7(g5=>{e5.onResult&&e5.onResult(g5),i10.push(g5.output);},"onResult"),o10=new Set(wA2(t20,A11,{...e5,onResult:n10}));for(let g5 of i10)o10.has(g5)||r5.add(g5);return [...r5]},wA2.contains=(t20,A11,e5)=>{if(typeof t20!="string")throw new TypeError(`Expected a string: "${tD4.inspect(t20)}"`);if(Array.isArray(A11))return A11.some(r5=>wA2.contains(t20,r5,e5));if(typeof A11=="string"){if(eD3(t20)||eD3(A11))return !1;if(t20.includes(A11)||t20.startsWith("./")&&t20.slice(2).includes(A11))return !0}return wA2.isMatch(t20,A11,{...e5,contains:!0})},wA2.matchKeys=(t20,A11,e5)=>{if(!fI2.isObject(t20))throw new TypeError("Expected the first argument to be an object");let r5=wA2(Object.keys(t20),A11,e5),i10={};for(let n10 of r5)i10[n10]=t20[n10];return i10},wA2.some=(t20,A11,e5)=>{let r5=[].concat(t20);for(let i10 of [].concat(A11)){let n10=et8(String(i10),e5);if(r5.some(o10=>n10(o10)))return !0}return !1},wA2.every=(t20,A11,e5)=>{let r5=[].concat(t20);for(let i10 of [].concat(A11)){let n10=et8(String(i10),e5);if(!r5.every(o10=>n10(o10)))return !1}return !0},wA2.all=(t20,A11,e5)=>{if(typeof t20!="string")throw new TypeError(`Expected a string: "${tD4.inspect(t20)}"`);return [].concat(A11).every(r5=>et8(r5,e5)(t20))},wA2.capture=(t20,A11,e5)=>{let r5=fI2.isWindows(e5),n10=et8.makeRe(String(t20),{...e5,capture:!0}).exec(r5?fI2.toPosixSlashes(A11):A11);if(n10)return n10.slice(1).map(o10=>o10===void 0?"":o10)},wA2.makeRe=(...t20)=>et8.makeRe(...t20),wA2.scan=(...t20)=>et8.scan(...t20),wA2.parse=(t20,A11)=>{let e5=[];for(let r5 of [].concat(t20||[]))for(let i10 of rD3(String(r5),A11))e5.push(et8.parse(i10,A11));return e5},wA2.braces=(t20,A11)=>{if(typeof t20!="string")throw new TypeError("Expected a string");return A11&&A11.nobrace===!0||!iD2(t20)?[t20]:rD3(t20,A11)},wA2.braceExpand=(t20,A11)=>{if(typeof t20!="string")throw new TypeError("Expected a string");return wA2.braces(t20,{...A11,expand:!0})},wA2.hasBraces=iD2,sD3.exports=wA2;}),uD2=m2(AA2=>{Object.defineProperty(AA2,"__esModule",{value:!0}),AA2.isAbsolute=AA2.partitionAbsoluteAndRelative=AA2.removeDuplicateSlashes=AA2.matchAny=AA2.convertPatternsToRe=AA2.makeRe=AA2.getPatternParts=AA2.expandBraceExpansion=AA2.expandPatternsWithBraceExpansion=AA2.isAffectDepthOfReadingPattern=AA2.endsWithSlashGlobStar=AA2.hasGlobStar=AA2.getBaseDirectory=AA2.isPatternRelatedToParentDirectory=AA2.getPatternsOutsideCurrentDirectory=AA2.getPatternsInsideCurrentDirectory=AA2.getPositivePatterns=AA2.getNegativePatterns=AA2.isPositivePattern=AA2.isNegativePattern=AA2.convertToNegativePattern=AA2.convertToPositivePattern=AA2.isDynamicPattern=AA2.isStaticPattern=void 0;var oD2=v11("path"),BG=Qy3(),dI2=nD2(),gD2="**",QG="\\",fG=/[*?]|^!/,dG=/\[[^[]*]/,pG=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wG=/[!*+?@]\([^(]*\)/,mG=/,|\.\./,yG=/(?!^)\/{2,}/g;function aD2(t20,A11={}){return !CD3(t20,A11)}s7(aD2,"isStaticPattern"),AA2.isStaticPattern=aD2;function CD3(t20,A11={}){return t20===""?!1:!!(A11.caseSensitiveMatch===!1||t20.includes(QG)||fG.test(t20)||dG.test(t20)||pG.test(t20)||A11.extglob!==!1&&wG.test(t20)||A11.braceExpansion!==!1&&DG(t20))}s7(CD3,"isDynamicPattern"),AA2.isDynamicPattern=CD3;function DG(t20){let A11=t20.indexOf("{");if(A11===-1)return !1;let e5=t20.indexOf("}",A11+1);if(e5===-1)return !1;let r5=t20.slice(A11,e5);return mG.test(r5)}s7(DG,"hasBraceExpansion");function SG(t20){return Go5(t20)?t20.slice(1):t20}s7(SG,"convertToPositivePattern"),AA2.convertToPositivePattern=SG;function KG(t20){return "!"+t20}s7(KG,"convertToNegativePattern"),AA2.convertToNegativePattern=KG;function Go5(t20){return t20.startsWith("!")&&t20[1]!=="("}s7(Go5,"isNegativePattern"),AA2.isNegativePattern=Go5;function cD2(t20){return !Go5(t20)}s7(cD2,"isPositivePattern"),AA2.isPositivePattern=cD2;function FG(t20){return t20.filter(Go5)}s7(FG,"getNegativePatterns"),AA2.getNegativePatterns=FG;function bG(t20){return t20.filter(cD2)}s7(bG,"getPositivePatterns"),AA2.getPositivePatterns=bG;function kG(t20){return t20.filter(A11=>!pI2(A11))}s7(kG,"getPatternsInsideCurrentDirectory"),AA2.getPatternsInsideCurrentDirectory=kG;function NG(t20){return t20.filter(pI2)}s7(NG,"getPatternsOutsideCurrentDirectory"),AA2.getPatternsOutsideCurrentDirectory=NG;function pI2(t20){return t20.startsWith("..")||t20.startsWith("./..")}s7(pI2,"isPatternRelatedToParentDirectory"),AA2.isPatternRelatedToParentDirectory=pI2;function MG(t20){return BG(t20,{flipBackslashes:!1})}s7(MG,"getBaseDirectory"),AA2.getBaseDirectory=MG;function RG(t20){return t20.includes(gD2)}s7(RG,"hasGlobStar"),AA2.hasGlobStar=RG;function ID3(t20){return t20.endsWith("/"+gD2)}s7(ID3,"endsWithSlashGlobStar"),AA2.endsWithSlashGlobStar=ID3;function vG(t20){let A11=oD2.basename(t20);return ID3(t20)||aD2(A11)}s7(vG,"isAffectDepthOfReadingPattern"),AA2.isAffectDepthOfReadingPattern=vG;function LG(t20){return t20.reduce((A11,e5)=>A11.concat(hD2(e5)),[])}s7(LG,"expandPatternsWithBraceExpansion"),AA2.expandPatternsWithBraceExpansion=LG;function hD2(t20){let A11=dI2.braces(t20,{expand:!0,nodupes:!0,keepEscaping:!0});return A11.sort((e5,r5)=>e5.length-r5.length),A11.filter(e5=>e5!=="")}s7(hD2,"expandBraceExpansion"),AA2.expandBraceExpansion=hD2;function xG(t20,A11){let{parts:e5}=dI2.scan(t20,Object.assign(Object.assign({},A11),{parts:!0}));return e5.length===0&&(e5=[t20]),e5[0].startsWith("/")&&(e5[0]=e5[0].slice(1),e5.unshift("")),e5}s7(xG,"getPatternParts"),AA2.getPatternParts=xG;function lD3(t20,A11){return dI2.makeRe(t20,A11)}s7(lD3,"makeRe"),AA2.makeRe=lD3;function YG(t20,A11){return t20.map(e5=>lD3(e5,A11))}s7(YG,"convertPatternsToRe"),AA2.convertPatternsToRe=YG;function PG(t20,A11){return A11.some(e5=>e5.test(t20))}s7(PG,"matchAny"),AA2.matchAny=PG;function UG(t20){return t20.replace(yG,"/")}s7(UG,"removeDuplicateSlashes"),AA2.removeDuplicateSlashes=UG;function _G(t20){let A11=[],e5=[];for(let r5 of t20)ED2(r5)?A11.push(r5):e5.push(r5);return [A11,e5]}s7(_G,"partitionAbsoluteAndRelative"),AA2.partitionAbsoluteAndRelative=_G;function ED2(t20){return oD2.isAbsolute(t20)}s7(ED2,"isAbsolute"),AA2.isAbsolute=ED2;}),dD2=m2((X63,fD2)=>{var GG=v11("stream"),BD2=GG.PassThrough,JG=Array.prototype.slice;fD2.exports=OG;function OG(){let t20=[],A11=JG.call(arguments),e5=!1,r5=A11[A11.length-1];r5&&!Array.isArray(r5)&&r5.pipe==null?A11.pop():r5={};let i10=r5.end!==!1,n10=r5.pipeError===!0;r5.objectMode==null&&(r5.objectMode=!0),r5.highWaterMark==null&&(r5.highWaterMark=64*1024);let o10=BD2(r5);function g5(){for(let E5=0,Q12=arguments.length;E5<Q12;E5++)t20.push(QD3(arguments[E5],r5));return C10(),this}s7(g5,"addStream");function C10(){if(e5)return;e5=!0;let E5=t20.shift();if(!E5){process.nextTick(I13);return}Array.isArray(E5)||(E5=[E5]);let Q12=E5.length+1;function B11(){--Q12>0||(e5=!1,C10());}s7(B11,"next");function p7(w8){function D10(){w8.removeListener("merge2UnpipeEnd",D10),w8.removeListener("end",D10),n10&&w8.removeListener("error",N13),B11();}s7(D10,"onend");function N13(b8){o10.emit("error",b8);}if(s7(N13,"onerror"),w8._readableState.endEmitted)return B11();w8.on("merge2UnpipeEnd",D10),w8.on("end",D10),n10&&w8.on("error",N13),w8.pipe(o10,{end:!1}),w8.resume();}s7(p7,"pipe");for(let w8=0;w8<E5.length;w8++)p7(E5[w8]);B11();}s7(C10,"mergeStream");function I13(){e5=!1,o10.emit("queueDrain"),i10&&o10.end();}return s7(I13,"endStream"),o10.setMaxListeners(0),o10.add=g5,o10.on("unpipe",function(E5){E5.emit("merge2UnpipeEnd");}),A11.length&&g5.apply(null,A11),o10}s7(OG,"merge2");function QD3(t20,A11){if(Array.isArray(t20))for(let e5=0,r5=t20.length;e5<r5;e5++)t20[e5]=QD3(t20[e5],A11);else {if(!t20._readableState&&t20.pipe&&(t20=t20.pipe(BD2(A11))),!t20._readableState||!t20.pause||!t20.pipe)throw new Error("Only readable stream can be merged.");t20.pause();}return t20}s7(QD3,"pauseStreams");}),wD2=m2(Jo6=>{Object.defineProperty(Jo6,"__esModule",{value:!0}),Jo6.merge=void 0;var TG=dD2();function HG(t20){let A11=TG(t20);return t20.forEach(e5=>{e5.once("error",r5=>A11.emit("error",r5));}),A11.once("close",()=>pD2(t20)),A11.once("end",()=>pD2(t20)),A11}s7(HG,"merge"),Jo6.merge=HG;function pD2(t20){t20.forEach(A11=>A11.emit("close"));}s7(pD2,"propagateCloseEventToSources");}),mD2=m2(Zr6=>{Object.defineProperty(Zr6,"__esModule",{value:!0}),Zr6.isEmpty=Zr6.isString=void 0;function jG(t20){return typeof t20=="string"}s7(jG,"isString"),Zr6.isString=jG;function qG(t20){return t20===""}s7(qG,"isEmpty"),Zr6.isEmpty=qG;}),Dt6=m2(zA2=>{Object.defineProperty(zA2,"__esModule",{value:!0}),zA2.string=zA2.stream=zA2.pattern=zA2.path=zA2.fs=zA2.errno=zA2.array=void 0;var zG=sy();zA2.array=zG;var WG=ny();zA2.errno=WG;var VG=oy();zA2.fs=VG;var XG=cy();zA2.path=XG;var $G=uD2();zA2.pattern=$G;var ZG=wD2();zA2.stream=ZG;var AJ=mD2();zA2.string=AJ;}),KD2=m2(WA2=>{Object.defineProperty(WA2,"__esModule",{value:!0}),WA2.convertPatternGroupToTask=WA2.convertPatternGroupsToTasks=WA2.groupPatternsByBaseDirectory=WA2.getNegativePatternsAsPositive=WA2.getPositivePatterns=WA2.convertPatternsToTasks=WA2.generate=void 0;var Je8=Dt6();function eJ(t20,A11){let e5=yD2(t20,A11),r5=yD2(A11.ignore,A11),i10=DD2(e5),n10=SD2(e5,r5),o10=i10.filter(E5=>Je8.pattern.isStaticPattern(E5,A11)),g5=i10.filter(E5=>Je8.pattern.isDynamicPattern(E5,A11)),C10=wI2(o10,n10,!1),I13=wI2(g5,n10,!0);return C10.concat(I13)}s7(eJ,"generate"),WA2.generate=eJ;function yD2(t20,A11){let e5=t20;return A11.braceExpansion&&(e5=Je8.pattern.expandPatternsWithBraceExpansion(e5)),A11.baseNameMatch&&(e5=e5.map(r5=>r5.includes("/")?r5:`**/${r5}`)),e5.map(r5=>Je8.pattern.removeDuplicateSlashes(r5))}s7(yD2,"processPatterns");function wI2(t20,A11,e5){let r5=[],i10=Je8.pattern.getPatternsOutsideCurrentDirectory(t20),n10=Je8.pattern.getPatternsInsideCurrentDirectory(t20),o10=mI2(i10),g5=mI2(n10);return r5.push(...yI2(o10,A11,e5)),"."in g5?r5.push(DI2(".",n10,A11,e5)):r5.push(...yI2(g5,A11,e5)),r5}s7(wI2,"convertPatternsToTasks"),WA2.convertPatternsToTasks=wI2;function DD2(t20){return Je8.pattern.getPositivePatterns(t20)}s7(DD2,"getPositivePatterns"),WA2.getPositivePatterns=DD2;function SD2(t20,A11){return Je8.pattern.getNegativePatterns(t20).concat(A11).map(Je8.pattern.convertToPositivePattern)}s7(SD2,"getNegativePatternsAsPositive"),WA2.getNegativePatternsAsPositive=SD2;function mI2(t20){let A11={};return t20.reduce((e5,r5)=>{let i10=Je8.pattern.getBaseDirectory(r5);return i10 in e5?e5[i10].push(r5):e5[i10]=[r5],e5},A11)}s7(mI2,"groupPatternsByBaseDirectory"),WA2.groupPatternsByBaseDirectory=mI2;function yI2(t20,A11,e5){return Object.keys(t20).map(r5=>DI2(r5,t20[r5],A11,e5))}s7(yI2,"convertPatternGroupsToTasks"),WA2.convertPatternGroupsToTasks=yI2;function DI2(t20,A11,e5,r5){return {dynamic:r5,positive:A11,negative:e5,base:t20,patterns:[].concat(A11,e5.map(Je8.pattern.convertToNegativePattern))}}s7(DI2,"convertPatternGroupToTask"),WA2.convertPatternGroupToTask=DI2;}),bD2=m2(Oo7=>{Object.defineProperty(Oo7,"__esModule",{value:!0}),Oo7.read=void 0;function tJ(t20,A11,e5){A11.fs.lstat(t20,(r5,i10)=>{if(r5!==null){FD3(e5,r5);return}if(!i10.isSymbolicLink()||!A11.followSymbolicLink){SI2(e5,i10);return}A11.fs.stat(t20,(n10,o10)=>{if(n10!==null){if(A11.throwErrorOnBrokenSymbolicLink){FD3(e5,n10);return}SI2(e5,i10);return}A11.markSymbolicLink&&(o10.isSymbolicLink=()=>!0),SI2(e5,o10);});});}s7(tJ,"read"),Oo7.read=tJ;function FD3(t20,A11){t20(A11);}s7(FD3,"callFailureCallback");function SI2(t20,A11){t20(null,A11);}s7(SI2,"callSuccessCallback");}),kD=m2(To6=>{Object.defineProperty(To6,"__esModule",{value:!0}),To6.read=void 0;function rJ(t20,A11){let e5=A11.fs.lstatSync(t20);if(!e5.isSymbolicLink()||!A11.followSymbolicLink)return e5;try{let r5=A11.fs.statSync(t20);return A11.markSymbolicLink&&(r5.isSymbolicLink=()=>!0),r5}catch(r5){if(!A11.throwErrorOnBrokenSymbolicLink)return e5;throw r5}}s7(rJ,"read"),To6.read=rJ;}),ND2=m2(jt7=>{Object.defineProperty(jt7,"__esModule",{value:!0}),jt7.createFileSystemAdapter=jt7.FILE_SYSTEM_ADAPTER=void 0;var Ho4=v11("fs");jt7.FILE_SYSTEM_ADAPTER={lstat:Ho4.lstat,stat:Ho4.stat,lstatSync:Ho4.lstatSync,statSync:Ho4.statSync};function iJ(t20){return t20===void 0?jt7.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jt7.FILE_SYSTEM_ADAPTER),t20)}s7(iJ,"createFileSystemAdapter"),jt7.createFileSystemAdapter=iJ;}),MD=m2(FI2=>{Object.defineProperty(FI2,"__esModule",{value:!0});var sJ=ND2(),KI3=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=sJ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0);}_getValue(A11,e5){return A11??e5}};FI2.default=KI3;}),ur4=m2(qt6=>{Object.defineProperty(qt6,"__esModule",{value:!0}),qt6.statSync=qt6.stat=qt6.Settings=void 0;var RD2=bD2(),nJ=kD(),bI2=MD();qt6.Settings=bI2.default;function oJ(t20,A11,e5){if(typeof A11=="function"){RD2.read(t20,kI3(),A11);return}RD2.read(t20,kI3(A11),e5);}s7(oJ,"stat"),qt6.stat=oJ;function gJ(t20,A11){let e5=kI3(A11);return nJ.read(t20,e5)}s7(gJ,"statSync"),qt6.statSync=gJ;function kI3(t20={}){return t20 instanceof bI2.default?t20:new bI2.default(t20)}s7(kI3,"getSettings");}),xD2=m2((u5,LD2)=>{var vD2;LD2.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t20=>(vD2||(vD2=Promise.resolve())).then(t20).catch(A11=>setTimeout(()=>{throw A11},0));}),PD=m2((B52,YD2)=>{YD2.exports=CJ;var aJ=xD2();function CJ(t20,A11){let e5,r5,i10,n10=!0;Array.isArray(t20)?(e5=[],r5=t20.length):(i10=Object.keys(t20),e5={},r5=i10.length);function o10(C10){function I13(){A11&&A11(C10,e5),A11=null;}s7(I13,"end"),n10?aJ(I13):I13();}s7(o10,"done");function g5(C10,I13,E5){e5[C10]=E5,(--r5===0||I13)&&o10(I13);}s7(g5,"each"),r5?i10?i10.forEach(function(C10){t20[C10](function(I13,E5){g5(C10,I13,E5);});}):t20.forEach(function(C10,I13){C10(function(E5,Q12){g5(I13,E5,Q12);});}):o10(null),n10=!1;}s7(CJ,"runParallel");}),NI2=m2(qo5=>{Object.defineProperty(qo5,"__esModule",{value:!0}),qo5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var jo5=process.versions.node.split(".");if(jo5[0]===void 0||jo5[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var UD2=Number.parseInt(jo5[0],10),cJ=Number.parseInt(jo5[1],10),_D2=10,IJ=10,hJ=UD2>_D2,lJ=UD2===_D2&&cJ>=IJ;qo5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hJ||lJ;}),GD2=m2(zo6=>{Object.defineProperty(zo6,"__esModule",{value:!0}),zo6.createDirentFromStats=void 0;var MI2=class{static{s7(this,"DirentFromStats");}constructor(A11,e5){this.name=A11,this.isBlockDevice=e5.isBlockDevice.bind(e5),this.isCharacterDevice=e5.isCharacterDevice.bind(e5),this.isDirectory=e5.isDirectory.bind(e5),this.isFIFO=e5.isFIFO.bind(e5),this.isFile=e5.isFile.bind(e5),this.isSocket=e5.isSocket.bind(e5),this.isSymbolicLink=e5.isSymbolicLink.bind(e5);}};function EJ(t20,A11){return new MI2(t20,A11)}s7(EJ,"createDirentFromStats"),zo6.createDirentFromStats=EJ;}),RI2=m2(Wo4=>{Object.defineProperty(Wo4,"__esModule",{value:!0}),Wo4.fs=void 0;var uJ=GD2();Wo4.fs=uJ;}),vI2=m2(Vo6=>{Object.defineProperty(Vo6,"__esModule",{value:!0}),Vo6.joinPathSegments=void 0;function BJ(t20,A11,e5){return t20.endsWith(e5)?t20+A11:t20+e5+A11}s7(BJ,"joinPathSegments"),Vo6.joinPathSegments=BJ;}),qD2=m2(zt6=>{Object.defineProperty(zt6,"__esModule",{value:!0}),zt6.readdir=zt6.readdirWithFileTypes=zt6.read=void 0;var QJ=ur4(),JD2=PD(),fJ=NI2(),OD2=RI2(),TD2=vI2();function dJ(t20,A11,e5){if(!A11.stats&&fJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){HD2(t20,A11,e5);return}jD2(t20,A11,e5);}s7(dJ,"read"),zt6.read=dJ;function HD2(t20,A11,e5){A11.fs.readdir(t20,{withFileTypes:!0},(r5,i10)=>{if(r5!==null){Xo7(e5,r5);return}let n10=i10.map(g5=>({dirent:g5,name:g5.name,path:TD2.joinPathSegments(t20,g5.name,A11.pathSegmentSeparator)}));if(!A11.followSymbolicLinks){LI2(e5,n10);return}let o10=n10.map(g5=>pJ(g5,A11));JD2(o10,(g5,C10)=>{if(g5!==null){Xo7(e5,g5);return}LI2(e5,C10);});});}s7(HD2,"readdirWithFileTypes"),zt6.readdirWithFileTypes=HD2;function pJ(t20,A11){return e5=>{if(!t20.dirent.isSymbolicLink()){e5(null,t20);return}A11.fs.stat(t20.path,(r5,i10)=>{if(r5!==null){if(A11.throwErrorOnBrokenSymbolicLink){e5(r5);return}e5(null,t20);return}t20.dirent=OD2.fs.createDirentFromStats(t20.name,i10),e5(null,t20);});}}s7(pJ,"makeRplTaskEntry");function jD2(t20,A11,e5){A11.fs.readdir(t20,(r5,i10)=>{if(r5!==null){Xo7(e5,r5);return}let n10=i10.map(o10=>{let g5=TD2.joinPathSegments(t20,o10,A11.pathSegmentSeparator);return C10=>{QJ.stat(g5,A11.fsStatSettings,(I13,E5)=>{if(I13!==null){C10(I13);return}let Q12={name:o10,path:g5,dirent:OD2.fs.createDirentFromStats(o10,E5)};A11.stats&&(Q12.stats=E5),C10(null,Q12);});}});JD2(n10,(o10,g5)=>{if(o10!==null){Xo7(e5,o10);return}LI2(e5,g5);});});}s7(jD2,"readdir"),zt6.readdir=jD2;function Xo7(t20,A11){t20(A11);}s7(Xo7,"callFailureCallback");function LI2(t20,A11){t20(null,A11);}s7(LI2,"callSuccessCallback");}),$D3=m2(Wt6=>{Object.defineProperty(Wt6,"__esModule",{value:!0}),Wt6.readdir=Wt6.readdirWithFileTypes=Wt6.read=void 0;var wJ=ur4(),mJ=NI2(),zD2=RI2(),WD2=vI2();function yJ(t20,A11){return !A11.stats&&mJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES?VD2(t20,A11):XD(t20,A11)}s7(yJ,"read"),Wt6.read=yJ;function VD2(t20,A11){return A11.fs.readdirSync(t20,{withFileTypes:!0}).map(r5=>{let i10={dirent:r5,name:r5.name,path:WD2.joinPathSegments(t20,r5.name,A11.pathSegmentSeparator)};if(i10.dirent.isSymbolicLink()&&A11.followSymbolicLinks)try{let n10=A11.fs.statSync(i10.path);i10.dirent=zD2.fs.createDirentFromStats(i10.name,n10);}catch(n10){if(A11.throwErrorOnBrokenSymbolicLink)throw n10}return i10})}s7(VD2,"readdirWithFileTypes"),Wt6.readdirWithFileTypes=VD2;function XD(t20,A11){return A11.fs.readdirSync(t20).map(r5=>{let i10=WD2.joinPathSegments(t20,r5,A11.pathSegmentSeparator),n10=wJ.statSync(i10,A11.fsStatSettings),o10={name:r5,path:i10,dirent:zD2.fs.createDirentFromStats(r5,n10)};return A11.stats&&(o10.stats=n10),o10})}s7(XD,"readdir"),Wt6.readdir=XD;}),ZD2=m2(Vt7=>{Object.defineProperty(Vt7,"__esModule",{value:!0}),Vt7.createFileSystemAdapter=Vt7.FILE_SYSTEM_ADAPTER=void 0;var Ai2=v11("fs");Vt7.FILE_SYSTEM_ADAPTER={lstat:Ai2.lstat,stat:Ai2.stat,lstatSync:Ai2.lstatSync,statSync:Ai2.statSync,readdir:Ai2.readdir,readdirSync:Ai2.readdirSync};function DJ(t20){return t20===void 0?Vt7.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Vt7.FILE_SYSTEM_ADAPTER),t20)}s7(DJ,"createFileSystemAdapter"),Vt7.createFileSystemAdapter=DJ;}),AS2=m2(YI3=>{Object.defineProperty(YI3,"__esModule",{value:!0});var SJ=v11("path"),KJ=ur4(),FJ=ZD2(),xI2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=FJ.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,SJ.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new KJ.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink});}_getValue(A11,e5){return A11??e5}};YI3.default=xI2;}),$o5=m2(Xt7=>{Object.defineProperty(Xt7,"__esModule",{value:!0}),Xt7.Settings=Xt7.scandirSync=Xt7.scandir=void 0;var eS2=qD2(),bJ=$D3(),PI2=AS2();Xt7.Settings=PI2.default;function kJ(t20,A11,e5){if(typeof A11=="function"){eS2.read(t20,UI2(),A11);return}eS2.read(t20,UI2(A11),e5);}s7(kJ,"scandir"),Xt7.scandir=kJ;function NJ(t20,A11){let e5=UI2(A11);return bJ.read(t20,e5)}s7(NJ,"scandirSync"),Xt7.scandirSync=NJ;function UI2(t20={}){return t20 instanceof PI2.default?t20:new PI2.default(t20)}s7(UI2,"getSettings");}),rS2=m2((L52,tS2)=>{function MJ(t20){var A11=new t20,e5=A11;function r5(){var n10=A11;return n10.next?A11=n10.next:(A11=new t20,e5=A11),n10.next=null,n10}s7(r5,"get");function i10(n10){e5.next=n10,e5=n10;}return s7(i10,"release"),{get:r5,release:i10}}s7(MJ,"reusify"),tS2.exports=MJ;}),sS2=m2((Y52,_I2)=>{var RJ=rS2();function iS3(t20,A11,e5){if(typeof t20=="function"&&(e5=A11,A11=t20,t20=null),!(e5>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r5=RJ(vJ),i10=null,n10=null,o10=0,g5=null,C10={push:D10,drain:ye7,saturated:ye7,pause:E5,paused:!1,get concurrency(){return e5},set concurrency(U12){if(!(U12>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(e5=U12,!C10.paused)for(;i10&&o10<e5;)o10++,b8();},running:I13,resume:p7,idle:w8,length:Q12,getQueue:B11,unshift:N13,empty:ye7,kill:_11,killAndDrain:L12,error:J13};return C10;function I13(){return o10}function E5(){C10.paused=!0;}function Q12(){for(var U12=i10,Z13=0;U12;)U12=U12.next,Z13++;return Z13}function B11(){for(var U12=i10,Z13=[];U12;)Z13.push(U12.value),U12=U12.next;return Z13}function p7(){if(C10.paused){if(C10.paused=!1,i10===null){o10++,b8();return}for(;i10&&o10<e5;)o10++,b8();}}function w8(){return o10===0&&C10.length()===0}function D10(U12,Z13){var q13=r5.get();q13.context=t20,q13.release=b8,q13.value=U12,q13.callback=Z13||ye7,q13.errorHandler=g5,o10>=e5||C10.paused?n10?(n10.next=q13,n10=q13):(i10=q13,n10=q13,C10.saturated()):(o10++,A11.call(t20,q13.value,q13.worked));}function N13(U12,Z13){var q13=r5.get();q13.context=t20,q13.release=b8,q13.value=U12,q13.callback=Z13||ye7,q13.errorHandler=g5,o10>=e5||C10.paused?i10?(q13.next=i10,i10=q13):(i10=q13,n10=q13,C10.saturated()):(o10++,A11.call(t20,q13.value,q13.worked));}function b8(U12){U12&&r5.release(U12);var Z13=i10;Z13&&o10<=e5?C10.paused?o10--:(n10===i10&&(n10=null),i10=Z13.next,Z13.next=null,A11.call(t20,Z13.value,Z13.worked),n10===null&&C10.empty()):--o10===0&&C10.drain();}function _11(){i10=null,n10=null,C10.drain=ye7;}function L12(){i10=null,n10=null,C10.drain(),C10.drain=ye7;}function J13(U12){g5=U12;}}s7(iS3,"fastqueue");function ye7(){}s7(ye7,"noop");function vJ(){this.value=null,this.callback=ye7,this.next=null,this.release=ye7,this.context=null,this.errorHandler=null;var t20=this;this.worked=s7(function(e5,r5){var i10=t20.callback,n10=t20.errorHandler,o10=t20.value;t20.value=null,t20.callback=ye7,t20.errorHandler&&n10(e5,o10),i10.call(t20.context,e5,r5),t20.release(t20);},"worked");}s7(vJ,"Task");function LJ(t20,A11,e5){typeof t20=="function"&&(e5=A11,A11=t20,t20=null);function r5(E5,Q12){A11.call(this,E5).then(function(B11){Q12(null,B11);},Q12);}s7(r5,"asyncWrapper");var i10=iS3(t20,r5,e5),n10=i10.push,o10=i10.unshift;return i10.push=g5,i10.unshift=C10,i10.drained=I13,i10;function g5(E5){var Q12=new Promise(function(B11,p7){n10(E5,function(w8,D10){if(w8){p7(w8);return}B11(D10);});});return Q12.catch(ye7),Q12}function C10(E5){var Q12=new Promise(function(B11,p7){o10(E5,function(w8,D10){if(w8){p7(w8);return}B11(D10);});});return Q12.catch(ye7),Q12}function I13(){var E5=new Promise(function(Q12){process.nextTick(function(){if(i10.idle())Q12();else {var B11=i10.drain;i10.drain=function(){typeof B11=="function"&&B11(),Q12(),i10.drain=B11;};}});});return E5}}s7(LJ,"queueAsPromised"),_I2.exports=iS3,_I2.exports.promise=LJ;}),Zo4=m2(tt8=>{Object.defineProperty(tt8,"__esModule",{value:!0}),tt8.joinPathSegments=tt8.replacePathSegmentSeparator=tt8.isAppliedFilter=tt8.isFatalError=void 0;function xJ(t20,A11){return t20.errorFilter===null?!0:!t20.errorFilter(A11)}s7(xJ,"isFatalError"),tt8.isFatalError=xJ;function YJ(t20,A11){return t20===null||t20(A11)}s7(YJ,"isAppliedFilter"),tt8.isAppliedFilter=YJ;function PJ(t20,A11){return t20.split(/[/\\]/).join(A11)}s7(PJ,"replacePathSegmentSeparator"),tt8.replacePathSegmentSeparator=PJ;function UJ(t20,A11,e5){return t20===""?A11:t20.endsWith(e5)?t20+A11:t20+e5+A11}s7(UJ,"joinPathSegments"),tt8.joinPathSegments=UJ;}),OI2=m2(JI2=>{Object.defineProperty(JI2,"__esModule",{value:!0});var _J=Zo4(),GI=class{static{s7(this,"Reader");}constructor(A11,e5){this._root=A11,this._settings=e5,this._root=_J.replacePathSegmentSeparator(A11,e5.pathSegmentSeparator);}};JI2.default=GI;}),jI2=m2(HI2=>{Object.defineProperty(HI2,"__esModule",{value:!0});var GJ=v11("events"),JJ=$o5(),OJ=sS2(),Ag2=Zo4(),TJ=OI2(),TI2=class extends TJ.default{static{s7(this,"AsyncReader");}constructor(A11,e5){super(A11,e5),this._settings=e5,this._scandir=JJ.scandir,this._emitter=new GJ.EventEmitter,this._queue=OJ(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end");};}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath);}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain();}onEntry(A11){this._emitter.on("entry",A11);}onError(A11){this._emitter.once("error",A11);}onEnd(A11){this._emitter.once("end",A11);}_pushToQueue(A11,e5){let r5={directory:A11,base:e5};this._queue.push(r5,i10=>{i10!==null&&this._handleError(i10);});}_worker(A11,e5){this._scandir(A11.directory,this._settings.fsScandirSettings,(r5,i10)=>{if(r5!==null){e5(r5,void 0);return}for(let n10 of i10)this._handleEntry(n10,A11.base);e5(null,void 0);});}_handleError(A11){this._isDestroyed||!Ag2.isFatalError(this._settings,A11)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A11));}_handleEntry(A11,e5){if(this._isDestroyed||this._isFatalError)return;let r5=A11.path;e5!==void 0&&(A11.path=Ag2.joinPathSegments(e5,A11.name,this._settings.pathSegmentSeparator)),Ag2.isAppliedFilter(this._settings.entryFilter,A11)&&this._emitEntry(A11),A11.dirent.isDirectory()&&Ag2.isAppliedFilter(this._settings.deepFilter,A11)&&this._pushToQueue(r5,e5===void 0?void 0:A11.path);}_emitEntry(A11){this._emitter.emit("entry",A11);}};HI2.default=TI2;}),nS2=m2(zI3=>{Object.defineProperty(zI3,"__esModule",{value:!0});var HJ=jI2(),qI3=class{static{s7(this,"AsyncProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new HJ.default(this._root,this._settings),this._storage=[];}read(A11){this._reader.onError(e5=>{jJ(A11,e5);}),this._reader.onEntry(e5=>{this._storage.push(e5);}),this._reader.onEnd(()=>{qJ(A11,this._storage);}),this._reader.read();}};zI3.default=qI3;function jJ(t20,A11){t20(A11);}s7(jJ,"callFailureCallback");function qJ(t20,A11){t20(null,A11);}s7(qJ,"callSuccessCallback");}),oS2=m2(VI2=>{Object.defineProperty(VI2,"__esModule",{value:!0});var zJ=v11("stream"),WJ=jI2(),WI3=class{static{s7(this,"StreamProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new WJ.default(this._root,this._settings),this._stream=new zJ.Readable({objectMode:!0,read:s7(()=>{},"read"),destroy:s7(()=>{this._reader.isDestroyed||this._reader.destroy();},"destroy")});}read(){return this._reader.onError(A11=>{this._stream.emit("error",A11);}),this._reader.onEntry(A11=>{this._stream.push(A11);}),this._reader.onEnd(()=>{this._stream.push(null);}),this._reader.read(),this._stream}};VI2.default=WI3;}),gS2=m2($I2=>{Object.defineProperty($I2,"__esModule",{value:!0});var VJ=$o5(),eg2=Zo4(),XJ=OI2(),XI3=class extends XJ.default{static{s7(this,"SyncReader");}constructor(){super(...arguments),this._scandir=VJ.scandirSync,this._storage=[],this._queue=new Set;}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A11,e5){this._queue.add({directory:A11,base:e5});}_handleQueue(){for(let A11 of this._queue.values())this._handleDirectory(A11.directory,A11.base);}_handleDirectory(A11,e5){try{let r5=this._scandir(A11,this._settings.fsScandirSettings);for(let i10 of r5)this._handleEntry(i10,e5);}catch(r5){this._handleError(r5);}}_handleError(A11){if(eg2.isFatalError(this._settings,A11))throw A11}_handleEntry(A11,e5){let r5=A11.path;e5!==void 0&&(A11.path=eg2.joinPathSegments(e5,A11.name,this._settings.pathSegmentSeparator)),eg2.isAppliedFilter(this._settings.entryFilter,A11)&&this._pushToStorage(A11),A11.dirent.isDirectory()&&eg2.isAppliedFilter(this._settings.deepFilter,A11)&&this._pushToQueue(r5,e5===void 0?void 0:A11.path);}_pushToStorage(A11){this._storage.push(A11);}};$I2.default=XI3;}),aS3=m2(Ah2=>{Object.defineProperty(Ah2,"__esModule",{value:!0});var $J=gS2(),ZI2=class{static{s7(this,"SyncProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new $J.default(this._root,this._settings);}read(){return this._reader.read()}};Ah2.default=ZI2;}),CS3=m2(th2=>{Object.defineProperty(th2,"__esModule",{value:!0});var ZJ=v11("path"),A22=$o5(),eh2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ZJ.sep),this.fsScandirSettings=new A22.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink});}_getValue(A11,e5){return A11??e5}};th2.default=eh2;}),rg3=m2(rt8=>{Object.defineProperty(rt8,"__esModule",{value:!0}),rt8.Settings=rt8.walkStream=rt8.walkSync=rt8.walk=void 0;var cS2=nS2(),e22=oS2(),t22=aS3(),rh2=CS3();rt8.Settings=rh2.default;function r22(t20,A11,e5){if(typeof A11=="function"){new cS2.default(t20,tg4()).read(A11);return}new cS2.default(t20,tg4(A11)).read(e5);}s7(r22,"walk"),rt8.walk=r22;function i22(t20,A11){let e5=tg4(A11);return new t22.default(t20,e5).read()}s7(i22,"walkSync"),rt8.walkSync=i22;function s22(t20,A11){let e5=tg4(A11);return new e22.default(t20,e5).read()}s7(s22,"walkStream"),rt8.walkStream=s22;function tg4(t20={}){return t20 instanceof rh2.default?t20:new rh2.default(t20)}s7(tg4,"getSettings");}),ig3=m2(sh2=>{Object.defineProperty(sh2,"__esModule",{value:!0});var n22=v11("path"),o22=ur4(),IS2=Dt6(),ih2=class{static{s7(this,"Reader");}constructor(A11){this._settings=A11,this._fsStatSettings=new o22.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks});}_getFullEntryPath(A11){return n22.resolve(this._settings.cwd,A11)}_makeEntry(A11,e5){let r5={name:e5,path:e5,dirent:IS2.fs.createDirentFromStats(e5,A11)};return this._settings.stats&&(r5.stats=A11),r5}_isFatalError(A11){return !IS2.errno.isEnoentCodeError(A11)&&!this._settings.suppressErrors}};sh2.default=ih2;}),gh2=m2(oh3=>{Object.defineProperty(oh3,"__esModule",{value:!0});var g22=v11("stream"),a22=ur4(),C22=rg3(),c22=ig3(),nh2=class extends c22.default{static{s7(this,"ReaderStream");}constructor(){super(...arguments),this._walkStream=C22.walkStream,this._stat=a22.stat;}dynamic(A11,e5){return this._walkStream(A11,e5)}static(A11,e5){let r5=A11.map(this._getFullEntryPath,this),i10=new g22.PassThrough({objectMode:!0});i10._write=(n10,o10,g5)=>this._getEntry(r5[n10],A11[n10],e5).then(C10=>{C10!==null&&e5.entryFilter(C10)&&i10.push(C10),n10===r5.length-1&&i10.end(),g5();}).catch(g5);for(let n10=0;n10<r5.length;n10++)i10.write(n10);return i10}_getEntry(A11,e5,r5){return this._getStat(A11).then(i10=>this._makeEntry(i10,e5)).catch(i10=>{if(r5.errorFilter(i10))return null;throw i10})}_getStat(A11){return new Promise((e5,r5)=>{this._stat(A11,this._fsStatSettings,(i10,n10)=>i10===null?e5(n10):r5(i10));})}};oh3.default=nh2;}),hS2=m2(Ch3=>{Object.defineProperty(Ch3,"__esModule",{value:!0});var I22=rg3(),h22=ig3(),l22=gh2(),ah3=class extends h22.default{static{s7(this,"ReaderAsync");}constructor(){super(...arguments),this._walkAsync=I22.walk,this._readerStream=new l22.default(this._settings);}dynamic(A11,e5){return new Promise((r5,i10)=>{this._walkAsync(A11,e5,(n10,o10)=>{n10===null?r5(o10):i10(n10);});})}async static(A11,e5){let r5=[],i10=this._readerStream.static(A11,e5);return new Promise((n10,o10)=>{i10.once("error",o10),i10.on("data",g5=>r5.push(g5)),i10.once("end",()=>n10(r5));})}};Ch3.default=ah3;}),lS2=m2(Ih2=>{Object.defineProperty(Ih2,"__esModule",{value:!0});var Es3=Dt6(),ch2=class{static{s7(this,"Matcher");}constructor(A11,e5,r5){this._patterns=A11,this._settings=e5,this._micromatchOptions=r5,this._storage=[],this._fillStorage();}_fillStorage(){for(let A11 of this._patterns){let e5=this._getPatternSegments(A11),r5=this._splitSegmentsIntoSections(e5);this._storage.push({complete:r5.length<=1,pattern:A11,segments:e5,sections:r5});}}_getPatternSegments(A11){return Es3.pattern.getPatternParts(A11,this._micromatchOptions).map(r5=>Es3.pattern.isDynamicPattern(r5,this._settings)?{dynamic:!0,pattern:r5,patternRe:Es3.pattern.makeRe(r5,this._micromatchOptions)}:{dynamic:!1,pattern:r5})}_splitSegmentsIntoSections(A11){return Es3.array.splitWhen(A11,e5=>e5.dynamic&&Es3.pattern.hasGlobStar(e5.pattern))}};Ih2.default=ch2;}),ES3=m2(lh2=>{Object.defineProperty(lh2,"__esModule",{value:!0});var E22=lS2(),hh4=class extends E22.default{static{s7(this,"PartialMatcher");}match(A11){let e5=A11.split("/"),r5=e5.length,i10=this._storage.filter(n10=>!n10.complete||n10.segments.length>r5);for(let n10 of i10){let o10=n10.sections[0];if(!n10.complete&&r5>o10.length||e5.every((C10,I13)=>{let E5=n10.segments[I13];return !!(E5.dynamic&&E5.patternRe.test(C10)||!E5.dynamic&&E5.pattern===C10)}))return !0}return !1}};lh2.default=hh4;}),uS2=m2(uh2=>{Object.defineProperty(uh2,"__esModule",{value:!0});var sg2=Dt6(),u22=ES3(),Eh2=class{static{s7(this,"DeepFilter");}constructor(A11,e5){this._settings=A11,this._micromatchOptions=e5;}getFilter(A11,e5,r5){let i10=this._getMatcher(e5),n10=this._getNegativePatternsRe(r5);return o10=>this._filter(A11,o10,i10,n10)}_getMatcher(A11){return new u22.default(A11,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A11){let e5=A11.filter(sg2.pattern.isAffectDepthOfReadingPattern);return sg2.pattern.convertPatternsToRe(e5,this._micromatchOptions)}_filter(A11,e5,r5,i10){if(this._isSkippedByDeep(A11,e5.path)||this._isSkippedSymbolicLink(e5))return !1;let n10=sg2.path.removeLeadingDotSegment(e5.path);return this._isSkippedByPositivePatterns(n10,r5)?!1:this._isSkippedByNegativePatterns(n10,i10)}_isSkippedByDeep(A11,e5){return this._settings.deep===1/0?!1:this._getEntryLevel(A11,e5)>=this._settings.deep}_getEntryLevel(A11,e5){let r5=e5.split("/").length;if(A11==="")return r5;let i10=A11.split("/").length;return r5-i10}_isSkippedSymbolicLink(A11){return !this._settings.followSymbolicLinks&&A11.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A11,e5){return !this._settings.baseNameMatch&&!e5.match(A11)}_isSkippedByNegativePatterns(A11,e5){return !sg2.pattern.matchAny(A11,e5)}};uh2.default=Eh2;}),BS2=m2(Qh2=>{Object.defineProperty(Qh2,"__esModule",{value:!0});var $t7=Dt6(),Bh3=class{static{s7(this,"EntryFilter");}constructor(A11,e5){this._settings=A11,this._micromatchOptions=e5,this.index=new Map;}getFilter(A11,e5){let[r5,i10]=$t7.pattern.partitionAbsoluteAndRelative(e5),n10={positive:{all:$t7.pattern.convertPatternsToRe(A11,this._micromatchOptions)},negative:{absolute:$t7.pattern.convertPatternsToRe(r5,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:$t7.pattern.convertPatternsToRe(i10,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o10=>this._filter(o10,n10)}_filter(A11,e5){let r5=$t7.path.removeLeadingDotSegment(A11.path);if(this._settings.unique&&this._isDuplicateEntry(r5)||this._onlyFileFilter(A11)||this._onlyDirectoryFilter(A11))return !1;let i10=this._isMatchToPatternsSet(r5,e5,A11.dirent.isDirectory());return this._settings.unique&&i10&&this._createIndexRecord(r5),i10}_isDuplicateEntry(A11){return this.index.has(A11)}_createIndexRecord(A11){this.index.set(A11,void 0);}_onlyFileFilter(A11){return this._settings.onlyFiles&&!A11.dirent.isFile()}_onlyDirectoryFilter(A11){return this._settings.onlyDirectories&&!A11.dirent.isDirectory()}_isMatchToPatternsSet(A11,e5,r5){return !(!this._isMatchToPatterns(A11,e5.positive.all,r5)||this._isMatchToPatterns(A11,e5.negative.relative,r5)||this._isMatchToAbsoluteNegative(A11,e5.negative.absolute,r5))}_isMatchToAbsoluteNegative(A11,e5,r5){if(e5.length===0)return !1;let i10=$t7.path.makeAbsolute(this._settings.cwd,A11);return this._isMatchToPatterns(i10,e5,r5)}_isMatchToPatterns(A11,e5,r5){if(e5.length===0)return !1;let i10=$t7.pattern.matchAny(A11,e5);return !i10&&r5?$t7.pattern.matchAny(A11+"/",e5):i10}};Qh2.default=Bh3;}),QS2=m2(dh2=>{Object.defineProperty(dh2,"__esModule",{value:!0});var B22=Dt6(),fh2=class{static{s7(this,"ErrorFilter");}constructor(A11){this._settings=A11;}getFilter(){return A11=>this._isNonFatalError(A11)}_isNonFatalError(A11){return B22.errno.isEnoentCodeError(A11)||this._settings.suppressErrors}};dh2.default=fh2;}),dS2=m2(wh2=>{Object.defineProperty(wh2,"__esModule",{value:!0});var fS2=Dt6(),ph2=class{static{s7(this,"EntryTransformer");}constructor(A11){this._settings=A11;}getTransformer(){return A11=>this._transform(A11)}_transform(A11){let e5=A11.path;return this._settings.absolute&&(e5=fS2.path.makeAbsolute(this._settings.cwd,e5),e5=fS2.path.unixify(e5)),this._settings.markDirectories&&A11.dirent.isDirectory()&&(e5+="/"),this._settings.objectMode?Object.assign(Object.assign({},A11),{path:e5}):e5}};wh2.default=ph2;}),ng3=m2(yh2=>{Object.defineProperty(yh2,"__esModule",{value:!0});var Q23=v11("path"),f22=uS2(),d22=BS2(),p22=QS2(),w22=dS2(),mh2=class{static{s7(this,"Provider");}constructor(A11){this._settings=A11,this.errorFilter=new p22.default(this._settings),this.entryFilter=new d22.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f22.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new w22.default(this._settings);}_getRootDirectory(A11){return Q23.resolve(this._settings.cwd,A11.base)}_getReaderOptions(A11){let e5=A11.base==="."?"":A11.base;return {basePath:e5,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e5,A11.positive,A11.negative),entryFilter:this.entryFilter.getFilter(A11.positive,A11.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return {dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};yh2.default=mh2;}),pS2=m2(Sh4=>{Object.defineProperty(Sh4,"__esModule",{value:!0});var m22=hS2(),y22=ng3(),Dh2=class extends y22.default{static{s7(this,"ProviderAsync");}constructor(){super(...arguments),this._reader=new m22.default(this._settings);}async read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11);return (await this.api(e5,A11,r5)).map(n10=>r5.transform(n10))}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Sh4.default=Dh2;}),wS2=m2(Fh2=>{Object.defineProperty(Fh2,"__esModule",{value:!0});var D22=v11("stream"),S22=gh2(),K22=ng3(),Kh2=class extends K22.default{static{s7(this,"ProviderStream");}constructor(){super(...arguments),this._reader=new S22.default(this._settings);}read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11),i10=this.api(e5,A11,r5),n10=new D22.Readable({objectMode:!0,read:s7(()=>{},"read")});return i10.once("error",o10=>n10.emit("error",o10)).on("data",o10=>n10.emit("data",r5.transform(o10))).once("end",()=>n10.emit("end")),n10.once("close",()=>i10.destroy()),n10}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Fh2.default=Kh2;}),mS2=m2(kh2=>{Object.defineProperty(kh2,"__esModule",{value:!0});var F22=ur4(),b22=rg3(),k22=ig3(),bh3=class extends k22.default{static{s7(this,"ReaderSync");}constructor(){super(...arguments),this._walkSync=b22.walkSync,this._statSync=F22.statSync;}dynamic(A11,e5){return this._walkSync(A11,e5)}static(A11,e5){let r5=[];for(let i10 of A11){let n10=this._getFullEntryPath(i10),o10=this._getEntry(n10,i10,e5);o10===null||!e5.entryFilter(o10)||r5.push(o10);}return r5}_getEntry(A11,e5,r5){try{let i10=this._getStat(A11);return this._makeEntry(i10,e5)}catch(i10){if(r5.errorFilter(i10))return null;throw i10}}_getStat(A11){return this._statSync(A11,this._fsStatSettings)}};kh2.default=bh3;}),yS2=m2(Mh3=>{Object.defineProperty(Mh3,"__esModule",{value:!0});var N22=mS2(),M22=ng3(),Nh2=class extends M22.default{static{s7(this,"ProviderSync");}constructor(){super(...arguments),this._reader=new N22.default(this._settings);}read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11);return this.api(e5,A11,r5).map(r5.transform)}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Mh3.default=Nh2;}),DS3=m2(ti4=>{Object.defineProperty(ti4,"__esModule",{value:!0}),ti4.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ei6=v11("fs"),R22=v11("os"),v22=Math.max(R22.cpus().length,1);ti4.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ei6.lstat,lstatSync:ei6.lstatSync,stat:ei6.stat,statSync:ei6.statSync,readdir:ei6.readdir,readdirSync:ei6.readdirSync};var Rh2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,v22),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore);}_getValue(A11,e5){return A11===void 0?e5:A11}_getFileSystemMethods(A11={}){return Object.assign(Object.assign({},ti4.DEFAULT_FILE_SYSTEM_ADAPTER),A11)}};ti4.default=Rh2;}),Yh3=m2((R72,KS2)=>{var SS2=KD2(),L22=pS2(),x22=wS2(),Y22=yS2(),vh2=DS3(),De7=Dt6();async function Lh4(t20,A11){Oe5(t20);let e5=xh2(t20,L22.default,A11),r5=await Promise.all(e5);return De7.array.flatten(r5)}s7(Lh4,"FastGlob"),function(t20){t20.glob=t20,t20.globSync=A11,t20.globStream=e5,t20.async=t20;function A11(I13,E5){Oe5(I13);let Q12=xh2(I13,Y22.default,E5);return De7.array.flatten(Q12)}s7(A11,"sync"),t20.sync=A11;function e5(I13,E5){Oe5(I13);let Q12=xh2(I13,x22.default,E5);return De7.stream.merge(Q12)}s7(e5,"stream"),t20.stream=e5;function r5(I13,E5){Oe5(I13);let Q12=[].concat(I13),B11=new vh2.default(E5);return SS2.generate(Q12,B11)}s7(r5,"generateTasks"),t20.generateTasks=r5;function i10(I13,E5){Oe5(I13);let Q12=new vh2.default(E5);return De7.pattern.isDynamicPattern(I13,Q12)}s7(i10,"isDynamicPattern"),t20.isDynamicPattern=i10;function n10(I13){return Oe5(I13),De7.path.escape(I13)}s7(n10,"escapePath"),t20.escapePath=n10;function o10(I13){return Oe5(I13),De7.path.convertPathToPattern(I13)}s7(o10,"convertPathToPattern"),t20.convertPathToPattern=o10;(function(I13){function E5(B11){return Oe5(B11),De7.path.escapePosixPath(B11)}s7(E5,"escapePath"),I13.escapePath=E5;function Q12(B11){return Oe5(B11),De7.path.convertPosixPathToPattern(B11)}s7(Q12,"convertPathToPattern"),I13.convertPathToPattern=Q12;})(t20.posix||(t20.posix={}));(function(I13){function E5(B11){return Oe5(B11),De7.path.escapeWindowsPath(B11)}s7(E5,"escapePath"),I13.escapePath=E5;function Q12(B11){return Oe5(B11),De7.path.convertWindowsPathToPattern(B11)}s7(Q12,"convertPathToPattern"),I13.convertPathToPattern=Q12;})(t20.win32||(t20.win32={}));}(Lh4||(Lh4={}));function xh2(t20,A11,e5){let r5=[].concat(t20),i10=new vh2.default(e5),n10=SS2.generate(r5,i10),o10=new A11(i10);return n10.map(o10.read,o10)}s7(xh2,"getWorks");function Oe5(t20){if(![].concat(t20).every(r5=>De7.string.isString(r5)&&!De7.string.isEmpty(r5)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}s7(Oe5,"assertPatternsInput"),KS2.exports=Lh4;});async function Ph2(t20,A11,e5){if(typeof e5!="string")throw new TypeError(`Expected a string, got ${typeof e5}`);try{return (await fs5__default[t20](e5))[A11]()}catch(r5){if(r5.code==="ENOENT")return !1;throw r5}}function Uh3(t20,A11,e5){if(typeof e5!="string")throw new TypeError(`Expected a string, got ${typeof e5}`);try{return tn6__default[t20](e5)[A11]()}catch(r5){if(r5.code==="ENOENT")return !1;throw r5}}var FS2,bS2,kS3=ue6(()=>{s7(Ph2,"isType"),s7(Uh3,"isTypeSync"),Ph2.bind(void 0,"stat","isFile"),FS2=Ph2.bind(void 0,"stat","isDirectory"),Ph2.bind(void 0,"lstat","isSymbolicLink"),Uh3.bind(void 0,"statSync","isFile"),bS2=Uh3.bind(void 0,"statSync","isDirectory"),Uh3.bind(void 0,"lstatSync","isSymbolicLink");}),NS3=ue6(()=>{});function us3(t20){return t20 instanceof URL?fileURLToPath(t20):t20}var _h3=ue6(()=>{NS3(),promisify$1(execFile),s7(us3,"toPath");}),US3=m2((tAA,qh3)=>{function vS2(t20){return Array.isArray(t20)?t20:[t20]}s7(vS2,"makeArray");var O22=void 0,Jh4="",MS2=" ",Gh2="\\",T22=/^\s+$/,H23=/(?:[^\\]|^)\\$/,j23=/^\\!/,q22=/^\\#/,z22=/\r?\n/g,W22=/^\.{0,2}\/|^\.{1,2}$/,V23=/\/$/,ri5="/",LS2="node-ignore";typeof Symbol<"u"&&(LS2=Symbol.for("node-ignore"));var xS2=LS2,Bs4=s7((t20,A11,e5)=>(Object.defineProperty(t20,A11,{value:e5}),e5),"define"),X22=/([0-z])-([0-z])/g,YS2=s7(()=>!1,"RETURN_FALSE"),$22=s7(t20=>t20.replace(X22,(A11,e5,r5)=>e5.charCodeAt(0)<=r5.charCodeAt(0)?A11:Jh4),"sanitizeRange"),Z22=s7(t20=>{let{length:A11}=t20;return t20.slice(0,A11-A11%2)},"cleanRangeBackSlash"),AO2=[[/^\uFEFF/,()=>Jh4],[/((?:\\\\)*?)(\\?\s+)$/,(t20,A11,e5)=>A11+(e5.indexOf("\\")===0?MS2:Jh4)],[/(\\+?)\s/g,(t20,A11)=>{let{length:e5}=A11;return A11.slice(0,e5-e5%2)+MS2}],[/[\\$.|*+(){^]/g,t20=>`\\${t20}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,s7(function(){return /\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t20,A11,e5)=>A11+6<e5.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t20,A11,e5)=>{let r5=e5.replace(/\\\*/g,"[^\\/]*");return A11+r5}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Gh2],[/\\\\/g,()=>Gh2],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t20,A11,e5,r5,i10)=>A11===Gh2?`\\[${e5}${Z22(r5)}${i10}`:i10==="]"&&r5.length%2===0?`[${$22(e5)}${r5}]`:"[]"],[/(?:[^*])$/,t20=>/\/$/.test(t20)?`${t20}$`:`${t20}(?=$|\\/$)`]],eO=/(^|\\\/)?\\\*$/,Qs5="regex",og3="checkRegex",RS3="_",tO2={[Qs5](t20,A11){return `${A11?`${A11}[^/]+`:"[^/]*"}(?=$|\\/$)`},[og3](t20,A11){return `${A11?`${A11}[^/]*`:"[^/]*"}(?=$|\\/$)`}},rO=s7(t20=>AO2.reduce((A11,[e5,r5])=>A11.replace(e5,r5.bind(t20)),t20),"makeRegexPrefix"),gg3=s7(t20=>typeof t20=="string","isString"),iO2=s7(t20=>t20&&gg3(t20)&&!T22.test(t20)&&!H23.test(t20)&&t20.indexOf("#")!==0,"checkPattern"),sO=s7(t20=>t20.split(z22).filter(Boolean),"splitPattern"),Oh3=class{static{s7(this,"IgnoreRule");}constructor(A11,e5,r5,i10,n10,o10){this.pattern=A11,this.mark=e5,this.negative=n10,Bs4(this,"body",r5),Bs4(this,"ignoreCase",i10),Bs4(this,"regexPrefix",o10);}get regex(){let A11=RS3+Qs5;return this[A11]?this[A11]:this._make(Qs5,A11)}get checkRegex(){let A11=RS3+og3;return this[A11]?this[A11]:this._make(og3,A11)}_make(A11,e5){let r5=this.regexPrefix.replace(eO,tO2[A11]),i10=this.ignoreCase?new RegExp(r5,"i"):new RegExp(r5);return Bs4(this,e5,i10)}},nO2=s7(({pattern:t20,mark:A11},e5)=>{let r5=!1,i10=t20;i10.indexOf("!")===0&&(r5=!0,i10=i10.substr(1)),i10=i10.replace(j23,"!").replace(q22,"#");let n10=rO(i10);return new Oh3(t20,A11,i10,e5,r5,n10)},"createRule"),Th3=class{static{s7(this,"RuleManager");}constructor(A11){this._ignoreCase=A11,this._rules=[];}_add(A11){if(A11&&A11[xS2]){this._rules=this._rules.concat(A11._rules._rules),this._added=!0;return}if(gg3(A11)&&(A11={pattern:A11}),iO2(A11.pattern)){let e5=nO2(A11,this._ignoreCase);this._added=!0,this._rules.push(e5);}}add(A11){return this._added=!1,vS2(gg3(A11)?sO(A11):A11).forEach(this._add,this),this._added}test(A11,e5,r5){let i10=!1,n10=!1,o10;this._rules.forEach(C10=>{let{negative:I13}=C10;n10===I13&&i10!==n10||I13&&!i10&&!n10&&!e5||!C10[r5].test(A11)||(i10=!I13,n10=I13,o10=I13?O22:C10);});let g5={ignored:i10,unignored:n10};return o10&&(g5.rule=o10),g5}},oO=s7((t20,A11)=>{throw new A11(t20)},"throwError"),St7=s7((t20,A11,e5)=>gg3(t20)?t20?St7.isNotRelative(t20)?e5(`path should be a \`path.relative()\`d string, but got "${A11}"`,RangeError):!0:e5("path must not be empty",TypeError):e5(`path must be a string, but got \`${A11}\``,TypeError),"checkPath"),PS2=s7(t20=>W22.test(t20),"isNotRelative");St7.isNotRelative=PS2,St7.convert=t20=>t20;var Hh4=class{static{s7(this,"Ignore");}constructor({ignorecase:A11=!0,ignoreCase:e5=A11,allowRelativePaths:r5=!1}={}){Bs4(this,xS2,!0),this._rules=new Th3(e5),this._strictPathCheck=!r5,this._initCache();}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null);}add(A11){return this._rules.add(A11)&&this._initCache(),this}addPattern(A11){return this.add(A11)}_test(A11,e5,r5,i10){let n10=A11&&St7.convert(A11);return St7(n10,A11,this._strictPathCheck?oO:YS2),this._t(n10,e5,r5,i10)}checkIgnore(A11){if(!V23.test(A11))return this.test(A11);let e5=A11.split(ri5).filter(Boolean);if(e5.pop(),e5.length){let r5=this._t(e5.join(ri5)+ri5,this._testCache,!0,e5);if(r5.ignored)return r5}return this._rules.test(A11,!1,og3)}_t(A11,e5,r5,i10){if(A11 in e5)return e5[A11];if(i10||(i10=A11.split(ri5).filter(Boolean)),i10.pop(),!i10.length)return e5[A11]=this._rules.test(A11,r5,Qs5);let n10=this._t(i10.join(ri5)+ri5,e5,r5,i10);return e5[A11]=n10.ignored?n10:this._rules.test(A11,r5,Qs5)}ignores(A11){return this._test(A11,this._ignoreCache,!1).ignored}createFilter(){return A11=>!this.ignores(A11)}filter(A11){return vS2(A11).filter(this.createFilter())}test(A11){return this._test(A11,this._testCache,!0)}},jh2=s7(t20=>new Hh4(t20),"factory"),gO3=s7(t20=>St7(t20&&St7.convert(t20),t20,YS2),"isPathValid");if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t20=s7(e5=>/^\\\\\?\\/.test(e5)||/["<>|\u0000-\u001F]+/u.test(e5)?e5:e5.replace(/\\/g,"/"),"makePosix");St7.convert=t20;let A11=/^[a-z]:\//i;St7.isNotRelative=e5=>A11.test(e5)||PS2(e5);}qh3.exports=jh2,jh2.default=jh2,qh3.exports.isPathValid=gO3;}),fs4,zh3=ue6(()=>{fs4=s7(t20=>t20[0]==="!","isNegativePattern");}),Wh3,_S2,IO,GS2,ag3,hO3,lO,EO3,JS2,OS2,ds3,ps3,TS3,HS2,Vh2=ue6(()=>{Wh3=cA2(Yh3(),1),_S2=cA2(US3(),1),Rr6(),_h3(),zh3(),IO=["**/node_modules","**/flow-typed","**/coverage","**/.git"],GS2={absolute:!0,dot:!0},ag3="**/.gitignore",hO3=s7((t20,A11)=>fs4(t20)?"!"+qe8.posix.join(A11,t20.slice(1)):qe8.posix.join(A11,t20),"applyBaseToPattern"),lO=s7((t20,A11)=>{let e5=Ae6(qe8.relative(A11,qe8.dirname(t20.filePath)));return t20.content.split(/\r?\n/).filter(r5=>r5&&!r5.startsWith("#")).map(r5=>hO3(r5,e5))},"parseIgnoreFile"),EO3=s7((t20,A11)=>{if(A11=Ae6(A11),qe8.isAbsolute(t20)){if(Ae6(t20).startsWith(A11))return qe8.relative(A11,t20);throw new Error(`Path ${t20} is not in cwd ${A11}`)}return t20},"toRelativePath"),JS2=s7((t20,A11)=>{let e5=t20.flatMap(i10=>lO(i10,A11)),r5=(0, _S2.default)().add(e5);return i10=>(i10=us3(i10),i10=EO3(i10,A11),i10?r5.ignores(Ae6(i10)):!1)},"getIsIgnoredPredicate"),OS2=s7((t20={})=>({cwd:us3(t20.cwd)??Q.cwd(),suppressErrors:!!t20.suppressErrors,deep:typeof t20.deep=="number"?t20.deep:Number.POSITIVE_INFINITY,ignore:[...t20.ignore??[],...IO]}),"normalizeOptions"),ds3=s7(async(t20,A11)=>{let{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10}=OS2(A11),o10=await(0, Wh3.default)(t20,{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10,...GS2}),g5=await Promise.all(o10.map(async C10=>({filePath:C10,content:await fs5__default.readFile(C10,"utf8")})));return JS2(g5,e5)},"isIgnoredByIgnoreFiles"),ps3=s7((t20,A11)=>{let{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10}=OS2(A11),g5=Wh3.default.sync(t20,{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10,...GS2}).map(C10=>({filePath:C10,content:tn6__default.readFileSync(C10,"utf8")}));return JS2(g5,e5)},"isIgnoredByIgnoreFilesSync"),TS3=s7(t20=>ds3(ag3,t20),"isGitIgnored"),HS2=s7(t20=>ps3(ag3,t20),"isGitIgnoredSync");}),nK={};Ks3(nK,{convertPathToPattern:()=>SO2,generateGlobTasks:()=>yO3,generateGlobTasksSync:()=>DO2,globby:()=>dO2,globbyStream:()=>wO2,globbySync:()=>pO3,isDynamicPattern:()=>mO3,isGitIgnored:()=>TS3,isGitIgnoredSync:()=>HS2,isIgnoredByIgnoreFiles:()=>ds3,isIgnoredByIgnoreFilesSync:()=>ps3});var ni6,BO2,WS2,VS2,jS3,qS2,Xh3,QO2,XS2,$S2,Cg2,ZS2,fO3,AK,eK,tK,rK,iK,sK,$h3,dO2,pO3,wO2,mO3,yO3,DO2,SO2,oK=ue6(()=>{iy2(),ni6=cA2(Yh3(),1),kS3(),_h3(),Vh2(),zh3(),Vh2(),BO2=s7(t20=>{if(t20.some(A11=>typeof A11!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),WS2=s7((t20,A11)=>{let e5=fs4(t20)?t20.slice(1):t20;return qe8.isAbsolute(e5)?e5:qe8.join(A11,e5)},"normalizePathForDirectoryGlob"),VS2=s7(({directoryPath:t20,files:A11,extensions:e5})=>{let r5=e5?.length>0?`.${e5.length>1?`{${e5.join(",")}}`:e5[0]}`:"";return A11?A11.map(i10=>qe8.posix.join(t20,`**/${qe8.extname(i10)?i10:`${i10}${r5}`}`)):[qe8.posix.join(t20,`**${r5?`/*${r5}`:""}`)]},"getDirectoryGlob"),jS3=s7(async(t20,{cwd:A11=Q.cwd(),files:e5,extensions:r5}={})=>(await Promise.all(t20.map(async n10=>await FS2(WS2(n10,A11))?VS2({directoryPath:n10,files:e5,extensions:r5}):n10))).flat(),"directoryToGlob"),qS2=s7((t20,{cwd:A11=Q.cwd(),files:e5,extensions:r5}={})=>t20.flatMap(i10=>bS2(WS2(i10,A11))?VS2({directoryPath:i10,files:e5,extensions:r5}):i10),"directoryToGlobSync"),Xh3=s7(t20=>(t20=[...new Set([t20].flat())],BO2(t20),t20),"toPatternsArray"),QO2=s7(t20=>{if(!t20)return;let A11;try{A11=tn6__default.statSync(t20);}catch{return}if(!A11.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),XS2=s7((t20={})=>(t20={...t20,ignore:t20.ignore??[],expandDirectories:t20.expandDirectories??!0,cwd:us3(t20.cwd)},QO2(t20.cwd),t20),"normalizeOptions"),$S2=s7(t20=>async(A11,e5)=>t20(Xh3(A11),XS2(e5)),"normalizeArguments"),Cg2=s7(t20=>(A11,e5)=>t20(Xh3(A11),XS2(e5)),"normalizeArgumentsSync"),ZS2=s7(t20=>{let{ignoreFiles:A11,gitignore:e5}=t20,r5=A11?Xh3(A11):[];return e5&&r5.push(ag3),r5},"getIgnoreFilesPatterns"),fO3=s7(async t20=>{let A11=ZS2(t20);return eK(A11.length>0&&await ds3(A11,t20))},"getFilter"),AK=s7(t20=>{let A11=ZS2(t20);return eK(A11.length>0&&ps3(A11,t20))},"getFilterSync"),eK=s7(t20=>{let A11=new Set;return e5=>{let r5=qe8.normalize(e5.path??e5);return A11.has(r5)||t20&&t20(r5)?!1:(A11.add(r5),!0)}},"createFilterFunction"),tK=s7((t20,A11)=>t20.flat().filter(e5=>A11(e5)),"unionFastGlobResults"),rK=s7((t20,A11)=>{let e5=[];for(;t20.length>0;){let r5=t20.findIndex(n10=>fs4(n10));if(r5===-1){e5.push({patterns:t20,options:A11});break}let i10=t20[r5].slice(1);for(let n10 of e5)n10.options.ignore.push(i10);r5!==0&&e5.push({patterns:t20.slice(0,r5),options:{...A11,ignore:[...A11.ignore,i10]}}),t20=t20.slice(r5+1);}return e5},"convertNegativePatterns"),iK=s7((t20,A11)=>({...A11?{cwd:A11}:{},...Array.isArray(t20)?{files:t20}:t20}),"normalizeExpandDirectoriesOption"),sK=s7(async(t20,A11)=>{let e5=rK(t20,A11),{cwd:r5,expandDirectories:i10}=A11;if(!i10)return e5;let n10=iK(i10,r5);return Promise.all(e5.map(async o10=>{let{patterns:g5,options:C10}=o10;return [g5,C10.ignore]=await Promise.all([jS3(g5,n10),jS3(C10.ignore,{cwd:r5})]),{patterns:g5,options:C10}}))},"generateTasks"),$h3=s7((t20,A11)=>{let e5=rK(t20,A11),{cwd:r5,expandDirectories:i10}=A11;if(!i10)return e5;let n10=iK(i10,r5);return e5.map(o10=>{let{patterns:g5,options:C10}=o10;return g5=qS2(g5,n10),C10.ignore=qS2(C10.ignore,{cwd:r5}),{patterns:g5,options:C10}})},"generateTasksSync"),dO2=$S2(async(t20,A11)=>{let[e5,r5]=await Promise.all([sK(t20,A11),fO3(A11)]),i10=await Promise.all(e5.map(n10=>(0, ni6.default)(n10.patterns,n10.options)));return tK(i10,r5)}),pO3=Cg2((t20,A11)=>{let e5=$h3(t20,A11),r5=AK(A11),i10=e5.map(n10=>ni6.default.sync(n10.patterns,n10.options));return tK(i10,r5)}),wO2=Cg2((t20,A11)=>{let e5=$h3(t20,A11),r5=AK(A11),i10=e5.map(o10=>ni6.default.stream(o10.patterns,o10.options));return aI2(i10).filter(o10=>r5(o10))}),mO3=Cg2((t20,A11)=>t20.some(e5=>ni6.default.isDynamicPattern(e5,A11))),yO3=$S2(sK),DO2=Cg2($h3),{convertPathToPattern:SO2}=ni6.default;}),CK={};Ks3(CK,{default:()=>Zh3,limitFunction:()=>KO2});function Zh3(t20){aK(t20);let A11=new rr7,e5=0,r5=s7(()=>{e5<t20&&A11.size>0&&(A11.dequeue()(),e5++);},"resumeNext"),i10=s7(()=>{e5--,r5();},"next"),n10=s7(async(C10,I13,E5)=>{let Q12=(async()=>C10(...E5))();I13(Q12);try{await Q12;}catch{}i10();},"run"),o10=s7((C10,I13,E5)=>{new Promise(Q12=>{A11.enqueue(Q12);}).then(n10.bind(void 0,C10,I13,E5)),(async()=>(await Promise.resolve(),e5<t20&&r5()))();},"enqueue"),g5=s7((C10,...I13)=>new Promise(E5=>{o10(C10,E5,I13);}),"generator");return Object.defineProperties(g5,{activeCount:{get:s7(()=>e5,"get")},pendingCount:{get:s7(()=>A11.size,"get")},clearQueue:{value(){A11.clear();}},concurrency:{get:s7(()=>t20,"get"),set(C10){aK(C10),t20=C10,queueMicrotask(()=>{for(;e5<t20&&A11.size>0;)r5();});}}}),g5}function KO2(t20,A11){let{concurrency:e5}=A11,r5=Zh3(e5);return (...i10)=>r5(()=>t20(...i10))}function aK(t20){if(!((Number.isInteger(t20)||t20===Number.POSITIVE_INFINITY)&&t20>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var ot6={"@storybook/addon-a11y":"9.1.0-beta.0","@storybook/addon-docs":"9.1.0-beta.0","@storybook/addon-jest":"9.1.0-beta.0","@storybook/addon-links":"9.1.0-beta.0","@storybook/addon-onboarding":"9.1.0-beta.0","storybook-addon-pseudo-states":"9.1.0-beta.0","@storybook/addon-themes":"9.1.0-beta.0","@storybook/addon-vitest":"9.1.0-beta.0","@storybook/builder-vite":"9.1.0-beta.0","@storybook/builder-webpack5":"9.1.0-beta.0",storybook:"9.1.0-beta.0","@storybook/angular":"9.1.0-beta.0","@storybook/ember":"9.1.0-beta.0","@storybook/html-vite":"9.1.0-beta.0","@storybook/nextjs":"9.1.0-beta.0","@storybook/nextjs-vite":"9.1.0-beta.0","@storybook/preact-vite":"9.1.0-beta.0","@storybook/react-native-web-vite":"9.1.0-beta.0","@storybook/react-vite":"9.1.0-beta.0","@storybook/react-webpack5":"9.1.0-beta.0","@storybook/server-webpack5":"9.1.0-beta.0","@storybook/svelte-vite":"9.1.0-beta.0","@storybook/sveltekit":"9.1.0-beta.0","@storybook/vue3-vite":"9.1.0-beta.0","@storybook/web-components-vite":"9.1.0-beta.0",sb:"9.1.0-beta.0","@storybook/cli":"9.1.0-beta.0","@storybook/codemod":"9.1.0-beta.0","@storybook/core-webpack":"9.1.0-beta.0","create-storybook":"9.1.0-beta.0","@storybook/csf-plugin":"9.1.0-beta.0","eslint-plugin-storybook":"9.1.0-beta.0","@storybook/react-dom-shim":"9.1.0-beta.0","@storybook/preset-create-react-app":"9.1.0-beta.0","@storybook/preset-react-webpack":"9.1.0-beta.0","@storybook/preset-server-webpack":"9.1.0-beta.0","@storybook/html":"9.1.0-beta.0","@storybook/preact":"9.1.0-beta.0","@storybook/react":"9.1.0-beta.0","@storybook/server":"9.1.0-beta.0","@storybook/svelte":"9.1.0-beta.0","@storybook/vue3":"9.1.0-beta.0","@storybook/web-components":"9.1.0-beta.0"},KE3=cA2(gt4(),1),fg2=new Set([".js",".jsx",".ts",".tsx",".cts",".mts",".cjs",".mjs"]);function sF(){return [...Array.from(fg2)]}s7(sF,"sortExtensions");var ul2=sF();function wr8(t20){return ul2.map(A11=>t20.endsWith(A11)?t20:`${t20}${A11}`).find(A11=>existsSync(A11))}s7(wr8,"getInterpretedFile");function Bl2(t20){return ul2.map(A11=>({path:t20.endsWith(A11)?t20:`${t20}${A11}`,ext:A11})).find(A11=>existsSync(A11.path))}s7(Bl2,"getInterpretedFileWithExt");var Ql2=!1;function dg3(t20){let A11=!!v11("module")._extensions[".ts"];if(Ql2===!1&&!A11){let{register:i10}=v11("esbuild-register/dist/node");Ql2=!0,i10({target:`node${process.version.slice(1)}`,format:"cjs",hookIgnoreNodeModules:!0,keepNames:!0,tsconfigRaw:`{
|
|
2605
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};}),Xy2=m2((O63,Vy3)=>{var eG2=Po5(),{MAX_LENGTH:qy2,CHAR_BACKSLASH:QI3,CHAR_BACKTICK:tG2,CHAR_COMMA:rG2,CHAR_DOT:iG2,CHAR_LEFT_PARENTHESES:sG2,CHAR_RIGHT_PARENTHESES:nG2,CHAR_LEFT_CURLY_BRACE:oG2,CHAR_RIGHT_CURLY_BRACE:gG,CHAR_LEFT_SQUARE_BRACKET:zy2,CHAR_RIGHT_SQUARE_BRACKET:Wy2,CHAR_DOUBLE_QUOTE:aG2,CHAR_SINGLE_QUOTE:CG,CHAR_NO_BREAK_SPACE:cG2,CHAR_ZERO_WIDTH_NOBREAK_SPACE:IG}=jy2(),hG=s7((t20,A11={})=>{if(typeof t20!="string")throw new TypeError("Expected a string");let e5=A11||{},r5=typeof e5.maxLength=="number"?Math.min(qy2,e5.maxLength):qy2;if(t20.length>r5)throw new SyntaxError(`Input length (${t20.length}), exceeds max characters (${r5})`);let i10={type:"root",input:t20,nodes:[]},n10=[i10],o10=i10,g5=i10,C10=0,I13=t20.length,E5=0,Q12=0,B11,p7=s7(()=>t20[E5++],"advance"),w8=s7(D10=>{if(D10.type==="text"&&g5.type==="dot"&&(g5.type="text"),g5&&g5.type==="text"&&D10.type==="text"){g5.value+=D10.value;return}return o10.nodes.push(D10),D10.parent=o10,D10.prev=g5,g5=D10,D10},"push");for(w8({type:"bos"});E5<I13;)if(o10=n10[n10.length-1],B11=p7(),!(B11===IG||B11===cG2)){if(B11===QI3){w8({type:"text",value:(A11.keepEscaping?B11:"")+p7()});continue}if(B11===Wy2){w8({type:"text",value:"\\"+B11});continue}if(B11===zy2){C10++;let D10;for(;E5<I13&&(D10=p7());){if(B11+=D10,D10===zy2){C10++;continue}if(D10===QI3){B11+=p7();continue}if(D10===Wy2&&(C10--,C10===0))break}w8({type:"text",value:B11});continue}if(B11===sG2){o10=w8({type:"paren",nodes:[]}),n10.push(o10),w8({type:"text",value:B11});continue}if(B11===nG2){if(o10.type!=="paren"){w8({type:"text",value:B11});continue}o10=n10.pop(),w8({type:"text",value:B11}),o10=n10[n10.length-1];continue}if(B11===aG2||B11===CG||B11===tG2){let D10=B11,N13;for(A11.keepQuotes!==!0&&(B11="");E5<I13&&(N13=p7());){if(N13===QI3){B11+=N13+p7();continue}if(N13===D10){A11.keepQuotes===!0&&(B11+=N13);break}B11+=N13;}w8({type:"text",value:B11});continue}if(B11===oG2){Q12++;let N13={type:"brace",open:!0,close:!1,dollar:g5.value&&g5.value.slice(-1)==="$"||o10.dollar===!0,depth:Q12,commas:0,ranges:0,nodes:[]};o10=w8(N13),n10.push(o10),w8({type:"open",value:B11});continue}if(B11===gG){if(o10.type!=="brace"){w8({type:"text",value:B11});continue}let D10="close";o10=n10.pop(),o10.close=!0,w8({type:D10,value:B11}),Q12--,o10=n10[n10.length-1];continue}if(B11===rG2&&Q12>0){if(o10.ranges>0){o10.ranges=0;let D10=o10.nodes.shift();o10.nodes=[D10,{type:"text",value:eG2(o10)}];}w8({type:"comma",value:B11}),o10.commas++;continue}if(B11===iG2&&Q12>0&&o10.commas===0){let D10=o10.nodes;if(Q12===0||D10.length===0){w8({type:"text",value:B11});continue}if(g5.type==="dot"){if(o10.range=[],g5.value+=B11,g5.type="range",o10.nodes.length!==3&&o10.nodes.length!==5){o10.invalid=!0,o10.ranges=0,g5.type="text";continue}o10.ranges++,o10.args=[];continue}if(g5.type==="range"){D10.pop();let N13=D10[D10.length-1];N13.value+=g5.value+B11,g5=N13,o10.ranges--;continue}w8({type:"dot",value:B11});continue}w8({type:"text",value:B11});}do if(o10=n10.pop(),o10.type!=="root"){o10.nodes.forEach(b8=>{b8.nodes||(b8.type==="open"&&(b8.isOpen=!0),b8.type==="close"&&(b8.isClose=!0),b8.nodes||(b8.type="text"),b8.invalid=!0);});let D10=n10[n10.length-1],N13=D10.nodes.indexOf(o10);D10.nodes.splice(N13,1,...o10.nodes);}while(n10.length>0);return w8({type:"eos"}),i10},"parse");Vy3.exports=hG;}),AD2=m2((H62,Zy4)=>{var $y2=Po5(),lG2=Gy2(),EG=Ty2(),uG2=Xy2(),Ee7=s7((t20,A11={})=>{let e5=[];if(Array.isArray(t20))for(let r5 of t20){let i10=Ee7.create(r5,A11);Array.isArray(i10)?e5.push(...i10):e5.push(i10);}else e5=[].concat(Ee7.create(t20,A11));return A11&&A11.expand===!0&&A11.nodupes===!0&&(e5=[...new Set(e5)]),e5},"braces");Ee7.parse=(t20,A11={})=>uG2(t20,A11),Ee7.stringify=(t20,A11={})=>$y2(typeof t20=="string"?Ee7.parse(t20,A11):t20,A11),Ee7.compile=(t20,A11={})=>(typeof t20=="string"&&(t20=Ee7.parse(t20,A11)),lG2(t20,A11)),Ee7.expand=(t20,A11={})=>{typeof t20=="string"&&(t20=Ee7.parse(t20,A11));let e5=EG(t20,A11);return A11.noempty===!0&&(e5=e5.filter(Boolean)),A11.nodupes===!0&&(e5=[...new Set(e5)]),e5},Ee7.create=(t20,A11={})=>t20===""||t20.length<3?[t20]:A11.expand!==!0?Ee7.compile(t20,A11):Ee7.expand(t20,A11),Zy4.exports=Ee7;}),nD2=m2((q63,sD3)=>{var tD4=v11("util"),rD3=AD2(),et8=Nn6(),fI2=ji(),eD3=s7(t20=>t20===""||t20==="./","isEmptyString"),iD2=s7(t20=>{let A11=t20.indexOf("{");return A11>-1&&t20.indexOf("}",A11)>-1},"hasBraces"),wA2=s7((t20,A11,e5)=>{A11=[].concat(A11),t20=[].concat(t20);let r5=new Set,i10=new Set,n10=new Set,o10=0,g5=s7(E5=>{n10.add(E5.output),e5&&e5.onResult&&e5.onResult(E5);},"onResult");for(let E5=0;E5<A11.length;E5++){let Q12=et8(String(A11[E5]),{...e5,onResult:g5},!0),B11=Q12.state.negated||Q12.state.negatedExtglob;B11&&o10++;for(let p7 of t20){let w8=Q12(p7,!0);(B11?!w8.isMatch:w8.isMatch)&&(B11?r5.add(w8.output):(r5.delete(w8.output),i10.add(w8.output)));}}let I13=(o10===A11.length?[...n10]:[...i10]).filter(E5=>!r5.has(E5));if(e5&&I13.length===0){if(e5.failglob===!0)throw new Error(`No matches found for "${A11.join(", ")}"`);if(e5.nonull===!0||e5.nullglob===!0)return e5.unescape?A11.map(E5=>E5.replace(/\\/g,"")):A11}return I13},"micromatch");wA2.match=wA2,wA2.matcher=(t20,A11)=>et8(t20,A11),wA2.isMatch=(t20,A11,e5)=>et8(A11,e5)(t20),wA2.any=wA2.isMatch,wA2.not=(t20,A11,e5={})=>{A11=[].concat(A11).map(String);let r5=new Set,i10=[],n10=s7(g5=>{e5.onResult&&e5.onResult(g5),i10.push(g5.output);},"onResult"),o10=new Set(wA2(t20,A11,{...e5,onResult:n10}));for(let g5 of i10)o10.has(g5)||r5.add(g5);return [...r5]},wA2.contains=(t20,A11,e5)=>{if(typeof t20!="string")throw new TypeError(`Expected a string: "${tD4.inspect(t20)}"`);if(Array.isArray(A11))return A11.some(r5=>wA2.contains(t20,r5,e5));if(typeof A11=="string"){if(eD3(t20)||eD3(A11))return !1;if(t20.includes(A11)||t20.startsWith("./")&&t20.slice(2).includes(A11))return !0}return wA2.isMatch(t20,A11,{...e5,contains:!0})},wA2.matchKeys=(t20,A11,e5)=>{if(!fI2.isObject(t20))throw new TypeError("Expected the first argument to be an object");let r5=wA2(Object.keys(t20),A11,e5),i10={};for(let n10 of r5)i10[n10]=t20[n10];return i10},wA2.some=(t20,A11,e5)=>{let r5=[].concat(t20);for(let i10 of [].concat(A11)){let n10=et8(String(i10),e5);if(r5.some(o10=>n10(o10)))return !0}return !1},wA2.every=(t20,A11,e5)=>{let r5=[].concat(t20);for(let i10 of [].concat(A11)){let n10=et8(String(i10),e5);if(!r5.every(o10=>n10(o10)))return !1}return !0},wA2.all=(t20,A11,e5)=>{if(typeof t20!="string")throw new TypeError(`Expected a string: "${tD4.inspect(t20)}"`);return [].concat(A11).every(r5=>et8(r5,e5)(t20))},wA2.capture=(t20,A11,e5)=>{let r5=fI2.isWindows(e5),n10=et8.makeRe(String(t20),{...e5,capture:!0}).exec(r5?fI2.toPosixSlashes(A11):A11);if(n10)return n10.slice(1).map(o10=>o10===void 0?"":o10)},wA2.makeRe=(...t20)=>et8.makeRe(...t20),wA2.scan=(...t20)=>et8.scan(...t20),wA2.parse=(t20,A11)=>{let e5=[];for(let r5 of [].concat(t20||[]))for(let i10 of rD3(String(r5),A11))e5.push(et8.parse(i10,A11));return e5},wA2.braces=(t20,A11)=>{if(typeof t20!="string")throw new TypeError("Expected a string");return A11&&A11.nobrace===!0||!iD2(t20)?[t20]:rD3(t20,A11)},wA2.braceExpand=(t20,A11)=>{if(typeof t20!="string")throw new TypeError("Expected a string");return wA2.braces(t20,{...A11,expand:!0})},wA2.hasBraces=iD2,sD3.exports=wA2;}),uD2=m2(AA2=>{Object.defineProperty(AA2,"__esModule",{value:!0}),AA2.isAbsolute=AA2.partitionAbsoluteAndRelative=AA2.removeDuplicateSlashes=AA2.matchAny=AA2.convertPatternsToRe=AA2.makeRe=AA2.getPatternParts=AA2.expandBraceExpansion=AA2.expandPatternsWithBraceExpansion=AA2.isAffectDepthOfReadingPattern=AA2.endsWithSlashGlobStar=AA2.hasGlobStar=AA2.getBaseDirectory=AA2.isPatternRelatedToParentDirectory=AA2.getPatternsOutsideCurrentDirectory=AA2.getPatternsInsideCurrentDirectory=AA2.getPositivePatterns=AA2.getNegativePatterns=AA2.isPositivePattern=AA2.isNegativePattern=AA2.convertToNegativePattern=AA2.convertToPositivePattern=AA2.isDynamicPattern=AA2.isStaticPattern=void 0;var oD2=v11("path"),BG=Qy3(),dI2=nD2(),gD2="**",QG="\\",fG=/[*?]|^!/,dG=/\[[^[]*]/,pG=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wG=/[!*+?@]\([^(]*\)/,mG=/,|\.\./,yG=/(?!^)\/{2,}/g;function aD2(t20,A11={}){return !CD3(t20,A11)}s7(aD2,"isStaticPattern"),AA2.isStaticPattern=aD2;function CD3(t20,A11={}){return t20===""?!1:!!(A11.caseSensitiveMatch===!1||t20.includes(QG)||fG.test(t20)||dG.test(t20)||pG.test(t20)||A11.extglob!==!1&&wG.test(t20)||A11.braceExpansion!==!1&&DG(t20))}s7(CD3,"isDynamicPattern"),AA2.isDynamicPattern=CD3;function DG(t20){let A11=t20.indexOf("{");if(A11===-1)return !1;let e5=t20.indexOf("}",A11+1);if(e5===-1)return !1;let r5=t20.slice(A11,e5);return mG.test(r5)}s7(DG,"hasBraceExpansion");function SG(t20){return Go5(t20)?t20.slice(1):t20}s7(SG,"convertToPositivePattern"),AA2.convertToPositivePattern=SG;function KG(t20){return "!"+t20}s7(KG,"convertToNegativePattern"),AA2.convertToNegativePattern=KG;function Go5(t20){return t20.startsWith("!")&&t20[1]!=="("}s7(Go5,"isNegativePattern"),AA2.isNegativePattern=Go5;function cD2(t20){return !Go5(t20)}s7(cD2,"isPositivePattern"),AA2.isPositivePattern=cD2;function FG(t20){return t20.filter(Go5)}s7(FG,"getNegativePatterns"),AA2.getNegativePatterns=FG;function bG(t20){return t20.filter(cD2)}s7(bG,"getPositivePatterns"),AA2.getPositivePatterns=bG;function kG(t20){return t20.filter(A11=>!pI2(A11))}s7(kG,"getPatternsInsideCurrentDirectory"),AA2.getPatternsInsideCurrentDirectory=kG;function NG(t20){return t20.filter(pI2)}s7(NG,"getPatternsOutsideCurrentDirectory"),AA2.getPatternsOutsideCurrentDirectory=NG;function pI2(t20){return t20.startsWith("..")||t20.startsWith("./..")}s7(pI2,"isPatternRelatedToParentDirectory"),AA2.isPatternRelatedToParentDirectory=pI2;function MG(t20){return BG(t20,{flipBackslashes:!1})}s7(MG,"getBaseDirectory"),AA2.getBaseDirectory=MG;function RG(t20){return t20.includes(gD2)}s7(RG,"hasGlobStar"),AA2.hasGlobStar=RG;function ID3(t20){return t20.endsWith("/"+gD2)}s7(ID3,"endsWithSlashGlobStar"),AA2.endsWithSlashGlobStar=ID3;function vG(t20){let A11=oD2.basename(t20);return ID3(t20)||aD2(A11)}s7(vG,"isAffectDepthOfReadingPattern"),AA2.isAffectDepthOfReadingPattern=vG;function LG(t20){return t20.reduce((A11,e5)=>A11.concat(hD2(e5)),[])}s7(LG,"expandPatternsWithBraceExpansion"),AA2.expandPatternsWithBraceExpansion=LG;function hD2(t20){let A11=dI2.braces(t20,{expand:!0,nodupes:!0,keepEscaping:!0});return A11.sort((e5,r5)=>e5.length-r5.length),A11.filter(e5=>e5!=="")}s7(hD2,"expandBraceExpansion"),AA2.expandBraceExpansion=hD2;function xG(t20,A11){let{parts:e5}=dI2.scan(t20,Object.assign(Object.assign({},A11),{parts:!0}));return e5.length===0&&(e5=[t20]),e5[0].startsWith("/")&&(e5[0]=e5[0].slice(1),e5.unshift("")),e5}s7(xG,"getPatternParts"),AA2.getPatternParts=xG;function lD3(t20,A11){return dI2.makeRe(t20,A11)}s7(lD3,"makeRe"),AA2.makeRe=lD3;function YG(t20,A11){return t20.map(e5=>lD3(e5,A11))}s7(YG,"convertPatternsToRe"),AA2.convertPatternsToRe=YG;function PG(t20,A11){return A11.some(e5=>e5.test(t20))}s7(PG,"matchAny"),AA2.matchAny=PG;function UG(t20){return t20.replace(yG,"/")}s7(UG,"removeDuplicateSlashes"),AA2.removeDuplicateSlashes=UG;function _G(t20){let A11=[],e5=[];for(let r5 of t20)ED2(r5)?A11.push(r5):e5.push(r5);return [A11,e5]}s7(_G,"partitionAbsoluteAndRelative"),AA2.partitionAbsoluteAndRelative=_G;function ED2(t20){return oD2.isAbsolute(t20)}s7(ED2,"isAbsolute"),AA2.isAbsolute=ED2;}),dD2=m2((X63,fD2)=>{var GG=v11("stream"),BD2=GG.PassThrough,JG=Array.prototype.slice;fD2.exports=OG;function OG(){let t20=[],A11=JG.call(arguments),e5=!1,r5=A11[A11.length-1];r5&&!Array.isArray(r5)&&r5.pipe==null?A11.pop():r5={};let i10=r5.end!==!1,n10=r5.pipeError===!0;r5.objectMode==null&&(r5.objectMode=!0),r5.highWaterMark==null&&(r5.highWaterMark=64*1024);let o10=BD2(r5);function g5(){for(let E5=0,Q12=arguments.length;E5<Q12;E5++)t20.push(QD3(arguments[E5],r5));return C10(),this}s7(g5,"addStream");function C10(){if(e5)return;e5=!0;let E5=t20.shift();if(!E5){process.nextTick(I13);return}Array.isArray(E5)||(E5=[E5]);let Q12=E5.length+1;function B11(){--Q12>0||(e5=!1,C10());}s7(B11,"next");function p7(w8){function D10(){w8.removeListener("merge2UnpipeEnd",D10),w8.removeListener("end",D10),n10&&w8.removeListener("error",N13),B11();}s7(D10,"onend");function N13(b8){o10.emit("error",b8);}if(s7(N13,"onerror"),w8._readableState.endEmitted)return B11();w8.on("merge2UnpipeEnd",D10),w8.on("end",D10),n10&&w8.on("error",N13),w8.pipe(o10,{end:!1}),w8.resume();}s7(p7,"pipe");for(let w8=0;w8<E5.length;w8++)p7(E5[w8]);B11();}s7(C10,"mergeStream");function I13(){e5=!1,o10.emit("queueDrain"),i10&&o10.end();}return s7(I13,"endStream"),o10.setMaxListeners(0),o10.add=g5,o10.on("unpipe",function(E5){E5.emit("merge2UnpipeEnd");}),A11.length&&g5.apply(null,A11),o10}s7(OG,"merge2");function QD3(t20,A11){if(Array.isArray(t20))for(let e5=0,r5=t20.length;e5<r5;e5++)t20[e5]=QD3(t20[e5],A11);else {if(!t20._readableState&&t20.pipe&&(t20=t20.pipe(BD2(A11))),!t20._readableState||!t20.pause||!t20.pipe)throw new Error("Only readable stream can be merged.");t20.pause();}return t20}s7(QD3,"pauseStreams");}),wD2=m2(Jo6=>{Object.defineProperty(Jo6,"__esModule",{value:!0}),Jo6.merge=void 0;var TG=dD2();function HG(t20){let A11=TG(t20);return t20.forEach(e5=>{e5.once("error",r5=>A11.emit("error",r5));}),A11.once("close",()=>pD2(t20)),A11.once("end",()=>pD2(t20)),A11}s7(HG,"merge"),Jo6.merge=HG;function pD2(t20){t20.forEach(A11=>A11.emit("close"));}s7(pD2,"propagateCloseEventToSources");}),mD2=m2(Zr6=>{Object.defineProperty(Zr6,"__esModule",{value:!0}),Zr6.isEmpty=Zr6.isString=void 0;function jG(t20){return typeof t20=="string"}s7(jG,"isString"),Zr6.isString=jG;function qG(t20){return t20===""}s7(qG,"isEmpty"),Zr6.isEmpty=qG;}),Dt6=m2(zA2=>{Object.defineProperty(zA2,"__esModule",{value:!0}),zA2.string=zA2.stream=zA2.pattern=zA2.path=zA2.fs=zA2.errno=zA2.array=void 0;var zG=sy();zA2.array=zG;var WG=ny();zA2.errno=WG;var VG=oy();zA2.fs=VG;var XG=cy();zA2.path=XG;var $G=uD2();zA2.pattern=$G;var ZG=wD2();zA2.stream=ZG;var AJ=mD2();zA2.string=AJ;}),KD2=m2(WA2=>{Object.defineProperty(WA2,"__esModule",{value:!0}),WA2.convertPatternGroupToTask=WA2.convertPatternGroupsToTasks=WA2.groupPatternsByBaseDirectory=WA2.getNegativePatternsAsPositive=WA2.getPositivePatterns=WA2.convertPatternsToTasks=WA2.generate=void 0;var Je8=Dt6();function eJ(t20,A11){let e5=yD2(t20,A11),r5=yD2(A11.ignore,A11),i10=DD2(e5),n10=SD2(e5,r5),o10=i10.filter(E5=>Je8.pattern.isStaticPattern(E5,A11)),g5=i10.filter(E5=>Je8.pattern.isDynamicPattern(E5,A11)),C10=wI2(o10,n10,!1),I13=wI2(g5,n10,!0);return C10.concat(I13)}s7(eJ,"generate"),WA2.generate=eJ;function yD2(t20,A11){let e5=t20;return A11.braceExpansion&&(e5=Je8.pattern.expandPatternsWithBraceExpansion(e5)),A11.baseNameMatch&&(e5=e5.map(r5=>r5.includes("/")?r5:`**/${r5}`)),e5.map(r5=>Je8.pattern.removeDuplicateSlashes(r5))}s7(yD2,"processPatterns");function wI2(t20,A11,e5){let r5=[],i10=Je8.pattern.getPatternsOutsideCurrentDirectory(t20),n10=Je8.pattern.getPatternsInsideCurrentDirectory(t20),o10=mI2(i10),g5=mI2(n10);return r5.push(...yI2(o10,A11,e5)),"."in g5?r5.push(DI2(".",n10,A11,e5)):r5.push(...yI2(g5,A11,e5)),r5}s7(wI2,"convertPatternsToTasks"),WA2.convertPatternsToTasks=wI2;function DD2(t20){return Je8.pattern.getPositivePatterns(t20)}s7(DD2,"getPositivePatterns"),WA2.getPositivePatterns=DD2;function SD2(t20,A11){return Je8.pattern.getNegativePatterns(t20).concat(A11).map(Je8.pattern.convertToPositivePattern)}s7(SD2,"getNegativePatternsAsPositive"),WA2.getNegativePatternsAsPositive=SD2;function mI2(t20){let A11={};return t20.reduce((e5,r5)=>{let i10=Je8.pattern.getBaseDirectory(r5);return i10 in e5?e5[i10].push(r5):e5[i10]=[r5],e5},A11)}s7(mI2,"groupPatternsByBaseDirectory"),WA2.groupPatternsByBaseDirectory=mI2;function yI2(t20,A11,e5){return Object.keys(t20).map(r5=>DI2(r5,t20[r5],A11,e5))}s7(yI2,"convertPatternGroupsToTasks"),WA2.convertPatternGroupsToTasks=yI2;function DI2(t20,A11,e5,r5){return {dynamic:r5,positive:A11,negative:e5,base:t20,patterns:[].concat(A11,e5.map(Je8.pattern.convertToNegativePattern))}}s7(DI2,"convertPatternGroupToTask"),WA2.convertPatternGroupToTask=DI2;}),bD2=m2(Oo7=>{Object.defineProperty(Oo7,"__esModule",{value:!0}),Oo7.read=void 0;function tJ(t20,A11,e5){A11.fs.lstat(t20,(r5,i10)=>{if(r5!==null){FD3(e5,r5);return}if(!i10.isSymbolicLink()||!A11.followSymbolicLink){SI2(e5,i10);return}A11.fs.stat(t20,(n10,o10)=>{if(n10!==null){if(A11.throwErrorOnBrokenSymbolicLink){FD3(e5,n10);return}SI2(e5,i10);return}A11.markSymbolicLink&&(o10.isSymbolicLink=()=>!0),SI2(e5,o10);});});}s7(tJ,"read"),Oo7.read=tJ;function FD3(t20,A11){t20(A11);}s7(FD3,"callFailureCallback");function SI2(t20,A11){t20(null,A11);}s7(SI2,"callSuccessCallback");}),kD=m2(To6=>{Object.defineProperty(To6,"__esModule",{value:!0}),To6.read=void 0;function rJ(t20,A11){let e5=A11.fs.lstatSync(t20);if(!e5.isSymbolicLink()||!A11.followSymbolicLink)return e5;try{let r5=A11.fs.statSync(t20);return A11.markSymbolicLink&&(r5.isSymbolicLink=()=>!0),r5}catch(r5){if(!A11.throwErrorOnBrokenSymbolicLink)return e5;throw r5}}s7(rJ,"read"),To6.read=rJ;}),ND2=m2(jt7=>{Object.defineProperty(jt7,"__esModule",{value:!0}),jt7.createFileSystemAdapter=jt7.FILE_SYSTEM_ADAPTER=void 0;var Ho4=v11("fs");jt7.FILE_SYSTEM_ADAPTER={lstat:Ho4.lstat,stat:Ho4.stat,lstatSync:Ho4.lstatSync,statSync:Ho4.statSync};function iJ(t20){return t20===void 0?jt7.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jt7.FILE_SYSTEM_ADAPTER),t20)}s7(iJ,"createFileSystemAdapter"),jt7.createFileSystemAdapter=iJ;}),MD=m2(FI2=>{Object.defineProperty(FI2,"__esModule",{value:!0});var sJ=ND2(),KI3=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=sJ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0);}_getValue(A11,e5){return A11??e5}};FI2.default=KI3;}),ur4=m2(qt6=>{Object.defineProperty(qt6,"__esModule",{value:!0}),qt6.statSync=qt6.stat=qt6.Settings=void 0;var RD2=bD2(),nJ=kD(),bI2=MD();qt6.Settings=bI2.default;function oJ(t20,A11,e5){if(typeof A11=="function"){RD2.read(t20,kI3(),A11);return}RD2.read(t20,kI3(A11),e5);}s7(oJ,"stat"),qt6.stat=oJ;function gJ(t20,A11){let e5=kI3(A11);return nJ.read(t20,e5)}s7(gJ,"statSync"),qt6.statSync=gJ;function kI3(t20={}){return t20 instanceof bI2.default?t20:new bI2.default(t20)}s7(kI3,"getSettings");}),xD2=m2((u5,LD2)=>{var vD2;LD2.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t20=>(vD2||(vD2=Promise.resolve())).then(t20).catch(A11=>setTimeout(()=>{throw A11},0));}),PD=m2((B52,YD2)=>{YD2.exports=CJ;var aJ=xD2();function CJ(t20,A11){let e5,r5,i10,n10=!0;Array.isArray(t20)?(e5=[],r5=t20.length):(i10=Object.keys(t20),e5={},r5=i10.length);function o10(C10){function I13(){A11&&A11(C10,e5),A11=null;}s7(I13,"end"),n10?aJ(I13):I13();}s7(o10,"done");function g5(C10,I13,E5){e5[C10]=E5,(--r5===0||I13)&&o10(I13);}s7(g5,"each"),r5?i10?i10.forEach(function(C10){t20[C10](function(I13,E5){g5(C10,I13,E5);});}):t20.forEach(function(C10,I13){C10(function(E5,Q12){g5(I13,E5,Q12);});}):o10(null),n10=!1;}s7(CJ,"runParallel");}),NI2=m2(qo5=>{Object.defineProperty(qo5,"__esModule",{value:!0}),qo5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var jo5=process.versions.node.split(".");if(jo5[0]===void 0||jo5[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var UD2=Number.parseInt(jo5[0],10),cJ=Number.parseInt(jo5[1],10),_D2=10,IJ=10,hJ=UD2>_D2,lJ=UD2===_D2&&cJ>=IJ;qo5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hJ||lJ;}),GD2=m2(zo6=>{Object.defineProperty(zo6,"__esModule",{value:!0}),zo6.createDirentFromStats=void 0;var MI2=class{static{s7(this,"DirentFromStats");}constructor(A11,e5){this.name=A11,this.isBlockDevice=e5.isBlockDevice.bind(e5),this.isCharacterDevice=e5.isCharacterDevice.bind(e5),this.isDirectory=e5.isDirectory.bind(e5),this.isFIFO=e5.isFIFO.bind(e5),this.isFile=e5.isFile.bind(e5),this.isSocket=e5.isSocket.bind(e5),this.isSymbolicLink=e5.isSymbolicLink.bind(e5);}};function EJ(t20,A11){return new MI2(t20,A11)}s7(EJ,"createDirentFromStats"),zo6.createDirentFromStats=EJ;}),RI2=m2(Wo4=>{Object.defineProperty(Wo4,"__esModule",{value:!0}),Wo4.fs=void 0;var uJ=GD2();Wo4.fs=uJ;}),vI2=m2(Vo6=>{Object.defineProperty(Vo6,"__esModule",{value:!0}),Vo6.joinPathSegments=void 0;function BJ(t20,A11,e5){return t20.endsWith(e5)?t20+A11:t20+e5+A11}s7(BJ,"joinPathSegments"),Vo6.joinPathSegments=BJ;}),qD2=m2(zt6=>{Object.defineProperty(zt6,"__esModule",{value:!0}),zt6.readdir=zt6.readdirWithFileTypes=zt6.read=void 0;var QJ=ur4(),JD2=PD(),fJ=NI2(),OD2=RI2(),TD2=vI2();function dJ(t20,A11,e5){if(!A11.stats&&fJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){HD2(t20,A11,e5);return}jD2(t20,A11,e5);}s7(dJ,"read"),zt6.read=dJ;function HD2(t20,A11,e5){A11.fs.readdir(t20,{withFileTypes:!0},(r5,i10)=>{if(r5!==null){Xo7(e5,r5);return}let n10=i10.map(g5=>({dirent:g5,name:g5.name,path:TD2.joinPathSegments(t20,g5.name,A11.pathSegmentSeparator)}));if(!A11.followSymbolicLinks){LI2(e5,n10);return}let o10=n10.map(g5=>pJ(g5,A11));JD2(o10,(g5,C10)=>{if(g5!==null){Xo7(e5,g5);return}LI2(e5,C10);});});}s7(HD2,"readdirWithFileTypes"),zt6.readdirWithFileTypes=HD2;function pJ(t20,A11){return e5=>{if(!t20.dirent.isSymbolicLink()){e5(null,t20);return}A11.fs.stat(t20.path,(r5,i10)=>{if(r5!==null){if(A11.throwErrorOnBrokenSymbolicLink){e5(r5);return}e5(null,t20);return}t20.dirent=OD2.fs.createDirentFromStats(t20.name,i10),e5(null,t20);});}}s7(pJ,"makeRplTaskEntry");function jD2(t20,A11,e5){A11.fs.readdir(t20,(r5,i10)=>{if(r5!==null){Xo7(e5,r5);return}let n10=i10.map(o10=>{let g5=TD2.joinPathSegments(t20,o10,A11.pathSegmentSeparator);return C10=>{QJ.stat(g5,A11.fsStatSettings,(I13,E5)=>{if(I13!==null){C10(I13);return}let Q12={name:o10,path:g5,dirent:OD2.fs.createDirentFromStats(o10,E5)};A11.stats&&(Q12.stats=E5),C10(null,Q12);});}});JD2(n10,(o10,g5)=>{if(o10!==null){Xo7(e5,o10);return}LI2(e5,g5);});});}s7(jD2,"readdir"),zt6.readdir=jD2;function Xo7(t20,A11){t20(A11);}s7(Xo7,"callFailureCallback");function LI2(t20,A11){t20(null,A11);}s7(LI2,"callSuccessCallback");}),$D3=m2(Wt6=>{Object.defineProperty(Wt6,"__esModule",{value:!0}),Wt6.readdir=Wt6.readdirWithFileTypes=Wt6.read=void 0;var wJ=ur4(),mJ=NI2(),zD2=RI2(),WD2=vI2();function yJ(t20,A11){return !A11.stats&&mJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES?VD2(t20,A11):XD(t20,A11)}s7(yJ,"read"),Wt6.read=yJ;function VD2(t20,A11){return A11.fs.readdirSync(t20,{withFileTypes:!0}).map(r5=>{let i10={dirent:r5,name:r5.name,path:WD2.joinPathSegments(t20,r5.name,A11.pathSegmentSeparator)};if(i10.dirent.isSymbolicLink()&&A11.followSymbolicLinks)try{let n10=A11.fs.statSync(i10.path);i10.dirent=zD2.fs.createDirentFromStats(i10.name,n10);}catch(n10){if(A11.throwErrorOnBrokenSymbolicLink)throw n10}return i10})}s7(VD2,"readdirWithFileTypes"),Wt6.readdirWithFileTypes=VD2;function XD(t20,A11){return A11.fs.readdirSync(t20).map(r5=>{let i10=WD2.joinPathSegments(t20,r5,A11.pathSegmentSeparator),n10=wJ.statSync(i10,A11.fsStatSettings),o10={name:r5,path:i10,dirent:zD2.fs.createDirentFromStats(r5,n10)};return A11.stats&&(o10.stats=n10),o10})}s7(XD,"readdir"),Wt6.readdir=XD;}),ZD2=m2(Vt7=>{Object.defineProperty(Vt7,"__esModule",{value:!0}),Vt7.createFileSystemAdapter=Vt7.FILE_SYSTEM_ADAPTER=void 0;var Ai2=v11("fs");Vt7.FILE_SYSTEM_ADAPTER={lstat:Ai2.lstat,stat:Ai2.stat,lstatSync:Ai2.lstatSync,statSync:Ai2.statSync,readdir:Ai2.readdir,readdirSync:Ai2.readdirSync};function DJ(t20){return t20===void 0?Vt7.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Vt7.FILE_SYSTEM_ADAPTER),t20)}s7(DJ,"createFileSystemAdapter"),Vt7.createFileSystemAdapter=DJ;}),AS2=m2(YI3=>{Object.defineProperty(YI3,"__esModule",{value:!0});var SJ=v11("path"),KJ=ur4(),FJ=ZD2(),xI2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=FJ.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,SJ.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new KJ.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink});}_getValue(A11,e5){return A11??e5}};YI3.default=xI2;}),$o5=m2(Xt7=>{Object.defineProperty(Xt7,"__esModule",{value:!0}),Xt7.Settings=Xt7.scandirSync=Xt7.scandir=void 0;var eS2=qD2(),bJ=$D3(),PI2=AS2();Xt7.Settings=PI2.default;function kJ(t20,A11,e5){if(typeof A11=="function"){eS2.read(t20,UI2(),A11);return}eS2.read(t20,UI2(A11),e5);}s7(kJ,"scandir"),Xt7.scandir=kJ;function NJ(t20,A11){let e5=UI2(A11);return bJ.read(t20,e5)}s7(NJ,"scandirSync"),Xt7.scandirSync=NJ;function UI2(t20={}){return t20 instanceof PI2.default?t20:new PI2.default(t20)}s7(UI2,"getSettings");}),rS2=m2((L52,tS2)=>{function MJ(t20){var A11=new t20,e5=A11;function r5(){var n10=A11;return n10.next?A11=n10.next:(A11=new t20,e5=A11),n10.next=null,n10}s7(r5,"get");function i10(n10){e5.next=n10,e5=n10;}return s7(i10,"release"),{get:r5,release:i10}}s7(MJ,"reusify"),tS2.exports=MJ;}),sS2=m2((Y52,_I2)=>{var RJ=rS2();function iS3(t20,A11,e5){if(typeof t20=="function"&&(e5=A11,A11=t20,t20=null),!(e5>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r5=RJ(vJ),i10=null,n10=null,o10=0,g5=null,C10={push:D10,drain:ye7,saturated:ye7,pause:E5,paused:!1,get concurrency(){return e5},set concurrency(U12){if(!(U12>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(e5=U12,!C10.paused)for(;i10&&o10<e5;)o10++,b8();},running:I13,resume:p7,idle:w8,length:Q12,getQueue:B11,unshift:N13,empty:ye7,kill:_11,killAndDrain:L12,error:J13};return C10;function I13(){return o10}function E5(){C10.paused=!0;}function Q12(){for(var U12=i10,Z13=0;U12;)U12=U12.next,Z13++;return Z13}function B11(){for(var U12=i10,Z13=[];U12;)Z13.push(U12.value),U12=U12.next;return Z13}function p7(){if(C10.paused){if(C10.paused=!1,i10===null){o10++,b8();return}for(;i10&&o10<e5;)o10++,b8();}}function w8(){return o10===0&&C10.length()===0}function D10(U12,Z13){var q13=r5.get();q13.context=t20,q13.release=b8,q13.value=U12,q13.callback=Z13||ye7,q13.errorHandler=g5,o10>=e5||C10.paused?n10?(n10.next=q13,n10=q13):(i10=q13,n10=q13,C10.saturated()):(o10++,A11.call(t20,q13.value,q13.worked));}function N13(U12,Z13){var q13=r5.get();q13.context=t20,q13.release=b8,q13.value=U12,q13.callback=Z13||ye7,q13.errorHandler=g5,o10>=e5||C10.paused?i10?(q13.next=i10,i10=q13):(i10=q13,n10=q13,C10.saturated()):(o10++,A11.call(t20,q13.value,q13.worked));}function b8(U12){U12&&r5.release(U12);var Z13=i10;Z13&&o10<=e5?C10.paused?o10--:(n10===i10&&(n10=null),i10=Z13.next,Z13.next=null,A11.call(t20,Z13.value,Z13.worked),n10===null&&C10.empty()):--o10===0&&C10.drain();}function _11(){i10=null,n10=null,C10.drain=ye7;}function L12(){i10=null,n10=null,C10.drain(),C10.drain=ye7;}function J13(U12){g5=U12;}}s7(iS3,"fastqueue");function ye7(){}s7(ye7,"noop");function vJ(){this.value=null,this.callback=ye7,this.next=null,this.release=ye7,this.context=null,this.errorHandler=null;var t20=this;this.worked=s7(function(e5,r5){var i10=t20.callback,n10=t20.errorHandler,o10=t20.value;t20.value=null,t20.callback=ye7,t20.errorHandler&&n10(e5,o10),i10.call(t20.context,e5,r5),t20.release(t20);},"worked");}s7(vJ,"Task");function LJ(t20,A11,e5){typeof t20=="function"&&(e5=A11,A11=t20,t20=null);function r5(E5,Q12){A11.call(this,E5).then(function(B11){Q12(null,B11);},Q12);}s7(r5,"asyncWrapper");var i10=iS3(t20,r5,e5),n10=i10.push,o10=i10.unshift;return i10.push=g5,i10.unshift=C10,i10.drained=I13,i10;function g5(E5){var Q12=new Promise(function(B11,p7){n10(E5,function(w8,D10){if(w8){p7(w8);return}B11(D10);});});return Q12.catch(ye7),Q12}function C10(E5){var Q12=new Promise(function(B11,p7){o10(E5,function(w8,D10){if(w8){p7(w8);return}B11(D10);});});return Q12.catch(ye7),Q12}function I13(){var E5=new Promise(function(Q12){process.nextTick(function(){if(i10.idle())Q12();else {var B11=i10.drain;i10.drain=function(){typeof B11=="function"&&B11(),Q12(),i10.drain=B11;};}});});return E5}}s7(LJ,"queueAsPromised"),_I2.exports=iS3,_I2.exports.promise=LJ;}),Zo4=m2(tt8=>{Object.defineProperty(tt8,"__esModule",{value:!0}),tt8.joinPathSegments=tt8.replacePathSegmentSeparator=tt8.isAppliedFilter=tt8.isFatalError=void 0;function xJ(t20,A11){return t20.errorFilter===null?!0:!t20.errorFilter(A11)}s7(xJ,"isFatalError"),tt8.isFatalError=xJ;function YJ(t20,A11){return t20===null||t20(A11)}s7(YJ,"isAppliedFilter"),tt8.isAppliedFilter=YJ;function PJ(t20,A11){return t20.split(/[/\\]/).join(A11)}s7(PJ,"replacePathSegmentSeparator"),tt8.replacePathSegmentSeparator=PJ;function UJ(t20,A11,e5){return t20===""?A11:t20.endsWith(e5)?t20+A11:t20+e5+A11}s7(UJ,"joinPathSegments"),tt8.joinPathSegments=UJ;}),OI2=m2(JI2=>{Object.defineProperty(JI2,"__esModule",{value:!0});var _J=Zo4(),GI=class{static{s7(this,"Reader");}constructor(A11,e5){this._root=A11,this._settings=e5,this._root=_J.replacePathSegmentSeparator(A11,e5.pathSegmentSeparator);}};JI2.default=GI;}),jI2=m2(HI2=>{Object.defineProperty(HI2,"__esModule",{value:!0});var GJ=v11("events"),JJ=$o5(),OJ=sS2(),Ag2=Zo4(),TJ=OI2(),TI2=class extends TJ.default{static{s7(this,"AsyncReader");}constructor(A11,e5){super(A11,e5),this._settings=e5,this._scandir=JJ.scandir,this._emitter=new GJ.EventEmitter,this._queue=OJ(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end");};}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath);}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain();}onEntry(A11){this._emitter.on("entry",A11);}onError(A11){this._emitter.once("error",A11);}onEnd(A11){this._emitter.once("end",A11);}_pushToQueue(A11,e5){let r5={directory:A11,base:e5};this._queue.push(r5,i10=>{i10!==null&&this._handleError(i10);});}_worker(A11,e5){this._scandir(A11.directory,this._settings.fsScandirSettings,(r5,i10)=>{if(r5!==null){e5(r5,void 0);return}for(let n10 of i10)this._handleEntry(n10,A11.base);e5(null,void 0);});}_handleError(A11){this._isDestroyed||!Ag2.isFatalError(this._settings,A11)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A11));}_handleEntry(A11,e5){if(this._isDestroyed||this._isFatalError)return;let r5=A11.path;e5!==void 0&&(A11.path=Ag2.joinPathSegments(e5,A11.name,this._settings.pathSegmentSeparator)),Ag2.isAppliedFilter(this._settings.entryFilter,A11)&&this._emitEntry(A11),A11.dirent.isDirectory()&&Ag2.isAppliedFilter(this._settings.deepFilter,A11)&&this._pushToQueue(r5,e5===void 0?void 0:A11.path);}_emitEntry(A11){this._emitter.emit("entry",A11);}};HI2.default=TI2;}),nS2=m2(zI3=>{Object.defineProperty(zI3,"__esModule",{value:!0});var HJ=jI2(),qI3=class{static{s7(this,"AsyncProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new HJ.default(this._root,this._settings),this._storage=[];}read(A11){this._reader.onError(e5=>{jJ(A11,e5);}),this._reader.onEntry(e5=>{this._storage.push(e5);}),this._reader.onEnd(()=>{qJ(A11,this._storage);}),this._reader.read();}};zI3.default=qI3;function jJ(t20,A11){t20(A11);}s7(jJ,"callFailureCallback");function qJ(t20,A11){t20(null,A11);}s7(qJ,"callSuccessCallback");}),oS2=m2(VI2=>{Object.defineProperty(VI2,"__esModule",{value:!0});var zJ=v11("stream"),WJ=jI2(),WI3=class{static{s7(this,"StreamProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new WJ.default(this._root,this._settings),this._stream=new zJ.Readable({objectMode:!0,read:s7(()=>{},"read"),destroy:s7(()=>{this._reader.isDestroyed||this._reader.destroy();},"destroy")});}read(){return this._reader.onError(A11=>{this._stream.emit("error",A11);}),this._reader.onEntry(A11=>{this._stream.push(A11);}),this._reader.onEnd(()=>{this._stream.push(null);}),this._reader.read(),this._stream}};VI2.default=WI3;}),gS2=m2($I2=>{Object.defineProperty($I2,"__esModule",{value:!0});var VJ=$o5(),eg2=Zo4(),XJ=OI2(),XI3=class extends XJ.default{static{s7(this,"SyncReader");}constructor(){super(...arguments),this._scandir=VJ.scandirSync,this._storage=[],this._queue=new Set;}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A11,e5){this._queue.add({directory:A11,base:e5});}_handleQueue(){for(let A11 of this._queue.values())this._handleDirectory(A11.directory,A11.base);}_handleDirectory(A11,e5){try{let r5=this._scandir(A11,this._settings.fsScandirSettings);for(let i10 of r5)this._handleEntry(i10,e5);}catch(r5){this._handleError(r5);}}_handleError(A11){if(eg2.isFatalError(this._settings,A11))throw A11}_handleEntry(A11,e5){let r5=A11.path;e5!==void 0&&(A11.path=eg2.joinPathSegments(e5,A11.name,this._settings.pathSegmentSeparator)),eg2.isAppliedFilter(this._settings.entryFilter,A11)&&this._pushToStorage(A11),A11.dirent.isDirectory()&&eg2.isAppliedFilter(this._settings.deepFilter,A11)&&this._pushToQueue(r5,e5===void 0?void 0:A11.path);}_pushToStorage(A11){this._storage.push(A11);}};$I2.default=XI3;}),aS3=m2(Ah2=>{Object.defineProperty(Ah2,"__esModule",{value:!0});var $J=gS2(),ZI2=class{static{s7(this,"SyncProvider");}constructor(A11,e5){this._root=A11,this._settings=e5,this._reader=new $J.default(this._root,this._settings);}read(){return this._reader.read()}};Ah2.default=ZI2;}),CS3=m2(th2=>{Object.defineProperty(th2,"__esModule",{value:!0});var ZJ=v11("path"),A22=$o5(),eh2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ZJ.sep),this.fsScandirSettings=new A22.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink});}_getValue(A11,e5){return A11??e5}};th2.default=eh2;}),rg3=m2(rt8=>{Object.defineProperty(rt8,"__esModule",{value:!0}),rt8.Settings=rt8.walkStream=rt8.walkSync=rt8.walk=void 0;var cS2=nS2(),e22=oS2(),t22=aS3(),rh2=CS3();rt8.Settings=rh2.default;function r22(t20,A11,e5){if(typeof A11=="function"){new cS2.default(t20,tg4()).read(A11);return}new cS2.default(t20,tg4(A11)).read(e5);}s7(r22,"walk"),rt8.walk=r22;function i22(t20,A11){let e5=tg4(A11);return new t22.default(t20,e5).read()}s7(i22,"walkSync"),rt8.walkSync=i22;function s22(t20,A11){let e5=tg4(A11);return new e22.default(t20,e5).read()}s7(s22,"walkStream"),rt8.walkStream=s22;function tg4(t20={}){return t20 instanceof rh2.default?t20:new rh2.default(t20)}s7(tg4,"getSettings");}),ig3=m2(sh2=>{Object.defineProperty(sh2,"__esModule",{value:!0});var n22=v11("path"),o22=ur4(),IS2=Dt6(),ih2=class{static{s7(this,"Reader");}constructor(A11){this._settings=A11,this._fsStatSettings=new o22.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks});}_getFullEntryPath(A11){return n22.resolve(this._settings.cwd,A11)}_makeEntry(A11,e5){let r5={name:e5,path:e5,dirent:IS2.fs.createDirentFromStats(e5,A11)};return this._settings.stats&&(r5.stats=A11),r5}_isFatalError(A11){return !IS2.errno.isEnoentCodeError(A11)&&!this._settings.suppressErrors}};sh2.default=ih2;}),gh2=m2(oh3=>{Object.defineProperty(oh3,"__esModule",{value:!0});var g22=v11("stream"),a22=ur4(),C22=rg3(),c22=ig3(),nh2=class extends c22.default{static{s7(this,"ReaderStream");}constructor(){super(...arguments),this._walkStream=C22.walkStream,this._stat=a22.stat;}dynamic(A11,e5){return this._walkStream(A11,e5)}static(A11,e5){let r5=A11.map(this._getFullEntryPath,this),i10=new g22.PassThrough({objectMode:!0});i10._write=(n10,o10,g5)=>this._getEntry(r5[n10],A11[n10],e5).then(C10=>{C10!==null&&e5.entryFilter(C10)&&i10.push(C10),n10===r5.length-1&&i10.end(),g5();}).catch(g5);for(let n10=0;n10<r5.length;n10++)i10.write(n10);return i10}_getEntry(A11,e5,r5){return this._getStat(A11).then(i10=>this._makeEntry(i10,e5)).catch(i10=>{if(r5.errorFilter(i10))return null;throw i10})}_getStat(A11){return new Promise((e5,r5)=>{this._stat(A11,this._fsStatSettings,(i10,n10)=>i10===null?e5(n10):r5(i10));})}};oh3.default=nh2;}),hS2=m2(Ch3=>{Object.defineProperty(Ch3,"__esModule",{value:!0});var I22=rg3(),h22=ig3(),l22=gh2(),ah3=class extends h22.default{static{s7(this,"ReaderAsync");}constructor(){super(...arguments),this._walkAsync=I22.walk,this._readerStream=new l22.default(this._settings);}dynamic(A11,e5){return new Promise((r5,i10)=>{this._walkAsync(A11,e5,(n10,o10)=>{n10===null?r5(o10):i10(n10);});})}async static(A11,e5){let r5=[],i10=this._readerStream.static(A11,e5);return new Promise((n10,o10)=>{i10.once("error",o10),i10.on("data",g5=>r5.push(g5)),i10.once("end",()=>n10(r5));})}};Ch3.default=ah3;}),lS2=m2(Ih2=>{Object.defineProperty(Ih2,"__esModule",{value:!0});var Es3=Dt6(),ch2=class{static{s7(this,"Matcher");}constructor(A11,e5,r5){this._patterns=A11,this._settings=e5,this._micromatchOptions=r5,this._storage=[],this._fillStorage();}_fillStorage(){for(let A11 of this._patterns){let e5=this._getPatternSegments(A11),r5=this._splitSegmentsIntoSections(e5);this._storage.push({complete:r5.length<=1,pattern:A11,segments:e5,sections:r5});}}_getPatternSegments(A11){return Es3.pattern.getPatternParts(A11,this._micromatchOptions).map(r5=>Es3.pattern.isDynamicPattern(r5,this._settings)?{dynamic:!0,pattern:r5,patternRe:Es3.pattern.makeRe(r5,this._micromatchOptions)}:{dynamic:!1,pattern:r5})}_splitSegmentsIntoSections(A11){return Es3.array.splitWhen(A11,e5=>e5.dynamic&&Es3.pattern.hasGlobStar(e5.pattern))}};Ih2.default=ch2;}),ES3=m2(lh2=>{Object.defineProperty(lh2,"__esModule",{value:!0});var E22=lS2(),hh4=class extends E22.default{static{s7(this,"PartialMatcher");}match(A11){let e5=A11.split("/"),r5=e5.length,i10=this._storage.filter(n10=>!n10.complete||n10.segments.length>r5);for(let n10 of i10){let o10=n10.sections[0];if(!n10.complete&&r5>o10.length||e5.every((C10,I13)=>{let E5=n10.segments[I13];return !!(E5.dynamic&&E5.patternRe.test(C10)||!E5.dynamic&&E5.pattern===C10)}))return !0}return !1}};lh2.default=hh4;}),uS2=m2(uh2=>{Object.defineProperty(uh2,"__esModule",{value:!0});var sg2=Dt6(),u22=ES3(),Eh2=class{static{s7(this,"DeepFilter");}constructor(A11,e5){this._settings=A11,this._micromatchOptions=e5;}getFilter(A11,e5,r5){let i10=this._getMatcher(e5),n10=this._getNegativePatternsRe(r5);return o10=>this._filter(A11,o10,i10,n10)}_getMatcher(A11){return new u22.default(A11,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A11){let e5=A11.filter(sg2.pattern.isAffectDepthOfReadingPattern);return sg2.pattern.convertPatternsToRe(e5,this._micromatchOptions)}_filter(A11,e5,r5,i10){if(this._isSkippedByDeep(A11,e5.path)||this._isSkippedSymbolicLink(e5))return !1;let n10=sg2.path.removeLeadingDotSegment(e5.path);return this._isSkippedByPositivePatterns(n10,r5)?!1:this._isSkippedByNegativePatterns(n10,i10)}_isSkippedByDeep(A11,e5){return this._settings.deep===1/0?!1:this._getEntryLevel(A11,e5)>=this._settings.deep}_getEntryLevel(A11,e5){let r5=e5.split("/").length;if(A11==="")return r5;let i10=A11.split("/").length;return r5-i10}_isSkippedSymbolicLink(A11){return !this._settings.followSymbolicLinks&&A11.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A11,e5){return !this._settings.baseNameMatch&&!e5.match(A11)}_isSkippedByNegativePatterns(A11,e5){return !sg2.pattern.matchAny(A11,e5)}};uh2.default=Eh2;}),BS2=m2(Qh2=>{Object.defineProperty(Qh2,"__esModule",{value:!0});var $t7=Dt6(),Bh3=class{static{s7(this,"EntryFilter");}constructor(A11,e5){this._settings=A11,this._micromatchOptions=e5,this.index=new Map;}getFilter(A11,e5){let[r5,i10]=$t7.pattern.partitionAbsoluteAndRelative(e5),n10={positive:{all:$t7.pattern.convertPatternsToRe(A11,this._micromatchOptions)},negative:{absolute:$t7.pattern.convertPatternsToRe(r5,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:$t7.pattern.convertPatternsToRe(i10,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o10=>this._filter(o10,n10)}_filter(A11,e5){let r5=$t7.path.removeLeadingDotSegment(A11.path);if(this._settings.unique&&this._isDuplicateEntry(r5)||this._onlyFileFilter(A11)||this._onlyDirectoryFilter(A11))return !1;let i10=this._isMatchToPatternsSet(r5,e5,A11.dirent.isDirectory());return this._settings.unique&&i10&&this._createIndexRecord(r5),i10}_isDuplicateEntry(A11){return this.index.has(A11)}_createIndexRecord(A11){this.index.set(A11,void 0);}_onlyFileFilter(A11){return this._settings.onlyFiles&&!A11.dirent.isFile()}_onlyDirectoryFilter(A11){return this._settings.onlyDirectories&&!A11.dirent.isDirectory()}_isMatchToPatternsSet(A11,e5,r5){return !(!this._isMatchToPatterns(A11,e5.positive.all,r5)||this._isMatchToPatterns(A11,e5.negative.relative,r5)||this._isMatchToAbsoluteNegative(A11,e5.negative.absolute,r5))}_isMatchToAbsoluteNegative(A11,e5,r5){if(e5.length===0)return !1;let i10=$t7.path.makeAbsolute(this._settings.cwd,A11);return this._isMatchToPatterns(i10,e5,r5)}_isMatchToPatterns(A11,e5,r5){if(e5.length===0)return !1;let i10=$t7.pattern.matchAny(A11,e5);return !i10&&r5?$t7.pattern.matchAny(A11+"/",e5):i10}};Qh2.default=Bh3;}),QS2=m2(dh2=>{Object.defineProperty(dh2,"__esModule",{value:!0});var B22=Dt6(),fh2=class{static{s7(this,"ErrorFilter");}constructor(A11){this._settings=A11;}getFilter(){return A11=>this._isNonFatalError(A11)}_isNonFatalError(A11){return B22.errno.isEnoentCodeError(A11)||this._settings.suppressErrors}};dh2.default=fh2;}),dS2=m2(wh2=>{Object.defineProperty(wh2,"__esModule",{value:!0});var fS2=Dt6(),ph2=class{static{s7(this,"EntryTransformer");}constructor(A11){this._settings=A11;}getTransformer(){return A11=>this._transform(A11)}_transform(A11){let e5=A11.path;return this._settings.absolute&&(e5=fS2.path.makeAbsolute(this._settings.cwd,e5),e5=fS2.path.unixify(e5)),this._settings.markDirectories&&A11.dirent.isDirectory()&&(e5+="/"),this._settings.objectMode?Object.assign(Object.assign({},A11),{path:e5}):e5}};wh2.default=ph2;}),ng3=m2(yh2=>{Object.defineProperty(yh2,"__esModule",{value:!0});var Q23=v11("path"),f22=uS2(),d22=BS2(),p22=QS2(),w22=dS2(),mh2=class{static{s7(this,"Provider");}constructor(A11){this._settings=A11,this.errorFilter=new p22.default(this._settings),this.entryFilter=new d22.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f22.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new w22.default(this._settings);}_getRootDirectory(A11){return Q23.resolve(this._settings.cwd,A11.base)}_getReaderOptions(A11){let e5=A11.base==="."?"":A11.base;return {basePath:e5,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e5,A11.positive,A11.negative),entryFilter:this.entryFilter.getFilter(A11.positive,A11.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return {dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};yh2.default=mh2;}),pS2=m2(Sh4=>{Object.defineProperty(Sh4,"__esModule",{value:!0});var m22=hS2(),y22=ng3(),Dh2=class extends y22.default{static{s7(this,"ProviderAsync");}constructor(){super(...arguments),this._reader=new m22.default(this._settings);}async read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11);return (await this.api(e5,A11,r5)).map(n10=>r5.transform(n10))}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Sh4.default=Dh2;}),wS2=m2(Fh2=>{Object.defineProperty(Fh2,"__esModule",{value:!0});var D22=v11("stream"),S22=gh2(),K22=ng3(),Kh2=class extends K22.default{static{s7(this,"ProviderStream");}constructor(){super(...arguments),this._reader=new S22.default(this._settings);}read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11),i10=this.api(e5,A11,r5),n10=new D22.Readable({objectMode:!0,read:s7(()=>{},"read")});return i10.once("error",o10=>n10.emit("error",o10)).on("data",o10=>n10.emit("data",r5.transform(o10))).once("end",()=>n10.emit("end")),n10.once("close",()=>i10.destroy()),n10}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Fh2.default=Kh2;}),mS2=m2(kh2=>{Object.defineProperty(kh2,"__esModule",{value:!0});var F22=ur4(),b22=rg3(),k22=ig3(),bh3=class extends k22.default{static{s7(this,"ReaderSync");}constructor(){super(...arguments),this._walkSync=b22.walkSync,this._statSync=F22.statSync;}dynamic(A11,e5){return this._walkSync(A11,e5)}static(A11,e5){let r5=[];for(let i10 of A11){let n10=this._getFullEntryPath(i10),o10=this._getEntry(n10,i10,e5);o10===null||!e5.entryFilter(o10)||r5.push(o10);}return r5}_getEntry(A11,e5,r5){try{let i10=this._getStat(A11);return this._makeEntry(i10,e5)}catch(i10){if(r5.errorFilter(i10))return null;throw i10}}_getStat(A11){return this._statSync(A11,this._fsStatSettings)}};kh2.default=bh3;}),yS2=m2(Mh3=>{Object.defineProperty(Mh3,"__esModule",{value:!0});var N22=mS2(),M22=ng3(),Nh2=class extends M22.default{static{s7(this,"ProviderSync");}constructor(){super(...arguments),this._reader=new N22.default(this._settings);}read(A11){let e5=this._getRootDirectory(A11),r5=this._getReaderOptions(A11);return this.api(e5,A11,r5).map(r5.transform)}api(A11,e5,r5){return e5.dynamic?this._reader.dynamic(A11,r5):this._reader.static(e5.patterns,r5)}};Mh3.default=Nh2;}),DS3=m2(ti4=>{Object.defineProperty(ti4,"__esModule",{value:!0}),ti4.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ei6=v11("fs"),R22=v11("os"),v22=Math.max(R22.cpus().length,1);ti4.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ei6.lstat,lstatSync:ei6.lstatSync,stat:ei6.stat,statSync:ei6.statSync,readdir:ei6.readdir,readdirSync:ei6.readdirSync};var Rh2=class{static{s7(this,"Settings");}constructor(A11={}){this._options=A11,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,v22),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore);}_getValue(A11,e5){return A11===void 0?e5:A11}_getFileSystemMethods(A11={}){return Object.assign(Object.assign({},ti4.DEFAULT_FILE_SYSTEM_ADAPTER),A11)}};ti4.default=Rh2;}),Yh3=m2((R72,KS2)=>{var SS2=KD2(),L22=pS2(),x22=wS2(),Y22=yS2(),vh2=DS3(),De7=Dt6();async function Lh4(t20,A11){Oe5(t20);let e5=xh2(t20,L22.default,A11),r5=await Promise.all(e5);return De7.array.flatten(r5)}s7(Lh4,"FastGlob"),function(t20){t20.glob=t20,t20.globSync=A11,t20.globStream=e5,t20.async=t20;function A11(I13,E5){Oe5(I13);let Q12=xh2(I13,Y22.default,E5);return De7.array.flatten(Q12)}s7(A11,"sync"),t20.sync=A11;function e5(I13,E5){Oe5(I13);let Q12=xh2(I13,x22.default,E5);return De7.stream.merge(Q12)}s7(e5,"stream"),t20.stream=e5;function r5(I13,E5){Oe5(I13);let Q12=[].concat(I13),B11=new vh2.default(E5);return SS2.generate(Q12,B11)}s7(r5,"generateTasks"),t20.generateTasks=r5;function i10(I13,E5){Oe5(I13);let Q12=new vh2.default(E5);return De7.pattern.isDynamicPattern(I13,Q12)}s7(i10,"isDynamicPattern"),t20.isDynamicPattern=i10;function n10(I13){return Oe5(I13),De7.path.escape(I13)}s7(n10,"escapePath"),t20.escapePath=n10;function o10(I13){return Oe5(I13),De7.path.convertPathToPattern(I13)}s7(o10,"convertPathToPattern"),t20.convertPathToPattern=o10;(function(I13){function E5(B11){return Oe5(B11),De7.path.escapePosixPath(B11)}s7(E5,"escapePath"),I13.escapePath=E5;function Q12(B11){return Oe5(B11),De7.path.convertPosixPathToPattern(B11)}s7(Q12,"convertPathToPattern"),I13.convertPathToPattern=Q12;})(t20.posix||(t20.posix={}));(function(I13){function E5(B11){return Oe5(B11),De7.path.escapeWindowsPath(B11)}s7(E5,"escapePath"),I13.escapePath=E5;function Q12(B11){return Oe5(B11),De7.path.convertWindowsPathToPattern(B11)}s7(Q12,"convertPathToPattern"),I13.convertPathToPattern=Q12;})(t20.win32||(t20.win32={}));}(Lh4||(Lh4={}));function xh2(t20,A11,e5){let r5=[].concat(t20),i10=new vh2.default(e5),n10=SS2.generate(r5,i10),o10=new A11(i10);return n10.map(o10.read,o10)}s7(xh2,"getWorks");function Oe5(t20){if(![].concat(t20).every(r5=>De7.string.isString(r5)&&!De7.string.isEmpty(r5)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}s7(Oe5,"assertPatternsInput"),KS2.exports=Lh4;});async function Ph2(t20,A11,e5){if(typeof e5!="string")throw new TypeError(`Expected a string, got ${typeof e5}`);try{return (await fs5__default[t20](e5))[A11]()}catch(r5){if(r5.code==="ENOENT")return !1;throw r5}}function Uh3(t20,A11,e5){if(typeof e5!="string")throw new TypeError(`Expected a string, got ${typeof e5}`);try{return tn6__default[t20](e5)[A11]()}catch(r5){if(r5.code==="ENOENT")return !1;throw r5}}var FS2,bS2,kS3=ue6(()=>{s7(Ph2,"isType"),s7(Uh3,"isTypeSync"),Ph2.bind(void 0,"stat","isFile"),FS2=Ph2.bind(void 0,"stat","isDirectory"),Ph2.bind(void 0,"lstat","isSymbolicLink"),Uh3.bind(void 0,"statSync","isFile"),bS2=Uh3.bind(void 0,"statSync","isDirectory"),Uh3.bind(void 0,"lstatSync","isSymbolicLink");}),NS3=ue6(()=>{});function us3(t20){return t20 instanceof URL?fileURLToPath(t20):t20}var _h3=ue6(()=>{NS3(),promisify$1(execFile),s7(us3,"toPath");}),US3=m2((tAA,qh3)=>{function vS2(t20){return Array.isArray(t20)?t20:[t20]}s7(vS2,"makeArray");var O22=void 0,Jh4="",MS2=" ",Gh2="\\",T22=/^\s+$/,H23=/(?:[^\\]|^)\\$/,j23=/^\\!/,q22=/^\\#/,z22=/\r?\n/g,W22=/^\.{0,2}\/|^\.{1,2}$/,V23=/\/$/,ri5="/",LS2="node-ignore";typeof Symbol<"u"&&(LS2=Symbol.for("node-ignore"));var xS2=LS2,Bs4=s7((t20,A11,e5)=>(Object.defineProperty(t20,A11,{value:e5}),e5),"define"),X22=/([0-z])-([0-z])/g,YS2=s7(()=>!1,"RETURN_FALSE"),$22=s7(t20=>t20.replace(X22,(A11,e5,r5)=>e5.charCodeAt(0)<=r5.charCodeAt(0)?A11:Jh4),"sanitizeRange"),Z22=s7(t20=>{let{length:A11}=t20;return t20.slice(0,A11-A11%2)},"cleanRangeBackSlash"),AO2=[[/^\uFEFF/,()=>Jh4],[/((?:\\\\)*?)(\\?\s+)$/,(t20,A11,e5)=>A11+(e5.indexOf("\\")===0?MS2:Jh4)],[/(\\+?)\s/g,(t20,A11)=>{let{length:e5}=A11;return A11.slice(0,e5-e5%2)+MS2}],[/[\\$.|*+(){^]/g,t20=>`\\${t20}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,s7(function(){return /\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t20,A11,e5)=>A11+6<e5.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t20,A11,e5)=>{let r5=e5.replace(/\\\*/g,"[^\\/]*");return A11+r5}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Gh2],[/\\\\/g,()=>Gh2],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t20,A11,e5,r5,i10)=>A11===Gh2?`\\[${e5}${Z22(r5)}${i10}`:i10==="]"&&r5.length%2===0?`[${$22(e5)}${r5}]`:"[]"],[/(?:[^*])$/,t20=>/\/$/.test(t20)?`${t20}$`:`${t20}(?=$|\\/$)`]],eO=/(^|\\\/)?\\\*$/,Qs5="regex",og3="checkRegex",RS3="_",tO2={[Qs5](t20,A11){return `${A11?`${A11}[^/]+`:"[^/]*"}(?=$|\\/$)`},[og3](t20,A11){return `${A11?`${A11}[^/]*`:"[^/]*"}(?=$|\\/$)`}},rO=s7(t20=>AO2.reduce((A11,[e5,r5])=>A11.replace(e5,r5.bind(t20)),t20),"makeRegexPrefix"),gg3=s7(t20=>typeof t20=="string","isString"),iO2=s7(t20=>t20&&gg3(t20)&&!T22.test(t20)&&!H23.test(t20)&&t20.indexOf("#")!==0,"checkPattern"),sO=s7(t20=>t20.split(z22).filter(Boolean),"splitPattern"),Oh3=class{static{s7(this,"IgnoreRule");}constructor(A11,e5,r5,i10,n10,o10){this.pattern=A11,this.mark=e5,this.negative=n10,Bs4(this,"body",r5),Bs4(this,"ignoreCase",i10),Bs4(this,"regexPrefix",o10);}get regex(){let A11=RS3+Qs5;return this[A11]?this[A11]:this._make(Qs5,A11)}get checkRegex(){let A11=RS3+og3;return this[A11]?this[A11]:this._make(og3,A11)}_make(A11,e5){let r5=this.regexPrefix.replace(eO,tO2[A11]),i10=this.ignoreCase?new RegExp(r5,"i"):new RegExp(r5);return Bs4(this,e5,i10)}},nO2=s7(({pattern:t20,mark:A11},e5)=>{let r5=!1,i10=t20;i10.indexOf("!")===0&&(r5=!0,i10=i10.substr(1)),i10=i10.replace(j23,"!").replace(q22,"#");let n10=rO(i10);return new Oh3(t20,A11,i10,e5,r5,n10)},"createRule"),Th3=class{static{s7(this,"RuleManager");}constructor(A11){this._ignoreCase=A11,this._rules=[];}_add(A11){if(A11&&A11[xS2]){this._rules=this._rules.concat(A11._rules._rules),this._added=!0;return}if(gg3(A11)&&(A11={pattern:A11}),iO2(A11.pattern)){let e5=nO2(A11,this._ignoreCase);this._added=!0,this._rules.push(e5);}}add(A11){return this._added=!1,vS2(gg3(A11)?sO(A11):A11).forEach(this._add,this),this._added}test(A11,e5,r5){let i10=!1,n10=!1,o10;this._rules.forEach(C10=>{let{negative:I13}=C10;n10===I13&&i10!==n10||I13&&!i10&&!n10&&!e5||!C10[r5].test(A11)||(i10=!I13,n10=I13,o10=I13?O22:C10);});let g5={ignored:i10,unignored:n10};return o10&&(g5.rule=o10),g5}},oO=s7((t20,A11)=>{throw new A11(t20)},"throwError"),St7=s7((t20,A11,e5)=>gg3(t20)?t20?St7.isNotRelative(t20)?e5(`path should be a \`path.relative()\`d string, but got "${A11}"`,RangeError):!0:e5("path must not be empty",TypeError):e5(`path must be a string, but got \`${A11}\``,TypeError),"checkPath"),PS2=s7(t20=>W22.test(t20),"isNotRelative");St7.isNotRelative=PS2,St7.convert=t20=>t20;var Hh4=class{static{s7(this,"Ignore");}constructor({ignorecase:A11=!0,ignoreCase:e5=A11,allowRelativePaths:r5=!1}={}){Bs4(this,xS2,!0),this._rules=new Th3(e5),this._strictPathCheck=!r5,this._initCache();}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null);}add(A11){return this._rules.add(A11)&&this._initCache(),this}addPattern(A11){return this.add(A11)}_test(A11,e5,r5,i10){let n10=A11&&St7.convert(A11);return St7(n10,A11,this._strictPathCheck?oO:YS2),this._t(n10,e5,r5,i10)}checkIgnore(A11){if(!V23.test(A11))return this.test(A11);let e5=A11.split(ri5).filter(Boolean);if(e5.pop(),e5.length){let r5=this._t(e5.join(ri5)+ri5,this._testCache,!0,e5);if(r5.ignored)return r5}return this._rules.test(A11,!1,og3)}_t(A11,e5,r5,i10){if(A11 in e5)return e5[A11];if(i10||(i10=A11.split(ri5).filter(Boolean)),i10.pop(),!i10.length)return e5[A11]=this._rules.test(A11,r5,Qs5);let n10=this._t(i10.join(ri5)+ri5,e5,r5,i10);return e5[A11]=n10.ignored?n10:this._rules.test(A11,r5,Qs5)}ignores(A11){return this._test(A11,this._ignoreCache,!1).ignored}createFilter(){return A11=>!this.ignores(A11)}filter(A11){return vS2(A11).filter(this.createFilter())}test(A11){return this._test(A11,this._testCache,!0)}},jh2=s7(t20=>new Hh4(t20),"factory"),gO3=s7(t20=>St7(t20&&St7.convert(t20),t20,YS2),"isPathValid");if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t20=s7(e5=>/^\\\\\?\\/.test(e5)||/["<>|\u0000-\u001F]+/u.test(e5)?e5:e5.replace(/\\/g,"/"),"makePosix");St7.convert=t20;let A11=/^[a-z]:\//i;St7.isNotRelative=e5=>A11.test(e5)||PS2(e5);}qh3.exports=jh2,jh2.default=jh2,qh3.exports.isPathValid=gO3;}),fs4,zh3=ue6(()=>{fs4=s7(t20=>t20[0]==="!","isNegativePattern");}),Wh3,_S2,IO,GS2,ag3,hO3,lO,EO3,JS2,OS2,ds3,ps3,TS3,HS2,Vh2=ue6(()=>{Wh3=cA2(Yh3(),1),_S2=cA2(US3(),1),Rr6(),_h3(),zh3(),IO=["**/node_modules","**/flow-typed","**/coverage","**/.git"],GS2={absolute:!0,dot:!0},ag3="**/.gitignore",hO3=s7((t20,A11)=>fs4(t20)?"!"+qe8.posix.join(A11,t20.slice(1)):qe8.posix.join(A11,t20),"applyBaseToPattern"),lO=s7((t20,A11)=>{let e5=Ae6(qe8.relative(A11,qe8.dirname(t20.filePath)));return t20.content.split(/\r?\n/).filter(r5=>r5&&!r5.startsWith("#")).map(r5=>hO3(r5,e5))},"parseIgnoreFile"),EO3=s7((t20,A11)=>{if(A11=Ae6(A11),qe8.isAbsolute(t20)){if(Ae6(t20).startsWith(A11))return qe8.relative(A11,t20);throw new Error(`Path ${t20} is not in cwd ${A11}`)}return t20},"toRelativePath"),JS2=s7((t20,A11)=>{let e5=t20.flatMap(i10=>lO(i10,A11)),r5=(0, _S2.default)().add(e5);return i10=>(i10=us3(i10),i10=EO3(i10,A11),i10?r5.ignores(Ae6(i10)):!1)},"getIsIgnoredPredicate"),OS2=s7((t20={})=>({cwd:us3(t20.cwd)??Q.cwd(),suppressErrors:!!t20.suppressErrors,deep:typeof t20.deep=="number"?t20.deep:Number.POSITIVE_INFINITY,ignore:[...t20.ignore??[],...IO]}),"normalizeOptions"),ds3=s7(async(t20,A11)=>{let{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10}=OS2(A11),o10=await(0, Wh3.default)(t20,{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10,...GS2}),g5=await Promise.all(o10.map(async C10=>({filePath:C10,content:await fs5__default.readFile(C10,"utf8")})));return JS2(g5,e5)},"isIgnoredByIgnoreFiles"),ps3=s7((t20,A11)=>{let{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10}=OS2(A11),g5=Wh3.default.sync(t20,{cwd:e5,suppressErrors:r5,deep:i10,ignore:n10,...GS2}).map(C10=>({filePath:C10,content:tn6__default.readFileSync(C10,"utf8")}));return JS2(g5,e5)},"isIgnoredByIgnoreFilesSync"),TS3=s7(t20=>ds3(ag3,t20),"isGitIgnored"),HS2=s7(t20=>ps3(ag3,t20),"isGitIgnoredSync");}),nK={};Ks3(nK,{convertPathToPattern:()=>SO2,generateGlobTasks:()=>yO3,generateGlobTasksSync:()=>DO2,globby:()=>dO2,globbyStream:()=>wO2,globbySync:()=>pO3,isDynamicPattern:()=>mO3,isGitIgnored:()=>TS3,isGitIgnoredSync:()=>HS2,isIgnoredByIgnoreFiles:()=>ds3,isIgnoredByIgnoreFilesSync:()=>ps3});var ni6,BO2,WS2,VS2,jS3,qS2,Xh3,QO2,XS2,$S2,Cg2,ZS2,fO3,AK,eK,tK,rK,iK,sK,$h3,dO2,pO3,wO2,mO3,yO3,DO2,SO2,oK=ue6(()=>{iy2(),ni6=cA2(Yh3(),1),kS3(),_h3(),Vh2(),zh3(),Vh2(),BO2=s7(t20=>{if(t20.some(A11=>typeof A11!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),WS2=s7((t20,A11)=>{let e5=fs4(t20)?t20.slice(1):t20;return qe8.isAbsolute(e5)?e5:qe8.join(A11,e5)},"normalizePathForDirectoryGlob"),VS2=s7(({directoryPath:t20,files:A11,extensions:e5})=>{let r5=e5?.length>0?`.${e5.length>1?`{${e5.join(",")}}`:e5[0]}`:"";return A11?A11.map(i10=>qe8.posix.join(t20,`**/${qe8.extname(i10)?i10:`${i10}${r5}`}`)):[qe8.posix.join(t20,`**${r5?`/*${r5}`:""}`)]},"getDirectoryGlob"),jS3=s7(async(t20,{cwd:A11=Q.cwd(),files:e5,extensions:r5}={})=>(await Promise.all(t20.map(async n10=>await FS2(WS2(n10,A11))?VS2({directoryPath:n10,files:e5,extensions:r5}):n10))).flat(),"directoryToGlob"),qS2=s7((t20,{cwd:A11=Q.cwd(),files:e5,extensions:r5}={})=>t20.flatMap(i10=>bS2(WS2(i10,A11))?VS2({directoryPath:i10,files:e5,extensions:r5}):i10),"directoryToGlobSync"),Xh3=s7(t20=>(t20=[...new Set([t20].flat())],BO2(t20),t20),"toPatternsArray"),QO2=s7(t20=>{if(!t20)return;let A11;try{A11=tn6__default.statSync(t20);}catch{return}if(!A11.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),XS2=s7((t20={})=>(t20={...t20,ignore:t20.ignore??[],expandDirectories:t20.expandDirectories??!0,cwd:us3(t20.cwd)},QO2(t20.cwd),t20),"normalizeOptions"),$S2=s7(t20=>async(A11,e5)=>t20(Xh3(A11),XS2(e5)),"normalizeArguments"),Cg2=s7(t20=>(A11,e5)=>t20(Xh3(A11),XS2(e5)),"normalizeArgumentsSync"),ZS2=s7(t20=>{let{ignoreFiles:A11,gitignore:e5}=t20,r5=A11?Xh3(A11):[];return e5&&r5.push(ag3),r5},"getIgnoreFilesPatterns"),fO3=s7(async t20=>{let A11=ZS2(t20);return eK(A11.length>0&&await ds3(A11,t20))},"getFilter"),AK=s7(t20=>{let A11=ZS2(t20);return eK(A11.length>0&&ps3(A11,t20))},"getFilterSync"),eK=s7(t20=>{let A11=new Set;return e5=>{let r5=qe8.normalize(e5.path??e5);return A11.has(r5)||t20&&t20(r5)?!1:(A11.add(r5),!0)}},"createFilterFunction"),tK=s7((t20,A11)=>t20.flat().filter(e5=>A11(e5)),"unionFastGlobResults"),rK=s7((t20,A11)=>{let e5=[];for(;t20.length>0;){let r5=t20.findIndex(n10=>fs4(n10));if(r5===-1){e5.push({patterns:t20,options:A11});break}let i10=t20[r5].slice(1);for(let n10 of e5)n10.options.ignore.push(i10);r5!==0&&e5.push({patterns:t20.slice(0,r5),options:{...A11,ignore:[...A11.ignore,i10]}}),t20=t20.slice(r5+1);}return e5},"convertNegativePatterns"),iK=s7((t20,A11)=>({...A11?{cwd:A11}:{},...Array.isArray(t20)?{files:t20}:t20}),"normalizeExpandDirectoriesOption"),sK=s7(async(t20,A11)=>{let e5=rK(t20,A11),{cwd:r5,expandDirectories:i10}=A11;if(!i10)return e5;let n10=iK(i10,r5);return Promise.all(e5.map(async o10=>{let{patterns:g5,options:C10}=o10;return [g5,C10.ignore]=await Promise.all([jS3(g5,n10),jS3(C10.ignore,{cwd:r5})]),{patterns:g5,options:C10}}))},"generateTasks"),$h3=s7((t20,A11)=>{let e5=rK(t20,A11),{cwd:r5,expandDirectories:i10}=A11;if(!i10)return e5;let n10=iK(i10,r5);return e5.map(o10=>{let{patterns:g5,options:C10}=o10;return g5=qS2(g5,n10),C10.ignore=qS2(C10.ignore,{cwd:r5}),{patterns:g5,options:C10}})},"generateTasksSync"),dO2=$S2(async(t20,A11)=>{let[e5,r5]=await Promise.all([sK(t20,A11),fO3(A11)]),i10=await Promise.all(e5.map(n10=>(0, ni6.default)(n10.patterns,n10.options)));return tK(i10,r5)}),pO3=Cg2((t20,A11)=>{let e5=$h3(t20,A11),r5=AK(A11),i10=e5.map(n10=>ni6.default.sync(n10.patterns,n10.options));return tK(i10,r5)}),wO2=Cg2((t20,A11)=>{let e5=$h3(t20,A11),r5=AK(A11),i10=e5.map(o10=>ni6.default.stream(o10.patterns,o10.options));return aI2(i10).filter(o10=>r5(o10))}),mO3=Cg2((t20,A11)=>t20.some(e5=>ni6.default.isDynamicPattern(e5,A11))),yO3=$S2(sK),DO2=Cg2($h3),{convertPathToPattern:SO2}=ni6.default;}),CK={};Ks3(CK,{default:()=>Zh3,limitFunction:()=>KO2});function Zh3(t20){aK(t20);let A11=new rr7,e5=0,r5=s7(()=>{e5<t20&&A11.size>0&&(A11.dequeue()(),e5++);},"resumeNext"),i10=s7(()=>{e5--,r5();},"next"),n10=s7(async(C10,I13,E5)=>{let Q12=(async()=>C10(...E5))();I13(Q12);try{await Q12;}catch{}i10();},"run"),o10=s7((C10,I13,E5)=>{new Promise(Q12=>{A11.enqueue(Q12);}).then(n10.bind(void 0,C10,I13,E5)),(async()=>(await Promise.resolve(),e5<t20&&r5()))();},"enqueue"),g5=s7((C10,...I13)=>new Promise(E5=>{o10(C10,E5,I13);}),"generator");return Object.defineProperties(g5,{activeCount:{get:s7(()=>e5,"get")},pendingCount:{get:s7(()=>A11.size,"get")},clearQueue:{value(){A11.clear();}},concurrency:{get:s7(()=>t20,"get"),set(C10){aK(C10),t20=C10,queueMicrotask(()=>{for(;e5<t20&&A11.size>0;)r5();});}}}),g5}function KO2(t20,A11){let{concurrency:e5}=A11,r5=Zh3(e5);return (...i10)=>r5(()=>t20(...i10))}function aK(t20){if(!((Number.isInteger(t20)||t20===Number.POSITIVE_INFINITY)&&t20>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var ot6={"@storybook/addon-a11y":"9.1.0-beta.2","@storybook/addon-docs":"9.1.0-beta.2","@storybook/addon-jest":"9.1.0-beta.2","@storybook/addon-links":"9.1.0-beta.2","@storybook/addon-onboarding":"9.1.0-beta.2","storybook-addon-pseudo-states":"9.1.0-beta.2","@storybook/addon-themes":"9.1.0-beta.2","@storybook/addon-vitest":"9.1.0-beta.2","@storybook/builder-vite":"9.1.0-beta.2","@storybook/builder-webpack5":"9.1.0-beta.2",storybook:"9.1.0-beta.2","@storybook/angular":"9.1.0-beta.2","@storybook/ember":"9.1.0-beta.2","@storybook/html-vite":"9.1.0-beta.2","@storybook/nextjs":"9.1.0-beta.2","@storybook/nextjs-vite":"9.1.0-beta.2","@storybook/preact-vite":"9.1.0-beta.2","@storybook/react-native-web-vite":"9.1.0-beta.2","@storybook/react-vite":"9.1.0-beta.2","@storybook/react-webpack5":"9.1.0-beta.2","@storybook/server-webpack5":"9.1.0-beta.2","@storybook/svelte-vite":"9.1.0-beta.2","@storybook/sveltekit":"9.1.0-beta.2","@storybook/vue3-vite":"9.1.0-beta.2","@storybook/web-components-vite":"9.1.0-beta.2",sb:"9.1.0-beta.2","@storybook/cli":"9.1.0-beta.2","@storybook/codemod":"9.1.0-beta.2","@storybook/core-webpack":"9.1.0-beta.2","create-storybook":"9.1.0-beta.2","@storybook/csf-plugin":"9.1.0-beta.2","eslint-plugin-storybook":"9.1.0-beta.2","@storybook/react-dom-shim":"9.1.0-beta.2","@storybook/preset-create-react-app":"9.1.0-beta.2","@storybook/preset-react-webpack":"9.1.0-beta.2","@storybook/preset-server-webpack":"9.1.0-beta.2","@storybook/html":"9.1.0-beta.2","@storybook/preact":"9.1.0-beta.2","@storybook/react":"9.1.0-beta.2","@storybook/server":"9.1.0-beta.2","@storybook/svelte":"9.1.0-beta.2","@storybook/vue3":"9.1.0-beta.2","@storybook/web-components":"9.1.0-beta.2"},KE3=cA2(gt4(),1),fg2=new Set([".js",".jsx",".ts",".tsx",".cts",".mts",".cjs",".mjs"]);function sF(){return [...Array.from(fg2)]}s7(sF,"sortExtensions");var ul2=sF();function wr8(t20){return ul2.map(A11=>t20.endsWith(A11)?t20:`${t20}${A11}`).find(A11=>existsSync(A11))}s7(wr8,"getInterpretedFile");function Bl2(t20){return ul2.map(A11=>({path:t20.endsWith(A11)?t20:`${t20}${A11}`,ext:A11})).find(A11=>existsSync(A11.path))}s7(Bl2,"getInterpretedFileWithExt");var Ql2=!1;function dg3(t20){let A11=!!v11("module")._extensions[".ts"];if(Ql2===!1&&!A11){let{register:i10}=v11("esbuild-register/dist/node");Ql2=!0,i10({target:`node${process.version.slice(1)}`,format:"cjs",hookIgnoreNodeModules:!0,keepNames:!0,tsconfigRaw:`{
|
|
2606
2606
|
"compilerOptions": {
|
|
2607
2607
|
"strict": false,
|
|
2608
2608
|
"skipLibCheck": true,
|
|
@@ -2682,7 +2682,7 @@ More info: ${page}
|
|
|
2682
2682
|
${fromBody}`,toStringDescriptor=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),toStringName=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),changeToString=(to6,from,name)=>{let withName=name===""?"":`with ${name.trim()}() `,newToString=wrappedToString.bind(null,withName,from.toString());Object.defineProperty(newToString,"name",toStringName),Object.defineProperty(to6,"toString",{...toStringDescriptor,value:newToString});};function mimicFunction(to6,from,{ignoreNonConfigurable=!1}={}){let{name}=to6;for(let property of Reflect.ownKeys(from))copyProperty(to6,from,property,ignoreNonConfigurable);return changePrototype(to6,from),changeToString(to6,from,name),to6}var calledFunctions=new WeakMap,onetime=(function_,options={})=>{if(typeof function_!="function")throw new TypeError("Expected a function");let returnValue,callCount=0,functionName=function_.displayName||function_.name||"<anonymous>",onetime2=function(...arguments_){if(calledFunctions.set(onetime2,++callCount),callCount===1)returnValue=function_.apply(this,arguments_),function_=null;else if(options.throw===!0)throw new Error(`Function \`${functionName}\` can only be called once`);return returnValue};return mimicFunction(onetime2,function_),calledFunctions.set(onetime2,callCount),onetime2};onetime.callCount=function_=>{if(!calledFunctions.has(function_))throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);return calledFunctions.get(function_)};var onetime_default=onetime;var getRealtimeSignals=()=>{let length=SIGRTMAX-SIGRTMIN+1;return Array.from({length},getRealtimeSignal)},getRealtimeSignal=(value2,index)=>({name:`SIGRT${index+1}`,number:SIGRTMIN+index,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),SIGRTMIN=34,SIGRTMAX=64;var SIGNALS=[{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"}];var getSignals=()=>{let realtimeSignals=getRealtimeSignals();return [...SIGNALS,...realtimeSignals].map(normalizeSignal)},normalizeSignal=({name,number:defaultNumber,description,action,forced=!1,standard})=>{let{signals:{[name]:constantSignal}}=constants,supported=constantSignal!==void 0;return {name,number:supported?constantSignal:defaultNumber,description,supported,action,forced,standard}};var getSignalsByName=()=>{let signals2=getSignals();return Object.fromEntries(signals2.map(getSignalByName))},getSignalByName=({name,number,description,supported,action,forced,standard})=>[name,{name,number,description,supported,action,forced,standard}],signalsByName=getSignalsByName(),getSignalsByNumber=()=>{let signals2=getSignals(),length=65,signalsA=Array.from({length},(value2,number)=>getSignalByNumber(number,signals2));return Object.assign({},...signalsA)},getSignalByNumber=(number,signals2)=>{let signal=findSignalByNumber(number,signals2);if(signal===void 0)return {};let{name,description,supported,action,forced,standard}=signal;return {[number]:{name,number,description,supported,action,forced,standard}}},findSignalByNumber=(number,signals2)=>{let signal=signals2.find(({name})=>constants.signals[name]===number);return signal!==void 0?signal:signals2.find(signalA=>signalA.number===number)};getSignalsByNumber();var getErrorPrefix=({timedOut:timedOut2,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})=>timedOut2?`timed out after ${timeout} milliseconds`:isCanceled?"was canceled":errorCode!==void 0?`failed with ${errorCode}`:signal!==void 0?`was killed with ${signal} (${signalDescription})`:exitCode!==void 0?`failed with exit code ${exitCode}`:"failed",makeError=({stdout,stderr,all:all2,error:error2,signal,exitCode,command,escapedCommand,timedOut:timedOut2,isCanceled,killed,parsed:{options:{timeout,cwd:cwd2=Q.cwd()}}})=>{exitCode=exitCode===null?void 0:exitCode,signal=signal===null?void 0:signal;let signalDescription=signal===void 0?void 0:signalsByName[signal].description,errorCode=error2&&error2.code,execaMessage=`Command ${getErrorPrefix({timedOut:timedOut2,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})}: ${command}`,isError=Object.prototype.toString.call(error2)==="[object Error]",shortMessage=isError?`${execaMessage}
|
|
2683
2683
|
${error2.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
|
|
2684
2684
|
`);return isError?(error2.originalMessage=error2.message,error2.message=message):error2=new Error(message),error2.shortMessage=shortMessage,error2.command=command,error2.escapedCommand=escapedCommand,error2.exitCode=exitCode,error2.signal=signal,error2.signalDescription=signalDescription,error2.stdout=stdout,error2.stderr=stderr,error2.cwd=cwd2,all2!==void 0&&(error2.all=all2),"bufferedData"in error2&&delete error2.bufferedData,error2.failed=!0,error2.timedOut=!!timedOut2,error2.isCanceled=isCanceled,error2.killed=killed&&!timedOut2,error2};var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value2,index)=>stdio[index])};var signals=[];signals.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var processOk=process12=>!!process12&&typeof process12=="object"&&typeof process12.removeListener=="function"&&typeof process12.emit=="function"&&typeof process12.reallyExit=="function"&&typeof process12.listeners=="function"&&typeof process12.kill=="function"&&typeof process12.pid=="number"&&typeof process12.on=="function",kExitEmitter=Symbol.for("signal-exit emitter"),global2=globalThis,ObjectDefineProperty=Object.defineProperty.bind(Object),Emitter=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(global2[kExitEmitter])return global2[kExitEmitter];ObjectDefineProperty(global2,kExitEmitter,{value:this,writable:!1,enumerable:!1,configurable:!1});}on(ev3,fn5){this.listeners[ev3].push(fn5);}removeListener(ev3,fn5){let list=this.listeners[ev3],i10=list.indexOf(fn5);i10!==-1&&(i10===0&&list.length===1?list.length=0:list.splice(i10,1));}emit(ev3,code,signal){if(this.emitted[ev3])return !1;this.emitted[ev3]=!0;let ret=!1;for(let fn5 of this.listeners[ev3])ret=fn5(code,signal)===!0||ret;return ev3==="exit"&&(ret=this.emit("afterExit",code,signal)||ret),ret}},SignalExitBase=class{},signalExitWrap=handler=>({onExit(cb3,opts){return handler.onExit(cb3,opts)},load(){return handler.load()},unload(){return handler.unload()}}),SignalExitFallback=class extends SignalExitBase{onExit(){return ()=>{}}load(){}unload(){}},SignalExit=class extends SignalExitBase{#hupSig=process4.platform==="win32"?"SIGINT":"SIGHUP";#emitter=new Emitter;#process;#originalProcessEmit;#originalProcessReallyExit;#sigListeners={};#loaded=!1;constructor(process12){super(),this.#process=process12,this.#sigListeners={};for(let sig of signals)this.#sigListeners[sig]=()=>{let listeners=this.#process.listeners(sig),{count}=this.#emitter,p7=process12;if(typeof p7.__signal_exit_emitter__=="object"&&typeof p7.__signal_exit_emitter__.count=="number"&&(count+=p7.__signal_exit_emitter__.count),listeners.length===count){this.unload();let ret=this.#emitter.emit("exit",null,sig),s10=sig==="SIGHUP"?this.#hupSig:sig;ret||process12.kill(process12.pid,s10);}};this.#originalProcessReallyExit=process12.reallyExit,this.#originalProcessEmit=process12.emit;}onExit(cb3,opts){if(!processOk(this.#process))return ()=>{};this.#loaded===!1&&this.load();let ev3=opts?.alwaysLast?"afterExit":"exit";return this.#emitter.on(ev3,cb3),()=>{this.#emitter.removeListener(ev3,cb3),this.#emitter.listeners.exit.length===0&&this.#emitter.listeners.afterExit.length===0&&this.unload();}}load(){if(!this.#loaded){this.#loaded=!0,this.#emitter.count+=1;for(let sig of signals)try{let fn5=this.#sigListeners[sig];fn5&&this.#process.on(sig,fn5);}catch{}this.#process.emit=(ev3,...a5)=>this.#processEmit(ev3,...a5),this.#process.reallyExit=code=>this.#processReallyExit(code);}}unload(){this.#loaded&&(this.#loaded=!1,signals.forEach(sig=>{let listener=this.#sigListeners[sig];if(!listener)throw new Error("Listener not defined for signal: "+sig);try{this.#process.removeListener(sig,listener);}catch{}}),this.#process.emit=this.#originalProcessEmit,this.#process.reallyExit=this.#originalProcessReallyExit,this.#emitter.count-=1);}#processReallyExit(code){return processOk(this.#process)?(this.#process.exitCode=code||0,this.#emitter.emit("exit",this.#process.exitCode,null),this.#originalProcessReallyExit.call(this.#process,this.#process.exitCode)):0}#processEmit(ev3,...args){let og3=this.#originalProcessEmit;if(ev3==="exit"&&processOk(this.#process)){typeof args[0]=="number"&&(this.#process.exitCode=args[0]);let ret=og3.call(this.#process,ev3,...args);return this.#emitter.emit("exit",this.#process.exitCode,null),ret}else return og3.call(this.#process,ev3,...args)}},process4=globalThis.process,{onExit,load,unload}=signalExitWrap(processOk(process4)?new SignalExit(process4):new SignalExitFallback);var DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t20=setTimeout(()=>{kill("SIGKILL");},timeout);t20.unref&&t20.unref();},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===Qp__default.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0);},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}));},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve9,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject);},timeout);}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId);});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill();});return timedPromise.finally(()=>{removeExitHandler();})};function isStream(stream3){return stream3!==null&&typeof stream3=="object"&&typeof stream3.pipe=="function"}function isWritableStream(stream3){return isStream(stream3)&&stream3.writable!==!1&&typeof stream3._write=="function"&&typeof stream3._writableState=="object"}var isExecaChildProcess=target=>target instanceof ChildProcess&&typeof target.then=="function",pipeToTarget=(spawned,streamName,target)=>{if(typeof target=="string")return spawned[streamName].pipe(createWriteStream(target)),spawned;if(isWritableStream(target))return spawned[streamName].pipe(target),spawned;if(!isExecaChildProcess(target))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!isWritableStream(target.stdin))throw new TypeError("The target child process's stdin must be available.");return spawned[streamName].pipe(target.stdin),target},addPipeMethods=spawned=>{spawned.stdout!==null&&(spawned.pipeStdout=pipeToTarget.bind(void 0,spawned,"stdout")),spawned.stderr!==null&&(spawned.pipeStderr=pipeToTarget.bind(void 0,spawned,"stderr")),spawned.all!==void 0&&(spawned.pipeAll=pipeToTarget.bind(void 0,spawned,"all"));};var getStreamContents=async(stream3,{init:init2,convertChunk,getSize,truncateChunk,addChunk,getFinalChunk,finalize},{maxBuffer=Number.POSITIVE_INFINITY}={})=>{if(!isAsyncIterable(stream3))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let state=init2();state.length=0;try{for await(let chunk of stream3){let chunkType=getChunkType(chunk),convertedChunk=convertChunk[chunkType](chunk,state);appendChunk({convertedChunk,state,getSize,truncateChunk,addChunk,maxBuffer});}return appendFinalChunk({state,convertChunk,getSize,truncateChunk,addChunk,getFinalChunk,maxBuffer}),finalize(state)}catch(error2){throw error2.bufferedData=finalize(state),error2}},appendFinalChunk=({state,getSize,truncateChunk,addChunk,getFinalChunk,maxBuffer})=>{let convertedChunk=getFinalChunk(state);convertedChunk!==void 0&&appendChunk({convertedChunk,state,getSize,truncateChunk,addChunk,maxBuffer});},appendChunk=({convertedChunk,state,getSize,truncateChunk,addChunk,maxBuffer})=>{let chunkSize=getSize(convertedChunk),newLength=state.length+chunkSize;if(newLength<=maxBuffer){addNewChunk(convertedChunk,state,addChunk,newLength);return}let truncatedChunk=truncateChunk(convertedChunk,maxBuffer-state.length);throw truncatedChunk!==void 0&&addNewChunk(truncatedChunk,state,addChunk,maxBuffer),new MaxBufferError},addNewChunk=(convertedChunk,state,addChunk,newLength)=>{state.contents=addChunk(convertedChunk,state,newLength),state.length=newLength;},isAsyncIterable=stream3=>typeof stream3=="object"&&stream3!==null&&typeof stream3[Symbol.asyncIterator]=="function",getChunkType=chunk=>{let typeOfChunk=typeof chunk;if(typeOfChunk==="string")return "string";if(typeOfChunk!=="object"||chunk===null)return "others";if(globalThis.Buffer?.isBuffer(chunk))return "buffer";let prototypeName=objectToString.call(chunk);return prototypeName==="[object ArrayBuffer]"?"arrayBuffer":prototypeName==="[object DataView]"?"dataView":Number.isInteger(chunk.byteLength)&&Number.isInteger(chunk.byteOffset)&&objectToString.call(chunk.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:objectToString}=Object.prototype,MaxBufferError=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded");}};var identity=value2=>value2,noop=()=>{},getContentsProp=({contents})=>contents,throwObjectStream=chunk=>{throw new Error(`Streams in object mode are not supported: ${String(chunk)}`)},getLengthProp=convertedChunk=>convertedChunk.length;async function getStreamAsArrayBuffer(stream3,options){return getStreamContents(stream3,arrayBufferMethods,options)}var initArrayBuffer=()=>({contents:new ArrayBuffer(0)}),useTextEncoder=chunk=>textEncoder.encode(chunk),textEncoder=new TextEncoder,useUint8Array=chunk=>new Uint8Array(chunk),useUint8ArrayWithOffset=chunk=>new Uint8Array(chunk.buffer,chunk.byteOffset,chunk.byteLength),truncateArrayBufferChunk=(convertedChunk,chunkSize)=>convertedChunk.slice(0,chunkSize),addArrayBufferChunk=(convertedChunk,{contents,length:previousLength},length)=>{let newContents=hasArrayBufferResize()?resizeArrayBuffer(contents,length):resizeArrayBufferSlow(contents,length);return new Uint8Array(newContents).set(convertedChunk,previousLength),newContents},resizeArrayBufferSlow=(contents,length)=>{if(length<=contents.byteLength)return contents;let arrayBuffer=new ArrayBuffer(getNewContentsLength(length));return new Uint8Array(arrayBuffer).set(new Uint8Array(contents),0),arrayBuffer},resizeArrayBuffer=(contents,length)=>{if(length<=contents.maxByteLength)return contents.resize(length),contents;let arrayBuffer=new ArrayBuffer(length,{maxByteLength:getNewContentsLength(length)});return new Uint8Array(arrayBuffer).set(new Uint8Array(contents),0),arrayBuffer},getNewContentsLength=length=>SCALE_FACTOR**Math.ceil(Math.log(length)/Math.log(SCALE_FACTOR)),SCALE_FACTOR=2,finalizeArrayBuffer=({contents,length})=>hasArrayBufferResize()?contents:contents.slice(0,length),hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype,arrayBufferMethods={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProp,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:noop,finalize:finalizeArrayBuffer};async function getStreamAsBuffer(stream3,options){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream3,options))}catch(error2){throw error2.bufferedData!==void 0&&(error2.bufferedData=arrayBufferToNodeBuffer(error2.bufferedData)),error2}}var arrayBufferToNodeBuffer=arrayBuffer=>globalThis.Buffer.from(arrayBuffer);async function getStreamAsString(stream3,options){return getStreamContents(stream3,stringMethods,options)}var initString=()=>({contents:"",textDecoder:new TextDecoder}),useTextDecoder=(chunk,{textDecoder})=>textDecoder.decode(chunk,{stream:!0}),addStringChunk=(convertedChunk,{contents})=>contents+convertedChunk,truncateStringChunk=(convertedChunk,chunkSize)=>convertedChunk.slice(0,chunkSize),getFinalStringChunk=({textDecoder})=>{let finalChunk=textDecoder.decode();return finalChunk===""?void 0:finalChunk},stringMethods={init:initString,convertChunk:{string:identity,buffer:useTextDecoder,arrayBuffer:useTextDecoder,dataView:useTextDecoder,typedArray:useTextDecoder,others:throwObjectStream},getSize:getLengthProp,truncateChunk:truncateStringChunk,addChunk:addStringChunk,getFinalChunk:getFinalStringChunk,finalize:getContentsProp};var import_merge_stream=__toESM(require_merge_stream(),1),validateInputOptions=input=>{if(input!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},getInputSync=({input,inputFile})=>typeof inputFile!="string"?input:(validateInputOptions(input),readFileSync(inputFile)),handleInputSync=options=>{let input=getInputSync(options);if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode");return input},getInput=({input,inputFile})=>typeof inputFile!="string"?input:(validateInputOptions(input),createReadStream(inputFile)),handleInput=(spawned,options)=>{let input=getInput(options);input!==void 0&&(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input));},makeAllStream=(spawned,{all:all2})=>{if(!all2||!spawned.stdout&&!spawned.stderr)return;let mixed=(0, import_merge_stream.default)();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream3,streamPromise)=>{if(!(!stream3||streamPromise===void 0)){await setTimeout$1(0),stream3.destroy();try{return await streamPromise}catch(error2){return error2.bufferedData}}},getStreamPromise=(stream3,{encoding,buffer,maxBuffer})=>{if(!(!stream3||!buffer))return encoding==="utf8"||encoding==="utf-8"?getStreamAsString(stream3,{maxBuffer}):encoding===null||encoding==="buffer"?getStreamAsBuffer(stream3,{maxBuffer}):applyEncoding(stream3,maxBuffer,encoding)},applyEncoding=async(stream3,maxBuffer,encoding)=>(await getStreamAsBuffer(stream3,{maxBuffer})).toString(encoding),getSpawnedResult=async({stdout,stderr,all:all2},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all2,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error2){return Promise.all([{error:error2,signal:error2.signal,timedOut:error2.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all2,allPromise)])}};var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value2=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value:value2});}},getSpawnedPromise=spawned=>new Promise((resolve9,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve9({exitCode,signal});}),spawned.on("error",error2=>{reject(error2);}),spawned.stdin&&spawned.stdin.on("error",error2=>{reject(error2);});});var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replaceAll('"','\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens.at(-1);previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token);}return tokens};var verboseDefault=debuglog("execa").enabled,padField=(field,padding)=>String(field).padStart(padding,"0"),getTimestamp=()=>{let date=new Date;return `${padField(date.getHours(),2)}:${padField(date.getMinutes(),2)}:${padField(date.getSeconds(),2)}.${padField(date.getMilliseconds(),3)}`},logCommand=(escapedCommand,{verbose})=>{verbose&&Q.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
2685
|
-
`);};var DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env3=extendEnv?{...Q.env,...envOption}:envOption;return preferLocal?npmRunPathEnv({env:env3,cwd:localDir,execPath}):env3},handleArguments=(file,args,options={})=>{let parsed=import_cross_spawn.default._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||Q.cwd(),execPath:Q.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:verboseDefault,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),Q.platform==="win32"&&qe8.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value2,error2)=>typeof value2!="string"&&!Buffer$1.isBuffer(value2)?error2===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value2):value2;function execa(file,args,options){let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);logCommand(escapedCommand,parsed.options),validateTimeout(parsed.options);let spawned;try{spawned=hn.spawn(parsed.file,parsed.args,parsed.options);}catch(error2){let dummySpawned=new hn.ChildProcess,errorPromise=Promise.reject(makeError({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise),dummySpawned}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime_default(async()=>{let[{error:error2,exitCode,signal,timedOut:timedOut2},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all2=handleOutput(parsed.options,allResult);if(error2||exitCode!==0||signal!==null){let returnedError=makeError({error:error2,exitCode,signal,stdout,stderr,all:all2,command,escapedCommand,parsed,timedOut:timedOut2,isCanceled:(parsed.options.signal?parsed.options.signal.aborted:!1),killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return {command,escapedCommand,exitCode:0,stdout,stderr,all:all2,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options),spawned.all=makeAllStream(spawned,parsed.options),addPipeMethods(spawned),mergePromise(spawned,handlePromiseOnce),spawned}function execaSync(file,args,options){let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);logCommand(escapedCommand,parsed.options);let input=handleInputSync(parsed.options),result;try{result=hn.spawnSync(parsed.file,parsed.args,{...parsed.options,input});}catch(error2){throw makeError({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error2=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error2;throw error2}return {command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function execaCommand(command,options){let[file,...args]=parseCommand(command);return execa(file,args,options)}function execaCommandSync(command,options){let[file,...args]=parseCommand(command);return execaSync(file,args,options)}async function execCommandCountLines(command,options){let process12=execaCommand(command,{shell:!0,buffer:!1,...options});if(!process12.stdout)throw new Error("Unexpected missing stdout");let lineCount=0,rl2=createInterface(process12.stdout);return rl2.on("line",()=>{lineCount+=1;}),await process12,rl2.close(),lineCount}var versions_default={"@storybook/addon-a11y":"9.1.0-beta.0","@storybook/addon-docs":"9.1.0-beta.0","@storybook/addon-jest":"9.1.0-beta.0","@storybook/addon-links":"9.1.0-beta.0","@storybook/addon-onboarding":"9.1.0-beta.0","storybook-addon-pseudo-states":"9.1.0-beta.0","@storybook/addon-themes":"9.1.0-beta.0","@storybook/addon-vitest":"9.1.0-beta.0","@storybook/builder-vite":"9.1.0-beta.0","@storybook/builder-webpack5":"9.1.0-beta.0",storybook:"9.1.0-beta.0","@storybook/angular":"9.1.0-beta.0","@storybook/ember":"9.1.0-beta.0","@storybook/html-vite":"9.1.0-beta.0","@storybook/nextjs":"9.1.0-beta.0","@storybook/nextjs-vite":"9.1.0-beta.0","@storybook/preact-vite":"9.1.0-beta.0","@storybook/react-native-web-vite":"9.1.0-beta.0","@storybook/react-vite":"9.1.0-beta.0","@storybook/react-webpack5":"9.1.0-beta.0","@storybook/server-webpack5":"9.1.0-beta.0","@storybook/svelte-vite":"9.1.0-beta.0","@storybook/sveltekit":"9.1.0-beta.0","@storybook/vue3-vite":"9.1.0-beta.0","@storybook/web-components-vite":"9.1.0-beta.0",sb:"9.1.0-beta.0","@storybook/cli":"9.1.0-beta.0","@storybook/codemod":"9.1.0-beta.0","@storybook/core-webpack":"9.1.0-beta.0","create-storybook":"9.1.0-beta.0","@storybook/csf-plugin":"9.1.0-beta.0","eslint-plugin-storybook":"9.1.0-beta.0","@storybook/react-dom-shim":"9.1.0-beta.0","@storybook/preset-create-react-app":"9.1.0-beta.0","@storybook/preset-react-webpack":"9.1.0-beta.0","@storybook/preset-server-webpack":"9.1.0-beta.0","@storybook/html":"9.1.0-beta.0","@storybook/preact":"9.1.0-beta.0","@storybook/react":"9.1.0-beta.0","@storybook/server":"9.1.0-beta.0","@storybook/svelte":"9.1.0-beta.0","@storybook/vue3":"9.1.0-beta.0","@storybook/web-components":"9.1.0-beta.0"};var import_brace_expansion=__toESM(require_brace_expansion(),1);var assertValidPattern=pattern=>{if(typeof pattern!="string")throw new TypeError("invalid pattern");if(pattern.length>65536)throw new TypeError("pattern is too long")};var posixClasses={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},braceEscape=s10=>s10.replace(/[[\]\\-]/g,"\\$&"),regexpEscape2=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rangesToString=ranges=>ranges.join(""),parseClass=(glob2,position)=>{let pos=position;if(glob2.charAt(pos)!=="[")throw new Error("not in a brace expression");let ranges=[],negs=[],i10=pos+1,sawStart=!1,uflag=!1,escaping=!1,negate=!1,endPos=pos,rangeStart="";WHILE:for(;i10<glob2.length;){let c7=glob2.charAt(i10);if((c7==="!"||c7==="^")&&i10===pos+1){negate=!0,i10++;continue}if(c7==="]"&&sawStart&&!escaping){endPos=i10+1;break}if(sawStart=!0,c7==="\\"&&!escaping){escaping=!0,i10++;continue}if(c7==="["&&!escaping){for(let[cls,[unip,u5,neg]]of Object.entries(posixClasses))if(glob2.startsWith(cls,i10)){if(rangeStart)return ["$.",!1,glob2.length-pos,!0];i10+=cls.length,neg?negs.push(unip):ranges.push(unip),uflag=uflag||u5;continue WHILE}}if(escaping=!1,rangeStart){c7>rangeStart?ranges.push(braceEscape(rangeStart)+"-"+braceEscape(c7)):c7===rangeStart&&ranges.push(braceEscape(c7)),rangeStart="",i10++;continue}if(glob2.startsWith("-]",i10+1)){ranges.push(braceEscape(c7+"-")),i10+=2;continue}if(glob2.startsWith("-",i10+1)){rangeStart=c7,i10+=2;continue}ranges.push(braceEscape(c7)),i10++;}if(endPos<i10)return ["",!1,0,!1];if(!ranges.length&&!negs.length)return ["$.",!1,glob2.length-pos,!0];if(negs.length===0&&ranges.length===1&&/^\\?.$/.test(ranges[0])&&!negate){let r5=ranges[0].length===2?ranges[0].slice(-1):ranges[0];return [regexpEscape2(r5),!1,endPos-pos,!1]}let sranges="["+(negate?"^":"")+rangesToString(ranges)+"]",snegs="["+(negate?"":"^")+rangesToString(negs)+"]";return [ranges.length&&negs.length?"("+sranges+"|"+snegs+")":ranges.length?sranges:snegs,uflag,endPos-pos,!0]};var unescape2=(s10,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s10.replace(/\[([^\/\\])\]/g,"$1"):s10.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var types=new Set(["!","?","+","*","@"]),isExtglobType=c7=>types.has(c7),startNoTraversal="(?!(?:^|/)\\.\\.?(?:$|/))",startNoDot="(?!\\.)",addPatternStart=new Set(["[","."]),justDots=new Set(["..","."]),reSpecials=new Set("().*{}+?[]^$\\!"),regExpEscape=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qmark="[^/]",star=qmark+"*?",starNoEmpty=qmark+"+?",AST=class _AST{type;#root;#hasMagic;#uflag=!1;#parts=[];#parent;#parentIndex;#negs;#filledNegs=!1;#options;#toString;#emptyExt=!1;constructor(type,parent,options={}){this.type=type,type&&(this.#hasMagic=!0),this.#parent=parent,this.#root=this.#parent?this.#parent.#root:this,this.#options=this.#root===this?options:this.#root.#options,this.#negs=this.#root===this?[]:this.#root.#negs,type==="!"&&!this.#root.#filledNegs&&this.#negs.push(this),this.#parentIndex=this.#parent?this.#parent.#parts.length:0;}get hasMagic(){if(this.#hasMagic!==void 0)return this.#hasMagic;for(let p7 of this.#parts)if(typeof p7!="string"&&(p7.type||p7.hasMagic))return this.#hasMagic=!0;return this.#hasMagic}toString(){return this.#toString!==void 0?this.#toString:this.type?this.#toString=this.type+"("+this.#parts.map(p7=>String(p7)).join("|")+")":this.#toString=this.#parts.map(p7=>String(p7)).join("")}#fillNegs(){if(this!==this.#root)throw new Error("should only call on root");if(this.#filledNegs)return this;this.toString(),this.#filledNegs=!0;let n10;for(;n10=this.#negs.pop();){if(n10.type!=="!")continue;let p7=n10,pp4=p7.#parent;for(;pp4;){for(let i10=p7.#parentIndex+1;!pp4.type&&i10<pp4.#parts.length;i10++)for(let part of n10.#parts){if(typeof part=="string")throw new Error("string part in extglob AST??");part.copyIn(pp4.#parts[i10]);}p7=pp4,pp4=p7.#parent;}}return this}push(...parts){for(let p7 of parts)if(p7!==""){if(typeof p7!="string"&&!(p7 instanceof _AST&&p7.#parent===this))throw new Error("invalid part: "+p7);this.#parts.push(p7);}}toJSON(){let ret=this.type===null?this.#parts.slice().map(p7=>typeof p7=="string"?p7:p7.toJSON()):[this.type,...this.#parts.map(p7=>p7.toJSON())];return this.isStart()&&!this.type&&ret.unshift([]),this.isEnd()&&(this===this.#root||this.#root.#filledNegs&&this.#parent?.type==="!")&&ret.push({}),ret}isStart(){if(this.#root===this)return !0;if(!this.#parent?.isStart())return !1;if(this.#parentIndex===0)return !0;let p7=this.#parent;for(let i10=0;i10<this.#parentIndex;i10++){let pp4=p7.#parts[i10];if(!(pp4 instanceof _AST&&pp4.type==="!"))return !1}return !0}isEnd(){if(this.#root===this||this.#parent?.type==="!")return !0;if(!this.#parent?.isEnd())return !1;if(!this.type)return this.#parent?.isEnd();let pl3=this.#parent?this.#parent.#parts.length:0;return this.#parentIndex===pl3-1}copyIn(part){typeof part=="string"?this.push(part):this.push(part.clone(this));}clone(parent){let c7=new _AST(this.type,parent);for(let p7 of this.#parts)c7.copyIn(p7);return c7}static#parseAST(str,ast,pos,opt){let escaping=!1,inBrace=!1,braceStart=-1,braceNeg=!1;if(ast.type===null){let i11=pos,acc2="";for(;i11<str.length;){let c7=str.charAt(i11++);if(escaping||c7==="\\"){escaping=!escaping,acc2+=c7;continue}if(inBrace){i11===braceStart+1?(c7==="^"||c7==="!")&&(braceNeg=!0):c7==="]"&&!(i11===braceStart+2&&braceNeg)&&(inBrace=!1),acc2+=c7;continue}else if(c7==="["){inBrace=!0,braceStart=i11,braceNeg=!1,acc2+=c7;continue}if(!opt.noext&&isExtglobType(c7)&&str.charAt(i11)==="("){ast.push(acc2),acc2="";let ext2=new _AST(c7,ast);i11=_AST.#parseAST(str,ext2,i11,opt),ast.push(ext2);continue}acc2+=c7;}return ast.push(acc2),i11}let i10=pos+1,part=new _AST(null,ast),parts=[],acc="";for(;i10<str.length;){let c7=str.charAt(i10++);if(escaping||c7==="\\"){escaping=!escaping,acc+=c7;continue}if(inBrace){i10===braceStart+1?(c7==="^"||c7==="!")&&(braceNeg=!0):c7==="]"&&!(i10===braceStart+2&&braceNeg)&&(inBrace=!1),acc+=c7;continue}else if(c7==="["){inBrace=!0,braceStart=i10,braceNeg=!1,acc+=c7;continue}if(isExtglobType(c7)&&str.charAt(i10)==="("){part.push(acc),acc="";let ext2=new _AST(c7,part);part.push(ext2),i10=_AST.#parseAST(str,ext2,i10,opt);continue}if(c7==="|"){part.push(acc),acc="",parts.push(part),part=new _AST(null,ast);continue}if(c7===")")return acc===""&&ast.#parts.length===0&&(ast.#emptyExt=!0),part.push(acc),acc="",ast.push(...parts,part),i10;acc+=c7;}return ast.type=null,ast.#hasMagic=void 0,ast.#parts=[str.substring(pos-1)],i10}static fromGlob(pattern,options={}){let ast=new _AST(null,void 0,options);return _AST.#parseAST(pattern,ast,0,options),ast}toMMPattern(){if(this!==this.#root)return this.#root.toMMPattern();let glob2=this.toString(),[re7,body,hasMagic2,uflag]=this.toRegExpSource();if(!(hasMagic2||this.#hasMagic||this.#options.nocase&&!this.#options.nocaseMagicOnly&&glob2.toUpperCase()!==glob2.toLowerCase()))return body;let flags=(this.#options.nocase?"i":"")+(uflag?"u":"");return Object.assign(new RegExp(`^${re7}$`,flags),{_src:re7,_glob:glob2})}get options(){return this.#options}toRegExpSource(allowDot){let dot=allowDot??!!this.#options.dot;if(this.#root===this&&this.#fillNegs(),!this.type){let noEmpty=this.isStart()&&this.isEnd(),src=this.#parts.map(p7=>{let[re7,_11,hasMagic2,uflag]=typeof p7=="string"?_AST.#parseGlob(p7,this.#hasMagic,noEmpty):p7.toRegExpSource(allowDot);return this.#hasMagic=this.#hasMagic||hasMagic2,this.#uflag=this.#uflag||uflag,re7}).join(""),start2="";if(this.isStart()&&typeof this.#parts[0]=="string"&&!(this.#parts.length===1&&justDots.has(this.#parts[0]))){let aps=addPatternStart,needNoTrav=dot&&aps.has(src.charAt(0))||src.startsWith("\\.")&&aps.has(src.charAt(2))||src.startsWith("\\.\\.")&&aps.has(src.charAt(4)),needNoDot=!dot&&!allowDot&&aps.has(src.charAt(0));start2=needNoTrav?startNoTraversal:needNoDot?startNoDot:"";}let end="";return this.isEnd()&&this.#root.#filledNegs&&this.#parent?.type==="!"&&(end="(?:$|\\/)"),[start2+src+end,unescape2(src),this.#hasMagic=!!this.#hasMagic,this.#uflag]}let repeated=this.type==="*"||this.type==="+",start=this.type==="!"?"(?:(?!(?:":"(?:",body=this.#partsToRegExp(dot);if(this.isStart()&&this.isEnd()&&!body&&this.type!=="!"){let s10=this.toString();return this.#parts=[s10],this.type=null,this.#hasMagic=void 0,[s10,unescape2(this.toString()),!1,!1]}let bodyDotAllowed=!repeated||allowDot||dot||!startNoDot?"":this.#partsToRegExp(!0);bodyDotAllowed===body&&(bodyDotAllowed=""),bodyDotAllowed&&(body=`(?:${body})(?:${bodyDotAllowed})*?`);let final="";if(this.type==="!"&&this.#emptyExt)final=(this.isStart()&&!dot?startNoDot:"")+starNoEmpty;else {let close=this.type==="!"?"))"+(this.isStart()&&!dot&&!allowDot?startNoDot:"")+star+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&bodyDotAllowed?")":this.type==="*"&&bodyDotAllowed?")?":`)${this.type}`;final=start+body+close;}return [final,unescape2(body),this.#hasMagic=!!this.#hasMagic,this.#uflag]}#partsToRegExp(dot){return this.#parts.map(p7=>{if(typeof p7=="string")throw new Error("string type in extglob ast??");let[re7,_11,_hasMagic,uflag]=p7.toRegExpSource(dot);return this.#uflag=this.#uflag||uflag,re7}).filter(p7=>!(this.isStart()&&this.isEnd())||!!p7).join("|")}static#parseGlob(glob2,hasMagic2,noEmpty=!1){let escaping=!1,re7="",uflag=!1;for(let i10=0;i10<glob2.length;i10++){let c7=glob2.charAt(i10);if(escaping){escaping=!1,re7+=(reSpecials.has(c7)?"\\":"")+c7;continue}if(c7==="\\"){i10===glob2.length-1?re7+="\\\\":escaping=!0;continue}if(c7==="["){let[src,needUflag,consumed,magic]=parseClass(glob2,i10);if(consumed){re7+=src,uflag=uflag||needUflag,i10+=consumed-1,hasMagic2=hasMagic2||magic;continue}}if(c7==="*"){noEmpty&&glob2==="*"?re7+=starNoEmpty:re7+=star,hasMagic2=!0;continue}if(c7==="?"){re7+=qmark,hasMagic2=!0;continue}re7+=regExpEscape(c7);}return [re7,unescape2(glob2),!!hasMagic2,uflag]}};var escape2=(s10,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s10.replace(/[?*()[\]]/g,"[$&]"):s10.replace(/[?*()[\]\\]/g,"\\$&");var minimatch=(p7,pattern,options={})=>(assertValidPattern(pattern),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p7)),starDotExtRE=/^\*+([^+@!?\*\[\(]*)$/,starDotExtTest=ext2=>f11=>!f11.startsWith(".")&&f11.endsWith(ext2),starDotExtTestDot=ext2=>f11=>f11.endsWith(ext2),starDotExtTestNocase=ext2=>(ext2=ext2.toLowerCase(),f11=>!f11.startsWith(".")&&f11.toLowerCase().endsWith(ext2)),starDotExtTestNocaseDot=ext2=>(ext2=ext2.toLowerCase(),f11=>f11.toLowerCase().endsWith(ext2)),starDotStarRE=/^\*+\.\*+$/,starDotStarTest=f11=>!f11.startsWith(".")&&f11.includes("."),starDotStarTestDot=f11=>f11!=="."&&f11!==".."&&f11.includes("."),dotStarRE=/^\.\*+$/,dotStarTest=f11=>f11!=="."&&f11!==".."&&f11.startsWith("."),starRE=/^\*+$/,starTest=f11=>f11.length!==0&&!f11.startsWith("."),starTestDot=f11=>f11.length!==0&&f11!=="."&&f11!=="..",qmarksRE=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNocase=([$03,ext2=""])=>{let noext=qmarksTestNoExt([$03]);return ext2?(ext2=ext2.toLowerCase(),f11=>noext(f11)&&f11.toLowerCase().endsWith(ext2)):noext},qmarksTestNocaseDot=([$03,ext2=""])=>{let noext=qmarksTestNoExtDot([$03]);return ext2?(ext2=ext2.toLowerCase(),f11=>noext(f11)&&f11.toLowerCase().endsWith(ext2)):noext},qmarksTestDot=([$03,ext2=""])=>{let noext=qmarksTestNoExtDot([$03]);return ext2?f11=>noext(f11)&&f11.endsWith(ext2):noext},qmarksTest=([$03,ext2=""])=>{let noext=qmarksTestNoExt([$03]);return ext2?f11=>noext(f11)&&f11.endsWith(ext2):noext},qmarksTestNoExt=([$03])=>{let len=$03.length;return f11=>f11.length===len&&!f11.startsWith(".")},qmarksTestNoExtDot=([$03])=>{let len=$03.length;return f11=>f11.length===len&&f11!=="."&&f11!==".."},defaultPlatform=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",path4={win32:{sep:"\\"},posix:{sep:"/"}},sep=defaultPlatform==="win32"?path4.win32.sep:path4.posix.sep;minimatch.sep=sep;var GLOBSTAR=Symbol("globstar **");minimatch.GLOBSTAR=GLOBSTAR;var qmark2="[^/]",star2=qmark2+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",filter=(pattern,options={})=>p7=>minimatch(p7,pattern,options);minimatch.filter=filter;var ext=(a5,b8={})=>Object.assign({},a5,b8),defaults=def=>{if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;let orig=minimatch;return Object.assign((p7,pattern,options={})=>orig(p7,pattern,ext(def,options)),{Minimatch:class extends orig.Minimatch{constructor(pattern,options={}){super(pattern,ext(def,options));}static defaults(options){return orig.defaults(ext(def,options)).Minimatch}},AST:class extends orig.AST{constructor(type,parent,options={}){super(type,parent,ext(def,options));}static fromGlob(pattern,options={}){return orig.AST.fromGlob(pattern,ext(def,options))}},unescape:(s10,options={})=>orig.unescape(s10,ext(def,options)),escape:(s10,options={})=>orig.escape(s10,ext(def,options)),filter:(pattern,options={})=>orig.filter(pattern,ext(def,options)),defaults:options=>orig.defaults(ext(def,options)),makeRe:(pattern,options={})=>orig.makeRe(pattern,ext(def,options)),braceExpand:(pattern,options={})=>orig.braceExpand(pattern,ext(def,options)),match:(list,pattern,options={})=>orig.match(list,pattern,ext(def,options)),sep:orig.sep,GLOBSTAR})};minimatch.defaults=defaults;var braceExpand=(pattern,options={})=>(assertValidPattern(pattern),options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)?[pattern]:(0, import_brace_expansion.default)(pattern));minimatch.braceExpand=braceExpand;var makeRe=(pattern,options={})=>new Minimatch(pattern,options).makeRe();minimatch.makeRe=makeRe;var match=(list,pattern,options={})=>{let mm2=new Minimatch(pattern,options);return list=list.filter(f11=>mm2.match(f11)),mm2.options.nonull&&!list.length&&list.push(pattern),list};minimatch.match=match;var globMagic=/[?*]|[+@!]\(.*?\)|\[|\]/,regExpEscape2=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Minimatch=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(pattern,options={}){assertValidPattern(pattern),options=options||{},this.options=options,this.pattern=pattern,this.platform=options.platform||defaultPlatform,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!options.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!options.nonegate,this.comment=!1,this.empty=!1,this.partial=!!options.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=options.windowsNoMagicRoot!==void 0?options.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make();}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return !0;for(let pattern of this.set)for(let part of pattern)if(typeof part!="string")return !0;return !1}debug(..._11){}make(){let pattern=this.pattern,options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=!0;return}if(!pattern){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],options.debug&&(this.debug=(...args)=>console.error(...args)),this.debug(this.pattern,this.globSet);let rawGlobParts=this.globSet.map(s10=>this.slashSplit(s10));this.globParts=this.preprocess(rawGlobParts),this.debug(this.pattern,this.globParts);let set2=this.globParts.map((s10,_11,__2)=>{if(this.isWindows&&this.windowsNoMagicRoot){let isUNC=s10[0]===""&&s10[1]===""&&(s10[2]==="?"||!globMagic.test(s10[2]))&&!globMagic.test(s10[3]),isDrive=/^[a-z]:/i.test(s10[0]);if(isUNC)return [...s10.slice(0,4),...s10.slice(4).map(ss3=>this.parse(ss3))];if(isDrive)return [s10[0],...s10.slice(1).map(ss3=>this.parse(ss3))]}return s10.map(ss3=>this.parse(ss3))});if(this.debug(this.pattern,set2),this.set=set2.filter(s10=>s10.indexOf(!1)===-1),this.isWindows)for(let i10=0;i10<this.set.length;i10++){let p7=this.set[i10];p7[0]===""&&p7[1]===""&&this.globParts[i10][2]==="?"&&typeof p7[3]=="string"&&/^[a-z]:$/i.test(p7[3])&&(p7[2]="?");}this.debug(this.pattern,this.set);}preprocess(globParts){if(this.options.noglobstar)for(let i10=0;i10<globParts.length;i10++)for(let j12=0;j12<globParts[i10].length;j12++)globParts[i10][j12]==="**"&&(globParts[i10][j12]="*");let{optimizationLevel=1}=this.options;return optimizationLevel>=2?(globParts=this.firstPhasePreProcess(globParts),globParts=this.secondPhasePreProcess(globParts)):optimizationLevel>=1?globParts=this.levelOneOptimize(globParts):globParts=this.adjascentGlobstarOptimize(globParts),globParts}adjascentGlobstarOptimize(globParts){return globParts.map(parts=>{let gs2=-1;for(;(gs2=parts.indexOf("**",gs2+1))!==-1;){let i10=gs2;for(;parts[i10+1]==="**";)i10++;i10!==gs2&&parts.splice(gs2,i10-gs2);}return parts})}levelOneOptimize(globParts){return globParts.map(parts=>(parts=parts.reduce((set2,part)=>{let prev=set2[set2.length-1];return part==="**"&&prev==="**"?set2:part===".."&&prev&&prev!==".."&&prev!=="."&&prev!=="**"?(set2.pop(),set2):(set2.push(part),set2)},[]),parts.length===0?[""]:parts))}levelTwoFileOptimize(parts){Array.isArray(parts)||(parts=this.slashSplit(parts));let didSomething=!1;do{if(didSomething=!1,!this.preserveMultipleSlashes){for(let i10=1;i10<parts.length-1;i10++){let p7=parts[i10];i10===1&&p7===""&&parts[0]===""||(p7==="."||p7==="")&&(didSomething=!0,parts.splice(i10,1),i10--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd3=0;for(;(dd3=parts.indexOf("..",dd3+1))!==-1;){let p7=parts[dd3-1];p7&&p7!=="."&&p7!==".."&&p7!=="**"&&(didSomething=!0,parts.splice(dd3-1,2),dd3-=2);}}while(didSomething);return parts.length===0?[""]:parts}firstPhasePreProcess(globParts){let didSomething=!1;do{didSomething=!1;for(let parts of globParts){let gs2=-1;for(;(gs2=parts.indexOf("**",gs2+1))!==-1;){let gss=gs2;for(;parts[gss+1]==="**";)gss++;gss>gs2&&parts.splice(gs2+1,gss-gs2);let next=parts[gs2+1],p7=parts[gs2+2],p22=parts[gs2+3];if(next!==".."||!p7||p7==="."||p7===".."||!p22||p22==="."||p22==="..")continue;didSomething=!0,parts.splice(gs2,1);let other=parts.slice(0);other[gs2]="**",globParts.push(other),gs2--;}if(!this.preserveMultipleSlashes){for(let i10=1;i10<parts.length-1;i10++){let p7=parts[i10];i10===1&&p7===""&&parts[0]===""||(p7==="."||p7==="")&&(didSomething=!0,parts.splice(i10,1),i10--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd3=0;for(;(dd3=parts.indexOf("..",dd3+1))!==-1;){let p7=parts[dd3-1];if(p7&&p7!=="."&&p7!==".."&&p7!=="**"){didSomething=!0;let splin=dd3===1&&parts[dd3+1]==="**"?["."]:[];parts.splice(dd3-1,2,...splin),parts.length===0&&parts.push(""),dd3-=2;}}}}while(didSomething);return globParts}secondPhasePreProcess(globParts){for(let i10=0;i10<globParts.length-1;i10++)for(let j12=i10+1;j12<globParts.length;j12++){let matched=this.partsMatch(globParts[i10],globParts[j12],!this.preserveMultipleSlashes);if(matched){globParts[i10]=[],globParts[j12]=matched;break}}return globParts.filter(gs2=>gs2.length)}partsMatch(a5,b8,emptyGSMatch=!1){let ai5=0,bi4=0,result=[],which="";for(;ai5<a5.length&&bi4<b8.length;)if(a5[ai5]===b8[bi4])result.push(which==="b"?b8[bi4]:a5[ai5]),ai5++,bi4++;else if(emptyGSMatch&&a5[ai5]==="**"&&b8[bi4]===a5[ai5+1])result.push(a5[ai5]),ai5++;else if(emptyGSMatch&&b8[bi4]==="**"&&a5[ai5]===b8[bi4+1])result.push(b8[bi4]),bi4++;else if(a5[ai5]==="*"&&b8[bi4]&&(this.options.dot||!b8[bi4].startsWith("."))&&b8[bi4]!=="**"){if(which==="b")return !1;which="a",result.push(a5[ai5]),ai5++,bi4++;}else if(b8[bi4]==="*"&&a5[ai5]&&(this.options.dot||!a5[ai5].startsWith("."))&&a5[ai5]!=="**"){if(which==="a")return !1;which="b",result.push(b8[bi4]),ai5++,bi4++;}else return !1;return a5.length===b8.length&&result}parseNegate(){if(this.nonegate)return;let pattern=this.pattern,negate=!1,negateOffset=0;for(let i10=0;i10<pattern.length&&pattern.charAt(i10)==="!";i10++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.slice(negateOffset)),this.negate=negate;}matchOne(file,pattern,partial=!1){let options=this.options;if(this.isWindows){let fileDrive=typeof file[0]=="string"&&/^[a-z]:$/i.test(file[0]),fileUNC=!fileDrive&&file[0]===""&&file[1]===""&&file[2]==="?"&&/^[a-z]:$/i.test(file[3]),patternDrive=typeof pattern[0]=="string"&&/^[a-z]:$/i.test(pattern[0]),patternUNC=!patternDrive&&pattern[0]===""&&pattern[1]===""&&pattern[2]==="?"&&typeof pattern[3]=="string"&&/^[a-z]:$/i.test(pattern[3]),fdi=fileUNC?3:fileDrive?0:void 0,pdi=patternUNC?3:patternDrive?0:void 0;if(typeof fdi=="number"&&typeof pdi=="number"){let[fd4,pd2]=[file[fdi],pattern[pdi]];fd4.toLowerCase()===pd2.toLowerCase()&&(pattern[pdi]=fd4,pdi>fdi?pattern=pattern.slice(pdi):fdi>pdi&&(file=file.slice(fdi)));}}let{optimizationLevel=1}=this.options;optimizationLevel>=2&&(file=this.levelTwoFileOptimize(file)),this.debug("matchOne",this,{file,pattern}),this.debug("matchOne",file.length,pattern.length);for(var fi5=0,pi5=0,fl2=file.length,pl3=pattern.length;fi5<fl2&&pi5<pl3;fi5++,pi5++){this.debug("matchOne loop");var p7=pattern[pi5],f11=file[fi5];if(this.debug(pattern,p7,f11),p7===!1)return !1;if(p7===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p7,f11]);var fr6=fi5,pr5=pi5+1;if(pr5===pl3){for(this.debug("** at the end");fi5<fl2;fi5++)if(file[fi5]==="."||file[fi5]===".."||!options.dot&&file[fi5].charAt(0)===".")return !1;return !0}for(;fr6<fl2;){var swallowee=file[fr6];if(this.debug(`
|
|
2685
|
+
`);};var DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env3=extendEnv?{...Q.env,...envOption}:envOption;return preferLocal?npmRunPathEnv({env:env3,cwd:localDir,execPath}):env3},handleArguments=(file,args,options={})=>{let parsed=import_cross_spawn.default._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||Q.cwd(),execPath:Q.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:verboseDefault,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),Q.platform==="win32"&&qe8.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value2,error2)=>typeof value2!="string"&&!Buffer$1.isBuffer(value2)?error2===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value2):value2;function execa(file,args,options){let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);logCommand(escapedCommand,parsed.options),validateTimeout(parsed.options);let spawned;try{spawned=hn.spawn(parsed.file,parsed.args,parsed.options);}catch(error2){let dummySpawned=new hn.ChildProcess,errorPromise=Promise.reject(makeError({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise),dummySpawned}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime_default(async()=>{let[{error:error2,exitCode,signal,timedOut:timedOut2},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all2=handleOutput(parsed.options,allResult);if(error2||exitCode!==0||signal!==null){let returnedError=makeError({error:error2,exitCode,signal,stdout,stderr,all:all2,command,escapedCommand,parsed,timedOut:timedOut2,isCanceled:(parsed.options.signal?parsed.options.signal.aborted:!1),killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return {command,escapedCommand,exitCode:0,stdout,stderr,all:all2,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options),spawned.all=makeAllStream(spawned,parsed.options),addPipeMethods(spawned),mergePromise(spawned,handlePromiseOnce),spawned}function execaSync(file,args,options){let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);logCommand(escapedCommand,parsed.options);let input=handleInputSync(parsed.options),result;try{result=hn.spawnSync(parsed.file,parsed.args,{...parsed.options,input});}catch(error2){throw makeError({error:error2,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error2=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error2;throw error2}return {command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function execaCommand(command,options){let[file,...args]=parseCommand(command);return execa(file,args,options)}function execaCommandSync(command,options){let[file,...args]=parseCommand(command);return execaSync(file,args,options)}async function execCommandCountLines(command,options){let process12=execaCommand(command,{shell:!0,buffer:!1,...options});if(!process12.stdout)throw new Error("Unexpected missing stdout");let lineCount=0,rl2=createInterface(process12.stdout);return rl2.on("line",()=>{lineCount+=1;}),await process12,rl2.close(),lineCount}var versions_default={"@storybook/addon-a11y":"9.1.0-beta.2","@storybook/addon-docs":"9.1.0-beta.2","@storybook/addon-jest":"9.1.0-beta.2","@storybook/addon-links":"9.1.0-beta.2","@storybook/addon-onboarding":"9.1.0-beta.2","storybook-addon-pseudo-states":"9.1.0-beta.2","@storybook/addon-themes":"9.1.0-beta.2","@storybook/addon-vitest":"9.1.0-beta.2","@storybook/builder-vite":"9.1.0-beta.2","@storybook/builder-webpack5":"9.1.0-beta.2",storybook:"9.1.0-beta.2","@storybook/angular":"9.1.0-beta.2","@storybook/ember":"9.1.0-beta.2","@storybook/html-vite":"9.1.0-beta.2","@storybook/nextjs":"9.1.0-beta.2","@storybook/nextjs-vite":"9.1.0-beta.2","@storybook/preact-vite":"9.1.0-beta.2","@storybook/react-native-web-vite":"9.1.0-beta.2","@storybook/react-vite":"9.1.0-beta.2","@storybook/react-webpack5":"9.1.0-beta.2","@storybook/server-webpack5":"9.1.0-beta.2","@storybook/svelte-vite":"9.1.0-beta.2","@storybook/sveltekit":"9.1.0-beta.2","@storybook/vue3-vite":"9.1.0-beta.2","@storybook/web-components-vite":"9.1.0-beta.2",sb:"9.1.0-beta.2","@storybook/cli":"9.1.0-beta.2","@storybook/codemod":"9.1.0-beta.2","@storybook/core-webpack":"9.1.0-beta.2","create-storybook":"9.1.0-beta.2","@storybook/csf-plugin":"9.1.0-beta.2","eslint-plugin-storybook":"9.1.0-beta.2","@storybook/react-dom-shim":"9.1.0-beta.2","@storybook/preset-create-react-app":"9.1.0-beta.2","@storybook/preset-react-webpack":"9.1.0-beta.2","@storybook/preset-server-webpack":"9.1.0-beta.2","@storybook/html":"9.1.0-beta.2","@storybook/preact":"9.1.0-beta.2","@storybook/react":"9.1.0-beta.2","@storybook/server":"9.1.0-beta.2","@storybook/svelte":"9.1.0-beta.2","@storybook/vue3":"9.1.0-beta.2","@storybook/web-components":"9.1.0-beta.2"};var import_brace_expansion=__toESM(require_brace_expansion(),1);var assertValidPattern=pattern=>{if(typeof pattern!="string")throw new TypeError("invalid pattern");if(pattern.length>65536)throw new TypeError("pattern is too long")};var posixClasses={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},braceEscape=s10=>s10.replace(/[[\]\\-]/g,"\\$&"),regexpEscape2=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rangesToString=ranges=>ranges.join(""),parseClass=(glob2,position)=>{let pos=position;if(glob2.charAt(pos)!=="[")throw new Error("not in a brace expression");let ranges=[],negs=[],i10=pos+1,sawStart=!1,uflag=!1,escaping=!1,negate=!1,endPos=pos,rangeStart="";WHILE:for(;i10<glob2.length;){let c7=glob2.charAt(i10);if((c7==="!"||c7==="^")&&i10===pos+1){negate=!0,i10++;continue}if(c7==="]"&&sawStart&&!escaping){endPos=i10+1;break}if(sawStart=!0,c7==="\\"&&!escaping){escaping=!0,i10++;continue}if(c7==="["&&!escaping){for(let[cls,[unip,u5,neg]]of Object.entries(posixClasses))if(glob2.startsWith(cls,i10)){if(rangeStart)return ["$.",!1,glob2.length-pos,!0];i10+=cls.length,neg?negs.push(unip):ranges.push(unip),uflag=uflag||u5;continue WHILE}}if(escaping=!1,rangeStart){c7>rangeStart?ranges.push(braceEscape(rangeStart)+"-"+braceEscape(c7)):c7===rangeStart&&ranges.push(braceEscape(c7)),rangeStart="",i10++;continue}if(glob2.startsWith("-]",i10+1)){ranges.push(braceEscape(c7+"-")),i10+=2;continue}if(glob2.startsWith("-",i10+1)){rangeStart=c7,i10+=2;continue}ranges.push(braceEscape(c7)),i10++;}if(endPos<i10)return ["",!1,0,!1];if(!ranges.length&&!negs.length)return ["$.",!1,glob2.length-pos,!0];if(negs.length===0&&ranges.length===1&&/^\\?.$/.test(ranges[0])&&!negate){let r5=ranges[0].length===2?ranges[0].slice(-1):ranges[0];return [regexpEscape2(r5),!1,endPos-pos,!1]}let sranges="["+(negate?"^":"")+rangesToString(ranges)+"]",snegs="["+(negate?"":"^")+rangesToString(negs)+"]";return [ranges.length&&negs.length?"("+sranges+"|"+snegs+")":ranges.length?sranges:snegs,uflag,endPos-pos,!0]};var unescape2=(s10,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s10.replace(/\[([^\/\\])\]/g,"$1"):s10.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var types=new Set(["!","?","+","*","@"]),isExtglobType=c7=>types.has(c7),startNoTraversal="(?!(?:^|/)\\.\\.?(?:$|/))",startNoDot="(?!\\.)",addPatternStart=new Set(["[","."]),justDots=new Set(["..","."]),reSpecials=new Set("().*{}+?[]^$\\!"),regExpEscape=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qmark="[^/]",star=qmark+"*?",starNoEmpty=qmark+"+?",AST=class _AST{type;#root;#hasMagic;#uflag=!1;#parts=[];#parent;#parentIndex;#negs;#filledNegs=!1;#options;#toString;#emptyExt=!1;constructor(type,parent,options={}){this.type=type,type&&(this.#hasMagic=!0),this.#parent=parent,this.#root=this.#parent?this.#parent.#root:this,this.#options=this.#root===this?options:this.#root.#options,this.#negs=this.#root===this?[]:this.#root.#negs,type==="!"&&!this.#root.#filledNegs&&this.#negs.push(this),this.#parentIndex=this.#parent?this.#parent.#parts.length:0;}get hasMagic(){if(this.#hasMagic!==void 0)return this.#hasMagic;for(let p7 of this.#parts)if(typeof p7!="string"&&(p7.type||p7.hasMagic))return this.#hasMagic=!0;return this.#hasMagic}toString(){return this.#toString!==void 0?this.#toString:this.type?this.#toString=this.type+"("+this.#parts.map(p7=>String(p7)).join("|")+")":this.#toString=this.#parts.map(p7=>String(p7)).join("")}#fillNegs(){if(this!==this.#root)throw new Error("should only call on root");if(this.#filledNegs)return this;this.toString(),this.#filledNegs=!0;let n10;for(;n10=this.#negs.pop();){if(n10.type!=="!")continue;let p7=n10,pp4=p7.#parent;for(;pp4;){for(let i10=p7.#parentIndex+1;!pp4.type&&i10<pp4.#parts.length;i10++)for(let part of n10.#parts){if(typeof part=="string")throw new Error("string part in extglob AST??");part.copyIn(pp4.#parts[i10]);}p7=pp4,pp4=p7.#parent;}}return this}push(...parts){for(let p7 of parts)if(p7!==""){if(typeof p7!="string"&&!(p7 instanceof _AST&&p7.#parent===this))throw new Error("invalid part: "+p7);this.#parts.push(p7);}}toJSON(){let ret=this.type===null?this.#parts.slice().map(p7=>typeof p7=="string"?p7:p7.toJSON()):[this.type,...this.#parts.map(p7=>p7.toJSON())];return this.isStart()&&!this.type&&ret.unshift([]),this.isEnd()&&(this===this.#root||this.#root.#filledNegs&&this.#parent?.type==="!")&&ret.push({}),ret}isStart(){if(this.#root===this)return !0;if(!this.#parent?.isStart())return !1;if(this.#parentIndex===0)return !0;let p7=this.#parent;for(let i10=0;i10<this.#parentIndex;i10++){let pp4=p7.#parts[i10];if(!(pp4 instanceof _AST&&pp4.type==="!"))return !1}return !0}isEnd(){if(this.#root===this||this.#parent?.type==="!")return !0;if(!this.#parent?.isEnd())return !1;if(!this.type)return this.#parent?.isEnd();let pl3=this.#parent?this.#parent.#parts.length:0;return this.#parentIndex===pl3-1}copyIn(part){typeof part=="string"?this.push(part):this.push(part.clone(this));}clone(parent){let c7=new _AST(this.type,parent);for(let p7 of this.#parts)c7.copyIn(p7);return c7}static#parseAST(str,ast,pos,opt){let escaping=!1,inBrace=!1,braceStart=-1,braceNeg=!1;if(ast.type===null){let i11=pos,acc2="";for(;i11<str.length;){let c7=str.charAt(i11++);if(escaping||c7==="\\"){escaping=!escaping,acc2+=c7;continue}if(inBrace){i11===braceStart+1?(c7==="^"||c7==="!")&&(braceNeg=!0):c7==="]"&&!(i11===braceStart+2&&braceNeg)&&(inBrace=!1),acc2+=c7;continue}else if(c7==="["){inBrace=!0,braceStart=i11,braceNeg=!1,acc2+=c7;continue}if(!opt.noext&&isExtglobType(c7)&&str.charAt(i11)==="("){ast.push(acc2),acc2="";let ext2=new _AST(c7,ast);i11=_AST.#parseAST(str,ext2,i11,opt),ast.push(ext2);continue}acc2+=c7;}return ast.push(acc2),i11}let i10=pos+1,part=new _AST(null,ast),parts=[],acc="";for(;i10<str.length;){let c7=str.charAt(i10++);if(escaping||c7==="\\"){escaping=!escaping,acc+=c7;continue}if(inBrace){i10===braceStart+1?(c7==="^"||c7==="!")&&(braceNeg=!0):c7==="]"&&!(i10===braceStart+2&&braceNeg)&&(inBrace=!1),acc+=c7;continue}else if(c7==="["){inBrace=!0,braceStart=i10,braceNeg=!1,acc+=c7;continue}if(isExtglobType(c7)&&str.charAt(i10)==="("){part.push(acc),acc="";let ext2=new _AST(c7,part);part.push(ext2),i10=_AST.#parseAST(str,ext2,i10,opt);continue}if(c7==="|"){part.push(acc),acc="",parts.push(part),part=new _AST(null,ast);continue}if(c7===")")return acc===""&&ast.#parts.length===0&&(ast.#emptyExt=!0),part.push(acc),acc="",ast.push(...parts,part),i10;acc+=c7;}return ast.type=null,ast.#hasMagic=void 0,ast.#parts=[str.substring(pos-1)],i10}static fromGlob(pattern,options={}){let ast=new _AST(null,void 0,options);return _AST.#parseAST(pattern,ast,0,options),ast}toMMPattern(){if(this!==this.#root)return this.#root.toMMPattern();let glob2=this.toString(),[re7,body,hasMagic2,uflag]=this.toRegExpSource();if(!(hasMagic2||this.#hasMagic||this.#options.nocase&&!this.#options.nocaseMagicOnly&&glob2.toUpperCase()!==glob2.toLowerCase()))return body;let flags=(this.#options.nocase?"i":"")+(uflag?"u":"");return Object.assign(new RegExp(`^${re7}$`,flags),{_src:re7,_glob:glob2})}get options(){return this.#options}toRegExpSource(allowDot){let dot=allowDot??!!this.#options.dot;if(this.#root===this&&this.#fillNegs(),!this.type){let noEmpty=this.isStart()&&this.isEnd(),src=this.#parts.map(p7=>{let[re7,_11,hasMagic2,uflag]=typeof p7=="string"?_AST.#parseGlob(p7,this.#hasMagic,noEmpty):p7.toRegExpSource(allowDot);return this.#hasMagic=this.#hasMagic||hasMagic2,this.#uflag=this.#uflag||uflag,re7}).join(""),start2="";if(this.isStart()&&typeof this.#parts[0]=="string"&&!(this.#parts.length===1&&justDots.has(this.#parts[0]))){let aps=addPatternStart,needNoTrav=dot&&aps.has(src.charAt(0))||src.startsWith("\\.")&&aps.has(src.charAt(2))||src.startsWith("\\.\\.")&&aps.has(src.charAt(4)),needNoDot=!dot&&!allowDot&&aps.has(src.charAt(0));start2=needNoTrav?startNoTraversal:needNoDot?startNoDot:"";}let end="";return this.isEnd()&&this.#root.#filledNegs&&this.#parent?.type==="!"&&(end="(?:$|\\/)"),[start2+src+end,unescape2(src),this.#hasMagic=!!this.#hasMagic,this.#uflag]}let repeated=this.type==="*"||this.type==="+",start=this.type==="!"?"(?:(?!(?:":"(?:",body=this.#partsToRegExp(dot);if(this.isStart()&&this.isEnd()&&!body&&this.type!=="!"){let s10=this.toString();return this.#parts=[s10],this.type=null,this.#hasMagic=void 0,[s10,unescape2(this.toString()),!1,!1]}let bodyDotAllowed=!repeated||allowDot||dot||!startNoDot?"":this.#partsToRegExp(!0);bodyDotAllowed===body&&(bodyDotAllowed=""),bodyDotAllowed&&(body=`(?:${body})(?:${bodyDotAllowed})*?`);let final="";if(this.type==="!"&&this.#emptyExt)final=(this.isStart()&&!dot?startNoDot:"")+starNoEmpty;else {let close=this.type==="!"?"))"+(this.isStart()&&!dot&&!allowDot?startNoDot:"")+star+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&bodyDotAllowed?")":this.type==="*"&&bodyDotAllowed?")?":`)${this.type}`;final=start+body+close;}return [final,unescape2(body),this.#hasMagic=!!this.#hasMagic,this.#uflag]}#partsToRegExp(dot){return this.#parts.map(p7=>{if(typeof p7=="string")throw new Error("string type in extglob ast??");let[re7,_11,_hasMagic,uflag]=p7.toRegExpSource(dot);return this.#uflag=this.#uflag||uflag,re7}).filter(p7=>!(this.isStart()&&this.isEnd())||!!p7).join("|")}static#parseGlob(glob2,hasMagic2,noEmpty=!1){let escaping=!1,re7="",uflag=!1;for(let i10=0;i10<glob2.length;i10++){let c7=glob2.charAt(i10);if(escaping){escaping=!1,re7+=(reSpecials.has(c7)?"\\":"")+c7;continue}if(c7==="\\"){i10===glob2.length-1?re7+="\\\\":escaping=!0;continue}if(c7==="["){let[src,needUflag,consumed,magic]=parseClass(glob2,i10);if(consumed){re7+=src,uflag=uflag||needUflag,i10+=consumed-1,hasMagic2=hasMagic2||magic;continue}}if(c7==="*"){noEmpty&&glob2==="*"?re7+=starNoEmpty:re7+=star,hasMagic2=!0;continue}if(c7==="?"){re7+=qmark,hasMagic2=!0;continue}re7+=regExpEscape(c7);}return [re7,unescape2(glob2),!!hasMagic2,uflag]}};var escape2=(s10,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s10.replace(/[?*()[\]]/g,"[$&]"):s10.replace(/[?*()[\]\\]/g,"\\$&");var minimatch=(p7,pattern,options={})=>(assertValidPattern(pattern),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p7)),starDotExtRE=/^\*+([^+@!?\*\[\(]*)$/,starDotExtTest=ext2=>f11=>!f11.startsWith(".")&&f11.endsWith(ext2),starDotExtTestDot=ext2=>f11=>f11.endsWith(ext2),starDotExtTestNocase=ext2=>(ext2=ext2.toLowerCase(),f11=>!f11.startsWith(".")&&f11.toLowerCase().endsWith(ext2)),starDotExtTestNocaseDot=ext2=>(ext2=ext2.toLowerCase(),f11=>f11.toLowerCase().endsWith(ext2)),starDotStarRE=/^\*+\.\*+$/,starDotStarTest=f11=>!f11.startsWith(".")&&f11.includes("."),starDotStarTestDot=f11=>f11!=="."&&f11!==".."&&f11.includes("."),dotStarRE=/^\.\*+$/,dotStarTest=f11=>f11!=="."&&f11!==".."&&f11.startsWith("."),starRE=/^\*+$/,starTest=f11=>f11.length!==0&&!f11.startsWith("."),starTestDot=f11=>f11.length!==0&&f11!=="."&&f11!=="..",qmarksRE=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNocase=([$03,ext2=""])=>{let noext=qmarksTestNoExt([$03]);return ext2?(ext2=ext2.toLowerCase(),f11=>noext(f11)&&f11.toLowerCase().endsWith(ext2)):noext},qmarksTestNocaseDot=([$03,ext2=""])=>{let noext=qmarksTestNoExtDot([$03]);return ext2?(ext2=ext2.toLowerCase(),f11=>noext(f11)&&f11.toLowerCase().endsWith(ext2)):noext},qmarksTestDot=([$03,ext2=""])=>{let noext=qmarksTestNoExtDot([$03]);return ext2?f11=>noext(f11)&&f11.endsWith(ext2):noext},qmarksTest=([$03,ext2=""])=>{let noext=qmarksTestNoExt([$03]);return ext2?f11=>noext(f11)&&f11.endsWith(ext2):noext},qmarksTestNoExt=([$03])=>{let len=$03.length;return f11=>f11.length===len&&!f11.startsWith(".")},qmarksTestNoExtDot=([$03])=>{let len=$03.length;return f11=>f11.length===len&&f11!=="."&&f11!==".."},defaultPlatform=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",path4={win32:{sep:"\\"},posix:{sep:"/"}},sep=defaultPlatform==="win32"?path4.win32.sep:path4.posix.sep;minimatch.sep=sep;var GLOBSTAR=Symbol("globstar **");minimatch.GLOBSTAR=GLOBSTAR;var qmark2="[^/]",star2=qmark2+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",filter=(pattern,options={})=>p7=>minimatch(p7,pattern,options);minimatch.filter=filter;var ext=(a5,b8={})=>Object.assign({},a5,b8),defaults=def=>{if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;let orig=minimatch;return Object.assign((p7,pattern,options={})=>orig(p7,pattern,ext(def,options)),{Minimatch:class extends orig.Minimatch{constructor(pattern,options={}){super(pattern,ext(def,options));}static defaults(options){return orig.defaults(ext(def,options)).Minimatch}},AST:class extends orig.AST{constructor(type,parent,options={}){super(type,parent,ext(def,options));}static fromGlob(pattern,options={}){return orig.AST.fromGlob(pattern,ext(def,options))}},unescape:(s10,options={})=>orig.unescape(s10,ext(def,options)),escape:(s10,options={})=>orig.escape(s10,ext(def,options)),filter:(pattern,options={})=>orig.filter(pattern,ext(def,options)),defaults:options=>orig.defaults(ext(def,options)),makeRe:(pattern,options={})=>orig.makeRe(pattern,ext(def,options)),braceExpand:(pattern,options={})=>orig.braceExpand(pattern,ext(def,options)),match:(list,pattern,options={})=>orig.match(list,pattern,ext(def,options)),sep:orig.sep,GLOBSTAR})};minimatch.defaults=defaults;var braceExpand=(pattern,options={})=>(assertValidPattern(pattern),options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)?[pattern]:(0, import_brace_expansion.default)(pattern));minimatch.braceExpand=braceExpand;var makeRe=(pattern,options={})=>new Minimatch(pattern,options).makeRe();minimatch.makeRe=makeRe;var match=(list,pattern,options={})=>{let mm2=new Minimatch(pattern,options);return list=list.filter(f11=>mm2.match(f11)),mm2.options.nonull&&!list.length&&list.push(pattern),list};minimatch.match=match;var globMagic=/[?*]|[+@!]\(.*?\)|\[|\]/,regExpEscape2=s10=>s10.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Minimatch=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(pattern,options={}){assertValidPattern(pattern),options=options||{},this.options=options,this.pattern=pattern,this.platform=options.platform||defaultPlatform,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!options.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!options.nonegate,this.comment=!1,this.empty=!1,this.partial=!!options.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=options.windowsNoMagicRoot!==void 0?options.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make();}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return !0;for(let pattern of this.set)for(let part of pattern)if(typeof part!="string")return !0;return !1}debug(..._11){}make(){let pattern=this.pattern,options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=!0;return}if(!pattern){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],options.debug&&(this.debug=(...args)=>console.error(...args)),this.debug(this.pattern,this.globSet);let rawGlobParts=this.globSet.map(s10=>this.slashSplit(s10));this.globParts=this.preprocess(rawGlobParts),this.debug(this.pattern,this.globParts);let set2=this.globParts.map((s10,_11,__2)=>{if(this.isWindows&&this.windowsNoMagicRoot){let isUNC=s10[0]===""&&s10[1]===""&&(s10[2]==="?"||!globMagic.test(s10[2]))&&!globMagic.test(s10[3]),isDrive=/^[a-z]:/i.test(s10[0]);if(isUNC)return [...s10.slice(0,4),...s10.slice(4).map(ss3=>this.parse(ss3))];if(isDrive)return [s10[0],...s10.slice(1).map(ss3=>this.parse(ss3))]}return s10.map(ss3=>this.parse(ss3))});if(this.debug(this.pattern,set2),this.set=set2.filter(s10=>s10.indexOf(!1)===-1),this.isWindows)for(let i10=0;i10<this.set.length;i10++){let p7=this.set[i10];p7[0]===""&&p7[1]===""&&this.globParts[i10][2]==="?"&&typeof p7[3]=="string"&&/^[a-z]:$/i.test(p7[3])&&(p7[2]="?");}this.debug(this.pattern,this.set);}preprocess(globParts){if(this.options.noglobstar)for(let i10=0;i10<globParts.length;i10++)for(let j12=0;j12<globParts[i10].length;j12++)globParts[i10][j12]==="**"&&(globParts[i10][j12]="*");let{optimizationLevel=1}=this.options;return optimizationLevel>=2?(globParts=this.firstPhasePreProcess(globParts),globParts=this.secondPhasePreProcess(globParts)):optimizationLevel>=1?globParts=this.levelOneOptimize(globParts):globParts=this.adjascentGlobstarOptimize(globParts),globParts}adjascentGlobstarOptimize(globParts){return globParts.map(parts=>{let gs2=-1;for(;(gs2=parts.indexOf("**",gs2+1))!==-1;){let i10=gs2;for(;parts[i10+1]==="**";)i10++;i10!==gs2&&parts.splice(gs2,i10-gs2);}return parts})}levelOneOptimize(globParts){return globParts.map(parts=>(parts=parts.reduce((set2,part)=>{let prev=set2[set2.length-1];return part==="**"&&prev==="**"?set2:part===".."&&prev&&prev!==".."&&prev!=="."&&prev!=="**"?(set2.pop(),set2):(set2.push(part),set2)},[]),parts.length===0?[""]:parts))}levelTwoFileOptimize(parts){Array.isArray(parts)||(parts=this.slashSplit(parts));let didSomething=!1;do{if(didSomething=!1,!this.preserveMultipleSlashes){for(let i10=1;i10<parts.length-1;i10++){let p7=parts[i10];i10===1&&p7===""&&parts[0]===""||(p7==="."||p7==="")&&(didSomething=!0,parts.splice(i10,1),i10--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd3=0;for(;(dd3=parts.indexOf("..",dd3+1))!==-1;){let p7=parts[dd3-1];p7&&p7!=="."&&p7!==".."&&p7!=="**"&&(didSomething=!0,parts.splice(dd3-1,2),dd3-=2);}}while(didSomething);return parts.length===0?[""]:parts}firstPhasePreProcess(globParts){let didSomething=!1;do{didSomething=!1;for(let parts of globParts){let gs2=-1;for(;(gs2=parts.indexOf("**",gs2+1))!==-1;){let gss=gs2;for(;parts[gss+1]==="**";)gss++;gss>gs2&&parts.splice(gs2+1,gss-gs2);let next=parts[gs2+1],p7=parts[gs2+2],p22=parts[gs2+3];if(next!==".."||!p7||p7==="."||p7===".."||!p22||p22==="."||p22==="..")continue;didSomething=!0,parts.splice(gs2,1);let other=parts.slice(0);other[gs2]="**",globParts.push(other),gs2--;}if(!this.preserveMultipleSlashes){for(let i10=1;i10<parts.length-1;i10++){let p7=parts[i10];i10===1&&p7===""&&parts[0]===""||(p7==="."||p7==="")&&(didSomething=!0,parts.splice(i10,1),i10--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd3=0;for(;(dd3=parts.indexOf("..",dd3+1))!==-1;){let p7=parts[dd3-1];if(p7&&p7!=="."&&p7!==".."&&p7!=="**"){didSomething=!0;let splin=dd3===1&&parts[dd3+1]==="**"?["."]:[];parts.splice(dd3-1,2,...splin),parts.length===0&&parts.push(""),dd3-=2;}}}}while(didSomething);return globParts}secondPhasePreProcess(globParts){for(let i10=0;i10<globParts.length-1;i10++)for(let j12=i10+1;j12<globParts.length;j12++){let matched=this.partsMatch(globParts[i10],globParts[j12],!this.preserveMultipleSlashes);if(matched){globParts[i10]=[],globParts[j12]=matched;break}}return globParts.filter(gs2=>gs2.length)}partsMatch(a5,b8,emptyGSMatch=!1){let ai5=0,bi4=0,result=[],which="";for(;ai5<a5.length&&bi4<b8.length;)if(a5[ai5]===b8[bi4])result.push(which==="b"?b8[bi4]:a5[ai5]),ai5++,bi4++;else if(emptyGSMatch&&a5[ai5]==="**"&&b8[bi4]===a5[ai5+1])result.push(a5[ai5]),ai5++;else if(emptyGSMatch&&b8[bi4]==="**"&&a5[ai5]===b8[bi4+1])result.push(b8[bi4]),bi4++;else if(a5[ai5]==="*"&&b8[bi4]&&(this.options.dot||!b8[bi4].startsWith("."))&&b8[bi4]!=="**"){if(which==="b")return !1;which="a",result.push(a5[ai5]),ai5++,bi4++;}else if(b8[bi4]==="*"&&a5[ai5]&&(this.options.dot||!a5[ai5].startsWith("."))&&a5[ai5]!=="**"){if(which==="a")return !1;which="b",result.push(b8[bi4]),ai5++,bi4++;}else return !1;return a5.length===b8.length&&result}parseNegate(){if(this.nonegate)return;let pattern=this.pattern,negate=!1,negateOffset=0;for(let i10=0;i10<pattern.length&&pattern.charAt(i10)==="!";i10++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.slice(negateOffset)),this.negate=negate;}matchOne(file,pattern,partial=!1){let options=this.options;if(this.isWindows){let fileDrive=typeof file[0]=="string"&&/^[a-z]:$/i.test(file[0]),fileUNC=!fileDrive&&file[0]===""&&file[1]===""&&file[2]==="?"&&/^[a-z]:$/i.test(file[3]),patternDrive=typeof pattern[0]=="string"&&/^[a-z]:$/i.test(pattern[0]),patternUNC=!patternDrive&&pattern[0]===""&&pattern[1]===""&&pattern[2]==="?"&&typeof pattern[3]=="string"&&/^[a-z]:$/i.test(pattern[3]),fdi=fileUNC?3:fileDrive?0:void 0,pdi=patternUNC?3:patternDrive?0:void 0;if(typeof fdi=="number"&&typeof pdi=="number"){let[fd4,pd2]=[file[fdi],pattern[pdi]];fd4.toLowerCase()===pd2.toLowerCase()&&(pattern[pdi]=fd4,pdi>fdi?pattern=pattern.slice(pdi):fdi>pdi&&(file=file.slice(fdi)));}}let{optimizationLevel=1}=this.options;optimizationLevel>=2&&(file=this.levelTwoFileOptimize(file)),this.debug("matchOne",this,{file,pattern}),this.debug("matchOne",file.length,pattern.length);for(var fi5=0,pi5=0,fl2=file.length,pl3=pattern.length;fi5<fl2&&pi5<pl3;fi5++,pi5++){this.debug("matchOne loop");var p7=pattern[pi5],f11=file[fi5];if(this.debug(pattern,p7,f11),p7===!1)return !1;if(p7===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p7,f11]);var fr6=fi5,pr5=pi5+1;if(pr5===pl3){for(this.debug("** at the end");fi5<fl2;fi5++)if(file[fi5]==="."||file[fi5]===".."||!options.dot&&file[fi5].charAt(0)===".")return !1;return !0}for(;fr6<fl2;){var swallowee=file[fr6];if(this.debug(`
|
|
2686
2686
|
globstar while`,file,fr6,pattern,pr5,swallowee),this.matchOne(file.slice(fr6),pattern.slice(pr5),partial))return this.debug("globstar found match!",fr6,fl2,swallowee),!0;if(swallowee==="."||swallowee===".."||!options.dot&&swallowee.charAt(0)==="."){this.debug("dot detected!",file,fr6,pattern,pr5);break}this.debug("globstar swallow a segment, and continue"),fr6++;}return !!(partial&&(this.debug(`
|
|
2687
2687
|
>>> no match, partial?`,file,fr6,pattern,pr5),fr6===fl2))}let hit;if(typeof p7=="string"?(hit=f11===p7,this.debug("string match",p7,f11,hit)):(hit=p7.test(f11),this.debug("pattern match",p7,f11,hit)),!hit)return !1}if(fi5===fl2&&pi5===pl3)return !0;if(fi5===fl2)return partial;if(pi5===pl3)return fi5===fl2-1&&file[fi5]==="";throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(pattern){assertValidPattern(pattern);let options=this.options;if(pattern==="**")return GLOBSTAR;if(pattern==="")return "";let m7,fastTest=null;(m7=pattern.match(starRE))?fastTest=options.dot?starTestDot:starTest:(m7=pattern.match(starDotExtRE))?fastTest=(options.nocase?options.dot?starDotExtTestNocaseDot:starDotExtTestNocase:options.dot?starDotExtTestDot:starDotExtTest)(m7[1]):(m7=pattern.match(qmarksRE))?fastTest=(options.nocase?options.dot?qmarksTestNocaseDot:qmarksTestNocase:options.dot?qmarksTestDot:qmarksTest)(m7):(m7=pattern.match(starDotStarRE))?fastTest=options.dot?starDotStarTestDot:starDotStarTest:(m7=pattern.match(dotStarRE))&&(fastTest=dotStarTest);let re7=AST.fromGlob(pattern,this.options).toMMPattern();return fastTest&&typeof re7=="object"&&Reflect.defineProperty(re7,"test",{value:fastTest}),re7}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let set2=this.set;if(!set2.length)return this.regexp=!1,this.regexp;let options=this.options,twoStar=options.noglobstar?star2:options.dot?twoStarDot:twoStarNoDot,flags=new Set(options.nocase?["i"]:[]),re7=set2.map(pattern=>{let pp4=pattern.map(p7=>{if(p7 instanceof RegExp)for(let f11 of p7.flags.split(""))flags.add(f11);return typeof p7=="string"?regExpEscape2(p7):p7===GLOBSTAR?GLOBSTAR:p7._src});return pp4.forEach((p7,i10)=>{let next=pp4[i10+1],prev=pp4[i10-1];p7!==GLOBSTAR||prev===GLOBSTAR||(prev===void 0?next!==void 0&&next!==GLOBSTAR?pp4[i10+1]="(?:\\/|"+twoStar+"\\/)?"+next:pp4[i10]=twoStar:next===void 0?pp4[i10-1]=prev+"(?:\\/|"+twoStar+")?":next!==GLOBSTAR&&(pp4[i10-1]=prev+"(?:\\/|\\/"+twoStar+"\\/)"+next,pp4[i10+1]=GLOBSTAR));}),pp4.filter(p7=>p7!==GLOBSTAR).join("/")}).join("|"),[open,close]=set2.length>1?["(?:",")"]:["",""];re7="^"+open+re7+close+"$",this.negate&&(re7="^(?!"+re7+").+$");try{this.regexp=new RegExp(re7,[...flags].join(""));}catch{this.regexp=!1;}return this.regexp}slashSplit(p7){return this.preserveMultipleSlashes?p7.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(p7)?["",...p7.split(/\/+/)]:p7.split(/\/+/)}match(f11,partial=this.partial){if(this.debug("match",f11,this.pattern),this.comment)return !1;if(this.empty)return f11==="";if(f11==="/"&&partial)return !0;let options=this.options;this.isWindows&&(f11=f11.split("\\").join("/"));let ff2=this.slashSplit(f11);this.debug(this.pattern,"split",ff2);let set2=this.set;this.debug(this.pattern,"set",set2);let filename=ff2[ff2.length-1];if(!filename)for(let i10=ff2.length-2;!filename&&i10>=0;i10--)filename=ff2[i10];for(let i10=0;i10<set2.length;i10++){let pattern=set2[i10],file=ff2;if(options.matchBase&&pattern.length===1&&(file=[filename]),this.matchOne(file,pattern,partial))return options.flipNegate?!0:!this.negate}return options.flipNegate?!1:this.negate}static defaults(def){return minimatch.defaults(def).Minimatch}};minimatch.AST=AST;minimatch.Minimatch=Minimatch;minimatch.escape=escape2;minimatch.unescape=unescape2;var perf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,warned=new Set,PROCESS=typeof process=="object"&&process?process:{},emitWarning=(msg,type,code,fn5)=>{typeof PROCESS.emitWarning=="function"?PROCESS.emitWarning(msg,type,code,fn5):console.error(`[${code}] ${type}: ${msg}`);},AC2=globalThis.AbortController,AS3=globalThis.AbortSignal;if(typeof AC2>"u"){AS3=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(_11,fn5){this._onabort.push(fn5);}},AC2=class{constructor(){warnACPolyfill();}signal=new AS3;abort(reason){if(!this.signal.aborted){this.signal.reason=reason,this.signal.aborted=!0;for(let fn5 of this.signal._onabort)fn5(reason);this.signal.onabort?.(reason);}}};let printACPolyfillWarning=PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",warnACPolyfill=()=>{printACPolyfillWarning&&(printACPolyfillWarning=!1,emitWarning("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill));};}var shouldWarn=code=>!warned.has(code),isPosInt=n10=>n10&&n10===Math.floor(n10)&&n10>0&&isFinite(n10),getUintArray=max=>isPosInt(max)?max<=Math.pow(2,8)?Uint8Array:max<=Math.pow(2,16)?Uint16Array:max<=Math.pow(2,32)?Uint32Array:max<=Number.MAX_SAFE_INTEGER?ZeroArray:null:null,ZeroArray=class extends Array{constructor(size){super(size),this.fill(0);}},Stack=class _Stack{heap;length;static#constructing=!1;static create(max){let HeapCls=getUintArray(max);if(!HeapCls)return [];_Stack.#constructing=!0;let s10=new _Stack(max,HeapCls);return _Stack.#constructing=!1,s10}constructor(max,HeapCls){if(!_Stack.#constructing)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new HeapCls(max),this.length=0;}push(n10){this.heap[this.length++]=n10;}pop(){return this.heap[--this.length]}},LRUCache=class _LRUCache{#max;#maxSize;#dispose;#disposeAfter;#fetchMethod;#memoMethod;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#size;#calculatedSize;#keyMap;#keyList;#valList;#next;#prev;#head;#tail;#free;#disposed;#sizes;#starts;#ttls;#hasDispose;#hasFetchMethod;#hasDisposeAfter;static unsafeExposeInternals(c7){return {starts:c7.#starts,ttls:c7.#ttls,sizes:c7.#sizes,keyMap:c7.#keyMap,keyList:c7.#keyList,valList:c7.#valList,next:c7.#next,prev:c7.#prev,get head(){return c7.#head},get tail(){return c7.#tail},free:c7.#free,isBackgroundFetch:p7=>c7.#isBackgroundFetch(p7),backgroundFetch:(k13,index,options,context)=>c7.#backgroundFetch(k13,index,options,context),moveToTail:index=>c7.#moveToTail(index),indexes:options=>c7.#indexes(options),rindexes:options=>c7.#rindexes(options),isStale:index=>c7.#isStale(index)}}get max(){return this.#max}get maxSize(){return this.#maxSize}get calculatedSize(){return this.#calculatedSize}get size(){return this.#size}get fetchMethod(){return this.#fetchMethod}get memoMethod(){return this.#memoMethod}get dispose(){return this.#dispose}get disposeAfter(){return this.#disposeAfter}constructor(options){let{max=0,ttl:ttl2,ttlResolution=1,ttlAutopurge,updateAgeOnGet,updateAgeOnHas,allowStale,dispose,disposeAfter,noDisposeOnSet,noUpdateTTL,maxSize=0,maxEntrySize=0,sizeCalculation,fetchMethod,memoMethod,noDeleteOnFetchRejection,noDeleteOnStaleGet,allowStaleOnFetchRejection,allowStaleOnFetchAbort,ignoreFetchAbort}=options;if(max!==0&&!isPosInt(max))throw new TypeError("max option must be a nonnegative integer");let UintArray=max?getUintArray(max):Array;if(!UintArray)throw new Error("invalid max value: "+max);if(this.#max=max,this.#maxSize=maxSize,this.maxEntrySize=maxEntrySize||this.#maxSize,this.sizeCalculation=sizeCalculation,this.sizeCalculation){if(!this.#maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(memoMethod!==void 0&&typeof memoMethod!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#memoMethod=memoMethod,fetchMethod!==void 0&&typeof fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#fetchMethod=fetchMethod,this.#hasFetchMethod=!!fetchMethod,this.#keyMap=new Map,this.#keyList=new Array(max).fill(void 0),this.#valList=new Array(max).fill(void 0),this.#next=new UintArray(max),this.#prev=new UintArray(max),this.#head=0,this.#tail=0,this.#free=Stack.create(max),this.#size=0,this.#calculatedSize=0,typeof dispose=="function"&&(this.#dispose=dispose),typeof disposeAfter=="function"?(this.#disposeAfter=disposeAfter,this.#disposed=[]):(this.#disposeAfter=void 0,this.#disposed=void 0),this.#hasDispose=!!this.#dispose,this.#hasDisposeAfter=!!this.#disposeAfter,this.noDisposeOnSet=!!noDisposeOnSet,this.noUpdateTTL=!!noUpdateTTL,this.noDeleteOnFetchRejection=!!noDeleteOnFetchRejection,this.allowStaleOnFetchRejection=!!allowStaleOnFetchRejection,this.allowStaleOnFetchAbort=!!allowStaleOnFetchAbort,this.ignoreFetchAbort=!!ignoreFetchAbort,this.maxEntrySize!==0){if(this.#maxSize!==0&&!isPosInt(this.#maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!isPosInt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#initializeSizeTracking();}if(this.allowStale=!!allowStale,this.noDeleteOnStaleGet=!!noDeleteOnStaleGet,this.updateAgeOnGet=!!updateAgeOnGet,this.updateAgeOnHas=!!updateAgeOnHas,this.ttlResolution=isPosInt(ttlResolution)||ttlResolution===0?ttlResolution:1,this.ttlAutopurge=!!ttlAutopurge,this.ttl=ttl2||0,this.ttl){if(!isPosInt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#initializeTTLTracking();}if(this.#max===0&&this.ttl===0&&this.#maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#max&&!this.#maxSize){let code="LRU_CACHE_UNBOUNDED";shouldWarn(code)&&(warned.add(code),emitWarning("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",code,_LRUCache));}}getRemainingTTL(key){return this.#keyMap.has(key)?1/0:0}#initializeTTLTracking(){let ttls=new ZeroArray(this.#max),starts=new ZeroArray(this.#max);this.#ttls=ttls,this.#starts=starts,this.#setItemTTL=(index,ttl2,start=perf.now())=>{if(starts[index]=ttl2!==0?start:0,ttls[index]=ttl2,ttl2!==0&&this.ttlAutopurge){let t20=setTimeout(()=>{this.#isStale(index)&&this.#delete(this.#keyList[index],"expire");},ttl2+1);t20.unref&&t20.unref();}},this.#updateItemAge=index=>{starts[index]=ttls[index]!==0?perf.now():0;},this.#statusTTL=(status,index)=>{if(ttls[index]){let ttl2=ttls[index],start=starts[index];if(!ttl2||!start)return;status.ttl=ttl2,status.start=start,status.now=cachedNow||getNow();let age=status.now-start;status.remainingTTL=ttl2-age;}};let cachedNow=0,getNow=()=>{let n10=perf.now();if(this.ttlResolution>0){cachedNow=n10;let t20=setTimeout(()=>cachedNow=0,this.ttlResolution);t20.unref&&t20.unref();}return n10};this.getRemainingTTL=key=>{let index=this.#keyMap.get(key);if(index===void 0)return 0;let ttl2=ttls[index],start=starts[index];if(!ttl2||!start)return 1/0;let age=(cachedNow||getNow())-start;return ttl2-age},this.#isStale=index=>{let s10=starts[index],t20=ttls[index];return !!t20&&!!s10&&(cachedNow||getNow())-s10>t20};}#updateItemAge=()=>{};#statusTTL=()=>{};#setItemTTL=()=>{};#isStale=()=>!1;#initializeSizeTracking(){let sizes=new ZeroArray(this.#max);this.#calculatedSize=0,this.#sizes=sizes,this.#removeItemSize=index=>{this.#calculatedSize-=sizes[index],sizes[index]=0;},this.#requireSize=(k13,v12,size,sizeCalculation)=>{if(this.#isBackgroundFetch(v12))return 0;if(!isPosInt(size))if(sizeCalculation){if(typeof sizeCalculation!="function")throw new TypeError("sizeCalculation must be a function");if(size=sizeCalculation(v12,k13),!isPosInt(size))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return size},this.#addItemSize=(index,size,status)=>{if(sizes[index]=size,this.#maxSize){let maxSize=this.#maxSize-sizes[index];for(;this.#calculatedSize>maxSize;)this.#evict(!0);}this.#calculatedSize+=sizes[index],status&&(status.entrySize=size,status.totalCalculatedSize=this.#calculatedSize);};}#removeItemSize=_i3=>{};#addItemSize=(_i3,_s3,_st)=>{};#requireSize=(_k,_v2,size,sizeCalculation)=>{if(size||sizeCalculation)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#indexes({allowStale=this.allowStale}={}){if(this.#size)for(let i10=this.#tail;!(!this.#isValidIndex(i10)||((allowStale||!this.#isStale(i10))&&(yield i10),i10===this.#head));)i10=this.#prev[i10];}*#rindexes({allowStale=this.allowStale}={}){if(this.#size)for(let i10=this.#head;!(!this.#isValidIndex(i10)||((allowStale||!this.#isStale(i10))&&(yield i10),i10===this.#tail));)i10=this.#next[i10];}#isValidIndex(index){return index!==void 0&&this.#keyMap.get(this.#keyList[index])===index}*entries(){for(let i10 of this.#indexes())this.#valList[i10]!==void 0&&this.#keyList[i10]!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield [this.#keyList[i10],this.#valList[i10]]);}*rentries(){for(let i10 of this.#rindexes())this.#valList[i10]!==void 0&&this.#keyList[i10]!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield [this.#keyList[i10],this.#valList[i10]]);}*keys(){for(let i10 of this.#indexes()){let k13=this.#keyList[i10];k13!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield k13);}}*rkeys(){for(let i10 of this.#rindexes()){let k13=this.#keyList[i10];k13!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield k13);}}*values(){for(let i10 of this.#indexes())this.#valList[i10]!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield this.#valList[i10]);}*rvalues(){for(let i10 of this.#rindexes())this.#valList[i10]!==void 0&&!this.#isBackgroundFetch(this.#valList[i10])&&(yield this.#valList[i10]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(fn5,getOptions={}){for(let i10 of this.#indexes()){let v12=this.#valList[i10],value2=this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12;if(value2!==void 0&&fn5(value2,this.#keyList[i10],this))return this.get(this.#keyList[i10],getOptions)}}forEach(fn5,thisp=this){for(let i10 of this.#indexes()){let v12=this.#valList[i10],value2=this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12;value2!==void 0&&fn5.call(thisp,value2,this.#keyList[i10],this);}}rforEach(fn5,thisp=this){for(let i10 of this.#rindexes()){let v12=this.#valList[i10],value2=this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12;value2!==void 0&&fn5.call(thisp,value2,this.#keyList[i10],this);}}purgeStale(){let deleted=!1;for(let i10 of this.#rindexes({allowStale:!0}))this.#isStale(i10)&&(this.#delete(this.#keyList[i10],"expire"),deleted=!0);return deleted}info(key){let i10=this.#keyMap.get(key);if(i10===void 0)return;let v12=this.#valList[i10],value2=this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12;if(value2===void 0)return;let entry={value:value2};if(this.#ttls&&this.#starts){let ttl2=this.#ttls[i10],start=this.#starts[i10];if(ttl2&&start){let remain=ttl2-(perf.now()-start);entry.ttl=remain,entry.start=Date.now();}}return this.#sizes&&(entry.size=this.#sizes[i10]),entry}dump(){let arr=[];for(let i10 of this.#indexes({allowStale:!0})){let key=this.#keyList[i10],v12=this.#valList[i10],value2=this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12;if(value2===void 0||key===void 0)continue;let entry={value:value2};if(this.#ttls&&this.#starts){entry.ttl=this.#ttls[i10];let age=perf.now()-this.#starts[i10];entry.start=Math.floor(Date.now()-age);}this.#sizes&&(entry.size=this.#sizes[i10]),arr.unshift([key,entry]);}return arr}load(arr){this.clear();for(let[key,entry]of arr){if(entry.start){let age=Date.now()-entry.start;entry.start=perf.now()-age;}this.set(key,entry.value,entry);}}set(k13,v12,setOptions={}){if(v12===void 0)return this.delete(k13),this;let{ttl:ttl2=this.ttl,start,noDisposeOnSet=this.noDisposeOnSet,sizeCalculation=this.sizeCalculation,status}=setOptions,{noUpdateTTL=this.noUpdateTTL}=setOptions,size=this.#requireSize(k13,v12,setOptions.size||0,sizeCalculation);if(this.maxEntrySize&&size>this.maxEntrySize)return status&&(status.set="miss",status.maxEntrySizeExceeded=!0),this.#delete(k13,"set"),this;let index=this.#size===0?void 0:this.#keyMap.get(k13);if(index===void 0)index=this.#size===0?this.#tail:this.#free.length!==0?this.#free.pop():this.#size===this.#max?this.#evict(!1):this.#size,this.#keyList[index]=k13,this.#valList[index]=v12,this.#keyMap.set(k13,index),this.#next[this.#tail]=index,this.#prev[index]=this.#tail,this.#tail=index,this.#size++,this.#addItemSize(index,size,status),status&&(status.set="add"),noUpdateTTL=!1;else {this.#moveToTail(index);let oldVal=this.#valList[index];if(v12!==oldVal){if(this.#hasFetchMethod&&this.#isBackgroundFetch(oldVal)){oldVal.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:s10}=oldVal;s10!==void 0&&!noDisposeOnSet&&(this.#hasDispose&&this.#dispose?.(s10,k13,"set"),this.#hasDisposeAfter&&this.#disposed?.push([s10,k13,"set"]));}else noDisposeOnSet||(this.#hasDispose&&this.#dispose?.(oldVal,k13,"set"),this.#hasDisposeAfter&&this.#disposed?.push([oldVal,k13,"set"]));if(this.#removeItemSize(index),this.#addItemSize(index,size,status),this.#valList[index]=v12,status){status.set="replace";let oldValue=oldVal&&this.#isBackgroundFetch(oldVal)?oldVal.__staleWhileFetching:oldVal;oldValue!==void 0&&(status.oldValue=oldValue);}}else status&&(status.set="update");}if(ttl2!==0&&!this.#ttls&&this.#initializeTTLTracking(),this.#ttls&&(noUpdateTTL||this.#setItemTTL(index,ttl2,start),status&&this.#statusTTL(status,index)),!noDisposeOnSet&&this.#hasDisposeAfter&&this.#disposed){let dt4=this.#disposed,task;for(;task=dt4?.shift();)this.#disposeAfter?.(...task);}return this}pop(){try{for(;this.#size;){let val=this.#valList[this.#head];if(this.#evict(!0),this.#isBackgroundFetch(val)){if(val.__staleWhileFetching)return val.__staleWhileFetching}else if(val!==void 0)return val}}finally{if(this.#hasDisposeAfter&&this.#disposed){let dt4=this.#disposed,task;for(;task=dt4?.shift();)this.#disposeAfter?.(...task);}}}#evict(free){let head=this.#head,k13=this.#keyList[head],v12=this.#valList[head];return this.#hasFetchMethod&&this.#isBackgroundFetch(v12)?v12.__abortController.abort(new Error("evicted")):(this.#hasDispose||this.#hasDisposeAfter)&&(this.#hasDispose&&this.#dispose?.(v12,k13,"evict"),this.#hasDisposeAfter&&this.#disposed?.push([v12,k13,"evict"])),this.#removeItemSize(head),free&&(this.#keyList[head]=void 0,this.#valList[head]=void 0,this.#free.push(head)),this.#size===1?(this.#head=this.#tail=0,this.#free.length=0):this.#head=this.#next[head],this.#keyMap.delete(k13),this.#size--,head}has(k13,hasOptions={}){let{updateAgeOnHas=this.updateAgeOnHas,status}=hasOptions,index=this.#keyMap.get(k13);if(index!==void 0){let v12=this.#valList[index];if(this.#isBackgroundFetch(v12)&&v12.__staleWhileFetching===void 0)return !1;if(this.#isStale(index))status&&(status.has="stale",this.#statusTTL(status,index));else return updateAgeOnHas&&this.#updateItemAge(index),status&&(status.has="hit",this.#statusTTL(status,index)),!0}else status&&(status.has="miss");return !1}peek(k13,peekOptions={}){let{allowStale=this.allowStale}=peekOptions,index=this.#keyMap.get(k13);if(index===void 0||!allowStale&&this.#isStale(index))return;let v12=this.#valList[index];return this.#isBackgroundFetch(v12)?v12.__staleWhileFetching:v12}#backgroundFetch(k13,index,options,context){let v12=index===void 0?void 0:this.#valList[index];if(this.#isBackgroundFetch(v12))return v12;let ac=new AC2,{signal}=options;signal?.addEventListener("abort",()=>ac.abort(signal.reason),{signal:ac.signal});let fetchOpts={signal:ac.signal,options,context},cb3=(v13,updateCache=!1)=>{let{aborted}=ac.signal,ignoreAbort=options.ignoreFetchAbort&&v13!==void 0;if(options.status&&(aborted&&!updateCache?(options.status.fetchAborted=!0,options.status.fetchError=ac.signal.reason,ignoreAbort&&(options.status.fetchAbortIgnored=!0)):options.status.fetchResolved=!0),aborted&&!ignoreAbort&&!updateCache)return fetchFail(ac.signal.reason);let bf4=p7;return this.#valList[index]===p7&&(v13===void 0?bf4.__staleWhileFetching?this.#valList[index]=bf4.__staleWhileFetching:this.#delete(k13,"fetch"):(options.status&&(options.status.fetchUpdated=!0),this.set(k13,v13,fetchOpts.options))),v13},eb3=er7=>(options.status&&(options.status.fetchRejected=!0,options.status.fetchError=er7),fetchFail(er7)),fetchFail=er7=>{let{aborted}=ac.signal,allowStaleAborted=aborted&&options.allowStaleOnFetchAbort,allowStale=allowStaleAborted||options.allowStaleOnFetchRejection,noDelete=allowStale||options.noDeleteOnFetchRejection,bf4=p7;if(this.#valList[index]===p7&&(!noDelete||bf4.__staleWhileFetching===void 0?this.#delete(k13,"fetch"):allowStaleAborted||(this.#valList[index]=bf4.__staleWhileFetching)),allowStale)return options.status&&bf4.__staleWhileFetching!==void 0&&(options.status.returnedStale=!0),bf4.__staleWhileFetching;if(bf4.__returned===bf4)throw er7},pcall=(res,rej)=>{let fmp=this.#fetchMethod?.(k13,v12,fetchOpts);fmp&&fmp instanceof Promise&&fmp.then(v13=>res(v13===void 0?void 0:v13),rej),ac.signal.addEventListener("abort",()=>{(!options.ignoreFetchAbort||options.allowStaleOnFetchAbort)&&(res(void 0),options.allowStaleOnFetchAbort&&(res=v13=>cb3(v13,!0)));});};options.status&&(options.status.fetchDispatched=!0);let p7=new Promise(pcall).then(cb3,eb3),bf3=Object.assign(p7,{__abortController:ac,__staleWhileFetching:v12,__returned:void 0});return index===void 0?(this.set(k13,bf3,{...fetchOpts.options,status:void 0}),index=this.#keyMap.get(k13)):this.#valList[index]=bf3,bf3}#isBackgroundFetch(p7){if(!this.#hasFetchMethod)return !1;let b8=p7;return !!b8&&b8 instanceof Promise&&b8.hasOwnProperty("__staleWhileFetching")&&b8.__abortController instanceof AC2}async fetch(k13,fetchOptions={}){let{allowStale=this.allowStale,updateAgeOnGet=this.updateAgeOnGet,noDeleteOnStaleGet=this.noDeleteOnStaleGet,ttl:ttl2=this.ttl,noDisposeOnSet=this.noDisposeOnSet,size=0,sizeCalculation=this.sizeCalculation,noUpdateTTL=this.noUpdateTTL,noDeleteOnFetchRejection=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection=this.allowStaleOnFetchRejection,ignoreFetchAbort=this.ignoreFetchAbort,allowStaleOnFetchAbort=this.allowStaleOnFetchAbort,context,forceRefresh=!1,status,signal}=fetchOptions;if(!this.#hasFetchMethod)return status&&(status.fetch="get"),this.get(k13,{allowStale,updateAgeOnGet,noDeleteOnStaleGet,status});let options={allowStale,updateAgeOnGet,noDeleteOnStaleGet,ttl:ttl2,noDisposeOnSet,size,sizeCalculation,noUpdateTTL,noDeleteOnFetchRejection,allowStaleOnFetchRejection,allowStaleOnFetchAbort,ignoreFetchAbort,status,signal},index=this.#keyMap.get(k13);if(index===void 0){status&&(status.fetch="miss");let p7=this.#backgroundFetch(k13,index,options,context);return p7.__returned=p7}else {let v12=this.#valList[index];if(this.#isBackgroundFetch(v12)){let stale=allowStale&&v12.__staleWhileFetching!==void 0;return status&&(status.fetch="inflight",stale&&(status.returnedStale=!0)),stale?v12.__staleWhileFetching:v12.__returned=v12}let isStale=this.#isStale(index);if(!forceRefresh&&!isStale)return status&&(status.fetch="hit"),this.#moveToTail(index),updateAgeOnGet&&this.#updateItemAge(index),status&&this.#statusTTL(status,index),v12;let p7=this.#backgroundFetch(k13,index,options,context),staleVal=p7.__staleWhileFetching!==void 0&&allowStale;return status&&(status.fetch=isStale?"stale":"refresh",staleVal&&isStale&&(status.returnedStale=!0)),staleVal?p7.__staleWhileFetching:p7.__returned=p7}}async forceFetch(k13,fetchOptions={}){let v12=await this.fetch(k13,fetchOptions);if(v12===void 0)throw new Error("fetch() returned undefined");return v12}memo(k13,memoOptions={}){let memoMethod=this.#memoMethod;if(!memoMethod)throw new Error("no memoMethod provided to constructor");let{context,forceRefresh,...options}=memoOptions,v12=this.get(k13,options);if(!forceRefresh&&v12!==void 0)return v12;let vv3=memoMethod(k13,v12,{options,context});return this.set(k13,vv3,options),vv3}get(k13,getOptions={}){let{allowStale=this.allowStale,updateAgeOnGet=this.updateAgeOnGet,noDeleteOnStaleGet=this.noDeleteOnStaleGet,status}=getOptions,index=this.#keyMap.get(k13);if(index!==void 0){let value2=this.#valList[index],fetching=this.#isBackgroundFetch(value2);return status&&this.#statusTTL(status,index),this.#isStale(index)?(status&&(status.get="stale"),fetching?(status&&allowStale&&value2.__staleWhileFetching!==void 0&&(status.returnedStale=!0),allowStale?value2.__staleWhileFetching:void 0):(noDeleteOnStaleGet||this.#delete(k13,"expire"),status&&allowStale&&(status.returnedStale=!0),allowStale?value2:void 0)):(status&&(status.get="hit"),fetching?value2.__staleWhileFetching:(this.#moveToTail(index),updateAgeOnGet&&this.#updateItemAge(index),value2))}else status&&(status.get="miss");}#connect(p7,n10){this.#prev[n10]=p7,this.#next[p7]=n10;}#moveToTail(index){index!==this.#tail&&(index===this.#head?this.#head=this.#next[index]:this.#connect(this.#prev[index],this.#next[index]),this.#connect(this.#tail,index),this.#tail=index);}delete(k13){return this.#delete(k13,"delete")}#delete(k13,reason){let deleted=!1;if(this.#size!==0){let index=this.#keyMap.get(k13);if(index!==void 0)if(deleted=!0,this.#size===1)this.#clear(reason);else {this.#removeItemSize(index);let v12=this.#valList[index];if(this.#isBackgroundFetch(v12)?v12.__abortController.abort(new Error("deleted")):(this.#hasDispose||this.#hasDisposeAfter)&&(this.#hasDispose&&this.#dispose?.(v12,k13,reason),this.#hasDisposeAfter&&this.#disposed?.push([v12,k13,reason])),this.#keyMap.delete(k13),this.#keyList[index]=void 0,this.#valList[index]=void 0,index===this.#tail)this.#tail=this.#prev[index];else if(index===this.#head)this.#head=this.#next[index];else {let pi5=this.#prev[index];this.#next[pi5]=this.#next[index];let ni8=this.#next[index];this.#prev[ni8]=this.#prev[index];}this.#size--,this.#free.push(index);}}if(this.#hasDisposeAfter&&this.#disposed?.length){let dt4=this.#disposed,task;for(;task=dt4?.shift();)this.#disposeAfter?.(...task);}return deleted}clear(){return this.#clear("delete")}#clear(reason){for(let index of this.#rindexes({allowStale:!0})){let v12=this.#valList[index];if(this.#isBackgroundFetch(v12))v12.__abortController.abort(new Error("deleted"));else {let k13=this.#keyList[index];this.#hasDispose&&this.#dispose?.(v12,k13,reason),this.#hasDisposeAfter&&this.#disposed?.push([v12,k13,reason]);}}if(this.#keyMap.clear(),this.#valList.fill(void 0),this.#keyList.fill(void 0),this.#ttls&&this.#starts&&(this.#ttls.fill(0),this.#starts.fill(0)),this.#sizes&&this.#sizes.fill(0),this.#head=0,this.#tail=0,this.#free.length=0,this.#calculatedSize=0,this.#size=0,this.#hasDisposeAfter&&this.#disposed){let dt4=this.#disposed,task;for(;task=dt4?.shift();)this.#disposeAfter?.(...task);}}};var proc=typeof process=="object"&&process?process:{stdout:null,stderr:null},isStream2=s10=>!!s10&&typeof s10=="object"&&(s10 instanceof Minipass||s10 instanceof $l2||isReadable(s10)||isWritable(s10)),isReadable=s10=>!!s10&&typeof s10=="object"&&s10 instanceof EventEmitter&&typeof s10.pipe=="function"&&s10.pipe!==$l2.Writable.prototype.pipe,isWritable=s10=>!!s10&&typeof s10=="object"&&s10 instanceof EventEmitter&&typeof s10.write=="function"&&typeof s10.end=="function",EOF=Symbol("EOF"),MAYBE_EMIT_END=Symbol("maybeEmitEnd"),EMITTED_END=Symbol("emittedEnd"),EMITTING_END=Symbol("emittingEnd"),EMITTED_ERROR=Symbol("emittedError"),CLOSED=Symbol("closed"),READ=Symbol("read"),FLUSH=Symbol("flush"),FLUSHCHUNK=Symbol("flushChunk"),ENCODING=Symbol("encoding"),DECODER=Symbol("decoder"),FLOWING=Symbol("flowing"),PAUSED=Symbol("paused"),RESUME=Symbol("resume"),BUFFER=Symbol("buffer"),PIPES=Symbol("pipes"),BUFFERLENGTH=Symbol("bufferLength"),BUFFERPUSH=Symbol("bufferPush"),BUFFERSHIFT=Symbol("bufferShift"),OBJECTMODE=Symbol("objectMode"),DESTROYED=Symbol("destroyed"),ERROR=Symbol("error"),EMITDATA=Symbol("emitData"),EMITEND=Symbol("emitEnd"),EMITEND2=Symbol("emitEnd2"),ASYNC=Symbol("async"),ABORT=Symbol("abort"),ABORTED=Symbol("aborted"),SIGNAL=Symbol("signal"),DATALISTENERS=Symbol("dataListeners"),DISCARDED=Symbol("discarded"),defer=fn5=>Promise.resolve().then(fn5),nodefer=fn5=>fn5(),isEndish=ev3=>ev3==="end"||ev3==="finish"||ev3==="prefinish",isArrayBufferLike=b8=>b8 instanceof ArrayBuffer||!!b8&&typeof b8=="object"&&b8.constructor&&b8.constructor.name==="ArrayBuffer"&&b8.byteLength>=0,isArrayBufferView=b8=>!Buffer.isBuffer(b8)&&ArrayBuffer.isView(b8),Pipe=class{src;dest;opts;ondrain;constructor(src,dest,opts){this.src=src,this.dest=dest,this.opts=opts,this.ondrain=()=>src[RESUME](),this.dest.on("drain",this.ondrain);}unpipe(){this.dest.removeListener("drain",this.ondrain);}proxyErrors(_er){}end(){this.unpipe(),this.opts.end&&this.dest.end();}},PipeProxyErrors=class extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe();}constructor(src,dest,opts){super(src,dest,opts),this.proxyErrors=er7=>dest.emit("error",er7),src.on("error",this.proxyErrors);}},isObjectModeOptions=o10=>!!o10.objectMode,isEncodingOptions=o10=>!o10.objectMode&&!!o10.encoding&&o10.encoding!=="buffer",Minipass=class extends EventEmitter{[FLOWING]=!1;[PAUSED]=!1;[PIPES]=[];[BUFFER]=[];[OBJECTMODE];[ENCODING];[ASYNC];[DECODER];[EOF]=!1;[EMITTED_END]=!1;[EMITTING_END]=!1;[CLOSED]=!1;[EMITTED_ERROR]=null;[BUFFERLENGTH]=0;[DESTROYED]=!1;[SIGNAL];[ABORTED]=!1;[DATALISTENERS]=0;[DISCARDED]=!1;writable=!0;readable=!0;constructor(...args){let options=args[0]||{};if(super(),options.objectMode&&typeof options.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");isObjectModeOptions(options)?(this[OBJECTMODE]=!0,this[ENCODING]=null):isEncodingOptions(options)?(this[ENCODING]=options.encoding,this[OBJECTMODE]=!1):(this[OBJECTMODE]=!1,this[ENCODING]=null),this[ASYNC]=!!options.async,this[DECODER]=this[ENCODING]?new StringDecoder(this[ENCODING]):null,options&&options.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[BUFFER]}),options&&options.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[PIPES]});let{signal}=options;signal&&(this[SIGNAL]=signal,signal.aborted?this[ABORT]():signal.addEventListener("abort",()=>this[ABORT]()));}get bufferLength(){return this[BUFFERLENGTH]}get encoding(){return this[ENCODING]}set encoding(_enc){throw new Error("Encoding must be set at instantiation time")}setEncoding(_enc){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[OBJECTMODE]}set objectMode(_om){throw new Error("objectMode must be set at instantiation time")}get async(){return this[ASYNC]}set async(a5){this[ASYNC]=this[ASYNC]||!!a5;}[ABORT](){this[ABORTED]=!0,this.emit("abort",this[SIGNAL]?.reason),this.destroy(this[SIGNAL]?.reason);}get aborted(){return this[ABORTED]}set aborted(_11){}write(chunk,encoding,cb3){if(this[ABORTED])return !1;if(this[EOF])throw new Error("write after end");if(this[DESTROYED])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof encoding=="function"&&(cb3=encoding,encoding="utf8"),encoding||(encoding="utf8");let fn5=this[ASYNC]?defer:nodefer;if(!this[OBJECTMODE]&&!Buffer.isBuffer(chunk)){if(isArrayBufferView(chunk))chunk=Buffer.from(chunk.buffer,chunk.byteOffset,chunk.byteLength);else if(isArrayBufferLike(chunk))chunk=Buffer.from(chunk);else if(typeof chunk!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[OBJECTMODE]?(this[FLOWING]&&this[BUFFERLENGTH]!==0&&this[FLUSH](!0),this[FLOWING]?this.emit("data",chunk):this[BUFFERPUSH](chunk),this[BUFFERLENGTH]!==0&&this.emit("readable"),cb3&&fn5(cb3),this[FLOWING]):chunk.length?(typeof chunk=="string"&&!(encoding===this[ENCODING]&&!this[DECODER]?.lastNeed)&&(chunk=Buffer.from(chunk,encoding)),Buffer.isBuffer(chunk)&&this[ENCODING]&&(chunk=this[DECODER].write(chunk)),this[FLOWING]&&this[BUFFERLENGTH]!==0&&this[FLUSH](!0),this[FLOWING]?this.emit("data",chunk):this[BUFFERPUSH](chunk),this[BUFFERLENGTH]!==0&&this.emit("readable"),cb3&&fn5(cb3),this[FLOWING]):(this[BUFFERLENGTH]!==0&&this.emit("readable"),cb3&&fn5(cb3),this[FLOWING])}read(n10){if(this[DESTROYED])return null;if(this[DISCARDED]=!1,this[BUFFERLENGTH]===0||n10===0||n10&&n10>this[BUFFERLENGTH])return this[MAYBE_EMIT_END](),null;this[OBJECTMODE]&&(n10=null),this[BUFFER].length>1&&!this[OBJECTMODE]&&(this[BUFFER]=[this[ENCODING]?this[BUFFER].join(""):Buffer.concat(this[BUFFER],this[BUFFERLENGTH])]);let ret=this[READ](n10||null,this[BUFFER][0]);return this[MAYBE_EMIT_END](),ret}[READ](n10,chunk){if(this[OBJECTMODE])this[BUFFERSHIFT]();else {let c7=chunk;n10===c7.length||n10===null?this[BUFFERSHIFT]():typeof c7=="string"?(this[BUFFER][0]=c7.slice(n10),chunk=c7.slice(0,n10),this[BUFFERLENGTH]-=n10):(this[BUFFER][0]=c7.subarray(n10),chunk=c7.subarray(0,n10),this[BUFFERLENGTH]-=n10);}return this.emit("data",chunk),!this[BUFFER].length&&!this[EOF]&&this.emit("drain"),chunk}end(chunk,encoding,cb3){return typeof chunk=="function"&&(cb3=chunk,chunk=void 0),typeof encoding=="function"&&(cb3=encoding,encoding="utf8"),chunk!==void 0&&this.write(chunk,encoding),cb3&&this.once("end",cb3),this[EOF]=!0,this.writable=!1,(this[FLOWING]||!this[PAUSED])&&this[MAYBE_EMIT_END](),this}[RESUME](){this[DESTROYED]||(!this[DATALISTENERS]&&!this[PIPES].length&&(this[DISCARDED]=!0),this[PAUSED]=!1,this[FLOWING]=!0,this.emit("resume"),this[BUFFER].length?this[FLUSH]():this[EOF]?this[MAYBE_EMIT_END]():this.emit("drain"));}resume(){return this[RESUME]()}pause(){this[FLOWING]=!1,this[PAUSED]=!0,this[DISCARDED]=!1;}get destroyed(){return this[DESTROYED]}get flowing(){return this[FLOWING]}get paused(){return this[PAUSED]}[BUFFERPUSH](chunk){this[OBJECTMODE]?this[BUFFERLENGTH]+=1:this[BUFFERLENGTH]+=chunk.length,this[BUFFER].push(chunk);}[BUFFERSHIFT](){return this[OBJECTMODE]?this[BUFFERLENGTH]-=1:this[BUFFERLENGTH]-=this[BUFFER][0].length,this[BUFFER].shift()}[FLUSH](noDrain=!1){do;while(this[FLUSHCHUNK](this[BUFFERSHIFT]())&&this[BUFFER].length);!noDrain&&!this[BUFFER].length&&!this[EOF]&&this.emit("drain");}[FLUSHCHUNK](chunk){return this.emit("data",chunk),this[FLOWING]}pipe(dest,opts){if(this[DESTROYED])return dest;this[DISCARDED]=!1;let ended=this[EMITTED_END];return opts=opts||{},dest===proc.stdout||dest===proc.stderr?opts.end=!1:opts.end=opts.end!==!1,opts.proxyErrors=!!opts.proxyErrors,ended?opts.end&&dest.end():(this[PIPES].push(opts.proxyErrors?new PipeProxyErrors(this,dest,opts):new Pipe(this,dest,opts)),this[ASYNC]?defer(()=>this[RESUME]()):this[RESUME]()),dest}unpipe(dest){let p7=this[PIPES].find(p8=>p8.dest===dest);p7&&(this[PIPES].length===1?(this[FLOWING]&&this[DATALISTENERS]===0&&(this[FLOWING]=!1),this[PIPES]=[]):this[PIPES].splice(this[PIPES].indexOf(p7),1),p7.unpipe());}addListener(ev3,handler){return this.on(ev3,handler)}on(ev3,handler){let ret=super.on(ev3,handler);if(ev3==="data")this[DISCARDED]=!1,this[DATALISTENERS]++,!this[PIPES].length&&!this[FLOWING]&&this[RESUME]();else if(ev3==="readable"&&this[BUFFERLENGTH]!==0)super.emit("readable");else if(isEndish(ev3)&&this[EMITTED_END])super.emit(ev3),this.removeAllListeners(ev3);else if(ev3==="error"&&this[EMITTED_ERROR]){let h8=handler;this[ASYNC]?defer(()=>h8.call(this,this[EMITTED_ERROR])):h8.call(this,this[EMITTED_ERROR]);}return ret}removeListener(ev3,handler){return this.off(ev3,handler)}off(ev3,handler){let ret=super.off(ev3,handler);return ev3==="data"&&(this[DATALISTENERS]=this.listeners("data").length,this[DATALISTENERS]===0&&!this[DISCARDED]&&!this[PIPES].length&&(this[FLOWING]=!1)),ret}removeAllListeners(ev3){let ret=super.removeAllListeners(ev3);return (ev3==="data"||ev3===void 0)&&(this[DATALISTENERS]=0,!this[DISCARDED]&&!this[PIPES].length&&(this[FLOWING]=!1)),ret}get emittedEnd(){return this[EMITTED_END]}[MAYBE_EMIT_END](){!this[EMITTING_END]&&!this[EMITTED_END]&&!this[DESTROYED]&&this[BUFFER].length===0&&this[EOF]&&(this[EMITTING_END]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[CLOSED]&&this.emit("close"),this[EMITTING_END]=!1);}emit(ev3,...args){let data=args[0];if(ev3!=="error"&&ev3!=="close"&&ev3!==DESTROYED&&this[DESTROYED])return !1;if(ev3==="data")return !this[OBJECTMODE]&&!data?!1:this[ASYNC]?(defer(()=>this[EMITDATA](data)),!0):this[EMITDATA](data);if(ev3==="end")return this[EMITEND]();if(ev3==="close"){if(this[CLOSED]=!0,!this[EMITTED_END]&&!this[DESTROYED])return !1;let ret2=super.emit("close");return this.removeAllListeners("close"),ret2}else if(ev3==="error"){this[EMITTED_ERROR]=data,super.emit(ERROR,data);let ret2=!this[SIGNAL]||this.listeners("error").length?super.emit("error",data):!1;return this[MAYBE_EMIT_END](),ret2}else if(ev3==="resume"){let ret2=super.emit("resume");return this[MAYBE_EMIT_END](),ret2}else if(ev3==="finish"||ev3==="prefinish"){let ret2=super.emit(ev3);return this.removeAllListeners(ev3),ret2}let ret=super.emit(ev3,...args);return this[MAYBE_EMIT_END](),ret}[EMITDATA](data){for(let p7 of this[PIPES])p7.dest.write(data)===!1&&this.pause();let ret=this[DISCARDED]?!1:super.emit("data",data);return this[MAYBE_EMIT_END](),ret}[EMITEND](){return this[EMITTED_END]?!1:(this[EMITTED_END]=!0,this.readable=!1,this[ASYNC]?(defer(()=>this[EMITEND2]()),!0):this[EMITEND2]())}[EMITEND2](){if(this[DECODER]){let data=this[DECODER].end();if(data){for(let p7 of this[PIPES])p7.dest.write(data);this[DISCARDED]||super.emit("data",data);}}for(let p7 of this[PIPES])p7.end();let ret=super.emit("end");return this.removeAllListeners("end"),ret}async collect(){let buf=Object.assign([],{dataLength:0});this[OBJECTMODE]||(buf.dataLength=0);let p7=this.promise();return this.on("data",c7=>{buf.push(c7),this[OBJECTMODE]||(buf.dataLength+=c7.length);}),await p7,buf}async concat(){if(this[OBJECTMODE])throw new Error("cannot concat in objectMode");let buf=await this.collect();return this[ENCODING]?buf.join(""):Buffer.concat(buf,buf.dataLength)}async promise(){return new Promise((resolve9,reject)=>{this.on(DESTROYED,()=>reject(new Error("stream destroyed"))),this.on("error",er7=>reject(er7)),this.on("end",()=>resolve9());})}[Symbol.asyncIterator](){this[DISCARDED]=!1;let stopped=!1,stop=async()=>(this.pause(),stopped=!0,{value:void 0,done:!0});return {next:()=>{if(stopped)return stop();let res=this.read();if(res!==null)return Promise.resolve({done:!1,value:res});if(this[EOF])return stop();let resolve9,reject,onerr=er7=>{this.off("data",ondata),this.off("end",onend),this.off(DESTROYED,ondestroy),stop(),reject(er7);},ondata=value2=>{this.off("error",onerr),this.off("end",onend),this.off(DESTROYED,ondestroy),this.pause(),resolve9({value:value2,done:!!this[EOF]});},onend=()=>{this.off("error",onerr),this.off("data",ondata),this.off(DESTROYED,ondestroy),stop(),resolve9({done:!0,value:void 0});},ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise((res2,rej)=>{reject=rej,resolve9=res2,this.once(DESTROYED,ondestroy),this.once("error",onerr),this.once("end",onend),this.once("data",ondata);})},throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[DISCARDED]=!1;let stopped=!1,stop=()=>(this.pause(),this.off(ERROR,stop),this.off(DESTROYED,stop),this.off("end",stop),stopped=!0,{done:!0,value:void 0}),next=()=>{if(stopped)return stop();let value2=this.read();return value2===null?stop():{done:!1,value:value2}};return this.once("end",stop),this.once(ERROR,stop),this.once(DESTROYED,stop),{next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(er7){if(this[DESTROYED])return er7?this.emit("error",er7):this.emit(DESTROYED),this;this[DESTROYED]=!0,this[DISCARDED]=!0,this[BUFFER].length=0,this[BUFFERLENGTH]=0;let wc2=this;return typeof wc2.close=="function"&&!this[CLOSED]&&wc2.close(),er7?this.emit("error",er7):this.emit(DESTROYED),this}static get isStream(){return isStream2}};var realpathSync=realpathSync$1.native,defaultFS={lstatSync,readdir:readdir$1,readdirSync: readdirSync$1,readlinkSync,realpathSync,promises:{lstat,readdir,readlink,realpath}},fsFromOption=fsOption=>!fsOption||fsOption===defaultFS||fsOption===tn6?defaultFS:{...defaultFS,...fsOption,promises:{...defaultFS.promises,...fsOption.promises||{}}},uncDriveRegexp=/^\\\\\?\\([a-z]:)\\?$/i,uncToDrive=rootPath=>rootPath.replace(/\//g,"\\").replace(uncDriveRegexp,"$1\\"),eitherSep=/[\\\/]/,UNKNOWN=0,IFIFO=1,IFCHR=2,IFDIR=4,IFBLK=6,IFREG=8,IFLNK=10,IFSOCK=12,IFMT=15,IFMT_UNKNOWN=~IFMT,READDIR_CALLED=16,LSTAT_CALLED=32,ENOTDIR=64,ENOENT=128,ENOREADLINK=256,ENOREALPATH=512,ENOCHILD=ENOTDIR|ENOENT|ENOREALPATH,TYPEMASK=1023,entToType=s10=>s10.isFile()?IFREG:s10.isDirectory()?IFDIR:s10.isSymbolicLink()?IFLNK:s10.isCharacterDevice()?IFCHR:s10.isBlockDevice()?IFBLK:s10.isSocket()?IFSOCK:s10.isFIFO()?IFIFO:UNKNOWN,normalizeCache=new Map,normalize=s10=>{let c7=normalizeCache.get(s10);if(c7)return c7;let n10=s10.normalize("NFKD");return normalizeCache.set(s10,n10),n10},normalizeNocaseCache=new Map,normalizeNocase=s10=>{let c7=normalizeNocaseCache.get(s10);if(c7)return c7;let n10=normalize(s10.toLowerCase());return normalizeNocaseCache.set(s10,n10),n10},ResolveCache=class extends LRUCache{constructor(){super({max:256});}},ChildrenCache=class extends LRUCache{constructor(maxSize=16*1024){super({maxSize,sizeCalculation:a5=>a5.length+1});}},setAsCwd=Symbol("PathScurry setAsCwd"),PathBase=class{name;root;roots;parent;nocase;isCWD=!1;#fs;#dev;get dev(){return this.#dev}#mode;get mode(){return this.#mode}#nlink;get nlink(){return this.#nlink}#uid;get uid(){return this.#uid}#gid;get gid(){return this.#gid}#rdev;get rdev(){return this.#rdev}#blksize;get blksize(){return this.#blksize}#ino;get ino(){return this.#ino}#size;get size(){return this.#size}#blocks;get blocks(){return this.#blocks}#atimeMs;get atimeMs(){return this.#atimeMs}#mtimeMs;get mtimeMs(){return this.#mtimeMs}#ctimeMs;get ctimeMs(){return this.#ctimeMs}#birthtimeMs;get birthtimeMs(){return this.#birthtimeMs}#atime;get atime(){return this.#atime}#mtime;get mtime(){return this.#mtime}#ctime;get ctime(){return this.#ctime}#birthtime;get birthtime(){return this.#birthtime}#matchName;#depth;#fullpath;#fullpathPosix;#relative;#relativePosix;#type;#children;#linkTarget;#realpath;get parentPath(){return (this.parent||this).fullpath()}get path(){return this.parentPath}constructor(name,type=UNKNOWN,root,roots,nocase,children,opts){this.name=name,this.#matchName=nocase?normalizeNocase(name):normalize(name),this.#type=type&TYPEMASK,this.nocase=nocase,this.roots=roots,this.root=root||this,this.#children=children,this.#fullpath=opts.fullpath,this.#relative=opts.relative,this.#relativePosix=opts.relativePosix,this.parent=opts.parent,this.parent?this.#fs=this.parent.#fs:this.#fs=fsFromOption(opts.fs);}depth(){return this.#depth!==void 0?this.#depth:this.parent?this.#depth=this.parent.depth()+1:this.#depth=0}childrenCache(){return this.#children}resolve(path12){if(!path12)return this;let rootPath=this.getRootString(path12),dirParts=path12.substring(rootPath.length).split(this.splitSep);return rootPath?this.getRoot(rootPath).#resolveParts(dirParts):this.#resolveParts(dirParts)}#resolveParts(dirParts){let p7=this;for(let part of dirParts)p7=p7.child(part);return p7}children(){let cached=this.#children.get(this);if(cached)return cached;let children=Object.assign([],{provisional:0});return this.#children.set(this,children),this.#type&=~READDIR_CALLED,children}child(pathPart,opts){if(pathPart===""||pathPart===".")return this;if(pathPart==="..")return this.parent||this;let children=this.children(),name=this.nocase?normalizeNocase(pathPart):normalize(pathPart);for(let p7 of children)if(p7.#matchName===name)return p7;let s10=this.parent?this.sep:"",fullpath=this.#fullpath?this.#fullpath+s10+pathPart:void 0,pchild=this.newChild(pathPart,UNKNOWN,{...opts,parent:this,fullpath});return this.canReaddir()||(pchild.#type|=ENOENT),children.push(pchild),pchild}relative(){if(this.isCWD)return "";if(this.#relative!==void 0)return this.#relative;let name=this.name,p7=this.parent;if(!p7)return this.#relative=this.name;let pv4=p7.relative();return pv4+(!pv4||!p7.parent?"":this.sep)+name}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return "";if(this.#relativePosix!==void 0)return this.#relativePosix;let name=this.name,p7=this.parent;if(!p7)return this.#relativePosix=this.fullpathPosix();let pv4=p7.relativePosix();return pv4+(!pv4||!p7.parent?"":"/")+name}fullpath(){if(this.#fullpath!==void 0)return this.#fullpath;let name=this.name,p7=this.parent;if(!p7)return this.#fullpath=this.name;let fp4=p7.fullpath()+(p7.parent?this.sep:"")+name;return this.#fullpath=fp4}fullpathPosix(){if(this.#fullpathPosix!==void 0)return this.#fullpathPosix;if(this.sep==="/")return this.#fullpathPosix=this.fullpath();if(!this.parent){let p8=this.fullpath().replace(/\\/g,"/");return /^[a-z]:\//i.test(p8)?this.#fullpathPosix=`//?/${p8}`:this.#fullpathPosix=p8}let p7=this.parent,pfpp=p7.fullpathPosix(),fpp=pfpp+(!pfpp||!p7.parent?"":"/")+this.name;return this.#fullpathPosix=fpp}isUnknown(){return (this.#type&IFMT)===UNKNOWN}isType(type){return this[`is${type}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return (this.#type&IFMT)===IFREG}isDirectory(){return (this.#type&IFMT)===IFDIR}isCharacterDevice(){return (this.#type&IFMT)===IFCHR}isBlockDevice(){return (this.#type&IFMT)===IFBLK}isFIFO(){return (this.#type&IFMT)===IFIFO}isSocket(){return (this.#type&IFMT)===IFSOCK}isSymbolicLink(){return (this.#type&IFLNK)===IFLNK}lstatCached(){return this.#type&LSTAT_CALLED?this:void 0}readlinkCached(){return this.#linkTarget}realpathCached(){return this.#realpath}readdirCached(){let children=this.children();return children.slice(0,children.provisional)}canReadlink(){if(this.#linkTarget)return !0;if(!this.parent)return !1;let ifmt=this.#type&IFMT;return !(ifmt!==UNKNOWN&&ifmt!==IFLNK||this.#type&ENOREADLINK||this.#type&ENOENT)}calledReaddir(){return !!(this.#type&READDIR_CALLED)}isENOENT(){return !!(this.#type&ENOENT)}isNamed(n10){return this.nocase?this.#matchName===normalizeNocase(n10):this.#matchName===normalize(n10)}async readlink(){let target=this.#linkTarget;if(target)return target;if(this.canReadlink()&&this.parent)try{let read=await this.#fs.promises.readlink(this.fullpath()),linkTarget=(await this.parent.realpath())?.resolve(read);if(linkTarget)return this.#linkTarget=linkTarget}catch(er7){this.#readlinkFail(er7.code);return}}readlinkSync(){let target=this.#linkTarget;if(target)return target;if(this.canReadlink()&&this.parent)try{let read=this.#fs.readlinkSync(this.fullpath()),linkTarget=this.parent.realpathSync()?.resolve(read);if(linkTarget)return this.#linkTarget=linkTarget}catch(er7){this.#readlinkFail(er7.code);return}}#readdirSuccess(children){this.#type|=READDIR_CALLED;for(let p7=children.provisional;p7<children.length;p7++){let c7=children[p7];c7&&c7.#markENOENT();}}#markENOENT(){this.#type&ENOENT||(this.#type=(this.#type|ENOENT)&IFMT_UNKNOWN,this.#markChildrenENOENT());}#markChildrenENOENT(){let children=this.children();children.provisional=0;for(let p7 of children)p7.#markENOENT();}#markENOREALPATH(){this.#type|=ENOREALPATH,this.#markENOTDIR();}#markENOTDIR(){if(this.#type&ENOTDIR)return;let t20=this.#type;(t20&IFMT)===IFDIR&&(t20&=IFMT_UNKNOWN),this.#type=t20|ENOTDIR,this.#markChildrenENOENT();}#readdirFail(code=""){code==="ENOTDIR"||code==="EPERM"?this.#markENOTDIR():code==="ENOENT"?this.#markENOENT():this.children().provisional=0;}#lstatFail(code=""){code==="ENOTDIR"?this.parent.#markENOTDIR():code==="ENOENT"&&this.#markENOENT();}#readlinkFail(code=""){let ter=this.#type;ter|=ENOREADLINK,code==="ENOENT"&&(ter|=ENOENT),(code==="EINVAL"||code==="UNKNOWN")&&(ter&=IFMT_UNKNOWN),this.#type=ter,code==="ENOTDIR"&&this.parent&&this.parent.#markENOTDIR();}#readdirAddChild(e5,c7){return this.#readdirMaybePromoteChild(e5,c7)||this.#readdirAddNewChild(e5,c7)}#readdirAddNewChild(e5,c7){let type=entToType(e5),child=this.newChild(e5.name,type,{parent:this}),ifmt=child.#type&IFMT;return ifmt!==IFDIR&&ifmt!==IFLNK&&ifmt!==UNKNOWN&&(child.#type|=ENOTDIR),c7.unshift(child),c7.provisional++,child}#readdirMaybePromoteChild(e5,c7){for(let p7=c7.provisional;p7<c7.length;p7++){let pchild=c7[p7];if((this.nocase?normalizeNocase(e5.name):normalize(e5.name))===pchild.#matchName)return this.#readdirPromoteChild(e5,pchild,p7,c7)}}#readdirPromoteChild(e5,p7,index,c7){let v12=p7.name;return p7.#type=p7.#type&IFMT_UNKNOWN|entToType(e5),v12!==e5.name&&(p7.name=e5.name),index!==c7.provisional&&(index===c7.length-1?c7.pop():c7.splice(index,1),c7.unshift(p7)),c7.provisional++,p7}async lstat(){if((this.#type&ENOENT)===0)try{return this.#applyStat(await this.#fs.promises.lstat(this.fullpath())),this}catch(er7){this.#lstatFail(er7.code);}}lstatSync(){if((this.#type&ENOENT)===0)try{return this.#applyStat(this.#fs.lstatSync(this.fullpath())),this}catch(er7){this.#lstatFail(er7.code);}}#applyStat(st9){let{atime,atimeMs,birthtime,birthtimeMs,blksize,blocks,ctime,ctimeMs,dev,gid,ino,mode,mtime,mtimeMs,nlink,rdev,size,uid}=st9;this.#atime=atime,this.#atimeMs=atimeMs,this.#birthtime=birthtime,this.#birthtimeMs=birthtimeMs,this.#blksize=blksize,this.#blocks=blocks,this.#ctime=ctime,this.#ctimeMs=ctimeMs,this.#dev=dev,this.#gid=gid,this.#ino=ino,this.#mode=mode,this.#mtime=mtime,this.#mtimeMs=mtimeMs,this.#nlink=nlink,this.#rdev=rdev,this.#size=size,this.#uid=uid;let ifmt=entToType(st9);this.#type=this.#type&IFMT_UNKNOWN|ifmt|LSTAT_CALLED,ifmt!==UNKNOWN&&ifmt!==IFDIR&&ifmt!==IFLNK&&(this.#type|=ENOTDIR);}#onReaddirCB=[];#readdirCBInFlight=!1;#callOnReaddirCB(children){this.#readdirCBInFlight=!1;let cbs=this.#onReaddirCB.slice();this.#onReaddirCB.length=0,cbs.forEach(cb3=>cb3(null,children));}readdirCB(cb3,allowZalgo=!1){if(!this.canReaddir()){allowZalgo?cb3(null,[]):queueMicrotask(()=>cb3(null,[]));return}let children=this.children();if(this.calledReaddir()){let c7=children.slice(0,children.provisional);allowZalgo?cb3(null,c7):queueMicrotask(()=>cb3(null,c7));return}if(this.#onReaddirCB.push(cb3),this.#readdirCBInFlight)return;this.#readdirCBInFlight=!0;let fullpath=this.fullpath();this.#fs.readdir(fullpath,{withFileTypes:!0},(er7,entries2)=>{if(er7)this.#readdirFail(er7.code),children.provisional=0;else {for(let e5 of entries2)this.#readdirAddChild(e5,children);this.#readdirSuccess(children);}this.#callOnReaddirCB(children.slice(0,children.provisional));});}#asyncReaddirInFlight;async readdir(){if(!this.canReaddir())return [];let children=this.children();if(this.calledReaddir())return children.slice(0,children.provisional);let fullpath=this.fullpath();if(this.#asyncReaddirInFlight)await this.#asyncReaddirInFlight;else {let resolve9=()=>{};this.#asyncReaddirInFlight=new Promise(res=>resolve9=res);try{for(let e5 of await this.#fs.promises.readdir(fullpath,{withFileTypes:!0}))this.#readdirAddChild(e5,children);this.#readdirSuccess(children);}catch(er7){this.#readdirFail(er7.code),children.provisional=0;}this.#asyncReaddirInFlight=void 0,resolve9();}return children.slice(0,children.provisional)}readdirSync(){if(!this.canReaddir())return [];let children=this.children();if(this.calledReaddir())return children.slice(0,children.provisional);let fullpath=this.fullpath();try{for(let e5 of this.#fs.readdirSync(fullpath,{withFileTypes:!0}))this.#readdirAddChild(e5,children);this.#readdirSuccess(children);}catch(er7){this.#readdirFail(er7.code),children.provisional=0;}return children.slice(0,children.provisional)}canReaddir(){if(this.#type&ENOCHILD)return !1;let ifmt=IFMT&this.#type;return ifmt===UNKNOWN||ifmt===IFDIR||ifmt===IFLNK}shouldWalk(dirs,walkFilter){return (this.#type&IFDIR)===IFDIR&&!(this.#type&ENOCHILD)&&!dirs.has(this)&&(!walkFilter||walkFilter(this))}async realpath(){if(this.#realpath)return this.#realpath;if(!((ENOREALPATH|ENOREADLINK|ENOENT)&this.#type))try{let rp3=await this.#fs.promises.realpath(this.fullpath());return this.#realpath=this.resolve(rp3)}catch{this.#markENOREALPATH();}}realpathSync(){if(this.#realpath)return this.#realpath;if(!((ENOREALPATH|ENOREADLINK|ENOENT)&this.#type))try{let rp3=this.#fs.realpathSync(this.fullpath());return this.#realpath=this.resolve(rp3)}catch{this.#markENOREALPATH();}}[setAsCwd](oldCwd){if(oldCwd===this)return;oldCwd.isCWD=!1,this.isCWD=!0;let changed=new Set([]),rp3=[],p7=this;for(;p7&&p7.parent;)changed.add(p7),p7.#relative=rp3.join(this.sep),p7.#relativePosix=rp3.join("/"),p7=p7.parent,rp3.push("..");for(p7=oldCwd;p7&&p7.parent&&!changed.has(p7);)p7.#relative=void 0,p7.#relativePosix=void 0,p7=p7.parent;}},PathWin32=class _PathWin32 extends PathBase{sep="\\";splitSep=eitherSep;constructor(name,type=UNKNOWN,root,roots,nocase,children,opts){super(name,type,root,roots,nocase,children,opts);}newChild(name,type=UNKNOWN,opts={}){return new _PathWin32(name,type,this.root,this.roots,this.nocase,this.childrenCache(),opts)}getRootString(path12){return win32.parse(path12).root}getRoot(rootPath){if(rootPath=uncToDrive(rootPath.toUpperCase()),rootPath===this.root.name)return this.root;for(let[compare,root]of Object.entries(this.roots))if(this.sameRoot(rootPath,compare))return this.roots[rootPath]=root;return this.roots[rootPath]=new PathScurryWin32(rootPath,this).root}sameRoot(rootPath,compare=this.root.name){return rootPath=rootPath.toUpperCase().replace(/\//g,"\\").replace(uncDriveRegexp,"$1\\"),rootPath===compare}},PathPosix=class _PathPosix extends PathBase{splitSep="/";sep="/";constructor(name,type=UNKNOWN,root,roots,nocase,children,opts){super(name,type,root,roots,nocase,children,opts);}getRootString(path12){return path12.startsWith("/")?"/":""}getRoot(_rootPath){return this.root}newChild(name,type=UNKNOWN,opts={}){return new _PathPosix(name,type,this.root,this.roots,this.nocase,this.childrenCache(),opts)}},PathScurryBase=class{root;rootPath;roots;cwd;#resolveCache;#resolvePosixCache;#children;nocase;#fs;constructor(cwd2=process.cwd(),pathImpl,sep4,{nocase,childrenCacheSize=16*1024,fs:fs15=defaultFS}={}){this.#fs=fsFromOption(fs15),(cwd2 instanceof URL||cwd2.startsWith("file://"))&&(cwd2=fileURLToPath(cwd2));let cwdPath=pathImpl.resolve(cwd2);this.roots=Object.create(null),this.rootPath=this.parseRootPath(cwdPath),this.#resolveCache=new ResolveCache,this.#resolvePosixCache=new ResolveCache,this.#children=new ChildrenCache(childrenCacheSize);let split=cwdPath.substring(this.rootPath.length).split(sep4);if(split.length===1&&!split[0]&&split.pop(),nocase===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=nocase,this.root=this.newRoot(this.#fs),this.roots[this.rootPath]=this.root;let prev=this.root,len=split.length-1,joinSep=pathImpl.sep,abs=this.rootPath,sawFirst=!1;for(let part of split){let l7=len--;prev=prev.child(part,{relative:new Array(l7).fill("..").join(joinSep),relativePosix:new Array(l7).fill("..").join("/"),fullpath:abs+=(sawFirst?"":joinSep)+part}),sawFirst=!0;}this.cwd=prev;}depth(path12=this.cwd){return typeof path12=="string"&&(path12=this.cwd.resolve(path12)),path12.depth()}childrenCache(){return this.#children}resolve(...paths){let r5="";for(let i10=paths.length-1;i10>=0;i10--){let p7=paths[i10];if(!(!p7||p7===".")&&(r5=r5?`${p7}/${r5}`:p7,this.isAbsolute(p7)))break}let cached=this.#resolveCache.get(r5);if(cached!==void 0)return cached;let result=this.cwd.resolve(r5).fullpath();return this.#resolveCache.set(r5,result),result}resolvePosix(...paths){let r5="";for(let i10=paths.length-1;i10>=0;i10--){let p7=paths[i10];if(!(!p7||p7===".")&&(r5=r5?`${p7}/${r5}`:p7,this.isAbsolute(p7)))break}let cached=this.#resolvePosixCache.get(r5);if(cached!==void 0)return cached;let result=this.cwd.resolve(r5).fullpathPosix();return this.#resolvePosixCache.set(r5,result),result}relative(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),entry.relative()}relativePosix(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),entry.relativePosix()}basename(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),entry.name}dirname(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),(entry.parent||entry).fullpath()}async readdir(entry=this.cwd,opts={withFileTypes:!0}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes}=opts;if(entry.canReaddir()){let p7=await entry.readdir();return withFileTypes?p7:p7.map(e5=>e5.name)}else return []}readdirSync(entry=this.cwd,opts={withFileTypes:!0}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0}=opts;return entry.canReaddir()?withFileTypes?entry.readdirSync():entry.readdirSync().map(e5=>e5.name):[]}async lstat(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),entry.lstat()}lstatSync(entry=this.cwd){return typeof entry=="string"&&(entry=this.cwd.resolve(entry)),entry.lstatSync()}async readlink(entry=this.cwd,{withFileTypes}={withFileTypes:!1}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(withFileTypes=entry.withFileTypes,entry=this.cwd);let e5=await entry.readlink();return withFileTypes?e5:e5?.fullpath()}readlinkSync(entry=this.cwd,{withFileTypes}={withFileTypes:!1}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(withFileTypes=entry.withFileTypes,entry=this.cwd);let e5=entry.readlinkSync();return withFileTypes?e5:e5?.fullpath()}async realpath(entry=this.cwd,{withFileTypes}={withFileTypes:!1}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(withFileTypes=entry.withFileTypes,entry=this.cwd);let e5=await entry.realpath();return withFileTypes?e5:e5?.fullpath()}realpathSync(entry=this.cwd,{withFileTypes}={withFileTypes:!1}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(withFileTypes=entry.withFileTypes,entry=this.cwd);let e5=entry.realpathSync();return withFileTypes?e5:e5?.fullpath()}async walk(entry=this.cwd,opts={}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0,follow=!1,filter:filter2,walkFilter}=opts,results=[];(!filter2||filter2(entry))&&results.push(withFileTypes?entry:entry.fullpath());let dirs=new Set,walk=(dir,cb3)=>{dirs.add(dir),dir.readdirCB((er7,entries2)=>{if(er7)return cb3(er7);let len=entries2.length;if(!len)return cb3();let next=()=>{--len===0&&cb3();};for(let e5 of entries2)(!filter2||filter2(e5))&&results.push(withFileTypes?e5:e5.fullpath()),follow&&e5.isSymbolicLink()?e5.realpath().then(r5=>r5?.isUnknown()?r5.lstat():r5).then(r5=>r5?.shouldWalk(dirs,walkFilter)?walk(r5,next):next()):e5.shouldWalk(dirs,walkFilter)?walk(e5,next):next();},!0);},start=entry;return new Promise((res,rej)=>{walk(start,er7=>{if(er7)return rej(er7);res(results);});})}walkSync(entry=this.cwd,opts={}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0,follow=!1,filter:filter2,walkFilter}=opts,results=[];(!filter2||filter2(entry))&&results.push(withFileTypes?entry:entry.fullpath());let dirs=new Set([entry]);for(let dir of dirs){let entries2=dir.readdirSync();for(let e5 of entries2){(!filter2||filter2(e5))&&results.push(withFileTypes?e5:e5.fullpath());let r5=e5;if(e5.isSymbolicLink()){if(!(follow&&(r5=e5.realpathSync())))continue;r5.isUnknown()&&r5.lstatSync();}r5.shouldWalk(dirs,walkFilter)&&dirs.add(r5);}}return results}[Symbol.asyncIterator](){return this.iterate()}iterate(entry=this.cwd,options={}){return typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(options=entry,entry=this.cwd),this.stream(entry,options)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(entry=this.cwd,opts={}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0,follow=!1,filter:filter2,walkFilter}=opts;(!filter2||filter2(entry))&&(yield withFileTypes?entry:entry.fullpath());let dirs=new Set([entry]);for(let dir of dirs){let entries2=dir.readdirSync();for(let e5 of entries2){(!filter2||filter2(e5))&&(yield withFileTypes?e5:e5.fullpath());let r5=e5;if(e5.isSymbolicLink()){if(!(follow&&(r5=e5.realpathSync())))continue;r5.isUnknown()&&r5.lstatSync();}r5.shouldWalk(dirs,walkFilter)&&dirs.add(r5);}}}stream(entry=this.cwd,opts={}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0,follow=!1,filter:filter2,walkFilter}=opts,results=new Minipass({objectMode:!0});(!filter2||filter2(entry))&&results.write(withFileTypes?entry:entry.fullpath());let dirs=new Set,queue=[entry],processing=0,process12=()=>{let paused=!1;for(;!paused;){let dir=queue.shift();if(!dir){processing===0&&results.end();return}processing++,dirs.add(dir);let onReaddir=(er7,entries2,didRealpaths=!1)=>{if(er7)return results.emit("error",er7);if(follow&&!didRealpaths){let promises=[];for(let e5 of entries2)e5.isSymbolicLink()&&promises.push(e5.realpath().then(r5=>r5?.isUnknown()?r5.lstat():r5));if(promises.length){Promise.all(promises).then(()=>onReaddir(null,entries2,!0));return}}for(let e5 of entries2)e5&&(!filter2||filter2(e5))&&(results.write(withFileTypes?e5:e5.fullpath())||(paused=!0));processing--;for(let e5 of entries2){let r5=e5.realpathCached()||e5;r5.shouldWalk(dirs,walkFilter)&&queue.push(r5);}paused&&!results.flowing?results.once("drain",process12):sync2||process12();},sync2=!0;dir.readdirCB(onReaddir,!0),sync2=!1;}};return process12(),results}streamSync(entry=this.cwd,opts={}){typeof entry=="string"?entry=this.cwd.resolve(entry):entry instanceof PathBase||(opts=entry,entry=this.cwd);let{withFileTypes=!0,follow=!1,filter:filter2,walkFilter}=opts,results=new Minipass({objectMode:!0}),dirs=new Set;(!filter2||filter2(entry))&&results.write(withFileTypes?entry:entry.fullpath());let queue=[entry],processing=0,process12=()=>{let paused=!1;for(;!paused;){let dir=queue.shift();if(!dir){processing===0&&results.end();return}processing++,dirs.add(dir);let entries2=dir.readdirSync();for(let e5 of entries2)(!filter2||filter2(e5))&&(results.write(withFileTypes?e5:e5.fullpath())||(paused=!0));processing--;for(let e5 of entries2){let r5=e5;if(e5.isSymbolicLink()){if(!(follow&&(r5=e5.realpathSync())))continue;r5.isUnknown()&&r5.lstatSync();}r5.shouldWalk(dirs,walkFilter)&&queue.push(r5);}}paused&&!results.flowing&&results.once("drain",process12);};return process12(),results}chdir(path12=this.cwd){let oldCwd=this.cwd;this.cwd=typeof path12=="string"?this.cwd.resolve(path12):path12,this.cwd[setAsCwd](oldCwd);}},PathScurryWin32=class extends PathScurryBase{sep="\\";constructor(cwd2=process.cwd(),opts={}){let{nocase=!0}=opts;super(cwd2,win32,"\\",{...opts,nocase}),this.nocase=nocase;for(let p7=this.cwd;p7;p7=p7.parent)p7.nocase=this.nocase;}parseRootPath(dir){return win32.parse(dir).root.toUpperCase()}newRoot(fs15){return new PathWin32(this.rootPath,IFDIR,void 0,this.roots,this.nocase,this.childrenCache(),{fs:fs15})}isAbsolute(p7){return p7.startsWith("/")||p7.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(p7)}},PathScurryPosix=class extends PathScurryBase{sep="/";constructor(cwd2=process.cwd(),opts={}){let{nocase=!1}=opts;super(cwd2,posix,"/",{...opts,nocase}),this.nocase=nocase;}parseRootPath(_dir){return "/"}newRoot(fs15){return new PathPosix(this.rootPath,IFDIR,void 0,this.roots,this.nocase,this.childrenCache(),{fs:fs15})}isAbsolute(p7){return p7.startsWith("/")}},PathScurryDarwin=class extends PathScurryPosix{constructor(cwd2=process.cwd(),opts={}){let{nocase=!0}=opts;super(cwd2,{...opts,nocase});}};process.platform==="win32"?PathWin32:PathPosix;var PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix;var isPatternList=pl3=>pl3.length>=1,isGlobList=gl2=>gl2.length>=1,Pattern=class _Pattern{#patternList;#globList;#index;length;#platform;#rest;#globString;#isDrive;#isUNC;#isAbsolute;#followGlobstar=!0;constructor(patternList,globList,index,platform5){if(!isPatternList(patternList))throw new TypeError("empty pattern list");if(!isGlobList(globList))throw new TypeError("empty glob list");if(globList.length!==patternList.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=patternList.length,index<0||index>=this.length)throw new TypeError("index out of range");if(this.#patternList=patternList,this.#globList=globList,this.#index=index,this.#platform=platform5,this.#index===0){if(this.isUNC()){let[p03,p12,p22,p33,...prest]=this.#patternList,[g03,g12,g22,g32,...grest]=this.#globList;prest[0]===""&&(prest.shift(),grest.shift());let p7=[p03,p12,p22,p33,""].join("/"),g5=[g03,g12,g22,g32,""].join("/");this.#patternList=[p7,...prest],this.#globList=[g5,...grest],this.length=this.#patternList.length;}else if(this.isDrive()||this.isAbsolute()){let[p12,...prest]=this.#patternList,[g12,...grest]=this.#globList;prest[0]===""&&(prest.shift(),grest.shift());let p7=p12+"/",g5=g12+"/";this.#patternList=[p7,...prest],this.#globList=[g5,...grest],this.length=this.#patternList.length;}}}pattern(){return this.#patternList[this.#index]}isString(){return typeof this.#patternList[this.#index]=="string"}isGlobstar(){return this.#patternList[this.#index]===GLOBSTAR}isRegExp(){return this.#patternList[this.#index]instanceof RegExp}globString(){return this.#globString=this.#globString||(this.#index===0?this.isAbsolute()?this.#globList[0]+this.#globList.slice(1).join("/"):this.#globList.join("/"):this.#globList.slice(this.#index).join("/"))}hasMore(){return this.length>this.#index+1}rest(){return this.#rest!==void 0?this.#rest:this.hasMore()?(this.#rest=new _Pattern(this.#patternList,this.#globList,this.#index+1,this.#platform),this.#rest.#isAbsolute=this.#isAbsolute,this.#rest.#isUNC=this.#isUNC,this.#rest.#isDrive=this.#isDrive,this.#rest):this.#rest=null}isUNC(){let pl3=this.#patternList;return this.#isUNC!==void 0?this.#isUNC:this.#isUNC=this.#platform==="win32"&&this.#index===0&&pl3[0]===""&&pl3[1]===""&&typeof pl3[2]=="string"&&!!pl3[2]&&typeof pl3[3]=="string"&&!!pl3[3]}isDrive(){let pl3=this.#patternList;return this.#isDrive!==void 0?this.#isDrive:this.#isDrive=this.#platform==="win32"&&this.#index===0&&this.length>1&&typeof pl3[0]=="string"&&/^[a-z]:$/i.test(pl3[0])}isAbsolute(){let pl3=this.#patternList;return this.#isAbsolute!==void 0?this.#isAbsolute:this.#isAbsolute=pl3[0]===""&&pl3.length>1||this.isDrive()||this.isUNC()}root(){let p7=this.#patternList[0];return typeof p7=="string"&&this.isAbsolute()&&this.#index===0?p7:""}checkFollowGlobstar(){return !(this.#index===0||!this.isGlobstar()||!this.#followGlobstar)}markFollowGlobstar(){return this.#index===0||!this.isGlobstar()||!this.#followGlobstar?!1:(this.#followGlobstar=!1,!0)}};var defaultPlatform2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(ignored,{nobrace,nocase,noext,noglobstar,platform:platform5=defaultPlatform2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=platform5,this.mmopts={dot:!0,nobrace,nocase,noext,noglobstar,optimizationLevel:2,platform:platform5,nocomment:!0,nonegate:!0};for(let ign of ignored)this.add(ign);}add(ign){let mm2=new Minimatch(ign,this.mmopts);for(let i10=0;i10<mm2.set.length;i10++){let parsed=mm2.set[i10],globParts=mm2.globParts[i10];if(!parsed||!globParts)throw new Error("invalid pattern object");for(;parsed[0]==="."&&globParts[0]===".";)parsed.shift(),globParts.shift();let p7=new Pattern(parsed,globParts,0,this.platform),m7=new Minimatch(p7.globString(),this.mmopts),children=globParts[globParts.length-1]==="**",absolute=p7.isAbsolute();absolute?this.absolute.push(m7):this.relative.push(m7),children&&(absolute?this.absoluteChildren.push(m7):this.relativeChildren.push(m7));}}ignored(p7){let fullpath=p7.fullpath(),fullpaths=`${fullpath}/`,relative4=p7.relative()||".",relatives=`${relative4}/`;for(let m7 of this.relative)if(m7.match(relative4)||m7.match(relatives))return !0;for(let m7 of this.absolute)if(m7.match(fullpath)||m7.match(fullpaths))return !0;return !1}childrenIgnored(p7){let fullpath=p7.fullpath()+"/",relative4=(p7.relative()||".")+"/";for(let m7 of this.relativeChildren)if(m7.match(relative4))return !0;for(let m7 of this.absoluteChildren)if(m7.match(fullpath))return !0;return !1}};var HasWalkedCache=class _HasWalkedCache{store;constructor(store=new Map){this.store=store;}copy(){return new _HasWalkedCache(new Map(this.store))}hasWalked(target,pattern){return this.store.get(target.fullpath())?.has(pattern.globString())}storeWalked(target,pattern){let fullpath=target.fullpath(),cached=this.store.get(fullpath);cached?cached.add(pattern.globString()):this.store.set(fullpath,new Set([pattern.globString()]));}},MatchRecord=class{store=new Map;add(target,absolute,ifDir){let n10=(absolute?2:0)|(ifDir?1:0),current=this.store.get(target);this.store.set(target,current===void 0?n10:n10¤t);}entries(){return [...this.store.entries()].map(([path12,n10])=>[path12,!!(n10&2),!!(n10&1)])}},SubWalks=class{store=new Map;add(target,pattern){if(!target.canReaddir())return;let subs=this.store.get(target);subs?subs.find(p7=>p7.globString()===pattern.globString())||subs.push(pattern):this.store.set(target,[pattern]);}get(target){let subs=this.store.get(target);if(!subs)throw new Error("attempting to walk unknown path");return subs}entries(){return this.keys().map(k13=>[k13,this.store.get(k13)])}keys(){return [...this.store.keys()].filter(t20=>t20.canReaddir())}},Processor=class _Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(opts,hasWalkedCache){this.opts=opts,this.follow=!!opts.follow,this.dot=!!opts.dot,this.hasWalkedCache=hasWalkedCache?hasWalkedCache.copy():new HasWalkedCache;}processPatterns(target,patterns){this.patterns=patterns;let processingSet=patterns.map(p7=>[target,p7]);for(let[t20,pattern]of processingSet){this.hasWalkedCache.storeWalked(t20,pattern);let root=pattern.root(),absolute=pattern.isAbsolute()&&this.opts.absolute!==!1;if(root){t20=t20.resolve(root==="/"&&this.opts.root!==void 0?this.opts.root:root);let rest2=pattern.rest();if(rest2)pattern=rest2;else {this.matches.add(t20,!0,!1);continue}}if(t20.isENOENT())continue;let p7,rest,changed=!1;for(;typeof(p7=pattern.pattern())=="string"&&(rest=pattern.rest());)t20=t20.resolve(p7),pattern=rest,changed=!0;if(p7=pattern.pattern(),rest=pattern.rest(),changed){if(this.hasWalkedCache.hasWalked(t20,pattern))continue;this.hasWalkedCache.storeWalked(t20,pattern);}if(typeof p7=="string"){let ifDir=p7===".."||p7===""||p7===".";this.matches.add(t20.resolve(p7),absolute,ifDir);continue}else if(p7===GLOBSTAR){(!t20.isSymbolicLink()||this.follow||pattern.checkFollowGlobstar())&&this.subwalks.add(t20,pattern);let rp3=rest?.pattern(),rrest=rest?.rest();if(!rest||(rp3===""||rp3===".")&&!rrest)this.matches.add(t20,absolute,rp3===""||rp3===".");else if(rp3===".."){let tp2=t20.parent||t20;rrest?this.hasWalkedCache.hasWalked(tp2,rrest)||this.subwalks.add(tp2,rrest):this.matches.add(tp2,absolute,!0);}}else p7 instanceof RegExp&&this.subwalks.add(t20,pattern);}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new _Processor(this.opts,this.hasWalkedCache)}filterEntries(parent,entries2){let patterns=this.subwalks.get(parent),results=this.child();for(let e5 of entries2)for(let pattern of patterns){let absolute=pattern.isAbsolute(),p7=pattern.pattern(),rest=pattern.rest();p7===GLOBSTAR?results.testGlobstar(e5,pattern,rest,absolute):p7 instanceof RegExp?results.testRegExp(e5,p7,rest,absolute):results.testString(e5,p7,rest,absolute);}return results}testGlobstar(e5,pattern,rest,absolute){if((this.dot||!e5.name.startsWith("."))&&(pattern.hasMore()||this.matches.add(e5,absolute,!1),e5.canReaddir()&&(this.follow||!e5.isSymbolicLink()?this.subwalks.add(e5,pattern):e5.isSymbolicLink()&&(rest&&pattern.checkFollowGlobstar()?this.subwalks.add(e5,rest):pattern.markFollowGlobstar()&&this.subwalks.add(e5,pattern)))),rest){let rp3=rest.pattern();if(typeof rp3=="string"&&rp3!==".."&&rp3!==""&&rp3!==".")this.testString(e5,rp3,rest.rest(),absolute);else if(rp3===".."){let ep2=e5.parent||e5;this.subwalks.add(ep2,rest);}else rp3 instanceof RegExp&&this.testRegExp(e5,rp3,rest.rest(),absolute);}}testRegExp(e5,p7,rest,absolute){p7.test(e5.name)&&(rest?this.subwalks.add(e5,rest):this.matches.add(e5,absolute,!1));}testString(e5,p7,rest,absolute){e5.isNamed(p7)&&(rest?this.subwalks.add(e5,rest):this.matches.add(e5,absolute,!1));}};var makeIgnore=(ignore,opts)=>typeof ignore=="string"?new Ignore([ignore],opts):Array.isArray(ignore)?new Ignore(ignore,opts):ignore,GlobUtil=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#onResume=[];#ignore;#sep;signal;maxDepth;includeChildMatches;constructor(patterns,path12,opts){if(this.patterns=patterns,this.path=path12,this.opts=opts,this.#sep=!opts.posix&&opts.platform==="win32"?"\\":"/",this.includeChildMatches=opts.includeChildMatches!==!1,(opts.ignore||!this.includeChildMatches)&&(this.#ignore=makeIgnore(opts.ignore??[],opts),!this.includeChildMatches&&typeof this.#ignore.add!="function")){let m7="cannot ignore child matches, ignore lacks add() method.";throw new Error(m7)}this.maxDepth=opts.maxDepth||1/0,opts.signal&&(this.signal=opts.signal,this.signal.addEventListener("abort",()=>{this.#onResume.length=0;}));}#ignored(path12){return this.seen.has(path12)||!!this.#ignore?.ignored?.(path12)}#childrenIgnored(path12){return !!this.#ignore?.childrenIgnored?.(path12)}pause(){this.paused=!0;}resume(){if(this.signal?.aborted)return;this.paused=!1;let fn5;for(;!this.paused&&(fn5=this.#onResume.shift());)fn5();}onResume(fn5){this.signal?.aborted||(this.paused?this.#onResume.push(fn5):fn5());}async matchCheck(e5,ifDir){if(ifDir&&this.opts.nodir)return;let rpc;if(this.opts.realpath){if(rpc=e5.realpathCached()||await e5.realpath(),!rpc)return;e5=rpc;}let s10=e5.isUnknown()||this.opts.stat?await e5.lstat():e5;if(this.opts.follow&&this.opts.nodir&&s10?.isSymbolicLink()){let target=await s10.realpath();target&&(target.isUnknown()||this.opts.stat)&&await target.lstat();}return this.matchCheckTest(s10,ifDir)}matchCheckTest(e5,ifDir){return e5&&(this.maxDepth===1/0||e5.depth()<=this.maxDepth)&&(!ifDir||e5.canReaddir())&&(!this.opts.nodir||!e5.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e5.isSymbolicLink()||!e5.realpathCached()?.isDirectory())&&!this.#ignored(e5)?e5:void 0}matchCheckSync(e5,ifDir){if(ifDir&&this.opts.nodir)return;let rpc;if(this.opts.realpath){if(rpc=e5.realpathCached()||e5.realpathSync(),!rpc)return;e5=rpc;}let s10=e5.isUnknown()||this.opts.stat?e5.lstatSync():e5;if(this.opts.follow&&this.opts.nodir&&s10?.isSymbolicLink()){let target=s10.realpathSync();target&&(target?.isUnknown()||this.opts.stat)&&target.lstatSync();}return this.matchCheckTest(s10,ifDir)}matchFinish(e5,absolute){if(this.#ignored(e5))return;if(!this.includeChildMatches&&this.#ignore?.add){let ign=`${e5.relativePosix()}/**`;this.#ignore.add(ign);}let abs=this.opts.absolute===void 0?absolute:this.opts.absolute;this.seen.add(e5);let mark=this.opts.mark&&e5.isDirectory()?this.#sep:"";if(this.opts.withFileTypes)this.matchEmit(e5);else if(abs){let abs2=this.opts.posix?e5.fullpathPosix():e5.fullpath();this.matchEmit(abs2+mark);}else {let rel=this.opts.posix?e5.relativePosix():e5.relative(),pre2=this.opts.dotRelative&&!rel.startsWith(".."+this.#sep)?"."+this.#sep:"";this.matchEmit(rel?pre2+rel+mark:"."+mark);}}async match(e5,absolute,ifDir){let p7=await this.matchCheck(e5,ifDir);p7&&this.matchFinish(p7,absolute);}matchSync(e5,absolute,ifDir){let p7=this.matchCheckSync(e5,ifDir);p7&&this.matchFinish(p7,absolute);}walkCB(target,patterns,cb3){this.signal?.aborted&&cb3(),this.walkCB2(target,patterns,new Processor(this.opts),cb3);}walkCB2(target,patterns,processor,cb3){if(this.#childrenIgnored(target))return cb3();if(this.signal?.aborted&&cb3(),this.paused){this.onResume(()=>this.walkCB2(target,patterns,processor,cb3));return}processor.processPatterns(target,patterns);let tasks2=1,next=()=>{--tasks2===0&&cb3();};for(let[m7,absolute,ifDir]of processor.matches.entries())this.#ignored(m7)||(tasks2++,this.match(m7,absolute,ifDir).then(()=>next()));for(let t20 of processor.subwalkTargets()){if(this.maxDepth!==1/0&&t20.depth()>=this.maxDepth)continue;tasks2++;let childrenCached=t20.readdirCached();t20.calledReaddir()?this.walkCB3(t20,childrenCached,processor,next):t20.readdirCB((_11,entries2)=>this.walkCB3(t20,entries2,processor,next),!0);}next();}walkCB3(target,entries2,processor,cb3){processor=processor.filterEntries(target,entries2);let tasks2=1,next=()=>{--tasks2===0&&cb3();};for(let[m7,absolute,ifDir]of processor.matches.entries())this.#ignored(m7)||(tasks2++,this.match(m7,absolute,ifDir).then(()=>next()));for(let[target2,patterns]of processor.subwalks.entries())tasks2++,this.walkCB2(target2,patterns,processor.child(),next);next();}walkCBSync(target,patterns,cb3){this.signal?.aborted&&cb3(),this.walkCB2Sync(target,patterns,new Processor(this.opts),cb3);}walkCB2Sync(target,patterns,processor,cb3){if(this.#childrenIgnored(target))return cb3();if(this.signal?.aborted&&cb3(),this.paused){this.onResume(()=>this.walkCB2Sync(target,patterns,processor,cb3));return}processor.processPatterns(target,patterns);let tasks2=1,next=()=>{--tasks2===0&&cb3();};for(let[m7,absolute,ifDir]of processor.matches.entries())this.#ignored(m7)||this.matchSync(m7,absolute,ifDir);for(let t20 of processor.subwalkTargets()){if(this.maxDepth!==1/0&&t20.depth()>=this.maxDepth)continue;tasks2++;let children=t20.readdirSync();this.walkCB3Sync(t20,children,processor,next);}next();}walkCB3Sync(target,entries2,processor,cb3){processor=processor.filterEntries(target,entries2);let tasks2=1,next=()=>{--tasks2===0&&cb3();};for(let[m7,absolute,ifDir]of processor.matches.entries())this.#ignored(m7)||this.matchSync(m7,absolute,ifDir);for(let[target2,patterns]of processor.subwalks.entries())tasks2++,this.walkCB2Sync(target2,patterns,processor.child(),next);next();}},GlobWalker=class extends GlobUtil{matches=new Set;constructor(patterns,path12,opts){super(patterns,path12,opts);}matchEmit(e5){this.matches.add(e5);}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((res,rej)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?rej(this.signal.reason):res(this.matches);});}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},GlobStream=class extends GlobUtil{results;constructor(patterns,path12,opts){super(patterns,path12,opts),this.results=new Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume());}matchEmit(e5){this.results.write(e5),this.results.flowing||this.pause();}stream(){let target=this.path;return target.isUnknown()?target.lstat().then(()=>{this.walkCB(target,this.patterns,()=>this.results.end());}):this.walkCB(target,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var defaultPlatform3=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Glob=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(pattern,opts){if(!opts)throw new TypeError("glob options required");if(this.withFileTypes=!!opts.withFileTypes,this.signal=opts.signal,this.follow=!!opts.follow,this.dot=!!opts.dot,this.dotRelative=!!opts.dotRelative,this.nodir=!!opts.nodir,this.mark=!!opts.mark,opts.cwd?(opts.cwd instanceof URL||opts.cwd.startsWith("file://"))&&(opts.cwd=fileURLToPath(opts.cwd)):this.cwd="",this.cwd=opts.cwd||"",this.root=opts.root,this.magicalBraces=!!opts.magicalBraces,this.nobrace=!!opts.nobrace,this.noext=!!opts.noext,this.realpath=!!opts.realpath,this.absolute=opts.absolute,this.includeChildMatches=opts.includeChildMatches!==!1,this.noglobstar=!!opts.noglobstar,this.matchBase=!!opts.matchBase,this.maxDepth=typeof opts.maxDepth=="number"?opts.maxDepth:1/0,this.stat=!!opts.stat,this.ignore=opts.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof pattern=="string"&&(pattern=[pattern]),this.windowsPathsNoEscape=!!opts.windowsPathsNoEscape||opts.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(pattern=pattern.map(p7=>p7.replace(/\\/g,"/"))),this.matchBase){if(opts.noglobstar)throw new TypeError("base matching requires globstar");pattern=pattern.map(p7=>p7.includes("/")?p7:`./**/${p7}`);}if(this.pattern=pattern,this.platform=opts.platform||defaultPlatform3,this.opts={...opts,platform:this.platform},opts.scurry){if(this.scurry=opts.scurry,opts.nocase!==void 0&&opts.nocase!==opts.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else {let Scurry=opts.platform==="win32"?PathScurryWin32:opts.platform==="darwin"?PathScurryDarwin:opts.platform?PathScurryPosix:PathScurry;this.scurry=new Scurry(this.cwd,{nocase:opts.nocase,fs:opts.fs});}this.nocase=this.scurry.nocase;let nocaseMagicOnly=this.platform==="darwin"||this.platform==="win32",mmo={...opts,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},mms=this.pattern.map(p7=>new Minimatch(p7,mmo)),[matchSet,globParts]=mms.reduce((set2,m7)=>(set2[0].push(...m7.set),set2[1].push(...m7.globParts),set2),[[],[]]);this.patterns=matchSet.map((set2,i10)=>{let g5=globParts[i10];if(!g5)throw new Error("invalid pattern object");return new Pattern(set2,g5,0,this.platform)});}async walk(){return [...await new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return [...new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var hasMagic=(pattern,options={})=>{Array.isArray(pattern)||(pattern=[pattern]);for(let p7 of pattern)if(new Minimatch(p7,options).hasMagic())return !0;return !1};function globStreamSync(pattern,options={}){return new Glob(pattern,options).streamSync()}function globStream(pattern,options={}){return new Glob(pattern,options).stream()}function globSync(pattern,options={}){return new Glob(pattern,options).walkSync()}async function glob_(pattern,options={}){return new Glob(pattern,options).walk()}function globIterateSync(pattern,options={}){return new Glob(pattern,options).iterateSync()}function globIterate(pattern,options={}){return new Glob(pattern,options).iterate()}var streamSync=globStreamSync,stream=Object.assign(globStream,{sync:globStreamSync}),iterateSync=globIterateSync,iterate=Object.assign(globIterate,{sync:globIterateSync}),sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync}),glob=Object.assign(glob_,{glob:glob_,globSync,sync,globStream,stream,globStreamSync,streamSync,globIterate,iterate,globIterateSync,iterateSync,Glob,hasMagic,escape:escape2,unescape:unescape2});glob.glob=glob;var FileSystemCache=class{constructor(options={}){this.prefix=(options.ns||options.prefix||"")+"-",this.hash_alg=options.hash_alg||"sha256",this.cache_dir=options.basePath||join(tmpdir(),randomBytes(15).toString("base64").replace(/\//g,"-")),this.ttl=options.ttl||0,createHash(this.hash_alg),mkdirSync(this.cache_dir,{recursive:!0});}generateHash(name){return join(this.cache_dir,this.prefix+createHash(this.hash_alg).update(name).digest("hex"))}isExpired(parsed,now){return parsed.ttl!=null&&now>parsed.ttl}parseCacheData(data,fallback){let parsed=JSON.parse(data);return this.isExpired(parsed,Date.now())?fallback:parsed.content}parseSetData(key,data,opts={}){let ttl2=opts.ttl??this.ttl;return JSON.stringify({key,content:data,...ttl2&&{ttl:Date.now()+ttl2*1e3}})}async get(name,fallback){try{let data=await readFile(this.generateHash(name),"utf8");return this.parseCacheData(data,fallback)}catch{return fallback}}getSync(name,fallback){try{let data=readFileSync(this.generateHash(name),"utf8");return this.parseCacheData(data,fallback)}catch{return fallback}}async set(name,data,orgOpts={}){let opts=typeof orgOpts=="number"?{ttl:orgOpts}:orgOpts;mkdirSync(this.cache_dir,{recursive:!0}),await writeFile(this.generateHash(name),this.parseSetData(name,data,opts),{encoding:opts.encoding||"utf8"});}setSync(name,data,orgOpts={}){let opts=typeof orgOpts=="number"?{ttl:orgOpts}:orgOpts;mkdirSync(this.cache_dir,{recursive:!0}),writeFileSync(this.generateHash(name),this.parseSetData(name,data,opts),{encoding:opts.encoding||"utf8"});}async setMany(items,options){await Promise.all(items.map(item=>this.set(item.key,item.content??item.value,options)));}setManySync(items,options){items.forEach(item=>this.setSync(item.key,item.content??item.value,options));}async remove(name){await rm$1(this.generateHash(name),{force:!0});}removeSync(name){rmSync(this.generateHash(name),{force:!0});}async clear(){let files=await readdir(this.cache_dir);await Promise.all(files.filter(f11=>f11.startsWith(this.prefix)).map(f11=>rm$1(join(this.cache_dir,f11),{force:!0})));}clearSync(){readdirSync(this.cache_dir).filter(f11=>f11.startsWith(this.prefix)).forEach(f11=>rmSync(join(this.cache_dir,f11),{force:!0}));}async getAll(){let now=Date.now(),files=await readdir(this.cache_dir);return (await Promise.all(files.filter(f11=>f11.startsWith(this.prefix)).map(f11=>readFile(join(this.cache_dir,f11),"utf8")))).map(data=>JSON.parse(data)).filter(entry=>entry.content&&!this.isExpired(entry,now))}async load(){return {files:(await this.getAll()).map(entry=>({path:this.generateHash(entry.key),value:entry.content,key:entry.key}))}}};function createFileSystemCache(options){return new FileSystemCache(options)}var import_common_path_prefix=__toESM(require_common_path_prefix(),1);function pLimit(concurrency){if(!((Number.isInteger(concurrency)||concurrency===Number.POSITIVE_INFINITY)&&concurrency>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let queue=new Queue,activeCount=0,next=()=>{activeCount--,queue.size>0&&queue.dequeue()();},run=async(fn5,resolve9,args)=>{activeCount++;let result=(async()=>fn5(...args))();resolve9(result);try{await result;}catch{}next();},enqueue=(fn5,resolve9,args)=>{queue.enqueue(run.bind(void 0,fn5,resolve9,args)),(async()=>(await Promise.resolve(),activeCount<concurrency&&queue.size>0&&queue.dequeue()()))();},generator19=(fn5,...args)=>new Promise(resolve9=>{enqueue(fn5,resolve9,args);});return Object.defineProperties(generator19,{activeCount:{get:()=>activeCount},pendingCount:{get:()=>queue.size},clearQueue:{value:()=>{queue.clear();}}}),generator19}var EndError=class extends Error{constructor(value2){super(),this.value=value2;}},testElement=async(element,tester)=>tester(await element),finder=async element=>{let values=await Promise.all(element);if(values[1]===!0)throw new EndError(values[0]);return !1};async function pLocate(iterable,tester,{concurrency=Number.POSITIVE_INFINITY,preserveOrder=!0}={}){let limit=pLimit(concurrency),items=[...iterable].map(element=>[element,limit(testElement,element,tester)]),checkLimit=pLimit(preserveOrder?1:Number.POSITIVE_INFINITY);try{await Promise.all(items.map(element=>checkLimit(finder,element)));}catch(error2){if(error2 instanceof EndError)return error2.value;throw error2}}var typeMappings={directory:"isDirectory",file:"isFile"};function checkType(type){if(!Object.hasOwnProperty.call(typeMappings,type))throw new Error(`Invalid type specified: ${type}`)}var matchType=(type,stat3)=>stat3[typeMappings[type]](),toPath=urlOrPath=>urlOrPath instanceof URL?fileURLToPath(urlOrPath):urlOrPath;async function locatePath(paths,{cwd:cwd2=Q.cwd(),type="file",allowSymlinks=!0,concurrency,preserveOrder}={}){checkType(type),cwd2=toPath(cwd2);let statFunction=allowSymlinks?promises.stat:promises.lstat;return pLocate(paths,async path_=>{try{let stat3=await statFunction(qe8.resolve(cwd2,path_));return matchType(type,stat3)}catch{return !1}},{concurrency,preserveOrder})}function locatePathSync(paths,{cwd:cwd2=Q.cwd(),type="file",allowSymlinks=!0}={}){checkType(type),cwd2=toPath(cwd2);let statFunction=allowSymlinks?tn6__default.statSync:tn6__default.lstatSync;for(let path_ of paths)try{let stat3=statFunction(qe8.resolve(cwd2,path_),{throwIfNoEntry:!1});if(!stat3)continue;if(matchType(type,stat3))return path_}catch{}}var toPath2=urlOrPath=>urlOrPath instanceof URL?fileURLToPath(urlOrPath):urlOrPath,findUpStop=Symbol("findUpStop");function findUpMultipleSync(name,options={}){let directory=qe8.resolve(toPath2(options.cwd)||""),{root}=qe8.parse(directory),stopAt=options.stopAt||root,limit=options.limit||Number.POSITIVE_INFINITY,paths=[name].flat(),runMatcher=locateOptions=>{if(typeof name!="function")return locatePathSync(paths,locateOptions);let foundPath=name(locateOptions.cwd);return typeof foundPath=="string"?locatePathSync([foundPath],locateOptions):foundPath},matches=[];for(;;){let foundPath=runMatcher({...options,cwd:directory});if(foundPath===findUpStop||(foundPath&&matches.push(qe8.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=qe8.dirname(directory);}return matches}function findUpSync(name,options={}){return findUpMultipleSync(name,{...options,limit:1})[0]}function packageDirectorySync({cwd:cwd2}={}){let filePath=findUpSync("package.json",{cwd:cwd2});return filePath&&qe8.dirname(filePath)}var{env,cwd}=Q,isWritable2=path12=>{try{return tn6__default.accessSync(path12,tn6__default.constants.W_OK),!0}catch{return !1}};function useDirectory(directory,options){return options.create&&tn6__default.mkdirSync(directory,{recursive:!0}),directory}function getNodeModuleDirectory(directory){let nodeModules=qe8.join(directory,"node_modules");if(!(!isWritable2(nodeModules)&&(tn6__default.existsSync(nodeModules)||!isWritable2(qe8.join(directory)))))return nodeModules}function findCacheDirectory(options={}){if(env.CACHE_DIR&&!["true","false","1","0"].includes(env.CACHE_DIR))return useDirectory(qe8.join(env.CACHE_DIR,options.name),options);let{cwd:directory=cwd(),files}=options;if(files){if(!Array.isArray(files))throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof files}\`.`);directory=(0, import_common_path_prefix.default)(files.map(file=>qe8.resolve(directory,file)));}if(directory=packageDirectorySync({cwd:directory}),!(!directory||!getNodeModuleDirectory(directory)))return useDirectory(qe8.join(directory,"node_modules",".cache",options.name),options)}function resolvePathInStorybookCache(fileOrDirectoryName,sub="default"){let cacheDirectory=findCacheDirectory({name:"storybook"});return cacheDirectory||=join(process.cwd(),"node_modules",".cache","storybook"),join(cacheDirectory,sub,fileOrDirectoryName)}function toPath3(urlOrPath){return urlOrPath instanceof URL?fileURLToPath(urlOrPath):urlOrPath}var findUpStop2=Symbol("findUpStop");async function findUpMultiple(name,options={}){let directory=qe8.resolve(toPath3(options.cwd)??""),{root}=qe8.parse(directory),stopAt=qe8.resolve(directory,toPath3(options.stopAt??root)),limit=options.limit??Number.POSITIVE_INFINITY,paths=[name].flat(),runMatcher=async locateOptions=>{if(typeof name!="function")return locatePath(paths,locateOptions);let foundPath=await name(locateOptions.cwd);return typeof foundPath=="string"?locatePath([foundPath],locateOptions):foundPath},matches=[];for(;;){let foundPath=await runMatcher({...options,cwd:directory});if(foundPath===findUpStop2||(foundPath&&matches.push(qe8.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=qe8.dirname(directory);}return matches}function findUpMultipleSync2(name,options={}){let directory=qe8.resolve(toPath3(options.cwd)??""),{root}=qe8.parse(directory),stopAt=qe8.resolve(directory,toPath3(options.stopAt)??root),limit=options.limit??Number.POSITIVE_INFINITY,paths=[name].flat(),runMatcher=locateOptions=>{if(typeof name!="function")return locatePathSync(paths,locateOptions);let foundPath=name(locateOptions.cwd);return typeof foundPath=="string"?locatePathSync([foundPath],locateOptions):foundPath},matches=[];for(;;){let foundPath=runMatcher({...options,cwd:directory});if(foundPath===findUpStop2||(foundPath&&matches.push(qe8.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=qe8.dirname(directory);}return matches}async function findUp2(name,options={}){return (await findUpMultiple(name,{...options,limit:1}))[0]}function findUpSync2(name,options={}){return findUpMultipleSync2(name,{...options,limit:1})[0]}var import_picocolors2=__toESM(require_picocolors(),1);var isProduction=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided=typeof message=="function"?message():message,value2=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value2)}}var HandledError=class extends Error{constructor(error2){super(String(error2));this.handled=!0;typeof error2!="string"&&(this.cause=error2);}};var NPM_LOCKFILE="package-lock.json",PNPM_LOCKFILE="pnpm-lock.yaml",YARN_LOCKFILE="yarn.lock",BUN_LOCKFILE="bun.lock",BUN_LOCKFILE_BINARY="bun.lockb",LOCK_FILES=[NPM_LOCKFILE,PNPM_LOCKFILE,YARN_LOCKFILE,BUN_LOCKFILE,BUN_LOCKFILE_BINARY];var projectRoot,getProjectRoot=()=>{if(projectRoot)return projectRoot;if(process.env.STORYBOOK_PROJECT_ROOT)return process.env.STORYBOOK_PROJECT_ROOT;try{let found=findUpSync2(".git",{type:"directory"})||findUpSync2(".svn",{type:"directory"})||findUpSync2(".hg",{type:"directory"});if(found)return projectRoot=join(found,".."),projectRoot}catch(e5){process.stdout.write(`
|
|
2688
2688
|
error searching for repository root: ${e5}
|
|
@@ -2737,7 +2737,7 @@ We were not able to detect the right builder for your project. Please select one
|
|
|
2737
2737
|
`)});}n10[0]=n10[0].replace(/^\r?\n/,"");var a5=n10[0];return e5.forEach(function(c7,p7){var l7=a5.match(/(?:^|\n)( *)$/),f11=l7?l7[1]:"",x8=c7;typeof c7=="string"&&c7.includes(`
|
|
2738
2738
|
`)&&(x8=String(c7).split(`
|
|
2739
2739
|
`).map(function(w8,_11){return _11===0?w8:""+f11+w8}).join(`
|
|
2740
|
-
`)),a5+=x8+n10[p7+1];}),a5}i7(Hn4,"dedent"),Be7.dedent=Hn4,Be7.default=Hn4;}),is4=I11((Up4,os8)=>{os8.exports=ss3,ss3.sync=Ac;var rs2=j8("fs");function Pc(t20,e5){var r5=e5.pathExt!==void 0?e5.pathExt:process.env.PATHEXT;if(!r5||(r5=r5.split(";"),r5.indexOf("")!==-1))return !0;for(var n10=0;n10<r5.length;n10++){var s10=r5[n10].toLowerCase();if(s10&&t20.substr(-s10.length).toLowerCase()===s10)return !0}return !1}i7(Pc,"checkPathExt");function ns3(t20,e5,r5){return !t20.isSymbolicLink()&&!t20.isFile()?!1:Pc(e5,r5)}i7(ns3,"checkStat");function ss3(t20,e5,r5){rs2.stat(t20,function(n10,s10){r5(n10,n10?!1:ns3(s10,t20,e5));});}i7(ss3,"isexe");function Ac(t20,e5){return ns3(rs2.statSync(t20),t20,e5)}i7(Ac,"sync");}),ls3=I11((Vp4,us4)=>{us4.exports=cs3,cs3.sync=Oc3;var as3=j8("fs");function cs3(t20,e5,r5){as3.stat(t20,function(n10,s10){r5(n10,n10?!1:ds4(s10,e5));});}i7(cs3,"isexe");function Oc3(t20,e5){return ds4(as3.statSync(t20),e5)}i7(Oc3,"sync");function ds4(t20,e5){return t20.isFile()&&jc(t20,e5)}i7(ds4,"checkStat");function jc(t20,e5){var r5=t20.mode,n10=t20.uid,s10=t20.gid,o10=e5.uid!==void 0?e5.uid:process.getuid&&process.getuid(),a5=e5.gid!==void 0?e5.gid:process.getgid&&process.getgid(),c7=parseInt("100",8),p7=parseInt("010",8),l7=parseInt("001",8),f11=c7|p7,x8=r5&l7||r5&p7&&s10===a5||r5&c7&&n10===o10||r5&f11&&o10===0;return x8}i7(jc,"checkMode");}),fs11=I11((Wp3,ps4)=>{j8("fs");var wt8;process.platform==="win32"||global.TESTING_WINDOWS?wt8=is4():wt8=ls3(),ps4.exports=ur5,ur5.sync=Rc;function ur5(t20,e5,r5){if(typeof e5=="function"&&(r5=e5,e5={}),!r5){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n10,s10){ur5(t20,e5||{},function(o10,a5){o10?s10(o10):n10(a5);});})}wt8(t20,e5||{},function(n10,s10){n10&&(n10.code==="EACCES"||e5&&e5.ignoreErrors)&&(n10=null,s10=!1),r5(n10,s10);});}i7(ur5,"isexe");function Rc(t20,e5){try{return wt8.sync(t20,e5||{})}catch(r5){if(e5&&e5.ignoreErrors||r5.code==="EACCES")return !1;throw r5}}i7(Rc,"sync");}),vs4=I11((Gp4,bs4)=>{var Ae7=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ms3=j8("path"),Nc2=Ae7?";":":",hs2=fs11(),ys3=i7(t20=>Object.assign(new Error(`not found: ${t20}`),{code:"ENOENT"}),"getNotFoundError"),gs2=i7((t20,e5)=>{let r5=e5.colon||Nc2,n10=t20.match(/\//)||Ae7&&t20.match(/\\/)?[""]:[...Ae7?[process.cwd()]:[],...(e5.path||process.env.PATH||"").split(r5)],s10=Ae7?e5.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o10=Ae7?s10.split(r5):[""];return Ae7&&t20.indexOf(".")!==-1&&o10[0]!==""&&o10.unshift(""),{pathEnv:n10,pathExt:o10,pathExtExe:s10}},"getPathInfo"),xs4=i7((t20,e5,r5)=>{typeof e5=="function"&&(r5=e5,e5={}),e5||(e5={});let{pathEnv:n10,pathExt:s10,pathExtExe:o10}=gs2(t20,e5),a5=[],c7=i7(l7=>new Promise((f11,x8)=>{if(l7===n10.length)return e5.all&&a5.length?f11(a5):x8(ys3(t20));let w8=n10[l7],_11=/^".*"$/.test(w8)?w8.slice(1,-1):w8,C10=ms3.join(_11,t20),S8=!_11&&/^\.[\\\/]/.test(t20)?t20.slice(0,2)+C10:C10;f11(p7(S8,l7,0));}),"step"),p7=i7((l7,f11,x8)=>new Promise((w8,_11)=>{if(x8===s10.length)return w8(c7(f11+1));let C10=s10[x8];hs2(l7+C10,{pathExt:o10},(S8,P14)=>{if(!S8&&P14)if(e5.all)a5.push(l7+C10);else return w8(l7+C10);return w8(p7(l7,f11,x8+1))});}),"subStep");return r5?c7(0).then(l7=>r5(null,l7),r5):c7(0)},"which"),Zc2=i7((t20,e5)=>{e5=e5||{};let{pathEnv:r5,pathExt:n10,pathExtExe:s10}=gs2(t20,e5),o10=[];for(let a5=0;a5<r5.length;a5++){let c7=r5[a5],p7=/^".*"$/.test(c7)?c7.slice(1,-1):c7,l7=ms3.join(p7,t20),f11=!p7&&/^\.[\\\/]/.test(t20)?t20.slice(0,2)+l7:l7;for(let x8=0;x8<n10.length;x8++){let w8=f11+n10[x8];try{if(hs2.sync(w8,{pathExt:s10}))if(e5.all)o10.push(w8);else return w8}catch{}}}if(e5.all&&o10.length)return o10;if(e5.nothrow)return null;throw ys3(t20)},"whichSync");bs4.exports=xs4,xs4.sync=Zc2;}),ws2=I11((zp4,lr6)=>{var _s3=i7((t20={})=>{let e5=t20.env||process.env;return (t20.platform||process.platform)!=="win32"?"PATH":Object.keys(e5).reverse().find(n10=>n10.toUpperCase()==="PATH")||"Path"},"pathKey");lr6.exports=_s3,lr6.exports.default=_s3;}),Ss3=I11((Yp3,Is3)=>{var ks3=j8("path"),Mc=vs4(),Lc=ws2();function Ts4(t20,e5){let r5=t20.options.env||process.env,n10=process.cwd(),s10=t20.options.cwd!=null,o10=s10&&process.chdir!==void 0&&!process.chdir.disabled;if(o10)try{process.chdir(t20.options.cwd);}catch{}let a5;try{a5=Mc.sync(t20.command,{path:r5[Lc({env:r5})],pathExt:e5?ks3.delimiter:void 0});}catch{}finally{o10&&process.chdir(n10);}return a5&&(a5=ks3.resolve(s10?t20.options.cwd:"",a5)),a5}i7(Ts4,"resolveCommandAttempt");function Dc2(t20){return Ts4(t20)||Ts4(t20,!0)}i7(Dc2,"resolveCommand"),Is3.exports=Dc2;}),Es2=I11((Xp4,fr6)=>{var pr5=/([()\][%!^"`<>&|;, *?])/g;function Uc(t20){return t20=t20.replace(pr5,"^$1"),t20}i7(Uc,"escapeCommand");function $c(t20,e5){return t20=`${t20}`,t20=t20.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t20=t20.replace(/(?=(\\+?)?)\1$/,"$1$1"),t20=`"${t20}"`,t20=t20.replace(pr5,"^$1"),e5&&(t20=t20.replace(pr5,"^$1")),t20}i7($c,"escapeArgument"),fr6.exports.command=Uc,fr6.exports.argument=$c;}),Ps3=I11((ef3,Cs3)=>{Cs3.exports=/^#!(.*)/;}),Os5=I11((tf4,As2)=>{var Vc2=Ps3();As2.exports=(t20="")=>{let e5=t20.match(Vc2);if(!e5)return null;let[r5,n10]=e5[0].replace(/#! ?/,"").split(" "),s10=r5.split("/").pop();return s10==="env"?n10:n10?`${s10} ${n10}`:s10};}),Rs4=I11((rf3,js4)=>{var mr5=j8("fs"),Fc=Os5();function Bc(t20){let r5=Buffer.alloc(150),n10;try{n10=mr5.openSync(t20,"r"),mr5.readSync(n10,r5,0,150,0),mr5.closeSync(n10);}catch{}return Fc(r5.toString())}i7(Bc,"readShebang"),js4.exports=Bc;}),Ls3=I11((sf3,Ms3)=>{var Wc=j8("path"),Ns4=Ss3(),Zs6=Es2(),qc=Rs4(),Gc2=process.platform==="win32",Kc2=/\.(?:com|exe)$/i,zc=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jc(t20){t20.file=Ns4(t20);let e5=t20.file&&qc(t20.file);return e5?(t20.args.unshift(t20.file),t20.command=e5,Ns4(t20)):t20.file}i7(Jc,"detectShebang");function Yc(t20){if(!Gc2)return t20;let e5=Jc(t20),r5=!Kc2.test(e5);if(t20.options.forceShell||r5){let n10=zc.test(e5);t20.command=Wc.normalize(t20.command),t20.command=Zs6.command(t20.command),t20.args=t20.args.map(o10=>Zs6.argument(o10,n10));let s10=[t20.command].concat(t20.args).join(" ");t20.args=["/d","/s","/c",`"${s10}"`],t20.command=process.env.comspec||"cmd.exe",t20.options.windowsVerbatimArguments=!0;}return t20}i7(Yc,"parseNonShell");function Hc2(t20,e5,r5){e5&&!Array.isArray(e5)&&(r5=e5,e5=null),e5=e5?e5.slice(0):[],r5=Object.assign({},r5);let n10={command:t20,args:e5,options:r5,file:void 0,original:{command:t20,args:e5}};return r5.shell?n10:Yc(n10)}i7(Hc2,"parse"),Ms3.exports=Hc2;}),$s5=I11((af3,Us5)=>{var hr6=process.platform==="win32";function yr7(t20,e5){return Object.assign(new Error(`${e5} ${t20.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e5} ${t20.command}`,path:t20.command,spawnargs:t20.args})}i7(yr7,"notFoundError");function Xc(t20,e5){if(!hr6)return;let r5=t20.emit;t20.emit=function(n10,s10){if(n10==="exit"){let o10=Ds2(s10,e5);if(o10)return r5.call(t20,"error",o10)}return r5.apply(t20,arguments)};}i7(Xc,"hookChildProcess");function Ds2(t20,e5){return hr6&&t20===1&&!e5.file?yr7(e5.original,"spawn"):null}i7(Ds2,"verifyENOENT");function Qc(t20,e5){return hr6&&t20===1&&!e5.file?yr7(e5.original,"spawnSync"):null}i7(Qc,"verifyENOENTSync"),Us5.exports={hookChildProcess:Xc,verifyENOENT:Ds2,verifyENOENTSync:Qc,notFoundError:yr7};}),Bs3=I11((df2,Oe5)=>{var Vs3=j8("child_process"),gr6=Ls3(),xr7=$s5();function Fs4(t20,e5,r5){let n10=gr6(t20,e5,r5),s10=Vs3.spawn(n10.command,n10.args,n10.options);return xr7.hookChildProcess(s10,n10),s10}i7(Fs4,"spawn");function ed3(t20,e5,r5){let n10=gr6(t20,e5,r5),s10=Vs3.spawnSync(n10.command,n10.args,n10.options);return s10.error=s10.error||xr7.verifyENOENTSync(s10.status,n10),s10}i7(ed3,"spawnSync"),Oe5.exports=Fs4,Oe5.exports.spawn=Fs4,Oe5.exports.sync=ed3,Oe5.exports._parse=gr6,Oe5.exports._enoent=xr7;}),go5=I11((Zm3,yo5)=>{var{PassThrough:Xd2}=j8("stream");yo5.exports=function(){var t20=[],e5=new Xd2({objectMode:!0});return e5.setMaxListeners(0),e5.add=r5,e5.isEmpty=n10,e5.on("unpipe",s10),Array.prototype.slice.call(arguments).forEach(r5),e5;function r5(o10){return Array.isArray(o10)?(o10.forEach(r5),this):(t20.push(o10),o10.once("end",s10.bind(null,o10)),o10.once("error",e5.emit.bind(e5,"error")),o10.pipe(e5,{end:!1}),this)}function n10(){return t20.length==0}function s10(o10){t20=t20.filter(function(a5){return a5!==o10}),!t20.length&&e5.readable&&e5.end();}};});function Wr5(t20){return t20.startsWith("\\\\?\\")?t20:t20.replace(/\\/g,"/")}var Mo4=ln7(()=>{i7(Wr5,"slash");}),Bo6=I11((Oh3,Fo6)=>{var{sep:Cu3}=j8("path"),Pu3=i7(t20=>{for(let e5 of t20){let r5=/(\/|\\)/.exec(e5);if(r5!==null)return r5[0]}return Cu3},"determineSeparator");Fo6.exports=i7(function(e5,r5=Pu3(e5)){let[n10="",...s10]=e5;if(n10===""||s10.length===0)return "";let o10=n10.split(r5),a5=o10.length;for(let p7 of s10){let l7=p7.split(r5);for(let f11=0;f11<a5;f11++)l7[f11]!==o10[f11]&&(a5=f11);if(a5===0)return ""}let c7=o10.slice(0,a5).join(r5);return c7.endsWith(r5)?c7:c7+r5},"commonPathPrefix");}),Kr8,Ye8,Wo3=ln7(()=>{Kr8=class{static{i7(this,"Node");}value;next;constructor(e5){this.value=e5;}},Ye8=class{static{i7(this,"Queue");}#r;#t;#e;constructor(){this.clear();}enqueue(e5){let r5=new Kr8(e5);this.#r?(this.#t.next=r5,this.#t=r5):(this.#r=r5,this.#t=r5),this.#e++;}dequeue(){let e5=this.#r;if(e5)return this.#r=this.#r.next,this.#e--,e5.value}peek(){if(this.#r)return this.#r.value}clear(){this.#r=void 0,this.#t=void 0,this.#e=0;}get size(){return this.#e}*[Symbol.iterator](){let e5=this.#r;for(;e5;)yield e5.value,e5=e5.next;}*drain(){for(;this.#r;)yield this.dequeue();}};}),Ci2=I11((Yx,Ei3)=>{Ei3.exports=function(t20,e5){if(e5=e5||{},typeof t20!="function")throw new ee7("fetch must be a function");if(typeof e5!="object")throw new ee7("defaults must be an object");if(e5.retries!==void 0&&!Jt5(e5.retries))throw new ee7("retries must be a positive integer");if(e5.retryDelay!==void 0&&!Jt5(e5.retryDelay)&&typeof e5.retryDelay!="function")throw new ee7("retryDelay must be a positive integer or a function returning a positive integer");if(e5.retryOn!==void 0&&!Array.isArray(e5.retryOn)&&typeof e5.retryOn!="function")throw new ee7("retryOn property expects an array or function");var r5={retries:3,retryDelay:1e3,retryOn:[]};return e5=Object.assign(r5,e5),i7(function(s10,o10){var a5=e5.retries,c7=e5.retryDelay,p7=e5.retryOn;if(o10&&o10.retries!==void 0)if(Jt5(o10.retries))a5=o10.retries;else throw new ee7("retries must be a positive integer");if(o10&&o10.retryDelay!==void 0)if(Jt5(o10.retryDelay)||typeof o10.retryDelay=="function")c7=o10.retryDelay;else throw new ee7("retryDelay must be a positive integer or a function returning a positive integer");if(o10&&o10.retryOn)if(Array.isArray(o10.retryOn)||typeof o10.retryOn=="function")p7=o10.retryOn;else throw new ee7("retryOn property expects an array or function");return new Promise(function(l7,f11){var x8=i7(function(_11){var C10=typeof Request<"u"&&s10 instanceof Request?s10.clone():s10;t20(C10,o10).then(function(S8){if(Array.isArray(p7)&&p7.indexOf(S8.status)===-1)l7(S8);else if(typeof p7=="function")try{return Promise.resolve(p7(_11,null,S8)).then(function(P14){P14?w8(_11,null,S8):l7(S8);}).catch(f11)}catch(P14){f11(P14);}else _11<a5?w8(_11,null,S8):l7(S8);}).catch(function(S8){if(typeof p7=="function")try{Promise.resolve(p7(_11,S8,null)).then(function(P14){P14?w8(_11,S8,null):f11(S8);}).catch(function(P14){f11(P14);});}catch(P14){f11(P14);}else _11<a5?w8(_11,S8,null):f11(S8);});},"wrappedFetch");function w8(_11,C10,S8){var P14=typeof c7=="function"?c7(_11,C10,S8):c7;setTimeout(function(){x8(++_11);},P14);}i7(w8,"retry"),x8(0);})},"fetchRetry")};function Jt5(t20){return Number.isInteger(t20)&&t20>=0}i7(Jt5,"isPositiveInteger");function ee7(t20){this.name="ArgumentError",this.message=t20;}i7(ee7,"ArgumentError");}),gn7=J10(mn7(),1),yn5="telemetry-notification-date",xn8=i7(async()=>{await Oj2.get(yn5,null)||(Oj2.set(yn5,Date.now()),nE.log(`${hu.info("Attention:")} Storybook now collects completely anonymous telemetry regarding usage. This information is used to shape Storybook's roadmap and prioritize features.`),nE.log("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),nE.log(gn7.default.cyan("https://storybook.js.org/telemetry")),nE.log(""));},"notify");function bn4(t20){return t20.replace(/[-[/{}()*+?.\\^$|]/g,"\\$&")}i7(bn4,"regexpEscape");function vn5(t20=""){return t20.replace(/\u001B\[[0-9;]*m/g,"")}i7(vn5,"removeAnsiEscapeCodes");function Me9(t20,e5=qe8.sep){if(!t20)return t20;let r5=process.cwd().split(e5);for(;r5.length>1;){let n10=r5.join(e5),s10=new RegExp(bn4(n10),"gi");t20=t20.replace(s10,"$SNIP");let o10=r5.join(e5+e5),a5=new RegExp(bn4(o10),"gi");t20=t20.replace(a5,"$SNIP"),r5.pop();}return t20}i7(Me9,"cleanPaths");function ct5(t20,e5=qe8.sep){try{t20={...JSON.parse(JSON.stringify(t20)),message:vn5(t20.message),stack:vn5(t20.stack),cause:t20.cause,name:t20.name};let r5=Me9(JSON.stringify(t20),e5);return JSON.parse(r5)}catch(r5){return `Sanitization error: ${r5?.message}`}}i7(ct5,"sanitizeError");var Tn3=J10(kn5(),1);async function ea3(t20){try{return (await stat(t20)).isFile()}catch{return !1}}i7(ea3,"fileExists");async function er6(t20){for(let e5 of (0, Tn3.walkUp)(t20)){let r5=resolve(e5,"package.json");if(await ea3(r5))return r5}return null}i7(er6,"findPackagePath");async function In7(t20){let e5=await er6(t20);if(!e5)return null;try{let r5=await readFile(e5,{encoding:"utf8"});return JSON.parse(r5)}catch{return null}}i7(In7,"findPackage");var ut8="9.1.0-beta.0",Pe6=J10(Yn5(),1),es5=J10(Xn5(),1);function Qn5({code:t20,category:e5}){let r5=String(t20).padStart(4,"0");return `SB_${e5}_${r5}`}i7(Qn5,"parseErrorCode");var bt7=class t19 extends Error{constructor(r5){super(t19.getFullMessage(r5)),this.data={},this.fromStorybook=!0,this.category=r5.category,this.documentation=r5.documentation??!1,this.code=r5.code;}static{i7(this,"StorybookError");}get fullErrorCode(){return Qn5({code:this.code,category:this.category})}get name(){let r5=this.constructor.name;return `${this.fullErrorCode} (${r5})`}static getFullMessage({documentation:r5,code:n10,category:s10,message:o10}){let a5;return r5===!0?a5=`https://storybook.js.org/error/${Qn5({code:n10,category:s10})}`:typeof r5=="string"?a5=r5:Array.isArray(r5)&&(a5=`
|
|
2740
|
+
`)),a5+=x8+n10[p7+1];}),a5}i7(Hn4,"dedent"),Be7.dedent=Hn4,Be7.default=Hn4;}),is4=I11((Up4,os8)=>{os8.exports=ss3,ss3.sync=Ac;var rs2=j8("fs");function Pc(t20,e5){var r5=e5.pathExt!==void 0?e5.pathExt:process.env.PATHEXT;if(!r5||(r5=r5.split(";"),r5.indexOf("")!==-1))return !0;for(var n10=0;n10<r5.length;n10++){var s10=r5[n10].toLowerCase();if(s10&&t20.substr(-s10.length).toLowerCase()===s10)return !0}return !1}i7(Pc,"checkPathExt");function ns3(t20,e5,r5){return !t20.isSymbolicLink()&&!t20.isFile()?!1:Pc(e5,r5)}i7(ns3,"checkStat");function ss3(t20,e5,r5){rs2.stat(t20,function(n10,s10){r5(n10,n10?!1:ns3(s10,t20,e5));});}i7(ss3,"isexe");function Ac(t20,e5){return ns3(rs2.statSync(t20),t20,e5)}i7(Ac,"sync");}),ls3=I11((Vp4,us4)=>{us4.exports=cs3,cs3.sync=Oc3;var as3=j8("fs");function cs3(t20,e5,r5){as3.stat(t20,function(n10,s10){r5(n10,n10?!1:ds4(s10,e5));});}i7(cs3,"isexe");function Oc3(t20,e5){return ds4(as3.statSync(t20),e5)}i7(Oc3,"sync");function ds4(t20,e5){return t20.isFile()&&jc(t20,e5)}i7(ds4,"checkStat");function jc(t20,e5){var r5=t20.mode,n10=t20.uid,s10=t20.gid,o10=e5.uid!==void 0?e5.uid:process.getuid&&process.getuid(),a5=e5.gid!==void 0?e5.gid:process.getgid&&process.getgid(),c7=parseInt("100",8),p7=parseInt("010",8),l7=parseInt("001",8),f11=c7|p7,x8=r5&l7||r5&p7&&s10===a5||r5&c7&&n10===o10||r5&f11&&o10===0;return x8}i7(jc,"checkMode");}),fs11=I11((Wp3,ps4)=>{j8("fs");var wt8;process.platform==="win32"||global.TESTING_WINDOWS?wt8=is4():wt8=ls3(),ps4.exports=ur5,ur5.sync=Rc;function ur5(t20,e5,r5){if(typeof e5=="function"&&(r5=e5,e5={}),!r5){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n10,s10){ur5(t20,e5||{},function(o10,a5){o10?s10(o10):n10(a5);});})}wt8(t20,e5||{},function(n10,s10){n10&&(n10.code==="EACCES"||e5&&e5.ignoreErrors)&&(n10=null,s10=!1),r5(n10,s10);});}i7(ur5,"isexe");function Rc(t20,e5){try{return wt8.sync(t20,e5||{})}catch(r5){if(e5&&e5.ignoreErrors||r5.code==="EACCES")return !1;throw r5}}i7(Rc,"sync");}),vs4=I11((Gp4,bs4)=>{var Ae7=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ms3=j8("path"),Nc2=Ae7?";":":",hs2=fs11(),ys3=i7(t20=>Object.assign(new Error(`not found: ${t20}`),{code:"ENOENT"}),"getNotFoundError"),gs2=i7((t20,e5)=>{let r5=e5.colon||Nc2,n10=t20.match(/\//)||Ae7&&t20.match(/\\/)?[""]:[...Ae7?[process.cwd()]:[],...(e5.path||process.env.PATH||"").split(r5)],s10=Ae7?e5.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o10=Ae7?s10.split(r5):[""];return Ae7&&t20.indexOf(".")!==-1&&o10[0]!==""&&o10.unshift(""),{pathEnv:n10,pathExt:o10,pathExtExe:s10}},"getPathInfo"),xs4=i7((t20,e5,r5)=>{typeof e5=="function"&&(r5=e5,e5={}),e5||(e5={});let{pathEnv:n10,pathExt:s10,pathExtExe:o10}=gs2(t20,e5),a5=[],c7=i7(l7=>new Promise((f11,x8)=>{if(l7===n10.length)return e5.all&&a5.length?f11(a5):x8(ys3(t20));let w8=n10[l7],_11=/^".*"$/.test(w8)?w8.slice(1,-1):w8,C10=ms3.join(_11,t20),S8=!_11&&/^\.[\\\/]/.test(t20)?t20.slice(0,2)+C10:C10;f11(p7(S8,l7,0));}),"step"),p7=i7((l7,f11,x8)=>new Promise((w8,_11)=>{if(x8===s10.length)return w8(c7(f11+1));let C10=s10[x8];hs2(l7+C10,{pathExt:o10},(S8,P14)=>{if(!S8&&P14)if(e5.all)a5.push(l7+C10);else return w8(l7+C10);return w8(p7(l7,f11,x8+1))});}),"subStep");return r5?c7(0).then(l7=>r5(null,l7),r5):c7(0)},"which"),Zc2=i7((t20,e5)=>{e5=e5||{};let{pathEnv:r5,pathExt:n10,pathExtExe:s10}=gs2(t20,e5),o10=[];for(let a5=0;a5<r5.length;a5++){let c7=r5[a5],p7=/^".*"$/.test(c7)?c7.slice(1,-1):c7,l7=ms3.join(p7,t20),f11=!p7&&/^\.[\\\/]/.test(t20)?t20.slice(0,2)+l7:l7;for(let x8=0;x8<n10.length;x8++){let w8=f11+n10[x8];try{if(hs2.sync(w8,{pathExt:s10}))if(e5.all)o10.push(w8);else return w8}catch{}}}if(e5.all&&o10.length)return o10;if(e5.nothrow)return null;throw ys3(t20)},"whichSync");bs4.exports=xs4,xs4.sync=Zc2;}),ws2=I11((zp4,lr6)=>{var _s3=i7((t20={})=>{let e5=t20.env||process.env;return (t20.platform||process.platform)!=="win32"?"PATH":Object.keys(e5).reverse().find(n10=>n10.toUpperCase()==="PATH")||"Path"},"pathKey");lr6.exports=_s3,lr6.exports.default=_s3;}),Ss3=I11((Yp3,Is3)=>{var ks3=j8("path"),Mc=vs4(),Lc=ws2();function Ts4(t20,e5){let r5=t20.options.env||process.env,n10=process.cwd(),s10=t20.options.cwd!=null,o10=s10&&process.chdir!==void 0&&!process.chdir.disabled;if(o10)try{process.chdir(t20.options.cwd);}catch{}let a5;try{a5=Mc.sync(t20.command,{path:r5[Lc({env:r5})],pathExt:e5?ks3.delimiter:void 0});}catch{}finally{o10&&process.chdir(n10);}return a5&&(a5=ks3.resolve(s10?t20.options.cwd:"",a5)),a5}i7(Ts4,"resolveCommandAttempt");function Dc2(t20){return Ts4(t20)||Ts4(t20,!0)}i7(Dc2,"resolveCommand"),Is3.exports=Dc2;}),Es2=I11((Xp4,fr6)=>{var pr5=/([()\][%!^"`<>&|;, *?])/g;function Uc(t20){return t20=t20.replace(pr5,"^$1"),t20}i7(Uc,"escapeCommand");function $c(t20,e5){return t20=`${t20}`,t20=t20.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t20=t20.replace(/(?=(\\+?)?)\1$/,"$1$1"),t20=`"${t20}"`,t20=t20.replace(pr5,"^$1"),e5&&(t20=t20.replace(pr5,"^$1")),t20}i7($c,"escapeArgument"),fr6.exports.command=Uc,fr6.exports.argument=$c;}),Ps3=I11((ef3,Cs3)=>{Cs3.exports=/^#!(.*)/;}),Os5=I11((tf4,As2)=>{var Vc2=Ps3();As2.exports=(t20="")=>{let e5=t20.match(Vc2);if(!e5)return null;let[r5,n10]=e5[0].replace(/#! ?/,"").split(" "),s10=r5.split("/").pop();return s10==="env"?n10:n10?`${s10} ${n10}`:s10};}),Rs4=I11((rf3,js4)=>{var mr5=j8("fs"),Fc=Os5();function Bc(t20){let r5=Buffer.alloc(150),n10;try{n10=mr5.openSync(t20,"r"),mr5.readSync(n10,r5,0,150,0),mr5.closeSync(n10);}catch{}return Fc(r5.toString())}i7(Bc,"readShebang"),js4.exports=Bc;}),Ls3=I11((sf3,Ms3)=>{var Wc=j8("path"),Ns4=Ss3(),Zs6=Es2(),qc=Rs4(),Gc2=process.platform==="win32",Kc2=/\.(?:com|exe)$/i,zc=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jc(t20){t20.file=Ns4(t20);let e5=t20.file&&qc(t20.file);return e5?(t20.args.unshift(t20.file),t20.command=e5,Ns4(t20)):t20.file}i7(Jc,"detectShebang");function Yc(t20){if(!Gc2)return t20;let e5=Jc(t20),r5=!Kc2.test(e5);if(t20.options.forceShell||r5){let n10=zc.test(e5);t20.command=Wc.normalize(t20.command),t20.command=Zs6.command(t20.command),t20.args=t20.args.map(o10=>Zs6.argument(o10,n10));let s10=[t20.command].concat(t20.args).join(" ");t20.args=["/d","/s","/c",`"${s10}"`],t20.command=process.env.comspec||"cmd.exe",t20.options.windowsVerbatimArguments=!0;}return t20}i7(Yc,"parseNonShell");function Hc2(t20,e5,r5){e5&&!Array.isArray(e5)&&(r5=e5,e5=null),e5=e5?e5.slice(0):[],r5=Object.assign({},r5);let n10={command:t20,args:e5,options:r5,file:void 0,original:{command:t20,args:e5}};return r5.shell?n10:Yc(n10)}i7(Hc2,"parse"),Ms3.exports=Hc2;}),$s5=I11((af3,Us5)=>{var hr6=process.platform==="win32";function yr7(t20,e5){return Object.assign(new Error(`${e5} ${t20.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e5} ${t20.command}`,path:t20.command,spawnargs:t20.args})}i7(yr7,"notFoundError");function Xc(t20,e5){if(!hr6)return;let r5=t20.emit;t20.emit=function(n10,s10){if(n10==="exit"){let o10=Ds2(s10,e5);if(o10)return r5.call(t20,"error",o10)}return r5.apply(t20,arguments)};}i7(Xc,"hookChildProcess");function Ds2(t20,e5){return hr6&&t20===1&&!e5.file?yr7(e5.original,"spawn"):null}i7(Ds2,"verifyENOENT");function Qc(t20,e5){return hr6&&t20===1&&!e5.file?yr7(e5.original,"spawnSync"):null}i7(Qc,"verifyENOENTSync"),Us5.exports={hookChildProcess:Xc,verifyENOENT:Ds2,verifyENOENTSync:Qc,notFoundError:yr7};}),Bs3=I11((df2,Oe5)=>{var Vs3=j8("child_process"),gr6=Ls3(),xr7=$s5();function Fs4(t20,e5,r5){let n10=gr6(t20,e5,r5),s10=Vs3.spawn(n10.command,n10.args,n10.options);return xr7.hookChildProcess(s10,n10),s10}i7(Fs4,"spawn");function ed3(t20,e5,r5){let n10=gr6(t20,e5,r5),s10=Vs3.spawnSync(n10.command,n10.args,n10.options);return s10.error=s10.error||xr7.verifyENOENTSync(s10.status,n10),s10}i7(ed3,"spawnSync"),Oe5.exports=Fs4,Oe5.exports.spawn=Fs4,Oe5.exports.sync=ed3,Oe5.exports._parse=gr6,Oe5.exports._enoent=xr7;}),go5=I11((Zm3,yo5)=>{var{PassThrough:Xd2}=j8("stream");yo5.exports=function(){var t20=[],e5=new Xd2({objectMode:!0});return e5.setMaxListeners(0),e5.add=r5,e5.isEmpty=n10,e5.on("unpipe",s10),Array.prototype.slice.call(arguments).forEach(r5),e5;function r5(o10){return Array.isArray(o10)?(o10.forEach(r5),this):(t20.push(o10),o10.once("end",s10.bind(null,o10)),o10.once("error",e5.emit.bind(e5,"error")),o10.pipe(e5,{end:!1}),this)}function n10(){return t20.length==0}function s10(o10){t20=t20.filter(function(a5){return a5!==o10}),!t20.length&&e5.readable&&e5.end();}};});function Wr5(t20){return t20.startsWith("\\\\?\\")?t20:t20.replace(/\\/g,"/")}var Mo4=ln7(()=>{i7(Wr5,"slash");}),Bo6=I11((Oh3,Fo6)=>{var{sep:Cu3}=j8("path"),Pu3=i7(t20=>{for(let e5 of t20){let r5=/(\/|\\)/.exec(e5);if(r5!==null)return r5[0]}return Cu3},"determineSeparator");Fo6.exports=i7(function(e5,r5=Pu3(e5)){let[n10="",...s10]=e5;if(n10===""||s10.length===0)return "";let o10=n10.split(r5),a5=o10.length;for(let p7 of s10){let l7=p7.split(r5);for(let f11=0;f11<a5;f11++)l7[f11]!==o10[f11]&&(a5=f11);if(a5===0)return ""}let c7=o10.slice(0,a5).join(r5);return c7.endsWith(r5)?c7:c7+r5},"commonPathPrefix");}),Kr8,Ye8,Wo3=ln7(()=>{Kr8=class{static{i7(this,"Node");}value;next;constructor(e5){this.value=e5;}},Ye8=class{static{i7(this,"Queue");}#r;#t;#e;constructor(){this.clear();}enqueue(e5){let r5=new Kr8(e5);this.#r?(this.#t.next=r5,this.#t=r5):(this.#r=r5,this.#t=r5),this.#e++;}dequeue(){let e5=this.#r;if(e5)return this.#r=this.#r.next,this.#e--,e5.value}peek(){if(this.#r)return this.#r.value}clear(){this.#r=void 0,this.#t=void 0,this.#e=0;}get size(){return this.#e}*[Symbol.iterator](){let e5=this.#r;for(;e5;)yield e5.value,e5=e5.next;}*drain(){for(;this.#r;)yield this.dequeue();}};}),Ci2=I11((Yx,Ei3)=>{Ei3.exports=function(t20,e5){if(e5=e5||{},typeof t20!="function")throw new ee7("fetch must be a function");if(typeof e5!="object")throw new ee7("defaults must be an object");if(e5.retries!==void 0&&!Jt5(e5.retries))throw new ee7("retries must be a positive integer");if(e5.retryDelay!==void 0&&!Jt5(e5.retryDelay)&&typeof e5.retryDelay!="function")throw new ee7("retryDelay must be a positive integer or a function returning a positive integer");if(e5.retryOn!==void 0&&!Array.isArray(e5.retryOn)&&typeof e5.retryOn!="function")throw new ee7("retryOn property expects an array or function");var r5={retries:3,retryDelay:1e3,retryOn:[]};return e5=Object.assign(r5,e5),i7(function(s10,o10){var a5=e5.retries,c7=e5.retryDelay,p7=e5.retryOn;if(o10&&o10.retries!==void 0)if(Jt5(o10.retries))a5=o10.retries;else throw new ee7("retries must be a positive integer");if(o10&&o10.retryDelay!==void 0)if(Jt5(o10.retryDelay)||typeof o10.retryDelay=="function")c7=o10.retryDelay;else throw new ee7("retryDelay must be a positive integer or a function returning a positive integer");if(o10&&o10.retryOn)if(Array.isArray(o10.retryOn)||typeof o10.retryOn=="function")p7=o10.retryOn;else throw new ee7("retryOn property expects an array or function");return new Promise(function(l7,f11){var x8=i7(function(_11){var C10=typeof Request<"u"&&s10 instanceof Request?s10.clone():s10;t20(C10,o10).then(function(S8){if(Array.isArray(p7)&&p7.indexOf(S8.status)===-1)l7(S8);else if(typeof p7=="function")try{return Promise.resolve(p7(_11,null,S8)).then(function(P14){P14?w8(_11,null,S8):l7(S8);}).catch(f11)}catch(P14){f11(P14);}else _11<a5?w8(_11,null,S8):l7(S8);}).catch(function(S8){if(typeof p7=="function")try{Promise.resolve(p7(_11,S8,null)).then(function(P14){P14?w8(_11,S8,null):f11(S8);}).catch(function(P14){f11(P14);});}catch(P14){f11(P14);}else _11<a5?w8(_11,S8,null):f11(S8);});},"wrappedFetch");function w8(_11,C10,S8){var P14=typeof c7=="function"?c7(_11,C10,S8):c7;setTimeout(function(){x8(++_11);},P14);}i7(w8,"retry"),x8(0);})},"fetchRetry")};function Jt5(t20){return Number.isInteger(t20)&&t20>=0}i7(Jt5,"isPositiveInteger");function ee7(t20){this.name="ArgumentError",this.message=t20;}i7(ee7,"ArgumentError");}),gn7=J10(mn7(),1),yn5="telemetry-notification-date",xn8=i7(async()=>{await Oj2.get(yn5,null)||(Oj2.set(yn5,Date.now()),nE.log(`${hu.info("Attention:")} Storybook now collects completely anonymous telemetry regarding usage. This information is used to shape Storybook's roadmap and prioritize features.`),nE.log("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),nE.log(gn7.default.cyan("https://storybook.js.org/telemetry")),nE.log(""));},"notify");function bn4(t20){return t20.replace(/[-[/{}()*+?.\\^$|]/g,"\\$&")}i7(bn4,"regexpEscape");function vn5(t20=""){return t20.replace(/\u001B\[[0-9;]*m/g,"")}i7(vn5,"removeAnsiEscapeCodes");function Me9(t20,e5=qe8.sep){if(!t20)return t20;let r5=process.cwd().split(e5);for(;r5.length>1;){let n10=r5.join(e5),s10=new RegExp(bn4(n10),"gi");t20=t20.replace(s10,"$SNIP");let o10=r5.join(e5+e5),a5=new RegExp(bn4(o10),"gi");t20=t20.replace(a5,"$SNIP"),r5.pop();}return t20}i7(Me9,"cleanPaths");function ct5(t20,e5=qe8.sep){try{t20={...JSON.parse(JSON.stringify(t20)),message:vn5(t20.message),stack:vn5(t20.stack),cause:t20.cause,name:t20.name};let r5=Me9(JSON.stringify(t20),e5);return JSON.parse(r5)}catch(r5){return `Sanitization error: ${r5?.message}`}}i7(ct5,"sanitizeError");var Tn3=J10(kn5(),1);async function ea3(t20){try{return (await stat(t20)).isFile()}catch{return !1}}i7(ea3,"fileExists");async function er6(t20){for(let e5 of (0, Tn3.walkUp)(t20)){let r5=resolve(e5,"package.json");if(await ea3(r5))return r5}return null}i7(er6,"findPackagePath");async function In7(t20){let e5=await er6(t20);if(!e5)return null;try{let r5=await readFile(e5,{encoding:"utf8"});return JSON.parse(r5)}catch{return null}}i7(In7,"findPackage");var ut8="9.1.0-beta.2",Pe6=J10(Yn5(),1),es5=J10(Xn5(),1);function Qn5({code:t20,category:e5}){let r5=String(t20).padStart(4,"0");return `SB_${e5}_${r5}`}i7(Qn5,"parseErrorCode");var bt7=class t19 extends Error{constructor(r5){super(t19.getFullMessage(r5)),this.data={},this.fromStorybook=!0,this.category=r5.category,this.documentation=r5.documentation??!1,this.code=r5.code;}static{i7(this,"StorybookError");}get fullErrorCode(){return Qn5({code:this.code,category:this.category})}get name(){let r5=this.constructor.name;return `${this.fullErrorCode} (${r5})`}static getFullMessage({documentation:r5,code:n10,category:s10,message:o10}){let a5;return r5===!0?a5=`https://storybook.js.org/error/${Qn5({code:n10,category:s10})}`:typeof r5=="string"?a5=r5:Array.isArray(r5)&&(a5=`
|
|
2741
2741
|
${r5.map(c7=>` - ${c7}`).join(`
|
|
2742
2742
|
`)}`),`${o10}${a5!=null?`
|
|
2743
2743
|
|
|
@@ -2783,7 +2783,7 @@ ${import_picocolors5.default.gray(f10)} ${t20}
|
|
|
2783
2783
|
`)}var formatLogMessage=args=>args.map(arg=>typeof arg=="string"?arg:typeof arg=="object"?JSON.stringify(arg,null,2):String(arg)).join(" ");function createLogger(level,logFn,prefix2){return function(...args){let message=formatLogMessage(args);if(logTracker.addLog(level,message),level==="prompt"&&(level="info"),shouldLog(level)){let formattedMessage=prefix2?`${prefix2} ${message}`:message;logFn(formattedMessage);}}}var debug=createLogger("debug",function(message){shouldLog("trace")&&(message+=getMinimalTrace()),LOG_FUNCTIONS.log()(message);},"[DEBUG]"),log=createLogger("info",(...args)=>LOG_FUNCTIONS.log()(...args)),info=createLogger("info",(...args)=>LOG_FUNCTIONS.info()(...args)),warn=createLogger("warn",(...args)=>LOG_FUNCTIONS.warn()(...args)),error=createLogger("error",(...args)=>LOG_FUNCTIONS.error()(...args)),logBox=(message,options)=>{shouldLog("info")&&(logTracker.addLog("info",message),isClackEnabled()?(options?.title&&log(options.title),log(message)):console.log(boxen(message,{borderStyle:"round",padding:1,borderColor:"#F1618C",...options})));},intro=message=>{logTracker.addLog("info",message),console.log(`
|
|
2784
2784
|
`),LOG_FUNCTIONS.intro()(message);},outro=message=>{logTracker.addLog("info",message),LOG_FUNCTIONS.outro()(message),console.log(`
|
|
2785
2785
|
`);},step=message=>{logTracker.addLog("info",message),LOG_FUNCTIONS.step()(message);},SYMBOLS={success:CLI_COLORS.success("\u2714"),error:CLI_COLORS.error("\u2715")};import_npmlog.default.stream=process.stdout;function hex(hexColor){if(!/^#?[0-9A-Fa-f]{6}$/.test(hexColor))throw new Error("Invalid hex color. It must be a 6-character hex code.");hexColor.startsWith("#")&&(hexColor=hexColor.slice(1));let r5=parseInt(hexColor.slice(0,2),16),g5=parseInt(hexColor.slice(2,4),16),b8=parseInt(hexColor.slice(4,6),16);return text=>`\x1B[38;2;${r5};${g5};${b8}m${text}\x1B[39m`}var colors={pink:hex("#F1618C"),purple:hex("#B57EE5"),orange:hex("#F3AD38"),green:hex("#A2E05E"),blue:hex("#6DABF5"),red:hex("#F16161"),gray:hex("#B8C2CC")},logger={...logger_exports,verbose:message=>debug(message),info:message=>isClackEnabled()?info(message):import_npmlog.default.info("",message),plain:message=>log(message),line:(count=1)=>log(`${Array(count-1).fill(`
|
|
2786
|
-
`)}`),warn:message=>warn(message),trace:({message,time})=>debug(`${message} (${colors.purple((0, import_pretty_hrtime.default)(time))})`),setLevel:(level="info")=>{import_npmlog.default.level=level,setLogLevel(level);},error:message=>{let msg;message instanceof Error&&message.stack?msg=message.stack.toString():msg=message.toString(),error(msg.replace(message.toString(),colors.red(message.toString())).replaceAll(process.cwd(),"."));}};var pathExists4=async path12=>stat(path12).then(()=>!0).catch(()=>!1);async function configureMain({addons,extensions:extensions2=["js","jsx","mjs","ts","tsx"],storybookConfigFolder,language,frameworkPackage,prefixes=[],...custom2}){let srcPath=resolve(storybookConfigFolder,"../src"),prefix2=await pathExists4(srcPath)?"../src":"../stories",
|
|
2786
|
+
`)}`),warn:message=>warn(message),trace:({message,time})=>debug(`${message} (${colors.purple((0, import_pretty_hrtime.default)(time))})`),setLevel:(level="info")=>{import_npmlog.default.level=level,setLogLevel(level);},error:message=>{let msg;message instanceof Error&&message.stack?msg=message.stack.toString():msg=message.toString(),error(msg.replace(message.toString(),colors.red(message.toString())).replaceAll(process.cwd(),"."));}};var pathExists4=async path12=>stat(path12).then(()=>!0).catch(()=>!1);async function configureMain({addons,extensions:extensions2=["js","jsx","mjs","ts","tsx"],storybookConfigFolder,language,frameworkPackage,prefixes=[],features=[],...custom2}){let srcPath=resolve(storybookConfigFolder,"../src"),prefix2=await pathExists4(srcPath)?"../src":"../stories",stories=features.includes("docs")?[`${prefix2}/**/*.mdx`]:[];stories.push(`${prefix2}/**/*.stories.@(${extensions2.join("|")})`);let config={stories,addons,...custom2},isTypescript=language==="typescript",mainConfigTemplate=dedent`<<import>><<prefix>>const config<<type>> = <<mainContents>>;
|
|
2787
2787
|
export default config;`;frameworkPackage||(mainConfigTemplate=mainConfigTemplate.replace("<<import>>","").replace("<<type>>",""),logger.warn("Could not find framework package name"));let mainContents=JSON.stringify(config,null,2).replace(/['"]%%/g,"").replace(/%%['"]/g,""),imports=[],finalPrefixes=[...prefixes];custom2.framework?.name.includes("path.dirname(")&&imports.push("import path from 'node:path';"),isTypescript?imports.push(`import type { StorybookConfig } from '${frameworkPackage}';`):finalPrefixes.push(`/** @type { import('${frameworkPackage}').StorybookConfig } */`);let mainJsContents="";mainJsContents=mainConfigTemplate.replace("<<import>>",`${imports.join(`
|
|
2788
2788
|
|
|
2789
2789
|
`)}
|
|
@@ -2828,7 +2828,7 @@ ${import_picocolors5.default.gray(f10)} ${t20}
|
|
|
2828
2828
|
*/
|
|
2829
2829
|
function getAbsolutePath(value: string): any {
|
|
2830
2830
|
return dirname(require.resolve(join(value, 'package.json')))
|
|
2831
|
-
}`]:[];await configureMain({framework:{name:frameworkPackagePath,options:options.framework||{}},frameworkPackage,prefixes,storybookConfigFolder,addons:shouldApplyRequireWrapperOnPackageNames?addons.map(addon=>applyAddonRequireWrapper(addon)):addons,extensions:extensions2,language,...staticDir?{staticDirs:[join("..",staticDir)]}:null,...extraMain,...type!=="framework"?{core:{builder:builderInclude}}:{}});}if(addPreviewFile&&await configurePreview({frameworkPreviewParts,storybookConfigFolder,language,frameworkPackage}),addScripts&&packageManager.addStorybookCommandInScripts({port:6006}),addComponents){let finalFramework=framework||frameworkPackages[frameworkPackage]||frameworkPackage,templateLocation=hasFrameworkTemplates(finalFramework)?finalFramework:rendererId;if(!templateLocation)throw new Error(`Could not find template location for ${framework} or ${rendererId}`);await copyTemplateFiles({templateLocation,packageManager,language,destination:componentsDestinationPath,commonAssetsDir:join(getCliDir(),"rendererAssets","common"),features});}}function getCliDir(){return dirname(__require.resolve("create-storybook/package.json"))}var generator=async(packageManager,npmOptions,options,commandOptions)=>{let angularJSON=new AngularJSON;if(!angularJSON.projects||angularJSON.projects&&Object.keys(angularJSON.projects).length===0)throw new Error("Storybook was not able to find any projects in your angular.json file. Are you sure this is an Angular CLI project?");if(angularJSON.projectsWithoutStorybook.length===0)throw new Error("Every project in your workspace is already set up with Storybook. There is nothing to do!");let angularProjectName=await angularJSON.getProjectName();commandLog(`Adding Storybook support to your "${angularProjectName}" project`);let angularProject=angularJSON.getProjectSettingsByName(angularProjectName);if(!angularProject)throw new Error(`Somehow we were not able to retrieve the "${angularProjectName}" project in your angular.json file. This is likely a bug in Storybook, please file an issue.`);let{root,projectType}=angularProject,{projects}=angularJSON,useCompodoc=commandOptions?.yes?!0:await promptForCompoDocs(),storybookFolder=root?`${root}/.storybook`:".storybook";angularJSON.addStorybookEntries({angularProjectName,storybookFolder,useCompodoc,root}),angularJSON.write();let angularVersion=packageManager.getDependencyVersion("@angular/core");await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5",...useCompodoc&&{frameworkPreviewParts:{prefix:compoDocPreviewPrefix}}},"angular",{extraPackages:[angularVersion?`@angular-devkit/build-angular@${angularVersion}`:"@angular-devkit/build-angular",...useCompodoc?["@compodoc/compodoc","@storybook/addon-docs"]:[]],addScripts:!1,componentsDestinationPath:root?`${root}/src/stories`:void 0,storybookConfigFolder:storybookFolder,webpackCompiler:()=>{}},"angular"),Object.keys(projects).length===1&&packageManager.addScripts({storybook:`ng run ${angularProjectName}:storybook`,"build-storybook":`ng run ${angularProjectName}:build-storybook`});let projectTypeValue=projectType||"application";projectTypeValue!=="application"&&projectTypeValue!=="library"&&(projectTypeValue="application");let templateDir=join(getCliDir(),"templates","angular",projectTypeValue);return templateDir&©Template(templateDir,root||void 0),{projectName:angularProjectName,configDir:storybookFolder}},ANGULAR_default=generator;var generator2=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5"},"ember",{staticDir:"dist"},"ember");},EMBER_default=generator2;var generator3=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,options,"html",{webpackCompiler:({builder})=>builder==="webpack5"?"swc":void 0});},HTML_default=generator3;var generator4=async(packageManager,npmOptions,options)=>{let staticDir;existsSync(join(process.cwd(),"public"))&&(staticDir="public"),await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5"},"react",{staticDir,webpackCompiler:()=>{}},"nextjs");},NEXTJS_default=generator4;var generator5=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,{...npmOptions},options,"vue3",{extraPackages:async()=>["@nuxtjs/storybook"],installFrameworkPackages:!1,componentsDestinationPath:"./components",extraMain:{stories:
|
|
2831
|
+
}`]:[];await configureMain({framework:{name:frameworkPackagePath,options:options.framework||{}},features,frameworkPackage,prefixes,storybookConfigFolder,addons:shouldApplyRequireWrapperOnPackageNames?addons.map(addon=>applyAddonRequireWrapper(addon)):addons,extensions:extensions2,language,...staticDir?{staticDirs:[join("..",staticDir)]}:null,...extraMain,...type!=="framework"?{core:{builder:builderInclude}}:{}});}if(addPreviewFile&&await configurePreview({frameworkPreviewParts,storybookConfigFolder,language,frameworkPackage}),addScripts&&packageManager.addStorybookCommandInScripts({port:6006}),addComponents){let finalFramework=framework||frameworkPackages[frameworkPackage]||frameworkPackage,templateLocation=hasFrameworkTemplates(finalFramework)?finalFramework:rendererId;if(!templateLocation)throw new Error(`Could not find template location for ${framework} or ${rendererId}`);await copyTemplateFiles({templateLocation,packageManager,language,destination:componentsDestinationPath,commonAssetsDir:join(getCliDir(),"rendererAssets","common"),features});}}function getCliDir(){return dirname(__require.resolve("create-storybook/package.json"))}var generator=async(packageManager,npmOptions,options,commandOptions)=>{let angularJSON=new AngularJSON;if(!angularJSON.projects||angularJSON.projects&&Object.keys(angularJSON.projects).length===0)throw new Error("Storybook was not able to find any projects in your angular.json file. Are you sure this is an Angular CLI project?");if(angularJSON.projectsWithoutStorybook.length===0)throw new Error("Every project in your workspace is already set up with Storybook. There is nothing to do!");let angularProjectName=await angularJSON.getProjectName();commandLog(`Adding Storybook support to your "${angularProjectName}" project`);let angularProject=angularJSON.getProjectSettingsByName(angularProjectName);if(!angularProject)throw new Error(`Somehow we were not able to retrieve the "${angularProjectName}" project in your angular.json file. This is likely a bug in Storybook, please file an issue.`);let{root,projectType}=angularProject,{projects}=angularJSON,useCompodoc=commandOptions?.yes?!0:await promptForCompoDocs(),storybookFolder=root?`${root}/.storybook`:".storybook";angularJSON.addStorybookEntries({angularProjectName,storybookFolder,useCompodoc,root}),angularJSON.write();let angularVersion=packageManager.getDependencyVersion("@angular/core");await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5",...useCompodoc&&{frameworkPreviewParts:{prefix:compoDocPreviewPrefix}}},"angular",{extraPackages:[angularVersion?`@angular-devkit/build-angular@${angularVersion}`:"@angular-devkit/build-angular",...useCompodoc?["@compodoc/compodoc","@storybook/addon-docs"]:[]],addScripts:!1,componentsDestinationPath:root?`${root}/src/stories`:void 0,storybookConfigFolder:storybookFolder,webpackCompiler:()=>{}},"angular"),Object.keys(projects).length===1&&packageManager.addScripts({storybook:`ng run ${angularProjectName}:storybook`,"build-storybook":`ng run ${angularProjectName}:build-storybook`});let projectTypeValue=projectType||"application";projectTypeValue!=="application"&&projectTypeValue!=="library"&&(projectTypeValue="application");let templateDir=join(getCliDir(),"templates","angular",projectTypeValue);return templateDir&©Template(templateDir,root||void 0),{projectName:angularProjectName,configDir:storybookFolder}},ANGULAR_default=generator;var generator2=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5"},"ember",{staticDir:"dist"},"ember");},EMBER_default=generator2;var generator3=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,options,"html",{webpackCompiler:({builder})=>builder==="webpack5"?"swc":void 0});},HTML_default=generator3;var generator4=async(packageManager,npmOptions,options)=>{let staticDir;existsSync(join(process.cwd(),"public"))&&(staticDir="public"),await baseGenerator(packageManager,npmOptions,{...options,builder:"webpack5"},"react",{staticDir,webpackCompiler:()=>{}},"nextjs");},NEXTJS_default=generator4;var generator5=async(packageManager,npmOptions,options)=>{let extraStories=options.features.includes("docs")?["../components/**/*.mdx"]:[];extraStories.push("../components/**/*.stories.@(js|jsx|ts|tsx|mdx)"),await baseGenerator(packageManager,{...npmOptions},options,"vue3",{extraPackages:async()=>["@nuxtjs/storybook"],installFrameworkPackages:!1,componentsDestinationPath:"./components",extraMain:{stories:extraStories}},"nuxt"),npmOptions.skipInstall===!0&&(console.log("The --skip-install flag is not supported for generating Storybook for Nuxt. We will continue to install dependencies."),await packageManager.installDependencies()),await packageManager.runPackageCommand("nuxi",["module","add","@nuxtjs/storybook","--skipInstall"]);},NUXT_default=generator5;var generator6=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,options,"preact",{webpackCompiler:({builder})=>builder==="webpack5"?"swc":void 0});},PREACT_default=generator6;var generator7=async(packageManager,npmOptions,options)=>{await baseGenerator(packageManager,npmOptions,options,"qwik",{},"qwik");},QWIK_default=generator7;var generator8=async(packageManager,npmOptions,options)=>{let extraPackages=await detectLanguage(packageManager)==="javascript"?["prop-types"]:[];await baseGenerator(packageManager,npmOptions,options,"react",{extraPackages,webpackCompiler:({builder})=>builder==="webpack5"?"swc":void 0});},REACT_default=generator8;var generator9=async(packageManager,npmOptions,options)=>{let missingReactDom=!packageManager.getDependencyVersion("react-dom"),reactVersion=packageManager.getDependencyVersion("react"),packagesToResolve=[...["react-native-safe-area-context","@react-native-async-storage/async-storage","@react-native-community/datetimepicker","@react-native-community/slider","react-native-reanimated","react-native-gesture-handler","@gorhom/bottom-sheet","react-native-svg"].filter(dep=>!packageManager.getDependencyVersion(dep)),"@storybook/addon-ondevice-controls","@storybook/addon-ondevice-actions","@storybook/react-native","storybook"],packagesWithFixedVersion=[],versionedPackages=await packageManager.getVersionedPackages(packagesToResolve),babelDependencies=await getBabelDependencies(packageManager),packages=[];packages.push(...babelDependencies),packages.push(...packagesWithFixedVersion),packages.push(...versionedPackages),missingReactDom&&reactVersion&&packages.push(`react-dom@${reactVersion}`),await packageManager.addDependencies({...npmOptions},packages),packageManager.addScripts({"storybook-generate":"sb-rn-get-stories"}),await copyTemplateFiles({packageManager,templateLocation:"react-native",language:"typescript",destination:".rnstorybook",features:options.features});},REACT_NATIVE_default=generator9;var generator10=async(packageManager,npmOptions,options)=>{let language=await detectLanguage(packageManager),extraPackages=["vite","react-native-web"];language==="javascript"&&extraPackages.push("prop-types"),await baseGenerator(packageManager,npmOptions,options,"react",{extraPackages},"react-native-web-vite");let targetPath=await cliStoriesTargetPath(),cssFiles=(await readdir(targetPath)).filter(f11=>f11.endsWith(".css"));await Promise.all(cssFiles.map(f11=>rm$1(join(targetPath,f11))));},REACT_NATIVE_WEB_default=generator10;var generator11=async(packageManager,npmOptions,options)=>{let monorepoRootPath=fileURLToPath(new URL("../../../../../../..",import.meta.url)),extraMain=options.linkable?{webpackFinal:`%%(config) => {
|
|
2832
2832
|
// add monorepo root as a valid directory to import modules from
|
|
2833
2833
|
config.resolve.plugins.forEach((p) => {
|
|
2834
2834
|
if (Array.isArray(p.appSrcs)) {
|