valaxy 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,146 @@
1
+ import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
+ import{a as U,b as S,c as J,d as l}from"./chunk-R4WV6S3O.mjs";var fe=S((h1,mn)=>{"use strict";l();var qf=U("tty"),Bf=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||qf.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),X=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+Vi(o,t,r,i)+t:e+o+t},Vi=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Vi(i,t,r,s):o+i},Hi=(e=Bf)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?X("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?X("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?X("\x1B[3m","\x1B[23m"):String,underline:e?X("\x1B[4m","\x1B[24m"):String,inverse:e?X("\x1B[7m","\x1B[27m"):String,hidden:e?X("\x1B[8m","\x1B[28m"):String,strikethrough:e?X("\x1B[9m","\x1B[29m"):String,black:e?X("\x1B[30m","\x1B[39m"):String,red:e?X("\x1B[31m","\x1B[39m"):String,green:e?X("\x1B[32m","\x1B[39m"):String,yellow:e?X("\x1B[33m","\x1B[39m"):String,blue:e?X("\x1B[34m","\x1B[39m"):String,magenta:e?X("\x1B[35m","\x1B[39m"):String,cyan:e?X("\x1B[36m","\x1B[39m"):String,white:e?X("\x1B[37m","\x1B[39m"):String,gray:e?X("\x1B[90m","\x1B[39m"):String,bgBlack:e?X("\x1B[40m","\x1B[49m"):String,bgRed:e?X("\x1B[41m","\x1B[49m"):String,bgGreen:e?X("\x1B[42m","\x1B[49m"):String,bgYellow:e?X("\x1B[43m","\x1B[49m"):String,bgBlue:e?X("\x1B[44m","\x1B[49m"):String,bgMagenta:e?X("\x1B[45m","\x1B[49m"):String,bgCyan:e?X("\x1B[46m","\x1B[49m"):String,bgWhite:e?X("\x1B[47m","\x1B[49m"):String});mn.exports=Hi();mn.exports.createColors=Hi});var ji=S(yt=>{"use strict";l();Object.defineProperty(yt,"__esModule",{value:!0});yt.splitWhen=yt.flatten=void 0;function Uf(e){return e.reduce((t,r)=>[].concat(t,r),[])}yt.flatten=Uf;function Gf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}yt.splitWhen=Gf});var qi=S(cr=>{"use strict";l();Object.defineProperty(cr,"__esModule",{value:!0});cr.isEnoentCodeError=void 0;function Wf(e){return e.code==="ENOENT"}cr.isEnoentCodeError=Wf});var Bi=S(lr=>{"use strict";l();Object.defineProperty(lr,"__esModule",{value:!0});lr.createDirentFromStats=void 0;var gn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function zf(e,t){return new gn(e,t)}lr.createDirentFromStats=zf});var zi=S(ne=>{"use strict";l();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 Kf=U("os"),Yf=U("path"),Ui=Kf.platform()==="win32",Xf=2,Qf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Zf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Jf=/^\\\\([.?])/,ep=/\\(?![!()+@[\]{}])/g;function tp(e){return e.replace(/\\/g,"/")}ne.unixify=tp;function rp(e,t){return Yf.resolve(e,t)}ne.makeAbsolute=rp;function np(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Xf)}return e}ne.removeLeadingDotSegment=np;ne.escape=Ui?hn:yn;function hn(e){return e.replace(Zf,"\\$2")}ne.escapeWindowsPath=hn;function yn(e){return e.replace(Qf,"\\$2")}ne.escapePosixPath=yn;ne.convertPathToPattern=Ui?Gi:Wi;function Gi(e){return hn(e).replace(Jf,"//$1").replace(ep,"/")}ne.convertWindowsPathToPattern=Gi;function Wi(e){return yn(e)}ne.convertPosixPathToPattern=Wi});var Yi=S((E1,Ki)=>{"use strict";l();Ki.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Zi=S((k1,Qi)=>{"use strict";l();var op=Yi(),Xi={"{":"}","(":")","[":"]"},ip=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=Xi[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},sp=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Xi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Qi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(op(t))return!0;var n=ip;return r&&r.strict===!1&&(n=sp),n(t)}});var es=S((O1,Ji)=>{"use strict";l();var ap=Zi(),cp=U("path").posix.dirname,lp=U("os").platform()==="win32",vn="/",up=/\\/g,fp=/[\{\[].*[\}\]]$/,pp=/(^|[^\\])([\{\[]|\([^\)]+$)/,dp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ji.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&lp&&t.indexOf(vn)<0&&(t=t.replace(up,vn)),fp.test(t)&&(t+=vn),t+="a";do t=cp(t);while(ap(t)||pp.test(t));return t.replace(dp,"$1")}});var ur=S(be=>{"use strict";l();be.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;be.find=(e,t)=>e.nodes.find(r=>r.type===t);be.exceedsLimit=(e,t,r=1,n)=>n===!1||!be.isInteger(e)||!be.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;be.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};be.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);be.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;be.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;be.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);be.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};return r(e),t}});var fr=S((I1,rs)=>{"use strict";l();var ts=ur();rs.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&ts.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&ts.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var os=S((L1,ns)=>{"use strict";l();ns.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ds=S((D1,ps)=>{"use strict";l();var is=os(),ot=(e,t,r)=>{if(is(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(is(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+o+i+s+a;if(ot.cache.hasOwnProperty(u))return ot.cache[u].result;let f=Math.min(e,t),c=Math.max(e,t);if(Math.abs(f-c)===1){let C=e+"|"+t;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let d=fs(e)||fs(t),p={min:e,max:t,a:f,b:c},_=[],x=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),f<0){let C=c<0?Math.abs(c):1;x=ss(C,Math.abs(f),p,n),f=p.a=0}return c>=0&&(_=ss(f,c,p,n)),p.negatives=x,p.positives=_,p.result=mp(x,_,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&_.length+x.length>1&&(p.result=`(?:${p.result})`),ot.cache[u]=p,p.result};function mp(e,t,r){let n=_n(e,t,"-",!1,r)||[],o=_n(t,e,"",!1,r)||[],i=_n(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function gp(e,t){let r=1,n=1,o=cs(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=cs(e,r);for(o=ls(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=ls(t+1,n)-1;return i=[...i],i.sort(vp),i}function hp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=yp(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[u,f]=n[a];u===f?i+=u:u!=="0"||f!=="9"?i+=_p(u,f,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function ss(e,t,r,n){let o=gp(e,t),i=[],s=e,a;for(let u=0;u<o.length;u++){let f=o[u],c=hp(String(s),String(f),n),d="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+us(a.count),s=f+1;continue}r.isPadded&&(d=xp(f,r,n)),c.string=d+c.pattern+us(c.count),i.push(c),s=f+1,a=c}return i}function _n(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!as(t,"string",a)&&i.push(r+a),n&&as(t,"string",a)&&i.push(r+a)}return i}function yp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function vp(e,t){return e>t?1:t>e?-1:0}function as(e,t,r){return e.some(n=>n[t]===r)}function cs(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ls(e,t){return e-e%Math.pow(10,t)}function us(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function _p(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function fs(e){return/^-?(0+)\d/.test(e)}function xp(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}ot.cache={};ot.clearCache=()=>ot.cache={};ps.exports=ot});var bn=S((H1,Cs)=>{"use strict";l();var Cp=U("util"),hs=ds(),ms=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),bp=e=>t=>e===!0?Number(t):String(t),xn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Vt=e=>Number.isInteger(+e),Cn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Sp=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rp=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},gs=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},wp=(e,t)=>{e.negatives.sort((s,a)=>s<a?-1:s>a?1:0),e.positives.sort((s,a)=>s<a?-1:s>a?1:0);let r=t.capture?"":"?:",n="",o="",i;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,t.wrap?`(${r}${i})`:i},ys=(e,t,r,n)=>{if(r)return hs(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},vs=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return hs(e,t,r)},_s=(...e)=>new RangeError("Invalid range arguments: "+Cp.inspect(...e)),xs=(e,t,r)=>{if(r.strictRanges===!0)throw _s([e,t]);return[]},Ep=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Ap=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw _s([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),u=String(t),f=String(r);r=Math.max(Math.abs(r),1);let c=Cn(a)||Cn(u)||Cn(f),d=c?Math.max(a.length,u.length,f.length):0,p=c===!1&&Sp(e,t,n)===!1,_=n.transform||bp(p);if(n.toRegex&&r===1)return ys(gs(e,d),gs(t,d),!0,n);let x={negatives:[],positives:[]},C=O=>x[O<0?"negatives":"positives"].push(Math.abs(O)),b=[],E=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?C(o):b.push(Rp(_(o,E),d,p)),o=s?o-r:o+r,E++;return n.toRegex===!0?r>1?wp(x,n):vs(b,null,{wrap:!1,...n}):b},kp=(e,t,r=1,n={})=>{if(!Vt(e)&&e.length>1||!Vt(t)&&t.length>1)return xs(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,u=Math.min(i,s),f=Math.max(i,s);if(n.toRegex&&r===1)return ys(u,f,!1,n);let c=[],d=0;for(;a?i>=s:i<=s;)c.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?vs(c,null,{wrap:!1,options:n}):c},pr=(e,t,r,n={})=>{if(t==null&&xn(e))return[e];if(!xn(e)||!xn(t))return xs(e,t,n);if(typeof r=="function")return pr(e,t,1,{transform:r});if(ms(r))return pr(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Vt(r)?Vt(e)&&Vt(t)?Ap(e,t,r,o):kp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!ms(r)?Ep(r,o):pr(e,t,1,r)};Cs.exports=pr});var Rs=S((q1,Ss)=>{"use strict";l();var Pp=bn(),bs=ur(),Op=(e,t={})=>{let r=(n,o={})=>{let i=bs.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=bs.reduce(n.nodes),d=Pp(...c,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return c.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let c of n.nodes)f+=r(c,n);return f};return r(e)};Ss.exports=Op});var As=S((U1,Es)=>{"use strict";l();var Tp=bn(),ws=fr(),vt=ur(),it=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?vt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(it(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?it(o,i,r):o+i);return vt.flatten(n)},$p=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(it(a.pop(),ws(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(it(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=vt.reduce(o.nodes);if(vt.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=Tp(...d,t);p.length===0&&(p=ws(o,t)),a.push(it(a.pop(),p)),o.nodes=[];return}let u=vt.encloseBrace(o),f=o.queue,c=o;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,f=c.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&f.push(""),f.push("");continue}if(p.type==="close"){a.push(it(a.pop(),f,u));continue}if(p.value&&p.type!=="open"){f.push(it(f.pop(),p.value));continue}p.nodes&&n(p,o)}return f};return vt.flatten(n(e))};Es.exports=$p});var Ps=S((W1,ks)=>{"use strict";l();ks.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:`
3
+ `,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 Is=S((K1,Fs)=>{"use strict";l();var Fp=fr(),{MAX_LENGTH:Os,CHAR_BACKSLASH:Sn,CHAR_BACKTICK:Ip,CHAR_COMMA:Mp,CHAR_DOT:Lp,CHAR_LEFT_PARENTHESES:Np,CHAR_RIGHT_PARENTHESES:Dp,CHAR_LEFT_CURLY_BRACE:Vp,CHAR_RIGHT_CURLY_BRACE:Hp,CHAR_LEFT_SQUARE_BRACKET:Ts,CHAR_RIGHT_SQUARE_BRACKET:$s,CHAR_DOUBLE_QUOTE:jp,CHAR_SINGLE_QUOTE:qp,CHAR_NO_BREAK_SPACE:Bp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Up}=Ps(),Gp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Os,r.maxLength):Os;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},i=[o],s=o,a=o,u=0,f=e.length,c=0,d=0,p,_={},x=()=>e[c++],C=b=>{if(b.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&b.type==="text"){a.value+=b.value;return}return s.nodes.push(b),b.parent=s,b.prev=a,a=b,b};for(C({type:"bos"});c<f;)if(s=i[i.length-1],p=x(),!(p===Up||p===Bp)){if(p===Sn){C({type:"text",value:(t.keepEscaping?p:"")+x()});continue}if(p===$s){C({type:"text",value:"\\"+p});continue}if(p===Ts){u++;let b=!0,E;for(;c<f&&(E=x());){if(p+=E,E===Ts){u++;continue}if(E===Sn){p+=x();continue}if(E===$s&&(u--,u===0))break}C({type:"text",value:p});continue}if(p===Np){s=C({type:"paren",nodes:[]}),i.push(s),C({type:"text",value:p});continue}if(p===Dp){if(s.type!=="paren"){C({type:"text",value:p});continue}s=i.pop(),C({type:"text",value:p}),s=i[i.length-1];continue}if(p===jp||p===qp||p===Ip){let b=p,E;for(t.keepQuotes!==!0&&(p="");c<f&&(E=x());){if(E===Sn){p+=E+x();continue}if(E===b){t.keepQuotes===!0&&(p+=E);break}p+=E}C({type:"text",value:p});continue}if(p===Vp){d++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=C(E),i.push(s),C({type:"open",value:p});continue}if(p===Hp){if(s.type!=="brace"){C({type:"text",value:p});continue}let b="close";s=i.pop(),s.close=!0,C({type:b,value:p}),d--,s=i[i.length-1];continue}if(p===Mp&&d>0){if(s.ranges>0){s.ranges=0;let b=s.nodes.shift();s.nodes=[b,{type:"text",value:Fp(s)}]}C({type:"comma",value:p}),s.commas++;continue}if(p===Lp&&d>0&&s.commas===0){let b=s.nodes;if(d===0||b.length===0){C({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){b.pop();let E=b[b.length-1];E.value+=a.value+p,a=E,s.ranges--;continue}C({type:"dot",value:p});continue}C({type:"text",value:p})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let b=i[i.length-1],E=b.nodes.indexOf(s);b.nodes.splice(E,1,...s.nodes)}while(i.length>0);return C({type:"eos"}),o};Fs.exports=Gp});var Ns=S((X1,Ls)=>{"use strict";l();var Ms=fr(),Wp=Rs(),zp=As(),Kp=Is(),_e=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=_e.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(_e.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};_e.parse=(e,t={})=>Kp(e,t);_e.stringify=(e,t={})=>Ms(typeof e=="string"?_e.parse(e,t):e,t);_e.compile=(e,t={})=>(typeof e=="string"&&(e=_e.parse(e,t)),Wp(e,t));_e.expand=(e,t={})=>{typeof e=="string"&&(e=_e.parse(e,t));let r=zp(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};_e.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?_e.compile(e,t):_e.expand(e,t);Ls.exports=_e});var Ht=S((Z1,qs)=>{"use strict";l();var Yp=U("path"),Oe="\\\\/",Ds=`[^${Oe}]`,De="\\.",Xp="\\+",Qp="\\?",dr="\\/",Zp="(?=.)",Vs="[^/]",Rn=`(?:${dr}|$)`,Hs=`(?:^|${dr})`,wn=`${De}{1,2}${Rn}`,Jp=`(?!${De})`,ed=`(?!${Hs}${wn})`,td=`(?!${De}{0,1}${Rn})`,rd=`(?!${wn})`,nd=`[^.${dr}]`,od=`${Vs}*?`,js={DOT_LITERAL:De,PLUS_LITERAL:Xp,QMARK_LITERAL:Qp,SLASH_LITERAL:dr,ONE_CHAR:Zp,QMARK:Vs,END_ANCHOR:Rn,DOTS_SLASH:wn,NO_DOT:Jp,NO_DOTS:ed,NO_DOT_SLASH:td,NO_DOTS_SLASH:rd,QMARK_NO_DOT:nd,STAR:od,START_ANCHOR:Hs},id={...js,SLASH_LITERAL:`[${Oe}]`,QMARK:Ds,STAR:`${Ds}*?`,DOTS_SLASH:`${De}{1,2}(?:[${Oe}]|$)`,NO_DOT:`(?!${De})`,NO_DOTS:`(?!(?:^|[${Oe}])${De}{1,2}(?:[${Oe}]|$))`,NO_DOT_SLASH:`(?!${De}{0,1}(?:[${Oe}]|$))`,NO_DOTS_SLASH:`(?!${De}{1,2}(?:[${Oe}]|$))`,QMARK_NO_DOT:`[^.${Oe}]`,START_ANCHOR:`(?:^|[${Oe}])`,END_ANCHOR:`(?:[${Oe}]|$)`},sd={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"};qs.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:sd,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:Yp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?id:js}}});var jt=S(ve=>{"use strict";l();var ad=U("path"),cd=process.platform==="win32",{REGEX_BACKSLASH:ld,REGEX_REMOVE_BACKSLASH:ud,REGEX_SPECIAL_CHARS:fd,REGEX_SPECIAL_CHARS_GLOBAL:pd}=Ht();ve.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ve.hasRegexChars=e=>fd.test(e);ve.isRegexChar=e=>e.length===1&&ve.hasRegexChars(e);ve.escapeRegex=e=>e.replace(pd,"\\$1");ve.toPosixSlashes=e=>e.replace(ld,"/");ve.removeBackslashes=e=>e.replace(ud,t=>t==="\\"?"":t);ve.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ve.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:cd===!0||ad.sep==="\\";ve.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ve.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ve.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ve.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Xs=S((rC,Ys)=>{"use strict";l();var Bs=jt(),{CHAR_ASTERISK:En,CHAR_AT:dd,CHAR_BACKWARD_SLASH:qt,CHAR_COMMA:md,CHAR_DOT:An,CHAR_EXCLAMATION_MARK:kn,CHAR_FORWARD_SLASH:Ks,CHAR_LEFT_CURLY_BRACE:Pn,CHAR_LEFT_PARENTHESES:On,CHAR_LEFT_SQUARE_BRACKET:gd,CHAR_PLUS:hd,CHAR_QUESTION_MARK:Us,CHAR_RIGHT_CURLY_BRACE:yd,CHAR_RIGHT_PARENTHESES:Gs,CHAR_RIGHT_SQUARE_BRACKET:vd}=Ht(),Ws=e=>e===Ks||e===qt,zs=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},_d=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],u=e,f=-1,c=0,d=0,p=!1,_=!1,x=!1,C=!1,b=!1,E=!1,O=!1,I=!1,G=!1,w=!1,M=0,R,k,$={value:"",depth:0,isGlob:!1},K=()=>f>=n,h=()=>u.charCodeAt(f+1),T=()=>(R=k,u.charCodeAt(++f));for(;f<n;){k=T();let q;if(k===qt){O=$.backslashes=!0,k=T(),k===Pn&&(E=!0);continue}if(E===!0||k===Pn){for(M++;K()!==!0&&(k=T());){if(k===qt){O=$.backslashes=!0,T();continue}if(k===Pn){M++;continue}if(E!==!0&&k===An&&(k=T())===An){if(p=$.isBrace=!0,x=$.isGlob=!0,w=!0,o===!0)continue;break}if(E!==!0&&k===md){if(p=$.isBrace=!0,x=$.isGlob=!0,w=!0,o===!0)continue;break}if(k===yd&&(M--,M===0)){E=!1,p=$.isBrace=!0,w=!0;break}}if(o===!0)continue;break}if(k===Ks){if(i.push(f),s.push($),$={value:"",depth:0,isGlob:!1},w===!0)continue;if(R===An&&f===c+1){c+=2;continue}d=f+1;continue}if(r.noext!==!0&&(k===hd||k===dd||k===En||k===Us||k===kn)===!0&&h()===On){if(x=$.isGlob=!0,C=$.isExtglob=!0,w=!0,k===kn&&f===c&&(G=!0),o===!0){for(;K()!==!0&&(k=T());){if(k===qt){O=$.backslashes=!0,k=T();continue}if(k===Gs){x=$.isGlob=!0,w=!0;break}}continue}break}if(k===En){if(R===En&&(b=$.isGlobstar=!0),x=$.isGlob=!0,w=!0,o===!0)continue;break}if(k===Us){if(x=$.isGlob=!0,w=!0,o===!0)continue;break}if(k===gd){for(;K()!==!0&&(q=T());){if(q===qt){O=$.backslashes=!0,T();continue}if(q===vd){_=$.isBracket=!0,x=$.isGlob=!0,w=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&k===kn&&f===c){I=$.negated=!0,c++;continue}if(r.noparen!==!0&&k===On){if(x=$.isGlob=!0,o===!0){for(;K()!==!0&&(k=T());){if(k===On){O=$.backslashes=!0,k=T();continue}if(k===Gs){w=!0;break}}continue}break}if(x===!0){if(w=!0,o===!0)continue;break}}r.noext===!0&&(C=!1,x=!1);let L=u,V="",y="";c>0&&(V=u.slice(0,c),u=u.slice(c),d-=c),L&&x===!0&&d>0?(L=u.slice(0,d),y=u.slice(d)):x===!0?(L="",y=u):L=u,L&&L!==""&&L!=="/"&&L!==u&&Ws(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(y&&(y=Bs.removeBackslashes(y)),L&&O===!0&&(L=Bs.removeBackslashes(L)));let v={prefix:V,input:e,start:c,base:L,glob:y,isBrace:p,isBracket:_,isGlob:x,isExtglob:C,isGlobstar:b,negated:I,negatedExtglob:G};if(r.tokens===!0&&(v.maxDepth=0,Ws(k)||s.push($),v.tokens=s),r.parts===!0||r.tokens===!0){let q;for(let F=0;F<i.length;F++){let N=q?q+1:c,W=i[F],j=e.slice(N,W);r.tokens&&(F===0&&c!==0?(s[F].isPrefix=!0,s[F].value=V):s[F].value=j,zs(s[F]),v.maxDepth+=s[F].depth),(F!==0||j!=="")&&a.push(j),q=W}if(q&&q+1<e.length){let F=e.slice(q+1);a.push(F),r.tokens&&(s[s.length-1].value=F,zs(s[s.length-1]),v.maxDepth+=s[s.length-1].depth)}v.slashes=i,v.parts=a}return v};Ys.exports=_d});var Js=S((oC,Zs)=>{"use strict";l();var mr=Ht(),xe=jt(),{MAX_LENGTH:gr,POSIX_REGEX_SOURCE:xd,REGEX_NON_SPECIAL_CHARS:Cd,REGEX_SPECIAL_CHARS_BACKREF:bd,REPLACEMENTS:Qs}=mr,Sd=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>xe.escapeRegex(o)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Tn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Qs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",u=xe.isWindows(t),f=mr.globChars(u),c=mr.extglobChars(f),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:x,DOTS_SLASH:C,NO_DOT:b,NO_DOT_SLASH:E,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:G,STAR:w,START_ANCHOR:M}=f,R=P=>`(${a}(?:(?!${M}${P.dot?C:d}).)*?)`,k=r.dot?"":b,$=r.dot?I:G,K=r.bash===!0?R(r):w;r.capture&&(K=`(${K})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let h={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=xe.removePrefix(e,h),o=e.length;let T=[],L=[],V=[],y=i,v,q=()=>h.index===o-1,F=h.peek=(P=1)=>e[h.index+P],N=h.advance=()=>e[++h.index]||"",W=()=>e.slice(h.index+1),j=(P="",Y=0)=>{h.consumed+=P,h.index+=Y},ie=P=>{h.output+=P.output!=null?P.output:P.value,j(P.value)},te=()=>{let P=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)N(),h.start++,P++;return P%2===0?!1:(h.negated=!0,h.start++,!0)},Ne=P=>{h[P]++,V.push(P)},ue=P=>{h[P]--,V.pop()},H=P=>{if(y.type==="globstar"){let Y=h.braces>0&&(P.type==="comma"||P.type==="brace"),A=P.extglob===!0||T.length&&(P.type==="pipe"||P.type==="paren");P.type!=="slash"&&P.type!=="paren"&&!Y&&!A&&(h.output=h.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=K,h.output+=y.output)}if(T.length&&P.type!=="paren"&&(T[T.length-1].inner+=P.value),(P.value||P.output)&&ie(P),y&&y.type==="text"&&P.type==="text"){y.value+=P.value,y.output=(y.output||"")+P.value;return}P.prev=y,s.push(P),y=P},ye=(P,Y)=>{let A={...c[Y],conditions:1,inner:""};A.prev=y,A.parens=h.parens,A.output=h.output;let B=(r.capture?"(":"")+A.open;Ne("parens"),H({type:P,value:Y,output:h.output?"":x}),H({type:"paren",extglob:!0,value:N(),output:B}),T.push(A)},gt=P=>{let Y=P.close+(r.capture?")":""),A;if(P.type==="negate"){let B=K;if(P.inner&&P.inner.length>1&&P.inner.includes("/")&&(B=R(r)),(B!==K||q()||/^\)+$/.test(W()))&&(Y=P.close=`)$))${B}`),P.inner.includes("*")&&(A=W())&&/^\.[^\\/.]+$/.test(A)){let Z=Tn(A,{...t,fastpaths:!1}).output;Y=P.close=`)${Z})${B})`}P.prev.type==="bos"&&(h.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:v,output:Y}),ue("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let P=!1,Y=e.replace(bd,(A,B,Z,he,se,dn)=>he==="\\"?(P=!0,A):he==="?"?B?B+he+(se?I.repeat(se.length):""):dn===0?$+(se?I.repeat(se.length):""):I.repeat(Z.length):he==="."?d.repeat(Z.length):he==="*"?B?B+he+(se?K:""):K:B?A:`\\${A}`);return P===!0&&(r.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,A=>A.length%2===0?"\\\\":A?"\\":"")),Y===e&&r.contains===!0?(h.output=e,h):(h.output=xe.wrapOutput(Y,h,t),h)}for(;!q();){if(v=N(),v==="\0")continue;if(v==="\\"){let A=F();if(A==="/"&&r.bash!==!0||A==="."||A===";")continue;if(!A){v+="\\",H({type:"text",value:v});continue}let B=/^\\+/.exec(W()),Z=0;if(B&&B[0].length>2&&(Z=B[0].length,h.index+=Z,Z%2!==0&&(v+="\\")),r.unescape===!0?v=N():v+=N(),h.brackets===0){H({type:"text",value:v});continue}}if(h.brackets>0&&(v!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&v===":"){let A=y.value.slice(1);if(A.includes("[")&&(y.posix=!0,A.includes(":"))){let B=y.value.lastIndexOf("["),Z=y.value.slice(0,B),he=y.value.slice(B+2),se=xd[he];if(se){y.value=Z+se,h.backtrack=!0,N(),!i.output&&s.indexOf(y)===1&&(i.output=x);continue}}}(v==="["&&F()!==":"||v==="-"&&F()==="]")&&(v=`\\${v}`),v==="]"&&(y.value==="["||y.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&y.value==="["&&(v="^"),y.value+=v,ie({value:v});continue}if(h.quotes===1&&v!=='"'){v=xe.escapeRegex(v),y.value+=v,ie({value:v});continue}if(v==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:v});continue}if(v==="("){Ne("parens"),H({type:"paren",value:v});continue}if(v===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(_t("opening","("));let A=T[T.length-1];if(A&&h.parens===A.parens+1){gt(T.pop());continue}H({type:"paren",value:v,output:h.parens?")":"\\)"}),ue("parens");continue}if(v==="["){if(r.nobracket===!0||!W().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));v=`\\${v}`}else Ne("brackets");H({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){H({type:"text",value:v,output:`\\${v}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(_t("opening","["));H({type:"text",value:v,output:`\\${v}`});continue}ue("brackets");let A=y.value.slice(1);if(y.posix!==!0&&A[0]==="^"&&!A.includes("/")&&(v=`/${v}`),y.value+=v,ie({value:v}),r.literalBrackets===!1||xe.hasRegexChars(A))continue;let B=xe.escapeRegex(y.value);if(h.output=h.output.slice(0,-y.value.length),r.literalBrackets===!0){h.output+=B,y.value=B;continue}y.value=`(${a}${B}|${y.value})`,h.output+=y.value;continue}if(v==="{"&&r.nobrace!==!0){Ne("braces");let A={type:"brace",value:v,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};L.push(A),H(A);continue}if(v==="}"){let A=L[L.length-1];if(r.nobrace===!0||!A){H({type:"text",value:v,output:v});continue}let B=")";if(A.dots===!0){let Z=s.slice(),he=[];for(let se=Z.length-1;se>=0&&(s.pop(),Z[se].type!=="brace");se--)Z[se].type!=="dots"&&he.unshift(Z[se].value);B=Sd(he,r),h.backtrack=!0}if(A.comma!==!0&&A.dots!==!0){let Z=h.output.slice(0,A.outputIndex),he=h.tokens.slice(A.tokensIndex);A.value=A.output="\\{",v=B="\\}",h.output=Z;for(let se of he)h.output+=se.output||se.value}H({type:"brace",value:v,output:B}),ue("braces"),L.pop();continue}if(v==="|"){T.length>0&&T[T.length-1].conditions++,H({type:"text",value:v});continue}if(v===","){let A=v,B=L[L.length-1];B&&V[V.length-1]==="braces"&&(B.comma=!0,A="|"),H({type:"comma",value:v,output:A});continue}if(v==="/"){if(y.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",s.pop(),y=i;continue}H({type:"slash",value:v,output:_});continue}if(v==="."){if(h.braces>0&&y.type==="dot"){y.value==="."&&(y.output=d);let A=L[L.length-1];y.type="dots",y.output+=v,y.value+=v,A.dots=!0;continue}if(h.braces+h.parens===0&&y.type!=="bos"&&y.type!=="slash"){H({type:"text",value:v,output:d});continue}H({type:"dot",value:v,output:d});continue}if(v==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ye("qmark",v);continue}if(y&&y.type==="paren"){let B=F(),Z=v;if(B==="<"&&!xe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(y.value==="("&&!/[!=<:]/.test(B)||B==="<"&&!/<([!=]|\w+>)/.test(W()))&&(Z=`\\${v}`),H({type:"text",value:v,output:Z});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){H({type:"qmark",value:v,output:G});continue}H({type:"qmark",value:v,output:I});continue}if(v==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){ye("negate",v);continue}if(r.nonegate!==!0&&h.index===0){te();continue}}if(v==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ye("plus",v);continue}if(y&&y.value==="("||r.regex===!1){H({type:"plus",value:v,output:p});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||h.parens>0){H({type:"plus",value:v});continue}H({type:"plus",value:p});continue}if(v==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){H({type:"at",extglob:!0,value:v,output:""});continue}H({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let A=Cd.exec(W());A&&(v+=A[0],h.index+=A[0].length),H({type:"text",value:v});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=v,y.output=K,h.backtrack=!0,h.globstar=!0,j(v);continue}let P=W();if(r.noextglob!==!0&&/^\([^?]/.test(P)){ye("star",v);continue}if(y.type==="star"){if(r.noglobstar===!0){j(v);continue}let A=y.prev,B=A.prev,Z=A.type==="slash"||A.type==="bos",he=B&&(B.type==="star"||B.type==="globstar");if(r.bash===!0&&(!Z||P[0]&&P[0]!=="/")){H({type:"star",value:v,output:""});continue}let se=h.braces>0&&(A.type==="comma"||A.type==="brace"),dn=T.length&&(A.type==="pipe"||A.type==="paren");if(!Z&&A.type!=="paren"&&!se&&!dn){H({type:"star",value:v,output:""});continue}for(;P.slice(0,3)==="/**";){let ar=e[h.index+4];if(ar&&ar!=="/")break;P=P.slice(3),j("/**",3)}if(A.type==="bos"&&q()){y.type="globstar",y.value+=v,y.output=R(r),h.output=y.output,h.globstar=!0,j(v);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&!he&&q()){h.output=h.output.slice(0,-(A.output+y.output).length),A.output=`(?:${A.output}`,y.type="globstar",y.output=R(r)+(r.strictSlashes?")":"|$)"),y.value+=v,h.globstar=!0,h.output+=A.output+y.output,j(v);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&P[0]==="/"){let ar=P[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(A.output+y.output).length),A.output=`(?:${A.output}`,y.type="globstar",y.output=`${R(r)}${_}|${_}${ar})`,y.value+=v,h.output+=A.output+y.output,h.globstar=!0,j(v+N()),H({type:"slash",value:"/",output:""});continue}if(A.type==="bos"&&P[0]==="/"){y.type="globstar",y.value+=v,y.output=`(?:^|${_}|${R(r)}${_})`,h.output=y.output,h.globstar=!0,j(v+N()),H({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-y.output.length),y.type="globstar",y.output=R(r),y.value+=v,h.output+=y.output,h.globstar=!0,j(v);continue}let Y={type:"star",value:v,output:K};if(r.bash===!0){Y.output=".*?",(y.type==="bos"||y.type==="slash")&&(Y.output=k+Y.output),H(Y);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){Y.output=v,H(Y);continue}(h.index===h.start||y.type==="slash"||y.type==="dot")&&(y.type==="dot"?(h.output+=E,y.output+=E):r.dot===!0?(h.output+=O,y.output+=O):(h.output+=k,y.output+=k),F()!=="*"&&(h.output+=x,y.output+=x)),H(Y)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));h.output=xe.escapeLast(h.output,"["),ue("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing",")"));h.output=xe.escapeLast(h.output,"("),ue("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","}"));h.output=xe.escapeLast(h.output,"{"),ue("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${_}?`}),h.backtrack===!0){h.output="";for(let P of h.tokens)h.output+=P.output!=null?P.output:P.value,P.suffix&&(h.output+=P.suffix)}return h};Tn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Qs[e]||e;let i=xe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:c,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:x}=mr.globChars(i),C=r.dot?d:c,b=r.dot?p:c,E=r.capture?"":"?:",O={negated:!1,prefix:""},I=r.bash===!0?".*?":_;r.capture&&(I=`(${I})`);let G=k=>k.noglobstar===!0?I:`(${E}(?:(?!${x}${k.dot?f:s}).)*?)`,w=k=>{switch(k){case"*":return`${C}${u}${I}`;case".*":return`${s}${u}${I}`;case"*.*":return`${C}${I}${s}${u}${I}`;case"*/*":return`${C}${I}${a}${u}${b}${I}`;case"**":return C+G(r);case"**/*":return`(?:${C}${G(r)}${a})?${b}${u}${I}`;case"**/*.*":return`(?:${C}${G(r)}${a})?${b}${I}${s}${u}${I}`;case"**/.*":return`(?:${C}${G(r)}${a})?${s}${u}${I}`;default:{let $=/^(.*?)\.(\w+)$/.exec(k);if(!$)return;let K=w($[1]);return K?K+s+$[2]:void 0}}},M=xe.removePrefix(e,O),R=w(M);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};Zs.exports=Tn});var ta=S((sC,ea)=>{"use strict";l();var Rd=U("path"),wd=Xs(),$n=Js(),Fn=jt(),Ed=Ht(),Ad=e=>e&&typeof e=="object"&&!Array.isArray(e),re=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map(p=>re(p,t,r));return p=>{for(let _ of c){let x=_(p);if(x)return x}return!1}}let n=Ad(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=Fn.isWindows(t),s=n?re.compileRe(e,t):re.makeRe(e,t,!1,!0),a=s.state;delete s.state;let u=()=>!1;if(o.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=re(o.ignore,c,r)}let f=(c,d=!1)=>{let{isMatch:p,match:_,output:x}=re.test(c,s,t,{glob:e,posix:i}),C={glob:e,state:a,regex:s,posix:i,input:c,output:x,match:_,isMatch:p};return typeof o.onResult=="function"&&o.onResult(C),p===!1?(C.isMatch=!1,d?C:!1):u(c)?(typeof o.onIgnore=="function"&&o.onIgnore(C),C.isMatch=!1,d?C:!1):(typeof o.onMatch=="function"&&o.onMatch(C),d?C:!0)};return r&&(f.state=a),f};re.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?Fn.toPosixSlashes:null),a=e===n,u=a&&s?s(e):e;return a===!1&&(u=s?s(e):e,a=u===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=re.matchBase(e,t,r,o):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};re.matchBase=(e,t,r,n=Fn.isWindows(r))=>(t instanceof RegExp?t:re.makeRe(t,r)).test(Rd.basename(e));re.isMatch=(e,t,r)=>re(t,r)(e);re.parse=(e,t)=>Array.isArray(e)?e.map(r=>re.parse(r,t)):$n(e,{...t,fastpaths:!1});re.scan=(e,t)=>wd(e,t);re.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=re.toRegex(a,t);return n===!0&&(u.state=e),u};re.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=$n.fastpaths(e,t)),o.output||(o=$n(e,t)),re.compileRe(o,t,r,n)};re.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};re.constants=Ed;ea.exports=re});var na=S((cC,ra)=>{"use strict";l();ra.exports=ta()});var ca=S((uC,aa)=>{"use strict";l();var ia=U("util"),sa=Ns(),Te=na(),In=jt(),oa=e=>e===""||e==="./",Q=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=c=>{i.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<t.length;c++){let d=Te(String(t[c]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let _ of e){let x=d(_,!0);(p?!x.isMatch:x.isMatch)&&(p?n.add(x.output):(n.delete(x.output),o.add(x.output)))}}let f=(s===t.length?[...i]:[...o]).filter(c=>!n.has(c));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(c=>c.replace(/\\/g,"")):t}return f};Q.match=Q;Q.matcher=(e,t)=>Te(e,t);Q.isMatch=(e,t,r)=>Te(t,r)(e);Q.any=Q.isMatch;Q.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(Q(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};Q.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ia.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Q.contains(e,n,r));if(typeof t=="string"){if(oa(e)||oa(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Q.isMatch(e,t,{...r,contains:!0})};Q.matchKeys=(e,t,r)=>{if(!In.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Q(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};Q.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Te(String(o),r);if(n.some(s=>i(s)))return!0}return!1};Q.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Te(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};Q.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ia.inspect(e)}"`);return[].concat(t).every(n=>Te(n,r)(e))};Q.capture=(e,t,r)=>{let n=In.isWindows(r),i=Te.makeRe(String(e),{...r,capture:!0}).exec(n?In.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};Q.makeRe=(...e)=>Te.makeRe(...e);Q.scan=(...e)=>Te.scan(...e);Q.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of sa(String(n),t))r.push(Te.parse(o,t));return r};Q.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:sa(e,t)};Q.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Q.braces(e,{...t,expand:!0})};aa.exports=Q});var ha=S(D=>{"use strict";l();Object.defineProperty(D,"__esModule",{value:!0});D.removeDuplicateSlashes=D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var kd=U("path"),Pd=es(),Mn=ca(),la="**",Od="\\",Td=/[*?]|^!/,$d=/\[[^[]*]/,Fd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Id=/[!*+?@]\([^(]*\)/,Md=/,|\.\./,Ld=/(?!^)\/{2,}/g;function ua(e,t={}){return!fa(e,t)}D.isStaticPattern=ua;function fa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Od)||Td.test(e)||$d.test(e)||Fd.test(e)||t.extglob!==!1&&Id.test(e)||t.braceExpansion!==!1&&Nd(e))}D.isDynamicPattern=fa;function Nd(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Md.test(n)}function Dd(e){return hr(e)?e.slice(1):e}D.convertToPositivePattern=Dd;function Vd(e){return"!"+e}D.convertToNegativePattern=Vd;function hr(e){return e.startsWith("!")&&e[1]!=="("}D.isNegativePattern=hr;function pa(e){return!hr(e)}D.isPositivePattern=pa;function Hd(e){return e.filter(hr)}D.getNegativePatterns=Hd;function jd(e){return e.filter(pa)}D.getPositivePatterns=jd;function qd(e){return e.filter(t=>!Ln(t))}D.getPatternsInsideCurrentDirectory=qd;function Bd(e){return e.filter(Ln)}D.getPatternsOutsideCurrentDirectory=Bd;function Ln(e){return e.startsWith("..")||e.startsWith("./..")}D.isPatternRelatedToParentDirectory=Ln;function Ud(e){return Pd(e,{flipBackslashes:!1})}D.getBaseDirectory=Ud;function Gd(e){return e.includes(la)}D.hasGlobStar=Gd;function da(e){return e.endsWith("/"+la)}D.endsWithSlashGlobStar=da;function Wd(e){let t=kd.basename(e);return da(e)||ua(t)}D.isAffectDepthOfReadingPattern=Wd;function zd(e){return e.reduce((t,r)=>t.concat(ma(r)),[])}D.expandPatternsWithBraceExpansion=zd;function ma(e){let t=Mn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}D.expandBraceExpansion=ma;function Kd(e,t){let{parts:r}=Mn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}D.getPatternParts=Kd;function ga(e,t){return Mn.makeRe(e,t)}D.makeRe=ga;function Yd(e,t){return e.map(r=>ga(r,t))}D.convertPatternsToRe=Yd;function Xd(e,t){return t.some(r=>r.test(e))}D.matchAny=Xd;function Qd(e){return e.replace(Ld,"/")}D.removeDuplicateSlashes=Qd});var xa=S((mC,_a)=>{"use strict";l();var Zd=U("stream"),ya=Zd.PassThrough,Jd=Array.prototype.slice;_a.exports=em;function em(){let e=[],t=Jd.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let o=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=ya(n);function a(){for(let c=0,d=arguments.length;c<d;c++)e.push(va(arguments[c],n));return u(),this}function u(){if(r)return;r=!0;let c=e.shift();if(!c){process.nextTick(f);return}Array.isArray(c)||(c=[c]);let d=c.length+1;function p(){--d>0||(r=!1,u())}function _(x){function C(){x.removeListener("merge2UnpipeEnd",C),x.removeListener("end",C),i&&x.removeListener("error",b),p()}function b(E){s.emit("error",E)}if(x._readableState.endEmitted)return p();x.on("merge2UnpipeEnd",C),x.on("end",C),i&&x.on("error",b),x.pipe(s,{end:!1}),x.resume()}for(let x=0;x<c.length;x++)_(c[x]);p()}function f(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function va(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=va(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(ya(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ba=S(yr=>{"use strict";l();Object.defineProperty(yr,"__esModule",{value:!0});yr.merge=void 0;var tm=xa();function rm(e){let t=tm(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ca(e)),t.once("end",()=>Ca(e)),t}yr.merge=rm;function Ca(e){e.forEach(t=>t.emit("close"))}});var Sa=S(xt=>{"use strict";l();Object.defineProperty(xt,"__esModule",{value:!0});xt.isEmpty=xt.isString=void 0;function nm(e){return typeof e=="string"}xt.isString=nm;function om(e){return e===""}xt.isEmpty=om});var Ve=S(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.string=pe.stream=pe.pattern=pe.path=pe.fs=pe.errno=pe.array=void 0;var im=ji();pe.array=im;var sm=qi();pe.errno=sm;var am=Bi();pe.fs=am;var cm=zi();pe.path=cm;var lm=ha();pe.pattern=lm;var um=ba();pe.stream=um;var fm=Sa();pe.string=fm});var Aa=S(de=>{"use strict";l();Object.defineProperty(de,"__esModule",{value:!0});de.convertPatternGroupToTask=de.convertPatternGroupsToTasks=de.groupPatternsByBaseDirectory=de.getNegativePatternsAsPositive=de.getPositivePatterns=de.convertPatternsToTasks=de.generate=void 0;var Ae=Ve();function pm(e,t){let r=Ra(e,t),n=Ra(t.ignore,t),o=wa(r),i=Ea(r,n),s=o.filter(c=>Ae.pattern.isStaticPattern(c,t)),a=o.filter(c=>Ae.pattern.isDynamicPattern(c,t)),u=Nn(s,i,!1),f=Nn(a,i,!0);return u.concat(f)}de.generate=pm;function Ra(e,t){let r=e;return t.braceExpansion&&(r=Ae.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Ae.pattern.removeDuplicateSlashes(n))}function Nn(e,t,r){let n=[],o=Ae.pattern.getPatternsOutsideCurrentDirectory(e),i=Ae.pattern.getPatternsInsideCurrentDirectory(e),s=Dn(o),a=Dn(i);return n.push(...Vn(s,t,r)),"."in a?n.push(Hn(".",i,t,r)):n.push(...Vn(a,t,r)),n}de.convertPatternsToTasks=Nn;function wa(e){return Ae.pattern.getPositivePatterns(e)}de.getPositivePatterns=wa;function Ea(e,t){return Ae.pattern.getNegativePatterns(e).concat(t).map(Ae.pattern.convertToPositivePattern)}de.getNegativePatternsAsPositive=Ea;function Dn(e){let t={};return e.reduce((r,n)=>{let o=Ae.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}de.groupPatternsByBaseDirectory=Dn;function Vn(e,t,r){return Object.keys(e).map(n=>Hn(n,e[n],t,r))}de.convertPatternGroupsToTasks=Vn;function Hn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ae.pattern.convertToNegativePattern))}}de.convertPatternGroupToTask=Hn});var Pa=S(vr=>{"use strict";l();Object.defineProperty(vr,"__esModule",{value:!0});vr.read=void 0;function dm(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){ka(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){jn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){ka(r,i);return}jn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),jn(r,s)})})}vr.read=dm;function ka(e,t){e(t)}function jn(e,t){e(null,t)}});var Oa=S(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.read=void 0;function mm(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}_r.read=mm});var Ta=S(Be=>{"use strict";l();Object.defineProperty(Be,"__esModule",{value:!0});Be.createFileSystemAdapter=Be.FILE_SYSTEM_ADAPTER=void 0;var xr=U("fs");Be.FILE_SYSTEM_ADAPTER={lstat:xr.lstat,stat:xr.stat,lstatSync:xr.lstatSync,statSync:xr.statSync};function gm(e){return e===void 0?Be.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Be.FILE_SYSTEM_ADAPTER),e)}Be.createFileSystemAdapter=gm});var $a=S(Bn=>{"use strict";l();Object.defineProperty(Bn,"__esModule",{value:!0});var hm=Ta(),qn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Bn.default=qn});var st=S(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.statSync=Ue.stat=Ue.Settings=void 0;var Fa=Pa(),ym=Oa(),Un=$a();Ue.Settings=Un.default;function vm(e,t,r){if(typeof t=="function"){Fa.read(e,Gn(),t);return}Fa.read(e,Gn(t),r)}Ue.stat=vm;function _m(e,t){let r=Gn(t);return ym.read(e,r)}Ue.statSync=_m;function Gn(e={}){return e instanceof Un.default?e:new Un.default(e)}});var La=S((IC,Ma)=>{"use strict";l();var Ia;Ma.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Ia||(Ia=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Da=S((LC,Na)=>{"use strict";l();Na.exports=Cm;var xm=La();function Cm(e,t){let r,n,o,i=!0;Array.isArray(e)?(r=[],n=e.length):(o=Object.keys(e),r={},n=o.length);function s(u){function f(){t&&t(u,r),t=null}i?xm(f):f()}function a(u,f,c){r[u]=c,(--n===0||f)&&s(f)}n?o?o.forEach(function(u){e[u](function(f,c){a(u,f,c)})}):e.forEach(function(u,f){u(function(c,d){a(f,c,d)})}):s(null),i=!1}});var Wn=S(br=>{"use strict";l();Object.defineProperty(br,"__esModule",{value:!0});br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cr=process.versions.node.split(".");if(Cr[0]===void 0||Cr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Va=Number.parseInt(Cr[0],10),bm=Number.parseInt(Cr[1],10),Ha=10,Sm=10,Rm=Va>Ha,wm=Va===Ha&&bm>=Sm;br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Rm||wm});var ja=S(Sr=>{"use strict";l();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createDirentFromStats=void 0;var zn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Em(e,t){return new zn(e,t)}Sr.createDirentFromStats=Em});var Kn=S(Rr=>{"use strict";l();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.fs=void 0;var Am=ja();Rr.fs=Am});var Yn=S(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.joinPathSegments=void 0;function km(e,t,r){return e.endsWith(r)?e+t:e+r+t}wr.joinPathSegments=km});var za=S(Ge=>{"use strict";l();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var Pm=st(),qa=Da(),Om=Wn(),Ba=Kn(),Ua=Yn();function Tm(e,t,r){if(!t.stats&&Om.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ga(e,t,r);return}Wa(e,t,r)}Ge.read=Tm;function Ga(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){Er(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Ua.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Xn(r,i);return}let s=i.map(a=>$m(a,t));qa(s,(a,u)=>{if(a!==null){Er(r,a);return}Xn(r,u)})})}Ge.readdirWithFileTypes=Ga;function $m(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,o)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Ba.fs.createDirentFromStats(e.name,o),r(null,e)})}}function Wa(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){Er(r,n);return}let i=o.map(s=>{let a=Ua.joinPathSegments(e,s,t.pathSegmentSeparator);return u=>{Pm.stat(a,t.fsStatSettings,(f,c)=>{if(f!==null){u(f);return}let d={name:s,path:a,dirent:Ba.fs.createDirentFromStats(s,c)};t.stats&&(d.stats=c),u(null,d)})}});qa(i,(s,a)=>{if(s!==null){Er(r,s);return}Xn(r,a)})})}Ge.readdir=Wa;function Er(e,t){e(t)}function Xn(e,t){e(null,t)}});var Za=S(We=>{"use strict";l();Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var Fm=st(),Im=Wn(),Ka=Kn(),Ya=Yn();function Mm(e,t){return!t.stats&&Im.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Xa(e,t):Qa(e,t)}We.read=Mm;function Xa(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Ya.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ka.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}We.readdirWithFileTypes=Xa;function Qa(e,t){return t.fs.readdirSync(e).map(n=>{let o=Ya.joinPathSegments(e,n,t.pathSegmentSeparator),i=Fm.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ka.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}We.readdir=Qa});var Ja=S(ze=>{"use strict";l();Object.defineProperty(ze,"__esModule",{value:!0});ze.createFileSystemAdapter=ze.FILE_SYSTEM_ADAPTER=void 0;var Ct=U("fs");ze.FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,stat:Ct.stat,lstatSync:Ct.lstatSync,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};function Lm(e){return e===void 0?ze.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ze.FILE_SYSTEM_ADAPTER),e)}ze.createFileSystemAdapter=Lm});var ec=S(Zn=>{"use strict";l();Object.defineProperty(Zn,"__esModule",{value:!0});var Nm=U("path"),Dm=st(),Vm=Ja(),Qn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Vm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Nm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Dm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Zn.default=Qn});var Ar=S(Ke=>{"use strict";l();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Settings=Ke.scandirSync=Ke.scandir=void 0;var tc=za(),Hm=Za(),Jn=ec();Ke.Settings=Jn.default;function jm(e,t,r){if(typeof t=="function"){tc.read(e,eo(),t);return}tc.read(e,eo(t),r)}Ke.scandir=jm;function qm(e,t){let r=eo(t);return Hm.read(e,r)}Ke.scandirSync=qm;function eo(e={}){return e instanceof Jn.default?e:new Jn.default(e)}});var nc=S((rb,rc)=>{"use strict";l();function Bm(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function o(i){r.next=i,r=i}return{get:n,release:o}}rc.exports=Bm});var ic=S((ob,to)=>{"use strict";l();var Um=nc();function oc(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Um(Gm),o=null,i=null,s=0,a=null,u={push:C,drain:Se,saturated:Se,pause:c,paused:!1,concurrency:r,running:f,resume:_,idle:x,length:d,getQueue:p,unshift:b,empty:Se,kill:O,killAndDrain:I,error:G};return u;function f(){return s}function c(){u.paused=!0}function d(){for(var w=o,M=0;w;)w=w.next,M++;return M}function p(){for(var w=o,M=[];w;)M.push(w.value),w=w.next;return M}function _(){if(u.paused){u.paused=!1;for(var w=0;w<u.concurrency;w++)s++,E()}}function x(){return s===0&&u.length()===0}function C(w,M){var R=n.get();R.context=e,R.release=E,R.value=w,R.callback=M||Se,R.errorHandler=a,s===u.concurrency||u.paused?i?(i.next=R,i=R):(o=R,i=R,u.saturated()):(s++,t.call(e,R.value,R.worked))}function b(w,M){var R=n.get();R.context=e,R.release=E,R.value=w,R.callback=M||Se,R.errorHandler=a,s===u.concurrency||u.paused?o?(R.next=o,o=R):(o=R,i=R,u.saturated()):(s++,t.call(e,R.value,R.worked))}function E(w){w&&n.release(w);var M=o;M?u.paused?s--:(i===o&&(i=null),o=M.next,M.next=null,t.call(e,M.value,M.worked),i===null&&u.empty()):--s===0&&u.drain()}function O(){o=null,i=null,u.drain=Se}function I(){o=null,i=null,u.drain(),u.drain=Se}function G(w){a=w}}function Se(){}function Gm(){this.value=null,this.callback=Se,this.next=null,this.release=Se,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=Se,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function Wm(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(c,d){t.call(this,c).then(function(p){d(null,p)},d)}var o=oc(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=u,o.drained=f,o;function a(c){var d=new Promise(function(p,_){i(c,function(x,C){if(x){_(x);return}p(C)})});return d.catch(Se),d}function u(c){var d=new Promise(function(p,_){s(c,function(x,C){if(x){_(x);return}p(C)})});return d.catch(Se),d}function f(){if(o.idle())return new Promise(function(p){p()});var c=o.drain,d=new Promise(function(p){o.drain=function(){c(),p()}});return d}}to.exports=oc;to.exports.promise=Wm});var kr=S($e=>{"use strict";l();Object.defineProperty($e,"__esModule",{value:!0});$e.joinPathSegments=$e.replacePathSegmentSeparator=$e.isAppliedFilter=$e.isFatalError=void 0;function zm(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}$e.isFatalError=zm;function Km(e,t){return e===null||e(t)}$e.isAppliedFilter=Km;function Ym(e,t){return e.split(/[/\\]/).join(t)}$e.replacePathSegmentSeparator=Ym;function Xm(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}$e.joinPathSegments=Xm});var oo=S(no=>{"use strict";l();Object.defineProperty(no,"__esModule",{value:!0});var Qm=kr(),ro=class{constructor(t,r){this._root=t,this._settings=r,this._root=Qm.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};no.default=ro});var ao=S(so=>{"use strict";l();Object.defineProperty(so,"__esModule",{value:!0});var Zm=U("events"),Jm=Ar(),eg=ic(),Pr=kr(),tg=oo(),io=class extends tg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Jm.scandir,this._emitter=new Zm.EventEmitter,this._queue=eg(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,o=>{o!==null&&this._handleError(o)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,o)=>{if(n!==null){r(n,void 0);return}for(let i of o)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Pr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};so.default=io});var sc=S(lo=>{"use strict";l();Object.defineProperty(lo,"__esModule",{value:!0});var rg=ao(),co=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new rg.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{ng(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{og(t,this._storage)}),this._reader.read()}};lo.default=co;function ng(e,t){e(t)}function og(e,t){e(null,t)}});var ac=S(fo=>{"use strict";l();Object.defineProperty(fo,"__esModule",{value:!0});var ig=U("stream"),sg=ao(),uo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sg.default(this._root,this._settings),this._stream=new ig.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};fo.default=uo});var cc=S(mo=>{"use strict";l();Object.defineProperty(mo,"__esModule",{value:!0});var ag=Ar(),Or=kr(),cg=oo(),po=class extends cg.default{constructor(){super(...arguments),this._scandir=ag.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let o of n)this._handleEntry(o,r)}catch(n){this._handleError(n)}}_handleError(t){if(Or.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Or.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Or.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Or.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};mo.default=po});var lc=S(ho=>{"use strict";l();Object.defineProperty(ho,"__esModule",{value:!0});var lg=cc(),go=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new lg.default(this._root,this._settings)}read(){return this._reader.read()}};ho.default=go});var uc=S(vo=>{"use strict";l();Object.defineProperty(vo,"__esModule",{value:!0});var ug=U("path"),fg=Ar(),yo=class{constructor(t={}){this._options=t,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,ug.sep),this.fsScandirSettings=new fg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};vo.default=yo});var $r=S(Fe=>{"use strict";l();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Settings=Fe.walkStream=Fe.walkSync=Fe.walk=void 0;var fc=sc(),pg=ac(),dg=lc(),_o=uc();Fe.Settings=_o.default;function mg(e,t,r){if(typeof t=="function"){new fc.default(e,Tr()).read(t);return}new fc.default(e,Tr(t)).read(r)}Fe.walk=mg;function gg(e,t){let r=Tr(t);return new dg.default(e,r).read()}Fe.walkSync=gg;function hg(e,t){let r=Tr(t);return new pg.default(e,r).read()}Fe.walkStream=hg;function Tr(e={}){return e instanceof _o.default?e:new _o.default(e)}});var Fr=S(Co=>{"use strict";l();Object.defineProperty(Co,"__esModule",{value:!0});var yg=U("path"),vg=st(),pc=Ve(),xo=class{constructor(t){this._settings=t,this._fsStatSettings=new vg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return yg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:pc.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!pc.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Co.default=xo});var Ro=S(So=>{"use strict";l();Object.defineProperty(So,"__esModule",{value:!0});var _g=U("stream"),xg=st(),Cg=$r(),bg=Fr(),bo=class extends bg.default{constructor(){super(...arguments),this._walkStream=Cg.walkStream,this._stat=xg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new _g.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(u=>{u!==null&&r.entryFilter(u)&&o.push(u),i===n.length-1&&o.end(),a()}).catch(a);for(let i=0;i<n.length;i++)o.write(i);return o}_getEntry(t,r,n){return this._getStat(t).then(o=>this._makeEntry(o,r)).catch(o=>{if(n.errorFilter(o))return null;throw o})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(o,i)=>o===null?r(i):n(o))})}};So.default=bo});var dc=S(Eo=>{"use strict";l();Object.defineProperty(Eo,"__esModule",{value:!0});var Sg=$r(),Rg=Fr(),wg=Ro(),wo=class extends Rg.default{constructor(){super(...arguments),this._walkAsync=Sg.walk,this._readerStream=new wg.default(this._settings)}dynamic(t,r){return new Promise((n,o)=>{this._walkAsync(t,r,(i,s)=>{i===null?n(s):o(i)})})}async static(t,r){let n=[],o=this._readerStream.static(t,r);return new Promise((i,s)=>{o.once("error",s),o.on("data",a=>n.push(a)),o.once("end",()=>i(n))})}};Eo.default=wo});var mc=S(ko=>{"use strict";l();Object.defineProperty(ko,"__esModule",{value:!0});var Bt=Ve(),Ao=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Bt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Bt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Bt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Bt.array.splitWhen(t,r=>r.dynamic&&Bt.pattern.hasGlobStar(r.pattern))}};ko.default=Ao});var gc=S(Oo=>{"use strict";l();Object.defineProperty(Oo,"__esModule",{value:!0});var Eg=mc(),Po=class extends Eg.default{match(t){let r=t.split("/"),n=r.length,o=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of o){let s=i.sections[0];if(!i.complete&&n>s.length||r.every((u,f)=>{let c=i.segments[f];return!!(c.dynamic&&c.patternRe.test(u)||!c.dynamic&&c.pattern===u)}))return!0}return!1}};Oo.default=Po});var hc=S($o=>{"use strict";l();Object.defineProperty($o,"__esModule",{value:!0});var Ir=Ve(),Ag=gc(),To=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let o=this._getMatcher(r),i=this._getNegativePatternsRe(n);return s=>this._filter(t,s,o,i)}_getMatcher(t){return new Ag.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Ir.pattern.isAffectDepthOfReadingPattern);return Ir.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=Ir.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let o=t.split("/").length;return n-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Ir.pattern.matchAny(t,r)}};$o.default=To});var yc=S(Io=>{"use strict";l();Object.defineProperty(Io,"__esModule",{value:!0});var at=Ve(),Fo=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=at.pattern.convertPatternsToRe(t,this._micromatchOptions),o=at.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=at.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(o,n))return!1;let i=t.dirent.isDirectory(),s=this._isMatchToPatterns(o,r,i)&&!this._isMatchToPatterns(o,n,i);return this._settings.unique&&s&&this._createIndexRecord(o),s}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=at.path.makeAbsolute(this._settings.cwd,t);return at.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=at.pattern.matchAny(t,r);return!o&&n?at.pattern.matchAny(t+"/",r):o}};Io.default=Fo});var vc=S(Lo=>{"use strict";l();Object.defineProperty(Lo,"__esModule",{value:!0});var kg=Ve(),Mo=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return kg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Lo.default=Mo});var xc=S(Do=>{"use strict";l();Object.defineProperty(Do,"__esModule",{value:!0});var _c=Ve(),No=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=_c.path.makeAbsolute(this._settings.cwd,r),r=_c.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Do.default=No});var Mr=S(Ho=>{"use strict";l();Object.defineProperty(Ho,"__esModule",{value:!0});var Pg=U("path"),Og=hc(),Tg=yc(),$g=vc(),Fg=xc(),Vo=class{constructor(t){this._settings=t,this.errorFilter=new $g.default(this._settings),this.entryFilter=new Tg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Og.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fg.default(this._settings)}_getRootDirectory(t){return Pg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};Ho.default=Vo});var Cc=S(qo=>{"use strict";l();Object.defineProperty(qo,"__esModule",{value:!0});var Ig=dc(),Mg=Mr(),jo=class extends Mg.default{constructor(){super(...arguments),this._reader=new Ig.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};qo.default=jo});var bc=S(Uo=>{"use strict";l();Object.defineProperty(Uo,"__esModule",{value:!0});var Lg=U("stream"),Ng=Ro(),Dg=Mr(),Bo=class extends Dg.default{constructor(){super(...arguments),this._reader=new Ng.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Lg.Readable({objectMode:!0,read:()=>{}});return o.once("error",s=>i.emit("error",s)).on("data",s=>i.emit("data",n.transform(s))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Uo.default=Bo});var Sc=S(Wo=>{"use strict";l();Object.defineProperty(Wo,"__esModule",{value:!0});var Vg=st(),Hg=$r(),jg=Fr(),Go=class extends jg.default{constructor(){super(...arguments),this._walkSync=Hg.walkSync,this._statSync=Vg.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let o of t){let i=this._getFullEntryPath(o),s=this._getEntry(i,o,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let o=this._getStat(t);return this._makeEntry(o,r)}catch(o){if(n.errorFilter(o))return null;throw o}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Wo.default=Go});var Rc=S(Ko=>{"use strict";l();Object.defineProperty(Ko,"__esModule",{value:!0});var qg=Sc(),Bg=Mr(),zo=class extends Bg.default{constructor(){super(...arguments),this._reader=new qg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ko.default=zo});var wc=S(St=>{"use strict";l();Object.defineProperty(St,"__esModule",{value:!0});St.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bt=U("fs"),Ug=U("os"),Gg=Math.max(Ug.cpus().length,1);St.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bt.lstat,lstatSync:bt.lstatSync,stat:bt.stat,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};var Yo=class{constructor(t={}){this._options=t,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,Gg),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),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},St.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};St.default=Yo});var Lr=S((eS,Ac)=>{"use strict";l();var Ec=Aa(),Wg=Cc(),zg=bc(),Kg=Rc(),Xo=wc(),Re=Ve();async function Qo(e,t){ke(e);let r=Zo(e,Wg.default,t),n=await Promise.all(r);return Re.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(f,c){ke(f);let d=Zo(f,Kg.default,c);return Re.array.flatten(d)}e.sync=t;function r(f,c){ke(f);let d=Zo(f,zg.default,c);return Re.stream.merge(d)}e.stream=r;function n(f,c){ke(f);let d=[].concat(f),p=new Xo.default(c);return Ec.generate(d,p)}e.generateTasks=n;function o(f,c){ke(f);let d=new Xo.default(c);return Re.pattern.isDynamicPattern(f,d)}e.isDynamicPattern=o;function i(f){return ke(f),Re.path.escape(f)}e.escapePath=i;function s(f){return ke(f),Re.path.convertPathToPattern(f)}e.convertPathToPattern=s;let a;(function(f){function c(p){return ke(p),Re.path.escapePosixPath(p)}f.escapePath=c;function d(p){return ke(p),Re.path.convertPosixPathToPattern(p)}f.convertPathToPattern=d})(a=e.posix||(e.posix={}));let u;(function(f){function c(p){return ke(p),Re.path.escapeWindowsPath(p)}f.escapePath=c;function d(p){return ke(p),Re.path.convertWindowsPathToPattern(p)}f.convertPathToPattern=d})(u=e.win32||(e.win32={}))})(Qo||(Qo={}));function Zo(e,t,r){let n=[].concat(e),o=new Xo.default(r),i=Ec.generate(n,o),s=new t(o);return i.map(s.read,s)}function ke(e){if(![].concat(e).every(n=>Re.string.isString(n)&&!Re.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ac.exports=Qo});var Pc=S((rS,kc)=>{"use strict";l();var Rt=1e3,wt=Rt*60,Et=wt*60,ct=Et*24,Yg=ct*7,Xg=ct*365.25;kc.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Qg(e);if(r==="number"&&isFinite(e))return t.long?Jg(e):Zg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Xg;case"weeks":case"week":case"w":return r*Yg;case"days":case"day":case"d":return r*ct;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Et;case"minutes":case"minute":case"mins":case"min":case"m":return r*wt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Zg(e){var t=Math.abs(e);return t>=ct?Math.round(e/ct)+"d":t>=Et?Math.round(e/Et)+"h":t>=wt?Math.round(e/wt)+"m":t>=Rt?Math.round(e/Rt)+"s":e+"ms"}function Jg(e){var t=Math.abs(e);return t>=ct?Nr(e,t,ct,"day"):t>=Et?Nr(e,t,Et,"hour"):t>=wt?Nr(e,t,wt,"minute"):t>=Rt?Nr(e,t,Rt,"second"):e+" ms"}function Nr(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Jo=S((oS,Oc)=>{"use strict";l();function eh(e){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=Pc(),r.destroy=f,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(c){let d,p=null,_,x;function C(...b){if(!C.enabled)return;let E=C,O=Number(new Date),I=O-(d||O);E.diff=I,E.prev=d,E.curr=O,d=O,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let G=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(M,R)=>{if(M==="%%")return"%";G++;let k=r.formatters[R];if(typeof k=="function"){let $=b[G];M=k.call(E,$),b.splice(G,1),G--}return M}),r.formatArgs.call(E,b),(E.log||r.log).apply(E,b)}return C.namespace=c,C.useColors=r.useColors(),C.color=r.selectColor(c),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(_!==r.namespaces&&(_=r.namespaces,x=r.enabled(c)),x),set:b=>{p=b}}),typeof r.init=="function"&&r.init(C),C}function n(c,d){let p=r(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let d,p=(typeof c=="string"?c:"").split(/[\s,]+/),_=p.length;for(d=0;d<_;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function i(){let c=[...r.names.map(a),...r.skips.map(a).map(d=>"-"+d)].join(",");return r.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d<p;d++)if(r.skips[d].test(c))return!1;for(d=0,p=r.names.length;d<p;d++)if(r.names[d].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Oc.exports=eh});var Tc=S((Ce,Dr)=>{"use strict";l();Ce.formatArgs=rh;Ce.save=nh;Ce.load=oh;Ce.useColors=th;Ce.storage=ih();Ce.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function th(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function rh(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Dr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ce.log=console.debug||console.log||(()=>{});function nh(e){try{e?Ce.storage.setItem("debug",e):Ce.storage.removeItem("debug")}catch{}}function oh(){let e;try{e=Ce.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ih(){try{return localStorage}catch{}}Dr.exports=Jo()(Ce);var{formatters:sh}=Dr.exports;sh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Fc=S((aS,$c)=>{"use strict";l();$c.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1?!0:n<o)}});var Mc=S((lS,Ic)=>{"use strict";l();var ah=U("os"),Pe=Fc(),me=process.env,At;Pe("no-color")||Pe("no-colors")||Pe("color=false")?At=!1:(Pe("color")||Pe("colors")||Pe("color=true")||Pe("color=always"))&&(At=!0);"FORCE_COLOR"in me&&(At=me.FORCE_COLOR.length===0||parseInt(me.FORCE_COLOR,10)!==0);function ch(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function lh(e){if(At===!1)return 0;if(Pe("color=16m")||Pe("color=full")||Pe("color=truecolor"))return 3;if(Pe("color=256"))return 2;if(e&&!e.isTTY&&At!==!0)return 0;let t=At?1:0;if(process.platform==="win32"){let r=ah.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in me)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in me)||me.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in me)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(me.TEAMCITY_VERSION)?1:0;if(me.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in me){let r=parseInt((me.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(me.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(me.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(me.TERM)||"COLORTERM"in me?1:(me.TERM==="dumb",t)}function ei(e){let t=lh(e);return ch(t)}Ic.exports={supportsColor:ei,stdout:ei(process.stdout),stderr:ei(process.stderr)}});var Nc=S((le,Hr)=>{"use strict";l();var uh=U("tty"),Vr=U("util");le.init=yh;le.log=mh;le.formatArgs=ph;le.save=gh;le.load=hh;le.useColors=fh;le.destroy=Vr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");le.colors=[6,2,3,4,5,1];try{let e=Mc();e&&(e.stderr||e).level>=2&&(le.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}le.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function fh(){return"colors"in le.inspectOpts?!!le.inspectOpts.colors:uh.isatty(process.stderr.fd)}function ph(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
4
+ `).join(`
5
+ `+i),e.push(o+"m+"+Hr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=dh()+t+" "+e[0]}function dh(){return le.inspectOpts.hideDate?"":new Date().toISOString()+" "}function mh(...e){return process.stderr.write(Vr.format(...e)+`
6
+ `)}function gh(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function hh(){return process.env.DEBUG}function yh(e){e.inspectOpts={};let t=Object.keys(le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=le.inspectOpts[t[r]]}Hr.exports=Jo()(le);var{formatters:Lc}=Hr.exports;Lc.o=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts).split(`
7
+ `).map(t=>t.trim()).join(" ")};Lc.O=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts)}});var ri=S((pS,ti)=>{"use strict";l();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ti.exports=Tc():ti.exports=Nc()});var qc=S((yS,jc)=>{"use strict";l();var{hasOwnProperty:ni}=Object.prototype,oi=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
8
+ `:`
9
+ `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=He(i.filter(f=>e[f]===null||Array.isArray(e[f])||typeof e[f]!="object").map(f=>Array.isArray(e[f])?`${f}[]`:f).concat([""]).reduce((f,c)=>He(f).length>=He(c).length?f:c)).length);let a="",u=t.bracketedArray?"[]":"";for(let f of i){let c=e[f];if(c&&Array.isArray(c))for(let d of c)a+=He(`${f}${u}`).padEnd(s," ")+n+He(d)+r;else c&&typeof c=="object"?o.push(f):a+=He(f).padEnd(s," ")+n+He(c)+r}t.section&&a.length&&(a="["+He(t.section)+"]"+(t.newline?r+r:r)+a);for(let f of o){let c=Vc(f,".").join("\\."),d=(t.section?t.section+".":"")+c,p=oi(e[f],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Vc(e,t){var r=0,n=0,o=0,i=[];do if(o=e.indexOf(t,r),o!==-1){if(r=o+t.length,o>0&&e[o-1]==="\\")continue;i.push(e.slice(n,o)),n=o+t.length}while(o!==-1);return i.push(e.slice(n)),i}var Dc=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,o=null,i=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),a={};for(let f of s){if(!f||f.match(/^\s*[;#]/)||f.match(/^\s*$/))continue;let c=f.match(i);if(!c)continue;if(c[1]!==void 0){if(o=jr(c[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=jr(c[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(a?.[d]||0)+1,p=a[d]>1);let _=p?d.slice(0,-2):d;if(_==="__proto__")continue;let x=c[3]?jr(c[4]):!0,C=x==="true"||x==="false"||x==="null"?JSON.parse(x):x;p&&(ni.call(n,_)?Array.isArray(n[_])||(n[_]=[n[_]]):n[_]=[]),Array.isArray(n[_])?n[_].push(C):n[_]=C}let u=[];for(let f of Object.keys(r)){if(!ni.call(r,f)||typeof r[f]!="object"||Array.isArray(r[f]))continue;let c=Vc(f,".");n=r;let d=c.pop(),p=d.replace(/\\\./g,".");for(let _ of c)_!=="__proto__"&&((!ni.call(n,_)||typeof n[_]!="object")&&(n[_]=Object.create(null)),n=n[_]);n===r&&p===d||(n[p]=r[f],u.push(f))}for(let f of u)delete r[f];return r},Hc=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),He=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Hc(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),jr=(e,t)=>{if(e=(e||"").trim(),Hc(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};jc.exports={parse:Dc,decode:Dc,stringify:oi,encode:oi,safe:He,unsafe:jr}});var ai=S((wS,zc)=>{"use strict";l();var Rh=U("os");zc.exports=Rh.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var ci=S((AS,Kc)=>{"use strict";l();Kc.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var Yc=S((PS,zt)=>{"use strict";l();var wh=process.platform==="win32",Eh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,li={};function Ah(e){return Eh.exec(e).slice(1)}li.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Ah(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var kh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ui={};function Ph(e){return kh.exec(e).slice(1)}ui.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Ph(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};wh?zt.exports=li.parse:zt.exports=ui.parse;zt.exports.posix=ui.parse;zt.exports.win32=li.parse});var fi=S((TS,Jc)=>{"use strict";l();var Zc=U("path"),Xc=Zc.parse||Yc(),Qc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Xc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Xc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return Zc.resolve(n,a,u)}))},[])};Jc.exports=function(t,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,t,function(){return Qc(t,o)},r);var i=Qc(t,o);return r&&r.paths?i.concat(r.paths):i}});var pi=S((FS,el)=>{"use strict";l();el.exports=function(e,t){return t||{}}});var nl=S((MS,rl)=>{"use strict";l();var Oh="Function.prototype.bind called on incompatible ",Th=Object.prototype.toString,$h=Math.max,Fh="[object Function]",tl=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},Ih=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Mh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};rl.exports=function(t){var r=this;if(typeof r!="function"||Th.apply(r)!==Fh)throw new TypeError(Oh+r);for(var n=Ih(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,tl(n,arguments));return Object(c)===c?c:this}return r.apply(t,tl(n,arguments))},s=$h(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+Mh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o}});var il=S((NS,ol)=>{"use strict";l();var Lh=nl();ol.exports=Function.prototype.bind||Lh});var al=S((VS,sl)=>{"use strict";l();var Nh=Function.prototype.call,Dh=Object.prototype.hasOwnProperty,Vh=il();sl.exports=Vh.call(Nh,Dh)});var cl=S((jS,Hh)=>{Hh.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Kt=S((qS,fl)=>{"use strict";l();var jh=al();function qh(e,t){for(var r=e.split("."),n=t.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),u=parseInt(i[s]||0,10);if(a!==u)return o==="<"?a<u:o===">="?a>=u:!1}return o===">="}function ll(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!qh(e,r[n]))return!1;return!0}function Bh(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(ll(r,t[n]))return!0;return!1}return ll(r,t)}var ul=cl();fl.exports=function(t,r){return jh(ul,t)&&Bh(r,ul[t])}});var ml=S((US,dl)=>{"use strict";l();var lt=U("fs"),Uh=ai(),oe=U("path"),Gh=ci(),Wh=fi(),zh=pi(),Kh=Kt(),Yh=process.platform!=="win32"&&lt.realpath&&typeof lt.realpath.native=="function"?lt.realpath.native:lt.realpath,pl=Uh(),Xh=function(){return[oe.join(pl,".node_modules"),oe.join(pl,".node_libraries")]},Qh=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},Zh=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},Jh=function(t,r){Yh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Yt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},ey=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},ty=function(t,r,n){for(var o=Wh(r,n,t),i=0;i<o.length;i++)o[i]=oe.join(o[i],t);return o};dl.exports=function(t,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof t!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=zh(t,i);var a=i.isFile||Qh,u=i.isDirectory||Zh,f=i.readFile||lt.readFile,c=i.realpath||Jh,d=i.readPackage||ey;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var _=i.packageIterator,x=i.extensions||[".js"],C=i.includeCoreModules!==!1,b=i.basedir||oe.dirname(Gh()),E=i.filename||b;i.paths=i.paths||Xh();var O=oe.resolve(b);Yt(c,O,i,function(h,T){h?o(h):G(T)});var I;function G(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=oe.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===h?k(I,i.package,w):M(I,i.package,w);else{if(C&&Kh(t))return o(null,t);K(t,h,function(T,L,V){if(T)o(T);else{if(L)return Yt(c,L,i,function(v,q){v?o(v):o(null,q,V)});var y=new Error("Cannot find module '"+t+"' from '"+E+"'");y.code="MODULE_NOT_FOUND",o(y)}})}}function w(h,T,L){h?o(h):T?o(null,T,L):k(I,function(V,y,v){if(V)o(V);else if(y)Yt(c,y,i,function(F,N){F?o(F):o(null,N,v)});else{var q=new Error("Cannot find module '"+t+"' from '"+E+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,T,L){var V=T,y=L;typeof V=="function"&&(y=V,V=void 0);var v=[""].concat(x);q(v,h,V);function q(F,N,W){if(F.length===0)return y(null,void 0,W);var j=N+F[0],ie=W;ie?te(null,ie):R(oe.dirname(j),te);function te(ue,H,ye){if(ie=H,ue)return y(ue);if(ye&&ie&&i.pathFilter){var gt=oe.relative(ye,j),P=gt.slice(0,gt.length-F[0].length),Y=i.pathFilter(ie,N,P);if(Y)return q([""].concat(x.slice()),oe.resolve(ye,Y),ie)}a(j,Ne)}function Ne(ue,H){if(ue)return y(ue);if(H)return y(null,j,ie);q(F.slice(1),N,ie)}}}function R(h,T){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return T(null);Yt(c,h,i,function(L,V){if(L)return R(oe.dirname(h),T);var y=oe.join(V,"package.json");a(y,function(v,q){if(!q)return R(oe.dirname(h),T);d(f,y,function(F,N){F&&T(F);var W=N;W&&i.packageFilter&&(W=i.packageFilter(W,y)),T(null,W,h)})})})}function k(h,T,L){var V=L,y=T;typeof y=="function"&&(V=y,y=i.package),Yt(c,h,i,function(v,q){if(v)return V(v);var F=oe.join(q,"package.json");a(F,function(N,W){if(N)return V(N);if(!W)return M(oe.join(h,"index"),y,V);d(f,F,function(j,ie){if(j)return V(j);var te=ie;if(te&&i.packageFilter&&(te=i.packageFilter(te,F)),te&&te.main){if(typeof te.main!="string"){var Ne=new TypeError("package \u201C"+te.name+"\u201D `main` must be a string");return Ne.code="INVALID_PACKAGE_MAIN",V(Ne)}(te.main==="."||te.main==="./")&&(te.main="index"),M(oe.resolve(h,te.main),te,function(ue,H,ye){if(ue)return V(ue);if(H)return V(null,H,ye);if(!ye)return M(oe.join(h,"index"),ye,V);var gt=oe.resolve(h,ye.main);k(gt,ye,function(P,Y,A){if(P)return V(P);if(Y)return V(null,Y,A);M(oe.join(h,"index"),A,V)})});return}M(oe.join(h,"/index"),te,V)})})})}function $(h,T){if(T.length===0)return h(null,void 0);var L=T[0];u(oe.dirname(L),V);function V(q,F){if(q)return h(q);if(!F)return $(h,T.slice(1));M(L,i.package,y)}function y(q,F,N){if(q)return h(q);if(F)return h(null,F,N);k(L,i.package,v)}function v(q,F,N){if(q)return h(q);if(F)return h(null,F,N);$(h,T.slice(1))}}function K(h,T,L){var V=function(){return ty(h,T,i)};$(L,_?_(h,T,V,i):V())}}});var gl=S((WS,ry)=>{ry.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var _l=S((zS,vl)=>{"use strict";l();var ny=Kt(),hl=gl(),yl={};for(Br in hl)Object.prototype.hasOwnProperty.call(hl,Br)&&(yl[Br]=ny(Br));var Br;vl.exports=yl});var Cl=S((YS,xl)=>{"use strict";l();var oy=Kt();xl.exports=function(t){return oy(t)}});var Rl=S((QS,Sl)=>{"use strict";l();var iy=Kt(),ut=U("fs"),ge=U("path"),sy=ai(),ay=ci(),cy=fi(),ly=pi(),uy=process.platform!=="win32"&&ut.realpathSync&&typeof ut.realpathSync.native=="function"?ut.realpathSync.native:ut.realpathSync,bl=sy(),fy=function(){return[ge.join(bl,".node_modules"),ge.join(bl,".node_libraries")]},py=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},dy=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},my=function(t){try{return uy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Xt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},gy=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},hy=function(t,r,n){for(var o=cy(r,n,t),i=0;i<o.length;i++)o[i]=ge.join(o[i],t);return o};Sl.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=ly(t,r),o=n.isFile||py,i=n.readFileSync||ut.readFileSync,s=n.isDirectory||dy,a=n.realpathSync||my,u=n.readPackageSync||gy;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=n.packageIterator,c=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||ge.dirname(ay()),_=n.filename||p;n.paths=n.paths||fy();var x=Xt(a,ge.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var C=ge.resolve(x,t);(t==="."||t===".."||t.slice(-1)==="/")&&(C+="/");var b=I(C)||w(C);if(b)return Xt(a,b,n)}else{if(d&&iy(t))return t;var E=M(t,x);if(E)return Xt(a,E,n)}var O=new Error("Cannot find module '"+t+"' from '"+_+"'");throw O.code="MODULE_NOT_FOUND",O;function I(R){var k=G(ge.dirname(R));if(k&&k.dir&&k.pkg&&n.pathFilter){var $=ge.relative(k.dir,R),K=n.pathFilter(k.pkg,R,$);K&&(R=ge.resolve(k.dir,K))}if(o(R))return R;for(var h=0;h<c.length;h++){var T=R+c[h];if(o(T))return T}}function G(R){if(!(R===""||R==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(R))&&!/[/\\]node_modules[/\\]*$/.test(R)){var k=ge.join(Xt(a,R,n),"package.json");if(!o(k))return G(ge.dirname(R));var $=u(i,k);return $&&n.packageFilter&&($=n.packageFilter($,R)),{pkg:$,dir:R}}}function w(R){var k=ge.join(Xt(a,R,n),"/package.json");if(o(k)){try{var $=u(i,k)}catch{}if($&&n.packageFilter&&($=n.packageFilter($,R)),$&&$.main){if(typeof $.main!="string"){var K=new TypeError("package \u201C"+$.name+"\u201D `main` must be a string");throw K.code="INVALID_PACKAGE_MAIN",K}($.main==="."||$.main==="./")&&($.main="index");try{var h=I(ge.resolve(R,$.main));if(h)return h;var T=w(ge.resolve(R,$.main));if(T)return T}catch{}}}return I(ge.join(R,"/index"))}function M(R,k){for(var $=function(){return hy(R,k,n)},K=f?f(R,k,$,n):$(),h=0;h<K.length;h++){var T=K[h];if(s(ge.dirname(T))){var L=I(T);if(L)return L;var V=w(T);if(V)return V}}}}});var El=S((JS,wl)=>{"use strict";l();var Ur=ml();Ur.core=_l();Ur.isCore=Cl();Ur.sync=Rl();wl.exports=Ur});l();import f1 from"node:process";import p1 from"yargs";import{hideBin as d1}from"yargs/helpers";var ht="0.17.3";l();var Ee=J(fe(),1),cu=J(Lr(),1);import{dirname as Gy,join as Wy,resolve as Qr}from"node:path";import{readFile as zy}from"node:fs/promises";import Jt from"fs-extra";import Ky from"gray-matter";import Yy from"markdown-it";import{Feed as Xy}from"feed";import pt from"consola";l();var Jl=J(ri(),1),eu=J(Lr(),1),Qe=J(fe(),1);import{dirname as Hy}from"node:path";import Xl from"node:process";import{resolve as Zt}from"pathe";import Zl from"fs-extra";import{ensureSuffix as Ql,uniq as jy}from"@antfu/utils";import tu from"defu";import ru from"consola";l();l();import{spawn as vh}from"cross-spawn";function Ut(e,t="updated"){return new Promise((r,n)=>{let o=["log"];t==="updated"&&o.push("-1"),o.push('--pretty="%ci"',e),t==="created"&&o.push("|","tail","-1");let i=vh("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}l();import{join as Al}from"node:path";import yy from"is-installed-globally";l();var Uc=J(qc(),1);import ae from"node:process";import ce from"node:path";import ii from"node:os";import qr from"node:fs";var Wt=ae.platform==="win32",Bc=e=>{try{return Uc.default.parse(qr.readFileSync(e,"utf8")).prefix}catch{}},_h=()=>Object.keys(ae.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?ae.env[t]:e,void 0),xh=()=>{if(Wt&&ae.env.APPDATA)return ce.join(ae.env.APPDATA,"/npm/etc/npmrc");if(ae.execPath.includes("/Cellar/node")){let e=ae.execPath.slice(0,ae.execPath.indexOf("/Cellar/node"));return ce.join(e,"/lib/node_modules/npm/npmrc")}if(ae.execPath.endsWith("/bin/node")){let e=ce.dirname(ce.dirname(ae.execPath));return ce.join(e,"/etc/npmrc")}},Ch=()=>{if(Wt){let{APPDATA:e}=ae.env;return e?ce.join(e,"npm"):ce.dirname(ae.execPath)}return ce.dirname(ce.dirname(ae.execPath))},bh=()=>{let e=_h();if(e)return e;let t=Bc(ce.join(ii.homedir(),".npmrc"));if(t)return t;if(ae.env.PREFIX)return ae.env.PREFIX;let r=Bc(xh());return r||Ch()},Gt=ce.resolve(bh()),Gc=()=>{if(Wt&&ae.env.LOCALAPPDATA){let e=ce.join(ae.env.LOCALAPPDATA,"Yarn");if(qr.existsSync(e))return e}return!1},Sh=()=>{if(ae.env.PREFIX)return ae.env.PREFIX;let e=Gc();if(e)return e;let t=ce.join(ii.homedir(),".config/yarn");if(qr.existsSync(t))return t;let r=ce.join(ii.homedir(),".yarn-config");return qr.existsSync(r)?r:Gt},Ie={};Ie.npm={};Ie.npm.prefix=Gt;Ie.npm.packages=ce.join(Gt,Wt?"node_modules":"lib/node_modules");Ie.npm.binaries=Wt?Gt:ce.join(Gt,"bin");var Wc=ce.resolve(Sh());Ie.yarn={};Ie.yarn.prefix=Wc;Ie.yarn.packages=ce.join(Wc,Gc()?"Data/global/node_modules":"global/node_modules");Ie.yarn.binaries=ce.join(Ie.yarn.packages,".bin");var si=Ie;var Pl=J(El(),1);import kl from"consola";function Me(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Pl.sync)(e,r)}catch(n){kl.log(n)}if(yy){try{return U.resolve(Al(si.yarn.packages,e))}catch{}try{return U.resolve(Al(si.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);kl.error(`Failed to resolve package ${e}`)}l();l();var Gr="<!-- more -->",kt=/^https?:/i,Ol=/^pathname:\/\//;function Tl(e){return kt.test(e)}function di(e){return e.replace(/\\/g,"/")}function mi(e,t){return t.startsWith(e)?t:e+t}function ee(e){return`/@fs${mi("/",di(e))}`}function $l(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Fl(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();l();import vy from"node:process";import{fileURLToPath as _y}from"node:url";import xy from"jiti";import{resolve as Cy}from"pathe";function by(e){let{name:t,cwd:r}=e,n=Cy(r,`${t}.config.ts`),o={};try{o=xy(_y(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{}return{config:o,configFile:n}}async function Pt(e,t={}){let{config:r,configFile:n}=by({name:e,cwd:t.cwd||vy.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}l();var Tt=J(fe(),1);import wy from"node:process";import{createDefu as Ey}from"defu";import{mergeConfig as Ay}from"vite";import{isFunction as Ml}from"@antfu/utils";import ky from"consola";l();function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var Ot=J(fe(),1);import{webcrypto as Il}from"node:crypto";import Sy from"consola";var Wr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:Il.getRandomValues(new Uint8Array(16)),iv:Il.getRandomValues(new Uint8Array(16))}};function OR(e){return e}async function Ry(e){return Pt("site",{cwd:e})}async function zr(e){let t=Ye(),{config:r,configFile:n}=await Ry(e),o=t();return r&&n&&Sy.success(`Resolve ${(0,Ot.cyan)("siteConfig")} from ${(0,Ot.dim)(n)} ${(0,Ot.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Ll={ignoreDeadLinks:!0,siteConfig:Wr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Py(e){return e}var jR=Py;async function Qt(e,t){return await Pt("valaxy",{cwd:e,valaxyOptions:t})}var ft=Ey((e,t,r)=>{if(Ml(e[t])&&Ml(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=Ay(e[t],r),!0});async function Nl(e){let t=e.userRoot||wy.cwd(),r=Ye(),{config:n,configFile:o}=await Qt(t),i=r();n&&o&&ky.success(`Resolve ${(0,Tt.cyan)("userValaxyConfig")} from ${(0,Tt.dim)(o)} ${(0,Tt.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}l();import Oy from"node:path";import Ty from"fs-extra";function $y(e){return e}var zR=$y;async function Dl(e,t){let r={};for(let n of e){if(!Ty.existsSync(Oy.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Qt(n.root);o&&(n.configFile=i,r=ft(o,r))}return r}l();var Yr=J(fe(),1);import Iy from"defu";l();var Hl=J(fe(),1);import Fy from"consola";l();import Vl from"node:process";function gi(){return Vl.env.NODE_ENV==="production"}function hi(e="development"){Vl.env.NODE_ENV=e,Le.level=gi()?2:3}function $t(){return hi("production")}var Le=Fy.create({level:gi()?2:3}),yi=`${(0,Hl.magenta)("valaxy")}:`,Ft={success:e=>Le.success(yi,e),info:e=>Le.info(yi,e),ready:e=>Le.ready(yi,e)};async function Kr(e){return Pt("theme",{cwd:e})}async function jl(e){let{config:t,configFile:r}=await Kr(e.userRoot);if(t&&r&&Le.info(`Resolve ${(0,Yr.cyan)("themeConfig")} from ${(0,Yr.dim)(r)}`),e?.themeRoot){let{config:n}=await Kr(e.themeRoot);t=Iy(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function My(e){return e}var aw=My;function uw(e){return e}l();var Xe=J(fe(),1);import zl from"node:process";import{resolve as Ny}from"pathe";import Ul from"fs-extra";import Gl from"defu";import Dy from"ora";l();import{dirname as ql}from"node:path";import{resolve as Bl}from"pathe";import Ly from"fs-extra";function Xr(e,t){if(!e)return"";if($l(e))if(t){let r=Ly.lstatSync(t).isFile();return Bl(r?ql(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Bl(ql(Me(`${e}/package.json`)||""))}async function Kl(e,t=zl.cwd()){let r=Dy(`Resolve ${(0,Xe.cyan)("addons")} from ${(0,Xe.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Gl(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Wl(s,{cwd:t}));continue}typeof s=="object"&&o(Gl(await Wl(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{Le.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Xe.yellow)(s.name)}${s.global?(0,Xe.cyan)(" (global)"):""} ${(0,Xe.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository)}`)}),i}async function Wl(e,t={}){let r=Vy(e,t.cwd||zl.cwd()),n=Ny(r,"./package.json");if(!Ul.existsSync(n)){Le.error(`No addon named ${e} found`);return}let o=await Ul.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function Vy(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Xr(r,t)}l();function Yl(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Xr(r,t)}var qy=(0,Jl.default)("valaxy:options");async function By(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=Ql("/",o.url||""),o.cdn.prefix=Ql("/",o.cdn.prefix||"");let i=Zt(r,"package.json");try{t.themeConfig.pkg=await Zl.readJson(i,"utf-8")}catch{console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function vi(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await Kl(t.addons||[],e.userRoot),s=await Dl(i,e);t=ft(t,s);let a=tu(t,Ll);e.config={...a,runtimeConfig:{addons:{}}},e.addons=i,i.forEach(d=>{e.config.runtimeConfig.addons[d.name]=d});let u=i.map(({root:d})=>d),f=i.map(({name:d})=>d);e.addonRoots=u,e.roots=jy([r,n,...u,o]);let c=e.config.vite?.build?.rollupOptions?.external||[];return e.config.vite.build.rollupOptions.external=c.filter(d=>!f.includes(d)),await By(e),e}async function we(e={userRoot:Xl.cwd()},t="dev"){let r=Hy(Me("valaxy/package.json",!0)),n=Zt(r,"client"),o=Zt(e.userRoot||Xl.cwd());ru.start(`Resolve ${(0,Qe.magenta)("valaxy")} config...`);let[i,s,a,u]=await Promise.all([Nl(e),zr(e.userRoot),Kr(e.userRoot),(0,eu.default)(["**.md"],{cwd:Zt(o,"pages"),ignore:["**/node_modules"]})]),{config:f,configFile:c,theme:d}=i,p=Yl(d,e.userRoot),{siteConfig:_,siteConfigFile:x}=s,{config:C,configFile:b}=a;f=tu({siteConfig:_},{themeConfig:C},f);let E={mode:t,pkgRoot:r,tempDir:Zt(o,".valaxy"),clientRoot:n,userRoot:o,themeRoot:p,addonRoots:[],roots:[],theme:d,config:{...f,runtimeConfig:{addons:{}}},configFile:c||"",siteConfigFile:x||"",themeConfigFile:b||"",pages:u.sort(),addons:[]};qy(E);let O=await _i(E),I=ft(f,O);return E=await vi(E,I),Zl.ensureDirSync(E.tempDir),E}async function _i(e){let t=Ye(),{config:r}=await Qt(e.themeRoot,e),n=t();return r&&ru.success(`Resolve ${(0,Qe.cyan)("valaxy.config.ts")} from ${(0,Qe.blue)(`theme(${e.theme})`)} ${(0,Qe.yellow)(n)}`),r}l();import nu from"fs-extra";async function ou(e){return await Ut(e,"created")||(await nu.stat(e)).ctime}async function iu(e){return await Ut(e,"created")||(await nu.stat(e)).mtime}l();function Ze(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}l();function su(e,t){t.forEach(r=>{r.setup?.(e)})}var Qy=Yy({html:!0,breaks:!0,linkify:!0});async function au(e){pt.info(`${(0,Ee.yellow)("RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){pt.error("You must set `url` (like `https://example.com`) in `site.config.ts` to generate rss.");return}let n=r.url,o=r.url.slice(0,-1),i={name:r.author?.name,email:r.author?.email,link:r.author?.link};pt.info(`RSS Site Url: ${(0,Ee.cyan)(n)}`);let s=r.license?.type==="zero"?"1.0":"4.0",a={atom:r.feed?.name?`${r.feed?.name}.atom`:"atom.xml",json:`${r.feed?.name||"feed"}.json`,rss:`${r.feed?.name||"feed"}.xml`},u={title:r.title||"Valaxy Blog",description:r.description,id:n||"valaxy",link:n,copyright:`CC ${r.license?.type?.toUpperCase()} ${s} ${new Date().getFullYear()} \xA9 ${r.author?.name}`,feedLinks:{}};Object.keys(a).forEach(b=>{u.feedLinks[b]=`${n}${a[b]}`});let f=await(0,cu.default)(`${e.userRoot}/pages/posts/**/*.md`),c=[];for await(let b of f){let E=await zy(b,"utf-8"),{data:O,content:I,excerpt:G}=Ky(E,{excerpt_separator:Gr});if(O.password)continue;if(O.draft){pt.warn(`Ignore draft post: ${(0,Ee.dim)(b)}`);continue}if(O.hide)continue;let w=b;O.date||(O.date=await ou(w)),r.lastUpdated&&(O.updated||(O.updated=await iu(w)));let M=Qy.render(G||I.slice(0,100)).replace('src="/',`src="${o}/`);O.image?.startsWith("/")&&(O.image=o+O.image),c.push({title:"",...O,id:(O.id||"").toString(),date:new Date(O.date),published:new Date(O.updated||O.date),content:M,author:[i],link:o+b.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")})}c.sort((b,E)=>+new Date(E.published||E.date)-+new Date(b.published||b.date));let d=r.author?.avatar||"/favicon.svg";u.author=i,u.image=Tl(d)?r.author?.avatar:`${o}${mi("/",d)}`,u.favicon=`${o}${r.feed?.favicon||r.favicon}`;let p=new Xy(u);c.forEach(b=>p.addItem(b)),await Jt.ensureDir(Gy(`./dist/${a.atom}`));let _=Qr(e.userRoot,"./dist"),x=Qr(e.userRoot,"public");["rss","atom","json"].forEach(async b=>{let E="",O=`${_}/${a[b]}`;b==="rss"?E=p.rss2():b==="atom"?E=p.atom1():b==="json"&&(E=p.json1()),Jt.writeFileSync(O,E,"utf-8"),pt.success(`[${(0,Ee.cyan)(b)}] dist: ${(0,Ee.dim)(O)}`);let I=Qr(x,a[b]),G=Wy("public",a[b]);Jt.writeFileSync(I,E,"utf-8"),pt.success(`[${(0,Ee.cyan)(b)}] public: ${(0,Ee.dim)(O)}`);try{let w=Qr(e.userRoot,".gitignore"),M=await Jt.readFile(w,"utf-8"),R=G.replace(/\\/g,"/");M.includes(R)||(await Jt.appendFile(w,`
10
+ # valaxy rss
11
+ ${R}
12
+ `),pt.success(`Add ${(0,Ee.dim)(R)} to ${(0,Ee.dim)(".gitignore")}`))}catch{}})}var Zr={extendCli(e){e.command("rss [root]","generate rss feed",t=>Ze(t).strict().help(),async({root:t})=>{$t();let r=await we({userRoot:t},"build");await au(r)})},setup(e){e.hook("build:after",()=>{console.log(),au(e.options)})}};l();var lu=J(Lr(),1),et=J(fe(),1);import It from"node:path";import Je from"fs-extra";import Mt from"consola";import Zy from"gray-matter";async function uu(e){Mt.start(`Generate List for Fuse Search by (${(0,et.cyan)("fuse.js")}) ...`);let t=await(0,lu.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=Je.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=Zy(o,{excerpt_separator:"<!-- more -->"});if(i.draft){Mt.warn(`Ignore draft post: ${(0,et.dim)(n)}`);continue}if(i.hide||i.password)continue;let u=e.config.siteConfig.fuse.options.keys||[],f={title:i.title||"",tags:(typeof i.tags=="string"?[i.tags]:i.tags)||[],categories:i.categories||[],author:e.config.siteConfig.author.name,excerpt:s||a.slice(0,100),link:encodeURI(n.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,""))};u.includes("content")&&(f.content=a||""),r.push(f)}return r}function Jy(e){e.command("fuse [root]","generate fuse list for search",t=>Ze(t).strict().help(),async({root:t})=>{Mt.info("Please generate it before build."),$t();let r=await we({userRoot:t},"build"),n=await uu(r);await Je.ensureDir("./dist");let o=It.resolve(r.userRoot,"public"),i=It.resolve(o,r.config.siteConfig.fuse.dataPath),s=It.join("public",r.config.siteConfig.fuse.dataPath);await Je.ensureFile(i),Je.writeJSONSync(i,n),Mt.success(`Generate fuse list in ${(0,et.dim)(o)}`);let a=It.resolve(r.userRoot,"dist"),u=It.resolve(a,r.config.siteConfig.fuse.dataPath);await Je.ensureDir(a),Je.writeJSONSync(u,n),Mt.success(`Generate fuse list in ${(0,et.dim)(a)}`);try{let f=It.resolve(r.userRoot,".gitignore"),c=await Je.readFile(f,"utf-8"),d=s.replace(/\\/g,"/");c.includes(d)||(await Je.appendFile(f,`
13
+ # valaxy fuse
14
+ ${d}
15
+ `),Mt.success(`Add ${(0,et.dim)(d)} to ${(0,et.dim)(".gitignore")}`))}catch{}})}var fu={extendCli(e){Jy(e)},setup(e){e.hook("build:before",()=>{uu(e.options)})}};l();l();var en=J(fe(),1);import{join as ov,resolve as mu}from"node:path";import{writeFile as iv}from"node:fs/promises";import{render as sv}from"ejs";import av from"dayjs";import{ensureSuffix as cv}from"@antfu/utils";import{consola as xi}from"consola";l();import{access as ev}from"node:fs/promises";async function Jr(e){try{return await ev(e),!0}catch{return!1}}l();import rv from"node:path";import{readFile as nv}from"node:fs/promises";l();import tv from"node:process";var er=tv.cwd(),pu=`---
16
+ layout: <%=layout%>
17
+ title: <%=title%>
18
+ date: <%=date%>
19
+ ---
20
+ `;async function du(e){let{clientRoot:t,themeRoot:r}=await we({userRoot:er}),n=[er,r,t];for(let o of n){let i=rv.resolve(o,"scaffolds",`${e}.md`);if(await Jr(i))return nv(i,"utf-8")}return!1}async function gu(e){let t=mu(er,"pages"),{path:r,title:n}=e,o=r||ov("posts",n),i=0;for(;;){let s=mu(t,o);if(i&&(s=`${s}-${i}`),s=cv(".md",s),!await Jr(s)){let a=await lv(e);try{await iv(s,a,"utf-8"),xi.success(`[valaxy new]: successfully generated file ${(0,en.magenta)(s)}`)}catch(u){console.log(u),xi.error(`[valaxy new]: failed to write file ${s}`),xi.warn(`You should run ${(0,en.green)("valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function lv({date:e,title:t,layout:r="post"}){let n=await du(r);return n||(n=pu),sv(n,{title:t,layout:r,date:e?av().format("YYYY-MM-DD HH:mm:ss"):""})}function hu(e){e.command("new <title>","Draft a new post",t=>{t.usage("$0 <title> -p [path] -l [layout]").positional("title",{describe:"The title of the new post",required:!0}).option("path",{alias:"p",type:"string",describe:"the path to generate new post. Customize the path of post to generate"}).option("layout",{alias:"l",type:"string",default:"post"}).option("date",{alias:"d",type:"boolean",default:!0,describe:"Generate post with the current date"}).strict().help()},async({title:t,path:r,date:n,layout:o})=>{await gu({title:t,date:n,layout:o,path:r})})}l();var Nf=J(fe(),1);import Mf from"node:path";import Ni from"consola";import{mergeConfig as Lf}from"vite";l();import{join as Rf,resolve as Ef}from"node:path";import{mergeConfig as Af,build as Gx}from"vite";import{build as Wx}from"vite-ssg/node";import zx from"vite-ssg-sitemap";import ln from"fs-extra";import wf from"consola";l();import{splitVendorChunkPlugin as Mx}from"vite";import Lx from"markdown-it";import Nx from"@vitejs/plugin-vue";import Dx from"vite-plugin-vue-layouts";import Vx from"unplugin-vue-components/vite";import Hx from"@intlify/unplugin-vue-i18n/vite";import jx from"@unhead/addons/vite";import{resolve as qx}from"pathe";l();import m_ from"markdown-it";import Xu from"markdown-it-anchor";import g_ from"markdown-it-attrs";import{full as h_}from"markdown-it-emoji";import y_ from"markdown-it-task-lists";l();var yu=new Set([!0,!1,"alt","title"]);function vu(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function _u(e,t){e&&e.attrs&&(e.attrs=vu(e.attrs,t))}function uv(e,t){if(!yu.has(e))throw new TypeError(`figcaption must be one of: ${[...yu]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(_u(t,"title"),r[1]):void 0}function xu(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let o=1,i=r.tokens.length;o<i-1;++o){let s=r.tokens[o];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){let[f,c,d]=s.children;if(f.type!=="link_open"||c.type!=="image"||d.type!=="link_close")continue}if(o!==0&&r.tokens[o-1].type!=="paragraph_open"||o!==i-1&&r.tokens[o+1].type!=="paragraph_close")continue;let a=r.tokens[o-1],u;if(a.type="figure_open",a.tag="figure",r.tokens[o+1].type="figure_close",r.tokens[o+1].tag="figure",t.dataType&&r.tokens[o-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[u]=s.children;let f=new r.Token("link_open","a",1);f.attrPush(["href",u.attrGet("src")]),s.children.unshift(f),s.children.push(new r.Token("link_close","a",-1))}if(u=s.children.length===1?s.children[0]:s.children[1],t.figcaption){let f=uv(t.figcaption,u);if(f){let[c]=e.parseInline(f,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...c.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),u.attrs&&(u.attrs=vu(u.attrs,"title"))}}if(t.copyAttrs&&u.attrs){let f=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=u.attrs.filter(([c])=>c.match(f)).map(c=>Array.from(c))}if(t.tabindex&&(r.tokens[o-1].attrPush(["tabindex",n]),n++),t.lazy&&(u.attrs.some(([f])=>f==="loading")||u.attrs.push(["loading","lazy"])),t.async&&(u.attrs.some(([f])=>f==="decoding")||u.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let f=!1;for(let c=0,d=u.attrs.length;c<d&&!f;c++){let p=u.attrs[c];p[0]==="class"&&(p[1]=`${p[1]} ${t.classes}`,f=!0)}f||u.attrs.push(["class",t.classes])}if(t.removeSrc){let f=u.attrs.find(([c])=>c==="src");u.attrs.push(["data-src",f[1]]),_u(u,"src")}}})}l();import fv from"markdown-it/lib/common/html_blocks.mjs";var pv="[a-zA-Z_:@][a-zA-Z0-9:._-]*",dv="[^\"'=<>`\\x00-\\x20]+",mv="'[^']*'",gv='"[^"]*"',hv="(?:"+dv+"|"+mv+"|"+gv+")",Ci="(?:\\s+"+pv+"(?:\\s*=\\s*"+hv+")?)",Cu="<[A-Za-z][A-Za-z0-9\\-]*"+Ci+"*\\s*\\/?>",bu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",yv="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",vv="<[?][\\s\\S]*?[?]>",_v="<![A-Z]+\\s+[^>]*>",xv="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Cv=new RegExp("^(?:"+Cu+"|"+bu+"|"+yv+"|"+vv+"|"+_v+"|"+xv+")"),bv=new RegExp("^(?:"+Cu+"|"+bu+")"),Sv=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+Ci+"*\\s*\\/>"),Rv=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+Ci+"*\\s*>.*<\\/\\1\\s*>"),wv=fv,Ev=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],Av=["template","component","transition","transition-group","keep-alive","slot","teleport"],kv=({blockTags:e,inlineTags:t})=>{let r=[...e,...wv],n=[...t,...Ev.filter(i=>!Av.includes(i))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(bv.source+"\\s*$"),/^$/,!1]]},Pv=e=>{let t=kv(e);return(r,n,o,i)=>{let s,a,u,f=r.bMarks[n]+r.tShift[n],c=r.eMarks[n];if(r.sCount[n]-r.blkIndent>=4||!r.md.options.html||r.src.charCodeAt(f)!==60)return!1;for(u=r.src.slice(f,c),s=0;s<t.length&&!t[s][0].test(u);s++);if(s===t.length)return!1;if(i)return t[s][2];if(s===6){let p=u.match(Sv)??u.match(Rv);if(p){r.line=n+1;let _=r.push("html_inline","",0);return _.content=p[0],_.map=[n,r.line],_=r.push("inline","",0),_.content=u.slice(p[0].length),_.map=[n,r.line],_.children=[],!0}}if(a=n+1,!t[s][1].test(u)){for(;a<o&&!(r.sCount[a]<r.blkIndent);a++)if(f=r.bMarks[a]+r.tShift[a],c=r.eMarks[a],u=r.src.slice(f,c),t[s][1].test(u)){u.length!==0&&a++;break}}r.line=a;let d=r.push("html_block","",0);return d.map=[n,a],d.content=r.getLines(n,a,r.blkIndent,!0),!0}},Ov=e=>{let t=e|32;return t>=97&&t<=122},Tv=(e,t)=>{let{pos:r}=e;if(!e.md.options.html)return!1;let n=e.posMax;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!Ov(o))return!1;let i=e.src.slice(r).match(Cv);if(!i)return!1;if(!t){let s=e.push("html_inline","",0);s.content=e.src.slice(r,r+i[0].length)}return e.pos+=i[0].length,!0},Su=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{let n=Pv({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",Tv)};l();import $v from"gray-matter";var Ru=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{let n=e.render.bind(e);e.render=(o,i={})=>{let{data:s,content:a,excerpt:u=""}=$v(o,t);return i.content=a,i.frontmatter={...i.frontmatter,...s},i.excerpt=r&&u?n(u,{...i}):u,n(a,i)}};l();l();var Fv={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},Iv=/[&<>'"]/g,dt=e=>e.replace(Iv,t=>Fv[t]);var tr=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=e.children??[],o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!s.meta?.isPermalinkSymbol).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${dt(a.content)}`:`${s}${a.content}`,"").trim()},tn=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],u=[],f=c=>{for(;u.length!==0&&c.level<=u[0].level;)u.shift();u.length===0?(a.push(c),u.push(c)):(u[0].children.push(c),u.unshift(c))};for(let c=0;c<e.length;c+=1){let d=e[c];if(d?.type!=="heading_open"||d?.level!==0&&!n)continue;let p=Number.parseInt(d.tag.slice(1),10);if(!t.includes(p))continue;let _=e[c+1];if(!_)continue;let x=tr(_,{shouldAllowHtml:r,shouldEscapeText:o}),C=d.attrGet("id")??i(x);f({level:p,title:s?.(x)??x,slug:C,link:`#${C}`,children:[]})}return a},Mv=/[\u0000-\u001f]/g,Lv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,Nv=/[\u0300-\u036F]/g,mt=e=>e.normalize("NFKD").replace(Nv,"").replace(Mv,"").replace(Lv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var wu=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=mt,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,u)=>(u.headers=tn(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,u))};l();var Eu="script",Au="style",rr="template",Dv=/^<script\s+.*?\bsetup\b.*?>$/is,Vv=({customBlocks:e})=>{let t=Array.from(new Set([Eu,Au,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},ku=(e,{customBlocks:t=[]}={})=>{let r=Vv({customBlocks:t}),n=e.render.bind(e);e.render=(i,s={})=>{s.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};let a=n(i,s);return s.sfcBlocks.template={type:rr,content:`<${rr}>${a}</${rr}>`,contentStripped:a,tagOpen:`<${rr}>`,tagClose:`</${rr}>`},a};let o=e.renderer.rules.html_block;e.renderer.rules.html_block=(i,s,a,u,f)=>{if(!u.sfcBlocks)return o(i,s,a,u,f);let p=i[s].content.match(r);if(!p)return o(i,s,a,u,f);let _=p.groups;return _.type===Eu?(u.sfcBlocks.scripts.push(_),Dv.test(_.tagOpen)?u.sfcBlocks.scriptSetup=_:u.sfcBlocks.script=_):_.type===Au?u.sfcBlocks.styles.push(_):u.sfcBlocks.customBlocks.push(_),""}};l();var Pu=e=>{let t=e.renderer.render.bind(e.renderer);e.renderer.render=(r,n,o)=>{let i=r.findIndex(s=>s.tag==="h1");return o.title=i>-1?tr(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};l();var Hv=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=dt(e),s=t?` class="${dt(t)}"`:"",a="li",u=r?` class="${dt(r)}"`:"",f=dt(n),c=o?` class="${dt(o)}"`:"",d=_=>n==="router-link"?` to="${_}"`:` href="${_}"`,p=_=>`<${i}${s}>${_.map(x=>`<${a}${u}><${f}${c}${d(x.link)}>${x.title}</${f}>${x.children.length>0?p(x.children):""}</${a}>`).join("")}</${i}>`;return p},jv=({pattern:e,containerTag:t,containerClass:r})=>(n,o,i,s)=>{if(n.sCount[o]-n.blkIndent>=4)return!1;let a=n.bMarks[o]+n.tShift[o],u=n.eMarks[o],f=n.src.slice(a,u).split(" ")[0];if(!e.test(f))return!1;if(s)return!0;n.line=o+1;let c=n.push("toc_open",t,1);c.markup="",c.map=[o,n.line],r&&c.attrSet("class",r);let d=n.push("toc_body","",0);d.markup=f,d.map=[o,n.line],d.hidden=!0;let p=n.push("toc_close",t,-1);return p.markup="",d.map=[o,n.line],!0},Ou=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=mt,format:n,level:o=[2,3],shouldAllowNested:i=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:u="ul",listClass:f="",itemClass:c="",linkTag:d="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",jv({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let _=Hv({listTag:u,listClass:f,itemClass:c,linkTag:d,linkClass:p});e.renderer.rules.toc_body=x=>_(tn(x,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};import{cssI18nContainer as v_}from"css-i18n";l();import Tu from"katex";function $u(e,t){let r=e.posMax,n=!0,o=!0,i=t>0?e.src.charCodeAt(t-1):-1,s=t+1<=r?e.src.charCodeAt(t+1):-1;return(i===32||i===9||s>=48&&s<=57)&&(o=!1),(s===32||s===9)&&(n=!1),{can_open:n,can_close:o}}function qv(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=$u(e,e.pos),!o.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let s=e.pos+1;for(r=s;(r=e.src.indexOf("$",r))!==-1;){for(i=r-1;e.src[i]==="\\";)i-=1;if((r-i)%2===1)break;r+=1}return r===-1?(t||(e.pending+="$"),e.pos=s,!0):r-s===0?(t||(e.pending+="$$"),e.pos=s+1,!0):(o=$u(e,r),o.can_close?(t||(n=e.push("math_inline","math",0),n.markup="$",n.content=e.src.slice(s,r)),e.pos=r+1,!0):(t||(e.pending+="$"),e.pos=s,!0))}function Bv(e,t,r,n){let o,i,s,a,u=!1,f=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(f+2>c||e.src.slice(f,f+2)!=="$$")return!1;if(f+=2,o=e.src.slice(f,c),n)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),u=!0),s=t;!u&&(s++,!(s>=r||(f=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],f<c&&e.tShift[s]<e.blkIndent)));)e.src.slice(f,c).trim().slice(-2)==="$$"&&(a=e.src.slice(0,c).lastIndexOf("$$"),i=e.src.slice(f,a),u=!0);e.line=s+1;let d=e.push("math_block","math",0);return d.block=!0,d.content=(o&&o.trim()?`${o}
21
+ `:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function bi(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return Tu.renderToString(s,t)}catch(a){return t.throwOnError&&console.warn(a),s}},n=function(s,a){return r(s[a].content)},o=function(s){t.displayMode=!0;try{return`<p>${Tu.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
22
+ `};e.inline.ruler.after("escape","math_inline",qv),e.block.ruler.after("blockquote","math_block",Bv,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}l();import rn from"markdown-it-container";l();import Iu from"crypto";l();var Fu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Uv=128,tt,rt,Mu=e=>{!tt||tt.length<e?(tt=Buffer.allocUnsafe(e*Uv),Iu.randomFillSync(tt),rt=0):rt+e>tt.length&&(Iu.randomFillSync(tt),rt=0),rt+=e},Gv=e=>(Mu(e-=0),tt.subarray(rt-e,rt)),Wv=(e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(i=t)=>{let s="";for(;;){let a=r(o),u=o;for(;u--;)if(s+=e[a[u]&n]||"",s.length===i)return s}}},Lu=(e,t=21)=>Wv(e,t,Gv),Si=(e=21)=>{Mu(e-=0);let t="";for(let r=rt-e;r<rt;r++)t+=Fu[tt[r]&63];return t};l();function Nu(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function Ri(e){let{theme:t}=e,r=typeof t=="string"||"name"in t,n="";if(r){n=" va-adaptive-theme";let o=typeof t=="string"?t:t.name;n=o.includes("dark")||o.includes("night")?" dark":" light"}return n}function Du(e,t=!1){return t?e.replace(/<!--[^]*?-->/g,"").match(/data-title="(.*?)"/)?.[1]||"":e.match(/\[(.*)\]/)?.[1]||Nu(e)||"txt"}function zv(e){let t=e?.siteConfig?.codeHeightLimit;return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function Vu(e,t){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let[o,i]=n,s=o[i];s.info=s.info.replace(/\[.*\]/,"");let a=Nu(s.info),u=r(...n);return`
23
+ <div ${zv(t)} class="language-${a}${Ri(t)}${/ active( |$)/.test(s.info)?" active":""}">
24
+ <button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${u}<button class="collapse"></button>
25
+ </div>`}}function Kv(e,{icon:t,color:r,text:n,langs:o}={}){return[rn,e,{render(i,s){let a=i[s],u=a.info.trim().slice(e.length).trim();if(a.nesting===1){if(e==="details")return`<details class="${e} custom-block">${`<summary>${u}</summary>`}
26
+ `;let f="";t&&(f=`<i class="icon ${t}" ${r?`style="color: ${r}"`:""}></i>`);let c=`<span lang="en">${u||n}</span>`;return o&&Object.keys(o).forEach(d=>{c+=`<span lang="${d}">${u||o[d]}</span>`}),`<div class="${e} custom-block"><p class="custom-block-title">${f}${c}</p>
27
+ `}else return e==="details"?`</details>
28
+ `:`</div>
29
+ `}}]}var Hu={tip:{text:"TIP",langs:{"zh-CN":"\u63D0\u793A"}},warning:{text:"WARNING",langs:{"zh-CN":"\u6CE8\u610F"}},danger:{text:"DANGER",langs:{"zh-CN":"\u8B66\u544A"}},info:{text:"INFO",langs:{"zh-CN":"\u4FE1\u606F"}},details:{text:"Details",langs:{"zh-CN":"\u8BE6\u60C5"}}};function ju(e,t={}){Object.keys(Hu).forEach(n=>{let o={...Hu[n],...t[n]||{}};e.use(...Kv(n,o))}),e.use(...Yv(t)),e.use(rn,"v-pre",{render:(n,o)=>n[o].nesting===1?`<div v-pre>
30
+ `:`</div>
31
+ `}),["zh-CN","en"].forEach(n=>{e.use(rn,n,{render:(o,i)=>o[i].nesting===1?`<div lang="${n}">
32
+ `:`</div>
33
+ `})})}function Yv(e){return[rn,"code-group",{render(t,r){if(t[r].nesting===1){let n=Si(5),o="",i='checked="checked"';for(let s=r+1;!(t[s].nesting===-1&&t[s].type==="container_code-group_close");++s){let a=t[s].type==="html_block";if(t[s].type==="fence"&&t[s].tag==="code"||a){let u=Du(a?t[s].content:t[s].info,a);if(u){let f=Si(7);o+=`<input type="radio" name="group-${n}" id="tab-${f}" ${i}><label for="tab-${f}">${u}</label>`,i&&!a&&(t[s].info+=" active"),i=""}}}return`<div class="vp-code-group${Ri({theme:e.theme})}"><div class="tabs">${o}</div><div class="blocks">
34
+ `}return`</div></div>
35
+ `}}]}l();var qu=J(fe(),1);import{transformerCompactLineOptions as Xv,transformerNotationDiff as Qv,transformerNotationErrorLevel as Zv,transformerNotationFocus as Jv,transformerNotationHighlight as e_}from"shikiji-transformers";import{addClassToHast as t_,bundledLanguages as r_,getHighlighter as n_,isPlaintext as o_,isSpecialLang as i_}from"shikiji";var s_=Lu("abcdefghijklmnopqrstuvwxyz",10);function a_(e){e=e.replace(/^(?:\[.*?\])?.*?([\d,-]+).*/,"$1").trim();let t=[];return e?(e.split(",").map(r=>r.split("-").map(n=>Number.parseInt(n,10))).forEach(([r,n])=>{r&&n?t.push(...Array.from({length:n-r+1},(o,i)=>r+i)):t.push(r)}),t.map(r=>({line:r,classes:["highlighted"]}))):[]}async function Bu(e,t,r=console){let{defaultHighlightLang:n="",codeTransformers:o=[]}=t,i=await n_({themes:typeof e=="string"||"name"in e?[e]:[e.light,e.dark],langs:[...Object.keys(r_),...t.languages||[]],langAlias:t.languageAlias});await t?.shikijiSetup?.(i);let s=[Qv(),Jv({classActiveLine:"has-focus",classActivePre:"has-focused-lines"}),e_(),Zv(),{name:"valaxy:add-class",pre(d){t_(d,"vp-code")}},{name:"valaxy:clean-up",pre(d){delete d.properties.tabindex,delete d.properties.style}}],a=/-vue$/,u=/=(\d*)/,f=/:(no-)?line-numbers(=\d*)?$/,c=/\{\{.*?\}\}/g;return(d,p,_)=>{let x=a.test(p)?"":"v-pre";p=p.replace(u,"").replace(f,"").replace(a,"").toLowerCase()||n,p&&!i.getLoadedLanguages().includes(p)&&!o_(p)&&!i_(p)&&(r.warn(qu.default.yellow(`
36
+ The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let C=a_(_),b=new Map,E=w=>x?w:w.replace(c,M=>{let R=b.get(M);return R||(R=s_(),b.set(M,R)),R}),O=w=>(b.forEach((M,R)=>{w=w.replaceAll(M,R)}),w),I=w=>w.replace(/(<span class="line highlighted">)(<\/span>)/g,"$1<wbr>$2");d=E(d).trimEnd();let G=i.codeToHtml(d,{lang:p,transformers:[...s,Xv(C),{name:"valaxy:v-pre",pre(w){x&&(w.properties["v-pre"]="")}},...o],meta:{__raw:_},...typeof e=="string"||"name"in e?{theme:e}:{themes:e,defaultColor:!1}});return I(O(G))}}l();var wi=/{([\d,-]+)}/;function Uu(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(...r)=>{let[n,o]=r,i=n[o],s=i.attrs&&i.attrs[0],a=null;if(!s){let u=i.info;if(!u||!wi.test(u))return t(...r);let f=u.replace(wi,"").trim();i.info=f,a=wi.exec(u)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}l();import{URL as c_}from"node:url";var l_=/(^|.*\/)index.md(#?.*)$/i;function Gu(e,t,r){e.renderer.rules.link_open=(i,s,a,u,f)=>{let c=i[s],d=c.attrIndex("href");if(d>=0){let p=c.attrs[d],_=p[1];kt.test(_)?(Object.entries(t).forEach(([C,b])=>{c.attrSet(C,b)}),p[1]=_.replace(Ol,"")):!_.startsWith("#")&&!_.startsWith("mailto:")&&!/\.(?!html|md)\w+($|\?)/i.test(_)&&n(p,u),p[1]=p[1].replace(/\bimport\.meta/g,"import%2Emeta").replace(/\bprocess\.env/g,"process%2Eenv")}return f.renderToken(i,s,a)};function n(i,s){let a=i[1],u=a.match(l_);if(u){let[,f,c]=u;a=f+c}else{let f=a.replace(/[?#].*$/,"");f.endsWith(".md")&&(f=f.replace(/\.md$/,s.cleanUrls==="disabled"?".html":"")),s.cleanUrls==="disabled"&&!f.endsWith(".html")&&!f.endsWith("/")&&(f+=".html");let c=new c_(a,"http://a.com");a=f+c.search+c.hash}!a.startsWith("/")&&!/^\.\//.test(a)&&(a=`./${a}`),o(a.replace(/\.html$/,""),s),a.startsWith("/")&&(a=`${r}${a}`.replace(/\/+/g,"/")),i[1]=decodeURI(a)}function o(i,s){(s.links||(s.links=[])).push(i)}}l();function Wu(e,t=!1){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let o=r(...n),[i,s]=n,a=i[s].info;if(!t&&!/:line-numbers($| |=)/.test(a)||t&&/:no-line-numbers($| )/.test(a))return o;let u=1,f=a.match(/=(\d*)/);f&&f[1]&&(u=Number.parseInt(f[1]));let d=o.slice(o.indexOf("<code>"),o.indexOf("</code>")).split(`
37
+ `),_=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((C,b)=>`<span class="line-number">${b+u}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${_}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}l();import zu from"node:path";import Ei from"fs-extra";var u_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function f_(e){let[t="",r="",n="",o="",i="",s=""]=(u_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function p_(e){let t=e.split(`
38
+ `),r=t.reduce((n,o)=>{for(let i=0;i<o.length;i++)if(o[i]!==" "&&o[i]!==" ")return Math.min(i,n);return n},Number.POSITIVE_INFINITY);return r<Number.POSITIVE_INFINITY?t.map(n=>n.slice(r)).join(`
39
+ `):e}function Ku(e,t,r,n=!1){let[o,i,s]=t.exec(e.trim())||[];return o&&i&&s===r&&i.match(n?/^[Ee]nd ?[rR]egion$/:/^[rR]egion$/)}function d_(e,t){let r=[/^\/\/ ?#?((?:end)?region) ([\w*-]+)$/,/^\/\* ?#((?:end)?region) ([\w*-]+) ?\*\/$/,/^#pragma ((?:end)?region) ([\w*-]+)$/,/^<!-- #?((?:end)?region) ([\w*-]+) -->$/,/^#((?:End )Region) ([\w*-]+)$/,/^::#((?:end)region) ([\w*-]+)$/,/^# ?((?:end)?region) ([\w*-]+)$/],n=null,o=-1;for(let[i,s]of e.entries())if(n===null){for(let a of r)if(Ku(s,a,t)){o=i+1,n=a;break}}else if(Ku(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Yu(e,t){let r=(o,i,s,a)=>{let f=o.bMarks[i]+o.tShift[i],c=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let k=0;k<3;++k)if(o.src.charCodeAt(f+k)!==60||f+k>=c)return!1;if(a)return!0;let d=f+3,p=o.skipSpacesBack(c,f),_=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:x,extension:C,region:b,lines:E,lang:O,title:I}=f_(_);o.line=i+1;let G=o.push("fence","code",0);G.info=`${O||C}${E?`{${E}}`:""}${I?`[${I}]`:""}`;let{realPath:w,path:M}=o.env,R=zu.resolve(zu.dirname(w??M),x);return G.src=[R,b.slice(1)],G.markup="```",G.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,u=i[s],[f,c]=u.src??[];if(!f)return n(...o);a&&a.push(f);let d=Ei.statSync(f).isFile();if(!Ei.existsSync(f)||!d)return u.content=d?`Code snippet path not found: ${f}`:"Invalid code snippet option",u.info="",n(...o);let p=Ei.readFileSync(f,"utf8");if(c){let _=p.split(/\r?\n/),x=d_(_,c);x&&(p=p_(_.slice(x.start,x.end).filter(C=>!x.regexp.test(C.trim())).join(`
40
+ `)))}return u.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}l();var Qu={light:"github-light",dark:"github-dark"};async function Ai(e,t,r=!1,n="/"){let o=t?.config.markdown||{},i=o.theme??Qu,s=t?.config.siteConfig||{};o.preConfig&&o.preConfig(e),e.use(Su,{...o.component}),e.use(Uu).use(Vu,{theme:i,siteConfig:s}).use(Yu,t?.userRoot).use(ju,{...o.blocks,theme:i}).use(v_,{languages:t?.config.siteConfig.languages}).use(Gu,{target:"_blank",rel:"noreferrer",...o.externalLinks},n),e.use(Wu,o.lineNumbers),o.attrs?.disable||e.use(g_,o.attrs),e.use(h_),r||e.use(Xu,{slugify:mt,permalink:Xu.permalink.linkInsideHeader({symbol:"&ZeroWidthSpace;",renderAttrs:(u,f)=>{let c=f.tokens.findIndex(p=>{let x=p.attrs?.find(C=>C[0]==="id");return x&&u===x[1]});return{"aria-label":`Permalink to "${f.tokens[c+1].content}"`}}}),...o.anchor}),e.use(Ru,{...o.frontmatter}).use(wu,{slugify:mt,...o.headers}).use(ku,{...o.sfc}).use(Pu).use(Ou,{...o.toc}),e.use(bi,o.katex);let a=t?.config.siteConfig.vanillaLazyload||{enable:!1};return e.use(xu,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...o.imageFigures}),e.use(y_),o.config&&o.config(e),e}async function Zu(e){let t=e?.config.markdown||{},r=t.theme??Qu,n=m_({html:!0,linkify:!0,highlight:await Bu(r,t),...t.options});return n.linkify.set({fuzzyLink:!1}),await Ai(n,e),n}l();import{resolve as R_}from"node:path";import{existsSync as w_}from"node:fs";import{fileURLToPath as E_}from"node:url";import A_ from"jiti";import tf from"defu";import{presetAttributify as k_,presetIcons as P_,presetTypography as O_,presetUno as T_,transformerDirectives as $_,transformerVariantGroup as F_}from"unocss";l();import{resolve as __}from"node:path";import{fileURLToPath as x_}from"node:url";import C_ from"fs-extra";import{isObject as b_}from"@antfu/utils";import S_ from"jiti";function Ju(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{b_(e[n])?e[n]=Ju(e[n],t[n],r?`${r}.${n}`:n):Array.isArray(e[n])?e[n]=[...e[n],...t[n]]:e[n]=t[n]}),e}async function ef(e,t,r,n,o=!0){let i=n;for(let s of e){let a=__(s,"setup",t);if(C_.existsSync(a)){let{default:u}=S_(x_(import.meta.url),{esmResolve:!0})(a),f=await u(r);f!==null&&(i=o?Ju(i,f):f)}}return i}async function I_(e){let{config:t}=e,r=["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"].concat(e.config.unocss?.safelist||[]),n="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(r),o=t.siteConfig;o.social?.length&&o.social.forEach(s=>n.push(s?.icon||""));let i=o.sponsor?.methods||[];return i.length&&i.forEach(s=>n.push(s?.icon||"")),n}async function M_(e){let{config:t}=e;return{shortcuts:[["flex-center","flex items-center justify-center"],["inline-flex-center","inline-flex items-center justify-center"],["btn","px-4 py-1 rounded inline-block bg-$va-c-primary text-white cursor-pointer transition hover:bg-$va-c-primary-light disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-flex justify-center items-center cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg bg-$va-c-bg-light"]],presets:[T_(t.unocssPresets?.uno),k_(t.unocssPresets?.attributify),P_({scale:1.2,...t.unocssPresets?.icons}),O_(t.unocssPresets?.typography)],rules:[["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[$_(),F_()],safelist:await I_(e)}}async function rf(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,n=await M_(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],u=[];[o,i].forEach(p=>a.forEach(_=>u.push(R_(p,_))));let c={},d=[];return u.forEach(p=>{if(w_(p)){let _=A_(E_(import.meta.url),{esmResolve:!0})(p);"default"in _&&(_=_.default),c=tf(c,_),d.push(p)}}),c=await ef(s,"unocss.ts",{},c,!0),t({configDeps:d,configFile:!1,...tf(r||{},c,n)})}l();import{dirname as V_,join as of,resolve as je}from"node:path";import{mergeConfig as H_,searchForWorkspaceRoot as Oi}from"vite";import j_ from"is-installed-globally";import{uniq as sf}from"@antfu/utils";l();import{join as ki}from"node:path";import Pi from"fs-extra";import{uniq as L_}from"@antfu/utils";import{loadConfigFromFile as N_,mergeConfig as D_}from"vite";async function nn({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=L_([t,e]).map(s=>ki(s,"vite.config.ts"));for await(let s of i){if(!Pi.existsSync(s))continue;let a=await N_(n,s);a?.config&&(o=D_(o,a.config))}return o}async function nf({clientRoot:e,themeRoot:t,userRoot:r,config:n},o){let i=o,s="",a="";n.siteConfig.favicon&&(s+=`<link rel="icon" href="${n.siteConfig.favicon}">`);let u=[r,t];n.siteConfig.mode==="auto"&&(s+=`
41
+ <script>
42
+ const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
43
+ const colorSchemeSetting = localStorage.getItem('vueuse-color-scheme') || 'auto';
44
+ if (colorSchemeSetting === 'dark' || (prefersDark && colorSchemeSetting !== 'light')) {
45
+ document.documentElement.classList.toggle('dark', true);
46
+ }
47
+ </script>
48
+ `),n.siteConfig.lang&&(s+=`
49
+ <script>
50
+ const locale = localStorage.getItem('valaxy-locale') || '${n.siteConfig.lang}';
51
+ document.documentElement.setAttribute('lang', locale);
52
+ </script>
53
+ `);for(let f of u){let c=ki(f,"index.html");if(!Pi.existsSync(c))continue;let d=await Pi.readFile(c,"utf-8");s+=`
54
+ ${(d.match(/<head>([\s\S]*?)<\/head>/im)?.[1]||"").trim()}`,a+=`
55
+ ${(d.match(/<body>([\s\S]*?)<\/body>/im)?.[1]||"").trim()}`}return i=i.replace("__ENTRY__",ee(ki(e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var q_=["@unhead/schema-org","@unhead/vue","@vueuse/integrations/useFuse","body-scroll-lock","defu","dayjs","dayjs/locale/zh-cn","dayjs/plugin/relativeTime","dayjs/plugin/timezone","dayjs/plugin/utc","katex","nprogress","unocss","vue","vue-router","vue-i18n","fuse.js","medium-zoom","vanilla-lazyload","@vue/devtools-api"],af=["@docsearch/css","@vueuse/core","@vueuse/shared","@unocss/reset","unocss","vue","vue-router","vue-demi","@vue/devtools-api","meting","valaxy","/@valaxyjs/config","/@valaxyjs/context","/@valaxyjs/addons","/@valaxyjs/locales","/@valaxyjs/styles"];function cf(e){let t=Object.keys(e.config.themeConfig.pkg.dependencies||{}),r=e.addons.map(n=>Object.keys(n.pkg.dependencies||{})).flat();return{name:"valaxy:site",enforce:"pre",config(n){let o={root:e.clientRoot,publicDir:of(e.userRoot,"public"),define:Ti(e),resolve:{alias:B_(e),dedupe:["vue"]},optimizeDeps:{entries:[je(e.clientRoot,"main.ts")],include:sf([...q_,...t,...r]).filter(i=>!af.includes(i)),exclude:af},server:{fs:{allow:sf([Oi(e.clientRoot),Oi(e.themeRoot),Oi(e.userRoot),V_(Me("katex/package.json",!0))])}}};return j_&&(o.cacheDir=of(e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Me("vue/dist/vue.esm-browser.js",!0)}`),H_(n,o)},async transformIndexHtml(n){return n=await nf(e,n),{html:n,tags:[]}}}}function Ti(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function B_(e){let t=[{find:"~/",replacement:`${ee(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${ee(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:ee(je(e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:ee(je(e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${ee(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${ee(je(e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${ee(je(e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Me("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${ee(`${je(r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${ee(je(r.root))}/App.vue`}),t.push({find:r.name,replacement:`${ee(je(r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:ee(je(e.clientRoot,"./addons/index.ts"))}),t}l();import{existsSync as U_}from"node:fs";import{join as G_,resolve as W_}from"node:path";import{slash as z_,uniq as K_}from"@antfu/utils";function lf({clientRoot:e,themeRoot:t,userRoot:r}){let n=z_(W_(e,"setup"));return{name:"valaxy:setup",enforce:"pre",async transform(o,i){if(i.startsWith(n)){let s=i.slice(n.length+1).replace(/\?.*$/,""),a=[],u=[];return K_([t,r]).map(c=>G_(c,"setup",s)).forEach((c,d)=>{if(!U_(c))return;a.push(`import __n${d} from '${ee(c)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",u.push(`// ${c}`,p)}),o=o.replace("/* __imports__ */",a.join(`
56
+ `)),o=o.replace("/* __injections__ */",u.join(`
57
+ `)),o}return null}}}l();import{objectEntries as Y_}from"@antfu/utils";function uf(e){let t=Y_(Ti(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,n){if(n.match(/\.vue($|\?)/)){let o=r;if(t.forEach(([i,s])=>{r=r.replace(new RegExp(i,"g"),s)}),o!==r)return r}}}]}l();import rx from"unplugin-vue-router/vite";import $i from"fs-extra";import{resolve as nx}from"pathe";import ox from"gray-matter";import{isDate as pf}from"@antfu/utils";import{convert as ix}from"html-to-text";l();import{existsSync as X_,readFileSync as Q_}from"node:fs";function Z_(e){let t=(e.match(/[\u4E00-\u9FA5]/g)||[]).length,r=(e.replace(/[\u4E00-\u9FA5]/g,"").match(/[a-zA-Z0-9_\u0392-\u03C9\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|[\u00E4\u00C4\u00E5\u00C5\u00F6\u00D6]+|\w+/g)||[]).length;return{cn:t,en:r}}function J_({cn:e,en:t},r){let n=e/(r.speed.cn||300)+t/(r.speed.en||100);return n<1?1:Math.ceil(n)}function ex({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function tx(e,t){let r=Z_(e);return{countData:r,wordCount:ex(r),readingTime:J_(r,t.readTime)}}function ff({route:e,options:t}){let r=e.components.get("default")||"";if(X_(r)){let n=Q_(r,"utf-8"),{wordCount:o,readingTime:i}=tx(n,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=o),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=i))}}function sx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return on.render(e);case"text":return ix(on.render(e));default:return e}}function df(e){let{roots:t,config:r}=e;return rx({extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:nx(e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"});let i=n.components.get("default")||"";if(n.fullPath.startsWith("/posts/")&&n.addToMeta({layout:"post"}),i.endsWith(".md")){let s=$i.readFileSync(i,"utf-8"),{data:a,excerpt:u,content:f}=ox(s,{excerpt_separator:Gr}),c=a,d=e.config.siteConfig.lastUpdated;if(delete c.password,c.gallery_password&&(delete c.gallery_password,delete c.photos),c.date||(c.date=$i.statSync(i).mtime),d&&(c.updated||(c.updated=$i.statSync(i).ctime)),pf(c.date)||(c.date=new Date(c.date)),pf(c.updated)||(c.updated=new Date(c.updated)),n.addToMeta({frontmatter:c,excerpt:u?sx(u,c.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let _=n.meta.frontmatter.tags;typeof _=="string"&&(n.meta.frontmatter.tags=[_])}r.siteConfig.statistics.enable&&ff({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:u,content:f,path:i};r.extendMd?.(p)}return r.router?.extendRoute?.(n)}})}l();var an=J(fe(),1);import{join as Dt,relative as Ax,resolve as kx}from"pathe";import nr from"fs-extra";import{defu as Px}from"defu";import Ox from"pascalcase";l();var Lt=J(fe(),1),yf=J(ri(),1);import Li from"fs-extra";import{LRUCache as fx}from"lru-cache";import qe from"pathe";l();import{webcrypto as Fi}from"node:crypto";function ax(e){let t=new TextEncoder;return Fi.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function cx(e,t){return Fi.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function sn(e,t){let{password:r,iv:n,salt:o}=t,i=await ax(r),s=await cx(i,o),a=new TextEncoder,u=await Fi.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(u))}l();import Ii from"node:path";import lx from"fs-extra";import{slash as ux}from"@antfu/utils";function Mi(e,t,r,n){let o=/<!--\s*@include:\s*(.*?)\s*-->/g,i=/\{(\d*),(\d*)\}$/;return t.replace(o,(s,a)=>{if(!a.length)return s;let u=a.match(i);u&&(a=a.slice(0,-u[0].length));let f=a[0]==="@";try{let c=f?Ii.join(e,a.slice(a[1]==="/"?2:1)):Ii.join(Ii.dirname(r),a),d=lx.readFileSync(c,"utf-8");if(u){let[,p,_]=u;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,_?Number.parseInt(_,10):void 0).join(`
58
+ `)}return n.push(ux(c)),Mi(e,d,c,n)}catch{return s}})}var px="<wbr>",mf=(0,yf.default)("vitepress:md"),gf=new fx({max:1024}),dx=/<!--\s*@include:\s*(.*?)\s*-->/g;function mx(e={},t){let r=["process.env"];return t&&r.push("import.meta",...Object.keys(e)),new RegExp(`\\b(${r.map(n=>n.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")).join("|")})`,"g")}function gx(e,t,r){return e=e.replace(/<a (.*?)>(.*?)<\/a>/g,"<AppLink $1>$2</AppLink>"),e.replace(t,n=>`${n[0]}${r}${n.slice(1)}`)}function hx(e,t,r){if(typeof t.title=="string"){let n=e.parseInline(t.title,{})[0];if(n)return tr(n,{shouldAllowHtml:!1,shouldEscapeText:!1})}return r}function yx(e,t){if(!e||!e.length)return;let r=e.find(([n,o={}])=>n==="meta"&&o.name===t&&o.content);return r&&r[1].content}function vx(e){let{description:t,head:r}=e;return t!==void 0?t:r&&yx(r,"description")||""}function _x(e,t,r){if(typeof r!="number"||r<=0)return e;let n=t.config.siteConfig.codeHeightLimit;return e=e.replaceAll(/<div.+class="language-\w+">/g,o=>(n!==void 0&&n>0?o=o.replace(/\d+/,r.toString()):o=`${o.slice(0,5)}style="max-height: ${r}px;"${o.slice(5)}`,o)),e}async function vf(e,t,r,n,o=!1,i=!1,s="with-subfolders"){let a=await Zu(e);r=r.map(f=>f.replace(/\.md$/,"").replace(/\/index$/,""));let u=mx(n,o);return async(f,c,d)=>{let p=c,_=qe.dirname(c),x=qe.relative(t,c),C=JSON.stringify({src:f,file:p}),b=gf.get(C);if(b)return mf(`[cache hit] ${x}`),b;let E=Date.now(),O=[];f=Mi(t,f,p,O),f=f.replace(dx,(N,W)=>{try{let j=qe.join(_,W),ie=Li.readFileSync(j,"utf-8");return O.push(j),ie}catch{return N}});let I={path:c,relativePath:x,cleanUrls:s,realPath:p},G=a.render(f,I),{frontmatter:w={},headers:M=[],links:R=[],sfcBlocks:k,title:$=""}=I,K=[],h=N=>{console.warn(Lt.default.yellow(`
59
+ (!) Found dead link ${Lt.default.cyan(N)} in file ${Lt.default.white(Lt.default.dim(c))}
60
+ If it is intended, you can use:
61
+ ${Lt.default.cyan(`<a href="${N}" target="_blank" rel="noreferrer">${N}</a>`)}`)),K.push(N)};if(R){let N=qe.dirname(c);for(let W of R){if(/\.(?!html|md)\w+($|\?)/i.test(W))continue;if(W.replace(kt,"").startsWith("//localhost:")){h(W);continue}W=W.replace(/[?#].*$/,"").replace(/\.(html|md)$/,"");let j=decodeURIComponent(di(W.startsWith("/")?W.slice(1):qe.relative(t,qe.resolve(N,W)))).replace(/\/index$/,"");(j.endsWith("/")?r.includes(j.slice(0,-1)):r.includes(j)||Li.existsSync(qe.resolve(N,d,`${j}.html`))||Li.existsSync(qe.resolve(N,d,`${j}/index.html`)))||h(W)}}let T={title:hx(a,w,$),titleTemplate:w.titleTemplate,description:vx(w),frontmatter:w,headers:M,relativePath:x,path:qe.join(t,x)};i&&(T.lastUpdated=await Ut(c));let L="ValaxyMain";function V(){return["main-header","main-header-after","main-nav","main-content","main-content-after","main-nav-before","main-nav-after","comment","footer","aside","aside-custom"].map(j=>`<template #${j}><slot name="${j}" /></template>`).join("")}let y=gx(G,u,px);y=_x(y,e,w.codeHeightLimit);let{config:{siteConfig:{encrypt:v}}}=e;if(v.enable){let N=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,W=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(w.password)y=y.replaceAll(W,"");else{let j=[];for(let te of y.matchAll(N))j.push(await sn(te.groups.content,{password:te.groups.password,iv:v.iv,salt:v.salt}));w.partiallyEncryptedContents=j.length?j:void 0;let ie=0;y=y.replaceAll(N,()=>`<ValaxyDecrypt :encrypted-content="frontmatter.partiallyEncryptedContents[${ie++}]" />`)}if(w.password){let j=await sn(y,{password:w.password,iv:v.iv,salt:v.salt});y="",w.encryptedContent=j,w.encrypt=!0,delete w.password}if(w.gallery_password){let j=await sn(JSON.stringify(w.photos),{password:w.gallery_password,iv:v.iv,salt:v.salt});w.encryptedPhotos=j,delete w.gallery_password,delete w.photos}}let q=[...wx(k?.scripts.map(N=>N.content)??[],T,u),`<template><${L} :frontmatter="frontmatter" :data="data">`,`<template #main-content-md>${y}</template>`,V(),"<slot />",`</${L}></template>`,...k?.styles.map(N=>N.content)??[],...k?.customBlocks.map(N=>N.content)??[]].join(`
62
+ `);mf(`[render] ${c} in ${Date.now()-E}ms.`);let F={vueSrc:q,pageData:T,deadLinks:K,includes:O};return gf.set(f,F),F}}var hf=/<\/script>/,xx=/<\s*script[^>]*\blang=['"]ts['"][^>]*/,Cx=/<\s*script[^>]*\bsetup\b[^>]*/,bx=/<\s*script[^>]*\bclient\b[^>]*/,Sx=/((?:^|\n|;)\s*)export(\s*)default/,Rx=/((?:^|\n|;)\s*)export(.+)as(\s*)default/;function wx(e,t,r){let n=e.findIndex(s=>hf.test(s)&&!Cx.test(s)&&!bx.test(s)),o=e.findIndex(s=>xx.test(s))>-1,i=`
63
+ import { provide } from 'vue'
64
+ import { useRoute } from 'vue-router'
65
+ export const data = ${Fl(t)}
66
+ export default {
67
+ name:'${t.relativePath}',
68
+ data() {
69
+ return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter }
70
+ },
71
+ setup() {
72
+ const route = useRoute()
73
+ route.meta.frontmatter = Object.assign(route.meta.frontmatter || {}, data.frontmatter || {})
74
+ provide('pageData', data)
75
+ }
76
+ }`;if(n>-1){let s=e[n],a=Sx.test(s)||Rx.test(s);e[n]=s.replace(hf,`${a?"":`
77
+ ${i}`}</script>`)}else e.unshift(`<script ${o?'lang="ts"':""}>
78
+ ${i}</script>`);return e}l();var Nt=J(fe(),1);import Ex from"consola";function _f(e,t){e.includes("{%")&&e.includes("%}")&&Ex.error(`${`${t}
79
+ `} Please ${(0,Nt.red)("remove")} ${(0,Nt.cyan)("{% %}")}, because it conflicts with ${(0,Nt.yellow)("markdown-it-attrs")}.`)}function Tx(e,t){let r=[];t.config.features?.katex&&(r.push(`import "${ee(Me("katex/dist/katex.min.css",!0))}"`),r.push(`import "${ee(Dt(t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["index","css-vars"].forEach(s=>{o.push(Dt(n,"styles",`${s}.css`)),o.push(Dt(n,"styles",`${s}.scss`))});for(let s of o)nr.existsSync(s)&&r.push(`import "${ee(s)}"`)}return r.join(`
80
+ `)}function $x(e){let t=['import { defu } from "defu"','const messages = { "zh-CN": {}, en: {} }'],r=["zh-CN","en"];return e.forEach((n,o)=>{r.forEach(i=>{let s=`${n}/locales/${i}.yml`;if(nr.existsSync(s)&&nr.readFileSync(s,"utf-8")){let a=i.replace("-","")+o;t.unshift(`import ${a} from "${ee(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
81
+ `)}function Fx(e){let t=e.addons.filter(i=>i.global).filter(i=>nr.existsSync(Dt(i.root,"./App.vue"))),r=i=>`Addon${Ox(i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
82
+ `),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
83
+ export default [${o}]`}var Ix='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function xf(e){let t=Dt(e,"App.vue");return nr.existsSync(t)?[`import AppVue from "${ee(t)}"`,"export default AppVue"].join(`
84
+ `):Ix}function Cf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i,s=!1,a;return{name:"valaxy:loader",enforce:"pre",async configResolved(u){a=u,i=await vf(e,e.userRoot,e.pages,a.define,a.command==="build",e.config.siteConfig.lastUpdated)},configureServer(u){u.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(u){return u.startsWith(n)?u:null},load(u){if(u==="/@valaxyjs/config")return`export default ${JSON.stringify(JSON.stringify(r))}`;if(u==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(u==="/@valaxyjs/styles")return Tx(o,e);if(u==="/@valaxyjs/locales")return $x(o);if(u==="/@valaxyjs/addons")return Fx(e);if(u==="/@valaxyjs/UserAppVue")return xf(e.userRoot);if(u==="/@valaxyjs/ThemeAppVue")return xf(e.themeRoot);if(u.startsWith(n))return{code:"",map:{mappings:""}}},async transform(u,f){if(f.endsWith(".md")){_f(u,f),u.replace("{%","{%"),u.replace("%}","%}");let{vueSrc:c,deadLinks:d,includes:p}=await i(u,f,a.publicDir);return d.length&&(s=!0),p.length&&p.forEach(_=>{this.addWatchFile(_)}),c}},renderStart(){if(s&&!r.ignoreDeadLinks)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(u){let f=Ye(),{file:c,server:d,read:p}=u,_=C=>{t.onConfigReload?.(C,e.config),Object.assign(e.config,C),r=C;let b=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(b).map(O=>d.moduleGraph.getModuleById(O))].filter(O=>!!O)};if([e.configFile].includes(c)){let{config:C}=await we({userRoot:e.userRoot});return _(C)}if(c===e.siteConfigFile){let{siteConfig:C}=await zr(e.userRoot);return r.siteConfig=Px(C,Wr),_(r)}if(c===e.themeConfigFile){let{themeConfig:C}=await jl(e),b=r.themeConfig.pkg;return C.pkg=b,r.themeConfig=C,_(r)}if(c===kx(e.themeRoot,"valaxy.config.ts")){let C=await _i(e),b=ft(e.config,C),{config:E}=await vi(e,b);return _(E)}if(c.endsWith(".md")){let C=await p(),{pageData:b,vueSrc:E}=await i(C,c,Dt(e.userRoot,"public")),O=`/${Ax(`${e.userRoot}/pages`,c)}`,I={path:O,pageData:b};d.ws.send({type:"custom",event:"valaxy:pageData",data:I}),u.read=()=>E,Ft.success(`${(0,an.yellow)("[HMR]")} ${O} ${(0,an.dim)(`updated in ${f()}`)}`)}}}}var on=new Lx({html:!0});async function or(e,t={}){let{roots:r,config:n}=e;await Ai(on,e,!0);let o=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics","meting-js"]);return[Cf(e,t),cf(e),lf(e),Nx({include:[/\.vue$/,/\.md$/],template:{compilerOptions:{isCustomElement:i=>o.has(i)},...n.vue?.template},...n.vue}),jx(),df(e),Dx({layoutsDirs:r.map(i=>`${i}/layouts`),...n.layouts}),Vx({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(i=>`${i}/components`).concat(["src/components","components"]),dts:qx(e.tempDir,"components.d.ts"),...n.components}),await rf(e),Hx({runtimeOnly:!0,compositionOnly:!0,include:r.map(i=>`${i}/locales/**`)}),Mx(),uf(e)]}l();import{writeFile as Bx}from"node:fs/promises";import{ensureFile as Ux}from"fs-extra";function cn(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function bf(e){let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:cn(n),to:cn(r.to)});else t.push({from:cn(r.from),to:cn(r.to)});return t}async function Sf(e,t){await Ux(t),await Bx(t,`
85
+ <!DOCTYPE html>
86
+ <html lang="en">
87
+ <head>
88
+ <meta charset="UTF-8">
89
+ <meta http-equiv="refresh" content="0; url=${e}">
90
+ <link rel="canonical" href="${e}">
91
+ </head>
92
+ <script>
93
+ window.location.href = '${e}' + window.location.search + window.location.hash
94
+ </script>
95
+ </html>
96
+ `)}async function kf(e,t={}){let r=Af(t,{plugins:await or(e)});await Gx(r)}async function Pf(e,t={}){let r={plugins:await or(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};r.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){zx({hostname:e.config.siteConfig.url})}};let n=Af(r,t);await Wx({},n)}async function Of(e){let{userRoot:t}=e,r=Ef(t,"dist/index.html");if(ln.existsSync(r)){wf.info("post process for ssg...");let n=await ln.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){wf.warn("fix incomplete index.html...");let i=n.lastIndexOf(o);await ln.writeFile(r,n.slice(0,i+o.length),"utf-8")}}await Kx(e)}async function Kx(e){let t=Ef(e.userRoot,"dist"),n=bf(e.config.siteConfig?.redirects??[]).map(async o=>{let i=Rf(t,`${o.from}.html`),s=Rf(t,`${o.to}.html`);if(!await ln.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await Sf(o.to,i)});await Promise.all(n)}l();l();l();import Tf from"node:process";import{createServer as Yx,mergeConfig as Xx}from"vite";async function $f(e,t={},r={}){Tf.env.EDITOR=Tf.env.EDITOR||"code";let n=await or(e,r),o=e.mode==="dev"&&e.config.devtools,i=Xx(t,{plugins:[...n,o&&(await import("vite-plugin-vue-devtools")).default]});return await Yx(i)}l();l();import{createHooks as Qx}from"hookable";var Zx=["build:before","build:after"];function un(e){let t=Qx();typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(Zx.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:ht,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}l();var z=J(fe(),1);import*as Ff from"node:readline";import Jx from"node:path";import e1 from"node:os";import nt from"node:process";import t1 from"consola";import{mergeConfig as r1}from"vite";var fn;function pn(e,t,r){if(console.log(),console.log(` ${(0,z.bold)("\u{1F30C} Valaxy")} ${(0,z.blue)(`v${ht}`)}`),console.log(),console.log(`${(0,z.dim)(" \u{1FA90} theme ")} > ${e.theme?(0,z.green)(e.theme):(0,z.gray)("none")}`),console.log(` ${(0,z.dim)("\u{1F4C1}")} ${(0,z.dim)(Jx.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,z.dim)(" Preview ")} > ${(0,z.cyan)(`http://localhost:${(0,z.bold)(t)}/`)}`),r&&Object.values(e1.networkInterfaces()).forEach(u=>(u||[]).filter(f=>f.family==="IPv4"&&!f.address.includes("127.0.0.1")).forEach(({address:f})=>{console.log(`${(0,z.dim)(" Network ")} > ${(0,z.blue)(`http://${f}:${(0,z.bold)(t)}/`)}`)})),console.log();let n=`${(0,z.underline)("r")}${(0,z.dim)("estart")}`,o=`${(0,z.underline)("e")}${(0,z.dim)("dit")}`,i=`${(0,z.underline)("o")}${(0,z.dim)("pen")}`,s=`${(0,z.underline)("q")}${(0,z.dim)("r")}`,a=`${(0,z.dim)(" | ")}`;console.log(`${(0,z.dim)(" shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function ir(e,t){fn&&(Ft.info("close server..."),await fn.close());let r=r1(await nn(e,"serve"),t);try{fn=await $f(e,r,{async onConfigReload(n,o,i=!1){i&&(Ft.info(`${(0,z.yellow)("force")} reload the server`),ir(e,t));let s=!1;n.theme!==o.theme&&(s=!0),s&&ir(e,t)}}),await fn.listen(),Ft.ready("server ready")}catch(n){t1.error(`failed to start server. error:
97
+ `),console.error(n),nt.exit(1)}}function If(e){nt.stdin.resume(),nt.stdin.setEncoding("utf8"),Ff.emitKeypressEvents(nt.stdin),nt.stdin.isTTY&&nt.stdin.setRawMode(!0),nt.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")nt.exit();else{let[n]=e.filter(o=>o.name===t);if(n)try{n.action()}catch(o){console.error(`Failed to execute shortcut ${n.fullName}`,o)}}})}function Df(e){e.command("build [root]","build your blog to static content",t=>Ze(t).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({ssg:t,root:r,output:n,log:o})=>{$t();let i=await we({userRoot:r},"build");pn(i);let s=un(i);await s.hooks.callHook("options:resolved");let a=[];i.config.modules.rss.enable&&a.push(Zr),su(s,a);let u=Lf(await nn(i,"build"),i.config.vite||{}),f=Lf(u,{configFile:Mf.resolve(i.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:Mf.resolve(i.userRoot,n)},logLevel:o});await s.hooks.callHook("config:init"),await s.hooks.callHook("build:before");try{if(t){Ni.info(`use ${(0,Nf.yellow)("vite-ssg")} to do ssg build...`);try{await Pf(i,f),await Of(i)}catch(c){Ni.error("[vite-ssg] An internal error occurred."),console.log(c)}}else Ni.info("use vite do spa build..."),await kf(i,f)}catch(c){console.log(c)}finally{await s.hooks.callHook("build:after")}})}l();import Vf from"node:path";import{exec as i1}from"node:child_process";import s1 from"node:process";import a1 from"node:os";import c1 from"fs-extra";import{mergeConfig as l1}from"vite";import u1 from"qrcode";l();import n1 from"node:net";async function Di(e){return await o1(e)?e:await Di(e+1)}function o1(e){return new Promise(t=>{let r=n1.createServer(n=>{n.write(`Echo server\r
98
+ `),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Hf(e){e.command("* [root]","Start a local server for Valaxy",t=>Ze(t).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"info",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:t,port:r,open:n,remote:o,log:i})=>{hi(),c1.existsSync(Vf.resolve(t,"pages"))||s1.exit(0);let s=r||await Di(4859),a=await we({userRoot:t});un(a);let u=l1({configFile:Vf.resolve(a.clientRoot,"vite.config.ts"),server:{watch:{ignored:[`!${a.themeRoot}/**`,`${a.userRoot}/**.md`]},port:s,strictPort:!0,open:n,host:o?"0.0.0.0":"localhost"},logLevel:i},a.config.vite||{});await ir(a,u),pn(a,s,o),If([{name:"r",fullName:"restart",action(){ir(a,u)}},{name:"o",fullName:"open",async action(){let{default:c}=await import("open");c(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let d=`http://${Object.values(a1.networkInterfaces()).flat().filter(p=>p?.family==="IPv4"&&!p.address.includes("127.0.0.1"))[0]?.address||"localhost"}:${s}`;u1.toString(d,{type:"terminal"},(p,_)=>{if(p)throw p;console.log(_)})}},{name:"e",fullName:"edit",action(){i1(`code "${t}"`)}}])})}var sr=p1(d1(f1.argv)).scriptName("valaxy").usage("$0 [args]").version(ht).showHelpOnFail(!1).alias("h","help").alias("v","version");Hf(sr);Df(sr);hu(sr);var m1=[Zr,fu];m1.forEach(e=>{e.extendCli?.(sr)});function cT(){sr.help().parse()}export{Ut as a,Me as b,Tl as c,di as d,mi as e,ee as f,$l as g,Fl as h,by as i,Pt as j,Wr as k,OR as l,Ry as m,zr as n,Ll as o,Py as p,jR as q,Qt as r,ft as s,Nl as t,$y as u,zR as v,Dl as w,Kr as x,jl as y,My as z,aw as A,uw as B,vi as C,we as D,_i as E,nn as F,nf as G,kf as H,Pf as I,Of as J,Kx as K,$f as L,sr as M,cT as N};
99
+ /*! Bundled license information:
100
+
101
+ is-extglob/index.js:
102
+ (*!
103
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
104
+ *
105
+ * Copyright (c) 2014-2016, Jon Schlinkert.
106
+ * Licensed under the MIT License.
107
+ *)
108
+
109
+ is-glob/index.js:
110
+ (*!
111
+ * is-glob <https://github.com/jonschlinkert/is-glob>
112
+ *
113
+ * Copyright (c) 2014-2017, Jon Schlinkert.
114
+ * Released under the MIT License.
115
+ *)
116
+
117
+ is-number/index.js:
118
+ (*!
119
+ * is-number <https://github.com/jonschlinkert/is-number>
120
+ *
121
+ * Copyright (c) 2014-present, Jon Schlinkert.
122
+ * Released under the MIT License.
123
+ *)
124
+
125
+ to-regex-range/index.js:
126
+ (*!
127
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
128
+ *
129
+ * Copyright (c) 2015-present, Jon Schlinkert.
130
+ * Released under the MIT License.
131
+ *)
132
+
133
+ fill-range/index.js:
134
+ (*!
135
+ * fill-range <https://github.com/jonschlinkert/fill-range>
136
+ *
137
+ * Copyright (c) 2014-present, Jon Schlinkert.
138
+ * Licensed under the MIT License.
139
+ *)
140
+
141
+ queue-microtask/index.js:
142
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
143
+
144
+ run-parallel/index.js:
145
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
146
+ */