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