diff --git a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js index 183e0ff470..932bd4419b 100644 --- a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js +++ b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js @@ -3,11 +3,11 @@ module.exports = { name: "@yarnpkg/plugin-bud", factory: function (require) { -var plugin=(()=>{var JA=Object.create;var ws=Object.defineProperty;var e1=Object.getOwnPropertyDescriptor;var t1=Object.getOwnPropertyNames;var n1=Object.getPrototypeOf,r1=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var L=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Tp=(t,n)=>{for(var i in n)ws(t,i,{get:n[i],enumerable:!0})},Op=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of t1(n))!r1.call(t,u)&&u!==i&&ws(t,u,{get:()=>n[u],enumerable:!(o=e1(n,u))||o.enumerable});return t};var He=(t,n,i)=>(i=t!=null?JA(n1(t)):{},Op(n||!t||!t.__esModule?ws(i,"default",{value:t,enumerable:!0}):i,t)),i1=t=>Op(ws({},"__esModule",{value:!0}),t);var Dp=L((tL,kp)=>{kp.exports={description:"Configurable, extensible build tools for modern single and multi-page web applications",logo:"https://cdn.roots.io/app/uploads/logo-bud.svg",name:"bud.js",organization:{favicon:"https://roots.io/favicon.ico",name:"Roots Software Foundation LLC",site:"https://roots.io",twitter:"https://twitter.com/rootswp"},sponsors:[{image:"https://cdn.roots.io/app/uploads/km-digital.svg",title:"KM Digital",url:"https://k-m.com/"},{image:"https://cdn.roots.io/app/uploads/carrot.svg",title:"Carrot",url:"https://carrot.com/"},{image:"https://cdn.roots.io/app/uploads/wordpress.svg",title:"WordPress.com",url:"https://wordpress.com/"},{image:"https://cdn.roots.io/app/uploads/pantheon.svg",title:"Pantheon",url:"https://pantheon.io/"},{image:"https://cdn.roots.io/app/uploads/worksite-safety.svg",title:"Worksite Safety",url:"https://worksitesafety.ca/careers/"},{image:"https://cdn.roots.io/app/uploads/copia-digital.svg",title:"Copia Digital",url:"https://www.copiadigital.com/"}],url:{discourse:"https://discourse.roots.io/c/bud/24",docs:"https://bud.js.org",git:"git@github.com:roots/bud",web:"https://github.com/roots/bud"}}});var Ea=L((gL,Up)=>{"use strict";var s1=q("stream"),Bp=s1.PassThrough,o1=Array.prototype.slice;Up.exports=u1;function u1(){let t=[],n=o1.call(arguments),i=!1,o=n[n.length-1];o&&!Array.isArray(o)&&o.pipe==null?n.pop():o={};let u=o.end!==!1,c=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let f=Bp(o);function h(){for(let v=0,x=arguments.length;v0||(i=!1,g())}function H(O){function D(){O.removeListener("merge2UnpipeEnd",D),O.removeListener("end",D),c&&O.removeListener("error",j),S()}function j(W){f.emit("error",W)}if(O._readableState.endEmitted)return S();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",j),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function a1(t){return t.reduce((n,i)=>[].concat(n,i),[])}lr.flatten=a1;function c1(t,n){let i=[[]],o=0;for(let u of t)n(u)?(o++,i[o]=[]):i[o].push(u);return i}lr.splitWhen=c1});var Kp=L(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isEnoentCodeError=void 0;function l1(t){return t.code==="ENOENT"}Ss.isEnoentCodeError=l1});var jp=L(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.createDirentFromStats=void 0;var Aa=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function f1(t,n){return new Aa(t,n)}xs.createDirentFromStats=f1});var Qp=L(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.convertPosixPathToPattern=Ne.convertWindowsPathToPattern=Ne.convertPathToPattern=Ne.escapePosixPath=Ne.escapeWindowsPath=Ne.escape=Ne.removeLeadingDotSegment=Ne.makeAbsolute=Ne.unixify=void 0;var h1=q("os"),p1=q("path"),Xp=h1.platform()==="win32",d1=2,g1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,m1=/(\\?)([(){}]|^!|[!+@](?=\())/g,_1=/^\\\\([.?])/,y1=/\\(?![!()+@{}])/g;function v1(t){return t.replace(/\\/g,"/")}Ne.unixify=v1;function b1(t,n){return p1.resolve(t,n)}Ne.makeAbsolute=b1;function w1(t){if(t.charAt(0)==="."){let n=t.charAt(1);if(n==="/"||n==="\\")return t.slice(d1)}return t}Ne.removeLeadingDotSegment=w1;Ne.escape=Xp?Ra:Ca;function Ra(t){return t.replace(m1,"\\$2")}Ne.escapeWindowsPath=Ra;function Ca(t){return t.replace(g1,"\\$2")}Ne.escapePosixPath=Ca;Ne.convertPathToPattern=Xp?zp:Yp;function zp(t){return Ra(t).replace(_1,"//$1").replace(y1,"/")}Ne.convertWindowsPathToPattern=zp;function Yp(t){return Ca(t)}Ne.convertPosixPathToPattern=Yp});var Vp=L((bL,Zp)=>{Zp.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}});var td=L((wL,ed)=>{var S1=Vp(),Jp={"{":"}","(":")","[":"]"},x1=function(t){if(t[0]==="!")return!0;for(var n=0,i=-2,o=-2,u=-2,c=-2,f=-2;nn&&(f===-1||f>o||(f=t.indexOf("\\",n),f===-1||f>o)))||u!==-1&&t[n]==="{"&&t[n+1]!=="}"&&(u=t.indexOf("}",n),u>n&&(f=t.indexOf("\\",n),f===-1||f>u))||c!==-1&&t[n]==="("&&t[n+1]==="?"&&/[:!=]/.test(t[n+2])&&t[n+3]!==")"&&(c=t.indexOf(")",n),c>n&&(f=t.indexOf("\\",n),f===-1||f>c))||i!==-1&&t[n]==="("&&t[n+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[n]==="\\"){var h=t[n+1];n+=2;var g=Jp[h];if(g){var _=t.indexOf(g,n);_!==-1&&(n=_+1)}if(t[n]==="!")return!0}else n++}return!1},E1=function(t){if(t[0]==="!")return!0;for(var n=0;n{"use strict";var A1=td(),R1=q("path").posix.dirname,C1=q("os").platform()==="win32",Pa="/",P1=/\\/g,T1=/[\{\[].*[\}\]]$/,O1=/(^|[^\\])([\{\[]|\([^\)]+$)/,I1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;nd.exports=function(n,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&C1&&n.indexOf(Pa)<0&&(n=n.replace(P1,Pa)),T1.test(n)&&(n+=Pa),n+="a";do n=R1(n);while(A1(n)||O1.test(n));return n.replace(I1,"$1")}});var Es=L(Et=>{"use strict";Et.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Et.find=(t,n)=>t.nodes.find(i=>i.type===n);Et.exceedsLimit=(t,n,i=1,o)=>o===!1||!Et.isInteger(t)||!Et.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=o;Et.escapeNode=(t,n=0,i)=>{let o=t.nodes[n];!o||(i&&o.type===i||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};Et.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Et.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Et.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Et.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);Et.flatten=(...t)=>{let n=[],i=o=>{for(let u=0;u{"use strict";var id=Es();sd.exports=(t,n={})=>{let i=(o,u={})=>{let c=n.escapeInvalid&&id.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h="";if(o.value)return(c||f)&&id.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let g of o.nodes)h+=i(g);return h};return i(t)}});var ud=L((AL,od)=>{"use strict";od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var md=L((RL,gd)=>{"use strict";var ad=ud(),$n=(t,n,i)=>{if(ad(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||t===n)return String(t);if(ad(n)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...i};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let u=String(o.relaxZeros),c=String(o.shorthand),f=String(o.capture),h=String(o.wrap),g=t+":"+n+"="+u+c+f+h;if($n.cache.hasOwnProperty(g))return $n.cache[g].result;let _=Math.min(t,n),v=Math.max(t,n);if(Math.abs(_-v)===1){let D=t+"|"+n;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let x=dd(t)||dd(n),S={min:t,max:n,a:_,b:v},H=[],O=[];if(x&&(S.isPadded=x,S.maxLen=String(S.max).length),_<0){let D=v<0?Math.abs(v):1;O=cd(D,Math.abs(_),S,o),_=S.a=0}return v>=0&&(H=cd(_,v,S,o)),S.negatives=O,S.positives=H,S.result=L1(O,H,o),o.capture===!0?S.result=`(${S.result})`:o.wrap!==!1&&H.length+O.length>1&&(S.result=`(?:${S.result})`),$n.cache[g]=S,S.result};function L1(t,n,i){let o=Ta(t,n,"-",!1,i)||[],u=Ta(n,t,"",!1,i)||[],c=Ta(t,n,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function k1(t,n){let i=1,o=1,u=fd(t,i),c=new Set([n]);for(;t<=u&&u<=n;)c.add(u),i+=1,u=fd(t,i);for(u=hd(n+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+pd(h.count),f=_+1;continue}i.isPadded&&(x=F1(_,i,o)),v.string=x+v.pattern+pd(v.count),c.push(v),f=_+1,h=v}return c}function Ta(t,n,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!ld(n,"string",h)&&c.push(i+h),o&&ld(n,"string",h)&&c.push(i+h)}return c}function N1(t,n){let i=[];for(let o=0;on?1:n>t?-1:0}function ld(t,n,i){return t.some(o=>o[n]===i)}function fd(t,n){return Number(String(t).slice(0,-n)+"9".repeat(n))}function hd(t,n){return t-t%Math.pow(10,n)}function pd(t){let[n=0,i=""]=t;return i||n>1?`{${n+(i?","+i:"")}}`:""}function M1(t,n,i){return`[${t}${n-t===1?"":"-"}${n}]`}function dd(t){return/^-?(0+)\d/.test(t)}function F1(t,n,i){if(!n.isPadded)return t;let o=Math.abs(n.maxLen-String(t).length),u=i.relaxZeros!==!1;switch(o){case 0:return"";case 1:return u?"0?":"0";case 2:return u?"0{0,2}":"00";default:return u?`0{0,${o}}`:`0{${o}}`}}$n.cache={};$n.clearCache=()=>$n.cache={};gd.exports=$n});var La=L((CL,Ed)=>{"use strict";var q1=q("util"),vd=md(),_d=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),H1=t=>n=>t===!0?Number(n):String(n),Oa=t=>typeof t=="number"||typeof t=="string"&&t!=="",hi=t=>Number.isInteger(+t),Ia=t=>{let n=`${t}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},B1=(t,n,i)=>typeof t=="string"||typeof n=="string"?!0:i.stringify===!0,W1=(t,n,i)=>{if(n>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?n-1:n,"0")}return i===!1?String(t):t},yd=(t,n)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),n--);t.length{t.negatives.sort((f,h)=>fh?1:0),t.positives.sort((f,h)=>fh?1:0);let i=n.capture?"":"?:",o="",u="",c;return t.positives.length&&(o=t.positives.join("|")),t.negatives.length&&(u=`-(${i}${t.negatives.join("|")})`),o&&u?c=`${o}|${u}`:c=o||u,n.wrap?`(${i}${c})`:c},bd=(t,n,i,o)=>{if(i)return vd(t,n,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===n)return u;let c=String.fromCharCode(n);return`[${u}-${c}]`},wd=(t,n,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return vd(t,n,i)},Sd=(...t)=>new RangeError("Invalid range arguments: "+q1.inspect(...t)),xd=(t,n,i)=>{if(i.strictRanges===!0)throw Sd([t,n]);return[]},G1=(t,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},K1=(t,n,i=1,o={})=>{let u=Number(t),c=Number(n);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw Sd([t,n]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(n),_=String(i);i=Math.max(Math.abs(i),1);let v=Ia(h)||Ia(g)||Ia(_),x=v?Math.max(h.length,g.length,_.length):0,S=v===!1&&B1(t,n,o)===!1,H=o.transform||H1(S);if(o.toRegex&&i===1)return bd(yd(t,x),yd(n,x),!0,o);let O={negatives:[],positives:[]},D=te=>O[te<0?"negatives":"positives"].push(Math.abs(te)),j=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):j.push(W1(H(u,W),x,S)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?U1(O,o):wd(j,null,{wrap:!1,...o}):j},j1=(t,n,i=1,o={})=>{if(!hi(t)&&t.length>1||!hi(n)&&n.length>1)return xd(t,n,o);let u=o.transform||(S=>String.fromCharCode(S)),c=`${t}`.charCodeAt(0),f=`${n}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return bd(g,_,!1,o);let v=[],x=0;for(;h?c>=f:c<=f;)v.push(u(c,x)),c=h?c-i:c+i,x++;return o.toRegex===!0?wd(v,null,{wrap:!1,options:o}):v},Rs=(t,n,i,o={})=>{if(n==null&&Oa(t))return[t];if(!Oa(t)||!Oa(n))return xd(t,n,o);if(typeof i=="function")return Rs(t,n,1,{transform:i});if(_d(i))return Rs(t,n,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,hi(i)?hi(t)&&hi(n)?K1(t,n,i,u):j1(t,n,Math.max(Math.abs(i),1),u):i!=null&&!_d(i)?G1(i,u):Rs(t,n,1,i)};Ed.exports=Rs});var Cd=L((PL,Rd)=>{"use strict";var X1=La(),Ad=Es(),z1=(t,n={})=>{let i=(o,u={})=>{let c=Ad.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h=c===!0||f===!0,g=n.escapeInvalid===!0?"\\":"",_="";if(o.isOpen===!0||o.isClose===!0)return g+o.value;if(o.type==="open")return h?g+o.value:"(";if(o.type==="close")return h?g+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let v=Ad.reduce(o.nodes),x=X1(...v,{...n,wrap:!1,toRegex:!0});if(x.length!==0)return v.length>1&&x.length>1?`(${x})`:x}if(o.nodes)for(let v of o.nodes)_+=i(v,o);return _};return i(t)};Rd.exports=z1});var Od=L((TL,Td)=>{"use strict";var Y1=La(),Pd=As(),fr=Es(),Mn=(t="",n="",i=!1)=>{let o=[];if(t=[].concat(t),n=[].concat(n),!n.length)return t;if(!t.length)return i?fr.flatten(n).map(u=>`{${u}}`):n;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Mn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Mn(u,c,i):u+c);return fr.flatten(o)},Q1=(t,n={})=>{let i=n.rangeLimit===void 0?1e3:n.rangeLimit,o=(u,c={})=>{u.queue=[];let f=c,h=c.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,h=f.queue;if(u.invalid||u.dollar){h.push(Mn(h.pop(),Pd(u,n)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){h.push(Mn(h.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let x=fr.reduce(u.nodes);if(fr.exceedsLimit(...x,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=Y1(...x,n);S.length===0&&(S=Pd(u,n)),h.push(Mn(h.pop(),S)),u.nodes=[];return}let g=fr.encloseBrace(u),_=u.queue,v=u;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,_=v.queue;for(let x=0;x{"use strict";Id.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` -`,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"}});var Md=L((IL,$d)=>{"use strict";var Z1=As(),{MAX_LENGTH:kd,CHAR_BACKSLASH:ka,CHAR_BACKTICK:V1,CHAR_COMMA:J1,CHAR_DOT:eR,CHAR_LEFT_PARENTHESES:tR,CHAR_RIGHT_PARENTHESES:nR,CHAR_LEFT_CURLY_BRACE:rR,CHAR_RIGHT_CURLY_BRACE:iR,CHAR_LEFT_SQUARE_BRACKET:Dd,CHAR_RIGHT_SQUARE_BRACKET:Nd,CHAR_DOUBLE_QUOTE:sR,CHAR_SINGLE_QUOTE:oR,CHAR_NO_BREAK_SPACE:uR,CHAR_ZERO_WIDTH_NOBREAK_SPACE:aR}=Ld(),cR=(t,n={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=n||{},o=typeof i.maxLength=="number"?Math.min(kd,i.maxLength):kd;if(t.length>o)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${o})`);let u={type:"root",input:t,nodes:[]},c=[u],f=u,h=u,g=0,_=t.length,v=0,x=0,S,H={},O=()=>t[v++],D=j=>{if(j.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&j.type==="text"){h.value+=j.value;return}return f.nodes.push(j),j.parent=f,j.prev=h,h=j,j};for(D({type:"bos"});v<_;)if(f=c[c.length-1],S=O(),!(S===aR||S===uR)){if(S===ka){D({type:"text",value:(n.keepEscaping?S:"")+O()});continue}if(S===Nd){D({type:"text",value:"\\"+S});continue}if(S===Dd){g++;let j=!0,W;for(;v<_&&(W=O());){if(S+=W,W===Dd){g++;continue}if(W===ka){S+=O();continue}if(W===Nd&&(g--,g===0))break}D({type:"text",value:S});continue}if(S===tR){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:S});continue}if(S===nR){if(f.type!=="paren"){D({type:"text",value:S});continue}f=c.pop(),D({type:"text",value:S}),f=c[c.length-1];continue}if(S===sR||S===oR||S===V1){let j=S,W;for(n.keepQuotes!==!0&&(S="");v<_&&(W=O());){if(W===ka){S+=W+O();continue}if(W===j){n.keepQuotes===!0&&(S+=W);break}S+=W}D({type:"text",value:S});continue}if(S===rR){x++;let W={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||f.dollar===!0,depth:x,commas:0,ranges:0,nodes:[]};f=D(W),c.push(f),D({type:"open",value:S});continue}if(S===iR){if(f.type!=="brace"){D({type:"text",value:S});continue}let j="close";f=c.pop(),f.close=!0,D({type:j,value:S}),x--,f=c[c.length-1];continue}if(S===J1&&x>0){if(f.ranges>0){f.ranges=0;let j=f.nodes.shift();f.nodes=[j,{type:"text",value:Z1(f)}]}D({type:"comma",value:S}),f.commas++;continue}if(S===eR&&x>0&&f.commas===0){let j=f.nodes;if(x===0||j.length===0){D({type:"text",value:S});continue}if(h.type==="dot"){if(f.range=[],h.value+=S,h.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,h.type="text";continue}f.ranges++,f.args=[];continue}if(h.type==="range"){j.pop();let W=j[j.length-1];W.value+=h.value+S,h=W,f.ranges--;continue}D({type:"dot",value:S});continue}D({type:"text",value:S})}do if(f=c.pop(),f.type!=="root"){f.nodes.forEach(te=>{te.nodes||(te.type==="open"&&(te.isOpen=!0),te.type==="close"&&(te.isClose=!0),te.nodes||(te.type="text"),te.invalid=!0)});let j=c[c.length-1],W=j.nodes.indexOf(f);j.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};$d.exports=cR});var Hd=L((LL,qd)=>{"use strict";var Fd=As(),lR=Cd(),fR=Od(),hR=Md(),ft=(t,n={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ft.create(o,n);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ft.create(t,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(t,n={})=>hR(t,n);ft.stringify=(t,n={})=>Fd(typeof t=="string"?ft.parse(t,n):t,n);ft.compile=(t,n={})=>(typeof t=="string"&&(t=ft.parse(t,n)),lR(t,n));ft.expand=(t,n={})=>{typeof t=="string"&&(t=ft.parse(t,n));let i=fR(t,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(t,n={})=>t===""||t.length<3?[t]:n.expand!==!0?ft.compile(t,n):ft.expand(t,n);qd.exports=ft});var pi=L((kL,Kd)=>{"use strict";var pR=q("path"),Bt="\\\\/",Bd=`[^${Bt}]`,rn="\\.",dR="\\+",gR="\\?",Cs="\\/",mR="(?=.)",Wd="[^/]",Da=`(?:${Cs}|$)`,Ud=`(?:^|${Cs})`,Na=`${rn}{1,2}${Da}`,_R=`(?!${rn})`,yR=`(?!${Ud}${Na})`,vR=`(?!${rn}{0,1}${Da})`,bR=`(?!${Na})`,wR=`[^.${Cs}]`,SR=`${Wd}*?`,Gd={DOT_LITERAL:rn,PLUS_LITERAL:dR,QMARK_LITERAL:gR,SLASH_LITERAL:Cs,ONE_CHAR:mR,QMARK:Wd,END_ANCHOR:Da,DOTS_SLASH:Na,NO_DOT:_R,NO_DOTS:yR,NO_DOT_SLASH:vR,NO_DOTS_SLASH:bR,QMARK_NO_DOT:wR,STAR:SR,START_ANCHOR:Ud},xR={...Gd,SLASH_LITERAL:`[${Bt}]`,QMARK:Bd,STAR:`${Bd}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${Bt}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${Bt}])${rn}{1,2}(?:[${Bt}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${Bt}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${Bt}]|$))`,QMARK_NO_DOT:`[^.${Bt}]`,START_ANCHOR:`(?:^|[${Bt}])`,END_ANCHOR:`(?:[${Bt}]|$)`},ER={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"};Kd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ER,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:pR.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?xR:Gd}}});var di=L(rt=>{"use strict";var AR=q("path"),RR=process.platform==="win32",{REGEX_BACKSLASH:CR,REGEX_REMOVE_BACKSLASH:PR,REGEX_SPECIAL_CHARS:TR,REGEX_SPECIAL_CHARS_GLOBAL:OR}=pi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>TR.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(OR,"\\$1");rt.toPosixSlashes=t=>t.replace(CR,"/");rt.removeBackslashes=t=>t.replace(PR,n=>n==="\\"?"":n);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:RR===!0||AR.sep==="\\";rt.escapeLast=(t,n,i)=>{let o=t.lastIndexOf(n,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,n,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,n={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),n.prefix="./"),i};rt.wrapOutput=(t,n={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return n.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Jd=L((NL,Vd)=>{"use strict";var jd=di(),{CHAR_ASTERISK:$a,CHAR_AT:IR,CHAR_BACKWARD_SLASH:gi,CHAR_COMMA:LR,CHAR_DOT:Ma,CHAR_EXCLAMATION_MARK:Fa,CHAR_FORWARD_SLASH:Zd,CHAR_LEFT_CURLY_BRACE:qa,CHAR_LEFT_PARENTHESES:Ha,CHAR_LEFT_SQUARE_BRACKET:kR,CHAR_PLUS:DR,CHAR_QUESTION_MARK:Xd,CHAR_RIGHT_CURLY_BRACE:NR,CHAR_RIGHT_PARENTHESES:zd,CHAR_RIGHT_SQUARE_BRACKET:$R}=pi(),Yd=t=>t===Zd||t===gi,Qd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},MR=(t,n)=>{let i=n||{},o=t.length-1,u=i.parts===!0||i.scanToEnd===!0,c=[],f=[],h=[],g=t,_=-1,v=0,x=0,S=!1,H=!1,O=!1,D=!1,j=!1,W=!1,te=!1,z=!1,Y=!1,N=!1,ne=0,Q,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Q=G,g.charCodeAt(++_));for(;_0&&($t=g.slice(0,v),g=g.slice(v),x-=v),me&&O===!0&&x>0?(me=g.slice(0,x),A=g.slice(x)):O===!0?(me="",A=g):me=g,me&&me!==""&&me!=="/"&&me!==g&&Yd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=jd.removeBackslashes(A)),me&&te===!0&&(me=jd.removeBackslashes(me)));let R={prefix:$t,input:t,start:v,base:me,glob:A,isBrace:S,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:j,negated:z,negatedExtglob:Y};if(i.tokens===!0&&(R.maxDepth=0,Yd(G)||f.push(ue),R.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ps=pi(),ht=di(),{MAX_LENGTH:Ts,POSIX_REGEX_SOURCE:FR,REGEX_NON_SPECIAL_CHARS:qR,REGEX_SPECIAL_CHARS_BACKREF:HR,REPLACEMENTS:eg}=Ps,BR=(t,n)=>{if(typeof n.expandRange=="function")return n.expandRange(...t,n);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>ht.escapeRegex(u)).join("..")}return i},hr=(t,n)=>`Missing ${t}: "${n}" - use "\\\\${n}" to match literal characters`,Ba=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=eg[t]||t;let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);let c={type:"bos",value:"",output:i.prepend||""},f=[c],h=i.capture?"":"?:",g=ht.isWindows(n),_=Ps.globChars(g),v=Ps.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:j,NO_DOT_SLASH:W,NO_DOTS_SLASH:te,QMARK:z,QMARK_NO_DOT:Y,STAR:N,START_ANCHOR:ne}=_,Q=F=>`(${h}(?:(?!${ne}${F.dot?D:x}).)*?)`,G=i.dot?"":j,ue=i.dot?z:Y,Pe=i.bash===!0?Q(i):N;i.capture&&(Pe=`(${Pe})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);let I={input:t,index:-1,start:0,dot:i.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};t=ht.removePrefix(t,I),u=t.length;let ve=[],me=[],$t=[],A=c,R,Be=()=>I.index===u-1,fe=I.peek=(F=1)=>t[I.index+F],Ie=I.advance=()=>t[++I.index]||"",gt=()=>t.slice(I.index+1),Ye=(F="",_e=0)=>{I.consumed+=F,I.index+=_e},Gn=F=>{I.output+=F.output!=null?F.output:F.value,Ye(F.value)},an=()=>{let F=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Ie(),I.start++,F++;return F%2===0?!1:(I.negated=!0,I.start++,!0)},jt=F=>{I[F]++,$t.push(F)},Xt=F=>{I[F]--,$t.pop()},oe=F=>{if(A.type==="globstar"){let _e=I.braces>0&&(F.type==="comma"||F.type==="brace"),$=F.extglob===!0||ve.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!_e&&!$&&(I.output=I.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=Pe,I.output+=A.output)}if(ve.length&&F.type!=="paren"&&(ve[ve.length-1].inner+=F.value),(F.value||F.output)&&Gn(F),A&&A.type==="text"&&F.type==="text"){A.value+=F.value,A.output=(A.output||"")+F.value;return}F.prev=A,f.push(F),A=F},Mt=(F,_e)=>{let $={...v[_e],conditions:1,inner:""};$.prev=A,$.parens=I.parens,$.output=I.output;let Z=(i.capture?"(":"")+$.open;jt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:Z}),ve.push($)},tu=F=>{let _e=F.close+(i.capture?")":""),$;if(F.type==="negate"){let Z=Pe;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(Z=Q(i)),(Z!==Pe||Be()||/^\)+$/.test(gt()))&&(_e=F.close=`)$))${Z}`),F.inner.includes("*")&&($=gt())&&/^\.[^\\/.]+$/.test($)){let be=Ba($,{...n,fastpaths:!1}).output;_e=F.close=`)${be})${Z})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:R,output:_e}),Xt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(HR,($,Z,be,We,we,Kn)=>We==="\\"?(F=!0,$):We==="?"?Z?Z+We+(we?z.repeat(we.length):""):Kn===0?ue+(we?z.repeat(we.length):""):z.repeat(be.length):We==="."?x.repeat(be.length):We==="*"?Z?Z+We+(we?Pe:""):Pe:Z?$:`\\${$}`);return F===!0&&(i.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),_e===t&&i.contains===!0?(I.output=t,I):(I.output=ht.wrapOutput(_e,I,n),I)}for(;!Be();){if(R=Ie(),R==="\0")continue;if(R==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){R+="\\",oe({type:"text",value:R});continue}let Z=/^\\+/.exec(gt()),be=0;if(Z&&Z[0].length>2&&(be=Z[0].length,I.index+=be,be%2!==0&&(R+="\\")),i.unescape===!0?R=Ie():R+=Ie(),I.brackets===0){oe({type:"text",value:R});continue}}if(I.brackets>0&&(R!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&R===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let Z=A.value.lastIndexOf("["),be=A.value.slice(0,Z),We=A.value.slice(Z+2),we=FR[We];if(we){A.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(R==="["&&fe()!==":"||R==="-"&&fe()==="]")&&(R=`\\${R}`),R==="]"&&(A.value==="["||A.value==="[^")&&(R=`\\${R}`),i.posix===!0&&R==="!"&&A.value==="["&&(R="^"),A.value+=R,Gn({value:R});continue}if(I.quotes===1&&R!=='"'){R=ht.escapeRegex(R),A.value+=R,Gn({value:R});continue}if(R==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:R});continue}if(R==="("){jt("parens"),oe({type:"paren",value:R});continue}if(R===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(hr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){tu(ve.pop());continue}oe({type:"paren",value:R,output:I.parens?")":"\\)"}),Xt("parens");continue}if(R==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));R=`\\${R}`}else jt("brackets");oe({type:"bracket",value:R});continue}if(R==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:R,output:`\\${R}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(hr("opening","["));oe({type:"text",value:R,output:`\\${R}`});continue}Xt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(R=`/${R}`),A.value+=R,Gn({value:R}),i.literalBrackets===!1||ht.hasRegexChars($))continue;let Z=ht.escapeRegex(A.value);if(I.output=I.output.slice(0,-A.value.length),i.literalBrackets===!0){I.output+=Z,A.value=Z;continue}A.value=`(${h}${Z}|${A.value})`,I.output+=A.value;continue}if(R==="{"&&i.nobrace!==!0){jt("braces");let $={type:"brace",value:R,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(R==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:R,output:R});continue}let Z=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);Z=BR(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",R=Z="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}oe({type:"brace",value:R,output:Z}),Xt("braces"),me.pop();continue}if(R==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:R});continue}if(R===","){let $=R,Z=me[me.length-1];Z&&$t[$t.length-1]==="braces"&&(Z.comma=!0,$="|"),oe({type:"comma",value:R,output:$});continue}if(R==="/"){if(A.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),A=c;continue}oe({type:"slash",value:R,output:H});continue}if(R==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=x);let $=me[me.length-1];A.type="dots",A.output+=R,A.value+=R,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:R,output:x});continue}oe({type:"dot",value:R,output:x});continue}if(R==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",R);continue}if(A&&A.type==="paren"){let Z=fe(),be=R;if(Z==="<"&&!ht.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(be=`\\${R}`),oe({type:"text",value:R,output:be});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:R,output:Y});continue}oe({type:"qmark",value:R,output:z});continue}if(R==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",R);continue}if(i.nonegate!==!0&&I.index===0){an();continue}}if(R==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",R);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:R,output:S});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:R});continue}oe({type:"plus",value:S});continue}if(R==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:R,output:""});continue}oe({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let $=qR.exec(gt());$&&(R+=$[0],I.index+=$[0].length),oe({type:"text",value:R});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=R,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(R);continue}let F=gt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Mt("star",R);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(R);continue}let $=A.prev,Z=$.prev,be=$.type==="slash"||$.type==="bos",We=Z&&(Z.type==="star"||Z.type==="globstar");if(i.bash===!0&&(!be||F[0]&&F[0]!=="/")){oe({type:"star",value:R,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),Kn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!Kn){oe({type:"star",value:R,output:""});continue}for(;F.slice(0,3)==="/**";){let jn=t[I.index+4];if(jn&&jn!=="/")break;F=F.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){A.type="globstar",A.value+=R,A.output=Q(i),I.output=A.output,I.globstar=!0,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=Q(i)+(i.strictSlashes?")":"|$)"),A.value+=R,I.globstar=!0,I.output+=$.output+A.output,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let jn=F[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=`${Q(i)}${H}|${H}${jn})`,A.value+=R,I.output+=$.output+A.output,I.globstar=!0,Ye(R+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=R,A.output=`(?:^|${H}|${Q(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(R+Ie()),oe({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-A.output.length),A.type="globstar",A.output=Q(i),A.value+=R,I.output+=A.output,I.globstar=!0,Ye(R);continue}let _e={type:"star",value:R,output:Pe};if(i.bash===!0){_e.output=".*?",(A.type==="bos"||A.type==="slash")&&(_e.output=G+_e.output),oe(_e);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&i.regex===!0){_e.output=R,oe(_e);continue}(I.index===I.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(I.output+=W,A.output+=W):i.dot===!0?(I.output+=te,A.output+=te):(I.output+=G,A.output+=G),fe()!=="*"&&(I.output+=O,A.output+=O)),oe(_e)}for(;I.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));I.output=ht.escapeLast(I.output,"["),Xt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing",")"));I.output=ht.escapeLast(I.output,"("),Xt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing","}"));I.output=ht.escapeLast(I.output,"{"),Xt("braces")}if(i.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&oe({type:"maybe_slash",value:"",output:`${H}?`}),I.backtrack===!0){I.output="";for(let F of I.tokens)I.output+=F.output!=null?F.output:F.value,F.suffix&&(I.output+=F.suffix)}return I};Ba.fastpaths=(t,n)=>{let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=eg[t]||t;let c=ht.isWindows(n),{DOT_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:_,NO_DOT:v,NO_DOTS:x,NO_DOTS_SLASH:S,STAR:H,START_ANCHOR:O}=Ps.globChars(c),D=i.dot?x:v,j=i.dot?S:v,W=i.capture?"":"?:",te={negated:!1,prefix:""},z=i.bash===!0?".*?":H;i.capture&&(z=`(${z})`);let Y=G=>G.noglobstar===!0?z:`(${W}(?:(?!${O}${G.dot?_:f}).)*?)`,N=G=>{switch(G){case"*":return`${D}${g}${z}`;case".*":return`${f}${g}${z}`;case"*.*":return`${D}${z}${f}${g}${z}`;case"*/*":return`${D}${z}${h}${g}${j}${z}`;case"**":return D+Y(i);case"**/*":return`(?:${D}${Y(i)}${h})?${j}${g}${z}`;case"**/*.*":return`(?:${D}${Y(i)}${h})?${j}${z}${f}${g}${z}`;case"**/.*":return`(?:${D}${Y(i)}${h})?${f}${g}${z}`;default:{let ue=/^(.*?)\.(\w+)$/.exec(G);if(!ue)return;let Pe=N(ue[1]);return Pe?Pe+f+ue[2]:void 0}}},ne=ht.removePrefix(t,te),Q=N(ne);return Q&&i.strictSlashes!==!0&&(Q+=`${h}?`),Q};tg.exports=Ba});var ig=L((ML,rg)=>{"use strict";var WR=q("path"),UR=Jd(),Wa=ng(),Ua=di(),GR=pi(),KR=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,n,i=!1)=>{if(Array.isArray(t)){let v=t.map(S=>De(S,n,i));return S=>{for(let H of v){let O=H(S);if(O)return O}return!1}}let o=KR(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=n||{},c=Ua.isWindows(n),f=o?De.compileRe(t,n):De.makeRe(t,n,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...n,ignore:null,onMatch:null,onResult:null};g=De(u.ignore,v,i)}let _=(v,x=!1)=>{let{isMatch:S,match:H,output:O}=De.test(v,f,n,{glob:t,posix:c}),D={glob:t,state:h,regex:f,posix:c,input:v,output:O,match:H,isMatch:S};return typeof u.onResult=="function"&&u.onResult(D),S===!1?(D.isMatch=!1,x?D:!1):g(v)?(typeof u.onIgnore=="function"&&u.onIgnore(D),D.isMatch=!1,x?D:!1):(typeof u.onMatch=="function"&&u.onMatch(D),x?D:!0)};return i&&(_.state=h),_};De.test=(t,n,i,{glob:o,posix:u}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let c=i||{},f=c.format||(u?Ua.toPosixSlashes:null),h=t===o,g=h&&f?f(t):t;return h===!1&&(g=f?f(t):t,h=g===o),(h===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?h=De.matchBase(t,n,i,u):h=n.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,n,i,o=Ua.isWindows(i))=>(n instanceof RegExp?n:De.makeRe(n,i)).test(WR.basename(t));De.isMatch=(t,n,i)=>De(n,i)(t);De.parse=(t,n)=>Array.isArray(t)?t.map(i=>De.parse(i,n)):Wa(t,{...n,fastpaths:!1});De.scan=(t,n)=>UR(t,n);De.compileRe=(t,n,i=!1,o=!1)=>{if(i===!0)return t.output;let u=n||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,n);return o===!0&&(g.state=t),g};De.makeRe=(t,n={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return n.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=Wa.fastpaths(t,n)),u.output||(u=Wa(t,n)),De.compileRe(u,n,i,o)};De.toRegex=(t,n)=>{try{let i=n||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(n&&n.debug===!0)throw i;return/$^/}};De.constants=GR;rg.exports=De});var og=L((FL,sg)=>{"use strict";sg.exports=ig()});var fg=L((qL,lg)=>{"use strict";var ag=q("util"),cg=Hd(),Wt=og(),Ga=di(),ug=t=>t===""||t==="./",Ce=(t,n,i)=>{n=[].concat(n),t=[].concat(t);let o=new Set,u=new Set,c=new Set,f=0,h=v=>{c.add(v.output),i&&i.onResult&&i.onResult(v)};for(let v=0;v!o.has(v));if(i&&_.length===0){if(i.failglob===!0)throw new Error(`No matches found for "${n.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?n.map(v=>v.replace(/\\/g,"")):n}return _};Ce.match=Ce;Ce.matcher=(t,n)=>Wt(t,n);Ce.isMatch=(t,n,i)=>Wt(n,i)(t);Ce.any=Ce.isMatch;Ce.not=(t,n,i={})=>{n=[].concat(n).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Ce(t,n,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Ce.contains=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);if(Array.isArray(n))return n.some(o=>Ce.contains(t,o,i));if(typeof n=="string"){if(ug(t)||ug(n))return!1;if(t.includes(n)||t.startsWith("./")&&t.slice(2).includes(n))return!0}return Ce.isMatch(t,n,{...i,contains:!0})};Ce.matchKeys=(t,n,i)=>{if(!Ga.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Ce(Object.keys(t),n,i),u={};for(let c of o)u[c]=t[c];return u};Ce.some=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Ce.every=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Ce.all=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);return[].concat(n).every(o=>Wt(o,i)(t))};Ce.capture=(t,n,i)=>{let o=Ga.isWindows(i),c=Wt.makeRe(String(t),{...i,capture:!0}).exec(o?Ga.toPosixSlashes(n):n);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Ce.makeRe=(...t)=>Wt.makeRe(...t);Ce.scan=(...t)=>Wt.scan(...t);Ce.parse=(t,n)=>{let i=[];for(let o of[].concat(t||[]))for(let u of cg(String(o),n))i.push(Wt.parse(u,n));return i};Ce.braces=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(t)?[t]:cg(t,n)};Ce.braceExpand=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ce.braces(t,{...n,expand:!0})};lg.exports=Ce});var vg=L(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.removeDuplicateSlashes=re.matchAny=re.convertPatternsToRe=re.makeRe=re.getPatternParts=re.expandBraceExpansion=re.expandPatternsWithBraceExpansion=re.isAffectDepthOfReadingPattern=re.endsWithSlashGlobStar=re.hasGlobStar=re.getBaseDirectory=re.isPatternRelatedToParentDirectory=re.getPatternsOutsideCurrentDirectory=re.getPatternsInsideCurrentDirectory=re.getPositivePatterns=re.getNegativePatterns=re.isPositivePattern=re.isNegativePattern=re.convertToNegativePattern=re.convertToPositivePattern=re.isDynamicPattern=re.isStaticPattern=void 0;var jR=q("path"),XR=rd(),Ka=fg(),hg="**",zR="\\",YR=/[*?]|^!/,QR=/\[[^[]*]/,ZR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VR=/[!*+?@]\([^(]*\)/,JR=/,|\.\./,eC=/(?!^)\/{2,}/g;function pg(t,n={}){return!dg(t,n)}re.isStaticPattern=pg;function dg(t,n={}){return t===""?!1:!!(n.caseSensitiveMatch===!1||t.includes(zR)||YR.test(t)||QR.test(t)||ZR.test(t)||n.extglob!==!1&&VR.test(t)||n.braceExpansion!==!1&&tC(t))}re.isDynamicPattern=dg;function tC(t){let n=t.indexOf("{");if(n===-1)return!1;let i=t.indexOf("}",n+1);if(i===-1)return!1;let o=t.slice(n,i);return JR.test(o)}function nC(t){return Os(t)?t.slice(1):t}re.convertToPositivePattern=nC;function rC(t){return"!"+t}re.convertToNegativePattern=rC;function Os(t){return t.startsWith("!")&&t[1]!=="("}re.isNegativePattern=Os;function gg(t){return!Os(t)}re.isPositivePattern=gg;function iC(t){return t.filter(Os)}re.getNegativePatterns=iC;function sC(t){return t.filter(gg)}re.getPositivePatterns=sC;function oC(t){return t.filter(n=>!ja(n))}re.getPatternsInsideCurrentDirectory=oC;function uC(t){return t.filter(ja)}re.getPatternsOutsideCurrentDirectory=uC;function ja(t){return t.startsWith("..")||t.startsWith("./..")}re.isPatternRelatedToParentDirectory=ja;function aC(t){return XR(t,{flipBackslashes:!1})}re.getBaseDirectory=aC;function cC(t){return t.includes(hg)}re.hasGlobStar=cC;function mg(t){return t.endsWith("/"+hg)}re.endsWithSlashGlobStar=mg;function lC(t){let n=jR.basename(t);return mg(t)||pg(n)}re.isAffectDepthOfReadingPattern=lC;function fC(t){return t.reduce((n,i)=>n.concat(_g(i)),[])}re.expandPatternsWithBraceExpansion=fC;function _g(t){let n=Ka.braces(t,{expand:!0,nodupes:!0});return n.sort((i,o)=>i.length-o.length),n.filter(i=>i!=="")}re.expandBraceExpansion=_g;function hC(t,n){let{parts:i}=Ka.scan(t,Object.assign(Object.assign({},n),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}re.getPatternParts=hC;function yg(t,n){return Ka.makeRe(t,n)}re.makeRe=yg;function pC(t,n){return t.map(i=>yg(i,n))}re.convertPatternsToRe=pC;function dC(t,n){return n.some(i=>i.test(t))}re.matchAny=dC;function gC(t){return t.replace(eC,"/")}re.removeDuplicateSlashes=gC});var wg=L(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.merge=void 0;var mC=Ea();function _C(t){let n=mC(t);return t.forEach(i=>{i.once("error",o=>n.emit("error",o))}),n.once("close",()=>bg(t)),n.once("end",()=>bg(t)),n}Is.merge=_C;function bg(t){t.forEach(n=>n.emit("close"))}});var Sg=L(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.isEmpty=pr.isString=void 0;function yC(t){return typeof t=="string"}pr.isString=yC;function vC(t){return t===""}pr.isEmpty=vC});var sn=L(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var bC=Gp();Xe.array=bC;var wC=Kp();Xe.errno=wC;var SC=jp();Xe.fs=SC;var xC=Qp();Xe.path=xC;var EC=vg();Xe.pattern=EC;var AC=wg();Xe.stream=AC;var RC=Sg();Xe.string=RC});var Rg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var Lt=sn();function CC(t,n){let i=xg(t,n),o=xg(n.ignore,n),u=Eg(i),c=Ag(i,o),f=u.filter(v=>Lt.pattern.isStaticPattern(v,n)),h=u.filter(v=>Lt.pattern.isDynamicPattern(v,n)),g=Xa(f,c,!1),_=Xa(h,c,!0);return g.concat(_)}ze.generate=CC;function xg(t,n){let i=t;return n.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>Lt.pattern.removeDuplicateSlashes(o))}function Xa(t,n,i){let o=[],u=Lt.pattern.getPatternsOutsideCurrentDirectory(t),c=Lt.pattern.getPatternsInsideCurrentDirectory(t),f=za(u),h=za(c);return o.push(...Ya(f,n,i)),"."in h?o.push(Qa(".",c,n,i)):o.push(...Ya(h,n,i)),o}ze.convertPatternsToTasks=Xa;function Eg(t){return Lt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Eg;function Ag(t,n){return Lt.pattern.getNegativePatterns(t).concat(n).map(Lt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Ag;function za(t){let n={};return t.reduce((i,o)=>{let u=Lt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},n)}ze.groupPatternsByBaseDirectory=za;function Ya(t,n,i){return Object.keys(t).map(o=>Qa(o,t[o],n,i))}ze.convertPatternGroupsToTasks=Ya;function Qa(t,n,i,o){return{dynamic:o,positive:n,negative:i,base:t,patterns:[].concat(n,i.map(Lt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Qa});var Pg=L(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.read=void 0;function PC(t,n,i){n.fs.lstat(t,(o,u)=>{if(o!==null){Cg(i,o);return}if(!u.isSymbolicLink()||!n.followSymbolicLink){Za(i,u);return}n.fs.stat(t,(c,f)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Cg(i,c);return}Za(i,u);return}n.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Za(i,f)})})}Ls.read=PC;function Cg(t,n){t(n)}function Za(t,n){t(null,n)}});var Tg=L(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.read=void 0;function TC(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let o=n.fs.statSync(t);return n.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw o}}ks.read=TC});var Og=L(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ds=q("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ds.lstat,stat:Ds.stat,lstatSync:Ds.lstatSync,statSync:Ds.statSync};function OC(t){return t===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),t)}vn.createFileSystemAdapter=OC});var Ig=L(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var IC=Og(),Va=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=IC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};Ja.default=Va});var Fn=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.statSync=bn.stat=bn.Settings=void 0;var Lg=Pg(),LC=Tg(),ec=Ig();bn.Settings=ec.default;function kC(t,n,i){if(typeof n=="function"){Lg.read(t,tc(),n);return}Lg.read(t,tc(n),i)}bn.stat=kC;function DC(t,n){let i=tc(n);return LC.read(t,i)}bn.statSync=DC;function tc(t={}){return t instanceof ec.default?t:new ec.default(t)}});var Ng=L((QL,Dg)=>{var kg;Dg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(kg||(kg=Promise.resolve())).then(t).catch(n=>setTimeout(()=>{throw n},0))});var Mg=L((ZL,$g)=>{$g.exports=$C;var NC=Ng();function $C(t,n){let i,o,u,c=!0;Array.isArray(t)?(i=[],o=t.length):(u=Object.keys(t),i={},o=u.length);function f(g){function _(){n&&n(g,i),n=null}c?NC(_):_()}function h(g,_,v){i[g]=v,(--o===0||_)&&f(_)}o?u?u.forEach(function(g){t[g](function(_,v){h(g,_,v)})}):t.forEach(function(g,_){g(function(v,x){h(_,v,x)})}):f(null),c=!1}});var nc=L($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ns=process.versions.node.split(".");if(Ns[0]===void 0||Ns[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fg=Number.parseInt(Ns[0],10),MC=Number.parseInt(Ns[1],10),qg=10,FC=10,qC=Fg>qg,HC=Fg===qg&&MC>=FC;$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=qC||HC});var Hg=L(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.createDirentFromStats=void 0;var rc=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function BC(t,n){return new rc(t,n)}Ms.createDirentFromStats=BC});var ic=L(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fs=void 0;var WC=Hg();Fs.fs=WC});var sc=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.joinPathSegments=void 0;function UC(t,n,i){return t.endsWith(i)?t+n:t+i+n}qs.joinPathSegments=UC});var jg=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var GC=Fn(),Bg=Mg(),KC=nc(),Wg=ic(),Ug=sc();function jC(t,n,i){if(!n.stats&&KC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Gg(t,n,i);return}Kg(t,n,i)}wn.read=jC;function Gg(t,n,i){n.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:Ug.joinPathSegments(t,h.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){oc(i,c);return}let f=c.map(h=>XC(h,n));Bg(f,(h,g)=>{if(h!==null){Hs(i,h);return}oc(i,g)})})}wn.readdirWithFileTypes=Gg;function XC(t,n){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}n.fs.stat(t.path,(o,u)=>{if(o!==null){if(n.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Wg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function Kg(t,n,i){n.fs.readdir(t,(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(f=>{let h=Ug.joinPathSegments(t,f,n.pathSegmentSeparator);return g=>{GC.stat(h,n.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let x={name:f,path:h,dirent:Wg.fs.createDirentFromStats(f,v)};n.stats&&(x.stats=v),g(null,x)})}});Bg(c,(f,h)=>{if(f!==null){Hs(i,f);return}oc(i,h)})})}wn.readdir=Kg;function Hs(t,n){t(n)}function oc(t,n){t(null,n)}});var Zg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var zC=Fn(),YC=nc(),Xg=ic(),zg=sc();function QC(t,n){return!n.stats&&YC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yg(t,n):Qg(t,n)}Sn.read=QC;function Yg(t,n){return n.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:zg.joinPathSegments(t,o.name,n.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&n.followSymbolicLinks)try{let c=n.fs.statSync(u.path);u.dirent=Xg.fs.createDirentFromStats(u.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Yg;function Qg(t,n){return n.fs.readdirSync(t).map(o=>{let u=zg.joinPathSegments(t,o,n.pathSegmentSeparator),c=zC.statSync(u,n.fsStatSettings),f={name:o,path:u,dirent:Xg.fs.createDirentFromStats(o,c)};return n.stats&&(f.stats=c),f})}Sn.readdir=Qg});var Vg=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.createFileSystemAdapter=xn.FILE_SYSTEM_ADAPTER=void 0;var dr=q("fs");xn.FILE_SYSTEM_ADAPTER={lstat:dr.lstat,stat:dr.stat,lstatSync:dr.lstatSync,statSync:dr.statSync,readdir:dr.readdir,readdirSync:dr.readdirSync};function ZC(t){return t===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),t)}xn.createFileSystemAdapter=ZC});var Jg=L(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var VC=q("path"),JC=Fn(),eP=Vg(),uc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,VC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new JC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};ac.default=uc});var Bs=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var em=jg(),tP=Zg(),cc=Jg();En.Settings=cc.default;function nP(t,n,i){if(typeof n=="function"){em.read(t,lc(),n);return}em.read(t,lc(n),i)}En.scandir=nP;function rP(t,n){let i=lc(n);return tP.read(t,i)}En.scandirSync=rP;function lc(t={}){return t instanceof cc.default?t:new cc.default(t)}});var nm=L((uk,tm)=>{"use strict";function iP(t){var n=new t,i=n;function o(){var c=n;return c.next?n=c.next:(n=new t,i=n),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}tm.exports=iP});var im=L((ak,fc)=>{"use strict";var sP=nm();function rm(t,n,i){if(typeof t=="function"&&(i=n,n=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=sP(oP),u=null,c=null,f=0,h=null,g={push:D,drain:At,saturated:At,pause:v,paused:!1,concurrency:i,running:_,resume:H,idle:O,length:x,getQueue:S,unshift:j,empty:At,kill:te,killAndDrain:z,error:Y};return g;function _(){return f}function v(){g.paused=!0}function x(){for(var N=u,ne=0;N;)N=N.next,ne++;return ne}function S(){for(var N=u,ne=[];N;)ne.push(N.value),N=N.next;return ne}function H(){if(!!g.paused){g.paused=!1;for(var N=0;N{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.joinPathSegments=Ut.replacePathSegmentSeparator=Ut.isAppliedFilter=Ut.isFatalError=void 0;function aP(t,n){return t.errorFilter===null?!0:!t.errorFilter(n)}Ut.isFatalError=aP;function cP(t,n){return t===null||t(n)}Ut.isAppliedFilter=cP;function lP(t,n){return t.split(/[/\\]/).join(n)}Ut.replacePathSegmentSeparator=lP;function fP(t,n,i){return t===""?n:t.endsWith(i)?t+n:t+i+n}Ut.joinPathSegments=fP});var dc=L(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var hP=Ws(),hc=class{constructor(n,i){this._root=n,this._settings=i,this._root=hP.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};pc.default=hc});var _c=L(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var pP=q("events"),dP=Bs(),gP=im(),Us=Ws(),mP=dc(),gc=class extends mP.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=dP.scandir,this._emitter=new pP.EventEmitter,this._queue=gP(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(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,i){let o={directory:n,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(n,i){this._scandir(n.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,n.base);i(null,void 0)})}_handleError(n){this._isDestroyed||!Us.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,i){if(this._isDestroyed||this._isFatalError)return;let o=n.path;i!==void 0&&(n.path=Us.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Us.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&Us.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};mc.default=gc});var sm=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var _P=_c(),yc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new _P.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{yP(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{vP(n,this._storage)}),this._reader.read()}};vc.default=yc;function yP(t,n){t(n)}function vP(t,n){t(null,n)}});var om=L(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var bP=q("stream"),wP=_c(),bc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new wP.default(this._root,this._settings),this._stream=new bP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};wc.default=bc});var um=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var SP=Bs(),Gs=Ws(),xP=dc(),Sc=class extends xP.default{constructor(){super(...arguments),this._scandir=SP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(n,i){this._queue.add({directory:n,base:i})}_handleQueue(){for(let n of this._queue.values())this._handleDirectory(n.directory,n.base)}_handleDirectory(n,i){try{let o=this._scandir(n,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(n){if(!!Gs.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let o=n.path;i!==void 0&&(n.path=Gs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Gs.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&Gs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};xc.default=Sc});var am=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var EP=um(),Ec=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new EP.default(this._root,this._settings)}read(){return this._reader.read()}};Ac.default=Ec});var cm=L(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var AP=q("path"),RP=Bs(),Rc=class{constructor(n={}){this._options=n,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,AP.sep),this.fsScandirSettings=new RP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};Cc.default=Rc});var js=L(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var lm=sm(),CP=om(),PP=am(),Pc=cm();Gt.Settings=Pc.default;function TP(t,n,i){if(typeof n=="function"){new lm.default(t,Ks()).read(n);return}new lm.default(t,Ks(n)).read(i)}Gt.walk=TP;function OP(t,n){let i=Ks(n);return new PP.default(t,i).read()}Gt.walkSync=OP;function IP(t,n){let i=Ks(n);return new CP.default(t,i).read()}Gt.walkStream=IP;function Ks(t={}){return t instanceof Pc.default?t:new Pc.default(t)}});var Xs=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var LP=q("path"),kP=Fn(),fm=sn(),Tc=class{constructor(n){this._settings=n,this._fsStatSettings=new kP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return LP.resolve(this._settings.cwd,n)}_makeEntry(n,i){let o={name:i,path:i,dirent:fm.fs.createDirentFromStats(i,n)};return this._settings.stats&&(o.stats=n),o}_isFatalError(n){return!fm.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};Oc.default=Tc});var kc=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var DP=q("stream"),NP=Fn(),$P=js(),MP=Xs(),Ic=class extends MP.default{constructor(){super(...arguments),this._walkStream=$P.walkStream,this._stat=NP.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let o=n.map(this._getFullEntryPath,this),u=new DP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],n[c],i).then(g=>{g!==null&&i.entryFilter(g)&&u.push(g),c===o.length-1&&u.end(),h()}).catch(h);for(let c=0;cthis._makeEntry(u,i)).catch(u=>{if(o.errorFilter(u))return null;throw u})}_getStat(n){return new Promise((i,o)=>{this._stat(n,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};Lc.default=Ic});var hm=L(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var FP=js(),qP=Xs(),HP=kc(),Dc=class extends qP.default{constructor(){super(...arguments),this._walkAsync=FP.walk,this._readerStream=new HP.default(this._settings)}dynamic(n,i){return new Promise((o,u)=>{this._walkAsync(n,i,(c,f)=>{c===null?o(f):u(c)})})}async static(n,i){let o=[],u=this._readerStream.static(n,i);return new Promise((c,f)=>{u.once("error",f),u.on("data",h=>o.push(h)),u.once("end",()=>c(o))})}};Nc.default=Dc});var pm=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var mi=sn(),$c=class{constructor(n,i,o){this._patterns=n,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:n,segments:i,sections:o})}}_getPatternSegments(n){return mi.pattern.getPatternParts(n,this._micromatchOptions).map(o=>mi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:mi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return mi.array.splitWhen(n,i=>i.dynamic&&mi.pattern.hasGlobStar(i.pattern))}};Mc.default=$c});var dm=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var BP=pm(),Fc=class extends BP.default{match(n){let i=n.split("/"),o=i.length,u=this._storage.filter(c=>!c.complete||c.segments.length>o);for(let c of u){let f=c.sections[0];if(!c.complete&&o>f.length||i.every((g,_)=>{let v=c.segments[_];return!!(v.dynamic&&v.patternRe.test(g)||!v.dynamic&&v.pattern===g)}))return!0}return!1}};qc.default=Fc});var gm=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var zs=sn(),WP=dm(),Hc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i}getFilter(n,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(n,f,u,c)}_getMatcher(n){return new WP.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let i=n.filter(zs.pattern.isAffectDepthOfReadingPattern);return zs.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(n,i,o,u){if(this._isSkippedByDeep(n,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=zs.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(n,i){return this._settings.deep===1/0?!1:this._getEntryLevel(n,i)>=this._settings.deep}_getEntryLevel(n,i){let o=i.split("/").length;if(n==="")return o;let u=n.split("/").length;return o-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,i){return!this._settings.baseNameMatch&&!i.match(n)}_isSkippedByNegativePatterns(n,i){return!zs.pattern.matchAny(n,i)}};Bc.default=Hc});var mm=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qn=sn(),Wc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let o=qn.pattern.convertPatternsToRe(n,this._micromatchOptions),u=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(n,i,o){let u=qn.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=n.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let o=qn.path.makeAbsolute(this._settings.cwd,n);return qn.pattern.matchAny(o,i)}_isMatchToPatterns(n,i,o){let u=qn.pattern.matchAny(n,i);return!u&&o?qn.pattern.matchAny(n+"/",i):u}};Uc.default=Wc});var _m=L(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var UP=sn(),Gc=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return UP.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};Kc.default=Gc});var vm=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var ym=sn(),jc=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=ym.path.makeAbsolute(this._settings.cwd,i),i=ym.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};Xc.default=jc});var Ys=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var GP=q("path"),KP=gm(),jP=mm(),XP=_m(),zP=vm(),zc=class{constructor(n){this._settings=n,this.errorFilter=new XP.default(this._settings),this.entryFilter=new jP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new KP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zP.default(this._settings)}_getRootDirectory(n){return GP.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){let i=n.base==="."?"":n.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.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}}};Yc.default=zc});var bm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var YP=hm(),QP=Ys(),Qc=class extends QP.default{constructor(){super(...arguments),this._reader=new YP.default(this._settings)}async read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(i,n,o)).map(c=>o.transform(c))}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};Zc.default=Qc});var wm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var ZP=q("stream"),VP=kc(),JP=Ys(),Vc=class extends JP.default{constructor(){super(...arguments),this._reader=new VP.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n),u=this.api(i,n,o),c=new ZP.Readable({objectMode:!0,read:()=>{}});return u.once("error",f=>c.emit("error",f)).on("data",f=>c.emit("data",o.transform(f))).once("end",()=>c.emit("end")),c.once("close",()=>u.destroy()),c}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};Jc.default=Vc});var Sm=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var eT=Fn(),tT=js(),nT=Xs(),el=class extends nT.default{constructor(){super(...arguments),this._walkSync=tT.walkSync,this._statSync=eT.statSync}dynamic(n,i){return this._walkSync(n,i)}static(n,i){let o=[];for(let u of n){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(n,i,o){try{let u=this._getStat(n);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(n){return this._statSync(n,this._fsStatSettings)}};tl.default=el});var xm=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var rT=Sm(),iT=Ys(),nl=class extends iT.default{constructor(){super(...arguments),this._reader=new rT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(i,n,o).map(o.transform)}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};rl.default=nl});var Em=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=q("fs"),sT=q("os"),oT=Math.max(sT.cpus().length,1);mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var il=class{constructor(n={}){this._options=n,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,oT),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(n,i){return n===void 0?i:n}_getFileSystemMethods(n={}){return Object.assign(Object.assign({},mr.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};mr.default=il});var al=L((kk,Rm)=>{"use strict";var Am=Rg(),uT=bm(),aT=wm(),cT=xm(),sl=Em(),Rt=sn();async function ol(t,n){kt(t);let i=ul(t,uT.default,n),o=await Promise.all(i);return Rt.array.flatten(o)}(function(t){t.glob=t,t.globSync=n,t.globStream=i,t.async=t;function n(_,v){kt(_);let x=ul(_,cT.default,v);return Rt.array.flatten(x)}t.sync=n;function i(_,v){kt(_);let x=ul(_,aT.default,v);return Rt.stream.merge(x)}t.stream=i;function o(_,v){kt(_);let x=[].concat(_),S=new sl.default(v);return Am.generate(x,S)}t.generateTasks=o;function u(_,v){kt(_);let x=new sl.default(v);return Rt.pattern.isDynamicPattern(_,x)}t.isDynamicPattern=u;function c(_){return kt(_),Rt.path.escape(_)}t.escapePath=c;function f(_){return kt(_),Rt.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(S){return kt(S),Rt.path.escapePosixPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertPosixPathToPattern(S)}_.convertPathToPattern=x})(h=t.posix||(t.posix={}));let g;(function(_){function v(S){return kt(S),Rt.path.escapeWindowsPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertWindowsPathToPattern(S)}_.convertPathToPattern=x})(g=t.win32||(t.win32={}))})(ol||(ol={}));function ul(t,n,i){let o=[].concat(t),u=new sl.default(i),c=Am.generate(o,u),f=new n(u);return c.map(f.read,f)}function kt(t){if(![].concat(t).every(o=>Rt.string.isString(o)&&!Rt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Rm.exports=ol});var Pm=L(Hn=>{"use strict";var{promisify:lT}=q("util"),Cm=q("fs");async function cl(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await lT(Cm[t])(i))[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ll(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Cm[t](i)[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}Hn.isFile=cl.bind(null,"stat","isFile");Hn.isDirectory=cl.bind(null,"stat","isDirectory");Hn.isSymlink=cl.bind(null,"lstat","isSymbolicLink");Hn.isFileSync=ll.bind(null,"statSync","isFile");Hn.isDirectorySync=ll.bind(null,"statSync","isDirectory");Hn.isSymlinkSync=ll.bind(null,"lstatSync","isSymbolicLink")});var km=L((Nk,fl)=>{"use strict";var Bn=q("path"),Tm=Pm(),Om=t=>t.length>1?`{${t.join(",")}}`:t[0],Im=(t,n)=>{let i=t[0]==="!"?t.slice(1):t;return Bn.isAbsolute(i)?i:Bn.join(n,i)},fT=(t,n)=>Bn.extname(t)?`**/${t}`:`**/${t}.${Om(n)}`,Lm=(t,n)=>{if(n.files&&!Array.isArray(n.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof n.files}\``);if(n.extensions&&!Array.isArray(n.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof n.extensions}\``);return n.files&&n.extensions?n.files.map(i=>Bn.posix.join(t,fT(i,n.extensions))):n.files?n.files.map(i=>Bn.posix.join(t,`**/${i}`)):n.extensions?[Bn.posix.join(t,`**/*.${Om(n.extensions)}`)]:[Bn.posix.join(t,"**")]};fl.exports=async(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=await Promise.all([].concat(t).map(async o=>await Tm.isDirectory(Im(o,n.cwd))?Lm(o,n):o));return[].concat.apply([],i)};fl.exports.sync=(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=[].concat(t).map(o=>Tm.isDirectorySync(Im(o,n.cwd))?Lm(o,n):o);return[].concat.apply([],i)}});var Um=L(($k,Wm)=>{function Dm(t){return Array.isArray(t)?t:[t]}var Fm="",Nm=" ",hl="\\",hT=/^\s+$/,pT=/(?:[^\\]|^)\\$/,dT=/^\\!/,gT=/^\\#/,mT=/\r?\n/g,_T=/^\.*\/|^\.+$/,pl="/",qm="node-ignore";typeof Symbol<"u"&&(qm=Symbol.for("node-ignore"));var $m=qm,yT=(t,n,i)=>Object.defineProperty(t,n,{value:i}),vT=/([0-z])-([0-z])/g,Hm=()=>!1,bT=t=>t.replace(vT,(n,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?n:Fm),wT=t=>{let{length:n}=t;return t.slice(0,n-n%2)},ST=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Nm:Fm],[/\\\s/g,()=>Nm],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,n,i)=>n+6{let o=i.replace(/\\\*/g,"[^\\/]*");return n+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>hl],[/\\\\/g,()=>hl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,n,i,o,u)=>n===hl?`\\[${i}${wT(o)}${u}`:u==="]"&&o.length%2===0?`[${bT(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Mm=Object.create(null),xT=(t,n)=>{let i=Mm[t];return i||(i=ST.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),Mm[t]=i),n?new RegExp(i,"i"):new RegExp(i)},ml=t=>typeof t=="string",ET=t=>t&&ml(t)&&!hT.test(t)&&!pT.test(t)&&t.indexOf("#")!==0,AT=t=>t.split(mT),dl=class{constructor(n,i,o,u){this.origin=n,this.pattern=i,this.negative=o,this.regex=u}},RT=(t,n)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(dT,"!").replace(gT,"#");let u=xT(t,n);return new dl(i,t,o,u)},CT=(t,n)=>{throw new n(t)},on=(t,n,i)=>ml(t)?t?on.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${n}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${n}\``,TypeError),Bm=t=>_T.test(t);on.isNotRelative=Bm;on.convert=t=>t;var gl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:o=!1}={}){yT(this,$m,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(n){if(n&&n[$m]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(ET(n)){let i=RT(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,Dm(ml(n)?AT(n):n).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(n){return this.add(n)}_testOne(n,i){let o=!1,u=!1;return this._rules.forEach(c=>{let{negative:f}=c;if(u===f&&o!==u||f&&!o&&!u&&!i)return;c.regex.test(n)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(n,i,o,u){let c=n&&on.convert(n);return on(c,n,this._allowRelativePaths?Hm:CT),this._t(c,i,o,u)}_t(n,i,o,u){if(n in i)return i[n];if(u||(u=n.split(pl)),u.pop(),!u.length)return i[n]=this._testOne(n,o);let c=this._t(u.join(pl)+pl,i,o,u);return i[n]=c.ignored?c:this._testOne(n,o)}ignores(n){return this._test(n,this._ignoreCache,!1).ignored}createFilter(){return n=>!this.ignores(n)}filter(n){return Dm(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},Qs=t=>new gl(t),PT=t=>on(t&&on.convert(t),t,Hm);Qs.isPathValid=PT;Qs.default=Qs;Wm.exports=Qs;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");on.convert=t;let n=/^[a-z]:\//i;on.isNotRelative=i=>n.test(i)||Bm(i)}});var br=L((vr,bi)=>{(function(){var t,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",_=1,v=2,x=4,S=1,H=2,O=1,D=2,j=4,W=8,te=16,z=32,Y=64,N=128,ne=256,Q=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,$t=3,A=1/0,R=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,gt=Ie-1,Ye=Ie>>>1,Gn=[["ary",N],["bind",O],["bindKey",D],["curry",W],["curryRight",te],["flip",Q],["partial",z],["partialRight",Y],["rearg",ne]],an="[object Arguments]",jt="[object Array]",Xt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",tu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",Kn="[object Promise]",jn="[object Proxy]",jr="[object RegExp]",Ct="[object Set]",Xr="[object String]",Li="[object Symbol]",yv="[object Undefined]",zr="[object WeakMap]",vv="[object WeakSet]",Yr="[object ArrayBuffer]",Xn="[object DataView]",nu="[object Float32Array]",ru="[object Float64Array]",iu="[object Int8Array]",su="[object Int16Array]",ou="[object Int32Array]",uu="[object Uint8Array]",au="[object Uint8ClampedArray]",cu="[object Uint16Array]",lu="[object Uint32Array]",bv=/\b__p \+= '';/g,wv=/\b(__p \+=) '' \+/g,Sv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jl=/&(?:amp|lt|gt|quot|#39);/g,ef=/[&<>"']/g,xv=RegExp(Jl.source),Ev=RegExp(ef.source),Av=/<%-([\s\S]+?)%>/g,Rv=/<%([\s\S]+?)%>/g,tf=/<%=([\s\S]+?)%>/g,Cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pv=/^\w*$/,Tv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fu=/[\\^$.*+?()[\]{}|]/g,Ov=RegExp(fu.source),hu=/^\s+/,Iv=/\s/,Lv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kv=/\{\n\/\* \[wrapped with (.+)\] \*/,Dv=/,? & /,Nv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$v=/[()=,{}\[\]\/\s]/,Mv=/\\(\\)?/g,Fv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nf=/\w*$/,qv=/^[-+]0x[0-9a-f]+$/i,Hv=/^0b[01]+$/i,Bv=/^\[object .+?Constructor\]$/,Wv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ki=/($^)/,Kv=/['\n\r\u2028\u2029\\]/g,Di="\\ud800-\\udfff",jv="\\u0300-\\u036f",Xv="\\ufe20-\\ufe2f",zv="\\u20d0-\\u20ff",rf=jv+Xv+zv,sf="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",Yv="\\xac\\xb1\\xd7\\xf7",Qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zv="\\u2000-\\u206f",Vv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uf="A-Z\\xc0-\\xd6\\xd8-\\xde",af="\\ufe0e\\ufe0f",cf=Yv+Qv+Zv+Vv,pu="['\u2019]",Jv="["+Di+"]",lf="["+cf+"]",Ni="["+rf+"]",ff="\\d+",eb="["+sf+"]",hf="["+of+"]",pf="[^"+Di+cf+ff+sf+of+uf+"]",du="\\ud83c[\\udffb-\\udfff]",tb="(?:"+Ni+"|"+du+")",df="[^"+Di+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+uf+"]",gf="\\u200d",mf="(?:"+hf+"|"+pf+")",nb="(?:"+zn+"|"+pf+")",_f="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",yf="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",vf=tb+"?",bf="["+af+"]?",rb="(?:"+gf+"(?:"+[df,gu,mu].join("|")+")"+bf+vf+")*",ib="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wf=bf+vf+rb,ob="(?:"+[eb,gu,mu].join("|")+")"+wf,ub="(?:"+[df+Ni+"?",Ni,gu,mu,Jv].join("|")+")",ab=RegExp(pu,"g"),cb=RegExp(Ni,"g"),_u=RegExp(du+"(?="+du+")|"+ub+wf,"g"),lb=RegExp([zn+"?"+hf+"+"+_f+"(?="+[lf,zn,"$"].join("|")+")",nb+"+"+yf+"(?="+[lf,zn+mf,"$"].join("|")+")",zn+"?"+mf+"+"+_f,zn+"+"+yf,sb,ib,ff,ob].join("|"),"g"),fb=RegExp("["+gf+Di+rf+af+"]"),hb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],db=-1,Ae={};Ae[nu]=Ae[ru]=Ae[iu]=Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=!0,Ae[an]=Ae[jt]=Ae[Yr]=Ae[oe]=Ae[Xn]=Ae[Mt]=Ae[F]=Ae[_e]=Ae[Z]=Ae[be]=Ae[we]=Ae[jr]=Ae[Ct]=Ae[Xr]=Ae[zr]=!1;var Ee={};Ee[an]=Ee[jt]=Ee[Yr]=Ee[Xn]=Ee[oe]=Ee[Mt]=Ee[nu]=Ee[ru]=Ee[iu]=Ee[su]=Ee[ou]=Ee[Z]=Ee[be]=Ee[we]=Ee[jr]=Ee[Ct]=Ee[Xr]=Ee[Li]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=!0,Ee[F]=Ee[_e]=Ee[zr]=!1;var gb={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},mb={"&":"&","<":"<",">":">",'"':""","'":"'"},_b={"&":"&","<":"<",">":">",""":'"',"'":"'"},yb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vb=parseFloat,bb=parseInt,Sf=typeof global=="object"&&global&&global.Object===Object&&global,wb=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Sf||wb||Function("return this")(),yu=typeof vr=="object"&&vr&&!vr.nodeType&&vr,Cn=yu&&typeof bi=="object"&&bi&&!bi.nodeType&&bi,xf=Cn&&Cn.exports===yu,vu=xf&&Sf.process,mt=function(){try{var b=Cn&&Cn.require&&Cn.require("util").types;return b||vu&&vu.binding&&vu.binding("util")}catch{}}(),Ef=mt&&mt.isArrayBuffer,Af=mt&&mt.isDate,Rf=mt&&mt.isMap,Cf=mt&&mt.isRegExp,Pf=mt&&mt.isSet,Tf=mt&&mt.isTypedArray;function st(b,C,E){switch(E.length){case 0:return b.call(C);case 1:return b.call(C,E[0]);case 2:return b.call(C,E[0],E[1]);case 3:return b.call(C,E[0],E[1],E[2])}return b.apply(C,E)}function Sb(b,C,E,B){for(var ie=-1,ge=b==null?0:b.length;++ie-1}function bu(b,C,E){for(var B=-1,ie=b==null?0:b.length;++B-1;);return E}function Mf(b,C){for(var E=b.length;E--&&Yn(C,b[E],0)>-1;);return E}function Ib(b,C){for(var E=b.length,B=0;E--;)b[E]===C&&++B;return B}var Lb=Eu(gb),kb=Eu(mb);function Db(b){return"\\"+yb[b]}function Nb(b,C){return b==null?t:b[C]}function Qn(b){return fb.test(b)}function $b(b){return hb.test(b)}function Mb(b){for(var C,E=[];!(C=b.next()).done;)E.push(C.value);return E}function Pu(b){var C=-1,E=Array(b.size);return b.forEach(function(B,ie){E[++C]=[ie,B]}),E}function Ff(b,C){return function(E){return b(C(E))}}function fn(b,C){for(var E=-1,B=b.length,ie=0,ge=[];++E-1}function Ew(e,r){var s=this.__data__,a=Ji(s,e);return a<0?(++this.size,s.push([e,r])):s[a][1]=r,this}zt.prototype.clear=bw,zt.prototype.delete=ww,zt.prototype.get=Sw,zt.prototype.has=xw,zt.prototype.set=Ew;function Yt(e){var r=-1,s=e==null?0:e.length;for(this.clear();++r=r?e:r)),e}function bt(e,r,s,a,l,d){var m,y=r&_,w=r&v,P=r&x;if(s&&(m=l?s(e,a,l,d):s(e)),m!==t)return m;if(!Te(e))return e;var T=se(e);if(T){if(m=PS(e),!y)return Je(e,m)}else{var k=je(e),M=k==_e||k==$;if(yn(e))return bh(e,y);if(k==we||k==an||M&&!l){if(m=w||M?{}:qh(e),!y)return w?_S(e,Hw(m,e)):mS(e,Qf(m,e))}else{if(!Ee[k])return l?e:{};m=TS(e,k,y)}}d||(d=new Tt);var U=d.get(e);if(U)return U;d.set(e,m),dp(e)?e.forEach(function(J){m.add(bt(J,r,s,J,e,d))}):hp(e)&&e.forEach(function(J,he){m.set(he,bt(J,r,s,he,e,d))});var V=P?w?ea:Ju:w?tt:qe,ce=T?t:V(e);return _t(ce||e,function(J,he){ce&&(he=J,J=e[he]),ni(m,he,bt(J,r,s,he,e,d))}),m}function Bw(e){var r=qe(e);return function(s){return Zf(s,e,r)}}function Zf(e,r,s){var a=s.length;if(e==null)return!a;for(e=xe(e);a--;){var l=s[a],d=r[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function Vf(e,r,s){if(typeof e!="function")throw new yt(u);return ci(function(){e.apply(t,s)},r)}function ri(e,r,s,a){var l=-1,d=$i,m=!0,y=e.length,w=[],P=r.length;if(!y)return w;s&&(r=Re(r,ot(s))),a?(d=bu,m=!1):r.length>=i&&(d=Qr,m=!1,r=new On(r));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:mp(a);s0&&s(y)?r>1?Ue(y,r-1,s,a,l):ln(l,y):a||(l[l.length]=y)}return l}var Nu=Rh(),th=Rh(!0);function Ft(e,r){return e&&Nu(e,r,qe)}function $u(e,r){return e&&th(e,r,qe)}function ts(e,r){return cn(r,function(s){return en(e[s])})}function Ln(e,r){r=mn(r,e);for(var s=0,a=r.length;e!=null&&sr}function Gw(e,r){return e!=null&&Se.call(e,r)}function Kw(e,r){return e!=null&&r in xe(e)}function jw(e,r,s){return e>=Ke(r,s)&&e=120&&T.length>=120)?new On(m&&T):t}T=e[0];var k=-1,M=y[0];e:for(;++k-1;)y!==e&&ji.call(y,w,1),ji.call(e,w,1);return e}function hh(e,r){for(var s=e?r.length:0,a=s-1;s--;){var l=r[s];if(s==a||l!==d){var d=l;Jt(l)?ji.call(e,l,1):ju(e,l)}}return e}function Uu(e,r){return e+Yi(jf()*(r-e+1))}function sS(e,r,s,a){for(var l=-1,d=Me(zi((r-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function Gu(e,r){var s="";if(!e||r<1||r>R)return s;do r%2&&(s+=e),r=Yi(r/2),r&&(e+=e);while(r);return s}function le(e,r){return ua(Wh(e,r,nt),e+"")}function oS(e){return Yf(or(e))}function uS(e,r){var s=or(e);return hs(s,In(r,0,s.length))}function oi(e,r,s,a){if(!Te(e))return e;r=mn(r,e);for(var l=-1,d=r.length,m=d-1,y=e;y!=null&&++ll?0:l+r),s=s>l?l:s,s<0&&(s+=l),l=r>s?0:s-r>>>0,r>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=r:m=i){var P=r?null:wS(e);if(P)return Fi(P);m=!1,l=Qr,w=new On}else w=r?[]:y;e:for(;++a=a?e:wt(e,r,s)}var vh=Vb||function(e){return Fe.clearTimeout(e)};function bh(e,r){if(r)return e.slice();var s=e.length,a=Bf?Bf(s):new e.constructor(s);return e.copy(a),a}function Qu(e){var r=new e.constructor(e.byteLength);return new Gi(r).set(new Gi(e)),r}function hS(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function pS(e){var r=new e.constructor(e.source,nf.exec(e));return r.lastIndex=e.lastIndex,r}function dS(e){return ti?xe(ti.call(e)):{}}function wh(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Sh(e,r){if(e!==r){var s=e!==t,a=e===null,l=e===e,d=at(e),m=r!==t,y=r===null,w=r===r,P=at(r);if(!y&&!P&&!d&&e>r||d&&m&&w&&!y&&!P||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!P&&e=y)return w;var P=s[a];return w*(P=="desc"?-1:1)}}return e.index-r.index}function xh(e,r,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=r.length,P=Me(d-m,0),T=E(w+P),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Ze(s[0],s[1],m)&&(d=l<3?t:d,l=1),r=xe(r);++a-1?l[d?r[m]:m]:t}}function Th(e){return Vt(function(r){var s=r.length,a=s,l=vt.prototype.thru;for(e&&r.reverse();a--;){var d=r[a];if(typeof d!="function")throw new yt(u);if(l&&!m&&ls(d)=="wrapper")var m=new vt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&wy))return!1;var P=d.get(e),T=d.get(r);if(P&&T)return P==r&&T==e;var k=-1,M=!0,U=s&H?new On:t;for(d.set(e,r),d.set(r,e);++k1?"& ":"")+r[a],r=r.join(s>2?", ":" "),e.replace(Lv,`{ +var plugin=(()=>{var JA=Object.create;var ws=Object.defineProperty;var e1=Object.getOwnPropertyDescriptor;var t1=Object.getOwnPropertyNames;var n1=Object.getPrototypeOf,r1=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var L=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Tp=(t,n)=>{for(var i in n)ws(t,i,{get:n[i],enumerable:!0})},Op=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of t1(n))!r1.call(t,u)&&u!==i&&ws(t,u,{get:()=>n[u],enumerable:!(o=e1(n,u))||o.enumerable});return t};var He=(t,n,i)=>(i=t!=null?JA(n1(t)):{},Op(n||!t||!t.__esModule?ws(i,"default",{value:t,enumerable:!0}):i,t)),i1=t=>Op(ws({},"__esModule",{value:!0}),t);var Dp=L((tL,kp)=>{kp.exports={description:"Configurable, extensible build tools for modern single and multi-page web applications",logo:"https://cdn.roots.io/app/uploads/logo-bud.svg",name:"bud.js",organization:{favicon:"https://roots.io/favicon.ico",name:"Roots Software Foundation LLC",site:"https://roots.io",twitter:"https://twitter.com/rootswp"},sponsors:[{image:"https://cdn.roots.io/app/uploads/km-digital.svg",title:"KM Digital",url:"https://k-m.com/"},{image:"https://cdn.roots.io/app/uploads/carrot.svg",title:"Carrot",url:"https://carrot.com/"},{image:"https://cdn.roots.io/app/uploads/wordpress.svg",title:"WordPress.com",url:"https://wordpress.com/"},{image:"https://cdn.roots.io/app/uploads/pantheon.svg",title:"Pantheon",url:"https://pantheon.io/"},{image:"https://cdn.roots.io/app/uploads/worksite-safety.svg",title:"Worksite Safety",url:"https://worksitesafety.ca/careers/"},{image:"https://cdn.roots.io/app/uploads/copia-digital.svg",title:"Copia Digital",url:"https://www.copiadigital.com/"}],url:{discourse:"https://discourse.roots.io/c/bud/24",docs:"https://bud.js.org",git:"git@github.com:roots/bud",web:"https://github.com/roots/bud"}}});var Ea=L((gL,Up)=>{"use strict";var s1=q("stream"),Bp=s1.PassThrough,o1=Array.prototype.slice;Up.exports=u1;function u1(){let t=[],n=o1.call(arguments),i=!1,o=n[n.length-1];o&&!Array.isArray(o)&&o.pipe==null?n.pop():o={};let u=o.end!==!1,c=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let f=Bp(o);function h(){for(let v=0,x=arguments.length;v0||(i=!1,g())}function H(O){function D(){O.removeListener("merge2UnpipeEnd",D),O.removeListener("end",D),c&&O.removeListener("error",K),S()}function K(W){f.emit("error",W)}if(O._readableState.endEmitted)return S();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",K),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function a1(t){return t.reduce((n,i)=>[].concat(n,i),[])}lr.flatten=a1;function c1(t,n){let i=[[]],o=0;for(let u of t)n(u)?(o++,i[o]=[]):i[o].push(u);return i}lr.splitWhen=c1});var jp=L(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isEnoentCodeError=void 0;function l1(t){return t.code==="ENOENT"}Ss.isEnoentCodeError=l1});var Kp=L(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.createDirentFromStats=void 0;var Aa=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function f1(t,n){return new Aa(t,n)}xs.createDirentFromStats=f1});var Qp=L(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.convertPosixPathToPattern=Ne.convertWindowsPathToPattern=Ne.convertPathToPattern=Ne.escapePosixPath=Ne.escapeWindowsPath=Ne.escape=Ne.removeLeadingDotSegment=Ne.makeAbsolute=Ne.unixify=void 0;var h1=q("os"),p1=q("path"),Xp=h1.platform()==="win32",d1=2,g1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,m1=/(\\?)([(){}]|^!|[!+@](?=\())/g,_1=/^\\\\([.?])/,y1=/\\(?![!()+@{}])/g;function v1(t){return t.replace(/\\/g,"/")}Ne.unixify=v1;function b1(t,n){return p1.resolve(t,n)}Ne.makeAbsolute=b1;function w1(t){if(t.charAt(0)==="."){let n=t.charAt(1);if(n==="/"||n==="\\")return t.slice(d1)}return t}Ne.removeLeadingDotSegment=w1;Ne.escape=Xp?Ra:Ca;function Ra(t){return t.replace(m1,"\\$2")}Ne.escapeWindowsPath=Ra;function Ca(t){return t.replace(g1,"\\$2")}Ne.escapePosixPath=Ca;Ne.convertPathToPattern=Xp?zp:Yp;function zp(t){return Ra(t).replace(_1,"//$1").replace(y1,"/")}Ne.convertWindowsPathToPattern=zp;function Yp(t){return Ca(t)}Ne.convertPosixPathToPattern=Yp});var Vp=L((bL,Zp)=>{Zp.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}});var td=L((wL,ed)=>{var S1=Vp(),Jp={"{":"}","(":")","[":"]"},x1=function(t){if(t[0]==="!")return!0;for(var n=0,i=-2,o=-2,u=-2,c=-2,f=-2;nn&&(f===-1||f>o||(f=t.indexOf("\\",n),f===-1||f>o)))||u!==-1&&t[n]==="{"&&t[n+1]!=="}"&&(u=t.indexOf("}",n),u>n&&(f=t.indexOf("\\",n),f===-1||f>u))||c!==-1&&t[n]==="("&&t[n+1]==="?"&&/[:!=]/.test(t[n+2])&&t[n+3]!==")"&&(c=t.indexOf(")",n),c>n&&(f=t.indexOf("\\",n),f===-1||f>c))||i!==-1&&t[n]==="("&&t[n+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[n]==="\\"){var h=t[n+1];n+=2;var g=Jp[h];if(g){var _=t.indexOf(g,n);_!==-1&&(n=_+1)}if(t[n]==="!")return!0}else n++}return!1},E1=function(t){if(t[0]==="!")return!0;for(var n=0;n{"use strict";var A1=td(),R1=q("path").posix.dirname,C1=q("os").platform()==="win32",Pa="/",P1=/\\/g,T1=/[\{\[].*[\}\]]$/,O1=/(^|[^\\])([\{\[]|\([^\)]+$)/,I1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;nd.exports=function(n,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&C1&&n.indexOf(Pa)<0&&(n=n.replace(P1,Pa)),T1.test(n)&&(n+=Pa),n+="a";do n=R1(n);while(A1(n)||O1.test(n));return n.replace(I1,"$1")}});var Es=L(Et=>{"use strict";Et.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Et.find=(t,n)=>t.nodes.find(i=>i.type===n);Et.exceedsLimit=(t,n,i=1,o)=>o===!1||!Et.isInteger(t)||!Et.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=o;Et.escapeNode=(t,n=0,i)=>{let o=t.nodes[n];!o||(i&&o.type===i||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};Et.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Et.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Et.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Et.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);Et.flatten=(...t)=>{let n=[],i=o=>{for(let u=0;u{"use strict";var id=Es();sd.exports=(t,n={})=>{let i=(o,u={})=>{let c=n.escapeInvalid&&id.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h="";if(o.value)return(c||f)&&id.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let g of o.nodes)h+=i(g);return h};return i(t)}});var ud=L((AL,od)=>{"use strict";od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var md=L((RL,gd)=>{"use strict";var ad=ud(),$n=(t,n,i)=>{if(ad(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||t===n)return String(t);if(ad(n)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...i};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let u=String(o.relaxZeros),c=String(o.shorthand),f=String(o.capture),h=String(o.wrap),g=t+":"+n+"="+u+c+f+h;if($n.cache.hasOwnProperty(g))return $n.cache[g].result;let _=Math.min(t,n),v=Math.max(t,n);if(Math.abs(_-v)===1){let D=t+"|"+n;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let x=dd(t)||dd(n),S={min:t,max:n,a:_,b:v},H=[],O=[];if(x&&(S.isPadded=x,S.maxLen=String(S.max).length),_<0){let D=v<0?Math.abs(v):1;O=cd(D,Math.abs(_),S,o),_=S.a=0}return v>=0&&(H=cd(_,v,S,o)),S.negatives=O,S.positives=H,S.result=L1(O,H,o),o.capture===!0?S.result=`(${S.result})`:o.wrap!==!1&&H.length+O.length>1&&(S.result=`(?:${S.result})`),$n.cache[g]=S,S.result};function L1(t,n,i){let o=Ta(t,n,"-",!1,i)||[],u=Ta(n,t,"",!1,i)||[],c=Ta(t,n,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function k1(t,n){let i=1,o=1,u=fd(t,i),c=new Set([n]);for(;t<=u&&u<=n;)c.add(u),i+=1,u=fd(t,i);for(u=hd(n+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+pd(h.count),f=_+1;continue}i.isPadded&&(x=F1(_,i,o)),v.string=x+v.pattern+pd(v.count),c.push(v),f=_+1,h=v}return c}function Ta(t,n,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!ld(n,"string",h)&&c.push(i+h),o&&ld(n,"string",h)&&c.push(i+h)}return c}function N1(t,n){let i=[];for(let o=0;on?1:n>t?-1:0}function ld(t,n,i){return t.some(o=>o[n]===i)}function fd(t,n){return Number(String(t).slice(0,-n)+"9".repeat(n))}function hd(t,n){return t-t%Math.pow(10,n)}function pd(t){let[n=0,i=""]=t;return i||n>1?`{${n+(i?","+i:"")}}`:""}function M1(t,n,i){return`[${t}${n-t===1?"":"-"}${n}]`}function dd(t){return/^-?(0+)\d/.test(t)}function F1(t,n,i){if(!n.isPadded)return t;let o=Math.abs(n.maxLen-String(t).length),u=i.relaxZeros!==!1;switch(o){case 0:return"";case 1:return u?"0?":"0";case 2:return u?"0{0,2}":"00";default:return u?`0{0,${o}}`:`0{${o}}`}}$n.cache={};$n.clearCache=()=>$n.cache={};gd.exports=$n});var La=L((CL,Ed)=>{"use strict";var q1=q("util"),vd=md(),_d=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),H1=t=>n=>t===!0?Number(n):String(n),Oa=t=>typeof t=="number"||typeof t=="string"&&t!=="",hi=t=>Number.isInteger(+t),Ia=t=>{let n=`${t}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},B1=(t,n,i)=>typeof t=="string"||typeof n=="string"?!0:i.stringify===!0,W1=(t,n,i)=>{if(n>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?n-1:n,"0")}return i===!1?String(t):t},yd=(t,n)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),n--);t.length{t.negatives.sort((f,h)=>fh?1:0),t.positives.sort((f,h)=>fh?1:0);let i=n.capture?"":"?:",o="",u="",c;return t.positives.length&&(o=t.positives.join("|")),t.negatives.length&&(u=`-(${i}${t.negatives.join("|")})`),o&&u?c=`${o}|${u}`:c=o||u,n.wrap?`(${i}${c})`:c},bd=(t,n,i,o)=>{if(i)return vd(t,n,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===n)return u;let c=String.fromCharCode(n);return`[${u}-${c}]`},wd=(t,n,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return vd(t,n,i)},Sd=(...t)=>new RangeError("Invalid range arguments: "+q1.inspect(...t)),xd=(t,n,i)=>{if(i.strictRanges===!0)throw Sd([t,n]);return[]},G1=(t,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},j1=(t,n,i=1,o={})=>{let u=Number(t),c=Number(n);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw Sd([t,n]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(n),_=String(i);i=Math.max(Math.abs(i),1);let v=Ia(h)||Ia(g)||Ia(_),x=v?Math.max(h.length,g.length,_.length):0,S=v===!1&&B1(t,n,o)===!1,H=o.transform||H1(S);if(o.toRegex&&i===1)return bd(yd(t,x),yd(n,x),!0,o);let O={negatives:[],positives:[]},D=te=>O[te<0?"negatives":"positives"].push(Math.abs(te)),K=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):K.push(W1(H(u,W),x,S)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?U1(O,o):wd(K,null,{wrap:!1,...o}):K},K1=(t,n,i=1,o={})=>{if(!hi(t)&&t.length>1||!hi(n)&&n.length>1)return xd(t,n,o);let u=o.transform||(S=>String.fromCharCode(S)),c=`${t}`.charCodeAt(0),f=`${n}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return bd(g,_,!1,o);let v=[],x=0;for(;h?c>=f:c<=f;)v.push(u(c,x)),c=h?c-i:c+i,x++;return o.toRegex===!0?wd(v,null,{wrap:!1,options:o}):v},Rs=(t,n,i,o={})=>{if(n==null&&Oa(t))return[t];if(!Oa(t)||!Oa(n))return xd(t,n,o);if(typeof i=="function")return Rs(t,n,1,{transform:i});if(_d(i))return Rs(t,n,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,hi(i)?hi(t)&&hi(n)?j1(t,n,i,u):K1(t,n,Math.max(Math.abs(i),1),u):i!=null&&!_d(i)?G1(i,u):Rs(t,n,1,i)};Ed.exports=Rs});var Cd=L((PL,Rd)=>{"use strict";var X1=La(),Ad=Es(),z1=(t,n={})=>{let i=(o,u={})=>{let c=Ad.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h=c===!0||f===!0,g=n.escapeInvalid===!0?"\\":"",_="";if(o.isOpen===!0||o.isClose===!0)return g+o.value;if(o.type==="open")return h?g+o.value:"(";if(o.type==="close")return h?g+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let v=Ad.reduce(o.nodes),x=X1(...v,{...n,wrap:!1,toRegex:!0});if(x.length!==0)return v.length>1&&x.length>1?`(${x})`:x}if(o.nodes)for(let v of o.nodes)_+=i(v,o);return _};return i(t)};Rd.exports=z1});var Od=L((TL,Td)=>{"use strict";var Y1=La(),Pd=As(),fr=Es(),Mn=(t="",n="",i=!1)=>{let o=[];if(t=[].concat(t),n=[].concat(n),!n.length)return t;if(!t.length)return i?fr.flatten(n).map(u=>`{${u}}`):n;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Mn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Mn(u,c,i):u+c);return fr.flatten(o)},Q1=(t,n={})=>{let i=n.rangeLimit===void 0?1e3:n.rangeLimit,o=(u,c={})=>{u.queue=[];let f=c,h=c.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,h=f.queue;if(u.invalid||u.dollar){h.push(Mn(h.pop(),Pd(u,n)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){h.push(Mn(h.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let x=fr.reduce(u.nodes);if(fr.exceedsLimit(...x,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=Y1(...x,n);S.length===0&&(S=Pd(u,n)),h.push(Mn(h.pop(),S)),u.nodes=[];return}let g=fr.encloseBrace(u),_=u.queue,v=u;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,_=v.queue;for(let x=0;x{"use strict";Id.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,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"}});var Md=L((IL,$d)=>{"use strict";var Z1=As(),{MAX_LENGTH:kd,CHAR_BACKSLASH:ka,CHAR_BACKTICK:V1,CHAR_COMMA:J1,CHAR_DOT:eR,CHAR_LEFT_PARENTHESES:tR,CHAR_RIGHT_PARENTHESES:nR,CHAR_LEFT_CURLY_BRACE:rR,CHAR_RIGHT_CURLY_BRACE:iR,CHAR_LEFT_SQUARE_BRACKET:Dd,CHAR_RIGHT_SQUARE_BRACKET:Nd,CHAR_DOUBLE_QUOTE:sR,CHAR_SINGLE_QUOTE:oR,CHAR_NO_BREAK_SPACE:uR,CHAR_ZERO_WIDTH_NOBREAK_SPACE:aR}=Ld(),cR=(t,n={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=n||{},o=typeof i.maxLength=="number"?Math.min(kd,i.maxLength):kd;if(t.length>o)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${o})`);let u={type:"root",input:t,nodes:[]},c=[u],f=u,h=u,g=0,_=t.length,v=0,x=0,S,H={},O=()=>t[v++],D=K=>{if(K.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&K.type==="text"){h.value+=K.value;return}return f.nodes.push(K),K.parent=f,K.prev=h,h=K,K};for(D({type:"bos"});v<_;)if(f=c[c.length-1],S=O(),!(S===aR||S===uR)){if(S===ka){D({type:"text",value:(n.keepEscaping?S:"")+O()});continue}if(S===Nd){D({type:"text",value:"\\"+S});continue}if(S===Dd){g++;let K=!0,W;for(;v<_&&(W=O());){if(S+=W,W===Dd){g++;continue}if(W===ka){S+=O();continue}if(W===Nd&&(g--,g===0))break}D({type:"text",value:S});continue}if(S===tR){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:S});continue}if(S===nR){if(f.type!=="paren"){D({type:"text",value:S});continue}f=c.pop(),D({type:"text",value:S}),f=c[c.length-1];continue}if(S===sR||S===oR||S===V1){let K=S,W;for(n.keepQuotes!==!0&&(S="");v<_&&(W=O());){if(W===ka){S+=W+O();continue}if(W===K){n.keepQuotes===!0&&(S+=W);break}S+=W}D({type:"text",value:S});continue}if(S===rR){x++;let W={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||f.dollar===!0,depth:x,commas:0,ranges:0,nodes:[]};f=D(W),c.push(f),D({type:"open",value:S});continue}if(S===iR){if(f.type!=="brace"){D({type:"text",value:S});continue}let K="close";f=c.pop(),f.close=!0,D({type:K,value:S}),x--,f=c[c.length-1];continue}if(S===J1&&x>0){if(f.ranges>0){f.ranges=0;let K=f.nodes.shift();f.nodes=[K,{type:"text",value:Z1(f)}]}D({type:"comma",value:S}),f.commas++;continue}if(S===eR&&x>0&&f.commas===0){let K=f.nodes;if(x===0||K.length===0){D({type:"text",value:S});continue}if(h.type==="dot"){if(f.range=[],h.value+=S,h.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,h.type="text";continue}f.ranges++,f.args=[];continue}if(h.type==="range"){K.pop();let W=K[K.length-1];W.value+=h.value+S,h=W,f.ranges--;continue}D({type:"dot",value:S});continue}D({type:"text",value:S})}do if(f=c.pop(),f.type!=="root"){f.nodes.forEach(te=>{te.nodes||(te.type==="open"&&(te.isOpen=!0),te.type==="close"&&(te.isClose=!0),te.nodes||(te.type="text"),te.invalid=!0)});let K=c[c.length-1],W=K.nodes.indexOf(f);K.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};$d.exports=cR});var Hd=L((LL,qd)=>{"use strict";var Fd=As(),lR=Cd(),fR=Od(),hR=Md(),ft=(t,n={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ft.create(o,n);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ft.create(t,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(t,n={})=>hR(t,n);ft.stringify=(t,n={})=>Fd(typeof t=="string"?ft.parse(t,n):t,n);ft.compile=(t,n={})=>(typeof t=="string"&&(t=ft.parse(t,n)),lR(t,n));ft.expand=(t,n={})=>{typeof t=="string"&&(t=ft.parse(t,n));let i=fR(t,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(t,n={})=>t===""||t.length<3?[t]:n.expand!==!0?ft.compile(t,n):ft.expand(t,n);qd.exports=ft});var pi=L((kL,jd)=>{"use strict";var pR=q("path"),Bt="\\\\/",Bd=`[^${Bt}]`,rn="\\.",dR="\\+",gR="\\?",Cs="\\/",mR="(?=.)",Wd="[^/]",Da=`(?:${Cs}|$)`,Ud=`(?:^|${Cs})`,Na=`${rn}{1,2}${Da}`,_R=`(?!${rn})`,yR=`(?!${Ud}${Na})`,vR=`(?!${rn}{0,1}${Da})`,bR=`(?!${Na})`,wR=`[^.${Cs}]`,SR=`${Wd}*?`,Gd={DOT_LITERAL:rn,PLUS_LITERAL:dR,QMARK_LITERAL:gR,SLASH_LITERAL:Cs,ONE_CHAR:mR,QMARK:Wd,END_ANCHOR:Da,DOTS_SLASH:Na,NO_DOT:_R,NO_DOTS:yR,NO_DOT_SLASH:vR,NO_DOTS_SLASH:bR,QMARK_NO_DOT:wR,STAR:SR,START_ANCHOR:Ud},xR={...Gd,SLASH_LITERAL:`[${Bt}]`,QMARK:Bd,STAR:`${Bd}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${Bt}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${Bt}])${rn}{1,2}(?:[${Bt}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${Bt}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${Bt}]|$))`,QMARK_NO_DOT:`[^.${Bt}]`,START_ANCHOR:`(?:^|[${Bt}])`,END_ANCHOR:`(?:[${Bt}]|$)`},ER={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"};jd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ER,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:pR.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?xR:Gd}}});var di=L(rt=>{"use strict";var AR=q("path"),RR=process.platform==="win32",{REGEX_BACKSLASH:CR,REGEX_REMOVE_BACKSLASH:PR,REGEX_SPECIAL_CHARS:TR,REGEX_SPECIAL_CHARS_GLOBAL:OR}=pi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>TR.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(OR,"\\$1");rt.toPosixSlashes=t=>t.replace(CR,"/");rt.removeBackslashes=t=>t.replace(PR,n=>n==="\\"?"":n);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:RR===!0||AR.sep==="\\";rt.escapeLast=(t,n,i)=>{let o=t.lastIndexOf(n,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,n,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,n={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),n.prefix="./"),i};rt.wrapOutput=(t,n={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return n.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Jd=L((NL,Vd)=>{"use strict";var Kd=di(),{CHAR_ASTERISK:$a,CHAR_AT:IR,CHAR_BACKWARD_SLASH:gi,CHAR_COMMA:LR,CHAR_DOT:Ma,CHAR_EXCLAMATION_MARK:Fa,CHAR_FORWARD_SLASH:Zd,CHAR_LEFT_CURLY_BRACE:qa,CHAR_LEFT_PARENTHESES:Ha,CHAR_LEFT_SQUARE_BRACKET:kR,CHAR_PLUS:DR,CHAR_QUESTION_MARK:Xd,CHAR_RIGHT_CURLY_BRACE:NR,CHAR_RIGHT_PARENTHESES:zd,CHAR_RIGHT_SQUARE_BRACKET:$R}=pi(),Yd=t=>t===Zd||t===gi,Qd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},MR=(t,n)=>{let i=n||{},o=t.length-1,u=i.parts===!0||i.scanToEnd===!0,c=[],f=[],h=[],g=t,_=-1,v=0,x=0,S=!1,H=!1,O=!1,D=!1,K=!1,W=!1,te=!1,z=!1,Y=!1,N=!1,ne=0,Q,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Q=G,g.charCodeAt(++_));for(;_0&&($t=g.slice(0,v),g=g.slice(v),x-=v),me&&O===!0&&x>0?(me=g.slice(0,x),A=g.slice(x)):O===!0?(me="",A=g):me=g,me&&me!==""&&me!=="/"&&me!==g&&Yd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=Kd.removeBackslashes(A)),me&&te===!0&&(me=Kd.removeBackslashes(me)));let R={prefix:$t,input:t,start:v,base:me,glob:A,isBrace:S,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:K,negated:z,negatedExtglob:Y};if(i.tokens===!0&&(R.maxDepth=0,Yd(G)||f.push(ue),R.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ps=pi(),ht=di(),{MAX_LENGTH:Ts,POSIX_REGEX_SOURCE:FR,REGEX_NON_SPECIAL_CHARS:qR,REGEX_SPECIAL_CHARS_BACKREF:HR,REPLACEMENTS:eg}=Ps,BR=(t,n)=>{if(typeof n.expandRange=="function")return n.expandRange(...t,n);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>ht.escapeRegex(u)).join("..")}return i},hr=(t,n)=>`Missing ${t}: "${n}" - use "\\\\${n}" to match literal characters`,Ba=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=eg[t]||t;let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);let c={type:"bos",value:"",output:i.prepend||""},f=[c],h=i.capture?"":"?:",g=ht.isWindows(n),_=Ps.globChars(g),v=Ps.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:K,NO_DOT_SLASH:W,NO_DOTS_SLASH:te,QMARK:z,QMARK_NO_DOT:Y,STAR:N,START_ANCHOR:ne}=_,Q=F=>`(${h}(?:(?!${ne}${F.dot?D:x}).)*?)`,G=i.dot?"":K,ue=i.dot?z:Y,Pe=i.bash===!0?Q(i):N;i.capture&&(Pe=`(${Pe})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);let I={input:t,index:-1,start:0,dot:i.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};t=ht.removePrefix(t,I),u=t.length;let ve=[],me=[],$t=[],A=c,R,Be=()=>I.index===u-1,fe=I.peek=(F=1)=>t[I.index+F],Ie=I.advance=()=>t[++I.index]||"",gt=()=>t.slice(I.index+1),Ye=(F="",_e=0)=>{I.consumed+=F,I.index+=_e},Gn=F=>{I.output+=F.output!=null?F.output:F.value,Ye(F.value)},an=()=>{let F=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Ie(),I.start++,F++;return F%2===0?!1:(I.negated=!0,I.start++,!0)},Kt=F=>{I[F]++,$t.push(F)},Xt=F=>{I[F]--,$t.pop()},oe=F=>{if(A.type==="globstar"){let _e=I.braces>0&&(F.type==="comma"||F.type==="brace"),$=F.extglob===!0||ve.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!_e&&!$&&(I.output=I.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=Pe,I.output+=A.output)}if(ve.length&&F.type!=="paren"&&(ve[ve.length-1].inner+=F.value),(F.value||F.output)&&Gn(F),A&&A.type==="text"&&F.type==="text"){A.value+=F.value,A.output=(A.output||"")+F.value;return}F.prev=A,f.push(F),A=F},Mt=(F,_e)=>{let $={...v[_e],conditions:1,inner:""};$.prev=A,$.parens=I.parens,$.output=I.output;let Z=(i.capture?"(":"")+$.open;Kt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:Z}),ve.push($)},tu=F=>{let _e=F.close+(i.capture?")":""),$;if(F.type==="negate"){let Z=Pe;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(Z=Q(i)),(Z!==Pe||Be()||/^\)+$/.test(gt()))&&(_e=F.close=`)$))${Z}`),F.inner.includes("*")&&($=gt())&&/^\.[^\\/.]+$/.test($)){let be=Ba($,{...n,fastpaths:!1}).output;_e=F.close=`)${be})${Z})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:R,output:_e}),Xt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(HR,($,Z,be,We,we,jn)=>We==="\\"?(F=!0,$):We==="?"?Z?Z+We+(we?z.repeat(we.length):""):jn===0?ue+(we?z.repeat(we.length):""):z.repeat(be.length):We==="."?x.repeat(be.length):We==="*"?Z?Z+We+(we?Pe:""):Pe:Z?$:`\\${$}`);return F===!0&&(i.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),_e===t&&i.contains===!0?(I.output=t,I):(I.output=ht.wrapOutput(_e,I,n),I)}for(;!Be();){if(R=Ie(),R==="\0")continue;if(R==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){R+="\\",oe({type:"text",value:R});continue}let Z=/^\\+/.exec(gt()),be=0;if(Z&&Z[0].length>2&&(be=Z[0].length,I.index+=be,be%2!==0&&(R+="\\")),i.unescape===!0?R=Ie():R+=Ie(),I.brackets===0){oe({type:"text",value:R});continue}}if(I.brackets>0&&(R!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&R===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let Z=A.value.lastIndexOf("["),be=A.value.slice(0,Z),We=A.value.slice(Z+2),we=FR[We];if(we){A.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(R==="["&&fe()!==":"||R==="-"&&fe()==="]")&&(R=`\\${R}`),R==="]"&&(A.value==="["||A.value==="[^")&&(R=`\\${R}`),i.posix===!0&&R==="!"&&A.value==="["&&(R="^"),A.value+=R,Gn({value:R});continue}if(I.quotes===1&&R!=='"'){R=ht.escapeRegex(R),A.value+=R,Gn({value:R});continue}if(R==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:R});continue}if(R==="("){Kt("parens"),oe({type:"paren",value:R});continue}if(R===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(hr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){tu(ve.pop());continue}oe({type:"paren",value:R,output:I.parens?")":"\\)"}),Xt("parens");continue}if(R==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));R=`\\${R}`}else Kt("brackets");oe({type:"bracket",value:R});continue}if(R==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:R,output:`\\${R}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(hr("opening","["));oe({type:"text",value:R,output:`\\${R}`});continue}Xt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(R=`/${R}`),A.value+=R,Gn({value:R}),i.literalBrackets===!1||ht.hasRegexChars($))continue;let Z=ht.escapeRegex(A.value);if(I.output=I.output.slice(0,-A.value.length),i.literalBrackets===!0){I.output+=Z,A.value=Z;continue}A.value=`(${h}${Z}|${A.value})`,I.output+=A.value;continue}if(R==="{"&&i.nobrace!==!0){Kt("braces");let $={type:"brace",value:R,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(R==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:R,output:R});continue}let Z=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);Z=BR(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",R=Z="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}oe({type:"brace",value:R,output:Z}),Xt("braces"),me.pop();continue}if(R==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:R});continue}if(R===","){let $=R,Z=me[me.length-1];Z&&$t[$t.length-1]==="braces"&&(Z.comma=!0,$="|"),oe({type:"comma",value:R,output:$});continue}if(R==="/"){if(A.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),A=c;continue}oe({type:"slash",value:R,output:H});continue}if(R==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=x);let $=me[me.length-1];A.type="dots",A.output+=R,A.value+=R,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:R,output:x});continue}oe({type:"dot",value:R,output:x});continue}if(R==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",R);continue}if(A&&A.type==="paren"){let Z=fe(),be=R;if(Z==="<"&&!ht.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(be=`\\${R}`),oe({type:"text",value:R,output:be});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:R,output:Y});continue}oe({type:"qmark",value:R,output:z});continue}if(R==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",R);continue}if(i.nonegate!==!0&&I.index===0){an();continue}}if(R==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",R);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:R,output:S});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:R});continue}oe({type:"plus",value:S});continue}if(R==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:R,output:""});continue}oe({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let $=qR.exec(gt());$&&(R+=$[0],I.index+=$[0].length),oe({type:"text",value:R});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=R,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(R);continue}let F=gt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Mt("star",R);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(R);continue}let $=A.prev,Z=$.prev,be=$.type==="slash"||$.type==="bos",We=Z&&(Z.type==="star"||Z.type==="globstar");if(i.bash===!0&&(!be||F[0]&&F[0]!=="/")){oe({type:"star",value:R,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),jn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!jn){oe({type:"star",value:R,output:""});continue}for(;F.slice(0,3)==="/**";){let Kn=t[I.index+4];if(Kn&&Kn!=="/")break;F=F.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){A.type="globstar",A.value+=R,A.output=Q(i),I.output=A.output,I.globstar=!0,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=Q(i)+(i.strictSlashes?")":"|$)"),A.value+=R,I.globstar=!0,I.output+=$.output+A.output,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let Kn=F[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=`${Q(i)}${H}|${H}${Kn})`,A.value+=R,I.output+=$.output+A.output,I.globstar=!0,Ye(R+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=R,A.output=`(?:^|${H}|${Q(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(R+Ie()),oe({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-A.output.length),A.type="globstar",A.output=Q(i),A.value+=R,I.output+=A.output,I.globstar=!0,Ye(R);continue}let _e={type:"star",value:R,output:Pe};if(i.bash===!0){_e.output=".*?",(A.type==="bos"||A.type==="slash")&&(_e.output=G+_e.output),oe(_e);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&i.regex===!0){_e.output=R,oe(_e);continue}(I.index===I.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(I.output+=W,A.output+=W):i.dot===!0?(I.output+=te,A.output+=te):(I.output+=G,A.output+=G),fe()!=="*"&&(I.output+=O,A.output+=O)),oe(_e)}for(;I.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));I.output=ht.escapeLast(I.output,"["),Xt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing",")"));I.output=ht.escapeLast(I.output,"("),Xt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing","}"));I.output=ht.escapeLast(I.output,"{"),Xt("braces")}if(i.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&oe({type:"maybe_slash",value:"",output:`${H}?`}),I.backtrack===!0){I.output="";for(let F of I.tokens)I.output+=F.output!=null?F.output:F.value,F.suffix&&(I.output+=F.suffix)}return I};Ba.fastpaths=(t,n)=>{let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=eg[t]||t;let c=ht.isWindows(n),{DOT_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:_,NO_DOT:v,NO_DOTS:x,NO_DOTS_SLASH:S,STAR:H,START_ANCHOR:O}=Ps.globChars(c),D=i.dot?x:v,K=i.dot?S:v,W=i.capture?"":"?:",te={negated:!1,prefix:""},z=i.bash===!0?".*?":H;i.capture&&(z=`(${z})`);let Y=G=>G.noglobstar===!0?z:`(${W}(?:(?!${O}${G.dot?_:f}).)*?)`,N=G=>{switch(G){case"*":return`${D}${g}${z}`;case".*":return`${f}${g}${z}`;case"*.*":return`${D}${z}${f}${g}${z}`;case"*/*":return`${D}${z}${h}${g}${K}${z}`;case"**":return D+Y(i);case"**/*":return`(?:${D}${Y(i)}${h})?${K}${g}${z}`;case"**/*.*":return`(?:${D}${Y(i)}${h})?${K}${z}${f}${g}${z}`;case"**/.*":return`(?:${D}${Y(i)}${h})?${f}${g}${z}`;default:{let ue=/^(.*?)\.(\w+)$/.exec(G);if(!ue)return;let Pe=N(ue[1]);return Pe?Pe+f+ue[2]:void 0}}},ne=ht.removePrefix(t,te),Q=N(ne);return Q&&i.strictSlashes!==!0&&(Q+=`${h}?`),Q};tg.exports=Ba});var ig=L((ML,rg)=>{"use strict";var WR=q("path"),UR=Jd(),Wa=ng(),Ua=di(),GR=pi(),jR=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,n,i=!1)=>{if(Array.isArray(t)){let v=t.map(S=>De(S,n,i));return S=>{for(let H of v){let O=H(S);if(O)return O}return!1}}let o=jR(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=n||{},c=Ua.isWindows(n),f=o?De.compileRe(t,n):De.makeRe(t,n,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...n,ignore:null,onMatch:null,onResult:null};g=De(u.ignore,v,i)}let _=(v,x=!1)=>{let{isMatch:S,match:H,output:O}=De.test(v,f,n,{glob:t,posix:c}),D={glob:t,state:h,regex:f,posix:c,input:v,output:O,match:H,isMatch:S};return typeof u.onResult=="function"&&u.onResult(D),S===!1?(D.isMatch=!1,x?D:!1):g(v)?(typeof u.onIgnore=="function"&&u.onIgnore(D),D.isMatch=!1,x?D:!1):(typeof u.onMatch=="function"&&u.onMatch(D),x?D:!0)};return i&&(_.state=h),_};De.test=(t,n,i,{glob:o,posix:u}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let c=i||{},f=c.format||(u?Ua.toPosixSlashes:null),h=t===o,g=h&&f?f(t):t;return h===!1&&(g=f?f(t):t,h=g===o),(h===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?h=De.matchBase(t,n,i,u):h=n.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,n,i,o=Ua.isWindows(i))=>(n instanceof RegExp?n:De.makeRe(n,i)).test(WR.basename(t));De.isMatch=(t,n,i)=>De(n,i)(t);De.parse=(t,n)=>Array.isArray(t)?t.map(i=>De.parse(i,n)):Wa(t,{...n,fastpaths:!1});De.scan=(t,n)=>UR(t,n);De.compileRe=(t,n,i=!1,o=!1)=>{if(i===!0)return t.output;let u=n||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,n);return o===!0&&(g.state=t),g};De.makeRe=(t,n={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return n.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=Wa.fastpaths(t,n)),u.output||(u=Wa(t,n)),De.compileRe(u,n,i,o)};De.toRegex=(t,n)=>{try{let i=n||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(n&&n.debug===!0)throw i;return/$^/}};De.constants=GR;rg.exports=De});var og=L((FL,sg)=>{"use strict";sg.exports=ig()});var fg=L((qL,lg)=>{"use strict";var ag=q("util"),cg=Hd(),Wt=og(),Ga=di(),ug=t=>t===""||t==="./",Ce=(t,n,i)=>{n=[].concat(n),t=[].concat(t);let o=new Set,u=new Set,c=new Set,f=0,h=v=>{c.add(v.output),i&&i.onResult&&i.onResult(v)};for(let v=0;v!o.has(v));if(i&&_.length===0){if(i.failglob===!0)throw new Error(`No matches found for "${n.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?n.map(v=>v.replace(/\\/g,"")):n}return _};Ce.match=Ce;Ce.matcher=(t,n)=>Wt(t,n);Ce.isMatch=(t,n,i)=>Wt(n,i)(t);Ce.any=Ce.isMatch;Ce.not=(t,n,i={})=>{n=[].concat(n).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Ce(t,n,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Ce.contains=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);if(Array.isArray(n))return n.some(o=>Ce.contains(t,o,i));if(typeof n=="string"){if(ug(t)||ug(n))return!1;if(t.includes(n)||t.startsWith("./")&&t.slice(2).includes(n))return!0}return Ce.isMatch(t,n,{...i,contains:!0})};Ce.matchKeys=(t,n,i)=>{if(!Ga.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Ce(Object.keys(t),n,i),u={};for(let c of o)u[c]=t[c];return u};Ce.some=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Ce.every=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Ce.all=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);return[].concat(n).every(o=>Wt(o,i)(t))};Ce.capture=(t,n,i)=>{let o=Ga.isWindows(i),c=Wt.makeRe(String(t),{...i,capture:!0}).exec(o?Ga.toPosixSlashes(n):n);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Ce.makeRe=(...t)=>Wt.makeRe(...t);Ce.scan=(...t)=>Wt.scan(...t);Ce.parse=(t,n)=>{let i=[];for(let o of[].concat(t||[]))for(let u of cg(String(o),n))i.push(Wt.parse(u,n));return i};Ce.braces=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(t)?[t]:cg(t,n)};Ce.braceExpand=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ce.braces(t,{...n,expand:!0})};lg.exports=Ce});var vg=L(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.removeDuplicateSlashes=re.matchAny=re.convertPatternsToRe=re.makeRe=re.getPatternParts=re.expandBraceExpansion=re.expandPatternsWithBraceExpansion=re.isAffectDepthOfReadingPattern=re.endsWithSlashGlobStar=re.hasGlobStar=re.getBaseDirectory=re.isPatternRelatedToParentDirectory=re.getPatternsOutsideCurrentDirectory=re.getPatternsInsideCurrentDirectory=re.getPositivePatterns=re.getNegativePatterns=re.isPositivePattern=re.isNegativePattern=re.convertToNegativePattern=re.convertToPositivePattern=re.isDynamicPattern=re.isStaticPattern=void 0;var KR=q("path"),XR=rd(),ja=fg(),hg="**",zR="\\",YR=/[*?]|^!/,QR=/\[[^[]*]/,ZR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VR=/[!*+?@]\([^(]*\)/,JR=/,|\.\./,eC=/(?!^)\/{2,}/g;function pg(t,n={}){return!dg(t,n)}re.isStaticPattern=pg;function dg(t,n={}){return t===""?!1:!!(n.caseSensitiveMatch===!1||t.includes(zR)||YR.test(t)||QR.test(t)||ZR.test(t)||n.extglob!==!1&&VR.test(t)||n.braceExpansion!==!1&&tC(t))}re.isDynamicPattern=dg;function tC(t){let n=t.indexOf("{");if(n===-1)return!1;let i=t.indexOf("}",n+1);if(i===-1)return!1;let o=t.slice(n,i);return JR.test(o)}function nC(t){return Os(t)?t.slice(1):t}re.convertToPositivePattern=nC;function rC(t){return"!"+t}re.convertToNegativePattern=rC;function Os(t){return t.startsWith("!")&&t[1]!=="("}re.isNegativePattern=Os;function gg(t){return!Os(t)}re.isPositivePattern=gg;function iC(t){return t.filter(Os)}re.getNegativePatterns=iC;function sC(t){return t.filter(gg)}re.getPositivePatterns=sC;function oC(t){return t.filter(n=>!Ka(n))}re.getPatternsInsideCurrentDirectory=oC;function uC(t){return t.filter(Ka)}re.getPatternsOutsideCurrentDirectory=uC;function Ka(t){return t.startsWith("..")||t.startsWith("./..")}re.isPatternRelatedToParentDirectory=Ka;function aC(t){return XR(t,{flipBackslashes:!1})}re.getBaseDirectory=aC;function cC(t){return t.includes(hg)}re.hasGlobStar=cC;function mg(t){return t.endsWith("/"+hg)}re.endsWithSlashGlobStar=mg;function lC(t){let n=KR.basename(t);return mg(t)||pg(n)}re.isAffectDepthOfReadingPattern=lC;function fC(t){return t.reduce((n,i)=>n.concat(_g(i)),[])}re.expandPatternsWithBraceExpansion=fC;function _g(t){let n=ja.braces(t,{expand:!0,nodupes:!0});return n.sort((i,o)=>i.length-o.length),n.filter(i=>i!=="")}re.expandBraceExpansion=_g;function hC(t,n){let{parts:i}=ja.scan(t,Object.assign(Object.assign({},n),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}re.getPatternParts=hC;function yg(t,n){return ja.makeRe(t,n)}re.makeRe=yg;function pC(t,n){return t.map(i=>yg(i,n))}re.convertPatternsToRe=pC;function dC(t,n){return n.some(i=>i.test(t))}re.matchAny=dC;function gC(t){return t.replace(eC,"/")}re.removeDuplicateSlashes=gC});var wg=L(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.merge=void 0;var mC=Ea();function _C(t){let n=mC(t);return t.forEach(i=>{i.once("error",o=>n.emit("error",o))}),n.once("close",()=>bg(t)),n.once("end",()=>bg(t)),n}Is.merge=_C;function bg(t){t.forEach(n=>n.emit("close"))}});var Sg=L(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.isEmpty=pr.isString=void 0;function yC(t){return typeof t=="string"}pr.isString=yC;function vC(t){return t===""}pr.isEmpty=vC});var sn=L(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var bC=Gp();Xe.array=bC;var wC=jp();Xe.errno=wC;var SC=Kp();Xe.fs=SC;var xC=Qp();Xe.path=xC;var EC=vg();Xe.pattern=EC;var AC=wg();Xe.stream=AC;var RC=Sg();Xe.string=RC});var Rg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var Lt=sn();function CC(t,n){let i=xg(t,n),o=xg(n.ignore,n),u=Eg(i),c=Ag(i,o),f=u.filter(v=>Lt.pattern.isStaticPattern(v,n)),h=u.filter(v=>Lt.pattern.isDynamicPattern(v,n)),g=Xa(f,c,!1),_=Xa(h,c,!0);return g.concat(_)}ze.generate=CC;function xg(t,n){let i=t;return n.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>Lt.pattern.removeDuplicateSlashes(o))}function Xa(t,n,i){let o=[],u=Lt.pattern.getPatternsOutsideCurrentDirectory(t),c=Lt.pattern.getPatternsInsideCurrentDirectory(t),f=za(u),h=za(c);return o.push(...Ya(f,n,i)),"."in h?o.push(Qa(".",c,n,i)):o.push(...Ya(h,n,i)),o}ze.convertPatternsToTasks=Xa;function Eg(t){return Lt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Eg;function Ag(t,n){return Lt.pattern.getNegativePatterns(t).concat(n).map(Lt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Ag;function za(t){let n={};return t.reduce((i,o)=>{let u=Lt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},n)}ze.groupPatternsByBaseDirectory=za;function Ya(t,n,i){return Object.keys(t).map(o=>Qa(o,t[o],n,i))}ze.convertPatternGroupsToTasks=Ya;function Qa(t,n,i,o){return{dynamic:o,positive:n,negative:i,base:t,patterns:[].concat(n,i.map(Lt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Qa});var Pg=L(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.read=void 0;function PC(t,n,i){n.fs.lstat(t,(o,u)=>{if(o!==null){Cg(i,o);return}if(!u.isSymbolicLink()||!n.followSymbolicLink){Za(i,u);return}n.fs.stat(t,(c,f)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Cg(i,c);return}Za(i,u);return}n.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Za(i,f)})})}Ls.read=PC;function Cg(t,n){t(n)}function Za(t,n){t(null,n)}});var Tg=L(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.read=void 0;function TC(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let o=n.fs.statSync(t);return n.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw o}}ks.read=TC});var Og=L(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ds=q("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ds.lstat,stat:Ds.stat,lstatSync:Ds.lstatSync,statSync:Ds.statSync};function OC(t){return t===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),t)}vn.createFileSystemAdapter=OC});var Ig=L(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var IC=Og(),Va=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=IC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};Ja.default=Va});var Fn=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.statSync=bn.stat=bn.Settings=void 0;var Lg=Pg(),LC=Tg(),ec=Ig();bn.Settings=ec.default;function kC(t,n,i){if(typeof n=="function"){Lg.read(t,tc(),n);return}Lg.read(t,tc(n),i)}bn.stat=kC;function DC(t,n){let i=tc(n);return LC.read(t,i)}bn.statSync=DC;function tc(t={}){return t instanceof ec.default?t:new ec.default(t)}});var Ng=L((QL,Dg)=>{var kg;Dg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(kg||(kg=Promise.resolve())).then(t).catch(n=>setTimeout(()=>{throw n},0))});var Mg=L((ZL,$g)=>{$g.exports=$C;var NC=Ng();function $C(t,n){let i,o,u,c=!0;Array.isArray(t)?(i=[],o=t.length):(u=Object.keys(t),i={},o=u.length);function f(g){function _(){n&&n(g,i),n=null}c?NC(_):_()}function h(g,_,v){i[g]=v,(--o===0||_)&&f(_)}o?u?u.forEach(function(g){t[g](function(_,v){h(g,_,v)})}):t.forEach(function(g,_){g(function(v,x){h(_,v,x)})}):f(null),c=!1}});var nc=L($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ns=process.versions.node.split(".");if(Ns[0]===void 0||Ns[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fg=Number.parseInt(Ns[0],10),MC=Number.parseInt(Ns[1],10),qg=10,FC=10,qC=Fg>qg,HC=Fg===qg&&MC>=FC;$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=qC||HC});var Hg=L(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.createDirentFromStats=void 0;var rc=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function BC(t,n){return new rc(t,n)}Ms.createDirentFromStats=BC});var ic=L(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fs=void 0;var WC=Hg();Fs.fs=WC});var sc=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.joinPathSegments=void 0;function UC(t,n,i){return t.endsWith(i)?t+n:t+i+n}qs.joinPathSegments=UC});var Kg=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var GC=Fn(),Bg=Mg(),jC=nc(),Wg=ic(),Ug=sc();function KC(t,n,i){if(!n.stats&&jC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Gg(t,n,i);return}jg(t,n,i)}wn.read=KC;function Gg(t,n,i){n.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:Ug.joinPathSegments(t,h.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){oc(i,c);return}let f=c.map(h=>XC(h,n));Bg(f,(h,g)=>{if(h!==null){Hs(i,h);return}oc(i,g)})})}wn.readdirWithFileTypes=Gg;function XC(t,n){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}n.fs.stat(t.path,(o,u)=>{if(o!==null){if(n.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Wg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function jg(t,n,i){n.fs.readdir(t,(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(f=>{let h=Ug.joinPathSegments(t,f,n.pathSegmentSeparator);return g=>{GC.stat(h,n.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let x={name:f,path:h,dirent:Wg.fs.createDirentFromStats(f,v)};n.stats&&(x.stats=v),g(null,x)})}});Bg(c,(f,h)=>{if(f!==null){Hs(i,f);return}oc(i,h)})})}wn.readdir=jg;function Hs(t,n){t(n)}function oc(t,n){t(null,n)}});var Zg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var zC=Fn(),YC=nc(),Xg=ic(),zg=sc();function QC(t,n){return!n.stats&&YC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yg(t,n):Qg(t,n)}Sn.read=QC;function Yg(t,n){return n.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:zg.joinPathSegments(t,o.name,n.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&n.followSymbolicLinks)try{let c=n.fs.statSync(u.path);u.dirent=Xg.fs.createDirentFromStats(u.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Yg;function Qg(t,n){return n.fs.readdirSync(t).map(o=>{let u=zg.joinPathSegments(t,o,n.pathSegmentSeparator),c=zC.statSync(u,n.fsStatSettings),f={name:o,path:u,dirent:Xg.fs.createDirentFromStats(o,c)};return n.stats&&(f.stats=c),f})}Sn.readdir=Qg});var Vg=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.createFileSystemAdapter=xn.FILE_SYSTEM_ADAPTER=void 0;var dr=q("fs");xn.FILE_SYSTEM_ADAPTER={lstat:dr.lstat,stat:dr.stat,lstatSync:dr.lstatSync,statSync:dr.statSync,readdir:dr.readdir,readdirSync:dr.readdirSync};function ZC(t){return t===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),t)}xn.createFileSystemAdapter=ZC});var Jg=L(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var VC=q("path"),JC=Fn(),eP=Vg(),uc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,VC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new JC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};ac.default=uc});var Bs=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var em=Kg(),tP=Zg(),cc=Jg();En.Settings=cc.default;function nP(t,n,i){if(typeof n=="function"){em.read(t,lc(),n);return}em.read(t,lc(n),i)}En.scandir=nP;function rP(t,n){let i=lc(n);return tP.read(t,i)}En.scandirSync=rP;function lc(t={}){return t instanceof cc.default?t:new cc.default(t)}});var nm=L((uk,tm)=>{"use strict";function iP(t){var n=new t,i=n;function o(){var c=n;return c.next?n=c.next:(n=new t,i=n),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}tm.exports=iP});var im=L((ak,fc)=>{"use strict";var sP=nm();function rm(t,n,i){if(typeof t=="function"&&(i=n,n=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=sP(oP),u=null,c=null,f=0,h=null,g={push:D,drain:At,saturated:At,pause:v,paused:!1,concurrency:i,running:_,resume:H,idle:O,length:x,getQueue:S,unshift:K,empty:At,kill:te,killAndDrain:z,error:Y};return g;function _(){return f}function v(){g.paused=!0}function x(){for(var N=u,ne=0;N;)N=N.next,ne++;return ne}function S(){for(var N=u,ne=[];N;)ne.push(N.value),N=N.next;return ne}function H(){if(!!g.paused){g.paused=!1;for(var N=0;N{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.joinPathSegments=Ut.replacePathSegmentSeparator=Ut.isAppliedFilter=Ut.isFatalError=void 0;function aP(t,n){return t.errorFilter===null?!0:!t.errorFilter(n)}Ut.isFatalError=aP;function cP(t,n){return t===null||t(n)}Ut.isAppliedFilter=cP;function lP(t,n){return t.split(/[/\\]/).join(n)}Ut.replacePathSegmentSeparator=lP;function fP(t,n,i){return t===""?n:t.endsWith(i)?t+n:t+i+n}Ut.joinPathSegments=fP});var dc=L(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var hP=Ws(),hc=class{constructor(n,i){this._root=n,this._settings=i,this._root=hP.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};pc.default=hc});var _c=L(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var pP=q("events"),dP=Bs(),gP=im(),Us=Ws(),mP=dc(),gc=class extends mP.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=dP.scandir,this._emitter=new pP.EventEmitter,this._queue=gP(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(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,i){let o={directory:n,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(n,i){this._scandir(n.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,n.base);i(null,void 0)})}_handleError(n){this._isDestroyed||!Us.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,i){if(this._isDestroyed||this._isFatalError)return;let o=n.path;i!==void 0&&(n.path=Us.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Us.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&Us.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};mc.default=gc});var sm=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var _P=_c(),yc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new _P.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{yP(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{vP(n,this._storage)}),this._reader.read()}};vc.default=yc;function yP(t,n){t(n)}function vP(t,n){t(null,n)}});var om=L(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var bP=q("stream"),wP=_c(),bc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new wP.default(this._root,this._settings),this._stream=new bP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};wc.default=bc});var um=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var SP=Bs(),Gs=Ws(),xP=dc(),Sc=class extends xP.default{constructor(){super(...arguments),this._scandir=SP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(n,i){this._queue.add({directory:n,base:i})}_handleQueue(){for(let n of this._queue.values())this._handleDirectory(n.directory,n.base)}_handleDirectory(n,i){try{let o=this._scandir(n,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(n){if(!!Gs.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let o=n.path;i!==void 0&&(n.path=Gs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Gs.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&Gs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};xc.default=Sc});var am=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var EP=um(),Ec=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new EP.default(this._root,this._settings)}read(){return this._reader.read()}};Ac.default=Ec});var cm=L(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var AP=q("path"),RP=Bs(),Rc=class{constructor(n={}){this._options=n,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,AP.sep),this.fsScandirSettings=new RP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};Cc.default=Rc});var Ks=L(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var lm=sm(),CP=om(),PP=am(),Pc=cm();Gt.Settings=Pc.default;function TP(t,n,i){if(typeof n=="function"){new lm.default(t,js()).read(n);return}new lm.default(t,js(n)).read(i)}Gt.walk=TP;function OP(t,n){let i=js(n);return new PP.default(t,i).read()}Gt.walkSync=OP;function IP(t,n){let i=js(n);return new CP.default(t,i).read()}Gt.walkStream=IP;function js(t={}){return t instanceof Pc.default?t:new Pc.default(t)}});var Xs=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var LP=q("path"),kP=Fn(),fm=sn(),Tc=class{constructor(n){this._settings=n,this._fsStatSettings=new kP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return LP.resolve(this._settings.cwd,n)}_makeEntry(n,i){let o={name:i,path:i,dirent:fm.fs.createDirentFromStats(i,n)};return this._settings.stats&&(o.stats=n),o}_isFatalError(n){return!fm.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};Oc.default=Tc});var kc=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var DP=q("stream"),NP=Fn(),$P=Ks(),MP=Xs(),Ic=class extends MP.default{constructor(){super(...arguments),this._walkStream=$P.walkStream,this._stat=NP.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let o=n.map(this._getFullEntryPath,this),u=new DP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],n[c],i).then(g=>{g!==null&&i.entryFilter(g)&&u.push(g),c===o.length-1&&u.end(),h()}).catch(h);for(let c=0;cthis._makeEntry(u,i)).catch(u=>{if(o.errorFilter(u))return null;throw u})}_getStat(n){return new Promise((i,o)=>{this._stat(n,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};Lc.default=Ic});var hm=L(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var FP=Ks(),qP=Xs(),HP=kc(),Dc=class extends qP.default{constructor(){super(...arguments),this._walkAsync=FP.walk,this._readerStream=new HP.default(this._settings)}dynamic(n,i){return new Promise((o,u)=>{this._walkAsync(n,i,(c,f)=>{c===null?o(f):u(c)})})}async static(n,i){let o=[],u=this._readerStream.static(n,i);return new Promise((c,f)=>{u.once("error",f),u.on("data",h=>o.push(h)),u.once("end",()=>c(o))})}};Nc.default=Dc});var pm=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var mi=sn(),$c=class{constructor(n,i,o){this._patterns=n,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:n,segments:i,sections:o})}}_getPatternSegments(n){return mi.pattern.getPatternParts(n,this._micromatchOptions).map(o=>mi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:mi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return mi.array.splitWhen(n,i=>i.dynamic&&mi.pattern.hasGlobStar(i.pattern))}};Mc.default=$c});var dm=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var BP=pm(),Fc=class extends BP.default{match(n){let i=n.split("/"),o=i.length,u=this._storage.filter(c=>!c.complete||c.segments.length>o);for(let c of u){let f=c.sections[0];if(!c.complete&&o>f.length||i.every((g,_)=>{let v=c.segments[_];return!!(v.dynamic&&v.patternRe.test(g)||!v.dynamic&&v.pattern===g)}))return!0}return!1}};qc.default=Fc});var gm=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var zs=sn(),WP=dm(),Hc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i}getFilter(n,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(n,f,u,c)}_getMatcher(n){return new WP.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let i=n.filter(zs.pattern.isAffectDepthOfReadingPattern);return zs.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(n,i,o,u){if(this._isSkippedByDeep(n,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=zs.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(n,i){return this._settings.deep===1/0?!1:this._getEntryLevel(n,i)>=this._settings.deep}_getEntryLevel(n,i){let o=i.split("/").length;if(n==="")return o;let u=n.split("/").length;return o-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,i){return!this._settings.baseNameMatch&&!i.match(n)}_isSkippedByNegativePatterns(n,i){return!zs.pattern.matchAny(n,i)}};Bc.default=Hc});var mm=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qn=sn(),Wc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let o=qn.pattern.convertPatternsToRe(n,this._micromatchOptions),u=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(n,i,o){let u=qn.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=n.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let o=qn.path.makeAbsolute(this._settings.cwd,n);return qn.pattern.matchAny(o,i)}_isMatchToPatterns(n,i,o){let u=qn.pattern.matchAny(n,i);return!u&&o?qn.pattern.matchAny(n+"/",i):u}};Uc.default=Wc});var _m=L(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var UP=sn(),Gc=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return UP.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};jc.default=Gc});var vm=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var ym=sn(),Kc=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=ym.path.makeAbsolute(this._settings.cwd,i),i=ym.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};Xc.default=Kc});var Ys=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var GP=q("path"),jP=gm(),KP=mm(),XP=_m(),zP=vm(),zc=class{constructor(n){this._settings=n,this.errorFilter=new XP.default(this._settings),this.entryFilter=new KP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new jP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zP.default(this._settings)}_getRootDirectory(n){return GP.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){let i=n.base==="."?"":n.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.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}}};Yc.default=zc});var bm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var YP=hm(),QP=Ys(),Qc=class extends QP.default{constructor(){super(...arguments),this._reader=new YP.default(this._settings)}async read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(i,n,o)).map(c=>o.transform(c))}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};Zc.default=Qc});var wm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var ZP=q("stream"),VP=kc(),JP=Ys(),Vc=class extends JP.default{constructor(){super(...arguments),this._reader=new VP.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n),u=this.api(i,n,o),c=new ZP.Readable({objectMode:!0,read:()=>{}});return u.once("error",f=>c.emit("error",f)).on("data",f=>c.emit("data",o.transform(f))).once("end",()=>c.emit("end")),c.once("close",()=>u.destroy()),c}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};Jc.default=Vc});var Sm=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var eT=Fn(),tT=Ks(),nT=Xs(),el=class extends nT.default{constructor(){super(...arguments),this._walkSync=tT.walkSync,this._statSync=eT.statSync}dynamic(n,i){return this._walkSync(n,i)}static(n,i){let o=[];for(let u of n){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(n,i,o){try{let u=this._getStat(n);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(n){return this._statSync(n,this._fsStatSettings)}};tl.default=el});var xm=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var rT=Sm(),iT=Ys(),nl=class extends iT.default{constructor(){super(...arguments),this._reader=new rT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(i,n,o).map(o.transform)}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};rl.default=nl});var Em=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=q("fs"),sT=q("os"),oT=Math.max(sT.cpus().length,1);mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var il=class{constructor(n={}){this._options=n,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,oT),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(n,i){return n===void 0?i:n}_getFileSystemMethods(n={}){return Object.assign(Object.assign({},mr.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};mr.default=il});var al=L((kk,Rm)=>{"use strict";var Am=Rg(),uT=bm(),aT=wm(),cT=xm(),sl=Em(),Rt=sn();async function ol(t,n){kt(t);let i=ul(t,uT.default,n),o=await Promise.all(i);return Rt.array.flatten(o)}(function(t){t.glob=t,t.globSync=n,t.globStream=i,t.async=t;function n(_,v){kt(_);let x=ul(_,cT.default,v);return Rt.array.flatten(x)}t.sync=n;function i(_,v){kt(_);let x=ul(_,aT.default,v);return Rt.stream.merge(x)}t.stream=i;function o(_,v){kt(_);let x=[].concat(_),S=new sl.default(v);return Am.generate(x,S)}t.generateTasks=o;function u(_,v){kt(_);let x=new sl.default(v);return Rt.pattern.isDynamicPattern(_,x)}t.isDynamicPattern=u;function c(_){return kt(_),Rt.path.escape(_)}t.escapePath=c;function f(_){return kt(_),Rt.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(S){return kt(S),Rt.path.escapePosixPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertPosixPathToPattern(S)}_.convertPathToPattern=x})(h=t.posix||(t.posix={}));let g;(function(_){function v(S){return kt(S),Rt.path.escapeWindowsPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertWindowsPathToPattern(S)}_.convertPathToPattern=x})(g=t.win32||(t.win32={}))})(ol||(ol={}));function ul(t,n,i){let o=[].concat(t),u=new sl.default(i),c=Am.generate(o,u),f=new n(u);return c.map(f.read,f)}function kt(t){if(![].concat(t).every(o=>Rt.string.isString(o)&&!Rt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Rm.exports=ol});var Pm=L(Hn=>{"use strict";var{promisify:lT}=q("util"),Cm=q("fs");async function cl(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await lT(Cm[t])(i))[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ll(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Cm[t](i)[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}Hn.isFile=cl.bind(null,"stat","isFile");Hn.isDirectory=cl.bind(null,"stat","isDirectory");Hn.isSymlink=cl.bind(null,"lstat","isSymbolicLink");Hn.isFileSync=ll.bind(null,"statSync","isFile");Hn.isDirectorySync=ll.bind(null,"statSync","isDirectory");Hn.isSymlinkSync=ll.bind(null,"lstatSync","isSymbolicLink")});var km=L((Nk,fl)=>{"use strict";var Bn=q("path"),Tm=Pm(),Om=t=>t.length>1?`{${t.join(",")}}`:t[0],Im=(t,n)=>{let i=t[0]==="!"?t.slice(1):t;return Bn.isAbsolute(i)?i:Bn.join(n,i)},fT=(t,n)=>Bn.extname(t)?`**/${t}`:`**/${t}.${Om(n)}`,Lm=(t,n)=>{if(n.files&&!Array.isArray(n.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof n.files}\``);if(n.extensions&&!Array.isArray(n.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof n.extensions}\``);return n.files&&n.extensions?n.files.map(i=>Bn.posix.join(t,fT(i,n.extensions))):n.files?n.files.map(i=>Bn.posix.join(t,`**/${i}`)):n.extensions?[Bn.posix.join(t,`**/*.${Om(n.extensions)}`)]:[Bn.posix.join(t,"**")]};fl.exports=async(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=await Promise.all([].concat(t).map(async o=>await Tm.isDirectory(Im(o,n.cwd))?Lm(o,n):o));return[].concat.apply([],i)};fl.exports.sync=(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=[].concat(t).map(o=>Tm.isDirectorySync(Im(o,n.cwd))?Lm(o,n):o);return[].concat.apply([],i)}});var Um=L(($k,Wm)=>{function Dm(t){return Array.isArray(t)?t:[t]}var Fm="",Nm=" ",hl="\\",hT=/^\s+$/,pT=/(?:[^\\]|^)\\$/,dT=/^\\!/,gT=/^\\#/,mT=/\r?\n/g,_T=/^\.*\/|^\.+$/,pl="/",qm="node-ignore";typeof Symbol<"u"&&(qm=Symbol.for("node-ignore"));var $m=qm,yT=(t,n,i)=>Object.defineProperty(t,n,{value:i}),vT=/([0-z])-([0-z])/g,Hm=()=>!1,bT=t=>t.replace(vT,(n,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?n:Fm),wT=t=>{let{length:n}=t;return t.slice(0,n-n%2)},ST=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Nm:Fm],[/\\\s/g,()=>Nm],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,n,i)=>n+6{let o=i.replace(/\\\*/g,"[^\\/]*");return n+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>hl],[/\\\\/g,()=>hl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,n,i,o,u)=>n===hl?`\\[${i}${wT(o)}${u}`:u==="]"&&o.length%2===0?`[${bT(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Mm=Object.create(null),xT=(t,n)=>{let i=Mm[t];return i||(i=ST.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),Mm[t]=i),n?new RegExp(i,"i"):new RegExp(i)},ml=t=>typeof t=="string",ET=t=>t&&ml(t)&&!hT.test(t)&&!pT.test(t)&&t.indexOf("#")!==0,AT=t=>t.split(mT),dl=class{constructor(n,i,o,u){this.origin=n,this.pattern=i,this.negative=o,this.regex=u}},RT=(t,n)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(dT,"!").replace(gT,"#");let u=xT(t,n);return new dl(i,t,o,u)},CT=(t,n)=>{throw new n(t)},on=(t,n,i)=>ml(t)?t?on.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${n}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${n}\``,TypeError),Bm=t=>_T.test(t);on.isNotRelative=Bm;on.convert=t=>t;var gl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:o=!1}={}){yT(this,$m,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(n){if(n&&n[$m]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(ET(n)){let i=RT(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,Dm(ml(n)?AT(n):n).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(n){return this.add(n)}_testOne(n,i){let o=!1,u=!1;return this._rules.forEach(c=>{let{negative:f}=c;if(u===f&&o!==u||f&&!o&&!u&&!i)return;c.regex.test(n)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(n,i,o,u){let c=n&&on.convert(n);return on(c,n,this._allowRelativePaths?Hm:CT),this._t(c,i,o,u)}_t(n,i,o,u){if(n in i)return i[n];if(u||(u=n.split(pl)),u.pop(),!u.length)return i[n]=this._testOne(n,o);let c=this._t(u.join(pl)+pl,i,o,u);return i[n]=c.ignored?c:this._testOne(n,o)}ignores(n){return this._test(n,this._ignoreCache,!1).ignored}createFilter(){return n=>!this.ignores(n)}filter(n){return Dm(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},Qs=t=>new gl(t),PT=t=>on(t&&on.convert(t),t,Hm);Qs.isPathValid=PT;Qs.default=Qs;Wm.exports=Qs;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");on.convert=t;let n=/^[a-z]:\//i;on.isNotRelative=i=>n.test(i)||Bm(i)}});var br=L((vr,bi)=>{(function(){var t,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",_=1,v=2,x=4,S=1,H=2,O=1,D=2,K=4,W=8,te=16,z=32,Y=64,N=128,ne=256,Q=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,$t=3,A=1/0,R=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,gt=Ie-1,Ye=Ie>>>1,Gn=[["ary",N],["bind",O],["bindKey",D],["curry",W],["curryRight",te],["flip",Q],["partial",z],["partialRight",Y],["rearg",ne]],an="[object Arguments]",Kt="[object Array]",Xt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",tu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",jn="[object Promise]",Kn="[object Proxy]",Kr="[object RegExp]",Ct="[object Set]",Xr="[object String]",Li="[object Symbol]",yv="[object Undefined]",zr="[object WeakMap]",vv="[object WeakSet]",Yr="[object ArrayBuffer]",Xn="[object DataView]",nu="[object Float32Array]",ru="[object Float64Array]",iu="[object Int8Array]",su="[object Int16Array]",ou="[object Int32Array]",uu="[object Uint8Array]",au="[object Uint8ClampedArray]",cu="[object Uint16Array]",lu="[object Uint32Array]",bv=/\b__p \+= '';/g,wv=/\b(__p \+=) '' \+/g,Sv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jl=/&(?:amp|lt|gt|quot|#39);/g,ef=/[&<>"']/g,xv=RegExp(Jl.source),Ev=RegExp(ef.source),Av=/<%-([\s\S]+?)%>/g,Rv=/<%([\s\S]+?)%>/g,tf=/<%=([\s\S]+?)%>/g,Cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pv=/^\w*$/,Tv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fu=/[\\^$.*+?()[\]{}|]/g,Ov=RegExp(fu.source),hu=/^\s+/,Iv=/\s/,Lv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kv=/\{\n\/\* \[wrapped with (.+)\] \*/,Dv=/,? & /,Nv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$v=/[()=,{}\[\]\/\s]/,Mv=/\\(\\)?/g,Fv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nf=/\w*$/,qv=/^[-+]0x[0-9a-f]+$/i,Hv=/^0b[01]+$/i,Bv=/^\[object .+?Constructor\]$/,Wv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ki=/($^)/,jv=/['\n\r\u2028\u2029\\]/g,Di="\\ud800-\\udfff",Kv="\\u0300-\\u036f",Xv="\\ufe20-\\ufe2f",zv="\\u20d0-\\u20ff",rf=Kv+Xv+zv,sf="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",Yv="\\xac\\xb1\\xd7\\xf7",Qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zv="\\u2000-\\u206f",Vv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uf="A-Z\\xc0-\\xd6\\xd8-\\xde",af="\\ufe0e\\ufe0f",cf=Yv+Qv+Zv+Vv,pu="['\u2019]",Jv="["+Di+"]",lf="["+cf+"]",Ni="["+rf+"]",ff="\\d+",eb="["+sf+"]",hf="["+of+"]",pf="[^"+Di+cf+ff+sf+of+uf+"]",du="\\ud83c[\\udffb-\\udfff]",tb="(?:"+Ni+"|"+du+")",df="[^"+Di+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+uf+"]",gf="\\u200d",mf="(?:"+hf+"|"+pf+")",nb="(?:"+zn+"|"+pf+")",_f="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",yf="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",vf=tb+"?",bf="["+af+"]?",rb="(?:"+gf+"(?:"+[df,gu,mu].join("|")+")"+bf+vf+")*",ib="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wf=bf+vf+rb,ob="(?:"+[eb,gu,mu].join("|")+")"+wf,ub="(?:"+[df+Ni+"?",Ni,gu,mu,Jv].join("|")+")",ab=RegExp(pu,"g"),cb=RegExp(Ni,"g"),_u=RegExp(du+"(?="+du+")|"+ub+wf,"g"),lb=RegExp([zn+"?"+hf+"+"+_f+"(?="+[lf,zn,"$"].join("|")+")",nb+"+"+yf+"(?="+[lf,zn+mf,"$"].join("|")+")",zn+"?"+mf+"+"+_f,zn+"+"+yf,sb,ib,ff,ob].join("|"),"g"),fb=RegExp("["+gf+Di+rf+af+"]"),hb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],db=-1,Ae={};Ae[nu]=Ae[ru]=Ae[iu]=Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=!0,Ae[an]=Ae[Kt]=Ae[Yr]=Ae[oe]=Ae[Xn]=Ae[Mt]=Ae[F]=Ae[_e]=Ae[Z]=Ae[be]=Ae[we]=Ae[Kr]=Ae[Ct]=Ae[Xr]=Ae[zr]=!1;var Ee={};Ee[an]=Ee[Kt]=Ee[Yr]=Ee[Xn]=Ee[oe]=Ee[Mt]=Ee[nu]=Ee[ru]=Ee[iu]=Ee[su]=Ee[ou]=Ee[Z]=Ee[be]=Ee[we]=Ee[Kr]=Ee[Ct]=Ee[Xr]=Ee[Li]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=!0,Ee[F]=Ee[_e]=Ee[zr]=!1;var gb={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},mb={"&":"&","<":"<",">":">",'"':""","'":"'"},_b={"&":"&","<":"<",">":">",""":'"',"'":"'"},yb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vb=parseFloat,bb=parseInt,Sf=typeof global=="object"&&global&&global.Object===Object&&global,wb=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Sf||wb||Function("return this")(),yu=typeof vr=="object"&&vr&&!vr.nodeType&&vr,Cn=yu&&typeof bi=="object"&&bi&&!bi.nodeType&&bi,xf=Cn&&Cn.exports===yu,vu=xf&&Sf.process,mt=function(){try{var b=Cn&&Cn.require&&Cn.require("util").types;return b||vu&&vu.binding&&vu.binding("util")}catch{}}(),Ef=mt&&mt.isArrayBuffer,Af=mt&&mt.isDate,Rf=mt&&mt.isMap,Cf=mt&&mt.isRegExp,Pf=mt&&mt.isSet,Tf=mt&&mt.isTypedArray;function st(b,C,E){switch(E.length){case 0:return b.call(C);case 1:return b.call(C,E[0]);case 2:return b.call(C,E[0],E[1]);case 3:return b.call(C,E[0],E[1],E[2])}return b.apply(C,E)}function Sb(b,C,E,B){for(var ie=-1,ge=b==null?0:b.length;++ie-1}function bu(b,C,E){for(var B=-1,ie=b==null?0:b.length;++B-1;);return E}function Mf(b,C){for(var E=b.length;E--&&Yn(C,b[E],0)>-1;);return E}function Ib(b,C){for(var E=b.length,B=0;E--;)b[E]===C&&++B;return B}var Lb=Eu(gb),kb=Eu(mb);function Db(b){return"\\"+yb[b]}function Nb(b,C){return b==null?t:b[C]}function Qn(b){return fb.test(b)}function $b(b){return hb.test(b)}function Mb(b){for(var C,E=[];!(C=b.next()).done;)E.push(C.value);return E}function Pu(b){var C=-1,E=Array(b.size);return b.forEach(function(B,ie){E[++C]=[ie,B]}),E}function Ff(b,C){return function(E){return b(C(E))}}function fn(b,C){for(var E=-1,B=b.length,ie=0,ge=[];++E-1}function Ew(e,r){var s=this.__data__,a=Ji(s,e);return a<0?(++this.size,s.push([e,r])):s[a][1]=r,this}zt.prototype.clear=bw,zt.prototype.delete=ww,zt.prototype.get=Sw,zt.prototype.has=xw,zt.prototype.set=Ew;function Yt(e){var r=-1,s=e==null?0:e.length;for(this.clear();++r=r?e:r)),e}function bt(e,r,s,a,l,d){var m,y=r&_,w=r&v,P=r&x;if(s&&(m=l?s(e,a,l,d):s(e)),m!==t)return m;if(!Te(e))return e;var T=se(e);if(T){if(m=PS(e),!y)return Je(e,m)}else{var k=Ke(e),M=k==_e||k==$;if(yn(e))return bh(e,y);if(k==we||k==an||M&&!l){if(m=w||M?{}:qh(e),!y)return w?_S(e,Hw(m,e)):mS(e,Qf(m,e))}else{if(!Ee[k])return l?e:{};m=TS(e,k,y)}}d||(d=new Tt);var U=d.get(e);if(U)return U;d.set(e,m),dp(e)?e.forEach(function(J){m.add(bt(J,r,s,J,e,d))}):hp(e)&&e.forEach(function(J,he){m.set(he,bt(J,r,s,he,e,d))});var V=P?w?ea:Ju:w?tt:qe,ce=T?t:V(e);return _t(ce||e,function(J,he){ce&&(he=J,J=e[he]),ni(m,he,bt(J,r,s,he,e,d))}),m}function Bw(e){var r=qe(e);return function(s){return Zf(s,e,r)}}function Zf(e,r,s){var a=s.length;if(e==null)return!a;for(e=xe(e);a--;){var l=s[a],d=r[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function Vf(e,r,s){if(typeof e!="function")throw new yt(u);return ci(function(){e.apply(t,s)},r)}function ri(e,r,s,a){var l=-1,d=$i,m=!0,y=e.length,w=[],P=r.length;if(!y)return w;s&&(r=Re(r,ot(s))),a?(d=bu,m=!1):r.length>=i&&(d=Qr,m=!1,r=new On(r));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:mp(a);s0&&s(y)?r>1?Ue(y,r-1,s,a,l):ln(l,y):a||(l[l.length]=y)}return l}var Nu=Rh(),th=Rh(!0);function Ft(e,r){return e&&Nu(e,r,qe)}function $u(e,r){return e&&th(e,r,qe)}function ts(e,r){return cn(r,function(s){return en(e[s])})}function Ln(e,r){r=mn(r,e);for(var s=0,a=r.length;e!=null&&sr}function Gw(e,r){return e!=null&&Se.call(e,r)}function jw(e,r){return e!=null&&r in xe(e)}function Kw(e,r,s){return e>=je(r,s)&&e=120&&T.length>=120)?new On(m&&T):t}T=e[0];var k=-1,M=y[0];e:for(;++k-1;)y!==e&&Ki.call(y,w,1),Ki.call(e,w,1);return e}function hh(e,r){for(var s=e?r.length:0,a=s-1;s--;){var l=r[s];if(s==a||l!==d){var d=l;Jt(l)?Ki.call(e,l,1):Ku(e,l)}}return e}function Uu(e,r){return e+Yi(Kf()*(r-e+1))}function sS(e,r,s,a){for(var l=-1,d=Me(zi((r-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function Gu(e,r){var s="";if(!e||r<1||r>R)return s;do r%2&&(s+=e),r=Yi(r/2),r&&(e+=e);while(r);return s}function le(e,r){return ua(Wh(e,r,nt),e+"")}function oS(e){return Yf(or(e))}function uS(e,r){var s=or(e);return hs(s,In(r,0,s.length))}function oi(e,r,s,a){if(!Te(e))return e;r=mn(r,e);for(var l=-1,d=r.length,m=d-1,y=e;y!=null&&++ll?0:l+r),s=s>l?l:s,s<0&&(s+=l),l=r>s?0:s-r>>>0,r>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=r:m=i){var P=r?null:wS(e);if(P)return Fi(P);m=!1,l=Qr,w=new On}else w=r?[]:y;e:for(;++a=a?e:wt(e,r,s)}var vh=Vb||function(e){return Fe.clearTimeout(e)};function bh(e,r){if(r)return e.slice();var s=e.length,a=Bf?Bf(s):new e.constructor(s);return e.copy(a),a}function Qu(e){var r=new e.constructor(e.byteLength);return new Gi(r).set(new Gi(e)),r}function hS(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function pS(e){var r=new e.constructor(e.source,nf.exec(e));return r.lastIndex=e.lastIndex,r}function dS(e){return ti?xe(ti.call(e)):{}}function wh(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Sh(e,r){if(e!==r){var s=e!==t,a=e===null,l=e===e,d=at(e),m=r!==t,y=r===null,w=r===r,P=at(r);if(!y&&!P&&!d&&e>r||d&&m&&w&&!y&&!P||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!P&&e=y)return w;var P=s[a];return w*(P=="desc"?-1:1)}}return e.index-r.index}function xh(e,r,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=r.length,P=Me(d-m,0),T=E(w+P),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Ze(s[0],s[1],m)&&(d=l<3?t:d,l=1),r=xe(r);++a-1?l[d?r[m]:m]:t}}function Th(e){return Vt(function(r){var s=r.length,a=s,l=vt.prototype.thru;for(e&&r.reverse();a--;){var d=r[a];if(typeof d!="function")throw new yt(u);if(l&&!m&&ls(d)=="wrapper")var m=new vt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&wy))return!1;var P=d.get(e),T=d.get(r);if(P&&T)return P==r&&T==e;var k=-1,M=!0,U=s&H?new On:t;for(d.set(e,r),d.set(r,e);++k1?"& ":"")+r[a],r=r.join(s>2?", ":" "),e.replace(Lv,`{ /* [wrapped with `+r+`] */ -`)}function IS(e){return se(e)||Nn(e)||!!(Gf&&e&&e[Gf])}function Jt(e,r){var s=typeof e;return r=r??R,!!r&&(s=="number"||s!="symbol"&&Uv.test(e))&&e>-1&&e%1==0&&e0){if(++r>=Pe)return arguments[0]}else r=0;return e.apply(t,arguments)}}function hs(e,r){var s=-1,a=e.length,l=a-1;for(r=r===t?a:r;++s1?e[r-1]:t;return s=typeof s=="function"?(e.pop(),s):t,ep(e,s)});function tp(e){var r=p(e);return r.__chain__=!0,r}function Wx(e,r){return r(e),e}function ps(e,r){return r(e)}var Ux=Vt(function(e){var r=e.length,s=r?e[0]:0,a=this.__wrapped__,l=function(d){return Du(d,e)};return r>1||this.__actions__.length||!(a instanceof pe)||!Jt(s)?this.thru(l):(a=a.slice(s,+s+(r?1:0)),a.__actions__.push({func:ps,args:[l],thisArg:t}),new vt(a,this.__chain__).thru(function(d){return r&&!d.length&&d.push(t),d}))});function Gx(){return tp(this)}function Kx(){return new vt(this.value(),this.__chain__)}function jx(){this.__values__===t&&(this.__values__=gp(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function Xx(){return this}function zx(e){for(var r,s=this;s instanceof Vi;){var a=zh(s);a.__index__=0,a.__values__=t,r?l.__wrapped__=a:r=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,r}function Yx(){var e=this.__wrapped__;if(e instanceof pe){var r=e;return this.__actions__.length&&(r=new pe(this)),r=r.reverse(),r.__actions__.push({func:ps,args:[aa],thisArg:t}),new vt(r,this.__chain__)}return this.thru(aa)}function Qx(){return _h(this.__wrapped__,this.__actions__)}var Zx=ss(function(e,r,s){Se.call(e,s)?++e[s]:Qt(e,s,1)});function Vx(e,r,s){var a=se(e)?Of:Ww;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}function Jx(e,r){var s=se(e)?cn:eh;return s(e,X(r,3))}var eE=Ph(Yh),tE=Ph(Qh);function nE(e,r){return Ue(ds(e,r),1)}function rE(e,r){return Ue(ds(e,r),A)}function iE(e,r,s){return s=s===t?1:ae(s),Ue(ds(e,r),s)}function np(e,r){var s=se(e)?_t:dn;return s(e,X(r,3))}function rp(e,r){var s=se(e)?xb:Jf;return s(e,X(r,3))}var sE=ss(function(e,r,s){Se.call(e,s)?e[s].push(r):Qt(e,s,[r])});function oE(e,r,s,a){e=et(e)?e:or(e),s=s&&!a?ae(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),vs(e)?s<=l&&e.indexOf(r,s)>-1:!!l&&Yn(e,r,s)>-1}var uE=le(function(e,r,s){var a=-1,l=typeof r=="function",d=et(e)?E(e.length):[];return dn(e,function(m){d[++a]=l?st(r,m,s):ii(m,r,s)}),d}),aE=ss(function(e,r,s){Qt(e,s,r)});function ds(e,r){var s=se(e)?Re:oh;return s(e,X(r,3))}function cE(e,r,s,a){return e==null?[]:(se(r)||(r=r==null?[]:[r]),s=a?t:s,se(s)||(s=s==null?[]:[s]),lh(e,r,s))}var lE=ss(function(e,r,s){e[s?0:1].push(r)},function(){return[[],[]]});function fE(e,r,s){var a=se(e)?wu:Df,l=arguments.length<3;return a(e,X(r,4),s,l,dn)}function hE(e,r,s){var a=se(e)?Eb:Df,l=arguments.length<3;return a(e,X(r,4),s,l,Jf)}function pE(e,r){var s=se(e)?cn:eh;return s(e,_s(X(r,3)))}function dE(e){var r=se(e)?Yf:oS;return r(e)}function gE(e,r,s){(s?Ze(e,r,s):r===t)?r=1:r=ae(r);var a=se(e)?Mw:uS;return a(e,r)}function mE(e){var r=se(e)?Fw:cS;return r(e)}function _E(e){if(e==null)return 0;if(et(e))return vs(e)?Zn(e):e.length;var r=je(e);return r==Z||r==Ct?e.size:Hu(e).length}function yE(e,r,s){var a=se(e)?Su:lS;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}var vE=le(function(e,r){if(e==null)return[];var s=r.length;return s>1&&Ze(e,r[0],r[1])?r=[]:s>2&&Ze(r[0],r[1],r[2])&&(r=[r[0]]),lh(e,Ue(r,1),[])}),gs=Jb||function(){return Fe.Date.now()};function bE(e,r){if(typeof r!="function")throw new yt(u);return e=ae(e),function(){if(--e<1)return r.apply(this,arguments)}}function ip(e,r,s){return r=s?t:r,r=e&&r==null?e.length:r,Zt(e,N,t,t,t,t,r)}function sp(e,r){var s;if(typeof r!="function")throw new yt(u);return e=ae(e),function(){return--e>0&&(s=r.apply(this,arguments)),e<=1&&(r=t),s}}var la=le(function(e,r,s){var a=O;if(s.length){var l=fn(s,ir(la));a|=z}return Zt(e,a,r,s,l)}),op=le(function(e,r,s){var a=O|D;if(s.length){var l=fn(s,ir(op));a|=z}return Zt(r,a,e,s,l)});function up(e,r,s){r=s?t:r;var a=Zt(e,W,t,t,t,t,t,r);return a.placeholder=up.placeholder,a}function ap(e,r,s){r=s?t:r;var a=Zt(e,te,t,t,t,t,t,r);return a.placeholder=ap.placeholder,a}function cp(e,r,s){var a,l,d,m,y,w,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new yt(u);r=xt(r)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(xt(s.maxWait)||0,r):d,M="trailing"in s?!!s.trailing:M);function U(ke){var It=a,nn=l;return a=l=t,P=ke,m=e.apply(nn,It),m}function V(ke){return P=ke,y=ci(he,r),T?U(ke):m}function ce(ke){var It=ke-w,nn=ke-P,Pp=r-It;return k?Ke(Pp,d-nn):Pp}function J(ke){var It=ke-w,nn=ke-P;return w===t||It>=r||It<0||k&&nn>=d}function he(){var ke=gs();if(J(ke))return de(ke);y=ci(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&vh(y),P=0,a=w=l=y=t}function Ve(){return y===t?m:de(gs())}function lt(){var ke=gs(),It=J(ke);if(a=arguments,l=this,w=ke,It){if(y===t)return V(w);if(k)return vh(y),y=ci(he,r),U(w)}return y===t&&(y=ci(he,r)),m}return lt.cancel=ct,lt.flush=Ve,lt}var wE=le(function(e,r){return Vf(e,1,r)}),SE=le(function(e,r,s){return Vf(e,xt(r)||0,s)});function xE(e){return Zt(e,Q)}function ms(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new yt(u);var s=function(){var a=arguments,l=r?r.apply(this,a):a[0],d=s.cache;if(d.has(l))return d.get(l);var m=e.apply(this,a);return s.cache=d.set(l,m)||d,m};return s.cache=new(ms.Cache||Yt),s}ms.Cache=Yt;function _s(e){if(typeof e!="function")throw new yt(u);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function EE(e){return sp(2,e)}var AE=fS(function(e,r){r=r.length==1&&se(r[0])?Re(r[0],ot(X())):Re(Ue(r,1),ot(X()));var s=r.length;return le(function(a){for(var l=-1,d=Ke(a.length,s);++l=r}),Nn=rh(function(){return arguments}())?rh:function(e){return Oe(e)&&Se.call(e,"callee")&&!Uf.call(e,"callee")},se=E.isArray,HE=Ef?ot(Ef):zw;function et(e){return e!=null&&ys(e.length)&&!en(e)}function Le(e){return Oe(e)&&et(e)}function BE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var yn=tw||Sa,WE=Af?ot(Af):Yw;function UE(e){return Oe(e)&&e.nodeType===1&&!li(e)}function GE(e){if(e==null)return!0;if(et(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||sr(e)||Nn(e)))return!e.length;var r=je(e);if(r==Z||r==Ct)return!e.size;if(ai(e))return!Hu(e).length;for(var s in e)if(Se.call(e,s))return!1;return!0}function KE(e,r){return si(e,r)}function jE(e,r,s){s=typeof s=="function"?s:t;var a=s?s(e,r):t;return a===t?si(e,r,t,s):!!a}function ha(e){if(!Oe(e))return!1;var r=Qe(e);return r==F||r==tu||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function XE(e){return typeof e=="number"&&Kf(e)}function en(e){if(!Te(e))return!1;var r=Qe(e);return r==_e||r==$||r==Xt||r==jn}function fp(e){return typeof e=="number"&&e==ae(e)}function ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=R}function Te(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function Oe(e){return e!=null&&typeof e=="object"}var hp=Rf?ot(Rf):Zw;function zE(e,r){return e===r||qu(e,r,na(r))}function YE(e,r,s){return s=typeof s=="function"?s:t,qu(e,r,na(r),s)}function QE(e){return pp(e)&&e!=+e}function ZE(e){if(DS(e))throw new ie(o);return ih(e)}function VE(e){return e===null}function JE(e){return e==null}function pp(e){return typeof e=="number"||Oe(e)&&Qe(e)==be}function li(e){if(!Oe(e)||Qe(e)!=we)return!1;var r=Ki(e);if(r===null)return!0;var s=Se.call(r,"constructor")&&r.constructor;return typeof s=="function"&&s instanceof s&&Bi.call(s)==Yb}var pa=Cf?ot(Cf):Vw;function e0(e){return fp(e)&&e>=-R&&e<=R}var dp=Pf?ot(Pf):Jw;function vs(e){return typeof e=="string"||!se(e)&&Oe(e)&&Qe(e)==Xr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==Li}var sr=Tf?ot(Tf):eS;function t0(e){return e===t}function n0(e){return Oe(e)&&je(e)==zr}function r0(e){return Oe(e)&&Qe(e)==vv}var i0=cs(Bu),s0=cs(function(e,r){return e<=r});function gp(e){if(!e)return[];if(et(e))return vs(e)?Pt(e):Je(e);if(Zr&&e[Zr])return Mb(e[Zr]());var r=je(e),s=r==Z?Pu:r==Ct?Fi:or;return s(e)}function tn(e){if(!e)return e===0?e:0;if(e=xt(e),e===A||e===-A){var r=e<0?-1:1;return r*Be}return e===e?e:0}function ae(e){var r=tn(e),s=r%1;return r===r?s?r-s:r:0}function mp(e){return e?In(ae(e),0,Ie):0}function xt(e){if(typeof e=="number")return e;if(at(e))return fe;if(Te(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Te(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Nf(e);var s=Hv.test(e);return s||Wv.test(e)?bb(e.slice(2),s?2:8):qv.test(e)?fe:+e}function _p(e){return qt(e,tt(e))}function o0(e){return e?In(ae(e),-R,R):e===0?e:0}function ye(e){return e==null?"":ut(e)}var u0=nr(function(e,r){if(ai(r)||et(r)){qt(r,qe(r),e);return}for(var s in r)Se.call(r,s)&&ni(e,s,r[s])}),yp=nr(function(e,r){qt(r,tt(r),e)}),bs=nr(function(e,r,s,a){qt(r,tt(r),e,a)}),a0=nr(function(e,r,s,a){qt(r,qe(r),e,a)}),c0=Vt(Du);function l0(e,r){var s=tr(e);return r==null?s:Qf(s,r)}var f0=le(function(e,r){e=xe(e);var s=-1,a=r.length,l=a>2?r[2]:t;for(l&&Ze(r[0],r[1],l)&&(a=1);++s1),d}),qt(e,ea(e),s),a&&(s=bt(s,_|v|x,SS));for(var l=r.length;l--;)ju(s,r[l]);return s});function T0(e,r){return bp(e,_s(X(r)))}var O0=Vt(function(e,r){return e==null?{}:rS(e,r)});function bp(e,r){if(e==null)return{};var s=Re(ea(e),function(a){return[a]});return r=X(r),fh(e,s,function(a,l){return r(a,l[0])})}function I0(e,r,s){r=mn(r,e);var a=-1,l=r.length;for(l||(l=1,e=t);++ar){var a=e;e=r,r=a}if(s||e%1||r%1){var l=jf();return Ke(e+l*(r-e+vb("1e-"+((l+"").length-1))),r)}return Uu(e,r)}var W0=rr(function(e,r,s){return r=r.toLowerCase(),e+(s?xp(r):r)});function xp(e){return ma(ye(e).toLowerCase())}function Ep(e){return e=ye(e),e&&e.replace(Gv,Lb).replace(cb,"")}function U0(e,r,s){e=ye(e),r=ut(r);var a=e.length;s=s===t?a:In(ae(s),0,a);var l=s;return s-=r.length,s>=0&&e.slice(s,l)==r}function G0(e){return e=ye(e),e&&Ev.test(e)?e.replace(ef,kb):e}function K0(e){return e=ye(e),e&&Ov.test(e)?e.replace(fu,"\\$&"):e}var j0=rr(function(e,r,s){return e+(s?"-":"")+r.toLowerCase()}),X0=rr(function(e,r,s){return e+(s?" ":"")+r.toLowerCase()}),z0=Ch("toLowerCase");function Y0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;if(!r||a>=r)return e;var l=(r-a)/2;return as(Yi(l),s)+e+as(zi(l),s)}function Q0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;return r&&a>>0,s?(e=ye(e),e&&(typeof r=="string"||r!=null&&!pa(r))&&(r=ut(r),!r&&Qn(e))?_n(Pt(e),0,s):e.split(r,s)):[]}var rA=rr(function(e,r,s){return e+(s?" ":"")+ma(r)});function iA(e,r,s){return e=ye(e),s=s==null?0:In(ae(s),0,e.length),r=ut(r),e.slice(s,s+r.length)==r}function sA(e,r,s){var a=p.templateSettings;s&&Ze(e,r,s)&&(r=t),e=ye(e),r=bs({},r,a,Dh);var l=bs({},r.imports,a.imports,Dh),d=qe(l),m=Cu(l,d),y,w,P=0,T=r.interpolate||ki,k="__p += '",M=Tu((r.escape||ki).source+"|"+T.source+"|"+(T===tf?Fv:ki).source+"|"+(r.evaluate||ki).source+"|$","g"),U="//# sourceURL="+(Se.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++db+"]")+` -`;e.replace(M,function(J,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(P,lt).replace(Kv,Db),he&&(y=!0,k+=`' + +`)}function IS(e){return se(e)||Nn(e)||!!(Gf&&e&&e[Gf])}function Jt(e,r){var s=typeof e;return r=r??R,!!r&&(s=="number"||s!="symbol"&&Uv.test(e))&&e>-1&&e%1==0&&e0){if(++r>=Pe)return arguments[0]}else r=0;return e.apply(t,arguments)}}function hs(e,r){var s=-1,a=e.length,l=a-1;for(r=r===t?a:r;++s1?e[r-1]:t;return s=typeof s=="function"?(e.pop(),s):t,ep(e,s)});function tp(e){var r=p(e);return r.__chain__=!0,r}function Wx(e,r){return r(e),e}function ps(e,r){return r(e)}var Ux=Vt(function(e){var r=e.length,s=r?e[0]:0,a=this.__wrapped__,l=function(d){return Du(d,e)};return r>1||this.__actions__.length||!(a instanceof pe)||!Jt(s)?this.thru(l):(a=a.slice(s,+s+(r?1:0)),a.__actions__.push({func:ps,args:[l],thisArg:t}),new vt(a,this.__chain__).thru(function(d){return r&&!d.length&&d.push(t),d}))});function Gx(){return tp(this)}function jx(){return new vt(this.value(),this.__chain__)}function Kx(){this.__values__===t&&(this.__values__=gp(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function Xx(){return this}function zx(e){for(var r,s=this;s instanceof Vi;){var a=zh(s);a.__index__=0,a.__values__=t,r?l.__wrapped__=a:r=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,r}function Yx(){var e=this.__wrapped__;if(e instanceof pe){var r=e;return this.__actions__.length&&(r=new pe(this)),r=r.reverse(),r.__actions__.push({func:ps,args:[aa],thisArg:t}),new vt(r,this.__chain__)}return this.thru(aa)}function Qx(){return _h(this.__wrapped__,this.__actions__)}var Zx=ss(function(e,r,s){Se.call(e,s)?++e[s]:Qt(e,s,1)});function Vx(e,r,s){var a=se(e)?Of:Ww;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}function Jx(e,r){var s=se(e)?cn:eh;return s(e,X(r,3))}var eE=Ph(Yh),tE=Ph(Qh);function nE(e,r){return Ue(ds(e,r),1)}function rE(e,r){return Ue(ds(e,r),A)}function iE(e,r,s){return s=s===t?1:ae(s),Ue(ds(e,r),s)}function np(e,r){var s=se(e)?_t:dn;return s(e,X(r,3))}function rp(e,r){var s=se(e)?xb:Jf;return s(e,X(r,3))}var sE=ss(function(e,r,s){Se.call(e,s)?e[s].push(r):Qt(e,s,[r])});function oE(e,r,s,a){e=et(e)?e:or(e),s=s&&!a?ae(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),vs(e)?s<=l&&e.indexOf(r,s)>-1:!!l&&Yn(e,r,s)>-1}var uE=le(function(e,r,s){var a=-1,l=typeof r=="function",d=et(e)?E(e.length):[];return dn(e,function(m){d[++a]=l?st(r,m,s):ii(m,r,s)}),d}),aE=ss(function(e,r,s){Qt(e,s,r)});function ds(e,r){var s=se(e)?Re:oh;return s(e,X(r,3))}function cE(e,r,s,a){return e==null?[]:(se(r)||(r=r==null?[]:[r]),s=a?t:s,se(s)||(s=s==null?[]:[s]),lh(e,r,s))}var lE=ss(function(e,r,s){e[s?0:1].push(r)},function(){return[[],[]]});function fE(e,r,s){var a=se(e)?wu:Df,l=arguments.length<3;return a(e,X(r,4),s,l,dn)}function hE(e,r,s){var a=se(e)?Eb:Df,l=arguments.length<3;return a(e,X(r,4),s,l,Jf)}function pE(e,r){var s=se(e)?cn:eh;return s(e,_s(X(r,3)))}function dE(e){var r=se(e)?Yf:oS;return r(e)}function gE(e,r,s){(s?Ze(e,r,s):r===t)?r=1:r=ae(r);var a=se(e)?Mw:uS;return a(e,r)}function mE(e){var r=se(e)?Fw:cS;return r(e)}function _E(e){if(e==null)return 0;if(et(e))return vs(e)?Zn(e):e.length;var r=Ke(e);return r==Z||r==Ct?e.size:Hu(e).length}function yE(e,r,s){var a=se(e)?Su:lS;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}var vE=le(function(e,r){if(e==null)return[];var s=r.length;return s>1&&Ze(e,r[0],r[1])?r=[]:s>2&&Ze(r[0],r[1],r[2])&&(r=[r[0]]),lh(e,Ue(r,1),[])}),gs=Jb||function(){return Fe.Date.now()};function bE(e,r){if(typeof r!="function")throw new yt(u);return e=ae(e),function(){if(--e<1)return r.apply(this,arguments)}}function ip(e,r,s){return r=s?t:r,r=e&&r==null?e.length:r,Zt(e,N,t,t,t,t,r)}function sp(e,r){var s;if(typeof r!="function")throw new yt(u);return e=ae(e),function(){return--e>0&&(s=r.apply(this,arguments)),e<=1&&(r=t),s}}var la=le(function(e,r,s){var a=O;if(s.length){var l=fn(s,ir(la));a|=z}return Zt(e,a,r,s,l)}),op=le(function(e,r,s){var a=O|D;if(s.length){var l=fn(s,ir(op));a|=z}return Zt(r,a,e,s,l)});function up(e,r,s){r=s?t:r;var a=Zt(e,W,t,t,t,t,t,r);return a.placeholder=up.placeholder,a}function ap(e,r,s){r=s?t:r;var a=Zt(e,te,t,t,t,t,t,r);return a.placeholder=ap.placeholder,a}function cp(e,r,s){var a,l,d,m,y,w,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new yt(u);r=xt(r)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(xt(s.maxWait)||0,r):d,M="trailing"in s?!!s.trailing:M);function U(ke){var It=a,nn=l;return a=l=t,P=ke,m=e.apply(nn,It),m}function V(ke){return P=ke,y=ci(he,r),T?U(ke):m}function ce(ke){var It=ke-w,nn=ke-P,Pp=r-It;return k?je(Pp,d-nn):Pp}function J(ke){var It=ke-w,nn=ke-P;return w===t||It>=r||It<0||k&&nn>=d}function he(){var ke=gs();if(J(ke))return de(ke);y=ci(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&vh(y),P=0,a=w=l=y=t}function Ve(){return y===t?m:de(gs())}function lt(){var ke=gs(),It=J(ke);if(a=arguments,l=this,w=ke,It){if(y===t)return V(w);if(k)return vh(y),y=ci(he,r),U(w)}return y===t&&(y=ci(he,r)),m}return lt.cancel=ct,lt.flush=Ve,lt}var wE=le(function(e,r){return Vf(e,1,r)}),SE=le(function(e,r,s){return Vf(e,xt(r)||0,s)});function xE(e){return Zt(e,Q)}function ms(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new yt(u);var s=function(){var a=arguments,l=r?r.apply(this,a):a[0],d=s.cache;if(d.has(l))return d.get(l);var m=e.apply(this,a);return s.cache=d.set(l,m)||d,m};return s.cache=new(ms.Cache||Yt),s}ms.Cache=Yt;function _s(e){if(typeof e!="function")throw new yt(u);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function EE(e){return sp(2,e)}var AE=fS(function(e,r){r=r.length==1&&se(r[0])?Re(r[0],ot(X())):Re(Ue(r,1),ot(X()));var s=r.length;return le(function(a){for(var l=-1,d=je(a.length,s);++l=r}),Nn=rh(function(){return arguments}())?rh:function(e){return Oe(e)&&Se.call(e,"callee")&&!Uf.call(e,"callee")},se=E.isArray,HE=Ef?ot(Ef):zw;function et(e){return e!=null&&ys(e.length)&&!en(e)}function Le(e){return Oe(e)&&et(e)}function BE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var yn=tw||Sa,WE=Af?ot(Af):Yw;function UE(e){return Oe(e)&&e.nodeType===1&&!li(e)}function GE(e){if(e==null)return!0;if(et(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||sr(e)||Nn(e)))return!e.length;var r=Ke(e);if(r==Z||r==Ct)return!e.size;if(ai(e))return!Hu(e).length;for(var s in e)if(Se.call(e,s))return!1;return!0}function jE(e,r){return si(e,r)}function KE(e,r,s){s=typeof s=="function"?s:t;var a=s?s(e,r):t;return a===t?si(e,r,t,s):!!a}function ha(e){if(!Oe(e))return!1;var r=Qe(e);return r==F||r==tu||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function XE(e){return typeof e=="number"&&jf(e)}function en(e){if(!Te(e))return!1;var r=Qe(e);return r==_e||r==$||r==Xt||r==Kn}function fp(e){return typeof e=="number"&&e==ae(e)}function ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=R}function Te(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function Oe(e){return e!=null&&typeof e=="object"}var hp=Rf?ot(Rf):Zw;function zE(e,r){return e===r||qu(e,r,na(r))}function YE(e,r,s){return s=typeof s=="function"?s:t,qu(e,r,na(r),s)}function QE(e){return pp(e)&&e!=+e}function ZE(e){if(DS(e))throw new ie(o);return ih(e)}function VE(e){return e===null}function JE(e){return e==null}function pp(e){return typeof e=="number"||Oe(e)&&Qe(e)==be}function li(e){if(!Oe(e)||Qe(e)!=we)return!1;var r=ji(e);if(r===null)return!0;var s=Se.call(r,"constructor")&&r.constructor;return typeof s=="function"&&s instanceof s&&Bi.call(s)==Yb}var pa=Cf?ot(Cf):Vw;function e0(e){return fp(e)&&e>=-R&&e<=R}var dp=Pf?ot(Pf):Jw;function vs(e){return typeof e=="string"||!se(e)&&Oe(e)&&Qe(e)==Xr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==Li}var sr=Tf?ot(Tf):eS;function t0(e){return e===t}function n0(e){return Oe(e)&&Ke(e)==zr}function r0(e){return Oe(e)&&Qe(e)==vv}var i0=cs(Bu),s0=cs(function(e,r){return e<=r});function gp(e){if(!e)return[];if(et(e))return vs(e)?Pt(e):Je(e);if(Zr&&e[Zr])return Mb(e[Zr]());var r=Ke(e),s=r==Z?Pu:r==Ct?Fi:or;return s(e)}function tn(e){if(!e)return e===0?e:0;if(e=xt(e),e===A||e===-A){var r=e<0?-1:1;return r*Be}return e===e?e:0}function ae(e){var r=tn(e),s=r%1;return r===r?s?r-s:r:0}function mp(e){return e?In(ae(e),0,Ie):0}function xt(e){if(typeof e=="number")return e;if(at(e))return fe;if(Te(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Te(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Nf(e);var s=Hv.test(e);return s||Wv.test(e)?bb(e.slice(2),s?2:8):qv.test(e)?fe:+e}function _p(e){return qt(e,tt(e))}function o0(e){return e?In(ae(e),-R,R):e===0?e:0}function ye(e){return e==null?"":ut(e)}var u0=nr(function(e,r){if(ai(r)||et(r)){qt(r,qe(r),e);return}for(var s in r)Se.call(r,s)&&ni(e,s,r[s])}),yp=nr(function(e,r){qt(r,tt(r),e)}),bs=nr(function(e,r,s,a){qt(r,tt(r),e,a)}),a0=nr(function(e,r,s,a){qt(r,qe(r),e,a)}),c0=Vt(Du);function l0(e,r){var s=tr(e);return r==null?s:Qf(s,r)}var f0=le(function(e,r){e=xe(e);var s=-1,a=r.length,l=a>2?r[2]:t;for(l&&Ze(r[0],r[1],l)&&(a=1);++s1),d}),qt(e,ea(e),s),a&&(s=bt(s,_|v|x,SS));for(var l=r.length;l--;)Ku(s,r[l]);return s});function T0(e,r){return bp(e,_s(X(r)))}var O0=Vt(function(e,r){return e==null?{}:rS(e,r)});function bp(e,r){if(e==null)return{};var s=Re(ea(e),function(a){return[a]});return r=X(r),fh(e,s,function(a,l){return r(a,l[0])})}function I0(e,r,s){r=mn(r,e);var a=-1,l=r.length;for(l||(l=1,e=t);++ar){var a=e;e=r,r=a}if(s||e%1||r%1){var l=Kf();return je(e+l*(r-e+vb("1e-"+((l+"").length-1))),r)}return Uu(e,r)}var W0=rr(function(e,r,s){return r=r.toLowerCase(),e+(s?xp(r):r)});function xp(e){return ma(ye(e).toLowerCase())}function Ep(e){return e=ye(e),e&&e.replace(Gv,Lb).replace(cb,"")}function U0(e,r,s){e=ye(e),r=ut(r);var a=e.length;s=s===t?a:In(ae(s),0,a);var l=s;return s-=r.length,s>=0&&e.slice(s,l)==r}function G0(e){return e=ye(e),e&&Ev.test(e)?e.replace(ef,kb):e}function j0(e){return e=ye(e),e&&Ov.test(e)?e.replace(fu,"\\$&"):e}var K0=rr(function(e,r,s){return e+(s?"-":"")+r.toLowerCase()}),X0=rr(function(e,r,s){return e+(s?" ":"")+r.toLowerCase()}),z0=Ch("toLowerCase");function Y0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;if(!r||a>=r)return e;var l=(r-a)/2;return as(Yi(l),s)+e+as(zi(l),s)}function Q0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;return r&&a>>0,s?(e=ye(e),e&&(typeof r=="string"||r!=null&&!pa(r))&&(r=ut(r),!r&&Qn(e))?_n(Pt(e),0,s):e.split(r,s)):[]}var rA=rr(function(e,r,s){return e+(s?" ":"")+ma(r)});function iA(e,r,s){return e=ye(e),s=s==null?0:In(ae(s),0,e.length),r=ut(r),e.slice(s,s+r.length)==r}function sA(e,r,s){var a=p.templateSettings;s&&Ze(e,r,s)&&(r=t),e=ye(e),r=bs({},r,a,Dh);var l=bs({},r.imports,a.imports,Dh),d=qe(l),m=Cu(l,d),y,w,P=0,T=r.interpolate||ki,k="__p += '",M=Tu((r.escape||ki).source+"|"+T.source+"|"+(T===tf?Fv:ki).source+"|"+(r.evaluate||ki).source+"|$","g"),U="//# sourceURL="+(Se.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++db+"]")+` +`;e.replace(M,function(J,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(P,lt).replace(jv,Db),he&&(y=!0,k+=`' + __e(`+he+`) + '`),Ve&&(w=!0,k+=`'; `+Ve+`; @@ -23,10 +23,10 @@ __p += '`),de&&(k+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+k+`return __p -}`;var ce=Rp(function(){return ge(d,U+"return "+k).apply(t,m)});if(ce.source=k,ha(ce))throw ce;return ce}function oA(e){return ye(e).toLowerCase()}function uA(e){return ye(e).toUpperCase()}function aA(e,r,s){if(e=ye(e),e&&(s||r===t))return Nf(e);if(!e||!(r=ut(r)))return e;var a=Pt(e),l=Pt(r),d=$f(a,l),m=Mf(a,l)+1;return _n(a,d,m).join("")}function cA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.slice(0,qf(e)+1);if(!e||!(r=ut(r)))return e;var a=Pt(e),l=Mf(a,Pt(r))+1;return _n(a,0,l).join("")}function lA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.replace(hu,"");if(!e||!(r=ut(r)))return e;var a=Pt(e),l=$f(a,Pt(r));return _n(a,l).join("")}function fA(e,r){var s=G,a=ue;if(Te(r)){var l="separator"in r?r.separator:l;s="length"in r?ae(r.length):s,a="omission"in r?ut(r.omission):a}e=ye(e);var d=e.length;if(Qn(e)){var m=Pt(e);d=m.length}if(s>=d)return e;var y=s-Zn(a);if(y<1)return a;var w=m?_n(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),pa(l)){if(e.slice(y).search(l)){var P,T=w;for(l.global||(l=Tu(l.source,ye(nf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function hA(e){return e=ye(e),e&&xv.test(e)?e.replace(Jl,Bb):e}var pA=rr(function(e,r,s){return e+(s?" ":"")+r.toUpperCase()}),ma=Ch("toUpperCase");function Ap(e,r,s){return e=ye(e),r=s?t:r,r===t?$b(e)?Gb(e):Cb(e):e.match(r)||[]}var Rp=le(function(e,r){try{return st(e,t,r)}catch(s){return ha(s)?s:new ie(s)}}),dA=Vt(function(e,r){return _t(r,function(s){s=Ht(s),Qt(e,s,la(e[s],e))}),e});function gA(e){var r=e==null?0:e.length,s=X();return e=r?Re(e,function(a){if(typeof a[1]!="function")throw new yt(u);return[s(a[0]),a[1]]}):[],le(function(a){for(var l=-1;++lR)return[];var s=Ie,a=Ke(e,Ie);r=X(r),e-=Ie;for(var l=Ru(a,r);++s0||r<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),r!==t&&(r=ae(r),s=r<0?s.dropRight(-r):s.take(r-e)),s)},pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},pe.prototype.toArray=function(){return this.take(Ie)},Ft(pe.prototype,function(e,r){var s=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),l=p[a?"take"+(r=="last"?"Right":""):r],d=a||/^find/.test(r);!l||(p.prototype[r]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,P=y[0],T=w||se(m),k=function(he){var de=l.apply(p,ln([he],y));return a&&M?de[0]:de};T&&s&&typeof P=="function"&&P.length!=1&&(w=T=!1);var M=this.__chain__,U=!!this.__actions__.length,V=d&&!M,ce=w&&!U;if(!d&&T){m=ce?m:new pe(this);var J=e.apply(m,y);return J.__actions__.push({func:ps,args:[k],thisArg:t}),new vt(J,M)}return V&&ce?e.apply(this,y):(J=this.thru(k),V?a?J.value()[0]:J.value():J)})}),_t(["pop","push","shift","sort","splice","unshift"],function(e){var r=qi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var d=this.value();return r.apply(se(d)?d:[],l)}return this[s](function(m){return r.apply(se(m)?m:[],l)})}}),Ft(pe.prototype,function(e,r){var s=p[r];if(s){var a=s.name+"";Se.call(er,a)||(er[a]=[]),er[a].push({name:r,func:s})}}),er[os(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=hw,pe.prototype.reverse=pw,pe.prototype.value=dw,p.prototype.at=Ux,p.prototype.chain=Gx,p.prototype.commit=Kx,p.prototype.next=jx,p.prototype.plant=zx,p.prototype.reverse=Yx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Qx,p.prototype.first=p.prototype.head,Zr&&(p.prototype[Zr]=Xx),p},hn=Kb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Fe._=hn,define(function(){return hn})):Cn?((Cn.exports=hn)._=hn,yu._=hn):Fe._=hn}).call(vr)});var w_=L((RD,b_)=>{"use strict";b_.exports=t=>function(){let n=arguments.length,i=new Array(n);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((CD,S_)=>{"use strict";var eo=q("fs"),$T=w_(),MT=t=>[typeof eo[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),FT=t=>{let n=eo[t];return $T(n)},qT=()=>{let t={};return Object.keys(eo).forEach(n=>{MT(n)?n==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[n]=FT(n):t[n]=eo[n]}),t};S_.exports=qT()});var Ge=L((PD,R_)=>{"use strict";var HT=t=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(n).join(" or ")},x_=t=>/array of /.test(t),E_=t=>t.split(" of ")[1],A_=t=>x_(t)?A_(E_(t)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===t),xi=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,BT=(t,n,i)=>i.indexOf(t)===n,WT=t=>{let n=xi(t),i;return n==="array"&&(i=t.map(o=>xi(o)).filter(BT),n+=` of ${i.join(", ")}`),n},UT=(t,n)=>{let i=E_(n);return xi(t)!=="array"?!1:t.every(o=>xi(o)===i)},wl=(t,n,i,o)=>{if(!o.some(c=>{if(!A_(c))throw new Error(`Unknown type "${c}"`);return x_(c)?UT(i,c):c===xi(i)}))throw new Error(`Argument "${n}" passed to ${t} must be ${HT(o)}. Received ${WT(i)}`)},GT=(t,n,i,o)=>{i!==void 0&&(wl(t,n,i,["object"]),Object.keys(i).forEach(u=>{let c=`${n}.${u}`;if(o[u]!==void 0)wl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};R_.exports={argument:wl,options:GT}});var to=L(C_=>{"use strict";C_.normalizeFileMode=t=>{let n;return typeof t=="number"?n=t.toString(8):n=t,n.substring(n.length-3)}});var ro=L(no=>{"use strict";var P_=it(),KT=Ge(),jT=(t,n)=>{let i=`${t}([path])`;KT.argument(i,"path",n,["string","undefined"])},XT=t=>{P_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},zT=t=>P_.rm(t,{recursive:!0,force:!0,maxRetries:3});no.validateInput=jT;no.sync=XT;no.async=zT});var Un=L(Rr=>{"use strict";var io=q("path"),Kt=it(),Sl=to(),T_=Ge(),O_=ro(),YT=(t,n,i)=>{let o=`${t}(path, [criteria])`;T_.argument(o,"path",n,["string"]),T_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},I_=t=>{let n=t||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Sl.normalizeFileMode(n.mode)),n},L_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),QT=t=>{let n;try{n=Kt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw L_(t);return n},xl=(t,n)=>{let i=n||{};try{Kt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")xl(io.dirname(t),i),Kt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},ZT=(t,n,i)=>{let o=()=>{let c=Sl.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&Kt.chmodSync(t,i.mode)},u=()=>{i.empty&&Kt.readdirSync(t).forEach(f=>{O_.sync(io.resolve(t,f))})};o(),u()},VT=(t,n)=>{let i=I_(n),o=QT(t);o?ZT(t,o,i):xl(t,i)},JT=t=>new Promise((n,i)=>{Kt.stat(t).then(o=>{o.isDirectory()?n(o):i(L_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),eO=t=>new Promise((n,i)=>{Kt.readdir(t).then(o=>{let u=c=>{if(c===o.length)n();else{let f=io.resolve(t,o[c]);O_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),tO=(t,n,i)=>new Promise((o,u)=>{let c=()=>{let h=Sl.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==h?Kt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?eO(t):Promise.resolve();c().then(f).then(o,u)}),El=(t,n)=>{let i=n||{};return new Promise((o,u)=>{Kt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?El(io.dirname(t),i).then(()=>Kt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},nO=(t,n)=>new Promise((i,o)=>{let u=I_(n);JT(t).then(c=>c!==void 0?tO(t,c,u):El(t,u)).then(i,o)});Rr.validateInput=YT;Rr.sync=VT;Rr.createSync=xl;Rr.async=nO;Rr.createAsync=El});var Ei=L(oo=>{"use strict";var k_=q("path"),Cr=it(),Al=Ge(),D_=Un(),rO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Al.argument(u,"path",n,["string"]),Al.argument(u,"data",i,["string","buffer","object","array"]),Al.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},so=".__new__",N_=(t,n)=>{let i=n;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},$_=(t,n,i)=>{try{Cr.writeFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")D_.createSync(k_.dirname(t)),Cr.writeFileSync(t,n,i);else throw o}},iO=(t,n,i)=>{$_(t+so,n,i),Cr.renameSync(t+so,t)},sO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=$_;o.atomic&&(c=iO),c(t,u,{mode:o.mode})},M_=(t,n,i)=>new Promise((o,u)=>{Cr.writeFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?D_.createAsync(k_.dirname(t)).then(()=>Cr.writeFile(t,n,i)).then(o,u):u(c)})}),oO=(t,n,i)=>new Promise((o,u)=>{M_(t+so,n,i).then(()=>Cr.rename(t+so,t)).then(o,u)}),uO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=M_;return o.atomic&&(c=oO),c(t,u,{mode:o.mode})};oo.validateInput=rO;oo.sync=sO;oo.async=uO});var H_=L(uo=>{"use strict";var F_=it(),q_=Ei(),Rl=Ge(),aO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Rl.argument(u,"path",n,["string"]),Rl.argument(u,"data",i,["string","buffer"]),Rl.options(u,"options",o,{mode:["string","number"]})},cO=(t,n,i)=>{try{F_.appendFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")q_.sync(t,n,i);else throw o}},lO=(t,n,i)=>new Promise((o,u)=>{F_.appendFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?q_.async(t,n,i).then(o,u):u(c)})});uo.validateInput=aO;uo.sync=cO;uo.async=lO});var G_=L(lo=>{"use strict";var ao=it(),Cl=to(),B_=Ge(),co=Ei(),fO=(t,n,i)=>{let o=`${t}(path, [criteria])`;B_.argument(o,"path",n,["string"]),B_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},W_=t=>{let n=t||{};return n.mode!==void 0&&(n.mode=Cl.normalizeFileMode(n.mode)),n},U_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),hO=t=>{let n;try{n=ao.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw U_(t);return n},pO=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>i.content!==void 0?(co.sync(t,i.content,{mode:o,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==o&&ao.chmodSync(t,i.mode)};u()||c()},dO=(t,n)=>{let i="";n.content!==void 0&&(i=n.content),co.sync(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},gO=(t,n)=>{let i=W_(n),o=hO(t);o!==void 0?pO(t,o,i):dO(t,i)},mO=t=>new Promise((n,i)=>{ao.stat(t).then(o=>{o.isFile()?n(o):i(U_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),_O=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>new Promise((f,h)=>{i.content!==void 0?co.async(t,i.content,{mode:o,jsonIndent:i.jsonIndent}).then(()=>{f(!0)}).catch(h):f(!1)}),c=()=>{if(i.mode!==void 0&&i.mode!==o)return ao.chmod(t,i.mode)};return u().then(f=>{if(!f)return c()})},yO=(t,n)=>{let i="";return n.content!==void 0&&(i=n.content),co.async(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},vO=(t,n)=>new Promise((i,o)=>{let u=W_(n);mO(t).then(c=>c!==void 0?_O(t,c,u):yO(t,u)).then(i,o)});lo.validateInput=fO;lo.sync=gO;lo.async=vO});var Tr=L(Pr=>{"use strict";var j_=q("crypto"),bO=q("path"),An=it(),K_=Ge(),Pl=["md5","sha1","sha256","sha512"],Tl=["report","follow"],wO=(t,n,i)=>{let o=`${t}(path, [options])`;if(K_.argument(o,"path",n,["string"]),K_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Pl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Pl.join(", ")}`);if(i&&i.symlinks!==void 0&&Tl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Tl.join(", ")}`)},X_=(t,n,i)=>{let o={};return o.name=bO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",n.mode&&(o.mode=i.mode),n.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),n.absolutePath&&(o.absolutePath=t),o},SO=(t,n)=>{let i=j_.createHash(n),o=An.readFileSync(t);return i.update(o),i.digest("hex")},xO=(t,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=SO(t,i.checksum):n.type==="symlink"&&(n.pointsAt=An.readlinkSync(t))},EO=(t,n)=>{let i=An.lstatSync,o,u=n||{};u.symlinks==="follow"&&(i=An.statSync);try{o=i(t)}catch(f){if(f.code==="ENOENT")return;throw f}let c=X_(t,u,o);return xO(t,c,u),c},AO=(t,n)=>new Promise((i,o)=>{let u=j_.createHash(n),c=An.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),RO=(t,n,i)=>n.type==="file"&&i.checksum?AO(t,i.checksum).then(o=>(n[i.checksum]=o,n)):n.type==="symlink"?An.readlink(t).then(o=>(n.pointsAt=o,n)):Promise.resolve(n),CO=(t,n)=>new Promise((i,o)=>{let u=An.lstat,c=n||{};c.symlinks==="follow"&&(u=An.stat),u(t).then(f=>{let h=X_(t,c,f);RO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Pr.supportedChecksumAlgorithms=Pl;Pr.symlinkOptions=Tl;Pr.validateInput=wO;Pr.sync=EO;Pr.async=CO});var ho=L(fo=>{"use strict";var z_=it(),PO=Ge(),TO=(t,n)=>{let i=`${t}(path)`;PO.argument(i,"path",n,["string","undefined"])},OO=t=>{try{return z_.readdirSync(t)}catch(n){if(n.code==="ENOENT")return;throw n}},IO=t=>new Promise((n,i)=>{z_.readdir(t).then(o=>{n(o)}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})});fo.validateInput=TO;fo.sync=OO;fo.async=IO});var _o=L(Ol=>{"use strict";var po=q("fs"),go=q("path"),Ai=Tr(),MD=ho(),mo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",LO=(t,n,i)=>{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let o=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let u=(f,h)=>{po.readdirSync(f,{withFileTypes:!0}).forEach(g=>{let _=typeof g=="string",v;_?v=go.join(f,g):v=go.join(f,g.name);let x;if(o)x=Ai.sync(v,n.inspectOptions);else if(_){let S=Ai.sync(v,n.inspectOptions);x={name:S.name,type:S.type}}else{let S=mo(g);if(S==="symlink"&&n.symlinks==="follow"){let H=po.statSync(v);x={name:g.name,type:mo(H)}}else x={name:g.name,type:S}}x!==void 0&&(i(v,x),x.type==="dir"&&h{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let u=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let c=[],f=0,h=()=>{if(c.length===0&&f===0)o();else if(c.length>0&&f{c.push(x),h()},_=()=>{f-=1,h()},v=(x,S)=>{let H=(O,D)=>{D.type==="dir"&&S{po.readdir(x,{withFileTypes:!0},(O,D)=>{O?o(O):(D.forEach(j=>{let W=typeof j=="string",te;if(W?te=go.join(x,j):te=go.join(x,j.name),u||W)g(()=>{Ai.async(te,n.inspectOptions).then(z=>{z!==void 0&&(u?i(te,z):i(te,{name:z.name,type:z.type}),H(te,z)),_()}).catch(z=>{o(z)})});else{let z=mo(j);if(z==="symlink"&&n.symlinks==="follow")g(()=>{po.stat(te,(Y,N)=>{if(Y)o(Y);else{let ne={name:j.name,type:mo(N)};i(te,ne),H(te,ne),_()}})});else{let Y={name:j.name,type:z};i(te,Y),H(te,Y)}}}),_())})})};Ai.async(t,n.inspectOptions).then(x=>{x?(u?i(t,x):i(t,{name:x.name,type:x.type}),x.type==="dir"?v(t,1):o()):(i(t,void 0),o())}).catch(x=>{o(x)})};Ol.sync=LO;Ol.async=DO});var Q_=L((qD,Y_)=>{var NO=typeof process=="object"&&process&&process.platform==="win32";Y_.exports=NO?{sep:"\\"}:{sep:"/"}});var ty=L((HD,ey)=>{"use strict";ey.exports=V_;function V_(t,n,i){t instanceof RegExp&&(t=Z_(t,i)),n instanceof RegExp&&(n=Z_(n,i));var o=J_(t,n,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+n.length)}}function Z_(t,n){var i=n.match(t);return i?i[0]:null}V_.range=J_;function J_(t,n,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(n,g+1),v=g;if(g>=0&&_>0){if(t===n)return[g,_];for(o=[],c=i.length;v>=0&&!h;)v==g?(o.push(v),g=i.indexOf(t,v+1)):o.length==1?h=[o.pop(),_]:(u=o.pop(),u=0?g:_;o.length&&(h=[c,f])}return h}});var cy=L((BD,ay)=>{var ny=ty();ay.exports=FO;var ry="\0SLASH"+Math.random()+"\0",iy="\0OPEN"+Math.random()+"\0",Ll="\0CLOSE"+Math.random()+"\0",sy="\0COMMA"+Math.random()+"\0",oy="\0PERIOD"+Math.random()+"\0";function Il(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function $O(t){return t.split("\\\\").join(ry).split("\\{").join(iy).split("\\}").join(Ll).split("\\,").join(sy).split("\\.").join(oy)}function MO(t){return t.split(ry).join("\\").split(iy).join("{").split(Ll).join("}").split(sy).join(",").split(oy).join(".")}function uy(t){if(!t)return[""];var n=[],i=ny("{","}",t);if(!i)return t.split(",");var o=i.pre,u=i.body,c=i.post,f=o.split(",");f[f.length-1]+="{"+u+"}";var h=uy(c);return c.length&&(f[f.length-1]+=h.shift(),f.push.apply(f,h)),n.push.apply(n,f),n}function FO(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ri($O(t),!0).map(MO)):[]}function qO(t){return"{"+t+"}"}function HO(t){return/^-?0\d/.test(t)}function BO(t,n){return t<=n}function WO(t,n){return t>=n}function Ri(t,n){var i=[],o=ny("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Ri(o.post,!1):[""];if(/\$$/.test(o.pre))for(var f=0;f=0;if(!v&&!x)return o.post.match(/,.*\}/)?(t=o.pre+"{"+o.body+Ll+o.post,Ri(t)):[t];var S;if(v)S=o.body.split(/\.\./);else if(S=uy(o.body),S.length===1&&(S=Ri(S[0],!1).map(qO),S.length===1))return c.map(function(Pe){return o.pre+S[0]+Pe});var H;if(v){var O=Il(S[0]),D=Il(S[1]),j=Math.max(S[0].length,S[1].length),W=S.length==3?Math.abs(Il(S[2])):1,te=BO,z=D0){var G=new Array(Q+1).join("0");N<0?ne="-"+G+ne.slice(1):ne=G+ne}}H.push(ne)}}else{H=[];for(var ue=0;ue{var pt=$l.exports=(t,n,i={})=>(vo(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Or(n,i).match(t));$l.exports=pt;var Dl=Q_();pt.sep=Dl.sep;var Dt=Symbol("globstar **");pt.GLOBSTAR=Dt;var UO=cy(),ly={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Nl="[^/]",kl=Nl+"*?",GO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",KO="(?:(?!(?:\\/|^)\\.).)*?",py=t=>t.split("").reduce((n,i)=>(n[i]=!0,n),{}),fy=py("().*{}+?[]^$\\!"),jO=py("[.("),hy=/\/+/;pt.filter=(t,n={})=>(i,o,u)=>pt(i,t,n);var Rn=(t,n={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(n).forEach(o=>i[o]=n[o]),i};pt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pt;let n=pt,i=(o,u,c)=>n(o,u,Rn(t,c));return i.Minimatch=class extends n.Minimatch{constructor(u,c){super(u,Rn(t,c))}},i.Minimatch.defaults=o=>n.defaults(Rn(t,o)).Minimatch,i.filter=(o,u)=>n.filter(o,Rn(t,u)),i.defaults=o=>n.defaults(Rn(t,o)),i.makeRe=(o,u)=>n.makeRe(o,Rn(t,u)),i.braceExpand=(o,u)=>n.braceExpand(o,Rn(t,u)),i.match=(o,u,c)=>n.match(o,u,Rn(t,c)),i};pt.braceExpand=(t,n)=>dy(t,n);var dy=(t,n={})=>(vo(t),n.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:UO(t)),XO=1024*64,vo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>XO)throw new TypeError("pattern is too long")},yo=Symbol("subparse");pt.makeRe=(t,n)=>new Or(t,n||{}).makeRe();pt.match=(t,n,i={})=>{let o=new Or(n,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(n),t};var zO=t=>t.replace(/\\(.)/g,"$1"),YO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Or=class{constructor(n,i){vo(n),i||(i={}),this.options=i,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.make()}debug(){}make(){let n=this.pattern,i=this.options;if(!i.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let o=this.globSet=this.braceExpand();i.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,o),o=this.globParts=o.map(u=>u.split(hy)),this.debug(this.pattern,o),o=o.map((u,c,f)=>u.map(this.parse,this)),this.debug(this.pattern,o),o=o.filter(u=>u.indexOf(!1)===-1),this.debug(this.pattern,o),this.set=o}parseNegate(){if(this.options.nonegate)return;let n=this.pattern,i=!1,o=0;for(let u=0;u=d)return e;var y=s-Zn(a);if(y<1)return a;var w=m?_n(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),pa(l)){if(e.slice(y).search(l)){var P,T=w;for(l.global||(l=Tu(l.source,ye(nf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function hA(e){return e=ye(e),e&&xv.test(e)?e.replace(Jl,Bb):e}var pA=rr(function(e,r,s){return e+(s?" ":"")+r.toUpperCase()}),ma=Ch("toUpperCase");function Ap(e,r,s){return e=ye(e),r=s?t:r,r===t?$b(e)?Gb(e):Cb(e):e.match(r)||[]}var Rp=le(function(e,r){try{return st(e,t,r)}catch(s){return ha(s)?s:new ie(s)}}),dA=Vt(function(e,r){return _t(r,function(s){s=Ht(s),Qt(e,s,la(e[s],e))}),e});function gA(e){var r=e==null?0:e.length,s=X();return e=r?Re(e,function(a){if(typeof a[1]!="function")throw new yt(u);return[s(a[0]),a[1]]}):[],le(function(a){for(var l=-1;++lR)return[];var s=Ie,a=je(e,Ie);r=X(r),e-=Ie;for(var l=Ru(a,r);++s0||r<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),r!==t&&(r=ae(r),s=r<0?s.dropRight(-r):s.take(r-e)),s)},pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},pe.prototype.toArray=function(){return this.take(Ie)},Ft(pe.prototype,function(e,r){var s=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),l=p[a?"take"+(r=="last"?"Right":""):r],d=a||/^find/.test(r);!l||(p.prototype[r]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,P=y[0],T=w||se(m),k=function(he){var de=l.apply(p,ln([he],y));return a&&M?de[0]:de};T&&s&&typeof P=="function"&&P.length!=1&&(w=T=!1);var M=this.__chain__,U=!!this.__actions__.length,V=d&&!M,ce=w&&!U;if(!d&&T){m=ce?m:new pe(this);var J=e.apply(m,y);return J.__actions__.push({func:ps,args:[k],thisArg:t}),new vt(J,M)}return V&&ce?e.apply(this,y):(J=this.thru(k),V?a?J.value()[0]:J.value():J)})}),_t(["pop","push","shift","sort","splice","unshift"],function(e){var r=qi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var d=this.value();return r.apply(se(d)?d:[],l)}return this[s](function(m){return r.apply(se(m)?m:[],l)})}}),Ft(pe.prototype,function(e,r){var s=p[r];if(s){var a=s.name+"";Se.call(er,a)||(er[a]=[]),er[a].push({name:r,func:s})}}),er[os(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=hw,pe.prototype.reverse=pw,pe.prototype.value=dw,p.prototype.at=Ux,p.prototype.chain=Gx,p.prototype.commit=jx,p.prototype.next=Kx,p.prototype.plant=zx,p.prototype.reverse=Yx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Qx,p.prototype.first=p.prototype.head,Zr&&(p.prototype[Zr]=Xx),p},hn=jb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Fe._=hn,define(function(){return hn})):Cn?((Cn.exports=hn)._=hn,yu._=hn):Fe._=hn}).call(vr)});var w_=L((RD,b_)=>{"use strict";b_.exports=t=>function(){let n=arguments.length,i=new Array(n);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((CD,S_)=>{"use strict";var eo=q("fs"),$T=w_(),MT=t=>[typeof eo[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),FT=t=>{let n=eo[t];return $T(n)},qT=()=>{let t={};return Object.keys(eo).forEach(n=>{MT(n)?n==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[n]=FT(n):t[n]=eo[n]}),t};S_.exports=qT()});var Ge=L((PD,R_)=>{"use strict";var HT=t=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(n).join(" or ")},x_=t=>/array of /.test(t),E_=t=>t.split(" of ")[1],A_=t=>x_(t)?A_(E_(t)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===t),xi=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,BT=(t,n,i)=>i.indexOf(t)===n,WT=t=>{let n=xi(t),i;return n==="array"&&(i=t.map(o=>xi(o)).filter(BT),n+=` of ${i.join(", ")}`),n},UT=(t,n)=>{let i=E_(n);return xi(t)!=="array"?!1:t.every(o=>xi(o)===i)},wl=(t,n,i,o)=>{if(!o.some(c=>{if(!A_(c))throw new Error(`Unknown type "${c}"`);return x_(c)?UT(i,c):c===xi(i)}))throw new Error(`Argument "${n}" passed to ${t} must be ${HT(o)}. Received ${WT(i)}`)},GT=(t,n,i,o)=>{i!==void 0&&(wl(t,n,i,["object"]),Object.keys(i).forEach(u=>{let c=`${n}.${u}`;if(o[u]!==void 0)wl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};R_.exports={argument:wl,options:GT}});var to=L(C_=>{"use strict";C_.normalizeFileMode=t=>{let n;return typeof t=="number"?n=t.toString(8):n=t,n.substring(n.length-3)}});var ro=L(no=>{"use strict";var P_=it(),jT=Ge(),KT=(t,n)=>{let i=`${t}([path])`;jT.argument(i,"path",n,["string","undefined"])},XT=t=>{P_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},zT=t=>P_.rm(t,{recursive:!0,force:!0,maxRetries:3});no.validateInput=KT;no.sync=XT;no.async=zT});var Un=L(Rr=>{"use strict";var io=q("path"),jt=it(),Sl=to(),T_=Ge(),O_=ro(),YT=(t,n,i)=>{let o=`${t}(path, [criteria])`;T_.argument(o,"path",n,["string"]),T_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},I_=t=>{let n=t||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Sl.normalizeFileMode(n.mode)),n},L_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),QT=t=>{let n;try{n=jt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw L_(t);return n},xl=(t,n)=>{let i=n||{};try{jt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")xl(io.dirname(t),i),jt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},ZT=(t,n,i)=>{let o=()=>{let c=Sl.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&jt.chmodSync(t,i.mode)},u=()=>{i.empty&&jt.readdirSync(t).forEach(f=>{O_.sync(io.resolve(t,f))})};o(),u()},VT=(t,n)=>{let i=I_(n),o=QT(t);o?ZT(t,o,i):xl(t,i)},JT=t=>new Promise((n,i)=>{jt.stat(t).then(o=>{o.isDirectory()?n(o):i(L_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),eO=t=>new Promise((n,i)=>{jt.readdir(t).then(o=>{let u=c=>{if(c===o.length)n();else{let f=io.resolve(t,o[c]);O_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),tO=(t,n,i)=>new Promise((o,u)=>{let c=()=>{let h=Sl.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==h?jt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?eO(t):Promise.resolve();c().then(f).then(o,u)}),El=(t,n)=>{let i=n||{};return new Promise((o,u)=>{jt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?El(io.dirname(t),i).then(()=>jt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},nO=(t,n)=>new Promise((i,o)=>{let u=I_(n);JT(t).then(c=>c!==void 0?tO(t,c,u):El(t,u)).then(i,o)});Rr.validateInput=YT;Rr.sync=VT;Rr.createSync=xl;Rr.async=nO;Rr.createAsync=El});var Ei=L(oo=>{"use strict";var k_=q("path"),Cr=it(),Al=Ge(),D_=Un(),rO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Al.argument(u,"path",n,["string"]),Al.argument(u,"data",i,["string","buffer","object","array"]),Al.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},so=".__new__",N_=(t,n)=>{let i=n;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},$_=(t,n,i)=>{try{Cr.writeFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")D_.createSync(k_.dirname(t)),Cr.writeFileSync(t,n,i);else throw o}},iO=(t,n,i)=>{$_(t+so,n,i),Cr.renameSync(t+so,t)},sO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=$_;o.atomic&&(c=iO),c(t,u,{mode:o.mode})},M_=(t,n,i)=>new Promise((o,u)=>{Cr.writeFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?D_.createAsync(k_.dirname(t)).then(()=>Cr.writeFile(t,n,i)).then(o,u):u(c)})}),oO=(t,n,i)=>new Promise((o,u)=>{M_(t+so,n,i).then(()=>Cr.rename(t+so,t)).then(o,u)}),uO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=M_;return o.atomic&&(c=oO),c(t,u,{mode:o.mode})};oo.validateInput=rO;oo.sync=sO;oo.async=uO});var H_=L(uo=>{"use strict";var F_=it(),q_=Ei(),Rl=Ge(),aO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Rl.argument(u,"path",n,["string"]),Rl.argument(u,"data",i,["string","buffer"]),Rl.options(u,"options",o,{mode:["string","number"]})},cO=(t,n,i)=>{try{F_.appendFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")q_.sync(t,n,i);else throw o}},lO=(t,n,i)=>new Promise((o,u)=>{F_.appendFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?q_.async(t,n,i).then(o,u):u(c)})});uo.validateInput=aO;uo.sync=cO;uo.async=lO});var G_=L(lo=>{"use strict";var ao=it(),Cl=to(),B_=Ge(),co=Ei(),fO=(t,n,i)=>{let o=`${t}(path, [criteria])`;B_.argument(o,"path",n,["string"]),B_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},W_=t=>{let n=t||{};return n.mode!==void 0&&(n.mode=Cl.normalizeFileMode(n.mode)),n},U_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),hO=t=>{let n;try{n=ao.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw U_(t);return n},pO=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>i.content!==void 0?(co.sync(t,i.content,{mode:o,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==o&&ao.chmodSync(t,i.mode)};u()||c()},dO=(t,n)=>{let i="";n.content!==void 0&&(i=n.content),co.sync(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},gO=(t,n)=>{let i=W_(n),o=hO(t);o!==void 0?pO(t,o,i):dO(t,i)},mO=t=>new Promise((n,i)=>{ao.stat(t).then(o=>{o.isFile()?n(o):i(U_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),_O=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>new Promise((f,h)=>{i.content!==void 0?co.async(t,i.content,{mode:o,jsonIndent:i.jsonIndent}).then(()=>{f(!0)}).catch(h):f(!1)}),c=()=>{if(i.mode!==void 0&&i.mode!==o)return ao.chmod(t,i.mode)};return u().then(f=>{if(!f)return c()})},yO=(t,n)=>{let i="";return n.content!==void 0&&(i=n.content),co.async(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},vO=(t,n)=>new Promise((i,o)=>{let u=W_(n);mO(t).then(c=>c!==void 0?_O(t,c,u):yO(t,u)).then(i,o)});lo.validateInput=fO;lo.sync=gO;lo.async=vO});var Tr=L(Pr=>{"use strict";var K_=q("crypto"),bO=q("path"),An=it(),j_=Ge(),Pl=["md5","sha1","sha256","sha512"],Tl=["report","follow"],wO=(t,n,i)=>{let o=`${t}(path, [options])`;if(j_.argument(o,"path",n,["string"]),j_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Pl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Pl.join(", ")}`);if(i&&i.symlinks!==void 0&&Tl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Tl.join(", ")}`)},X_=(t,n,i)=>{let o={};return o.name=bO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",n.mode&&(o.mode=i.mode),n.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),n.absolutePath&&(o.absolutePath=t),o},SO=(t,n)=>{let i=K_.createHash(n),o=An.readFileSync(t);return i.update(o),i.digest("hex")},xO=(t,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=SO(t,i.checksum):n.type==="symlink"&&(n.pointsAt=An.readlinkSync(t))},EO=(t,n)=>{let i=An.lstatSync,o,u=n||{};u.symlinks==="follow"&&(i=An.statSync);try{o=i(t)}catch(f){if(f.code==="ENOENT")return;throw f}let c=X_(t,u,o);return xO(t,c,u),c},AO=(t,n)=>new Promise((i,o)=>{let u=K_.createHash(n),c=An.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),RO=(t,n,i)=>n.type==="file"&&i.checksum?AO(t,i.checksum).then(o=>(n[i.checksum]=o,n)):n.type==="symlink"?An.readlink(t).then(o=>(n.pointsAt=o,n)):Promise.resolve(n),CO=(t,n)=>new Promise((i,o)=>{let u=An.lstat,c=n||{};c.symlinks==="follow"&&(u=An.stat),u(t).then(f=>{let h=X_(t,c,f);RO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Pr.supportedChecksumAlgorithms=Pl;Pr.symlinkOptions=Tl;Pr.validateInput=wO;Pr.sync=EO;Pr.async=CO});var ho=L(fo=>{"use strict";var z_=it(),PO=Ge(),TO=(t,n)=>{let i=`${t}(path)`;PO.argument(i,"path",n,["string","undefined"])},OO=t=>{try{return z_.readdirSync(t)}catch(n){if(n.code==="ENOENT")return;throw n}},IO=t=>new Promise((n,i)=>{z_.readdir(t).then(o=>{n(o)}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})});fo.validateInput=TO;fo.sync=OO;fo.async=IO});var _o=L(Ol=>{"use strict";var po=q("fs"),go=q("path"),Ai=Tr(),MD=ho(),mo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",LO=(t,n,i)=>{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let o=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let u=(f,h)=>{po.readdirSync(f,{withFileTypes:!0}).forEach(g=>{let _=typeof g=="string",v;_?v=go.join(f,g):v=go.join(f,g.name);let x;if(o)x=Ai.sync(v,n.inspectOptions);else if(_){let S=Ai.sync(v,n.inspectOptions);x={name:S.name,type:S.type}}else{let S=mo(g);if(S==="symlink"&&n.symlinks==="follow"){let H=po.statSync(v);x={name:g.name,type:mo(H)}}else x={name:g.name,type:S}}x!==void 0&&(i(v,x),x.type==="dir"&&h{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let u=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let c=[],f=0,h=()=>{if(c.length===0&&f===0)o();else if(c.length>0&&f{c.push(x),h()},_=()=>{f-=1,h()},v=(x,S)=>{let H=(O,D)=>{D.type==="dir"&&S{po.readdir(x,{withFileTypes:!0},(O,D)=>{O?o(O):(D.forEach(K=>{let W=typeof K=="string",te;if(W?te=go.join(x,K):te=go.join(x,K.name),u||W)g(()=>{Ai.async(te,n.inspectOptions).then(z=>{z!==void 0&&(u?i(te,z):i(te,{name:z.name,type:z.type}),H(te,z)),_()}).catch(z=>{o(z)})});else{let z=mo(K);if(z==="symlink"&&n.symlinks==="follow")g(()=>{po.stat(te,(Y,N)=>{if(Y)o(Y);else{let ne={name:K.name,type:mo(N)};i(te,ne),H(te,ne),_()}})});else{let Y={name:K.name,type:z};i(te,Y),H(te,Y)}}}),_())})})};Ai.async(t,n.inspectOptions).then(x=>{x?(u?i(t,x):i(t,{name:x.name,type:x.type}),x.type==="dir"?v(t,1):o()):(i(t,void 0),o())}).catch(x=>{o(x)})};Ol.sync=LO;Ol.async=DO});var Q_=L((qD,Y_)=>{var NO=typeof process=="object"&&process&&process.platform==="win32";Y_.exports=NO?{sep:"\\"}:{sep:"/"}});var ty=L((HD,ey)=>{"use strict";ey.exports=V_;function V_(t,n,i){t instanceof RegExp&&(t=Z_(t,i)),n instanceof RegExp&&(n=Z_(n,i));var o=J_(t,n,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+n.length)}}function Z_(t,n){var i=n.match(t);return i?i[0]:null}V_.range=J_;function J_(t,n,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(n,g+1),v=g;if(g>=0&&_>0){if(t===n)return[g,_];for(o=[],c=i.length;v>=0&&!h;)v==g?(o.push(v),g=i.indexOf(t,v+1)):o.length==1?h=[o.pop(),_]:(u=o.pop(),u=0?g:_;o.length&&(h=[c,f])}return h}});var cy=L((BD,ay)=>{var ny=ty();ay.exports=FO;var ry="\0SLASH"+Math.random()+"\0",iy="\0OPEN"+Math.random()+"\0",Ll="\0CLOSE"+Math.random()+"\0",sy="\0COMMA"+Math.random()+"\0",oy="\0PERIOD"+Math.random()+"\0";function Il(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function $O(t){return t.split("\\\\").join(ry).split("\\{").join(iy).split("\\}").join(Ll).split("\\,").join(sy).split("\\.").join(oy)}function MO(t){return t.split(ry).join("\\").split(iy).join("{").split(Ll).join("}").split(sy).join(",").split(oy).join(".")}function uy(t){if(!t)return[""];var n=[],i=ny("{","}",t);if(!i)return t.split(",");var o=i.pre,u=i.body,c=i.post,f=o.split(",");f[f.length-1]+="{"+u+"}";var h=uy(c);return c.length&&(f[f.length-1]+=h.shift(),f.push.apply(f,h)),n.push.apply(n,f),n}function FO(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ri($O(t),!0).map(MO)):[]}function qO(t){return"{"+t+"}"}function HO(t){return/^-?0\d/.test(t)}function BO(t,n){return t<=n}function WO(t,n){return t>=n}function Ri(t,n){var i=[],o=ny("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Ri(o.post,!1):[""];if(/\$$/.test(o.pre))for(var f=0;f=0;if(!v&&!x)return o.post.match(/,.*\}/)?(t=o.pre+"{"+o.body+Ll+o.post,Ri(t)):[t];var S;if(v)S=o.body.split(/\.\./);else if(S=uy(o.body),S.length===1&&(S=Ri(S[0],!1).map(qO),S.length===1))return c.map(function(Pe){return o.pre+S[0]+Pe});var H;if(v){var O=Il(S[0]),D=Il(S[1]),K=Math.max(S[0].length,S[1].length),W=S.length==3?Math.abs(Il(S[2])):1,te=BO,z=D0){var G=new Array(Q+1).join("0");N<0?ne="-"+G+ne.slice(1):ne=G+ne}}H.push(ne)}}else{H=[];for(var ue=0;ue{var pt=$l.exports=(t,n,i={})=>(vo(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Or(n,i).match(t));$l.exports=pt;var Dl=Q_();pt.sep=Dl.sep;var Dt=Symbol("globstar **");pt.GLOBSTAR=Dt;var UO=cy(),ly={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Nl="[^/]",kl=Nl+"*?",GO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jO="(?:(?!(?:\\/|^)\\.).)*?",py=t=>t.split("").reduce((n,i)=>(n[i]=!0,n),{}),fy=py("().*{}+?[]^$\\!"),KO=py("[.("),hy=/\/+/;pt.filter=(t,n={})=>(i,o,u)=>pt(i,t,n);var Rn=(t,n={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(n).forEach(o=>i[o]=n[o]),i};pt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pt;let n=pt,i=(o,u,c)=>n(o,u,Rn(t,c));return i.Minimatch=class extends n.Minimatch{constructor(u,c){super(u,Rn(t,c))}},i.Minimatch.defaults=o=>n.defaults(Rn(t,o)).Minimatch,i.filter=(o,u)=>n.filter(o,Rn(t,u)),i.defaults=o=>n.defaults(Rn(t,o)),i.makeRe=(o,u)=>n.makeRe(o,Rn(t,u)),i.braceExpand=(o,u)=>n.braceExpand(o,Rn(t,u)),i.match=(o,u,c)=>n.match(o,u,Rn(t,c)),i};pt.braceExpand=(t,n)=>dy(t,n);var dy=(t,n={})=>(vo(t),n.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:UO(t)),XO=1024*64,vo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>XO)throw new TypeError("pattern is too long")},yo=Symbol("subparse");pt.makeRe=(t,n)=>new Or(t,n||{}).makeRe();pt.match=(t,n,i={})=>{let o=new Or(n,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(n),t};var zO=t=>t.replace(/\\(.)/g,"$1"),YO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Or=class{constructor(n,i){vo(n),i||(i={}),this.options=i,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.make()}debug(){}make(){let n=this.pattern,i=this.options;if(!i.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let o=this.globSet=this.braceExpand();i.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,o),o=this.globParts=o.map(u=>u.split(hy)),this.debug(this.pattern,o),o=o.map((u,c,f)=>u.map(this.parse,this)),this.debug(this.pattern,o),o=o.filter(u=>u.indexOf(!1)===-1),this.debug(this.pattern,o),this.set=o}parseNegate(){if(this.options.nonegate)return;let n=this.pattern,i=!1,o=0;for(let u=0;u>> no match, partial?`,n,x,i,S),x===h))}var O;if(typeof _=="string"?(O=v===_,this.debug("string match",_,v,O)):(O=v.match(_),this.debug("pattern match",_,v,O)),!O)return!1}if(c===h&&f===g)return!0;if(c===h)return o;if(f===g)return c===h-1&&n[c]==="";throw new Error("wtf?")}braceExpand(){return dy(this.pattern,this.options)}parse(n,i){vo(n);let o=this.options;if(n==="**")if(o.noglobstar)n="*";else return Dt;if(n==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,x=-1,S=-1,H,O,D,j=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(_){switch(_){case"*":u+=kl,c=!0;break;case"?":u+=Nl,c=!0;break;default:u+="\\"+_;break}this.debug("clearStateChar %j %j",_,u),_=!1}};for(let Y=0,N;Y(G||(G="\\"),Q+Q+G+"|")),this.debug(`tail=%j - %s`,Y,Y,O,u);let N=O.type==="*"?kl:O.type==="?"?Nl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Y}W(),f&&(u+="\\\\");let te=jO[u.charAt(0)];for(let Y=g.length-1;Y>-1;Y--){let N=g[Y],ne=u.slice(0,N.reStart),Q=u.slice(N.reStart,N.reEnd-8),G=u.slice(N.reEnd),ue=u.slice(N.reEnd-8,N.reEnd)+G,Pe=ne.split("(").length-1,I=G;for(let me=0;me(f=f.map(h=>typeof h=="string"?YO(h):h===Dt?Dt:h._src).reduce((h,g)=>(h[h.length-1]===Dt&&g===Dt||h.push(g),h),[]),f.forEach((h,g)=>{h!==Dt||f[g-1]===Dt||(g===0?f.length>1?f[g+1]="(?:\\/|"+o+"\\/)?"+f[g+1]:f[g]=o:g===f.length-1?f[g-1]+="(?:\\/|"+o+")?":(f[g-1]+="(?:\\/|\\/"+o+"\\/)"+f[g+1],f[g+1]=Dt))}),f.filter(h=>h!==Dt).join("/"))).join("|");c="^(?:"+c+")$",this.negate&&(c="^(?!"+c+").*$");try{this.regexp=new RegExp(c,u)}catch{this.regexp=!1}return this.regexp}match(n,i=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&i)return!0;let o=this.options;Dl.sep!=="/"&&(n=n.split(Dl.sep).join("/")),n=n.split(hy),this.debug(this.pattern,"split",n);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=n.length-1;f>=0&&(c=n[f],!c);f--);for(let f=0;f{"use strict";var QO=gy().Minimatch,ZO=(t,n)=>{let i=n.indexOf("/")!==-1,o=/^!?\//.test(n),u=/^!/.test(n),c;if(!o&&i){let f=n.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return n};my.create=(t,n,i)=>{let o;typeof n=="string"?o=[n]:o=n;let u=o.map(f=>ZO(t,f)).map(f=>new QO(f,{matchBase:!0,nocomment:!0,nocase:i||!1,dot:!0,windowsPathsNoEscape:!0}));return f=>{let h="matching",g=!1,_,v;for(v=0;v{"use strict";var VO=q("path"),yy=_o(),vy=Tr(),by=Ml(),_y=Ge(),JO=(t,n,i)=>{let o=`${t}([path], options)`;_y.argument(o,"path",n,["string"]),_y.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},wy=t=>{let n=t||{};return n.matching===void 0&&(n.matching="*"),n.files===void 0&&(n.files=!0),n.ignoreCase===void 0&&(n.ignoreCase=!1),n.directories===void 0&&(n.directories=!1),n.recursive===void 0&&(n.recursive=!0),n},Sy=(t,n)=>t.map(i=>VO.relative(n,i)),xy=t=>{let n=new Error(`Path you want to find stuff in doesn't exist ${t}`);return n.code="ENOENT",n},Ey=t=>{let n=new Error(`Path you want to find stuff in must be a directory ${t}`);return n.code="ENOTDIR",n},eI=(t,n)=>{let i=[],o=by.create(t,n.matching,n.ignoreCase),u=1/0;return n.recursive===!1&&(u=1),yy.sync(t,{maxLevelsDeep:u,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(c,f)=>{f&&c!==t&&o(c)&&(f.type==="file"&&n.files===!0||f.type==="dir"&&n.directories===!0)&&(n.filter?n.filter(f)&&i.push(c):i.push(c))}),i.sort(),Sy(i,n.cwd)},tI=(t,n)=>{let i=vy.sync(t,{symlinks:"follow"});if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return eI(t,wy(n))},nI=(t,n)=>new Promise((i,o)=>{let u=[],c=by.create(t,n.matching,n.ignoreCase),f=1/0;n.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Sy(u,n.cwd)))};yy.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,x)=>{if(x&&v!==t&&c(v)&&(x.type==="file"&&n.files===!0||x.type==="dir"&&n.directories===!0))if(n.filter){let H=n.filter(x);typeof H.then=="function"?(h+=1,H.then(D=>{D&&u.push(v),h-=1,_()}).catch(D=>{o(D)})):H&&u.push(v)}else u.push(v)},v=>{v?o(v):(g=!0,_())})}),rI=(t,n)=>vy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return nI(t,wy(n))});bo.validateInput=JO;bo.sync=tI;bo.async=rI});var Py=L(xo=>{"use strict";var iI=q("crypto"),So=q("path"),wo=Tr(),jD=ho(),Ry=Ge(),Cy=_o(),sI=(t,n,i)=>{let o=`${t}(path, [options])`;if(Ry.argument(o,"path",n,["string"]),Ry.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&wo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${wo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&wo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${wo.symlinkOptions.join(", ")}`)},oI=(t,n)=>t===void 0?".":t.relativePath+"/"+n.name,uI=(t,n)=>{let i=iI.createHash(n);return t.forEach(o=>{i.update(o.name+o[n])}),i.digest("hex")},Fl=(t,n,i)=>{i.relativePath&&(n.relativePath=oI(t,n)),n.type==="dir"&&(n.children.forEach(o=>{Fl(n,o,i)}),n.size=0,n.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),n.children.forEach(o=>{n.size+=o.size||0}),i.checksum&&(n[i.checksum]=uI(n.children,i.checksum)))},ql=(t,n,i)=>{let o=n[0];if(n.length>1){let u=t.children.find(c=>c.name===o);return ql(u,n.slice(1),i)}return t},aI=(t,n)=>{let i=n||{},o;return Cy.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=So.relative(t,u);f===""?o=c:ql(o,f.split(So.sep),c).children.push(c)}}),o&&Fl(void 0,o,i),o},cI=(t,n)=>{let i=n||{},o;return new Promise((u,c)=>{Cy.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=So.relative(t,f);g===""?o=h:ql(o,g.split(So.sep),h).children.push(h)}},f=>{f?c(f):(o&&Fl(void 0,o,i),u(o))})})};xo.validateInput=sI;xo.sync=aI;xo.async=cI});var Ao=L(Eo=>{"use strict";var Ty=it(),lI=Ge(),fI=(t,n)=>{let i=`${t}(path)`;lI.argument(i,"path",n,["string"])},hI=t=>{try{let n=Ty.statSync(t);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},pI=t=>new Promise((n,i)=>{Ty.stat(t).then(o=>{o.isDirectory()?n("dir"):o.isFile()?n("file"):n("other")}).catch(o=>{o.code==="ENOENT"?n(!1):i(o)})});Eo.validateInput=fI;Eo.sync=hI;Eo.async=pI});var Ul=L(To=>{"use strict";var Ci=q("path"),dt=it(),Wl=Un(),Ro=Ao(),Oy=Tr(),dI=Ei(),gI=Ml(),Iy=to(),Ly=_o(),Hl=Ge(),mI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Hl.argument(u,"from",n,["string"]),Hl.argument(u,"to",i,["string"]),Hl.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},ky=(t,n)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=gI.create(n,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},Dy=t=>{let n=new Error(`Path to copy doesn't exist ${t}`);return n.code="ENOENT",n},Co=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Po={mode:!0,symlinks:"report",times:!0,absolutePath:!0},Ny=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,_I=(t,n,i)=>{if(!Ro.sync(t))throw Dy(t);if(Ro.sync(n)&&!i.overwrite)throw Co(n)},yI=t=>{if(typeof t.opts.overwrite=="function"){let n=Oy.sync(t.destPath,Po);return t.opts.overwrite(t.srcInspectData,n)}return t.opts.overwrite===!0},vI=(t,n,i,o)=>{let u=dt.readFileSync(t);try{dt.writeFileSync(n,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")dI.sync(n,u,{mode:i});else if(c.code==="EEXIST"){if(yI(o))dt.writeFileSync(n,u,{mode:i});else if(Ny(o))throw Co(o.destPath)}else throw c}},bI=(t,n)=>{let i=dt.readlinkSync(t);try{dt.symlinkSync(i,n)}catch(o){if(o.code==="EEXIST")dt.unlinkSync(n),dt.symlinkSync(i,n);else throw o}},wI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);n.type==="dir"?Wl.createSync(i,{mode:c}):n.type==="file"?vI(t,i,c,u):n.type==="symlink"&&bI(t,i)},SI=(t,n,i)=>{let o=ky(i,t);_I(t,n,o),Ly.sync(t,{inspectOptions:Po},(u,c)=>{let f=Ci.relative(t,u),h=Ci.resolve(n,f);o.allowedToCopy(u,h,c)&&wI(u,c,h,o)})},xI=(t,n,i)=>Ro.async(t).then(o=>{if(o)return Ro.async(n);throw Dy(t)}).then(o=>{if(o&&!i.overwrite)throw Co(n)}),EI=t=>new Promise((n,i)=>{typeof t.opts.overwrite=="function"?Oy.async(t.destPath,Po).then(o=>{n(t.opts.overwrite(t.srcInspectData,o))}).catch(i):n(t.opts.overwrite===!0)}),Bl=(t,n,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=dt.createReadStream(t),v=dt.createWriteStream(n,{mode:i,flags:g});_.on("error",f),v.on("error",x=>{_.resume(),x.code==="ENOENT"?Wl.createAsync(Ci.dirname(n)).then(()=>{Bl(t,n,i,o).then(c,f)}).catch(f):x.code==="EEXIST"?EI(o).then(S=>{S?Bl(t,n,i,o,{overwrite:!0}).then(c,f):Ny(o)?f(Co(n)):c()}).catch(f):f(x)}),v.on("finish",c),_.pipe(v)}),AI=(t,n)=>dt.readlink(t).then(i=>new Promise((o,u)=>{dt.symlink(i,n).then(o).catch(c=>{c.code==="EEXIST"?dt.unlink(n).then(()=>dt.symlink(i,n)).then(o,u):u(c)})})),RI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);return n.type==="dir"?Wl.createAsync(i,{mode:c}):n.type==="file"?Bl(t,i,c,u):n.type==="symlink"?AI(t,i):Promise.resolve()},CI=(t,n,i)=>new Promise((o,u)=>{let c=ky(i,t);xI(t,n,c).then(()=>{let f=!1,h=0;Ly.async(t,{inspectOptions:Po},(g,_)=>{if(_){let v=Ci.relative(t,g),x=Ci.resolve(n,v);c.allowedToCopy(g,_,x)&&(h+=1,RI(g,_,x,c).then(()=>{h-=1,f&&h===0&&o()}).catch(u))}},g=>{g?u(g):(f=!0,f&&h===0&&o())})}).catch(u)});To.validateInput=mI;To.sync=SI;To.async=CI});var Kl=L(Io=>{"use strict";var $y=q("path"),Ir=it(),Gl=Ge(),My=Ul(),Fy=Un(),Pi=Ao(),Oo=ro(),PI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Gl.argument(u,"from",n,["string"]),Gl.argument(u,"to",i,["string"]),Gl.options(u,"options",o,{overwrite:["boolean"]})},qy=t=>t||{},Hy=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},By=t=>{let n=new Error(`Path to move doesn't exist ${t}`);return n.code="ENOENT",n},TI=(t,n,i)=>{let o=qy(i);if(Pi.sync(n)!==!1&&o.overwrite!==!0)throw Hy(n);try{Ir.renameSync(t,n)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Oo.sync(n),Ir.renameSync(t,n);else if(u.code==="EXDEV")My.sync(t,n,{overwrite:!0}),Oo.sync(t);else if(u.code==="ENOENT"){if(!Pi.sync(t))throw By(t);Fy.createSync($y.dirname(n)),Ir.renameSync(t,n)}else throw u}},OI=t=>new Promise((n,i)=>{let o=$y.dirname(t);Pi.async(o).then(u=>{u?i():Fy.createAsync(o).then(n,i)}).catch(i)}),II=(t,n,i)=>{let o=qy(i);return new Promise((u,c)=>{Pi.async(n).then(f=>{f!==!1&&o.overwrite!==!0?c(Hy(n)):Ir.rename(t,n).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Oo.async(n).then(()=>Ir.rename(t,n)).then(u,c):h.code==="EXDEV"?My.async(t,n,{overwrite:!0}).then(()=>Oo.async(t)).then(u,c):h.code==="ENOENT"?Pi.async(t).then(g=>{g?OI(n).then(()=>Ir.rename(t,n)).then(u,c):c(By(t))}).catch(c):c(h)})})})};Io.validateInput=PI;Io.sync=TI;Io.async=II});var Xy=L(Lo=>{"use strict";var Gy=it(),Wy=Ge(),Uy=["utf8","buffer","json","jsonWithDates"],LI=(t,n,i)=>{let o=`${t}(path, returnAs)`;if(Wy.argument(o,"path",n,["string"]),Wy.argument(o,"returnAs",i,["string","undefined"]),i&&Uy.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${o} must have one of values: ${Uy.join(", ")}`)},Ky=(t,n)=>typeof n=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(n)?new Date(n):n,jy=(t,n)=>{let i=new Error(`JSON parsing failed while reading ${t} [${n}]`);return i.originalError=n,i},kI=(t,n)=>{let i=n||"utf8",o,u="utf8";i==="buffer"&&(u=null);try{o=Gy.readFileSync(t,{encoding:u})}catch(c){if(c.code==="ENOENT")return;throw c}try{i==="json"?o=JSON.parse(o):i==="jsonWithDates"&&(o=JSON.parse(o,Ky))}catch(c){throw jy(t,c)}return o},DI=(t,n)=>new Promise((i,o)=>{let u=n||"utf8",c="utf8";u==="buffer"&&(c=null),Gy.readFile(t,{encoding:c}).then(f=>{try{i(u==="json"?JSON.parse(f):u==="jsonWithDates"?JSON.parse(f,Ky):f)}catch(h){o(jy(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lo.validateInput=LI;Lo.sync=kI;Lo.async=DI});var Yy=L(ko=>{"use strict";var Ti=q("path"),zy=Kl(),jl=Ge(),NI=(t,n,i,o)=>{let u=`${t}(path, newName, [options])`;if(jl.argument(u,"path",n,["string"]),jl.argument(u,"newName",i,["string"]),jl.options(u,"options",o,{overwrite:["boolean"]}),Ti.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},$I=(t,n,i)=>{let o=Ti.join(Ti.dirname(t),n);zy.sync(t,o,i)},MI=(t,n,i)=>{let o=Ti.join(Ti.dirname(t),n);return zy.async(t,o,i)};ko.validateInput=NI;ko.sync=$I;ko.async=MI});var Jy=L(No=>{"use strict";var Zy=q("path"),Do=it(),Qy=Ge(),Vy=Un(),FI=(t,n,i)=>{let o=`${t}(symlinkValue, path)`;Qy.argument(o,"symlinkValue",n,["string"]),Qy.argument(o,"path",i,["string"])},qI=(t,n)=>{try{Do.symlinkSync(t,n)}catch(i){if(i.code==="ENOENT")Vy.createSync(Zy.dirname(n)),Do.symlinkSync(t,n);else throw i}},HI=(t,n)=>new Promise((i,o)=>{Do.symlink(t,n).then(i).catch(u=>{u.code==="ENOENT"?Vy.createAsync(Zy.dirname(n)).then(()=>Do.symlink(t,n)).then(i,o):o(u)})});No.validateInput=FI;No.sync=qI;No.async=HI});var tv=L(Xl=>{"use strict";var ev=q("fs");Xl.createWriteStream=ev.createWriteStream;Xl.createReadStream=ev.createReadStream});var uv=L($o=>{"use strict";var zl=q("path"),BI=q("os"),nv=q("crypto"),rv=Un(),iv=it(),WI=Ge(),UI=(t,n)=>{let i=`${t}([options])`;WI.options(i,"options",n,{prefix:["string"],basePath:["string"]})},sv=(t,n)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=zl.resolve(n,t.basePath):i.basePath=BI.tmpdir(),i},ov=32,GI=(t,n)=>{let i=sv(n,t),o=nv.randomBytes(ov/2).toString("hex"),u=zl.join(i.basePath,i.prefix+o);try{iv.mkdirSync(u)}catch(c){if(c.code==="ENOENT")rv.sync(u);else throw c}return u},KI=(t,n)=>new Promise((i,o)=>{let u=sv(n,t);nv.randomBytes(ov/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=zl.join(u.basePath,u.prefix+h);iv.mkdir(g,_=>{_?_.code==="ENOENT"?rv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});$o.validateInput=UI;$o.sync=GI;$o.async=KI});var hv=L((nN,fv)=>{"use strict";var av=q("util"),Yl=q("path"),Mo=H_(),Fo=Un(),qo=G_(),Ho=Ay(),Bo=Tr(),Wo=Py(),Uo=Ul(),Go=Ao(),Ko=ho(),jo=Kl(),Xo=Xy(),zo=ro(),Yo=Yy(),Qo=Jy(),cv=tv(),Zo=uv(),Vo=Ei(),lv=t=>{let n=()=>t||process.cwd(),i=function(){if(arguments.length===0)return n();let h=Array.prototype.slice.call(arguments),g=[n()].concat(h);return lv(Yl.resolve.apply(null,g))},o=h=>Yl.resolve(n(),h),u=function(){return Array.prototype.unshift.call(arguments,n()),Yl.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=n(),g},f={cwd:i,path:u,append:(h,g,_)=>{Mo.validateInput("append",h,g,_),Mo.sync(o(h),g,_)},appendAsync:(h,g,_)=>(Mo.validateInput("appendAsync",h,g,_),Mo.async(o(h),g,_)),copy:(h,g,_)=>{Uo.validateInput("copy",h,g,_),Uo.sync(o(h),o(g),_)},copyAsync:(h,g,_)=>(Uo.validateInput("copyAsync",h,g,_),Uo.async(o(h),o(g),_)),createWriteStream:(h,g)=>cv.createWriteStream(o(h),g),createReadStream:(h,g)=>cv.createReadStream(o(h),g),dir:(h,g)=>{Fo.validateInput("dir",h,g);let _=o(h);return Fo.sync(_,g),i(_)},dirAsync:(h,g)=>(Fo.validateInput("dirAsync",h,g),new Promise((_,v)=>{let x=o(h);Fo.async(x,g).then(()=>{_(i(x))},v)})),exists:h=>(Go.validateInput("exists",h),Go.sync(o(h))),existsAsync:h=>(Go.validateInput("existsAsync",h),Go.async(o(h))),file:(h,g)=>(qo.validateInput("file",h,g),qo.sync(o(h),g),f),fileAsync:(h,g)=>(qo.validateInput("fileAsync",h,g),new Promise((_,v)=>{qo.async(o(h),g).then(()=>{_(f)},v)})),find:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("find",h,g),Ho.sync(o(h),c(g))),findAsync:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("findAsync",h,g),Ho.async(o(h),c(g))),inspect:(h,g)=>(Bo.validateInput("inspect",h,g),Bo.sync(o(h),g)),inspectAsync:(h,g)=>(Bo.validateInput("inspectAsync",h,g),Bo.async(o(h),g)),inspectTree:(h,g)=>(Wo.validateInput("inspectTree",h,g),Wo.sync(o(h),g)),inspectTreeAsync:(h,g)=>(Wo.validateInput("inspectTreeAsync",h,g),Wo.async(o(h),g)),list:h=>(Ko.validateInput("list",h),Ko.sync(o(h||"."))),listAsync:h=>(Ko.validateInput("listAsync",h),Ko.async(o(h||"."))),move:(h,g,_)=>{jo.validateInput("move",h,g,_),jo.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(jo.validateInput("moveAsync",h,g,_),jo.async(o(h),o(g),_)),read:(h,g)=>(Xo.validateInput("read",h,g),Xo.sync(o(h),g)),readAsync:(h,g)=>(Xo.validateInput("readAsync",h,g),Xo.async(o(h),g)),remove:h=>{zo.validateInput("remove",h),zo.sync(o(h||"."))},removeAsync:h=>(zo.validateInput("removeAsync",h),zo.async(o(h||"."))),rename:(h,g,_)=>{Yo.validateInput("rename",h,g,_),Yo.sync(o(h),g,_)},renameAsync:(h,g,_)=>(Yo.validateInput("renameAsync",h,g,_),Yo.async(o(h),g,_)),symlink:(h,g)=>{Qo.validateInput("symlink",h,g),Qo.sync(h,o(g))},symlinkAsync:(h,g)=>(Qo.validateInput("symlinkAsync",h,g),Qo.async(h,o(g))),tmpDir:h=>{Zo.validateInput("tmpDir",h);let g=Zo.sync(n(),h);return i(g)},tmpDirAsync:h=>(Zo.validateInput("tmpDirAsync",h),new Promise((g,_)=>{Zo.async(n(),h).then(v=>{g(i(v))},_)})),write:(h,g,_)=>{Vo.validateInput("write",h,g,_),Vo.sync(o(h),g,_)},writeAsync:(h,g,_)=>(Vo.validateInput("writeAsync",h,g,_),Vo.async(o(h),g,_))};return av.inspect.custom!==void 0&&(f[av.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),f};fv.exports=lv});var Jo=L((rN,pv)=>{"use strict";var jI=hv();pv.exports=jI()});var YI={};Tp(YI,{default:()=>zI});var Si={};Tp(Si,{Bud:()=>wi,Build:()=>Lr,Clean:()=>kr,Contributors:()=>Nr,Dev:()=>$r,Docs:()=>Mr,DocsDev:()=>Fr,Docusaurus:()=>ur,Eslint:()=>ar,Lint:()=>qr,Netlify:()=>cr,PackageCheck:()=>yr,Pm2:()=>wr,Prettier:()=>Sr,RegistryClean:()=>Hr,RegistryStart:()=>Br,RegistryStop:()=>Wr,Release:()=>Ur,Syncpack:()=>xr,TestRun:()=>Gr,Tsc:()=>Er,Version:()=>Kr,Vitest:()=>Ar,YarnPluginBuild:()=>Dr});var Lp=q("clipanion");var Ip=q("@yarnpkg/cli"),ee=class extends Ip.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var ur=class extends ee{constructor(){super(...arguments);this.passthrough=Lp.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};ur.paths=[["@bud","docusaurus"]],ur.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var $p=q("module"),Mp=q("path"),Fp=q("url"),fi={},qp=(fi?.url&&typeof fi.url<"u"?(0,Fp.fileURLToPath)(fi.url):__dirname).split("sources/").shift(),K=(...t)=>(0,Mp.join)(qp,...t),nL=K("package.json"),rL=K("storage"),iL=K("config","tsconfig.json");var sL={config:K("config"),fixtures:K("storage","fixtures"),root:qp,sources:K("sources"),storage:K("storage"),tests:K("tests")},Np;typeof fi?.url<"u"?Np=(0,$p.createRequire)(fi.url)("../../../config/monorepo.config.cjs"):Np=Dp();var Hp=q("clipanion");var ar=class extends ee{constructor(){super(...arguments);this.passthrough=Hp.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","eslint"),K("examples/**/*.{ts,tsx,js,jsx}"),K("sources/**/src/**/*.{ts,tsx,js,jsx}"),K("tests/**/*.{ts,tsx,js,jsx}"),K("config/**/*.{ts,tsx,js,jsx}"),"--config",K("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};ar.paths=[["@bud","eslint"]],ar.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};var xa=q("clipanion");var cr=class extends ee{constructor(){super(...arguments);this.dir=xa.Option.String("--dir",K("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=xa.Option.Proxy({name:"netlify options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","netlify",...this.passthrough??[],"--dir",`${this.dir}`]).then(this.throwIfError).catch(this.catch)}};cr.paths=[["@bud","netlify"]],cr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};var p_=q("clipanion");var e_=He(q("fs"),1),t_=He(q("path"),1),n_=He(Ea(),1),vi=He(al(),1),yi=He(km(),1);var jm=He(q("process"),1),_l=He(q("fs"),1),Wn=He(q("path"),1),yl=He(al(),1),Xm=He(Um(),1);function _r(t){let n=/^\\\\\?\\/.test(t),i=/[^\u0000-\u0080]+/.test(t);return n||i?t:t.replace(/\\/g,"/")}var Gm=q("url"),Km=q("stream"),_i=t=>t instanceof URL?(0,Gm.fileURLToPath)(t):t,Zs=class extends Km.Transform{constructor(n){super({objectMode:!0,transform(i,o,u){u(void 0,n(i)?i:void 0)}})}},Vs=t=>t[0]==="!";var zm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Ym="**/.gitignore",TT=(t,n)=>Vs(t)?"!"+Wn.default.posix.join(n,t.slice(1)):Wn.default.posix.join(n,t),OT=(t,n)=>{let i=_r(Wn.default.relative(n,Wn.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>TT(o,i))},IT=(t,n)=>{if(n=_r(n),Wn.default.isAbsolute(t)){if(_r(t).startsWith(n))return Wn.default.relative(n,t);throw new Error(`Path ${t} is not in cwd ${n}`)}return t},Qm=(t,n)=>{let i=t.flatMap(u=>OT(u,n)),o=(0,Xm.default)().add(i);return u=>(u=_i(u),u=IT(u,n),u?o.ignores(_r(u)):!1)},Zm=(t={})=>({cwd:_i(t.cwd)||jm.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),Vm=async(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),c=await(0,yl.default)(t,{cwd:i,suppressErrors:o,deep:u,...zm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await _l.default.promises.readFile(h,"utf8")})));return Qm(f,i)},Jm=(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),f=yl.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...zm}).map(h=>({filePath:h,content:_l.default.readFileSync(h,"utf8")}));return Qm(f,i)};var LT=t=>{if(t.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},vl=t=>(t=[...new Set([t].flat())],LT(t),t),kT=t=>{if(!t.cwd)return;let n;try{n=e_.default.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},r_=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:_i(t.cwd)},kT(t),t),i_=t=>async(n,i)=>t(vl(n),r_(i)),Js=t=>(n,i)=>t(vl(n),r_(i)),s_=t=>{let{ignoreFiles:n,gitignore:i}=t,o=n?vl(n):[];return i&&o.push(Ym),o},DT=async t=>{let n=s_(t);return u_(n.length>0&&await Vm(n,t))},o_=t=>{let n=s_(t);return u_(n.length>0&&Jm(n,t))},u_=t=>{let n=new Set;return i=>{let o=i.path||i,u=t_.default.normalize(o),c=n.has(u)||t&&t(o);return n.add(u),!c}},a_=(t,n)=>t.flat().filter(i=>n(i)),NT=(t,n)=>(0,n_.default)(t).pipe(new Zs(i=>n(i))),c_=(t,n)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>Vs(c));if(o===-1){i.push({patterns:t,options:n});break}let u=t[o].slice(1);for(let c of i)c.options.ignore.push(u);o!==0&&i.push({patterns:t.slice(0,o),options:{...n,ignore:[...n.ignore,u]}}),t=t.slice(o+1)}return i},l_=(t,n)=>({...n?{cwd:n}:{},...Array.isArray(t)?{files:t}:t}),f_=async(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(u,o),f=o?{cwd:o}:void 0;return Promise.all(i.map(async h=>{let{patterns:g,options:_}=h;return[g,_.ignore]=await Promise.all([(0,yi.default)(g,c),(0,yi.default)(_.ignore,f)]),{patterns:g,options:_}}))},bl=(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(u,o),f=o?{cwd:o}:void 0;return i.map(h=>{let{patterns:g,options:_}=h;return g=yi.default.sync(g,c),_.ignore=yi.default.sync(_.ignore,f),{patterns:g,options:_}})},h_=i_(async(t,n)=>{let[i,o]=await Promise.all([f_(t,n),DT(n)]),u=await Promise.all(i.map(c=>(0,vi.default)(c.patterns,c.options)));return a_(u,o)}),jk=Js((t,n)=>{let i=bl(t,n),o=o_(n),u=i.map(c=>vi.default.sync(c.patterns,c.options));return a_(u,o)}),Xk=Js((t,n)=>{let i=bl(t,n),o=o_(n),u=i.map(c=>vi.default.stream(c.patterns,c.options));return NT(u,o)}),zk=Js((t,n)=>t.some(i=>vi.default.isDynamicPattern(i,n))),Yk=i_(f_),Qk=Js(bl);var yr=class extends ee{constructor(){super(...arguments);this.passthrough=p_.Option.Proxy({name:"pm2 options"})}async execute(){await h_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async o=>await this.cli.run(["node",K("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};yr.paths=[["@bud","package-check"]],yr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};var d_=q("clipanion"),g_=He(br());var wr=class extends ee{constructor(){super(...arguments);this.passthrough=d_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","pm2"),...this.passthrough]).catch(g_.noop)}};wr.paths=[["@bud","pm2"]],wr.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var m_=q("clipanion");var Sr=class extends ee{constructor(){super(...arguments);this.passthrough=m_.Option.Proxy({name:"prettier options"})}async execute(){this.passthrough.length||(this.passthrough=["--ignore-unknown","--no-error-on-unmatched-pattern","--write"]),await this.cli.run(["node",K("node_modules/.bin/prettier"),K("sources/@roots/*/src/**/*"),`--config=${K("config","prettier.config.js")}`,"--ignore-unknown","--no-error-on-unmatched-pattern","--write",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Sr.paths=[["@bud","prettier"]],Sr.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};var __=q("clipanion");var xr=class extends ee{constructor(){super(...arguments);this.passthrough=__.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","syncpack"),"list-mismatches","--config",K("config/syncpack.config.cjs")]).then(this.throwIfError).catch(this.catch)}};xr.paths=[["@bud","syncpack"]],xr.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};var y_=q("clipanion");var Er=class extends ee{constructor(){super(...arguments);this.passthrough=y_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",K("node_modules",".bin","tsc"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Er.paths=[["@bud","tsc"]],Er.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};var v_=q("clipanion");var Ar=class extends ee{constructor(){super(...arguments);this.passthrough=v_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",K("node_modules",".bin","vitest"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Ar.paths=[["@bud","vitest"]],Ar.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var wi=class extends ee{async execute(){process.stdout.write(` +>>> no match, partial?`,n,x,i,S),x===h))}var O;if(typeof _=="string"?(O=v===_,this.debug("string match",_,v,O)):(O=v.match(_),this.debug("pattern match",_,v,O)),!O)return!1}if(c===h&&f===g)return!0;if(c===h)return o;if(f===g)return c===h-1&&n[c]==="";throw new Error("wtf?")}braceExpand(){return dy(this.pattern,this.options)}parse(n,i){vo(n);let o=this.options;if(n==="**")if(o.noglobstar)n="*";else return Dt;if(n==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,x=-1,S=-1,H,O,D,K=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(_){switch(_){case"*":u+=kl,c=!0;break;case"?":u+=Nl,c=!0;break;default:u+="\\"+_;break}this.debug("clearStateChar %j %j",_,u),_=!1}};for(let Y=0,N;Y(G||(G="\\"),Q+Q+G+"|")),this.debug(`tail=%j + %s`,Y,Y,O,u);let N=O.type==="*"?kl:O.type==="?"?Nl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Y}W(),f&&(u+="\\\\");let te=KO[u.charAt(0)];for(let Y=g.length-1;Y>-1;Y--){let N=g[Y],ne=u.slice(0,N.reStart),Q=u.slice(N.reStart,N.reEnd-8),G=u.slice(N.reEnd),ue=u.slice(N.reEnd-8,N.reEnd)+G,Pe=ne.split("(").length-1,I=G;for(let me=0;me(f=f.map(h=>typeof h=="string"?YO(h):h===Dt?Dt:h._src).reduce((h,g)=>(h[h.length-1]===Dt&&g===Dt||h.push(g),h),[]),f.forEach((h,g)=>{h!==Dt||f[g-1]===Dt||(g===0?f.length>1?f[g+1]="(?:\\/|"+o+"\\/)?"+f[g+1]:f[g]=o:g===f.length-1?f[g-1]+="(?:\\/|"+o+")?":(f[g-1]+="(?:\\/|\\/"+o+"\\/)"+f[g+1],f[g+1]=Dt))}),f.filter(h=>h!==Dt).join("/"))).join("|");c="^(?:"+c+")$",this.negate&&(c="^(?!"+c+").*$");try{this.regexp=new RegExp(c,u)}catch{this.regexp=!1}return this.regexp}match(n,i=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&i)return!0;let o=this.options;Dl.sep!=="/"&&(n=n.split(Dl.sep).join("/")),n=n.split(hy),this.debug(this.pattern,"split",n);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=n.length-1;f>=0&&(c=n[f],!c);f--);for(let f=0;f{"use strict";var QO=gy().Minimatch,ZO=(t,n)=>{let i=n.indexOf("/")!==-1,o=/^!?\//.test(n),u=/^!/.test(n),c;if(!o&&i){let f=n.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return n};my.create=(t,n,i)=>{let o;typeof n=="string"?o=[n]:o=n;let u=o.map(f=>ZO(t,f)).map(f=>new QO(f,{matchBase:!0,nocomment:!0,nocase:i||!1,dot:!0,windowsPathsNoEscape:!0}));return f=>{let h="matching",g=!1,_,v;for(v=0;v{"use strict";var VO=q("path"),yy=_o(),vy=Tr(),by=Ml(),_y=Ge(),JO=(t,n,i)=>{let o=`${t}([path], options)`;_y.argument(o,"path",n,["string"]),_y.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},wy=t=>{let n=t||{};return n.matching===void 0&&(n.matching="*"),n.files===void 0&&(n.files=!0),n.ignoreCase===void 0&&(n.ignoreCase=!1),n.directories===void 0&&(n.directories=!1),n.recursive===void 0&&(n.recursive=!0),n},Sy=(t,n)=>t.map(i=>VO.relative(n,i)),xy=t=>{let n=new Error(`Path you want to find stuff in doesn't exist ${t}`);return n.code="ENOENT",n},Ey=t=>{let n=new Error(`Path you want to find stuff in must be a directory ${t}`);return n.code="ENOTDIR",n},eI=(t,n)=>{let i=[],o=by.create(t,n.matching,n.ignoreCase),u=1/0;return n.recursive===!1&&(u=1),yy.sync(t,{maxLevelsDeep:u,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(c,f)=>{f&&c!==t&&o(c)&&(f.type==="file"&&n.files===!0||f.type==="dir"&&n.directories===!0)&&(n.filter?n.filter(f)&&i.push(c):i.push(c))}),i.sort(),Sy(i,n.cwd)},tI=(t,n)=>{let i=vy.sync(t,{symlinks:"follow"});if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return eI(t,wy(n))},nI=(t,n)=>new Promise((i,o)=>{let u=[],c=by.create(t,n.matching,n.ignoreCase),f=1/0;n.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Sy(u,n.cwd)))};yy.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,x)=>{if(x&&v!==t&&c(v)&&(x.type==="file"&&n.files===!0||x.type==="dir"&&n.directories===!0))if(n.filter){let H=n.filter(x);typeof H.then=="function"?(h+=1,H.then(D=>{D&&u.push(v),h-=1,_()}).catch(D=>{o(D)})):H&&u.push(v)}else u.push(v)},v=>{v?o(v):(g=!0,_())})}),rI=(t,n)=>vy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return nI(t,wy(n))});bo.validateInput=JO;bo.sync=tI;bo.async=rI});var Py=L(xo=>{"use strict";var iI=q("crypto"),So=q("path"),wo=Tr(),KD=ho(),Ry=Ge(),Cy=_o(),sI=(t,n,i)=>{let o=`${t}(path, [options])`;if(Ry.argument(o,"path",n,["string"]),Ry.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&wo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${wo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&wo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${wo.symlinkOptions.join(", ")}`)},oI=(t,n)=>t===void 0?".":t.relativePath+"/"+n.name,uI=(t,n)=>{let i=iI.createHash(n);return t.forEach(o=>{i.update(o.name+o[n])}),i.digest("hex")},Fl=(t,n,i)=>{i.relativePath&&(n.relativePath=oI(t,n)),n.type==="dir"&&(n.children.forEach(o=>{Fl(n,o,i)}),n.size=0,n.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),n.children.forEach(o=>{n.size+=o.size||0}),i.checksum&&(n[i.checksum]=uI(n.children,i.checksum)))},ql=(t,n,i)=>{let o=n[0];if(n.length>1){let u=t.children.find(c=>c.name===o);return ql(u,n.slice(1),i)}return t},aI=(t,n)=>{let i=n||{},o;return Cy.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=So.relative(t,u);f===""?o=c:ql(o,f.split(So.sep),c).children.push(c)}}),o&&Fl(void 0,o,i),o},cI=(t,n)=>{let i=n||{},o;return new Promise((u,c)=>{Cy.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=So.relative(t,f);g===""?o=h:ql(o,g.split(So.sep),h).children.push(h)}},f=>{f?c(f):(o&&Fl(void 0,o,i),u(o))})})};xo.validateInput=sI;xo.sync=aI;xo.async=cI});var Ao=L(Eo=>{"use strict";var Ty=it(),lI=Ge(),fI=(t,n)=>{let i=`${t}(path)`;lI.argument(i,"path",n,["string"])},hI=t=>{try{let n=Ty.statSync(t);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},pI=t=>new Promise((n,i)=>{Ty.stat(t).then(o=>{o.isDirectory()?n("dir"):o.isFile()?n("file"):n("other")}).catch(o=>{o.code==="ENOENT"?n(!1):i(o)})});Eo.validateInput=fI;Eo.sync=hI;Eo.async=pI});var Ul=L(To=>{"use strict";var Ci=q("path"),dt=it(),Wl=Un(),Ro=Ao(),Oy=Tr(),dI=Ei(),gI=Ml(),Iy=to(),Ly=_o(),Hl=Ge(),mI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Hl.argument(u,"from",n,["string"]),Hl.argument(u,"to",i,["string"]),Hl.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},ky=(t,n)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=gI.create(n,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},Dy=t=>{let n=new Error(`Path to copy doesn't exist ${t}`);return n.code="ENOENT",n},Co=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Po={mode:!0,symlinks:"report",times:!0,absolutePath:!0},Ny=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,_I=(t,n,i)=>{if(!Ro.sync(t))throw Dy(t);if(Ro.sync(n)&&!i.overwrite)throw Co(n)},yI=t=>{if(typeof t.opts.overwrite=="function"){let n=Oy.sync(t.destPath,Po);return t.opts.overwrite(t.srcInspectData,n)}return t.opts.overwrite===!0},vI=(t,n,i,o)=>{let u=dt.readFileSync(t);try{dt.writeFileSync(n,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")dI.sync(n,u,{mode:i});else if(c.code==="EEXIST"){if(yI(o))dt.writeFileSync(n,u,{mode:i});else if(Ny(o))throw Co(o.destPath)}else throw c}},bI=(t,n)=>{let i=dt.readlinkSync(t);try{dt.symlinkSync(i,n)}catch(o){if(o.code==="EEXIST")dt.unlinkSync(n),dt.symlinkSync(i,n);else throw o}},wI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);n.type==="dir"?Wl.createSync(i,{mode:c}):n.type==="file"?vI(t,i,c,u):n.type==="symlink"&&bI(t,i)},SI=(t,n,i)=>{let o=ky(i,t);_I(t,n,o),Ly.sync(t,{inspectOptions:Po},(u,c)=>{let f=Ci.relative(t,u),h=Ci.resolve(n,f);o.allowedToCopy(u,h,c)&&wI(u,c,h,o)})},xI=(t,n,i)=>Ro.async(t).then(o=>{if(o)return Ro.async(n);throw Dy(t)}).then(o=>{if(o&&!i.overwrite)throw Co(n)}),EI=t=>new Promise((n,i)=>{typeof t.opts.overwrite=="function"?Oy.async(t.destPath,Po).then(o=>{n(t.opts.overwrite(t.srcInspectData,o))}).catch(i):n(t.opts.overwrite===!0)}),Bl=(t,n,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=dt.createReadStream(t),v=dt.createWriteStream(n,{mode:i,flags:g});_.on("error",f),v.on("error",x=>{_.resume(),x.code==="ENOENT"?Wl.createAsync(Ci.dirname(n)).then(()=>{Bl(t,n,i,o).then(c,f)}).catch(f):x.code==="EEXIST"?EI(o).then(S=>{S?Bl(t,n,i,o,{overwrite:!0}).then(c,f):Ny(o)?f(Co(n)):c()}).catch(f):f(x)}),v.on("finish",c),_.pipe(v)}),AI=(t,n)=>dt.readlink(t).then(i=>new Promise((o,u)=>{dt.symlink(i,n).then(o).catch(c=>{c.code==="EEXIST"?dt.unlink(n).then(()=>dt.symlink(i,n)).then(o,u):u(c)})})),RI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);return n.type==="dir"?Wl.createAsync(i,{mode:c}):n.type==="file"?Bl(t,i,c,u):n.type==="symlink"?AI(t,i):Promise.resolve()},CI=(t,n,i)=>new Promise((o,u)=>{let c=ky(i,t);xI(t,n,c).then(()=>{let f=!1,h=0;Ly.async(t,{inspectOptions:Po},(g,_)=>{if(_){let v=Ci.relative(t,g),x=Ci.resolve(n,v);c.allowedToCopy(g,_,x)&&(h+=1,RI(g,_,x,c).then(()=>{h-=1,f&&h===0&&o()}).catch(u))}},g=>{g?u(g):(f=!0,f&&h===0&&o())})}).catch(u)});To.validateInput=mI;To.sync=SI;To.async=CI});var jl=L(Io=>{"use strict";var $y=q("path"),Ir=it(),Gl=Ge(),My=Ul(),Fy=Un(),Pi=Ao(),Oo=ro(),PI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Gl.argument(u,"from",n,["string"]),Gl.argument(u,"to",i,["string"]),Gl.options(u,"options",o,{overwrite:["boolean"]})},qy=t=>t||{},Hy=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},By=t=>{let n=new Error(`Path to move doesn't exist ${t}`);return n.code="ENOENT",n},TI=(t,n,i)=>{let o=qy(i);if(Pi.sync(n)!==!1&&o.overwrite!==!0)throw Hy(n);try{Ir.renameSync(t,n)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Oo.sync(n),Ir.renameSync(t,n);else if(u.code==="EXDEV")My.sync(t,n,{overwrite:!0}),Oo.sync(t);else if(u.code==="ENOENT"){if(!Pi.sync(t))throw By(t);Fy.createSync($y.dirname(n)),Ir.renameSync(t,n)}else throw u}},OI=t=>new Promise((n,i)=>{let o=$y.dirname(t);Pi.async(o).then(u=>{u?i():Fy.createAsync(o).then(n,i)}).catch(i)}),II=(t,n,i)=>{let o=qy(i);return new Promise((u,c)=>{Pi.async(n).then(f=>{f!==!1&&o.overwrite!==!0?c(Hy(n)):Ir.rename(t,n).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Oo.async(n).then(()=>Ir.rename(t,n)).then(u,c):h.code==="EXDEV"?My.async(t,n,{overwrite:!0}).then(()=>Oo.async(t)).then(u,c):h.code==="ENOENT"?Pi.async(t).then(g=>{g?OI(n).then(()=>Ir.rename(t,n)).then(u,c):c(By(t))}).catch(c):c(h)})})})};Io.validateInput=PI;Io.sync=TI;Io.async=II});var Xy=L(Lo=>{"use strict";var Gy=it(),Wy=Ge(),Uy=["utf8","buffer","json","jsonWithDates"],LI=(t,n,i)=>{let o=`${t}(path, returnAs)`;if(Wy.argument(o,"path",n,["string"]),Wy.argument(o,"returnAs",i,["string","undefined"]),i&&Uy.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${o} must have one of values: ${Uy.join(", ")}`)},jy=(t,n)=>typeof n=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(n)?new Date(n):n,Ky=(t,n)=>{let i=new Error(`JSON parsing failed while reading ${t} [${n}]`);return i.originalError=n,i},kI=(t,n)=>{let i=n||"utf8",o,u="utf8";i==="buffer"&&(u=null);try{o=Gy.readFileSync(t,{encoding:u})}catch(c){if(c.code==="ENOENT")return;throw c}try{i==="json"?o=JSON.parse(o):i==="jsonWithDates"&&(o=JSON.parse(o,jy))}catch(c){throw Ky(t,c)}return o},DI=(t,n)=>new Promise((i,o)=>{let u=n||"utf8",c="utf8";u==="buffer"&&(c=null),Gy.readFile(t,{encoding:c}).then(f=>{try{i(u==="json"?JSON.parse(f):u==="jsonWithDates"?JSON.parse(f,jy):f)}catch(h){o(Ky(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lo.validateInput=LI;Lo.sync=kI;Lo.async=DI});var Yy=L(ko=>{"use strict";var Ti=q("path"),zy=jl(),Kl=Ge(),NI=(t,n,i,o)=>{let u=`${t}(path, newName, [options])`;if(Kl.argument(u,"path",n,["string"]),Kl.argument(u,"newName",i,["string"]),Kl.options(u,"options",o,{overwrite:["boolean"]}),Ti.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},$I=(t,n,i)=>{let o=Ti.join(Ti.dirname(t),n);zy.sync(t,o,i)},MI=(t,n,i)=>{let o=Ti.join(Ti.dirname(t),n);return zy.async(t,o,i)};ko.validateInput=NI;ko.sync=$I;ko.async=MI});var Jy=L(No=>{"use strict";var Zy=q("path"),Do=it(),Qy=Ge(),Vy=Un(),FI=(t,n,i)=>{let o=`${t}(symlinkValue, path)`;Qy.argument(o,"symlinkValue",n,["string"]),Qy.argument(o,"path",i,["string"])},qI=(t,n)=>{try{Do.symlinkSync(t,n)}catch(i){if(i.code==="ENOENT")Vy.createSync(Zy.dirname(n)),Do.symlinkSync(t,n);else throw i}},HI=(t,n)=>new Promise((i,o)=>{Do.symlink(t,n).then(i).catch(u=>{u.code==="ENOENT"?Vy.createAsync(Zy.dirname(n)).then(()=>Do.symlink(t,n)).then(i,o):o(u)})});No.validateInput=FI;No.sync=qI;No.async=HI});var tv=L(Xl=>{"use strict";var ev=q("fs");Xl.createWriteStream=ev.createWriteStream;Xl.createReadStream=ev.createReadStream});var uv=L($o=>{"use strict";var zl=q("path"),BI=q("os"),nv=q("crypto"),rv=Un(),iv=it(),WI=Ge(),UI=(t,n)=>{let i=`${t}([options])`;WI.options(i,"options",n,{prefix:["string"],basePath:["string"]})},sv=(t,n)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=zl.resolve(n,t.basePath):i.basePath=BI.tmpdir(),i},ov=32,GI=(t,n)=>{let i=sv(n,t),o=nv.randomBytes(ov/2).toString("hex"),u=zl.join(i.basePath,i.prefix+o);try{iv.mkdirSync(u)}catch(c){if(c.code==="ENOENT")rv.sync(u);else throw c}return u},jI=(t,n)=>new Promise((i,o)=>{let u=sv(n,t);nv.randomBytes(ov/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=zl.join(u.basePath,u.prefix+h);iv.mkdir(g,_=>{_?_.code==="ENOENT"?rv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});$o.validateInput=UI;$o.sync=GI;$o.async=jI});var hv=L((nN,fv)=>{"use strict";var av=q("util"),Yl=q("path"),Mo=H_(),Fo=Un(),qo=G_(),Ho=Ay(),Bo=Tr(),Wo=Py(),Uo=Ul(),Go=Ao(),jo=ho(),Ko=jl(),Xo=Xy(),zo=ro(),Yo=Yy(),Qo=Jy(),cv=tv(),Zo=uv(),Vo=Ei(),lv=t=>{let n=()=>t||process.cwd(),i=function(){if(arguments.length===0)return n();let h=Array.prototype.slice.call(arguments),g=[n()].concat(h);return lv(Yl.resolve.apply(null,g))},o=h=>Yl.resolve(n(),h),u=function(){return Array.prototype.unshift.call(arguments,n()),Yl.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=n(),g},f={cwd:i,path:u,append:(h,g,_)=>{Mo.validateInput("append",h,g,_),Mo.sync(o(h),g,_)},appendAsync:(h,g,_)=>(Mo.validateInput("appendAsync",h,g,_),Mo.async(o(h),g,_)),copy:(h,g,_)=>{Uo.validateInput("copy",h,g,_),Uo.sync(o(h),o(g),_)},copyAsync:(h,g,_)=>(Uo.validateInput("copyAsync",h,g,_),Uo.async(o(h),o(g),_)),createWriteStream:(h,g)=>cv.createWriteStream(o(h),g),createReadStream:(h,g)=>cv.createReadStream(o(h),g),dir:(h,g)=>{Fo.validateInput("dir",h,g);let _=o(h);return Fo.sync(_,g),i(_)},dirAsync:(h,g)=>(Fo.validateInput("dirAsync",h,g),new Promise((_,v)=>{let x=o(h);Fo.async(x,g).then(()=>{_(i(x))},v)})),exists:h=>(Go.validateInput("exists",h),Go.sync(o(h))),existsAsync:h=>(Go.validateInput("existsAsync",h),Go.async(o(h))),file:(h,g)=>(qo.validateInput("file",h,g),qo.sync(o(h),g),f),fileAsync:(h,g)=>(qo.validateInput("fileAsync",h,g),new Promise((_,v)=>{qo.async(o(h),g).then(()=>{_(f)},v)})),find:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("find",h,g),Ho.sync(o(h),c(g))),findAsync:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("findAsync",h,g),Ho.async(o(h),c(g))),inspect:(h,g)=>(Bo.validateInput("inspect",h,g),Bo.sync(o(h),g)),inspectAsync:(h,g)=>(Bo.validateInput("inspectAsync",h,g),Bo.async(o(h),g)),inspectTree:(h,g)=>(Wo.validateInput("inspectTree",h,g),Wo.sync(o(h),g)),inspectTreeAsync:(h,g)=>(Wo.validateInput("inspectTreeAsync",h,g),Wo.async(o(h),g)),list:h=>(jo.validateInput("list",h),jo.sync(o(h||"."))),listAsync:h=>(jo.validateInput("listAsync",h),jo.async(o(h||"."))),move:(h,g,_)=>{Ko.validateInput("move",h,g,_),Ko.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(Ko.validateInput("moveAsync",h,g,_),Ko.async(o(h),o(g),_)),read:(h,g)=>(Xo.validateInput("read",h,g),Xo.sync(o(h),g)),readAsync:(h,g)=>(Xo.validateInput("readAsync",h,g),Xo.async(o(h),g)),remove:h=>{zo.validateInput("remove",h),zo.sync(o(h||"."))},removeAsync:h=>(zo.validateInput("removeAsync",h),zo.async(o(h||"."))),rename:(h,g,_)=>{Yo.validateInput("rename",h,g,_),Yo.sync(o(h),g,_)},renameAsync:(h,g,_)=>(Yo.validateInput("renameAsync",h,g,_),Yo.async(o(h),g,_)),symlink:(h,g)=>{Qo.validateInput("symlink",h,g),Qo.sync(h,o(g))},symlinkAsync:(h,g)=>(Qo.validateInput("symlinkAsync",h,g),Qo.async(h,o(g))),tmpDir:h=>{Zo.validateInput("tmpDir",h);let g=Zo.sync(n(),h);return i(g)},tmpDirAsync:h=>(Zo.validateInput("tmpDirAsync",h),new Promise((g,_)=>{Zo.async(n(),h).then(v=>{g(i(v))},_)})),write:(h,g,_)=>{Vo.validateInput("write",h,g,_),Vo.sync(o(h),g,_)},writeAsync:(h,g,_)=>(Vo.validateInput("writeAsync",h,g,_),Vo.async(o(h),g,_))};return av.inspect.custom!==void 0&&(f[av.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),f};fv.exports=lv});var Jo=L((rN,pv)=>{"use strict";var KI=hv();pv.exports=KI()});var YI={};Tp(YI,{default:()=>zI});var Si={};Tp(Si,{Bud:()=>wi,Build:()=>Lr,Clean:()=>kr,Contributors:()=>Nr,Dev:()=>$r,Docs:()=>Mr,DocsDev:()=>Fr,Docusaurus:()=>ur,Eslint:()=>ar,Lint:()=>qr,Netlify:()=>cr,PackageCheck:()=>yr,Pm2:()=>wr,Prettier:()=>Sr,RegistryClean:()=>Hr,RegistryStart:()=>Br,RegistryStop:()=>Wr,Release:()=>Ur,Syncpack:()=>xr,TestRun:()=>Gr,Tsc:()=>Er,Version:()=>jr,Vitest:()=>Ar,YarnPluginBuild:()=>Dr});var Lp=q("clipanion");var Ip=q("@yarnpkg/cli"),ee=class extends Ip.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var ur=class extends ee{constructor(){super(...arguments);this.passthrough=Lp.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};ur.paths=[["@bud","docusaurus"]],ur.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var $p=q("module"),Mp=q("path"),Fp=q("url"),fi={},qp=(fi?.url&&typeof fi.url<"u"?(0,Fp.fileURLToPath)(fi.url):__dirname).split("sources/").shift(),j=(...t)=>(0,Mp.join)(qp,...t),nL=j("package.json"),rL=j("storage"),iL=j("config","tsconfig.json");var sL={config:j("config"),fixtures:j("storage","fixtures"),root:qp,sources:j("sources"),storage:j("storage"),tests:j("tests")},Np;typeof fi?.url<"u"?Np=(0,$p.createRequire)(fi.url)("../../../config/monorepo.config.cjs"):Np=Dp();var Hp=q("clipanion");var ar=class extends ee{constructor(){super(...arguments);this.passthrough=Hp.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","eslint"),j("examples/**/*.{ts,tsx,js,jsx}"),j("sources/**/src/**/*.{ts,tsx,js,jsx}"),j("tests/**/*.{ts,tsx,js,jsx}"),j("config/**/*.{ts,tsx,js,jsx}"),"--config",j("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};ar.paths=[["@bud","eslint"]],ar.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};var xa=q("clipanion");var cr=class extends ee{constructor(){super(...arguments);this.dir=xa.Option.String("--dir",j("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=xa.Option.Proxy({name:"netlify options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","netlify",...this.passthrough??[],"--dir",`${this.dir}`]).then(this.throwIfError).catch(this.catch)}};cr.paths=[["@bud","netlify"]],cr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};var p_=q("clipanion");var e_=He(q("fs"),1),t_=He(q("path"),1),n_=He(Ea(),1),vi=He(al(),1),yi=He(km(),1);var Km=He(q("process"),1),_l=He(q("fs"),1),Wn=He(q("path"),1),yl=He(al(),1),Xm=He(Um(),1);function _r(t){let n=/^\\\\\?\\/.test(t),i=/[^\u0000-\u0080]+/.test(t);return n||i?t:t.replace(/\\/g,"/")}var Gm=q("url"),jm=q("stream"),_i=t=>t instanceof URL?(0,Gm.fileURLToPath)(t):t,Zs=class extends jm.Transform{constructor(n){super({objectMode:!0,transform(i,o,u){u(void 0,n(i)?i:void 0)}})}},Vs=t=>t[0]==="!";var zm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Ym="**/.gitignore",TT=(t,n)=>Vs(t)?"!"+Wn.default.posix.join(n,t.slice(1)):Wn.default.posix.join(n,t),OT=(t,n)=>{let i=_r(Wn.default.relative(n,Wn.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>TT(o,i))},IT=(t,n)=>{if(n=_r(n),Wn.default.isAbsolute(t)){if(_r(t).startsWith(n))return Wn.default.relative(n,t);throw new Error(`Path ${t} is not in cwd ${n}`)}return t},Qm=(t,n)=>{let i=t.flatMap(u=>OT(u,n)),o=(0,Xm.default)().add(i);return u=>(u=_i(u),u=IT(u,n),u?o.ignores(_r(u)):!1)},Zm=(t={})=>({cwd:_i(t.cwd)||Km.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),Vm=async(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),c=await(0,yl.default)(t,{cwd:i,suppressErrors:o,deep:u,...zm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await _l.default.promises.readFile(h,"utf8")})));return Qm(f,i)},Jm=(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),f=yl.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...zm}).map(h=>({filePath:h,content:_l.default.readFileSync(h,"utf8")}));return Qm(f,i)};var LT=t=>{if(t.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},vl=t=>(t=[...new Set([t].flat())],LT(t),t),kT=t=>{if(!t.cwd)return;let n;try{n=e_.default.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},r_=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:_i(t.cwd)},kT(t),t),i_=t=>async(n,i)=>t(vl(n),r_(i)),Js=t=>(n,i)=>t(vl(n),r_(i)),s_=t=>{let{ignoreFiles:n,gitignore:i}=t,o=n?vl(n):[];return i&&o.push(Ym),o},DT=async t=>{let n=s_(t);return u_(n.length>0&&await Vm(n,t))},o_=t=>{let n=s_(t);return u_(n.length>0&&Jm(n,t))},u_=t=>{let n=new Set;return i=>{let o=i.path||i,u=t_.default.normalize(o),c=n.has(u)||t&&t(o);return n.add(u),!c}},a_=(t,n)=>t.flat().filter(i=>n(i)),NT=(t,n)=>(0,n_.default)(t).pipe(new Zs(i=>n(i))),c_=(t,n)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>Vs(c));if(o===-1){i.push({patterns:t,options:n});break}let u=t[o].slice(1);for(let c of i)c.options.ignore.push(u);o!==0&&i.push({patterns:t.slice(0,o),options:{...n,ignore:[...n.ignore,u]}}),t=t.slice(o+1)}return i},l_=(t,n)=>({...n?{cwd:n}:{},...Array.isArray(t)?{files:t}:t}),f_=async(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(u,o),f=o?{cwd:o}:void 0;return Promise.all(i.map(async h=>{let{patterns:g,options:_}=h;return[g,_.ignore]=await Promise.all([(0,yi.default)(g,c),(0,yi.default)(_.ignore,f)]),{patterns:g,options:_}}))},bl=(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(u,o),f=o?{cwd:o}:void 0;return i.map(h=>{let{patterns:g,options:_}=h;return g=yi.default.sync(g,c),_.ignore=yi.default.sync(_.ignore,f),{patterns:g,options:_}})},h_=i_(async(t,n)=>{let[i,o]=await Promise.all([f_(t,n),DT(n)]),u=await Promise.all(i.map(c=>(0,vi.default)(c.patterns,c.options)));return a_(u,o)}),Kk=Js((t,n)=>{let i=bl(t,n),o=o_(n),u=i.map(c=>vi.default.sync(c.patterns,c.options));return a_(u,o)}),Xk=Js((t,n)=>{let i=bl(t,n),o=o_(n),u=i.map(c=>vi.default.stream(c.patterns,c.options));return NT(u,o)}),zk=Js((t,n)=>t.some(i=>vi.default.isDynamicPattern(i,n))),Yk=i_(f_),Qk=Js(bl);var yr=class extends ee{constructor(){super(...arguments);this.passthrough=p_.Option.Proxy({name:"pm2 options"})}async execute(){await h_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async o=>await this.cli.run(["node",j("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};yr.paths=[["@bud","package-check"]],yr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};var d_=q("clipanion"),g_=He(br());var wr=class extends ee{constructor(){super(...arguments);this.passthrough=d_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","pm2"),...this.passthrough]).catch(g_.noop)}};wr.paths=[["@bud","pm2"]],wr.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var m_=q("clipanion");var Sr=class extends ee{constructor(){super(...arguments);this.passthrough=m_.Option.Proxy({name:"prettier options"})}async execute(){this.passthrough.length||(this.passthrough=["--ignore-unknown","--no-error-on-unmatched-pattern","--write"]),await this.cli.run(["node",j("node_modules/.bin/prettier"),j("sources/@roots/*/src/**/*"),`--config=${j("config","prettier.config.js")}`,"--ignore-unknown","--no-error-on-unmatched-pattern","--write",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Sr.paths=[["@bud","prettier"]],Sr.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};var __=q("clipanion");var xr=class extends ee{constructor(){super(...arguments);this.passthrough=__.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","syncpack"),"list-mismatches","--config",j("config/syncpack.config.cjs")]).then(this.throwIfError).catch(this.catch)}};xr.paths=[["@bud","syncpack"]],xr.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};var y_=q("clipanion");var Er=class extends ee{constructor(){super(...arguments);this.passthrough=y_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",j("node_modules",".bin","tsc"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Er.paths=[["@bud","tsc"]],Er.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};var v_=q("clipanion");var Ar=class extends ee{constructor(){super(...arguments);this.passthrough=v_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",j("node_modules",".bin","vitest"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Ar.paths=[["@bud","vitest"]],Ar.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var wi=class extends ee{async execute(){process.stdout.write(` _ _ | |__ _ _ __| | | _ \\| | | |/ _ | @@ -34,7 +34,11 @@ globstar while`,n,x,i,S,H),this.matchOne(n.slice(x),i.slice(S),o))return this.de |_.__/ \\__._|\\__._| `),Object.values(Si).filter(n=>n.usage).forEach(n=>{n.usage.examples?.forEach(([i,o])=>{process.stdout.write(` \x1B[34m${o}\x1B[0m ${i} -`)})})}};wi.paths=[["@bud"]];var Nt=He(Jo());var Lr=class extends ee{constructor(){super(...arguments);this.tsconfig=K("config/tsconfig.json")}async bundle({alias:i={},external:o=[],format:u="esm",outdir:c,outfile:f,source:h}){return this.cli.run(["esbuild","--alias:webpack=@roots/bud-support/webpack","--allow-overwrite","--bundle","--external:crypto","--external:module","--external:node:*","--external:@roots/*","--minify","--log-level=warning","--platform=node",...Object.entries(i).map(([g,_])=>`--alias:${g}=${_}`),...o.map(g=>`--external:${g}`),`--format=${u}`,f?`--outfile=${f}`:null,c?`--outdir=${c}`:null,h].filter(Boolean))}async execute(){if(await Promise.all([this.bundle({format:"cjs",outfile:"sources/@roots/filesystem/vendor/sdk/index.cjs",source:"node_modules/@aws-sdk/client-s3/dist-es/index.js"}),this.bundle({format:"esm",outfile:"sources/@roots/bud-support/vendor/highlight/index.js",source:"sources/@roots/bud-support/src/highlight/index.ts"}).then(async()=>{await Nt.writeAsync(K("sources/@roots/bud-support/vendor/highlight/index.d.ts"),"export declare const highlight: (code: string) => string;")}),this.bundle({external:["./runtime/getUrl.js"],format:"cjs",outfile:K("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:K("node_modules/html-loader/dist/index.js")}).then(async()=>{let o=K("sources/@roots/bud-support/vendor/html-loader/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await Nt.copyAsync(K("node_modules/html-loader/dist/runtime/getUrl.js"),K("sources/@roots/bud-support/vendor/html-loader/runtime/getUrl.cjs"),{overwrite:!0})}),this.bundle({external:["./lib/loader.js"],format:"cjs",outfile:"sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs",source:"node_modules/html-webpack-plugin/index.js"}).then(async()=>{let o=K("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),Nt.copyAsync(K("node_modules/html-webpack-plugin/lib/loader.js"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),Nt.copyAsync(K("node_modules/html-webpack-plugin/typings.d.ts"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/index.d.cts"),{overwrite:!0})]).catch(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};Lr.paths=[["@bud","build"]],Lr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var kr=class extends ee{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};kr.paths=[["@bud","clean"]],kr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Dr=class extends ee{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(n=>{throw n}).then(n=>{if(n!==0)throw new Error("Plugin could not be built.")})}};Dr.paths=[["@bud","plugin","build"]],Dr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Nr=class extends ee{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};Nr.paths=[["@bud","contributors"]],Nr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var $r=class extends ee{async execute(){await this.cli.run(["@bud","build"]),await this.cli.run(["@bud","docs","build"]),this.promised.push(this.cli.run(["@bud","tsc","--watch"]),this.cli.run(["@bud","test","unit"]),this.cli.run(["@bud","docs","dev"])),await Promise.all(this.promised)}};$r.paths=[["@bud","dev"]],$r.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Mr=class extends ee{async execute(){await this.cli.run(["@bud","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud build\` returned error code ${n}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(n=>n!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${n}`))).catch(this.catch),await Promise.all([this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/cli-examples/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/releases/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/readme/index.js"]).catch(this.catch)]),await this.cli.run(["@bud","docusaurus","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${n}`))).catch(this.catch)}};Mr.paths=[["@bud","docs"],["@bud","docs","build"]],Mr.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Fr=class extends ee{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Fr.paths=[["@bud","docs","dev"]],Fr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var qr=class extends ee{async execute(){this.promised.push(this.cli.run(["@bud","eslint"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};qr.paths=[["@bud","lint"]],qr.usage={category:"@bud",description:"Lint project"};var un=He(Jo());var Hr=class extends ee{async execute(){if(await un.removeAsync(K("storage/mocks")).catch(this.catch),await un.removeAsync(K("storage","packages")).catch(this.catch),await un.existsAsync(K("storage",".verdaccio-db.json"))){let i=await un.readAsync(K("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await un.writeAsync(K("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Hr.paths=[["@bud","registry","clean"]],Hr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var Ql=He(br());var Br=class extends ee{async execute(){await this.cli.run(["@bud","pm2","start",K("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",K("config","verdaccio","config.yaml")]).catch(Ql.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(Ql.noop)})}};Br.paths=[["@bud","registry","start"]],Br.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var Zl=He(br());var Wr=class extends ee{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(Zl.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(Zl.noop)}};Wr.paths=[["@bud","registry","stop"]],Wr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var eu=q("clipanion"),Oi=He(br());var Ur=class extends ee{constructor(){super();this.registry=eu.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=eu.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=eu.Option.String("-v,--version",{description:"Release version",required:!1});this.catch=this.catch.bind(this),this.resetRegistry=this.resetRegistry.bind(this)}async catch(){await this.resetRegistry()}async execute(){if(this.registry.startsWith("http://localhost:4873")&&(await this.cli.run(["config","set","npmPublishRegistry","http://localhost:4873"]).then(this.throwIfError).catch(this.catch),await this.cli.run(["config","set","npmRegistryServer","http://localhost:4873"]).then(this.throwIfError).catch(this.catch)),!this.version){let i=new Date,o=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()].join(".");this.version=`${o}-${parseInt(`${i.getUTCHours()}`)}${parseInt(`${i.getUTCMinutes()}`)}`}await this.cli.run(["@bud","version",this.version]).then(this.throwIfError).catch(this.catch),await this.cli.run(["workspaces","foreach","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry()}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Oi.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Oi.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Oi.noop),await this.cli.run(["install"]).catch(Oi.noop)}};Ur.paths=[["@bud","release"]],Ur.usage={category:"@bud",description:"Do a release.",examples:[["Bump packages to x.y.z and publish","yarn @bud release --version x.y.z --tag latest"]]};var Vl=q("clipanion"),dv=He(Jo());var Gr=class extends ee{constructor(){super(...arguments);this.configuration=Vl.Option.String({required:!0});this.passthrough=Vl.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await dv.removeAsync(K("storage","mocks")).catch(o=>{throw o}),await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(o=>{throw o})),!i.includes("--config")&&i.push("--config",K("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};Gr.paths=[["@bud","test"]],Gr.usage={category:"@bud",description:"run test suites",examples:[["run unit test suite","yarn @bud test unit"],["run integration test suite","yarn @bud test integration"],["run e2e test suite","yarn @bud test e2e"]]};var gv=q("clipanion");var Kr=class extends ee{constructor(){super(...arguments);this.version=gv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};Kr.paths=[["@bud","version"]],Kr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var Ii=q("@yarnpkg/shell"),mv=He(br()),_v=async()=>{await(0,Ii.execute)("yarn",["@bud","plugin","build"]),await(0,Ii.execute)("yarn",["@bud","registry","start"]).catch(mv.noop),await(0,Ii.execute)("yarn",["@bud","build"]),await(0,Ii.execute)("yarn",["@bud"])};var XI={commands:Object.values(Si),hooks:{afterAllInstalled:_v}},zI=XI;return i1(YI);})(); +`)})})}};wi.paths=[["@bud"]];var Nt=He(Jo());var Lr=class extends ee{constructor(){super(...arguments);this.tsconfig=j("config/tsconfig.json")}async bundle({alias:i={},external:o=[],format:u="esm",outdir:c,outfile:f,source:h}){return this.cli.run(["esbuild","--alias:webpack=@roots/bud-support/webpack","--allow-overwrite","--bundle","--external:crypto","--external:module","--external:node:*","--external:@roots/*","--minify","--log-level=warning","--platform=node",...Object.entries(i).map(([g,_])=>`--alias:${g}=${_}`),...o.map(g=>`--external:${g}`),`--format=${u}`,f?`--outfile=${f}`:null,c?`--outdir=${c}`:null,h].filter(Boolean))}async execute(){if(await Promise.all([this.bundle({format:"cjs",outfile:"sources/@roots/filesystem/vendor/sdk/index.cjs",source:"node_modules/@aws-sdk/client-s3/dist-es/index.js"}),this.bundle({format:"esm",outfile:"sources/@roots/bud-support/vendor/highlight/index.js",source:"sources/@roots/bud-support/src/highlight/index.ts"}).then(async()=>{await Nt.writeAsync(j("sources/@roots/bud-support/vendor/highlight/index.d.ts"),"export declare const highlight: (code: string) => string;")}),this.bundle({external:["./runtime/getUrl.js"],format:"cjs",outfile:j("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:j("node_modules/html-loader/dist/index.js")}).then(async()=>{let o=j("sources/@roots/bud-support/vendor/html-loader/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await Nt.copyAsync(j("node_modules/html-loader/dist/runtime/getUrl.js"),j("sources/@roots/bud-support/vendor/html-loader/runtime/getUrl.cjs"),{overwrite:!0})}),this.bundle({external:["./lib/loader.js"],format:"cjs",outfile:"sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs",source:"node_modules/html-webpack-plugin/index.js"}).then(async()=>{let o=j("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),Nt.copyAsync(j("node_modules/html-webpack-plugin/lib/loader.js"),j("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),Nt.copyAsync(j("node_modules/html-webpack-plugin/typings.d.ts"),j("sources/@roots/bud-support/vendor/html-webpack-plugin/index.d.cts"),{overwrite:!0})]).catch(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};Lr.paths=[["@bud","build"]],Lr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var kr=class extends ee{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};kr.paths=[["@bud","clean"]],kr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Dr=class extends ee{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(n=>{throw n}).then(n=>{if(n!==0)throw new Error("Plugin could not be built.")})}};Dr.paths=[["@bud","plugin","build"]],Dr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Nr=class extends ee{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};Nr.paths=[["@bud","contributors"]],Nr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var $r=class extends ee{async execute(){await this.cli.run(["@bud","build"]),await this.cli.run(["@bud","docs","build"]),this.promised.push(this.cli.run(["@bud","tsc","--watch"]),this.cli.run(["@bud","test","unit"]),this.cli.run(["@bud","docs","dev"])),await Promise.all(this.promised)}};$r.paths=[["@bud","dev"]],$r.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Mr=class extends ee{async execute(){await this.cli.run(["@bud","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud build\` returned error code ${n}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(n=>n!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${n}`))).catch(this.catch),await Promise.all([this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/cli-examples/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/releases/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/readme/index.js"]).catch(this.catch)]),await this.cli.run(["@bud","docusaurus","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${n}`))).catch(this.catch)}};Mr.paths=[["@bud","docs"],["@bud","docs","build"]],Mr.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Fr=class extends ee{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Fr.paths=[["@bud","docs","dev"]],Fr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var qr=class extends ee{async execute(){this.promised.push(this.cli.run(["@bud","eslint"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};qr.paths=[["@bud","lint"]],qr.usage={category:"@bud",description:"Lint project"};var un=He(Jo());var Hr=class extends ee{async execute(){if(await un.removeAsync(j("storage/mocks")).catch(this.catch),await un.removeAsync(j("storage","packages")).catch(this.catch),await un.existsAsync(j("storage",".verdaccio-db.json"))){let i=await un.readAsync(j("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await un.writeAsync(j("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Hr.paths=[["@bud","registry","clean"]],Hr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var Ql=He(br());var Br=class extends ee{async execute(){await this.cli.run(["@bud","pm2","start",j("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",j("config","verdaccio","config.yaml")]).catch(Ql.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(Ql.noop)})}};Br.paths=[["@bud","registry","start"]],Br.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var Zl=He(br());var Wr=class extends ee{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(Zl.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(Zl.noop)}};Wr.paths=[["@bud","registry","stop"]],Wr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var eu=q("clipanion"),Oi=He(br());var Ur=class extends ee{constructor(){super();this.registry=eu.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=eu.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=eu.Option.String("-v,--version",{description:"Release version",required:!1});this.catch=this.catch.bind(this),this.resetRegistry=this.resetRegistry.bind(this)}async catch(){await this.resetRegistry()}async execute(){this.registry.startsWith("http://localhost:4873")&&(await this.cli.run(["config","set","npmPublishRegistry","http://localhost:4873"]).then(this.throwIfError).catch(this.catch),await this.cli.run(["config","set","npmRegistryServer","http://localhost:4873"]).then(this.throwIfError).catch(this.catch)),this.version||(this.version=this.makeVersion()),await this.cli.run(["@bud","version",this.version]).then(this.throwIfError).catch(this.catch),await this.cli.run(["workspaces","foreach","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` + +\u{1F4E6} Released: ${this.version} + +`)}makeVersion(){let i=new Date,o=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()],u=[i.getUTCHours(),i.getUTCMinutes()];return[o.join("."),parseInt(u.join(""))].join("-")}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Oi.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Oi.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Oi.noop),await this.cli.run(["install"]).catch(Oi.noop)}};Ur.paths=[["@bud","release"]],Ur.usage={category:"@bud",description:"Do a release.",examples:[["Bump packages to x.y.z and publish","yarn @bud release --version x.y.z --tag latest"]]};var Vl=q("clipanion"),dv=He(Jo());var Gr=class extends ee{constructor(){super(...arguments);this.configuration=Vl.Option.String({required:!0});this.passthrough=Vl.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await dv.removeAsync(j("storage","mocks")).catch(o=>{throw o}),await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(o=>{throw o})),!i.includes("--config")&&i.push("--config",j("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};Gr.paths=[["@bud","test"]],Gr.usage={category:"@bud",description:"run test suites",examples:[["run unit test suite","yarn @bud test unit"],["run integration test suite","yarn @bud test integration"],["run e2e test suite","yarn @bud test e2e"]]};var gv=q("clipanion");var jr=class extends ee{constructor(){super(...arguments);this.version=gv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};jr.paths=[["@bud","version"]],jr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var Ii=q("@yarnpkg/shell"),mv=He(br()),_v=async()=>{await(0,Ii.execute)("yarn",["@bud","plugin","build"]),await(0,Ii.execute)("yarn",["@bud","registry","start"]).catch(mv.noop),await(0,Ii.execute)("yarn",["@bud","build"]),await(0,Ii.execute)("yarn",["@bud"])};var XI={commands:Object.values(Si),hooks:{afterAllInstalled:_v}},zI=XI;return i1(YI);})(); /*! * fill-range * diff --git a/sources/@repo/yarn-plugin-bud/sources/command/release.ts b/sources/@repo/yarn-plugin-bud/sources/command/release.ts index 599ef5da77..76d1e47921 100644 --- a/sources/@repo/yarn-plugin-bud/sources/command/release.ts +++ b/sources/@repo/yarn-plugin-bud/sources/command/release.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-process-env */ import {CommandClass, Option} from 'clipanion' import {noop} from 'lodash' @@ -68,14 +67,7 @@ export class Release extends Command { } if (!this.version) { - const date = new Date() - const utcSemver = [ - date.getUTCFullYear(), - date.getUTCMonth() + 1, - date.getUTCDate(), - ].join(`.`) - - this.version = `${utcSemver}-${parseInt(`${date.getUTCHours()}`)}${parseInt(`${date.getUTCMinutes()}`)}` + this.version = this.makeVersion() } await this.cli @@ -99,6 +91,22 @@ export class Release extends Command { .catch(this.catch) await this.resetRegistry() + + this.context.stdout.write(`\n\n📦 Released: ${this.version}\n\n`) + } + + /** + * Get a unique identifier for the build. + */ + public makeVersion(): string { + const date = new Date() + const utc = [ + date.getUTCFullYear(), + date.getUTCMonth() + 1, + date.getUTCDate(), + ] + const rc = [date.getUTCHours(), date.getUTCMinutes()] + return [utc.join(`.`), parseInt(rc.join(``))].join(`-`) } public async resetRegistry() {