function p(t,i){const n={type:1,children:[]};let l=0,c=n;const r=[],s=new w(t);for(;!s.eos();){let o=s.next();const a=o==="\\"&&g(s.peek(),i)!==0;if(a&&(o=s.next()),!a&&h(o,i)&&o===s.peek()){s.advance(),c.type===2&&(c=r.pop());const d=g(o,i);if(c.type===d||c.type===5&&d===6)c=r.pop();else{const u={type:d,children:[]};d===5&&(u.index=l,l++),c.children.push(u),r.push(c),c=u}}else if(o===`
`)c.type===2&&(c=r.pop()),c.children.push({type:8});else if(c.type!==2){const d={type:2,content:o};c.children.push(d),r.push(c),c=d}else c.content+=o}return c.type===2&&(c=r.pop()),r.length,n}
")?P.substr(0,P.length-2):P}function _(P,F){const W=`/${P}`,A=`\\${P}`,H=function(X,G){return typeof X!="string"?null:G?G===P?F:null:X===P||X.endsWith(W)||X.endsWith(A)?F:null},q=[P];return H.basenames=q,H.patterns=[F],H.allBasenames=q,H}function L(P,F){const W=R(P.slice(1,-1).split(",").map(G=>S(G,F)).filter(G=>G!==f),P),A=W.length;if(!A)return f;if(A===1)return W[0];const H=function(G,re){for(let ae=0,oe=W.length;ae<oe;ae++)if(W[ae](G,re))return P;return null},q=W.find(G=>!!G.allBasenames);q&&(H.allBasenames=q.allBasenames);const X=W.reduce((G,re)=>re.allPaths?G.concat(re.allPaths):G,[]);return X.length&&(H.allPaths=X),H}function E(P,F,W){const A=I.sep===I.posix.sep,H=A?P:P.replace(g,I.sep),q=I.sep+H,X=I.posix.sep+P,G=W?function(re,ae){return typeof re=="string"&&(re===H||re.endsWith(q)||!A&&(re===P||re.endsWith(X)))?F:null}:function(re,ae){return typeof re=="string"&&(re===H||!A&&re===P)?F:null};return G.allPaths=[(W?"