Skip to content

Instantly share code, notes, and snippets.

@4JX
Created September 2, 2022 00:39
Show Gist options
  • Save 4JX/885bfee061627a86f9f8c165ee81cd7d to your computer and use it in GitHub Desktop.
Save 4JX/885bfee061627a86f9f8c165ee81cd7d to your computer and use it in GitHub Desktop.
INFO registered request handler method="initialize"
INFO registered request handler method="textDocument/foldingRange"
INFO registered request handler method="textDocument/documentSymbol"
INFO registered request handler method="textDocument/formatting"
INFO registered request handler method="textDocument/completion"
INFO registered request handler method="textDocument/hover"
INFO registered request handler method="textDocument/documentLink"
INFO registered request handler method="textDocument/semanticTokens/full"
INFO registered request handler method="textDocument/prepareRename"
INFO registered request handler method="textDocument/rename"
INFO registered notification handler method="initialized"
INFO registered notification handler method="textDocument/didOpen"
INFO registered notification handler method="textDocument/didChange"
INFO registered notification handler method="textDocument/didSave"
INFO registered notification handler method="textDocument/didClose"
INFO registered notification handler method="workspace/didChangeConfiguration"
INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
INFO registered request handler method="taplo/convertToJson"
INFO registered request handler method="taplo/convertToToml"
INFO registered request handler method="taplo/listSchemas"
INFO registered request handler method="taplo/associatedSchema"
INFO registered notification handler method="taplo/associateSchema"
panicked at 'getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto module is unavailable" }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.8.0/src/random_state.rs:77:51
Stack:
Error
at i.wbg.__wbg_new_693216e109162396 (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5841)
at wasm://wasm/00f6ca2e:wasm-function[5308]:0x321a3d
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd428
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40
`,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"};const yE=$g,{MAX_LENGTH:tQ,CHAR_BACKSLASH:QB,CHAR_BACKTICK:YE,CHAR_COMMA:sE,CHAR_DOT:UE,CHAR_LEFT_PARENTHESES:LE,CHAR_RIGHT_PARENTHESES:hE,CHAR_LEFT_CURLY_BRACE:qE,CHAR_RIGHT_CURLY_BRACE:HE,CHAR_LEFT_SQUARE_BRACKET:OQ,CHAR_RIGHT_SQUARE_BRACKET:TQ,CHAR_DOUBLE_QUOTE:cE,CHAR_SINGLE_QUOTE:SE,CHAR_NO_BREAK_SPACE:pE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tE}=KE,OE=(g,A={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let B=A||{},Q=typeof B.maxLength=="number"?Math.min(tQ,B.maxLength):tQ;if(g.length>Q)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${Q})`);let I={type:"root",input:g,nodes:[]},C=[I],E=I,D=I,G=0,k=g.length,N=0,y=0,F;const h=()=>g[N++],M=Y=>{if(Y.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&Y.type==="text"){D.value+=Y.value;return}return E.nodes.push(Y),Y.parent=E,Y.prev=D,D=Y,Y};for(M({type:"bos"});N<k;)if(E=C[C.length-1],F=h(),!(F===tE||F===pE)){if(F===QB){M({type:"text",value:(A.keepEscaping?F:"")+h()});continue}if(F===TQ){M({type:"text",value:"\\"+F});continue}if(F===OQ){G++;let Y;for(;N<k&&(Y=h());){if(F+=Y,Y===OQ){G++;continue}if(Y===QB){F+=h();continue}if(Y===TQ&&(G--,G===0))break}M({type:"text",value:F});continue}if(F===LE){E=M({type:"paren",nodes:[]}),C.push(E),M({type:"text",value:F});continue}if(F===hE){if(E.type!=="paren"){M({type:"text",value:F});continue}E=C.pop(),M({type:"text",value:F}),E=C[C.length-1];continue}if(F===cE||F===SE||F===YE){let Y=F,c;for(A.keepQuotes!==!0&&(F="");N<k&&(c=h());){if(c===QB){F+=c+h();continue}if(c===Y){A.keepQuotes===!0&&(F+=c);break}F+=c}M({type:"text",value:F});continue}if(F===qE){y++;let Y=D.value&&D.value.slice(-1)==="$"||E.dollar===!0;E=M({type:"brace",open:!0,close:!1,dollar:Y,depth:y,commas:0,ranges:0,nodes:[]}),C.push(E),M({type:"open",value:F});continue}if(F===HE){if(E.type!=="brace"){M({type:"text",value:F});continue}let Y="close";E=C.pop(),E.close=!0,M({type:Y,value:F}),y--,E=C[C.length-1];continue}if(F===sE&&y>0){if(E.ranges>0){E.ranges=0;let Y=E.nodes.shift();E.nodes=[Y,{type:"text",value:yE(E)}]}M({type:"comma",value:F}),E.commas++;continue}if(F===UE&&y>0&&E.commas===0){let Y=E.nodes;if(y===0||Y.length===0){M({type:"text",value:F});continue}if(D.type==="dot"){if(E.range=[],D.value+=F,D.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,D.type="text";continue}E.ranges++,E.args=[];continue}if(D.type==="range"){Y.pop();let c=Y[Y.length-1];c.value+=D.value+F,D=c,E.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(E=C.pop(),E.type!=="root"){E.nodes.forEach(S=>{S.nodes||(S.type==="open"&&(S.isOpen=!0),S.type==="close"&&(S.isClose=!0),S.nodes||(S.type="text"),S.invalid=!0)});let Y=C[C.length-1],c=Y.nodes.indexOf(E);Y.nodes.splice(c,1,...E.nodes)}while(C.length>0);return M({type:"eos"}),I};var TE=OE;const xQ=$g,xE=ME,dE=RE,WE=TE,DA=(g,A={})=>{let B=[];if(Array.isArray(g))for(let Q of g){let I=DA.create(Q,A);Array.isArray(I)?B.push(...I):B.push(I)}else B=[].concat(DA.create(g,A));return A&&A.expand===!0&&A.nodupes===!0&&(B=[...new Set(B)]),B};DA.parse=(g,A={})=>WE(g,A),DA.stringify=(g,A={})=>xQ(typeof g=="string"?DA.parse(g,A):g,A),DA.compile=(g,A={})=>(typeof g=="string"&&(g=DA.parse(g,A)),xE(g,A)),DA.expand=(g,A={})=>{typeof g=="string"&&(g=DA.parse(g,A));let B=dE(g,A);return A.noempty===!0&&(B=B.filter(Boolean)),A.nodupes===!0&&(B=[...new Set(B)]),B},DA.create=(g,A={})=>g===""||g.length<3?[g]:A.expand!==!0?DA.compile(g,A):DA.expand(g,A);var ZE=DA,dQ={exports:{}},Dg={};const fE=kA.default,qA="\\\\/",WQ=`[^${qA}]`,pA="\\.",bE="\\+",nE="\\?",Hg="\\/",eE="(?=.)",ZQ="[^/]",IB=`(?:${Hg}|$)`,fQ=`(?:^|${Hg})`,CB=`${pA}{1,2}${IB}`,mE=`(?!${pA})`,rE=`(?!${fQ}${CB})`,jE=`(?!${pA}{0,1}${IB})`,PE=`(?!${CB})`,lE=`[^.${Hg}]`,VE=`${ZQ}*?`,bQ={DOT_LITERAL:pA,PLUS_LITERAL:bE,QMARK_LITERAL:nE,SLASH_LITERAL:Hg,ONE_CHAR:eE,QMARK:ZQ,END_ANCHOR:IB,DOTS_SLASH:CB,NO_DOT:mE,NO_DOTS:rE,NO_DOT_SLASH:jE,NO_DOTS_SLASH:PE,QMARK_NO_DOT:lE,STAR:VE,START_ANCHOR:fQ},zE={...bQ,SLASH_LITERAL:`[${qA}]`,QMARK:WQ,STAR:`${WQ}*?`,DOTS_SLASH:`${pA}{1,2}(?:[${qA}]|$)`,NO_DOT:`(?!${pA})`,NO_DOTS:`(?!(?:^|[${qA}])${pA}{1,2}(?:[${qA}]|$))`,NO_DOT_SLASH:`(?!${pA}{0,1}(?:[${qA}]|$))`,NO_DOTS_SLASH:`(?!${pA}{1,2}(?:[${qA}]|$))`,QMARK_NO_DOT:`[^.${qA}]`,START_ANCHOR:`(?:^|[${qA}])`,END_ANCHOR:`(?:[${qA}]|$)`},XE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var cg={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fE.sep,extglobChars(g){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${g.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(g){return g===!0?zE:bQ}};(function(g){const A=kA.default,B=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:I,REGEX_SPECIAL_CHARS:C,REGEX_SPECIAL_CHARS_GLOBAL:E}=cg;g.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),g.hasRegexChars=D=>C.test(D),g.isRegexChar=D=>D.length===1&&g.hasRegexChars(D),g.escapeRegex=D=>D.replace(E,"\\$1"),g.toPosixSlashes=D=>D.replace(Q,"/"),g.removeBackslashes=D=>D.replace(I,G=>G==="\\"?"":G),g.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},g.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:B===!0||A.sep==="\\",g.escapeLast=(D,G,k)=>{const N=D.lastIndexOf(G,k);return N===-1?D:D[N-1]==="\\"?g.escapeLast(D,G,N-1):`${D.slice(0,N)}\\${D.slice(N)}`},g.removePrefix=(D,G={})=>{let k=D;return k.startsWith("./")&&(k=k.slice(2),G.prefix="./"),k},g.wrapOutput=(D,G={},k={})=>{const N=k.contains?"":"^",y=k.contains?"":"$";let F=`${N}(?:${D})${y}`;return G.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(Dg);const nQ=Dg,{CHAR_ASTERISK:EB,CHAR_AT:uE,CHAR_BACKWARD_SLASH:wg,CHAR_COMMA:vE,CHAR_DOT:DB,CHAR_EXCLAMATION_MARK:wB,CHAR_FORWARD_SLASH:eQ,CHAR_LEFT_CURLY_BRACE:iB,CHAR_LEFT_PARENTHESES:oB,CHAR_LEFT_SQUARE_BRACKET:_E,CHAR_PLUS:$E,CHAR_QUESTION_MARK:mQ,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:rQ,CHAR_RIGHT_SQUARE_BRACKET:gD}=cg,jQ=g=>g===eQ||g===wg,PQ=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},BD=(g,A)=>{const B=A||{},Q=g.length-1,I=B.parts===!0||B.scanToEnd===!0,C=[],E=[],D=[];let G=g,k=-1,N=0,y=0,F=!1,h=!1,M=!1,Y=!1,c=!1,S=!1,j=!1,H=!1,e=!1,q=!1,Z=0,T,p,m={value:"",depth:0,isGlob:!1};const b=()=>k>=Q,R=()=>G.charCodeAt(k+1),X=()=>(T=p,G.charCodeAt(++k));for(;k<Q;){p=X();let AA;if(p===wg){j=m.backslashes=!0,p=X(),p===iB&&(S=!0);continue}if(S===!0||p===iB){for(Z++;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,X();continue}if(p===iB){Z++;continue}if(S!==!0&&p===DB&&(p=X())===DB){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(S!==!0&&p===vE){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===AD&&(Z--,Z===0)){S=!1,F=m.isBrace=!0,q=!0;break}}if(I===!0)continue;break}if(p===eQ){if(C.push(k),E.push(m),m={value:"",depth:0,isGlob:!1},q===!0)continue;if(T===DB&&k===N+1){N+=2;continue}y=k+1;continue}if(B.noext!==!0&&(p===$E||p===uE||p===EB||p===mQ||p===wB)===!0&&R()===oB){if(M=m.isGlob=!0,Y=m.isExtglob=!0,q=!0,p===wB&&k===N&&(e=!0),I===!0){for(;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,p=X();continue}if(p===rQ){M=m.isGlob=!0,q=!0;break}}continue}break}if(p===EB){if(T===EB&&(c=m.isGlobstar=!0),M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===mQ){if(M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===_E){for(;b()!==!0&&(AA=X());){if(AA===wg){j=m.backslashes=!0,X();continue}if(AA===gD){h=m.isBracket=!0,M=m.isGlob=!0,q=!0;break}}if(I===!0)continue;break}if(B.nonegate!==!0&&p===wB&&k===N){H=m.negated=!0,N++;continue}if(B.noparen!==!0&&p===oB){if(M=m.isGlob=!0,I===!0){for(;b()!==!0&&(p=X());){if(p===oB){j=m.backslashes=!0,p=X();continue}if(p===rQ){q=!0;break}}continue}break}if(M===!0){if(q=!0,I===!0)continue;break}}B.noext===!0&&(Y=!1,M=!1);let l=G,YA="",a="";N>0&&(YA=G.slice(0,N),G=G.slice(N),y-=N),l&&M===!0&&y>0?(l=G.slice(0,y),a=G.slice(y)):M===!0?(l="",a=G):l=G,l&&l!==""&&l!=="/"&&l!==G&&jQ(l.charCodeAt(l.length-1))&&(l=l.slice(0,-1)),B.unescape===!0&&(a&&(a=nQ.removeBackslashes(a)),l&&j===!0&&(l=nQ.removeBackslashes(l)));const J={prefix:YA,input:g,start:N,base:l,glob:a,isBrace:F,isBracket:h,isGlob:M,isExtglob:Y,isGlobstar:c,negated:H,negatedExtglob:e};if(B.tokens===!0&&(J.maxDepth=0,jQ(p)||E.push(m),J.tokens=E),B.parts===!0||B.tokens===!0){let AA;for(let n=0;n<C.length;n++){const oA=AA?AA+1:N,QA=C[n],IA=g.slice(oA,QA);B.tokens&&(n===0&&N!==0?(E[n].isPrefix=!0,E[n].value=YA):E[n].value=IA,PQ(E[n]),J.maxDepth+=E[n].depth),(n!==0||IA!=="")&&D.push(IA),AA=QA}if(AA&&AA+1<g.length){const n=g.slice(AA+1);D.push(n),B.tokens&&(E[E.length-1].value=n,PQ(E[E.length-1]),J.maxDepth+=E[E.length-1].depth)}J.slashes=C,J.parts=D}return J};var QD=BD;const Sg=cg,NA=Dg,{MAX_LENGTH:pg,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:ED,REPLACEMENTS:lQ}=Sg,DD=(g,A)=>typeof A.expandRange=="function"?A.expandRange(...g,A):(g.sort(),`[${g.join("-")}]`),zA=(g,A)=>`Missing ${g}: "${A}" - use "\\\\${A}" to match literal characters`,GB=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=lQ[g]||g;const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg;let I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);const C={type:"bos",value:"",output:B.prepend||""},E=[C],D=B.capture?"":"?:",G=NA.isWindows(A),k=Sg.globChars(G),N=Sg.extglobChars(k),{DOT_LITERAL:y,PLUS_LITERAL:F,SLASH_LITERAL:h,ONE_CHAR:M,DOTS_SLASH:Y,NO_DOT:c,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:H,QMARK_NO_DOT:e,STAR:q,START_ANCHOR:Z}=k,T=L=>`(${D}(?:(?!${Z}${L.dot?Y:y}).)*?)`,p=B.dot?"":c,m=B.dot?H:e;let b=B.bash===!0?T(B):q;B.capture&&(b=`(${b})`),typeof B.noext=="boolean"&&(B.noextglob=B.noext);const R={input:g,index:-1,start:0,dot:B.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};g=NA.removePrefix(g,R),I=g.length;const X=[],l=[],YA=[];let a=C,J;const AA=()=>R.index===I-1,n=R.peek=(L=1)=>g[R.index+L],oA=R.advance=()=>g[++R.index]||"",QA=()=>g.slice(R.index+1),IA=(L="",V=0)=>{R.consumed+=L,R.index+=V},dA=L=>{R.output+=L.output!=null?L.output:L.value,IA(L.value)},Ng=()=>{let L=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)oA(),R.start++,L++;return L%2===0?!1:(R.negated=!0,R.start++,!0)},eA=L=>{R[L]++,YA.push(L)},aA=L=>{R[L]--,YA.pop()},f=L=>{if(a.type==="globstar"){const V=R.braces>0&&(L.type==="comma"||L.type==="brace"),s=L.extglob===!0||X.length&&(L.type==="pipe"||L.type==="paren");L.type!=="slash"&&L.type!=="paren"&&!V&&!s&&(R.output=R.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=b,R.output+=a.output)}if(X.length&&L.type!=="paren"&&(X[X.length-1].inner+=L.value),(L.value||L.output)&&dA(L),a&&a.type==="text"&&L.type==="text"){a.value+=L.value,a.output=(a.output||"")+L.value;return}L.prev=a,E.push(L),a=L},mA=(L,V)=>{const s={...N[V],conditions:1,inner:""};s.prev=a,s.parens=R.parens,s.output=R.output;const x=(B.capture?"(":"")+s.open;eA("parens"),f({type:L,value:V,output:R.output?"":M}),f({type:"paren",extglob:!0,value:oA(),output:x}),X.push(s)},rA=L=>{let V=L.close+(B.capture?")":""),s;if(L.type==="negate"){let x=b;if(L.inner&&L.inner.length>1&&L.inner.includes("/")&&(x=T(B)),(x!==b||AA()||/^\)+$/.test(QA()))&&(V=L.close=`)$))${x}`),L.inner.includes("*")&&(s=QA())&&/^\.[^\\/.]+$/.test(s)){const P=GB(s,{...A,fastpaths:!1}).output;V=L.close=`)${P})${x})`}L.prev.type==="bos"&&(R.negatedExtglob=!0)}f({type:"paren",extglob:!0,value:J,output:V}),aA("parens")};if(B.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let L=!1,V=g.replace(ED,(s,x,P,z,i,w)=>z==="\\"?(L=!0,s):z==="?"?x?x+z+(i?H.repeat(i.length):""):w===0?m+(i?H.repeat(i.length):""):H.repeat(P.length):z==="."?y.repeat(P.length):z==="*"?x?x+z+(i?b:""):b:x?s:`\\${s}`);return L===!0&&(B.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,s=>s.length%2===0?"\\\\":s?"\\":"")),V===g&&B.contains===!0?(R.output=g,R):(R.output=NA.wrapOutput(V,R,A),R)}for(;!AA();){if(J=oA(),J==="\0")continue;if(J==="\\"){const s=n();if(s==="/"&&B.bash!==!0||s==="."||s===";")continue;if(!s){J+="\\",f({type:"text",value:J});continue}const x=/^\\+/.exec(QA());let P=0;if(x&&x[0].length>2&&(P=x[0].length,R.index+=P,P%2!==0&&(J+="\\")),B.unescape===!0?J=oA():J+=oA(),R.brackets===0){f({type:"text",value:J});continue}}if(R.brackets>0&&(J!=="]"||a.value==="["||a.value==="[^")){if(B.posix!==!1&&J===":"){const s=a.value.slice(1);if(s.includes("[")&&(a.posix=!0,s.includes(":"))){const x=a.value.lastIndexOf("["),P=a.value.slice(0,x),z=a.value.slice(x+2),i=ID[z];if(i){a.value=P+i,R.backtrack=!0,oA(),!C.output&&E.indexOf(a)===1&&(C.output=M);continue}}}(J==="["&&n()!==":"||J==="-"&&n()==="]")&&(J=`\\${J}`),J==="]"&&(a.value==="["||a.value==="[^")&&(J=`\\${J}`),B.posix===!0&&J==="!"&&a.value==="["&&(J="^"),a.value+=J,dA({value:J});continue}if(R.quotes===1&&J!=='"'){J=NA.escapeRegex(J),a.value+=J,dA({value:J});continue}if(J==='"'){R.quotes=R.quotes===1?0:1,B.keepQuotes===!0&&f({type:"text",value:J});continue}if(J==="("){eA("parens"),f({type:"paren",value:J});continue}if(J===")"){if(R.parens===0&&B.strictBrackets===!0)throw new SyntaxError(zA("opening","("));const s=X[X.length-1];if(s&&R.parens===s.parens+1){rA(X.pop());continue}f({type:"paren",value:J,output:R.parens?")":"\\)"}),aA("parens");continue}if(J==="["){if(B.nobracket===!0||!QA().includes("]")){if(B.nobracket!==!0&&B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));J=`\\${J}`}else eA("brackets");f({type:"bracket",value:J});continue}if(J==="]"){if(B.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){f({type:"text",value:J,output:`\\${J}`});continue}if(R.brackets===0){if(B.strictBrackets===!0)throw new SyntaxError(zA("opening","["));f({type:"text",value:J,output:`\\${J}`});continue}aA("brackets");const s=a.value.slice(1);if(a.posix!==!0&&s[0]==="^"&&!s.includes("/")&&(J=`/${J}`),a.value+=J,dA({value:J}),B.literalBrackets===!1||NA.hasRegexChars(s))continue;const x=NA.escapeRegex(a.value);if(R.output=R.output.slice(0,-a.value.length),B.literalBrackets===!0){R.output+=x,a.value=x;continue}a.value=`(${D}${x}|${a.value})`,R.output+=a.value;continue}if(J==="{"&&B.nobrace!==!0){eA("braces");const s={type:"brace",value:J,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};l.push(s),f(s);continue}if(J==="}"){const s=l[l.length-1];if(B.nobrace===!0||!s){f({type:"text",value:J,output:J});continue}let x=")";if(s.dots===!0){const P=E.slice(),z=[];for(let i=P.length-1;i>=0&&(E.pop(),P[i].type!=="brace");i--)P[i].type!=="dots"&&z.unshift(P[i].value);x=DD(z,B),R.backtrack=!0}if(s.comma!==!0&&s.dots!==!0){const P=R.output.slice(0,s.outputIndex),z=R.tokens.slice(s.tokensIndex);s.value=s.output="\\{",J=x="\\}",R.output=P;for(const i of z)R.output+=i.output||i.value}f({type:"brace",value:J,output:x}),aA("braces"),l.pop();continue}if(J==="|"){X.length>0&&X[X.length-1].conditions++,f({type:"text",value:J});continue}if(J===","){let s=J;const x=l[l.length-1];x&&YA[YA.length-1]==="braces"&&(x.comma=!0,s="|"),f({type:"comma",value:J,output:s});continue}if(J==="/"){if(a.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",E.pop(),a=C;continue}f({type:"slash",value:J,output:h});continue}if(J==="."){if(R.braces>0&&a.type==="dot"){a.value==="."&&(a.output=y);const s=l[l.length-1];a.type="dots",a.output+=J,a.value+=J,s.dots=!0;continue}if(R.braces+R.parens===0&&a.type!=="bos"&&a.type!=="slash"){f({type:"text",value:J,output:y});continue}f({type:"dot",value:J,output:y});continue}if(J==="?"){if(!(a&&a.value==="(")&&B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("qmark",J);continue}if(a&&a.type==="paren"){const x=n();let P=J;if(x==="<"&&!NA.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(QA()))&&(P=`\\${J}`),f({type:"text",value:J,output:P});continue}if(B.dot!==!0&&(a.type==="slash"||a.type==="bos")){f({type:"qmark",value:J,output:e});continue}f({type:"qmark",value:J,output:H});continue}if(J==="!"){if(B.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){mA("negate",J);continue}if(B.nonegate!==!0&&R.index===0){Ng();continue}}if(J==="+"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("plus",J);continue}if(a&&a.value==="("||B.regex===!1){f({type:"plus",value:J,output:F});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||R.parens>0){f({type:"plus",value:J});continue}f({type:"plus",value:F});continue}if(J==="@"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){f({type:"at",extglob:!0,value:J,output:""});continue}f({type:"text",value:J});continue}if(J!=="*"){(J==="$"||J==="^")&&(J=`\\${J}`);const s=CD.exec(QA());s&&(J+=s[0],R.index+=s[0].length),f({type:"text",value:J});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=J,a.output=b,R.backtrack=!0,R.globstar=!0,IA(J);continue}let L=QA();if(B.noextglob!==!0&&/^\([^?]/.test(L)){mA("star",J);continue}if(a.type==="star"){if(B.noglobstar===!0){IA(J);continue}const s=a.prev,x=s.prev,P=s.type==="slash"||s.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(B.bash===!0&&(!P||L[0]&&L[0]!=="/")){f({type:"star",value:J,output:""});continue}const i=R.braces>0&&(s.type==="comma"||s.type==="brace"),w=X.length&&(s.type==="pipe"||s.type==="paren");if(!P&&s.type!=="paren"&&!i&&!w){f({type:"star",value:J,output:""});continue}for(;L.slice(0,3)==="/**";){const o=g[R.index+4];if(o&&o!=="/")break;L=L.slice(3),IA("/**",3)}if(s.type==="bos"&&AA()){a.type="globstar",a.value+=J,a.output=T(B),R.output=a.output,R.globstar=!0,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!z&&AA()){R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=T(B)+(B.strictSlashes?")":"|$)"),a.value+=J,R.globstar=!0,R.output+=s.output+a.output,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&L[0]==="/"){const o=L[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=`${T(B)}${h}|${h}${o})`,a.value+=J,R.output+=s.output+a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&L[0]==="/"){a.type="globstar",a.value+=J,a.output=`(?:^|${h}|${T(B)}${h})`,R.output=a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-a.output.length),a.type="globstar",a.output=T(B),a.value+=J,R.output+=a.output,R.globstar=!0,IA(J);continue}const V={type:"star",value:J,output:b};if(B.bash===!0){V.output=".*?",(a.type==="bos"||a.type==="slash")&&(V.output=p+V.output),f(V);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&B.regex===!0){V.output=J,f(V);continue}(R.index===R.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(R.output+=S,a.output+=S):B.dot===!0?(R.output+=j,a.output+=j):(R.output+=p,a.output+=p),n()!=="*"&&(R.output+=M,a.output+=M)),f(V)}for(;R.brackets>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));R.output=NA.escapeLast(R.output,"["),aA("brackets")}for(;R.parens>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing",")"));R.output=NA.escapeLast(R.output,"("),aA("parens")}for(;R.braces>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","}"));R.output=NA.escapeLast(R.output,"{"),aA("braces")}if(B.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&f({type:"maybe_slash",value:"",output:`${h}?`}),R.backtrack===!0){R.output="";for(const L of R.tokens)R.output+=L.output!=null?L.output:L.value,L.suffix&&(R.output+=L.suffix)}return R};GB.fastpaths=(g,A)=>{const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg,I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);g=lQ[g]||g;const C=NA.isWindows(A),{DOT_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:G,DOTS_SLASH:k,NO_DOT:N,NO_DOTS:y,NO_DOTS_SLASH:F,STAR:h,START_ANCHOR:M}=Sg.globChars(C),Y=B.dot?y:N,c=B.dot?F:N,S=B.capture?"":"?:",j={negated:!1,prefix:""};let H=B.bash===!0?".*?":h;B.capture&&(H=`(${H})`);const e=p=>p.noglobstar===!0?H:`(${S}(?:(?!${M}${p.dot?k:E}).)*?)`,q=p=>{switch(p){case"*":return`${Y}${G}${H}`;case".*":return`${E}${G}${H}`;case"*.*":return`${Y}${H}${E}${G}${H}`;case"*/*":return`${Y}${H}${D}${G}${c}${H}`;case"**":return Y+e(B);case"**/*":return`(?:${Y}${e(B)}${D})?${c}${G}${H}`;case"**/*.*":return`(?:${Y}${e(B)}${D})?${c}${H}${E}${G}${H}`;case"**/.*":return`(?:${Y}${e(B)}${D})?${E}${G}${H}`;default:{const m=/^(.*?)\.(\w+)$/.exec(p);if(!m)return;const b=q(m[1]);return b?b+E+m[2]:void 0}}},Z=NA.removePrefix(g,j);let T=q(Z);return T&&B.strictSlashes!==!0&&(T+=`${D}?`),T};var wD=GB;const iD=kA.default,oD=QD,kB=wD,NB=Dg,GD=cg,kD=g=>g&&typeof g=="object"&&!Array.isArray(g),_=(g,A,B=!1)=>{if(Array.isArray(g)){const N=g.map(F=>_(F,A,B));return F=>{for(const h of N){const M=h(F);if(M)return M}return!1}}const Q=kD(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!Q)throw new TypeError("Expected pattern to be a non-empty string");const I=A||{},C=NB.isWindows(A),E=Q?_.compileRe(g,A):_.makeRe(g,A,!1,!0),D=E.state;delete E.state;let G=()=>!1;if(I.ignore){const N={...A,ignore:null,onMatch:null,onResult:null};G=_(I.ignore,N,B)}const k=(N,y=!1)=>{const{isMatch:F,match:h,output:M}=_.test(N,E,A,{glob:g,posix:C}),Y={glob:g,state:D,regex:E,posix:C,input:N,output:M,match:h,isMatch:F};return typeof I.onResult=="function"&&I.onResult(Y),F===!1?(Y.isMatch=!1,y?Y:!1):G(N)?(typeof I.onIgnore=="function"&&I.onIgnore(Y),Y.isMatch=!1,y?Y:!1):(typeof I.onMatch=="function"&&I.onMatch(Y),y?Y:!0)};return B&&(k.state=D),k};_.test=(g,A,B,{glob:Q,posix:I}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const C=B||{},E=C.format||(I?NB.toPosixSlashes:null);let D=g===Q,G=D&&E?E(g):g;return D===!1&&(G=E?E(g):g,D=G===Q),(D===!1||C.capture===!0)&&(C.matchBase===!0||C.basename===!0?D=_.matchBase(g,A,B,I):D=A.exec(G)),{isMatch:Boolean(D),match:D,output:G}},_.matchBase=(g,A,B,Q=NB.isWindows(B))=>(A instanceof RegExp?A:_.makeRe(A,B)).test(iD.basename(g)),_.isMatch=(g,A,B)=>_(A,B)(g),_.parse=(g,A)=>Array.isArray(g)?g.map(B=>_.parse(B,A)):kB(g,{...A,fastpaths:!1}),_.scan=(g,A)=>oD(g,A),_.compileRe=(g,A,B=!1,Q=!1)=>{if(B===!0)return g.output;const I=A||{},C=I.contains?"":"^",E=I.contains?"":"$";let D=`${C}(?:${g.output})${E}`;g&&g.negated===!0&&(D=`^(?!${D}).*$`);const G=_.toRegex(D,A);return Q===!0&&(G.state=g),G},_.makeRe=(g,A={},B=!1,Q=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");let I={negated:!1,fastpaths:!0};return A.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(I.output=kB.fastpaths(g,A)),I.output||(I=kB(g,A)),_.compileRe(I,A,B,Q)},_.toRegex=(g,A)=>{try{const B=A||{};return new RegExp(g,B.flags||(B.nocase?"i":""))}catch(B){if(A&&A.debug===!0)throw B;return/$^/}},_.constants=GD;var ND=_;(function(g){g.exports=ND})(dQ);const VQ=AQ.default,zQ=ZE,HA=dQ.exports,FB=Dg,XQ=g=>g===""||g==="./",u=(g,A,B)=>{A=[].concat(A),g=[].concat(g);let Q=new Set,I=new Set,C=new Set,E=0,D=N=>{C.add(N.output),B&&B.onResult&&B.onResult(N)};for(let N=0;N<A.length;N++){let y=HA(String(A[N]),{...B,onResult:D},!0),F=y.state.negated||y.state.negatedExtglob;F&&E++;for(let h of g){let M=y(h,!0);!(F?!M.isMatch:M.isMatch)||(F?Q.add(M.output):(Q.delete(M.output),I.add(M.output)))}}let k=(E===A.length?[...C]:[...I]).filter(N=>!Q.has(N));if(B&&k.length===0){if(B.failglob===!0)throw new Error(`No matches found for "${A.join(", ")}"`);if(B.nonull===!0||B.nullglob===!0)return B.unescape?A.map(N=>N.replace(/\\/g,"")):A}return k};u.match=u,u.matcher=(g,A)=>HA(g,A),u.isMatch=(g,A,B)=>HA(A,B)(g),u.any=u.isMatch,u.not=(g,A,B={})=>{A=[].concat(A).map(String);let Q=new Set,I=[],C=D=>{B.onResult&&B.onResult(D),I.push(D.output)},E=new Set(u(g,A,{...B,onResult:C}));for(let D of I)E.has(D)||Q.add(D);return[...Q]},u.contains=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);if(Array.isArray(A))return A.some(Q=>u.contains(g,Q,B));if(typeof A=="string"){if(XQ(g)||XQ(A))return!1;if(g.includes(A)||g.startsWith("./")&&g.slice(2).includes(A))return!0}return u.isMatch(g,A,{...B,contains:!0})},u.matchKeys=(g,A,B)=>{if(!FB.isObject(g))throw new TypeError("Expected the first argument to be an object");let Q=u(Object.keys(g),A,B),I={};for(let C of Q)I[C]=g[C];return I},u.some=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(Q.some(E=>C(E)))return!0}return!1},u.every=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(!Q.every(E=>C(E)))return!1}return!0},u.all=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);return[].concat(A).every(Q=>HA(Q,B)(g))},u.capture=(g,A,B)=>{let Q=FB.isWindows(B),C=HA.makeRe(String(g),{...B,capture:!0}).exec(Q?FB.toPosixSlashes(A):A);if(C)return C.slice(1).map(E=>E===void 0?"":E)},u.makeRe=(...g)=>HA.makeRe(...g),u.scan=(...g)=>HA.scan(...g),u.parse=(g,A)=>{let B=[];for(let Q of[].concat(g||[]))for(let I of zQ(String(Q),A))B.push(HA.parse(I,A));return B},u.braces=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return A&&A.nobrace===!0||!/\{.*\}/.test(g)?[g]:zQ(g,A)},u.braceExpand=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return u.braces(g,{...A,expand:!0})};var FD=u;Object.defineProperty(d,"__esModule",{value:!0}),d.matchAny=d.convertPatternsToRe=d.makeRe=d.getPatternParts=d.expandBraceExpansion=d.expandPatternsWithBraceExpansion=d.isAffectDepthOfReadingPattern=d.endsWithSlashGlobStar=d.hasGlobStar=d.getBaseDirectory=d.isPatternRelatedToParentDirectory=d.getPatternsOutsideCurrentDirectory=d.getPatternsInsideCurrentDirectory=d.getPositivePatterns=d.getNegativePatterns=d.isPositivePattern=d.isNegativePattern=d.convertToNegativePattern=d.convertToPositivePattern=d.isDynamicPattern=d.isStaticPattern=void 0;const MD=kA.default,aD=XC,MB=FD,uQ="**",JD="\\",RD=/[*?]|^!/,KD=/\[[^[]*]/,yD=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YD=/[!*+?@]\([^(]*\)/,sD=/,|\.\./;function vQ(g,A={}){return!_Q(g,A)}d.isStaticPattern=vQ;function _Q(g,A={}){return g===""?!1:!!(A.caseSensitiveMatch===!1||g.includes(JD)||RD.test(g)||KD.test(g)||yD.test(g)||A.extglob!==!1&&YD.test(g)||A.braceExpansion!==!1&&UD(g))}d.isDynamicPattern=_Q;function UD(g){const A=g.indexOf("{");if(A===-1)return!1;const B=g.indexOf("}",A+1);if(B===-1)return!1;const Q=g.slice(A,B);return sD.test(Q)}function LD(g){return tg(g)?g.slice(1):g}d.convertToPositivePattern=LD;function hD(g){return"!"+g}d.convertToNegativePattern=hD;function tg(g){return g.startsWith("!")&&g[1]!=="("}d.isNegativePattern=tg;function $Q(g){return!tg(g)}d.isPositivePattern=$Q;function qD(g){return g.filter(tg)}d.getNegativePatterns=qD;function HD(g){return g.filter($Q)}d.getPositivePatterns=HD;function cD(g){return g.filter(A=>!aB(A))}d.getPatternsInsideCurrentDirectory=cD;function SD(g){return g.filter(aB)}d.getPatternsOutsideCurrentDirectory=SD;function aB(g){return g.startsWith("..")||g.startsWith("./..")}d.isPatternRelatedToParentDirectory=aB;function pD(g){return aD(g,{flipBackslashes:!1})}d.getBaseDirectory=pD;function tD(g){return g.includes(uQ)}d.hasGlobStar=tD;function AI(g){return g.endsWith("/"+uQ)}d.endsWithSlashGlobStar=AI;function OD(g){const A=MD.basename(g);return AI(g)||vQ(A)}d.isAffectDepthOfReadingPattern=OD;function TD(g){return g.reduce((A,B)=>A.concat(gI(B)),[])}d.expandPatternsWithBraceExpansion=TD;function gI(g){return MB.braces(g,{expand:!0,nodupes:!0})}d.expandBraceExpansion=gI;function xD(g,A){let{parts:B}=MB.scan(g,Object.assign(Object.assign({},A),{parts:!0}));return B.length===0&&(B=[g]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}d.getPatternParts=xD;function BI(g,A){return MB.makeRe(g,A)}d.makeRe=BI;function dD(g,A){return g.map(B=>BI(B,A))}d.convertPatternsToRe=dD;function WD(g,A){return A.some(B=>B.test(g))}d.matchAny=WD;var Og={};const ZD=ag.default,QI=ZD.PassThrough,fD=Array.prototype.slice;var bD=nD;function nD(){const g=[],A=fD.call(arguments);let B=!1,Q=A[A.length-1];Q&&!Array.isArray(Q)&&Q.pipe==null?A.pop():Q={};const I=Q.end!==!1,C=Q.pipeError===!0;Q.objectMode==null&&(Q.objectMode=!0),Q.highWaterMark==null&&(Q.highWaterMark=64*1024);const E=QI(Q);function D(){for(let N=0,y=arguments.length;N<y;N++)g.push(II(arguments[N],Q));return G(),this}function G(){if(B)return;B=!0;let N=g.shift();if(!N){process.nextTick(k);return}Array.isArray(N)||(N=[N]);let y=N.length+1;function F(){--y>0||(B=!1,G())}function h(M){function Y(){M.removeListener("merge2UnpipeEnd",Y),M.removeListener("end",Y),C&&M.removeListener("error",c),F()}function c(S){E.emit("error",S)}if(M._readableState.endEmitted)return F();M.on("merge2UnpipeEnd",Y),M.on("end",Y),C&&M.on("error",c),M.pipe(E,{end:!1}),M.resume()}for(let M=0;M<N.length;M++)h(N[M]);F()}function k(){B=!1,E.emit("queueDrain"),I&&E.end()}return E.setMaxListeners(0),E.add=D,E.on("unpipe",function(N){N.emit("merge2UnpipeEnd")}),A.length&&D.apply(null,A),E}function II(g,A){if(Array.isArray(g))for(let B=0,Q=g.length;B<Q;B++)g[B]=II(g[B],A);else{if(!g._readableState&&g.pipe&&(g=g.pipe(QI(A))),!g._readableState||!g.pause||!g.pipe)throw new Error("Only readable stream can be merged.");g.pause()}return g}Object.defineProperty(Og,"__esModule",{value:!0}),Og.merge=void 0;const eD=bD;function mD(g){const A=eD(g);return g.forEach(B=>{B.once("error",Q=>A.emit("error",Q))}),A.once("close",()=>CI(g)),A.once("end",()=>CI(g)),A}Og.merge=mD;function CI(g){g.forEach(A=>A.emit("close"))}var XA={};Object.defineProperty(XA,"__esModule",{value:!0}),XA.isEmpty=XA.isString=void 0;function rD(g){return typeof g=="string"}XA.isString=rD;function jD(g){return g===""}XA.isEmpty=jD,Object.defineProperty(v,"__esModule",{value:!0}),v.string=v.stream=v.pattern=v.path=v.fs=v.errno=v.array=void 0;const PD=lA;v.array=PD;const lD=Ug;v.errno=lD;const VD=Lg;v.fs=VD;const zD=hA;v.path=zD;const XD=d;v.pattern=XD;const uD=Og;v.stream=uD;const vD=XA;v.string=vD,Object.defineProperty(BA,"__esModule",{value:!0}),BA.convertPatternGroupToTask=BA.convertPatternGroupsToTasks=BA.groupPatternsByBaseDirectory=BA.getNegativePatternsAsPositive=BA.getPositivePatterns=BA.convertPatternsToTasks=BA.generate=void 0;const tA=v;function _D(g,A){const B=EI(g),Q=DI(g,A.ignore),I=B.filter(G=>tA.pattern.isStaticPattern(G,A)),C=B.filter(G=>tA.pattern.isDynamicPattern(G,A)),E=JB(I,Q,!1),D=JB(C,Q,!0);return E.concat(D)}BA.generate=_D;function JB(g,A,B){const Q=[],I=tA.pattern.getPatternsOutsideCurrentDirectory(g),C=tA.pattern.getPatternsInsideCurrentDirectory(g),E=RB(I),D=RB(C);return Q.push(...KB(E,A,B)),"."in D?Q.push(yB(".",C,A,B)):Q.push(...KB(D,A,B)),Q}BA.convertPatternsToTasks=JB;function EI(g){return tA.pattern.getPositivePatterns(g)}BA.getPositivePatterns=EI;function DI(g,A){return tA.pattern.getNegativePatterns(g).concat(A).map(tA.pattern.convertToPositivePattern)}BA.getNegativePatternsAsPositive=DI;function RB(g){const A={};return g.reduce((B,Q)=>{const I=tA.pattern.getBaseDirectory(Q);return I in B?B[I].push(Q):B[I]=[Q],B},A)}BA.groupPatternsByBaseDirectory=RB;function KB(g,A,B){return Object.keys(g).map(Q=>yB(Q,g[Q],A,B))}BA.convertPatternGroupsToTasks=KB;function yB(g,A,B,Q){return{dynamic:Q,positive:A,negative:B,base:g,patterns:[].concat(A,B.map(tA.pattern.convertToNegativePattern))}}BA.convertPatternGroupToTask=yB;var uA={};Object.defineProperty(uA,"__esModule",{value:!0}),uA.removeDuplicateSlashes=uA.transform=void 0;const $D=/(?!^)\/{2,}/g;function Aw(g){return g.map(A=>wI(A))}uA.transform=Aw;function wI(g){return g.replace($D,"/")}uA.removeDuplicateSlashes=wI;var YB={},Tg={},wA={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.read=void 0;function gw(g,A,B){A.fs.lstat(g,(Q,I)=>{if(Q!==null){iI(B,Q);return}if(!I.isSymbolicLink()||!A.followSymbolicLink){sB(B,I);return}A.fs.stat(g,(C,E)=>{if(C!==null){if(A.throwErrorOnBrokenSymbolicLink){iI(B,C);return}sB(B,I);return}A.markSymbolicLink&&(E.isSymbolicLink=()=>!0),sB(B,E)})})}xg.read=gw;function iI(g,A){g(A)}function sB(g,A){g(null,A)}var dg={};Object.defineProperty(dg,"__esModule",{value:!0}),dg.read=void 0;function Bw(g,A){const B=A.fs.lstatSync(g);if(!B.isSymbolicLink()||!A.followSymbolicLink)return B;try{const Q=A.fs.statSync(g);return A.markSymbolicLink&&(Q.isSymbolicLink=()=>!0),Q}catch(Q){if(!A.throwErrorOnBrokenSymbolicLink)return B;throw Q}}dg.read=Bw;var UB={},oI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(oI),Object.defineProperty(UB,"__esModule",{value:!0});const Qw=oI;class Iw{constructor(A={}){this._options=A,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(A,B){return A??B}}UB.default=Iw,Object.defineProperty(wA,"__esModule",{value:!0}),wA.statSync=wA.stat=wA.Settings=void 0;const GI=xg,Cw=dg,LB=UB;wA.Settings=LB.default;function Ew(g,A,B){if(typeof A=="function"){GI.read(g,hB(),A);return}GI.read(g,hB(A),B)}wA.stat=Ew;function Dw(g,A){const B=hB(A);return Cw.read(g,B)}wA.statSync=Dw;function hB(g={}){return g instanceof LB.default?g:new LB.default(g)}var yA={},qB={},Wg={},cA={},TA={};/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let kI;var ww=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:gg.commonjsGlobal):g=>(kI||(kI=Promise.resolve())).then(g).catch(A=>setTimeout(()=>{throw A},0));/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var iw=Gw;const ow=ww;function Gw(g,A){let B,Q,I,C=!0;Array.isArray(g)?(B=[],Q=g.length):(I=Object.keys(g),B={},Q=I.length);function E(G){function k(){A&&A(G,B),A=null}C?ow(k):k()}function D(G,k,N){B[G]=N,(--Q===0||k)&&E(k)}Q?I?I.forEach(function(G){g[G](function(k,N){D(G,k,N)})}):g.forEach(function(G,k){G(function(N,y){D(k,N,y)})}):E(null),C=!1}var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const Zg=process.versions.node.split(".");if(Zg[0]===void 0||Zg[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const NI=Number.parseInt(Zg[0],10),kw=Number.parseInt(Zg[1],10),FI=10,Nw=10,Fw=NI>FI,Mw=NI===FI&&kw>=Nw;ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Fw||Mw;var og={},fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.createDirentFromStats=void 0;class aw{constructor(A,B){this.name=A,this.isBlockDevice=B.isBlockDevice.bind(B),this.isCharacterDevice=B.isCharacterDevice.bind(B),this.isDirectory=B.isDirectory.bind(B),this.isFIFO=B.isFIFO.bind(B),this.isFile=B.isFile.bind(B),this.isSocket=B.isSocket.bind(B),this.isSymbolicLink=B.isSymbolicLink.bind(B)}}function Jw(g,A){return new aw(g,A)}fg.createDirentFromStats=Jw,Object.defineProperty(og,"__esModule",{value:!0}),og.fs=void 0;const Rw=fg;og.fs=Rw;var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.joinPathSegments=void 0;function Kw(g,A,B){return g.endsWith(B)?g+A:g+B+A}Gg.joinPathSegments=Kw,Object.defineProperty(TA,"__esModule",{value:!0}),TA.readdir=TA.readdirWithFileTypes=TA.read=void 0;const yw=wA,MI=iw,Yw=ig,aI=og,JI=Gg;function sw(g,A,B){if(!A.stats&&Yw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){RI(g,A,B);return}KI(g,A,B)}TA.read=sw;function RI(g,A,B){A.fs.readdir(g,{withFileTypes:!0},(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(D=>({dirent:D,name:D.name,path:JI.joinPathSegments(g,D.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){HB(B,C);return}const E=C.map(D=>Uw(D,A));MI(E,(D,G)=>{if(D!==null){bg(B,D);return}HB(B,G)})})}TA.readdirWithFileTypes=RI;function Uw(g,A){return B=>{if(!g.dirent.isSymbolicLink()){B(null,g);return}A.fs.stat(g.path,(Q,I)=>{if(Q!==null){if(A.throwErrorOnBrokenSymbolicLink){B(Q);return}B(null,g);return}g.dirent=aI.fs.createDirentFromStats(g.name,I),B(null,g)})}}function KI(g,A,B){A.fs.readdir(g,(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(E=>{const D=JI.joinPathSegments(g,E,A.pathSegmentSeparator);return G=>{yw.stat(D,A.fsStatSettings,(k,N)=>{if(k!==null){G(k);return}const y={name:E,path:D,dirent:aI.fs.createDirentFromStats(E,N)};A.stats&&(y.stats=N),G(null,y)})}});MI(C,(E,D)=>{if(E!==null){bg(B,E);return}HB(B,D)})})}TA.readdir=KI;function bg(g,A){g(A)}function HB(g,A){g(null,A)}var xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.readdir=xA.readdirWithFileTypes=xA.read=void 0;const Lw=wA,hw=ig,yI=og,YI=Gg;function qw(g,A){return!A.stats&&hw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?sI(g,A):UI(g,A)}xA.read=qw;function sI(g,A){return A.fs.readdirSync(g,{withFileTypes:!0}).map(Q=>{const I={dirent:Q,name:Q.name,path:YI.joinPathSegments(g,Q.name,A.pathSegmentSeparator)};if(I.dirent.isSymbolicLink()&&A.followSymbolicLinks)try{const C=A.fs.statSync(I.path);I.dirent=yI.fs.createDirentFromStats(I.name,C)}catch(C){if(A.throwErrorOnBrokenSymbolicLink)throw C}return I})}xA.readdirWithFileTypes=sI;function UI(g,A){return A.fs.readdirSync(g).map(Q=>{const I=YI.joinPathSegments(g,Q,A.pathSegmentSeparator),C=Lw.statSync(I,A.fsStatSettings),E={name:Q,path:I,dirent:yI.fs.createDirentFromStats(Q,C)};return A.stats&&(E.stats=C),E})}xA.readdir=UI;var cB={},LI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(LI),Object.defineProperty(cB,"__esModule",{value:!0});const Hw=kA.default,cw=wA,Sw=LI;class pw{constructor(A={}){this._options=A,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}cB.default=pw,Object.defineProperty(cA,"__esModule",{value:!0}),cA.Settings=cA.scandirSync=cA.scandir=void 0;const hI=TA,tw=xA,SB=cB;cA.Settings=SB.default;function Ow(g,A,B){if(typeof A=="function"){hI.read(g,pB(),A);return}hI.read(g,pB(A),B)}cA.scandir=Ow;function Tw(g,A){const B=pB(A);return tw.read(g,B)}cA.scandirSync=Tw;function pB(g={}){return g instanceof SB.default?g:new SB.default(g)}var tB={exports:{}};function xw(g){var A=new g,B=A;function Q(){var C=A;return C.next?A=C.next:(A=new g,B=A),C.next=null,C}function I(C){B.next=C,B=C}return{get:Q,release:I}}var dw=xw,Ww=dw;function qI(g,A,B){if(typeof g=="function"&&(B=A,A=g,g=null),B<1)throw new Error("fastqueue concurrency must be greater than 1");var Q=Ww(Zw),I=null,C=null,E=0,D=null,G={push:Y,drain:FA,saturated:FA,pause:N,paused:!1,concurrency:B,running:k,resume:h,idle:M,length:y,getQueue:F,unshift:c,empty:FA,kill:j,killAndDrain:H,error:e};return G;function k(){return E}function N(){G.paused=!0}function y(){for(var q=I,Z=0;q;)q=q.next,Z++;return Z}function F(){for(var q=I,Z=[];q;)Z.push(q.value),q=q.next;return Z}function h(){if(!!G.paused){G.paused=!1;for(var q=0;q<G.concurrency;q++)E++,S()}}function M(){return E===0&&G.length()===0}function Y(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,T.errorHandler=D,E===G.concurrency||G.paused?C?(C.next=T,C=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function c(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,E===G.concurrency||G.paused?I?(T.next=I,I=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function S(q){q&&Q.release(q);var Z=I;Z?G.paused?E--:(C===I&&(C=null),I=Z.next,Z.next=null,A.call(g,Z.value,Z.worked),C===null&&G.empty()):--E===0&&G.drain()}function j(){I=null,C=null,G.drain=FA}function H(){I=null,C=null,G.drain(),G.drain=FA}function e(q){D=q}}function FA(){}function Zw(){this.value=null,this.callback=FA,this.next=null,this.release=FA,this.context=null,this.errorHandler=null;var g=this;this.worked=function(B,Q){var I=g.callback,C=g.errorHandler,E=g.value;g.value=null,g.callback=FA,g.errorHandler&&C(B,E),I.call(g.context,B,Q),g.release(g)}}function fw(g,A,B){typeof g=="function"&&(B=A,A=g,g=null);function Q(N,y){A.call(this,N).then(function(F){y(null,F)},y)}var I=qI(g,Q,B),C=I.push,E=I.unshift;return I.push=D,I.unshift=G,I.drained=k,I;function D(N){var y=new Promise(function(F,h){C(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function G(N){var y=new Promise(function(F,h){E(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function k(){var N=I.drain,y=new Promise(function(F){I.drain=function(){N(),F()}});return y}}tB.exports=qI,tB.exports.promise=fw;var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.joinPathSegments=MA.replacePathSegmentSeparator=MA.isAppliedFilter=MA.isFatalError=void 0;function bw(g,A){return g.errorFilter===null?!0:!g.errorFilter(A)}MA.isFatalError=bw;function nw(g,A){return g===null||g(A)}MA.isAppliedFilter=nw;function ew(g,A){return g.split(/[/\\]/).join(A)}MA.replacePathSegmentSeparator=ew;function mw(g,A,B){return g===""?A:g.endsWith(B)?g+A:g+B+A}MA.joinPathSegments=mw;var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const rw=MA;class jw{constructor(A,B){this._root=A,this._settings=B,this._root=rw.replacePathSegmentSeparator(A,B.pathSegmentSeparator)}}ng.default=jw,Object.defineProperty(Wg,"__esModule",{value:!0});const Pw=uI.default,lw=cA,Vw=tB.exports,eg=MA,zw=ng;class Xw extends zw.default{constructor(A,B){super(A,B),this._settings=B,this._scandir=lw.scandir,this._emitter=new Pw.EventEmitter,this._queue=Vw(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(A){this._emitter.on("entry",A)}onError(A){this._emitter.once("error",A)}onEnd(A){this._emitter.once("end",A)}_pushToQueue(A,B){const Q={directory:A,base:B};this._queue.push(Q,I=>{I!==null&&this._handleError(I)})}_worker(A,B){this._scandir(A.directory,this._settings.fsScandirSettings,(Q,I)=>{if(Q!==null){B(Q,void 0);return}for(const C of I)this._handleEntry(C,A.base);B(null,void 0)})}_handleError(A){this._isDestroyed||!eg.isFatalError(this._settings,A)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A))}_handleEntry(A,B){if(this._isDestroyed||this._isFatalError)return;const Q=A.path;B!==void 0&&(A.path=eg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A)&&this._emitEntry(A),A.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_emitEntry(A){this._emitter.emit("entry",A)}}Wg.default=Xw,Object.defineProperty(qB,"__esModule",{value:!0});const uw=Wg;class vw{constructor(A,B){this._root=A,this._settings=B,this._reader=new uw.default(this._root,this._settings),this._storage=[]}read(A){this._reader.onError(B=>{_w(A,B)}),this._reader.onEntry(B=>{this._storage.push(B)}),this._reader.onEnd(()=>{$w(A,this._storage)}),this._reader.read()}}qB.default=vw;function _w(g,A){g(A)}function $w(g,A){g(null,A)}var OB={};Object.defineProperty(OB,"__esModule",{value:!0});const Ai=ag.default,gi=Wg;class Bi{constructor(A,B){this._root=A,this._settings=B,this._reader=new gi.default(this._root,this._settings),this._stream=new Ai.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(A=>{this._stream.emit("error",A)}),this._reader.onEntry(A=>{this._stream.push(A)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}OB.default=Bi;var TB={},xB={};Object.defineProperty(xB,"__esModule",{value:!0});const Qi=cA,mg=MA,Ii=ng;class Ci extends Ii.default{constructor(){super(...arguments),this._scandir=Qi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A,B){this._queue.add({directory:A,base:B})}_handleQueue(){for(const A of this._queue.values())this._handleDirectory(A.directory,A.base)}_handleDirectory(A,B){try{const Q=this._scandir(A,this._settings.fsScandirSettings);for(const I of Q)this._handleEntry(I,B)}catch(Q){this._handleError(Q)}}_handleError(A){if(!!mg.isFatalError(this._settings,A))throw A}_handleEntry(A,B){const Q=A.path;B!==void 0&&(A.path=mg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),mg.isAppliedFilter(this._settings.entryFilter,A)&&this._pushToStorage(A),A.dirent.isDirectory()&&mg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_pushToStorage(A){this._storage.push(A)}}xB.default=Ci,Object.defineProperty(TB,"__esModule",{value:!0});const Ei=xB;class Di{constructor(A,B){this._root=A,this._settings=B,this._reader=new Ei.default(this._root,this._settings)}read(){return this._reader.read()}}TB.default=Di;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const wi=kA.default,ii=cA;class oi{constructor(A={}){this._options=A,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,wi.sep),this.fsScandirSettings=new ii.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}dB.default=oi,Object.defineProperty(yA,"__esModule",{value:!0}),yA.Settings=yA.walkStream=yA.walkSync=yA.walk=void 0;const HI=qB,Gi=OB,ki=TB,WB=dB;yA.Settings=WB.default;function Ni(g,A,B){if(typeof A=="function"){new HI.default(g,rg()).read(A);return}new HI.default(g,rg(A)).read(B)}yA.walk=Ni;function Fi(g,A){const B=rg(A);return new ki.default(g,B).read()}yA.walkSync=Fi;function Mi(g,A){const B=rg(A);return new Gi.default(g,B).read()}yA.walkStream=Mi;function rg(g={}){return g instanceof WB.default?g:new WB.default(g)}var jg={};Object.defineProperty(jg,"__esModule",{value:!0});const ai=kA.default,Ji=wA,cI=v;class Ri{constructor(A){this._settings=A,this._fsStatSettings=new Ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(A){return ai.resolve(this._settings.cwd,A)}_makeEntry(A,B){const Q={name:B,path:B,dirent:cI.fs.createDirentFromStats(B,A)};return this._settings.stats&&(Q.stats=A),Q}_isFatalError(A){return!cI.errno.isEnoentCodeError(A)&&!this._settings.suppressErrors}}jg.default=Ri,Object.defineProperty(Tg,"__esModule",{value:!0});const Ki=ag.default,yi=wA,Yi=yA,si=jg;class Ui extends si.default{constructor(){super(...arguments),this._walkStream=Yi.walkStream,this._stat=yi.stat}dynamic(A,B){return this._walkStream(A,B)}static(A,B){const Q=A.map(this._getFullEntryPath,this),I=new Ki.PassThrough({objectMode:!0});I._write=(C,E,D)=>this._getEntry(Q[C],A[C],B).then(G=>{G!==null&&B.entryFilter(G)&&I.push(G),C===Q.length-1&&I.end(),D()}).catch(D);for(let C=0;C<Q.length;C++)I.write(C);return I}_getEntry(A,B,Q){return this._getStat(A).then(I=>this._makeEntry(I,B)).catch(I=>{if(Q.errorFilter(I))return null;throw I})}_getStat(A){return new Promise((B,Q)=>{this._stat(A,this._fsStatSettings,(I,C)=>I===null?B(C):Q(I))})}}Tg.default=Ui;var kg={},ZB={},fB={},bB={};Object.defineProperty(bB,"__esModule",{value:!0});const vA=v;class Li{constructor(A,B,Q){this._patterns=A,this._settings=B,this._micromatchOptions=Q,this._storage=[],this._fillStorage()}_fillStorage(){const A=vA.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const B of A){const Q=this._getPatternSegments(B),I=this._splitSegmentsIntoSections(Q);this._storage.push({complete:I.length<=1,pattern:B,segments:Q,sections:I})}}_getPatternSegments(A){return vA.pattern.getPatternParts(A,this._micromatchOptions).map(Q=>vA.pattern.isDynamicPattern(Q,this._settings)?{dynamic:!0,pattern:Q,patternRe:vA.pattern.makeRe(Q,this._micromatchOptions)}:{dynamic:!1,pattern:Q})}_splitSegmentsIntoSections(A){return vA.array.splitWhen(A,B=>B.dynamic&&vA.pattern.hasGlobStar(B.pattern))}}bB.default=Li,Object.defineProperty(fB,"__esModule",{value:!0});const hi=bB;class qi extends hi.default{match(A){const B=A.split("/"),Q=B.length,I=this._storage.filter(C=>!C.complete||C.segments.length>Q);for(const C of I){const E=C.sections[0];if(!C.complete&&Q>E.length||B.every((G,k)=>{const N=C.segments[k];return!!(N.dynamic&&N.patternRe.test(G)||!N.dynamic&&N.pattern===G)}))return!0}return!1}}fB.default=qi,Object.defineProperty(ZB,"__esModule",{value:!0});const Pg=v,Hi=fB;class ci{constructor(A,B){this._settings=A,this._micromatchOptions=B}getFilter(A,B,Q){const I=this._getMatcher(B),C=this._getNegativePatternsRe(Q);return E=>this._filter(A,E,I,C)}_getMatcher(A){return new Hi.default(A,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A){const B=A.filter(Pg.pattern.isAffectDepthOfReadingPattern);return Pg.pattern.convertPatternsToRe(B,this._micromatchOptions)}_filter(A,B,Q,I){if(this._isSkippedByDeep(A,B.path)||this._isSkippedSymbolicLink(B))return!1;const C=Pg.path.removeLeadingDotSegment(B.path);return this._isSkippedByPositivePatterns(C,Q)?!1:this._isSkippedByNegativePatterns(C,I)}_isSkippedByDeep(A,B){return this._settings.deep===1/0?!1:this._getEntryLevel(A,B)>=this._settings.deep}_getEntryLevel(A,B){const Q=B.split("/").length;if(A==="")return Q;const I=A.split("/").length;return Q-I}_isSkippedSymbolicLink(A){return!this._settings.followSymbolicLinks&&A.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A,B){return!this._settings.baseNameMatch&&!B.match(A)}_isSkippedByNegativePatterns(A,B){return!Pg.pattern.matchAny(A,B)}}ZB.default=ci;var nB={};Object.defineProperty(nB,"__esModule",{value:!0});const bA=v;class Si{constructor(A,B){this._settings=A,this._micromatchOptions=B,this.index=new Map}getFilter(A,B){const Q=bA.pattern.convertPatternsToRe(A,this._micromatchOptions),I=bA.pattern.convertPatternsToRe(B,this._micromatchOptions);return C=>this._filter(C,Q,I)}_filter(A,B,Q){if(this._settings.unique&&this._isDuplicateEntry(A)||this._onlyFileFilter(A)||this._onlyDirectoryFilter(A)||this._isSkippedByAbsoluteNegativePatterns(A.path,Q))return!1;const I=this._settings.baseNameMatch?A.name:A.path,C=this._isMatchToPatterns(I,B)&&!this._isMatchToPatterns(A.path,Q);return this._settings.unique&&C&&this._createIndexRecord(A),C}_isDuplicateEntry(A){return this.index.has(A.path)}_createIndexRecord(A){this.index.set(A.path,void 0)}_onlyFileFilter(A){return this._settings.onlyFiles&&!A.dirent.isFile()}_onlyDirectoryFilter(A){return this._settings.onlyDirectories&&!A.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(A,B){if(!this._settings.absolute)return!1;const Q=bA.path.makeAbsolute(this._settings.cwd,A);return bA.pattern.matchAny(Q,B)}_isMatchToPatterns(A,B){const Q=bA.path.removeLeadingDotSegment(A);return bA.pattern.matchAny(Q,B)||bA.pattern.matchAny(Q+"/",B)}}nB.default=Si;var eB={};Object.defineProperty(eB,"__esModule",{value:!0});const pi=v;class ti{constructor(A){this._settings=A}getFilter(){return A=>this._isNonFatalError(A)}_isNonFatalError(A){return pi.errno.isEnoentCodeError(A)||this._settings.suppressErrors}}eB.default=ti;var mB={};Object.defineProperty(mB,"__esModule",{value:!0});const SI=v;class Oi{constructor(A){this._settings=A}getTransformer(){return A=>this._transform(A)}_transform(A){let B=A.path;return this._settings.absolute&&(B=SI.path.makeAbsolute(this._settings.cwd,B),B=SI.path.unixify(B)),this._settings.markDirectories&&A.dirent.isDirectory()&&(B+="/"),this._settings.objectMode?Object.assign(Object.assign({},A),{path:B}):B}}mB.default=Oi,Object.defineProperty(kg,"__esModule",{value:!0});const Ti=kA.default,xi=ZB,di=nB,Wi=eB,Zi=mB;class fi{constructor(A){this._settings=A,this.errorFilter=new Wi.default(this._settings),this.entryFilter=new di.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xi.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Zi.default(this._settings)}_getRootDirectory(A){return Ti.resolve(this._settings.cwd,A.base)}_getReaderOptions(A){const B=A.base==="."?"":A.base;return{basePath:B,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(B,A.positive,A.negative),entryFilter:this.entryFilter.getFilter(A.positive,A.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}}}kg.default=fi,Object.defineProperty(YB,"__esModule",{value:!0});const bi=Tg,ni=kg;class ei extends ni.default{constructor(){super(...arguments),this._reader=new bi.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=[];return new Promise((C,E)=>{const D=this.api(B,A,Q);D.once("error",E),D.on("data",G=>I.push(Q.transform(G))),D.once("end",()=>C(I))})}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}YB.default=ei;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const mi=ag.default,ri=Tg,ji=kg;class Pi extends ji.default{constructor(){super(...arguments),this._reader=new ri.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=this.api(B,A,Q),C=new mi.Readable({objectMode:!0,read:()=>{}});return I.once("error",E=>C.emit("error",E)).on("data",E=>C.emit("data",Q.transform(E))).once("end",()=>C.emit("end")),C.once("close",()=>I.destroy()),C}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}rB.default=Pi;var jB={},PB={};Object.defineProperty(PB,"__esModule",{value:!0});const li=wA,Vi=yA,zi=jg;class Xi extends zi.default{constructor(){super(...arguments),this._walkSync=Vi.walkSync,this._statSync=li.statSync}dynamic(A,B){return this._walkSync(A,B)}static(A,B){const Q=[];for(const I of A){const C=this._getFullEntryPath(I),E=this._getEntry(C,I,B);E===null||!B.entryFilter(E)||Q.push(E)}return Q}_getEntry(A,B,Q){try{const I=this._getStat(A);return this._makeEntry(I,B)}catch(I){if(Q.errorFilter(I))return null;throw I}}_getStat(A){return this._statSync(A,this._fsStatSettings)}}PB.default=Xi,Object.defineProperty(jB,"__esModule",{value:!0});const ui=PB,vi=kg;class _i extends vi.default{constructor(){super(...arguments),this._reader=new ui.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A);return this.api(B,A,Q).map(Q.transform)}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}jB.default=_i;var pI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default,B=$B.default,Q=Math.max(B.cpus().length,1);g.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:A.lstat,lstatSync:A.lstatSync,stat:A.stat,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};class I{constructor(E={}){this._options=E,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,Q),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)}_getValue(E,D){return E===void 0?D:E}_getFileSystemMethods(E={}){return Object.assign(Object.assign({},g.DEFAULT_FILE_SYSTEM_ADAPTER),E)}}g.default=I})(pI);const tI=BA,OI=uA,$i=YB,Ao=rB,go=jB,lB=pI,nA=v;async function VB(g,A){_A(g);const B=zB(g,$i.default,A),Q=await Promise.all(B);return nA.array.flatten(Q)}(function(g){function A(E,D){_A(E);const G=zB(E,go.default,D);return nA.array.flatten(G)}g.sync=A;function B(E,D){_A(E);const G=zB(E,Ao.default,D);return nA.stream.merge(G)}g.stream=B;function Q(E,D){_A(E);const G=OI.transform([].concat(E)),k=new lB.default(D);return tI.generate(G,k)}g.generateTasks=Q;function I(E,D){_A(E);const G=new lB.default(D);return nA.pattern.isDynamicPattern(E,G)}g.isDynamicPattern=I;function C(E){return _A(E),nA.path.escape(E)}g.escapePath=C})(VB||(VB={}));function zB(g,A,B){const Q=OI.transform([].concat(g)),I=new lB.default(B),C=tI.generate(Q,I),E=new A(I);return C.map(E.read,E)}function _A(g){if(![].concat(g).every(Q=>nA.string.isString(Q)&&!nA.string.isEmpty(Q)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}var Bo=VB,Qo=Bo;let XB;process.on("message",async g=>{g.method==="exit"&&ZI.exit(0),typeof XB>"u"&&(XB=await lg.exports.TaploLsp.initialize({cwd:()=>process.cwd(),envVar:A=>process.env[A],findConfigFile:A=>{const B=[".taplo.toml","taplo.toml"];for(const Q of B)try{const I=kA.default.join(A,Q);return Mg.default.accessSync(I),I}catch{}},glob:A=>Qo.sync(A),isAbsolute:A=>kA.default.isAbsolute(A),now:()=>new Date,readFile:A=>_B.default.readFile(A),writeFile:(A,B)=>_B.default.writeFile(A,B),stderr:process.stderr,stdErrAtty:()=>process.stderr.isTTY,stdin:process.stdin,stdout:process.stdout,urlToFilePath:A=>{const B=decodeURIComponent(A).slice(7);return process.platform==="win32"&&B.startsWith("/")?B.slice(1):B},fetch:{fetch:GQ,Headers:OA,Request:$A,Response:iA}},{onMessage(A){process.send(A)}})),XB.send(g)}),process.on("unhandledRejection",g=>{throw g}),exports.File=QQ,exports.FormData=Rg;
RuntimeError: unreachable
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd44b
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
[Info - 02:38:48] Connection to server got closed. Server will restart.
[Error - 02:38:48] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:48] Even Better TOML LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
INFO registered request handler method="initialize"
INFO registered request handler method="textDocument/foldingRange"
INFO registered request handler method="textDocument/documentSymbol"
INFO registered request handler method="textDocument/formatting"
INFO registered request handler method="textDocument/completion"
INFO registered request handler method="textDocument/hover"
INFO registered request handler method="textDocument/documentLink"
INFO registered request handler method="textDocument/semanticTokens/full"
INFO registered request handler method="textDocument/prepareRename"
INFO registered request handler method="textDocument/rename"
INFO registered notification handler method="initialized"
INFO registered notification handler method="textDocument/didOpen"
INFO registered notification handler method="textDocument/didChange"
INFO registered notification handler method="textDocument/didSave"
INFO registered notification handler method="textDocument/didClose"
INFO registered notification handler method="workspace/didChangeConfiguration"
INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
INFO registered request handler method="taplo/convertToJson"
INFO registered request handler method="taplo/convertToToml"
INFO registered request handler method="taplo/listSchemas"
INFO registered request handler method="taplo/associatedSchema"
INFO registered notification handler method="taplo/associateSchema"
panicked at 'getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto module is unavailable" }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.8.0/src/random_state.rs:77:51
Stack:
Error
at i.wbg.__wbg_new_693216e109162396 (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5841)
at wasm://wasm/00f6ca2e:wasm-function[5308]:0x321a3d
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd428
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40
`,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"};const yE=$g,{MAX_LENGTH:tQ,CHAR_BACKSLASH:QB,CHAR_BACKTICK:YE,CHAR_COMMA:sE,CHAR_DOT:UE,CHAR_LEFT_PARENTHESES:LE,CHAR_RIGHT_PARENTHESES:hE,CHAR_LEFT_CURLY_BRACE:qE,CHAR_RIGHT_CURLY_BRACE:HE,CHAR_LEFT_SQUARE_BRACKET:OQ,CHAR_RIGHT_SQUARE_BRACKET:TQ,CHAR_DOUBLE_QUOTE:cE,CHAR_SINGLE_QUOTE:SE,CHAR_NO_BREAK_SPACE:pE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tE}=KE,OE=(g,A={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let B=A||{},Q=typeof B.maxLength=="number"?Math.min(tQ,B.maxLength):tQ;if(g.length>Q)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${Q})`);let I={type:"root",input:g,nodes:[]},C=[I],E=I,D=I,G=0,k=g.length,N=0,y=0,F;const h=()=>g[N++],M=Y=>{if(Y.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&Y.type==="text"){D.value+=Y.value;return}return E.nodes.push(Y),Y.parent=E,Y.prev=D,D=Y,Y};for(M({type:"bos"});N<k;)if(E=C[C.length-1],F=h(),!(F===tE||F===pE)){if(F===QB){M({type:"text",value:(A.keepEscaping?F:"")+h()});continue}if(F===TQ){M({type:"text",value:"\\"+F});continue}if(F===OQ){G++;let Y;for(;N<k&&(Y=h());){if(F+=Y,Y===OQ){G++;continue}if(Y===QB){F+=h();continue}if(Y===TQ&&(G--,G===0))break}M({type:"text",value:F});continue}if(F===LE){E=M({type:"paren",nodes:[]}),C.push(E),M({type:"text",value:F});continue}if(F===hE){if(E.type!=="paren"){M({type:"text",value:F});continue}E=C.pop(),M({type:"text",value:F}),E=C[C.length-1];continue}if(F===cE||F===SE||F===YE){let Y=F,c;for(A.keepQuotes!==!0&&(F="");N<k&&(c=h());){if(c===QB){F+=c+h();continue}if(c===Y){A.keepQuotes===!0&&(F+=c);break}F+=c}M({type:"text",value:F});continue}if(F===qE){y++;let Y=D.value&&D.value.slice(-1)==="$"||E.dollar===!0;E=M({type:"brace",open:!0,close:!1,dollar:Y,depth:y,commas:0,ranges:0,nodes:[]}),C.push(E),M({type:"open",value:F});continue}if(F===HE){if(E.type!=="brace"){M({type:"text",value:F});continue}let Y="close";E=C.pop(),E.close=!0,M({type:Y,value:F}),y--,E=C[C.length-1];continue}if(F===sE&&y>0){if(E.ranges>0){E.ranges=0;let Y=E.nodes.shift();E.nodes=[Y,{type:"text",value:yE(E)}]}M({type:"comma",value:F}),E.commas++;continue}if(F===UE&&y>0&&E.commas===0){let Y=E.nodes;if(y===0||Y.length===0){M({type:"text",value:F});continue}if(D.type==="dot"){if(E.range=[],D.value+=F,D.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,D.type="text";continue}E.ranges++,E.args=[];continue}if(D.type==="range"){Y.pop();let c=Y[Y.length-1];c.value+=D.value+F,D=c,E.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(E=C.pop(),E.type!=="root"){E.nodes.forEach(S=>{S.nodes||(S.type==="open"&&(S.isOpen=!0),S.type==="close"&&(S.isClose=!0),S.nodes||(S.type="text"),S.invalid=!0)});let Y=C[C.length-1],c=Y.nodes.indexOf(E);Y.nodes.splice(c,1,...E.nodes)}while(C.length>0);return M({type:"eos"}),I};var TE=OE;const xQ=$g,xE=ME,dE=RE,WE=TE,DA=(g,A={})=>{let B=[];if(Array.isArray(g))for(let Q of g){let I=DA.create(Q,A);Array.isArray(I)?B.push(...I):B.push(I)}else B=[].concat(DA.create(g,A));return A&&A.expand===!0&&A.nodupes===!0&&(B=[...new Set(B)]),B};DA.parse=(g,A={})=>WE(g,A),DA.stringify=(g,A={})=>xQ(typeof g=="string"?DA.parse(g,A):g,A),DA.compile=(g,A={})=>(typeof g=="string"&&(g=DA.parse(g,A)),xE(g,A)),DA.expand=(g,A={})=>{typeof g=="string"&&(g=DA.parse(g,A));let B=dE(g,A);return A.noempty===!0&&(B=B.filter(Boolean)),A.nodupes===!0&&(B=[...new Set(B)]),B},DA.create=(g,A={})=>g===""||g.length<3?[g]:A.expand!==!0?DA.compile(g,A):DA.expand(g,A);var ZE=DA,dQ={exports:{}},Dg={};const fE=kA.default,qA="\\\\/",WQ=`[^${qA}]`,pA="\\.",bE="\\+",nE="\\?",Hg="\\/",eE="(?=.)",ZQ="[^/]",IB=`(?:${Hg}|$)`,fQ=`(?:^|${Hg})`,CB=`${pA}{1,2}${IB}`,mE=`(?!${pA})`,rE=`(?!${fQ}${CB})`,jE=`(?!${pA}{0,1}${IB})`,PE=`(?!${CB})`,lE=`[^.${Hg}]`,VE=`${ZQ}*?`,bQ={DOT_LITERAL:pA,PLUS_LITERAL:bE,QMARK_LITERAL:nE,SLASH_LITERAL:Hg,ONE_CHAR:eE,QMARK:ZQ,END_ANCHOR:IB,DOTS_SLASH:CB,NO_DOT:mE,NO_DOTS:rE,NO_DOT_SLASH:jE,NO_DOTS_SLASH:PE,QMARK_NO_DOT:lE,STAR:VE,START_ANCHOR:fQ},zE={...bQ,SLASH_LITERAL:`[${qA}]`,QMARK:WQ,STAR:`${WQ}*?`,DOTS_SLASH:`${pA}{1,2}(?:[${qA}]|$)`,NO_DOT:`(?!${pA})`,NO_DOTS:`(?!(?:^|[${qA}])${pA}{1,2}(?:[${qA}]|$))`,NO_DOT_SLASH:`(?!${pA}{0,1}(?:[${qA}]|$))`,NO_DOTS_SLASH:`(?!${pA}{1,2}(?:[${qA}]|$))`,QMARK_NO_DOT:`[^.${qA}]`,START_ANCHOR:`(?:^|[${qA}])`,END_ANCHOR:`(?:[${qA}]|$)`},XE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var cg={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fE.sep,extglobChars(g){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${g.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(g){return g===!0?zE:bQ}};(function(g){const A=kA.default,B=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:I,REGEX_SPECIAL_CHARS:C,REGEX_SPECIAL_CHARS_GLOBAL:E}=cg;g.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),g.hasRegexChars=D=>C.test(D),g.isRegexChar=D=>D.length===1&&g.hasRegexChars(D),g.escapeRegex=D=>D.replace(E,"\\$1"),g.toPosixSlashes=D=>D.replace(Q,"/"),g.removeBackslashes=D=>D.replace(I,G=>G==="\\"?"":G),g.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},g.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:B===!0||A.sep==="\\",g.escapeLast=(D,G,k)=>{const N=D.lastIndexOf(G,k);return N===-1?D:D[N-1]==="\\"?g.escapeLast(D,G,N-1):`${D.slice(0,N)}\\${D.slice(N)}`},g.removePrefix=(D,G={})=>{let k=D;return k.startsWith("./")&&(k=k.slice(2),G.prefix="./"),k},g.wrapOutput=(D,G={},k={})=>{const N=k.contains?"":"^",y=k.contains?"":"$";let F=`${N}(?:${D})${y}`;return G.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(Dg);const nQ=Dg,{CHAR_ASTERISK:EB,CHAR_AT:uE,CHAR_BACKWARD_SLASH:wg,CHAR_COMMA:vE,CHAR_DOT:DB,CHAR_EXCLAMATION_MARK:wB,CHAR_FORWARD_SLASH:eQ,CHAR_LEFT_CURLY_BRACE:iB,CHAR_LEFT_PARENTHESES:oB,CHAR_LEFT_SQUARE_BRACKET:_E,CHAR_PLUS:$E,CHAR_QUESTION_MARK:mQ,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:rQ,CHAR_RIGHT_SQUARE_BRACKET:gD}=cg,jQ=g=>g===eQ||g===wg,PQ=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},BD=(g,A)=>{const B=A||{},Q=g.length-1,I=B.parts===!0||B.scanToEnd===!0,C=[],E=[],D=[];let G=g,k=-1,N=0,y=0,F=!1,h=!1,M=!1,Y=!1,c=!1,S=!1,j=!1,H=!1,e=!1,q=!1,Z=0,T,p,m={value:"",depth:0,isGlob:!1};const b=()=>k>=Q,R=()=>G.charCodeAt(k+1),X=()=>(T=p,G.charCodeAt(++k));for(;k<Q;){p=X();let AA;if(p===wg){j=m.backslashes=!0,p=X(),p===iB&&(S=!0);continue}if(S===!0||p===iB){for(Z++;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,X();continue}if(p===iB){Z++;continue}if(S!==!0&&p===DB&&(p=X())===DB){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(S!==!0&&p===vE){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===AD&&(Z--,Z===0)){S=!1,F=m.isBrace=!0,q=!0;break}}if(I===!0)continue;break}if(p===eQ){if(C.push(k),E.push(m),m={value:"",depth:0,isGlob:!1},q===!0)continue;if(T===DB&&k===N+1){N+=2;continue}y=k+1;continue}if(B.noext!==!0&&(p===$E||p===uE||p===EB||p===mQ||p===wB)===!0&&R()===oB){if(M=m.isGlob=!0,Y=m.isExtglob=!0,q=!0,p===wB&&k===N&&(e=!0),I===!0){for(;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,p=X();continue}if(p===rQ){M=m.isGlob=!0,q=!0;break}}continue}break}if(p===EB){if(T===EB&&(c=m.isGlobstar=!0),M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===mQ){if(M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===_E){for(;b()!==!0&&(AA=X());){if(AA===wg){j=m.backslashes=!0,X();continue}if(AA===gD){h=m.isBracket=!0,M=m.isGlob=!0,q=!0;break}}if(I===!0)continue;break}if(B.nonegate!==!0&&p===wB&&k===N){H=m.negated=!0,N++;continue}if(B.noparen!==!0&&p===oB){if(M=m.isGlob=!0,I===!0){for(;b()!==!0&&(p=X());){if(p===oB){j=m.backslashes=!0,p=X();continue}if(p===rQ){q=!0;break}}continue}break}if(M===!0){if(q=!0,I===!0)continue;break}}B.noext===!0&&(Y=!1,M=!1);let l=G,YA="",a="";N>0&&(YA=G.slice(0,N),G=G.slice(N),y-=N),l&&M===!0&&y>0?(l=G.slice(0,y),a=G.slice(y)):M===!0?(l="",a=G):l=G,l&&l!==""&&l!=="/"&&l!==G&&jQ(l.charCodeAt(l.length-1))&&(l=l.slice(0,-1)),B.unescape===!0&&(a&&(a=nQ.removeBackslashes(a)),l&&j===!0&&(l=nQ.removeBackslashes(l)));const J={prefix:YA,input:g,start:N,base:l,glob:a,isBrace:F,isBracket:h,isGlob:M,isExtglob:Y,isGlobstar:c,negated:H,negatedExtglob:e};if(B.tokens===!0&&(J.maxDepth=0,jQ(p)||E.push(m),J.tokens=E),B.parts===!0||B.tokens===!0){let AA;for(let n=0;n<C.length;n++){const oA=AA?AA+1:N,QA=C[n],IA=g.slice(oA,QA);B.tokens&&(n===0&&N!==0?(E[n].isPrefix=!0,E[n].value=YA):E[n].value=IA,PQ(E[n]),J.maxDepth+=E[n].depth),(n!==0||IA!=="")&&D.push(IA),AA=QA}if(AA&&AA+1<g.length){const n=g.slice(AA+1);D.push(n),B.tokens&&(E[E.length-1].value=n,PQ(E[E.length-1]),J.maxDepth+=E[E.length-1].depth)}J.slashes=C,J.parts=D}return J};var QD=BD;const Sg=cg,NA=Dg,{MAX_LENGTH:pg,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:ED,REPLACEMENTS:lQ}=Sg,DD=(g,A)=>typeof A.expandRange=="function"?A.expandRange(...g,A):(g.sort(),`[${g.join("-")}]`),zA=(g,A)=>`Missing ${g}: "${A}" - use "\\\\${A}" to match literal characters`,GB=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=lQ[g]||g;const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg;let I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);const C={type:"bos",value:"",output:B.prepend||""},E=[C],D=B.capture?"":"?:",G=NA.isWindows(A),k=Sg.globChars(G),N=Sg.extglobChars(k),{DOT_LITERAL:y,PLUS_LITERAL:F,SLASH_LITERAL:h,ONE_CHAR:M,DOTS_SLASH:Y,NO_DOT:c,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:H,QMARK_NO_DOT:e,STAR:q,START_ANCHOR:Z}=k,T=L=>`(${D}(?:(?!${Z}${L.dot?Y:y}).)*?)`,p=B.dot?"":c,m=B.dot?H:e;let b=B.bash===!0?T(B):q;B.capture&&(b=`(${b})`),typeof B.noext=="boolean"&&(B.noextglob=B.noext);const R={input:g,index:-1,start:0,dot:B.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};g=NA.removePrefix(g,R),I=g.length;const X=[],l=[],YA=[];let a=C,J;const AA=()=>R.index===I-1,n=R.peek=(L=1)=>g[R.index+L],oA=R.advance=()=>g[++R.index]||"",QA=()=>g.slice(R.index+1),IA=(L="",V=0)=>{R.consumed+=L,R.index+=V},dA=L=>{R.output+=L.output!=null?L.output:L.value,IA(L.value)},Ng=()=>{let L=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)oA(),R.start++,L++;return L%2===0?!1:(R.negated=!0,R.start++,!0)},eA=L=>{R[L]++,YA.push(L)},aA=L=>{R[L]--,YA.pop()},f=L=>{if(a.type==="globstar"){const V=R.braces>0&&(L.type==="comma"||L.type==="brace"),s=L.extglob===!0||X.length&&(L.type==="pipe"||L.type==="paren");L.type!=="slash"&&L.type!=="paren"&&!V&&!s&&(R.output=R.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=b,R.output+=a.output)}if(X.length&&L.type!=="paren"&&(X[X.length-1].inner+=L.value),(L.value||L.output)&&dA(L),a&&a.type==="text"&&L.type==="text"){a.value+=L.value,a.output=(a.output||"")+L.value;return}L.prev=a,E.push(L),a=L},mA=(L,V)=>{const s={...N[V],conditions:1,inner:""};s.prev=a,s.parens=R.parens,s.output=R.output;const x=(B.capture?"(":"")+s.open;eA("parens"),f({type:L,value:V,output:R.output?"":M}),f({type:"paren",extglob:!0,value:oA(),output:x}),X.push(s)},rA=L=>{let V=L.close+(B.capture?")":""),s;if(L.type==="negate"){let x=b;if(L.inner&&L.inner.length>1&&L.inner.includes("/")&&(x=T(B)),(x!==b||AA()||/^\)+$/.test(QA()))&&(V=L.close=`)$))${x}`),L.inner.includes("*")&&(s=QA())&&/^\.[^\\/.]+$/.test(s)){const P=GB(s,{...A,fastpaths:!1}).output;V=L.close=`)${P})${x})`}L.prev.type==="bos"&&(R.negatedExtglob=!0)}f({type:"paren",extglob:!0,value:J,output:V}),aA("parens")};if(B.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let L=!1,V=g.replace(ED,(s,x,P,z,i,w)=>z==="\\"?(L=!0,s):z==="?"?x?x+z+(i?H.repeat(i.length):""):w===0?m+(i?H.repeat(i.length):""):H.repeat(P.length):z==="."?y.repeat(P.length):z==="*"?x?x+z+(i?b:""):b:x?s:`\\${s}`);return L===!0&&(B.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,s=>s.length%2===0?"\\\\":s?"\\":"")),V===g&&B.contains===!0?(R.output=g,R):(R.output=NA.wrapOutput(V,R,A),R)}for(;!AA();){if(J=oA(),J==="\0")continue;if(J==="\\"){const s=n();if(s==="/"&&B.bash!==!0||s==="."||s===";")continue;if(!s){J+="\\",f({type:"text",value:J});continue}const x=/^\\+/.exec(QA());let P=0;if(x&&x[0].length>2&&(P=x[0].length,R.index+=P,P%2!==0&&(J+="\\")),B.unescape===!0?J=oA():J+=oA(),R.brackets===0){f({type:"text",value:J});continue}}if(R.brackets>0&&(J!=="]"||a.value==="["||a.value==="[^")){if(B.posix!==!1&&J===":"){const s=a.value.slice(1);if(s.includes("[")&&(a.posix=!0,s.includes(":"))){const x=a.value.lastIndexOf("["),P=a.value.slice(0,x),z=a.value.slice(x+2),i=ID[z];if(i){a.value=P+i,R.backtrack=!0,oA(),!C.output&&E.indexOf(a)===1&&(C.output=M);continue}}}(J==="["&&n()!==":"||J==="-"&&n()==="]")&&(J=`\\${J}`),J==="]"&&(a.value==="["||a.value==="[^")&&(J=`\\${J}`),B.posix===!0&&J==="!"&&a.value==="["&&(J="^"),a.value+=J,dA({value:J});continue}if(R.quotes===1&&J!=='"'){J=NA.escapeRegex(J),a.value+=J,dA({value:J});continue}if(J==='"'){R.quotes=R.quotes===1?0:1,B.keepQuotes===!0&&f({type:"text",value:J});continue}if(J==="("){eA("parens"),f({type:"paren",value:J});continue}if(J===")"){if(R.parens===0&&B.strictBrackets===!0)throw new SyntaxError(zA("opening","("));const s=X[X.length-1];if(s&&R.parens===s.parens+1){rA(X.pop());continue}f({type:"paren",value:J,output:R.parens?")":"\\)"}),aA("parens");continue}if(J==="["){if(B.nobracket===!0||!QA().includes("]")){if(B.nobracket!==!0&&B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));J=`\\${J}`}else eA("brackets");f({type:"bracket",value:J});continue}if(J==="]"){if(B.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){f({type:"text",value:J,output:`\\${J}`});continue}if(R.brackets===0){if(B.strictBrackets===!0)throw new SyntaxError(zA("opening","["));f({type:"text",value:J,output:`\\${J}`});continue}aA("brackets");const s=a.value.slice(1);if(a.posix!==!0&&s[0]==="^"&&!s.includes("/")&&(J=`/${J}`),a.value+=J,dA({value:J}),B.literalBrackets===!1||NA.hasRegexChars(s))continue;const x=NA.escapeRegex(a.value);if(R.output=R.output.slice(0,-a.value.length),B.literalBrackets===!0){R.output+=x,a.value=x;continue}a.value=`(${D}${x}|${a.value})`,R.output+=a.value;continue}if(J==="{"&&B.nobrace!==!0){eA("braces");const s={type:"brace",value:J,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};l.push(s),f(s);continue}if(J==="}"){const s=l[l.length-1];if(B.nobrace===!0||!s){f({type:"text",value:J,output:J});continue}let x=")";if(s.dots===!0){const P=E.slice(),z=[];for(let i=P.length-1;i>=0&&(E.pop(),P[i].type!=="brace");i--)P[i].type!=="dots"&&z.unshift(P[i].value);x=DD(z,B),R.backtrack=!0}if(s.comma!==!0&&s.dots!==!0){const P=R.output.slice(0,s.outputIndex),z=R.tokens.slice(s.tokensIndex);s.value=s.output="\\{",J=x="\\}",R.output=P;for(const i of z)R.output+=i.output||i.value}f({type:"brace",value:J,output:x}),aA("braces"),l.pop();continue}if(J==="|"){X.length>0&&X[X.length-1].conditions++,f({type:"text",value:J});continue}if(J===","){let s=J;const x=l[l.length-1];x&&YA[YA.length-1]==="braces"&&(x.comma=!0,s="|"),f({type:"comma",value:J,output:s});continue}if(J==="/"){if(a.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",E.pop(),a=C;continue}f({type:"slash",value:J,output:h});continue}if(J==="."){if(R.braces>0&&a.type==="dot"){a.value==="."&&(a.output=y);const s=l[l.length-1];a.type="dots",a.output+=J,a.value+=J,s.dots=!0;continue}if(R.braces+R.parens===0&&a.type!=="bos"&&a.type!=="slash"){f({type:"text",value:J,output:y});continue}f({type:"dot",value:J,output:y});continue}if(J==="?"){if(!(a&&a.value==="(")&&B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("qmark",J);continue}if(a&&a.type==="paren"){const x=n();let P=J;if(x==="<"&&!NA.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(QA()))&&(P=`\\${J}`),f({type:"text",value:J,output:P});continue}if(B.dot!==!0&&(a.type==="slash"||a.type==="bos")){f({type:"qmark",value:J,output:e});continue}f({type:"qmark",value:J,output:H});continue}if(J==="!"){if(B.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){mA("negate",J);continue}if(B.nonegate!==!0&&R.index===0){Ng();continue}}if(J==="+"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("plus",J);continue}if(a&&a.value==="("||B.regex===!1){f({type:"plus",value:J,output:F});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||R.parens>0){f({type:"plus",value:J});continue}f({type:"plus",value:F});continue}if(J==="@"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){f({type:"at",extglob:!0,value:J,output:""});continue}f({type:"text",value:J});continue}if(J!=="*"){(J==="$"||J==="^")&&(J=`\\${J}`);const s=CD.exec(QA());s&&(J+=s[0],R.index+=s[0].length),f({type:"text",value:J});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=J,a.output=b,R.backtrack=!0,R.globstar=!0,IA(J);continue}let L=QA();if(B.noextglob!==!0&&/^\([^?]/.test(L)){mA("star",J);continue}if(a.type==="star"){if(B.noglobstar===!0){IA(J);continue}const s=a.prev,x=s.prev,P=s.type==="slash"||s.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(B.bash===!0&&(!P||L[0]&&L[0]!=="/")){f({type:"star",value:J,output:""});continue}const i=R.braces>0&&(s.type==="comma"||s.type==="brace"),w=X.length&&(s.type==="pipe"||s.type==="paren");if(!P&&s.type!=="paren"&&!i&&!w){f({type:"star",value:J,output:""});continue}for(;L.slice(0,3)==="/**";){const o=g[R.index+4];if(o&&o!=="/")break;L=L.slice(3),IA("/**",3)}if(s.type==="bos"&&AA()){a.type="globstar",a.value+=J,a.output=T(B),R.output=a.output,R.globstar=!0,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!z&&AA()){R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=T(B)+(B.strictSlashes?")":"|$)"),a.value+=J,R.globstar=!0,R.output+=s.output+a.output,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&L[0]==="/"){const o=L[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=`${T(B)}${h}|${h}${o})`,a.value+=J,R.output+=s.output+a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&L[0]==="/"){a.type="globstar",a.value+=J,a.output=`(?:^|${h}|${T(B)}${h})`,R.output=a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-a.output.length),a.type="globstar",a.output=T(B),a.value+=J,R.output+=a.output,R.globstar=!0,IA(J);continue}const V={type:"star",value:J,output:b};if(B.bash===!0){V.output=".*?",(a.type==="bos"||a.type==="slash")&&(V.output=p+V.output),f(V);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&B.regex===!0){V.output=J,f(V);continue}(R.index===R.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(R.output+=S,a.output+=S):B.dot===!0?(R.output+=j,a.output+=j):(R.output+=p,a.output+=p),n()!=="*"&&(R.output+=M,a.output+=M)),f(V)}for(;R.brackets>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));R.output=NA.escapeLast(R.output,"["),aA("brackets")}for(;R.parens>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing",")"));R.output=NA.escapeLast(R.output,"("),aA("parens")}for(;R.braces>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","}"));R.output=NA.escapeLast(R.output,"{"),aA("braces")}if(B.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&f({type:"maybe_slash",value:"",output:`${h}?`}),R.backtrack===!0){R.output="";for(const L of R.tokens)R.output+=L.output!=null?L.output:L.value,L.suffix&&(R.output+=L.suffix)}return R};GB.fastpaths=(g,A)=>{const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg,I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);g=lQ[g]||g;const C=NA.isWindows(A),{DOT_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:G,DOTS_SLASH:k,NO_DOT:N,NO_DOTS:y,NO_DOTS_SLASH:F,STAR:h,START_ANCHOR:M}=Sg.globChars(C),Y=B.dot?y:N,c=B.dot?F:N,S=B.capture?"":"?:",j={negated:!1,prefix:""};let H=B.bash===!0?".*?":h;B.capture&&(H=`(${H})`);const e=p=>p.noglobstar===!0?H:`(${S}(?:(?!${M}${p.dot?k:E}).)*?)`,q=p=>{switch(p){case"*":return`${Y}${G}${H}`;case".*":return`${E}${G}${H}`;case"*.*":return`${Y}${H}${E}${G}${H}`;case"*/*":return`${Y}${H}${D}${G}${c}${H}`;case"**":return Y+e(B);case"**/*":return`(?:${Y}${e(B)}${D})?${c}${G}${H}`;case"**/*.*":return`(?:${Y}${e(B)}${D})?${c}${H}${E}${G}${H}`;case"**/.*":return`(?:${Y}${e(B)}${D})?${E}${G}${H}`;default:{const m=/^(.*?)\.(\w+)$/.exec(p);if(!m)return;const b=q(m[1]);return b?b+E+m[2]:void 0}}},Z=NA.removePrefix(g,j);let T=q(Z);return T&&B.strictSlashes!==!0&&(T+=`${D}?`),T};var wD=GB;const iD=kA.default,oD=QD,kB=wD,NB=Dg,GD=cg,kD=g=>g&&typeof g=="object"&&!Array.isArray(g),_=(g,A,B=!1)=>{if(Array.isArray(g)){const N=g.map(F=>_(F,A,B));return F=>{for(const h of N){const M=h(F);if(M)return M}return!1}}const Q=kD(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!Q)throw new TypeError("Expected pattern to be a non-empty string");const I=A||{},C=NB.isWindows(A),E=Q?_.compileRe(g,A):_.makeRe(g,A,!1,!0),D=E.state;delete E.state;let G=()=>!1;if(I.ignore){const N={...A,ignore:null,onMatch:null,onResult:null};G=_(I.ignore,N,B)}const k=(N,y=!1)=>{const{isMatch:F,match:h,output:M}=_.test(N,E,A,{glob:g,posix:C}),Y={glob:g,state:D,regex:E,posix:C,input:N,output:M,match:h,isMatch:F};return typeof I.onResult=="function"&&I.onResult(Y),F===!1?(Y.isMatch=!1,y?Y:!1):G(N)?(typeof I.onIgnore=="function"&&I.onIgnore(Y),Y.isMatch=!1,y?Y:!1):(typeof I.onMatch=="function"&&I.onMatch(Y),y?Y:!0)};return B&&(k.state=D),k};_.test=(g,A,B,{glob:Q,posix:I}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const C=B||{},E=C.format||(I?NB.toPosixSlashes:null);let D=g===Q,G=D&&E?E(g):g;return D===!1&&(G=E?E(g):g,D=G===Q),(D===!1||C.capture===!0)&&(C.matchBase===!0||C.basename===!0?D=_.matchBase(g,A,B,I):D=A.exec(G)),{isMatch:Boolean(D),match:D,output:G}},_.matchBase=(g,A,B,Q=NB.isWindows(B))=>(A instanceof RegExp?A:_.makeRe(A,B)).test(iD.basename(g)),_.isMatch=(g,A,B)=>_(A,B)(g),_.parse=(g,A)=>Array.isArray(g)?g.map(B=>_.parse(B,A)):kB(g,{...A,fastpaths:!1}),_.scan=(g,A)=>oD(g,A),_.compileRe=(g,A,B=!1,Q=!1)=>{if(B===!0)return g.output;const I=A||{},C=I.contains?"":"^",E=I.contains?"":"$";let D=`${C}(?:${g.output})${E}`;g&&g.negated===!0&&(D=`^(?!${D}).*$`);const G=_.toRegex(D,A);return Q===!0&&(G.state=g),G},_.makeRe=(g,A={},B=!1,Q=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");let I={negated:!1,fastpaths:!0};return A.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(I.output=kB.fastpaths(g,A)),I.output||(I=kB(g,A)),_.compileRe(I,A,B,Q)},_.toRegex=(g,A)=>{try{const B=A||{};return new RegExp(g,B.flags||(B.nocase?"i":""))}catch(B){if(A&&A.debug===!0)throw B;return/$^/}},_.constants=GD;var ND=_;(function(g){g.exports=ND})(dQ);const VQ=AQ.default,zQ=ZE,HA=dQ.exports,FB=Dg,XQ=g=>g===""||g==="./",u=(g,A,B)=>{A=[].concat(A),g=[].concat(g);let Q=new Set,I=new Set,C=new Set,E=0,D=N=>{C.add(N.output),B&&B.onResult&&B.onResult(N)};for(let N=0;N<A.length;N++){let y=HA(String(A[N]),{...B,onResult:D},!0),F=y.state.negated||y.state.negatedExtglob;F&&E++;for(let h of g){let M=y(h,!0);!(F?!M.isMatch:M.isMatch)||(F?Q.add(M.output):(Q.delete(M.output),I.add(M.output)))}}let k=(E===A.length?[...C]:[...I]).filter(N=>!Q.has(N));if(B&&k.length===0){if(B.failglob===!0)throw new Error(`No matches found for "${A.join(", ")}"`);if(B.nonull===!0||B.nullglob===!0)return B.unescape?A.map(N=>N.replace(/\\/g,"")):A}return k};u.match=u,u.matcher=(g,A)=>HA(g,A),u.isMatch=(g,A,B)=>HA(A,B)(g),u.any=u.isMatch,u.not=(g,A,B={})=>{A=[].concat(A).map(String);let Q=new Set,I=[],C=D=>{B.onResult&&B.onResult(D),I.push(D.output)},E=new Set(u(g,A,{...B,onResult:C}));for(let D of I)E.has(D)||Q.add(D);return[...Q]},u.contains=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);if(Array.isArray(A))return A.some(Q=>u.contains(g,Q,B));if(typeof A=="string"){if(XQ(g)||XQ(A))return!1;if(g.includes(A)||g.startsWith("./")&&g.slice(2).includes(A))return!0}return u.isMatch(g,A,{...B,contains:!0})},u.matchKeys=(g,A,B)=>{if(!FB.isObject(g))throw new TypeError("Expected the first argument to be an object");let Q=u(Object.keys(g),A,B),I={};for(let C of Q)I[C]=g[C];return I},u.some=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(Q.some(E=>C(E)))return!0}return!1},u.every=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(!Q.every(E=>C(E)))return!1}return!0},u.all=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);return[].concat(A).every(Q=>HA(Q,B)(g))},u.capture=(g,A,B)=>{let Q=FB.isWindows(B),C=HA.makeRe(String(g),{...B,capture:!0}).exec(Q?FB.toPosixSlashes(A):A);if(C)return C.slice(1).map(E=>E===void 0?"":E)},u.makeRe=(...g)=>HA.makeRe(...g),u.scan=(...g)=>HA.scan(...g),u.parse=(g,A)=>{let B=[];for(let Q of[].concat(g||[]))for(let I of zQ(String(Q),A))B.push(HA.parse(I,A));return B},u.braces=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return A&&A.nobrace===!0||!/\{.*\}/.test(g)?[g]:zQ(g,A)},u.braceExpand=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return u.braces(g,{...A,expand:!0})};var FD=u;Object.defineProperty(d,"__esModule",{value:!0}),d.matchAny=d.convertPatternsToRe=d.makeRe=d.getPatternParts=d.expandBraceExpansion=d.expandPatternsWithBraceExpansion=d.isAffectDepthOfReadingPattern=d.endsWithSlashGlobStar=d.hasGlobStar=d.getBaseDirectory=d.isPatternRelatedToParentDirectory=d.getPatternsOutsideCurrentDirectory=d.getPatternsInsideCurrentDirectory=d.getPositivePatterns=d.getNegativePatterns=d.isPositivePattern=d.isNegativePattern=d.convertToNegativePattern=d.convertToPositivePattern=d.isDynamicPattern=d.isStaticPattern=void 0;const MD=kA.default,aD=XC,MB=FD,uQ="**",JD="\\",RD=/[*?]|^!/,KD=/\[[^[]*]/,yD=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YD=/[!*+?@]\([^(]*\)/,sD=/,|\.\./;function vQ(g,A={}){return!_Q(g,A)}d.isStaticPattern=vQ;function _Q(g,A={}){return g===""?!1:!!(A.caseSensitiveMatch===!1||g.includes(JD)||RD.test(g)||KD.test(g)||yD.test(g)||A.extglob!==!1&&YD.test(g)||A.braceExpansion!==!1&&UD(g))}d.isDynamicPattern=_Q;function UD(g){const A=g.indexOf("{");if(A===-1)return!1;const B=g.indexOf("}",A+1);if(B===-1)return!1;const Q=g.slice(A,B);return sD.test(Q)}function LD(g){return tg(g)?g.slice(1):g}d.convertToPositivePattern=LD;function hD(g){return"!"+g}d.convertToNegativePattern=hD;function tg(g){return g.startsWith("!")&&g[1]!=="("}d.isNegativePattern=tg;function $Q(g){return!tg(g)}d.isPositivePattern=$Q;function qD(g){return g.filter(tg)}d.getNegativePatterns=qD;function HD(g){return g.filter($Q)}d.getPositivePatterns=HD;function cD(g){return g.filter(A=>!aB(A))}d.getPatternsInsideCurrentDirectory=cD;function SD(g){return g.filter(aB)}d.getPatternsOutsideCurrentDirectory=SD;function aB(g){return g.startsWith("..")||g.startsWith("./..")}d.isPatternRelatedToParentDirectory=aB;function pD(g){return aD(g,{flipBackslashes:!1})}d.getBaseDirectory=pD;function tD(g){return g.includes(uQ)}d.hasGlobStar=tD;function AI(g){return g.endsWith("/"+uQ)}d.endsWithSlashGlobStar=AI;function OD(g){const A=MD.basename(g);return AI(g)||vQ(A)}d.isAffectDepthOfReadingPattern=OD;function TD(g){return g.reduce((A,B)=>A.concat(gI(B)),[])}d.expandPatternsWithBraceExpansion=TD;function gI(g){return MB.braces(g,{expand:!0,nodupes:!0})}d.expandBraceExpansion=gI;function xD(g,A){let{parts:B}=MB.scan(g,Object.assign(Object.assign({},A),{parts:!0}));return B.length===0&&(B=[g]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}d.getPatternParts=xD;function BI(g,A){return MB.makeRe(g,A)}d.makeRe=BI;function dD(g,A){return g.map(B=>BI(B,A))}d.convertPatternsToRe=dD;function WD(g,A){return A.some(B=>B.test(g))}d.matchAny=WD;var Og={};const ZD=ag.default,QI=ZD.PassThrough,fD=Array.prototype.slice;var bD=nD;function nD(){const g=[],A=fD.call(arguments);let B=!1,Q=A[A.length-1];Q&&!Array.isArray(Q)&&Q.pipe==null?A.pop():Q={};const I=Q.end!==!1,C=Q.pipeError===!0;Q.objectMode==null&&(Q.objectMode=!0),Q.highWaterMark==null&&(Q.highWaterMark=64*1024);const E=QI(Q);function D(){for(let N=0,y=arguments.length;N<y;N++)g.push(II(arguments[N],Q));return G(),this}function G(){if(B)return;B=!0;let N=g.shift();if(!N){process.nextTick(k);return}Array.isArray(N)||(N=[N]);let y=N.length+1;function F(){--y>0||(B=!1,G())}function h(M){function Y(){M.removeListener("merge2UnpipeEnd",Y),M.removeListener("end",Y),C&&M.removeListener("error",c),F()}function c(S){E.emit("error",S)}if(M._readableState.endEmitted)return F();M.on("merge2UnpipeEnd",Y),M.on("end",Y),C&&M.on("error",c),M.pipe(E,{end:!1}),M.resume()}for(let M=0;M<N.length;M++)h(N[M]);F()}function k(){B=!1,E.emit("queueDrain"),I&&E.end()}return E.setMaxListeners(0),E.add=D,E.on("unpipe",function(N){N.emit("merge2UnpipeEnd")}),A.length&&D.apply(null,A),E}function II(g,A){if(Array.isArray(g))for(let B=0,Q=g.length;B<Q;B++)g[B]=II(g[B],A);else{if(!g._readableState&&g.pipe&&(g=g.pipe(QI(A))),!g._readableState||!g.pause||!g.pipe)throw new Error("Only readable stream can be merged.");g.pause()}return g}Object.defineProperty(Og,"__esModule",{value:!0}),Og.merge=void 0;const eD=bD;function mD(g){const A=eD(g);return g.forEach(B=>{B.once("error",Q=>A.emit("error",Q))}),A.once("close",()=>CI(g)),A.once("end",()=>CI(g)),A}Og.merge=mD;function CI(g){g.forEach(A=>A.emit("close"))}var XA={};Object.defineProperty(XA,"__esModule",{value:!0}),XA.isEmpty=XA.isString=void 0;function rD(g){return typeof g=="string"}XA.isString=rD;function jD(g){return g===""}XA.isEmpty=jD,Object.defineProperty(v,"__esModule",{value:!0}),v.string=v.stream=v.pattern=v.path=v.fs=v.errno=v.array=void 0;const PD=lA;v.array=PD;const lD=Ug;v.errno=lD;const VD=Lg;v.fs=VD;const zD=hA;v.path=zD;const XD=d;v.pattern=XD;const uD=Og;v.stream=uD;const vD=XA;v.string=vD,Object.defineProperty(BA,"__esModule",{value:!0}),BA.convertPatternGroupToTask=BA.convertPatternGroupsToTasks=BA.groupPatternsByBaseDirectory=BA.getNegativePatternsAsPositive=BA.getPositivePatterns=BA.convertPatternsToTasks=BA.generate=void 0;const tA=v;function _D(g,A){const B=EI(g),Q=DI(g,A.ignore),I=B.filter(G=>tA.pattern.isStaticPattern(G,A)),C=B.filter(G=>tA.pattern.isDynamicPattern(G,A)),E=JB(I,Q,!1),D=JB(C,Q,!0);return E.concat(D)}BA.generate=_D;function JB(g,A,B){const Q=[],I=tA.pattern.getPatternsOutsideCurrentDirectory(g),C=tA.pattern.getPatternsInsideCurrentDirectory(g),E=RB(I),D=RB(C);return Q.push(...KB(E,A,B)),"."in D?Q.push(yB(".",C,A,B)):Q.push(...KB(D,A,B)),Q}BA.convertPatternsToTasks=JB;function EI(g){return tA.pattern.getPositivePatterns(g)}BA.getPositivePatterns=EI;function DI(g,A){return tA.pattern.getNegativePatterns(g).concat(A).map(tA.pattern.convertToPositivePattern)}BA.getNegativePatternsAsPositive=DI;function RB(g){const A={};return g.reduce((B,Q)=>{const I=tA.pattern.getBaseDirectory(Q);return I in B?B[I].push(Q):B[I]=[Q],B},A)}BA.groupPatternsByBaseDirectory=RB;function KB(g,A,B){return Object.keys(g).map(Q=>yB(Q,g[Q],A,B))}BA.convertPatternGroupsToTasks=KB;function yB(g,A,B,Q){return{dynamic:Q,positive:A,negative:B,base:g,patterns:[].concat(A,B.map(tA.pattern.convertToNegativePattern))}}BA.convertPatternGroupToTask=yB;var uA={};Object.defineProperty(uA,"__esModule",{value:!0}),uA.removeDuplicateSlashes=uA.transform=void 0;const $D=/(?!^)\/{2,}/g;function Aw(g){return g.map(A=>wI(A))}uA.transform=Aw;function wI(g){return g.replace($D,"/")}uA.removeDuplicateSlashes=wI;var YB={},Tg={},wA={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.read=void 0;function gw(g,A,B){A.fs.lstat(g,(Q,I)=>{if(Q!==null){iI(B,Q);return}if(!I.isSymbolicLink()||!A.followSymbolicLink){sB(B,I);return}A.fs.stat(g,(C,E)=>{if(C!==null){if(A.throwErrorOnBrokenSymbolicLink){iI(B,C);return}sB(B,I);return}A.markSymbolicLink&&(E.isSymbolicLink=()=>!0),sB(B,E)})})}xg.read=gw;function iI(g,A){g(A)}function sB(g,A){g(null,A)}var dg={};Object.defineProperty(dg,"__esModule",{value:!0}),dg.read=void 0;function Bw(g,A){const B=A.fs.lstatSync(g);if(!B.isSymbolicLink()||!A.followSymbolicLink)return B;try{const Q=A.fs.statSync(g);return A.markSymbolicLink&&(Q.isSymbolicLink=()=>!0),Q}catch(Q){if(!A.throwErrorOnBrokenSymbolicLink)return B;throw Q}}dg.read=Bw;var UB={},oI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(oI),Object.defineProperty(UB,"__esModule",{value:!0});const Qw=oI;class Iw{constructor(A={}){this._options=A,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(A,B){return A??B}}UB.default=Iw,Object.defineProperty(wA,"__esModule",{value:!0}),wA.statSync=wA.stat=wA.Settings=void 0;const GI=xg,Cw=dg,LB=UB;wA.Settings=LB.default;function Ew(g,A,B){if(typeof A=="function"){GI.read(g,hB(),A);return}GI.read(g,hB(A),B)}wA.stat=Ew;function Dw(g,A){const B=hB(A);return Cw.read(g,B)}wA.statSync=Dw;function hB(g={}){return g instanceof LB.default?g:new LB.default(g)}var yA={},qB={},Wg={},cA={},TA={};/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let kI;var ww=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:gg.commonjsGlobal):g=>(kI||(kI=Promise.resolve())).then(g).catch(A=>setTimeout(()=>{throw A},0));/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var iw=Gw;const ow=ww;function Gw(g,A){let B,Q,I,C=!0;Array.isArray(g)?(B=[],Q=g.length):(I=Object.keys(g),B={},Q=I.length);function E(G){function k(){A&&A(G,B),A=null}C?ow(k):k()}function D(G,k,N){B[G]=N,(--Q===0||k)&&E(k)}Q?I?I.forEach(function(G){g[G](function(k,N){D(G,k,N)})}):g.forEach(function(G,k){G(function(N,y){D(k,N,y)})}):E(null),C=!1}var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const Zg=process.versions.node.split(".");if(Zg[0]===void 0||Zg[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const NI=Number.parseInt(Zg[0],10),kw=Number.parseInt(Zg[1],10),FI=10,Nw=10,Fw=NI>FI,Mw=NI===FI&&kw>=Nw;ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Fw||Mw;var og={},fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.createDirentFromStats=void 0;class aw{constructor(A,B){this.name=A,this.isBlockDevice=B.isBlockDevice.bind(B),this.isCharacterDevice=B.isCharacterDevice.bind(B),this.isDirectory=B.isDirectory.bind(B),this.isFIFO=B.isFIFO.bind(B),this.isFile=B.isFile.bind(B),this.isSocket=B.isSocket.bind(B),this.isSymbolicLink=B.isSymbolicLink.bind(B)}}function Jw(g,A){return new aw(g,A)}fg.createDirentFromStats=Jw,Object.defineProperty(og,"__esModule",{value:!0}),og.fs=void 0;const Rw=fg;og.fs=Rw;var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.joinPathSegments=void 0;function Kw(g,A,B){return g.endsWith(B)?g+A:g+B+A}Gg.joinPathSegments=Kw,Object.defineProperty(TA,"__esModule",{value:!0}),TA.readdir=TA.readdirWithFileTypes=TA.read=void 0;const yw=wA,MI=iw,Yw=ig,aI=og,JI=Gg;function sw(g,A,B){if(!A.stats&&Yw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){RI(g,A,B);return}KI(g,A,B)}TA.read=sw;function RI(g,A,B){A.fs.readdir(g,{withFileTypes:!0},(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(D=>({dirent:D,name:D.name,path:JI.joinPathSegments(g,D.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){HB(B,C);return}const E=C.map(D=>Uw(D,A));MI(E,(D,G)=>{if(D!==null){bg(B,D);return}HB(B,G)})})}TA.readdirWithFileTypes=RI;function Uw(g,A){return B=>{if(!g.dirent.isSymbolicLink()){B(null,g);return}A.fs.stat(g.path,(Q,I)=>{if(Q!==null){if(A.throwErrorOnBrokenSymbolicLink){B(Q);return}B(null,g);return}g.dirent=aI.fs.createDirentFromStats(g.name,I),B(null,g)})}}function KI(g,A,B){A.fs.readdir(g,(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(E=>{const D=JI.joinPathSegments(g,E,A.pathSegmentSeparator);return G=>{yw.stat(D,A.fsStatSettings,(k,N)=>{if(k!==null){G(k);return}const y={name:E,path:D,dirent:aI.fs.createDirentFromStats(E,N)};A.stats&&(y.stats=N),G(null,y)})}});MI(C,(E,D)=>{if(E!==null){bg(B,E);return}HB(B,D)})})}TA.readdir=KI;function bg(g,A){g(A)}function HB(g,A){g(null,A)}var xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.readdir=xA.readdirWithFileTypes=xA.read=void 0;const Lw=wA,hw=ig,yI=og,YI=Gg;function qw(g,A){return!A.stats&&hw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?sI(g,A):UI(g,A)}xA.read=qw;function sI(g,A){return A.fs.readdirSync(g,{withFileTypes:!0}).map(Q=>{const I={dirent:Q,name:Q.name,path:YI.joinPathSegments(g,Q.name,A.pathSegmentSeparator)};if(I.dirent.isSymbolicLink()&&A.followSymbolicLinks)try{const C=A.fs.statSync(I.path);I.dirent=yI.fs.createDirentFromStats(I.name,C)}catch(C){if(A.throwErrorOnBrokenSymbolicLink)throw C}return I})}xA.readdirWithFileTypes=sI;function UI(g,A){return A.fs.readdirSync(g).map(Q=>{const I=YI.joinPathSegments(g,Q,A.pathSegmentSeparator),C=Lw.statSync(I,A.fsStatSettings),E={name:Q,path:I,dirent:yI.fs.createDirentFromStats(Q,C)};return A.stats&&(E.stats=C),E})}xA.readdir=UI;var cB={},LI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(LI),Object.defineProperty(cB,"__esModule",{value:!0});const Hw=kA.default,cw=wA,Sw=LI;class pw{constructor(A={}){this._options=A,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}cB.default=pw,Object.defineProperty(cA,"__esModule",{value:!0}),cA.Settings=cA.scandirSync=cA.scandir=void 0;const hI=TA,tw=xA,SB=cB;cA.Settings=SB.default;function Ow(g,A,B){if(typeof A=="function"){hI.read(g,pB(),A);return}hI.read(g,pB(A),B)}cA.scandir=Ow;function Tw(g,A){const B=pB(A);return tw.read(g,B)}cA.scandirSync=Tw;function pB(g={}){return g instanceof SB.default?g:new SB.default(g)}var tB={exports:{}};function xw(g){var A=new g,B=A;function Q(){var C=A;return C.next?A=C.next:(A=new g,B=A),C.next=null,C}function I(C){B.next=C,B=C}return{get:Q,release:I}}var dw=xw,Ww=dw;function qI(g,A,B){if(typeof g=="function"&&(B=A,A=g,g=null),B<1)throw new Error("fastqueue concurrency must be greater than 1");var Q=Ww(Zw),I=null,C=null,E=0,D=null,G={push:Y,drain:FA,saturated:FA,pause:N,paused:!1,concurrency:B,running:k,resume:h,idle:M,length:y,getQueue:F,unshift:c,empty:FA,kill:j,killAndDrain:H,error:e};return G;function k(){return E}function N(){G.paused=!0}function y(){for(var q=I,Z=0;q;)q=q.next,Z++;return Z}function F(){for(var q=I,Z=[];q;)Z.push(q.value),q=q.next;return Z}function h(){if(!!G.paused){G.paused=!1;for(var q=0;q<G.concurrency;q++)E++,S()}}function M(){return E===0&&G.length()===0}function Y(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,T.errorHandler=D,E===G.concurrency||G.paused?C?(C.next=T,C=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function c(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,E===G.concurrency||G.paused?I?(T.next=I,I=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function S(q){q&&Q.release(q);var Z=I;Z?G.paused?E--:(C===I&&(C=null),I=Z.next,Z.next=null,A.call(g,Z.value,Z.worked),C===null&&G.empty()):--E===0&&G.drain()}function j(){I=null,C=null,G.drain=FA}function H(){I=null,C=null,G.drain(),G.drain=FA}function e(q){D=q}}function FA(){}function Zw(){this.value=null,this.callback=FA,this.next=null,this.release=FA,this.context=null,this.errorHandler=null;var g=this;this.worked=function(B,Q){var I=g.callback,C=g.errorHandler,E=g.value;g.value=null,g.callback=FA,g.errorHandler&&C(B,E),I.call(g.context,B,Q),g.release(g)}}function fw(g,A,B){typeof g=="function"&&(B=A,A=g,g=null);function Q(N,y){A.call(this,N).then(function(F){y(null,F)},y)}var I=qI(g,Q,B),C=I.push,E=I.unshift;return I.push=D,I.unshift=G,I.drained=k,I;function D(N){var y=new Promise(function(F,h){C(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function G(N){var y=new Promise(function(F,h){E(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function k(){var N=I.drain,y=new Promise(function(F){I.drain=function(){N(),F()}});return y}}tB.exports=qI,tB.exports.promise=fw;var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.joinPathSegments=MA.replacePathSegmentSeparator=MA.isAppliedFilter=MA.isFatalError=void 0;function bw(g,A){return g.errorFilter===null?!0:!g.errorFilter(A)}MA.isFatalError=bw;function nw(g,A){return g===null||g(A)}MA.isAppliedFilter=nw;function ew(g,A){return g.split(/[/\\]/).join(A)}MA.replacePathSegmentSeparator=ew;function mw(g,A,B){return g===""?A:g.endsWith(B)?g+A:g+B+A}MA.joinPathSegments=mw;var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const rw=MA;class jw{constructor(A,B){this._root=A,this._settings=B,this._root=rw.replacePathSegmentSeparator(A,B.pathSegmentSeparator)}}ng.default=jw,Object.defineProperty(Wg,"__esModule",{value:!0});const Pw=uI.default,lw=cA,Vw=tB.exports,eg=MA,zw=ng;class Xw extends zw.default{constructor(A,B){super(A,B),this._settings=B,this._scandir=lw.scandir,this._emitter=new Pw.EventEmitter,this._queue=Vw(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(A){this._emitter.on("entry",A)}onError(A){this._emitter.once("error",A)}onEnd(A){this._emitter.once("end",A)}_pushToQueue(A,B){const Q={directory:A,base:B};this._queue.push(Q,I=>{I!==null&&this._handleError(I)})}_worker(A,B){this._scandir(A.directory,this._settings.fsScandirSettings,(Q,I)=>{if(Q!==null){B(Q,void 0);return}for(const C of I)this._handleEntry(C,A.base);B(null,void 0)})}_handleError(A){this._isDestroyed||!eg.isFatalError(this._settings,A)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A))}_handleEntry(A,B){if(this._isDestroyed||this._isFatalError)return;const Q=A.path;B!==void 0&&(A.path=eg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A)&&this._emitEntry(A),A.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_emitEntry(A){this._emitter.emit("entry",A)}}Wg.default=Xw,Object.defineProperty(qB,"__esModule",{value:!0});const uw=Wg;class vw{constructor(A,B){this._root=A,this._settings=B,this._reader=new uw.default(this._root,this._settings),this._storage=[]}read(A){this._reader.onError(B=>{_w(A,B)}),this._reader.onEntry(B=>{this._storage.push(B)}),this._reader.onEnd(()=>{$w(A,this._storage)}),this._reader.read()}}qB.default=vw;function _w(g,A){g(A)}function $w(g,A){g(null,A)}var OB={};Object.defineProperty(OB,"__esModule",{value:!0});const Ai=ag.default,gi=Wg;class Bi{constructor(A,B){this._root=A,this._settings=B,this._reader=new gi.default(this._root,this._settings),this._stream=new Ai.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(A=>{this._stream.emit("error",A)}),this._reader.onEntry(A=>{this._stream.push(A)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}OB.default=Bi;var TB={},xB={};Object.defineProperty(xB,"__esModule",{value:!0});const Qi=cA,mg=MA,Ii=ng;class Ci extends Ii.default{constructor(){super(...arguments),this._scandir=Qi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A,B){this._queue.add({directory:A,base:B})}_handleQueue(){for(const A of this._queue.values())this._handleDirectory(A.directory,A.base)}_handleDirectory(A,B){try{const Q=this._scandir(A,this._settings.fsScandirSettings);for(const I of Q)this._handleEntry(I,B)}catch(Q){this._handleError(Q)}}_handleError(A){if(!!mg.isFatalError(this._settings,A))throw A}_handleEntry(A,B){const Q=A.path;B!==void 0&&(A.path=mg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),mg.isAppliedFilter(this._settings.entryFilter,A)&&this._pushToStorage(A),A.dirent.isDirectory()&&mg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_pushToStorage(A){this._storage.push(A)}}xB.default=Ci,Object.defineProperty(TB,"__esModule",{value:!0});const Ei=xB;class Di{constructor(A,B){this._root=A,this._settings=B,this._reader=new Ei.default(this._root,this._settings)}read(){return this._reader.read()}}TB.default=Di;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const wi=kA.default,ii=cA;class oi{constructor(A={}){this._options=A,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,wi.sep),this.fsScandirSettings=new ii.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}dB.default=oi,Object.defineProperty(yA,"__esModule",{value:!0}),yA.Settings=yA.walkStream=yA.walkSync=yA.walk=void 0;const HI=qB,Gi=OB,ki=TB,WB=dB;yA.Settings=WB.default;function Ni(g,A,B){if(typeof A=="function"){new HI.default(g,rg()).read(A);return}new HI.default(g,rg(A)).read(B)}yA.walk=Ni;function Fi(g,A){const B=rg(A);return new ki.default(g,B).read()}yA.walkSync=Fi;function Mi(g,A){const B=rg(A);return new Gi.default(g,B).read()}yA.walkStream=Mi;function rg(g={}){return g instanceof WB.default?g:new WB.default(g)}var jg={};Object.defineProperty(jg,"__esModule",{value:!0});const ai=kA.default,Ji=wA,cI=v;class Ri{constructor(A){this._settings=A,this._fsStatSettings=new Ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(A){return ai.resolve(this._settings.cwd,A)}_makeEntry(A,B){const Q={name:B,path:B,dirent:cI.fs.createDirentFromStats(B,A)};return this._settings.stats&&(Q.stats=A),Q}_isFatalError(A){return!cI.errno.isEnoentCodeError(A)&&!this._settings.suppressErrors}}jg.default=Ri,Object.defineProperty(Tg,"__esModule",{value:!0});const Ki=ag.default,yi=wA,Yi=yA,si=jg;class Ui extends si.default{constructor(){super(...arguments),this._walkStream=Yi.walkStream,this._stat=yi.stat}dynamic(A,B){return this._walkStream(A,B)}static(A,B){const Q=A.map(this._getFullEntryPath,this),I=new Ki.PassThrough({objectMode:!0});I._write=(C,E,D)=>this._getEntry(Q[C],A[C],B).then(G=>{G!==null&&B.entryFilter(G)&&I.push(G),C===Q.length-1&&I.end(),D()}).catch(D);for(let C=0;C<Q.length;C++)I.write(C);return I}_getEntry(A,B,Q){return this._getStat(A).then(I=>this._makeEntry(I,B)).catch(I=>{if(Q.errorFilter(I))return null;throw I})}_getStat(A){return new Promise((B,Q)=>{this._stat(A,this._fsStatSettings,(I,C)=>I===null?B(C):Q(I))})}}Tg.default=Ui;var kg={},ZB={},fB={},bB={};Object.defineProperty(bB,"__esModule",{value:!0});const vA=v;class Li{constructor(A,B,Q){this._patterns=A,this._settings=B,this._micromatchOptions=Q,this._storage=[],this._fillStorage()}_fillStorage(){const A=vA.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const B of A){const Q=this._getPatternSegments(B),I=this._splitSegmentsIntoSections(Q);this._storage.push({complete:I.length<=1,pattern:B,segments:Q,sections:I})}}_getPatternSegments(A){return vA.pattern.getPatternParts(A,this._micromatchOptions).map(Q=>vA.pattern.isDynamicPattern(Q,this._settings)?{dynamic:!0,pattern:Q,patternRe:vA.pattern.makeRe(Q,this._micromatchOptions)}:{dynamic:!1,pattern:Q})}_splitSegmentsIntoSections(A){return vA.array.splitWhen(A,B=>B.dynamic&&vA.pattern.hasGlobStar(B.pattern))}}bB.default=Li,Object.defineProperty(fB,"__esModule",{value:!0});const hi=bB;class qi extends hi.default{match(A){const B=A.split("/"),Q=B.length,I=this._storage.filter(C=>!C.complete||C.segments.length>Q);for(const C of I){const E=C.sections[0];if(!C.complete&&Q>E.length||B.every((G,k)=>{const N=C.segments[k];return!!(N.dynamic&&N.patternRe.test(G)||!N.dynamic&&N.pattern===G)}))return!0}return!1}}fB.default=qi,Object.defineProperty(ZB,"__esModule",{value:!0});const Pg=v,Hi=fB;class ci{constructor(A,B){this._settings=A,this._micromatchOptions=B}getFilter(A,B,Q){const I=this._getMatcher(B),C=this._getNegativePatternsRe(Q);return E=>this._filter(A,E,I,C)}_getMatcher(A){return new Hi.default(A,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A){const B=A.filter(Pg.pattern.isAffectDepthOfReadingPattern);return Pg.pattern.convertPatternsToRe(B,this._micromatchOptions)}_filter(A,B,Q,I){if(this._isSkippedByDeep(A,B.path)||this._isSkippedSymbolicLink(B))return!1;const C=Pg.path.removeLeadingDotSegment(B.path);return this._isSkippedByPositivePatterns(C,Q)?!1:this._isSkippedByNegativePatterns(C,I)}_isSkippedByDeep(A,B){return this._settings.deep===1/0?!1:this._getEntryLevel(A,B)>=this._settings.deep}_getEntryLevel(A,B){const Q=B.split("/").length;if(A==="")return Q;const I=A.split("/").length;return Q-I}_isSkippedSymbolicLink(A){return!this._settings.followSymbolicLinks&&A.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A,B){return!this._settings.baseNameMatch&&!B.match(A)}_isSkippedByNegativePatterns(A,B){return!Pg.pattern.matchAny(A,B)}}ZB.default=ci;var nB={};Object.defineProperty(nB,"__esModule",{value:!0});const bA=v;class Si{constructor(A,B){this._settings=A,this._micromatchOptions=B,this.index=new Map}getFilter(A,B){const Q=bA.pattern.convertPatternsToRe(A,this._micromatchOptions),I=bA.pattern.convertPatternsToRe(B,this._micromatchOptions);return C=>this._filter(C,Q,I)}_filter(A,B,Q){if(this._settings.unique&&this._isDuplicateEntry(A)||this._onlyFileFilter(A)||this._onlyDirectoryFilter(A)||this._isSkippedByAbsoluteNegativePatterns(A.path,Q))return!1;const I=this._settings.baseNameMatch?A.name:A.path,C=this._isMatchToPatterns(I,B)&&!this._isMatchToPatterns(A.path,Q);return this._settings.unique&&C&&this._createIndexRecord(A),C}_isDuplicateEntry(A){return this.index.has(A.path)}_createIndexRecord(A){this.index.set(A.path,void 0)}_onlyFileFilter(A){return this._settings.onlyFiles&&!A.dirent.isFile()}_onlyDirectoryFilter(A){return this._settings.onlyDirectories&&!A.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(A,B){if(!this._settings.absolute)return!1;const Q=bA.path.makeAbsolute(this._settings.cwd,A);return bA.pattern.matchAny(Q,B)}_isMatchToPatterns(A,B){const Q=bA.path.removeLeadingDotSegment(A);return bA.pattern.matchAny(Q,B)||bA.pattern.matchAny(Q+"/",B)}}nB.default=Si;var eB={};Object.defineProperty(eB,"__esModule",{value:!0});const pi=v;class ti{constructor(A){this._settings=A}getFilter(){return A=>this._isNonFatalError(A)}_isNonFatalError(A){return pi.errno.isEnoentCodeError(A)||this._settings.suppressErrors}}eB.default=ti;var mB={};Object.defineProperty(mB,"__esModule",{value:!0});const SI=v;class Oi{constructor(A){this._settings=A}getTransformer(){return A=>this._transform(A)}_transform(A){let B=A.path;return this._settings.absolute&&(B=SI.path.makeAbsolute(this._settings.cwd,B),B=SI.path.unixify(B)),this._settings.markDirectories&&A.dirent.isDirectory()&&(B+="/"),this._settings.objectMode?Object.assign(Object.assign({},A),{path:B}):B}}mB.default=Oi,Object.defineProperty(kg,"__esModule",{value:!0});const Ti=kA.default,xi=ZB,di=nB,Wi=eB,Zi=mB;class fi{constructor(A){this._settings=A,this.errorFilter=new Wi.default(this._settings),this.entryFilter=new di.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xi.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Zi.default(this._settings)}_getRootDirectory(A){return Ti.resolve(this._settings.cwd,A.base)}_getReaderOptions(A){const B=A.base==="."?"":A.base;return{basePath:B,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(B,A.positive,A.negative),entryFilter:this.entryFilter.getFilter(A.positive,A.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}}}kg.default=fi,Object.defineProperty(YB,"__esModule",{value:!0});const bi=Tg,ni=kg;class ei extends ni.default{constructor(){super(...arguments),this._reader=new bi.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=[];return new Promise((C,E)=>{const D=this.api(B,A,Q);D.once("error",E),D.on("data",G=>I.push(Q.transform(G))),D.once("end",()=>C(I))})}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}YB.default=ei;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const mi=ag.default,ri=Tg,ji=kg;class Pi extends ji.default{constructor(){super(...arguments),this._reader=new ri.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=this.api(B,A,Q),C=new mi.Readable({objectMode:!0,read:()=>{}});return I.once("error",E=>C.emit("error",E)).on("data",E=>C.emit("data",Q.transform(E))).once("end",()=>C.emit("end")),C.once("close",()=>I.destroy()),C}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}rB.default=Pi;var jB={},PB={};Object.defineProperty(PB,"__esModule",{value:!0});const li=wA,Vi=yA,zi=jg;class Xi extends zi.default{constructor(){super(...arguments),this._walkSync=Vi.walkSync,this._statSync=li.statSync}dynamic(A,B){return this._walkSync(A,B)}static(A,B){const Q=[];for(const I of A){const C=this._getFullEntryPath(I),E=this._getEntry(C,I,B);E===null||!B.entryFilter(E)||Q.push(E)}return Q}_getEntry(A,B,Q){try{const I=this._getStat(A);return this._makeEntry(I,B)}catch(I){if(Q.errorFilter(I))return null;throw I}}_getStat(A){return this._statSync(A,this._fsStatSettings)}}PB.default=Xi,Object.defineProperty(jB,"__esModule",{value:!0});const ui=PB,vi=kg;class _i extends vi.default{constructor(){super(...arguments),this._reader=new ui.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A);return this.api(B,A,Q).map(Q.transform)}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}jB.default=_i;var pI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default,B=$B.default,Q=Math.max(B.cpus().length,1);g.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:A.lstat,lstatSync:A.lstatSync,stat:A.stat,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};class I{constructor(E={}){this._options=E,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,Q),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)}_getValue(E,D){return E===void 0?D:E}_getFileSystemMethods(E={}){return Object.assign(Object.assign({},g.DEFAULT_FILE_SYSTEM_ADAPTER),E)}}g.default=I})(pI);const tI=BA,OI=uA,$i=YB,Ao=rB,go=jB,lB=pI,nA=v;async function VB(g,A){_A(g);const B=zB(g,$i.default,A),Q=await Promise.all(B);return nA.array.flatten(Q)}(function(g){function A(E,D){_A(E);const G=zB(E,go.default,D);return nA.array.flatten(G)}g.sync=A;function B(E,D){_A(E);const G=zB(E,Ao.default,D);return nA.stream.merge(G)}g.stream=B;function Q(E,D){_A(E);const G=OI.transform([].concat(E)),k=new lB.default(D);return tI.generate(G,k)}g.generateTasks=Q;function I(E,D){_A(E);const G=new lB.default(D);return nA.pattern.isDynamicPattern(E,G)}g.isDynamicPattern=I;function C(E){return _A(E),nA.path.escape(E)}g.escapePath=C})(VB||(VB={}));function zB(g,A,B){const Q=OI.transform([].concat(g)),I=new lB.default(B),C=tI.generate(Q,I),E=new A(I);return C.map(E.read,E)}function _A(g){if(![].concat(g).every(Q=>nA.string.isString(Q)&&!nA.string.isEmpty(Q)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}var Bo=VB,Qo=Bo;let XB;process.on("message",async g=>{g.method==="exit"&&ZI.exit(0),typeof XB>"u"&&(XB=await lg.exports.TaploLsp.initialize({cwd:()=>process.cwd(),envVar:A=>process.env[A],findConfigFile:A=>{const B=[".taplo.toml","taplo.toml"];for(const Q of B)try{const I=kA.default.join(A,Q);return Mg.default.accessSync(I),I}catch{}},glob:A=>Qo.sync(A),isAbsolute:A=>kA.default.isAbsolute(A),now:()=>new Date,readFile:A=>_B.default.readFile(A),writeFile:(A,B)=>_B.default.writeFile(A,B),stderr:process.stderr,stdErrAtty:()=>process.stderr.isTTY,stdin:process.stdin,stdout:process.stdout,urlToFilePath:A=>{const B=decodeURIComponent(A).slice(7);return process.platform==="win32"&&B.startsWith("/")?B.slice(1):B},fetch:{fetch:GQ,Headers:OA,Request:$A,Response:iA}},{onMessage(A){process.send(A)}})),XB.send(g)}),process.on("unhandledRejection",g=>{throw g}),exports.File=QQ,exports.FormData=Rg;
RuntimeError: unreachable
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd44b
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
[Info - 02:38:49] Connection to server got closed. Server will restart.
[Error - 02:38:49] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:49] Even Better TOML LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
INFO registered request handler method="initialize"
INFO registered request handler method="textDocument/foldingRange"
INFO registered request handler method="textDocument/documentSymbol"
INFO registered request handler method="textDocument/formatting"
INFO registered request handler method="textDocument/completion"
INFO registered request handler method="textDocument/hover"
INFO registered request handler method="textDocument/documentLink"
INFO registered request handler method="textDocument/semanticTokens/full"
INFO registered request handler method="textDocument/prepareRename"
INFO registered request handler method="textDocument/rename"
INFO registered notification handler method="initialized"
INFO registered notification handler method="textDocument/didOpen"
INFO registered notification handler method="textDocument/didChange"
INFO registered notification handler method="textDocument/didSave"
INFO registered notification handler method="textDocument/didClose"
INFO registered notification handler method="workspace/didChangeConfiguration"
INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
INFO registered request handler method="taplo/convertToJson"
INFO registered request handler method="taplo/convertToToml"
INFO registered request handler method="taplo/listSchemas"
INFO registered request handler method="taplo/associatedSchema"
INFO registered notification handler method="taplo/associateSchema"
panicked at 'getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto module is unavailable" }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.8.0/src/random_state.rs:77:51
Stack:
Error
at i.wbg.__wbg_new_693216e109162396 (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5841)
at wasm://wasm/00f6ca2e:wasm-function[5308]:0x321a3d
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd428
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40
`,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"};const yE=$g,{MAX_LENGTH:tQ,CHAR_BACKSLASH:QB,CHAR_BACKTICK:YE,CHAR_COMMA:sE,CHAR_DOT:UE,CHAR_LEFT_PARENTHESES:LE,CHAR_RIGHT_PARENTHESES:hE,CHAR_LEFT_CURLY_BRACE:qE,CHAR_RIGHT_CURLY_BRACE:HE,CHAR_LEFT_SQUARE_BRACKET:OQ,CHAR_RIGHT_SQUARE_BRACKET:TQ,CHAR_DOUBLE_QUOTE:cE,CHAR_SINGLE_QUOTE:SE,CHAR_NO_BREAK_SPACE:pE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tE}=KE,OE=(g,A={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let B=A||{},Q=typeof B.maxLength=="number"?Math.min(tQ,B.maxLength):tQ;if(g.length>Q)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${Q})`);let I={type:"root",input:g,nodes:[]},C=[I],E=I,D=I,G=0,k=g.length,N=0,y=0,F;const h=()=>g[N++],M=Y=>{if(Y.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&Y.type==="text"){D.value+=Y.value;return}return E.nodes.push(Y),Y.parent=E,Y.prev=D,D=Y,Y};for(M({type:"bos"});N<k;)if(E=C[C.length-1],F=h(),!(F===tE||F===pE)){if(F===QB){M({type:"text",value:(A.keepEscaping?F:"")+h()});continue}if(F===TQ){M({type:"text",value:"\\"+F});continue}if(F===OQ){G++;let Y;for(;N<k&&(Y=h());){if(F+=Y,Y===OQ){G++;continue}if(Y===QB){F+=h();continue}if(Y===TQ&&(G--,G===0))break}M({type:"text",value:F});continue}if(F===LE){E=M({type:"paren",nodes:[]}),C.push(E),M({type:"text",value:F});continue}if(F===hE){if(E.type!=="paren"){M({type:"text",value:F});continue}E=C.pop(),M({type:"text",value:F}),E=C[C.length-1];continue}if(F===cE||F===SE||F===YE){let Y=F,c;for(A.keepQuotes!==!0&&(F="");N<k&&(c=h());){if(c===QB){F+=c+h();continue}if(c===Y){A.keepQuotes===!0&&(F+=c);break}F+=c}M({type:"text",value:F});continue}if(F===qE){y++;let Y=D.value&&D.value.slice(-1)==="$"||E.dollar===!0;E=M({type:"brace",open:!0,close:!1,dollar:Y,depth:y,commas:0,ranges:0,nodes:[]}),C.push(E),M({type:"open",value:F});continue}if(F===HE){if(E.type!=="brace"){M({type:"text",value:F});continue}let Y="close";E=C.pop(),E.close=!0,M({type:Y,value:F}),y--,E=C[C.length-1];continue}if(F===sE&&y>0){if(E.ranges>0){E.ranges=0;let Y=E.nodes.shift();E.nodes=[Y,{type:"text",value:yE(E)}]}M({type:"comma",value:F}),E.commas++;continue}if(F===UE&&y>0&&E.commas===0){let Y=E.nodes;if(y===0||Y.length===0){M({type:"text",value:F});continue}if(D.type==="dot"){if(E.range=[],D.value+=F,D.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,D.type="text";continue}E.ranges++,E.args=[];continue}if(D.type==="range"){Y.pop();let c=Y[Y.length-1];c.value+=D.value+F,D=c,E.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(E=C.pop(),E.type!=="root"){E.nodes.forEach(S=>{S.nodes||(S.type==="open"&&(S.isOpen=!0),S.type==="close"&&(S.isClose=!0),S.nodes||(S.type="text"),S.invalid=!0)});let Y=C[C.length-1],c=Y.nodes.indexOf(E);Y.nodes.splice(c,1,...E.nodes)}while(C.length>0);return M({type:"eos"}),I};var TE=OE;const xQ=$g,xE=ME,dE=RE,WE=TE,DA=(g,A={})=>{let B=[];if(Array.isArray(g))for(let Q of g){let I=DA.create(Q,A);Array.isArray(I)?B.push(...I):B.push(I)}else B=[].concat(DA.create(g,A));return A&&A.expand===!0&&A.nodupes===!0&&(B=[...new Set(B)]),B};DA.parse=(g,A={})=>WE(g,A),DA.stringify=(g,A={})=>xQ(typeof g=="string"?DA.parse(g,A):g,A),DA.compile=(g,A={})=>(typeof g=="string"&&(g=DA.parse(g,A)),xE(g,A)),DA.expand=(g,A={})=>{typeof g=="string"&&(g=DA.parse(g,A));let B=dE(g,A);return A.noempty===!0&&(B=B.filter(Boolean)),A.nodupes===!0&&(B=[...new Set(B)]),B},DA.create=(g,A={})=>g===""||g.length<3?[g]:A.expand!==!0?DA.compile(g,A):DA.expand(g,A);var ZE=DA,dQ={exports:{}},Dg={};const fE=kA.default,qA="\\\\/",WQ=`[^${qA}]`,pA="\\.",bE="\\+",nE="\\?",Hg="\\/",eE="(?=.)",ZQ="[^/]",IB=`(?:${Hg}|$)`,fQ=`(?:^|${Hg})`,CB=`${pA}{1,2}${IB}`,mE=`(?!${pA})`,rE=`(?!${fQ}${CB})`,jE=`(?!${pA}{0,1}${IB})`,PE=`(?!${CB})`,lE=`[^.${Hg}]`,VE=`${ZQ}*?`,bQ={DOT_LITERAL:pA,PLUS_LITERAL:bE,QMARK_LITERAL:nE,SLASH_LITERAL:Hg,ONE_CHAR:eE,QMARK:ZQ,END_ANCHOR:IB,DOTS_SLASH:CB,NO_DOT:mE,NO_DOTS:rE,NO_DOT_SLASH:jE,NO_DOTS_SLASH:PE,QMARK_NO_DOT:lE,STAR:VE,START_ANCHOR:fQ},zE={...bQ,SLASH_LITERAL:`[${qA}]`,QMARK:WQ,STAR:`${WQ}*?`,DOTS_SLASH:`${pA}{1,2}(?:[${qA}]|$)`,NO_DOT:`(?!${pA})`,NO_DOTS:`(?!(?:^|[${qA}])${pA}{1,2}(?:[${qA}]|$))`,NO_DOT_SLASH:`(?!${pA}{0,1}(?:[${qA}]|$))`,NO_DOTS_SLASH:`(?!${pA}{1,2}(?:[${qA}]|$))`,QMARK_NO_DOT:`[^.${qA}]`,START_ANCHOR:`(?:^|[${qA}])`,END_ANCHOR:`(?:[${qA}]|$)`},XE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var cg={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fE.sep,extglobChars(g){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${g.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(g){return g===!0?zE:bQ}};(function(g){const A=kA.default,B=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:I,REGEX_SPECIAL_CHARS:C,REGEX_SPECIAL_CHARS_GLOBAL:E}=cg;g.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),g.hasRegexChars=D=>C.test(D),g.isRegexChar=D=>D.length===1&&g.hasRegexChars(D),g.escapeRegex=D=>D.replace(E,"\\$1"),g.toPosixSlashes=D=>D.replace(Q,"/"),g.removeBackslashes=D=>D.replace(I,G=>G==="\\"?"":G),g.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},g.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:B===!0||A.sep==="\\",g.escapeLast=(D,G,k)=>{const N=D.lastIndexOf(G,k);return N===-1?D:D[N-1]==="\\"?g.escapeLast(D,G,N-1):`${D.slice(0,N)}\\${D.slice(N)}`},g.removePrefix=(D,G={})=>{let k=D;return k.startsWith("./")&&(k=k.slice(2),G.prefix="./"),k},g.wrapOutput=(D,G={},k={})=>{const N=k.contains?"":"^",y=k.contains?"":"$";let F=`${N}(?:${D})${y}`;return G.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(Dg);const nQ=Dg,{CHAR_ASTERISK:EB,CHAR_AT:uE,CHAR_BACKWARD_SLASH:wg,CHAR_COMMA:vE,CHAR_DOT:DB,CHAR_EXCLAMATION_MARK:wB,CHAR_FORWARD_SLASH:eQ,CHAR_LEFT_CURLY_BRACE:iB,CHAR_LEFT_PARENTHESES:oB,CHAR_LEFT_SQUARE_BRACKET:_E,CHAR_PLUS:$E,CHAR_QUESTION_MARK:mQ,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:rQ,CHAR_RIGHT_SQUARE_BRACKET:gD}=cg,jQ=g=>g===eQ||g===wg,PQ=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},BD=(g,A)=>{const B=A||{},Q=g.length-1,I=B.parts===!0||B.scanToEnd===!0,C=[],E=[],D=[];let G=g,k=-1,N=0,y=0,F=!1,h=!1,M=!1,Y=!1,c=!1,S=!1,j=!1,H=!1,e=!1,q=!1,Z=0,T,p,m={value:"",depth:0,isGlob:!1};const b=()=>k>=Q,R=()=>G.charCodeAt(k+1),X=()=>(T=p,G.charCodeAt(++k));for(;k<Q;){p=X();let AA;if(p===wg){j=m.backslashes=!0,p=X(),p===iB&&(S=!0);continue}if(S===!0||p===iB){for(Z++;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,X();continue}if(p===iB){Z++;continue}if(S!==!0&&p===DB&&(p=X())===DB){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(S!==!0&&p===vE){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===AD&&(Z--,Z===0)){S=!1,F=m.isBrace=!0,q=!0;break}}if(I===!0)continue;break}if(p===eQ){if(C.push(k),E.push(m),m={value:"",depth:0,isGlob:!1},q===!0)continue;if(T===DB&&k===N+1){N+=2;continue}y=k+1;continue}if(B.noext!==!0&&(p===$E||p===uE||p===EB||p===mQ||p===wB)===!0&&R()===oB){if(M=m.isGlob=!0,Y=m.isExtglob=!0,q=!0,p===wB&&k===N&&(e=!0),I===!0){for(;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,p=X();continue}if(p===rQ){M=m.isGlob=!0,q=!0;break}}continue}break}if(p===EB){if(T===EB&&(c=m.isGlobstar=!0),M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===mQ){if(M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===_E){for(;b()!==!0&&(AA=X());){if(AA===wg){j=m.backslashes=!0,X();continue}if(AA===gD){h=m.isBracket=!0,M=m.isGlob=!0,q=!0;break}}if(I===!0)continue;break}if(B.nonegate!==!0&&p===wB&&k===N){H=m.negated=!0,N++;continue}if(B.noparen!==!0&&p===oB){if(M=m.isGlob=!0,I===!0){for(;b()!==!0&&(p=X());){if(p===oB){j=m.backslashes=!0,p=X();continue}if(p===rQ){q=!0;break}}continue}break}if(M===!0){if(q=!0,I===!0)continue;break}}B.noext===!0&&(Y=!1,M=!1);let l=G,YA="",a="";N>0&&(YA=G.slice(0,N),G=G.slice(N),y-=N),l&&M===!0&&y>0?(l=G.slice(0,y),a=G.slice(y)):M===!0?(l="",a=G):l=G,l&&l!==""&&l!=="/"&&l!==G&&jQ(l.charCodeAt(l.length-1))&&(l=l.slice(0,-1)),B.unescape===!0&&(a&&(a=nQ.removeBackslashes(a)),l&&j===!0&&(l=nQ.removeBackslashes(l)));const J={prefix:YA,input:g,start:N,base:l,glob:a,isBrace:F,isBracket:h,isGlob:M,isExtglob:Y,isGlobstar:c,negated:H,negatedExtglob:e};if(B.tokens===!0&&(J.maxDepth=0,jQ(p)||E.push(m),J.tokens=E),B.parts===!0||B.tokens===!0){let AA;for(let n=0;n<C.length;n++){const oA=AA?AA+1:N,QA=C[n],IA=g.slice(oA,QA);B.tokens&&(n===0&&N!==0?(E[n].isPrefix=!0,E[n].value=YA):E[n].value=IA,PQ(E[n]),J.maxDepth+=E[n].depth),(n!==0||IA!=="")&&D.push(IA),AA=QA}if(AA&&AA+1<g.length){const n=g.slice(AA+1);D.push(n),B.tokens&&(E[E.length-1].value=n,PQ(E[E.length-1]),J.maxDepth+=E[E.length-1].depth)}J.slashes=C,J.parts=D}return J};var QD=BD;const Sg=cg,NA=Dg,{MAX_LENGTH:pg,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:ED,REPLACEMENTS:lQ}=Sg,DD=(g,A)=>typeof A.expandRange=="function"?A.expandRange(...g,A):(g.sort(),`[${g.join("-")}]`),zA=(g,A)=>`Missing ${g}: "${A}" - use "\\\\${A}" to match literal characters`,GB=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=lQ[g]||g;const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg;let I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);const C={type:"bos",value:"",output:B.prepend||""},E=[C],D=B.capture?"":"?:",G=NA.isWindows(A),k=Sg.globChars(G),N=Sg.extglobChars(k),{DOT_LITERAL:y,PLUS_LITERAL:F,SLASH_LITERAL:h,ONE_CHAR:M,DOTS_SLASH:Y,NO_DOT:c,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:H,QMARK_NO_DOT:e,STAR:q,START_ANCHOR:Z}=k,T=L=>`(${D}(?:(?!${Z}${L.dot?Y:y}).)*?)`,p=B.dot?"":c,m=B.dot?H:e;let b=B.bash===!0?T(B):q;B.capture&&(b=`(${b})`),typeof B.noext=="boolean"&&(B.noextglob=B.noext);const R={input:g,index:-1,start:0,dot:B.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};g=NA.removePrefix(g,R),I=g.length;const X=[],l=[],YA=[];let a=C,J;const AA=()=>R.index===I-1,n=R.peek=(L=1)=>g[R.index+L],oA=R.advance=()=>g[++R.index]||"",QA=()=>g.slice(R.index+1),IA=(L="",V=0)=>{R.consumed+=L,R.index+=V},dA=L=>{R.output+=L.output!=null?L.output:L.value,IA(L.value)},Ng=()=>{let L=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)oA(),R.start++,L++;return L%2===0?!1:(R.negated=!0,R.start++,!0)},eA=L=>{R[L]++,YA.push(L)},aA=L=>{R[L]--,YA.pop()},f=L=>{if(a.type==="globstar"){const V=R.braces>0&&(L.type==="comma"||L.type==="brace"),s=L.extglob===!0||X.length&&(L.type==="pipe"||L.type==="paren");L.type!=="slash"&&L.type!=="paren"&&!V&&!s&&(R.output=R.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=b,R.output+=a.output)}if(X.length&&L.type!=="paren"&&(X[X.length-1].inner+=L.value),(L.value||L.output)&&dA(L),a&&a.type==="text"&&L.type==="text"){a.value+=L.value,a.output=(a.output||"")+L.value;return}L.prev=a,E.push(L),a=L},mA=(L,V)=>{const s={...N[V],conditions:1,inner:""};s.prev=a,s.parens=R.parens,s.output=R.output;const x=(B.capture?"(":"")+s.open;eA("parens"),f({type:L,value:V,output:R.output?"":M}),f({type:"paren",extglob:!0,value:oA(),output:x}),X.push(s)},rA=L=>{let V=L.close+(B.capture?")":""),s;if(L.type==="negate"){let x=b;if(L.inner&&L.inner.length>1&&L.inner.includes("/")&&(x=T(B)),(x!==b||AA()||/^\)+$/.test(QA()))&&(V=L.close=`)$))${x}`),L.inner.includes("*")&&(s=QA())&&/^\.[^\\/.]+$/.test(s)){const P=GB(s,{...A,fastpaths:!1}).output;V=L.close=`)${P})${x})`}L.prev.type==="bos"&&(R.negatedExtglob=!0)}f({type:"paren",extglob:!0,value:J,output:V}),aA("parens")};if(B.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let L=!1,V=g.replace(ED,(s,x,P,z,i,w)=>z==="\\"?(L=!0,s):z==="?"?x?x+z+(i?H.repeat(i.length):""):w===0?m+(i?H.repeat(i.length):""):H.repeat(P.length):z==="."?y.repeat(P.length):z==="*"?x?x+z+(i?b:""):b:x?s:`\\${s}`);return L===!0&&(B.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,s=>s.length%2===0?"\\\\":s?"\\":"")),V===g&&B.contains===!0?(R.output=g,R):(R.output=NA.wrapOutput(V,R,A),R)}for(;!AA();){if(J=oA(),J==="\0")continue;if(J==="\\"){const s=n();if(s==="/"&&B.bash!==!0||s==="."||s===";")continue;if(!s){J+="\\",f({type:"text",value:J});continue}const x=/^\\+/.exec(QA());let P=0;if(x&&x[0].length>2&&(P=x[0].length,R.index+=P,P%2!==0&&(J+="\\")),B.unescape===!0?J=oA():J+=oA(),R.brackets===0){f({type:"text",value:J});continue}}if(R.brackets>0&&(J!=="]"||a.value==="["||a.value==="[^")){if(B.posix!==!1&&J===":"){const s=a.value.slice(1);if(s.includes("[")&&(a.posix=!0,s.includes(":"))){const x=a.value.lastIndexOf("["),P=a.value.slice(0,x),z=a.value.slice(x+2),i=ID[z];if(i){a.value=P+i,R.backtrack=!0,oA(),!C.output&&E.indexOf(a)===1&&(C.output=M);continue}}}(J==="["&&n()!==":"||J==="-"&&n()==="]")&&(J=`\\${J}`),J==="]"&&(a.value==="["||a.value==="[^")&&(J=`\\${J}`),B.posix===!0&&J==="!"&&a.value==="["&&(J="^"),a.value+=J,dA({value:J});continue}if(R.quotes===1&&J!=='"'){J=NA.escapeRegex(J),a.value+=J,dA({value:J});continue}if(J==='"'){R.quotes=R.quotes===1?0:1,B.keepQuotes===!0&&f({type:"text",value:J});continue}if(J==="("){eA("parens"),f({type:"paren",value:J});continue}if(J===")"){if(R.parens===0&&B.strictBrackets===!0)throw new SyntaxError(zA("opening","("));const s=X[X.length-1];if(s&&R.parens===s.parens+1){rA(X.pop());continue}f({type:"paren",value:J,output:R.parens?")":"\\)"}),aA("parens");continue}if(J==="["){if(B.nobracket===!0||!QA().includes("]")){if(B.nobracket!==!0&&B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));J=`\\${J}`}else eA("brackets");f({type:"bracket",value:J});continue}if(J==="]"){if(B.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){f({type:"text",value:J,output:`\\${J}`});continue}if(R.brackets===0){if(B.strictBrackets===!0)throw new SyntaxError(zA("opening","["));f({type:"text",value:J,output:`\\${J}`});continue}aA("brackets");const s=a.value.slice(1);if(a.posix!==!0&&s[0]==="^"&&!s.includes("/")&&(J=`/${J}`),a.value+=J,dA({value:J}),B.literalBrackets===!1||NA.hasRegexChars(s))continue;const x=NA.escapeRegex(a.value);if(R.output=R.output.slice(0,-a.value.length),B.literalBrackets===!0){R.output+=x,a.value=x;continue}a.value=`(${D}${x}|${a.value})`,R.output+=a.value;continue}if(J==="{"&&B.nobrace!==!0){eA("braces");const s={type:"brace",value:J,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};l.push(s),f(s);continue}if(J==="}"){const s=l[l.length-1];if(B.nobrace===!0||!s){f({type:"text",value:J,output:J});continue}let x=")";if(s.dots===!0){const P=E.slice(),z=[];for(let i=P.length-1;i>=0&&(E.pop(),P[i].type!=="brace");i--)P[i].type!=="dots"&&z.unshift(P[i].value);x=DD(z,B),R.backtrack=!0}if(s.comma!==!0&&s.dots!==!0){const P=R.output.slice(0,s.outputIndex),z=R.tokens.slice(s.tokensIndex);s.value=s.output="\\{",J=x="\\}",R.output=P;for(const i of z)R.output+=i.output||i.value}f({type:"brace",value:J,output:x}),aA("braces"),l.pop();continue}if(J==="|"){X.length>0&&X[X.length-1].conditions++,f({type:"text",value:J});continue}if(J===","){let s=J;const x=l[l.length-1];x&&YA[YA.length-1]==="braces"&&(x.comma=!0,s="|"),f({type:"comma",value:J,output:s});continue}if(J==="/"){if(a.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",E.pop(),a=C;continue}f({type:"slash",value:J,output:h});continue}if(J==="."){if(R.braces>0&&a.type==="dot"){a.value==="."&&(a.output=y);const s=l[l.length-1];a.type="dots",a.output+=J,a.value+=J,s.dots=!0;continue}if(R.braces+R.parens===0&&a.type!=="bos"&&a.type!=="slash"){f({type:"text",value:J,output:y});continue}f({type:"dot",value:J,output:y});continue}if(J==="?"){if(!(a&&a.value==="(")&&B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("qmark",J);continue}if(a&&a.type==="paren"){const x=n();let P=J;if(x==="<"&&!NA.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(QA()))&&(P=`\\${J}`),f({type:"text",value:J,output:P});continue}if(B.dot!==!0&&(a.type==="slash"||a.type==="bos")){f({type:"qmark",value:J,output:e});continue}f({type:"qmark",value:J,output:H});continue}if(J==="!"){if(B.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){mA("negate",J);continue}if(B.nonegate!==!0&&R.index===0){Ng();continue}}if(J==="+"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("plus",J);continue}if(a&&a.value==="("||B.regex===!1){f({type:"plus",value:J,output:F});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||R.parens>0){f({type:"plus",value:J});continue}f({type:"plus",value:F});continue}if(J==="@"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){f({type:"at",extglob:!0,value:J,output:""});continue}f({type:"text",value:J});continue}if(J!=="*"){(J==="$"||J==="^")&&(J=`\\${J}`);const s=CD.exec(QA());s&&(J+=s[0],R.index+=s[0].length),f({type:"text",value:J});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=J,a.output=b,R.backtrack=!0,R.globstar=!0,IA(J);continue}let L=QA();if(B.noextglob!==!0&&/^\([^?]/.test(L)){mA("star",J);continue}if(a.type==="star"){if(B.noglobstar===!0){IA(J);continue}const s=a.prev,x=s.prev,P=s.type==="slash"||s.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(B.bash===!0&&(!P||L[0]&&L[0]!=="/")){f({type:"star",value:J,output:""});continue}const i=R.braces>0&&(s.type==="comma"||s.type==="brace"),w=X.length&&(s.type==="pipe"||s.type==="paren");if(!P&&s.type!=="paren"&&!i&&!w){f({type:"star",value:J,output:""});continue}for(;L.slice(0,3)==="/**";){const o=g[R.index+4];if(o&&o!=="/")break;L=L.slice(3),IA("/**",3)}if(s.type==="bos"&&AA()){a.type="globstar",a.value+=J,a.output=T(B),R.output=a.output,R.globstar=!0,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!z&&AA()){R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=T(B)+(B.strictSlashes?")":"|$)"),a.value+=J,R.globstar=!0,R.output+=s.output+a.output,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&L[0]==="/"){const o=L[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=`${T(B)}${h}|${h}${o})`,a.value+=J,R.output+=s.output+a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&L[0]==="/"){a.type="globstar",a.value+=J,a.output=`(?:^|${h}|${T(B)}${h})`,R.output=a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-a.output.length),a.type="globstar",a.output=T(B),a.value+=J,R.output+=a.output,R.globstar=!0,IA(J);continue}const V={type:"star",value:J,output:b};if(B.bash===!0){V.output=".*?",(a.type==="bos"||a.type==="slash")&&(V.output=p+V.output),f(V);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&B.regex===!0){V.output=J,f(V);continue}(R.index===R.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(R.output+=S,a.output+=S):B.dot===!0?(R.output+=j,a.output+=j):(R.output+=p,a.output+=p),n()!=="*"&&(R.output+=M,a.output+=M)),f(V)}for(;R.brackets>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));R.output=NA.escapeLast(R.output,"["),aA("brackets")}for(;R.parens>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing",")"));R.output=NA.escapeLast(R.output,"("),aA("parens")}for(;R.braces>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","}"));R.output=NA.escapeLast(R.output,"{"),aA("braces")}if(B.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&f({type:"maybe_slash",value:"",output:`${h}?`}),R.backtrack===!0){R.output="";for(const L of R.tokens)R.output+=L.output!=null?L.output:L.value,L.suffix&&(R.output+=L.suffix)}return R};GB.fastpaths=(g,A)=>{const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg,I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);g=lQ[g]||g;const C=NA.isWindows(A),{DOT_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:G,DOTS_SLASH:k,NO_DOT:N,NO_DOTS:y,NO_DOTS_SLASH:F,STAR:h,START_ANCHOR:M}=Sg.globChars(C),Y=B.dot?y:N,c=B.dot?F:N,S=B.capture?"":"?:",j={negated:!1,prefix:""};let H=B.bash===!0?".*?":h;B.capture&&(H=`(${H})`);const e=p=>p.noglobstar===!0?H:`(${S}(?:(?!${M}${p.dot?k:E}).)*?)`,q=p=>{switch(p){case"*":return`${Y}${G}${H}`;case".*":return`${E}${G}${H}`;case"*.*":return`${Y}${H}${E}${G}${H}`;case"*/*":return`${Y}${H}${D}${G}${c}${H}`;case"**":return Y+e(B);case"**/*":return`(?:${Y}${e(B)}${D})?${c}${G}${H}`;case"**/*.*":return`(?:${Y}${e(B)}${D})?${c}${H}${E}${G}${H}`;case"**/.*":return`(?:${Y}${e(B)}${D})?${E}${G}${H}`;default:{const m=/^(.*?)\.(\w+)$/.exec(p);if(!m)return;const b=q(m[1]);return b?b+E+m[2]:void 0}}},Z=NA.removePrefix(g,j);let T=q(Z);return T&&B.strictSlashes!==!0&&(T+=`${D}?`),T};var wD=GB;const iD=kA.default,oD=QD,kB=wD,NB=Dg,GD=cg,kD=g=>g&&typeof g=="object"&&!Array.isArray(g),_=(g,A,B=!1)=>{if(Array.isArray(g)){const N=g.map(F=>_(F,A,B));return F=>{for(const h of N){const M=h(F);if(M)return M}return!1}}const Q=kD(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!Q)throw new TypeError("Expected pattern to be a non-empty string");const I=A||{},C=NB.isWindows(A),E=Q?_.compileRe(g,A):_.makeRe(g,A,!1,!0),D=E.state;delete E.state;let G=()=>!1;if(I.ignore){const N={...A,ignore:null,onMatch:null,onResult:null};G=_(I.ignore,N,B)}const k=(N,y=!1)=>{const{isMatch:F,match:h,output:M}=_.test(N,E,A,{glob:g,posix:C}),Y={glob:g,state:D,regex:E,posix:C,input:N,output:M,match:h,isMatch:F};return typeof I.onResult=="function"&&I.onResult(Y),F===!1?(Y.isMatch=!1,y?Y:!1):G(N)?(typeof I.onIgnore=="function"&&I.onIgnore(Y),Y.isMatch=!1,y?Y:!1):(typeof I.onMatch=="function"&&I.onMatch(Y),y?Y:!0)};return B&&(k.state=D),k};_.test=(g,A,B,{glob:Q,posix:I}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const C=B||{},E=C.format||(I?NB.toPosixSlashes:null);let D=g===Q,G=D&&E?E(g):g;return D===!1&&(G=E?E(g):g,D=G===Q),(D===!1||C.capture===!0)&&(C.matchBase===!0||C.basename===!0?D=_.matchBase(g,A,B,I):D=A.exec(G)),{isMatch:Boolean(D),match:D,output:G}},_.matchBase=(g,A,B,Q=NB.isWindows(B))=>(A instanceof RegExp?A:_.makeRe(A,B)).test(iD.basename(g)),_.isMatch=(g,A,B)=>_(A,B)(g),_.parse=(g,A)=>Array.isArray(g)?g.map(B=>_.parse(B,A)):kB(g,{...A,fastpaths:!1}),_.scan=(g,A)=>oD(g,A),_.compileRe=(g,A,B=!1,Q=!1)=>{if(B===!0)return g.output;const I=A||{},C=I.contains?"":"^",E=I.contains?"":"$";let D=`${C}(?:${g.output})${E}`;g&&g.negated===!0&&(D=`^(?!${D}).*$`);const G=_.toRegex(D,A);return Q===!0&&(G.state=g),G},_.makeRe=(g,A={},B=!1,Q=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");let I={negated:!1,fastpaths:!0};return A.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(I.output=kB.fastpaths(g,A)),I.output||(I=kB(g,A)),_.compileRe(I,A,B,Q)},_.toRegex=(g,A)=>{try{const B=A||{};return new RegExp(g,B.flags||(B.nocase?"i":""))}catch(B){if(A&&A.debug===!0)throw B;return/$^/}},_.constants=GD;var ND=_;(function(g){g.exports=ND})(dQ);const VQ=AQ.default,zQ=ZE,HA=dQ.exports,FB=Dg,XQ=g=>g===""||g==="./",u=(g,A,B)=>{A=[].concat(A),g=[].concat(g);let Q=new Set,I=new Set,C=new Set,E=0,D=N=>{C.add(N.output),B&&B.onResult&&B.onResult(N)};for(let N=0;N<A.length;N++){let y=HA(String(A[N]),{...B,onResult:D},!0),F=y.state.negated||y.state.negatedExtglob;F&&E++;for(let h of g){let M=y(h,!0);!(F?!M.isMatch:M.isMatch)||(F?Q.add(M.output):(Q.delete(M.output),I.add(M.output)))}}let k=(E===A.length?[...C]:[...I]).filter(N=>!Q.has(N));if(B&&k.length===0){if(B.failglob===!0)throw new Error(`No matches found for "${A.join(", ")}"`);if(B.nonull===!0||B.nullglob===!0)return B.unescape?A.map(N=>N.replace(/\\/g,"")):A}return k};u.match=u,u.matcher=(g,A)=>HA(g,A),u.isMatch=(g,A,B)=>HA(A,B)(g),u.any=u.isMatch,u.not=(g,A,B={})=>{A=[].concat(A).map(String);let Q=new Set,I=[],C=D=>{B.onResult&&B.onResult(D),I.push(D.output)},E=new Set(u(g,A,{...B,onResult:C}));for(let D of I)E.has(D)||Q.add(D);return[...Q]},u.contains=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);if(Array.isArray(A))return A.some(Q=>u.contains(g,Q,B));if(typeof A=="string"){if(XQ(g)||XQ(A))return!1;if(g.includes(A)||g.startsWith("./")&&g.slice(2).includes(A))return!0}return u.isMatch(g,A,{...B,contains:!0})},u.matchKeys=(g,A,B)=>{if(!FB.isObject(g))throw new TypeError("Expected the first argument to be an object");let Q=u(Object.keys(g),A,B),I={};for(let C of Q)I[C]=g[C];return I},u.some=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(Q.some(E=>C(E)))return!0}return!1},u.every=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(!Q.every(E=>C(E)))return!1}return!0},u.all=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);return[].concat(A).every(Q=>HA(Q,B)(g))},u.capture=(g,A,B)=>{let Q=FB.isWindows(B),C=HA.makeRe(String(g),{...B,capture:!0}).exec(Q?FB.toPosixSlashes(A):A);if(C)return C.slice(1).map(E=>E===void 0?"":E)},u.makeRe=(...g)=>HA.makeRe(...g),u.scan=(...g)=>HA.scan(...g),u.parse=(g,A)=>{let B=[];for(let Q of[].concat(g||[]))for(let I of zQ(String(Q),A))B.push(HA.parse(I,A));return B},u.braces=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return A&&A.nobrace===!0||!/\{.*\}/.test(g)?[g]:zQ(g,A)},u.braceExpand=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return u.braces(g,{...A,expand:!0})};var FD=u;Object.defineProperty(d,"__esModule",{value:!0}),d.matchAny=d.convertPatternsToRe=d.makeRe=d.getPatternParts=d.expandBraceExpansion=d.expandPatternsWithBraceExpansion=d.isAffectDepthOfReadingPattern=d.endsWithSlashGlobStar=d.hasGlobStar=d.getBaseDirectory=d.isPatternRelatedToParentDirectory=d.getPatternsOutsideCurrentDirectory=d.getPatternsInsideCurrentDirectory=d.getPositivePatterns=d.getNegativePatterns=d.isPositivePattern=d.isNegativePattern=d.convertToNegativePattern=d.convertToPositivePattern=d.isDynamicPattern=d.isStaticPattern=void 0;const MD=kA.default,aD=XC,MB=FD,uQ="**",JD="\\",RD=/[*?]|^!/,KD=/\[[^[]*]/,yD=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YD=/[!*+?@]\([^(]*\)/,sD=/,|\.\./;function vQ(g,A={}){return!_Q(g,A)}d.isStaticPattern=vQ;function _Q(g,A={}){return g===""?!1:!!(A.caseSensitiveMatch===!1||g.includes(JD)||RD.test(g)||KD.test(g)||yD.test(g)||A.extglob!==!1&&YD.test(g)||A.braceExpansion!==!1&&UD(g))}d.isDynamicPattern=_Q;function UD(g){const A=g.indexOf("{");if(A===-1)return!1;const B=g.indexOf("}",A+1);if(B===-1)return!1;const Q=g.slice(A,B);return sD.test(Q)}function LD(g){return tg(g)?g.slice(1):g}d.convertToPositivePattern=LD;function hD(g){return"!"+g}d.convertToNegativePattern=hD;function tg(g){return g.startsWith("!")&&g[1]!=="("}d.isNegativePattern=tg;function $Q(g){return!tg(g)}d.isPositivePattern=$Q;function qD(g){return g.filter(tg)}d.getNegativePatterns=qD;function HD(g){return g.filter($Q)}d.getPositivePatterns=HD;function cD(g){return g.filter(A=>!aB(A))}d.getPatternsInsideCurrentDirectory=cD;function SD(g){return g.filter(aB)}d.getPatternsOutsideCurrentDirectory=SD;function aB(g){return g.startsWith("..")||g.startsWith("./..")}d.isPatternRelatedToParentDirectory=aB;function pD(g){return aD(g,{flipBackslashes:!1})}d.getBaseDirectory=pD;function tD(g){return g.includes(uQ)}d.hasGlobStar=tD;function AI(g){return g.endsWith("/"+uQ)}d.endsWithSlashGlobStar=AI;function OD(g){const A=MD.basename(g);return AI(g)||vQ(A)}d.isAffectDepthOfReadingPattern=OD;function TD(g){return g.reduce((A,B)=>A.concat(gI(B)),[])}d.expandPatternsWithBraceExpansion=TD;function gI(g){return MB.braces(g,{expand:!0,nodupes:!0})}d.expandBraceExpansion=gI;function xD(g,A){let{parts:B}=MB.scan(g,Object.assign(Object.assign({},A),{parts:!0}));return B.length===0&&(B=[g]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}d.getPatternParts=xD;function BI(g,A){return MB.makeRe(g,A)}d.makeRe=BI;function dD(g,A){return g.map(B=>BI(B,A))}d.convertPatternsToRe=dD;function WD(g,A){return A.some(B=>B.test(g))}d.matchAny=WD;var Og={};const ZD=ag.default,QI=ZD.PassThrough,fD=Array.prototype.slice;var bD=nD;function nD(){const g=[],A=fD.call(arguments);let B=!1,Q=A[A.length-1];Q&&!Array.isArray(Q)&&Q.pipe==null?A.pop():Q={};const I=Q.end!==!1,C=Q.pipeError===!0;Q.objectMode==null&&(Q.objectMode=!0),Q.highWaterMark==null&&(Q.highWaterMark=64*1024);const E=QI(Q);function D(){for(let N=0,y=arguments.length;N<y;N++)g.push(II(arguments[N],Q));return G(),this}function G(){if(B)return;B=!0;let N=g.shift();if(!N){process.nextTick(k);return}Array.isArray(N)||(N=[N]);let y=N.length+1;function F(){--y>0||(B=!1,G())}function h(M){function Y(){M.removeListener("merge2UnpipeEnd",Y),M.removeListener("end",Y),C&&M.removeListener("error",c),F()}function c(S){E.emit("error",S)}if(M._readableState.endEmitted)return F();M.on("merge2UnpipeEnd",Y),M.on("end",Y),C&&M.on("error",c),M.pipe(E,{end:!1}),M.resume()}for(let M=0;M<N.length;M++)h(N[M]);F()}function k(){B=!1,E.emit("queueDrain"),I&&E.end()}return E.setMaxListeners(0),E.add=D,E.on("unpipe",function(N){N.emit("merge2UnpipeEnd")}),A.length&&D.apply(null,A),E}function II(g,A){if(Array.isArray(g))for(let B=0,Q=g.length;B<Q;B++)g[B]=II(g[B],A);else{if(!g._readableState&&g.pipe&&(g=g.pipe(QI(A))),!g._readableState||!g.pause||!g.pipe)throw new Error("Only readable stream can be merged.");g.pause()}return g}Object.defineProperty(Og,"__esModule",{value:!0}),Og.merge=void 0;const eD=bD;function mD(g){const A=eD(g);return g.forEach(B=>{B.once("error",Q=>A.emit("error",Q))}),A.once("close",()=>CI(g)),A.once("end",()=>CI(g)),A}Og.merge=mD;function CI(g){g.forEach(A=>A.emit("close"))}var XA={};Object.defineProperty(XA,"__esModule",{value:!0}),XA.isEmpty=XA.isString=void 0;function rD(g){return typeof g=="string"}XA.isString=rD;function jD(g){return g===""}XA.isEmpty=jD,Object.defineProperty(v,"__esModule",{value:!0}),v.string=v.stream=v.pattern=v.path=v.fs=v.errno=v.array=void 0;const PD=lA;v.array=PD;const lD=Ug;v.errno=lD;const VD=Lg;v.fs=VD;const zD=hA;v.path=zD;const XD=d;v.pattern=XD;const uD=Og;v.stream=uD;const vD=XA;v.string=vD,Object.defineProperty(BA,"__esModule",{value:!0}),BA.convertPatternGroupToTask=BA.convertPatternGroupsToTasks=BA.groupPatternsByBaseDirectory=BA.getNegativePatternsAsPositive=BA.getPositivePatterns=BA.convertPatternsToTasks=BA.generate=void 0;const tA=v;function _D(g,A){const B=EI(g),Q=DI(g,A.ignore),I=B.filter(G=>tA.pattern.isStaticPattern(G,A)),C=B.filter(G=>tA.pattern.isDynamicPattern(G,A)),E=JB(I,Q,!1),D=JB(C,Q,!0);return E.concat(D)}BA.generate=_D;function JB(g,A,B){const Q=[],I=tA.pattern.getPatternsOutsideCurrentDirectory(g),C=tA.pattern.getPatternsInsideCurrentDirectory(g),E=RB(I),D=RB(C);return Q.push(...KB(E,A,B)),"."in D?Q.push(yB(".",C,A,B)):Q.push(...KB(D,A,B)),Q}BA.convertPatternsToTasks=JB;function EI(g){return tA.pattern.getPositivePatterns(g)}BA.getPositivePatterns=EI;function DI(g,A){return tA.pattern.getNegativePatterns(g).concat(A).map(tA.pattern.convertToPositivePattern)}BA.getNegativePatternsAsPositive=DI;function RB(g){const A={};return g.reduce((B,Q)=>{const I=tA.pattern.getBaseDirectory(Q);return I in B?B[I].push(Q):B[I]=[Q],B},A)}BA.groupPatternsByBaseDirectory=RB;function KB(g,A,B){return Object.keys(g).map(Q=>yB(Q,g[Q],A,B))}BA.convertPatternGroupsToTasks=KB;function yB(g,A,B,Q){return{dynamic:Q,positive:A,negative:B,base:g,patterns:[].concat(A,B.map(tA.pattern.convertToNegativePattern))}}BA.convertPatternGroupToTask=yB;var uA={};Object.defineProperty(uA,"__esModule",{value:!0}),uA.removeDuplicateSlashes=uA.transform=void 0;const $D=/(?!^)\/{2,}/g;function Aw(g){return g.map(A=>wI(A))}uA.transform=Aw;function wI(g){return g.replace($D,"/")}uA.removeDuplicateSlashes=wI;var YB={},Tg={},wA={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.read=void 0;function gw(g,A,B){A.fs.lstat(g,(Q,I)=>{if(Q!==null){iI(B,Q);return}if(!I.isSymbolicLink()||!A.followSymbolicLink){sB(B,I);return}A.fs.stat(g,(C,E)=>{if(C!==null){if(A.throwErrorOnBrokenSymbolicLink){iI(B,C);return}sB(B,I);return}A.markSymbolicLink&&(E.isSymbolicLink=()=>!0),sB(B,E)})})}xg.read=gw;function iI(g,A){g(A)}function sB(g,A){g(null,A)}var dg={};Object.defineProperty(dg,"__esModule",{value:!0}),dg.read=void 0;function Bw(g,A){const B=A.fs.lstatSync(g);if(!B.isSymbolicLink()||!A.followSymbolicLink)return B;try{const Q=A.fs.statSync(g);return A.markSymbolicLink&&(Q.isSymbolicLink=()=>!0),Q}catch(Q){if(!A.throwErrorOnBrokenSymbolicLink)return B;throw Q}}dg.read=Bw;var UB={},oI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(oI),Object.defineProperty(UB,"__esModule",{value:!0});const Qw=oI;class Iw{constructor(A={}){this._options=A,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(A,B){return A??B}}UB.default=Iw,Object.defineProperty(wA,"__esModule",{value:!0}),wA.statSync=wA.stat=wA.Settings=void 0;const GI=xg,Cw=dg,LB=UB;wA.Settings=LB.default;function Ew(g,A,B){if(typeof A=="function"){GI.read(g,hB(),A);return}GI.read(g,hB(A),B)}wA.stat=Ew;function Dw(g,A){const B=hB(A);return Cw.read(g,B)}wA.statSync=Dw;function hB(g={}){return g instanceof LB.default?g:new LB.default(g)}var yA={},qB={},Wg={},cA={},TA={};/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let kI;var ww=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:gg.commonjsGlobal):g=>(kI||(kI=Promise.resolve())).then(g).catch(A=>setTimeout(()=>{throw A},0));/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var iw=Gw;const ow=ww;function Gw(g,A){let B,Q,I,C=!0;Array.isArray(g)?(B=[],Q=g.length):(I=Object.keys(g),B={},Q=I.length);function E(G){function k(){A&&A(G,B),A=null}C?ow(k):k()}function D(G,k,N){B[G]=N,(--Q===0||k)&&E(k)}Q?I?I.forEach(function(G){g[G](function(k,N){D(G,k,N)})}):g.forEach(function(G,k){G(function(N,y){D(k,N,y)})}):E(null),C=!1}var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const Zg=process.versions.node.split(".");if(Zg[0]===void 0||Zg[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const NI=Number.parseInt(Zg[0],10),kw=Number.parseInt(Zg[1],10),FI=10,Nw=10,Fw=NI>FI,Mw=NI===FI&&kw>=Nw;ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Fw||Mw;var og={},fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.createDirentFromStats=void 0;class aw{constructor(A,B){this.name=A,this.isBlockDevice=B.isBlockDevice.bind(B),this.isCharacterDevice=B.isCharacterDevice.bind(B),this.isDirectory=B.isDirectory.bind(B),this.isFIFO=B.isFIFO.bind(B),this.isFile=B.isFile.bind(B),this.isSocket=B.isSocket.bind(B),this.isSymbolicLink=B.isSymbolicLink.bind(B)}}function Jw(g,A){return new aw(g,A)}fg.createDirentFromStats=Jw,Object.defineProperty(og,"__esModule",{value:!0}),og.fs=void 0;const Rw=fg;og.fs=Rw;var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.joinPathSegments=void 0;function Kw(g,A,B){return g.endsWith(B)?g+A:g+B+A}Gg.joinPathSegments=Kw,Object.defineProperty(TA,"__esModule",{value:!0}),TA.readdir=TA.readdirWithFileTypes=TA.read=void 0;const yw=wA,MI=iw,Yw=ig,aI=og,JI=Gg;function sw(g,A,B){if(!A.stats&&Yw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){RI(g,A,B);return}KI(g,A,B)}TA.read=sw;function RI(g,A,B){A.fs.readdir(g,{withFileTypes:!0},(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(D=>({dirent:D,name:D.name,path:JI.joinPathSegments(g,D.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){HB(B,C);return}const E=C.map(D=>Uw(D,A));MI(E,(D,G)=>{if(D!==null){bg(B,D);return}HB(B,G)})})}TA.readdirWithFileTypes=RI;function Uw(g,A){return B=>{if(!g.dirent.isSymbolicLink()){B(null,g);return}A.fs.stat(g.path,(Q,I)=>{if(Q!==null){if(A.throwErrorOnBrokenSymbolicLink){B(Q);return}B(null,g);return}g.dirent=aI.fs.createDirentFromStats(g.name,I),B(null,g)})}}function KI(g,A,B){A.fs.readdir(g,(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(E=>{const D=JI.joinPathSegments(g,E,A.pathSegmentSeparator);return G=>{yw.stat(D,A.fsStatSettings,(k,N)=>{if(k!==null){G(k);return}const y={name:E,path:D,dirent:aI.fs.createDirentFromStats(E,N)};A.stats&&(y.stats=N),G(null,y)})}});MI(C,(E,D)=>{if(E!==null){bg(B,E);return}HB(B,D)})})}TA.readdir=KI;function bg(g,A){g(A)}function HB(g,A){g(null,A)}var xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.readdir=xA.readdirWithFileTypes=xA.read=void 0;const Lw=wA,hw=ig,yI=og,YI=Gg;function qw(g,A){return!A.stats&&hw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?sI(g,A):UI(g,A)}xA.read=qw;function sI(g,A){return A.fs.readdirSync(g,{withFileTypes:!0}).map(Q=>{const I={dirent:Q,name:Q.name,path:YI.joinPathSegments(g,Q.name,A.pathSegmentSeparator)};if(I.dirent.isSymbolicLink()&&A.followSymbolicLinks)try{const C=A.fs.statSync(I.path);I.dirent=yI.fs.createDirentFromStats(I.name,C)}catch(C){if(A.throwErrorOnBrokenSymbolicLink)throw C}return I})}xA.readdirWithFileTypes=sI;function UI(g,A){return A.fs.readdirSync(g).map(Q=>{const I=YI.joinPathSegments(g,Q,A.pathSegmentSeparator),C=Lw.statSync(I,A.fsStatSettings),E={name:Q,path:I,dirent:yI.fs.createDirentFromStats(Q,C)};return A.stats&&(E.stats=C),E})}xA.readdir=UI;var cB={},LI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(LI),Object.defineProperty(cB,"__esModule",{value:!0});const Hw=kA.default,cw=wA,Sw=LI;class pw{constructor(A={}){this._options=A,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}cB.default=pw,Object.defineProperty(cA,"__esModule",{value:!0}),cA.Settings=cA.scandirSync=cA.scandir=void 0;const hI=TA,tw=xA,SB=cB;cA.Settings=SB.default;function Ow(g,A,B){if(typeof A=="function"){hI.read(g,pB(),A);return}hI.read(g,pB(A),B)}cA.scandir=Ow;function Tw(g,A){const B=pB(A);return tw.read(g,B)}cA.scandirSync=Tw;function pB(g={}){return g instanceof SB.default?g:new SB.default(g)}var tB={exports:{}};function xw(g){var A=new g,B=A;function Q(){var C=A;return C.next?A=C.next:(A=new g,B=A),C.next=null,C}function I(C){B.next=C,B=C}return{get:Q,release:I}}var dw=xw,Ww=dw;function qI(g,A,B){if(typeof g=="function"&&(B=A,A=g,g=null),B<1)throw new Error("fastqueue concurrency must be greater than 1");var Q=Ww(Zw),I=null,C=null,E=0,D=null,G={push:Y,drain:FA,saturated:FA,pause:N,paused:!1,concurrency:B,running:k,resume:h,idle:M,length:y,getQueue:F,unshift:c,empty:FA,kill:j,killAndDrain:H,error:e};return G;function k(){return E}function N(){G.paused=!0}function y(){for(var q=I,Z=0;q;)q=q.next,Z++;return Z}function F(){for(var q=I,Z=[];q;)Z.push(q.value),q=q.next;return Z}function h(){if(!!G.paused){G.paused=!1;for(var q=0;q<G.concurrency;q++)E++,S()}}function M(){return E===0&&G.length()===0}function Y(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,T.errorHandler=D,E===G.concurrency||G.paused?C?(C.next=T,C=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function c(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,E===G.concurrency||G.paused?I?(T.next=I,I=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function S(q){q&&Q.release(q);var Z=I;Z?G.paused?E--:(C===I&&(C=null),I=Z.next,Z.next=null,A.call(g,Z.value,Z.worked),C===null&&G.empty()):--E===0&&G.drain()}function j(){I=null,C=null,G.drain=FA}function H(){I=null,C=null,G.drain(),G.drain=FA}function e(q){D=q}}function FA(){}function Zw(){this.value=null,this.callback=FA,this.next=null,this.release=FA,this.context=null,this.errorHandler=null;var g=this;this.worked=function(B,Q){var I=g.callback,C=g.errorHandler,E=g.value;g.value=null,g.callback=FA,g.errorHandler&&C(B,E),I.call(g.context,B,Q),g.release(g)}}function fw(g,A,B){typeof g=="function"&&(B=A,A=g,g=null);function Q(N,y){A.call(this,N).then(function(F){y(null,F)},y)}var I=qI(g,Q,B),C=I.push,E=I.unshift;return I.push=D,I.unshift=G,I.drained=k,I;function D(N){var y=new Promise(function(F,h){C(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function G(N){var y=new Promise(function(F,h){E(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function k(){var N=I.drain,y=new Promise(function(F){I.drain=function(){N(),F()}});return y}}tB.exports=qI,tB.exports.promise=fw;var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.joinPathSegments=MA.replacePathSegmentSeparator=MA.isAppliedFilter=MA.isFatalError=void 0;function bw(g,A){return g.errorFilter===null?!0:!g.errorFilter(A)}MA.isFatalError=bw;function nw(g,A){return g===null||g(A)}MA.isAppliedFilter=nw;function ew(g,A){return g.split(/[/\\]/).join(A)}MA.replacePathSegmentSeparator=ew;function mw(g,A,B){return g===""?A:g.endsWith(B)?g+A:g+B+A}MA.joinPathSegments=mw;var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const rw=MA;class jw{constructor(A,B){this._root=A,this._settings=B,this._root=rw.replacePathSegmentSeparator(A,B.pathSegmentSeparator)}}ng.default=jw,Object.defineProperty(Wg,"__esModule",{value:!0});const Pw=uI.default,lw=cA,Vw=tB.exports,eg=MA,zw=ng;class Xw extends zw.default{constructor(A,B){super(A,B),this._settings=B,this._scandir=lw.scandir,this._emitter=new Pw.EventEmitter,this._queue=Vw(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(A){this._emitter.on("entry",A)}onError(A){this._emitter.once("error",A)}onEnd(A){this._emitter.once("end",A)}_pushToQueue(A,B){const Q={directory:A,base:B};this._queue.push(Q,I=>{I!==null&&this._handleError(I)})}_worker(A,B){this._scandir(A.directory,this._settings.fsScandirSettings,(Q,I)=>{if(Q!==null){B(Q,void 0);return}for(const C of I)this._handleEntry(C,A.base);B(null,void 0)})}_handleError(A){this._isDestroyed||!eg.isFatalError(this._settings,A)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A))}_handleEntry(A,B){if(this._isDestroyed||this._isFatalError)return;const Q=A.path;B!==void 0&&(A.path=eg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A)&&this._emitEntry(A),A.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_emitEntry(A){this._emitter.emit("entry",A)}}Wg.default=Xw,Object.defineProperty(qB,"__esModule",{value:!0});const uw=Wg;class vw{constructor(A,B){this._root=A,this._settings=B,this._reader=new uw.default(this._root,this._settings),this._storage=[]}read(A){this._reader.onError(B=>{_w(A,B)}),this._reader.onEntry(B=>{this._storage.push(B)}),this._reader.onEnd(()=>{$w(A,this._storage)}),this._reader.read()}}qB.default=vw;function _w(g,A){g(A)}function $w(g,A){g(null,A)}var OB={};Object.defineProperty(OB,"__esModule",{value:!0});const Ai=ag.default,gi=Wg;class Bi{constructor(A,B){this._root=A,this._settings=B,this._reader=new gi.default(this._root,this._settings),this._stream=new Ai.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(A=>{this._stream.emit("error",A)}),this._reader.onEntry(A=>{this._stream.push(A)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}OB.default=Bi;var TB={},xB={};Object.defineProperty(xB,"__esModule",{value:!0});const Qi=cA,mg=MA,Ii=ng;class Ci extends Ii.default{constructor(){super(...arguments),this._scandir=Qi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A,B){this._queue.add({directory:A,base:B})}_handleQueue(){for(const A of this._queue.values())this._handleDirectory(A.directory,A.base)}_handleDirectory(A,B){try{const Q=this._scandir(A,this._settings.fsScandirSettings);for(const I of Q)this._handleEntry(I,B)}catch(Q){this._handleError(Q)}}_handleError(A){if(!!mg.isFatalError(this._settings,A))throw A}_handleEntry(A,B){const Q=A.path;B!==void 0&&(A.path=mg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),mg.isAppliedFilter(this._settings.entryFilter,A)&&this._pushToStorage(A),A.dirent.isDirectory()&&mg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_pushToStorage(A){this._storage.push(A)}}xB.default=Ci,Object.defineProperty(TB,"__esModule",{value:!0});const Ei=xB;class Di{constructor(A,B){this._root=A,this._settings=B,this._reader=new Ei.default(this._root,this._settings)}read(){return this._reader.read()}}TB.default=Di;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const wi=kA.default,ii=cA;class oi{constructor(A={}){this._options=A,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,wi.sep),this.fsScandirSettings=new ii.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}dB.default=oi,Object.defineProperty(yA,"__esModule",{value:!0}),yA.Settings=yA.walkStream=yA.walkSync=yA.walk=void 0;const HI=qB,Gi=OB,ki=TB,WB=dB;yA.Settings=WB.default;function Ni(g,A,B){if(typeof A=="function"){new HI.default(g,rg()).read(A);return}new HI.default(g,rg(A)).read(B)}yA.walk=Ni;function Fi(g,A){const B=rg(A);return new ki.default(g,B).read()}yA.walkSync=Fi;function Mi(g,A){const B=rg(A);return new Gi.default(g,B).read()}yA.walkStream=Mi;function rg(g={}){return g instanceof WB.default?g:new WB.default(g)}var jg={};Object.defineProperty(jg,"__esModule",{value:!0});const ai=kA.default,Ji=wA,cI=v;class Ri{constructor(A){this._settings=A,this._fsStatSettings=new Ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(A){return ai.resolve(this._settings.cwd,A)}_makeEntry(A,B){const Q={name:B,path:B,dirent:cI.fs.createDirentFromStats(B,A)};return this._settings.stats&&(Q.stats=A),Q}_isFatalError(A){return!cI.errno.isEnoentCodeError(A)&&!this._settings.suppressErrors}}jg.default=Ri,Object.defineProperty(Tg,"__esModule",{value:!0});const Ki=ag.default,yi=wA,Yi=yA,si=jg;class Ui extends si.default{constructor(){super(...arguments),this._walkStream=Yi.walkStream,this._stat=yi.stat}dynamic(A,B){return this._walkStream(A,B)}static(A,B){const Q=A.map(this._getFullEntryPath,this),I=new Ki.PassThrough({objectMode:!0});I._write=(C,E,D)=>this._getEntry(Q[C],A[C],B).then(G=>{G!==null&&B.entryFilter(G)&&I.push(G),C===Q.length-1&&I.end(),D()}).catch(D);for(let C=0;C<Q.length;C++)I.write(C);return I}_getEntry(A,B,Q){return this._getStat(A).then(I=>this._makeEntry(I,B)).catch(I=>{if(Q.errorFilter(I))return null;throw I})}_getStat(A){return new Promise((B,Q)=>{this._stat(A,this._fsStatSettings,(I,C)=>I===null?B(C):Q(I))})}}Tg.default=Ui;var kg={},ZB={},fB={},bB={};Object.defineProperty(bB,"__esModule",{value:!0});const vA=v;class Li{constructor(A,B,Q){this._patterns=A,this._settings=B,this._micromatchOptions=Q,this._storage=[],this._fillStorage()}_fillStorage(){const A=vA.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const B of A){const Q=this._getPatternSegments(B),I=this._splitSegmentsIntoSections(Q);this._storage.push({complete:I.length<=1,pattern:B,segments:Q,sections:I})}}_getPatternSegments(A){return vA.pattern.getPatternParts(A,this._micromatchOptions).map(Q=>vA.pattern.isDynamicPattern(Q,this._settings)?{dynamic:!0,pattern:Q,patternRe:vA.pattern.makeRe(Q,this._micromatchOptions)}:{dynamic:!1,pattern:Q})}_splitSegmentsIntoSections(A){return vA.array.splitWhen(A,B=>B.dynamic&&vA.pattern.hasGlobStar(B.pattern))}}bB.default=Li,Object.defineProperty(fB,"__esModule",{value:!0});const hi=bB;class qi extends hi.default{match(A){const B=A.split("/"),Q=B.length,I=this._storage.filter(C=>!C.complete||C.segments.length>Q);for(const C of I){const E=C.sections[0];if(!C.complete&&Q>E.length||B.every((G,k)=>{const N=C.segments[k];return!!(N.dynamic&&N.patternRe.test(G)||!N.dynamic&&N.pattern===G)}))return!0}return!1}}fB.default=qi,Object.defineProperty(ZB,"__esModule",{value:!0});const Pg=v,Hi=fB;class ci{constructor(A,B){this._settings=A,this._micromatchOptions=B}getFilter(A,B,Q){const I=this._getMatcher(B),C=this._getNegativePatternsRe(Q);return E=>this._filter(A,E,I,C)}_getMatcher(A){return new Hi.default(A,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A){const B=A.filter(Pg.pattern.isAffectDepthOfReadingPattern);return Pg.pattern.convertPatternsToRe(B,this._micromatchOptions)}_filter(A,B,Q,I){if(this._isSkippedByDeep(A,B.path)||this._isSkippedSymbolicLink(B))return!1;const C=Pg.path.removeLeadingDotSegment(B.path);return this._isSkippedByPositivePatterns(C,Q)?!1:this._isSkippedByNegativePatterns(C,I)}_isSkippedByDeep(A,B){return this._settings.deep===1/0?!1:this._getEntryLevel(A,B)>=this._settings.deep}_getEntryLevel(A,B){const Q=B.split("/").length;if(A==="")return Q;const I=A.split("/").length;return Q-I}_isSkippedSymbolicLink(A){return!this._settings.followSymbolicLinks&&A.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A,B){return!this._settings.baseNameMatch&&!B.match(A)}_isSkippedByNegativePatterns(A,B){return!Pg.pattern.matchAny(A,B)}}ZB.default=ci;var nB={};Object.defineProperty(nB,"__esModule",{value:!0});const bA=v;class Si{constructor(A,B){this._settings=A,this._micromatchOptions=B,this.index=new Map}getFilter(A,B){const Q=bA.pattern.convertPatternsToRe(A,this._micromatchOptions),I=bA.pattern.convertPatternsToRe(B,this._micromatchOptions);return C=>this._filter(C,Q,I)}_filter(A,B,Q){if(this._settings.unique&&this._isDuplicateEntry(A)||this._onlyFileFilter(A)||this._onlyDirectoryFilter(A)||this._isSkippedByAbsoluteNegativePatterns(A.path,Q))return!1;const I=this._settings.baseNameMatch?A.name:A.path,C=this._isMatchToPatterns(I,B)&&!this._isMatchToPatterns(A.path,Q);return this._settings.unique&&C&&this._createIndexRecord(A),C}_isDuplicateEntry(A){return this.index.has(A.path)}_createIndexRecord(A){this.index.set(A.path,void 0)}_onlyFileFilter(A){return this._settings.onlyFiles&&!A.dirent.isFile()}_onlyDirectoryFilter(A){return this._settings.onlyDirectories&&!A.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(A,B){if(!this._settings.absolute)return!1;const Q=bA.path.makeAbsolute(this._settings.cwd,A);return bA.pattern.matchAny(Q,B)}_isMatchToPatterns(A,B){const Q=bA.path.removeLeadingDotSegment(A);return bA.pattern.matchAny(Q,B)||bA.pattern.matchAny(Q+"/",B)}}nB.default=Si;var eB={};Object.defineProperty(eB,"__esModule",{value:!0});const pi=v;class ti{constructor(A){this._settings=A}getFilter(){return A=>this._isNonFatalError(A)}_isNonFatalError(A){return pi.errno.isEnoentCodeError(A)||this._settings.suppressErrors}}eB.default=ti;var mB={};Object.defineProperty(mB,"__esModule",{value:!0});const SI=v;class Oi{constructor(A){this._settings=A}getTransformer(){return A=>this._transform(A)}_transform(A){let B=A.path;return this._settings.absolute&&(B=SI.path.makeAbsolute(this._settings.cwd,B),B=SI.path.unixify(B)),this._settings.markDirectories&&A.dirent.isDirectory()&&(B+="/"),this._settings.objectMode?Object.assign(Object.assign({},A),{path:B}):B}}mB.default=Oi,Object.defineProperty(kg,"__esModule",{value:!0});const Ti=kA.default,xi=ZB,di=nB,Wi=eB,Zi=mB;class fi{constructor(A){this._settings=A,this.errorFilter=new Wi.default(this._settings),this.entryFilter=new di.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xi.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Zi.default(this._settings)}_getRootDirectory(A){return Ti.resolve(this._settings.cwd,A.base)}_getReaderOptions(A){const B=A.base==="."?"":A.base;return{basePath:B,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(B,A.positive,A.negative),entryFilter:this.entryFilter.getFilter(A.positive,A.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}}}kg.default=fi,Object.defineProperty(YB,"__esModule",{value:!0});const bi=Tg,ni=kg;class ei extends ni.default{constructor(){super(...arguments),this._reader=new bi.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=[];return new Promise((C,E)=>{const D=this.api(B,A,Q);D.once("error",E),D.on("data",G=>I.push(Q.transform(G))),D.once("end",()=>C(I))})}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}YB.default=ei;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const mi=ag.default,ri=Tg,ji=kg;class Pi extends ji.default{constructor(){super(...arguments),this._reader=new ri.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=this.api(B,A,Q),C=new mi.Readable({objectMode:!0,read:()=>{}});return I.once("error",E=>C.emit("error",E)).on("data",E=>C.emit("data",Q.transform(E))).once("end",()=>C.emit("end")),C.once("close",()=>I.destroy()),C}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}rB.default=Pi;var jB={},PB={};Object.defineProperty(PB,"__esModule",{value:!0});const li=wA,Vi=yA,zi=jg;class Xi extends zi.default{constructor(){super(...arguments),this._walkSync=Vi.walkSync,this._statSync=li.statSync}dynamic(A,B){return this._walkSync(A,B)}static(A,B){const Q=[];for(const I of A){const C=this._getFullEntryPath(I),E=this._getEntry(C,I,B);E===null||!B.entryFilter(E)||Q.push(E)}return Q}_getEntry(A,B,Q){try{const I=this._getStat(A);return this._makeEntry(I,B)}catch(I){if(Q.errorFilter(I))return null;throw I}}_getStat(A){return this._statSync(A,this._fsStatSettings)}}PB.default=Xi,Object.defineProperty(jB,"__esModule",{value:!0});const ui=PB,vi=kg;class _i extends vi.default{constructor(){super(...arguments),this._reader=new ui.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A);return this.api(B,A,Q).map(Q.transform)}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}jB.default=_i;var pI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default,B=$B.default,Q=Math.max(B.cpus().length,1);g.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:A.lstat,lstatSync:A.lstatSync,stat:A.stat,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};class I{constructor(E={}){this._options=E,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,Q),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)}_getValue(E,D){return E===void 0?D:E}_getFileSystemMethods(E={}){return Object.assign(Object.assign({},g.DEFAULT_FILE_SYSTEM_ADAPTER),E)}}g.default=I})(pI);const tI=BA,OI=uA,$i=YB,Ao=rB,go=jB,lB=pI,nA=v;async function VB(g,A){_A(g);const B=zB(g,$i.default,A),Q=await Promise.all(B);return nA.array.flatten(Q)}(function(g){function A(E,D){_A(E);const G=zB(E,go.default,D);return nA.array.flatten(G)}g.sync=A;function B(E,D){_A(E);const G=zB(E,Ao.default,D);return nA.stream.merge(G)}g.stream=B;function Q(E,D){_A(E);const G=OI.transform([].concat(E)),k=new lB.default(D);return tI.generate(G,k)}g.generateTasks=Q;function I(E,D){_A(E);const G=new lB.default(D);return nA.pattern.isDynamicPattern(E,G)}g.isDynamicPattern=I;function C(E){return _A(E),nA.path.escape(E)}g.escapePath=C})(VB||(VB={}));function zB(g,A,B){const Q=OI.transform([].concat(g)),I=new lB.default(B),C=tI.generate(Q,I),E=new A(I);return C.map(E.read,E)}function _A(g){if(![].concat(g).every(Q=>nA.string.isString(Q)&&!nA.string.isEmpty(Q)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}var Bo=VB,Qo=Bo;let XB;process.on("message",async g=>{g.method==="exit"&&ZI.exit(0),typeof XB>"u"&&(XB=await lg.exports.TaploLsp.initialize({cwd:()=>process.cwd(),envVar:A=>process.env[A],findConfigFile:A=>{const B=[".taplo.toml","taplo.toml"];for(const Q of B)try{const I=kA.default.join(A,Q);return Mg.default.accessSync(I),I}catch{}},glob:A=>Qo.sync(A),isAbsolute:A=>kA.default.isAbsolute(A),now:()=>new Date,readFile:A=>_B.default.readFile(A),writeFile:(A,B)=>_B.default.writeFile(A,B),stderr:process.stderr,stdErrAtty:()=>process.stderr.isTTY,stdin:process.stdin,stdout:process.stdout,urlToFilePath:A=>{const B=decodeURIComponent(A).slice(7);return process.platform==="win32"&&B.startsWith("/")?B.slice(1):B},fetch:{fetch:GQ,Headers:OA,Request:$A,Response:iA}},{onMessage(A){process.send(A)}})),XB.send(g)}),process.on("unhandledRejection",g=>{throw g}),exports.File=QQ,exports.FormData=Rg;
RuntimeError: unreachable
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd44b
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
[Info - 02:38:50] Connection to server got closed. Server will restart.
[Error - 02:38:50] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Even Better TOML LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
INFO registered request handler method="initialize"
INFO registered request handler method="textDocument/foldingRange"
INFO registered request handler method="textDocument/documentSymbol"
INFO registered request handler method="textDocument/formatting"
INFO registered request handler method="textDocument/completion"
INFO registered request handler method="textDocument/hover"
INFO registered request handler method="textDocument/documentLink"
INFO registered request handler method="textDocument/semanticTokens/full"
INFO registered request handler method="textDocument/prepareRename"
INFO registered request handler method="textDocument/rename"
INFO registered notification handler method="initialized"
INFO registered notification handler method="textDocument/didOpen"
INFO registered notification handler method="textDocument/didChange"
INFO registered notification handler method="textDocument/didSave"
INFO registered notification handler method="textDocument/didClose"
INFO registered notification handler method="workspace/didChangeConfiguration"
INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
INFO registered request handler method="taplo/convertToJson"
INFO registered request handler method="taplo/convertToToml"
INFO registered request handler method="taplo/listSchemas"
INFO registered request handler method="taplo/associatedSchema"
INFO registered notification handler method="taplo/associateSchema"
panicked at 'getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto module is unavailable" }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.8.0/src/random_state.rs:77:51
Stack:
Error
at i.wbg.__wbg_new_693216e109162396 (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5841)
at wasm://wasm/00f6ca2e:wasm-function[5308]:0x321a3d
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd428
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40
`,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"};const yE=$g,{MAX_LENGTH:tQ,CHAR_BACKSLASH:QB,CHAR_BACKTICK:YE,CHAR_COMMA:sE,CHAR_DOT:UE,CHAR_LEFT_PARENTHESES:LE,CHAR_RIGHT_PARENTHESES:hE,CHAR_LEFT_CURLY_BRACE:qE,CHAR_RIGHT_CURLY_BRACE:HE,CHAR_LEFT_SQUARE_BRACKET:OQ,CHAR_RIGHT_SQUARE_BRACKET:TQ,CHAR_DOUBLE_QUOTE:cE,CHAR_SINGLE_QUOTE:SE,CHAR_NO_BREAK_SPACE:pE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tE}=KE,OE=(g,A={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let B=A||{},Q=typeof B.maxLength=="number"?Math.min(tQ,B.maxLength):tQ;if(g.length>Q)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${Q})`);let I={type:"root",input:g,nodes:[]},C=[I],E=I,D=I,G=0,k=g.length,N=0,y=0,F;const h=()=>g[N++],M=Y=>{if(Y.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&Y.type==="text"){D.value+=Y.value;return}return E.nodes.push(Y),Y.parent=E,Y.prev=D,D=Y,Y};for(M({type:"bos"});N<k;)if(E=C[C.length-1],F=h(),!(F===tE||F===pE)){if(F===QB){M({type:"text",value:(A.keepEscaping?F:"")+h()});continue}if(F===TQ){M({type:"text",value:"\\"+F});continue}if(F===OQ){G++;let Y;for(;N<k&&(Y=h());){if(F+=Y,Y===OQ){G++;continue}if(Y===QB){F+=h();continue}if(Y===TQ&&(G--,G===0))break}M({type:"text",value:F});continue}if(F===LE){E=M({type:"paren",nodes:[]}),C.push(E),M({type:"text",value:F});continue}if(F===hE){if(E.type!=="paren"){M({type:"text",value:F});continue}E=C.pop(),M({type:"text",value:F}),E=C[C.length-1];continue}if(F===cE||F===SE||F===YE){let Y=F,c;for(A.keepQuotes!==!0&&(F="");N<k&&(c=h());){if(c===QB){F+=c+h();continue}if(c===Y){A.keepQuotes===!0&&(F+=c);break}F+=c}M({type:"text",value:F});continue}if(F===qE){y++;let Y=D.value&&D.value.slice(-1)==="$"||E.dollar===!0;E=M({type:"brace",open:!0,close:!1,dollar:Y,depth:y,commas:0,ranges:0,nodes:[]}),C.push(E),M({type:"open",value:F});continue}if(F===HE){if(E.type!=="brace"){M({type:"text",value:F});continue}let Y="close";E=C.pop(),E.close=!0,M({type:Y,value:F}),y--,E=C[C.length-1];continue}if(F===sE&&y>0){if(E.ranges>0){E.ranges=0;let Y=E.nodes.shift();E.nodes=[Y,{type:"text",value:yE(E)}]}M({type:"comma",value:F}),E.commas++;continue}if(F===UE&&y>0&&E.commas===0){let Y=E.nodes;if(y===0||Y.length===0){M({type:"text",value:F});continue}if(D.type==="dot"){if(E.range=[],D.value+=F,D.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,D.type="text";continue}E.ranges++,E.args=[];continue}if(D.type==="range"){Y.pop();let c=Y[Y.length-1];c.value+=D.value+F,D=c,E.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(E=C.pop(),E.type!=="root"){E.nodes.forEach(S=>{S.nodes||(S.type==="open"&&(S.isOpen=!0),S.type==="close"&&(S.isClose=!0),S.nodes||(S.type="text"),S.invalid=!0)});let Y=C[C.length-1],c=Y.nodes.indexOf(E);Y.nodes.splice(c,1,...E.nodes)}while(C.length>0);return M({type:"eos"}),I};var TE=OE;const xQ=$g,xE=ME,dE=RE,WE=TE,DA=(g,A={})=>{let B=[];if(Array.isArray(g))for(let Q of g){let I=DA.create(Q,A);Array.isArray(I)?B.push(...I):B.push(I)}else B=[].concat(DA.create(g,A));return A&&A.expand===!0&&A.nodupes===!0&&(B=[...new Set(B)]),B};DA.parse=(g,A={})=>WE(g,A),DA.stringify=(g,A={})=>xQ(typeof g=="string"?DA.parse(g,A):g,A),DA.compile=(g,A={})=>(typeof g=="string"&&(g=DA.parse(g,A)),xE(g,A)),DA.expand=(g,A={})=>{typeof g=="string"&&(g=DA.parse(g,A));let B=dE(g,A);return A.noempty===!0&&(B=B.filter(Boolean)),A.nodupes===!0&&(B=[...new Set(B)]),B},DA.create=(g,A={})=>g===""||g.length<3?[g]:A.expand!==!0?DA.compile(g,A):DA.expand(g,A);var ZE=DA,dQ={exports:{}},Dg={};const fE=kA.default,qA="\\\\/",WQ=`[^${qA}]`,pA="\\.",bE="\\+",nE="\\?",Hg="\\/",eE="(?=.)",ZQ="[^/]",IB=`(?:${Hg}|$)`,fQ=`(?:^|${Hg})`,CB=`${pA}{1,2}${IB}`,mE=`(?!${pA})`,rE=`(?!${fQ}${CB})`,jE=`(?!${pA}{0,1}${IB})`,PE=`(?!${CB})`,lE=`[^.${Hg}]`,VE=`${ZQ}*?`,bQ={DOT_LITERAL:pA,PLUS_LITERAL:bE,QMARK_LITERAL:nE,SLASH_LITERAL:Hg,ONE_CHAR:eE,QMARK:ZQ,END_ANCHOR:IB,DOTS_SLASH:CB,NO_DOT:mE,NO_DOTS:rE,NO_DOT_SLASH:jE,NO_DOTS_SLASH:PE,QMARK_NO_DOT:lE,STAR:VE,START_ANCHOR:fQ},zE={...bQ,SLASH_LITERAL:`[${qA}]`,QMARK:WQ,STAR:`${WQ}*?`,DOTS_SLASH:`${pA}{1,2}(?:[${qA}]|$)`,NO_DOT:`(?!${pA})`,NO_DOTS:`(?!(?:^|[${qA}])${pA}{1,2}(?:[${qA}]|$))`,NO_DOT_SLASH:`(?!${pA}{0,1}(?:[${qA}]|$))`,NO_DOTS_SLASH:`(?!${pA}{1,2}(?:[${qA}]|$))`,QMARK_NO_DOT:`[^.${qA}]`,START_ANCHOR:`(?:^|[${qA}])`,END_ANCHOR:`(?:[${qA}]|$)`},XE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var cg={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fE.sep,extglobChars(g){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${g.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(g){return g===!0?zE:bQ}};(function(g){const A=kA.default,B=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:I,REGEX_SPECIAL_CHARS:C,REGEX_SPECIAL_CHARS_GLOBAL:E}=cg;g.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),g.hasRegexChars=D=>C.test(D),g.isRegexChar=D=>D.length===1&&g.hasRegexChars(D),g.escapeRegex=D=>D.replace(E,"\\$1"),g.toPosixSlashes=D=>D.replace(Q,"/"),g.removeBackslashes=D=>D.replace(I,G=>G==="\\"?"":G),g.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},g.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:B===!0||A.sep==="\\",g.escapeLast=(D,G,k)=>{const N=D.lastIndexOf(G,k);return N===-1?D:D[N-1]==="\\"?g.escapeLast(D,G,N-1):`${D.slice(0,N)}\\${D.slice(N)}`},g.removePrefix=(D,G={})=>{let k=D;return k.startsWith("./")&&(k=k.slice(2),G.prefix="./"),k},g.wrapOutput=(D,G={},k={})=>{const N=k.contains?"":"^",y=k.contains?"":"$";let F=`${N}(?:${D})${y}`;return G.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(Dg);const nQ=Dg,{CHAR_ASTERISK:EB,CHAR_AT:uE,CHAR_BACKWARD_SLASH:wg,CHAR_COMMA:vE,CHAR_DOT:DB,CHAR_EXCLAMATION_MARK:wB,CHAR_FORWARD_SLASH:eQ,CHAR_LEFT_CURLY_BRACE:iB,CHAR_LEFT_PARENTHESES:oB,CHAR_LEFT_SQUARE_BRACKET:_E,CHAR_PLUS:$E,CHAR_QUESTION_MARK:mQ,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:rQ,CHAR_RIGHT_SQUARE_BRACKET:gD}=cg,jQ=g=>g===eQ||g===wg,PQ=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},BD=(g,A)=>{const B=A||{},Q=g.length-1,I=B.parts===!0||B.scanToEnd===!0,C=[],E=[],D=[];let G=g,k=-1,N=0,y=0,F=!1,h=!1,M=!1,Y=!1,c=!1,S=!1,j=!1,H=!1,e=!1,q=!1,Z=0,T,p,m={value:"",depth:0,isGlob:!1};const b=()=>k>=Q,R=()=>G.charCodeAt(k+1),X=()=>(T=p,G.charCodeAt(++k));for(;k<Q;){p=X();let AA;if(p===wg){j=m.backslashes=!0,p=X(),p===iB&&(S=!0);continue}if(S===!0||p===iB){for(Z++;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,X();continue}if(p===iB){Z++;continue}if(S!==!0&&p===DB&&(p=X())===DB){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(S!==!0&&p===vE){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===AD&&(Z--,Z===0)){S=!1,F=m.isBrace=!0,q=!0;break}}if(I===!0)continue;break}if(p===eQ){if(C.push(k),E.push(m),m={value:"",depth:0,isGlob:!1},q===!0)continue;if(T===DB&&k===N+1){N+=2;continue}y=k+1;continue}if(B.noext!==!0&&(p===$E||p===uE||p===EB||p===mQ||p===wB)===!0&&R()===oB){if(M=m.isGlob=!0,Y=m.isExtglob=!0,q=!0,p===wB&&k===N&&(e=!0),I===!0){for(;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,p=X();continue}if(p===rQ){M=m.isGlob=!0,q=!0;break}}continue}break}if(p===EB){if(T===EB&&(c=m.isGlobstar=!0),M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===mQ){if(M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===_E){for(;b()!==!0&&(AA=X());){if(AA===wg){j=m.backslashes=!0,X();continue}if(AA===gD){h=m.isBracket=!0,M=m.isGlob=!0,q=!0;break}}if(I===!0)continue;break}if(B.nonegate!==!0&&p===wB&&k===N){H=m.negated=!0,N++;continue}if(B.noparen!==!0&&p===oB){if(M=m.isGlob=!0,I===!0){for(;b()!==!0&&(p=X());){if(p===oB){j=m.backslashes=!0,p=X();continue}if(p===rQ){q=!0;break}}continue}break}if(M===!0){if(q=!0,I===!0)continue;break}}B.noext===!0&&(Y=!1,M=!1);let l=G,YA="",a="";N>0&&(YA=G.slice(0,N),G=G.slice(N),y-=N),l&&M===!0&&y>0?(l=G.slice(0,y),a=G.slice(y)):M===!0?(l="",a=G):l=G,l&&l!==""&&l!=="/"&&l!==G&&jQ(l.charCodeAt(l.length-1))&&(l=l.slice(0,-1)),B.unescape===!0&&(a&&(a=nQ.removeBackslashes(a)),l&&j===!0&&(l=nQ.removeBackslashes(l)));const J={prefix:YA,input:g,start:N,base:l,glob:a,isBrace:F,isBracket:h,isGlob:M,isExtglob:Y,isGlobstar:c,negated:H,negatedExtglob:e};if(B.tokens===!0&&(J.maxDepth=0,jQ(p)||E.push(m),J.tokens=E),B.parts===!0||B.tokens===!0){let AA;for(let n=0;n<C.length;n++){const oA=AA?AA+1:N,QA=C[n],IA=g.slice(oA,QA);B.tokens&&(n===0&&N!==0?(E[n].isPrefix=!0,E[n].value=YA):E[n].value=IA,PQ(E[n]),J.maxDepth+=E[n].depth),(n!==0||IA!=="")&&D.push(IA),AA=QA}if(AA&&AA+1<g.length){const n=g.slice(AA+1);D.push(n),B.tokens&&(E[E.length-1].value=n,PQ(E[E.length-1]),J.maxDepth+=E[E.length-1].depth)}J.slashes=C,J.parts=D}return J};var QD=BD;const Sg=cg,NA=Dg,{MAX_LENGTH:pg,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:ED,REPLACEMENTS:lQ}=Sg,DD=(g,A)=>typeof A.expandRange=="function"?A.expandRange(...g,A):(g.sort(),`[${g.join("-")}]`),zA=(g,A)=>`Missing ${g}: "${A}" - use "\\\\${A}" to match literal characters`,GB=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=lQ[g]||g;const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg;let I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);const C={type:"bos",value:"",output:B.prepend||""},E=[C],D=B.capture?"":"?:",G=NA.isWindows(A),k=Sg.globChars(G),N=Sg.extglobChars(k),{DOT_LITERAL:y,PLUS_LITERAL:F,SLASH_LITERAL:h,ONE_CHAR:M,DOTS_SLASH:Y,NO_DOT:c,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:H,QMARK_NO_DOT:e,STAR:q,START_ANCHOR:Z}=k,T=L=>`(${D}(?:(?!${Z}${L.dot?Y:y}).)*?)`,p=B.dot?"":c,m=B.dot?H:e;let b=B.bash===!0?T(B):q;B.capture&&(b=`(${b})`),typeof B.noext=="boolean"&&(B.noextglob=B.noext);const R={input:g,index:-1,start:0,dot:B.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};g=NA.removePrefix(g,R),I=g.length;const X=[],l=[],YA=[];let a=C,J;const AA=()=>R.index===I-1,n=R.peek=(L=1)=>g[R.index+L],oA=R.advance=()=>g[++R.index]||"",QA=()=>g.slice(R.index+1),IA=(L="",V=0)=>{R.consumed+=L,R.index+=V},dA=L=>{R.output+=L.output!=null?L.output:L.value,IA(L.value)},Ng=()=>{let L=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)oA(),R.start++,L++;return L%2===0?!1:(R.negated=!0,R.start++,!0)},eA=L=>{R[L]++,YA.push(L)},aA=L=>{R[L]--,YA.pop()},f=L=>{if(a.type==="globstar"){const V=R.braces>0&&(L.type==="comma"||L.type==="brace"),s=L.extglob===!0||X.length&&(L.type==="pipe"||L.type==="paren");L.type!=="slash"&&L.type!=="paren"&&!V&&!s&&(R.output=R.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=b,R.output+=a.output)}if(X.length&&L.type!=="paren"&&(X[X.length-1].inner+=L.value),(L.value||L.output)&&dA(L),a&&a.type==="text"&&L.type==="text"){a.value+=L.value,a.output=(a.output||"")+L.value;return}L.prev=a,E.push(L),a=L},mA=(L,V)=>{const s={...N[V],conditions:1,inner:""};s.prev=a,s.parens=R.parens,s.output=R.output;const x=(B.capture?"(":"")+s.open;eA("parens"),f({type:L,value:V,output:R.output?"":M}),f({type:"paren",extglob:!0,value:oA(),output:x}),X.push(s)},rA=L=>{let V=L.close+(B.capture?")":""),s;if(L.type==="negate"){let x=b;if(L.inner&&L.inner.length>1&&L.inner.includes("/")&&(x=T(B)),(x!==b||AA()||/^\)+$/.test(QA()))&&(V=L.close=`)$))${x}`),L.inner.includes("*")&&(s=QA())&&/^\.[^\\/.]+$/.test(s)){const P=GB(s,{...A,fastpaths:!1}).output;V=L.close=`)${P})${x})`}L.prev.type==="bos"&&(R.negatedExtglob=!0)}f({type:"paren",extglob:!0,value:J,output:V}),aA("parens")};if(B.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let L=!1,V=g.replace(ED,(s,x,P,z,i,w)=>z==="\\"?(L=!0,s):z==="?"?x?x+z+(i?H.repeat(i.length):""):w===0?m+(i?H.repeat(i.length):""):H.repeat(P.length):z==="."?y.repeat(P.length):z==="*"?x?x+z+(i?b:""):b:x?s:`\\${s}`);return L===!0&&(B.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,s=>s.length%2===0?"\\\\":s?"\\":"")),V===g&&B.contains===!0?(R.output=g,R):(R.output=NA.wrapOutput(V,R,A),R)}for(;!AA();){if(J=oA(),J==="\0")continue;if(J==="\\"){const s=n();if(s==="/"&&B.bash!==!0||s==="."||s===";")continue;if(!s){J+="\\",f({type:"text",value:J});continue}const x=/^\\+/.exec(QA());let P=0;if(x&&x[0].length>2&&(P=x[0].length,R.index+=P,P%2!==0&&(J+="\\")),B.unescape===!0?J=oA():J+=oA(),R.brackets===0){f({type:"text",value:J});continue}}if(R.brackets>0&&(J!=="]"||a.value==="["||a.value==="[^")){if(B.posix!==!1&&J===":"){const s=a.value.slice(1);if(s.includes("[")&&(a.posix=!0,s.includes(":"))){const x=a.value.lastIndexOf("["),P=a.value.slice(0,x),z=a.value.slice(x+2),i=ID[z];if(i){a.value=P+i,R.backtrack=!0,oA(),!C.output&&E.indexOf(a)===1&&(C.output=M);continue}}}(J==="["&&n()!==":"||J==="-"&&n()==="]")&&(J=`\\${J}`),J==="]"&&(a.value==="["||a.value==="[^")&&(J=`\\${J}`),B.posix===!0&&J==="!"&&a.value==="["&&(J="^"),a.value+=J,dA({value:J});continue}if(R.quotes===1&&J!=='"'){J=NA.escapeRegex(J),a.value+=J,dA({value:J});continue}if(J==='"'){R.quotes=R.quotes===1?0:1,B.keepQuotes===!0&&f({type:"text",value:J});continue}if(J==="("){eA("parens"),f({type:"paren",value:J});continue}if(J===")"){if(R.parens===0&&B.strictBrackets===!0)throw new SyntaxError(zA("opening","("));const s=X[X.length-1];if(s&&R.parens===s.parens+1){rA(X.pop());continue}f({type:"paren",value:J,output:R.parens?")":"\\)"}),aA("parens");continue}if(J==="["){if(B.nobracket===!0||!QA().includes("]")){if(B.nobracket!==!0&&B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));J=`\\${J}`}else eA("brackets");f({type:"bracket",value:J});continue}if(J==="]"){if(B.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){f({type:"text",value:J,output:`\\${J}`});continue}if(R.brackets===0){if(B.strictBrackets===!0)throw new SyntaxError(zA("opening","["));f({type:"text",value:J,output:`\\${J}`});continue}aA("brackets");const s=a.value.slice(1);if(a.posix!==!0&&s[0]==="^"&&!s.includes("/")&&(J=`/${J}`),a.value+=J,dA({value:J}),B.literalBrackets===!1||NA.hasRegexChars(s))continue;const x=NA.escapeRegex(a.value);if(R.output=R.output.slice(0,-a.value.length),B.literalBrackets===!0){R.output+=x,a.value=x;continue}a.value=`(${D}${x}|${a.value})`,R.output+=a.value;continue}if(J==="{"&&B.nobrace!==!0){eA("braces");const s={type:"brace",value:J,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};l.push(s),f(s);continue}if(J==="}"){const s=l[l.length-1];if(B.nobrace===!0||!s){f({type:"text",value:J,output:J});continue}let x=")";if(s.dots===!0){const P=E.slice(),z=[];for(let i=P.length-1;i>=0&&(E.pop(),P[i].type!=="brace");i--)P[i].type!=="dots"&&z.unshift(P[i].value);x=DD(z,B),R.backtrack=!0}if(s.comma!==!0&&s.dots!==!0){const P=R.output.slice(0,s.outputIndex),z=R.tokens.slice(s.tokensIndex);s.value=s.output="\\{",J=x="\\}",R.output=P;for(const i of z)R.output+=i.output||i.value}f({type:"brace",value:J,output:x}),aA("braces"),l.pop();continue}if(J==="|"){X.length>0&&X[X.length-1].conditions++,f({type:"text",value:J});continue}if(J===","){let s=J;const x=l[l.length-1];x&&YA[YA.length-1]==="braces"&&(x.comma=!0,s="|"),f({type:"comma",value:J,output:s});continue}if(J==="/"){if(a.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",E.pop(),a=C;continue}f({type:"slash",value:J,output:h});continue}if(J==="."){if(R.braces>0&&a.type==="dot"){a.value==="."&&(a.output=y);const s=l[l.length-1];a.type="dots",a.output+=J,a.value+=J,s.dots=!0;continue}if(R.braces+R.parens===0&&a.type!=="bos"&&a.type!=="slash"){f({type:"text",value:J,output:y});continue}f({type:"dot",value:J,output:y});continue}if(J==="?"){if(!(a&&a.value==="(")&&B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("qmark",J);continue}if(a&&a.type==="paren"){const x=n();let P=J;if(x==="<"&&!NA.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(QA()))&&(P=`\\${J}`),f({type:"text",value:J,output:P});continue}if(B.dot!==!0&&(a.type==="slash"||a.type==="bos")){f({type:"qmark",value:J,output:e});continue}f({type:"qmark",value:J,output:H});continue}if(J==="!"){if(B.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){mA("negate",J);continue}if(B.nonegate!==!0&&R.index===0){Ng();continue}}if(J==="+"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("plus",J);continue}if(a&&a.value==="("||B.regex===!1){f({type:"plus",value:J,output:F});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||R.parens>0){f({type:"plus",value:J});continue}f({type:"plus",value:F});continue}if(J==="@"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){f({type:"at",extglob:!0,value:J,output:""});continue}f({type:"text",value:J});continue}if(J!=="*"){(J==="$"||J==="^")&&(J=`\\${J}`);const s=CD.exec(QA());s&&(J+=s[0],R.index+=s[0].length),f({type:"text",value:J});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=J,a.output=b,R.backtrack=!0,R.globstar=!0,IA(J);continue}let L=QA();if(B.noextglob!==!0&&/^\([^?]/.test(L)){mA("star",J);continue}if(a.type==="star"){if(B.noglobstar===!0){IA(J);continue}const s=a.prev,x=s.prev,P=s.type==="slash"||s.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(B.bash===!0&&(!P||L[0]&&L[0]!=="/")){f({type:"star",value:J,output:""});continue}const i=R.braces>0&&(s.type==="comma"||s.type==="brace"),w=X.length&&(s.type==="pipe"||s.type==="paren");if(!P&&s.type!=="paren"&&!i&&!w){f({type:"star",value:J,output:""});continue}for(;L.slice(0,3)==="/**";){const o=g[R.index+4];if(o&&o!=="/")break;L=L.slice(3),IA("/**",3)}if(s.type==="bos"&&AA()){a.type="globstar",a.value+=J,a.output=T(B),R.output=a.output,R.globstar=!0,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!z&&AA()){R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=T(B)+(B.strictSlashes?")":"|$)"),a.value+=J,R.globstar=!0,R.output+=s.output+a.output,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&L[0]==="/"){const o=L[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=`${T(B)}${h}|${h}${o})`,a.value+=J,R.output+=s.output+a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&L[0]==="/"){a.type="globstar",a.value+=J,a.output=`(?:^|${h}|${T(B)}${h})`,R.output=a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-a.output.length),a.type="globstar",a.output=T(B),a.value+=J,R.output+=a.output,R.globstar=!0,IA(J);continue}const V={type:"star",value:J,output:b};if(B.bash===!0){V.output=".*?",(a.type==="bos"||a.type==="slash")&&(V.output=p+V.output),f(V);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&B.regex===!0){V.output=J,f(V);continue}(R.index===R.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(R.output+=S,a.output+=S):B.dot===!0?(R.output+=j,a.output+=j):(R.output+=p,a.output+=p),n()!=="*"&&(R.output+=M,a.output+=M)),f(V)}for(;R.brackets>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));R.output=NA.escapeLast(R.output,"["),aA("brackets")}for(;R.parens>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing",")"));R.output=NA.escapeLast(R.output,"("),aA("parens")}for(;R.braces>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","}"));R.output=NA.escapeLast(R.output,"{"),aA("braces")}if(B.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&f({type:"maybe_slash",value:"",output:`${h}?`}),R.backtrack===!0){R.output="";for(const L of R.tokens)R.output+=L.output!=null?L.output:L.value,L.suffix&&(R.output+=L.suffix)}return R};GB.fastpaths=(g,A)=>{const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg,I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);g=lQ[g]||g;const C=NA.isWindows(A),{DOT_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:G,DOTS_SLASH:k,NO_DOT:N,NO_DOTS:y,NO_DOTS_SLASH:F,STAR:h,START_ANCHOR:M}=Sg.globChars(C),Y=B.dot?y:N,c=B.dot?F:N,S=B.capture?"":"?:",j={negated:!1,prefix:""};let H=B.bash===!0?".*?":h;B.capture&&(H=`(${H})`);const e=p=>p.noglobstar===!0?H:`(${S}(?:(?!${M}${p.dot?k:E}).)*?)`,q=p=>{switch(p){case"*":return`${Y}${G}${H}`;case".*":return`${E}${G}${H}`;case"*.*":return`${Y}${H}${E}${G}${H}`;case"*/*":return`${Y}${H}${D}${G}${c}${H}`;case"**":return Y+e(B);case"**/*":return`(?:${Y}${e(B)}${D})?${c}${G}${H}`;case"**/*.*":return`(?:${Y}${e(B)}${D})?${c}${H}${E}${G}${H}`;case"**/.*":return`(?:${Y}${e(B)}${D})?${E}${G}${H}`;default:{const m=/^(.*?)\.(\w+)$/.exec(p);if(!m)return;const b=q(m[1]);return b?b+E+m[2]:void 0}}},Z=NA.removePrefix(g,j);let T=q(Z);return T&&B.strictSlashes!==!0&&(T+=`${D}?`),T};var wD=GB;const iD=kA.default,oD=QD,kB=wD,NB=Dg,GD=cg,kD=g=>g&&typeof g=="object"&&!Array.isArray(g),_=(g,A,B=!1)=>{if(Array.isArray(g)){const N=g.map(F=>_(F,A,B));return F=>{for(const h of N){const M=h(F);if(M)return M}return!1}}const Q=kD(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!Q)throw new TypeError("Expected pattern to be a non-empty string");const I=A||{},C=NB.isWindows(A),E=Q?_.compileRe(g,A):_.makeRe(g,A,!1,!0),D=E.state;delete E.state;let G=()=>!1;if(I.ignore){const N={...A,ignore:null,onMatch:null,onResult:null};G=_(I.ignore,N,B)}const k=(N,y=!1)=>{const{isMatch:F,match:h,output:M}=_.test(N,E,A,{glob:g,posix:C}),Y={glob:g,state:D,regex:E,posix:C,input:N,output:M,match:h,isMatch:F};return typeof I.onResult=="function"&&I.onResult(Y),F===!1?(Y.isMatch=!1,y?Y:!1):G(N)?(typeof I.onIgnore=="function"&&I.onIgnore(Y),Y.isMatch=!1,y?Y:!1):(typeof I.onMatch=="function"&&I.onMatch(Y),y?Y:!0)};return B&&(k.state=D),k};_.test=(g,A,B,{glob:Q,posix:I}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const C=B||{},E=C.format||(I?NB.toPosixSlashes:null);let D=g===Q,G=D&&E?E(g):g;return D===!1&&(G=E?E(g):g,D=G===Q),(D===!1||C.capture===!0)&&(C.matchBase===!0||C.basename===!0?D=_.matchBase(g,A,B,I):D=A.exec(G)),{isMatch:Boolean(D),match:D,output:G}},_.matchBase=(g,A,B,Q=NB.isWindows(B))=>(A instanceof RegExp?A:_.makeRe(A,B)).test(iD.basename(g)),_.isMatch=(g,A,B)=>_(A,B)(g),_.parse=(g,A)=>Array.isArray(g)?g.map(B=>_.parse(B,A)):kB(g,{...A,fastpaths:!1}),_.scan=(g,A)=>oD(g,A),_.compileRe=(g,A,B=!1,Q=!1)=>{if(B===!0)return g.output;const I=A||{},C=I.contains?"":"^",E=I.contains?"":"$";let D=`${C}(?:${g.output})${E}`;g&&g.negated===!0&&(D=`^(?!${D}).*$`);const G=_.toRegex(D,A);return Q===!0&&(G.state=g),G},_.makeRe=(g,A={},B=!1,Q=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");let I={negated:!1,fastpaths:!0};return A.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(I.output=kB.fastpaths(g,A)),I.output||(I=kB(g,A)),_.compileRe(I,A,B,Q)},_.toRegex=(g,A)=>{try{const B=A||{};return new RegExp(g,B.flags||(B.nocase?"i":""))}catch(B){if(A&&A.debug===!0)throw B;return/$^/}},_.constants=GD;var ND=_;(function(g){g.exports=ND})(dQ);const VQ=AQ.default,zQ=ZE,HA=dQ.exports,FB=Dg,XQ=g=>g===""||g==="./",u=(g,A,B)=>{A=[].concat(A),g=[].concat(g);let Q=new Set,I=new Set,C=new Set,E=0,D=N=>{C.add(N.output),B&&B.onResult&&B.onResult(N)};for(let N=0;N<A.length;N++){let y=HA(String(A[N]),{...B,onResult:D},!0),F=y.state.negated||y.state.negatedExtglob;F&&E++;for(let h of g){let M=y(h,!0);!(F?!M.isMatch:M.isMatch)||(F?Q.add(M.output):(Q.delete(M.output),I.add(M.output)))}}let k=(E===A.length?[...C]:[...I]).filter(N=>!Q.has(N));if(B&&k.length===0){if(B.failglob===!0)throw new Error(`No matches found for "${A.join(", ")}"`);if(B.nonull===!0||B.nullglob===!0)return B.unescape?A.map(N=>N.replace(/\\/g,"")):A}return k};u.match=u,u.matcher=(g,A)=>HA(g,A),u.isMatch=(g,A,B)=>HA(A,B)(g),u.any=u.isMatch,u.not=(g,A,B={})=>{A=[].concat(A).map(String);let Q=new Set,I=[],C=D=>{B.onResult&&B.onResult(D),I.push(D.output)},E=new Set(u(g,A,{...B,onResult:C}));for(let D of I)E.has(D)||Q.add(D);return[...Q]},u.contains=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);if(Array.isArray(A))return A.some(Q=>u.contains(g,Q,B));if(typeof A=="string"){if(XQ(g)||XQ(A))return!1;if(g.includes(A)||g.startsWith("./")&&g.slice(2).includes(A))return!0}return u.isMatch(g,A,{...B,contains:!0})},u.matchKeys=(g,A,B)=>{if(!FB.isObject(g))throw new TypeError("Expected the first argument to be an object");let Q=u(Object.keys(g),A,B),I={};for(let C of Q)I[C]=g[C];return I},u.some=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(Q.some(E=>C(E)))return!0}return!1},u.every=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(!Q.every(E=>C(E)))return!1}return!0},u.all=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);return[].concat(A).every(Q=>HA(Q,B)(g))},u.capture=(g,A,B)=>{let Q=FB.isWindows(B),C=HA.makeRe(String(g),{...B,capture:!0}).exec(Q?FB.toPosixSlashes(A):A);if(C)return C.slice(1).map(E=>E===void 0?"":E)},u.makeRe=(...g)=>HA.makeRe(...g),u.scan=(...g)=>HA.scan(...g),u.parse=(g,A)=>{let B=[];for(let Q of[].concat(g||[]))for(let I of zQ(String(Q),A))B.push(HA.parse(I,A));return B},u.braces=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return A&&A.nobrace===!0||!/\{.*\}/.test(g)?[g]:zQ(g,A)},u.braceExpand=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return u.braces(g,{...A,expand:!0})};var FD=u;Object.defineProperty(d,"__esModule",{value:!0}),d.matchAny=d.convertPatternsToRe=d.makeRe=d.getPatternParts=d.expandBraceExpansion=d.expandPatternsWithBraceExpansion=d.isAffectDepthOfReadingPattern=d.endsWithSlashGlobStar=d.hasGlobStar=d.getBaseDirectory=d.isPatternRelatedToParentDirectory=d.getPatternsOutsideCurrentDirectory=d.getPatternsInsideCurrentDirectory=d.getPositivePatterns=d.getNegativePatterns=d.isPositivePattern=d.isNegativePattern=d.convertToNegativePattern=d.convertToPositivePattern=d.isDynamicPattern=d.isStaticPattern=void 0;const MD=kA.default,aD=XC,MB=FD,uQ="**",JD="\\",RD=/[*?]|^!/,KD=/\[[^[]*]/,yD=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YD=/[!*+?@]\([^(]*\)/,sD=/,|\.\./;function vQ(g,A={}){return!_Q(g,A)}d.isStaticPattern=vQ;function _Q(g,A={}){return g===""?!1:!!(A.caseSensitiveMatch===!1||g.includes(JD)||RD.test(g)||KD.test(g)||yD.test(g)||A.extglob!==!1&&YD.test(g)||A.braceExpansion!==!1&&UD(g))}d.isDynamicPattern=_Q;function UD(g){const A=g.indexOf("{");if(A===-1)return!1;const B=g.indexOf("}",A+1);if(B===-1)return!1;const Q=g.slice(A,B);return sD.test(Q)}function LD(g){return tg(g)?g.slice(1):g}d.convertToPositivePattern=LD;function hD(g){return"!"+g}d.convertToNegativePattern=hD;function tg(g){return g.startsWith("!")&&g[1]!=="("}d.isNegativePattern=tg;function $Q(g){return!tg(g)}d.isPositivePattern=$Q;function qD(g){return g.filter(tg)}d.getNegativePatterns=qD;function HD(g){return g.filter($Q)}d.getPositivePatterns=HD;function cD(g){return g.filter(A=>!aB(A))}d.getPatternsInsideCurrentDirectory=cD;function SD(g){return g.filter(aB)}d.getPatternsOutsideCurrentDirectory=SD;function aB(g){return g.startsWith("..")||g.startsWith("./..")}d.isPatternRelatedToParentDirectory=aB;function pD(g){return aD(g,{flipBackslashes:!1})}d.getBaseDirectory=pD;function tD(g){return g.includes(uQ)}d.hasGlobStar=tD;function AI(g){return g.endsWith("/"+uQ)}d.endsWithSlashGlobStar=AI;function OD(g){const A=MD.basename(g);return AI(g)||vQ(A)}d.isAffectDepthOfReadingPattern=OD;function TD(g){return g.reduce((A,B)=>A.concat(gI(B)),[])}d.expandPatternsWithBraceExpansion=TD;function gI(g){return MB.braces(g,{expand:!0,nodupes:!0})}d.expandBraceExpansion=gI;function xD(g,A){let{parts:B}=MB.scan(g,Object.assign(Object.assign({},A),{parts:!0}));return B.length===0&&(B=[g]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}d.getPatternParts=xD;function BI(g,A){return MB.makeRe(g,A)}d.makeRe=BI;function dD(g,A){return g.map(B=>BI(B,A))}d.convertPatternsToRe=dD;function WD(g,A){return A.some(B=>B.test(g))}d.matchAny=WD;var Og={};const ZD=ag.default,QI=ZD.PassThrough,fD=Array.prototype.slice;var bD=nD;function nD(){const g=[],A=fD.call(arguments);let B=!1,Q=A[A.length-1];Q&&!Array.isArray(Q)&&Q.pipe==null?A.pop():Q={};const I=Q.end!==!1,C=Q.pipeError===!0;Q.objectMode==null&&(Q.objectMode=!0),Q.highWaterMark==null&&(Q.highWaterMark=64*1024);const E=QI(Q);function D(){for(let N=0,y=arguments.length;N<y;N++)g.push(II(arguments[N],Q));return G(),this}function G(){if(B)return;B=!0;let N=g.shift();if(!N){process.nextTick(k);return}Array.isArray(N)||(N=[N]);let y=N.length+1;function F(){--y>0||(B=!1,G())}function h(M){function Y(){M.removeListener("merge2UnpipeEnd",Y),M.removeListener("end",Y),C&&M.removeListener("error",c),F()}function c(S){E.emit("error",S)}if(M._readableState.endEmitted)return F();M.on("merge2UnpipeEnd",Y),M.on("end",Y),C&&M.on("error",c),M.pipe(E,{end:!1}),M.resume()}for(let M=0;M<N.length;M++)h(N[M]);F()}function k(){B=!1,E.emit("queueDrain"),I&&E.end()}return E.setMaxListeners(0),E.add=D,E.on("unpipe",function(N){N.emit("merge2UnpipeEnd")}),A.length&&D.apply(null,A),E}function II(g,A){if(Array.isArray(g))for(let B=0,Q=g.length;B<Q;B++)g[B]=II(g[B],A);else{if(!g._readableState&&g.pipe&&(g=g.pipe(QI(A))),!g._readableState||!g.pause||!g.pipe)throw new Error("Only readable stream can be merged.");g.pause()}return g}Object.defineProperty(Og,"__esModule",{value:!0}),Og.merge=void 0;const eD=bD;function mD(g){const A=eD(g);return g.forEach(B=>{B.once("error",Q=>A.emit("error",Q))}),A.once("close",()=>CI(g)),A.once("end",()=>CI(g)),A}Og.merge=mD;function CI(g){g.forEach(A=>A.emit("close"))}var XA={};Object.defineProperty(XA,"__esModule",{value:!0}),XA.isEmpty=XA.isString=void 0;function rD(g){return typeof g=="string"}XA.isString=rD;function jD(g){return g===""}XA.isEmpty=jD,Object.defineProperty(v,"__esModule",{value:!0}),v.string=v.stream=v.pattern=v.path=v.fs=v.errno=v.array=void 0;const PD=lA;v.array=PD;const lD=Ug;v.errno=lD;const VD=Lg;v.fs=VD;const zD=hA;v.path=zD;const XD=d;v.pattern=XD;const uD=Og;v.stream=uD;const vD=XA;v.string=vD,Object.defineProperty(BA,"__esModule",{value:!0}),BA.convertPatternGroupToTask=BA.convertPatternGroupsToTasks=BA.groupPatternsByBaseDirectory=BA.getNegativePatternsAsPositive=BA.getPositivePatterns=BA.convertPatternsToTasks=BA.generate=void 0;const tA=v;function _D(g,A){const B=EI(g),Q=DI(g,A.ignore),I=B.filter(G=>tA.pattern.isStaticPattern(G,A)),C=B.filter(G=>tA.pattern.isDynamicPattern(G,A)),E=JB(I,Q,!1),D=JB(C,Q,!0);return E.concat(D)}BA.generate=_D;function JB(g,A,B){const Q=[],I=tA.pattern.getPatternsOutsideCurrentDirectory(g),C=tA.pattern.getPatternsInsideCurrentDirectory(g),E=RB(I),D=RB(C);return Q.push(...KB(E,A,B)),"."in D?Q.push(yB(".",C,A,B)):Q.push(...KB(D,A,B)),Q}BA.convertPatternsToTasks=JB;function EI(g){return tA.pattern.getPositivePatterns(g)}BA.getPositivePatterns=EI;function DI(g,A){return tA.pattern.getNegativePatterns(g).concat(A).map(tA.pattern.convertToPositivePattern)}BA.getNegativePatternsAsPositive=DI;function RB(g){const A={};return g.reduce((B,Q)=>{const I=tA.pattern.getBaseDirectory(Q);return I in B?B[I].push(Q):B[I]=[Q],B},A)}BA.groupPatternsByBaseDirectory=RB;function KB(g,A,B){return Object.keys(g).map(Q=>yB(Q,g[Q],A,B))}BA.convertPatternGroupsToTasks=KB;function yB(g,A,B,Q){return{dynamic:Q,positive:A,negative:B,base:g,patterns:[].concat(A,B.map(tA.pattern.convertToNegativePattern))}}BA.convertPatternGroupToTask=yB;var uA={};Object.defineProperty(uA,"__esModule",{value:!0}),uA.removeDuplicateSlashes=uA.transform=void 0;const $D=/(?!^)\/{2,}/g;function Aw(g){return g.map(A=>wI(A))}uA.transform=Aw;function wI(g){return g.replace($D,"/")}uA.removeDuplicateSlashes=wI;var YB={},Tg={},wA={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.read=void 0;function gw(g,A,B){A.fs.lstat(g,(Q,I)=>{if(Q!==null){iI(B,Q);return}if(!I.isSymbolicLink()||!A.followSymbolicLink){sB(B,I);return}A.fs.stat(g,(C,E)=>{if(C!==null){if(A.throwErrorOnBrokenSymbolicLink){iI(B,C);return}sB(B,I);return}A.markSymbolicLink&&(E.isSymbolicLink=()=>!0),sB(B,E)})})}xg.read=gw;function iI(g,A){g(A)}function sB(g,A){g(null,A)}var dg={};Object.defineProperty(dg,"__esModule",{value:!0}),dg.read=void 0;function Bw(g,A){const B=A.fs.lstatSync(g);if(!B.isSymbolicLink()||!A.followSymbolicLink)return B;try{const Q=A.fs.statSync(g);return A.markSymbolicLink&&(Q.isSymbolicLink=()=>!0),Q}catch(Q){if(!A.throwErrorOnBrokenSymbolicLink)return B;throw Q}}dg.read=Bw;var UB={},oI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(oI),Object.defineProperty(UB,"__esModule",{value:!0});const Qw=oI;class Iw{constructor(A={}){this._options=A,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(A,B){return A??B}}UB.default=Iw,Object.defineProperty(wA,"__esModule",{value:!0}),wA.statSync=wA.stat=wA.Settings=void 0;const GI=xg,Cw=dg,LB=UB;wA.Settings=LB.default;function Ew(g,A,B){if(typeof A=="function"){GI.read(g,hB(),A);return}GI.read(g,hB(A),B)}wA.stat=Ew;function Dw(g,A){const B=hB(A);return Cw.read(g,B)}wA.statSync=Dw;function hB(g={}){return g instanceof LB.default?g:new LB.default(g)}var yA={},qB={},Wg={},cA={},TA={};/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let kI;var ww=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:gg.commonjsGlobal):g=>(kI||(kI=Promise.resolve())).then(g).catch(A=>setTimeout(()=>{throw A},0));/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var iw=Gw;const ow=ww;function Gw(g,A){let B,Q,I,C=!0;Array.isArray(g)?(B=[],Q=g.length):(I=Object.keys(g),B={},Q=I.length);function E(G){function k(){A&&A(G,B),A=null}C?ow(k):k()}function D(G,k,N){B[G]=N,(--Q===0||k)&&E(k)}Q?I?I.forEach(function(G){g[G](function(k,N){D(G,k,N)})}):g.forEach(function(G,k){G(function(N,y){D(k,N,y)})}):E(null),C=!1}var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const Zg=process.versions.node.split(".");if(Zg[0]===void 0||Zg[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const NI=Number.parseInt(Zg[0],10),kw=Number.parseInt(Zg[1],10),FI=10,Nw=10,Fw=NI>FI,Mw=NI===FI&&kw>=Nw;ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Fw||Mw;var og={},fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.createDirentFromStats=void 0;class aw{constructor(A,B){this.name=A,this.isBlockDevice=B.isBlockDevice.bind(B),this.isCharacterDevice=B.isCharacterDevice.bind(B),this.isDirectory=B.isDirectory.bind(B),this.isFIFO=B.isFIFO.bind(B),this.isFile=B.isFile.bind(B),this.isSocket=B.isSocket.bind(B),this.isSymbolicLink=B.isSymbolicLink.bind(B)}}function Jw(g,A){return new aw(g,A)}fg.createDirentFromStats=Jw,Object.defineProperty(og,"__esModule",{value:!0}),og.fs=void 0;const Rw=fg;og.fs=Rw;var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.joinPathSegments=void 0;function Kw(g,A,B){return g.endsWith(B)?g+A:g+B+A}Gg.joinPathSegments=Kw,Object.defineProperty(TA,"__esModule",{value:!0}),TA.readdir=TA.readdirWithFileTypes=TA.read=void 0;const yw=wA,MI=iw,Yw=ig,aI=og,JI=Gg;function sw(g,A,B){if(!A.stats&&Yw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){RI(g,A,B);return}KI(g,A,B)}TA.read=sw;function RI(g,A,B){A.fs.readdir(g,{withFileTypes:!0},(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(D=>({dirent:D,name:D.name,path:JI.joinPathSegments(g,D.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){HB(B,C);return}const E=C.map(D=>Uw(D,A));MI(E,(D,G)=>{if(D!==null){bg(B,D);return}HB(B,G)})})}TA.readdirWithFileTypes=RI;function Uw(g,A){return B=>{if(!g.dirent.isSymbolicLink()){B(null,g);return}A.fs.stat(g.path,(Q,I)=>{if(Q!==null){if(A.throwErrorOnBrokenSymbolicLink){B(Q);return}B(null,g);return}g.dirent=aI.fs.createDirentFromStats(g.name,I),B(null,g)})}}function KI(g,A,B){A.fs.readdir(g,(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(E=>{const D=JI.joinPathSegments(g,E,A.pathSegmentSeparator);return G=>{yw.stat(D,A.fsStatSettings,(k,N)=>{if(k!==null){G(k);return}const y={name:E,path:D,dirent:aI.fs.createDirentFromStats(E,N)};A.stats&&(y.stats=N),G(null,y)})}});MI(C,(E,D)=>{if(E!==null){bg(B,E);return}HB(B,D)})})}TA.readdir=KI;function bg(g,A){g(A)}function HB(g,A){g(null,A)}var xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.readdir=xA.readdirWithFileTypes=xA.read=void 0;const Lw=wA,hw=ig,yI=og,YI=Gg;function qw(g,A){return!A.stats&&hw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?sI(g,A):UI(g,A)}xA.read=qw;function sI(g,A){return A.fs.readdirSync(g,{withFileTypes:!0}).map(Q=>{const I={dirent:Q,name:Q.name,path:YI.joinPathSegments(g,Q.name,A.pathSegmentSeparator)};if(I.dirent.isSymbolicLink()&&A.followSymbolicLinks)try{const C=A.fs.statSync(I.path);I.dirent=yI.fs.createDirentFromStats(I.name,C)}catch(C){if(A.throwErrorOnBrokenSymbolicLink)throw C}return I})}xA.readdirWithFileTypes=sI;function UI(g,A){return A.fs.readdirSync(g).map(Q=>{const I=YI.joinPathSegments(g,Q,A.pathSegmentSeparator),C=Lw.statSync(I,A.fsStatSettings),E={name:Q,path:I,dirent:yI.fs.createDirentFromStats(Q,C)};return A.stats&&(E.stats=C),E})}xA.readdir=UI;var cB={},LI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(LI),Object.defineProperty(cB,"__esModule",{value:!0});const Hw=kA.default,cw=wA,Sw=LI;class pw{constructor(A={}){this._options=A,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}cB.default=pw,Object.defineProperty(cA,"__esModule",{value:!0}),cA.Settings=cA.scandirSync=cA.scandir=void 0;const hI=TA,tw=xA,SB=cB;cA.Settings=SB.default;function Ow(g,A,B){if(typeof A=="function"){hI.read(g,pB(),A);return}hI.read(g,pB(A),B)}cA.scandir=Ow;function Tw(g,A){const B=pB(A);return tw.read(g,B)}cA.scandirSync=Tw;function pB(g={}){return g instanceof SB.default?g:new SB.default(g)}var tB={exports:{}};function xw(g){var A=new g,B=A;function Q(){var C=A;return C.next?A=C.next:(A=new g,B=A),C.next=null,C}function I(C){B.next=C,B=C}return{get:Q,release:I}}var dw=xw,Ww=dw;function qI(g,A,B){if(typeof g=="function"&&(B=A,A=g,g=null),B<1)throw new Error("fastqueue concurrency must be greater than 1");var Q=Ww(Zw),I=null,C=null,E=0,D=null,G={push:Y,drain:FA,saturated:FA,pause:N,paused:!1,concurrency:B,running:k,resume:h,idle:M,length:y,getQueue:F,unshift:c,empty:FA,kill:j,killAndDrain:H,error:e};return G;function k(){return E}function N(){G.paused=!0}function y(){for(var q=I,Z=0;q;)q=q.next,Z++;return Z}function F(){for(var q=I,Z=[];q;)Z.push(q.value),q=q.next;return Z}function h(){if(!!G.paused){G.paused=!1;for(var q=0;q<G.concurrency;q++)E++,S()}}function M(){return E===0&&G.length()===0}function Y(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,T.errorHandler=D,E===G.concurrency||G.paused?C?(C.next=T,C=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function c(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,E===G.concurrency||G.paused?I?(T.next=I,I=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function S(q){q&&Q.release(q);var Z=I;Z?G.paused?E--:(C===I&&(C=null),I=Z.next,Z.next=null,A.call(g,Z.value,Z.worked),C===null&&G.empty()):--E===0&&G.drain()}function j(){I=null,C=null,G.drain=FA}function H(){I=null,C=null,G.drain(),G.drain=FA}function e(q){D=q}}function FA(){}function Zw(){this.value=null,this.callback=FA,this.next=null,this.release=FA,this.context=null,this.errorHandler=null;var g=this;this.worked=function(B,Q){var I=g.callback,C=g.errorHandler,E=g.value;g.value=null,g.callback=FA,g.errorHandler&&C(B,E),I.call(g.context,B,Q),g.release(g)}}function fw(g,A,B){typeof g=="function"&&(B=A,A=g,g=null);function Q(N,y){A.call(this,N).then(function(F){y(null,F)},y)}var I=qI(g,Q,B),C=I.push,E=I.unshift;return I.push=D,I.unshift=G,I.drained=k,I;function D(N){var y=new Promise(function(F,h){C(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function G(N){var y=new Promise(function(F,h){E(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function k(){var N=I.drain,y=new Promise(function(F){I.drain=function(){N(),F()}});return y}}tB.exports=qI,tB.exports.promise=fw;var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.joinPathSegments=MA.replacePathSegmentSeparator=MA.isAppliedFilter=MA.isFatalError=void 0;function bw(g,A){return g.errorFilter===null?!0:!g.errorFilter(A)}MA.isFatalError=bw;function nw(g,A){return g===null||g(A)}MA.isAppliedFilter=nw;function ew(g,A){return g.split(/[/\\]/).join(A)}MA.replacePathSegmentSeparator=ew;function mw(g,A,B){return g===""?A:g.endsWith(B)?g+A:g+B+A}MA.joinPathSegments=mw;var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const rw=MA;class jw{constructor(A,B){this._root=A,this._settings=B,this._root=rw.replacePathSegmentSeparator(A,B.pathSegmentSeparator)}}ng.default=jw,Object.defineProperty(Wg,"__esModule",{value:!0});const Pw=uI.default,lw=cA,Vw=tB.exports,eg=MA,zw=ng;class Xw extends zw.default{constructor(A,B){super(A,B),this._settings=B,this._scandir=lw.scandir,this._emitter=new Pw.EventEmitter,this._queue=Vw(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(A){this._emitter.on("entry",A)}onError(A){this._emitter.once("error",A)}onEnd(A){this._emitter.once("end",A)}_pushToQueue(A,B){const Q={directory:A,base:B};this._queue.push(Q,I=>{I!==null&&this._handleError(I)})}_worker(A,B){this._scandir(A.directory,this._settings.fsScandirSettings,(Q,I)=>{if(Q!==null){B(Q,void 0);return}for(const C of I)this._handleEntry(C,A.base);B(null,void 0)})}_handleError(A){this._isDestroyed||!eg.isFatalError(this._settings,A)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A))}_handleEntry(A,B){if(this._isDestroyed||this._isFatalError)return;const Q=A.path;B!==void 0&&(A.path=eg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A)&&this._emitEntry(A),A.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_emitEntry(A){this._emitter.emit("entry",A)}}Wg.default=Xw,Object.defineProperty(qB,"__esModule",{value:!0});const uw=Wg;class vw{constructor(A,B){this._root=A,this._settings=B,this._reader=new uw.default(this._root,this._settings),this._storage=[]}read(A){this._reader.onError(B=>{_w(A,B)}),this._reader.onEntry(B=>{this._storage.push(B)}),this._reader.onEnd(()=>{$w(A,this._storage)}),this._reader.read()}}qB.default=vw;function _w(g,A){g(A)}function $w(g,A){g(null,A)}var OB={};Object.defineProperty(OB,"__esModule",{value:!0});const Ai=ag.default,gi=Wg;class Bi{constructor(A,B){this._root=A,this._settings=B,this._reader=new gi.default(this._root,this._settings),this._stream=new Ai.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(A=>{this._stream.emit("error",A)}),this._reader.onEntry(A=>{this._stream.push(A)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}OB.default=Bi;var TB={},xB={};Object.defineProperty(xB,"__esModule",{value:!0});const Qi=cA,mg=MA,Ii=ng;class Ci extends Ii.default{constructor(){super(...arguments),this._scandir=Qi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A,B){this._queue.add({directory:A,base:B})}_handleQueue(){for(const A of this._queue.values())this._handleDirectory(A.directory,A.base)}_handleDirectory(A,B){try{const Q=this._scandir(A,this._settings.fsScandirSettings);for(const I of Q)this._handleEntry(I,B)}catch(Q){this._handleError(Q)}}_handleError(A){if(!!mg.isFatalError(this._settings,A))throw A}_handleEntry(A,B){const Q=A.path;B!==void 0&&(A.path=mg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),mg.isAppliedFilter(this._settings.entryFilter,A)&&this._pushToStorage(A),A.dirent.isDirectory()&&mg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_pushToStorage(A){this._storage.push(A)}}xB.default=Ci,Object.defineProperty(TB,"__esModule",{value:!0});const Ei=xB;class Di{constructor(A,B){this._root=A,this._settings=B,this._reader=new Ei.default(this._root,this._settings)}read(){return this._reader.read()}}TB.default=Di;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const wi=kA.default,ii=cA;class oi{constructor(A={}){this._options=A,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,wi.sep),this.fsScandirSettings=new ii.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}dB.default=oi,Object.defineProperty(yA,"__esModule",{value:!0}),yA.Settings=yA.walkStream=yA.walkSync=yA.walk=void 0;const HI=qB,Gi=OB,ki=TB,WB=dB;yA.Settings=WB.default;function Ni(g,A,B){if(typeof A=="function"){new HI.default(g,rg()).read(A);return}new HI.default(g,rg(A)).read(B)}yA.walk=Ni;function Fi(g,A){const B=rg(A);return new ki.default(g,B).read()}yA.walkSync=Fi;function Mi(g,A){const B=rg(A);return new Gi.default(g,B).read()}yA.walkStream=Mi;function rg(g={}){return g instanceof WB.default?g:new WB.default(g)}var jg={};Object.defineProperty(jg,"__esModule",{value:!0});const ai=kA.default,Ji=wA,cI=v;class Ri{constructor(A){this._settings=A,this._fsStatSettings=new Ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(A){return ai.resolve(this._settings.cwd,A)}_makeEntry(A,B){const Q={name:B,path:B,dirent:cI.fs.createDirentFromStats(B,A)};return this._settings.stats&&(Q.stats=A),Q}_isFatalError(A){return!cI.errno.isEnoentCodeError(A)&&!this._settings.suppressErrors}}jg.default=Ri,Object.defineProperty(Tg,"__esModule",{value:!0});const Ki=ag.default,yi=wA,Yi=yA,si=jg;class Ui extends si.default{constructor(){super(...arguments),this._walkStream=Yi.walkStream,this._stat=yi.stat}dynamic(A,B){return this._walkStream(A,B)}static(A,B){const Q=A.map(this._getFullEntryPath,this),I=new Ki.PassThrough({objectMode:!0});I._write=(C,E,D)=>this._getEntry(Q[C],A[C],B).then(G=>{G!==null&&B.entryFilter(G)&&I.push(G),C===Q.length-1&&I.end(),D()}).catch(D);for(let C=0;C<Q.length;C++)I.write(C);return I}_getEntry(A,B,Q){return this._getStat(A).then(I=>this._makeEntry(I,B)).catch(I=>{if(Q.errorFilter(I))return null;throw I})}_getStat(A){return new Promise((B,Q)=>{this._stat(A,this._fsStatSettings,(I,C)=>I===null?B(C):Q(I))})}}Tg.default=Ui;var kg={},ZB={},fB={},bB={};Object.defineProperty(bB,"__esModule",{value:!0});const vA=v;class Li{constructor(A,B,Q){this._patterns=A,this._settings=B,this._micromatchOptions=Q,this._storage=[],this._fillStorage()}_fillStorage(){const A=vA.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const B of A){const Q=this._getPatternSegments(B),I=this._splitSegmentsIntoSections(Q);this._storage.push({complete:I.length<=1,pattern:B,segments:Q,sections:I})}}_getPatternSegments(A){return vA.pattern.getPatternParts(A,this._micromatchOptions).map(Q=>vA.pattern.isDynamicPattern(Q,this._settings)?{dynamic:!0,pattern:Q,patternRe:vA.pattern.makeRe(Q,this._micromatchOptions)}:{dynamic:!1,pattern:Q})}_splitSegmentsIntoSections(A){return vA.array.splitWhen(A,B=>B.dynamic&&vA.pattern.hasGlobStar(B.pattern))}}bB.default=Li,Object.defineProperty(fB,"__esModule",{value:!0});const hi=bB;class qi extends hi.default{match(A){const B=A.split("/"),Q=B.length,I=this._storage.filter(C=>!C.complete||C.segments.length>Q);for(const C of I){const E=C.sections[0];if(!C.complete&&Q>E.length||B.every((G,k)=>{const N=C.segments[k];return!!(N.dynamic&&N.patternRe.test(G)||!N.dynamic&&N.pattern===G)}))return!0}return!1}}fB.default=qi,Object.defineProperty(ZB,"__esModule",{value:!0});const Pg=v,Hi=fB;class ci{constructor(A,B){this._settings=A,this._micromatchOptions=B}getFilter(A,B,Q){const I=this._getMatcher(B),C=this._getNegativePatternsRe(Q);return E=>this._filter(A,E,I,C)}_getMatcher(A){return new Hi.default(A,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A){const B=A.filter(Pg.pattern.isAffectDepthOfReadingPattern);return Pg.pattern.convertPatternsToRe(B,this._micromatchOptions)}_filter(A,B,Q,I){if(this._isSkippedByDeep(A,B.path)||this._isSkippedSymbolicLink(B))return!1;const C=Pg.path.removeLeadingDotSegment(B.path);return this._isSkippedByPositivePatterns(C,Q)?!1:this._isSkippedByNegativePatterns(C,I)}_isSkippedByDeep(A,B){return this._settings.deep===1/0?!1:this._getEntryLevel(A,B)>=this._settings.deep}_getEntryLevel(A,B){const Q=B.split("/").length;if(A==="")return Q;const I=A.split("/").length;return Q-I}_isSkippedSymbolicLink(A){return!this._settings.followSymbolicLinks&&A.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A,B){return!this._settings.baseNameMatch&&!B.match(A)}_isSkippedByNegativePatterns(A,B){return!Pg.pattern.matchAny(A,B)}}ZB.default=ci;var nB={};Object.defineProperty(nB,"__esModule",{value:!0});const bA=v;class Si{constructor(A,B){this._settings=A,this._micromatchOptions=B,this.index=new Map}getFilter(A,B){const Q=bA.pattern.convertPatternsToRe(A,this._micromatchOptions),I=bA.pattern.convertPatternsToRe(B,this._micromatchOptions);return C=>this._filter(C,Q,I)}_filter(A,B,Q){if(this._settings.unique&&this._isDuplicateEntry(A)||this._onlyFileFilter(A)||this._onlyDirectoryFilter(A)||this._isSkippedByAbsoluteNegativePatterns(A.path,Q))return!1;const I=this._settings.baseNameMatch?A.name:A.path,C=this._isMatchToPatterns(I,B)&&!this._isMatchToPatterns(A.path,Q);return this._settings.unique&&C&&this._createIndexRecord(A),C}_isDuplicateEntry(A){return this.index.has(A.path)}_createIndexRecord(A){this.index.set(A.path,void 0)}_onlyFileFilter(A){return this._settings.onlyFiles&&!A.dirent.isFile()}_onlyDirectoryFilter(A){return this._settings.onlyDirectories&&!A.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(A,B){if(!this._settings.absolute)return!1;const Q=bA.path.makeAbsolute(this._settings.cwd,A);return bA.pattern.matchAny(Q,B)}_isMatchToPatterns(A,B){const Q=bA.path.removeLeadingDotSegment(A);return bA.pattern.matchAny(Q,B)||bA.pattern.matchAny(Q+"/",B)}}nB.default=Si;var eB={};Object.defineProperty(eB,"__esModule",{value:!0});const pi=v;class ti{constructor(A){this._settings=A}getFilter(){return A=>this._isNonFatalError(A)}_isNonFatalError(A){return pi.errno.isEnoentCodeError(A)||this._settings.suppressErrors}}eB.default=ti;var mB={};Object.defineProperty(mB,"__esModule",{value:!0});const SI=v;class Oi{constructor(A){this._settings=A}getTransformer(){return A=>this._transform(A)}_transform(A){let B=A.path;return this._settings.absolute&&(B=SI.path.makeAbsolute(this._settings.cwd,B),B=SI.path.unixify(B)),this._settings.markDirectories&&A.dirent.isDirectory()&&(B+="/"),this._settings.objectMode?Object.assign(Object.assign({},A),{path:B}):B}}mB.default=Oi,Object.defineProperty(kg,"__esModule",{value:!0});const Ti=kA.default,xi=ZB,di=nB,Wi=eB,Zi=mB;class fi{constructor(A){this._settings=A,this.errorFilter=new Wi.default(this._settings),this.entryFilter=new di.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xi.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Zi.default(this._settings)}_getRootDirectory(A){return Ti.resolve(this._settings.cwd,A.base)}_getReaderOptions(A){const B=A.base==="."?"":A.base;return{basePath:B,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(B,A.positive,A.negative),entryFilter:this.entryFilter.getFilter(A.positive,A.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}}}kg.default=fi,Object.defineProperty(YB,"__esModule",{value:!0});const bi=Tg,ni=kg;class ei extends ni.default{constructor(){super(...arguments),this._reader=new bi.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=[];return new Promise((C,E)=>{const D=this.api(B,A,Q);D.once("error",E),D.on("data",G=>I.push(Q.transform(G))),D.once("end",()=>C(I))})}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}YB.default=ei;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const mi=ag.default,ri=Tg,ji=kg;class Pi extends ji.default{constructor(){super(...arguments),this._reader=new ri.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=this.api(B,A,Q),C=new mi.Readable({objectMode:!0,read:()=>{}});return I.once("error",E=>C.emit("error",E)).on("data",E=>C.emit("data",Q.transform(E))).once("end",()=>C.emit("end")),C.once("close",()=>I.destroy()),C}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}rB.default=Pi;var jB={},PB={};Object.defineProperty(PB,"__esModule",{value:!0});const li=wA,Vi=yA,zi=jg;class Xi extends zi.default{constructor(){super(...arguments),this._walkSync=Vi.walkSync,this._statSync=li.statSync}dynamic(A,B){return this._walkSync(A,B)}static(A,B){const Q=[];for(const I of A){const C=this._getFullEntryPath(I),E=this._getEntry(C,I,B);E===null||!B.entryFilter(E)||Q.push(E)}return Q}_getEntry(A,B,Q){try{const I=this._getStat(A);return this._makeEntry(I,B)}catch(I){if(Q.errorFilter(I))return null;throw I}}_getStat(A){return this._statSync(A,this._fsStatSettings)}}PB.default=Xi,Object.defineProperty(jB,"__esModule",{value:!0});const ui=PB,vi=kg;class _i extends vi.default{constructor(){super(...arguments),this._reader=new ui.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A);return this.api(B,A,Q).map(Q.transform)}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}jB.default=_i;var pI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default,B=$B.default,Q=Math.max(B.cpus().length,1);g.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:A.lstat,lstatSync:A.lstatSync,stat:A.stat,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};class I{constructor(E={}){this._options=E,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,Q),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)}_getValue(E,D){return E===void 0?D:E}_getFileSystemMethods(E={}){return Object.assign(Object.assign({},g.DEFAULT_FILE_SYSTEM_ADAPTER),E)}}g.default=I})(pI);const tI=BA,OI=uA,$i=YB,Ao=rB,go=jB,lB=pI,nA=v;async function VB(g,A){_A(g);const B=zB(g,$i.default,A),Q=await Promise.all(B);return nA.array.flatten(Q)}(function(g){function A(E,D){_A(E);const G=zB(E,go.default,D);return nA.array.flatten(G)}g.sync=A;function B(E,D){_A(E);const G=zB(E,Ao.default,D);return nA.stream.merge(G)}g.stream=B;function Q(E,D){_A(E);const G=OI.transform([].concat(E)),k=new lB.default(D);return tI.generate(G,k)}g.generateTasks=Q;function I(E,D){_A(E);const G=new lB.default(D);return nA.pattern.isDynamicPattern(E,G)}g.isDynamicPattern=I;function C(E){return _A(E),nA.path.escape(E)}g.escapePath=C})(VB||(VB={}));function zB(g,A,B){const Q=OI.transform([].concat(g)),I=new lB.default(B),C=tI.generate(Q,I),E=new A(I);return C.map(E.read,E)}function _A(g){if(![].concat(g).every(Q=>nA.string.isString(Q)&&!nA.string.isEmpty(Q)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}var Bo=VB,Qo=Bo;let XB;process.on("message",async g=>{g.method==="exit"&&ZI.exit(0),typeof XB>"u"&&(XB=await lg.exports.TaploLsp.initialize({cwd:()=>process.cwd(),envVar:A=>process.env[A],findConfigFile:A=>{const B=[".taplo.toml","taplo.toml"];for(const Q of B)try{const I=kA.default.join(A,Q);return Mg.default.accessSync(I),I}catch{}},glob:A=>Qo.sync(A),isAbsolute:A=>kA.default.isAbsolute(A),now:()=>new Date,readFile:A=>_B.default.readFile(A),writeFile:(A,B)=>_B.default.writeFile(A,B),stderr:process.stderr,stdErrAtty:()=>process.stderr.isTTY,stdin:process.stdin,stdout:process.stdout,urlToFilePath:A=>{const B=decodeURIComponent(A).slice(7);return process.platform==="win32"&&B.startsWith("/")?B.slice(1):B},fetch:{fetch:GQ,Headers:OA,Request:$A,Response:iA}},{onMessage(A){process.send(A)}})),XB.send(g)}),process.on("unhandledRejection",g=>{throw g}),exports.File=QQ,exports.FormData=Rg;
RuntimeError: unreachable
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd44b
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
[Info - 02:38:50] Connection to server got closed. Server will restart.
[Error - 02:38:50] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Even Better TOML LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
INFO registered request handler method="initialize"
INFO registered request handler method="textDocument/foldingRange"
INFO registered request handler method="textDocument/documentSymbol"
INFO registered request handler method="textDocument/formatting"
INFO registered request handler method="textDocument/completion"
INFO registered request handler method="textDocument/hover"
INFO registered request handler method="textDocument/documentLink"
INFO registered request handler method="textDocument/semanticTokens/full"
INFO registered request handler method="textDocument/prepareRename"
INFO registered request handler method="textDocument/rename"
INFO registered notification handler method="initialized"
INFO registered notification handler method="textDocument/didOpen"
INFO registered notification handler method="textDocument/didChange"
INFO registered notification handler method="textDocument/didSave"
INFO registered notification handler method="textDocument/didClose"
INFO registered notification handler method="workspace/didChangeConfiguration"
INFO registered notification handler method="workspace/didChangeWorkspaceFolders"
INFO registered request handler method="taplo/convertToJson"
INFO registered request handler method="taplo/convertToToml"
INFO registered request handler method="taplo/listSchemas"
INFO registered request handler method="taplo/associatedSchema"
INFO registered notification handler method="taplo/associateSchema"
panicked at 'getrandom::getrandom() failed.: Error { internal_code: 2147483660, description: "Node.js crypto module is unavailable" }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.8.0/src/random_state.rs:77:51
Stack:
Error
at i.wbg.__wbg_new_693216e109162396 (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5841)
at wasm://wasm/00f6ca2e:wasm-function[5308]:0x321a3d
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd428
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40
`,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"};const yE=$g,{MAX_LENGTH:tQ,CHAR_BACKSLASH:QB,CHAR_BACKTICK:YE,CHAR_COMMA:sE,CHAR_DOT:UE,CHAR_LEFT_PARENTHESES:LE,CHAR_RIGHT_PARENTHESES:hE,CHAR_LEFT_CURLY_BRACE:qE,CHAR_RIGHT_CURLY_BRACE:HE,CHAR_LEFT_SQUARE_BRACKET:OQ,CHAR_RIGHT_SQUARE_BRACKET:TQ,CHAR_DOUBLE_QUOTE:cE,CHAR_SINGLE_QUOTE:SE,CHAR_NO_BREAK_SPACE:pE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tE}=KE,OE=(g,A={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let B=A||{},Q=typeof B.maxLength=="number"?Math.min(tQ,B.maxLength):tQ;if(g.length>Q)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${Q})`);let I={type:"root",input:g,nodes:[]},C=[I],E=I,D=I,G=0,k=g.length,N=0,y=0,F;const h=()=>g[N++],M=Y=>{if(Y.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&Y.type==="text"){D.value+=Y.value;return}return E.nodes.push(Y),Y.parent=E,Y.prev=D,D=Y,Y};for(M({type:"bos"});N<k;)if(E=C[C.length-1],F=h(),!(F===tE||F===pE)){if(F===QB){M({type:"text",value:(A.keepEscaping?F:"")+h()});continue}if(F===TQ){M({type:"text",value:"\\"+F});continue}if(F===OQ){G++;let Y;for(;N<k&&(Y=h());){if(F+=Y,Y===OQ){G++;continue}if(Y===QB){F+=h();continue}if(Y===TQ&&(G--,G===0))break}M({type:"text",value:F});continue}if(F===LE){E=M({type:"paren",nodes:[]}),C.push(E),M({type:"text",value:F});continue}if(F===hE){if(E.type!=="paren"){M({type:"text",value:F});continue}E=C.pop(),M({type:"text",value:F}),E=C[C.length-1];continue}if(F===cE||F===SE||F===YE){let Y=F,c;for(A.keepQuotes!==!0&&(F="");N<k&&(c=h());){if(c===QB){F+=c+h();continue}if(c===Y){A.keepQuotes===!0&&(F+=c);break}F+=c}M({type:"text",value:F});continue}if(F===qE){y++;let Y=D.value&&D.value.slice(-1)==="$"||E.dollar===!0;E=M({type:"brace",open:!0,close:!1,dollar:Y,depth:y,commas:0,ranges:0,nodes:[]}),C.push(E),M({type:"open",value:F});continue}if(F===HE){if(E.type!=="brace"){M({type:"text",value:F});continue}let Y="close";E=C.pop(),E.close=!0,M({type:Y,value:F}),y--,E=C[C.length-1];continue}if(F===sE&&y>0){if(E.ranges>0){E.ranges=0;let Y=E.nodes.shift();E.nodes=[Y,{type:"text",value:yE(E)}]}M({type:"comma",value:F}),E.commas++;continue}if(F===UE&&y>0&&E.commas===0){let Y=E.nodes;if(y===0||Y.length===0){M({type:"text",value:F});continue}if(D.type==="dot"){if(E.range=[],D.value+=F,D.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,D.type="text";continue}E.ranges++,E.args=[];continue}if(D.type==="range"){Y.pop();let c=Y[Y.length-1];c.value+=D.value+F,D=c,E.ranges--;continue}M({type:"dot",value:F});continue}M({type:"text",value:F})}do if(E=C.pop(),E.type!=="root"){E.nodes.forEach(S=>{S.nodes||(S.type==="open"&&(S.isOpen=!0),S.type==="close"&&(S.isClose=!0),S.nodes||(S.type="text"),S.invalid=!0)});let Y=C[C.length-1],c=Y.nodes.indexOf(E);Y.nodes.splice(c,1,...E.nodes)}while(C.length>0);return M({type:"eos"}),I};var TE=OE;const xQ=$g,xE=ME,dE=RE,WE=TE,DA=(g,A={})=>{let B=[];if(Array.isArray(g))for(let Q of g){let I=DA.create(Q,A);Array.isArray(I)?B.push(...I):B.push(I)}else B=[].concat(DA.create(g,A));return A&&A.expand===!0&&A.nodupes===!0&&(B=[...new Set(B)]),B};DA.parse=(g,A={})=>WE(g,A),DA.stringify=(g,A={})=>xQ(typeof g=="string"?DA.parse(g,A):g,A),DA.compile=(g,A={})=>(typeof g=="string"&&(g=DA.parse(g,A)),xE(g,A)),DA.expand=(g,A={})=>{typeof g=="string"&&(g=DA.parse(g,A));let B=dE(g,A);return A.noempty===!0&&(B=B.filter(Boolean)),A.nodupes===!0&&(B=[...new Set(B)]),B},DA.create=(g,A={})=>g===""||g.length<3?[g]:A.expand!==!0?DA.compile(g,A):DA.expand(g,A);var ZE=DA,dQ={exports:{}},Dg={};const fE=kA.default,qA="\\\\/",WQ=`[^${qA}]`,pA="\\.",bE="\\+",nE="\\?",Hg="\\/",eE="(?=.)",ZQ="[^/]",IB=`(?:${Hg}|$)`,fQ=`(?:^|${Hg})`,CB=`${pA}{1,2}${IB}`,mE=`(?!${pA})`,rE=`(?!${fQ}${CB})`,jE=`(?!${pA}{0,1}${IB})`,PE=`(?!${CB})`,lE=`[^.${Hg}]`,VE=`${ZQ}*?`,bQ={DOT_LITERAL:pA,PLUS_LITERAL:bE,QMARK_LITERAL:nE,SLASH_LITERAL:Hg,ONE_CHAR:eE,QMARK:ZQ,END_ANCHOR:IB,DOTS_SLASH:CB,NO_DOT:mE,NO_DOTS:rE,NO_DOT_SLASH:jE,NO_DOTS_SLASH:PE,QMARK_NO_DOT:lE,STAR:VE,START_ANCHOR:fQ},zE={...bQ,SLASH_LITERAL:`[${qA}]`,QMARK:WQ,STAR:`${WQ}*?`,DOTS_SLASH:`${pA}{1,2}(?:[${qA}]|$)`,NO_DOT:`(?!${pA})`,NO_DOTS:`(?!(?:^|[${qA}])${pA}{1,2}(?:[${qA}]|$))`,NO_DOT_SLASH:`(?!${pA}{0,1}(?:[${qA}]|$))`,NO_DOTS_SLASH:`(?!${pA}{1,2}(?:[${qA}]|$))`,QMARK_NO_DOT:`[^.${qA}]`,START_ANCHOR:`(?:^|[${qA}])`,END_ANCHOR:`(?:[${qA}]|$)`},XE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var cg={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fE.sep,extglobChars(g){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${g.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(g){return g===!0?zE:bQ}};(function(g){const A=kA.default,B=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:I,REGEX_SPECIAL_CHARS:C,REGEX_SPECIAL_CHARS_GLOBAL:E}=cg;g.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),g.hasRegexChars=D=>C.test(D),g.isRegexChar=D=>D.length===1&&g.hasRegexChars(D),g.escapeRegex=D=>D.replace(E,"\\$1"),g.toPosixSlashes=D=>D.replace(Q,"/"),g.removeBackslashes=D=>D.replace(I,G=>G==="\\"?"":G),g.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},g.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:B===!0||A.sep==="\\",g.escapeLast=(D,G,k)=>{const N=D.lastIndexOf(G,k);return N===-1?D:D[N-1]==="\\"?g.escapeLast(D,G,N-1):`${D.slice(0,N)}\\${D.slice(N)}`},g.removePrefix=(D,G={})=>{let k=D;return k.startsWith("./")&&(k=k.slice(2),G.prefix="./"),k},g.wrapOutput=(D,G={},k={})=>{const N=k.contains?"":"^",y=k.contains?"":"$";let F=`${N}(?:${D})${y}`;return G.negated===!0&&(F=`(?:^(?!${F}).*$)`),F}})(Dg);const nQ=Dg,{CHAR_ASTERISK:EB,CHAR_AT:uE,CHAR_BACKWARD_SLASH:wg,CHAR_COMMA:vE,CHAR_DOT:DB,CHAR_EXCLAMATION_MARK:wB,CHAR_FORWARD_SLASH:eQ,CHAR_LEFT_CURLY_BRACE:iB,CHAR_LEFT_PARENTHESES:oB,CHAR_LEFT_SQUARE_BRACKET:_E,CHAR_PLUS:$E,CHAR_QUESTION_MARK:mQ,CHAR_RIGHT_CURLY_BRACE:AD,CHAR_RIGHT_PARENTHESES:rQ,CHAR_RIGHT_SQUARE_BRACKET:gD}=cg,jQ=g=>g===eQ||g===wg,PQ=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},BD=(g,A)=>{const B=A||{},Q=g.length-1,I=B.parts===!0||B.scanToEnd===!0,C=[],E=[],D=[];let G=g,k=-1,N=0,y=0,F=!1,h=!1,M=!1,Y=!1,c=!1,S=!1,j=!1,H=!1,e=!1,q=!1,Z=0,T,p,m={value:"",depth:0,isGlob:!1};const b=()=>k>=Q,R=()=>G.charCodeAt(k+1),X=()=>(T=p,G.charCodeAt(++k));for(;k<Q;){p=X();let AA;if(p===wg){j=m.backslashes=!0,p=X(),p===iB&&(S=!0);continue}if(S===!0||p===iB){for(Z++;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,X();continue}if(p===iB){Z++;continue}if(S!==!0&&p===DB&&(p=X())===DB){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(S!==!0&&p===vE){if(F=m.isBrace=!0,M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===AD&&(Z--,Z===0)){S=!1,F=m.isBrace=!0,q=!0;break}}if(I===!0)continue;break}if(p===eQ){if(C.push(k),E.push(m),m={value:"",depth:0,isGlob:!1},q===!0)continue;if(T===DB&&k===N+1){N+=2;continue}y=k+1;continue}if(B.noext!==!0&&(p===$E||p===uE||p===EB||p===mQ||p===wB)===!0&&R()===oB){if(M=m.isGlob=!0,Y=m.isExtglob=!0,q=!0,p===wB&&k===N&&(e=!0),I===!0){for(;b()!==!0&&(p=X());){if(p===wg){j=m.backslashes=!0,p=X();continue}if(p===rQ){M=m.isGlob=!0,q=!0;break}}continue}break}if(p===EB){if(T===EB&&(c=m.isGlobstar=!0),M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===mQ){if(M=m.isGlob=!0,q=!0,I===!0)continue;break}if(p===_E){for(;b()!==!0&&(AA=X());){if(AA===wg){j=m.backslashes=!0,X();continue}if(AA===gD){h=m.isBracket=!0,M=m.isGlob=!0,q=!0;break}}if(I===!0)continue;break}if(B.nonegate!==!0&&p===wB&&k===N){H=m.negated=!0,N++;continue}if(B.noparen!==!0&&p===oB){if(M=m.isGlob=!0,I===!0){for(;b()!==!0&&(p=X());){if(p===oB){j=m.backslashes=!0,p=X();continue}if(p===rQ){q=!0;break}}continue}break}if(M===!0){if(q=!0,I===!0)continue;break}}B.noext===!0&&(Y=!1,M=!1);let l=G,YA="",a="";N>0&&(YA=G.slice(0,N),G=G.slice(N),y-=N),l&&M===!0&&y>0?(l=G.slice(0,y),a=G.slice(y)):M===!0?(l="",a=G):l=G,l&&l!==""&&l!=="/"&&l!==G&&jQ(l.charCodeAt(l.length-1))&&(l=l.slice(0,-1)),B.unescape===!0&&(a&&(a=nQ.removeBackslashes(a)),l&&j===!0&&(l=nQ.removeBackslashes(l)));const J={prefix:YA,input:g,start:N,base:l,glob:a,isBrace:F,isBracket:h,isGlob:M,isExtglob:Y,isGlobstar:c,negated:H,negatedExtglob:e};if(B.tokens===!0&&(J.maxDepth=0,jQ(p)||E.push(m),J.tokens=E),B.parts===!0||B.tokens===!0){let AA;for(let n=0;n<C.length;n++){const oA=AA?AA+1:N,QA=C[n],IA=g.slice(oA,QA);B.tokens&&(n===0&&N!==0?(E[n].isPrefix=!0,E[n].value=YA):E[n].value=IA,PQ(E[n]),J.maxDepth+=E[n].depth),(n!==0||IA!=="")&&D.push(IA),AA=QA}if(AA&&AA+1<g.length){const n=g.slice(AA+1);D.push(n),B.tokens&&(E[E.length-1].value=n,PQ(E[E.length-1]),J.maxDepth+=E[E.length-1].depth)}J.slashes=C,J.parts=D}return J};var QD=BD;const Sg=cg,NA=Dg,{MAX_LENGTH:pg,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:ED,REPLACEMENTS:lQ}=Sg,DD=(g,A)=>typeof A.expandRange=="function"?A.expandRange(...g,A):(g.sort(),`[${g.join("-")}]`),zA=(g,A)=>`Missing ${g}: "${A}" - use "\\\\${A}" to match literal characters`,GB=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=lQ[g]||g;const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg;let I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);const C={type:"bos",value:"",output:B.prepend||""},E=[C],D=B.capture?"":"?:",G=NA.isWindows(A),k=Sg.globChars(G),N=Sg.extglobChars(k),{DOT_LITERAL:y,PLUS_LITERAL:F,SLASH_LITERAL:h,ONE_CHAR:M,DOTS_SLASH:Y,NO_DOT:c,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:H,QMARK_NO_DOT:e,STAR:q,START_ANCHOR:Z}=k,T=L=>`(${D}(?:(?!${Z}${L.dot?Y:y}).)*?)`,p=B.dot?"":c,m=B.dot?H:e;let b=B.bash===!0?T(B):q;B.capture&&(b=`(${b})`),typeof B.noext=="boolean"&&(B.noextglob=B.noext);const R={input:g,index:-1,start:0,dot:B.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};g=NA.removePrefix(g,R),I=g.length;const X=[],l=[],YA=[];let a=C,J;const AA=()=>R.index===I-1,n=R.peek=(L=1)=>g[R.index+L],oA=R.advance=()=>g[++R.index]||"",QA=()=>g.slice(R.index+1),IA=(L="",V=0)=>{R.consumed+=L,R.index+=V},dA=L=>{R.output+=L.output!=null?L.output:L.value,IA(L.value)},Ng=()=>{let L=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)oA(),R.start++,L++;return L%2===0?!1:(R.negated=!0,R.start++,!0)},eA=L=>{R[L]++,YA.push(L)},aA=L=>{R[L]--,YA.pop()},f=L=>{if(a.type==="globstar"){const V=R.braces>0&&(L.type==="comma"||L.type==="brace"),s=L.extglob===!0||X.length&&(L.type==="pipe"||L.type==="paren");L.type!=="slash"&&L.type!=="paren"&&!V&&!s&&(R.output=R.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=b,R.output+=a.output)}if(X.length&&L.type!=="paren"&&(X[X.length-1].inner+=L.value),(L.value||L.output)&&dA(L),a&&a.type==="text"&&L.type==="text"){a.value+=L.value,a.output=(a.output||"")+L.value;return}L.prev=a,E.push(L),a=L},mA=(L,V)=>{const s={...N[V],conditions:1,inner:""};s.prev=a,s.parens=R.parens,s.output=R.output;const x=(B.capture?"(":"")+s.open;eA("parens"),f({type:L,value:V,output:R.output?"":M}),f({type:"paren",extglob:!0,value:oA(),output:x}),X.push(s)},rA=L=>{let V=L.close+(B.capture?")":""),s;if(L.type==="negate"){let x=b;if(L.inner&&L.inner.length>1&&L.inner.includes("/")&&(x=T(B)),(x!==b||AA()||/^\)+$/.test(QA()))&&(V=L.close=`)$))${x}`),L.inner.includes("*")&&(s=QA())&&/^\.[^\\/.]+$/.test(s)){const P=GB(s,{...A,fastpaths:!1}).output;V=L.close=`)${P})${x})`}L.prev.type==="bos"&&(R.negatedExtglob=!0)}f({type:"paren",extglob:!0,value:J,output:V}),aA("parens")};if(B.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let L=!1,V=g.replace(ED,(s,x,P,z,i,w)=>z==="\\"?(L=!0,s):z==="?"?x?x+z+(i?H.repeat(i.length):""):w===0?m+(i?H.repeat(i.length):""):H.repeat(P.length):z==="."?y.repeat(P.length):z==="*"?x?x+z+(i?b:""):b:x?s:`\\${s}`);return L===!0&&(B.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,s=>s.length%2===0?"\\\\":s?"\\":"")),V===g&&B.contains===!0?(R.output=g,R):(R.output=NA.wrapOutput(V,R,A),R)}for(;!AA();){if(J=oA(),J==="\0")continue;if(J==="\\"){const s=n();if(s==="/"&&B.bash!==!0||s==="."||s===";")continue;if(!s){J+="\\",f({type:"text",value:J});continue}const x=/^\\+/.exec(QA());let P=0;if(x&&x[0].length>2&&(P=x[0].length,R.index+=P,P%2!==0&&(J+="\\")),B.unescape===!0?J=oA():J+=oA(),R.brackets===0){f({type:"text",value:J});continue}}if(R.brackets>0&&(J!=="]"||a.value==="["||a.value==="[^")){if(B.posix!==!1&&J===":"){const s=a.value.slice(1);if(s.includes("[")&&(a.posix=!0,s.includes(":"))){const x=a.value.lastIndexOf("["),P=a.value.slice(0,x),z=a.value.slice(x+2),i=ID[z];if(i){a.value=P+i,R.backtrack=!0,oA(),!C.output&&E.indexOf(a)===1&&(C.output=M);continue}}}(J==="["&&n()!==":"||J==="-"&&n()==="]")&&(J=`\\${J}`),J==="]"&&(a.value==="["||a.value==="[^")&&(J=`\\${J}`),B.posix===!0&&J==="!"&&a.value==="["&&(J="^"),a.value+=J,dA({value:J});continue}if(R.quotes===1&&J!=='"'){J=NA.escapeRegex(J),a.value+=J,dA({value:J});continue}if(J==='"'){R.quotes=R.quotes===1?0:1,B.keepQuotes===!0&&f({type:"text",value:J});continue}if(J==="("){eA("parens"),f({type:"paren",value:J});continue}if(J===")"){if(R.parens===0&&B.strictBrackets===!0)throw new SyntaxError(zA("opening","("));const s=X[X.length-1];if(s&&R.parens===s.parens+1){rA(X.pop());continue}f({type:"paren",value:J,output:R.parens?")":"\\)"}),aA("parens");continue}if(J==="["){if(B.nobracket===!0||!QA().includes("]")){if(B.nobracket!==!0&&B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));J=`\\${J}`}else eA("brackets");f({type:"bracket",value:J});continue}if(J==="]"){if(B.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){f({type:"text",value:J,output:`\\${J}`});continue}if(R.brackets===0){if(B.strictBrackets===!0)throw new SyntaxError(zA("opening","["));f({type:"text",value:J,output:`\\${J}`});continue}aA("brackets");const s=a.value.slice(1);if(a.posix!==!0&&s[0]==="^"&&!s.includes("/")&&(J=`/${J}`),a.value+=J,dA({value:J}),B.literalBrackets===!1||NA.hasRegexChars(s))continue;const x=NA.escapeRegex(a.value);if(R.output=R.output.slice(0,-a.value.length),B.literalBrackets===!0){R.output+=x,a.value=x;continue}a.value=`(${D}${x}|${a.value})`,R.output+=a.value;continue}if(J==="{"&&B.nobrace!==!0){eA("braces");const s={type:"brace",value:J,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};l.push(s),f(s);continue}if(J==="}"){const s=l[l.length-1];if(B.nobrace===!0||!s){f({type:"text",value:J,output:J});continue}let x=")";if(s.dots===!0){const P=E.slice(),z=[];for(let i=P.length-1;i>=0&&(E.pop(),P[i].type!=="brace");i--)P[i].type!=="dots"&&z.unshift(P[i].value);x=DD(z,B),R.backtrack=!0}if(s.comma!==!0&&s.dots!==!0){const P=R.output.slice(0,s.outputIndex),z=R.tokens.slice(s.tokensIndex);s.value=s.output="\\{",J=x="\\}",R.output=P;for(const i of z)R.output+=i.output||i.value}f({type:"brace",value:J,output:x}),aA("braces"),l.pop();continue}if(J==="|"){X.length>0&&X[X.length-1].conditions++,f({type:"text",value:J});continue}if(J===","){let s=J;const x=l[l.length-1];x&&YA[YA.length-1]==="braces"&&(x.comma=!0,s="|"),f({type:"comma",value:J,output:s});continue}if(J==="/"){if(a.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",E.pop(),a=C;continue}f({type:"slash",value:J,output:h});continue}if(J==="."){if(R.braces>0&&a.type==="dot"){a.value==="."&&(a.output=y);const s=l[l.length-1];a.type="dots",a.output+=J,a.value+=J,s.dots=!0;continue}if(R.braces+R.parens===0&&a.type!=="bos"&&a.type!=="slash"){f({type:"text",value:J,output:y});continue}f({type:"dot",value:J,output:y});continue}if(J==="?"){if(!(a&&a.value==="(")&&B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("qmark",J);continue}if(a&&a.type==="paren"){const x=n();let P=J;if(x==="<"&&!NA.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(QA()))&&(P=`\\${J}`),f({type:"text",value:J,output:P});continue}if(B.dot!==!0&&(a.type==="slash"||a.type==="bos")){f({type:"qmark",value:J,output:e});continue}f({type:"qmark",value:J,output:H});continue}if(J==="!"){if(B.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){mA("negate",J);continue}if(B.nonegate!==!0&&R.index===0){Ng();continue}}if(J==="+"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){mA("plus",J);continue}if(a&&a.value==="("||B.regex===!1){f({type:"plus",value:J,output:F});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||R.parens>0){f({type:"plus",value:J});continue}f({type:"plus",value:F});continue}if(J==="@"){if(B.noextglob!==!0&&n()==="("&&n(2)!=="?"){f({type:"at",extglob:!0,value:J,output:""});continue}f({type:"text",value:J});continue}if(J!=="*"){(J==="$"||J==="^")&&(J=`\\${J}`);const s=CD.exec(QA());s&&(J+=s[0],R.index+=s[0].length),f({type:"text",value:J});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=J,a.output=b,R.backtrack=!0,R.globstar=!0,IA(J);continue}let L=QA();if(B.noextglob!==!0&&/^\([^?]/.test(L)){mA("star",J);continue}if(a.type==="star"){if(B.noglobstar===!0){IA(J);continue}const s=a.prev,x=s.prev,P=s.type==="slash"||s.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(B.bash===!0&&(!P||L[0]&&L[0]!=="/")){f({type:"star",value:J,output:""});continue}const i=R.braces>0&&(s.type==="comma"||s.type==="brace"),w=X.length&&(s.type==="pipe"||s.type==="paren");if(!P&&s.type!=="paren"&&!i&&!w){f({type:"star",value:J,output:""});continue}for(;L.slice(0,3)==="/**";){const o=g[R.index+4];if(o&&o!=="/")break;L=L.slice(3),IA("/**",3)}if(s.type==="bos"&&AA()){a.type="globstar",a.value+=J,a.output=T(B),R.output=a.output,R.globstar=!0,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!z&&AA()){R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=T(B)+(B.strictSlashes?")":"|$)"),a.value+=J,R.globstar=!0,R.output+=s.output+a.output,IA(J);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&L[0]==="/"){const o=L[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(s.output+a.output).length),s.output=`(?:${s.output}`,a.type="globstar",a.output=`${T(B)}${h}|${h}${o})`,a.value+=J,R.output+=s.output+a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&L[0]==="/"){a.type="globstar",a.value+=J,a.output=`(?:^|${h}|${T(B)}${h})`,R.output=a.output,R.globstar=!0,IA(J+oA()),f({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-a.output.length),a.type="globstar",a.output=T(B),a.value+=J,R.output+=a.output,R.globstar=!0,IA(J);continue}const V={type:"star",value:J,output:b};if(B.bash===!0){V.output=".*?",(a.type==="bos"||a.type==="slash")&&(V.output=p+V.output),f(V);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&B.regex===!0){V.output=J,f(V);continue}(R.index===R.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(R.output+=S,a.output+=S):B.dot===!0?(R.output+=j,a.output+=j):(R.output+=p,a.output+=p),n()!=="*"&&(R.output+=M,a.output+=M)),f(V)}for(;R.brackets>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","]"));R.output=NA.escapeLast(R.output,"["),aA("brackets")}for(;R.parens>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing",")"));R.output=NA.escapeLast(R.output,"("),aA("parens")}for(;R.braces>0;){if(B.strictBrackets===!0)throw new SyntaxError(zA("closing","}"));R.output=NA.escapeLast(R.output,"{"),aA("braces")}if(B.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&f({type:"maybe_slash",value:"",output:`${h}?`}),R.backtrack===!0){R.output="";for(const L of R.tokens)R.output+=L.output!=null?L.output:L.value,L.suffix&&(R.output+=L.suffix)}return R};GB.fastpaths=(g,A)=>{const B={...A},Q=typeof B.maxLength=="number"?Math.min(pg,B.maxLength):pg,I=g.length;if(I>Q)throw new SyntaxError(`Input length: ${I}, exceeds maximum allowed length: ${Q}`);g=lQ[g]||g;const C=NA.isWindows(A),{DOT_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:G,DOTS_SLASH:k,NO_DOT:N,NO_DOTS:y,NO_DOTS_SLASH:F,STAR:h,START_ANCHOR:M}=Sg.globChars(C),Y=B.dot?y:N,c=B.dot?F:N,S=B.capture?"":"?:",j={negated:!1,prefix:""};let H=B.bash===!0?".*?":h;B.capture&&(H=`(${H})`);const e=p=>p.noglobstar===!0?H:`(${S}(?:(?!${M}${p.dot?k:E}).)*?)`,q=p=>{switch(p){case"*":return`${Y}${G}${H}`;case".*":return`${E}${G}${H}`;case"*.*":return`${Y}${H}${E}${G}${H}`;case"*/*":return`${Y}${H}${D}${G}${c}${H}`;case"**":return Y+e(B);case"**/*":return`(?:${Y}${e(B)}${D})?${c}${G}${H}`;case"**/*.*":return`(?:${Y}${e(B)}${D})?${c}${H}${E}${G}${H}`;case"**/.*":return`(?:${Y}${e(B)}${D})?${E}${G}${H}`;default:{const m=/^(.*?)\.(\w+)$/.exec(p);if(!m)return;const b=q(m[1]);return b?b+E+m[2]:void 0}}},Z=NA.removePrefix(g,j);let T=q(Z);return T&&B.strictSlashes!==!0&&(T+=`${D}?`),T};var wD=GB;const iD=kA.default,oD=QD,kB=wD,NB=Dg,GD=cg,kD=g=>g&&typeof g=="object"&&!Array.isArray(g),_=(g,A,B=!1)=>{if(Array.isArray(g)){const N=g.map(F=>_(F,A,B));return F=>{for(const h of N){const M=h(F);if(M)return M}return!1}}const Q=kD(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!Q)throw new TypeError("Expected pattern to be a non-empty string");const I=A||{},C=NB.isWindows(A),E=Q?_.compileRe(g,A):_.makeRe(g,A,!1,!0),D=E.state;delete E.state;let G=()=>!1;if(I.ignore){const N={...A,ignore:null,onMatch:null,onResult:null};G=_(I.ignore,N,B)}const k=(N,y=!1)=>{const{isMatch:F,match:h,output:M}=_.test(N,E,A,{glob:g,posix:C}),Y={glob:g,state:D,regex:E,posix:C,input:N,output:M,match:h,isMatch:F};return typeof I.onResult=="function"&&I.onResult(Y),F===!1?(Y.isMatch=!1,y?Y:!1):G(N)?(typeof I.onIgnore=="function"&&I.onIgnore(Y),Y.isMatch=!1,y?Y:!1):(typeof I.onMatch=="function"&&I.onMatch(Y),y?Y:!0)};return B&&(k.state=D),k};_.test=(g,A,B,{glob:Q,posix:I}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const C=B||{},E=C.format||(I?NB.toPosixSlashes:null);let D=g===Q,G=D&&E?E(g):g;return D===!1&&(G=E?E(g):g,D=G===Q),(D===!1||C.capture===!0)&&(C.matchBase===!0||C.basename===!0?D=_.matchBase(g,A,B,I):D=A.exec(G)),{isMatch:Boolean(D),match:D,output:G}},_.matchBase=(g,A,B,Q=NB.isWindows(B))=>(A instanceof RegExp?A:_.makeRe(A,B)).test(iD.basename(g)),_.isMatch=(g,A,B)=>_(A,B)(g),_.parse=(g,A)=>Array.isArray(g)?g.map(B=>_.parse(B,A)):kB(g,{...A,fastpaths:!1}),_.scan=(g,A)=>oD(g,A),_.compileRe=(g,A,B=!1,Q=!1)=>{if(B===!0)return g.output;const I=A||{},C=I.contains?"":"^",E=I.contains?"":"$";let D=`${C}(?:${g.output})${E}`;g&&g.negated===!0&&(D=`^(?!${D}).*$`);const G=_.toRegex(D,A);return Q===!0&&(G.state=g),G},_.makeRe=(g,A={},B=!1,Q=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");let I={negated:!1,fastpaths:!0};return A.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(I.output=kB.fastpaths(g,A)),I.output||(I=kB(g,A)),_.compileRe(I,A,B,Q)},_.toRegex=(g,A)=>{try{const B=A||{};return new RegExp(g,B.flags||(B.nocase?"i":""))}catch(B){if(A&&A.debug===!0)throw B;return/$^/}},_.constants=GD;var ND=_;(function(g){g.exports=ND})(dQ);const VQ=AQ.default,zQ=ZE,HA=dQ.exports,FB=Dg,XQ=g=>g===""||g==="./",u=(g,A,B)=>{A=[].concat(A),g=[].concat(g);let Q=new Set,I=new Set,C=new Set,E=0,D=N=>{C.add(N.output),B&&B.onResult&&B.onResult(N)};for(let N=0;N<A.length;N++){let y=HA(String(A[N]),{...B,onResult:D},!0),F=y.state.negated||y.state.negatedExtglob;F&&E++;for(let h of g){let M=y(h,!0);!(F?!M.isMatch:M.isMatch)||(F?Q.add(M.output):(Q.delete(M.output),I.add(M.output)))}}let k=(E===A.length?[...C]:[...I]).filter(N=>!Q.has(N));if(B&&k.length===0){if(B.failglob===!0)throw new Error(`No matches found for "${A.join(", ")}"`);if(B.nonull===!0||B.nullglob===!0)return B.unescape?A.map(N=>N.replace(/\\/g,"")):A}return k};u.match=u,u.matcher=(g,A)=>HA(g,A),u.isMatch=(g,A,B)=>HA(A,B)(g),u.any=u.isMatch,u.not=(g,A,B={})=>{A=[].concat(A).map(String);let Q=new Set,I=[],C=D=>{B.onResult&&B.onResult(D),I.push(D.output)},E=new Set(u(g,A,{...B,onResult:C}));for(let D of I)E.has(D)||Q.add(D);return[...Q]},u.contains=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);if(Array.isArray(A))return A.some(Q=>u.contains(g,Q,B));if(typeof A=="string"){if(XQ(g)||XQ(A))return!1;if(g.includes(A)||g.startsWith("./")&&g.slice(2).includes(A))return!0}return u.isMatch(g,A,{...B,contains:!0})},u.matchKeys=(g,A,B)=>{if(!FB.isObject(g))throw new TypeError("Expected the first argument to be an object");let Q=u(Object.keys(g),A,B),I={};for(let C of Q)I[C]=g[C];return I},u.some=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(Q.some(E=>C(E)))return!0}return!1},u.every=(g,A,B)=>{let Q=[].concat(g);for(let I of[].concat(A)){let C=HA(String(I),B);if(!Q.every(E=>C(E)))return!1}return!0},u.all=(g,A,B)=>{if(typeof g!="string")throw new TypeError(`Expected a string: "${VQ.inspect(g)}"`);return[].concat(A).every(Q=>HA(Q,B)(g))},u.capture=(g,A,B)=>{let Q=FB.isWindows(B),C=HA.makeRe(String(g),{...B,capture:!0}).exec(Q?FB.toPosixSlashes(A):A);if(C)return C.slice(1).map(E=>E===void 0?"":E)},u.makeRe=(...g)=>HA.makeRe(...g),u.scan=(...g)=>HA.scan(...g),u.parse=(g,A)=>{let B=[];for(let Q of[].concat(g||[]))for(let I of zQ(String(Q),A))B.push(HA.parse(I,A));return B},u.braces=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return A&&A.nobrace===!0||!/\{.*\}/.test(g)?[g]:zQ(g,A)},u.braceExpand=(g,A)=>{if(typeof g!="string")throw new TypeError("Expected a string");return u.braces(g,{...A,expand:!0})};var FD=u;Object.defineProperty(d,"__esModule",{value:!0}),d.matchAny=d.convertPatternsToRe=d.makeRe=d.getPatternParts=d.expandBraceExpansion=d.expandPatternsWithBraceExpansion=d.isAffectDepthOfReadingPattern=d.endsWithSlashGlobStar=d.hasGlobStar=d.getBaseDirectory=d.isPatternRelatedToParentDirectory=d.getPatternsOutsideCurrentDirectory=d.getPatternsInsideCurrentDirectory=d.getPositivePatterns=d.getNegativePatterns=d.isPositivePattern=d.isNegativePattern=d.convertToNegativePattern=d.convertToPositivePattern=d.isDynamicPattern=d.isStaticPattern=void 0;const MD=kA.default,aD=XC,MB=FD,uQ="**",JD="\\",RD=/[*?]|^!/,KD=/\[[^[]*]/,yD=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YD=/[!*+?@]\([^(]*\)/,sD=/,|\.\./;function vQ(g,A={}){return!_Q(g,A)}d.isStaticPattern=vQ;function _Q(g,A={}){return g===""?!1:!!(A.caseSensitiveMatch===!1||g.includes(JD)||RD.test(g)||KD.test(g)||yD.test(g)||A.extglob!==!1&&YD.test(g)||A.braceExpansion!==!1&&UD(g))}d.isDynamicPattern=_Q;function UD(g){const A=g.indexOf("{");if(A===-1)return!1;const B=g.indexOf("}",A+1);if(B===-1)return!1;const Q=g.slice(A,B);return sD.test(Q)}function LD(g){return tg(g)?g.slice(1):g}d.convertToPositivePattern=LD;function hD(g){return"!"+g}d.convertToNegativePattern=hD;function tg(g){return g.startsWith("!")&&g[1]!=="("}d.isNegativePattern=tg;function $Q(g){return!tg(g)}d.isPositivePattern=$Q;function qD(g){return g.filter(tg)}d.getNegativePatterns=qD;function HD(g){return g.filter($Q)}d.getPositivePatterns=HD;function cD(g){return g.filter(A=>!aB(A))}d.getPatternsInsideCurrentDirectory=cD;function SD(g){return g.filter(aB)}d.getPatternsOutsideCurrentDirectory=SD;function aB(g){return g.startsWith("..")||g.startsWith("./..")}d.isPatternRelatedToParentDirectory=aB;function pD(g){return aD(g,{flipBackslashes:!1})}d.getBaseDirectory=pD;function tD(g){return g.includes(uQ)}d.hasGlobStar=tD;function AI(g){return g.endsWith("/"+uQ)}d.endsWithSlashGlobStar=AI;function OD(g){const A=MD.basename(g);return AI(g)||vQ(A)}d.isAffectDepthOfReadingPattern=OD;function TD(g){return g.reduce((A,B)=>A.concat(gI(B)),[])}d.expandPatternsWithBraceExpansion=TD;function gI(g){return MB.braces(g,{expand:!0,nodupes:!0})}d.expandBraceExpansion=gI;function xD(g,A){let{parts:B}=MB.scan(g,Object.assign(Object.assign({},A),{parts:!0}));return B.length===0&&(B=[g]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}d.getPatternParts=xD;function BI(g,A){return MB.makeRe(g,A)}d.makeRe=BI;function dD(g,A){return g.map(B=>BI(B,A))}d.convertPatternsToRe=dD;function WD(g,A){return A.some(B=>B.test(g))}d.matchAny=WD;var Og={};const ZD=ag.default,QI=ZD.PassThrough,fD=Array.prototype.slice;var bD=nD;function nD(){const g=[],A=fD.call(arguments);let B=!1,Q=A[A.length-1];Q&&!Array.isArray(Q)&&Q.pipe==null?A.pop():Q={};const I=Q.end!==!1,C=Q.pipeError===!0;Q.objectMode==null&&(Q.objectMode=!0),Q.highWaterMark==null&&(Q.highWaterMark=64*1024);const E=QI(Q);function D(){for(let N=0,y=arguments.length;N<y;N++)g.push(II(arguments[N],Q));return G(),this}function G(){if(B)return;B=!0;let N=g.shift();if(!N){process.nextTick(k);return}Array.isArray(N)||(N=[N]);let y=N.length+1;function F(){--y>0||(B=!1,G())}function h(M){function Y(){M.removeListener("merge2UnpipeEnd",Y),M.removeListener("end",Y),C&&M.removeListener("error",c),F()}function c(S){E.emit("error",S)}if(M._readableState.endEmitted)return F();M.on("merge2UnpipeEnd",Y),M.on("end",Y),C&&M.on("error",c),M.pipe(E,{end:!1}),M.resume()}for(let M=0;M<N.length;M++)h(N[M]);F()}function k(){B=!1,E.emit("queueDrain"),I&&E.end()}return E.setMaxListeners(0),E.add=D,E.on("unpipe",function(N){N.emit("merge2UnpipeEnd")}),A.length&&D.apply(null,A),E}function II(g,A){if(Array.isArray(g))for(let B=0,Q=g.length;B<Q;B++)g[B]=II(g[B],A);else{if(!g._readableState&&g.pipe&&(g=g.pipe(QI(A))),!g._readableState||!g.pause||!g.pipe)throw new Error("Only readable stream can be merged.");g.pause()}return g}Object.defineProperty(Og,"__esModule",{value:!0}),Og.merge=void 0;const eD=bD;function mD(g){const A=eD(g);return g.forEach(B=>{B.once("error",Q=>A.emit("error",Q))}),A.once("close",()=>CI(g)),A.once("end",()=>CI(g)),A}Og.merge=mD;function CI(g){g.forEach(A=>A.emit("close"))}var XA={};Object.defineProperty(XA,"__esModule",{value:!0}),XA.isEmpty=XA.isString=void 0;function rD(g){return typeof g=="string"}XA.isString=rD;function jD(g){return g===""}XA.isEmpty=jD,Object.defineProperty(v,"__esModule",{value:!0}),v.string=v.stream=v.pattern=v.path=v.fs=v.errno=v.array=void 0;const PD=lA;v.array=PD;const lD=Ug;v.errno=lD;const VD=Lg;v.fs=VD;const zD=hA;v.path=zD;const XD=d;v.pattern=XD;const uD=Og;v.stream=uD;const vD=XA;v.string=vD,Object.defineProperty(BA,"__esModule",{value:!0}),BA.convertPatternGroupToTask=BA.convertPatternGroupsToTasks=BA.groupPatternsByBaseDirectory=BA.getNegativePatternsAsPositive=BA.getPositivePatterns=BA.convertPatternsToTasks=BA.generate=void 0;const tA=v;function _D(g,A){const B=EI(g),Q=DI(g,A.ignore),I=B.filter(G=>tA.pattern.isStaticPattern(G,A)),C=B.filter(G=>tA.pattern.isDynamicPattern(G,A)),E=JB(I,Q,!1),D=JB(C,Q,!0);return E.concat(D)}BA.generate=_D;function JB(g,A,B){const Q=[],I=tA.pattern.getPatternsOutsideCurrentDirectory(g),C=tA.pattern.getPatternsInsideCurrentDirectory(g),E=RB(I),D=RB(C);return Q.push(...KB(E,A,B)),"."in D?Q.push(yB(".",C,A,B)):Q.push(...KB(D,A,B)),Q}BA.convertPatternsToTasks=JB;function EI(g){return tA.pattern.getPositivePatterns(g)}BA.getPositivePatterns=EI;function DI(g,A){return tA.pattern.getNegativePatterns(g).concat(A).map(tA.pattern.convertToPositivePattern)}BA.getNegativePatternsAsPositive=DI;function RB(g){const A={};return g.reduce((B,Q)=>{const I=tA.pattern.getBaseDirectory(Q);return I in B?B[I].push(Q):B[I]=[Q],B},A)}BA.groupPatternsByBaseDirectory=RB;function KB(g,A,B){return Object.keys(g).map(Q=>yB(Q,g[Q],A,B))}BA.convertPatternGroupsToTasks=KB;function yB(g,A,B,Q){return{dynamic:Q,positive:A,negative:B,base:g,patterns:[].concat(A,B.map(tA.pattern.convertToNegativePattern))}}BA.convertPatternGroupToTask=yB;var uA={};Object.defineProperty(uA,"__esModule",{value:!0}),uA.removeDuplicateSlashes=uA.transform=void 0;const $D=/(?!^)\/{2,}/g;function Aw(g){return g.map(A=>wI(A))}uA.transform=Aw;function wI(g){return g.replace($D,"/")}uA.removeDuplicateSlashes=wI;var YB={},Tg={},wA={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.read=void 0;function gw(g,A,B){A.fs.lstat(g,(Q,I)=>{if(Q!==null){iI(B,Q);return}if(!I.isSymbolicLink()||!A.followSymbolicLink){sB(B,I);return}A.fs.stat(g,(C,E)=>{if(C!==null){if(A.throwErrorOnBrokenSymbolicLink){iI(B,C);return}sB(B,I);return}A.markSymbolicLink&&(E.isSymbolicLink=()=>!0),sB(B,E)})})}xg.read=gw;function iI(g,A){g(A)}function sB(g,A){g(null,A)}var dg={};Object.defineProperty(dg,"__esModule",{value:!0}),dg.read=void 0;function Bw(g,A){const B=A.fs.lstatSync(g);if(!B.isSymbolicLink()||!A.followSymbolicLink)return B;try{const Q=A.fs.statSync(g);return A.markSymbolicLink&&(Q.isSymbolicLink=()=>!0),Q}catch(Q){if(!A.throwErrorOnBrokenSymbolicLink)return B;throw Q}}dg.read=Bw;var UB={},oI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(oI),Object.defineProperty(UB,"__esModule",{value:!0});const Qw=oI;class Iw{constructor(A={}){this._options=A,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(A,B){return A??B}}UB.default=Iw,Object.defineProperty(wA,"__esModule",{value:!0}),wA.statSync=wA.stat=wA.Settings=void 0;const GI=xg,Cw=dg,LB=UB;wA.Settings=LB.default;function Ew(g,A,B){if(typeof A=="function"){GI.read(g,hB(),A);return}GI.read(g,hB(A),B)}wA.stat=Ew;function Dw(g,A){const B=hB(A);return Cw.read(g,B)}wA.statSync=Dw;function hB(g={}){return g instanceof LB.default?g:new LB.default(g)}var yA={},qB={},Wg={},cA={},TA={};/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let kI;var ww=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:gg.commonjsGlobal):g=>(kI||(kI=Promise.resolve())).then(g).catch(A=>setTimeout(()=>{throw A},0));/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var iw=Gw;const ow=ww;function Gw(g,A){let B,Q,I,C=!0;Array.isArray(g)?(B=[],Q=g.length):(I=Object.keys(g),B={},Q=I.length);function E(G){function k(){A&&A(G,B),A=null}C?ow(k):k()}function D(G,k,N){B[G]=N,(--Q===0||k)&&E(k)}Q?I?I.forEach(function(G){g[G](function(k,N){D(G,k,N)})}):g.forEach(function(G,k){G(function(N,y){D(k,N,y)})}):E(null),C=!1}var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const Zg=process.versions.node.split(".");if(Zg[0]===void 0||Zg[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const NI=Number.parseInt(Zg[0],10),kw=Number.parseInt(Zg[1],10),FI=10,Nw=10,Fw=NI>FI,Mw=NI===FI&&kw>=Nw;ig.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Fw||Mw;var og={},fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.createDirentFromStats=void 0;class aw{constructor(A,B){this.name=A,this.isBlockDevice=B.isBlockDevice.bind(B),this.isCharacterDevice=B.isCharacterDevice.bind(B),this.isDirectory=B.isDirectory.bind(B),this.isFIFO=B.isFIFO.bind(B),this.isFile=B.isFile.bind(B),this.isSocket=B.isSocket.bind(B),this.isSymbolicLink=B.isSymbolicLink.bind(B)}}function Jw(g,A){return new aw(g,A)}fg.createDirentFromStats=Jw,Object.defineProperty(og,"__esModule",{value:!0}),og.fs=void 0;const Rw=fg;og.fs=Rw;var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.joinPathSegments=void 0;function Kw(g,A,B){return g.endsWith(B)?g+A:g+B+A}Gg.joinPathSegments=Kw,Object.defineProperty(TA,"__esModule",{value:!0}),TA.readdir=TA.readdirWithFileTypes=TA.read=void 0;const yw=wA,MI=iw,Yw=ig,aI=og,JI=Gg;function sw(g,A,B){if(!A.stats&&Yw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){RI(g,A,B);return}KI(g,A,B)}TA.read=sw;function RI(g,A,B){A.fs.readdir(g,{withFileTypes:!0},(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(D=>({dirent:D,name:D.name,path:JI.joinPathSegments(g,D.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){HB(B,C);return}const E=C.map(D=>Uw(D,A));MI(E,(D,G)=>{if(D!==null){bg(B,D);return}HB(B,G)})})}TA.readdirWithFileTypes=RI;function Uw(g,A){return B=>{if(!g.dirent.isSymbolicLink()){B(null,g);return}A.fs.stat(g.path,(Q,I)=>{if(Q!==null){if(A.throwErrorOnBrokenSymbolicLink){B(Q);return}B(null,g);return}g.dirent=aI.fs.createDirentFromStats(g.name,I),B(null,g)})}}function KI(g,A,B){A.fs.readdir(g,(Q,I)=>{if(Q!==null){bg(B,Q);return}const C=I.map(E=>{const D=JI.joinPathSegments(g,E,A.pathSegmentSeparator);return G=>{yw.stat(D,A.fsStatSettings,(k,N)=>{if(k!==null){G(k);return}const y={name:E,path:D,dirent:aI.fs.createDirentFromStats(E,N)};A.stats&&(y.stats=N),G(null,y)})}});MI(C,(E,D)=>{if(E!==null){bg(B,E);return}HB(B,D)})})}TA.readdir=KI;function bg(g,A){g(A)}function HB(g,A){g(null,A)}var xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.readdir=xA.readdirWithFileTypes=xA.read=void 0;const Lw=wA,hw=ig,yI=og,YI=Gg;function qw(g,A){return!A.stats&&hw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?sI(g,A):UI(g,A)}xA.read=qw;function sI(g,A){return A.fs.readdirSync(g,{withFileTypes:!0}).map(Q=>{const I={dirent:Q,name:Q.name,path:YI.joinPathSegments(g,Q.name,A.pathSegmentSeparator)};if(I.dirent.isSymbolicLink()&&A.followSymbolicLinks)try{const C=A.fs.statSync(I.path);I.dirent=yI.fs.createDirentFromStats(I.name,C)}catch(C){if(A.throwErrorOnBrokenSymbolicLink)throw C}return I})}xA.readdirWithFileTypes=sI;function UI(g,A){return A.fs.readdirSync(g).map(Q=>{const I=YI.joinPathSegments(g,Q,A.pathSegmentSeparator),C=Lw.statSync(I,A.fsStatSettings),E={name:Q,path:I,dirent:yI.fs.createDirentFromStats(Q,C)};return A.stats&&(E.stats=C),E})}xA.readdir=UI;var cB={},LI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.createFileSystemAdapter=g.FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default;g.FILE_SYSTEM_ADAPTER={lstat:A.lstat,stat:A.stat,lstatSync:A.lstatSync,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};function B(Q){return Q===void 0?g.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},g.FILE_SYSTEM_ADAPTER),Q)}g.createFileSystemAdapter=B})(LI),Object.defineProperty(cB,"__esModule",{value:!0});const Hw=kA.default,cw=wA,Sw=LI;class pw{constructor(A={}){this._options=A,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}cB.default=pw,Object.defineProperty(cA,"__esModule",{value:!0}),cA.Settings=cA.scandirSync=cA.scandir=void 0;const hI=TA,tw=xA,SB=cB;cA.Settings=SB.default;function Ow(g,A,B){if(typeof A=="function"){hI.read(g,pB(),A);return}hI.read(g,pB(A),B)}cA.scandir=Ow;function Tw(g,A){const B=pB(A);return tw.read(g,B)}cA.scandirSync=Tw;function pB(g={}){return g instanceof SB.default?g:new SB.default(g)}var tB={exports:{}};function xw(g){var A=new g,B=A;function Q(){var C=A;return C.next?A=C.next:(A=new g,B=A),C.next=null,C}function I(C){B.next=C,B=C}return{get:Q,release:I}}var dw=xw,Ww=dw;function qI(g,A,B){if(typeof g=="function"&&(B=A,A=g,g=null),B<1)throw new Error("fastqueue concurrency must be greater than 1");var Q=Ww(Zw),I=null,C=null,E=0,D=null,G={push:Y,drain:FA,saturated:FA,pause:N,paused:!1,concurrency:B,running:k,resume:h,idle:M,length:y,getQueue:F,unshift:c,empty:FA,kill:j,killAndDrain:H,error:e};return G;function k(){return E}function N(){G.paused=!0}function y(){for(var q=I,Z=0;q;)q=q.next,Z++;return Z}function F(){for(var q=I,Z=[];q;)Z.push(q.value),q=q.next;return Z}function h(){if(!!G.paused){G.paused=!1;for(var q=0;q<G.concurrency;q++)E++,S()}}function M(){return E===0&&G.length()===0}function Y(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,T.errorHandler=D,E===G.concurrency||G.paused?C?(C.next=T,C=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function c(q,Z){var T=Q.get();T.context=g,T.release=S,T.value=q,T.callback=Z||FA,E===G.concurrency||G.paused?I?(T.next=I,I=T):(I=T,C=T,G.saturated()):(E++,A.call(g,T.value,T.worked))}function S(q){q&&Q.release(q);var Z=I;Z?G.paused?E--:(C===I&&(C=null),I=Z.next,Z.next=null,A.call(g,Z.value,Z.worked),C===null&&G.empty()):--E===0&&G.drain()}function j(){I=null,C=null,G.drain=FA}function H(){I=null,C=null,G.drain(),G.drain=FA}function e(q){D=q}}function FA(){}function Zw(){this.value=null,this.callback=FA,this.next=null,this.release=FA,this.context=null,this.errorHandler=null;var g=this;this.worked=function(B,Q){var I=g.callback,C=g.errorHandler,E=g.value;g.value=null,g.callback=FA,g.errorHandler&&C(B,E),I.call(g.context,B,Q),g.release(g)}}function fw(g,A,B){typeof g=="function"&&(B=A,A=g,g=null);function Q(N,y){A.call(this,N).then(function(F){y(null,F)},y)}var I=qI(g,Q,B),C=I.push,E=I.unshift;return I.push=D,I.unshift=G,I.drained=k,I;function D(N){var y=new Promise(function(F,h){C(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function G(N){var y=new Promise(function(F,h){E(N,function(M,Y){if(M){h(M);return}F(Y)})});return y.catch(FA),y}function k(){var N=I.drain,y=new Promise(function(F){I.drain=function(){N(),F()}});return y}}tB.exports=qI,tB.exports.promise=fw;var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.joinPathSegments=MA.replacePathSegmentSeparator=MA.isAppliedFilter=MA.isFatalError=void 0;function bw(g,A){return g.errorFilter===null?!0:!g.errorFilter(A)}MA.isFatalError=bw;function nw(g,A){return g===null||g(A)}MA.isAppliedFilter=nw;function ew(g,A){return g.split(/[/\\]/).join(A)}MA.replacePathSegmentSeparator=ew;function mw(g,A,B){return g===""?A:g.endsWith(B)?g+A:g+B+A}MA.joinPathSegments=mw;var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const rw=MA;class jw{constructor(A,B){this._root=A,this._settings=B,this._root=rw.replacePathSegmentSeparator(A,B.pathSegmentSeparator)}}ng.default=jw,Object.defineProperty(Wg,"__esModule",{value:!0});const Pw=uI.default,lw=cA,Vw=tB.exports,eg=MA,zw=ng;class Xw extends zw.default{constructor(A,B){super(A,B),this._settings=B,this._scandir=lw.scandir,this._emitter=new Pw.EventEmitter,this._queue=Vw(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(A){this._emitter.on("entry",A)}onError(A){this._emitter.once("error",A)}onEnd(A){this._emitter.once("end",A)}_pushToQueue(A,B){const Q={directory:A,base:B};this._queue.push(Q,I=>{I!==null&&this._handleError(I)})}_worker(A,B){this._scandir(A.directory,this._settings.fsScandirSettings,(Q,I)=>{if(Q!==null){B(Q,void 0);return}for(const C of I)this._handleEntry(C,A.base);B(null,void 0)})}_handleError(A){this._isDestroyed||!eg.isFatalError(this._settings,A)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",A))}_handleEntry(A,B){if(this._isDestroyed||this._isFatalError)return;const Q=A.path;B!==void 0&&(A.path=eg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),eg.isAppliedFilter(this._settings.entryFilter,A)&&this._emitEntry(A),A.dirent.isDirectory()&&eg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_emitEntry(A){this._emitter.emit("entry",A)}}Wg.default=Xw,Object.defineProperty(qB,"__esModule",{value:!0});const uw=Wg;class vw{constructor(A,B){this._root=A,this._settings=B,this._reader=new uw.default(this._root,this._settings),this._storage=[]}read(A){this._reader.onError(B=>{_w(A,B)}),this._reader.onEntry(B=>{this._storage.push(B)}),this._reader.onEnd(()=>{$w(A,this._storage)}),this._reader.read()}}qB.default=vw;function _w(g,A){g(A)}function $w(g,A){g(null,A)}var OB={};Object.defineProperty(OB,"__esModule",{value:!0});const Ai=ag.default,gi=Wg;class Bi{constructor(A,B){this._root=A,this._settings=B,this._reader=new gi.default(this._root,this._settings),this._stream=new Ai.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(A=>{this._stream.emit("error",A)}),this._reader.onEntry(A=>{this._stream.push(A)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}OB.default=Bi;var TB={},xB={};Object.defineProperty(xB,"__esModule",{value:!0});const Qi=cA,mg=MA,Ii=ng;class Ci extends Ii.default{constructor(){super(...arguments),this._scandir=Qi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(A,B){this._queue.add({directory:A,base:B})}_handleQueue(){for(const A of this._queue.values())this._handleDirectory(A.directory,A.base)}_handleDirectory(A,B){try{const Q=this._scandir(A,this._settings.fsScandirSettings);for(const I of Q)this._handleEntry(I,B)}catch(Q){this._handleError(Q)}}_handleError(A){if(!!mg.isFatalError(this._settings,A))throw A}_handleEntry(A,B){const Q=A.path;B!==void 0&&(A.path=mg.joinPathSegments(B,A.name,this._settings.pathSegmentSeparator)),mg.isAppliedFilter(this._settings.entryFilter,A)&&this._pushToStorage(A),A.dirent.isDirectory()&&mg.isAppliedFilter(this._settings.deepFilter,A)&&this._pushToQueue(Q,B===void 0?void 0:A.path)}_pushToStorage(A){this._storage.push(A)}}xB.default=Ci,Object.defineProperty(TB,"__esModule",{value:!0});const Ei=xB;class Di{constructor(A,B){this._root=A,this._settings=B,this._reader=new Ei.default(this._root,this._settings)}read(){return this._reader.read()}}TB.default=Di;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const wi=kA.default,ii=cA;class oi{constructor(A={}){this._options=A,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,wi.sep),this.fsScandirSettings=new ii.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(A,B){return A??B}}dB.default=oi,Object.defineProperty(yA,"__esModule",{value:!0}),yA.Settings=yA.walkStream=yA.walkSync=yA.walk=void 0;const HI=qB,Gi=OB,ki=TB,WB=dB;yA.Settings=WB.default;function Ni(g,A,B){if(typeof A=="function"){new HI.default(g,rg()).read(A);return}new HI.default(g,rg(A)).read(B)}yA.walk=Ni;function Fi(g,A){const B=rg(A);return new ki.default(g,B).read()}yA.walkSync=Fi;function Mi(g,A){const B=rg(A);return new Gi.default(g,B).read()}yA.walkStream=Mi;function rg(g={}){return g instanceof WB.default?g:new WB.default(g)}var jg={};Object.defineProperty(jg,"__esModule",{value:!0});const ai=kA.default,Ji=wA,cI=v;class Ri{constructor(A){this._settings=A,this._fsStatSettings=new Ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(A){return ai.resolve(this._settings.cwd,A)}_makeEntry(A,B){const Q={name:B,path:B,dirent:cI.fs.createDirentFromStats(B,A)};return this._settings.stats&&(Q.stats=A),Q}_isFatalError(A){return!cI.errno.isEnoentCodeError(A)&&!this._settings.suppressErrors}}jg.default=Ri,Object.defineProperty(Tg,"__esModule",{value:!0});const Ki=ag.default,yi=wA,Yi=yA,si=jg;class Ui extends si.default{constructor(){super(...arguments),this._walkStream=Yi.walkStream,this._stat=yi.stat}dynamic(A,B){return this._walkStream(A,B)}static(A,B){const Q=A.map(this._getFullEntryPath,this),I=new Ki.PassThrough({objectMode:!0});I._write=(C,E,D)=>this._getEntry(Q[C],A[C],B).then(G=>{G!==null&&B.entryFilter(G)&&I.push(G),C===Q.length-1&&I.end(),D()}).catch(D);for(let C=0;C<Q.length;C++)I.write(C);return I}_getEntry(A,B,Q){return this._getStat(A).then(I=>this._makeEntry(I,B)).catch(I=>{if(Q.errorFilter(I))return null;throw I})}_getStat(A){return new Promise((B,Q)=>{this._stat(A,this._fsStatSettings,(I,C)=>I===null?B(C):Q(I))})}}Tg.default=Ui;var kg={},ZB={},fB={},bB={};Object.defineProperty(bB,"__esModule",{value:!0});const vA=v;class Li{constructor(A,B,Q){this._patterns=A,this._settings=B,this._micromatchOptions=Q,this._storage=[],this._fillStorage()}_fillStorage(){const A=vA.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const B of A){const Q=this._getPatternSegments(B),I=this._splitSegmentsIntoSections(Q);this._storage.push({complete:I.length<=1,pattern:B,segments:Q,sections:I})}}_getPatternSegments(A){return vA.pattern.getPatternParts(A,this._micromatchOptions).map(Q=>vA.pattern.isDynamicPattern(Q,this._settings)?{dynamic:!0,pattern:Q,patternRe:vA.pattern.makeRe(Q,this._micromatchOptions)}:{dynamic:!1,pattern:Q})}_splitSegmentsIntoSections(A){return vA.array.splitWhen(A,B=>B.dynamic&&vA.pattern.hasGlobStar(B.pattern))}}bB.default=Li,Object.defineProperty(fB,"__esModule",{value:!0});const hi=bB;class qi extends hi.default{match(A){const B=A.split("/"),Q=B.length,I=this._storage.filter(C=>!C.complete||C.segments.length>Q);for(const C of I){const E=C.sections[0];if(!C.complete&&Q>E.length||B.every((G,k)=>{const N=C.segments[k];return!!(N.dynamic&&N.patternRe.test(G)||!N.dynamic&&N.pattern===G)}))return!0}return!1}}fB.default=qi,Object.defineProperty(ZB,"__esModule",{value:!0});const Pg=v,Hi=fB;class ci{constructor(A,B){this._settings=A,this._micromatchOptions=B}getFilter(A,B,Q){const I=this._getMatcher(B),C=this._getNegativePatternsRe(Q);return E=>this._filter(A,E,I,C)}_getMatcher(A){return new Hi.default(A,this._settings,this._micromatchOptions)}_getNegativePatternsRe(A){const B=A.filter(Pg.pattern.isAffectDepthOfReadingPattern);return Pg.pattern.convertPatternsToRe(B,this._micromatchOptions)}_filter(A,B,Q,I){if(this._isSkippedByDeep(A,B.path)||this._isSkippedSymbolicLink(B))return!1;const C=Pg.path.removeLeadingDotSegment(B.path);return this._isSkippedByPositivePatterns(C,Q)?!1:this._isSkippedByNegativePatterns(C,I)}_isSkippedByDeep(A,B){return this._settings.deep===1/0?!1:this._getEntryLevel(A,B)>=this._settings.deep}_getEntryLevel(A,B){const Q=B.split("/").length;if(A==="")return Q;const I=A.split("/").length;return Q-I}_isSkippedSymbolicLink(A){return!this._settings.followSymbolicLinks&&A.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(A,B){return!this._settings.baseNameMatch&&!B.match(A)}_isSkippedByNegativePatterns(A,B){return!Pg.pattern.matchAny(A,B)}}ZB.default=ci;var nB={};Object.defineProperty(nB,"__esModule",{value:!0});const bA=v;class Si{constructor(A,B){this._settings=A,this._micromatchOptions=B,this.index=new Map}getFilter(A,B){const Q=bA.pattern.convertPatternsToRe(A,this._micromatchOptions),I=bA.pattern.convertPatternsToRe(B,this._micromatchOptions);return C=>this._filter(C,Q,I)}_filter(A,B,Q){if(this._settings.unique&&this._isDuplicateEntry(A)||this._onlyFileFilter(A)||this._onlyDirectoryFilter(A)||this._isSkippedByAbsoluteNegativePatterns(A.path,Q))return!1;const I=this._settings.baseNameMatch?A.name:A.path,C=this._isMatchToPatterns(I,B)&&!this._isMatchToPatterns(A.path,Q);return this._settings.unique&&C&&this._createIndexRecord(A),C}_isDuplicateEntry(A){return this.index.has(A.path)}_createIndexRecord(A){this.index.set(A.path,void 0)}_onlyFileFilter(A){return this._settings.onlyFiles&&!A.dirent.isFile()}_onlyDirectoryFilter(A){return this._settings.onlyDirectories&&!A.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(A,B){if(!this._settings.absolute)return!1;const Q=bA.path.makeAbsolute(this._settings.cwd,A);return bA.pattern.matchAny(Q,B)}_isMatchToPatterns(A,B){const Q=bA.path.removeLeadingDotSegment(A);return bA.pattern.matchAny(Q,B)||bA.pattern.matchAny(Q+"/",B)}}nB.default=Si;var eB={};Object.defineProperty(eB,"__esModule",{value:!0});const pi=v;class ti{constructor(A){this._settings=A}getFilter(){return A=>this._isNonFatalError(A)}_isNonFatalError(A){return pi.errno.isEnoentCodeError(A)||this._settings.suppressErrors}}eB.default=ti;var mB={};Object.defineProperty(mB,"__esModule",{value:!0});const SI=v;class Oi{constructor(A){this._settings=A}getTransformer(){return A=>this._transform(A)}_transform(A){let B=A.path;return this._settings.absolute&&(B=SI.path.makeAbsolute(this._settings.cwd,B),B=SI.path.unixify(B)),this._settings.markDirectories&&A.dirent.isDirectory()&&(B+="/"),this._settings.objectMode?Object.assign(Object.assign({},A),{path:B}):B}}mB.default=Oi,Object.defineProperty(kg,"__esModule",{value:!0});const Ti=kA.default,xi=ZB,di=nB,Wi=eB,Zi=mB;class fi{constructor(A){this._settings=A,this.errorFilter=new Wi.default(this._settings),this.entryFilter=new di.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xi.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Zi.default(this._settings)}_getRootDirectory(A){return Ti.resolve(this._settings.cwd,A.base)}_getReaderOptions(A){const B=A.base==="."?"":A.base;return{basePath:B,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(B,A.positive,A.negative),entryFilter:this.entryFilter.getFilter(A.positive,A.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}}}kg.default=fi,Object.defineProperty(YB,"__esModule",{value:!0});const bi=Tg,ni=kg;class ei extends ni.default{constructor(){super(...arguments),this._reader=new bi.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=[];return new Promise((C,E)=>{const D=this.api(B,A,Q);D.once("error",E),D.on("data",G=>I.push(Q.transform(G))),D.once("end",()=>C(I))})}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}YB.default=ei;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const mi=ag.default,ri=Tg,ji=kg;class Pi extends ji.default{constructor(){super(...arguments),this._reader=new ri.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A),I=this.api(B,A,Q),C=new mi.Readable({objectMode:!0,read:()=>{}});return I.once("error",E=>C.emit("error",E)).on("data",E=>C.emit("data",Q.transform(E))).once("end",()=>C.emit("end")),C.once("close",()=>I.destroy()),C}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}rB.default=Pi;var jB={},PB={};Object.defineProperty(PB,"__esModule",{value:!0});const li=wA,Vi=yA,zi=jg;class Xi extends zi.default{constructor(){super(...arguments),this._walkSync=Vi.walkSync,this._statSync=li.statSync}dynamic(A,B){return this._walkSync(A,B)}static(A,B){const Q=[];for(const I of A){const C=this._getFullEntryPath(I),E=this._getEntry(C,I,B);E===null||!B.entryFilter(E)||Q.push(E)}return Q}_getEntry(A,B,Q){try{const I=this._getStat(A);return this._makeEntry(I,B)}catch(I){if(Q.errorFilter(I))return null;throw I}}_getStat(A){return this._statSync(A,this._fsStatSettings)}}PB.default=Xi,Object.defineProperty(jB,"__esModule",{value:!0});const ui=PB,vi=kg;class _i extends vi.default{constructor(){super(...arguments),this._reader=new ui.default(this._settings)}read(A){const B=this._getRootDirectory(A),Q=this._getReaderOptions(A);return this.api(B,A,Q).map(Q.transform)}api(A,B,Q){return B.dynamic?this._reader.dynamic(A,Q):this._reader.static(B.patterns,Q)}}jB.default=_i;var pI={};(function(g){Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const A=Mg.default,B=$B.default,Q=Math.max(B.cpus().length,1);g.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:A.lstat,lstatSync:A.lstatSync,stat:A.stat,statSync:A.statSync,readdir:A.readdir,readdirSync:A.readdirSync};class I{constructor(E={}){this._options=E,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,Q),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)}_getValue(E,D){return E===void 0?D:E}_getFileSystemMethods(E={}){return Object.assign(Object.assign({},g.DEFAULT_FILE_SYSTEM_ADAPTER),E)}}g.default=I})(pI);const tI=BA,OI=uA,$i=YB,Ao=rB,go=jB,lB=pI,nA=v;async function VB(g,A){_A(g);const B=zB(g,$i.default,A),Q=await Promise.all(B);return nA.array.flatten(Q)}(function(g){function A(E,D){_A(E);const G=zB(E,go.default,D);return nA.array.flatten(G)}g.sync=A;function B(E,D){_A(E);const G=zB(E,Ao.default,D);return nA.stream.merge(G)}g.stream=B;function Q(E,D){_A(E);const G=OI.transform([].concat(E)),k=new lB.default(D);return tI.generate(G,k)}g.generateTasks=Q;function I(E,D){_A(E);const G=new lB.default(D);return nA.pattern.isDynamicPattern(E,G)}g.isDynamicPattern=I;function C(E){return _A(E),nA.path.escape(E)}g.escapePath=C})(VB||(VB={}));function zB(g,A,B){const Q=OI.transform([].concat(g)),I=new lB.default(B),C=tI.generate(Q,I),E=new A(I);return C.map(E.read,E)}function _A(g){if(![].concat(g).every(Q=>nA.string.isString(Q)&&!nA.string.isEmpty(Q)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}var Bo=VB,Qo=Bo;let XB;process.on("message",async g=>{g.method==="exit"&&ZI.exit(0),typeof XB>"u"&&(XB=await lg.exports.TaploLsp.initialize({cwd:()=>process.cwd(),envVar:A=>process.env[A],findConfigFile:A=>{const B=[".taplo.toml","taplo.toml"];for(const Q of B)try{const I=kA.default.join(A,Q);return Mg.default.accessSync(I),I}catch{}},glob:A=>Qo.sync(A),isAbsolute:A=>kA.default.isAbsolute(A),now:()=>new Date,readFile:A=>_B.default.readFile(A),writeFile:(A,B)=>_B.default.writeFile(A,B),stderr:process.stderr,stdErrAtty:()=>process.stderr.isTTY,stdin:process.stdin,stdout:process.stdout,urlToFilePath:A=>{const B=decodeURIComponent(A).slice(7);return process.platform==="win32"&&B.startsWith("/")?B.slice(1):B},fetch:{fetch:GQ,Headers:OA,Request:$A,Response:iA}},{onMessage(A){process.send(A)}})),XB.send(g)}),process.on("unhandledRejection",g=>{throw g}),exports.File=QQ,exports.FormData=Rg;
RuntimeError: unreachable
at wasm://wasm/00f6ca2e:wasm-function[2582]:0x2dd44b
at wasm://wasm/00f6ca2e:wasm-function[4362]:0x3178e5
at wasm://wasm/00f6ca2e:wasm-function[3344]:0x2ff3bc
at wasm://wasm/00f6ca2e:wasm-function[1526]:0x288242
at wasm://wasm/00f6ca2e:wasm-function[364]:0x1862ea
at Object.oA [as create_lsp] (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:1788)
at Function.initialize (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:2:5404443)
at async process.<anonymous> (/home/infinity/.vscode-oss/extensions/tamasfe.even-better-toml-0.18.0/dist/server.js:40:61194)
[Error - 02:38:50] The Even Better TOML LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 02:38:50] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Even Better TOML LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 02:38:50] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment