create-storybook 9.0.15 → 9.0.16
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,n2,style,disp){disp==null&&(disp=lvl),this.levels[lvl]=n2,this.style[lvl]=style,this[lvl]||(this[lvl]=function(){var a5=new Array(arguments.length+1);a5[0]=lvl;for(var i6=0;i6<arguments.length;i6++)a5[i6+1]=arguments[i6];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,module){var minimalDesc=["h","min","s","ms","\u03BCs","ns"],verboseDesc=["hour","minute","second","millisecond","microsecond","nanosecond"],convert=[3600,60,1,1e6,1e3,1];module.exports=function(source,opts){var verbose,precise,i6,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="",i6=0;i6<6&&(spot=i6<3?0:1,sourceAtStep=source[spot],i6!==3&&i6!==0&&(sourceAtStep=sourceAtStep%convert[i6-1]),i6===2&&(sourceAtStep+=source[1]/1e9),valAtStep=sourceAtStep/convert[i6],!(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[i6],strAtStep!=="1"&&(results+="s")):results+=" "+minimalDesc[i6],!verbose)));i6++);return results};}});var require_strip_final_newline=__commonJS({"node_modules/strip-final-newline/index.js"(exports,module){module.exports=input=>{let LF2=typeof input=="string"?`
|
688
688
|
`:10,CR2=typeof input=="string"?"\r":13;return input[input.length-1]===LF2&&(input=input.slice(0,input.length-1)),input[input.length-1]===CR2&&(input=input.slice(0,input.length-1)),input};}});var require_npm_run_path=__commonJS({"../../node_modules/npm-run-path/index.js"(exports,module){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)};module.exports=npmRunPath2;module.exports.default=npmRunPath2;module.exports.env=options=>{options={env:process.env,...options};let env3={...options.env},path13=pathKey2({env:env3});return options.path=env3[path13],env3[path13]=module.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,module){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};module.exports=makeError2;}});var require_stdio=__commonJS({"node_modules/execa/lib/stdio.js"(exports,module){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])};module.exports=normalizeStdio2;module.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,module){var os6=__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),t15=setTimeout(()=>{kill("SIGKILL");},timeout);t15.unref&&t15.unref();},shouldForceKill2=(signal,{forceKillAfterTimeout},killResult)=>isSigterm2(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm2=signal=>signal===os6.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();})};module.exports={spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2};}});var require_is_stream=__commonJS({"../../node_modules/is-stream/index.js"(exports,module){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";module.exports=isStream3;}});var require_buffer_stream2=__commonJS({"../../node_modules/get-stream/buffer-stream.js"(exports,module){var{PassThrough:PassThroughStream2}=__require("stream");module.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,module){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()}module.exports=getStream;module.exports.buffer=(stream4,options)=>getStream(stream4,{...options,encoding:"buffer"});module.exports.array=(stream4,options)=>getStream(stream4,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError2;}});var require_stream5=__commonJS({"node_modules/execa/lib/stream.js"(exports,module){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")};module.exports={handleInput:handleInput2,makeAllStream:makeAllStream2,getSpawnedResult:getSpawnedResult2,validateInputSync};}});var require_promise=__commonJS({"node_modules/execa/lib/promise.js"(exports,module){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);});});module.exports={mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2};}});var require_command=__commonJS({"node_modules/execa/lib/command.js"(exports,module){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};module.exports={joinCommand:joinCommand2,getEscapedCommand:getEscapedCommand2,parseCommand:parseCommand2};}});var require_execa=__commonJS({"node_modules/execa/index.js"(exports,module){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)};module.exports=execa3;module.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}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3.sync(file,args,options)};module.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 i6=poolOffset-size;i6<poolOffset;i6++)id2+=urlAlphabet[pool[i6]&63];return id2};var version="9.0.15";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=(t15,e2)=>vt(t15,"name",{value:e2,configurable:!0}),k=(t15=>typeof require2<"u"?require2:typeof Proxy<"u"?new Proxy(t15,{get:(e2,r2)=>(typeof require2<"u"?require2:e2)[r2]}):t15)(function(t15){if(typeof require2<"u")return require2.apply(this,arguments);throw Error('Dynamic require of "'+t15+'" is not supported')}),wn=(t15,e2)=>()=>(t15&&(e2=t15(t15=0)),e2),c=(t15,e2)=>()=>(e2||t15((e2={exports:{}}).exports,e2),e2.exports),tr=(t15,e2)=>{for(var r2 in e2)vt(t15,r2,{get:e2[r2],enumerable:!0});},An=(t15,e2,r2,u2)=>{if(e2&&typeof e2=="object"||typeof e2=="function")for(let n2 of jf(e2))!Wf.call(t15,n2)&&n2!==r2&&vt(t15,n2,{get:()=>e2[n2],enumerable:!(u2=Nf(e2,n2))||u2.enumerable});return t15},P=(t15,e2,r2)=>(r2=t15!=null?qf(Gf(t15)):{},An(e2||!t15||!t15.__esModule?vt(r2,"default",{value:t15,enumerable:!0}):r2,t15)),Vf=t15=>An(vt({},"__esModule",{value:!0}),t15),mu=c((DE2,Sn2)=>{var Uf2=k("events"),Yf2=0,pu3=class extends Uf2{static{s(this,"TrackerBase");}constructor(e2){super(),this.id=++Yf2,this.name=e2;}};Sn2.exports=pu3;}),rr=c((lE2,Tn)=>{var Hf2=mu(),gu3=class extends Hf2{static{s(this,"Tracker");}constructor(e2,r2){super(e2),this.workDone=0,this.workTodo=r2||0;}completed(){return this.workTodo===0?0:this.workDone/this.workTodo}addWork(e2){this.workTodo+=e2,this.emit("change",this.name,this.completed(),this);}completeWork(e2){this.workDone+=e2,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);}};Tn.exports=gu3;}),Cu=c((cE3,$n)=>{var zf2=k("stream"),Kf=rr(),Fu2=class extends zf2.Transform{static{s(this,"TrackerStream");}constructor(e2,r2,u2){super(u2),this.tracker=new Kf(e2,r2),this.name=e2,this.id=this.tracker.id,this.tracker.on("change",this.trackerChange.bind(this));}trackerChange(e2,r2){this.emit("change",e2,r2,this);}_transform(e2,r2,u2){this.tracker.completeWork(e2.length?e2.length:1),this.push(e2),u2();}_flush(e2){this.tracker.finish(),e2();}completed(){return this.tracker.completed()}addWork(e2){return this.tracker.addWork(e2)}finish(){return this.tracker.finish()}};$n.exports=Fu2;}),In=c((fE,_n3)=>{var Zf2=mu(),On2=rr(),Jf2=Cu(),Eu3=class t15 extends Zf2{static{s(this,"TrackerGroup");}parentGroup=null;trackers=[];completion={};weight={};totalWeight=0;finished=!1;bubbleChange=Xf2(this);nameInTree(){for(var e2=[],r2=this;r2;)e2.unshift(r2.name),r2=r2.parentGroup;return e2.join("/")}addUnit(e2,r2){if(e2.addUnit){for(var u2=this;u2;){if(e2===u2)throw new Error("Attempted to add tracker group "+e2.name+" to tree that already includes it "+this.nameInTree(this));u2=u2.parentGroup;}e2.parentGroup=this;}return this.weight[e2.id]=r2||1,this.totalWeight+=this.weight[e2.id],this.trackers.push(e2),this.completion[e2.id]=e2.completed(),e2.on("change",this.bubbleChange),this.finished||this.emit("change",e2.name,this.completion[e2.id],e2),e2}completed(){if(this.trackers.length===0)return 0;for(var e2=1/this.totalWeight,r2=0,u2=0;u2<this.trackers.length;u2++){var n2=this.trackers[u2].id;r2+=e2*this.weight[n2]*this.completion[n2];}return r2}newGroup(e2,r2){return this.addUnit(new t15(e2),r2)}newItem(e2,r2,u2){return this.addUnit(new On2(e2,r2),u2)}newStream(e2,r2,u2){return this.addUnit(new Jf2(e2,r2),u2)}finish(){this.finished=!0,this.trackers.length||this.addUnit(new On2,1,!0);for(var e2=0;e2<this.trackers.length;e2++){var r2=this.trackers[e2];r2.finish(),r2.removeListener("change",this.bubbleChange);}this.emit("change",this.name,1,this);}debug(e2=0){let r2=" ".repeat(e2),u2=`${r2}${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};module.exports=makeError2;}});var require_stdio=__commonJS({"node_modules/execa/lib/stdio.js"(exports,module){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])};module.exports=normalizeStdio2;module.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,module){var os6=__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),t15=setTimeout(()=>{kill("SIGKILL");},timeout);t15.unref&&t15.unref();},shouldForceKill2=(signal,{forceKillAfterTimeout},killResult)=>isSigterm2(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm2=signal=>signal===os6.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();})};module.exports={spawnedKill:spawnedKill2,spawnedCancel:spawnedCancel2,setupTimeout:setupTimeout2,validateTimeout:validateTimeout2,setExitHandler:setExitHandler2};}});var require_is_stream=__commonJS({"../../node_modules/is-stream/index.js"(exports,module){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";module.exports=isStream3;}});var require_buffer_stream2=__commonJS({"../../node_modules/get-stream/buffer-stream.js"(exports,module){var{PassThrough:PassThroughStream2}=__require("stream");module.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,module){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()}module.exports=getStream;module.exports.buffer=(stream4,options)=>getStream(stream4,{...options,encoding:"buffer"});module.exports.array=(stream4,options)=>getStream(stream4,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError2;}});var require_stream5=__commonJS({"node_modules/execa/lib/stream.js"(exports,module){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")};module.exports={handleInput:handleInput2,makeAllStream:makeAllStream2,getSpawnedResult:getSpawnedResult2,validateInputSync};}});var require_promise=__commonJS({"node_modules/execa/lib/promise.js"(exports,module){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);});});module.exports={mergePromise:mergePromise2,getSpawnedPromise:getSpawnedPromise2};}});var require_command=__commonJS({"node_modules/execa/lib/command.js"(exports,module){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};module.exports={joinCommand:joinCommand2,getEscapedCommand:getEscapedCommand2,parseCommand:parseCommand2};}});var require_execa=__commonJS({"node_modules/execa/index.js"(exports,module){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)};module.exports=execa3;module.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}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand2(command);return execa3.sync(file,args,options)};module.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 i6=poolOffset-size;i6<poolOffset;i6++)id2+=urlAlphabet[pool[i6]&63];return id2};var version="9.0.16";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=(t15,e2)=>vt(t15,"name",{value:e2,configurable:!0}),k=(t15=>typeof require2<"u"?require2:typeof Proxy<"u"?new Proxy(t15,{get:(e2,r2)=>(typeof require2<"u"?require2:e2)[r2]}):t15)(function(t15){if(typeof require2<"u")return require2.apply(this,arguments);throw Error('Dynamic require of "'+t15+'" is not supported')}),wn=(t15,e2)=>()=>(t15&&(e2=t15(t15=0)),e2),c=(t15,e2)=>()=>(e2||t15((e2={exports:{}}).exports,e2),e2.exports),tr=(t15,e2)=>{for(var r2 in e2)vt(t15,r2,{get:e2[r2],enumerable:!0});},An=(t15,e2,r2,u2)=>{if(e2&&typeof e2=="object"||typeof e2=="function")for(let n2 of jf(e2))!Wf.call(t15,n2)&&n2!==r2&&vt(t15,n2,{get:()=>e2[n2],enumerable:!(u2=Nf(e2,n2))||u2.enumerable});return t15},P=(t15,e2,r2)=>(r2=t15!=null?qf(Gf(t15)):{},An(e2||!t15||!t15.__esModule?vt(r2,"default",{value:t15,enumerable:!0}):r2,t15)),Vf=t15=>An(vt({},"__esModule",{value:!0}),t15),mu=c((DE2,Sn2)=>{var Uf2=k("events"),Yf2=0,pu3=class extends Uf2{static{s(this,"TrackerBase");}constructor(e2){super(),this.id=++Yf2,this.name=e2;}};Sn2.exports=pu3;}),rr=c((lE2,Tn)=>{var Hf2=mu(),gu3=class extends Hf2{static{s(this,"Tracker");}constructor(e2,r2){super(e2),this.workDone=0,this.workTodo=r2||0;}completed(){return this.workTodo===0?0:this.workDone/this.workTodo}addWork(e2){this.workTodo+=e2,this.emit("change",this.name,this.completed(),this);}completeWork(e2){this.workDone+=e2,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);}};Tn.exports=gu3;}),Cu=c((cE3,$n)=>{var zf2=k("stream"),Kf=rr(),Fu2=class extends zf2.Transform{static{s(this,"TrackerStream");}constructor(e2,r2,u2){super(u2),this.tracker=new Kf(e2,r2),this.name=e2,this.id=this.tracker.id,this.tracker.on("change",this.trackerChange.bind(this));}trackerChange(e2,r2){this.emit("change",e2,r2,this);}_transform(e2,r2,u2){this.tracker.completeWork(e2.length?e2.length:1),this.push(e2),u2();}_flush(e2){this.tracker.finish(),e2();}completed(){return this.tracker.completed()}addWork(e2){return this.tracker.addWork(e2)}finish(){return this.tracker.finish()}};$n.exports=Fu2;}),In=c((fE,_n3)=>{var Zf2=mu(),On2=rr(),Jf2=Cu(),Eu3=class t15 extends Zf2{static{s(this,"TrackerGroup");}parentGroup=null;trackers=[];completion={};weight={};totalWeight=0;finished=!1;bubbleChange=Xf2(this);nameInTree(){for(var e2=[],r2=this;r2;)e2.unshift(r2.name),r2=r2.parentGroup;return e2.join("/")}addUnit(e2,r2){if(e2.addUnit){for(var u2=this;u2;){if(e2===u2)throw new Error("Attempted to add tracker group "+e2.name+" to tree that already includes it "+this.nameInTree(this));u2=u2.parentGroup;}e2.parentGroup=this;}return this.weight[e2.id]=r2||1,this.totalWeight+=this.weight[e2.id],this.trackers.push(e2),this.completion[e2.id]=e2.completed(),e2.on("change",this.bubbleChange),this.finished||this.emit("change",e2.name,this.completion[e2.id],e2),e2}completed(){if(this.trackers.length===0)return 0;for(var e2=1/this.totalWeight,r2=0,u2=0;u2<this.trackers.length;u2++){var n2=this.trackers[u2].id;r2+=e2*this.weight[n2]*this.completion[n2];}return r2}newGroup(e2,r2){return this.addUnit(new t15(e2),r2)}newItem(e2,r2,u2){return this.addUnit(new On2(e2,r2),u2)}newStream(e2,r2,u2){return this.addUnit(new Jf2(e2,r2),u2)}finish(){this.finished=!0,this.trackers.length||this.addUnit(new On2,1,!0);for(var e2=0;e2<this.trackers.length;e2++){var r2=this.trackers[e2];r2.finish(),r2.removeListener("change",this.bubbleChange);}this.emit("change",this.name,1,this);}debug(e2=0){let r2=" ".repeat(e2),u2=`${r2}${this.name||"top"}: ${this.completed()}
|
691
691
|
`;return this.trackers.forEach(function(n2){u2+=n2 instanceof t15?n2.debug(e2+1):`${r2} ${n2.name}: ${n2.completed()}
|
692
692
|
`;}),u2}};function Xf2(t15){return function(e2,r2,u2){t15.completion[u2.id]=r2,!t15.finished&&t15.emit("change",e2||t15.name,t15.completed(),t15);}}s(Xf2,"bubbleChange"),_n3.exports=Eu3;}),Ln=c(ur=>{ur.TrackerGroup=In(),ur.Tracker=rr(),ur.TrackerStream=Cu();}),ir=c(N7=>{var H7="\x1B[";N7.up=s(function(e2){return H7+(e2||"")+"A"},"up"),N7.down=s(function(e2){return H7+(e2||"")+"B"},"down"),N7.forward=s(function(e2){return H7+(e2||"")+"C"},"forward"),N7.back=s(function(e2){return H7+(e2||"")+"D"},"back"),N7.nextLine=s(function(e2){return H7+(e2||"")+"E"},"nextLine"),N7.previousLine=s(function(e2){return H7+(e2||"")+"F"},"previousLine"),N7.horizontalAbsolute=s(function(e2){if(e2==null)throw new Error("horizontalAboslute requires a column to position to");return H7+e2+"G"},"horizontalAbsolute"),N7.eraseData=s(function(){return H7+"J"},"eraseData"),N7.eraseLine=s(function(){return H7+"K"},"eraseLine"),N7.goto=function(t15,e2){return H7+e2+";"+t15+"H"},N7.gotoSOL=function(){return "\r"},N7.beep=function(){return "\x07"},N7.hideCursor=s(function(){return H7+"?25l"},"hideCursor"),N7.showCursor=s(function(){return H7+"?25h"},"showCursor");var kn2={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};N7.color=s(function(e2){return (arguments.length!==1||!Array.isArray(e2))&&(e2=Array.prototype.slice.call(arguments)),H7+e2.map(Qf).join(";")+"m"},"color");function Qf(t15){if(kn2[t15]!=null)return kn2[t15];throw new Error("Unknown color or style name: "+t15)}s(Qf,"colorNameToCode");}),Mn=c((CE3,Pn2)=>{Pn2.exports=({onlyFirst:t15=!1}={})=>{let e2=["[\\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(e2,t15?void 0:"g")};}),qn=c((EE3,Rn2)=>{var e0=Mn();Rn2.exports=t15=>typeof t15=="string"?t15.replace(e0(),""):t15;}),jn=c((bE3,bu3)=>{var Nn2=s(t15=>Number.isNaN(t15)?!1:t15>=4352&&(t15<=4447||t15===9001||t15===9002||11904<=t15&&t15<=12871&&t15!==12351||12880<=t15&&t15<=19903||19968<=t15&&t15<=42182||43360<=t15&&t15<=43388||44032<=t15&&t15<=55203||63744<=t15&&t15<=64255||65040<=t15&&t15<=65049||65072<=t15&&t15<=65131||65281<=t15&&t15<=65376||65504<=t15&&t15<=65510||110592<=t15&&t15<=110593||127488<=t15&&t15<=127569||131072<=t15&&t15<=262141),"isFullwidthCodePoint");bu3.exports=Nn2,bu3.exports.default=Nn2;}),Wn=c((vE2,Gn)=>{Gn.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((yE2,xu3)=>{var t02=qn(),r02=jn(),u0=Wn(),Vn2=s(t15=>{if(typeof t15!="string"||t15.length===0||(t15=t02(t15),t15.length===0))return 0;t15=t15.replace(u0()," ");let e2=0;for(let r2=0;r2<t15.length;r2++){let u2=t15.codePointAt(r2);u2<=31||u2>=127&&u2<=159||u2>=768&&u2<=879||(u2>65535&&r2++,e2+=r02(u2)?2:1);}return e2},"stringWidth");xu3.exports=Vn2,xu3.exports.default=Vn2;}),Un=c(nr2=>{var vu3=Ze();nr2.center=n02,nr2.left=i02,nr2.right=s02;function sr(t15){var e2="",r2=" ",u2=t15;do u2%2&&(e2+=r2),u2=Math.floor(u2/2),r2+=r2;while(u2);return e2}s(sr,"createPadding");function i02(t15,e2){var r2=t15.trimRight();if(r2.length===0&&t15.length>=e2)return t15;var u2="",n2=vu3(r2);return n2<e2&&(u2=sr(e2-n2)),r2+u2}s(i02,"alignLeft");function s02(t15,e2){var r2=t15.trimLeft();if(r2.length===0&&t15.length>=e2)return t15;var u2="",n2=vu3(r2);return n2<e2&&(u2=sr(e2-n2)),u2+r2}s(s02,"alignRight");function n02(t15,e2){var r2=t15.trim();if(r2.length===0&&t15.length>=e2)return t15;var u2="",n2="",o5=vu3(r2);if(o5<e2){var i6=parseInt((e2-o5)/2,10);u2=sr(i6),n2=sr(e2-(o5+i6));}return u2+r2+n2}s(n02,"alignCenter");}),Dr=c((SE3,Zn2)=>{Zn2.exports=zn2;function o02(t15){return t15!=null&&typeof t15=="object"&&t15.hasOwnProperty("callee")}s(o02,"isArguments");var ie3={"*":{label:"any",check:s(()=>!0,"check")},A:{label:"array",check:s(t15=>Array.isArray(t15)||o02(t15),"check")},S:{label:"string",check:s(t15=>typeof t15=="string","check")},N:{label:"number",check:s(t15=>typeof t15=="number","check")},F:{label:"function",check:s(t15=>typeof t15=="function","check")},O:{label:"object",check:s(t15=>typeof t15=="object"&&t15!=null&&!ie3.A.check(t15)&&!ie3.E.check(t15),"check")},B:{label:"boolean",check:s(t15=>typeof t15=="boolean","check")},E:{label:"error",check:s(t15=>t15 instanceof Error,"check")},Z:{label:"null",check:s(t15=>t15==null,"check")}};function or(t15,e2){let r2=e2[t15.length]=e2[t15.length]||[];r2.indexOf(t15)===-1&&r2.push(t15);}s(or,"addSchema");function zn2(t15,e2){if(arguments.length!==2)throw Hn(["SA"],arguments.length);if(!t15)throw Yn2(0);if(!e2)throw Yn2(1);if(!ie3.S.check(t15))throw yu3(0,["string"],t15);if(!ie3.A.check(e2))throw yu3(1,["array"],e2);let r2=t15.split("|"),u2={};r2.forEach(o5=>{for(let i6=0;i6<o5.length;++i6){let D4=o5[i6];if(!ie3[D4])throw D0(i6,D4)}if(/E.*E/.test(o5))throw a02(o5);or(o5,u2),/E/.test(o5)&&(or(o5.replace(/E.*$/,"E"),u2),or(o5.replace(/E/,"Z"),u2),o5.length===1&&or("",u2));});let n2=u2[e2.length];if(!n2)throw Hn(Object.keys(u2),e2.length);for(let o5=0;o5<e2.length;++o5){let i6=n2.filter(D4=>{let a5=D4[o5],l2=ie3[a5].check;return l2(e2[o5])});if(!i6.length){let D4=n2.map(a5=>ie3[a5[o5]].label).filter(a5=>a5!=null);throw yu3(o5,D4,e2[o5])}n2=i6;}}s(zn2,"validate");function Yn2(t15){return yt4("EMISSINGARG","Missing required argument #"+(t15+1))}s(Yn2,"missingRequiredArg");function D0(t15,e2){return yt4("EUNKNOWNTYPE","Unknown type "+e2+" in argument #"+(t15+1))}s(D0,"unknownType");function yu3(t15,e2,r2){let u2;return Object.keys(ie3).forEach(n2=>{ie3[n2].check(r2)&&(u2=ie3[n2].label);}),yt4("EINVALIDTYPE","Argument #"+(t15+1)+": Expected "+Kn2(e2)+" but got "+u2)}s(yu3,"invalidType");function Kn2(t15){return t15.join(", ").replace(/, ([^,]+)$/," or $1")}s(Kn2,"englishList");function Hn(t15,e2){let r2=Kn2(t15),u2=t15.every(n2=>n2.length===1)?"argument":"arguments";return yt4("EWRONGARGCOUNT","Expected "+r2+" "+u2+" but got "+e2)}s(Hn,"wrongNumberOfArgs");function a02(t15){return yt4("ETOOMANYERRORTYPES",'Only one error type per argument signature is allowed, more than one found in "'+t15+'"')}s(a02,"moreThanOneError");function yt4(t15,e2){let r2=new Error(e2);return r2.code=t15,Error.captureStackTrace&&Error.captureStackTrace(r2,zn2),r2}s(yt4,"newException");}),Xn=c(($E3,Jn2)=>{Jn2.exports=({onlyFirst:t15=!1}={})=>{let e2=["[\\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(e2,t15?void 0:"g")};}),eo=c((OE2,Qn2)=>{var l02=Xn();Qn2.exports=t15=>typeof t15=="string"?t15.replace(l02(),""):t15;}),wu=c((_E3,to2)=>{var Bu2=Ze(),h0=eo();to2.exports=c03;function c03(t15,e2){if(Bu2(t15)===0)return t15;if(e2<=0)return "";if(Bu2(t15)<=e2)return t15;for(var r2=h0(t15),u2=t15.length+r2.length,n2=t15.slice(0,e2+u2);Bu2(n2)>e2;)n2=n2.slice(0,-1);return n2}s(c03,"wideTruncate");}),ro=c(ar=>{var d02=k("util"),f02=ar.User=s(function t15(e2){var r2=new Error(e2);return Error.captureStackTrace(r2,t15),r2.code="EGAUGE",r2},"User");ar.MissingTemplateValue=s(function t15(e2,r2){var u2=new f02(d02.format('Missing template value "%s"',e2.type));return Error.captureStackTrace(u2,t15),u2.template=e2,u2.values=r2,u2},"MissingTemplateValue"),ar.Internal=s(function t15(e2){var r2=new Error(e2);return Error.captureStackTrace(r2,t15),r2.code="EGAUGEINTERNAL",r2},"Internal");}),io=c((PE2,uo3)=>{var p02=Ze();uo3.exports=Je2;function Au4(t15){return typeof t15!="string"?!1:t15.slice(-1)==="%"}s(Au4,"isPercent");function Su4(t15){return Number(t15.slice(0,-1))/100}s(Su4,"percent");function Je2(t15,e2){if(this.overallOutputLength=e2,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 t15=="string")this.value=t15;else for(var r2 in t15)this[r2]=t15[r2];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(Je2,"TemplateItem"),Je2.prototype={},Je2.prototype.getBaseLength=function(){var t15=this.length;return t15==null&&typeof this.value=="string"&&this.maxLength==null&&this.minLength==null&&(t15=p02(this.value)),t15},Je2.prototype.getLength=function(){var t15=this.getBaseLength();return t15==null?null:t15+this.padLeft+this.padRight},Je2.prototype.getMaxLength=function(){return this.maxLength==null?null:this.maxLength+this.padLeft+this.padRight},Je2.prototype.getMinLength=function(){return this.minLength==null?null:this.minLength+this.padLeft+this.padRight};}),Tu=c((RE3,Do2)=>{var Bt3=Un(),m02=Dr(),so=wu(),Xe3=ro(),g02=io();function F0(t15){return function(e2){return y03(e2,t15)}}s(F0,"renderValueWithValues");var C02=Do2.exports=function(t15,e2,r2){var u2=x0(t15,e2,r2),n2=u2.map(F0(r2)).join("");return Bt3.left(so(n2,t15),t15)};function no2(t15){var e2=t15.type[0].toUpperCase()+t15.type.slice(1);return "pre"+e2}s(no2,"preType");function oo3(t15){var e2=t15.type[0].toUpperCase()+t15.type.slice(1);return "post"+e2}s(oo3,"postType");function E0(t15,e2){if(t15.type)return e2[no2(t15)]||e2[oo3(t15)]}s(E0,"hasPreOrPost");function b02(t15,e2){var r2=Object.assign({},t15),u2=Object.create(e2),n2=[],o5=no2(r2),i6=oo3(r2);return u2[o5]&&(n2.push({value:u2[o5]}),u2[o5]=null),r2.minLength=null,r2.length=null,r2.maxLength=null,n2.push(r2),u2[r2.type]=u2[r2.type],u2[i6]&&(n2.push({value:u2[i6]}),u2[i6]=null),function(D4,a5,l2){return C02(l2,n2,u2)}}s(b02,"generatePreAndPost");function x0(t15,e2,r2){function u2(d2,m4,g){var F6=new g02(d2,t15),E6=F6.type;if(F6.value==null)if(E6 in r2)F6.value=r2[E6];else {if(F6.default==null)throw new Xe3.MissingTemplateValue(F6,r2);F6.value=F6.default;}return F6.value==null||F6.value===""?null:(F6.index=m4,F6.first=m4===0,F6.last=m4===g.length-1,E0(F6,r2)&&(F6.value=b02(F6,r2)),F6)}s(u2,"cloneAndObjectify");var n2=e2.map(u2).filter(function(d2){return d2!=null}),o5=t15,i6=n2.length;function D4(d2){d2>o5&&(d2=o5),o5-=d2;}s(D4,"consumeSpace");function a5(d2,m4){if(d2.finished)throw new Xe3.Internal("Tried to finish template item that was already finished");if(m4===1/0)throw new Xe3.Internal("Length of template item cannot be infinity");if(m4!=null&&(d2.length=m4),d2.minLength=null,d2.maxLength=null,--i6,d2.finished=!0,d2.length==null&&(d2.length=d2.getBaseLength()),d2.length==null)throw new Xe3.Internal("Finished template items must have a length");D4(d2.getLength());}s(a5,"finishSizing"),n2.forEach(function(d2){if(d2.kerning){var m4=d2.first?0:n2[d2.index-1].padRight;!d2.first&&m4<d2.kerning&&(d2.padLeft=d2.kerning-m4),d2.last||(d2.padRight=d2.kerning);}}),n2.forEach(function(d2){d2.getBaseLength()!=null&&a5(d2);});var l2=0,h6,p4;do h6=!1,p4=Math.round(o5/i6),n2.forEach(function(d2){d2.finished||d2.maxLength&&d2.getMaxLength()<p4&&(a5(d2,d2.maxLength),h6=!0);});while(h6&&l2++<n2.length);if(h6)throw new Xe3.Internal("Resize loop iterated too many times while determining maxLength");l2=0;do h6=!1,p4=Math.round(o5/i6),n2.forEach(function(d2){d2.finished||d2.minLength&&d2.getMinLength()>=p4&&(a5(d2,d2.minLength),h6=!0);});while(h6&&l2++<n2.length);if(h6)throw new Xe3.Internal("Resize loop iterated too many times while determining minLength");return p4=Math.round(o5/i6),n2.forEach(function(d2){d2.finished||a5(d2,p4);}),n2}s(x0,"prepareItems");function v0(t15,e2,r2){return m02("OON",arguments),t15.type?t15.value(e2,e2[t15.type+"Theme"]||{},r2):t15.value(e2,{},r2)}s(v0,"renderFunction");function y03(t15,e2){var r2=t15.getBaseLength(),u2=typeof t15.value=="function"?v0(t15,e2,r2):t15.value;if(u2==null||u2==="")return "";var n2=Bt3[t15.align]||Bt3.left,o5=t15.padLeft?Bt3.left("",t15.padLeft):"",i6=t15.padRight?Bt3.right("",t15.padRight):"",D4=so(String(u2),r2),a5=n2(D4,r2);return o5+a5+i6}s(y03,"renderValue");}),lo=c((NE2,ao2)=>{var Pe2=ir(),B0=Tu(),lr2=Dr(),be4=ao2.exports=function(t15,e2,r2){r2||(r2=80),lr2("OAN",[t15,e2,r2]),this.showing=!1,this.theme=t15,this.width=r2,this.template=e2;};be4.prototype={},be4.prototype.setTheme=function(t15){lr2("O",[t15]),this.theme=t15;},be4.prototype.setTemplate=function(t15){lr2("A",[t15]),this.template=t15;},be4.prototype.setWidth=function(t15){lr2("N",[t15]),this.width=t15;},be4.prototype.hide=function(){return Pe2.gotoSOL()+Pe2.eraseLine()},be4.prototype.hideCursor=Pe2.hideCursor,be4.prototype.showCursor=Pe2.showCursor,be4.prototype.show=function(t15){var e2=Object.create(this.theme);for(var r2 in t15)e2[r2]=t15[r2];return B0(this.width,this.template,e2).trim()+Pe2.color("reset")+Pe2.eraseLine()+Pe2.gotoSOL()};}),co=c((GE3,ho2)=>{var w02=k("os");ho2.exports=function(){if(w02.type()=="Windows_NT")return !1;var t15=/UTF-?8$/i,e2=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return t15.test(e2)};}),mo=c((WE3,po2)=>{po2.exports=fo2({alwaysReturn:!0},fo2);function Qe3(t15,e2){return t15.level=0,t15.hasBasic=!1,t15.has256=!1,t15.has16m=!1,e2.alwaysReturn?t15:!1}s(Qe3,"hasNone");function hr3(t15){return t15.hasBasic=!0,t15.has256=!1,t15.has16m=!1,t15.level=1,t15}s(hr3,"hasBasic");function et2(t15){return t15.hasBasic=!0,t15.has256=!0,t15.has16m=!1,t15.level=2,t15}s(et2,"has256");function cr(t15){return t15.hasBasic=!0,t15.has256=!0,t15.has16m=!0,t15.level=3,t15}s(cr,"has16m");function fo2(t15,e2){if(t15=t15||{},e2=e2||{},typeof t15.level=="number")switch(t15.level){case 0:return Qe3(e2,t15);case 1:return hr3(e2);case 2:return et2(e2);case 3:return cr(e2)}if(e2.level=0,e2.hasBasic=!1,e2.has256=!1,e2.has16m=!1,typeof process>"u"||!process||!process.stdout||!process.env||!process.platform)return Qe3(e2,t15);var r2=t15.env||process.env,u2=t15.stream||process.stdout,n2=t15.term||r2.TERM||"",o5=t15.platform||process.platform;if(!t15.ignoreTTY&&!u2.isTTY||!t15.ignoreDumb&&n2==="dumb"&&!r2.COLORTERM)return Qe3(e2,t15);if(o5==="win32")return hr3(e2);if(r2.TMUX)return et2(e2);if(!t15.ignoreCI&&(r2.CI||r2.TEAMCITY_VERSION))return r2.TRAVIS?et2(e2):Qe3(e2,t15);switch(r2.TERM_PROGRAM){case"iTerm.app":var i6=r2.TERM_PROGRAM_VERSION||"0.";return /^[0-2]\./.test(i6)?et2(e2):cr(e2);case"HyperTerm":case"Hyper":return cr(e2);case"MacTerm":return cr(e2);case"Apple_Terminal":return et2(e2)}return /^xterm-256/.test(n2)?et2(e2):/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(n2)||r2.COLORTERM?hr3(e2):Qe3(e2,t15)}s(fo2,"colorSupport");}),Fo=c((UE3,go2)=>{var A0=mo();go2.exports=A0().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(t15=>!!t15&&typeof t15=="object"&&typeof t15.removeListener=="function"&&typeof t15.emit=="function"&&typeof t15.reallyExit=="function"&&typeof t15.listeners=="function"&&typeof t15.kill=="function"&&typeof t15.pid=="number"&&typeof t15.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(e2,r2){this.listeners[e2].push(r2);}removeListener(e2,r2){let u2=this.listeners[e2],n2=u2.indexOf(r2);n2!==-1&&(n2===0&&u2.length===1?u2.length=0:u2.splice(n2,1));}emit(e2,r2,u2){if(this.emitted[e2])return !1;this.emitted[e2]=!0;let n2=!1;for(let o5 of this.listeners[e2])n2=o5(r2,u2)===!0||n2;return e2==="exit"&&(n2=this.emit("afterExit",r2,u2)||n2),n2}},fr=class{static{s(this,"SignalExitBase");}},T0=s(t15=>({onExit(e2,r2){return t15.onExit(e2,r2)},load(){return t15.load()},unload(){return t15.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(e2){super(),this.#e=e2,this.#i={};for(let r2 of xe)this.#i[r2]=()=>{let u2=this.#e.listeners(r2),{count:n2}=this.#t,o5=e2;if(typeof o5.__signal_exit_emitter__=="object"&&typeof o5.__signal_exit_emitter__.count=="number"&&(n2+=o5.__signal_exit_emitter__.count),u2.length===n2){this.unload();let i6=this.#t.emit("exit",null,r2),D4=r2==="SIGHUP"?this.#u:r2;i6||e2.kill(e2.pid,D4);}};this.#n=e2.reallyExit,this.#s=e2.emit;}onExit(e2,r2){if(!dr(this.#e))return ()=>{};this.#r===!1&&this.load();let u2=r2?.alwaysLast?"afterExit":"exit";return this.#t.on(u2,e2),()=>{this.#t.removeListener(u2,e2),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 e2 of xe)try{let r2=this.#i[e2];r2&&this.#e.on(e2,r2);}catch{}this.#e.emit=(e2,...r2)=>this.#D(e2,...r2),this.#e.reallyExit=e2=>this.#o(e2);}}unload(){this.#r&&(this.#r=!1,xe.forEach(e2=>{let r2=this.#i[e2];if(!r2)throw new Error("Listener not defined for signal: "+e2);try{this.#e.removeListener(e2,r2);}catch{}}),this.#e.emit=this.#s,this.#e.reallyExit=this.#n,this.#t.count-=1);}#o(e2){return dr(this.#e)?(this.#e.exitCode=e2||0,this.#t.emit("exit",this.#e.exitCode,null),this.#n.call(this.#e,this.#e.exitCode)):0}#D(e2,...r2){let u2=this.#s;if(e2==="exit"&&dr(this.#e)){typeof r2[0]=="number"&&(this.#e.exitCode=r2[0]);let n2=u2.call(this.#e,e2,...r2);return this.#t.emit("exit",this.#e.exitCode,null),n2}else return u2.call(this.#e,e2,...r2)}},ku=globalThis.process,{onExit:$0,load:O0,unload:_0}=T0(dr(ku)?new Lu(ku):new Iu);}),vo=c((KE3,xo2)=>{xo2.exports=s(function(e2,r2){return e2[r2%e2.length]},"spin");}),wo=c((JE2,Bo4)=>{var I0=Dr(),L02=Tu(),k0=wu(),P02=Ze();Bo4.exports=function(t15,e2,r2){if(I0("ONN",[t15,e2,r2]),r2<0&&(r2=0),r2>1&&(r2=1),e2<=0)return "";var u2=Math.round(e2*r2),n2=e2-u2,o5=[{type:"complete",value:yo2(t15.complete,u2),length:u2},{type:"remaining",value:yo2(t15.remaining,n2),length:n2}];return L02(e2,o5,t15)};function yo2(t15,e2){var r2="",u2=e2;do u2%2&&(r2+=t15),u2=Math.floor(u2/2),t15+=t15;while(u2&&P02(r2)<e2);return k0(r2,e2)}s(yo2,"repeat");}),So=c((QE2,Ao2)=>{var M02=vo(),R0=wo();Ao2.exports={activityIndicator:s(function(t15,e2){if(t15.spun!=null)return M02(e2,t15.spun)},"activityIndicator"),progressbar:s(function(t15,e2,r2){if(t15.completed!=null)return R0(e2,r2,t15.completed)},"progressbar")};}),$o=c((t82,To2)=>{To2.exports=function(){return z8.newThemeSet()};var z8={};z8.baseTheme=So(),z8.newTheme=function(t15,e2){return e2||(e2=t15,t15=this.baseTheme),Object.assign({},t15,e2)},z8.getThemeNames=function(){return Object.keys(this.themes)},z8.addTheme=function(t15,e2,r2){this.themes[t15]=this.newTheme(e2,r2);},z8.addToAllThemes=function(t15){var e2=this.themes;Object.keys(e2).forEach(function(r2){Object.assign(e2[r2],t15);}),Object.assign(this.baseTheme,t15);},z8.getTheme=function(t15){if(!this.themes[t15])throw this.newMissingThemeError(t15);return this.themes[t15]},z8.setDefault=function(t15,e2){e2==null&&(e2=t15,t15={});var r2=t15.platform==null?"fallback":t15.platform,u2=!!t15.hasUnicode,n2=!!t15.hasColor;this.defaults[r2]||(this.defaults[r2]={true:{},false:{}}),this.defaults[r2][u2][n2]=e2;},z8.getDefault=function(t15){t15||(t15={});var e2=t15.platform||process.platform,r2=this.defaults[e2]||this.defaults.fallback,u2=!!t15.hasUnicode,n2=!!t15.hasColor;if(!r2)throw this.newMissingDefaultThemeError(e2,u2,n2);if(!r2[u2][n2]){if(u2&&n2&&r2[!u2][n2])u2=!1;else if(u2&&n2&&r2[u2][!n2])n2=!1;else if(u2&&n2&&r2[!u2][!n2])u2=!1,n2=!1;else if(u2&&!n2&&r2[!u2][n2])u2=!1;else if(!u2&&n2&&r2[u2][!n2])n2=!1;else if(r2===this.defaults.fallback)throw this.newMissingDefaultThemeError(e2,u2,n2)}return r2[u2][n2]?this.getTheme(r2[u2][n2]):this.getDefault(Object.assign({},t15,{platform:"fallback"}))},z8.newMissingThemeError=s(function t15(e2){var r2=new Error('Could not find a gauge theme named "'+e2+'"');return Error.captureStackTrace.call(r2,t15),r2.theme=e2,r2.code="EMISSINGTHEME",r2},"newMissingThemeError"),z8.newMissingDefaultThemeError=s(function t15(e2,r2,u2){var n2=new Error(`Could not find a gauge theme for your platform/unicode/color use combo:
|
693
693
|
platform = `+e2+`
|
@@ -1600,7 +1600,7 @@ Filtered results for: ${this.inputValue?this.inputValue:mt2.gray("Enter somethin
|
|
1600
1600
|
`}renderOption(A5,e2,r2){let i6;return e2.disabled?i6=A5===r2?mt2.gray().underline(e2.title):mt2.strikethrough().gray(e2.title):i6=A5===r2?mt2.cyan().underline(e2.title):e2.title,(e2.selected?mt2.green(Wr2.radioOn):Wr2.radioOff)+" "+i6}renderDoneOrInstructions(){if(this.done)return this.value.filter(e2=>e2.selected).map(e2=>e2.title).join(", ");let A5=[mt2.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&A5.push(mt2.yellow(this.warn)),A5.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(JU.hide),super.render();let A5=[Rm2.symbol(this.done,this.aborted),mt2.bold(this.msg),Rm2.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(A5+=mt2.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),A5+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+A5),this.clear=Mm2(A5,this.out.columns);}};vm3.exports=rI;}),_m2=m((e6,Um2)=>{var xm2=yA(),TU=pt(),{style:Ym2,clear:HU}=_e(),{erase:jU,cursor:Pm2}=SA2(),iI=class extends TU{static{s4(this,"ConfirmPrompt");}constructor(A5={}){super(A5),this.msg=A5.message,this.value=A5.initial,this.initialValue=!!A5.initial,this.yesMsg=A5.yes||"yes",this.yesOption=A5.yesOption||"(Y/n)",this.noMsg=A5.no||"no",this.noOption=A5.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(`
|
1601
1601
|
`),this.close();}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
1602
1602
|
`),this.close();}_(A5,e2){return A5.toLowerCase()==="y"?(this.value=!0,this.submit()):A5.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Pm2.hide):this.out.write(HU(this.outputText,this.out.columns)),super.render(),this.outputText=[Ym2.symbol(this.done,this.aborted),xm2.bold(this.msg),Ym2.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:xm2.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(jU.line+Pm2.to(0)+this.outputText));}};Um2.exports=iI;}),Jm=m((r6,Gm2)=>{Gm2.exports={TextPrompt:Uw2(),SelectPrompt:Ow2(),TogglePrompt:qw2(),DatePrompt:fm3(),NumberPrompt:mm2(),MultiselectPrompt:$c(),AutocompletePrompt:Nm2(),AutocompleteMultiselectPrompt:Lm2(),ConfirmPrompt:_m2()};}),Tm2=m(Om2=>{var ae2=Om2,qU=Jm(),Ro3=s4(t15=>t15,"noop");function $e3(t15,A5,e2={}){return new Promise((r2,i6)=>{let n2=new qU[t15](A5),o5=e2.onAbort||Ro3,g=e2.onSubmit||Ro3,C4=e2.onExit||Ro3;n2.on("state",A5.onState||Ro3),n2.on("submit",I7=>r2(g(I7))),n2.on("exit",I7=>r2(C4(I7))),n2.on("abort",I7=>i6(o5(I7)));})}s4($e3,"toPrompt"),ae2.text=t15=>$e3("TextPrompt",t15),ae2.password=t15=>(t15.style="password",ae2.text(t15)),ae2.invisible=t15=>(t15.style="invisible",ae2.text(t15)),ae2.number=t15=>$e3("NumberPrompt",t15),ae2.date=t15=>$e3("DatePrompt",t15),ae2.confirm=t15=>$e3("ConfirmPrompt",t15),ae2.list=t15=>{let A5=t15.separator||",";return $e3("TextPrompt",t15,{onSubmit:s4(e2=>e2.split(A5).map(r2=>r2.trim()),"onSubmit")})},ae2.toggle=t15=>$e3("TogglePrompt",t15),ae2.select=t15=>$e3("SelectPrompt",t15),ae2.multiselect=t15=>{t15.choices=[].concat(t15.choices||[]);let A5=s4(e2=>e2.filter(r2=>r2.selected).map(r2=>r2.value),"toSelected");return $e3("MultiselectPrompt",t15,{onAbort:A5,onSubmit:A5})},ae2.autocompleteMultiselect=t15=>{t15.choices=[].concat(t15.choices||[]);let A5=s4(e2=>e2.filter(r2=>r2.selected).map(r2=>r2.value),"toSelected");return $e3("AutocompleteMultiselectPrompt",t15,{onAbort:A5,onSubmit:A5})};var zU=s4((t15,A5)=>Promise.resolve(A5.filter(e2=>e2.title.slice(0,t15.length).toLowerCase()===t15.toLowerCase())),"byTitle");ae2.autocomplete=t15=>(t15.suggest=t15.suggest||zU,t15.choices=[].concat(t15.choices||[]),$e3("AutocompletePrompt",t15));}),qm2=m((n6,jm2)=>{var sI=Tm2(),WU=["suggest","format","onState","validate","onRender","type"],Hm=s4(()=>{},"noop");async function Tt3(t15=[],{onSubmit:A5=Hm,onCancel:e2=Hm}={}){let r2={},i6=Tt3._override||{};t15=[].concat(t15);let n2,o5,g,C4,I7,E6,Q7=s4(async(B6,p4,w2=!1)=>{if(!(!w2&&B6.validate&&B6.validate(p4)!==!0))return B6.format?await B6.format(p4,r2):p4},"getFormattedAnswer");for(o5 of t15)if({name:C4,type:I7}=o5,typeof I7=="function"&&(I7=await I7(n2,{...r2},o5),o5.type=I7),!!I7){for(let B6 in o5){if(WU.includes(B6))continue;let p4=o5[B6];o5[B6]=typeof p4=="function"?await p4(n2,{...r2},E6):p4;}if(E6=o5,typeof o5.message!="string")throw new Error("prompt message is required");if({name:C4,type:I7}=o5,sI[I7]===void 0)throw new Error(`prompt type (${I7}) is not defined`);if(i6[o5.name]!==void 0&&(n2=await Q7(o5,i6[o5.name]),n2!==void 0)){r2[C4]=n2;continue}try{n2=Tt3._injected?VU(Tt3._injected,o5.initial):await sI[I7](o5),r2[C4]=n2=await Q7(o5,n2,!0),g=await A5(o5,n2,r2);}catch{g=!await e2(o5,r2);}if(g)return r2}return r2}s4(Tt3,"prompt");function VU(t15,A5){let e2=t15.shift();if(e2 instanceof Error)throw e2;return e2===void 0?A5:e2}s4(VU,"getInjectedAnswer");function XU(t15){Tt3._injected=(Tt3._injected||[]).concat(t15);}s4(XU,"inject");function ZU(t15){Tt3._override=Object.assign({},t15);}s4(ZU,"override"),jm2.exports=Object.assign(Tt3,{prompt:Tt3,prompts:sI,inject:XU,override:ZU});}),Wm2=m((g6,zm)=>{function $U(t15){t15=(Array.isArray(t15)?t15:t15.split(".")).map(Number);let A5=0,e2=process.versions.node.split(".").map(Number);for(;A5<t15.length;A5++){if(e2[A5]>t15[A5])return !1;if(t15[A5]>e2[A5])return !0}return !1}s4($U,"isNodeLT"),zm.exports=$U("8.6.0")?fw():qm2();});function aI(t15){if(!Array.isArray(t15))throw new TypeError(`Expected an array, got \`${typeof t15}\`.`);for(let i6 of t15)oI(i6);let A5=t15.some(({readableObjectMode:i6})=>i6),e2=r_2(t15,A5),r2=new nI({objectMode:A5,writableHighWaterMark:e2,readableHighWaterMark:e2});for(let i6 of t15)r2.add(i6);return t15.length===0&&ey(r2),r2}var r_2,nI,i_,s_,n_,oI,o_,$m2,g_,a_,C_,Ay2,ey,gI,ty,c_,vo2,Vm,Xm,ry=ue2(()=>{s4(aI,"mergeStreams"),r_2=s4((t15,A5)=>{if(t15.length===0)return 16384;let e2=t15.filter(({readableObjectMode:r2})=>r2===A5).map(({readableHighWaterMark:r2})=>r2);return Math.max(...e2)},"getHighWaterMark"),nI=class extends PassThrough{static{s4(this,"MergedStream");}#A=new Set([]);#e=new Set([]);#t=new Set([]);#r;add(A5){oI(A5),!this.#A.has(A5)&&(this.#A.add(A5),this.#r??=i_(this,this.#A),o_({passThroughStream:this,stream:A5,streams:this.#A,ended:this.#e,aborted:this.#t,onFinished:this.#r}),A5.pipe(this,{end:!1}));}remove(A5){return oI(A5),this.#A.has(A5)?(A5.unpipe(this),!0):!1}},i_=s4(async(t15,A5)=>{vo2(t15,Vm);let e2=new AbortController;try{await Promise.race([s_(t15,e2),n_(t15,A5,e2)]);}finally{e2.abort(),vo2(t15,-Vm);}},"onMergedStreamFinished"),s_=s4(async(t15,{signal:A5})=>{await finished(t15,{signal:A5,cleanup:!0});},"onMergedStreamEnd"),n_=s4(async(t15,A5,{signal:e2})=>{for await(let[r2]of on$1(t15,"unpipe",{signal:e2}))A5.has(r2)&&r2.emit(Ay2);},"onInputStreamsUnpipe"),oI=s4(t15=>{if(typeof t15?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof t15}\`.`)},"validateStream"),o_=s4(async({passThroughStream:t15,stream:A5,streams:e2,ended:r2,aborted:i6,onFinished:n2})=>{vo2(t15,Xm);let o5=new AbortController;try{await Promise.race([g_(n2,A5),a_({passThroughStream:t15,stream:A5,streams:e2,ended:r2,aborted:i6,controller:o5}),C_({stream:A5,streams:e2,ended:r2,aborted:i6,controller:o5})]);}finally{o5.abort(),vo2(t15,-Xm);}e2.size===r2.size+i6.size&&(r2.size===0&&i6.size>0?gI(t15):ey(t15));},"endWhenStreamsDone"),$m2=s4(t15=>t15?.code==="ERR_STREAM_PREMATURE_CLOSE","isAbortError"),g_=s4(async(t15,A5)=>{try{await t15,gI(A5);}catch(e2){$m2(e2)?gI(A5):ty(A5,e2);}},"afterMergedStreamFinished"),a_=s4(async({passThroughStream:t15,stream:A5,streams:e2,ended:r2,aborted:i6,controller:{signal:n2}})=>{try{await finished(A5,{signal:n2,cleanup:!0,readable:!0,writable:!1}),e2.has(A5)&&r2.add(A5);}catch(o5){if(n2.aborted||!e2.has(A5))return;$m2(o5)?i6.add(A5):ty(t15,o5);}},"onInputStreamEnd"),C_=s4(async({stream:t15,streams:A5,ended:e2,aborted:r2,controller:{signal:i6}})=>{await once(t15,Ay2,{signal:i6}),A5.delete(t15),e2.delete(t15),r2.delete(t15);},"onInputStreamUnpipe"),Ay2=Symbol("unpipe"),ey=s4(t15=>{t15.writable&&t15.end();},"endStream"),gI=s4(t15=>{(t15.readable||t15.writable)&&t15.destroy();},"abortStream"),ty=s4((t15,A5)=>{t15.destroyed||(t15.once("error",c_),t15.destroy(A5));},"errorStream"),c_=s4(()=>{},"noop"),vo2=s4((t15,A5)=>{let e2=t15.getMaxListeners();e2!==0&&e2!==Number.POSITIVE_INFINITY&&t15.setMaxListeners(e2+A5);},"updateMaxListeners"),Vm=2,Xm=1;}),iy=m(Vr2=>{Object.defineProperty(Vr2,"__esModule",{value:!0}),Vr2.splitWhen=Vr2.flatten=void 0;function I_(t15){return t15.reduce((A5,e2)=>[].concat(A5,e2),[])}s4(I_,"flatten"),Vr2.flatten=I_;function h_(t15,A5){let e2=[[]],r2=0;for(let i6 of t15)A5(i6)?(r2++,e2[r2]=[]):e2[r2].push(i6);return e2}s4(h_,"splitWhen"),Vr2.splitWhen=h_;}),sy=m(Lo4=>{Object.defineProperty(Lo4,"__esModule",{value:!0}),Lo4.isEnoentCodeError=void 0;function l_(t15){return t15.code==="ENOENT"}s4(l_,"isEnoentCodeError"),Lo4.isEnoentCodeError=l_;}),ny=m(xo2=>{Object.defineProperty(xo2,"__esModule",{value:!0}),xo2.createDirentFromStats=void 0;var CI=class{static{s4(this,"DirentFromStats");}constructor(A5,e2){this.name=A5,this.isBlockDevice=e2.isBlockDevice.bind(e2),this.isCharacterDevice=e2.isCharacterDevice.bind(e2),this.isDirectory=e2.isDirectory.bind(e2),this.isFIFO=e2.isFIFO.bind(e2),this.isFile=e2.isFile.bind(e2),this.isSocket=e2.isSocket.bind(e2),this.isSymbolicLink=e2.isSymbolicLink.bind(e2);}};function E_2(t15,A5){return new CI(t15,A5)}s4(E_2,"createDirentFromStats"),xo2.createDirentFromStats=E_2;}),Cy=m(MA=>{Object.defineProperty(MA,"__esModule",{value:!0}),MA.convertPosixPathToPattern=MA.convertWindowsPathToPattern=MA.convertPathToPattern=MA.escapePosixPath=MA.escapeWindowsPath=MA.escape=MA.removeLeadingDotSegment=MA.makeAbsolute=MA.unixify=void 0;var u_=v7("os"),B_=v7("path"),oy=u_.platform()==="win32",Q_=2,f_=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,d_=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,p_=/^\\\\([.?])/,w_=/\\(?![!()+@[\]{}])/g;function m_(t15){return t15.replace(/\\/g,"/")}s4(m_,"unixify"),MA.unixify=m_;function y_(t15,A5){return B_.resolve(t15,A5)}s4(y_,"makeAbsolute"),MA.makeAbsolute=y_;function D_(t15){if(t15.charAt(0)==="."){let A5=t15.charAt(1);if(A5==="/"||A5==="\\")return t15.slice(Q_)}return t15}s4(D_,"removeLeadingDotSegment"),MA.removeLeadingDotSegment=D_,MA.escape=oy?cI:II2;function cI(t15){return t15.replace(d_,"\\$2")}s4(cI,"escapeWindowsPath"),MA.escapeWindowsPath=cI;function II2(t15){return t15.replace(f_,"\\$2")}s4(II2,"escapePosixPath"),MA.escapePosixPath=II2,MA.convertPathToPattern=oy?gy:ay;function gy(t15){return cI(t15).replace(p_,"//$1").replace(w_,"/")}s4(gy,"convertWindowsPathToPattern"),MA.convertWindowsPathToPattern=gy;function ay(t15){return II2(t15)}s4(ay,"convertPosixPathToPattern"),MA.convertPosixPathToPattern=ay;}),Iy2=m((m6,cy)=>{cy.exports=s4(function(A5){if(typeof A5!="string"||A5==="")return !1;for(var e2;e2=/(\\).|([@?!+*]\(.*\))/g.exec(A5);){if(e2[2])return !0;A5=A5.slice(e2.index+e2[0].length);}return !1},"isExtglob");}),Ey=m((D6,ly)=>{var S_=Iy2(),hy={"{":"}","(":")","[":"]"},K_=s4(function(t15){if(t15[0]==="!")return !0;for(var A5=0,e2=-2,r2=-2,i6=-2,n2=-2,o5=-2;A5<t15.length;){if(t15[A5]==="*"||t15[A5+1]==="?"&&/[\].+)]/.test(t15[A5])||r2!==-1&&t15[A5]==="["&&t15[A5+1]!=="]"&&(r2<A5&&(r2=t15.indexOf("]",A5)),r2>A5&&(o5===-1||o5>r2||(o5=t15.indexOf("\\",A5),o5===-1||o5>r2)))||i6!==-1&&t15[A5]==="{"&&t15[A5+1]!=="}"&&(i6=t15.indexOf("}",A5),i6>A5&&(o5=t15.indexOf("\\",A5),o5===-1||o5>i6))||n2!==-1&&t15[A5]==="("&&t15[A5+1]==="?"&&/[:!=]/.test(t15[A5+2])&&t15[A5+3]!==")"&&(n2=t15.indexOf(")",A5),n2>A5&&(o5=t15.indexOf("\\",A5),o5===-1||o5>n2))||e2!==-1&&t15[A5]==="("&&t15[A5+1]!=="|"&&(e2<A5&&(e2=t15.indexOf("|",A5)),e2!==-1&&t15[e2+1]!==")"&&(n2=t15.indexOf(")",e2),n2>e2&&(o5=t15.indexOf("\\",e2),o5===-1||o5>n2))))return !0;if(t15[A5]==="\\"){var g=t15[A5+1];A5+=2;var C4=hy[g];if(C4){var I7=t15.indexOf(C4,A5);I7!==-1&&(A5=I7+1);}if(t15[A5]==="!")return !0}else A5++;}return !1},"strictCheck"),F_=s4(function(t15){if(t15[0]==="!")return !0;for(var A5=0;A5<t15.length;){if(/[*?{}()[\]]/.test(t15[A5]))return !0;if(t15[A5]==="\\"){var e2=t15[A5+1];A5+=2;var r2=hy[e2];if(r2){var i6=t15.indexOf(r2,A5);i6!==-1&&(A5=i6+1);}if(t15[A5]==="!")return !0}else A5++;}return !1},"relaxedCheck");ly.exports=s4(function(A5,e2){if(typeof A5!="string"||A5==="")return !1;if(S_(A5))return !0;var r2=K_;return e2&&e2.strict===!1&&(r2=F_),r2(A5)},"isGlob");}),By=m((K62,uy)=>{var k_=Ey(),b_=v7("path").posix.dirname,N_=v7("os").platform()==="win32",hI="/",M_=/\\/g,R_=/[\{\[].*[\}\]]$/,v_=/(^|[^\\])([\{\[]|\([^\)]+$)/,L_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;uy.exports=s4(function(A5,e2){var r2=Object.assign({flipBackslashes:!0},e2);r2.flipBackslashes&&N_&&A5.indexOf(hI)<0&&(A5=A5.replace(M_,hI)),R_.test(A5)&&(A5+=hI),A5+="a";do A5=b_(A5);while(k_(A5)||v_.test(A5));return A5.replace(L_,"$1")},"globParent");}),Yo=m(me3=>{me3.isInteger=t15=>typeof t15=="number"?Number.isInteger(t15):typeof t15=="string"&&t15.trim()!==""?Number.isInteger(Number(t15)):!1,me3.find=(t15,A5)=>t15.nodes.find(e2=>e2.type===A5),me3.exceedsLimit=(t15,A5,e2=1,r2)=>r2===!1||!me3.isInteger(t15)||!me3.isInteger(A5)?!1:(Number(A5)-Number(t15))/Number(e2)>=r2,me3.escapeNode=(t15,A5=0,e2)=>{let r2=t15.nodes[A5];r2&&(e2&&r2.type===e2||r2.type==="open"||r2.type==="close")&&r2.escaped!==!0&&(r2.value="\\"+r2.value,r2.escaped=!0);},me3.encloseBrace=t15=>t15.type!=="brace"?!1:t15.commas>>0+t15.ranges>>0===0?(t15.invalid=!0,!0):!1,me3.isInvalidBrace=t15=>t15.type!=="brace"?!1:t15.invalid===!0||t15.dollar?!0:t15.commas>>0+t15.ranges>>0===0||t15.open!==!0||t15.close!==!0?(t15.invalid=!0,!0):!1,me3.isOpenOrClose=t15=>t15.type==="open"||t15.type==="close"?!0:t15.open===!0||t15.close===!0,me3.reduce=t15=>t15.reduce((A5,e2)=>(e2.type==="text"&&A5.push(e2.value),e2.type==="range"&&(e2.type="text"),A5),[]),me3.flatten=(...t15)=>{let A5=[],e2=s4(r2=>{for(let i6=0;i6<r2.length;i6++){let n2=r2[i6];if(Array.isArray(n2)){e2(n2);continue}n2!==void 0&&A5.push(n2);}return A5},"flat");return e2(t15),A5};}),Po2=m((N62,fy)=>{var Qy2=Yo();fy.exports=(t15,A5={})=>{let e2=s4((r2,i6={})=>{let n2=A5.escapeInvalid&&Qy2.isInvalidBrace(i6),o5=r2.invalid===!0&&A5.escapeInvalid===!0,g="";if(r2.value)return (n2||o5)&&Qy2.isOpenOrClose(r2)?"\\"+r2.value:r2.value;if(r2.value)return r2.value;if(r2.nodes)for(let C4 of r2.nodes)g+=e2(C4);return g},"stringify");return e2(t15)};}),py=m((R6,dy)=>{dy.exports=function(t15){return typeof t15=="number"?t15-t15===0:typeof t15=="string"&&t15.trim()!==""?Number.isFinite?Number.isFinite(+t15):isFinite(+t15):!1};}),by=m((v62,ky)=>{var wy=py(),hr3=s4((t15,A5,e2)=>{if(wy(t15)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A5===void 0||t15===A5)return String(t15);if(wy(A5)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r2={relaxZeros:!0,...e2};typeof r2.strictZeros=="boolean"&&(r2.relaxZeros=r2.strictZeros===!1);let i6=String(r2.relaxZeros),n2=String(r2.shorthand),o5=String(r2.capture),g=String(r2.wrap),C4=t15+":"+A5+"="+i6+n2+o5+g;if(hr3.cache.hasOwnProperty(C4))return hr3.cache[C4].result;let I7=Math.min(t15,A5),E6=Math.max(t15,A5);if(Math.abs(I7-E6)===1){let D4=t15+"|"+A5;return r2.capture?`(${D4})`:r2.wrap===!1?D4:`(?:${D4})`}let Q7=Fy(t15)||Fy(A5),B6={min:t15,max:A5,a:I7,b:E6},p4=[],w2=[];if(Q7&&(B6.isPadded=Q7,B6.maxLen=String(B6.max).length),I7<0){let D4=E6<0?Math.abs(E6):1;w2=my(D4,Math.abs(I7),B6,r2),I7=B6.a=0;}return E6>=0&&(p4=my(I7,E6,B6,r2)),B6.negatives=w2,B6.positives=p4,B6.result=x_(w2,p4),r2.capture===!0?B6.result=`(${B6.result})`:r2.wrap!==!1&&p4.length+w2.length>1&&(B6.result=`(?:${B6.result})`),hr3.cache[C4]=B6,B6.result},"toRegexRange");function x_(t15,A5,e2){let r2=lI(t15,A5,"-",!1)||[],i6=lI(A5,t15,"",!1)||[],n2=lI(t15,A5,"-?",!0)||[];return r2.concat(n2).concat(i6).join("|")}s4(x_,"collatePatterns");function Y_(t15,A5){let e2=1,r2=1,i6=Dy(t15,e2),n2=new Set([A5]);for(;t15<=i6&&i6<=A5;)n2.add(i6),e2+=1,i6=Dy(t15,e2);for(i6=Sy(A5+1,r2)-1;t15<i6&&i6<=A5;)n2.add(i6),r2+=1,i6=Sy(A5+1,r2)-1;return n2=[...n2],n2.sort(__),n2}s4(Y_,"splitToRanges");function P_(t15,A5,e2){if(t15===A5)return {pattern:t15,count:[],digits:0};let r2=U_(t15,A5),i6=r2.length,n2="",o5=0;for(let g=0;g<i6;g++){let[C4,I7]=r2[g];C4===I7?n2+=C4:C4!=="0"||I7!=="9"?n2+=G_(C4,I7):o5++;}return o5&&(n2+=e2.shorthand===!0?"\\d":"[0-9]"),{pattern:n2,count:[o5],digits:i6}}s4(P_,"rangeToPattern");function my(t15,A5,e2,r2){let i6=Y_(t15,A5),n2=[],o5=t15,g;for(let C4=0;C4<i6.length;C4++){let I7=i6[C4],E6=P_(String(o5),String(I7),r2),Q7="";if(!e2.isPadded&&g&&g.pattern===E6.pattern){g.count.length>1&&g.count.pop(),g.count.push(E6.count[0]),g.string=g.pattern+Ky(g.count),o5=I7+1;continue}e2.isPadded&&(Q7=J_(I7,e2,r2)),E6.string=Q7+E6.pattern+Ky(E6.count),n2.push(E6),o5=I7+1,g=E6;}return n2}s4(my,"splitToPatterns");function lI(t15,A5,e2,r2,i6){let n2=[];for(let o5 of t15){let{string:g}=o5;!r2&&!yy(A5,"string",g)&&n2.push(e2+g),r2&&yy(A5,"string",g)&&n2.push(e2+g);}return n2}s4(lI,"filterPatterns");function U_(t15,A5){let e2=[];for(let r2=0;r2<t15.length;r2++)e2.push([t15[r2],A5[r2]]);return e2}s4(U_,"zip");function __(t15,A5){return t15>A5?1:A5>t15?-1:0}s4(__,"compare");function yy(t15,A5,e2){return t15.some(r2=>r2[A5]===e2)}s4(yy,"contains");function Dy(t15,A5){return Number(String(t15).slice(0,-A5)+"9".repeat(A5))}s4(Dy,"countNines");function Sy(t15,A5){return t15-t15%Math.pow(10,A5)}s4(Sy,"countZeros");function Ky(t15){let[A5=0,e2=""]=t15;return e2||A5>1?`{${A5+(e2?","+e2:"")}}`:""}s4(Ky,"toQuantifier");function G_(t15,A5,e2){return `[${t15}${A5-t15===1?"":"-"}${A5}]`}s4(G_,"toCharacterClass");function Fy(t15){return /^-?(0+)\d/.test(t15)}s4(Fy,"hasPadding");function J_(t15,A5,e2){if(!A5.isPadded)return t15;let r2=Math.abs(A5.maxLen-String(t15).length),i6=e2.relaxZeros!==!1;switch(r2){case 0:return "";case 1:return i6?"0?":"0";case 2:return i6?"0{0,2}":"00";default:return i6?`0{0,${r2}}`:`0{${r2}}`}}s4(J_,"padZeros"),hr3.cache={},hr3.clearCache=()=>hr3.cache={},ky.exports=hr3;}),BI2=m((x6,Yy)=>{var O_=v7("util"),My=by(),Ny=s4(t15=>t15!==null&&typeof t15=="object"&&!Array.isArray(t15),"isObject"),T_=s4(t15=>A5=>t15===!0?Number(A5):String(A5),"transform"),EI=s4(t15=>typeof t15=="number"||typeof t15=="string"&&t15!=="","isValidValue"),hs2=s4(t15=>Number.isInteger(+t15),"isNumber"),uI=s4(t15=>{let A5=`${t15}`,e2=-1;if(A5[0]==="-"&&(A5=A5.slice(1)),A5==="0")return !1;for(;A5[++e2]==="0";);return e2>0},"zeros"),H_=s4((t15,A5,e2)=>typeof t15=="string"||typeof A5=="string"?!0:e2.stringify===!0,"stringify"),j_=s4((t15,A5,e2)=>{if(A5>0){let r2=t15[0]==="-"?"-":"";r2&&(t15=t15.slice(1)),t15=r2+t15.padStart(r2?A5-1:A5,"0");}return e2===!1?String(t15):t15},"pad"),_o3=s4((t15,A5)=>{let e2=t15[0]==="-"?"-":"";for(e2&&(t15=t15.slice(1),A5--);t15.length<A5;)t15="0"+t15;return e2?"-"+t15:t15},"toMaxLen"),q_=s4((t15,A5,e2)=>{t15.negatives.sort((g,C4)=>g<C4?-1:g>C4?1:0),t15.positives.sort((g,C4)=>g<C4?-1:g>C4?1:0);let r2=A5.capture?"":"?:",i6="",n2="",o5;return t15.positives.length&&(i6=t15.positives.map(g=>_o3(String(g),e2)).join("|")),t15.negatives.length&&(n2=`-(${r2}${t15.negatives.map(g=>_o3(String(g),e2)).join("|")})`),i6&&n2?o5=`${i6}|${n2}`:o5=i6||n2,A5.wrap?`(${r2}${o5})`:o5},"toSequence"),Ry=s4((t15,A5,e2,r2)=>{if(e2)return My(t15,A5,{wrap:!1,...r2});let i6=String.fromCharCode(t15);if(t15===A5)return i6;let n2=String.fromCharCode(A5);return `[${i6}-${n2}]`},"toRange"),vy=s4((t15,A5,e2)=>{if(Array.isArray(t15)){let r2=e2.wrap===!0,i6=e2.capture?"":"?:";return r2?`(${i6}${t15.join("|")})`:t15.join("|")}return My(t15,A5,e2)},"toRegex"),Ly2=s4((...t15)=>new RangeError("Invalid range arguments: "+O_.inspect(...t15)),"rangeError"),xy=s4((t15,A5,e2)=>{if(e2.strictRanges===!0)throw Ly2([t15,A5]);return []},"invalidRange"),z_=s4((t15,A5)=>{if(A5.strictRanges===!0)throw new TypeError(`Expected step "${t15}" to be a number`);return []},"invalidStep"),W_2=s4((t15,A5,e2=1,r2={})=>{let i6=Number(t15),n2=Number(A5);if(!Number.isInteger(i6)||!Number.isInteger(n2)){if(r2.strictRanges===!0)throw Ly2([t15,A5]);return []}i6===0&&(i6=0),n2===0&&(n2=0);let o5=i6>n2,g=String(t15),C4=String(A5),I7=String(e2);e2=Math.max(Math.abs(e2),1);let E6=uI(g)||uI(C4)||uI(I7),Q7=E6?Math.max(g.length,C4.length,I7.length):0,B6=E6===!1&&H_(t15,A5,r2)===!1,p4=r2.transform||T_(B6);if(r2.toRegex&&e2===1)return Ry(_o3(t15,Q7),_o3(A5,Q7),!0,r2);let w2={negatives:[],positives:[]},D4=s4(_6=>w2[_6<0?"negatives":"positives"].push(Math.abs(_6)),"push"),N7=[],k6=0;for(;o5?i6>=n2:i6<=n2;)r2.toRegex===!0&&e2>1?D4(i6):N7.push(j_(p4(i6,k6),Q7,B6)),i6=o5?i6-e2:i6+e2,k6++;return r2.toRegex===!0?e2>1?q_(w2,r2,Q7):vy(N7,null,{wrap:!1,...r2}):N7},"fillNumbers"),V_=s4((t15,A5,e2=1,r2={})=>{if(!hs2(t15)&&t15.length>1||!hs2(A5)&&A5.length>1)return xy(t15,A5,r2);let i6=r2.transform||(B6=>String.fromCharCode(B6)),n2=`${t15}`.charCodeAt(0),o5=`${A5}`.charCodeAt(0),g=n2>o5,C4=Math.min(n2,o5),I7=Math.max(n2,o5);if(r2.toRegex&&e2===1)return Ry(C4,I7,!1,r2);let E6=[],Q7=0;for(;g?n2>=o5:n2<=o5;)E6.push(i6(n2,Q7)),n2=g?n2-e2:n2+e2,Q7++;return r2.toRegex===!0?vy(E6,null,{wrap:!1,options:r2}):E6},"fillLetters"),Uo3=s4((t15,A5,e2,r2={})=>{if(A5==null&&EI(t15))return [t15];if(!EI(t15)||!EI(A5))return xy(t15,A5,r2);if(typeof e2=="function")return Uo3(t15,A5,1,{transform:e2});if(Ny(e2))return Uo3(t15,A5,0,e2);let i6={...r2};return i6.capture===!0&&(i6.wrap=!0),e2=e2||i6.step||1,hs2(e2)?hs2(t15)&&hs2(A5)?W_2(t15,A5,e2,i6):V_(t15,A5,Math.max(Math.abs(e2),1),i6):e2!=null&&!Ny(e2)?z_(e2,i6):Uo3(t15,A5,1,e2)},"fill");Yy.exports=Uo3;}),_y2=m((P62,Uy)=>{var X_=BI2(),Py=Yo(),Z_2=s4((t15,A5={})=>{let e2=s4((r2,i6={})=>{let n2=Py.isInvalidBrace(i6),o5=r2.invalid===!0&&A5.escapeInvalid===!0,g=n2===!0||o5===!0,C4=A5.escapeInvalid===!0?"\\":"",I7="";if(r2.isOpen===!0)return C4+r2.value;if(r2.isClose===!0)return console.log("node.isClose",C4,r2.value),C4+r2.value;if(r2.type==="open")return g?C4+r2.value:"(";if(r2.type==="close")return g?C4+r2.value:")";if(r2.type==="comma")return r2.prev.type==="comma"?"":g?r2.value:"|";if(r2.value)return r2.value;if(r2.nodes&&r2.ranges>0){let E6=Py.reduce(r2.nodes),Q7=X_(...E6,{...A5,wrap:!1,toRegex:!0,strictZeros:!0});if(Q7.length!==0)return E6.length>1&&Q7.length>1?`(${Q7})`:Q7}if(r2.nodes)for(let E6 of r2.nodes)I7+=e2(E6,r2);return I7},"walk");return e2(t15)},"compile");Uy.exports=Z_2;}),Oy=m((_6,Jy)=>{var $_=BI2(),Gy=Po2(),Xr2=Yo(),lr2=s4((t15="",A5="",e2=!1)=>{let r2=[];if(t15=[].concat(t15),A5=[].concat(A5),!A5.length)return t15;if(!t15.length)return e2?Xr2.flatten(A5).map(i6=>`{${i6}}`):A5;for(let i6 of t15)if(Array.isArray(i6))for(let n2 of i6)r2.push(lr2(n2,A5,e2));else for(let n2 of A5)e2===!0&&typeof n2=="string"&&(n2=`{${n2}}`),r2.push(Array.isArray(n2)?lr2(i6,n2,e2):i6+n2);return Xr2.flatten(r2)},"append"),AG=s4((t15,A5={})=>{let e2=A5.rangeLimit===void 0?1e3:A5.rangeLimit,r2=s4((i6,n2={})=>{i6.queue=[];let o5=n2,g=n2.queue;for(;o5.type!=="brace"&&o5.type!=="root"&&o5.parent;)o5=o5.parent,g=o5.queue;if(i6.invalid||i6.dollar){g.push(lr2(g.pop(),Gy(i6,A5)));return}if(i6.type==="brace"&&i6.invalid!==!0&&i6.nodes.length===2){g.push(lr2(g.pop(),["{}"]));return}if(i6.nodes&&i6.ranges>0){let Q7=Xr2.reduce(i6.nodes);if(Xr2.exceedsLimit(...Q7,A5.step,e2))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let B6=$_(...Q7,A5);B6.length===0&&(B6=Gy(i6,A5)),g.push(lr2(g.pop(),B6)),i6.nodes=[];return}let C4=Xr2.encloseBrace(i6),I7=i6.queue,E6=i6;for(;E6.type!=="brace"&&E6.type!=="root"&&E6.parent;)E6=E6.parent,I7=E6.queue;for(let Q7=0;Q7<i6.nodes.length;Q7++){let B6=i6.nodes[Q7];if(B6.type==="comma"&&i6.type==="brace"){Q7===1&&I7.push(""),I7.push("");continue}if(B6.type==="close"){g.push(lr2(g.pop(),I7,C4));continue}if(B6.value&&B6.type!=="open"){I7.push(lr2(I7.pop(),B6.value));continue}B6.nodes&&r2(B6,i6);}return I7},"walk");return Xr2.flatten(r2(t15))},"expand");Jy.exports=AG;}),Hy=m((J62,Ty)=>{Ty.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:`
|
1603
|
-
`,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"};}),Vy=m((O62,Wy)=>{var eG=Po2(),{MAX_LENGTH:jy,CHAR_BACKSLASH:QI2,CHAR_BACKTICK:tG,CHAR_COMMA:rG,CHAR_DOT:iG,CHAR_LEFT_PARENTHESES:sG,CHAR_RIGHT_PARENTHESES:nG,CHAR_LEFT_CURLY_BRACE:oG,CHAR_RIGHT_CURLY_BRACE:gG,CHAR_LEFT_SQUARE_BRACKET:qy,CHAR_RIGHT_SQUARE_BRACKET:zy,CHAR_DOUBLE_QUOTE:aG,CHAR_SINGLE_QUOTE:CG,CHAR_NO_BREAK_SPACE:cG,CHAR_ZERO_WIDTH_NOBREAK_SPACE:IG}=Hy(),hG=s4((t15,A5={})=>{if(typeof t15!="string")throw new TypeError("Expected a string");let e2=A5||{},r2=typeof e2.maxLength=="number"?Math.min(jy,e2.maxLength):jy;if(t15.length>r2)throw new SyntaxError(`Input length (${t15.length}), exceeds max characters (${r2})`);let i6={type:"root",input:t15,nodes:[]},n2=[i6],o5=i6,g=i6,C4=0,I7=t15.length,E6=0,Q7=0,B6,p4=s4(()=>t15[E6++],"advance"),w2=s4(D4=>{if(D4.type==="text"&&g.type==="dot"&&(g.type="text"),g&&g.type==="text"&&D4.type==="text"){g.value+=D4.value;return}return o5.nodes.push(D4),D4.parent=o5,D4.prev=g,g=D4,D4},"push");for(w2({type:"bos"});E6<I7;)if(o5=n2[n2.length-1],B6=p4(),!(B6===IG||B6===cG)){if(B6===QI2){w2({type:"text",value:(A5.keepEscaping?B6:"")+p4()});continue}if(B6===zy){w2({type:"text",value:"\\"+B6});continue}if(B6===qy){C4++;let D4;for(;E6<I7&&(D4=p4());){if(B6+=D4,D4===qy){C4++;continue}if(D4===QI2){B6+=p4();continue}if(D4===zy&&(C4--,C4===0))break}w2({type:"text",value:B6});continue}if(B6===sG){o5=w2({type:"paren",nodes:[]}),n2.push(o5),w2({type:"text",value:B6});continue}if(B6===nG){if(o5.type!=="paren"){w2({type:"text",value:B6});continue}o5=n2.pop(),w2({type:"text",value:B6}),o5=n2[n2.length-1];continue}if(B6===aG||B6===CG||B6===tG){let D4=B6,N7;for(A5.keepQuotes!==!0&&(B6="");E6<I7&&(N7=p4());){if(N7===QI2){B6+=N7+p4();continue}if(N7===D4){A5.keepQuotes===!0&&(B6+=N7);break}B6+=N7;}w2({type:"text",value:B6});continue}if(B6===oG){Q7++;let N7={type:"brace",open:!0,close:!1,dollar:g.value&&g.value.slice(-1)==="$"||o5.dollar===!0,depth:Q7,commas:0,ranges:0,nodes:[]};o5=w2(N7),n2.push(o5),w2({type:"open",value:B6});continue}if(B6===gG){if(o5.type!=="brace"){w2({type:"text",value:B6});continue}let D4="close";o5=n2.pop(),o5.close=!0,w2({type:D4,value:B6}),Q7--,o5=n2[n2.length-1];continue}if(B6===rG&&Q7>0){if(o5.ranges>0){o5.ranges=0;let D4=o5.nodes.shift();o5.nodes=[D4,{type:"text",value:eG(o5)}];}w2({type:"comma",value:B6}),o5.commas++;continue}if(B6===iG&&Q7>0&&o5.commas===0){let D4=o5.nodes;if(Q7===0||D4.length===0){w2({type:"text",value:B6});continue}if(g.type==="dot"){if(o5.range=[],g.value+=B6,g.type="range",o5.nodes.length!==3&&o5.nodes.length!==5){o5.invalid=!0,o5.ranges=0,g.type="text";continue}o5.ranges++,o5.args=[];continue}if(g.type==="range"){D4.pop();let N7=D4[D4.length-1];N7.value+=g.value+B6,g=N7,o5.ranges--;continue}w2({type:"dot",value:B6});continue}w2({type:"text",value:B6});}do if(o5=n2.pop(),o5.type!=="root"){o5.nodes.forEach(k6=>{k6.nodes||(k6.type==="open"&&(k6.isOpen=!0),k6.type==="close"&&(k6.isClose=!0),k6.nodes||(k6.type="text"),k6.invalid=!0);});let D4=n2[n2.length-1],N7=D4.nodes.indexOf(o5);D4.nodes.splice(N7,1,...o5.nodes);}while(n2.length>0);return w2({type:"eos"}),i6},"parse");Wy.exports=hG;}),$y=m((H62,Zy2)=>{var Xy=Po2(),lG=_y2(),EG=Oy(),uG=Vy(),Ee4=s4((t15,A5={})=>{let e2=[];if(Array.isArray(t15))for(let r2 of t15){let i6=Ee4.create(r2,A5);Array.isArray(i6)?e2.push(...i6):e2.push(i6);}else e2=[].concat(Ee4.create(t15,A5));return A5&&A5.expand===!0&&A5.nodupes===!0&&(e2=[...new Set(e2)]),e2},"braces");Ee4.parse=(t15,A5={})=>uG(t15,A5),Ee4.stringify=(t15,A5={})=>Xy(typeof t15=="string"?Ee4.parse(t15,A5):t15,A5),Ee4.compile=(t15,A5={})=>(typeof t15=="string"&&(t15=Ee4.parse(t15,A5)),lG(t15,A5)),Ee4.expand=(t15,A5={})=>{typeof t15=="string"&&(t15=Ee4.parse(t15,A5));let e2=EG(t15,A5);return A5.noempty===!0&&(e2=e2.filter(Boolean)),A5.nodupes===!0&&(e2=[...new Set(e2)]),e2},Ee4.create=(t15,A5={})=>t15===""||t15.length<3?[t15]:A5.expand!==!0?Ee4.compile(t15,A5):Ee4.expand(t15,A5),Zy2.exports=Ee4;}),sD3=m((q62,iD2)=>{var eD3=v7("util"),tD4=$y(),At3=Nn(),fI=Hi(),AD2=s4(t15=>t15===""||t15==="./","isEmptyString"),rD3=s4(t15=>{let A5=t15.indexOf("{");return A5>-1&&t15.indexOf("}",A5)>-1},"hasBraces"),wA=s4((t15,A5,e2)=>{A5=[].concat(A5),t15=[].concat(t15);let r2=new Set,i6=new Set,n2=new Set,o5=0,g=s4(E6=>{n2.add(E6.output),e2&&e2.onResult&&e2.onResult(E6);},"onResult");for(let E6=0;E6<A5.length;E6++){let Q7=At3(String(A5[E6]),{...e2,onResult:g},!0),B6=Q7.state.negated||Q7.state.negatedExtglob;B6&&o5++;for(let p4 of t15){let w2=Q7(p4,!0);(B6?!w2.isMatch:w2.isMatch)&&(B6?r2.add(w2.output):(r2.delete(w2.output),i6.add(w2.output)));}}let I7=(o5===A5.length?[...n2]:[...i6]).filter(E6=>!r2.has(E6));if(e2&&I7.length===0){if(e2.failglob===!0)throw new Error(`No matches found for "${A5.join(", ")}"`);if(e2.nonull===!0||e2.nullglob===!0)return e2.unescape?A5.map(E6=>E6.replace(/\\/g,"")):A5}return I7},"micromatch");wA.match=wA,wA.matcher=(t15,A5)=>At3(t15,A5),wA.isMatch=(t15,A5,e2)=>At3(A5,e2)(t15),wA.any=wA.isMatch,wA.not=(t15,A5,e2={})=>{A5=[].concat(A5).map(String);let r2=new Set,i6=[],n2=s4(g=>{e2.onResult&&e2.onResult(g),i6.push(g.output);},"onResult"),o5=new Set(wA(t15,A5,{...e2,onResult:n2}));for(let g of i6)o5.has(g)||r2.add(g);return [...r2]},wA.contains=(t15,A5,e2)=>{if(typeof t15!="string")throw new TypeError(`Expected a string: "${eD3.inspect(t15)}"`);if(Array.isArray(A5))return A5.some(r2=>wA.contains(t15,r2,e2));if(typeof A5=="string"){if(AD2(t15)||AD2(A5))return !1;if(t15.includes(A5)||t15.startsWith("./")&&t15.slice(2).includes(A5))return !0}return wA.isMatch(t15,A5,{...e2,contains:!0})},wA.matchKeys=(t15,A5,e2)=>{if(!fI.isObject(t15))throw new TypeError("Expected the first argument to be an object");let r2=wA(Object.keys(t15),A5,e2),i6={};for(let n2 of r2)i6[n2]=t15[n2];return i6},wA.some=(t15,A5,e2)=>{let r2=[].concat(t15);for(let i6 of [].concat(A5)){let n2=At3(String(i6),e2);if(r2.some(o5=>n2(o5)))return !0}return !1},wA.every=(t15,A5,e2)=>{let r2=[].concat(t15);for(let i6 of [].concat(A5)){let n2=At3(String(i6),e2);if(!r2.every(o5=>n2(o5)))return !1}return !0},wA.all=(t15,A5,e2)=>{if(typeof t15!="string")throw new TypeError(`Expected a string: "${eD3.inspect(t15)}"`);return [].concat(A5).every(r2=>At3(r2,e2)(t15))},wA.capture=(t15,A5,e2)=>{let r2=fI.isWindows(e2),n2=At3.makeRe(String(t15),{...e2,capture:!0}).exec(r2?fI.toPosixSlashes(A5):A5);if(n2)return n2.slice(1).map(o5=>o5===void 0?"":o5)},wA.makeRe=(...t15)=>At3.makeRe(...t15),wA.scan=(...t15)=>At3.scan(...t15),wA.parse=(t15,A5)=>{let e2=[];for(let r2 of [].concat(t15||[]))for(let i6 of tD4(String(r2),A5))e2.push(At3.parse(i6,A5));return e2},wA.braces=(t15,A5)=>{if(typeof t15!="string")throw new TypeError("Expected a string");return A5&&A5.nobrace===!0||!rD3(t15)?[t15]:tD4(t15,A5)},wA.braceExpand=(t15,A5)=>{if(typeof t15!="string")throw new TypeError("Expected a string");return wA.braces(t15,{...A5,expand:!0})},wA.hasBraces=rD3,iD2.exports=wA;}),ED2=m(AA=>{Object.defineProperty(AA,"__esModule",{value:!0}),AA.isAbsolute=AA.partitionAbsoluteAndRelative=AA.removeDuplicateSlashes=AA.matchAny=AA.convertPatternsToRe=AA.makeRe=AA.getPatternParts=AA.expandBraceExpansion=AA.expandPatternsWithBraceExpansion=AA.isAffectDepthOfReadingPattern=AA.endsWithSlashGlobStar=AA.hasGlobStar=AA.getBaseDirectory=AA.isPatternRelatedToParentDirectory=AA.getPatternsOutsideCurrentDirectory=AA.getPatternsInsideCurrentDirectory=AA.getPositivePatterns=AA.getNegativePatterns=AA.isPositivePattern=AA.isNegativePattern=AA.convertToNegativePattern=AA.convertToPositivePattern=AA.isDynamicPattern=AA.isStaticPattern=void 0;var nD2=v7("path"),BG=By(),dI=sD3(),oD2="**",QG="\\",fG=/[*?]|^!/,dG=/\[[^[]*]/,pG=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wG=/[!*+?@]\([^(]*\)/,mG=/,|\.\./,yG=/(?!^)\/{2,}/g;function gD2(t15,A5={}){return !aD2(t15,A5)}s4(gD2,"isStaticPattern"),AA.isStaticPattern=gD2;function aD2(t15,A5={}){return t15===""?!1:!!(A5.caseSensitiveMatch===!1||t15.includes(QG)||fG.test(t15)||dG.test(t15)||pG.test(t15)||A5.extglob!==!1&&wG.test(t15)||A5.braceExpansion!==!1&&DG(t15))}s4(aD2,"isDynamicPattern"),AA.isDynamicPattern=aD2;function DG(t15){let A5=t15.indexOf("{");if(A5===-1)return !1;let e2=t15.indexOf("}",A5+1);if(e2===-1)return !1;let r2=t15.slice(A5,e2);return mG.test(r2)}s4(DG,"hasBraceExpansion");function SG(t15){return Go2(t15)?t15.slice(1):t15}s4(SG,"convertToPositivePattern"),AA.convertToPositivePattern=SG;function KG(t15){return "!"+t15}s4(KG,"convertToNegativePattern"),AA.convertToNegativePattern=KG;function Go2(t15){return t15.startsWith("!")&&t15[1]!=="("}s4(Go2,"isNegativePattern"),AA.isNegativePattern=Go2;function CD3(t15){return !Go2(t15)}s4(CD3,"isPositivePattern"),AA.isPositivePattern=CD3;function FG(t15){return t15.filter(Go2)}s4(FG,"getNegativePatterns"),AA.getNegativePatterns=FG;function kG(t15){return t15.filter(CD3)}s4(kG,"getPositivePatterns"),AA.getPositivePatterns=kG;function bG(t15){return t15.filter(A5=>!pI(A5))}s4(bG,"getPatternsInsideCurrentDirectory"),AA.getPatternsInsideCurrentDirectory=bG;function NG(t15){return t15.filter(pI)}s4(NG,"getPatternsOutsideCurrentDirectory"),AA.getPatternsOutsideCurrentDirectory=NG;function pI(t15){return t15.startsWith("..")||t15.startsWith("./..")}s4(pI,"isPatternRelatedToParentDirectory"),AA.isPatternRelatedToParentDirectory=pI;function MG(t15){return BG(t15,{flipBackslashes:!1})}s4(MG,"getBaseDirectory"),AA.getBaseDirectory=MG;function RG(t15){return t15.includes(oD2)}s4(RG,"hasGlobStar"),AA.hasGlobStar=RG;function cD2(t15){return t15.endsWith("/"+oD2)}s4(cD2,"endsWithSlashGlobStar"),AA.endsWithSlashGlobStar=cD2;function vG(t15){let A5=nD2.basename(t15);return cD2(t15)||gD2(A5)}s4(vG,"isAffectDepthOfReadingPattern"),AA.isAffectDepthOfReadingPattern=vG;function LG(t15){return t15.reduce((A5,e2)=>A5.concat(ID3(e2)),[])}s4(LG,"expandPatternsWithBraceExpansion"),AA.expandPatternsWithBraceExpansion=LG;function ID3(t15){let A5=dI.braces(t15,{expand:!0,nodupes:!0,keepEscaping:!0});return A5.sort((e2,r2)=>e2.length-r2.length),A5.filter(e2=>e2!=="")}s4(ID3,"expandBraceExpansion"),AA.expandBraceExpansion=ID3;function xG(t15,A5){let{parts:e2}=dI.scan(t15,Object.assign(Object.assign({},A5),{parts:!0}));return e2.length===0&&(e2=[t15]),e2[0].startsWith("/")&&(e2[0]=e2[0].slice(1),e2.unshift("")),e2}s4(xG,"getPatternParts"),AA.getPatternParts=xG;function hD2(t15,A5){return dI.makeRe(t15,A5)}s4(hD2,"makeRe"),AA.makeRe=hD2;function YG(t15,A5){return t15.map(e2=>hD2(e2,A5))}s4(YG,"convertPatternsToRe"),AA.convertPatternsToRe=YG;function PG(t15,A5){return A5.some(e2=>e2.test(t15))}s4(PG,"matchAny"),AA.matchAny=PG;function UG(t15){return t15.replace(yG,"/")}s4(UG,"removeDuplicateSlashes"),AA.removeDuplicateSlashes=UG;function _G(t15){let A5=[],e2=[];for(let r2 of t15)lD3(r2)?A5.push(r2):e2.push(r2);return [A5,e2]}s4(_G,"partitionAbsoluteAndRelative"),AA.partitionAbsoluteAndRelative=_G;function lD3(t15){return nD2.isAbsolute(t15)}s4(lD3,"isAbsolute"),AA.isAbsolute=lD3;}),fD2=m((X62,QD3)=>{var GG=v7("stream"),uD2=GG.PassThrough,JG=Array.prototype.slice;QD3.exports=OG;function OG(){let t15=[],A5=JG.call(arguments),e2=!1,r2=A5[A5.length-1];r2&&!Array.isArray(r2)&&r2.pipe==null?A5.pop():r2={};let i6=r2.end!==!1,n2=r2.pipeError===!0;r2.objectMode==null&&(r2.objectMode=!0),r2.highWaterMark==null&&(r2.highWaterMark=64*1024);let o5=uD2(r2);function g(){for(let E6=0,Q7=arguments.length;E6<Q7;E6++)t15.push(BD2(arguments[E6],r2));return C4(),this}s4(g,"addStream");function C4(){if(e2)return;e2=!0;let E6=t15.shift();if(!E6){process.nextTick(I7);return}Array.isArray(E6)||(E6=[E6]);let Q7=E6.length+1;function B6(){--Q7>0||(e2=!1,C4());}s4(B6,"next");function p4(w2){function D4(){w2.removeListener("merge2UnpipeEnd",D4),w2.removeListener("end",D4),n2&&w2.removeListener("error",N7),B6();}s4(D4,"onend");function N7(k6){o5.emit("error",k6);}if(s4(N7,"onerror"),w2._readableState.endEmitted)return B6();w2.on("merge2UnpipeEnd",D4),w2.on("end",D4),n2&&w2.on("error",N7),w2.pipe(o5,{end:!1}),w2.resume();}s4(p4,"pipe");for(let w2=0;w2<E6.length;w2++)p4(E6[w2]);B6();}s4(C4,"mergeStream");function I7(){e2=!1,o5.emit("queueDrain"),i6&&o5.end();}return s4(I7,"endStream"),o5.setMaxListeners(0),o5.add=g,o5.on("unpipe",function(E6){E6.emit("merge2UnpipeEnd");}),A5.length&&g.apply(null,A5),o5}s4(OG,"merge2");function BD2(t15,A5){if(Array.isArray(t15))for(let e2=0,r2=t15.length;e2<r2;e2++)t15[e2]=BD2(t15[e2],A5);else {if(!t15._readableState&&t15.pipe&&(t15=t15.pipe(uD2(A5))),!t15._readableState||!t15.pause||!t15.pipe)throw new Error("Only readable stream can be merged.");t15.pause();}return t15}s4(BD2,"pauseStreams");}),pD2=m(Jo2=>{Object.defineProperty(Jo2,"__esModule",{value:!0}),Jo2.merge=void 0;var TG=fD2();function HG(t15){let A5=TG(t15);return t15.forEach(e2=>{e2.once("error",r2=>A5.emit("error",r2));}),A5.once("close",()=>dD2(t15)),A5.once("end",()=>dD2(t15)),A5}s4(HG,"merge"),Jo2.merge=HG;function dD2(t15){t15.forEach(A5=>A5.emit("close"));}s4(dD2,"propagateCloseEventToSources");}),wD2=m(Zr3=>{Object.defineProperty(Zr3,"__esModule",{value:!0}),Zr3.isEmpty=Zr3.isString=void 0;function jG(t15){return typeof t15=="string"}s4(jG,"isString"),Zr3.isString=jG;function qG(t15){return t15===""}s4(qG,"isEmpty"),Zr3.isEmpty=qG;}),yt2=m(zA=>{Object.defineProperty(zA,"__esModule",{value:!0}),zA.string=zA.stream=zA.pattern=zA.path=zA.fs=zA.errno=zA.array=void 0;var zG=iy();zA.array=zG;var WG=sy();zA.errno=WG;var VG=ny();zA.fs=VG;var XG=Cy();zA.path=XG;var ZG=ED2();zA.pattern=ZG;var $G=pD2();zA.stream=$G;var AJ=wD2();zA.string=AJ;}),SD2=m(WA=>{Object.defineProperty(WA,"__esModule",{value:!0}),WA.convertPatternGroupToTask=WA.convertPatternGroupsToTasks=WA.groupPatternsByBaseDirectory=WA.getNegativePatternsAsPositive=WA.getPositivePatterns=WA.convertPatternsToTasks=WA.generate=void 0;var Ge2=yt2();function eJ(t15,A5){let e2=mD2(t15,A5),r2=mD2(A5.ignore,A5),i6=yD2(e2),n2=DD2(e2,r2),o5=i6.filter(E6=>Ge2.pattern.isStaticPattern(E6,A5)),g=i6.filter(E6=>Ge2.pattern.isDynamicPattern(E6,A5)),C4=wI(o5,n2,!1),I7=wI(g,n2,!0);return C4.concat(I7)}s4(eJ,"generate"),WA.generate=eJ;function mD2(t15,A5){let e2=t15;return A5.braceExpansion&&(e2=Ge2.pattern.expandPatternsWithBraceExpansion(e2)),A5.baseNameMatch&&(e2=e2.map(r2=>r2.includes("/")?r2:`**/${r2}`)),e2.map(r2=>Ge2.pattern.removeDuplicateSlashes(r2))}s4(mD2,"processPatterns");function wI(t15,A5,e2){let r2=[],i6=Ge2.pattern.getPatternsOutsideCurrentDirectory(t15),n2=Ge2.pattern.getPatternsInsideCurrentDirectory(t15),o5=mI(i6),g=mI(n2);return r2.push(...yI(o5,A5,e2)),"."in g?r2.push(DI(".",n2,A5,e2)):r2.push(...yI(g,A5,e2)),r2}s4(wI,"convertPatternsToTasks"),WA.convertPatternsToTasks=wI;function yD2(t15){return Ge2.pattern.getPositivePatterns(t15)}s4(yD2,"getPositivePatterns"),WA.getPositivePatterns=yD2;function DD2(t15,A5){return Ge2.pattern.getNegativePatterns(t15).concat(A5).map(Ge2.pattern.convertToPositivePattern)}s4(DD2,"getNegativePatternsAsPositive"),WA.getNegativePatternsAsPositive=DD2;function mI(t15){let A5={};return t15.reduce((e2,r2)=>{let i6=Ge2.pattern.getBaseDirectory(r2);return i6 in e2?e2[i6].push(r2):e2[i6]=[r2],e2},A5)}s4(mI,"groupPatternsByBaseDirectory"),WA.groupPatternsByBaseDirectory=mI;function yI(t15,A5,e2){return Object.keys(t15).map(r2=>DI(r2,t15[r2],A5,e2))}s4(yI,"convertPatternGroupsToTasks"),WA.convertPatternGroupsToTasks=yI;function DI(t15,A5,e2,r2){return {dynamic:r2,positive:A5,negative:e2,base:t15,patterns:[].concat(A5,e2.map(Ge2.pattern.convertToNegativePattern))}}s4(DI,"convertPatternGroupToTask"),WA.convertPatternGroupToTask=DI;}),FD2=m(Oo2=>{Object.defineProperty(Oo2,"__esModule",{value:!0}),Oo2.read=void 0;function tJ(t15,A5,e2){A5.fs.lstat(t15,(r2,i6)=>{if(r2!==null){KD2(e2,r2);return}if(!i6.isSymbolicLink()||!A5.followSymbolicLink){SI(e2,i6);return}A5.fs.stat(t15,(n2,o5)=>{if(n2!==null){if(A5.throwErrorOnBrokenSymbolicLink){KD2(e2,n2);return}SI(e2,i6);return}A5.markSymbolicLink&&(o5.isSymbolicLink=()=>!0),SI(e2,o5);});});}s4(tJ,"read"),Oo2.read=tJ;function KD2(t15,A5){t15(A5);}s4(KD2,"callFailureCallback");function SI(t15,A5){t15(null,A5);}s4(SI,"callSuccessCallback");}),kD=m(To2=>{Object.defineProperty(To2,"__esModule",{value:!0}),To2.read=void 0;function rJ(t15,A5){let e2=A5.fs.lstatSync(t15);if(!e2.isSymbolicLink()||!A5.followSymbolicLink)return e2;try{let r2=A5.fs.statSync(t15);return A5.markSymbolicLink&&(r2.isSymbolicLink=()=>!0),r2}catch(r2){if(!A5.throwErrorOnBrokenSymbolicLink)return e2;throw r2}}s4(rJ,"read"),To2.read=rJ;}),bD2=m(Ht2=>{Object.defineProperty(Ht2,"__esModule",{value:!0}),Ht2.createFileSystemAdapter=Ht2.FILE_SYSTEM_ADAPTER=void 0;var Ho2=v7("fs");Ht2.FILE_SYSTEM_ADAPTER={lstat:Ho2.lstat,stat:Ho2.stat,lstatSync:Ho2.lstatSync,statSync:Ho2.statSync};function iJ(t15){return t15===void 0?Ht2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ht2.FILE_SYSTEM_ADAPTER),t15)}s4(iJ,"createFileSystemAdapter"),Ht2.createFileSystemAdapter=iJ;}),ND2=m(FI=>{Object.defineProperty(FI,"__esModule",{value:!0});var sJ=bD2(),KI2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5??e2}};FI.default=KI2;}),Er2=m(jt2=>{Object.defineProperty(jt2,"__esModule",{value:!0}),jt2.statSync=jt2.stat=jt2.Settings=void 0;var MD=FD2(),nJ=kD(),kI2=ND2();jt2.Settings=kI2.default;function oJ(t15,A5,e2){if(typeof A5=="function"){MD.read(t15,bI(),A5);return}MD.read(t15,bI(A5),e2);}s4(oJ,"stat"),jt2.stat=oJ;function gJ(t15,A5){let e2=bI(A5);return nJ.read(t15,e2)}s4(gJ,"statSync"),jt2.statSync=gJ;function bI(t15={}){return t15 instanceof kI2.default?t15:new kI2.default(t15)}s4(bI,"getSettings");}),LD2=m((u5,vD2)=>{var RD2;vD2.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t15=>(RD2||(RD2=Promise.resolve())).then(t15).catch(A5=>setTimeout(()=>{throw A5},0));}),YD2=m((B52,xD2)=>{xD2.exports=CJ;var aJ=LD2();function CJ(t15,A5){let e2,r2,i6,n2=!0;Array.isArray(t15)?(e2=[],r2=t15.length):(i6=Object.keys(t15),e2={},r2=i6.length);function o5(C4){function I7(){A5&&A5(C4,e2),A5=null;}s4(I7,"end"),n2?aJ(I7):I7();}s4(o5,"done");function g(C4,I7,E6){e2[C4]=E6,(--r2===0||I7)&&o5(I7);}s4(g,"each"),r2?i6?i6.forEach(function(C4){t15[C4](function(I7,E6){g(C4,I7,E6);});}):t15.forEach(function(C4,I7){C4(function(E6,Q7){g(I7,E6,Q7);});}):o5(null),n2=!1;}s4(CJ,"runParallel");}),NI=m(qo2=>{Object.defineProperty(qo2,"__esModule",{value:!0}),qo2.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var jo=process.versions.node.split(".");if(jo[0]===void 0||jo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var PD=Number.parseInt(jo[0],10),cJ=Number.parseInt(jo[1],10),UD2=10,IJ=10,hJ=PD>UD2,lJ=PD===UD2&&cJ>=IJ;qo2.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hJ||lJ;}),_D2=m(zo3=>{Object.defineProperty(zo3,"__esModule",{value:!0}),zo3.createDirentFromStats=void 0;var MI=class{static{s4(this,"DirentFromStats");}constructor(A5,e2){this.name=A5,this.isBlockDevice=e2.isBlockDevice.bind(e2),this.isCharacterDevice=e2.isCharacterDevice.bind(e2),this.isDirectory=e2.isDirectory.bind(e2),this.isFIFO=e2.isFIFO.bind(e2),this.isFile=e2.isFile.bind(e2),this.isSocket=e2.isSocket.bind(e2),this.isSymbolicLink=e2.isSymbolicLink.bind(e2);}};function EJ(t15,A5){return new MI(t15,A5)}s4(EJ,"createDirentFromStats"),zo3.createDirentFromStats=EJ;}),RI=m(Wo2=>{Object.defineProperty(Wo2,"__esModule",{value:!0}),Wo2.fs=void 0;var uJ=_D2();Wo2.fs=uJ;}),vI=m(Vo2=>{Object.defineProperty(Vo2,"__esModule",{value:!0}),Vo2.joinPathSegments=void 0;function BJ(t15,A5,e2){return t15.endsWith(e2)?t15+A5:t15+e2+A5}s4(BJ,"joinPathSegments"),Vo2.joinPathSegments=BJ;}),jD2=m(qt2=>{Object.defineProperty(qt2,"__esModule",{value:!0}),qt2.readdir=qt2.readdirWithFileTypes=qt2.read=void 0;var QJ=Er2(),GD2=YD2(),fJ=NI(),JD2=RI(),OD2=vI();function dJ(t15,A5,e2){if(!A5.stats&&fJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){TD2(t15,A5,e2);return}HD2(t15,A5,e2);}s4(dJ,"read"),qt2.read=dJ;function TD2(t15,A5,e2){A5.fs.readdir(t15,{withFileTypes:!0},(r2,i6)=>{if(r2!==null){Xo3(e2,r2);return}let n2=i6.map(g=>({dirent:g,name:g.name,path:OD2.joinPathSegments(t15,g.name,A5.pathSegmentSeparator)}));if(!A5.followSymbolicLinks){LI(e2,n2);return}let o5=n2.map(g=>pJ(g,A5));GD2(o5,(g,C4)=>{if(g!==null){Xo3(e2,g);return}LI(e2,C4);});});}s4(TD2,"readdirWithFileTypes"),qt2.readdirWithFileTypes=TD2;function pJ(t15,A5){return e2=>{if(!t15.dirent.isSymbolicLink()){e2(null,t15);return}A5.fs.stat(t15.path,(r2,i6)=>{if(r2!==null){if(A5.throwErrorOnBrokenSymbolicLink){e2(r2);return}e2(null,t15);return}t15.dirent=JD2.fs.createDirentFromStats(t15.name,i6),e2(null,t15);});}}s4(pJ,"makeRplTaskEntry");function HD2(t15,A5,e2){A5.fs.readdir(t15,(r2,i6)=>{if(r2!==null){Xo3(e2,r2);return}let n2=i6.map(o5=>{let g=OD2.joinPathSegments(t15,o5,A5.pathSegmentSeparator);return C4=>{QJ.stat(g,A5.fsStatSettings,(I7,E6)=>{if(I7!==null){C4(I7);return}let Q7={name:o5,path:g,dirent:JD2.fs.createDirentFromStats(o5,E6)};A5.stats&&(Q7.stats=E6),C4(null,Q7);});}});GD2(n2,(o5,g)=>{if(o5!==null){Xo3(e2,o5);return}LI(e2,g);});});}s4(HD2,"readdir"),qt2.readdir=HD2;function Xo3(t15,A5){t15(A5);}s4(Xo3,"callFailureCallback");function LI(t15,A5){t15(null,A5);}s4(LI,"callSuccessCallback");}),XD=m(zt2=>{Object.defineProperty(zt2,"__esModule",{value:!0}),zt2.readdir=zt2.readdirWithFileTypes=zt2.read=void 0;var wJ=Er2(),mJ=NI(),qD2=RI(),zD2=vI();function yJ(t15,A5){return !A5.stats&&mJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES?WD2(t15,A5):VD2(t15,A5)}s4(yJ,"read"),zt2.read=yJ;function WD2(t15,A5){return A5.fs.readdirSync(t15,{withFileTypes:!0}).map(r2=>{let i6={dirent:r2,name:r2.name,path:zD2.joinPathSegments(t15,r2.name,A5.pathSegmentSeparator)};if(i6.dirent.isSymbolicLink()&&A5.followSymbolicLinks)try{let n2=A5.fs.statSync(i6.path);i6.dirent=qD2.fs.createDirentFromStats(i6.name,n2);}catch(n2){if(A5.throwErrorOnBrokenSymbolicLink)throw n2}return i6})}s4(WD2,"readdirWithFileTypes"),zt2.readdirWithFileTypes=WD2;function VD2(t15,A5){return A5.fs.readdirSync(t15).map(r2=>{let i6=zD2.joinPathSegments(t15,r2,A5.pathSegmentSeparator),n2=wJ.statSync(i6,A5.fsStatSettings),o5={name:r2,path:i6,dirent:qD2.fs.createDirentFromStats(r2,n2)};return A5.stats&&(o5.stats=n2),o5})}s4(VD2,"readdir"),zt2.readdir=VD2;}),ZD2=m(Wt2=>{Object.defineProperty(Wt2,"__esModule",{value:!0}),Wt2.createFileSystemAdapter=Wt2.FILE_SYSTEM_ADAPTER=void 0;var $r3=v7("fs");Wt2.FILE_SYSTEM_ADAPTER={lstat:$r3.lstat,stat:$r3.stat,lstatSync:$r3.lstatSync,statSync:$r3.statSync,readdir:$r3.readdir,readdirSync:$r3.readdirSync};function DJ(t15){return t15===void 0?Wt2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Wt2.FILE_SYSTEM_ADAPTER),t15)}s4(DJ,"createFileSystemAdapter"),Wt2.createFileSystemAdapter=DJ;}),$D3=m(YI2=>{Object.defineProperty(YI2,"__esModule",{value:!0});var SJ=v7("path"),KJ=Er2(),FJ=ZD2(),xI=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5??e2}};YI2.default=xI;}),Zo=m(Vt=>{Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.Settings=Vt.scandirSync=Vt.scandir=void 0;var AS2=jD2(),kJ=XD(),PI=$D3();Vt.Settings=PI.default;function bJ(t15,A5,e2){if(typeof A5=="function"){AS2.read(t15,UI(),A5);return}AS2.read(t15,UI(A5),e2);}s4(bJ,"scandir"),Vt.scandir=bJ;function NJ(t15,A5){let e2=UI(A5);return kJ.read(t15,e2)}s4(NJ,"scandirSync"),Vt.scandirSync=NJ;function UI(t15={}){return t15 instanceof PI.default?t15:new PI.default(t15)}s4(UI,"getSettings");}),tS=m((L52,eS)=>{function MJ(t15){var A5=new t15,e2=A5;function r2(){var n2=A5;return n2.next?A5=n2.next:(A5=new t15,e2=A5),n2.next=null,n2}s4(r2,"get");function i6(n2){e2.next=n2,e2=n2;}return s4(i6,"release"),{get:r2,release:i6}}s4(MJ,"reusify"),eS.exports=MJ;}),iS2=m((Y52,_I)=>{var RJ=tS();function rS(t15,A5,e2){if(typeof t15=="function"&&(e2=A5,A5=t15,t15=null),!(e2>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r2=RJ(vJ),i6=null,n2=null,o5=0,g=null,C4={push:D4,drain:ye4,saturated:ye4,pause:E6,paused:!1,get concurrency(){return e2},set concurrency(U8){if(!(U8>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(e2=U8,!C4.paused)for(;i6&&o5<e2;)o5++,k6();},running:I7,resume:p4,idle:w2,length:Q7,getQueue:B6,unshift:N7,empty:ye4,kill:_6,killAndDrain:L7,error:J8};return C4;function I7(){return o5}function E6(){C4.paused=!0;}function Q7(){for(var U8=i6,$8=0;U8;)U8=U8.next,$8++;return $8}function B6(){for(var U8=i6,$8=[];U8;)$8.push(U8.value),U8=U8.next;return $8}function p4(){if(C4.paused){if(C4.paused=!1,i6===null){o5++,k6();return}for(;i6&&o5<e2;)o5++,k6();}}function w2(){return o5===0&&C4.length()===0}function D4(U8,$8){var q9=r2.get();q9.context=t15,q9.release=k6,q9.value=U8,q9.callback=$8||ye4,q9.errorHandler=g,o5>=e2||C4.paused?n2?(n2.next=q9,n2=q9):(i6=q9,n2=q9,C4.saturated()):(o5++,A5.call(t15,q9.value,q9.worked));}function N7(U8,$8){var q9=r2.get();q9.context=t15,q9.release=k6,q9.value=U8,q9.callback=$8||ye4,q9.errorHandler=g,o5>=e2||C4.paused?i6?(q9.next=i6,i6=q9):(i6=q9,n2=q9,C4.saturated()):(o5++,A5.call(t15,q9.value,q9.worked));}function k6(U8){U8&&r2.release(U8);var $8=i6;$8&&o5<=e2?C4.paused?o5--:(n2===i6&&(n2=null),i6=$8.next,$8.next=null,A5.call(t15,$8.value,$8.worked),n2===null&&C4.empty()):--o5===0&&C4.drain();}function _6(){i6=null,n2=null,C4.drain=ye4;}function L7(){i6=null,n2=null,C4.drain(),C4.drain=ye4;}function J8(U8){g=U8;}}s4(rS,"fastqueue");function ye4(){}s4(ye4,"noop");function vJ(){this.value=null,this.callback=ye4,this.next=null,this.release=ye4,this.context=null,this.errorHandler=null;var t15=this;this.worked=s4(function(e2,r2){var i6=t15.callback,n2=t15.errorHandler,o5=t15.value;t15.value=null,t15.callback=ye4,t15.errorHandler&&n2(e2,o5),i6.call(t15.context,e2,r2),t15.release(t15);},"worked");}s4(vJ,"Task");function LJ(t15,A5,e2){typeof t15=="function"&&(e2=A5,A5=t15,t15=null);function r2(E6,Q7){A5.call(this,E6).then(function(B6){Q7(null,B6);},Q7);}s4(r2,"asyncWrapper");var i6=rS(t15,r2,e2),n2=i6.push,o5=i6.unshift;return i6.push=g,i6.unshift=C4,i6.drained=I7,i6;function g(E6){var Q7=new Promise(function(B6,p4){n2(E6,function(w2,D4){if(w2){p4(w2);return}B6(D4);});});return Q7.catch(ye4),Q7}function C4(E6){var Q7=new Promise(function(B6,p4){o5(E6,function(w2,D4){if(w2){p4(w2);return}B6(D4);});});return Q7.catch(ye4),Q7}function I7(){var E6=new Promise(function(Q7){process.nextTick(function(){if(i6.idle())Q7();else {var B6=i6.drain;i6.drain=function(){typeof B6=="function"&&B6(),Q7(),i6.drain=B6;};}});});return E6}}s4(LJ,"queueAsPromised"),_I.exports=rS,_I.exports.promise=LJ;}),$o2=m(et2=>{Object.defineProperty(et2,"__esModule",{value:!0}),et2.joinPathSegments=et2.replacePathSegmentSeparator=et2.isAppliedFilter=et2.isFatalError=void 0;function xJ(t15,A5){return t15.errorFilter===null?!0:!t15.errorFilter(A5)}s4(xJ,"isFatalError"),et2.isFatalError=xJ;function YJ(t15,A5){return t15===null||t15(A5)}s4(YJ,"isAppliedFilter"),et2.isAppliedFilter=YJ;function PJ(t15,A5){return t15.split(/[/\\]/).join(A5)}s4(PJ,"replacePathSegmentSeparator"),et2.replacePathSegmentSeparator=PJ;function UJ(t15,A5,e2){return t15===""?A5:t15.endsWith(e2)?t15+A5:t15+e2+A5}s4(UJ,"joinPathSegments"),et2.joinPathSegments=UJ;}),OI=m(JI=>{Object.defineProperty(JI,"__esModule",{value:!0});var _J=$o2(),GI=class{static{s4(this,"Reader");}constructor(A5,e2){this._root=A5,this._settings=e2,this._root=_J.replacePathSegmentSeparator(A5,e2.pathSegmentSeparator);}};JI.default=GI;}),jI=m(HI=>{Object.defineProperty(HI,"__esModule",{value:!0});var GJ=v7("events"),JJ=Zo(),OJ=iS2(),Ag=$o2(),TJ=OI(),TI=class extends TJ.default{static{s4(this,"AsyncReader");}constructor(A5,e2){super(A5,e2),this._settings=e2,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(A5){this._emitter.on("entry",A5);}onError(A5){this._emitter.once("error",A5);}onEnd(A5){this._emitter.once("end",A5);}_pushToQueue(A5,e2){let r2={directory:A5,base:e2};this._queue.push(r2,i6=>{i6!==null&&this._handleError(i6);});}_worker(A5,e2){this._scandir(A5.directory,this._settings.fsScandirSettings,(r2,i6)=>{if(r2!==null){e2(r2,void 0);return}for(let n2 of i6)this._handleEntry(n2,A5.base);e2(null,void 0);});}_handleError(A5){this._isDestroyed||!Ag.isFatalError(this._settings,A5)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A5));}_handleEntry(A5,e2){if(this._isDestroyed||this._isFatalError)return;let r2=A5.path;e2!==void 0&&(A5.path=Ag.joinPathSegments(e2,A5.name,this._settings.pathSegmentSeparator)),Ag.isAppliedFilter(this._settings.entryFilter,A5)&&this._emitEntry(A5),A5.dirent.isDirectory()&&Ag.isAppliedFilter(this._settings.deepFilter,A5)&&this._pushToQueue(r2,e2===void 0?void 0:A5.path);}_emitEntry(A5){this._emitter.emit("entry",A5);}};HI.default=TI;}),sS=m(zI2=>{Object.defineProperty(zI2,"__esModule",{value:!0});var HJ=jI(),qI2=class{static{s4(this,"AsyncProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new HJ.default(this._root,this._settings),this._storage=[];}read(A5){this._reader.onError(e2=>{jJ(A5,e2);}),this._reader.onEntry(e2=>{this._storage.push(e2);}),this._reader.onEnd(()=>{qJ(A5,this._storage);}),this._reader.read();}};zI2.default=qI2;function jJ(t15,A5){t15(A5);}s4(jJ,"callFailureCallback");function qJ(t15,A5){t15(null,A5);}s4(qJ,"callSuccessCallback");}),nS=m(VI=>{Object.defineProperty(VI,"__esModule",{value:!0});var zJ=v7("stream"),WJ=jI(),WI2=class{static{s4(this,"StreamProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new WJ.default(this._root,this._settings),this._stream=new zJ.Readable({objectMode:!0,read:s4(()=>{},"read"),destroy:s4(()=>{this._reader.isDestroyed||this._reader.destroy();},"destroy")});}read(){return this._reader.onError(A5=>{this._stream.emit("error",A5);}),this._reader.onEntry(A5=>{this._stream.push(A5);}),this._reader.onEnd(()=>{this._stream.push(null);}),this._reader.read(),this._stream}};VI.default=WI2;}),oS=m(ZI=>{Object.defineProperty(ZI,"__esModule",{value:!0});var VJ=Zo(),eg=$o2(),XJ=OI(),XI2=class extends XJ.default{static{s4(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(A5,e2){this._queue.add({directory:A5,base:e2});}_handleQueue(){for(let A5 of this._queue.values())this._handleDirectory(A5.directory,A5.base);}_handleDirectory(A5,e2){try{let r2=this._scandir(A5,this._settings.fsScandirSettings);for(let i6 of r2)this._handleEntry(i6,e2);}catch(r2){this._handleError(r2);}}_handleError(A5){if(eg.isFatalError(this._settings,A5))throw A5}_handleEntry(A5,e2){let r2=A5.path;e2!==void 0&&(A5.path=eg.joinPathSegments(e2,A5.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A5)&&this._pushToStorage(A5),A5.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A5)&&this._pushToQueue(r2,e2===void 0?void 0:A5.path);}_pushToStorage(A5){this._storage.push(A5);}};ZI.default=XI2;}),gS=m(Ah=>{Object.defineProperty(Ah,"__esModule",{value:!0});var ZJ=oS(),$I=class{static{s4(this,"SyncProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new ZJ.default(this._root,this._settings);}read(){return this._reader.read()}};Ah.default=$I;}),aS2=m(th=>{Object.defineProperty(th,"__esModule",{value:!0});var $J=v7("path"),A22=Zo(),eh2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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,$J.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(A5,e2){return A5??e2}};th.default=eh2;}),rg=m(tt2=>{Object.defineProperty(tt2,"__esModule",{value:!0}),tt2.Settings=tt2.walkStream=tt2.walkSync=tt2.walk=void 0;var CS2=sS(),e2=nS(),t22=gS(),rh=aS2();tt2.Settings=rh.default;function r2(t15,A5,e4){if(typeof A5=="function"){new CS2.default(t15,tg2()).read(A5);return}new CS2.default(t15,tg2(A5)).read(e4);}s4(r2,"walk"),tt2.walk=r2;function i22(t15,A5){let e4=tg2(A5);return new t22.default(t15,e4).read()}s4(i22,"walkSync"),tt2.walkSync=i22;function s22(t15,A5){let e4=tg2(A5);return new e2.default(t15,e4).read()}s4(s22,"walkStream"),tt2.walkStream=s22;function tg2(t15={}){return t15 instanceof rh.default?t15:new rh.default(t15)}s4(tg2,"getSettings");}),ig=m(sh=>{Object.defineProperty(sh,"__esModule",{value:!0});var n2=v7("path"),o22=Er2(),cS=yt2(),ih=class{static{s4(this,"Reader");}constructor(A5){this._settings=A5,this._fsStatSettings=new o22.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks});}_getFullEntryPath(A5){return n2.resolve(this._settings.cwd,A5)}_makeEntry(A5,e2){let r2={name:e2,path:e2,dirent:cS.fs.createDirentFromStats(e2,A5)};return this._settings.stats&&(r2.stats=A5),r2}_isFatalError(A5){return !cS.errno.isEnoentCodeError(A5)&&!this._settings.suppressErrors}};sh.default=ih;}),gh=m(oh2=>{Object.defineProperty(oh2,"__esModule",{value:!0});var g2=v7("stream"),a22=Er2(),C22=rg(),c22=ig(),nh=class extends c22.default{static{s4(this,"ReaderStream");}constructor(){super(...arguments),this._walkStream=C22.walkStream,this._stat=a22.stat;}dynamic(A5,e2){return this._walkStream(A5,e2)}static(A5,e2){let r2=A5.map(this._getFullEntryPath,this),i6=new g2.PassThrough({objectMode:!0});i6._write=(n2,o5,g)=>this._getEntry(r2[n2],A5[n2],e2).then(C4=>{C4!==null&&e2.entryFilter(C4)&&i6.push(C4),n2===r2.length-1&&i6.end(),g();}).catch(g);for(let n2=0;n2<r2.length;n2++)i6.write(n2);return i6}_getEntry(A5,e2,r2){return this._getStat(A5).then(i6=>this._makeEntry(i6,e2)).catch(i6=>{if(r2.errorFilter(i6))return null;throw i6})}_getStat(A5){return new Promise((e2,r2)=>{this._stat(A5,this._fsStatSettings,(i6,n2)=>i6===null?e2(n2):r2(i6));})}};oh2.default=nh;}),IS=m(Ch2=>{Object.defineProperty(Ch2,"__esModule",{value:!0});var I22=rg(),h22=ig(),l2=gh(),ah2=class extends h22.default{static{s4(this,"ReaderAsync");}constructor(){super(...arguments),this._walkAsync=I22.walk,this._readerStream=new l2.default(this._settings);}dynamic(A5,e2){return new Promise((r2,i6)=>{this._walkAsync(A5,e2,(n2,o5)=>{n2===null?r2(o5):i6(n2);});})}async static(A5,e2){let r2=[],i6=this._readerStream.static(A5,e2);return new Promise((n2,o5)=>{i6.once("error",o5),i6.on("data",g=>r2.push(g)),i6.once("end",()=>n2(r2));})}};Ch2.default=ah2;}),hS=m(Ih=>{Object.defineProperty(Ih,"__esModule",{value:!0});var ls2=yt2(),ch=class{static{s4(this,"Matcher");}constructor(A5,e2,r2){this._patterns=A5,this._settings=e2,this._micromatchOptions=r2,this._storage=[],this._fillStorage();}_fillStorage(){for(let A5 of this._patterns){let e2=this._getPatternSegments(A5),r2=this._splitSegmentsIntoSections(e2);this._storage.push({complete:r2.length<=1,pattern:A5,segments:e2,sections:r2});}}_getPatternSegments(A5){return ls2.pattern.getPatternParts(A5,this._micromatchOptions).map(r2=>ls2.pattern.isDynamicPattern(r2,this._settings)?{dynamic:!0,pattern:r2,patternRe:ls2.pattern.makeRe(r2,this._micromatchOptions)}:{dynamic:!1,pattern:r2})}_splitSegmentsIntoSections(A5){return ls2.array.splitWhen(A5,e2=>e2.dynamic&&ls2.pattern.hasGlobStar(e2.pattern))}};Ih.default=ch;}),lS=m(lh=>{Object.defineProperty(lh,"__esModule",{value:!0});var E22=hS(),hh2=class extends E22.default{static{s4(this,"PartialMatcher");}match(A5){let e2=A5.split("/"),r2=e2.length,i6=this._storage.filter(n2=>!n2.complete||n2.segments.length>r2);for(let n2 of i6){let o5=n2.sections[0];if(!n2.complete&&r2>o5.length||e2.every((C4,I7)=>{let E6=n2.segments[I7];return !!(E6.dynamic&&E6.patternRe.test(C4)||!E6.dynamic&&E6.pattern===C4)}))return !0}return !1}};lh.default=hh2;}),ES2=m(uh=>{Object.defineProperty(uh,"__esModule",{value:!0});var sg=yt2(),u2=lS(),Eh2=class{static{s4(this,"DeepFilter");}constructor(A5,e2){this._settings=A5,this._micromatchOptions=e2;}getFilter(A5,e2,r2){let i6=this._getMatcher(e2),n2=this._getNegativePatternsRe(r2);return o5=>this._filter(A5,o5,i6,n2)}_getMatcher(A5){return new u2.default(A5,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A5){let e2=A5.filter(sg.pattern.isAffectDepthOfReadingPattern);return sg.pattern.convertPatternsToRe(e2,this._micromatchOptions)}_filter(A5,e2,r2,i6){if(this._isSkippedByDeep(A5,e2.path)||this._isSkippedSymbolicLink(e2))return !1;let n2=sg.path.removeLeadingDotSegment(e2.path);return this._isSkippedByPositivePatterns(n2,r2)?!1:this._isSkippedByNegativePatterns(n2,i6)}_isSkippedByDeep(A5,e2){return this._settings.deep===1/0?!1:this._getEntryLevel(A5,e2)>=this._settings.deep}_getEntryLevel(A5,e2){let r2=e2.split("/").length;if(A5==="")return r2;let i6=A5.split("/").length;return r2-i6}_isSkippedSymbolicLink(A5){return !this._settings.followSymbolicLinks&&A5.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A5,e2){return !this._settings.baseNameMatch&&!e2.match(A5)}_isSkippedByNegativePatterns(A5,e2){return !sg.pattern.matchAny(A5,e2)}};uh.default=Eh2;}),uS=m(Qh=>{Object.defineProperty(Qh,"__esModule",{value:!0});var Xt2=yt2(),Bh2=class{static{s4(this,"EntryFilter");}constructor(A5,e2){this._settings=A5,this._micromatchOptions=e2,this.index=new Map;}getFilter(A5,e2){let[r2,i6]=Xt2.pattern.partitionAbsoluteAndRelative(e2),n2={positive:{all:Xt2.pattern.convertPatternsToRe(A5,this._micromatchOptions)},negative:{absolute:Xt2.pattern.convertPatternsToRe(r2,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Xt2.pattern.convertPatternsToRe(i6,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o5=>this._filter(o5,n2)}_filter(A5,e2){let r2=Xt2.path.removeLeadingDotSegment(A5.path);if(this._settings.unique&&this._isDuplicateEntry(r2)||this._onlyFileFilter(A5)||this._onlyDirectoryFilter(A5))return !1;let i6=this._isMatchToPatternsSet(r2,e2,A5.dirent.isDirectory());return this._settings.unique&&i6&&this._createIndexRecord(r2),i6}_isDuplicateEntry(A5){return this.index.has(A5)}_createIndexRecord(A5){this.index.set(A5,void 0);}_onlyFileFilter(A5){return this._settings.onlyFiles&&!A5.dirent.isFile()}_onlyDirectoryFilter(A5){return this._settings.onlyDirectories&&!A5.dirent.isDirectory()}_isMatchToPatternsSet(A5,e2,r2){return !(!this._isMatchToPatterns(A5,e2.positive.all,r2)||this._isMatchToPatterns(A5,e2.negative.relative,r2)||this._isMatchToAbsoluteNegative(A5,e2.negative.absolute,r2))}_isMatchToAbsoluteNegative(A5,e2,r2){if(e2.length===0)return !1;let i6=Xt2.path.makeAbsolute(this._settings.cwd,A5);return this._isMatchToPatterns(i6,e2,r2)}_isMatchToPatterns(A5,e2,r2){if(e2.length===0)return !1;let i6=Xt2.pattern.matchAny(A5,e2);return !i6&&r2?Xt2.pattern.matchAny(A5+"/",e2):i6}};Qh.default=Bh2;}),BS=m(dh=>{Object.defineProperty(dh,"__esModule",{value:!0});var B22=yt2(),fh=class{static{s4(this,"ErrorFilter");}constructor(A5){this._settings=A5;}getFilter(){return A5=>this._isNonFatalError(A5)}_isNonFatalError(A5){return B22.errno.isEnoentCodeError(A5)||this._settings.suppressErrors}};dh.default=fh;}),fS=m(wh=>{Object.defineProperty(wh,"__esModule",{value:!0});var QS=yt2(),ph=class{static{s4(this,"EntryTransformer");}constructor(A5){this._settings=A5;}getTransformer(){return A5=>this._transform(A5)}_transform(A5){let e2=A5.path;return this._settings.absolute&&(e2=QS.path.makeAbsolute(this._settings.cwd,e2),e2=QS.path.unixify(e2)),this._settings.markDirectories&&A5.dirent.isDirectory()&&(e2+="/"),this._settings.objectMode?Object.assign(Object.assign({},A5),{path:e2}):e2}};wh.default=ph;}),ng=m(yh=>{Object.defineProperty(yh,"__esModule",{value:!0});var Q23=v7("path"),f22=ES2(),d2=uS(),p22=BS(),w2=fS(),mh=class{static{s4(this,"Provider");}constructor(A5){this._settings=A5,this.errorFilter=new p22.default(this._settings),this.entryFilter=new d2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f22.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new w2.default(this._settings);}_getRootDirectory(A5){return Q23.resolve(this._settings.cwd,A5.base)}_getReaderOptions(A5){let e2=A5.base==="."?"":A5.base;return {basePath:e2,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e2,A5.positive,A5.negative),entryFilter:this.entryFilter.getFilter(A5.positive,A5.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}}};yh.default=mh;}),dS=m(Sh2=>{Object.defineProperty(Sh2,"__esModule",{value:!0});var m22=IS(),y22=ng(),Dh=class extends y22.default{static{s4(this,"ProviderAsync");}constructor(){super(...arguments),this._reader=new m22.default(this._settings);}async read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5);return (await this.api(e2,A5,r2)).map(n2=>r2.transform(n2))}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Sh2.default=Dh;}),pS=m(Fh=>{Object.defineProperty(Fh,"__esModule",{value:!0});var D22=v7("stream"),S22=gh(),K22=ng(),Kh=class extends K22.default{static{s4(this,"ProviderStream");}constructor(){super(...arguments),this._reader=new S22.default(this._settings);}read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5),i6=this.api(e2,A5,r2),n2=new D22.Readable({objectMode:!0,read:s4(()=>{},"read")});return i6.once("error",o5=>n2.emit("error",o5)).on("data",o5=>n2.emit("data",r2.transform(o5))).once("end",()=>n2.emit("end")),n2.once("close",()=>i6.destroy()),n2}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Fh.default=Kh;}),wS=m(bh2=>{Object.defineProperty(bh2,"__esModule",{value:!0});var F22=Er2(),k22=rg(),b2=ig(),kh=class extends b2.default{static{s4(this,"ReaderSync");}constructor(){super(...arguments),this._walkSync=k22.walkSync,this._statSync=F22.statSync;}dynamic(A5,e2){return this._walkSync(A5,e2)}static(A5,e2){let r2=[];for(let i6 of A5){let n2=this._getFullEntryPath(i6),o5=this._getEntry(n2,i6,e2);o5===null||!e2.entryFilter(o5)||r2.push(o5);}return r2}_getEntry(A5,e2,r2){try{let i6=this._getStat(A5);return this._makeEntry(i6,e2)}catch(i6){if(r2.errorFilter(i6))return null;throw i6}}_getStat(A5){return this._statSync(A5,this._fsStatSettings)}};bh2.default=kh;}),mS=m(Mh=>{Object.defineProperty(Mh,"__esModule",{value:!0});var N22=wS(),M22=ng(),Nh2=class extends M22.default{static{s4(this,"ProviderSync");}constructor(){super(...arguments),this._reader=new N22.default(this._settings);}read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5);return this.api(e2,A5,r2).map(r2.transform)}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Mh.default=Nh2;}),yS=m(ei3=>{Object.defineProperty(ei3,"__esModule",{value:!0}),ei3.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ai2=v7("fs"),R22=v7("os"),v22=Math.max(R22.cpus().length,1);ei3.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ai2.lstat,lstatSync:Ai2.lstatSync,stat:Ai2.stat,statSync:Ai2.statSync,readdir:Ai2.readdir,readdirSync:Ai2.readdirSync};var Rh2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5===void 0?e2:A5}_getFileSystemMethods(A5={}){return Object.assign(Object.assign({},ei3.DEFAULT_FILE_SYSTEM_ADAPTER),A5)}};ei3.default=Rh2;}),Yh2=m((R7,SS)=>{var DS2=SD2(),L22=dS(),x22=pS(),Y22=mS(),vh=yS(),De3=yt2();async function Lh3(t15,A5){Je2(t15);let e2=xh(t15,L22.default,A5),r2=await Promise.all(e2);return De3.array.flatten(r2)}s4(Lh3,"FastGlob"),function(t15){t15.glob=t15,t15.globSync=A5,t15.globStream=e2,t15.async=t15;function A5(I7,E6){Je2(I7);let Q7=xh(I7,Y22.default,E6);return De3.array.flatten(Q7)}s4(A5,"sync"),t15.sync=A5;function e2(I7,E6){Je2(I7);let Q7=xh(I7,x22.default,E6);return De3.stream.merge(Q7)}s4(e2,"stream"),t15.stream=e2;function r2(I7,E6){Je2(I7);let Q7=[].concat(I7),B6=new vh.default(E6);return DS2.generate(Q7,B6)}s4(r2,"generateTasks"),t15.generateTasks=r2;function i6(I7,E6){Je2(I7);let Q7=new vh.default(E6);return De3.pattern.isDynamicPattern(I7,Q7)}s4(i6,"isDynamicPattern"),t15.isDynamicPattern=i6;function n2(I7){return Je2(I7),De3.path.escape(I7)}s4(n2,"escapePath"),t15.escapePath=n2;function o5(I7){return Je2(I7),De3.path.convertPathToPattern(I7)}s4(o5,"convertPathToPattern"),t15.convertPathToPattern=o5;(function(I7){function E6(B6){return Je2(B6),De3.path.escapePosixPath(B6)}s4(E6,"escapePath"),I7.escapePath=E6;function Q7(B6){return Je2(B6),De3.path.convertPosixPathToPattern(B6)}s4(Q7,"convertPathToPattern"),I7.convertPathToPattern=Q7;})(t15.posix||(t15.posix={}));(function(I7){function E6(B6){return Je2(B6),De3.path.escapeWindowsPath(B6)}s4(E6,"escapePath"),I7.escapePath=E6;function Q7(B6){return Je2(B6),De3.path.convertWindowsPathToPattern(B6)}s4(Q7,"convertPathToPattern"),I7.convertPathToPattern=Q7;})(t15.win32||(t15.win32={}));}(Lh3||(Lh3={}));function xh(t15,A5,e2){let r2=[].concat(t15),i6=new vh.default(e2),n2=DS2.generate(r2,i6),o5=new A5(i6);return n2.map(o5.read,o5)}s4(xh,"getWorks");function Je2(t15){if(![].concat(t15).every(r2=>De3.string.isString(r2)&&!De3.string.isEmpty(r2)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}s4(Je2,"assertPatternsInput"),SS.exports=Lh3;});async function Ph(t15,A5,e2){if(typeof e2!="string")throw new TypeError(`Expected a string, got ${typeof e2}`);try{return (await fs4__default[t15](e2))[A5]()}catch(r2){if(r2.code==="ENOENT")return !1;throw r2}}function Uh2(t15,A5,e2){if(typeof e2!="string")throw new TypeError(`Expected a string, got ${typeof e2}`);try{return en2__default[t15](e2)[A5]()}catch(r2){if(r2.code==="ENOENT")return !1;throw r2}}var KS,FS,kS2=ue2(()=>{s4(Ph,"isType"),s4(Uh2,"isTypeSync"),Ph.bind(void 0,"stat","isFile"),KS=Ph.bind(void 0,"stat","isDirectory"),Ph.bind(void 0,"lstat","isSymbolicLink"),Uh2.bind(void 0,"statSync","isFile"),FS=Uh2.bind(void 0,"statSync","isDirectory"),Uh2.bind(void 0,"lstatSync","isSymbolicLink");}),bS=ue2(()=>{});function Es(t15){return t15 instanceof URL?fileURLToPath(t15):t15}var _h2=ue2(()=>{bS(),promisify$1(execFile),s4(Es,"toPath");}),PS=m((tAA,qh2)=>{function RS2(t15){return Array.isArray(t15)?t15:[t15]}s4(RS2,"makeArray");var O22=void 0,Jh2="",NS2=" ",Gh="\\",T22=/^\s+$/,H23=/(?:[^\\]|^)\\$/,j23=/^\\!/,q22=/^\\#/,z22=/\r?\n/g,W22=/^\.{0,2}\/|^\.{1,2}$/,V23=/\/$/,ti3="/",vS="node-ignore";typeof Symbol<"u"&&(vS=Symbol.for("node-ignore"));var LS=vS,us=s4((t15,A5,e2)=>(Object.defineProperty(t15,A5,{value:e2}),e2),"define"),X22=/([0-z])-([0-z])/g,xS=s4(()=>!1,"RETURN_FALSE"),Z22=s4(t15=>t15.replace(X22,(A5,e2,r2)=>e2.charCodeAt(0)<=r2.charCodeAt(0)?A5:Jh2),"sanitizeRange"),$22=s4(t15=>{let{length:A5}=t15;return t15.slice(0,A5-A5%2)},"cleanRangeBackSlash"),AO=[[/^\uFEFF/,()=>Jh2],[/((?:\\\\)*?)(\\?\s+)$/,(t15,A5,e2)=>A5+(e2.indexOf("\\")===0?NS2:Jh2)],[/(\\+?)\s/g,(t15,A5)=>{let{length:e2}=A5;return A5.slice(0,e2-e2%2)+NS2}],[/[\\$.|*+(){^]/g,t15=>`\\${t15}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,s4(function(){return /\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t15,A5,e2)=>A5+6<e2.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t15,A5,e2)=>{let r2=e2.replace(/\\\*/g,"[^\\/]*");return A5+r2}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Gh],[/\\\\/g,()=>Gh],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t15,A5,e2,r2,i6)=>A5===Gh?`\\[${e2}${$22(r2)}${i6}`:i6==="]"&&r2.length%2===0?`[${Z22(e2)}${r2}]`:"[]"],[/(?:[^*])$/,t15=>/\/$/.test(t15)?`${t15}$`:`${t15}(?=$|\\/$)`]],eO=/(^|\\\/)?\\\*$/,Bs2="regex",og="checkRegex",MS="_",tO2={[Bs2](t15,A5){return `${A5?`${A5}[^/]+`:"[^/]*"}(?=$|\\/$)`},[og](t15,A5){return `${A5?`${A5}[^/]*`:"[^/]*"}(?=$|\\/$)`}},rO=s4(t15=>AO.reduce((A5,[e2,r2])=>A5.replace(e2,r2.bind(t15)),t15),"makeRegexPrefix"),gg2=s4(t15=>typeof t15=="string","isString"),iO2=s4(t15=>t15&&gg2(t15)&&!T22.test(t15)&&!H23.test(t15)&&t15.indexOf("#")!==0,"checkPattern"),sO=s4(t15=>t15.split(z22).filter(Boolean),"splitPattern"),Oh=class{static{s4(this,"IgnoreRule");}constructor(A5,e2,r2,i6,n2,o5){this.pattern=A5,this.mark=e2,this.negative=n2,us(this,"body",r2),us(this,"ignoreCase",i6),us(this,"regexPrefix",o5);}get regex(){let A5=MS+Bs2;return this[A5]?this[A5]:this._make(Bs2,A5)}get checkRegex(){let A5=MS+og;return this[A5]?this[A5]:this._make(og,A5)}_make(A5,e2){let r2=this.regexPrefix.replace(eO,tO2[A5]),i6=this.ignoreCase?new RegExp(r2,"i"):new RegExp(r2);return us(this,e2,i6)}},nO2=s4(({pattern:t15,mark:A5},e2)=>{let r2=!1,i6=t15;i6.indexOf("!")===0&&(r2=!0,i6=i6.substr(1)),i6=i6.replace(j23,"!").replace(q22,"#");let n2=rO(i6);return new Oh(t15,A5,i6,e2,r2,n2)},"createRule"),Th=class{static{s4(this,"RuleManager");}constructor(A5){this._ignoreCase=A5,this._rules=[];}_add(A5){if(A5&&A5[LS]){this._rules=this._rules.concat(A5._rules._rules),this._added=!0;return}if(gg2(A5)&&(A5={pattern:A5}),iO2(A5.pattern)){let e2=nO2(A5,this._ignoreCase);this._added=!0,this._rules.push(e2);}}add(A5){return this._added=!1,RS2(gg2(A5)?sO(A5):A5).forEach(this._add,this),this._added}test(A5,e2,r2){let i6=!1,n2=!1,o5;this._rules.forEach(C4=>{let{negative:I7}=C4;n2===I7&&i6!==n2||I7&&!i6&&!n2&&!e2||!C4[r2].test(A5)||(i6=!I7,n2=I7,o5=I7?O22:C4);});let g={ignored:i6,unignored:n2};return o5&&(g.rule=o5),g}},oO=s4((t15,A5)=>{throw new A5(t15)},"throwError"),Dt2=s4((t15,A5,e2)=>gg2(t15)?t15?Dt2.isNotRelative(t15)?e2(`path should be a \`path.relative()\`d string, but got "${A5}"`,RangeError):!0:e2("path must not be empty",TypeError):e2(`path must be a string, but got \`${A5}\``,TypeError),"checkPath"),YS=s4(t15=>W22.test(t15),"isNotRelative");Dt2.isNotRelative=YS,Dt2.convert=t15=>t15;var Hh3=class{static{s4(this,"Ignore");}constructor({ignorecase:A5=!0,ignoreCase:e2=A5,allowRelativePaths:r2=!1}={}){us(this,LS,!0),this._rules=new Th(e2),this._strictPathCheck=!r2,this._initCache();}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null);}add(A5){return this._rules.add(A5)&&this._initCache(),this}addPattern(A5){return this.add(A5)}_test(A5,e2,r2,i6){let n2=A5&&Dt2.convert(A5);return Dt2(n2,A5,this._strictPathCheck?oO:xS),this._t(n2,e2,r2,i6)}checkIgnore(A5){if(!V23.test(A5))return this.test(A5);let e2=A5.split(ti3).filter(Boolean);if(e2.pop(),e2.length){let r2=this._t(e2.join(ti3)+ti3,this._testCache,!0,e2);if(r2.ignored)return r2}return this._rules.test(A5,!1,og)}_t(A5,e2,r2,i6){if(A5 in e2)return e2[A5];if(i6||(i6=A5.split(ti3).filter(Boolean)),i6.pop(),!i6.length)return e2[A5]=this._rules.test(A5,r2,Bs2);let n2=this._t(i6.join(ti3)+ti3,e2,r2,i6);return e2[A5]=n2.ignored?n2:this._rules.test(A5,r2,Bs2)}ignores(A5){return this._test(A5,this._ignoreCache,!1).ignored}createFilter(){return A5=>!this.ignores(A5)}filter(A5){return RS2(A5).filter(this.createFilter())}test(A5){return this._test(A5,this._testCache,!0)}},jh=s4(t15=>new Hh3(t15),"factory"),gO2=s4(t15=>Dt2(t15&&Dt2.convert(t15),t15,xS),"isPathValid");if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t15=s4(e2=>/^\\\\\?\\/.test(e2)||/["<>|\u0000-\u001F]+/u.test(e2)?e2:e2.replace(/\\/g,"/"),"makePosix");Dt2.convert=t15;let A5=/^[a-z]:\//i;Dt2.isNotRelative=e2=>A5.test(e2)||YS(e2);}qh2.exports=jh,jh.default=jh,qh2.exports.isPathValid=gO2;}),Qs2,zh=ue2(()=>{Qs2=s4(t15=>t15[0]==="!","isNegativePattern");}),Wh2,US2,IO,_S,ag,hO2,lO,EO2,GS,JS,fs2,ds,OS,TS2,Vh=ue2(()=>{Wh2=cA(Yh2(),1),US2=cA(PS(),1),Mr(),_h2(),zh(),IO=["**/node_modules","**/flow-typed","**/coverage","**/.git"],_S={absolute:!0,dot:!0},ag="**/.gitignore",hO2=s4((t15,A5)=>Qs2(t15)?"!"+je3.posix.join(A5,t15.slice(1)):je3.posix.join(A5,t15),"applyBaseToPattern"),lO=s4((t15,A5)=>{let e2=Ae2(je3.relative(A5,je3.dirname(t15.filePath)));return t15.content.split(/\r?\n/).filter(r2=>r2&&!r2.startsWith("#")).map(r2=>hO2(r2,e2))},"parseIgnoreFile"),EO2=s4((t15,A5)=>{if(A5=Ae2(A5),je3.isAbsolute(t15)){if(Ae2(t15).startsWith(A5))return je3.relative(A5,t15);throw new Error(`Path ${t15} is not in cwd ${A5}`)}return t15},"toRelativePath"),GS=s4((t15,A5)=>{let e2=t15.flatMap(i6=>lO(i6,A5)),r2=(0, US2.default)().add(e2);return i6=>(i6=Es(i6),i6=EO2(i6,A5),i6?r2.ignores(Ae2(i6)):!1)},"getIsIgnoredPredicate"),JS=s4((t15={})=>({cwd:Es(t15.cwd)??Q.cwd(),suppressErrors:!!t15.suppressErrors,deep:typeof t15.deep=="number"?t15.deep:Number.POSITIVE_INFINITY,ignore:[...t15.ignore??[],...IO]}),"normalizeOptions"),fs2=s4(async(t15,A5)=>{let{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2}=JS(A5),o5=await(0, Wh2.default)(t15,{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2,..._S}),g=await Promise.all(o5.map(async C4=>({filePath:C4,content:await fs4__default.readFile(C4,"utf8")})));return GS(g,e2)},"isIgnoredByIgnoreFiles"),ds=s4((t15,A5)=>{let{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2}=JS(A5),g=Wh2.default.sync(t15,{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2,..._S}).map(C4=>({filePath:C4,content:en2__default.readFileSync(C4,"utf8")}));return GS(g,e2)},"isIgnoredByIgnoreFilesSync"),OS=s4(t15=>fs2(ag,t15),"isGitIgnored"),TS2=s4(t15=>ds(ag,t15),"isGitIgnoredSync");}),sK={};Ss(sK,{convertPathToPattern:()=>SO,generateGlobTasks:()=>yO2,generateGlobTasksSync:()=>DO,globby:()=>dO,globbyStream:()=>wO,globbySync:()=>pO2,isDynamicPattern:()=>mO2,isGitIgnored:()=>OS,isGitIgnoredSync:()=>TS2,isIgnoredByIgnoreFiles:()=>fs2,isIgnoredByIgnoreFilesSync:()=>ds});var si2,BO,zS,WS,HS,jS2,Xh2,QO,VS,XS,Cg,ZS,fO2,$S,AK,eK,tK,rK,iK,Zh2,dO,pO2,wO,mO2,yO2,DO,SO,nK=ue2(()=>{ry(),si2=cA(Yh2(),1),kS2(),_h2(),Vh(),zh(),Vh(),BO=s4(t15=>{if(t15.some(A5=>typeof A5!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),zS=s4((t15,A5)=>{let e2=Qs2(t15)?t15.slice(1):t15;return je3.isAbsolute(e2)?e2:je3.join(A5,e2)},"normalizePathForDirectoryGlob"),WS=s4(({directoryPath:t15,files:A5,extensions:e2})=>{let r2=e2?.length>0?`.${e2.length>1?`{${e2.join(",")}}`:e2[0]}`:"";return A5?A5.map(i6=>je3.posix.join(t15,`**/${je3.extname(i6)?i6:`${i6}${r2}`}`)):[je3.posix.join(t15,`**${r2?`/*${r2}`:""}`)]},"getDirectoryGlob"),HS=s4(async(t15,{cwd:A5=Q.cwd(),files:e2,extensions:r2}={})=>(await Promise.all(t15.map(async n2=>await KS(zS(n2,A5))?WS({directoryPath:n2,files:e2,extensions:r2}):n2))).flat(),"directoryToGlob"),jS2=s4((t15,{cwd:A5=Q.cwd(),files:e2,extensions:r2}={})=>t15.flatMap(i6=>FS(zS(i6,A5))?WS({directoryPath:i6,files:e2,extensions:r2}):i6),"directoryToGlobSync"),Xh2=s4(t15=>(t15=[...new Set([t15].flat())],BO(t15),t15),"toPatternsArray"),QO=s4(t15=>{if(!t15)return;let A5;try{A5=en2__default.statSync(t15);}catch{return}if(!A5.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),VS=s4((t15={})=>(t15={...t15,ignore:t15.ignore??[],expandDirectories:t15.expandDirectories??!0,cwd:Es(t15.cwd)},QO(t15.cwd),t15),"normalizeOptions"),XS=s4(t15=>async(A5,e2)=>t15(Xh2(A5),VS(e2)),"normalizeArguments"),Cg=s4(t15=>(A5,e2)=>t15(Xh2(A5),VS(e2)),"normalizeArgumentsSync"),ZS=s4(t15=>{let{ignoreFiles:A5,gitignore:e2}=t15,r2=A5?Xh2(A5):[];return e2&&r2.push(ag),r2},"getIgnoreFilesPatterns"),fO2=s4(async t15=>{let A5=ZS(t15);return AK(A5.length>0&&await fs2(A5,t15))},"getFilter"),$S=s4(t15=>{let A5=ZS(t15);return AK(A5.length>0&&ds(A5,t15))},"getFilterSync"),AK=s4(t15=>{let A5=new Set;return e2=>{let r2=je3.normalize(e2.path??e2);return A5.has(r2)||t15&&t15(r2)?!1:(A5.add(r2),!0)}},"createFilterFunction"),eK=s4((t15,A5)=>t15.flat().filter(e2=>A5(e2)),"unionFastGlobResults"),tK=s4((t15,A5)=>{let e2=[];for(;t15.length>0;){let r2=t15.findIndex(n2=>Qs2(n2));if(r2===-1){e2.push({patterns:t15,options:A5});break}let i6=t15[r2].slice(1);for(let n2 of e2)n2.options.ignore.push(i6);r2!==0&&e2.push({patterns:t15.slice(0,r2),options:{...A5,ignore:[...A5.ignore,i6]}}),t15=t15.slice(r2+1);}return e2},"convertNegativePatterns"),rK=s4((t15,A5)=>({...A5?{cwd:A5}:{},...Array.isArray(t15)?{files:t15}:t15}),"normalizeExpandDirectoriesOption"),iK=s4(async(t15,A5)=>{let e2=tK(t15,A5),{cwd:r2,expandDirectories:i6}=A5;if(!i6)return e2;let n2=rK(i6,r2);return Promise.all(e2.map(async o5=>{let{patterns:g,options:C4}=o5;return [g,C4.ignore]=await Promise.all([HS(g,n2),HS(C4.ignore,{cwd:r2})]),{patterns:g,options:C4}}))},"generateTasks"),Zh2=s4((t15,A5)=>{let e2=tK(t15,A5),{cwd:r2,expandDirectories:i6}=A5;if(!i6)return e2;let n2=rK(i6,r2);return e2.map(o5=>{let{patterns:g,options:C4}=o5;return g=jS2(g,n2),C4.ignore=jS2(C4.ignore,{cwd:r2}),{patterns:g,options:C4}})},"generateTasksSync"),dO=XS(async(t15,A5)=>{let[e2,r2]=await Promise.all([iK(t15,A5),fO2(A5)]),i6=await Promise.all(e2.map(n2=>(0, si2.default)(n2.patterns,n2.options)));return eK(i6,r2)}),pO2=Cg((t15,A5)=>{let e2=Zh2(t15,A5),r2=$S(A5),i6=e2.map(n2=>si2.default.sync(n2.patterns,n2.options));return eK(i6,r2)}),wO=Cg((t15,A5)=>{let e2=Zh2(t15,A5),r2=$S(A5),i6=e2.map(o5=>si2.default.stream(o5.patterns,o5.options));return aI(i6).filter(o5=>r2(o5))}),mO2=Cg((t15,A5)=>t15.some(e2=>si2.default.isDynamicPattern(e2,A5))),yO2=XS(iK),DO=Cg(Zh2),{convertPathToPattern:SO}=si2.default;}),aK={};Ss(aK,{default:()=>$h2,limitFunction:()=>KO});function $h2(t15){gK(t15);let A5=new tr2,e2=0,r2=s4(()=>{e2<t15&&A5.size>0&&(A5.dequeue()(),e2++);},"resumeNext"),i6=s4(()=>{e2--,r2();},"next"),n2=s4(async(C4,I7,E6)=>{let Q7=(async()=>C4(...E6))();I7(Q7);try{await Q7;}catch{}i6();},"run"),o5=s4((C4,I7,E6)=>{new Promise(Q7=>{A5.enqueue(Q7);}).then(n2.bind(void 0,C4,I7,E6)),(async()=>(await Promise.resolve(),e2<t15&&r2()))();},"enqueue"),g=s4((C4,...I7)=>new Promise(E6=>{o5(C4,E6,I7);}),"generator");return Object.defineProperties(g,{activeCount:{get:s4(()=>e2,"get")},pendingCount:{get:s4(()=>A5.size,"get")},clearQueue:{value(){A5.clear();}},concurrency:{get:s4(()=>t15,"get"),set(C4){gK(C4),t15=C4,queueMicrotask(()=>{for(;e2<t15&&A5.size>0;)r2();});}}}),g}function KO(t15,A5){let{concurrency:e2}=A5,r2=$h2(e2);return (...i6)=>r2(()=>t15(...i6))}function gK(t15){if(!((Number.isInteger(t15)||t15===Number.POSITIVE_INFINITY)&&t15>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var nt3={"@storybook/addon-a11y":"9.0.15","@storybook/addon-docs":"9.0.15","@storybook/addon-jest":"9.0.15","@storybook/addon-links":"9.0.15","@storybook/addon-onboarding":"9.0.15","storybook-addon-pseudo-states":"9.0.15","@storybook/addon-themes":"9.0.15","@storybook/addon-vitest":"9.0.15","@storybook/builder-vite":"9.0.15","@storybook/builder-webpack5":"9.0.15",storybook:"9.0.15","@storybook/angular":"9.0.15","@storybook/ember":"9.0.15","@storybook/html-vite":"9.0.15","@storybook/nextjs":"9.0.15","@storybook/nextjs-vite":"9.0.15","@storybook/preact-vite":"9.0.15","@storybook/react-native-web-vite":"9.0.15","@storybook/react-vite":"9.0.15","@storybook/react-webpack5":"9.0.15","@storybook/server-webpack5":"9.0.15","@storybook/svelte-vite":"9.0.15","@storybook/sveltekit":"9.0.15","@storybook/vue3-vite":"9.0.15","@storybook/web-components-vite":"9.0.15",sb:"9.0.15","@storybook/cli":"9.0.15","@storybook/codemod":"9.0.15","@storybook/core-webpack":"9.0.15","create-storybook":"9.0.15","@storybook/csf-plugin":"9.0.15","eslint-plugin-storybook":"9.0.15","@storybook/react-dom-shim":"9.0.15","@storybook/preset-create-react-app":"9.0.15","@storybook/preset-react-webpack":"9.0.15","@storybook/preset-server-webpack":"9.0.15","@storybook/html":"9.0.15","@storybook/preact":"9.0.15","@storybook/react":"9.0.15","@storybook/server":"9.0.15","@storybook/svelte":"9.0.15","@storybook/vue3":"9.0.15","@storybook/web-components":"9.0.15"},KE2=cA(ot3(),1),fg=new Set([".js",".jsx",".ts",".tsx",".cts",".mts",".cjs",".mjs"]);function iF(){return [...Array.from(fg)]}s4(iF,"sortExtensions");var ul2=iF();function pr(t15){return ul2.map(A5=>t15.endsWith(A5)?t15:`${t15}${A5}`).find(A5=>existsSync(A5))}s4(pr,"getInterpretedFile");function Bl(t15){return ul2.map(A5=>({path:t15.endsWith(A5)?t15:`${t15}${A5}`,ext:A5})).find(A5=>existsSync(A5.path))}s4(Bl,"getInterpretedFileWithExt");var Ql=!1;function dg2(t15){let A5=!!v7("module")._extensions[".ts"];if(Ql===!1&&!A5){let{register:i6}=v7("esbuild-register/dist/node");Ql=!0,i6({target:`node${process.version.slice(1)}`,format:"cjs",hookIgnoreNodeModules:!0,keepNames:!0,tsconfigRaw:`{
|
1603
|
+
`,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"};}),Vy=m((O62,Wy)=>{var eG=Po2(),{MAX_LENGTH:jy,CHAR_BACKSLASH:QI2,CHAR_BACKTICK:tG,CHAR_COMMA:rG,CHAR_DOT:iG,CHAR_LEFT_PARENTHESES:sG,CHAR_RIGHT_PARENTHESES:nG,CHAR_LEFT_CURLY_BRACE:oG,CHAR_RIGHT_CURLY_BRACE:gG,CHAR_LEFT_SQUARE_BRACKET:qy,CHAR_RIGHT_SQUARE_BRACKET:zy,CHAR_DOUBLE_QUOTE:aG,CHAR_SINGLE_QUOTE:CG,CHAR_NO_BREAK_SPACE:cG,CHAR_ZERO_WIDTH_NOBREAK_SPACE:IG}=Hy(),hG=s4((t15,A5={})=>{if(typeof t15!="string")throw new TypeError("Expected a string");let e2=A5||{},r2=typeof e2.maxLength=="number"?Math.min(jy,e2.maxLength):jy;if(t15.length>r2)throw new SyntaxError(`Input length (${t15.length}), exceeds max characters (${r2})`);let i6={type:"root",input:t15,nodes:[]},n2=[i6],o5=i6,g=i6,C4=0,I7=t15.length,E6=0,Q7=0,B6,p4=s4(()=>t15[E6++],"advance"),w2=s4(D4=>{if(D4.type==="text"&&g.type==="dot"&&(g.type="text"),g&&g.type==="text"&&D4.type==="text"){g.value+=D4.value;return}return o5.nodes.push(D4),D4.parent=o5,D4.prev=g,g=D4,D4},"push");for(w2({type:"bos"});E6<I7;)if(o5=n2[n2.length-1],B6=p4(),!(B6===IG||B6===cG)){if(B6===QI2){w2({type:"text",value:(A5.keepEscaping?B6:"")+p4()});continue}if(B6===zy){w2({type:"text",value:"\\"+B6});continue}if(B6===qy){C4++;let D4;for(;E6<I7&&(D4=p4());){if(B6+=D4,D4===qy){C4++;continue}if(D4===QI2){B6+=p4();continue}if(D4===zy&&(C4--,C4===0))break}w2({type:"text",value:B6});continue}if(B6===sG){o5=w2({type:"paren",nodes:[]}),n2.push(o5),w2({type:"text",value:B6});continue}if(B6===nG){if(o5.type!=="paren"){w2({type:"text",value:B6});continue}o5=n2.pop(),w2({type:"text",value:B6}),o5=n2[n2.length-1];continue}if(B6===aG||B6===CG||B6===tG){let D4=B6,N7;for(A5.keepQuotes!==!0&&(B6="");E6<I7&&(N7=p4());){if(N7===QI2){B6+=N7+p4();continue}if(N7===D4){A5.keepQuotes===!0&&(B6+=N7);break}B6+=N7;}w2({type:"text",value:B6});continue}if(B6===oG){Q7++;let N7={type:"brace",open:!0,close:!1,dollar:g.value&&g.value.slice(-1)==="$"||o5.dollar===!0,depth:Q7,commas:0,ranges:0,nodes:[]};o5=w2(N7),n2.push(o5),w2({type:"open",value:B6});continue}if(B6===gG){if(o5.type!=="brace"){w2({type:"text",value:B6});continue}let D4="close";o5=n2.pop(),o5.close=!0,w2({type:D4,value:B6}),Q7--,o5=n2[n2.length-1];continue}if(B6===rG&&Q7>0){if(o5.ranges>0){o5.ranges=0;let D4=o5.nodes.shift();o5.nodes=[D4,{type:"text",value:eG(o5)}];}w2({type:"comma",value:B6}),o5.commas++;continue}if(B6===iG&&Q7>0&&o5.commas===0){let D4=o5.nodes;if(Q7===0||D4.length===0){w2({type:"text",value:B6});continue}if(g.type==="dot"){if(o5.range=[],g.value+=B6,g.type="range",o5.nodes.length!==3&&o5.nodes.length!==5){o5.invalid=!0,o5.ranges=0,g.type="text";continue}o5.ranges++,o5.args=[];continue}if(g.type==="range"){D4.pop();let N7=D4[D4.length-1];N7.value+=g.value+B6,g=N7,o5.ranges--;continue}w2({type:"dot",value:B6});continue}w2({type:"text",value:B6});}do if(o5=n2.pop(),o5.type!=="root"){o5.nodes.forEach(k6=>{k6.nodes||(k6.type==="open"&&(k6.isOpen=!0),k6.type==="close"&&(k6.isClose=!0),k6.nodes||(k6.type="text"),k6.invalid=!0);});let D4=n2[n2.length-1],N7=D4.nodes.indexOf(o5);D4.nodes.splice(N7,1,...o5.nodes);}while(n2.length>0);return w2({type:"eos"}),i6},"parse");Wy.exports=hG;}),$y=m((H62,Zy2)=>{var Xy=Po2(),lG=_y2(),EG=Oy(),uG=Vy(),Ee4=s4((t15,A5={})=>{let e2=[];if(Array.isArray(t15))for(let r2 of t15){let i6=Ee4.create(r2,A5);Array.isArray(i6)?e2.push(...i6):e2.push(i6);}else e2=[].concat(Ee4.create(t15,A5));return A5&&A5.expand===!0&&A5.nodupes===!0&&(e2=[...new Set(e2)]),e2},"braces");Ee4.parse=(t15,A5={})=>uG(t15,A5),Ee4.stringify=(t15,A5={})=>Xy(typeof t15=="string"?Ee4.parse(t15,A5):t15,A5),Ee4.compile=(t15,A5={})=>(typeof t15=="string"&&(t15=Ee4.parse(t15,A5)),lG(t15,A5)),Ee4.expand=(t15,A5={})=>{typeof t15=="string"&&(t15=Ee4.parse(t15,A5));let e2=EG(t15,A5);return A5.noempty===!0&&(e2=e2.filter(Boolean)),A5.nodupes===!0&&(e2=[...new Set(e2)]),e2},Ee4.create=(t15,A5={})=>t15===""||t15.length<3?[t15]:A5.expand!==!0?Ee4.compile(t15,A5):Ee4.expand(t15,A5),Zy2.exports=Ee4;}),sD3=m((q62,iD2)=>{var eD3=v7("util"),tD4=$y(),At3=Nn(),fI=Hi(),AD2=s4(t15=>t15===""||t15==="./","isEmptyString"),rD3=s4(t15=>{let A5=t15.indexOf("{");return A5>-1&&t15.indexOf("}",A5)>-1},"hasBraces"),wA=s4((t15,A5,e2)=>{A5=[].concat(A5),t15=[].concat(t15);let r2=new Set,i6=new Set,n2=new Set,o5=0,g=s4(E6=>{n2.add(E6.output),e2&&e2.onResult&&e2.onResult(E6);},"onResult");for(let E6=0;E6<A5.length;E6++){let Q7=At3(String(A5[E6]),{...e2,onResult:g},!0),B6=Q7.state.negated||Q7.state.negatedExtglob;B6&&o5++;for(let p4 of t15){let w2=Q7(p4,!0);(B6?!w2.isMatch:w2.isMatch)&&(B6?r2.add(w2.output):(r2.delete(w2.output),i6.add(w2.output)));}}let I7=(o5===A5.length?[...n2]:[...i6]).filter(E6=>!r2.has(E6));if(e2&&I7.length===0){if(e2.failglob===!0)throw new Error(`No matches found for "${A5.join(", ")}"`);if(e2.nonull===!0||e2.nullglob===!0)return e2.unescape?A5.map(E6=>E6.replace(/\\/g,"")):A5}return I7},"micromatch");wA.match=wA,wA.matcher=(t15,A5)=>At3(t15,A5),wA.isMatch=(t15,A5,e2)=>At3(A5,e2)(t15),wA.any=wA.isMatch,wA.not=(t15,A5,e2={})=>{A5=[].concat(A5).map(String);let r2=new Set,i6=[],n2=s4(g=>{e2.onResult&&e2.onResult(g),i6.push(g.output);},"onResult"),o5=new Set(wA(t15,A5,{...e2,onResult:n2}));for(let g of i6)o5.has(g)||r2.add(g);return [...r2]},wA.contains=(t15,A5,e2)=>{if(typeof t15!="string")throw new TypeError(`Expected a string: "${eD3.inspect(t15)}"`);if(Array.isArray(A5))return A5.some(r2=>wA.contains(t15,r2,e2));if(typeof A5=="string"){if(AD2(t15)||AD2(A5))return !1;if(t15.includes(A5)||t15.startsWith("./")&&t15.slice(2).includes(A5))return !0}return wA.isMatch(t15,A5,{...e2,contains:!0})},wA.matchKeys=(t15,A5,e2)=>{if(!fI.isObject(t15))throw new TypeError("Expected the first argument to be an object");let r2=wA(Object.keys(t15),A5,e2),i6={};for(let n2 of r2)i6[n2]=t15[n2];return i6},wA.some=(t15,A5,e2)=>{let r2=[].concat(t15);for(let i6 of [].concat(A5)){let n2=At3(String(i6),e2);if(r2.some(o5=>n2(o5)))return !0}return !1},wA.every=(t15,A5,e2)=>{let r2=[].concat(t15);for(let i6 of [].concat(A5)){let n2=At3(String(i6),e2);if(!r2.every(o5=>n2(o5)))return !1}return !0},wA.all=(t15,A5,e2)=>{if(typeof t15!="string")throw new TypeError(`Expected a string: "${eD3.inspect(t15)}"`);return [].concat(A5).every(r2=>At3(r2,e2)(t15))},wA.capture=(t15,A5,e2)=>{let r2=fI.isWindows(e2),n2=At3.makeRe(String(t15),{...e2,capture:!0}).exec(r2?fI.toPosixSlashes(A5):A5);if(n2)return n2.slice(1).map(o5=>o5===void 0?"":o5)},wA.makeRe=(...t15)=>At3.makeRe(...t15),wA.scan=(...t15)=>At3.scan(...t15),wA.parse=(t15,A5)=>{let e2=[];for(let r2 of [].concat(t15||[]))for(let i6 of tD4(String(r2),A5))e2.push(At3.parse(i6,A5));return e2},wA.braces=(t15,A5)=>{if(typeof t15!="string")throw new TypeError("Expected a string");return A5&&A5.nobrace===!0||!rD3(t15)?[t15]:tD4(t15,A5)},wA.braceExpand=(t15,A5)=>{if(typeof t15!="string")throw new TypeError("Expected a string");return wA.braces(t15,{...A5,expand:!0})},wA.hasBraces=rD3,iD2.exports=wA;}),ED2=m(AA=>{Object.defineProperty(AA,"__esModule",{value:!0}),AA.isAbsolute=AA.partitionAbsoluteAndRelative=AA.removeDuplicateSlashes=AA.matchAny=AA.convertPatternsToRe=AA.makeRe=AA.getPatternParts=AA.expandBraceExpansion=AA.expandPatternsWithBraceExpansion=AA.isAffectDepthOfReadingPattern=AA.endsWithSlashGlobStar=AA.hasGlobStar=AA.getBaseDirectory=AA.isPatternRelatedToParentDirectory=AA.getPatternsOutsideCurrentDirectory=AA.getPatternsInsideCurrentDirectory=AA.getPositivePatterns=AA.getNegativePatterns=AA.isPositivePattern=AA.isNegativePattern=AA.convertToNegativePattern=AA.convertToPositivePattern=AA.isDynamicPattern=AA.isStaticPattern=void 0;var nD2=v7("path"),BG=By(),dI=sD3(),oD2="**",QG="\\",fG=/[*?]|^!/,dG=/\[[^[]*]/,pG=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wG=/[!*+?@]\([^(]*\)/,mG=/,|\.\./,yG=/(?!^)\/{2,}/g;function gD2(t15,A5={}){return !aD2(t15,A5)}s4(gD2,"isStaticPattern"),AA.isStaticPattern=gD2;function aD2(t15,A5={}){return t15===""?!1:!!(A5.caseSensitiveMatch===!1||t15.includes(QG)||fG.test(t15)||dG.test(t15)||pG.test(t15)||A5.extglob!==!1&&wG.test(t15)||A5.braceExpansion!==!1&&DG(t15))}s4(aD2,"isDynamicPattern"),AA.isDynamicPattern=aD2;function DG(t15){let A5=t15.indexOf("{");if(A5===-1)return !1;let e2=t15.indexOf("}",A5+1);if(e2===-1)return !1;let r2=t15.slice(A5,e2);return mG.test(r2)}s4(DG,"hasBraceExpansion");function SG(t15){return Go2(t15)?t15.slice(1):t15}s4(SG,"convertToPositivePattern"),AA.convertToPositivePattern=SG;function KG(t15){return "!"+t15}s4(KG,"convertToNegativePattern"),AA.convertToNegativePattern=KG;function Go2(t15){return t15.startsWith("!")&&t15[1]!=="("}s4(Go2,"isNegativePattern"),AA.isNegativePattern=Go2;function CD3(t15){return !Go2(t15)}s4(CD3,"isPositivePattern"),AA.isPositivePattern=CD3;function FG(t15){return t15.filter(Go2)}s4(FG,"getNegativePatterns"),AA.getNegativePatterns=FG;function kG(t15){return t15.filter(CD3)}s4(kG,"getPositivePatterns"),AA.getPositivePatterns=kG;function bG(t15){return t15.filter(A5=>!pI(A5))}s4(bG,"getPatternsInsideCurrentDirectory"),AA.getPatternsInsideCurrentDirectory=bG;function NG(t15){return t15.filter(pI)}s4(NG,"getPatternsOutsideCurrentDirectory"),AA.getPatternsOutsideCurrentDirectory=NG;function pI(t15){return t15.startsWith("..")||t15.startsWith("./..")}s4(pI,"isPatternRelatedToParentDirectory"),AA.isPatternRelatedToParentDirectory=pI;function MG(t15){return BG(t15,{flipBackslashes:!1})}s4(MG,"getBaseDirectory"),AA.getBaseDirectory=MG;function RG(t15){return t15.includes(oD2)}s4(RG,"hasGlobStar"),AA.hasGlobStar=RG;function cD2(t15){return t15.endsWith("/"+oD2)}s4(cD2,"endsWithSlashGlobStar"),AA.endsWithSlashGlobStar=cD2;function vG(t15){let A5=nD2.basename(t15);return cD2(t15)||gD2(A5)}s4(vG,"isAffectDepthOfReadingPattern"),AA.isAffectDepthOfReadingPattern=vG;function LG(t15){return t15.reduce((A5,e2)=>A5.concat(ID3(e2)),[])}s4(LG,"expandPatternsWithBraceExpansion"),AA.expandPatternsWithBraceExpansion=LG;function ID3(t15){let A5=dI.braces(t15,{expand:!0,nodupes:!0,keepEscaping:!0});return A5.sort((e2,r2)=>e2.length-r2.length),A5.filter(e2=>e2!=="")}s4(ID3,"expandBraceExpansion"),AA.expandBraceExpansion=ID3;function xG(t15,A5){let{parts:e2}=dI.scan(t15,Object.assign(Object.assign({},A5),{parts:!0}));return e2.length===0&&(e2=[t15]),e2[0].startsWith("/")&&(e2[0]=e2[0].slice(1),e2.unshift("")),e2}s4(xG,"getPatternParts"),AA.getPatternParts=xG;function hD2(t15,A5){return dI.makeRe(t15,A5)}s4(hD2,"makeRe"),AA.makeRe=hD2;function YG(t15,A5){return t15.map(e2=>hD2(e2,A5))}s4(YG,"convertPatternsToRe"),AA.convertPatternsToRe=YG;function PG(t15,A5){return A5.some(e2=>e2.test(t15))}s4(PG,"matchAny"),AA.matchAny=PG;function UG(t15){return t15.replace(yG,"/")}s4(UG,"removeDuplicateSlashes"),AA.removeDuplicateSlashes=UG;function _G(t15){let A5=[],e2=[];for(let r2 of t15)lD3(r2)?A5.push(r2):e2.push(r2);return [A5,e2]}s4(_G,"partitionAbsoluteAndRelative"),AA.partitionAbsoluteAndRelative=_G;function lD3(t15){return nD2.isAbsolute(t15)}s4(lD3,"isAbsolute"),AA.isAbsolute=lD3;}),fD2=m((X62,QD3)=>{var GG=v7("stream"),uD2=GG.PassThrough,JG=Array.prototype.slice;QD3.exports=OG;function OG(){let t15=[],A5=JG.call(arguments),e2=!1,r2=A5[A5.length-1];r2&&!Array.isArray(r2)&&r2.pipe==null?A5.pop():r2={};let i6=r2.end!==!1,n2=r2.pipeError===!0;r2.objectMode==null&&(r2.objectMode=!0),r2.highWaterMark==null&&(r2.highWaterMark=64*1024);let o5=uD2(r2);function g(){for(let E6=0,Q7=arguments.length;E6<Q7;E6++)t15.push(BD2(arguments[E6],r2));return C4(),this}s4(g,"addStream");function C4(){if(e2)return;e2=!0;let E6=t15.shift();if(!E6){process.nextTick(I7);return}Array.isArray(E6)||(E6=[E6]);let Q7=E6.length+1;function B6(){--Q7>0||(e2=!1,C4());}s4(B6,"next");function p4(w2){function D4(){w2.removeListener("merge2UnpipeEnd",D4),w2.removeListener("end",D4),n2&&w2.removeListener("error",N7),B6();}s4(D4,"onend");function N7(k6){o5.emit("error",k6);}if(s4(N7,"onerror"),w2._readableState.endEmitted)return B6();w2.on("merge2UnpipeEnd",D4),w2.on("end",D4),n2&&w2.on("error",N7),w2.pipe(o5,{end:!1}),w2.resume();}s4(p4,"pipe");for(let w2=0;w2<E6.length;w2++)p4(E6[w2]);B6();}s4(C4,"mergeStream");function I7(){e2=!1,o5.emit("queueDrain"),i6&&o5.end();}return s4(I7,"endStream"),o5.setMaxListeners(0),o5.add=g,o5.on("unpipe",function(E6){E6.emit("merge2UnpipeEnd");}),A5.length&&g.apply(null,A5),o5}s4(OG,"merge2");function BD2(t15,A5){if(Array.isArray(t15))for(let e2=0,r2=t15.length;e2<r2;e2++)t15[e2]=BD2(t15[e2],A5);else {if(!t15._readableState&&t15.pipe&&(t15=t15.pipe(uD2(A5))),!t15._readableState||!t15.pause||!t15.pipe)throw new Error("Only readable stream can be merged.");t15.pause();}return t15}s4(BD2,"pauseStreams");}),pD2=m(Jo2=>{Object.defineProperty(Jo2,"__esModule",{value:!0}),Jo2.merge=void 0;var TG=fD2();function HG(t15){let A5=TG(t15);return t15.forEach(e2=>{e2.once("error",r2=>A5.emit("error",r2));}),A5.once("close",()=>dD2(t15)),A5.once("end",()=>dD2(t15)),A5}s4(HG,"merge"),Jo2.merge=HG;function dD2(t15){t15.forEach(A5=>A5.emit("close"));}s4(dD2,"propagateCloseEventToSources");}),wD2=m(Zr3=>{Object.defineProperty(Zr3,"__esModule",{value:!0}),Zr3.isEmpty=Zr3.isString=void 0;function jG(t15){return typeof t15=="string"}s4(jG,"isString"),Zr3.isString=jG;function qG(t15){return t15===""}s4(qG,"isEmpty"),Zr3.isEmpty=qG;}),yt2=m(zA=>{Object.defineProperty(zA,"__esModule",{value:!0}),zA.string=zA.stream=zA.pattern=zA.path=zA.fs=zA.errno=zA.array=void 0;var zG=iy();zA.array=zG;var WG=sy();zA.errno=WG;var VG=ny();zA.fs=VG;var XG=Cy();zA.path=XG;var ZG=ED2();zA.pattern=ZG;var $G=pD2();zA.stream=$G;var AJ=wD2();zA.string=AJ;}),SD2=m(WA=>{Object.defineProperty(WA,"__esModule",{value:!0}),WA.convertPatternGroupToTask=WA.convertPatternGroupsToTasks=WA.groupPatternsByBaseDirectory=WA.getNegativePatternsAsPositive=WA.getPositivePatterns=WA.convertPatternsToTasks=WA.generate=void 0;var Ge2=yt2();function eJ(t15,A5){let e2=mD2(t15,A5),r2=mD2(A5.ignore,A5),i6=yD2(e2),n2=DD2(e2,r2),o5=i6.filter(E6=>Ge2.pattern.isStaticPattern(E6,A5)),g=i6.filter(E6=>Ge2.pattern.isDynamicPattern(E6,A5)),C4=wI(o5,n2,!1),I7=wI(g,n2,!0);return C4.concat(I7)}s4(eJ,"generate"),WA.generate=eJ;function mD2(t15,A5){let e2=t15;return A5.braceExpansion&&(e2=Ge2.pattern.expandPatternsWithBraceExpansion(e2)),A5.baseNameMatch&&(e2=e2.map(r2=>r2.includes("/")?r2:`**/${r2}`)),e2.map(r2=>Ge2.pattern.removeDuplicateSlashes(r2))}s4(mD2,"processPatterns");function wI(t15,A5,e2){let r2=[],i6=Ge2.pattern.getPatternsOutsideCurrentDirectory(t15),n2=Ge2.pattern.getPatternsInsideCurrentDirectory(t15),o5=mI(i6),g=mI(n2);return r2.push(...yI(o5,A5,e2)),"."in g?r2.push(DI(".",n2,A5,e2)):r2.push(...yI(g,A5,e2)),r2}s4(wI,"convertPatternsToTasks"),WA.convertPatternsToTasks=wI;function yD2(t15){return Ge2.pattern.getPositivePatterns(t15)}s4(yD2,"getPositivePatterns"),WA.getPositivePatterns=yD2;function DD2(t15,A5){return Ge2.pattern.getNegativePatterns(t15).concat(A5).map(Ge2.pattern.convertToPositivePattern)}s4(DD2,"getNegativePatternsAsPositive"),WA.getNegativePatternsAsPositive=DD2;function mI(t15){let A5={};return t15.reduce((e2,r2)=>{let i6=Ge2.pattern.getBaseDirectory(r2);return i6 in e2?e2[i6].push(r2):e2[i6]=[r2],e2},A5)}s4(mI,"groupPatternsByBaseDirectory"),WA.groupPatternsByBaseDirectory=mI;function yI(t15,A5,e2){return Object.keys(t15).map(r2=>DI(r2,t15[r2],A5,e2))}s4(yI,"convertPatternGroupsToTasks"),WA.convertPatternGroupsToTasks=yI;function DI(t15,A5,e2,r2){return {dynamic:r2,positive:A5,negative:e2,base:t15,patterns:[].concat(A5,e2.map(Ge2.pattern.convertToNegativePattern))}}s4(DI,"convertPatternGroupToTask"),WA.convertPatternGroupToTask=DI;}),FD2=m(Oo2=>{Object.defineProperty(Oo2,"__esModule",{value:!0}),Oo2.read=void 0;function tJ(t15,A5,e2){A5.fs.lstat(t15,(r2,i6)=>{if(r2!==null){KD2(e2,r2);return}if(!i6.isSymbolicLink()||!A5.followSymbolicLink){SI(e2,i6);return}A5.fs.stat(t15,(n2,o5)=>{if(n2!==null){if(A5.throwErrorOnBrokenSymbolicLink){KD2(e2,n2);return}SI(e2,i6);return}A5.markSymbolicLink&&(o5.isSymbolicLink=()=>!0),SI(e2,o5);});});}s4(tJ,"read"),Oo2.read=tJ;function KD2(t15,A5){t15(A5);}s4(KD2,"callFailureCallback");function SI(t15,A5){t15(null,A5);}s4(SI,"callSuccessCallback");}),kD=m(To2=>{Object.defineProperty(To2,"__esModule",{value:!0}),To2.read=void 0;function rJ(t15,A5){let e2=A5.fs.lstatSync(t15);if(!e2.isSymbolicLink()||!A5.followSymbolicLink)return e2;try{let r2=A5.fs.statSync(t15);return A5.markSymbolicLink&&(r2.isSymbolicLink=()=>!0),r2}catch(r2){if(!A5.throwErrorOnBrokenSymbolicLink)return e2;throw r2}}s4(rJ,"read"),To2.read=rJ;}),bD2=m(Ht2=>{Object.defineProperty(Ht2,"__esModule",{value:!0}),Ht2.createFileSystemAdapter=Ht2.FILE_SYSTEM_ADAPTER=void 0;var Ho2=v7("fs");Ht2.FILE_SYSTEM_ADAPTER={lstat:Ho2.lstat,stat:Ho2.stat,lstatSync:Ho2.lstatSync,statSync:Ho2.statSync};function iJ(t15){return t15===void 0?Ht2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ht2.FILE_SYSTEM_ADAPTER),t15)}s4(iJ,"createFileSystemAdapter"),Ht2.createFileSystemAdapter=iJ;}),ND2=m(FI=>{Object.defineProperty(FI,"__esModule",{value:!0});var sJ=bD2(),KI2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5??e2}};FI.default=KI2;}),Er2=m(jt2=>{Object.defineProperty(jt2,"__esModule",{value:!0}),jt2.statSync=jt2.stat=jt2.Settings=void 0;var MD=FD2(),nJ=kD(),kI2=ND2();jt2.Settings=kI2.default;function oJ(t15,A5,e2){if(typeof A5=="function"){MD.read(t15,bI(),A5);return}MD.read(t15,bI(A5),e2);}s4(oJ,"stat"),jt2.stat=oJ;function gJ(t15,A5){let e2=bI(A5);return nJ.read(t15,e2)}s4(gJ,"statSync"),jt2.statSync=gJ;function bI(t15={}){return t15 instanceof kI2.default?t15:new kI2.default(t15)}s4(bI,"getSettings");}),LD2=m((u5,vD2)=>{var RD2;vD2.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t15=>(RD2||(RD2=Promise.resolve())).then(t15).catch(A5=>setTimeout(()=>{throw A5},0));}),YD2=m((B52,xD2)=>{xD2.exports=CJ;var aJ=LD2();function CJ(t15,A5){let e2,r2,i6,n2=!0;Array.isArray(t15)?(e2=[],r2=t15.length):(i6=Object.keys(t15),e2={},r2=i6.length);function o5(C4){function I7(){A5&&A5(C4,e2),A5=null;}s4(I7,"end"),n2?aJ(I7):I7();}s4(o5,"done");function g(C4,I7,E6){e2[C4]=E6,(--r2===0||I7)&&o5(I7);}s4(g,"each"),r2?i6?i6.forEach(function(C4){t15[C4](function(I7,E6){g(C4,I7,E6);});}):t15.forEach(function(C4,I7){C4(function(E6,Q7){g(I7,E6,Q7);});}):o5(null),n2=!1;}s4(CJ,"runParallel");}),NI=m(qo2=>{Object.defineProperty(qo2,"__esModule",{value:!0}),qo2.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var jo=process.versions.node.split(".");if(jo[0]===void 0||jo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var PD=Number.parseInt(jo[0],10),cJ=Number.parseInt(jo[1],10),UD2=10,IJ=10,hJ=PD>UD2,lJ=PD===UD2&&cJ>=IJ;qo2.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hJ||lJ;}),_D2=m(zo3=>{Object.defineProperty(zo3,"__esModule",{value:!0}),zo3.createDirentFromStats=void 0;var MI=class{static{s4(this,"DirentFromStats");}constructor(A5,e2){this.name=A5,this.isBlockDevice=e2.isBlockDevice.bind(e2),this.isCharacterDevice=e2.isCharacterDevice.bind(e2),this.isDirectory=e2.isDirectory.bind(e2),this.isFIFO=e2.isFIFO.bind(e2),this.isFile=e2.isFile.bind(e2),this.isSocket=e2.isSocket.bind(e2),this.isSymbolicLink=e2.isSymbolicLink.bind(e2);}};function EJ(t15,A5){return new MI(t15,A5)}s4(EJ,"createDirentFromStats"),zo3.createDirentFromStats=EJ;}),RI=m(Wo2=>{Object.defineProperty(Wo2,"__esModule",{value:!0}),Wo2.fs=void 0;var uJ=_D2();Wo2.fs=uJ;}),vI=m(Vo2=>{Object.defineProperty(Vo2,"__esModule",{value:!0}),Vo2.joinPathSegments=void 0;function BJ(t15,A5,e2){return t15.endsWith(e2)?t15+A5:t15+e2+A5}s4(BJ,"joinPathSegments"),Vo2.joinPathSegments=BJ;}),jD2=m(qt2=>{Object.defineProperty(qt2,"__esModule",{value:!0}),qt2.readdir=qt2.readdirWithFileTypes=qt2.read=void 0;var QJ=Er2(),GD2=YD2(),fJ=NI(),JD2=RI(),OD2=vI();function dJ(t15,A5,e2){if(!A5.stats&&fJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){TD2(t15,A5,e2);return}HD2(t15,A5,e2);}s4(dJ,"read"),qt2.read=dJ;function TD2(t15,A5,e2){A5.fs.readdir(t15,{withFileTypes:!0},(r2,i6)=>{if(r2!==null){Xo3(e2,r2);return}let n2=i6.map(g=>({dirent:g,name:g.name,path:OD2.joinPathSegments(t15,g.name,A5.pathSegmentSeparator)}));if(!A5.followSymbolicLinks){LI(e2,n2);return}let o5=n2.map(g=>pJ(g,A5));GD2(o5,(g,C4)=>{if(g!==null){Xo3(e2,g);return}LI(e2,C4);});});}s4(TD2,"readdirWithFileTypes"),qt2.readdirWithFileTypes=TD2;function pJ(t15,A5){return e2=>{if(!t15.dirent.isSymbolicLink()){e2(null,t15);return}A5.fs.stat(t15.path,(r2,i6)=>{if(r2!==null){if(A5.throwErrorOnBrokenSymbolicLink){e2(r2);return}e2(null,t15);return}t15.dirent=JD2.fs.createDirentFromStats(t15.name,i6),e2(null,t15);});}}s4(pJ,"makeRplTaskEntry");function HD2(t15,A5,e2){A5.fs.readdir(t15,(r2,i6)=>{if(r2!==null){Xo3(e2,r2);return}let n2=i6.map(o5=>{let g=OD2.joinPathSegments(t15,o5,A5.pathSegmentSeparator);return C4=>{QJ.stat(g,A5.fsStatSettings,(I7,E6)=>{if(I7!==null){C4(I7);return}let Q7={name:o5,path:g,dirent:JD2.fs.createDirentFromStats(o5,E6)};A5.stats&&(Q7.stats=E6),C4(null,Q7);});}});GD2(n2,(o5,g)=>{if(o5!==null){Xo3(e2,o5);return}LI(e2,g);});});}s4(HD2,"readdir"),qt2.readdir=HD2;function Xo3(t15,A5){t15(A5);}s4(Xo3,"callFailureCallback");function LI(t15,A5){t15(null,A5);}s4(LI,"callSuccessCallback");}),XD=m(zt2=>{Object.defineProperty(zt2,"__esModule",{value:!0}),zt2.readdir=zt2.readdirWithFileTypes=zt2.read=void 0;var wJ=Er2(),mJ=NI(),qD2=RI(),zD2=vI();function yJ(t15,A5){return !A5.stats&&mJ.IS_SUPPORT_READDIR_WITH_FILE_TYPES?WD2(t15,A5):VD2(t15,A5)}s4(yJ,"read"),zt2.read=yJ;function WD2(t15,A5){return A5.fs.readdirSync(t15,{withFileTypes:!0}).map(r2=>{let i6={dirent:r2,name:r2.name,path:zD2.joinPathSegments(t15,r2.name,A5.pathSegmentSeparator)};if(i6.dirent.isSymbolicLink()&&A5.followSymbolicLinks)try{let n2=A5.fs.statSync(i6.path);i6.dirent=qD2.fs.createDirentFromStats(i6.name,n2);}catch(n2){if(A5.throwErrorOnBrokenSymbolicLink)throw n2}return i6})}s4(WD2,"readdirWithFileTypes"),zt2.readdirWithFileTypes=WD2;function VD2(t15,A5){return A5.fs.readdirSync(t15).map(r2=>{let i6=zD2.joinPathSegments(t15,r2,A5.pathSegmentSeparator),n2=wJ.statSync(i6,A5.fsStatSettings),o5={name:r2,path:i6,dirent:qD2.fs.createDirentFromStats(r2,n2)};return A5.stats&&(o5.stats=n2),o5})}s4(VD2,"readdir"),zt2.readdir=VD2;}),ZD2=m(Wt2=>{Object.defineProperty(Wt2,"__esModule",{value:!0}),Wt2.createFileSystemAdapter=Wt2.FILE_SYSTEM_ADAPTER=void 0;var $r3=v7("fs");Wt2.FILE_SYSTEM_ADAPTER={lstat:$r3.lstat,stat:$r3.stat,lstatSync:$r3.lstatSync,statSync:$r3.statSync,readdir:$r3.readdir,readdirSync:$r3.readdirSync};function DJ(t15){return t15===void 0?Wt2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Wt2.FILE_SYSTEM_ADAPTER),t15)}s4(DJ,"createFileSystemAdapter"),Wt2.createFileSystemAdapter=DJ;}),$D3=m(YI2=>{Object.defineProperty(YI2,"__esModule",{value:!0});var SJ=v7("path"),KJ=Er2(),FJ=ZD2(),xI=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5??e2}};YI2.default=xI;}),Zo=m(Vt=>{Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.Settings=Vt.scandirSync=Vt.scandir=void 0;var AS2=jD2(),kJ=XD(),PI=$D3();Vt.Settings=PI.default;function bJ(t15,A5,e2){if(typeof A5=="function"){AS2.read(t15,UI(),A5);return}AS2.read(t15,UI(A5),e2);}s4(bJ,"scandir"),Vt.scandir=bJ;function NJ(t15,A5){let e2=UI(A5);return kJ.read(t15,e2)}s4(NJ,"scandirSync"),Vt.scandirSync=NJ;function UI(t15={}){return t15 instanceof PI.default?t15:new PI.default(t15)}s4(UI,"getSettings");}),tS=m((L52,eS)=>{function MJ(t15){var A5=new t15,e2=A5;function r2(){var n2=A5;return n2.next?A5=n2.next:(A5=new t15,e2=A5),n2.next=null,n2}s4(r2,"get");function i6(n2){e2.next=n2,e2=n2;}return s4(i6,"release"),{get:r2,release:i6}}s4(MJ,"reusify"),eS.exports=MJ;}),iS2=m((Y52,_I)=>{var RJ=tS();function rS(t15,A5,e2){if(typeof t15=="function"&&(e2=A5,A5=t15,t15=null),!(e2>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r2=RJ(vJ),i6=null,n2=null,o5=0,g=null,C4={push:D4,drain:ye4,saturated:ye4,pause:E6,paused:!1,get concurrency(){return e2},set concurrency(U8){if(!(U8>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(e2=U8,!C4.paused)for(;i6&&o5<e2;)o5++,k6();},running:I7,resume:p4,idle:w2,length:Q7,getQueue:B6,unshift:N7,empty:ye4,kill:_6,killAndDrain:L7,error:J8};return C4;function I7(){return o5}function E6(){C4.paused=!0;}function Q7(){for(var U8=i6,$8=0;U8;)U8=U8.next,$8++;return $8}function B6(){for(var U8=i6,$8=[];U8;)$8.push(U8.value),U8=U8.next;return $8}function p4(){if(C4.paused){if(C4.paused=!1,i6===null){o5++,k6();return}for(;i6&&o5<e2;)o5++,k6();}}function w2(){return o5===0&&C4.length()===0}function D4(U8,$8){var q9=r2.get();q9.context=t15,q9.release=k6,q9.value=U8,q9.callback=$8||ye4,q9.errorHandler=g,o5>=e2||C4.paused?n2?(n2.next=q9,n2=q9):(i6=q9,n2=q9,C4.saturated()):(o5++,A5.call(t15,q9.value,q9.worked));}function N7(U8,$8){var q9=r2.get();q9.context=t15,q9.release=k6,q9.value=U8,q9.callback=$8||ye4,q9.errorHandler=g,o5>=e2||C4.paused?i6?(q9.next=i6,i6=q9):(i6=q9,n2=q9,C4.saturated()):(o5++,A5.call(t15,q9.value,q9.worked));}function k6(U8){U8&&r2.release(U8);var $8=i6;$8&&o5<=e2?C4.paused?o5--:(n2===i6&&(n2=null),i6=$8.next,$8.next=null,A5.call(t15,$8.value,$8.worked),n2===null&&C4.empty()):--o5===0&&C4.drain();}function _6(){i6=null,n2=null,C4.drain=ye4;}function L7(){i6=null,n2=null,C4.drain(),C4.drain=ye4;}function J8(U8){g=U8;}}s4(rS,"fastqueue");function ye4(){}s4(ye4,"noop");function vJ(){this.value=null,this.callback=ye4,this.next=null,this.release=ye4,this.context=null,this.errorHandler=null;var t15=this;this.worked=s4(function(e2,r2){var i6=t15.callback,n2=t15.errorHandler,o5=t15.value;t15.value=null,t15.callback=ye4,t15.errorHandler&&n2(e2,o5),i6.call(t15.context,e2,r2),t15.release(t15);},"worked");}s4(vJ,"Task");function LJ(t15,A5,e2){typeof t15=="function"&&(e2=A5,A5=t15,t15=null);function r2(E6,Q7){A5.call(this,E6).then(function(B6){Q7(null,B6);},Q7);}s4(r2,"asyncWrapper");var i6=rS(t15,r2,e2),n2=i6.push,o5=i6.unshift;return i6.push=g,i6.unshift=C4,i6.drained=I7,i6;function g(E6){var Q7=new Promise(function(B6,p4){n2(E6,function(w2,D4){if(w2){p4(w2);return}B6(D4);});});return Q7.catch(ye4),Q7}function C4(E6){var Q7=new Promise(function(B6,p4){o5(E6,function(w2,D4){if(w2){p4(w2);return}B6(D4);});});return Q7.catch(ye4),Q7}function I7(){var E6=new Promise(function(Q7){process.nextTick(function(){if(i6.idle())Q7();else {var B6=i6.drain;i6.drain=function(){typeof B6=="function"&&B6(),Q7(),i6.drain=B6;};}});});return E6}}s4(LJ,"queueAsPromised"),_I.exports=rS,_I.exports.promise=LJ;}),$o2=m(et2=>{Object.defineProperty(et2,"__esModule",{value:!0}),et2.joinPathSegments=et2.replacePathSegmentSeparator=et2.isAppliedFilter=et2.isFatalError=void 0;function xJ(t15,A5){return t15.errorFilter===null?!0:!t15.errorFilter(A5)}s4(xJ,"isFatalError"),et2.isFatalError=xJ;function YJ(t15,A5){return t15===null||t15(A5)}s4(YJ,"isAppliedFilter"),et2.isAppliedFilter=YJ;function PJ(t15,A5){return t15.split(/[/\\]/).join(A5)}s4(PJ,"replacePathSegmentSeparator"),et2.replacePathSegmentSeparator=PJ;function UJ(t15,A5,e2){return t15===""?A5:t15.endsWith(e2)?t15+A5:t15+e2+A5}s4(UJ,"joinPathSegments"),et2.joinPathSegments=UJ;}),OI=m(JI=>{Object.defineProperty(JI,"__esModule",{value:!0});var _J=$o2(),GI=class{static{s4(this,"Reader");}constructor(A5,e2){this._root=A5,this._settings=e2,this._root=_J.replacePathSegmentSeparator(A5,e2.pathSegmentSeparator);}};JI.default=GI;}),jI=m(HI=>{Object.defineProperty(HI,"__esModule",{value:!0});var GJ=v7("events"),JJ=Zo(),OJ=iS2(),Ag=$o2(),TJ=OI(),TI=class extends TJ.default{static{s4(this,"AsyncReader");}constructor(A5,e2){super(A5,e2),this._settings=e2,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(A5){this._emitter.on("entry",A5);}onError(A5){this._emitter.once("error",A5);}onEnd(A5){this._emitter.once("end",A5);}_pushToQueue(A5,e2){let r2={directory:A5,base:e2};this._queue.push(r2,i6=>{i6!==null&&this._handleError(i6);});}_worker(A5,e2){this._scandir(A5.directory,this._settings.fsScandirSettings,(r2,i6)=>{if(r2!==null){e2(r2,void 0);return}for(let n2 of i6)this._handleEntry(n2,A5.base);e2(null,void 0);});}_handleError(A5){this._isDestroyed||!Ag.isFatalError(this._settings,A5)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A5));}_handleEntry(A5,e2){if(this._isDestroyed||this._isFatalError)return;let r2=A5.path;e2!==void 0&&(A5.path=Ag.joinPathSegments(e2,A5.name,this._settings.pathSegmentSeparator)),Ag.isAppliedFilter(this._settings.entryFilter,A5)&&this._emitEntry(A5),A5.dirent.isDirectory()&&Ag.isAppliedFilter(this._settings.deepFilter,A5)&&this._pushToQueue(r2,e2===void 0?void 0:A5.path);}_emitEntry(A5){this._emitter.emit("entry",A5);}};HI.default=TI;}),sS=m(zI2=>{Object.defineProperty(zI2,"__esModule",{value:!0});var HJ=jI(),qI2=class{static{s4(this,"AsyncProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new HJ.default(this._root,this._settings),this._storage=[];}read(A5){this._reader.onError(e2=>{jJ(A5,e2);}),this._reader.onEntry(e2=>{this._storage.push(e2);}),this._reader.onEnd(()=>{qJ(A5,this._storage);}),this._reader.read();}};zI2.default=qI2;function jJ(t15,A5){t15(A5);}s4(jJ,"callFailureCallback");function qJ(t15,A5){t15(null,A5);}s4(qJ,"callSuccessCallback");}),nS=m(VI=>{Object.defineProperty(VI,"__esModule",{value:!0});var zJ=v7("stream"),WJ=jI(),WI2=class{static{s4(this,"StreamProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new WJ.default(this._root,this._settings),this._stream=new zJ.Readable({objectMode:!0,read:s4(()=>{},"read"),destroy:s4(()=>{this._reader.isDestroyed||this._reader.destroy();},"destroy")});}read(){return this._reader.onError(A5=>{this._stream.emit("error",A5);}),this._reader.onEntry(A5=>{this._stream.push(A5);}),this._reader.onEnd(()=>{this._stream.push(null);}),this._reader.read(),this._stream}};VI.default=WI2;}),oS=m(ZI=>{Object.defineProperty(ZI,"__esModule",{value:!0});var VJ=Zo(),eg=$o2(),XJ=OI(),XI2=class extends XJ.default{static{s4(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(A5,e2){this._queue.add({directory:A5,base:e2});}_handleQueue(){for(let A5 of this._queue.values())this._handleDirectory(A5.directory,A5.base);}_handleDirectory(A5,e2){try{let r2=this._scandir(A5,this._settings.fsScandirSettings);for(let i6 of r2)this._handleEntry(i6,e2);}catch(r2){this._handleError(r2);}}_handleError(A5){if(eg.isFatalError(this._settings,A5))throw A5}_handleEntry(A5,e2){let r2=A5.path;e2!==void 0&&(A5.path=eg.joinPathSegments(e2,A5.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A5)&&this._pushToStorage(A5),A5.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A5)&&this._pushToQueue(r2,e2===void 0?void 0:A5.path);}_pushToStorage(A5){this._storage.push(A5);}};ZI.default=XI2;}),gS=m(Ah=>{Object.defineProperty(Ah,"__esModule",{value:!0});var ZJ=oS(),$I=class{static{s4(this,"SyncProvider");}constructor(A5,e2){this._root=A5,this._settings=e2,this._reader=new ZJ.default(this._root,this._settings);}read(){return this._reader.read()}};Ah.default=$I;}),aS2=m(th=>{Object.defineProperty(th,"__esModule",{value:!0});var $J=v7("path"),A22=Zo(),eh2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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,$J.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(A5,e2){return A5??e2}};th.default=eh2;}),rg=m(tt2=>{Object.defineProperty(tt2,"__esModule",{value:!0}),tt2.Settings=tt2.walkStream=tt2.walkSync=tt2.walk=void 0;var CS2=sS(),e2=nS(),t22=gS(),rh=aS2();tt2.Settings=rh.default;function r2(t15,A5,e4){if(typeof A5=="function"){new CS2.default(t15,tg2()).read(A5);return}new CS2.default(t15,tg2(A5)).read(e4);}s4(r2,"walk"),tt2.walk=r2;function i22(t15,A5){let e4=tg2(A5);return new t22.default(t15,e4).read()}s4(i22,"walkSync"),tt2.walkSync=i22;function s22(t15,A5){let e4=tg2(A5);return new e2.default(t15,e4).read()}s4(s22,"walkStream"),tt2.walkStream=s22;function tg2(t15={}){return t15 instanceof rh.default?t15:new rh.default(t15)}s4(tg2,"getSettings");}),ig=m(sh=>{Object.defineProperty(sh,"__esModule",{value:!0});var n2=v7("path"),o22=Er2(),cS=yt2(),ih=class{static{s4(this,"Reader");}constructor(A5){this._settings=A5,this._fsStatSettings=new o22.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks});}_getFullEntryPath(A5){return n2.resolve(this._settings.cwd,A5)}_makeEntry(A5,e2){let r2={name:e2,path:e2,dirent:cS.fs.createDirentFromStats(e2,A5)};return this._settings.stats&&(r2.stats=A5),r2}_isFatalError(A5){return !cS.errno.isEnoentCodeError(A5)&&!this._settings.suppressErrors}};sh.default=ih;}),gh=m(oh2=>{Object.defineProperty(oh2,"__esModule",{value:!0});var g2=v7("stream"),a22=Er2(),C22=rg(),c22=ig(),nh=class extends c22.default{static{s4(this,"ReaderStream");}constructor(){super(...arguments),this._walkStream=C22.walkStream,this._stat=a22.stat;}dynamic(A5,e2){return this._walkStream(A5,e2)}static(A5,e2){let r2=A5.map(this._getFullEntryPath,this),i6=new g2.PassThrough({objectMode:!0});i6._write=(n2,o5,g)=>this._getEntry(r2[n2],A5[n2],e2).then(C4=>{C4!==null&&e2.entryFilter(C4)&&i6.push(C4),n2===r2.length-1&&i6.end(),g();}).catch(g);for(let n2=0;n2<r2.length;n2++)i6.write(n2);return i6}_getEntry(A5,e2,r2){return this._getStat(A5).then(i6=>this._makeEntry(i6,e2)).catch(i6=>{if(r2.errorFilter(i6))return null;throw i6})}_getStat(A5){return new Promise((e2,r2)=>{this._stat(A5,this._fsStatSettings,(i6,n2)=>i6===null?e2(n2):r2(i6));})}};oh2.default=nh;}),IS=m(Ch2=>{Object.defineProperty(Ch2,"__esModule",{value:!0});var I22=rg(),h22=ig(),l2=gh(),ah2=class extends h22.default{static{s4(this,"ReaderAsync");}constructor(){super(...arguments),this._walkAsync=I22.walk,this._readerStream=new l2.default(this._settings);}dynamic(A5,e2){return new Promise((r2,i6)=>{this._walkAsync(A5,e2,(n2,o5)=>{n2===null?r2(o5):i6(n2);});})}async static(A5,e2){let r2=[],i6=this._readerStream.static(A5,e2);return new Promise((n2,o5)=>{i6.once("error",o5),i6.on("data",g=>r2.push(g)),i6.once("end",()=>n2(r2));})}};Ch2.default=ah2;}),hS=m(Ih=>{Object.defineProperty(Ih,"__esModule",{value:!0});var ls2=yt2(),ch=class{static{s4(this,"Matcher");}constructor(A5,e2,r2){this._patterns=A5,this._settings=e2,this._micromatchOptions=r2,this._storage=[],this._fillStorage();}_fillStorage(){for(let A5 of this._patterns){let e2=this._getPatternSegments(A5),r2=this._splitSegmentsIntoSections(e2);this._storage.push({complete:r2.length<=1,pattern:A5,segments:e2,sections:r2});}}_getPatternSegments(A5){return ls2.pattern.getPatternParts(A5,this._micromatchOptions).map(r2=>ls2.pattern.isDynamicPattern(r2,this._settings)?{dynamic:!0,pattern:r2,patternRe:ls2.pattern.makeRe(r2,this._micromatchOptions)}:{dynamic:!1,pattern:r2})}_splitSegmentsIntoSections(A5){return ls2.array.splitWhen(A5,e2=>e2.dynamic&&ls2.pattern.hasGlobStar(e2.pattern))}};Ih.default=ch;}),lS=m(lh=>{Object.defineProperty(lh,"__esModule",{value:!0});var E22=hS(),hh2=class extends E22.default{static{s4(this,"PartialMatcher");}match(A5){let e2=A5.split("/"),r2=e2.length,i6=this._storage.filter(n2=>!n2.complete||n2.segments.length>r2);for(let n2 of i6){let o5=n2.sections[0];if(!n2.complete&&r2>o5.length||e2.every((C4,I7)=>{let E6=n2.segments[I7];return !!(E6.dynamic&&E6.patternRe.test(C4)||!E6.dynamic&&E6.pattern===C4)}))return !0}return !1}};lh.default=hh2;}),ES2=m(uh=>{Object.defineProperty(uh,"__esModule",{value:!0});var sg=yt2(),u2=lS(),Eh2=class{static{s4(this,"DeepFilter");}constructor(A5,e2){this._settings=A5,this._micromatchOptions=e2;}getFilter(A5,e2,r2){let i6=this._getMatcher(e2),n2=this._getNegativePatternsRe(r2);return o5=>this._filter(A5,o5,i6,n2)}_getMatcher(A5){return new u2.default(A5,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A5){let e2=A5.filter(sg.pattern.isAffectDepthOfReadingPattern);return sg.pattern.convertPatternsToRe(e2,this._micromatchOptions)}_filter(A5,e2,r2,i6){if(this._isSkippedByDeep(A5,e2.path)||this._isSkippedSymbolicLink(e2))return !1;let n2=sg.path.removeLeadingDotSegment(e2.path);return this._isSkippedByPositivePatterns(n2,r2)?!1:this._isSkippedByNegativePatterns(n2,i6)}_isSkippedByDeep(A5,e2){return this._settings.deep===1/0?!1:this._getEntryLevel(A5,e2)>=this._settings.deep}_getEntryLevel(A5,e2){let r2=e2.split("/").length;if(A5==="")return r2;let i6=A5.split("/").length;return r2-i6}_isSkippedSymbolicLink(A5){return !this._settings.followSymbolicLinks&&A5.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A5,e2){return !this._settings.baseNameMatch&&!e2.match(A5)}_isSkippedByNegativePatterns(A5,e2){return !sg.pattern.matchAny(A5,e2)}};uh.default=Eh2;}),uS=m(Qh=>{Object.defineProperty(Qh,"__esModule",{value:!0});var Xt2=yt2(),Bh2=class{static{s4(this,"EntryFilter");}constructor(A5,e2){this._settings=A5,this._micromatchOptions=e2,this.index=new Map;}getFilter(A5,e2){let[r2,i6]=Xt2.pattern.partitionAbsoluteAndRelative(e2),n2={positive:{all:Xt2.pattern.convertPatternsToRe(A5,this._micromatchOptions)},negative:{absolute:Xt2.pattern.convertPatternsToRe(r2,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Xt2.pattern.convertPatternsToRe(i6,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o5=>this._filter(o5,n2)}_filter(A5,e2){let r2=Xt2.path.removeLeadingDotSegment(A5.path);if(this._settings.unique&&this._isDuplicateEntry(r2)||this._onlyFileFilter(A5)||this._onlyDirectoryFilter(A5))return !1;let i6=this._isMatchToPatternsSet(r2,e2,A5.dirent.isDirectory());return this._settings.unique&&i6&&this._createIndexRecord(r2),i6}_isDuplicateEntry(A5){return this.index.has(A5)}_createIndexRecord(A5){this.index.set(A5,void 0);}_onlyFileFilter(A5){return this._settings.onlyFiles&&!A5.dirent.isFile()}_onlyDirectoryFilter(A5){return this._settings.onlyDirectories&&!A5.dirent.isDirectory()}_isMatchToPatternsSet(A5,e2,r2){return !(!this._isMatchToPatterns(A5,e2.positive.all,r2)||this._isMatchToPatterns(A5,e2.negative.relative,r2)||this._isMatchToAbsoluteNegative(A5,e2.negative.absolute,r2))}_isMatchToAbsoluteNegative(A5,e2,r2){if(e2.length===0)return !1;let i6=Xt2.path.makeAbsolute(this._settings.cwd,A5);return this._isMatchToPatterns(i6,e2,r2)}_isMatchToPatterns(A5,e2,r2){if(e2.length===0)return !1;let i6=Xt2.pattern.matchAny(A5,e2);return !i6&&r2?Xt2.pattern.matchAny(A5+"/",e2):i6}};Qh.default=Bh2;}),BS=m(dh=>{Object.defineProperty(dh,"__esModule",{value:!0});var B22=yt2(),fh=class{static{s4(this,"ErrorFilter");}constructor(A5){this._settings=A5;}getFilter(){return A5=>this._isNonFatalError(A5)}_isNonFatalError(A5){return B22.errno.isEnoentCodeError(A5)||this._settings.suppressErrors}};dh.default=fh;}),fS=m(wh=>{Object.defineProperty(wh,"__esModule",{value:!0});var QS=yt2(),ph=class{static{s4(this,"EntryTransformer");}constructor(A5){this._settings=A5;}getTransformer(){return A5=>this._transform(A5)}_transform(A5){let e2=A5.path;return this._settings.absolute&&(e2=QS.path.makeAbsolute(this._settings.cwd,e2),e2=QS.path.unixify(e2)),this._settings.markDirectories&&A5.dirent.isDirectory()&&(e2+="/"),this._settings.objectMode?Object.assign(Object.assign({},A5),{path:e2}):e2}};wh.default=ph;}),ng=m(yh=>{Object.defineProperty(yh,"__esModule",{value:!0});var Q23=v7("path"),f22=ES2(),d2=uS(),p22=BS(),w2=fS(),mh=class{static{s4(this,"Provider");}constructor(A5){this._settings=A5,this.errorFilter=new p22.default(this._settings),this.entryFilter=new d2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f22.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new w2.default(this._settings);}_getRootDirectory(A5){return Q23.resolve(this._settings.cwd,A5.base)}_getReaderOptions(A5){let e2=A5.base==="."?"":A5.base;return {basePath:e2,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e2,A5.positive,A5.negative),entryFilter:this.entryFilter.getFilter(A5.positive,A5.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}}};yh.default=mh;}),dS=m(Sh2=>{Object.defineProperty(Sh2,"__esModule",{value:!0});var m22=IS(),y22=ng(),Dh=class extends y22.default{static{s4(this,"ProviderAsync");}constructor(){super(...arguments),this._reader=new m22.default(this._settings);}async read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5);return (await this.api(e2,A5,r2)).map(n2=>r2.transform(n2))}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Sh2.default=Dh;}),pS=m(Fh=>{Object.defineProperty(Fh,"__esModule",{value:!0});var D22=v7("stream"),S22=gh(),K22=ng(),Kh=class extends K22.default{static{s4(this,"ProviderStream");}constructor(){super(...arguments),this._reader=new S22.default(this._settings);}read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5),i6=this.api(e2,A5,r2),n2=new D22.Readable({objectMode:!0,read:s4(()=>{},"read")});return i6.once("error",o5=>n2.emit("error",o5)).on("data",o5=>n2.emit("data",r2.transform(o5))).once("end",()=>n2.emit("end")),n2.once("close",()=>i6.destroy()),n2}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Fh.default=Kh;}),wS=m(bh2=>{Object.defineProperty(bh2,"__esModule",{value:!0});var F22=Er2(),k22=rg(),b2=ig(),kh=class extends b2.default{static{s4(this,"ReaderSync");}constructor(){super(...arguments),this._walkSync=k22.walkSync,this._statSync=F22.statSync;}dynamic(A5,e2){return this._walkSync(A5,e2)}static(A5,e2){let r2=[];for(let i6 of A5){let n2=this._getFullEntryPath(i6),o5=this._getEntry(n2,i6,e2);o5===null||!e2.entryFilter(o5)||r2.push(o5);}return r2}_getEntry(A5,e2,r2){try{let i6=this._getStat(A5);return this._makeEntry(i6,e2)}catch(i6){if(r2.errorFilter(i6))return null;throw i6}}_getStat(A5){return this._statSync(A5,this._fsStatSettings)}};bh2.default=kh;}),mS=m(Mh=>{Object.defineProperty(Mh,"__esModule",{value:!0});var N22=wS(),M22=ng(),Nh2=class extends M22.default{static{s4(this,"ProviderSync");}constructor(){super(...arguments),this._reader=new N22.default(this._settings);}read(A5){let e2=this._getRootDirectory(A5),r2=this._getReaderOptions(A5);return this.api(e2,A5,r2).map(r2.transform)}api(A5,e2,r2){return e2.dynamic?this._reader.dynamic(A5,r2):this._reader.static(e2.patterns,r2)}};Mh.default=Nh2;}),yS=m(ei3=>{Object.defineProperty(ei3,"__esModule",{value:!0}),ei3.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ai2=v7("fs"),R22=v7("os"),v22=Math.max(R22.cpus().length,1);ei3.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ai2.lstat,lstatSync:Ai2.lstatSync,stat:Ai2.stat,statSync:Ai2.statSync,readdir:Ai2.readdir,readdirSync:Ai2.readdirSync};var Rh2=class{static{s4(this,"Settings");}constructor(A5={}){this._options=A5,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(A5,e2){return A5===void 0?e2:A5}_getFileSystemMethods(A5={}){return Object.assign(Object.assign({},ei3.DEFAULT_FILE_SYSTEM_ADAPTER),A5)}};ei3.default=Rh2;}),Yh2=m((R7,SS)=>{var DS2=SD2(),L22=dS(),x22=pS(),Y22=mS(),vh=yS(),De3=yt2();async function Lh3(t15,A5){Je2(t15);let e2=xh(t15,L22.default,A5),r2=await Promise.all(e2);return De3.array.flatten(r2)}s4(Lh3,"FastGlob"),function(t15){t15.glob=t15,t15.globSync=A5,t15.globStream=e2,t15.async=t15;function A5(I7,E6){Je2(I7);let Q7=xh(I7,Y22.default,E6);return De3.array.flatten(Q7)}s4(A5,"sync"),t15.sync=A5;function e2(I7,E6){Je2(I7);let Q7=xh(I7,x22.default,E6);return De3.stream.merge(Q7)}s4(e2,"stream"),t15.stream=e2;function r2(I7,E6){Je2(I7);let Q7=[].concat(I7),B6=new vh.default(E6);return DS2.generate(Q7,B6)}s4(r2,"generateTasks"),t15.generateTasks=r2;function i6(I7,E6){Je2(I7);let Q7=new vh.default(E6);return De3.pattern.isDynamicPattern(I7,Q7)}s4(i6,"isDynamicPattern"),t15.isDynamicPattern=i6;function n2(I7){return Je2(I7),De3.path.escape(I7)}s4(n2,"escapePath"),t15.escapePath=n2;function o5(I7){return Je2(I7),De3.path.convertPathToPattern(I7)}s4(o5,"convertPathToPattern"),t15.convertPathToPattern=o5;(function(I7){function E6(B6){return Je2(B6),De3.path.escapePosixPath(B6)}s4(E6,"escapePath"),I7.escapePath=E6;function Q7(B6){return Je2(B6),De3.path.convertPosixPathToPattern(B6)}s4(Q7,"convertPathToPattern"),I7.convertPathToPattern=Q7;})(t15.posix||(t15.posix={}));(function(I7){function E6(B6){return Je2(B6),De3.path.escapeWindowsPath(B6)}s4(E6,"escapePath"),I7.escapePath=E6;function Q7(B6){return Je2(B6),De3.path.convertWindowsPathToPattern(B6)}s4(Q7,"convertPathToPattern"),I7.convertPathToPattern=Q7;})(t15.win32||(t15.win32={}));}(Lh3||(Lh3={}));function xh(t15,A5,e2){let r2=[].concat(t15),i6=new vh.default(e2),n2=DS2.generate(r2,i6),o5=new A5(i6);return n2.map(o5.read,o5)}s4(xh,"getWorks");function Je2(t15){if(![].concat(t15).every(r2=>De3.string.isString(r2)&&!De3.string.isEmpty(r2)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}s4(Je2,"assertPatternsInput"),SS.exports=Lh3;});async function Ph(t15,A5,e2){if(typeof e2!="string")throw new TypeError(`Expected a string, got ${typeof e2}`);try{return (await fs4__default[t15](e2))[A5]()}catch(r2){if(r2.code==="ENOENT")return !1;throw r2}}function Uh2(t15,A5,e2){if(typeof e2!="string")throw new TypeError(`Expected a string, got ${typeof e2}`);try{return en2__default[t15](e2)[A5]()}catch(r2){if(r2.code==="ENOENT")return !1;throw r2}}var KS,FS,kS2=ue2(()=>{s4(Ph,"isType"),s4(Uh2,"isTypeSync"),Ph.bind(void 0,"stat","isFile"),KS=Ph.bind(void 0,"stat","isDirectory"),Ph.bind(void 0,"lstat","isSymbolicLink"),Uh2.bind(void 0,"statSync","isFile"),FS=Uh2.bind(void 0,"statSync","isDirectory"),Uh2.bind(void 0,"lstatSync","isSymbolicLink");}),bS=ue2(()=>{});function Es(t15){return t15 instanceof URL?fileURLToPath(t15):t15}var _h2=ue2(()=>{bS(),promisify$1(execFile),s4(Es,"toPath");}),PS=m((tAA,qh2)=>{function RS2(t15){return Array.isArray(t15)?t15:[t15]}s4(RS2,"makeArray");var O22=void 0,Jh2="",NS2=" ",Gh="\\",T22=/^\s+$/,H23=/(?:[^\\]|^)\\$/,j23=/^\\!/,q22=/^\\#/,z22=/\r?\n/g,W22=/^\.{0,2}\/|^\.{1,2}$/,V23=/\/$/,ti3="/",vS="node-ignore";typeof Symbol<"u"&&(vS=Symbol.for("node-ignore"));var LS=vS,us=s4((t15,A5,e2)=>(Object.defineProperty(t15,A5,{value:e2}),e2),"define"),X22=/([0-z])-([0-z])/g,xS=s4(()=>!1,"RETURN_FALSE"),Z22=s4(t15=>t15.replace(X22,(A5,e2,r2)=>e2.charCodeAt(0)<=r2.charCodeAt(0)?A5:Jh2),"sanitizeRange"),$22=s4(t15=>{let{length:A5}=t15;return t15.slice(0,A5-A5%2)},"cleanRangeBackSlash"),AO=[[/^\uFEFF/,()=>Jh2],[/((?:\\\\)*?)(\\?\s+)$/,(t15,A5,e2)=>A5+(e2.indexOf("\\")===0?NS2:Jh2)],[/(\\+?)\s/g,(t15,A5)=>{let{length:e2}=A5;return A5.slice(0,e2-e2%2)+NS2}],[/[\\$.|*+(){^]/g,t15=>`\\${t15}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,s4(function(){return /\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t15,A5,e2)=>A5+6<e2.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t15,A5,e2)=>{let r2=e2.replace(/\\\*/g,"[^\\/]*");return A5+r2}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Gh],[/\\\\/g,()=>Gh],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t15,A5,e2,r2,i6)=>A5===Gh?`\\[${e2}${$22(r2)}${i6}`:i6==="]"&&r2.length%2===0?`[${Z22(e2)}${r2}]`:"[]"],[/(?:[^*])$/,t15=>/\/$/.test(t15)?`${t15}$`:`${t15}(?=$|\\/$)`]],eO=/(^|\\\/)?\\\*$/,Bs2="regex",og="checkRegex",MS="_",tO2={[Bs2](t15,A5){return `${A5?`${A5}[^/]+`:"[^/]*"}(?=$|\\/$)`},[og](t15,A5){return `${A5?`${A5}[^/]*`:"[^/]*"}(?=$|\\/$)`}},rO=s4(t15=>AO.reduce((A5,[e2,r2])=>A5.replace(e2,r2.bind(t15)),t15),"makeRegexPrefix"),gg2=s4(t15=>typeof t15=="string","isString"),iO2=s4(t15=>t15&&gg2(t15)&&!T22.test(t15)&&!H23.test(t15)&&t15.indexOf("#")!==0,"checkPattern"),sO=s4(t15=>t15.split(z22).filter(Boolean),"splitPattern"),Oh=class{static{s4(this,"IgnoreRule");}constructor(A5,e2,r2,i6,n2,o5){this.pattern=A5,this.mark=e2,this.negative=n2,us(this,"body",r2),us(this,"ignoreCase",i6),us(this,"regexPrefix",o5);}get regex(){let A5=MS+Bs2;return this[A5]?this[A5]:this._make(Bs2,A5)}get checkRegex(){let A5=MS+og;return this[A5]?this[A5]:this._make(og,A5)}_make(A5,e2){let r2=this.regexPrefix.replace(eO,tO2[A5]),i6=this.ignoreCase?new RegExp(r2,"i"):new RegExp(r2);return us(this,e2,i6)}},nO2=s4(({pattern:t15,mark:A5},e2)=>{let r2=!1,i6=t15;i6.indexOf("!")===0&&(r2=!0,i6=i6.substr(1)),i6=i6.replace(j23,"!").replace(q22,"#");let n2=rO(i6);return new Oh(t15,A5,i6,e2,r2,n2)},"createRule"),Th=class{static{s4(this,"RuleManager");}constructor(A5){this._ignoreCase=A5,this._rules=[];}_add(A5){if(A5&&A5[LS]){this._rules=this._rules.concat(A5._rules._rules),this._added=!0;return}if(gg2(A5)&&(A5={pattern:A5}),iO2(A5.pattern)){let e2=nO2(A5,this._ignoreCase);this._added=!0,this._rules.push(e2);}}add(A5){return this._added=!1,RS2(gg2(A5)?sO(A5):A5).forEach(this._add,this),this._added}test(A5,e2,r2){let i6=!1,n2=!1,o5;this._rules.forEach(C4=>{let{negative:I7}=C4;n2===I7&&i6!==n2||I7&&!i6&&!n2&&!e2||!C4[r2].test(A5)||(i6=!I7,n2=I7,o5=I7?O22:C4);});let g={ignored:i6,unignored:n2};return o5&&(g.rule=o5),g}},oO=s4((t15,A5)=>{throw new A5(t15)},"throwError"),Dt2=s4((t15,A5,e2)=>gg2(t15)?t15?Dt2.isNotRelative(t15)?e2(`path should be a \`path.relative()\`d string, but got "${A5}"`,RangeError):!0:e2("path must not be empty",TypeError):e2(`path must be a string, but got \`${A5}\``,TypeError),"checkPath"),YS=s4(t15=>W22.test(t15),"isNotRelative");Dt2.isNotRelative=YS,Dt2.convert=t15=>t15;var Hh3=class{static{s4(this,"Ignore");}constructor({ignorecase:A5=!0,ignoreCase:e2=A5,allowRelativePaths:r2=!1}={}){us(this,LS,!0),this._rules=new Th(e2),this._strictPathCheck=!r2,this._initCache();}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null);}add(A5){return this._rules.add(A5)&&this._initCache(),this}addPattern(A5){return this.add(A5)}_test(A5,e2,r2,i6){let n2=A5&&Dt2.convert(A5);return Dt2(n2,A5,this._strictPathCheck?oO:xS),this._t(n2,e2,r2,i6)}checkIgnore(A5){if(!V23.test(A5))return this.test(A5);let e2=A5.split(ti3).filter(Boolean);if(e2.pop(),e2.length){let r2=this._t(e2.join(ti3)+ti3,this._testCache,!0,e2);if(r2.ignored)return r2}return this._rules.test(A5,!1,og)}_t(A5,e2,r2,i6){if(A5 in e2)return e2[A5];if(i6||(i6=A5.split(ti3).filter(Boolean)),i6.pop(),!i6.length)return e2[A5]=this._rules.test(A5,r2,Bs2);let n2=this._t(i6.join(ti3)+ti3,e2,r2,i6);return e2[A5]=n2.ignored?n2:this._rules.test(A5,r2,Bs2)}ignores(A5){return this._test(A5,this._ignoreCache,!1).ignored}createFilter(){return A5=>!this.ignores(A5)}filter(A5){return RS2(A5).filter(this.createFilter())}test(A5){return this._test(A5,this._testCache,!0)}},jh=s4(t15=>new Hh3(t15),"factory"),gO2=s4(t15=>Dt2(t15&&Dt2.convert(t15),t15,xS),"isPathValid");if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t15=s4(e2=>/^\\\\\?\\/.test(e2)||/["<>|\u0000-\u001F]+/u.test(e2)?e2:e2.replace(/\\/g,"/"),"makePosix");Dt2.convert=t15;let A5=/^[a-z]:\//i;Dt2.isNotRelative=e2=>A5.test(e2)||YS(e2);}qh2.exports=jh,jh.default=jh,qh2.exports.isPathValid=gO2;}),Qs2,zh=ue2(()=>{Qs2=s4(t15=>t15[0]==="!","isNegativePattern");}),Wh2,US2,IO,_S,ag,hO2,lO,EO2,GS,JS,fs2,ds,OS,TS2,Vh=ue2(()=>{Wh2=cA(Yh2(),1),US2=cA(PS(),1),Mr(),_h2(),zh(),IO=["**/node_modules","**/flow-typed","**/coverage","**/.git"],_S={absolute:!0,dot:!0},ag="**/.gitignore",hO2=s4((t15,A5)=>Qs2(t15)?"!"+je3.posix.join(A5,t15.slice(1)):je3.posix.join(A5,t15),"applyBaseToPattern"),lO=s4((t15,A5)=>{let e2=Ae2(je3.relative(A5,je3.dirname(t15.filePath)));return t15.content.split(/\r?\n/).filter(r2=>r2&&!r2.startsWith("#")).map(r2=>hO2(r2,e2))},"parseIgnoreFile"),EO2=s4((t15,A5)=>{if(A5=Ae2(A5),je3.isAbsolute(t15)){if(Ae2(t15).startsWith(A5))return je3.relative(A5,t15);throw new Error(`Path ${t15} is not in cwd ${A5}`)}return t15},"toRelativePath"),GS=s4((t15,A5)=>{let e2=t15.flatMap(i6=>lO(i6,A5)),r2=(0, US2.default)().add(e2);return i6=>(i6=Es(i6),i6=EO2(i6,A5),i6?r2.ignores(Ae2(i6)):!1)},"getIsIgnoredPredicate"),JS=s4((t15={})=>({cwd:Es(t15.cwd)??Q.cwd(),suppressErrors:!!t15.suppressErrors,deep:typeof t15.deep=="number"?t15.deep:Number.POSITIVE_INFINITY,ignore:[...t15.ignore??[],...IO]}),"normalizeOptions"),fs2=s4(async(t15,A5)=>{let{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2}=JS(A5),o5=await(0, Wh2.default)(t15,{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2,..._S}),g=await Promise.all(o5.map(async C4=>({filePath:C4,content:await fs4__default.readFile(C4,"utf8")})));return GS(g,e2)},"isIgnoredByIgnoreFiles"),ds=s4((t15,A5)=>{let{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2}=JS(A5),g=Wh2.default.sync(t15,{cwd:e2,suppressErrors:r2,deep:i6,ignore:n2,..._S}).map(C4=>({filePath:C4,content:en2__default.readFileSync(C4,"utf8")}));return GS(g,e2)},"isIgnoredByIgnoreFilesSync"),OS=s4(t15=>fs2(ag,t15),"isGitIgnored"),TS2=s4(t15=>ds(ag,t15),"isGitIgnoredSync");}),sK={};Ss(sK,{convertPathToPattern:()=>SO,generateGlobTasks:()=>yO2,generateGlobTasksSync:()=>DO,globby:()=>dO,globbyStream:()=>wO,globbySync:()=>pO2,isDynamicPattern:()=>mO2,isGitIgnored:()=>OS,isGitIgnoredSync:()=>TS2,isIgnoredByIgnoreFiles:()=>fs2,isIgnoredByIgnoreFilesSync:()=>ds});var si2,BO,zS,WS,HS,jS2,Xh2,QO,VS,XS,Cg,ZS,fO2,$S,AK,eK,tK,rK,iK,Zh2,dO,pO2,wO,mO2,yO2,DO,SO,nK=ue2(()=>{ry(),si2=cA(Yh2(),1),kS2(),_h2(),Vh(),zh(),Vh(),BO=s4(t15=>{if(t15.some(A5=>typeof A5!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),zS=s4((t15,A5)=>{let e2=Qs2(t15)?t15.slice(1):t15;return je3.isAbsolute(e2)?e2:je3.join(A5,e2)},"normalizePathForDirectoryGlob"),WS=s4(({directoryPath:t15,files:A5,extensions:e2})=>{let r2=e2?.length>0?`.${e2.length>1?`{${e2.join(",")}}`:e2[0]}`:"";return A5?A5.map(i6=>je3.posix.join(t15,`**/${je3.extname(i6)?i6:`${i6}${r2}`}`)):[je3.posix.join(t15,`**${r2?`/*${r2}`:""}`)]},"getDirectoryGlob"),HS=s4(async(t15,{cwd:A5=Q.cwd(),files:e2,extensions:r2}={})=>(await Promise.all(t15.map(async n2=>await KS(zS(n2,A5))?WS({directoryPath:n2,files:e2,extensions:r2}):n2))).flat(),"directoryToGlob"),jS2=s4((t15,{cwd:A5=Q.cwd(),files:e2,extensions:r2}={})=>t15.flatMap(i6=>FS(zS(i6,A5))?WS({directoryPath:i6,files:e2,extensions:r2}):i6),"directoryToGlobSync"),Xh2=s4(t15=>(t15=[...new Set([t15].flat())],BO(t15),t15),"toPatternsArray"),QO=s4(t15=>{if(!t15)return;let A5;try{A5=en2__default.statSync(t15);}catch{return}if(!A5.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),VS=s4((t15={})=>(t15={...t15,ignore:t15.ignore??[],expandDirectories:t15.expandDirectories??!0,cwd:Es(t15.cwd)},QO(t15.cwd),t15),"normalizeOptions"),XS=s4(t15=>async(A5,e2)=>t15(Xh2(A5),VS(e2)),"normalizeArguments"),Cg=s4(t15=>(A5,e2)=>t15(Xh2(A5),VS(e2)),"normalizeArgumentsSync"),ZS=s4(t15=>{let{ignoreFiles:A5,gitignore:e2}=t15,r2=A5?Xh2(A5):[];return e2&&r2.push(ag),r2},"getIgnoreFilesPatterns"),fO2=s4(async t15=>{let A5=ZS(t15);return AK(A5.length>0&&await fs2(A5,t15))},"getFilter"),$S=s4(t15=>{let A5=ZS(t15);return AK(A5.length>0&&ds(A5,t15))},"getFilterSync"),AK=s4(t15=>{let A5=new Set;return e2=>{let r2=je3.normalize(e2.path??e2);return A5.has(r2)||t15&&t15(r2)?!1:(A5.add(r2),!0)}},"createFilterFunction"),eK=s4((t15,A5)=>t15.flat().filter(e2=>A5(e2)),"unionFastGlobResults"),tK=s4((t15,A5)=>{let e2=[];for(;t15.length>0;){let r2=t15.findIndex(n2=>Qs2(n2));if(r2===-1){e2.push({patterns:t15,options:A5});break}let i6=t15[r2].slice(1);for(let n2 of e2)n2.options.ignore.push(i6);r2!==0&&e2.push({patterns:t15.slice(0,r2),options:{...A5,ignore:[...A5.ignore,i6]}}),t15=t15.slice(r2+1);}return e2},"convertNegativePatterns"),rK=s4((t15,A5)=>({...A5?{cwd:A5}:{},...Array.isArray(t15)?{files:t15}:t15}),"normalizeExpandDirectoriesOption"),iK=s4(async(t15,A5)=>{let e2=tK(t15,A5),{cwd:r2,expandDirectories:i6}=A5;if(!i6)return e2;let n2=rK(i6,r2);return Promise.all(e2.map(async o5=>{let{patterns:g,options:C4}=o5;return [g,C4.ignore]=await Promise.all([HS(g,n2),HS(C4.ignore,{cwd:r2})]),{patterns:g,options:C4}}))},"generateTasks"),Zh2=s4((t15,A5)=>{let e2=tK(t15,A5),{cwd:r2,expandDirectories:i6}=A5;if(!i6)return e2;let n2=rK(i6,r2);return e2.map(o5=>{let{patterns:g,options:C4}=o5;return g=jS2(g,n2),C4.ignore=jS2(C4.ignore,{cwd:r2}),{patterns:g,options:C4}})},"generateTasksSync"),dO=XS(async(t15,A5)=>{let[e2,r2]=await Promise.all([iK(t15,A5),fO2(A5)]),i6=await Promise.all(e2.map(n2=>(0, si2.default)(n2.patterns,n2.options)));return eK(i6,r2)}),pO2=Cg((t15,A5)=>{let e2=Zh2(t15,A5),r2=$S(A5),i6=e2.map(n2=>si2.default.sync(n2.patterns,n2.options));return eK(i6,r2)}),wO=Cg((t15,A5)=>{let e2=Zh2(t15,A5),r2=$S(A5),i6=e2.map(o5=>si2.default.stream(o5.patterns,o5.options));return aI(i6).filter(o5=>r2(o5))}),mO2=Cg((t15,A5)=>t15.some(e2=>si2.default.isDynamicPattern(e2,A5))),yO2=XS(iK),DO=Cg(Zh2),{convertPathToPattern:SO}=si2.default;}),aK={};Ss(aK,{default:()=>$h2,limitFunction:()=>KO});function $h2(t15){gK(t15);let A5=new tr2,e2=0,r2=s4(()=>{e2<t15&&A5.size>0&&(A5.dequeue()(),e2++);},"resumeNext"),i6=s4(()=>{e2--,r2();},"next"),n2=s4(async(C4,I7,E6)=>{let Q7=(async()=>C4(...E6))();I7(Q7);try{await Q7;}catch{}i6();},"run"),o5=s4((C4,I7,E6)=>{new Promise(Q7=>{A5.enqueue(Q7);}).then(n2.bind(void 0,C4,I7,E6)),(async()=>(await Promise.resolve(),e2<t15&&r2()))();},"enqueue"),g=s4((C4,...I7)=>new Promise(E6=>{o5(C4,E6,I7);}),"generator");return Object.defineProperties(g,{activeCount:{get:s4(()=>e2,"get")},pendingCount:{get:s4(()=>A5.size,"get")},clearQueue:{value(){A5.clear();}},concurrency:{get:s4(()=>t15,"get"),set(C4){gK(C4),t15=C4,queueMicrotask(()=>{for(;e2<t15&&A5.size>0;)r2();});}}}),g}function KO(t15,A5){let{concurrency:e2}=A5,r2=$h2(e2);return (...i6)=>r2(()=>t15(...i6))}function gK(t15){if(!((Number.isInteger(t15)||t15===Number.POSITIVE_INFINITY)&&t15>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var nt3={"@storybook/addon-a11y":"9.0.16","@storybook/addon-docs":"9.0.16","@storybook/addon-jest":"9.0.16","@storybook/addon-links":"9.0.16","@storybook/addon-onboarding":"9.0.16","storybook-addon-pseudo-states":"9.0.16","@storybook/addon-themes":"9.0.16","@storybook/addon-vitest":"9.0.16","@storybook/builder-vite":"9.0.16","@storybook/builder-webpack5":"9.0.16",storybook:"9.0.16","@storybook/angular":"9.0.16","@storybook/ember":"9.0.16","@storybook/html-vite":"9.0.16","@storybook/nextjs":"9.0.16","@storybook/nextjs-vite":"9.0.16","@storybook/preact-vite":"9.0.16","@storybook/react-native-web-vite":"9.0.16","@storybook/react-vite":"9.0.16","@storybook/react-webpack5":"9.0.16","@storybook/server-webpack5":"9.0.16","@storybook/svelte-vite":"9.0.16","@storybook/sveltekit":"9.0.16","@storybook/vue3-vite":"9.0.16","@storybook/web-components-vite":"9.0.16",sb:"9.0.16","@storybook/cli":"9.0.16","@storybook/codemod":"9.0.16","@storybook/core-webpack":"9.0.16","create-storybook":"9.0.16","@storybook/csf-plugin":"9.0.16","eslint-plugin-storybook":"9.0.16","@storybook/react-dom-shim":"9.0.16","@storybook/preset-create-react-app":"9.0.16","@storybook/preset-react-webpack":"9.0.16","@storybook/preset-server-webpack":"9.0.16","@storybook/html":"9.0.16","@storybook/preact":"9.0.16","@storybook/react":"9.0.16","@storybook/server":"9.0.16","@storybook/svelte":"9.0.16","@storybook/vue3":"9.0.16","@storybook/web-components":"9.0.16"},KE2=cA(ot3(),1),fg=new Set([".js",".jsx",".ts",".tsx",".cts",".mts",".cjs",".mjs"]);function iF(){return [...Array.from(fg)]}s4(iF,"sortExtensions");var ul2=iF();function pr(t15){return ul2.map(A5=>t15.endsWith(A5)?t15:`${t15}${A5}`).find(A5=>existsSync(A5))}s4(pr,"getInterpretedFile");function Bl(t15){return ul2.map(A5=>({path:t15.endsWith(A5)?t15:`${t15}${A5}`,ext:A5})).find(A5=>existsSync(A5.path))}s4(Bl,"getInterpretedFileWithExt");var Ql=!1;function dg2(t15){let A5=!!v7("module")._extensions[".ts"];if(Ql===!1&&!A5){let{register:i6}=v7("esbuild-register/dist/node");Ql=!0,i6({target:`node${process.version.slice(1)}`,format:"cjs",hookIgnoreNodeModules:!0,keepNames:!0,tsconfigRaw:`{
|
1604
1604
|
"compilerOptions": {
|
1605
1605
|
"strict": false,
|
1606
1606
|
"skipLibCheck": true,
|
@@ -1674,7 +1674,7 @@ More info: ${page}
|
|
1674
1674
|
${fromBody}`,toStringDescriptor=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),toStringName=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),changeToString=(to2,from,name)=>{let withName=name===""?"":`with ${name.trim()}() `,newToString=wrappedToString.bind(null,withName,from.toString());Object.defineProperty(newToString,"name",toStringName),Object.defineProperty(to2,"toString",{...toStringDescriptor,value:newToString});};function mimicFunction(to2,from,{ignoreNonConfigurable=!1}={}){let{name}=to2;for(let property of Reflect.ownKeys(from))copyProperty(to2,from,property,ignoreNonConfigurable);return changePrototype(to2,from),changeToString(to2,from,name),to2}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}
|
1675
1675
|
${error2.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
|
1676
1676
|
`);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(ev2,fn3){this.listeners[ev2].push(fn3);}removeListener(ev2,fn3){let list=this.listeners[ev2],i6=list.indexOf(fn3);i6!==-1&&(i6===0&&list.length===1?list.length=0:list.splice(i6,1));}emit(ev2,code,signal){if(this.emitted[ev2])return !1;this.emitted[ev2]=!0;let ret=!1;for(let fn3 of this.listeners[ev2])ret=fn3(code,signal)===!0||ret;return ev2==="exit"&&(ret=this.emit("afterExit",code,signal)||ret),ret}},SignalExitBase=class{},signalExitWrap=handler=>({onExit(cb2,opts){return handler.onExit(cb2,opts)},load(){return handler.load()},unload(){return handler.unload()}}),SignalExitFallback=class extends SignalExitBase{onExit(){return ()=>{}}load(){}unload(){}},SignalExit=class extends SignalExitBase{#hupSig=process5.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,p4=process12;if(typeof p4.__signal_exit_emitter__=="object"&&typeof p4.__signal_exit_emitter__.count=="number"&&(count+=p4.__signal_exit_emitter__.count),listeners.length===count){this.unload();let ret=this.#emitter.emit("exit",null,sig),s5=sig==="SIGHUP"?this.#hupSig:sig;ret||process12.kill(process12.pid,s5);}};this.#originalProcessReallyExit=process12.reallyExit,this.#originalProcessEmit=process12.emit;}onExit(cb2,opts){if(!processOk(this.#process))return ()=>{};this.#loaded===!1&&this.load();let ev2=opts?.alwaysLast?"afterExit":"exit";return this.#emitter.on(ev2,cb2),()=>{this.#emitter.removeListener(ev2,cb2),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 fn3=this.#sigListeners[sig];fn3&&this.#process.on(sig,fn3);}catch{}this.#process.emit=(ev2,...a5)=>this.#processEmit(ev2,...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(ev2,...args){let og=this.#originalProcessEmit;if(ev2==="exit"&&processOk(this.#process)){typeof args[0]=="number"&&(this.#process.exitCode=args[0]);let ret=og.call(this.#process,ev2,...args);return this.#emitter.emit("exit",this.#process.exitCode,null),ret}else return og.call(this.#process,ev2,...args)}},process5=globalThis.process,{onExit,load,unload}=signalExitWrap(processOk(process5)?new SignalExit(process5):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),t15=setTimeout(()=>{kill("SIGKILL");},timeout);t15.unref&&t15.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}
|
1677
|
-
`);};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"&&je3.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.0.15","@storybook/addon-docs":"9.0.15","@storybook/addon-jest":"9.0.15","@storybook/addon-links":"9.0.15","@storybook/addon-onboarding":"9.0.15","storybook-addon-pseudo-states":"9.0.15","@storybook/addon-themes":"9.0.15","@storybook/addon-vitest":"9.0.15","@storybook/builder-vite":"9.0.15","@storybook/builder-webpack5":"9.0.15",storybook:"9.0.15","@storybook/angular":"9.0.15","@storybook/ember":"9.0.15","@storybook/html-vite":"9.0.15","@storybook/nextjs":"9.0.15","@storybook/nextjs-vite":"9.0.15","@storybook/preact-vite":"9.0.15","@storybook/react-native-web-vite":"9.0.15","@storybook/react-vite":"9.0.15","@storybook/react-webpack5":"9.0.15","@storybook/server-webpack5":"9.0.15","@storybook/svelte-vite":"9.0.15","@storybook/sveltekit":"9.0.15","@storybook/vue3-vite":"9.0.15","@storybook/web-components-vite":"9.0.15",sb:"9.0.15","@storybook/cli":"9.0.15","@storybook/codemod":"9.0.15","@storybook/core-webpack":"9.0.15","create-storybook":"9.0.15","@storybook/csf-plugin":"9.0.15","eslint-plugin-storybook":"9.0.15","@storybook/react-dom-shim":"9.0.15","@storybook/preset-create-react-app":"9.0.15","@storybook/preset-react-webpack":"9.0.15","@storybook/preset-server-webpack":"9.0.15","@storybook/html":"9.0.15","@storybook/preact":"9.0.15","@storybook/react":"9.0.15","@storybook/server":"9.0.15","@storybook/svelte":"9.0.15","@storybook/vue3":"9.0.15","@storybook/web-components":"9.0.15"};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=s5=>s5.replace(/[[\]\\-]/g,"\\$&"),regexpEscape2=s5=>s5.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=[],i6=pos+1,sawStart=!1,uflag=!1,escaping=!1,negate=!1,endPos=pos,rangeStart="";WHILE:for(;i6<glob2.length;){let c5=glob2.charAt(i6);if((c5==="!"||c5==="^")&&i6===pos+1){negate=!0,i6++;continue}if(c5==="]"&&sawStart&&!escaping){endPos=i6+1;break}if(sawStart=!0,c5==="\\"&&!escaping){escaping=!0,i6++;continue}if(c5==="["&&!escaping){for(let[cls,[unip,u2,neg]]of Object.entries(posixClasses))if(glob2.startsWith(cls,i6)){if(rangeStart)return ["$.",!1,glob2.length-pos,!0];i6+=cls.length,neg?negs.push(unip):ranges.push(unip),uflag=uflag||u2;continue WHILE}}if(escaping=!1,rangeStart){c5>rangeStart?ranges.push(braceEscape(rangeStart)+"-"+braceEscape(c5)):c5===rangeStart&&ranges.push(braceEscape(c5)),rangeStart="",i6++;continue}if(glob2.startsWith("-]",i6+1)){ranges.push(braceEscape(c5+"-")),i6+=2;continue}if(glob2.startsWith("-",i6+1)){rangeStart=c5,i6+=2;continue}ranges.push(braceEscape(c5)),i6++;}if(endPos<i6)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 r2=ranges[0].length===2?ranges[0].slice(-1):ranges[0];return [regexpEscape2(r2),!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=(s5,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s5.replace(/\[([^\/\\])\]/g,"$1"):s5.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var types=new Set(["!","?","+","*","@"]),isExtglobType=c5=>types.has(c5),startNoTraversal="(?!(?:^|/)\\.\\.?(?:$|/))",startNoDot="(?!\\.)",addPatternStart=new Set(["[","."]),justDots=new Set(["..","."]),reSpecials=new Set("().*{}+?[]^$\\!"),regExpEscape=s5=>s5.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 p4 of this.#parts)if(typeof p4!="string"&&(p4.type||p4.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(p4=>String(p4)).join("|")+")":this.#toString=this.#parts.map(p4=>String(p4)).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 n2;for(;n2=this.#negs.pop();){if(n2.type!=="!")continue;let p4=n2,pp4=p4.#parent;for(;pp4;){for(let i6=p4.#parentIndex+1;!pp4.type&&i6<pp4.#parts.length;i6++)for(let part of n2.#parts){if(typeof part=="string")throw new Error("string part in extglob AST??");part.copyIn(pp4.#parts[i6]);}p4=pp4,pp4=p4.#parent;}}return this}push(...parts){for(let p4 of parts)if(p4!==""){if(typeof p4!="string"&&!(p4 instanceof _AST&&p4.#parent===this))throw new Error("invalid part: "+p4);this.#parts.push(p4);}}toJSON(){let ret=this.type===null?this.#parts.slice().map(p4=>typeof p4=="string"?p4:p4.toJSON()):[this.type,...this.#parts.map(p4=>p4.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 p4=this.#parent;for(let i6=0;i6<this.#parentIndex;i6++){let pp4=p4.#parts[i6];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 c5=new _AST(this.type,parent);for(let p4 of this.#parts)c5.copyIn(p4);return c5}static#parseAST(str,ast,pos,opt){let escaping=!1,inBrace=!1,braceStart=-1,braceNeg=!1;if(ast.type===null){let i7=pos,acc2="";for(;i7<str.length;){let c5=str.charAt(i7++);if(escaping||c5==="\\"){escaping=!escaping,acc2+=c5;continue}if(inBrace){i7===braceStart+1?(c5==="^"||c5==="!")&&(braceNeg=!0):c5==="]"&&!(i7===braceStart+2&&braceNeg)&&(inBrace=!1),acc2+=c5;continue}else if(c5==="["){inBrace=!0,braceStart=i7,braceNeg=!1,acc2+=c5;continue}if(!opt.noext&&isExtglobType(c5)&&str.charAt(i7)==="("){ast.push(acc2),acc2="";let ext2=new _AST(c5,ast);i7=_AST.#parseAST(str,ext2,i7,opt),ast.push(ext2);continue}acc2+=c5;}return ast.push(acc2),i7}let i6=pos+1,part=new _AST(null,ast),parts=[],acc="";for(;i6<str.length;){let c5=str.charAt(i6++);if(escaping||c5==="\\"){escaping=!escaping,acc+=c5;continue}if(inBrace){i6===braceStart+1?(c5==="^"||c5==="!")&&(braceNeg=!0):c5==="]"&&!(i6===braceStart+2&&braceNeg)&&(inBrace=!1),acc+=c5;continue}else if(c5==="["){inBrace=!0,braceStart=i6,braceNeg=!1,acc+=c5;continue}if(isExtglobType(c5)&&str.charAt(i6)==="("){part.push(acc),acc="";let ext2=new _AST(c5,part);part.push(ext2),i6=_AST.#parseAST(str,ext2,i6,opt);continue}if(c5==="|"){part.push(acc),acc="",parts.push(part),part=new _AST(null,ast);continue}if(c5===")")return acc===""&&ast.#parts.length===0&&(ast.#emptyExt=!0),part.push(acc),acc="",ast.push(...parts,part),i6;acc+=c5;}return ast.type=null,ast.#hasMagic=void 0,ast.#parts=[str.substring(pos-1)],i6}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(),[re5,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(`^${re5}$`,flags),{_src:re5,_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(p4=>{let[re5,_6,hasMagic2,uflag]=typeof p4=="string"?_AST.#parseGlob(p4,this.#hasMagic,noEmpty):p4.toRegExpSource(allowDot);return this.#hasMagic=this.#hasMagic||hasMagic2,this.#uflag=this.#uflag||uflag,re5}).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 s5=this.toString();return this.#parts=[s5],this.type=null,this.#hasMagic=void 0,[s5,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(p4=>{if(typeof p4=="string")throw new Error("string type in extglob ast??");let[re5,_6,_hasMagic,uflag]=p4.toRegExpSource(dot);return this.#uflag=this.#uflag||uflag,re5}).filter(p4=>!(this.isStart()&&this.isEnd())||!!p4).join("|")}static#parseGlob(glob2,hasMagic2,noEmpty=!1){let escaping=!1,re5="",uflag=!1;for(let i6=0;i6<glob2.length;i6++){let c5=glob2.charAt(i6);if(escaping){escaping=!1,re5+=(reSpecials.has(c5)?"\\":"")+c5;continue}if(c5==="\\"){i6===glob2.length-1?re5+="\\\\":escaping=!0;continue}if(c5==="["){let[src,needUflag,consumed,magic]=parseClass(glob2,i6);if(consumed){re5+=src,uflag=uflag||needUflag,i6+=consumed-1,hasMagic2=hasMagic2||magic;continue}}if(c5==="*"){noEmpty&&glob2==="*"?re5+=starNoEmpty:re5+=star,hasMagic2=!0;continue}if(c5==="?"){re5+=qmark,hasMagic2=!0;continue}re5+=regExpEscape(c5);}return [re5,unescape2(glob2),!!hasMagic2,uflag]}};var escape2=(s5,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s5.replace(/[?*()[\]]/g,"[$&]"):s5.replace(/[?*()[\]\\]/g,"\\$&");var minimatch=(p4,pattern,options={})=>(assertValidPattern(pattern),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p4)),starDotExtRE=/^\*+([^+@!?\*\[\(]*)$/,starDotExtTest=ext2=>f7=>!f7.startsWith(".")&&f7.endsWith(ext2),starDotExtTestDot=ext2=>f7=>f7.endsWith(ext2),starDotExtTestNocase=ext2=>(ext2=ext2.toLowerCase(),f7=>!f7.startsWith(".")&&f7.toLowerCase().endsWith(ext2)),starDotExtTestNocaseDot=ext2=>(ext2=ext2.toLowerCase(),f7=>f7.toLowerCase().endsWith(ext2)),starDotStarRE=/^\*+\.\*+$/,starDotStarTest=f7=>!f7.startsWith(".")&&f7.includes("."),starDotStarTestDot=f7=>f7!=="."&&f7!==".."&&f7.includes("."),dotStarRE=/^\.\*+$/,dotStarTest=f7=>f7!=="."&&f7!==".."&&f7.startsWith("."),starRE=/^\*+$/,starTest=f7=>f7.length!==0&&!f7.startsWith("."),starTestDot=f7=>f7.length!==0&&f7!=="."&&f7!=="..",qmarksRE=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNocase=([$04,ext2=""])=>{let noext=qmarksTestNoExt([$04]);return ext2?(ext2=ext2.toLowerCase(),f7=>noext(f7)&&f7.toLowerCase().endsWith(ext2)):noext},qmarksTestNocaseDot=([$04,ext2=""])=>{let noext=qmarksTestNoExtDot([$04]);return ext2?(ext2=ext2.toLowerCase(),f7=>noext(f7)&&f7.toLowerCase().endsWith(ext2)):noext},qmarksTestDot=([$04,ext2=""])=>{let noext=qmarksTestNoExtDot([$04]);return ext2?f7=>noext(f7)&&f7.endsWith(ext2):noext},qmarksTest=([$04,ext2=""])=>{let noext=qmarksTestNoExt([$04]);return ext2?f7=>noext(f7)&&f7.endsWith(ext2):noext},qmarksTestNoExt=([$04])=>{let len=$04.length;return f7=>f7.length===len&&!f7.startsWith(".")},qmarksTestNoExtDot=([$04])=>{let len=$04.length;return f7=>f7.length===len&&f7!=="."&&f7!==".."},defaultPlatform=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",path5={win32:{sep:"\\"},posix:{sep:"/"}},sep=defaultPlatform==="win32"?path5.win32.sep:path5.posix.sep;minimatch.sep=sep;var GLOBSTAR=Symbol("globstar **");minimatch.GLOBSTAR=GLOBSTAR;var qmark2="[^/]",star2=qmark2+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",filter=(pattern,options={})=>p4=>minimatch(p4,pattern,options);minimatch.filter=filter;var ext=(a5,b2={})=>Object.assign({},a5,b2),defaults=def=>{if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;let orig=minimatch;return Object.assign((p4,pattern,options={})=>orig(p4,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:(s5,options={})=>orig.unescape(s5,ext(def,options)),escape:(s5,options={})=>orig.escape(s5,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 mm3=new Minimatch(pattern,options);return list=list.filter(f7=>mm3.match(f7)),mm3.options.nonull&&!list.length&&list.push(pattern),list};minimatch.match=match;var globMagic=/[?*]|[+@!]\(.*?\)|\[|\]/,regExpEscape2=s5=>s5.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(..._6){}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(s5=>this.slashSplit(s5));this.globParts=this.preprocess(rawGlobParts),this.debug(this.pattern,this.globParts);let set2=this.globParts.map((s5,_6,__)=>{if(this.isWindows&&this.windowsNoMagicRoot){let isUNC=s5[0]===""&&s5[1]===""&&(s5[2]==="?"||!globMagic.test(s5[2]))&&!globMagic.test(s5[3]),isDrive=/^[a-z]:/i.test(s5[0]);if(isUNC)return [...s5.slice(0,4),...s5.slice(4).map(ss=>this.parse(ss))];if(isDrive)return [s5[0],...s5.slice(1).map(ss=>this.parse(ss))]}return s5.map(ss=>this.parse(ss))});if(this.debug(this.pattern,set2),this.set=set2.filter(s5=>s5.indexOf(!1)===-1),this.isWindows)for(let i6=0;i6<this.set.length;i6++){let p4=this.set[i6];p4[0]===""&&p4[1]===""&&this.globParts[i6][2]==="?"&&typeof p4[3]=="string"&&/^[a-z]:$/i.test(p4[3])&&(p4[2]="?");}this.debug(this.pattern,this.set);}preprocess(globParts){if(this.options.noglobstar)for(let i6=0;i6<globParts.length;i6++)for(let j7=0;j7<globParts[i6].length;j7++)globParts[i6][j7]==="**"&&(globParts[i6][j7]="*");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 gs=-1;for(;(gs=parts.indexOf("**",gs+1))!==-1;){let i6=gs;for(;parts[i6+1]==="**";)i6++;i6!==gs&&parts.splice(gs,i6-gs);}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 i6=1;i6<parts.length-1;i6++){let p4=parts[i6];i6===1&&p4===""&&parts[0]===""||(p4==="."||p4==="")&&(didSomething=!0,parts.splice(i6,1),i6--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd2=0;for(;(dd2=parts.indexOf("..",dd2+1))!==-1;){let p4=parts[dd2-1];p4&&p4!=="."&&p4!==".."&&p4!=="**"&&(didSomething=!0,parts.splice(dd2-1,2),dd2-=2);}}while(didSomething);return parts.length===0?[""]:parts}firstPhasePreProcess(globParts){let didSomething=!1;do{didSomething=!1;for(let parts of globParts){let gs=-1;for(;(gs=parts.indexOf("**",gs+1))!==-1;){let gss=gs;for(;parts[gss+1]==="**";)gss++;gss>gs&&parts.splice(gs+1,gss-gs);let next=parts[gs+1],p4=parts[gs+2],p22=parts[gs+3];if(next!==".."||!p4||p4==="."||p4===".."||!p22||p22==="."||p22==="..")continue;didSomething=!0,parts.splice(gs,1);let other=parts.slice(0);other[gs]="**",globParts.push(other),gs--;}if(!this.preserveMultipleSlashes){for(let i6=1;i6<parts.length-1;i6++){let p4=parts[i6];i6===1&&p4===""&&parts[0]===""||(p4==="."||p4==="")&&(didSomething=!0,parts.splice(i6,1),i6--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd2=0;for(;(dd2=parts.indexOf("..",dd2+1))!==-1;){let p4=parts[dd2-1];if(p4&&p4!=="."&&p4!==".."&&p4!=="**"){didSomething=!0;let splin=dd2===1&&parts[dd2+1]==="**"?["."]:[];parts.splice(dd2-1,2,...splin),parts.length===0&&parts.push(""),dd2-=2;}}}}while(didSomething);return globParts}secondPhasePreProcess(globParts){for(let i6=0;i6<globParts.length-1;i6++)for(let j7=i6+1;j7<globParts.length;j7++){let matched=this.partsMatch(globParts[i6],globParts[j7],!this.preserveMultipleSlashes);if(matched){globParts[i6]=[],globParts[j7]=matched;break}}return globParts.filter(gs=>gs.length)}partsMatch(a5,b2,emptyGSMatch=!1){let ai3=0,bi3=0,result=[],which="";for(;ai3<a5.length&&bi3<b2.length;)if(a5[ai3]===b2[bi3])result.push(which==="b"?b2[bi3]:a5[ai3]),ai3++,bi3++;else if(emptyGSMatch&&a5[ai3]==="**"&&b2[bi3]===a5[ai3+1])result.push(a5[ai3]),ai3++;else if(emptyGSMatch&&b2[bi3]==="**"&&a5[ai3]===b2[bi3+1])result.push(b2[bi3]),bi3++;else if(a5[ai3]==="*"&&b2[bi3]&&(this.options.dot||!b2[bi3].startsWith("."))&&b2[bi3]!=="**"){if(which==="b")return !1;which="a",result.push(a5[ai3]),ai3++,bi3++;}else if(b2[bi3]==="*"&&a5[ai3]&&(this.options.dot||!a5[ai3].startsWith("."))&&a5[ai3]!=="**"){if(which==="a")return !1;which="b",result.push(b2[bi3]),ai3++,bi3++;}else return !1;return a5.length===b2.length&&result}parseNegate(){if(this.nonegate)return;let pattern=this.pattern,negate=!1,negateOffset=0;for(let i6=0;i6<pattern.length&&pattern.charAt(i6)==="!";i6++)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 fi4=0,pi4=0,fl=file.length,pl3=pattern.length;fi4<fl&&pi4<pl3;fi4++,pi4++){this.debug("matchOne loop");var p4=pattern[pi4],f7=file[fi4];if(this.debug(pattern,p4,f7),p4===!1)return !1;if(p4===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p4,f7]);var fr3=fi4,pr3=pi4+1;if(pr3===pl3){for(this.debug("** at the end");fi4<fl;fi4++)if(file[fi4]==="."||file[fi4]===".."||!options.dot&&file[fi4].charAt(0)===".")return !1;return !0}for(;fr3<fl;){var swallowee=file[fr3];if(this.debug(`
|
1677
|
+
`);};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"&&je3.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.0.16","@storybook/addon-docs":"9.0.16","@storybook/addon-jest":"9.0.16","@storybook/addon-links":"9.0.16","@storybook/addon-onboarding":"9.0.16","storybook-addon-pseudo-states":"9.0.16","@storybook/addon-themes":"9.0.16","@storybook/addon-vitest":"9.0.16","@storybook/builder-vite":"9.0.16","@storybook/builder-webpack5":"9.0.16",storybook:"9.0.16","@storybook/angular":"9.0.16","@storybook/ember":"9.0.16","@storybook/html-vite":"9.0.16","@storybook/nextjs":"9.0.16","@storybook/nextjs-vite":"9.0.16","@storybook/preact-vite":"9.0.16","@storybook/react-native-web-vite":"9.0.16","@storybook/react-vite":"9.0.16","@storybook/react-webpack5":"9.0.16","@storybook/server-webpack5":"9.0.16","@storybook/svelte-vite":"9.0.16","@storybook/sveltekit":"9.0.16","@storybook/vue3-vite":"9.0.16","@storybook/web-components-vite":"9.0.16",sb:"9.0.16","@storybook/cli":"9.0.16","@storybook/codemod":"9.0.16","@storybook/core-webpack":"9.0.16","create-storybook":"9.0.16","@storybook/csf-plugin":"9.0.16","eslint-plugin-storybook":"9.0.16","@storybook/react-dom-shim":"9.0.16","@storybook/preset-create-react-app":"9.0.16","@storybook/preset-react-webpack":"9.0.16","@storybook/preset-server-webpack":"9.0.16","@storybook/html":"9.0.16","@storybook/preact":"9.0.16","@storybook/react":"9.0.16","@storybook/server":"9.0.16","@storybook/svelte":"9.0.16","@storybook/vue3":"9.0.16","@storybook/web-components":"9.0.16"};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=s5=>s5.replace(/[[\]\\-]/g,"\\$&"),regexpEscape2=s5=>s5.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=[],i6=pos+1,sawStart=!1,uflag=!1,escaping=!1,negate=!1,endPos=pos,rangeStart="";WHILE:for(;i6<glob2.length;){let c5=glob2.charAt(i6);if((c5==="!"||c5==="^")&&i6===pos+1){negate=!0,i6++;continue}if(c5==="]"&&sawStart&&!escaping){endPos=i6+1;break}if(sawStart=!0,c5==="\\"&&!escaping){escaping=!0,i6++;continue}if(c5==="["&&!escaping){for(let[cls,[unip,u2,neg]]of Object.entries(posixClasses))if(glob2.startsWith(cls,i6)){if(rangeStart)return ["$.",!1,glob2.length-pos,!0];i6+=cls.length,neg?negs.push(unip):ranges.push(unip),uflag=uflag||u2;continue WHILE}}if(escaping=!1,rangeStart){c5>rangeStart?ranges.push(braceEscape(rangeStart)+"-"+braceEscape(c5)):c5===rangeStart&&ranges.push(braceEscape(c5)),rangeStart="",i6++;continue}if(glob2.startsWith("-]",i6+1)){ranges.push(braceEscape(c5+"-")),i6+=2;continue}if(glob2.startsWith("-",i6+1)){rangeStart=c5,i6+=2;continue}ranges.push(braceEscape(c5)),i6++;}if(endPos<i6)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 r2=ranges[0].length===2?ranges[0].slice(-1):ranges[0];return [regexpEscape2(r2),!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=(s5,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s5.replace(/\[([^\/\\])\]/g,"$1"):s5.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var types=new Set(["!","?","+","*","@"]),isExtglobType=c5=>types.has(c5),startNoTraversal="(?!(?:^|/)\\.\\.?(?:$|/))",startNoDot="(?!\\.)",addPatternStart=new Set(["[","."]),justDots=new Set(["..","."]),reSpecials=new Set("().*{}+?[]^$\\!"),regExpEscape=s5=>s5.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 p4 of this.#parts)if(typeof p4!="string"&&(p4.type||p4.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(p4=>String(p4)).join("|")+")":this.#toString=this.#parts.map(p4=>String(p4)).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 n2;for(;n2=this.#negs.pop();){if(n2.type!=="!")continue;let p4=n2,pp4=p4.#parent;for(;pp4;){for(let i6=p4.#parentIndex+1;!pp4.type&&i6<pp4.#parts.length;i6++)for(let part of n2.#parts){if(typeof part=="string")throw new Error("string part in extglob AST??");part.copyIn(pp4.#parts[i6]);}p4=pp4,pp4=p4.#parent;}}return this}push(...parts){for(let p4 of parts)if(p4!==""){if(typeof p4!="string"&&!(p4 instanceof _AST&&p4.#parent===this))throw new Error("invalid part: "+p4);this.#parts.push(p4);}}toJSON(){let ret=this.type===null?this.#parts.slice().map(p4=>typeof p4=="string"?p4:p4.toJSON()):[this.type,...this.#parts.map(p4=>p4.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 p4=this.#parent;for(let i6=0;i6<this.#parentIndex;i6++){let pp4=p4.#parts[i6];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 c5=new _AST(this.type,parent);for(let p4 of this.#parts)c5.copyIn(p4);return c5}static#parseAST(str,ast,pos,opt){let escaping=!1,inBrace=!1,braceStart=-1,braceNeg=!1;if(ast.type===null){let i7=pos,acc2="";for(;i7<str.length;){let c5=str.charAt(i7++);if(escaping||c5==="\\"){escaping=!escaping,acc2+=c5;continue}if(inBrace){i7===braceStart+1?(c5==="^"||c5==="!")&&(braceNeg=!0):c5==="]"&&!(i7===braceStart+2&&braceNeg)&&(inBrace=!1),acc2+=c5;continue}else if(c5==="["){inBrace=!0,braceStart=i7,braceNeg=!1,acc2+=c5;continue}if(!opt.noext&&isExtglobType(c5)&&str.charAt(i7)==="("){ast.push(acc2),acc2="";let ext2=new _AST(c5,ast);i7=_AST.#parseAST(str,ext2,i7,opt),ast.push(ext2);continue}acc2+=c5;}return ast.push(acc2),i7}let i6=pos+1,part=new _AST(null,ast),parts=[],acc="";for(;i6<str.length;){let c5=str.charAt(i6++);if(escaping||c5==="\\"){escaping=!escaping,acc+=c5;continue}if(inBrace){i6===braceStart+1?(c5==="^"||c5==="!")&&(braceNeg=!0):c5==="]"&&!(i6===braceStart+2&&braceNeg)&&(inBrace=!1),acc+=c5;continue}else if(c5==="["){inBrace=!0,braceStart=i6,braceNeg=!1,acc+=c5;continue}if(isExtglobType(c5)&&str.charAt(i6)==="("){part.push(acc),acc="";let ext2=new _AST(c5,part);part.push(ext2),i6=_AST.#parseAST(str,ext2,i6,opt);continue}if(c5==="|"){part.push(acc),acc="",parts.push(part),part=new _AST(null,ast);continue}if(c5===")")return acc===""&&ast.#parts.length===0&&(ast.#emptyExt=!0),part.push(acc),acc="",ast.push(...parts,part),i6;acc+=c5;}return ast.type=null,ast.#hasMagic=void 0,ast.#parts=[str.substring(pos-1)],i6}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(),[re5,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(`^${re5}$`,flags),{_src:re5,_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(p4=>{let[re5,_6,hasMagic2,uflag]=typeof p4=="string"?_AST.#parseGlob(p4,this.#hasMagic,noEmpty):p4.toRegExpSource(allowDot);return this.#hasMagic=this.#hasMagic||hasMagic2,this.#uflag=this.#uflag||uflag,re5}).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 s5=this.toString();return this.#parts=[s5],this.type=null,this.#hasMagic=void 0,[s5,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(p4=>{if(typeof p4=="string")throw new Error("string type in extglob ast??");let[re5,_6,_hasMagic,uflag]=p4.toRegExpSource(dot);return this.#uflag=this.#uflag||uflag,re5}).filter(p4=>!(this.isStart()&&this.isEnd())||!!p4).join("|")}static#parseGlob(glob2,hasMagic2,noEmpty=!1){let escaping=!1,re5="",uflag=!1;for(let i6=0;i6<glob2.length;i6++){let c5=glob2.charAt(i6);if(escaping){escaping=!1,re5+=(reSpecials.has(c5)?"\\":"")+c5;continue}if(c5==="\\"){i6===glob2.length-1?re5+="\\\\":escaping=!0;continue}if(c5==="["){let[src,needUflag,consumed,magic]=parseClass(glob2,i6);if(consumed){re5+=src,uflag=uflag||needUflag,i6+=consumed-1,hasMagic2=hasMagic2||magic;continue}}if(c5==="*"){noEmpty&&glob2==="*"?re5+=starNoEmpty:re5+=star,hasMagic2=!0;continue}if(c5==="?"){re5+=qmark,hasMagic2=!0;continue}re5+=regExpEscape(c5);}return [re5,unescape2(glob2),!!hasMagic2,uflag]}};var escape2=(s5,{windowsPathsNoEscape=!1}={})=>windowsPathsNoEscape?s5.replace(/[?*()[\]]/g,"[$&]"):s5.replace(/[?*()[\]\\]/g,"\\$&");var minimatch=(p4,pattern,options={})=>(assertValidPattern(pattern),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p4)),starDotExtRE=/^\*+([^+@!?\*\[\(]*)$/,starDotExtTest=ext2=>f7=>!f7.startsWith(".")&&f7.endsWith(ext2),starDotExtTestDot=ext2=>f7=>f7.endsWith(ext2),starDotExtTestNocase=ext2=>(ext2=ext2.toLowerCase(),f7=>!f7.startsWith(".")&&f7.toLowerCase().endsWith(ext2)),starDotExtTestNocaseDot=ext2=>(ext2=ext2.toLowerCase(),f7=>f7.toLowerCase().endsWith(ext2)),starDotStarRE=/^\*+\.\*+$/,starDotStarTest=f7=>!f7.startsWith(".")&&f7.includes("."),starDotStarTestDot=f7=>f7!=="."&&f7!==".."&&f7.includes("."),dotStarRE=/^\.\*+$/,dotStarTest=f7=>f7!=="."&&f7!==".."&&f7.startsWith("."),starRE=/^\*+$/,starTest=f7=>f7.length!==0&&!f7.startsWith("."),starTestDot=f7=>f7.length!==0&&f7!=="."&&f7!=="..",qmarksRE=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNocase=([$04,ext2=""])=>{let noext=qmarksTestNoExt([$04]);return ext2?(ext2=ext2.toLowerCase(),f7=>noext(f7)&&f7.toLowerCase().endsWith(ext2)):noext},qmarksTestNocaseDot=([$04,ext2=""])=>{let noext=qmarksTestNoExtDot([$04]);return ext2?(ext2=ext2.toLowerCase(),f7=>noext(f7)&&f7.toLowerCase().endsWith(ext2)):noext},qmarksTestDot=([$04,ext2=""])=>{let noext=qmarksTestNoExtDot([$04]);return ext2?f7=>noext(f7)&&f7.endsWith(ext2):noext},qmarksTest=([$04,ext2=""])=>{let noext=qmarksTestNoExt([$04]);return ext2?f7=>noext(f7)&&f7.endsWith(ext2):noext},qmarksTestNoExt=([$04])=>{let len=$04.length;return f7=>f7.length===len&&!f7.startsWith(".")},qmarksTestNoExtDot=([$04])=>{let len=$04.length;return f7=>f7.length===len&&f7!=="."&&f7!==".."},defaultPlatform=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",path5={win32:{sep:"\\"},posix:{sep:"/"}},sep=defaultPlatform==="win32"?path5.win32.sep:path5.posix.sep;minimatch.sep=sep;var GLOBSTAR=Symbol("globstar **");minimatch.GLOBSTAR=GLOBSTAR;var qmark2="[^/]",star2=qmark2+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",filter=(pattern,options={})=>p4=>minimatch(p4,pattern,options);minimatch.filter=filter;var ext=(a5,b2={})=>Object.assign({},a5,b2),defaults=def=>{if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;let orig=minimatch;return Object.assign((p4,pattern,options={})=>orig(p4,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:(s5,options={})=>orig.unescape(s5,ext(def,options)),escape:(s5,options={})=>orig.escape(s5,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 mm3=new Minimatch(pattern,options);return list=list.filter(f7=>mm3.match(f7)),mm3.options.nonull&&!list.length&&list.push(pattern),list};minimatch.match=match;var globMagic=/[?*]|[+@!]\(.*?\)|\[|\]/,regExpEscape2=s5=>s5.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(..._6){}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(s5=>this.slashSplit(s5));this.globParts=this.preprocess(rawGlobParts),this.debug(this.pattern,this.globParts);let set2=this.globParts.map((s5,_6,__)=>{if(this.isWindows&&this.windowsNoMagicRoot){let isUNC=s5[0]===""&&s5[1]===""&&(s5[2]==="?"||!globMagic.test(s5[2]))&&!globMagic.test(s5[3]),isDrive=/^[a-z]:/i.test(s5[0]);if(isUNC)return [...s5.slice(0,4),...s5.slice(4).map(ss=>this.parse(ss))];if(isDrive)return [s5[0],...s5.slice(1).map(ss=>this.parse(ss))]}return s5.map(ss=>this.parse(ss))});if(this.debug(this.pattern,set2),this.set=set2.filter(s5=>s5.indexOf(!1)===-1),this.isWindows)for(let i6=0;i6<this.set.length;i6++){let p4=this.set[i6];p4[0]===""&&p4[1]===""&&this.globParts[i6][2]==="?"&&typeof p4[3]=="string"&&/^[a-z]:$/i.test(p4[3])&&(p4[2]="?");}this.debug(this.pattern,this.set);}preprocess(globParts){if(this.options.noglobstar)for(let i6=0;i6<globParts.length;i6++)for(let j7=0;j7<globParts[i6].length;j7++)globParts[i6][j7]==="**"&&(globParts[i6][j7]="*");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 gs=-1;for(;(gs=parts.indexOf("**",gs+1))!==-1;){let i6=gs;for(;parts[i6+1]==="**";)i6++;i6!==gs&&parts.splice(gs,i6-gs);}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 i6=1;i6<parts.length-1;i6++){let p4=parts[i6];i6===1&&p4===""&&parts[0]===""||(p4==="."||p4==="")&&(didSomething=!0,parts.splice(i6,1),i6--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd2=0;for(;(dd2=parts.indexOf("..",dd2+1))!==-1;){let p4=parts[dd2-1];p4&&p4!=="."&&p4!==".."&&p4!=="**"&&(didSomething=!0,parts.splice(dd2-1,2),dd2-=2);}}while(didSomething);return parts.length===0?[""]:parts}firstPhasePreProcess(globParts){let didSomething=!1;do{didSomething=!1;for(let parts of globParts){let gs=-1;for(;(gs=parts.indexOf("**",gs+1))!==-1;){let gss=gs;for(;parts[gss+1]==="**";)gss++;gss>gs&&parts.splice(gs+1,gss-gs);let next=parts[gs+1],p4=parts[gs+2],p22=parts[gs+3];if(next!==".."||!p4||p4==="."||p4===".."||!p22||p22==="."||p22==="..")continue;didSomething=!0,parts.splice(gs,1);let other=parts.slice(0);other[gs]="**",globParts.push(other),gs--;}if(!this.preserveMultipleSlashes){for(let i6=1;i6<parts.length-1;i6++){let p4=parts[i6];i6===1&&p4===""&&parts[0]===""||(p4==="."||p4==="")&&(didSomething=!0,parts.splice(i6,1),i6--);}parts[0]==="."&&parts.length===2&&(parts[1]==="."||parts[1]==="")&&(didSomething=!0,parts.pop());}let dd2=0;for(;(dd2=parts.indexOf("..",dd2+1))!==-1;){let p4=parts[dd2-1];if(p4&&p4!=="."&&p4!==".."&&p4!=="**"){didSomething=!0;let splin=dd2===1&&parts[dd2+1]==="**"?["."]:[];parts.splice(dd2-1,2,...splin),parts.length===0&&parts.push(""),dd2-=2;}}}}while(didSomething);return globParts}secondPhasePreProcess(globParts){for(let i6=0;i6<globParts.length-1;i6++)for(let j7=i6+1;j7<globParts.length;j7++){let matched=this.partsMatch(globParts[i6],globParts[j7],!this.preserveMultipleSlashes);if(matched){globParts[i6]=[],globParts[j7]=matched;break}}return globParts.filter(gs=>gs.length)}partsMatch(a5,b2,emptyGSMatch=!1){let ai3=0,bi3=0,result=[],which="";for(;ai3<a5.length&&bi3<b2.length;)if(a5[ai3]===b2[bi3])result.push(which==="b"?b2[bi3]:a5[ai3]),ai3++,bi3++;else if(emptyGSMatch&&a5[ai3]==="**"&&b2[bi3]===a5[ai3+1])result.push(a5[ai3]),ai3++;else if(emptyGSMatch&&b2[bi3]==="**"&&a5[ai3]===b2[bi3+1])result.push(b2[bi3]),bi3++;else if(a5[ai3]==="*"&&b2[bi3]&&(this.options.dot||!b2[bi3].startsWith("."))&&b2[bi3]!=="**"){if(which==="b")return !1;which="a",result.push(a5[ai3]),ai3++,bi3++;}else if(b2[bi3]==="*"&&a5[ai3]&&(this.options.dot||!a5[ai3].startsWith("."))&&a5[ai3]!=="**"){if(which==="a")return !1;which="b",result.push(b2[bi3]),ai3++,bi3++;}else return !1;return a5.length===b2.length&&result}parseNegate(){if(this.nonegate)return;let pattern=this.pattern,negate=!1,negateOffset=0;for(let i6=0;i6<pattern.length&&pattern.charAt(i6)==="!";i6++)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 fi4=0,pi4=0,fl=file.length,pl3=pattern.length;fi4<fl&&pi4<pl3;fi4++,pi4++){this.debug("matchOne loop");var p4=pattern[pi4],f7=file[fi4];if(this.debug(pattern,p4,f7),p4===!1)return !1;if(p4===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p4,f7]);var fr3=fi4,pr3=pi4+1;if(pr3===pl3){for(this.debug("** at the end");fi4<fl;fi4++)if(file[fi4]==="."||file[fi4]===".."||!options.dot&&file[fi4].charAt(0)===".")return !1;return !0}for(;fr3<fl;){var swallowee=file[fr3];if(this.debug(`
|
1678
1678
|
globstar while`,file,fr3,pattern,pr3,swallowee),this.matchOne(file.slice(fr3),pattern.slice(pr3),partial))return this.debug("globstar found match!",fr3,fl,swallowee),!0;if(swallowee==="."||swallowee===".."||!options.dot&&swallowee.charAt(0)==="."){this.debug("dot detected!",file,fr3,pattern,pr3);break}this.debug("globstar swallow a segment, and continue"),fr3++;}return !!(partial&&(this.debug(`
|
1679
1679
|
>>> no match, partial?`,file,fr3,pattern,pr3),fr3===fl))}let hit;if(typeof p4=="string"?(hit=f7===p4,this.debug("string match",p4,f7,hit)):(hit=p4.test(f7),this.debug("pattern match",p4,f7,hit)),!hit)return !1}if(fi4===fl&&pi4===pl3)return !0;if(fi4===fl)return partial;if(pi4===pl3)return fi4===fl-1&&file[fi4]==="";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 m4,fastTest=null;(m4=pattern.match(starRE))?fastTest=options.dot?starTestDot:starTest:(m4=pattern.match(starDotExtRE))?fastTest=(options.nocase?options.dot?starDotExtTestNocaseDot:starDotExtTestNocase:options.dot?starDotExtTestDot:starDotExtTest)(m4[1]):(m4=pattern.match(qmarksRE))?fastTest=(options.nocase?options.dot?qmarksTestNocaseDot:qmarksTestNocase:options.dot?qmarksTestDot:qmarksTest)(m4):(m4=pattern.match(starDotStarRE))?fastTest=options.dot?starDotStarTestDot:starDotStarTest:(m4=pattern.match(dotStarRE))&&(fastTest=dotStarTest);let re5=AST.fromGlob(pattern,this.options).toMMPattern();return fastTest&&typeof re5=="object"&&Reflect.defineProperty(re5,"test",{value:fastTest}),re5}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"]:[]),re5=set2.map(pattern=>{let pp4=pattern.map(p4=>{if(p4 instanceof RegExp)for(let f7 of p4.flags.split(""))flags.add(f7);return typeof p4=="string"?regExpEscape2(p4):p4===GLOBSTAR?GLOBSTAR:p4._src});return pp4.forEach((p4,i6)=>{let next=pp4[i6+1],prev=pp4[i6-1];p4!==GLOBSTAR||prev===GLOBSTAR||(prev===void 0?next!==void 0&&next!==GLOBSTAR?pp4[i6+1]="(?:\\/|"+twoStar+"\\/)?"+next:pp4[i6]=twoStar:next===void 0?pp4[i6-1]=prev+"(?:\\/|"+twoStar+")?":next!==GLOBSTAR&&(pp4[i6-1]=prev+"(?:\\/|\\/"+twoStar+"\\/)"+next,pp4[i6+1]=GLOBSTAR));}),pp4.filter(p4=>p4!==GLOBSTAR).join("/")}).join("|"),[open,close]=set2.length>1?["(?:",")"]:["",""];re5="^"+open+re5+close+"$",this.negate&&(re5="^(?!"+re5+").+$");try{this.regexp=new RegExp(re5,[...flags].join(""));}catch{this.regexp=!1;}return this.regexp}slashSplit(p4){return this.preserveMultipleSlashes?p4.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(p4)?["",...p4.split(/\/+/)]:p4.split(/\/+/)}match(f7,partial=this.partial){if(this.debug("match",f7,this.pattern),this.comment)return !1;if(this.empty)return f7==="";if(f7==="/"&&partial)return !0;let options=this.options;this.isWindows&&(f7=f7.split("\\").join("/"));let ff2=this.slashSplit(f7);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 i6=ff2.length-2;!filename&&i6>=0;i6--)filename=ff2[i6];for(let i6=0;i6<set2.length;i6++){let pattern=set2[i6],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,fn3)=>{typeof PROCESS.emitWarning=="function"?PROCESS.emitWarning(msg,type,code,fn3):console.error(`[${code}] ${type}: ${msg}`);},AC2=globalThis.AbortController,AS=globalThis.AbortSignal;if(typeof AC2>"u"){AS=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(_6,fn3){this._onabort.push(fn3);}},AC2=class{constructor(){warnACPolyfill();}signal=new AS;abort(reason){if(!this.signal.aborted){this.signal.reason=reason,this.signal.aborted=!0;for(let fn3 of this.signal._onabort)fn3(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=n2=>n2&&n2===Math.floor(n2)&&n2>0&&isFinite(n2),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 s5=new _Stack(max,HeapCls);return _Stack.#constructing=!1,s5}constructor(max,HeapCls){if(!_Stack.#constructing)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new HeapCls(max),this.length=0;}push(n2){this.heap[this.length++]=n2;}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(c5){return {starts:c5.#starts,ttls:c5.#ttls,sizes:c5.#sizes,keyMap:c5.#keyMap,keyList:c5.#keyList,valList:c5.#valList,next:c5.#next,prev:c5.#prev,get head(){return c5.#head},get tail(){return c5.#tail},free:c5.#free,isBackgroundFetch:p4=>c5.#isBackgroundFetch(p4),backgroundFetch:(k6,index,options,context)=>c5.#backgroundFetch(k6,index,options,context),moveToTail:index=>c5.#moveToTail(index),indexes:options=>c5.#indexes(options),rindexes:options=>c5.#rindexes(options),isStale:index=>c5.#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 t15=setTimeout(()=>{this.#isStale(index)&&this.#delete(this.#keyList[index],"expire");},ttl2+1);t15.unref&&t15.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 n2=perf.now();if(this.ttlResolution>0){cachedNow=n2;let t15=setTimeout(()=>cachedNow=0,this.ttlResolution);t15.unref&&t15.unref();}return n2};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 s5=starts[index],t15=ttls[index];return !!t15&&!!s5&&(cachedNow||getNow())-s5>t15};}#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=(k6,v8,size,sizeCalculation)=>{if(this.#isBackgroundFetch(v8))return 0;if(!isPosInt(size))if(sizeCalculation){if(typeof sizeCalculation!="function")throw new TypeError("sizeCalculation must be a function");if(size=sizeCalculation(v8,k6),!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,_s2,_st)=>{};#requireSize=(_k2,_v,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 i6=this.#tail;!(!this.#isValidIndex(i6)||((allowStale||!this.#isStale(i6))&&(yield i6),i6===this.#head));)i6=this.#prev[i6];}*#rindexes({allowStale=this.allowStale}={}){if(this.#size)for(let i6=this.#head;!(!this.#isValidIndex(i6)||((allowStale||!this.#isStale(i6))&&(yield i6),i6===this.#tail));)i6=this.#next[i6];}#isValidIndex(index){return index!==void 0&&this.#keyMap.get(this.#keyList[index])===index}*entries(){for(let i6 of this.#indexes())this.#valList[i6]!==void 0&&this.#keyList[i6]!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield [this.#keyList[i6],this.#valList[i6]]);}*rentries(){for(let i6 of this.#rindexes())this.#valList[i6]!==void 0&&this.#keyList[i6]!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield [this.#keyList[i6],this.#valList[i6]]);}*keys(){for(let i6 of this.#indexes()){let k6=this.#keyList[i6];k6!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield k6);}}*rkeys(){for(let i6 of this.#rindexes()){let k6=this.#keyList[i6];k6!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield k6);}}*values(){for(let i6 of this.#indexes())this.#valList[i6]!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield this.#valList[i6]);}*rvalues(){for(let i6 of this.#rindexes())this.#valList[i6]!==void 0&&!this.#isBackgroundFetch(this.#valList[i6])&&(yield this.#valList[i6]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(fn3,getOptions={}){for(let i6 of this.#indexes()){let v8=this.#valList[i6],value2=this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8;if(value2!==void 0&&fn3(value2,this.#keyList[i6],this))return this.get(this.#keyList[i6],getOptions)}}forEach(fn3,thisp=this){for(let i6 of this.#indexes()){let v8=this.#valList[i6],value2=this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8;value2!==void 0&&fn3.call(thisp,value2,this.#keyList[i6],this);}}rforEach(fn3,thisp=this){for(let i6 of this.#rindexes()){let v8=this.#valList[i6],value2=this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8;value2!==void 0&&fn3.call(thisp,value2,this.#keyList[i6],this);}}purgeStale(){let deleted=!1;for(let i6 of this.#rindexes({allowStale:!0}))this.#isStale(i6)&&(this.#delete(this.#keyList[i6],"expire"),deleted=!0);return deleted}info(key){let i6=this.#keyMap.get(key);if(i6===void 0)return;let v8=this.#valList[i6],value2=this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8;if(value2===void 0)return;let entry={value:value2};if(this.#ttls&&this.#starts){let ttl2=this.#ttls[i6],start=this.#starts[i6];if(ttl2&&start){let remain=ttl2-(perf.now()-start);entry.ttl=remain,entry.start=Date.now();}}return this.#sizes&&(entry.size=this.#sizes[i6]),entry}dump(){let arr=[];for(let i6 of this.#indexes({allowStale:!0})){let key=this.#keyList[i6],v8=this.#valList[i6],value2=this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8;if(value2===void 0||key===void 0)continue;let entry={value:value2};if(this.#ttls&&this.#starts){entry.ttl=this.#ttls[i6];let age=perf.now()-this.#starts[i6];entry.start=Math.floor(Date.now()-age);}this.#sizes&&(entry.size=this.#sizes[i6]),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(k6,v8,setOptions={}){if(v8===void 0)return this.delete(k6),this;let{ttl:ttl2=this.ttl,start,noDisposeOnSet=this.noDisposeOnSet,sizeCalculation=this.sizeCalculation,status}=setOptions,{noUpdateTTL=this.noUpdateTTL}=setOptions,size=this.#requireSize(k6,v8,setOptions.size||0,sizeCalculation);if(this.maxEntrySize&&size>this.maxEntrySize)return status&&(status.set="miss",status.maxEntrySizeExceeded=!0),this.#delete(k6,"set"),this;let index=this.#size===0?void 0:this.#keyMap.get(k6);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]=k6,this.#valList[index]=v8,this.#keyMap.set(k6,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(v8!==oldVal){if(this.#hasFetchMethod&&this.#isBackgroundFetch(oldVal)){oldVal.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:s5}=oldVal;s5!==void 0&&!noDisposeOnSet&&(this.#hasDispose&&this.#dispose?.(s5,k6,"set"),this.#hasDisposeAfter&&this.#disposed?.push([s5,k6,"set"]));}else noDisposeOnSet||(this.#hasDispose&&this.#dispose?.(oldVal,k6,"set"),this.#hasDisposeAfter&&this.#disposed?.push([oldVal,k6,"set"]));if(this.#removeItemSize(index),this.#addItemSize(index,size,status),this.#valList[index]=v8,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 dt=this.#disposed,task;for(;task=dt?.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 dt=this.#disposed,task;for(;task=dt?.shift();)this.#disposeAfter?.(...task);}}}#evict(free){let head=this.#head,k6=this.#keyList[head],v8=this.#valList[head];return this.#hasFetchMethod&&this.#isBackgroundFetch(v8)?v8.__abortController.abort(new Error("evicted")):(this.#hasDispose||this.#hasDisposeAfter)&&(this.#hasDispose&&this.#dispose?.(v8,k6,"evict"),this.#hasDisposeAfter&&this.#disposed?.push([v8,k6,"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(k6),this.#size--,head}has(k6,hasOptions={}){let{updateAgeOnHas=this.updateAgeOnHas,status}=hasOptions,index=this.#keyMap.get(k6);if(index!==void 0){let v8=this.#valList[index];if(this.#isBackgroundFetch(v8)&&v8.__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(k6,peekOptions={}){let{allowStale=this.allowStale}=peekOptions,index=this.#keyMap.get(k6);if(index===void 0||!allowStale&&this.#isStale(index))return;let v8=this.#valList[index];return this.#isBackgroundFetch(v8)?v8.__staleWhileFetching:v8}#backgroundFetch(k6,index,options,context){let v8=index===void 0?void 0:this.#valList[index];if(this.#isBackgroundFetch(v8))return v8;let ac2=new AC2,{signal}=options;signal?.addEventListener("abort",()=>ac2.abort(signal.reason),{signal:ac2.signal});let fetchOpts={signal:ac2.signal,options,context},cb2=(v9,updateCache=!1)=>{let{aborted}=ac2.signal,ignoreAbort=options.ignoreFetchAbort&&v9!==void 0;if(options.status&&(aborted&&!updateCache?(options.status.fetchAborted=!0,options.status.fetchError=ac2.signal.reason,ignoreAbort&&(options.status.fetchAbortIgnored=!0)):options.status.fetchResolved=!0),aborted&&!ignoreAbort&&!updateCache)return fetchFail(ac2.signal.reason);let bf3=p4;return this.#valList[index]===p4&&(v9===void 0?bf3.__staleWhileFetching?this.#valList[index]=bf3.__staleWhileFetching:this.#delete(k6,"fetch"):(options.status&&(options.status.fetchUpdated=!0),this.set(k6,v9,fetchOpts.options))),v9},eb2=er3=>(options.status&&(options.status.fetchRejected=!0,options.status.fetchError=er3),fetchFail(er3)),fetchFail=er3=>{let{aborted}=ac2.signal,allowStaleAborted=aborted&&options.allowStaleOnFetchAbort,allowStale=allowStaleAborted||options.allowStaleOnFetchRejection,noDelete=allowStale||options.noDeleteOnFetchRejection,bf3=p4;if(this.#valList[index]===p4&&(!noDelete||bf3.__staleWhileFetching===void 0?this.#delete(k6,"fetch"):allowStaleAborted||(this.#valList[index]=bf3.__staleWhileFetching)),allowStale)return options.status&&bf3.__staleWhileFetching!==void 0&&(options.status.returnedStale=!0),bf3.__staleWhileFetching;if(bf3.__returned===bf3)throw er3},pcall=(res,rej)=>{let fmp=this.#fetchMethod?.(k6,v8,fetchOpts);fmp&&fmp instanceof Promise&&fmp.then(v9=>res(v9===void 0?void 0:v9),rej),ac2.signal.addEventListener("abort",()=>{(!options.ignoreFetchAbort||options.allowStaleOnFetchAbort)&&(res(void 0),options.allowStaleOnFetchAbort&&(res=v9=>cb2(v9,!0)));});};options.status&&(options.status.fetchDispatched=!0);let p4=new Promise(pcall).then(cb2,eb2),bf2=Object.assign(p4,{__abortController:ac2,__staleWhileFetching:v8,__returned:void 0});return index===void 0?(this.set(k6,bf2,{...fetchOpts.options,status:void 0}),index=this.#keyMap.get(k6)):this.#valList[index]=bf2,bf2}#isBackgroundFetch(p4){if(!this.#hasFetchMethod)return !1;let b2=p4;return !!b2&&b2 instanceof Promise&&b2.hasOwnProperty("__staleWhileFetching")&&b2.__abortController instanceof AC2}async fetch(k6,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(k6,{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(k6);if(index===void 0){status&&(status.fetch="miss");let p4=this.#backgroundFetch(k6,index,options,context);return p4.__returned=p4}else {let v8=this.#valList[index];if(this.#isBackgroundFetch(v8)){let stale=allowStale&&v8.__staleWhileFetching!==void 0;return status&&(status.fetch="inflight",stale&&(status.returnedStale=!0)),stale?v8.__staleWhileFetching:v8.__returned=v8}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),v8;let p4=this.#backgroundFetch(k6,index,options,context),staleVal=p4.__staleWhileFetching!==void 0&&allowStale;return status&&(status.fetch=isStale?"stale":"refresh",staleVal&&isStale&&(status.returnedStale=!0)),staleVal?p4.__staleWhileFetching:p4.__returned=p4}}async forceFetch(k6,fetchOptions={}){let v8=await this.fetch(k6,fetchOptions);if(v8===void 0)throw new Error("fetch() returned undefined");return v8}memo(k6,memoOptions={}){let memoMethod=this.#memoMethod;if(!memoMethod)throw new Error("no memoMethod provided to constructor");let{context,forceRefresh,...options}=memoOptions,v8=this.get(k6,options);if(!forceRefresh&&v8!==void 0)return v8;let vv2=memoMethod(k6,v8,{options,context});return this.set(k6,vv2,options),vv2}get(k6,getOptions={}){let{allowStale=this.allowStale,updateAgeOnGet=this.updateAgeOnGet,noDeleteOnStaleGet=this.noDeleteOnStaleGet,status}=getOptions,index=this.#keyMap.get(k6);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(k6,"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(p4,n2){this.#prev[n2]=p4,this.#next[p4]=n2;}#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(k6){return this.#delete(k6,"delete")}#delete(k6,reason){let deleted=!1;if(this.#size!==0){let index=this.#keyMap.get(k6);if(index!==void 0)if(deleted=!0,this.#size===1)this.#clear(reason);else {this.#removeItemSize(index);let v8=this.#valList[index];if(this.#isBackgroundFetch(v8)?v8.__abortController.abort(new Error("deleted")):(this.#hasDispose||this.#hasDisposeAfter)&&(this.#hasDispose&&this.#dispose?.(v8,k6,reason),this.#hasDisposeAfter&&this.#disposed?.push([v8,k6,reason])),this.#keyMap.delete(k6),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 pi4=this.#prev[index];this.#next[pi4]=this.#next[index];let ni4=this.#next[index];this.#prev[ni4]=this.#prev[index];}this.#size--,this.#free.push(index);}}if(this.#hasDisposeAfter&&this.#disposed?.length){let dt=this.#disposed,task;for(;task=dt?.shift();)this.#disposeAfter?.(...task);}return deleted}clear(){return this.#clear("delete")}#clear(reason){for(let index of this.#rindexes({allowStale:!0})){let v8=this.#valList[index];if(this.#isBackgroundFetch(v8))v8.__abortController.abort(new Error("deleted"));else {let k6=this.#keyList[index];this.#hasDispose&&this.#dispose?.(v8,k6,reason),this.#hasDisposeAfter&&this.#disposed?.push([v8,k6,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 dt=this.#disposed,task;for(;task=dt?.shift();)this.#disposeAfter?.(...task);}}};var proc=typeof process=="object"&&process?process:{stdout:null,stderr:null},isStream2=s5=>!!s5&&typeof s5=="object"&&(s5 instanceof Minipass||s5 instanceof Zl3||isReadable(s5)||isWritable(s5)),isReadable=s5=>!!s5&&typeof s5=="object"&&s5 instanceof EventEmitter&&typeof s5.pipe=="function"&&s5.pipe!==Zl3.Writable.prototype.pipe,isWritable=s5=>!!s5&&typeof s5=="object"&&s5 instanceof EventEmitter&&typeof s5.write=="function"&&typeof s5.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=fn3=>Promise.resolve().then(fn3),nodefer=fn3=>fn3(),isEndish=ev2=>ev2==="end"||ev2==="finish"||ev2==="prefinish",isArrayBufferLike=b2=>b2 instanceof ArrayBuffer||!!b2&&typeof b2=="object"&&b2.constructor&&b2.constructor.name==="ArrayBuffer"&&b2.byteLength>=0,isArrayBufferView=b2=>!Buffer.isBuffer(b2)&&ArrayBuffer.isView(b2),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=er3=>dest.emit("error",er3),src.on("error",this.proxyErrors);}},isObjectModeOptions=o5=>!!o5.objectMode,isEncodingOptions=o5=>!o5.objectMode&&!!o5.encoding&&o5.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(_6){}write(chunk,encoding,cb2){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"&&(cb2=encoding,encoding="utf8"),encoding||(encoding="utf8");let fn3=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"),cb2&&fn3(cb2),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"),cb2&&fn3(cb2),this[FLOWING]):(this[BUFFERLENGTH]!==0&&this.emit("readable"),cb2&&fn3(cb2),this[FLOWING])}read(n2){if(this[DESTROYED])return null;if(this[DISCARDED]=!1,this[BUFFERLENGTH]===0||n2===0||n2&&n2>this[BUFFERLENGTH])return this[MAYBE_EMIT_END](),null;this[OBJECTMODE]&&(n2=null),this[BUFFER].length>1&&!this[OBJECTMODE]&&(this[BUFFER]=[this[ENCODING]?this[BUFFER].join(""):Buffer.concat(this[BUFFER],this[BUFFERLENGTH])]);let ret=this[READ](n2||null,this[BUFFER][0]);return this[MAYBE_EMIT_END](),ret}[READ](n2,chunk){if(this[OBJECTMODE])this[BUFFERSHIFT]();else {let c5=chunk;n2===c5.length||n2===null?this[BUFFERSHIFT]():typeof c5=="string"?(this[BUFFER][0]=c5.slice(n2),chunk=c5.slice(0,n2),this[BUFFERLENGTH]-=n2):(this[BUFFER][0]=c5.subarray(n2),chunk=c5.subarray(0,n2),this[BUFFERLENGTH]-=n2);}return this.emit("data",chunk),!this[BUFFER].length&&!this[EOF]&&this.emit("drain"),chunk}end(chunk,encoding,cb2){return typeof chunk=="function"&&(cb2=chunk,chunk=void 0),typeof encoding=="function"&&(cb2=encoding,encoding="utf8"),chunk!==void 0&&this.write(chunk,encoding),cb2&&this.once("end",cb2),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 p4=this[PIPES].find(p5=>p5.dest===dest);p4&&(this[PIPES].length===1?(this[FLOWING]&&this[DATALISTENERS]===0&&(this[FLOWING]=!1),this[PIPES]=[]):this[PIPES].splice(this[PIPES].indexOf(p4),1),p4.unpipe());}addListener(ev2,handler){return this.on(ev2,handler)}on(ev2,handler){let ret=super.on(ev2,handler);if(ev2==="data")this[DISCARDED]=!1,this[DATALISTENERS]++,!this[PIPES].length&&!this[FLOWING]&&this[RESUME]();else if(ev2==="readable"&&this[BUFFERLENGTH]!==0)super.emit("readable");else if(isEndish(ev2)&&this[EMITTED_END])super.emit(ev2),this.removeAllListeners(ev2);else if(ev2==="error"&&this[EMITTED_ERROR]){let h6=handler;this[ASYNC]?defer(()=>h6.call(this,this[EMITTED_ERROR])):h6.call(this,this[EMITTED_ERROR]);}return ret}removeListener(ev2,handler){return this.off(ev2,handler)}off(ev2,handler){let ret=super.off(ev2,handler);return ev2==="data"&&(this[DATALISTENERS]=this.listeners("data").length,this[DATALISTENERS]===0&&!this[DISCARDED]&&!this[PIPES].length&&(this[FLOWING]=!1)),ret}removeAllListeners(ev2){let ret=super.removeAllListeners(ev2);return (ev2==="data"||ev2===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(ev2,...args){let data=args[0];if(ev2!=="error"&&ev2!=="close"&&ev2!==DESTROYED&&this[DESTROYED])return !1;if(ev2==="data")return !this[OBJECTMODE]&&!data?!1:this[ASYNC]?(defer(()=>this[EMITDATA](data)),!0):this[EMITDATA](data);if(ev2==="end")return this[EMITEND]();if(ev2==="close"){if(this[CLOSED]=!0,!this[EMITTED_END]&&!this[DESTROYED])return !1;let ret2=super.emit("close");return this.removeAllListeners("close"),ret2}else if(ev2==="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(ev2==="resume"){let ret2=super.emit("resume");return this[MAYBE_EMIT_END](),ret2}else if(ev2==="finish"||ev2==="prefinish"){let ret2=super.emit(ev2);return this.removeAllListeners(ev2),ret2}let ret=super.emit(ev2,...args);return this[MAYBE_EMIT_END](),ret}[EMITDATA](data){for(let p4 of this[PIPES])p4.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 p4 of this[PIPES])p4.dest.write(data);this[DISCARDED]||super.emit("data",data);}}for(let p4 of this[PIPES])p4.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 p4=this.promise();return this.on("data",c5=>{buf.push(c5),this[OBJECTMODE]||(buf.dataLength+=c5.length);}),await p4,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",er3=>reject(er3)),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=er3=>{this.off("data",ondata),this.off("end",onend),this.off(DESTROYED,ondestroy),stop(),reject(er3);},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(er3){if(this[DESTROYED])return er3?this.emit("error",er3):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(),er3?this.emit("error",er3):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===en2?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=s5=>s5.isFile()?IFREG:s5.isDirectory()?IFDIR:s5.isSymbolicLink()?IFLNK:s5.isCharacterDevice()?IFCHR:s5.isBlockDevice()?IFBLK:s5.isSocket()?IFSOCK:s5.isFIFO()?IFIFO:UNKNOWN,normalizeCache=new Map,normalize=s5=>{let c5=normalizeCache.get(s5);if(c5)return c5;let n2=s5.normalize("NFKD");return normalizeCache.set(s5,n2),n2},normalizeNocaseCache=new Map,normalizeNocase=s5=>{let c5=normalizeNocaseCache.get(s5);if(c5)return c5;let n2=normalize(s5.toLowerCase());return normalizeNocaseCache.set(s5,n2),n2},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 p4=this;for(let part of dirParts)p4=p4.child(part);return p4}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 p4 of children)if(p4.#matchName===name)return p4;let s5=this.parent?this.sep:"",fullpath=this.#fullpath?this.#fullpath+s5+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,p4=this.parent;if(!p4)return this.#relative=this.name;let pv3=p4.relative();return pv3+(!pv3||!p4.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,p4=this.parent;if(!p4)return this.#relativePosix=this.fullpathPosix();let pv3=p4.relativePosix();return pv3+(!pv3||!p4.parent?"":"/")+name}fullpath(){if(this.#fullpath!==void 0)return this.#fullpath;let name=this.name,p4=this.parent;if(!p4)return this.#fullpath=this.name;let fp4=p4.fullpath()+(p4.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 p5=this.fullpath().replace(/\\/g,"/");return /^[a-z]:\//i.test(p5)?this.#fullpathPosix=`//?/${p5}`:this.#fullpathPosix=p5}let p4=this.parent,pfpp=p4.fullpathPosix(),fpp=pfpp+(!pfpp||!p4.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(n2){return this.nocase?this.#matchName===normalizeNocase(n2):this.#matchName===normalize(n2)}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(er3){this.#readlinkFail(er3.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(er3){this.#readlinkFail(er3.code);return}}#readdirSuccess(children){this.#type|=READDIR_CALLED;for(let p4=children.provisional;p4<children.length;p4++){let c5=children[p4];c5&&c5.#markENOENT();}}#markENOENT(){this.#type&ENOENT||(this.#type=(this.#type|ENOENT)&IFMT_UNKNOWN,this.#markChildrenENOENT());}#markChildrenENOENT(){let children=this.children();children.provisional=0;for(let p4 of children)p4.#markENOENT();}#markENOREALPATH(){this.#type|=ENOREALPATH,this.#markENOTDIR();}#markENOTDIR(){if(this.#type&ENOTDIR)return;let t15=this.#type;(t15&IFMT)===IFDIR&&(t15&=IFMT_UNKNOWN),this.#type=t15|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(e2,c5){return this.#readdirMaybePromoteChild(e2,c5)||this.#readdirAddNewChild(e2,c5)}#readdirAddNewChild(e2,c5){let type=entToType(e2),child=this.newChild(e2.name,type,{parent:this}),ifmt=child.#type&IFMT;return ifmt!==IFDIR&&ifmt!==IFLNK&&ifmt!==UNKNOWN&&(child.#type|=ENOTDIR),c5.unshift(child),c5.provisional++,child}#readdirMaybePromoteChild(e2,c5){for(let p4=c5.provisional;p4<c5.length;p4++){let pchild=c5[p4];if((this.nocase?normalizeNocase(e2.name):normalize(e2.name))===pchild.#matchName)return this.#readdirPromoteChild(e2,pchild,p4,c5)}}#readdirPromoteChild(e2,p4,index,c5){let v8=p4.name;return p4.#type=p4.#type&IFMT_UNKNOWN|entToType(e2),v8!==e2.name&&(p4.name=e2.name),index!==c5.provisional&&(index===c5.length-1?c5.pop():c5.splice(index,1),c5.unshift(p4)),c5.provisional++,p4}async lstat(){if((this.#type&ENOENT)===0)try{return this.#applyStat(await this.#fs.promises.lstat(this.fullpath())),this}catch(er3){this.#lstatFail(er3.code);}}lstatSync(){if((this.#type&ENOENT)===0)try{return this.#applyStat(this.#fs.lstatSync(this.fullpath())),this}catch(er3){this.#lstatFail(er3.code);}}#applyStat(st3){let{atime,atimeMs,birthtime,birthtimeMs,blksize,blocks,ctime,ctimeMs,dev,gid,ino,mode,mtime,mtimeMs,nlink,rdev,size,uid}=st3;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(st3);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(cb2=>cb2(null,children));}readdirCB(cb2,allowZalgo=!1){if(!this.canReaddir()){allowZalgo?cb2(null,[]):queueMicrotask(()=>cb2(null,[]));return}let children=this.children();if(this.calledReaddir()){let c5=children.slice(0,children.provisional);allowZalgo?cb2(null,c5):queueMicrotask(()=>cb2(null,c5));return}if(this.#onReaddirCB.push(cb2),this.#readdirCBInFlight)return;this.#readdirCBInFlight=!0;let fullpath=this.fullpath();this.#fs.readdir(fullpath,{withFileTypes:!0},(er3,entries2)=>{if(er3)this.#readdirFail(er3.code),children.provisional=0;else {for(let e2 of entries2)this.#readdirAddChild(e2,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 e2 of await this.#fs.promises.readdir(fullpath,{withFileTypes:!0}))this.#readdirAddChild(e2,children);this.#readdirSuccess(children);}catch(er3){this.#readdirFail(er3.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 e2 of this.#fs.readdirSync(fullpath,{withFileTypes:!0}))this.#readdirAddChild(e2,children);this.#readdirSuccess(children);}catch(er3){this.#readdirFail(er3.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 rp=await this.#fs.promises.realpath(this.fullpath());return this.#realpath=this.resolve(rp)}catch{this.#markENOREALPATH();}}realpathSync(){if(this.#realpath)return this.#realpath;if(!((ENOREALPATH|ENOREADLINK|ENOENT)&this.#type))try{let rp=this.#fs.realpathSync(this.fullpath());return this.#realpath=this.resolve(rp)}catch{this.#markENOREALPATH();}}[setAsCwd](oldCwd){if(oldCwd===this)return;oldCwd.isCWD=!1,this.isCWD=!0;let changed=new Set([]),rp=[],p4=this;for(;p4&&p4.parent;)changed.add(p4),p4.#relative=rp.join(this.sep),p4.#relativePosix=rp.join("/"),p4=p4.parent,rp.push("..");for(p4=oldCwd;p4&&p4.parent&&!changed.has(p4);)p4.#relative=void 0,p4.#relativePosix=void 0,p4=p4.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:fs12=defaultFS}={}){this.#fs=fsFromOption(fs12),(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 l2=len--;prev=prev.child(part,{relative:new Array(l2).fill("..").join(joinSep),relativePosix:new Array(l2).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 r2="";for(let i6=paths.length-1;i6>=0;i6--){let p4=paths[i6];if(!(!p4||p4===".")&&(r2=r2?`${p4}/${r2}`:p4,this.isAbsolute(p4)))break}let cached=this.#resolveCache.get(r2);if(cached!==void 0)return cached;let result=this.cwd.resolve(r2).fullpath();return this.#resolveCache.set(r2,result),result}resolvePosix(...paths){let r2="";for(let i6=paths.length-1;i6>=0;i6--){let p4=paths[i6];if(!(!p4||p4===".")&&(r2=r2?`${p4}/${r2}`:p4,this.isAbsolute(p4)))break}let cached=this.#resolvePosixCache.get(r2);if(cached!==void 0)return cached;let result=this.cwd.resolve(r2).fullpathPosix();return this.#resolvePosixCache.set(r2,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 p4=await entry.readdir();return withFileTypes?p4:p4.map(e2=>e2.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(e2=>e2.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 e2=await entry.readlink();return withFileTypes?e2:e2?.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 e2=entry.readlinkSync();return withFileTypes?e2:e2?.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 e2=await entry.realpath();return withFileTypes?e2:e2?.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 e2=entry.realpathSync();return withFileTypes?e2:e2?.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,cb2)=>{dirs.add(dir),dir.readdirCB((er3,entries2)=>{if(er3)return cb2(er3);let len=entries2.length;if(!len)return cb2();let next=()=>{--len===0&&cb2();};for(let e2 of entries2)(!filter2||filter2(e2))&&results.push(withFileTypes?e2:e2.fullpath()),follow&&e2.isSymbolicLink()?e2.realpath().then(r2=>r2?.isUnknown()?r2.lstat():r2).then(r2=>r2?.shouldWalk(dirs,walkFilter)?walk(r2,next):next()):e2.shouldWalk(dirs,walkFilter)?walk(e2,next):next();},!0);},start=entry;return new Promise((res,rej)=>{walk(start,er3=>{if(er3)return rej(er3);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 e2 of entries2){(!filter2||filter2(e2))&&results.push(withFileTypes?e2:e2.fullpath());let r2=e2;if(e2.isSymbolicLink()){if(!(follow&&(r2=e2.realpathSync())))continue;r2.isUnknown()&&r2.lstatSync();}r2.shouldWalk(dirs,walkFilter)&&dirs.add(r2);}}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 e2 of entries2){(!filter2||filter2(e2))&&(yield withFileTypes?e2:e2.fullpath());let r2=e2;if(e2.isSymbolicLink()){if(!(follow&&(r2=e2.realpathSync())))continue;r2.isUnknown()&&r2.lstatSync();}r2.shouldWalk(dirs,walkFilter)&&dirs.add(r2);}}}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=(er3,entries2,didRealpaths=!1)=>{if(er3)return results.emit("error",er3);if(follow&&!didRealpaths){let promises=[];for(let e2 of entries2)e2.isSymbolicLink()&&promises.push(e2.realpath().then(r2=>r2?.isUnknown()?r2.lstat():r2));if(promises.length){Promise.all(promises).then(()=>onReaddir(null,entries2,!0));return}}for(let e2 of entries2)e2&&(!filter2||filter2(e2))&&(results.write(withFileTypes?e2:e2.fullpath())||(paused=!0));processing--;for(let e2 of entries2){let r2=e2.realpathCached()||e2;r2.shouldWalk(dirs,walkFilter)&&queue.push(r2);}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 e2 of entries2)(!filter2||filter2(e2))&&(results.write(withFileTypes?e2:e2.fullpath())||(paused=!0));processing--;for(let e2 of entries2){let r2=e2;if(e2.isSymbolicLink()){if(!(follow&&(r2=e2.realpathSync())))continue;r2.isUnknown()&&r2.lstatSync();}r2.shouldWalk(dirs,walkFilter)&&queue.push(r2);}}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 p4=this.cwd;p4;p4=p4.parent)p4.nocase=this.nocase;}parseRootPath(dir){return win32.parse(dir).root.toUpperCase()}newRoot(fs12){return new PathWin32(this.rootPath,IFDIR,void 0,this.roots,this.nocase,this.childrenCache(),{fs:fs12})}isAbsolute(p4){return p4.startsWith("/")||p4.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(p4)}},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(fs12){return new PathPosix(this.rootPath,IFDIR,void 0,this.roots,this.nocase,this.childrenCache(),{fs:fs12})}isAbsolute(p4){return p4.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[p02,p1,p22,p33,...prest]=this.#patternList,[g02,g1,g2,g32,...grest]=this.#globList;prest[0]===""&&(prest.shift(),grest.shift());let p4=[p02,p1,p22,p33,""].join("/"),g=[g02,g1,g2,g32,""].join("/");this.#patternList=[p4,...prest],this.#globList=[g,...grest],this.length=this.#patternList.length;}else if(this.isDrive()||this.isAbsolute()){let[p1,...prest]=this.#patternList,[g1,...grest]=this.#globList;prest[0]===""&&(prest.shift(),grest.shift());let p4=p1+"/",g=g1+"/";this.#patternList=[p4,...prest],this.#globList=[g,...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 p4=this.#patternList[0];return typeof p4=="string"&&this.isAbsolute()&&this.#index===0?p4:""}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 mm3=new Minimatch(ign,this.mmopts);for(let i6=0;i6<mm3.set.length;i6++){let parsed=mm3.set[i6],globParts=mm3.globParts[i6];if(!parsed||!globParts)throw new Error("invalid pattern object");for(;parsed[0]==="."&&globParts[0]===".";)parsed.shift(),globParts.shift();let p4=new Pattern(parsed,globParts,0,this.platform),m4=new Minimatch(p4.globString(),this.mmopts),children=globParts[globParts.length-1]==="**",absolute=p4.isAbsolute();absolute?this.absolute.push(m4):this.relative.push(m4),children&&(absolute?this.absoluteChildren.push(m4):this.relativeChildren.push(m4));}}ignored(p4){let fullpath=p4.fullpath(),fullpaths=`${fullpath}/`,relative4=p4.relative()||".",relatives=`${relative4}/`;for(let m4 of this.relative)if(m4.match(relative4)||m4.match(relatives))return !0;for(let m4 of this.absolute)if(m4.match(fullpath)||m4.match(fullpaths))return !0;return !1}childrenIgnored(p4){let fullpath=p4.fullpath()+"/",relative4=(p4.relative()||".")+"/";for(let m4 of this.relativeChildren)if(m4.match(relative4))return !0;for(let m4 of this.absoluteChildren)if(m4.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 n2=(absolute?2:0)|(ifDir?1:0),current=this.store.get(target);this.store.set(target,current===void 0?n2:n2¤t);}entries(){return [...this.store.entries()].map(([path12,n2])=>[path12,!!(n2&2),!!(n2&1)])}},SubWalks=class{store=new Map;add(target,pattern){if(!target.canReaddir())return;let subs=this.store.get(target);subs?subs.find(p4=>p4.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(k6=>[k6,this.store.get(k6)])}keys(){return [...this.store.keys()].filter(t15=>t15.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(p4=>[target,p4]);for(let[t15,pattern]of processingSet){this.hasWalkedCache.storeWalked(t15,pattern);let root=pattern.root(),absolute=pattern.isAbsolute()&&this.opts.absolute!==!1;if(root){t15=t15.resolve(root==="/"&&this.opts.root!==void 0?this.opts.root:root);let rest2=pattern.rest();if(rest2)pattern=rest2;else {this.matches.add(t15,!0,!1);continue}}if(t15.isENOENT())continue;let p4,rest,changed=!1;for(;typeof(p4=pattern.pattern())=="string"&&(rest=pattern.rest());)t15=t15.resolve(p4),pattern=rest,changed=!0;if(p4=pattern.pattern(),rest=pattern.rest(),changed){if(this.hasWalkedCache.hasWalked(t15,pattern))continue;this.hasWalkedCache.storeWalked(t15,pattern);}if(typeof p4=="string"){let ifDir=p4===".."||p4===""||p4===".";this.matches.add(t15.resolve(p4),absolute,ifDir);continue}else if(p4===GLOBSTAR){(!t15.isSymbolicLink()||this.follow||pattern.checkFollowGlobstar())&&this.subwalks.add(t15,pattern);let rp=rest?.pattern(),rrest=rest?.rest();if(!rest||(rp===""||rp===".")&&!rrest)this.matches.add(t15,absolute,rp===""||rp===".");else if(rp===".."){let tp=t15.parent||t15;rrest?this.hasWalkedCache.hasWalked(tp,rrest)||this.subwalks.add(tp,rrest):this.matches.add(tp,absolute,!0);}}else p4 instanceof RegExp&&this.subwalks.add(t15,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 e2 of entries2)for(let pattern of patterns){let absolute=pattern.isAbsolute(),p4=pattern.pattern(),rest=pattern.rest();p4===GLOBSTAR?results.testGlobstar(e2,pattern,rest,absolute):p4 instanceof RegExp?results.testRegExp(e2,p4,rest,absolute):results.testString(e2,p4,rest,absolute);}return results}testGlobstar(e2,pattern,rest,absolute){if((this.dot||!e2.name.startsWith("."))&&(pattern.hasMore()||this.matches.add(e2,absolute,!1),e2.canReaddir()&&(this.follow||!e2.isSymbolicLink()?this.subwalks.add(e2,pattern):e2.isSymbolicLink()&&(rest&&pattern.checkFollowGlobstar()?this.subwalks.add(e2,rest):pattern.markFollowGlobstar()&&this.subwalks.add(e2,pattern)))),rest){let rp=rest.pattern();if(typeof rp=="string"&&rp!==".."&&rp!==""&&rp!==".")this.testString(e2,rp,rest.rest(),absolute);else if(rp===".."){let ep=e2.parent||e2;this.subwalks.add(ep,rest);}else rp instanceof RegExp&&this.testRegExp(e2,rp,rest.rest(),absolute);}}testRegExp(e2,p4,rest,absolute){p4.test(e2.name)&&(rest?this.subwalks.add(e2,rest):this.matches.add(e2,absolute,!1));}testString(e2,p4,rest,absolute){e2.isNamed(p4)&&(rest?this.subwalks.add(e2,rest):this.matches.add(e2,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 m4="cannot ignore child matches, ignore lacks add() method.";throw new Error(m4)}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 fn3;for(;!this.paused&&(fn3=this.#onResume.shift());)fn3();}onResume(fn3){this.signal?.aborted||(this.paused?this.#onResume.push(fn3):fn3());}async matchCheck(e2,ifDir){if(ifDir&&this.opts.nodir)return;let rpc;if(this.opts.realpath){if(rpc=e2.realpathCached()||await e2.realpath(),!rpc)return;e2=rpc;}let s5=e2.isUnknown()||this.opts.stat?await e2.lstat():e2;if(this.opts.follow&&this.opts.nodir&&s5?.isSymbolicLink()){let target=await s5.realpath();target&&(target.isUnknown()||this.opts.stat)&&await target.lstat();}return this.matchCheckTest(s5,ifDir)}matchCheckTest(e2,ifDir){return e2&&(this.maxDepth===1/0||e2.depth()<=this.maxDepth)&&(!ifDir||e2.canReaddir())&&(!this.opts.nodir||!e2.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e2.isSymbolicLink()||!e2.realpathCached()?.isDirectory())&&!this.#ignored(e2)?e2:void 0}matchCheckSync(e2,ifDir){if(ifDir&&this.opts.nodir)return;let rpc;if(this.opts.realpath){if(rpc=e2.realpathCached()||e2.realpathSync(),!rpc)return;e2=rpc;}let s5=e2.isUnknown()||this.opts.stat?e2.lstatSync():e2;if(this.opts.follow&&this.opts.nodir&&s5?.isSymbolicLink()){let target=s5.realpathSync();target&&(target?.isUnknown()||this.opts.stat)&&target.lstatSync();}return this.matchCheckTest(s5,ifDir)}matchFinish(e2,absolute){if(this.#ignored(e2))return;if(!this.includeChildMatches&&this.#ignore?.add){let ign=`${e2.relativePosix()}/**`;this.#ignore.add(ign);}let abs=this.opts.absolute===void 0?absolute:this.opts.absolute;this.seen.add(e2);let mark=this.opts.mark&&e2.isDirectory()?this.#sep:"";if(this.opts.withFileTypes)this.matchEmit(e2);else if(abs){let abs2=this.opts.posix?e2.fullpathPosix():e2.fullpath();this.matchEmit(abs2+mark);}else {let rel=this.opts.posix?e2.relativePosix():e2.relative(),pre=this.opts.dotRelative&&!rel.startsWith(".."+this.#sep)?"."+this.#sep:"";this.matchEmit(rel?pre+rel+mark:"."+mark);}}async match(e2,absolute,ifDir){let p4=await this.matchCheck(e2,ifDir);p4&&this.matchFinish(p4,absolute);}matchSync(e2,absolute,ifDir){let p4=this.matchCheckSync(e2,ifDir);p4&&this.matchFinish(p4,absolute);}walkCB(target,patterns,cb2){this.signal?.aborted&&cb2(),this.walkCB2(target,patterns,new Processor(this.opts),cb2);}walkCB2(target,patterns,processor,cb2){if(this.#childrenIgnored(target))return cb2();if(this.signal?.aborted&&cb2(),this.paused){this.onResume(()=>this.walkCB2(target,patterns,processor,cb2));return}processor.processPatterns(target,patterns);let tasks2=1,next=()=>{--tasks2===0&&cb2();};for(let[m4,absolute,ifDir]of processor.matches.entries())this.#ignored(m4)||(tasks2++,this.match(m4,absolute,ifDir).then(()=>next()));for(let t15 of processor.subwalkTargets()){if(this.maxDepth!==1/0&&t15.depth()>=this.maxDepth)continue;tasks2++;let childrenCached=t15.readdirCached();t15.calledReaddir()?this.walkCB3(t15,childrenCached,processor,next):t15.readdirCB((_6,entries2)=>this.walkCB3(t15,entries2,processor,next),!0);}next();}walkCB3(target,entries2,processor,cb2){processor=processor.filterEntries(target,entries2);let tasks2=1,next=()=>{--tasks2===0&&cb2();};for(let[m4,absolute,ifDir]of processor.matches.entries())this.#ignored(m4)||(tasks2++,this.match(m4,absolute,ifDir).then(()=>next()));for(let[target2,patterns]of processor.subwalks.entries())tasks2++,this.walkCB2(target2,patterns,processor.child(),next);next();}walkCBSync(target,patterns,cb2){this.signal?.aborted&&cb2(),this.walkCB2Sync(target,patterns,new Processor(this.opts),cb2);}walkCB2Sync(target,patterns,processor,cb2){if(this.#childrenIgnored(target))return cb2();if(this.signal?.aborted&&cb2(),this.paused){this.onResume(()=>this.walkCB2Sync(target,patterns,processor,cb2));return}processor.processPatterns(target,patterns);let tasks2=1,next=()=>{--tasks2===0&&cb2();};for(let[m4,absolute,ifDir]of processor.matches.entries())this.#ignored(m4)||this.matchSync(m4,absolute,ifDir);for(let t15 of processor.subwalkTargets()){if(this.maxDepth!==1/0&&t15.depth()>=this.maxDepth)continue;tasks2++;let children=t15.readdirSync();this.walkCB3Sync(t15,children,processor,next);}next();}walkCB3Sync(target,entries2,processor,cb2){processor=processor.filterEntries(target,entries2);let tasks2=1,next=()=>{--tasks2===0&&cb2();};for(let[m4,absolute,ifDir]of processor.matches.entries())this.#ignored(m4)||this.matchSync(m4,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(e2){this.matches.add(e2);}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(e2){this.results.write(e2),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(p4=>p4.replace(/\\/g,"/"))),this.matchBase){if(opts.noglobstar)throw new TypeError("base matching requires globstar");pattern=pattern.map(p4=>p4.includes("/")?p4:`./**/${p4}`);}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(p4=>new Minimatch(p4,mmo)),[matchSet,globParts]=mms.reduce((set2,m4)=>(set2[0].push(...m4.set),set2[1].push(...m4.globParts),set2),[[],[]]);this.patterns=matchSet.map((set2,i6)=>{let g=globParts[i6];if(!g)throw new Error("invalid pattern object");return new Pattern(set2,g,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 p4 of pattern)if(new Minimatch(p4,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(f7=>f7.startsWith(this.prefix)).map(f7=>rm$1(join(this.cache_dir,f7),{force:!0})));}clearSync(){readdirSync(this.cache_dir).filter(f7=>f7.startsWith(this.prefix)).forEach(f7=>rmSync(join(this.cache_dir,f7),{force:!0}));}async getAll(){let now=Date.now(),files=await readdir(this.cache_dir);return (await Promise.all(files.filter(f7=>f7.startsWith(this.prefix)).map(f7=>readFile(join(this.cache_dir,f7),"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(fn3,resolve9,args)=>{activeCount++;let result=(async()=>fn3(...args))();resolve9(result);try{await result;}catch{}next();},enqueue=(fn3,resolve9,args)=>{queue.enqueue(run.bind(void 0,fn3,resolve9,args)),(async()=>(await Promise.resolve(),activeCount<concurrency&&queue.size>0&&queue.dequeue()()))();},generator19=(fn3,...args)=>new Promise(resolve9=>{enqueue(fn3,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(je3.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?en2__default.statSync:en2__default.lstatSync;for(let path_ of paths)try{let stat3=statFunction(je3.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=je3.resolve(toPath2(options.cwd)||""),{root}=je3.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(je3.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=je3.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&&je3.dirname(filePath)}var{env,cwd}=Q,isWritable2=path12=>{try{return en2__default.accessSync(path12,en2__default.constants.W_OK),!0}catch{return !1}};function useDirectory(directory,options){return options.create&&en2__default.mkdirSync(directory,{recursive:!0}),directory}function getNodeModuleDirectory(directory){let nodeModules=je3.join(directory,"node_modules");if(!(!isWritable2(nodeModules)&&(en2__default.existsSync(nodeModules)||!isWritable2(je3.join(directory)))))return nodeModules}function findCacheDirectory(options={}){if(env.CACHE_DIR&&!["true","false","1","0"].includes(env.CACHE_DIR))return useDirectory(je3.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=>je3.resolve(directory,file)));}if(directory=packageDirectorySync({cwd:directory}),!(!directory||!getNodeModuleDirectory(directory)))return useDirectory(je3.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=je3.resolve(toPath3(options.cwd)??""),{root}=je3.parse(directory),stopAt=je3.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(je3.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=je3.dirname(directory);}return matches}function findUpMultipleSync2(name,options={}){let directory=je3.resolve(toPath3(options.cwd)??""),{root}=je3.parse(directory),stopAt=je3.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(je3.resolve(directory,foundPath)),directory===stopAt||matches.length>=limit))break;directory=je3.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;let result;if(process.env.STORYBOOK_PROJECT_ROOT)return process.env.STORYBOOK_PROJECT_ROOT;try{let found=findUpSync2(".git",{type:"directory"});found&&(result=join(found,".."));}catch{}try{let found=findUpSync2(".svn",{type:"directory"});found&&(result=result||join(found,".."));}catch{}try{let found=findUpSync2(".hg",{type:"directory"});found&&(result=result||join(found,".."));}catch{}try{let splitDirname=__dirname.split("node_modules"),isSplitDirnameReachable=!relative(splitDirname[0],process.cwd()).startsWith("..");result=result||(isSplitDirnameReachable&&splitDirname.length>=2?splitDirname[0]:void 0);}catch{}try{let found=findUpSync2(LOCK_FILES,{type:"file"});found&&(result=result||join(found,".."));}catch{}return projectRoot=result||process.cwd(),projectRoot},invalidateProjectRootCache=()=>{projectRoot=void 0;};var COMMON_ENV_VARS={COREPACK_ENABLE_STRICT:"0",COREPACK_ENABLE_AUTO_PIN:"0",NO_UPDATE_NOTIFIER:"true"};function getPackageDetails(pkg){let idx=pkg.lastIndexOf("@");if(idx<=0)return [pkg,void 0];let packageName=pkg.slice(0,idx),packageVersion=pkg.slice(idx+1);return [packageName,packageVersion]}var JsPackageManager=class _JsPackageManager{static{this.latestVersionCache=new Map;}static{this.installedVersionCache=new Map;}constructor(options){this.cwd=options?.cwd||process.cwd(),this.instanceDir=options?.configDir?isAbsolute(options?.configDir)?dirname(options?.configDir):dirname(join(this.cwd,options?.configDir)):this.cwd,this.packageJsonPaths=_JsPackageManager.listAllPackageJsonPaths(this.instanceDir,options?.storiesPaths),this.primaryPackageJson=this.#getPrimaryPackageJson();}isStorybookInMonorepo(){let turboJsonPath=findUpSync2("turbo.json",{stopAt:getProjectRoot()}),rushJsonPath=findUpSync2("rush.json",{stopAt:getProjectRoot()}),nxJsonPath=findUpSync2("nx.json",{stopAt:getProjectRoot()});if(turboJsonPath||rushJsonPath||nxJsonPath)return !0;let packageJsonPaths=findUpMultipleSync2("package.json",{stopAt:getProjectRoot()});if(packageJsonPaths.length===0)return !1;for(let packageJsonPath of packageJsonPaths){let packageJsonFile=readFileSync(packageJsonPath,"utf8");if(JSON.parse(packageJsonFile).workspaces)return !0}return !1}async installDependencies(options){await sE.executeTask(()=>this.runInstall(options),{id:"install-dependencies",intro:"Installing dependencies...",error:"An error occurred while installing dependencies.",success:"Dependencies installed"}),this.clearInstalledVersionCache();}async dedupeDependencies(options){await sE.executeTask(()=>this.runInternalCommand("dedupe",[...options?.force?["--force"]:[]],this.cwd),{id:"dedupe-dependencies",intro:"Deduplicating dependencies...",error:"An error occurred while deduplicating dependencies.",success:"Dependencies deduplicated"}),this.clearInstalledVersionCache();}static getPackageJson(packageJsonPath){let jsonContent=readFileSync(packageJsonPath,"utf8"),packageJSON=JSON.parse(jsonContent);return {...packageJSON,dependencies:{...packageJSON.dependencies},devDependencies:{...packageJSON.devDependencies},peerDependencies:{...packageJSON.peerDependencies}}}writePackageJson(packageJson,directory=this.cwd){let packageJsonToWrite={...packageJson};["dependencies","devDependencies","peerDependencies"].forEach(type=>{packageJsonToWrite[type]&&Object.keys(packageJsonToWrite[type]).length===0&&delete packageJsonToWrite[type];});let content=`${JSON.stringify(packageJsonToWrite,null,2)}
|
1680
1680
|
`;writeFileSync(resolve(directory,"package.json"),content,"utf8");}getAllDependencies(){let allDependencies={};for(let packageJsonPath of this.packageJsonPaths){let packageJson=_JsPackageManager.getPackageJson(packageJsonPath),{dependencies,devDependencies,peerDependencies}=packageJson;Object.assign(allDependencies,dependencies,devDependencies,peerDependencies);}return allDependencies}isDependencyInstalled(dependency){return Object.keys(this.getAllDependencies()).includes(dependency)}async addDependencies(options,dependencies){let{skipInstall,writeOutputToFile=!0,packageJsonInfo=this.primaryPackageJson}=options;if(skipInstall){let{operationDir,packageJson}=packageJsonInfo,dependenciesMap={};for(let dep of dependencies){let[packageName,packageVersion]=getPackageDetails(dep),latestVersion=await this.getVersion(packageName);dependenciesMap[packageName]=packageVersion??latestVersion;}let targetDeps=packageJson[options.type];Object.assign(targetDeps,dependenciesMap),this.writePackageJson(packageJson,operationDir);}else try{let result=this.runAddDeps(dependencies,options.type==="devDependencies",writeOutputToFile);return this.clearInstalledVersionCache(),result}catch(e2){throw nE.error(`
|
@@ -1723,7 +1723,7 @@ We were not able to detect the right builder for your project. Please select one
|
|
1723
1723
|
`)});}n2[0]=n2[0].replace(/^\r?\n/,"");var a5=n2[0];return e2.forEach(function(c5,l2){var p4=a5.match(/(?:^|\n)( *)$/),f7=p4?p4[1]:"",b2=c5;typeof c5=="string"&&c5.includes(`
|
1724
1724
|
`)&&(b2=String(c5).split(`
|
1725
1725
|
`).map(function(w2,_6){return _6===0?w2:""+f7+w2}).join(`
|
1726
|
-
`)),a5+=b2+n2[l2+1];}),a5}i5($n,"dedent"),$e3.dedent=$n,$e3.default=$n;}),Jn=I5((kp2,Kn2)=>{Kn2.exports=zn2,zn2.sync=lc2;var qn2=N4("fs");function uc(t15,e2){var r2=e2.pathExt!==void 0?e2.pathExt:process.env.PATHEXT;if(!r2||(r2=r2.split(";"),r2.indexOf("")!==-1))return !0;for(var n2=0;n2<r2.length;n2++){var s5=r2[n2].toLowerCase();if(s5&&t15.substr(-s5.length).toLowerCase()===s5)return !0}return !1}i5(uc,"checkPathExt");function Gn(t15,e2,r2){return !t15.isSymbolicLink()&&!t15.isFile()?!1:uc(e2,r2)}i5(Gn,"checkStat");function zn2(t15,e2,r2){qn2.stat(t15,function(n2,s5){r2(n2,n2?!1:Gn(s5,t15,e2));});}i5(zn2,"isexe");function lc2(t15,e2){return Gn(qn2.statSync(t15),t15,e2)}i5(lc2,"sync");}),es4=I5((Ip2,Qn2)=>{Qn2.exports=Yn2,Yn2.sync=pc2;var Hn=N4("fs");function Yn2(t15,e2,r2){Hn.stat(t15,function(n2,s5){r2(n2,n2?!1:Xn2(s5,e2));});}i5(Yn2,"isexe");function pc2(t15,e2){return Xn2(Hn.statSync(t15),e2)}i5(pc2,"sync");function Xn2(t15,e2){return t15.isFile()&&fc(t15,e2)}i5(Xn2,"checkStat");function fc(t15,e2){var r2=t15.mode,n2=t15.uid,s5=t15.gid,o5=e2.uid!==void 0?e2.uid:process.getuid&&process.getuid(),a5=e2.gid!==void 0?e2.gid:process.getgid&&process.getgid(),c5=parseInt("100",8),l2=parseInt("010",8),p4=parseInt("001",8),f7=c5|l2,b2=r2&p4||r2&l2&&s5===a5||r2&c5&&n2===o5||r2&f7&&o5===0;return b2}i5(fc,"checkMode");}),rs=I5((Cp2,ts)=>{N4("fs");var ht;process.platform==="win32"||global.TESTING_WINDOWS?ht=Jn():ht=es4(),ts.exports=rr3,rr3.sync=mc;function rr3(t15,e2,r2){if(typeof e2=="function"&&(r2=e2,e2={}),!r2){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n2,s5){rr3(t15,e2||{},function(o5,a5){o5?s5(o5):n2(a5);});})}ht(t15,e2||{},function(n2,s5){n2&&(n2.code==="EACCES"||e2&&e2.ignoreErrors)&&(n2=null,s5=!1),r2(n2,s5);});}i5(rr3,"isexe");function mc(t15,e2){try{return ht.sync(t15,e2||{})}catch(r2){if(e2&&e2.ignoreErrors||r2.code==="EACCES")return !1;throw r2}}i5(mc,"sync");}),ds2=I5((Ap2,cs)=>{var Ce=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ns=N4("path"),hc2=Ce?";":":",ss=rs(),os6=i5(t15=>Object.assign(new Error(`not found: ${t15}`),{code:"ENOENT"}),"getNotFoundError"),is2=i5((t15,e2)=>{let r2=e2.colon||hc2,n2=t15.match(/\//)||Ce&&t15.match(/\\/)?[""]:[...Ce?[process.cwd()]:[],...(e2.path||process.env.PATH||"").split(r2)],s5=Ce?e2.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o5=Ce?s5.split(r2):[""];return Ce&&t15.indexOf(".")!==-1&&o5[0]!==""&&o5.unshift(""),{pathEnv:n2,pathExt:o5,pathExtExe:s5}},"getPathInfo"),as=i5((t15,e2,r2)=>{typeof e2=="function"&&(r2=e2,e2={}),e2||(e2={});let{pathEnv:n2,pathExt:s5,pathExtExe:o5}=is2(t15,e2),a5=[],c5=i5(p4=>new Promise((f7,b2)=>{if(p4===n2.length)return e2.all&&a5.length?f7(a5):b2(os6(t15));let w2=n2[p4],_6=/^".*"$/.test(w2)?w2.slice(1,-1):w2,C4=ns.join(_6,t15),S5=!_6&&/^\.[\\\/]/.test(t15)?t15.slice(0,2)+C4:C4;f7(l2(S5,p4,0));}),"step"),l2=i5((p4,f7,b2)=>new Promise((w2,_6)=>{if(b2===s5.length)return w2(c5(f7+1));let C4=s5[b2];ss(p4+C4,{pathExt:o5},(S5,P10)=>{if(!S5&&P10)if(e2.all)a5.push(p4+C4);else return w2(p4+C4);return w2(l2(p4,f7,b2+1))});}),"subStep");return r2?c5(0).then(p4=>r2(null,p4),r2):c5(0)},"which"),yc2=i5((t15,e2)=>{e2=e2||{};let{pathEnv:r2,pathExt:n2,pathExtExe:s5}=is2(t15,e2),o5=[];for(let a5=0;a5<r2.length;a5++){let c5=r2[a5],l2=/^".*"$/.test(c5)?c5.slice(1,-1):c5,p4=ns.join(l2,t15),f7=!l2&&/^\.[\\\/]/.test(t15)?t15.slice(0,2)+p4:p4;for(let b2=0;b2<n2.length;b2++){let w2=f7+n2[b2];try{if(ss.sync(w2,{pathExt:s5}))if(e2.all)o5.push(w2);else return w2}catch{}}}if(e2.all&&o5.length)return o5;if(e2.nothrow)return null;throw os6(t15)},"whichSync");cs.exports=as,as.sync=yc2;}),ls=I5((jp2,nr2)=>{var us=i5((t15={})=>{let e2=t15.env||process.env;return (t15.platform||process.platform)!=="win32"?"PATH":Object.keys(e2).reverse().find(n2=>n2.toUpperCase()==="PATH")||"Path"},"pathKey");nr2.exports=us,nr2.exports.default=us;}),hs=I5((Np2,ms)=>{var ps=N4("path"),gc2=ds2(),bc2=ls();function fs12(t15,e2){let r2=t15.options.env||process.env,n2=process.cwd(),s5=t15.options.cwd!=null,o5=s5&&process.chdir!==void 0&&!process.chdir.disabled;if(o5)try{process.chdir(t15.options.cwd);}catch{}let a5;try{a5=gc2.sync(t15.command,{path:r2[bc2({env:r2})],pathExt:e2?ps.delimiter:void 0});}catch{}finally{o5&&process.chdir(n2);}return a5&&(a5=ps.resolve(s5?t15.options.cwd:"",a5)),a5}i5(fs12,"resolveCommandAttempt");function xc(t15){return fs12(t15)||fs12(t15,!0)}i5(xc,"resolveCommand"),ms.exports=xc;}),ys2=I5((Mp2,or)=>{var sr=/([()\][%!^"`<>&|;, *?])/g;function vc2(t15){return t15=t15.replace(sr,"^$1"),t15}i5(vc2,"escapeCommand");function _c2(t15,e2){return t15=`${t15}`,t15=t15.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t15=t15.replace(/(?=(\\+?)?)\1$/,"$1$1"),t15=`"${t15}"`,t15=t15.replace(sr,"^$1"),e2&&(t15=t15.replace(sr,"^$1")),t15}i5(_c2,"escapeArgument"),or.exports.command=vc2,or.exports.argument=_c2;}),bs2=I5((Lp2,gs)=>{gs.exports=/^#!(.*)/;}),vs3=I5((Up3,xs2)=>{var wc2=bs2();xs2.exports=(t15="")=>{let e2=t15.match(wc2);if(!e2)return null;let[r2,n2]=e2[0].replace(/#! ?/,"").split(" "),s5=r2.split("/").pop();return s5==="env"?n2:n2?`${s5} ${n2}`:s5};}),ws=I5(($p2,_s2)=>{var ir3=N4("fs"),kc2=vs3();function Tc(t15){let r2=Buffer.alloc(150),n2;try{n2=ir3.openSync(t15,"r"),ir3.readSync(n2,r2,0,150,0),ir3.closeSync(n2);}catch{}return kc2(r2.toString())}i5(Tc,"readShebang"),_s2.exports=Tc;}),Ss2=I5((Fp2,Is)=>{var Ic=N4("path"),ks2=hs(),Ts2=ys2(),Sc=ws(),Ec=process.platform==="win32",Cc2=/\.(?:com|exe)$/i,Pc=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ac(t15){t15.file=ks2(t15);let e2=t15.file&&Sc(t15.file);return e2?(t15.args.unshift(t15.file),t15.command=e2,ks2(t15)):t15.file}i5(Ac,"detectShebang");function Oc3(t15){if(!Ec)return t15;let e2=Ac(t15),r2=!Cc2.test(e2);if(t15.options.forceShell||r2){let n2=Pc.test(e2);t15.command=Ic.normalize(t15.command),t15.command=Ts2.command(t15.command),t15.args=t15.args.map(o5=>Ts2.argument(o5,n2));let s5=[t15.command].concat(t15.args).join(" ");t15.args=["/d","/s","/c",`"${s5}"`],t15.command=process.env.comspec||"cmd.exe",t15.options.windowsVerbatimArguments=!0;}return t15}i5(Oc3,"parseNonShell");function jc(t15,e2,r2){e2&&!Array.isArray(e2)&&(r2=e2,e2=null),e2=e2?e2.slice(0):[],r2=Object.assign({},r2);let n2={command:t15,args:e2,options:r2,file:void 0,original:{command:t15,args:e2}};return r2.shell?n2:Oc3(n2)}i5(jc,"parse"),Is.exports=jc;}),Ps2=I5((Wp2,Cs)=>{var ar=process.platform==="win32";function cr(t15,e2){return Object.assign(new Error(`${e2} ${t15.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e2} ${t15.command}`,path:t15.command,spawnargs:t15.args})}i5(cr,"notFoundError");function Rc(t15,e2){if(!ar)return;let r2=t15.emit;t15.emit=function(n2,s5){if(n2==="exit"){let o5=Es2(s5,e2);if(o5)return r2.call(t15,"error",o5)}return r2.apply(t15,arguments)};}i5(Rc,"hookChildProcess");function Es2(t15,e2){return ar&&t15===1&&!e2.file?cr(e2.original,"spawn"):null}i5(Es2,"verifyENOENT");function Nc2(t15,e2){return ar&&t15===1&&!e2.file?cr(e2.original,"spawnSync"):null}i5(Nc2,"verifyENOENTSync"),Cs.exports={hookChildProcess:Rc,verifyENOENT:Es2,verifyENOENTSync:Nc2,notFoundError:cr};}),js3=I5((Gp2,Pe2)=>{var As2=N4("child_process"),dr2=Ss2(),ur=Ps2();function Os2(t15,e2,r2){let n2=dr2(t15,e2,r2),s5=As2.spawn(n2.command,n2.args,n2.options);return ur.hookChildProcess(s5,n2),s5}i5(Os2,"spawn");function Zc(t15,e2,r2){let n2=dr2(t15,e2,r2),s5=As2.spawnSync(n2.command,n2.args,n2.options);return s5.error=s5.error||ur.verifyENOENTSync(s5.status,n2),s5}i5(Zc,"spawnSync"),Pe2.exports=Os2,Pe2.exports.spawn=Os2,Pe2.exports.sync=Zc,Pe2.exports._parse=dr2,Pe2.exports._enoent=ur;}),oo2=I5((xm2,so)=>{var{PassThrough:Rd3}=N4("stream");so.exports=function(){var t15=[],e2=new Rd3({objectMode:!0});return e2.setMaxListeners(0),e2.add=r2,e2.isEmpty=n2,e2.on("unpipe",s5),Array.prototype.slice.call(arguments).forEach(r2),e2;function r2(o5){return Array.isArray(o5)?(o5.forEach(r2),this):(t15.push(o5),o5.once("end",s5.bind(null,o5)),o5.once("error",e2.emit.bind(e2,"error")),o5.pipe(e2,{end:!1}),this)}function n2(){return t15.length==0}function s5(o5){t15=t15.filter(function(a5){return a5!==o5}),!t15.length&&e2.readable&&e2.end();}};});function Mr2(t15){return t15.startsWith("\\\\?\\")?t15:t15.replace(/\\/g,"/")}var So2=vi2(()=>{i5(Mr2,"slash");}),Ro2=I5((hh2,jo)=>{var{sep:du4}=N4("path"),uu4=i5(t15=>{for(let e2 of t15){let r2=/(\/|\\)/.exec(e2);if(r2!==null)return r2[0]}return du4},"determineSeparator");jo.exports=i5(function(e2,r2=uu4(e2)){let[n2="",...s5]=e2;if(n2===""||s5.length===0)return "";let o5=n2.split(r2),a5=o5.length;for(let l2 of s5){let p4=l2.split(r2);for(let f7=0;f7<a5;f7++)p4[f7]!==o5[f7]&&(a5=f7);if(a5===0)return ""}let c5=o5.slice(0,a5).join(r2);return c5.endsWith(r2)?c5:c5+r2},"commonPathPrefix");}),ni3=I5((Gg2,ri4)=>{ri4.exports=function(t15,e2){if(e2=e2||{},typeof t15!="function")throw new X9("fetch must be a function");if(typeof e2!="object")throw new X9("defaults must be an object");if(e2.retries!==void 0&&!Dt2(e2.retries))throw new X9("retries must be a positive integer");if(e2.retryDelay!==void 0&&!Dt2(e2.retryDelay)&&typeof e2.retryDelay!="function")throw new X9("retryDelay must be a positive integer or a function returning a positive integer");if(e2.retryOn!==void 0&&!Array.isArray(e2.retryOn)&&typeof e2.retryOn!="function")throw new X9("retryOn property expects an array or function");var r2={retries:3,retryDelay:1e3,retryOn:[]};return e2=Object.assign(r2,e2),i5(function(s5,o5){var a5=e2.retries,c5=e2.retryDelay,l2=e2.retryOn;if(o5&&o5.retries!==void 0)if(Dt2(o5.retries))a5=o5.retries;else throw new X9("retries must be a positive integer");if(o5&&o5.retryDelay!==void 0)if(Dt2(o5.retryDelay)||typeof o5.retryDelay=="function")c5=o5.retryDelay;else throw new X9("retryDelay must be a positive integer or a function returning a positive integer");if(o5&&o5.retryOn)if(Array.isArray(o5.retryOn)||typeof o5.retryOn=="function")l2=o5.retryOn;else throw new X9("retryOn property expects an array or function");return new Promise(function(p4,f7){var b2=i5(function(_6){var C4=typeof Request<"u"&&s5 instanceof Request?s5.clone():s5;t15(C4,o5).then(function(S5){if(Array.isArray(l2)&&l2.indexOf(S5.status)===-1)p4(S5);else if(typeof l2=="function")try{return Promise.resolve(l2(_6,null,S5)).then(function(P10){P10?w2(_6,null,S5):p4(S5);}).catch(f7)}catch(P10){f7(P10);}else _6<a5?w2(_6,null,S5):p4(S5);}).catch(function(S5){if(typeof l2=="function")try{Promise.resolve(l2(_6,S5,null)).then(function(P10){P10?w2(_6,S5,null):f7(S5);}).catch(function(P10){f7(P10);});}catch(P10){f7(P10);}else _6<a5?w2(_6,S5,null):f7(S5);});},"wrappedFetch");function w2(_6,C4,S5){var P10=typeof c5=="function"?c5(_6,C4,S5):c5;setTimeout(function(){b2(++_6);},P10);}i5(w2,"retry"),b2(0);})},"fetchRetry")};function Dt2(t15){return Number.isInteger(t15)&&t15>=0}i5(Dt2,"isPositiveInteger");function X9(t15){this.name="ArgumentError",this.message=t15;}i5(X9,"ArgumentError");}),rn3=z6(Qr2(),1),tn2="telemetry-notification-date",nn3=i5(async()=>{await Oj.get(tn2,null)||(Oj.set(tn2,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(rn3.default.cyan("https://storybook.js.org/telemetry")),nE.log(""));},"notify");function sn3(t15){return t15.replace(/[-[/{}()*+?.\\^$|]/g,"\\$&")}i5(sn3,"regexpEscape");function on4(t15=""){return t15.replace(/\u001B\[[0-9;]*m/g,"")}i5(on4,"removeAnsiEscapeCodes");function Re4(t15,e2=je3.sep){if(!t15)return t15;let r2=process.cwd().split(e2);for(;r2.length>1;){let n2=r2.join(e2),s5=new RegExp(sn3(n2),"gi");t15=t15.replace(s5,"$SNIP");let o5=r2.join(e2+e2),a5=new RegExp(sn3(o5),"gi");t15=t15.replace(a5,"$SNIP"),r2.pop();}return t15}i5(Re4,"cleanPaths");function tt(t15,e2=je3.sep){try{t15={...JSON.parse(JSON.stringify(t15)),message:on4(t15.message),stack:on4(t15.stack),cause:t15.cause,name:t15.name};let r2=Re4(JSON.stringify(t15),e2);return JSON.parse(r2)}catch(r2){return `Sanitization error: ${r2?.message}`}}i5(tt,"sanitizeError");var un3=z6(dn3(),1);async function Ai(t15){try{return (await stat(t15)).isFile()}catch{return !1}}i5(Ai,"fileExists");async function Ft2(t15){for(let e2 of (0, un3.walkUp)(t15)){let r2=resolve(e2,"package.json");if(await Ai(r2))return r2}return null}i5(Ft2,"findPackagePath");async function ln3(t15){let e2=await Ft2(t15);if(!e2)return null;try{let r2=await readFile(e2,{encoding:"utf8"});return JSON.parse(r2)}catch{return null}}i5(ln3,"findPackage");var pn3=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],Bt2={"bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},Wt={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function qt(t15,e2){try{let r2=await fs4__default.stat(t15);return e2==="file"?r2.isFile():r2.isDirectory()}catch{return !1}}i5(qt,"pathExists");function*ji(t15=Q.cwd()){let e2=je3.resolve(t15),{root:r2}=je3.parse(e2);for(;e2&&e2!==r2;)yield e2,e2=je3.dirname(e2);}i5(ji,"lookup");async function fn2(t15,e2){return !t15||!qt(t15,"file")?null:await Ni2(t15,e2)}i5(fn2,"parsePackageJson");async function Gt(t15={}){let{cwd:e2,strategies:r2=["lockfile","packageManager-field","devEngines-field"],onUnknown:n2}=t15;for(let s5 of ji(e2))for(let o5 of r2)switch(o5){case"lockfile":{for(let a5 of Object.keys(Bt2))if(await qt(je3.join(s5,a5),"file")){let c5=Bt2[a5];return await fn2(je3.join(s5,"package.json"),n2)||{name:c5,agent:c5}}break}case"packageManager-field":case"devEngines-field":{let a5=await fn2(je3.join(s5,"package.json"),n2);if(a5)return a5;break}case"install-metadata":{for(let a5 of Object.keys(Wt)){let c5=a5.endsWith("/")?"dir":"file";if(await qt(je3.join(s5,a5),c5)){let l2=Wt[a5],p4=l2==="yarn"?Zi(a5)?"yarn":"yarn@berry":l2;return {name:l2,agent:p4}}}break}}return null}i5(Gt,"detect");function Ri2(t15){let e2=i5(r2=>r2?.match(/\d+(\.\d+){0,2}/)?.[0]??r2,"handelVer");if(typeof t15.packageManager=="string"){let[r2,n2]=t15.packageManager.replace(/^\^/,"").split("@");return {name:r2,ver:e2(n2)}}if(typeof t15.devEngines?.packageManager?.name=="string")return {name:t15.devEngines.packageManager.name,ver:e2(t15.devEngines.packageManager.version)}}i5(Ri2,"getNameAndVer");async function Ni2(t15,e2){try{let r2=JSON.parse(await fs4__default.readFile(t15,"utf8")),n2,s5=Ri2(r2);if(s5){let o5=s5.name,a5=s5.ver,c5=a5;return o5==="yarn"&&a5&&Number.parseInt(a5)>1?(n2="yarn@berry",c5="berry",{name:o5,agent:n2,version:c5}):o5==="pnpm"&&a5&&Number.parseInt(a5)<7?(n2="pnpm@6",{name:o5,agent:n2,version:c5}):pn3.includes(o5)?(n2=o5,{name:o5,agent:n2,version:c5}):e2?.(r2.packageManager)??null}}catch{}return null}i5(Ni2,"handlePackageManager");function Zi(t15){return t15.endsWith(".yarn_integrity")}i5(Zi,"isMetadataYarnClassic");var nt4="9.0.15",Ee2=z6(Un3(),1),Bn2=z6(Vn(),1);function Fn2({code:t15,category:e2}){let r2=String(t15).padStart(4,"0");return `SB_${e2}_${r2}`}i5(Fn2,"parseErrorCode");var pt2=class t14 extends Error{constructor(r2){super(t14.getFullMessage(r2)),this.data={},this.fromStorybook=!0,this.category=r2.category,this.documentation=r2.documentation??!1,this.code=r2.code;}static{i5(this,"StorybookError");}get fullErrorCode(){return Fn2({code:this.code,category:this.category})}get name(){let r2=this.constructor.name;return `${this.fullErrorCode} (${r2})`}static getFullMessage({documentation:r2,code:n2,category:s5,message:o5}){let a5;return r2===!0?a5=`https://storybook.js.org/error/${Fn2({code:n2,category:s5})}`:typeof r2=="string"?a5=r2:Array.isArray(r2)&&(a5=`
|
1726
|
+
`)),a5+=b2+n2[l2+1];}),a5}i5($n,"dedent"),$e3.dedent=$n,$e3.default=$n;}),Jn=I5((kp2,Kn2)=>{Kn2.exports=zn2,zn2.sync=lc2;var qn2=N4("fs");function uc(t15,e2){var r2=e2.pathExt!==void 0?e2.pathExt:process.env.PATHEXT;if(!r2||(r2=r2.split(";"),r2.indexOf("")!==-1))return !0;for(var n2=0;n2<r2.length;n2++){var s5=r2[n2].toLowerCase();if(s5&&t15.substr(-s5.length).toLowerCase()===s5)return !0}return !1}i5(uc,"checkPathExt");function Gn(t15,e2,r2){return !t15.isSymbolicLink()&&!t15.isFile()?!1:uc(e2,r2)}i5(Gn,"checkStat");function zn2(t15,e2,r2){qn2.stat(t15,function(n2,s5){r2(n2,n2?!1:Gn(s5,t15,e2));});}i5(zn2,"isexe");function lc2(t15,e2){return Gn(qn2.statSync(t15),t15,e2)}i5(lc2,"sync");}),es4=I5((Ip2,Qn2)=>{Qn2.exports=Yn2,Yn2.sync=pc2;var Hn=N4("fs");function Yn2(t15,e2,r2){Hn.stat(t15,function(n2,s5){r2(n2,n2?!1:Xn2(s5,e2));});}i5(Yn2,"isexe");function pc2(t15,e2){return Xn2(Hn.statSync(t15),e2)}i5(pc2,"sync");function Xn2(t15,e2){return t15.isFile()&&fc(t15,e2)}i5(Xn2,"checkStat");function fc(t15,e2){var r2=t15.mode,n2=t15.uid,s5=t15.gid,o5=e2.uid!==void 0?e2.uid:process.getuid&&process.getuid(),a5=e2.gid!==void 0?e2.gid:process.getgid&&process.getgid(),c5=parseInt("100",8),l2=parseInt("010",8),p4=parseInt("001",8),f7=c5|l2,b2=r2&p4||r2&l2&&s5===a5||r2&c5&&n2===o5||r2&f7&&o5===0;return b2}i5(fc,"checkMode");}),rs=I5((Cp2,ts)=>{N4("fs");var ht;process.platform==="win32"||global.TESTING_WINDOWS?ht=Jn():ht=es4(),ts.exports=rr3,rr3.sync=mc;function rr3(t15,e2,r2){if(typeof e2=="function"&&(r2=e2,e2={}),!r2){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n2,s5){rr3(t15,e2||{},function(o5,a5){o5?s5(o5):n2(a5);});})}ht(t15,e2||{},function(n2,s5){n2&&(n2.code==="EACCES"||e2&&e2.ignoreErrors)&&(n2=null,s5=!1),r2(n2,s5);});}i5(rr3,"isexe");function mc(t15,e2){try{return ht.sync(t15,e2||{})}catch(r2){if(e2&&e2.ignoreErrors||r2.code==="EACCES")return !1;throw r2}}i5(mc,"sync");}),ds2=I5((Ap2,cs)=>{var Ce=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ns=N4("path"),hc2=Ce?";":":",ss=rs(),os6=i5(t15=>Object.assign(new Error(`not found: ${t15}`),{code:"ENOENT"}),"getNotFoundError"),is2=i5((t15,e2)=>{let r2=e2.colon||hc2,n2=t15.match(/\//)||Ce&&t15.match(/\\/)?[""]:[...Ce?[process.cwd()]:[],...(e2.path||process.env.PATH||"").split(r2)],s5=Ce?e2.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o5=Ce?s5.split(r2):[""];return Ce&&t15.indexOf(".")!==-1&&o5[0]!==""&&o5.unshift(""),{pathEnv:n2,pathExt:o5,pathExtExe:s5}},"getPathInfo"),as=i5((t15,e2,r2)=>{typeof e2=="function"&&(r2=e2,e2={}),e2||(e2={});let{pathEnv:n2,pathExt:s5,pathExtExe:o5}=is2(t15,e2),a5=[],c5=i5(p4=>new Promise((f7,b2)=>{if(p4===n2.length)return e2.all&&a5.length?f7(a5):b2(os6(t15));let w2=n2[p4],_6=/^".*"$/.test(w2)?w2.slice(1,-1):w2,C4=ns.join(_6,t15),S5=!_6&&/^\.[\\\/]/.test(t15)?t15.slice(0,2)+C4:C4;f7(l2(S5,p4,0));}),"step"),l2=i5((p4,f7,b2)=>new Promise((w2,_6)=>{if(b2===s5.length)return w2(c5(f7+1));let C4=s5[b2];ss(p4+C4,{pathExt:o5},(S5,P10)=>{if(!S5&&P10)if(e2.all)a5.push(p4+C4);else return w2(p4+C4);return w2(l2(p4,f7,b2+1))});}),"subStep");return r2?c5(0).then(p4=>r2(null,p4),r2):c5(0)},"which"),yc2=i5((t15,e2)=>{e2=e2||{};let{pathEnv:r2,pathExt:n2,pathExtExe:s5}=is2(t15,e2),o5=[];for(let a5=0;a5<r2.length;a5++){let c5=r2[a5],l2=/^".*"$/.test(c5)?c5.slice(1,-1):c5,p4=ns.join(l2,t15),f7=!l2&&/^\.[\\\/]/.test(t15)?t15.slice(0,2)+p4:p4;for(let b2=0;b2<n2.length;b2++){let w2=f7+n2[b2];try{if(ss.sync(w2,{pathExt:s5}))if(e2.all)o5.push(w2);else return w2}catch{}}}if(e2.all&&o5.length)return o5;if(e2.nothrow)return null;throw os6(t15)},"whichSync");cs.exports=as,as.sync=yc2;}),ls=I5((jp2,nr2)=>{var us=i5((t15={})=>{let e2=t15.env||process.env;return (t15.platform||process.platform)!=="win32"?"PATH":Object.keys(e2).reverse().find(n2=>n2.toUpperCase()==="PATH")||"Path"},"pathKey");nr2.exports=us,nr2.exports.default=us;}),hs=I5((Np2,ms)=>{var ps=N4("path"),gc2=ds2(),bc2=ls();function fs12(t15,e2){let r2=t15.options.env||process.env,n2=process.cwd(),s5=t15.options.cwd!=null,o5=s5&&process.chdir!==void 0&&!process.chdir.disabled;if(o5)try{process.chdir(t15.options.cwd);}catch{}let a5;try{a5=gc2.sync(t15.command,{path:r2[bc2({env:r2})],pathExt:e2?ps.delimiter:void 0});}catch{}finally{o5&&process.chdir(n2);}return a5&&(a5=ps.resolve(s5?t15.options.cwd:"",a5)),a5}i5(fs12,"resolveCommandAttempt");function xc(t15){return fs12(t15)||fs12(t15,!0)}i5(xc,"resolveCommand"),ms.exports=xc;}),ys2=I5((Mp2,or)=>{var sr=/([()\][%!^"`<>&|;, *?])/g;function vc2(t15){return t15=t15.replace(sr,"^$1"),t15}i5(vc2,"escapeCommand");function _c2(t15,e2){return t15=`${t15}`,t15=t15.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t15=t15.replace(/(?=(\\+?)?)\1$/,"$1$1"),t15=`"${t15}"`,t15=t15.replace(sr,"^$1"),e2&&(t15=t15.replace(sr,"^$1")),t15}i5(_c2,"escapeArgument"),or.exports.command=vc2,or.exports.argument=_c2;}),bs2=I5((Lp2,gs)=>{gs.exports=/^#!(.*)/;}),vs3=I5((Up3,xs2)=>{var wc2=bs2();xs2.exports=(t15="")=>{let e2=t15.match(wc2);if(!e2)return null;let[r2,n2]=e2[0].replace(/#! ?/,"").split(" "),s5=r2.split("/").pop();return s5==="env"?n2:n2?`${s5} ${n2}`:s5};}),ws=I5(($p2,_s2)=>{var ir3=N4("fs"),kc2=vs3();function Tc(t15){let r2=Buffer.alloc(150),n2;try{n2=ir3.openSync(t15,"r"),ir3.readSync(n2,r2,0,150,0),ir3.closeSync(n2);}catch{}return kc2(r2.toString())}i5(Tc,"readShebang"),_s2.exports=Tc;}),Ss2=I5((Fp2,Is)=>{var Ic=N4("path"),ks2=hs(),Ts2=ys2(),Sc=ws(),Ec=process.platform==="win32",Cc2=/\.(?:com|exe)$/i,Pc=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ac(t15){t15.file=ks2(t15);let e2=t15.file&&Sc(t15.file);return e2?(t15.args.unshift(t15.file),t15.command=e2,ks2(t15)):t15.file}i5(Ac,"detectShebang");function Oc3(t15){if(!Ec)return t15;let e2=Ac(t15),r2=!Cc2.test(e2);if(t15.options.forceShell||r2){let n2=Pc.test(e2);t15.command=Ic.normalize(t15.command),t15.command=Ts2.command(t15.command),t15.args=t15.args.map(o5=>Ts2.argument(o5,n2));let s5=[t15.command].concat(t15.args).join(" ");t15.args=["/d","/s","/c",`"${s5}"`],t15.command=process.env.comspec||"cmd.exe",t15.options.windowsVerbatimArguments=!0;}return t15}i5(Oc3,"parseNonShell");function jc(t15,e2,r2){e2&&!Array.isArray(e2)&&(r2=e2,e2=null),e2=e2?e2.slice(0):[],r2=Object.assign({},r2);let n2={command:t15,args:e2,options:r2,file:void 0,original:{command:t15,args:e2}};return r2.shell?n2:Oc3(n2)}i5(jc,"parse"),Is.exports=jc;}),Ps2=I5((Wp2,Cs)=>{var ar=process.platform==="win32";function cr(t15,e2){return Object.assign(new Error(`${e2} ${t15.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e2} ${t15.command}`,path:t15.command,spawnargs:t15.args})}i5(cr,"notFoundError");function Rc(t15,e2){if(!ar)return;let r2=t15.emit;t15.emit=function(n2,s5){if(n2==="exit"){let o5=Es2(s5,e2);if(o5)return r2.call(t15,"error",o5)}return r2.apply(t15,arguments)};}i5(Rc,"hookChildProcess");function Es2(t15,e2){return ar&&t15===1&&!e2.file?cr(e2.original,"spawn"):null}i5(Es2,"verifyENOENT");function Nc2(t15,e2){return ar&&t15===1&&!e2.file?cr(e2.original,"spawnSync"):null}i5(Nc2,"verifyENOENTSync"),Cs.exports={hookChildProcess:Rc,verifyENOENT:Es2,verifyENOENTSync:Nc2,notFoundError:cr};}),js3=I5((Gp2,Pe2)=>{var As2=N4("child_process"),dr2=Ss2(),ur=Ps2();function Os2(t15,e2,r2){let n2=dr2(t15,e2,r2),s5=As2.spawn(n2.command,n2.args,n2.options);return ur.hookChildProcess(s5,n2),s5}i5(Os2,"spawn");function Zc(t15,e2,r2){let n2=dr2(t15,e2,r2),s5=As2.spawnSync(n2.command,n2.args,n2.options);return s5.error=s5.error||ur.verifyENOENTSync(s5.status,n2),s5}i5(Zc,"spawnSync"),Pe2.exports=Os2,Pe2.exports.spawn=Os2,Pe2.exports.sync=Zc,Pe2.exports._parse=dr2,Pe2.exports._enoent=ur;}),oo2=I5((xm2,so)=>{var{PassThrough:Rd3}=N4("stream");so.exports=function(){var t15=[],e2=new Rd3({objectMode:!0});return e2.setMaxListeners(0),e2.add=r2,e2.isEmpty=n2,e2.on("unpipe",s5),Array.prototype.slice.call(arguments).forEach(r2),e2;function r2(o5){return Array.isArray(o5)?(o5.forEach(r2),this):(t15.push(o5),o5.once("end",s5.bind(null,o5)),o5.once("error",e2.emit.bind(e2,"error")),o5.pipe(e2,{end:!1}),this)}function n2(){return t15.length==0}function s5(o5){t15=t15.filter(function(a5){return a5!==o5}),!t15.length&&e2.readable&&e2.end();}};});function Mr2(t15){return t15.startsWith("\\\\?\\")?t15:t15.replace(/\\/g,"/")}var So2=vi2(()=>{i5(Mr2,"slash");}),Ro2=I5((hh2,jo)=>{var{sep:du4}=N4("path"),uu4=i5(t15=>{for(let e2 of t15){let r2=/(\/|\\)/.exec(e2);if(r2!==null)return r2[0]}return du4},"determineSeparator");jo.exports=i5(function(e2,r2=uu4(e2)){let[n2="",...s5]=e2;if(n2===""||s5.length===0)return "";let o5=n2.split(r2),a5=o5.length;for(let l2 of s5){let p4=l2.split(r2);for(let f7=0;f7<a5;f7++)p4[f7]!==o5[f7]&&(a5=f7);if(a5===0)return ""}let c5=o5.slice(0,a5).join(r2);return c5.endsWith(r2)?c5:c5+r2},"commonPathPrefix");}),ni3=I5((Gg2,ri4)=>{ri4.exports=function(t15,e2){if(e2=e2||{},typeof t15!="function")throw new X9("fetch must be a function");if(typeof e2!="object")throw new X9("defaults must be an object");if(e2.retries!==void 0&&!Dt2(e2.retries))throw new X9("retries must be a positive integer");if(e2.retryDelay!==void 0&&!Dt2(e2.retryDelay)&&typeof e2.retryDelay!="function")throw new X9("retryDelay must be a positive integer or a function returning a positive integer");if(e2.retryOn!==void 0&&!Array.isArray(e2.retryOn)&&typeof e2.retryOn!="function")throw new X9("retryOn property expects an array or function");var r2={retries:3,retryDelay:1e3,retryOn:[]};return e2=Object.assign(r2,e2),i5(function(s5,o5){var a5=e2.retries,c5=e2.retryDelay,l2=e2.retryOn;if(o5&&o5.retries!==void 0)if(Dt2(o5.retries))a5=o5.retries;else throw new X9("retries must be a positive integer");if(o5&&o5.retryDelay!==void 0)if(Dt2(o5.retryDelay)||typeof o5.retryDelay=="function")c5=o5.retryDelay;else throw new X9("retryDelay must be a positive integer or a function returning a positive integer");if(o5&&o5.retryOn)if(Array.isArray(o5.retryOn)||typeof o5.retryOn=="function")l2=o5.retryOn;else throw new X9("retryOn property expects an array or function");return new Promise(function(p4,f7){var b2=i5(function(_6){var C4=typeof Request<"u"&&s5 instanceof Request?s5.clone():s5;t15(C4,o5).then(function(S5){if(Array.isArray(l2)&&l2.indexOf(S5.status)===-1)p4(S5);else if(typeof l2=="function")try{return Promise.resolve(l2(_6,null,S5)).then(function(P10){P10?w2(_6,null,S5):p4(S5);}).catch(f7)}catch(P10){f7(P10);}else _6<a5?w2(_6,null,S5):p4(S5);}).catch(function(S5){if(typeof l2=="function")try{Promise.resolve(l2(_6,S5,null)).then(function(P10){P10?w2(_6,S5,null):f7(S5);}).catch(function(P10){f7(P10);});}catch(P10){f7(P10);}else _6<a5?w2(_6,S5,null):f7(S5);});},"wrappedFetch");function w2(_6,C4,S5){var P10=typeof c5=="function"?c5(_6,C4,S5):c5;setTimeout(function(){b2(++_6);},P10);}i5(w2,"retry"),b2(0);})},"fetchRetry")};function Dt2(t15){return Number.isInteger(t15)&&t15>=0}i5(Dt2,"isPositiveInteger");function X9(t15){this.name="ArgumentError",this.message=t15;}i5(X9,"ArgumentError");}),rn3=z6(Qr2(),1),tn2="telemetry-notification-date",nn3=i5(async()=>{await Oj.get(tn2,null)||(Oj.set(tn2,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(rn3.default.cyan("https://storybook.js.org/telemetry")),nE.log(""));},"notify");function sn3(t15){return t15.replace(/[-[/{}()*+?.\\^$|]/g,"\\$&")}i5(sn3,"regexpEscape");function on4(t15=""){return t15.replace(/\u001B\[[0-9;]*m/g,"")}i5(on4,"removeAnsiEscapeCodes");function Re4(t15,e2=je3.sep){if(!t15)return t15;let r2=process.cwd().split(e2);for(;r2.length>1;){let n2=r2.join(e2),s5=new RegExp(sn3(n2),"gi");t15=t15.replace(s5,"$SNIP");let o5=r2.join(e2+e2),a5=new RegExp(sn3(o5),"gi");t15=t15.replace(a5,"$SNIP"),r2.pop();}return t15}i5(Re4,"cleanPaths");function tt(t15,e2=je3.sep){try{t15={...JSON.parse(JSON.stringify(t15)),message:on4(t15.message),stack:on4(t15.stack),cause:t15.cause,name:t15.name};let r2=Re4(JSON.stringify(t15),e2);return JSON.parse(r2)}catch(r2){return `Sanitization error: ${r2?.message}`}}i5(tt,"sanitizeError");var un3=z6(dn3(),1);async function Ai(t15){try{return (await stat(t15)).isFile()}catch{return !1}}i5(Ai,"fileExists");async function Ft2(t15){for(let e2 of (0, un3.walkUp)(t15)){let r2=resolve(e2,"package.json");if(await Ai(r2))return r2}return null}i5(Ft2,"findPackagePath");async function ln3(t15){let e2=await Ft2(t15);if(!e2)return null;try{let r2=await readFile(e2,{encoding:"utf8"});return JSON.parse(r2)}catch{return null}}i5(ln3,"findPackage");var pn3=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],Bt2={"bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},Wt={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function qt(t15,e2){try{let r2=await fs4__default.stat(t15);return e2==="file"?r2.isFile():r2.isDirectory()}catch{return !1}}i5(qt,"pathExists");function*ji(t15=Q.cwd()){let e2=je3.resolve(t15),{root:r2}=je3.parse(e2);for(;e2&&e2!==r2;)yield e2,e2=je3.dirname(e2);}i5(ji,"lookup");async function fn2(t15,e2){return !t15||!qt(t15,"file")?null:await Ni2(t15,e2)}i5(fn2,"parsePackageJson");async function Gt(t15={}){let{cwd:e2,strategies:r2=["lockfile","packageManager-field","devEngines-field"],onUnknown:n2}=t15;for(let s5 of ji(e2))for(let o5 of r2)switch(o5){case"lockfile":{for(let a5 of Object.keys(Bt2))if(await qt(je3.join(s5,a5),"file")){let c5=Bt2[a5];return await fn2(je3.join(s5,"package.json"),n2)||{name:c5,agent:c5}}break}case"packageManager-field":case"devEngines-field":{let a5=await fn2(je3.join(s5,"package.json"),n2);if(a5)return a5;break}case"install-metadata":{for(let a5 of Object.keys(Wt)){let c5=a5.endsWith("/")?"dir":"file";if(await qt(je3.join(s5,a5),c5)){let l2=Wt[a5],p4=l2==="yarn"?Zi(a5)?"yarn":"yarn@berry":l2;return {name:l2,agent:p4}}}break}}return null}i5(Gt,"detect");function Ri2(t15){let e2=i5(r2=>r2?.match(/\d+(\.\d+){0,2}/)?.[0]??r2,"handelVer");if(typeof t15.packageManager=="string"){let[r2,n2]=t15.packageManager.replace(/^\^/,"").split("@");return {name:r2,ver:e2(n2)}}if(typeof t15.devEngines?.packageManager?.name=="string")return {name:t15.devEngines.packageManager.name,ver:e2(t15.devEngines.packageManager.version)}}i5(Ri2,"getNameAndVer");async function Ni2(t15,e2){try{let r2=JSON.parse(await fs4__default.readFile(t15,"utf8")),n2,s5=Ri2(r2);if(s5){let o5=s5.name,a5=s5.ver,c5=a5;return o5==="yarn"&&a5&&Number.parseInt(a5)>1?(n2="yarn@berry",c5="berry",{name:o5,agent:n2,version:c5}):o5==="pnpm"&&a5&&Number.parseInt(a5)<7?(n2="pnpm@6",{name:o5,agent:n2,version:c5}):pn3.includes(o5)?(n2=o5,{name:o5,agent:n2,version:c5}):e2?.(r2.packageManager)??null}}catch{}return null}i5(Ni2,"handlePackageManager");function Zi(t15){return t15.endsWith(".yarn_integrity")}i5(Zi,"isMetadataYarnClassic");var nt4="9.0.16",Ee2=z6(Un3(),1),Bn2=z6(Vn(),1);function Fn2({code:t15,category:e2}){let r2=String(t15).padStart(4,"0");return `SB_${e2}_${r2}`}i5(Fn2,"parseErrorCode");var pt2=class t14 extends Error{constructor(r2){super(t14.getFullMessage(r2)),this.data={},this.fromStorybook=!0,this.category=r2.category,this.documentation=r2.documentation??!1,this.code=r2.code;}static{i5(this,"StorybookError");}get fullErrorCode(){return Fn2({code:this.code,category:this.category})}get name(){let r2=this.constructor.name;return `${this.fullErrorCode} (${r2})`}static getFullMessage({documentation:r2,code:n2,category:s5,message:o5}){let a5;return r2===!0?a5=`https://storybook.js.org/error/${Fn2({code:n2,category:s5})}`:typeof r2=="string"?a5=r2:Array.isArray(r2)&&(a5=`
|
1727
1727
|
${r2.map(c5=>` - ${c5}`).join(`
|
1728
1728
|
`)}`),`${o5}${a5!=null?`
|
1729
1729
|
|