function _(s,i){const n={type:1,children:[]};let t=0,r=n;const u=[],f=new S(s);for(;!f.eos();){let d=f.next();const l=d==="\\"&&C(f.peek(),i)!==0;if(l&&(d=f.next()),!l&&v(d,i)&&d===f.peek()){f.advance(),r.type===2&&(r=u.pop());const o=C(d,i);if(r.type===o||r.type===5&&o===6)r=u.pop();else{const c={type:o,children:[]};o===5&&(c.index=t,t++),r.children.push(c),u.push(r),r=c}}else if(d===`
`)r.type===2&&(r=u.pop()),r.children.push({type:8});else if(r.type!==2){const o={type:2,content:d};r.children.push(o),u.push(r),r=o}else r.content+=d}return r.type===2&&(r=u.pop()),u.length,n}
")?O.substr(0,O.length-2):O}function b(O,x){return function(W,U){return typeof W=="string"&&W.endsWith(O)?x:null}}function w(O,x){const W=`/${O}`,U=`\\${O}`,F=function(Y,ne){return typeof Y!="string"?null:ne?ne===O?x:null:Y===O||Y.endsWith(W)||Y.endsWith(U)?x:null},G=[O];return F.basenames=G,F.patterns=[x],F.allBasenames=G,F}function E(O,x){const W=P(O.slice(1,-1).split(",").map(ne=>g(ne,x)).filter(ne=>ne!==a),O),U=W.length;if(!U)return a;if(U===1)return W[0];const F=function(ne,se){for(let J=0,q=W.length;J<q;J++)if(W[J](ne,se))return O;return null},G=W.find(ne=>!!ne.allBasenames);G&&(F.allBasenames=G.allBasenames);const Y=W.reduce((ne,se)=>se.allPaths?ne.concat(se.allPaths):ne,[]);return Y.length&&(F.allPaths=Y),F}function k(O,x,W){const U=D.sep===D.posix.sep,F=U?O:O.replace(C,D.sep),G=D.sep+F,Y=D.posix.sep+O;let ne;return W?ne=function(se,J){return typeof se=="string"&&(se===F||se.endsWith(G)||!U&&(se===O||se.endsWith(Y)))?x:null}:ne=function(se,J){return typeof se=="string"&&(se===F||!U&&se===O)?x:null},ne.allPaths=[(W?"