valaxy 0.17.0-beta.3 → 0.17.0-beta.4
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.
- package/client/components/ValaxyCopyright.vue +1 -1
- package/client/composables/categories.ts +22 -22
- package/client/composables/post.ts +4 -1
- package/client/composables/tags.ts +1 -1
- package/client/modules/valaxy.ts +2 -3
- package/client/stores/site.ts +11 -5
- package/client/utils/time.ts +1 -1
- package/dist/chunk-JO3TW6XW.cjs +149 -0
- package/dist/chunk-U67MKQRJ.mjs +150 -0
- package/dist/{config-OaNeBI1c.d.cts → config-hKSeaczj.d.cts} +8 -7
- package/dist/{config-OaNeBI1c.d.ts → config-hKSeaczj.d.ts} +8 -7
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +89 -48
- package/dist/node/index.d.ts +89 -48
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +16 -13
- package/shims.d.ts +62 -0
- package/types/README.md +5 -0
- package/types/config.ts +8 -6
- package/types/index.ts +1 -0
- package/dist/chunk-2HLMSZO4.mjs +0 -150
- package/dist/chunk-45B2VOLU.cjs +0 -149
- /package/dist/{chunk-GXMNHGBP.cjs → chunk-TEOGEXZQ.cjs} +0 -0
- /package/dist/{chunk-WSC7UAH5.mjs → chunk-ZO24WTQL.mjs} +0 -0
package/dist/chunk-45B2VOLU.cjs
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGXMNHGBPcjs = require('./chunk-GXMNHGBP.cjs');var Fi=_chunkGXMNHGBPcjs.b.call(void 0, ft=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ft,"__esModule",{value:!0});ft.splitWhen=ft.flatten=void 0;function qf(e){return e.reduce((t,r)=>[].concat(t,r),[])}ft.flatten=qf;function Bf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}ft.splitWhen=Bf});var Ii=_chunkGXMNHGBPcjs.b.call(void 0, Jt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Jt,"__esModule",{value:!0});Jt.isEnoentCodeError=void 0;function Uf(e){return e.code==="ENOENT"}Jt.isEnoentCodeError=Uf});var Li=_chunkGXMNHGBPcjs.b.call(void 0, er=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(er,"__esModule",{value:!0});er.createDirentFromStats=void 0;var on=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 Gf(e,t){return new on(e,t)}er.createDirentFromStats=Gf});var Vi=_chunkGXMNHGBPcjs.b.call(void 0, ee=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ee,"__esModule",{value:!0});ee.convertPosixPathToPattern=ee.convertWindowsPathToPattern=ee.convertPathToPattern=ee.escapePosixPath=ee.escapeWindowsPath=ee.escape=ee.removeLeadingDotSegment=ee.makeAbsolute=ee.unixify=void 0;var Wf=_chunkGXMNHGBPcjs.a.call(void 0, "os"),zf=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Mi=Wf.platform()==="win32",Kf=2,Yf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Xf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Qf=/^\\\\([.?])/,Zf=/\\(?![!()+@[\]{}])/g;function Jf(e){return e.replace(/\\/g,"/")}ee.unixify=Jf;function ep(e,t){return zf.resolve(e,t)}ee.makeAbsolute=ep;function tp(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Kf)}return e}ee.removeLeadingDotSegment=tp;ee.escape=Mi?sn:an;function sn(e){return e.replace(Xf,"\\$2")}ee.escapeWindowsPath=sn;function an(e){return e.replace(Yf,"\\$2")}ee.escapePosixPath=an;ee.convertPathToPattern=Mi?Ni:Di;function Ni(e){return sn(e).replace(Qf,"//$1").replace(Zf,"/")}ee.convertWindowsPathToPattern=Ni;function Di(e){return an(e)}ee.convertPosixPathToPattern=Di});var ji=_chunkGXMNHGBPcjs.b.call(void 0, (Dx,Hi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Hi.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 Ui=_chunkGXMNHGBPcjs.b.call(void 0, (Hx,Bi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var rp=ji(),qi={"{":"}","(":")","[":"]"},np=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=qi[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},op=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=qi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Bi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(rp(t))return!0;var n=np;return r&&r.strict===!1&&(n=op),n(t)}});var Wi=_chunkGXMNHGBPcjs.b.call(void 0, (qx,Gi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ip=Ui(),sp=_chunkGXMNHGBPcjs.a.call(void 0, "path").posix.dirname,ap=_chunkGXMNHGBPcjs.a.call(void 0, "os").platform()==="win32",cn="/",cp=/\\/g,lp=/[\{\[].*[\}\]]$/,up=/(^|[^\\])([\{\[]|\([^\)]+$)/,fp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Gi.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ap&&t.indexOf(cn)<0&&(t=t.replace(cp,cn)),lp.test(t)&&(t+=cn),t+="a";do t=sp(t);while(ip(t)||up.test(t));return t.replace(fp,"$1")}});var tr=_chunkGXMNHGBPcjs.b.call(void 0, ve=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );ve.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ve.find=(e,t)=>e.nodes.find(r=>r.type===t);ve.exceedsLimit=(e,t,r=1,n)=>n===!1||!ve.isInteger(e)||!ve.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ve.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)};ve.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ve.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;ve.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ve.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ve.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 rr=_chunkGXMNHGBPcjs.b.call(void 0, (Wx,Ki)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var zi=tr();Ki.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&zi.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&zi.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 Xi=_chunkGXMNHGBPcjs.b.call(void 0, (Kx,Yi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Yi.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var is=_chunkGXMNHGBPcjs.b.call(void 0, (Xx,os)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Qi=Xi(),Qe=(e,t,r)=>{if(Qi(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Qi(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(Qe.cache.hasOwnProperty(u))return Qe.cache[u].result;let f=Math.min(e,t),c=Math.max(e,t);if(Math.abs(f-c)===1){let x=e+"|"+t;return n.capture?`(${x})`:n.wrap===!1?x:`(?:${x})`}let d=ns(e)||ns(t),p={min:e,max:t,a:f,b:c},_=[],y=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),f<0){let x=c<0?Math.abs(c):1;y=Zi(x,Math.abs(f),p,n),f=p.a=0}return c>=0&&(_=Zi(f,c,p,n)),p.negatives=y,p.positives=_,p.result=pp(y,_,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&_.length+y.length>1&&(p.result=`(?:${p.result})`),Qe.cache[u]=p,p.result};function pp(e,t,r){let n=ln(e,t,"-",!1,r)||[],o=ln(t,e,"",!1,r)||[],i=ln(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function dp(e,t){let r=1,n=1,o=es(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=es(e,r);for(o=ts(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=ts(t+1,n)-1;return i=[...i],i.sort(hp),i}function mp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=gp(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+=yp(u,f,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function Zi(e,t,r,n){let o=dp(e,t),i=[],s=e,a;for(let u=0;u<o.length;u++){let f=o[u],c=mp(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+rs(a.count),s=f+1;continue}r.isPadded&&(d=vp(f,r,n)),c.string=d+c.pattern+rs(c.count),i.push(c),s=f+1,a=c}return i}function ln(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!Ji(t,"string",a)&&i.push(r+a),n&&Ji(t,"string",a)&&i.push(r+a)}return i}function gp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function hp(e,t){return e>t?1:t>e?-1:0}function Ji(e,t,r){return e.some(n=>n[t]===r)}function es(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ts(e,t){return e-e%Math.pow(10,t)}function rs(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function yp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function ns(e){return/^-?(0+)\d/.test(e)}function vp(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}}`}}Qe.cache={};Qe.clearCache=()=>Qe.cache={};os.exports=Qe});var pn=_chunkGXMNHGBPcjs.b.call(void 0, (Zx,ds)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var _p=_chunkGXMNHGBPcjs.a.call(void 0, "util"),cs=is(),ss=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),xp=e=>t=>e===!0?Number(t):String(t),un=e=>typeof e=="number"||typeof e=="string"&&e!=="",Pt=e=>Number.isInteger(+e),fn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Cp=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,bp=(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},as=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Sp=(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},ls=(e,t,r,n)=>{if(r)return cs(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},us=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return cs(e,t,r)},fs=(...e)=>new RangeError("Invalid range arguments: "+_p.inspect(...e)),ps=(e,t,r)=>{if(r.strictRanges===!0)throw fs([e,t]);return[]},Rp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},wp=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw fs([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=fn(a)||fn(u)||fn(f),d=c?Math.max(a.length,u.length,f.length):0,p=c===!1&&Cp(e,t,n)===!1,_=n.transform||xp(p);if(n.toRegex&&r===1)return ls(as(e,d),as(t,d),!0,n);let y={negatives:[],positives:[]},x=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),C=[],S=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?x(o):C.push(bp(_(o,S),d,p)),o=s?o-r:o+r,S++;return n.toRegex===!0?r>1?Sp(y,n):us(C,null,{wrap:!1,...n}):C},Ep=(e,t,r=1,n={})=>{if(!Pt(e)&&e.length>1||!Pt(t)&&t.length>1)return ps(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 ls(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?us(c,null,{wrap:!1,options:n}):c},nr=(e,t,r,n={})=>{if(t==null&&un(e))return[e];if(!un(e)||!un(t))return ps(e,t,n);if(typeof r=="function")return nr(e,t,1,{transform:r});if(ss(r))return nr(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Pt(r)?Pt(e)&&Pt(t)?wp(e,t,r,o):Ep(e,t,Math.max(Math.abs(r),1),o):r!=null&&!ss(r)?Rp(r,o):nr(e,t,1,r)};ds.exports=nr});var hs=_chunkGXMNHGBPcjs.b.call(void 0, (eC,gs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ap=pn(),ms=tr(),kp=(e,t={})=>{let r=(n,o={})=>{let i=ms.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=ms.reduce(n.nodes),d=Ap(...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)};gs.exports=kp});var _s=_chunkGXMNHGBPcjs.b.call(void 0, (rC,vs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Pp=pn(),ys=rr(),pt=tr(),Ze=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(Ze(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?Ze(o,i,r):o+i);return pt.flatten(n)},Op=(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(Ze(a.pop(),ys(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(Ze(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=pt.reduce(o.nodes);if(pt.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=Pp(...d,t);p.length===0&&(p=ys(o,t)),a.push(Ze(a.pop(),p)),o.nodes=[];return}let u=pt.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(Ze(a.pop(),f,u));continue}if(p.value&&p.type!=="open"){f.push(Ze(f.pop(),p.value));continue}p.nodes&&n(p,o)}return f};return pt.flatten(n(e))};vs.exports=Op});var Cs=_chunkGXMNHGBPcjs.b.call(void 0, (oC,xs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );xs.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:`
|
|
2
|
-
`,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 Es=_chunkGXMNHGBPcjs.b.call(void 0, (sC,ws)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Tp=rr(),{MAX_LENGTH:bs,CHAR_BACKSLASH:dn,CHAR_BACKTICK:$p,CHAR_COMMA:Fp,CHAR_DOT:Ip,CHAR_LEFT_PARENTHESES:Lp,CHAR_RIGHT_PARENTHESES:Mp,CHAR_LEFT_CURLY_BRACE:Np,CHAR_RIGHT_CURLY_BRACE:Dp,CHAR_LEFT_SQUARE_BRACKET:Ss,CHAR_RIGHT_SQUARE_BRACKET:Rs,CHAR_DOUBLE_QUOTE:Vp,CHAR_SINGLE_QUOTE:Hp,CHAR_NO_BREAK_SPACE:jp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:qp}=Cs(),Bp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs;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,_={},y=()=>e[c++],x=C=>{if(C.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&C.type==="text"){a.value+=C.value;return}return s.nodes.push(C),C.parent=s,C.prev=a,a=C,C};for(x({type:"bos"});c<f;)if(s=i[i.length-1],p=y(),!(p===qp||p===jp)){if(p===dn){x({type:"text",value:(t.keepEscaping?p:"")+y()});continue}if(p===Rs){x({type:"text",value:"\\"+p});continue}if(p===Ss){u++;let C=!0,S;for(;c<f&&(S=y());){if(p+=S,S===Ss){u++;continue}if(S===dn){p+=y();continue}if(S===Rs&&(u--,u===0))break}x({type:"text",value:p});continue}if(p===Lp){s=x({type:"paren",nodes:[]}),i.push(s),x({type:"text",value:p});continue}if(p===Mp){if(s.type!=="paren"){x({type:"text",value:p});continue}s=i.pop(),x({type:"text",value:p}),s=i[i.length-1];continue}if(p===Vp||p===Hp||p===$p){let C=p,S;for(t.keepQuotes!==!0&&(p="");c<f&&(S=y());){if(S===dn){p+=S+y();continue}if(S===C){t.keepQuotes===!0&&(p+=S);break}p+=S}x({type:"text",value:p});continue}if(p===Np){d++;let S={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=x(S),i.push(s),x({type:"open",value:p});continue}if(p===Dp){if(s.type!=="brace"){x({type:"text",value:p});continue}let C="close";s=i.pop(),s.close=!0,x({type:C,value:p}),d--,s=i[i.length-1];continue}if(p===Fp&&d>0){if(s.ranges>0){s.ranges=0;let C=s.nodes.shift();s.nodes=[C,{type:"text",value:Tp(s)}]}x({type:"comma",value:p}),s.commas++;continue}if(p===Ip&&d>0&&s.commas===0){let C=s.nodes;if(d===0||C.length===0){x({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"){C.pop();let S=C[C.length-1];S.value+=a.value+p,a=S,s.ranges--;continue}x({type:"dot",value:p});continue}x({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 C=i[i.length-1],S=C.nodes.indexOf(s);C.nodes.splice(S,1,...s.nodes)}while(i.length>0);return x({type:"eos"}),o};ws.exports=Bp});var Ps=_chunkGXMNHGBPcjs.b.call(void 0, (cC,ks)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var As=rr(),Up=hs(),Gp=_s(),Wp=Es(),ge=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=ge.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(ge.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ge.parse=(e,t={})=>Wp(e,t);ge.stringify=(e,t={})=>As(typeof e=="string"?ge.parse(e,t):e,t);ge.compile=(e,t={})=>(typeof e=="string"&&(e=ge.parse(e,t)),Up(e,t));ge.expand=(e,t={})=>{typeof e=="string"&&(e=ge.parse(e,t));let r=Gp(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ge.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ge.compile(e,t):ge.expand(e,t);ks.exports=ge});var Ot=_chunkGXMNHGBPcjs.b.call(void 0, (uC,Is)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var zp=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Ee="\\\\/",Os=`[^${Ee}]`,Le="\\.",Kp="\\+",Yp="\\?",or="\\/",Xp="(?=.)",Ts="[^/]",mn=`(?:${or}|$)`,$s=`(?:^|${or})`,gn=`${Le}{1,2}${mn}`,Qp=`(?!${Le})`,Zp=`(?!${$s}${gn})`,Jp=`(?!${Le}{0,1}${mn})`,ed=`(?!${gn})`,td=`[^.${or}]`,rd=`${Ts}*?`,Fs={DOT_LITERAL:Le,PLUS_LITERAL:Kp,QMARK_LITERAL:Yp,SLASH_LITERAL:or,ONE_CHAR:Xp,QMARK:Ts,END_ANCHOR:mn,DOTS_SLASH:gn,NO_DOT:Qp,NO_DOTS:Zp,NO_DOT_SLASH:Jp,NO_DOTS_SLASH:ed,QMARK_NO_DOT:td,STAR:rd,START_ANCHOR:$s},nd={...Fs,SLASH_LITERAL:`[${Ee}]`,QMARK:Os,STAR:`${Os}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${Ee}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${Ee}])${Le}{1,2}(?:[${Ee}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${Ee}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${Ee}]|$))`,QMARK_NO_DOT:`[^.${Ee}]`,START_ANCHOR:`(?:^|[${Ee}])`,END_ANCHOR:`(?:[${Ee}]|$)`},od={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"};Is.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:od,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:zp.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?nd:Fs}}});var Tt=_chunkGXMNHGBPcjs.b.call(void 0, me=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var id=_chunkGXMNHGBPcjs.a.call(void 0, "path"),sd=process.platform==="win32",{REGEX_BACKSLASH:ad,REGEX_REMOVE_BACKSLASH:cd,REGEX_SPECIAL_CHARS:ld,REGEX_SPECIAL_CHARS_GLOBAL:ud}=Ot();me.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);me.hasRegexChars=e=>ld.test(e);me.isRegexChar=e=>e.length===1&&me.hasRegexChars(e);me.escapeRegex=e=>e.replace(ud,"\\$1");me.toPosixSlashes=e=>e.replace(ad,"/");me.removeBackslashes=e=>e.replace(cd,t=>t==="\\"?"":t);me.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};me.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:sd===!0||id.sep==="\\";me.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?me.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};me.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};me.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var qs=_chunkGXMNHGBPcjs.b.call(void 0, (mC,js)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ls=Tt(),{CHAR_ASTERISK:hn,CHAR_AT:fd,CHAR_BACKWARD_SLASH:$t,CHAR_COMMA:pd,CHAR_DOT:yn,CHAR_EXCLAMATION_MARK:vn,CHAR_FORWARD_SLASH:Hs,CHAR_LEFT_CURLY_BRACE:_n,CHAR_LEFT_PARENTHESES:xn,CHAR_LEFT_SQUARE_BRACKET:dd,CHAR_PLUS:md,CHAR_QUESTION_MARK:Ms,CHAR_RIGHT_CURLY_BRACE:gd,CHAR_RIGHT_PARENTHESES:Ns,CHAR_RIGHT_SQUARE_BRACKET:hd}=Ot(),Ds=e=>e===Hs||e===$t,Vs=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},yd=(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,y=!1,x=!1,C=!1,S=!1,O=!1,I=!1,B=!1,k=!1,L=0,R,w,T={value:"",depth:0,isGlob:!1},W=()=>f>=n,m=()=>u.charCodeAt(f+1),A=()=>(R=w,u.charCodeAt(++f));for(;f<n;){w=A();let j;if(w===$t){O=T.backslashes=!0,w=A(),w===_n&&(S=!0);continue}if(S===!0||w===_n){for(L++;W()!==!0&&(w=A());){if(w===$t){O=T.backslashes=!0,A();continue}if(w===_n){L++;continue}if(S!==!0&&w===yn&&(w=A())===yn){if(p=T.isBrace=!0,y=T.isGlob=!0,k=!0,o===!0)continue;break}if(S!==!0&&w===pd){if(p=T.isBrace=!0,y=T.isGlob=!0,k=!0,o===!0)continue;break}if(w===gd&&(L--,L===0)){S=!1,p=T.isBrace=!0,k=!0;break}}if(o===!0)continue;break}if(w===Hs){if(i.push(f),s.push(T),T={value:"",depth:0,isGlob:!1},k===!0)continue;if(R===yn&&f===c+1){c+=2;continue}d=f+1;continue}if(r.noext!==!0&&(w===md||w===fd||w===hn||w===Ms||w===vn)===!0&&m()===xn){if(y=T.isGlob=!0,x=T.isExtglob=!0,k=!0,w===vn&&f===c&&(B=!0),o===!0){for(;W()!==!0&&(w=A());){if(w===$t){O=T.backslashes=!0,w=A();continue}if(w===Ns){y=T.isGlob=!0,k=!0;break}}continue}break}if(w===hn){if(R===hn&&(C=T.isGlobstar=!0),y=T.isGlob=!0,k=!0,o===!0)continue;break}if(w===Ms){if(y=T.isGlob=!0,k=!0,o===!0)continue;break}if(w===dd){for(;W()!==!0&&(j=A());){if(j===$t){O=T.backslashes=!0,A();continue}if(j===hd){_=T.isBracket=!0,y=T.isGlob=!0,k=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&w===vn&&f===c){I=T.negated=!0,c++;continue}if(r.noparen!==!0&&w===xn){if(y=T.isGlob=!0,o===!0){for(;W()!==!0&&(w=A());){if(w===xn){O=T.backslashes=!0,w=A();continue}if(w===Ns){k=!0;break}}continue}break}if(y===!0){if(k=!0,o===!0)continue;break}}r.noext===!0&&(x=!1,y=!1);let $=u,D="",h="";c>0&&(D=u.slice(0,c),u=u.slice(c),d-=c),$&&y===!0&&d>0?($=u.slice(0,d),h=u.slice(d)):y===!0?($="",h=u):$=u,$&&$!==""&&$!=="/"&&$!==u&&Ds($.charCodeAt($.length-1))&&($=$.slice(0,-1)),r.unescape===!0&&(h&&(h=Ls.removeBackslashes(h)),$&&O===!0&&($=Ls.removeBackslashes($)));let v={prefix:D,input:e,start:c,base:$,glob:h,isBrace:p,isBracket:_,isGlob:y,isExtglob:x,isGlobstar:C,negated:I,negatedExtglob:B};if(r.tokens===!0&&(v.maxDepth=0,Ds(w)||s.push(T),v.tokens=s),r.parts===!0||r.tokens===!0){let j;for(let F=0;F<i.length;F++){let M=j?j+1:c,G=i[F],H=e.slice(M,G);r.tokens&&(F===0&&c!==0?(s[F].isPrefix=!0,s[F].value=D):s[F].value=H,Vs(s[F]),v.maxDepth+=s[F].depth),(F!==0||H!=="")&&a.push(H),j=G}if(j&&j+1<e.length){let F=e.slice(j+1);a.push(F),r.tokens&&(s[s.length-1].value=F,Vs(s[s.length-1]),v.maxDepth+=s[s.length-1].depth)}v.slashes=i,v.parts=a}return v};js.exports=yd});var Gs=_chunkGXMNHGBPcjs.b.call(void 0, (hC,Us)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ir=Ot(),he=Tt(),{MAX_LENGTH:sr,POSIX_REGEX_SOURCE:vd,REGEX_NON_SPECIAL_CHARS:_d,REGEX_SPECIAL_CHARS_BACKREF:xd,REPLACEMENTS:Bs}=ir,Cd=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch (e2){return e.map(o=>he.escapeRegex(o)).join("..")}return r},dt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Cn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Bs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(sr,r.maxLength):sr,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=he.isWindows(t),f=ir.globChars(u),c=ir.extglobChars(f),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:y,DOTS_SLASH:x,NO_DOT:C,NO_DOT_SLASH:S,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:B,STAR:k,START_ANCHOR:L}=f,R=P=>`(${a}(?:(?!${L}${P.dot?x:d}).)*?)`,w=r.dot?"":C,T=r.dot?I:B,W=r.bash===!0?R(r):k;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let m={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=he.removePrefix(e,m),o=e.length;let A=[],$=[],D=[],h=i,v,j=()=>m.index===o-1,F=m.peek=(P=1)=>e[m.index+P],M=m.advance=()=>e[++m.index]||"",G=()=>e.slice(m.index+1),H=(P="",z=0)=>{m.consumed+=P,m.index+=z},re=P=>{m.output+=P.output!=null?P.output:P.value,H(P.value)},Z=()=>{let P=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)M(),m.start++,P++;return P%2===0?!1:(m.negated=!0,m.start++,!0)},Fe=P=>{m[P]++,D.push(P)},ce=P=>{m[P]--,D.pop()},V=P=>{if(h.type==="globstar"){let z=m.braces>0&&(P.type==="comma"||P.type==="brace"),E=P.extglob===!0||A.length&&(P.type==="pipe"||P.type==="paren");P.type!=="slash"&&P.type!=="paren"&&!z&&!E&&(m.output=m.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=W,m.output+=h.output)}if(A.length&&P.type!=="paren"&&(A[A.length-1].inner+=P.value),(P.value||P.output)&&re(P),h&&h.type==="text"&&P.type==="text"){h.value+=P.value,h.output=(h.output||"")+P.value;return}P.prev=h,s.push(P),h=P},de=(P,z)=>{let E={...c[z],conditions:1,inner:""};E.prev=h,E.parens=m.parens,E.output=m.output;let q=(r.capture?"(":"")+E.open;Fe("parens"),V({type:P,value:z,output:m.output?"":y}),V({type:"paren",extglob:!0,value:M(),output:q}),A.push(E)},lt=P=>{let z=P.close+(r.capture?")":""),E;if(P.type==="negate"){let q=W;if(P.inner&&P.inner.length>1&&P.inner.includes("/")&&(q=R(r)),(q!==W||j()||/^\)+$/.test(G()))&&(z=P.close=`)$))${q}`),P.inner.includes("*")&&(E=G())&&/^\.[^\\/.]+$/.test(E)){let X=Cn(E,{...t,fastpaths:!1}).output;z=P.close=`)${X})${q})`}P.prev.type==="bos"&&(m.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:v,output:z}),ce("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let P=!1,z=e.replace(xd,(E,q,X,pe,ne,nn)=>pe==="\\"?(P=!0,E):pe==="?"?q?q+pe+(ne?I.repeat(ne.length):""):nn===0?T+(ne?I.repeat(ne.length):""):I.repeat(X.length):pe==="."?d.repeat(X.length):pe==="*"?q?q+pe+(ne?W:""):W:q?E:`\\${E}`);return P===!0&&(r.unescape===!0?z=z.replace(/\\/g,""):z=z.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),z===e&&r.contains===!0?(m.output=e,m):(m.output=he.wrapOutput(z,m,t),m)}for(;!j();){if(v=M(),v==="\0")continue;if(v==="\\"){let E=F();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){v+="\\",V({type:"text",value:v});continue}let q=/^\\+/.exec(G()),X=0;if(q&&q[0].length>2&&(X=q[0].length,m.index+=X,X%2!==0&&(v+="\\")),r.unescape===!0?v=M():v+=M(),m.brackets===0){V({type:"text",value:v});continue}}if(m.brackets>0&&(v!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&v===":"){let E=h.value.slice(1);if(E.includes("[")&&(h.posix=!0,E.includes(":"))){let q=h.value.lastIndexOf("["),X=h.value.slice(0,q),pe=h.value.slice(q+2),ne=vd[pe];if(ne){h.value=X+ne,m.backtrack=!0,M(),!i.output&&s.indexOf(h)===1&&(i.output=y);continue}}}(v==="["&&F()!==":"||v==="-"&&F()==="]")&&(v=`\\${v}`),v==="]"&&(h.value==="["||h.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&h.value==="["&&(v="^"),h.value+=v,re({value:v});continue}if(m.quotes===1&&v!=='"'){v=he.escapeRegex(v),h.value+=v,re({value:v});continue}if(v==='"'){m.quotes=m.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:v});continue}if(v==="("){Fe("parens"),V({type:"paren",value:v});continue}if(v===")"){if(m.parens===0&&r.strictBrackets===!0)throw new SyntaxError(dt("opening","("));let E=A[A.length-1];if(E&&m.parens===E.parens+1){lt(A.pop());continue}V({type:"paren",value:v,output:m.parens?")":"\\)"}),ce("parens");continue}if(v==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(dt("closing","]"));v=`\\${v}`}else Fe("brackets");V({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){V({type:"text",value:v,output:`\\${v}`});continue}if(m.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(dt("opening","["));V({type:"text",value:v,output:`\\${v}`});continue}ce("brackets");let E=h.value.slice(1);if(h.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(v=`/${v}`),h.value+=v,re({value:v}),r.literalBrackets===!1||he.hasRegexChars(E))continue;let q=he.escapeRegex(h.value);if(m.output=m.output.slice(0,-h.value.length),r.literalBrackets===!0){m.output+=q,h.value=q;continue}h.value=`(${a}${q}|${h.value})`,m.output+=h.value;continue}if(v==="{"&&r.nobrace!==!0){Fe("braces");let E={type:"brace",value:v,output:"(",outputIndex:m.output.length,tokensIndex:m.tokens.length};$.push(E),V(E);continue}if(v==="}"){let E=$[$.length-1];if(r.nobrace===!0||!E){V({type:"text",value:v,output:v});continue}let q=")";if(E.dots===!0){let X=s.slice(),pe=[];for(let ne=X.length-1;ne>=0&&(s.pop(),X[ne].type!=="brace");ne--)X[ne].type!=="dots"&&pe.unshift(X[ne].value);q=Cd(pe,r),m.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let X=m.output.slice(0,E.outputIndex),pe=m.tokens.slice(E.tokensIndex);E.value=E.output="\\{",v=q="\\}",m.output=X;for(let ne of pe)m.output+=ne.output||ne.value}V({type:"brace",value:v,output:q}),ce("braces"),$.pop();continue}if(v==="|"){A.length>0&&A[A.length-1].conditions++,V({type:"text",value:v});continue}if(v===","){let E=v,q=$[$.length-1];q&&D[D.length-1]==="braces"&&(q.comma=!0,E="|"),V({type:"comma",value:v,output:E});continue}if(v==="/"){if(h.type==="dot"&&m.index===m.start+1){m.start=m.index+1,m.consumed="",m.output="",s.pop(),h=i;continue}V({type:"slash",value:v,output:_});continue}if(v==="."){if(m.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let E=$[$.length-1];h.type="dots",h.output+=v,h.value+=v,E.dots=!0;continue}if(m.braces+m.parens===0&&h.type!=="bos"&&h.type!=="slash"){V({type:"text",value:v,output:d});continue}V({type:"dot",value:v,output:d});continue}if(v==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){de("qmark",v);continue}if(h&&h.type==="paren"){let q=F(),X=v;if(q==="<"&&!he.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(G()))&&(X=`\\${v}`),V({type:"text",value:v,output:X});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){V({type:"qmark",value:v,output:B});continue}V({type:"qmark",value:v,output:I});continue}if(v==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){de("negate",v);continue}if(r.nonegate!==!0&&m.index===0){Z();continue}}if(v==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){de("plus",v);continue}if(h&&h.value==="("||r.regex===!1){V({type:"plus",value:v,output:p});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||m.parens>0){V({type:"plus",value:v});continue}V({type:"plus",value:p});continue}if(v==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){V({type:"at",extglob:!0,value:v,output:""});continue}V({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let E=_d.exec(G());E&&(v+=E[0],m.index+=E[0].length),V({type:"text",value:v});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=v,h.output=W,m.backtrack=!0,m.globstar=!0,H(v);continue}let P=G();if(r.noextglob!==!0&&/^\([^?]/.test(P)){de("star",v);continue}if(h.type==="star"){if(r.noglobstar===!0){H(v);continue}let E=h.prev,q=E.prev,X=E.type==="slash"||E.type==="bos",pe=q&&(q.type==="star"||q.type==="globstar");if(r.bash===!0&&(!X||P[0]&&P[0]!=="/")){V({type:"star",value:v,output:""});continue}let ne=m.braces>0&&(E.type==="comma"||E.type==="brace"),nn=A.length&&(E.type==="pipe"||E.type==="paren");if(!X&&E.type!=="paren"&&!ne&&!nn){V({type:"star",value:v,output:""});continue}for(;P.slice(0,3)==="/**";){let Zt=e[m.index+4];if(Zt&&Zt!=="/")break;P=P.slice(3),H("/**",3)}if(E.type==="bos"&&j()){h.type="globstar",h.value+=v,h.output=R(r),m.output=h.output,m.globstar=!0,H(v);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!pe&&j()){m.output=m.output.slice(0,-(E.output+h.output).length),E.output=`(?:${E.output}`,h.type="globstar",h.output=R(r)+(r.strictSlashes?")":"|$)"),h.value+=v,m.globstar=!0,m.output+=E.output+h.output,H(v);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&P[0]==="/"){let Zt=P[1]!==void 0?"|$":"";m.output=m.output.slice(0,-(E.output+h.output).length),E.output=`(?:${E.output}`,h.type="globstar",h.output=`${R(r)}${_}|${_}${Zt})`,h.value+=v,m.output+=E.output+h.output,m.globstar=!0,H(v+M()),V({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&P[0]==="/"){h.type="globstar",h.value+=v,h.output=`(?:^|${_}|${R(r)}${_})`,m.output=h.output,m.globstar=!0,H(v+M()),V({type:"slash",value:"/",output:""});continue}m.output=m.output.slice(0,-h.output.length),h.type="globstar",h.output=R(r),h.value+=v,m.output+=h.output,m.globstar=!0,H(v);continue}let z={type:"star",value:v,output:W};if(r.bash===!0){z.output=".*?",(h.type==="bos"||h.type==="slash")&&(z.output=w+z.output),V(z);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){z.output=v,V(z);continue}(m.index===m.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(m.output+=S,h.output+=S):r.dot===!0?(m.output+=O,h.output+=O):(m.output+=w,h.output+=w),F()!=="*"&&(m.output+=y,h.output+=y)),V(z)}for(;m.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(dt("closing","]"));m.output=he.escapeLast(m.output,"["),ce("brackets")}for(;m.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(dt("closing",")"));m.output=he.escapeLast(m.output,"("),ce("parens")}for(;m.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(dt("closing","}"));m.output=he.escapeLast(m.output,"{"),ce("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${_}?`}),m.backtrack===!0){m.output="";for(let P of m.tokens)m.output+=P.output!=null?P.output:P.value,P.suffix&&(m.output+=P.suffix)}return m};Cn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(sr,r.maxLength):sr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Bs[e]||e;let i=he.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:y}=ir.globChars(i),x=r.dot?d:c,C=r.dot?p:c,S=r.capture?"":"?:",O={negated:!1,prefix:""},I=r.bash===!0?".*?":_;r.capture&&(I=`(${I})`);let B=w=>w.noglobstar===!0?I:`(${S}(?:(?!${y}${w.dot?f:s}).)*?)`,k=w=>{switch(w){case"*":return`${x}${u}${I}`;case".*":return`${s}${u}${I}`;case"*.*":return`${x}${I}${s}${u}${I}`;case"*/*":return`${x}${I}${a}${u}${C}${I}`;case"**":return x+B(r);case"**/*":return`(?:${x}${B(r)}${a})?${C}${u}${I}`;case"**/*.*":return`(?:${x}${B(r)}${a})?${C}${I}${s}${u}${I}`;case"**/.*":return`(?:${x}${B(r)}${a})?${s}${u}${I}`;default:{let T=/^(.*?)\.(\w+)$/.exec(w);if(!T)return;let W=k(T[1]);return W?W+s+T[2]:void 0}}},L=he.removePrefix(e,O),R=k(L);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};Us.exports=Cn});var zs=_chunkGXMNHGBPcjs.b.call(void 0, (vC,Ws)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var bd=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Sd=qs(),bn=Gs(),Sn=Tt(),Rd=Ot(),wd=e=>e&&typeof e=="object"&&!Array.isArray(e),J=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map(p=>J(p,t,r));return p=>{for(let _ of c){let y=_(p);if(y)return y}return!1}}let n=wd(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=Sn.isWindows(t),s=n?J.compileRe(e,t):J.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=J(o.ignore,c,r)}let f=(c,d=!1)=>{let{isMatch:p,match:_,output:y}=J.test(c,s,t,{glob:e,posix:i}),x={glob:e,state:a,regex:s,posix:i,input:c,output:y,match:_,isMatch:p};return typeof o.onResult=="function"&&o.onResult(x),p===!1?(x.isMatch=!1,d?x:!1):u(c)?(typeof o.onIgnore=="function"&&o.onIgnore(x),x.isMatch=!1,d?x:!1):(typeof o.onMatch=="function"&&o.onMatch(x),d?x:!0)};return r&&(f.state=a),f};J.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?Sn.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=J.matchBase(e,t,r,o):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};J.matchBase=(e,t,r,n=Sn.isWindows(r))=>(t instanceof RegExp?t:J.makeRe(t,r)).test(bd.basename(e));J.isMatch=(e,t,r)=>J(t,r)(e);J.parse=(e,t)=>Array.isArray(e)?e.map(r=>J.parse(r,t)):bn(e,{...t,fastpaths:!1});J.scan=(e,t)=>Sd(e,t);J.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=J.toRegex(a,t);return n===!0&&(u.state=e),u};J.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=bn.fastpaths(e,t)),o.output||(o=bn(e,t)),J.compileRe(o,t,r,n)};J.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/$^/}};J.constants=Rd;Ws.exports=J});var Ys=_chunkGXMNHGBPcjs.b.call(void 0, (xC,Ks)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Ks.exports=zs()});var ea=_chunkGXMNHGBPcjs.b.call(void 0, (bC,Js)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Qs=_chunkGXMNHGBPcjs.a.call(void 0, "util"),Zs=Ps(),Ae=Ys(),Rn=Tt(),Xs=e=>e===""||e==="./",K=(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=Ae(String(t[c]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let _ of e){let y=d(_,!0);(p?!y.isMatch:y.isMatch)&&(p?n.add(y.output):(n.delete(y.output),o.add(y.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};K.match=K;K.matcher=(e,t)=>Ae(e,t);K.isMatch=(e,t,r)=>Ae(t,r)(e);K.any=K.isMatch;K.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(K(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Qs.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(Xs(e)||Xs(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!Rn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};K.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Ae(String(o),r);if(n.some(s=>i(s)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Ae(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Qs.inspect(e)}"`);return[].concat(t).every(n=>Ae(n,r)(e))};K.capture=(e,t,r)=>{let n=Rn.isWindows(r),i=Ae.makeRe(String(e),{...r,capture:!0}).exec(n?Rn.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};K.makeRe=(...e)=>Ae.makeRe(...e);K.scan=(...e)=>Ae.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of Zs(String(n),t))r.push(Ae.parse(o,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Zs(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};Js.exports=K});var ca=_chunkGXMNHGBPcjs.b.call(void 0, N=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(N,"__esModule",{value:!0});N.removeDuplicateSlashes=N.matchAny=N.convertPatternsToRe=N.makeRe=N.getPatternParts=N.expandBraceExpansion=N.expandPatternsWithBraceExpansion=N.isAffectDepthOfReadingPattern=N.endsWithSlashGlobStar=N.hasGlobStar=N.getBaseDirectory=N.isPatternRelatedToParentDirectory=N.getPatternsOutsideCurrentDirectory=N.getPatternsInsideCurrentDirectory=N.getPositivePatterns=N.getNegativePatterns=N.isPositivePattern=N.isNegativePattern=N.convertToNegativePattern=N.convertToPositivePattern=N.isDynamicPattern=N.isStaticPattern=void 0;var Ed=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Ad=Wi(),wn=ea(),ta="**",kd="\\",Pd=/[*?]|^!/,Od=/\[[^[]*]/,Td=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,$d=/[!*+?@]\([^(]*\)/,Fd=/,|\.\./,Id=/(?!^)\/{2,}/g;function ra(e,t={}){return!na(e,t)}N.isStaticPattern=ra;function na(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(kd)||Pd.test(e)||Od.test(e)||Td.test(e)||t.extglob!==!1&&$d.test(e)||t.braceExpansion!==!1&&Ld(e))}N.isDynamicPattern=na;function Ld(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 Fd.test(n)}function Md(e){return ar(e)?e.slice(1):e}N.convertToPositivePattern=Md;function Nd(e){return"!"+e}N.convertToNegativePattern=Nd;function ar(e){return e.startsWith("!")&&e[1]!=="("}N.isNegativePattern=ar;function oa(e){return!ar(e)}N.isPositivePattern=oa;function Dd(e){return e.filter(ar)}N.getNegativePatterns=Dd;function Vd(e){return e.filter(oa)}N.getPositivePatterns=Vd;function Hd(e){return e.filter(t=>!En(t))}N.getPatternsInsideCurrentDirectory=Hd;function jd(e){return e.filter(En)}N.getPatternsOutsideCurrentDirectory=jd;function En(e){return e.startsWith("..")||e.startsWith("./..")}N.isPatternRelatedToParentDirectory=En;function qd(e){return Ad(e,{flipBackslashes:!1})}N.getBaseDirectory=qd;function Bd(e){return e.includes(ta)}N.hasGlobStar=Bd;function ia(e){return e.endsWith("/"+ta)}N.endsWithSlashGlobStar=ia;function Ud(e){let t=Ed.basename(e);return ia(e)||ra(t)}N.isAffectDepthOfReadingPattern=Ud;function Gd(e){return e.reduce((t,r)=>t.concat(sa(r)),[])}N.expandPatternsWithBraceExpansion=Gd;function sa(e){let t=wn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}N.expandBraceExpansion=sa;function Wd(e,t){let{parts:r}=wn.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}N.getPatternParts=Wd;function aa(e,t){return wn.makeRe(e,t)}N.makeRe=aa;function zd(e,t){return e.map(r=>aa(r,t))}N.convertPatternsToRe=zd;function Kd(e,t){return t.some(r=>r.test(e))}N.matchAny=Kd;function Yd(e){return e.replace(Id,"/")}N.removeDuplicateSlashes=Yd});var pa=_chunkGXMNHGBPcjs.b.call(void 0, (EC,fa)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Xd=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),la=Xd.PassThrough,Qd=Array.prototype.slice;fa.exports=Zd;function Zd(){let e=[],t=Qd.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=la(n);function a(){for(let c=0,d=arguments.length;c<d;c++)e.push(ua(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 _(y){function x(){y.removeListener("merge2UnpipeEnd",x),y.removeListener("end",x),i&&y.removeListener("error",C),p()}function C(S){s.emit("error",S)}if(y._readableState.endEmitted)return p();y.on("merge2UnpipeEnd",x),y.on("end",x),i&&y.on("error",C),y.pipe(s,{end:!1}),y.resume()}for(let y=0;y<c.length;y++)_(c[y]);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 ua(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ua(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(la(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ma=_chunkGXMNHGBPcjs.b.call(void 0, cr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(cr,"__esModule",{value:!0});cr.merge=void 0;var Jd=pa();function em(e){let t=Jd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>da(e)),t.once("end",()=>da(e)),t}cr.merge=em;function da(e){e.forEach(t=>t.emit("close"))}});var ga=_chunkGXMNHGBPcjs.b.call(void 0, mt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(mt,"__esModule",{value:!0});mt.isEmpty=mt.isString=void 0;function tm(e){return typeof e=="string"}mt.isString=tm;function rm(e){return e===""}mt.isEmpty=rm});var Me=_chunkGXMNHGBPcjs.b.call(void 0, le=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(le,"__esModule",{value:!0});le.string=le.stream=le.pattern=le.path=le.fs=le.errno=le.array=void 0;var nm=Fi();le.array=nm;var om=Ii();le.errno=om;var im=Li();le.fs=im;var sm=Vi();le.path=sm;var am=ca();le.pattern=am;var cm=ma();le.stream=cm;var lm=ga();le.string=lm});var _a=_chunkGXMNHGBPcjs.b.call(void 0, ue=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ue,"__esModule",{value:!0});ue.convertPatternGroupToTask=ue.convertPatternGroupsToTasks=ue.groupPatternsByBaseDirectory=ue.getNegativePatternsAsPositive=ue.getPositivePatterns=ue.convertPatternsToTasks=ue.generate=void 0;var Se=Me();function um(e,t){let r=ha(e,t),n=ha(t.ignore,t),o=ya(r),i=va(r,n),s=o.filter(c=>Se.pattern.isStaticPattern(c,t)),a=o.filter(c=>Se.pattern.isDynamicPattern(c,t)),u=An(s,i,!1),f=An(a,i,!0);return u.concat(f)}ue.generate=um;function ha(e,t){let r=e;return t.braceExpansion&&(r=Se.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Se.pattern.removeDuplicateSlashes(n))}function An(e,t,r){let n=[],o=Se.pattern.getPatternsOutsideCurrentDirectory(e),i=Se.pattern.getPatternsInsideCurrentDirectory(e),s=kn(o),a=kn(i);return n.push(...Pn(s,t,r)),"."in a?n.push(On(".",i,t,r)):n.push(...Pn(a,t,r)),n}ue.convertPatternsToTasks=An;function ya(e){return Se.pattern.getPositivePatterns(e)}ue.getPositivePatterns=ya;function va(e,t){return Se.pattern.getNegativePatterns(e).concat(t).map(Se.pattern.convertToPositivePattern)}ue.getNegativePatternsAsPositive=va;function kn(e){let t={};return e.reduce((r,n)=>{let o=Se.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}ue.groupPatternsByBaseDirectory=kn;function Pn(e,t,r){return Object.keys(e).map(n=>On(n,e[n],t,r))}ue.convertPatternGroupsToTasks=Pn;function On(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Se.pattern.convertToNegativePattern))}}ue.convertPatternGroupToTask=On});var Ca=_chunkGXMNHGBPcjs.b.call(void 0, lr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(lr,"__esModule",{value:!0});lr.read=void 0;function fm(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){xa(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){Tn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){xa(r,i);return}Tn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Tn(r,s)})})}lr.read=fm;function xa(e,t){e(t)}function Tn(e,t){e(null,t)}});var ba=_chunkGXMNHGBPcjs.b.call(void 0, ur=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ur,"__esModule",{value:!0});ur.read=void 0;function pm(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}}ur.read=pm});var Sa=_chunkGXMNHGBPcjs.b.call(void 0, He=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(He,"__esModule",{value:!0});He.createFileSystemAdapter=He.FILE_SYSTEM_ADAPTER=void 0;var fr=_chunkGXMNHGBPcjs.a.call(void 0, "fs");He.FILE_SYSTEM_ADAPTER={lstat:fr.lstat,stat:fr.stat,lstatSync:fr.lstatSync,statSync:fr.statSync};function dm(e){return e===void 0?He.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},He.FILE_SYSTEM_ADAPTER),e)}He.createFileSystemAdapter=dm});var Ra=_chunkGXMNHGBPcjs.b.call(void 0, Fn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Fn,"__esModule",{value:!0});var mm=Sa(),$n=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=mm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};Fn.default=$n});var Je=_chunkGXMNHGBPcjs.b.call(void 0, je=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(je,"__esModule",{value:!0});je.statSync=je.stat=je.Settings=void 0;var wa=Ca(),gm=ba(),In=Ra();je.Settings=In.default;function hm(e,t,r){if(typeof t=="function"){wa.read(e,Ln(),t);return}wa.read(e,Ln(t),r)}je.stat=hm;function ym(e,t){let r=Ln(t);return gm.read(e,r)}je.statSync=ym;function Ln(e={}){return e instanceof In.default?e:new In.default(e)}});var ka=_chunkGXMNHGBPcjs.b.call(void 0, (WC,Aa)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ea;Aa.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Ea||(Ea=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Oa=_chunkGXMNHGBPcjs.b.call(void 0, (KC,Pa)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Pa.exports=_m;var vm=ka();function _m(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?vm(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 Mn=_chunkGXMNHGBPcjs.b.call(void 0, dr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(dr,"__esModule",{value:!0});dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var pr=process.versions.node.split(".");if(pr[0]===void 0||pr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ta=Number.parseInt(pr[0],10),xm=Number.parseInt(pr[1],10),$a=10,Cm=10,bm=Ta>$a,Sm=Ta===$a&&xm>=Cm;dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=bm||Sm});var Fa=_chunkGXMNHGBPcjs.b.call(void 0, mr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(mr,"__esModule",{value:!0});mr.createDirentFromStats=void 0;var Nn=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 Rm(e,t){return new Nn(e,t)}mr.createDirentFromStats=Rm});var Dn=_chunkGXMNHGBPcjs.b.call(void 0, gr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(gr,"__esModule",{value:!0});gr.fs=void 0;var wm=Fa();gr.fs=wm});var Vn=_chunkGXMNHGBPcjs.b.call(void 0, hr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(hr,"__esModule",{value:!0});hr.joinPathSegments=void 0;function Em(e,t,r){return e.endsWith(r)?e+t:e+r+t}hr.joinPathSegments=Em});var Va=_chunkGXMNHGBPcjs.b.call(void 0, qe=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var Am=Je(),Ia=Oa(),km=Mn(),La=Dn(),Ma=Vn();function Pm(e,t,r){if(!t.stats&&km.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Na(e,t,r);return}Da(e,t,r)}qe.read=Pm;function Na(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){yr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Ma.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Hn(r,i);return}let s=i.map(a=>Om(a,t));Ia(s,(a,u)=>{if(a!==null){yr(r,a);return}Hn(r,u)})})}qe.readdirWithFileTypes=Na;function Om(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=La.fs.createDirentFromStats(e.name,o),r(null,e)})}}function Da(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){yr(r,n);return}let i=o.map(s=>{let a=Ma.joinPathSegments(e,s,t.pathSegmentSeparator);return u=>{Am.stat(a,t.fsStatSettings,(f,c)=>{if(f!==null){u(f);return}let d={name:s,path:a,dirent:La.fs.createDirentFromStats(s,c)};t.stats&&(d.stats=c),u(null,d)})}});Ia(i,(s,a)=>{if(s!==null){yr(r,s);return}Hn(r,a)})})}qe.readdir=Da;function yr(e,t){e(t)}function Hn(e,t){e(null,t)}});var Ua=_chunkGXMNHGBPcjs.b.call(void 0, Be=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Be,"__esModule",{value:!0});Be.readdir=Be.readdirWithFileTypes=Be.read=void 0;var Tm=Je(),$m=Mn(),Ha=Dn(),ja=Vn();function Fm(e,t){return!t.stats&&$m.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qa(e,t):Ba(e,t)}Be.read=Fm;function qa(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:ja.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ha.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}Be.readdirWithFileTypes=qa;function Ba(e,t){return t.fs.readdirSync(e).map(n=>{let o=ja.joinPathSegments(e,n,t.pathSegmentSeparator),i=Tm.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ha.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}Be.readdir=Ba});var Ga=_chunkGXMNHGBPcjs.b.call(void 0, Ue=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var gt=_chunkGXMNHGBPcjs.a.call(void 0, "fs");Ue.FILE_SYSTEM_ADAPTER={lstat:gt.lstat,stat:gt.stat,lstatSync:gt.lstatSync,statSync:gt.statSync,readdir:gt.readdir,readdirSync:gt.readdirSync};function Im(e){return e===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),e)}Ue.createFileSystemAdapter=Im});var Wa=_chunkGXMNHGBPcjs.b.call(void 0, qn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(qn,"__esModule",{value:!0});var Lm=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Mm=Je(),Nm=Ga(),jn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Lm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Mm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};qn.default=jn});var vr=_chunkGXMNHGBPcjs.b.call(void 0, Ge=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Settings=Ge.scandirSync=Ge.scandir=void 0;var za=Va(),Dm=Ua(),Bn=Wa();Ge.Settings=Bn.default;function Vm(e,t,r){if(typeof t=="function"){za.read(e,Un(),t);return}za.read(e,Un(t),r)}Ge.scandir=Vm;function Hm(e,t){let r=Un(t);return Dm.read(e,r)}Ge.scandirSync=Hm;function Un(e={}){return e instanceof Bn.default?e:new Bn.default(e)}});var Ya=_chunkGXMNHGBPcjs.b.call(void 0, (mb,Ka)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );function jm(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}}Ka.exports=jm});var Qa=_chunkGXMNHGBPcjs.b.call(void 0, (hb,Gn)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var qm=Ya();function Xa(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=qm(Bm),o=null,i=null,s=0,a=null,u={push:x,drain:_e,saturated:_e,pause:c,paused:!1,concurrency:r,running:f,resume:_,idle:y,length:d,getQueue:p,unshift:C,empty:_e,kill:O,killAndDrain:I,error:B};return u;function f(){return s}function c(){u.paused=!0}function d(){for(var k=o,L=0;k;)k=k.next,L++;return L}function p(){for(var k=o,L=[];k;)L.push(k.value),k=k.next;return L}function _(){if(u.paused){u.paused=!1;for(var k=0;k<u.concurrency;k++)s++,S()}}function y(){return s===0&&u.length()===0}function x(k,L){var R=n.get();R.context=e,R.release=S,R.value=k,R.callback=L||_e,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 C(k,L){var R=n.get();R.context=e,R.release=S,R.value=k,R.callback=L||_e,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 S(k){k&&n.release(k);var L=o;L?u.paused?s--:(i===o&&(i=null),o=L.next,L.next=null,t.call(e,L.value,L.worked),i===null&&u.empty()):--s===0&&u.drain()}function O(){o=null,i=null,u.drain=_e}function I(){o=null,i=null,u.drain(),u.drain=_e}function B(k){a=k}}function _e(){}function Bm(){this.value=null,this.callback=_e,this.next=null,this.release=_e,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=_e,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function Um(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=Xa(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(y,x){if(y){_(y);return}p(x)})});return d.catch(_e),d}function u(c){var d=new Promise(function(p,_){s(c,function(y,x){if(y){_(y);return}p(x)})});return d.catch(_e),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}}Gn.exports=Xa;Gn.exports.promise=Um});var _r=_chunkGXMNHGBPcjs.b.call(void 0, ke=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ke,"__esModule",{value:!0});ke.joinPathSegments=ke.replacePathSegmentSeparator=ke.isAppliedFilter=ke.isFatalError=void 0;function Gm(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}ke.isFatalError=Gm;function Wm(e,t){return e===null||e(t)}ke.isAppliedFilter=Wm;function zm(e,t){return e.split(/[/\\]/).join(t)}ke.replacePathSegmentSeparator=zm;function Km(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}ke.joinPathSegments=Km});var Kn=_chunkGXMNHGBPcjs.b.call(void 0, zn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(zn,"__esModule",{value:!0});var Ym=_r(),Wn=class{constructor(t,r){this._root=t,this._settings=r,this._root=Ym.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};zn.default=Wn});var Qn=_chunkGXMNHGBPcjs.b.call(void 0, Xn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Xn,"__esModule",{value:!0});var Xm=_chunkGXMNHGBPcjs.a.call(void 0, "events"),Qm=vr(),Zm=Qa(),xr=_r(),Jm=Kn(),Yn=class extends Jm.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Qm.scandir,this._emitter=new Xm.EventEmitter,this._queue=Zm(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||!xr.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=xr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),xr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&xr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Xn.default=Yn});var Za=_chunkGXMNHGBPcjs.b.call(void 0, Jn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Jn,"__esModule",{value:!0});var eg=Qn(),Zn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new eg.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{tg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{rg(t,this._storage)}),this._reader.read()}};Jn.default=Zn;function tg(e,t){e(t)}function rg(e,t){e(null,t)}});var Ja=_chunkGXMNHGBPcjs.b.call(void 0, to=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(to,"__esModule",{value:!0});var ng=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),og=Qn(),eo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new og.default(this._root,this._settings),this._stream=new ng.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}};to.default=eo});var ec=_chunkGXMNHGBPcjs.b.call(void 0, no=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(no,"__esModule",{value:!0});var ig=vr(),Cr=_r(),sg=Kn(),ro=class extends sg.default{constructor(){super(...arguments),this._scandir=ig.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(Cr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Cr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Cr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Cr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};no.default=ro});var tc=_chunkGXMNHGBPcjs.b.call(void 0, io=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(io,"__esModule",{value:!0});var ag=ec(),oo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ag.default(this._root,this._settings)}read(){return this._reader.read()}};io.default=oo});var rc=_chunkGXMNHGBPcjs.b.call(void 0, ao=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ao,"__esModule",{value:!0});var cg=_chunkGXMNHGBPcjs.a.call(void 0, "path"),lg=vr(),so=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,cg.sep),this.fsScandirSettings=new lg.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 _nullishCoalesce(t, () => (r))}};ao.default=so});var Sr=_chunkGXMNHGBPcjs.b.call(void 0, Pe=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Pe,"__esModule",{value:!0});Pe.Settings=Pe.walkStream=Pe.walkSync=Pe.walk=void 0;var nc=Za(),ug=Ja(),fg=tc(),co=rc();Pe.Settings=co.default;function pg(e,t,r){if(typeof t=="function"){new nc.default(e,br()).read(t);return}new nc.default(e,br(t)).read(r)}Pe.walk=pg;function dg(e,t){let r=br(t);return new fg.default(e,r).read()}Pe.walkSync=dg;function mg(e,t){let r=br(t);return new ug.default(e,r).read()}Pe.walkStream=mg;function br(e={}){return e instanceof co.default?e:new co.default(e)}});var Rr=_chunkGXMNHGBPcjs.b.call(void 0, uo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(uo,"__esModule",{value:!0});var gg=_chunkGXMNHGBPcjs.a.call(void 0, "path"),hg=Je(),oc=Me(),lo=class{constructor(t){this._settings=t,this._fsStatSettings=new hg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return gg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:oc.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!oc.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};uo.default=lo});var mo=_chunkGXMNHGBPcjs.b.call(void 0, po=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(po,"__esModule",{value:!0});var yg=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),vg=Je(),_g=Sr(),xg=Rr(),fo=class extends xg.default{constructor(){super(...arguments),this._walkStream=_g.walkStream,this._stat=vg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new yg.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))})}};po.default=fo});var ic=_chunkGXMNHGBPcjs.b.call(void 0, ho=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ho,"__esModule",{value:!0});var Cg=Sr(),bg=Rr(),Sg=mo(),go=class extends bg.default{constructor(){super(...arguments),this._walkAsync=Cg.walk,this._readerStream=new Sg.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))})}};ho.default=go});var sc=_chunkGXMNHGBPcjs.b.call(void 0, vo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(vo,"__esModule",{value:!0});var Ft=Me(),yo=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 Ft.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Ft.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ft.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Ft.array.splitWhen(t,r=>r.dynamic&&Ft.pattern.hasGlobStar(r.pattern))}};vo.default=yo});var ac=_chunkGXMNHGBPcjs.b.call(void 0, xo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(xo,"__esModule",{value:!0});var Rg=sc(),_o=class extends Rg.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}};xo.default=_o});var cc=_chunkGXMNHGBPcjs.b.call(void 0, bo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(bo,"__esModule",{value:!0});var wr=Me(),wg=ac(),Co=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 wg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(wr.pattern.isAffectDepthOfReadingPattern);return wr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=wr.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!wr.pattern.matchAny(t,r)}};bo.default=Co});var lc=_chunkGXMNHGBPcjs.b.call(void 0, Ro=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ro,"__esModule",{value:!0});var et=Me(),So=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=et.pattern.convertPatternsToRe(t,this._micromatchOptions),o=et.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=et.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=et.path.makeAbsolute(this._settings.cwd,t);return et.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=et.pattern.matchAny(t,r);return!o&&n?et.pattern.matchAny(t+"/",r):o}};Ro.default=So});var uc=_chunkGXMNHGBPcjs.b.call(void 0, Eo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Eo,"__esModule",{value:!0});var Eg=Me(),wo=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Eg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Eo.default=wo});var pc=_chunkGXMNHGBPcjs.b.call(void 0, ko=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ko,"__esModule",{value:!0});var fc=Me(),Ao=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=fc.path.makeAbsolute(this._settings.cwd,r),r=fc.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ko.default=Ao});var Er=_chunkGXMNHGBPcjs.b.call(void 0, Oo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Oo,"__esModule",{value:!0});var Ag=_chunkGXMNHGBPcjs.a.call(void 0, "path"),kg=cc(),Pg=lc(),Og=uc(),Tg=pc(),Po=class{constructor(t){this._settings=t,this.errorFilter=new Og.default(this._settings),this.entryFilter=new Pg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new kg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Tg.default(this._settings)}_getRootDirectory(t){return Ag.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}}};Oo.default=Po});var dc=_chunkGXMNHGBPcjs.b.call(void 0, $o=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty($o,"__esModule",{value:!0});var $g=ic(),Fg=Er(),To=class extends Fg.default{constructor(){super(...arguments),this._reader=new $g.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)}};$o.default=To});var mc=_chunkGXMNHGBPcjs.b.call(void 0, Io=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Io,"__esModule",{value:!0});var Ig=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),Lg=mo(),Mg=Er(),Fo=class extends Mg.default{constructor(){super(...arguments),this._reader=new Lg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Ig.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)}};Io.default=Fo});var gc=_chunkGXMNHGBPcjs.b.call(void 0, Mo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Mo,"__esModule",{value:!0});var Ng=Je(),Dg=Sr(),Vg=Rr(),Lo=class extends Vg.default{constructor(){super(...arguments),this._walkSync=Dg.walkSync,this._statSync=Ng.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)}};Mo.default=Lo});var hc=_chunkGXMNHGBPcjs.b.call(void 0, Do=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Do,"__esModule",{value:!0});var Hg=gc(),jg=Er(),No=class extends jg.default{constructor(){super(...arguments),this._reader=new Hg.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)}};Do.default=No});var yc=_chunkGXMNHGBPcjs.b.call(void 0, yt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(yt,"__esModule",{value:!0});yt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ht=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),qg=_chunkGXMNHGBPcjs.a.call(void 0, "os"),Bg=Math.max(qg.cpus().length,1);yt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ht.lstat,lstatSync:ht.lstatSync,stat:ht.stat,statSync:ht.statSync,readdir:ht.readdir,readdirSync:ht.readdirSync};var Vo=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,Bg),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({},yt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};yt.default=Vo});var Ar=_chunkGXMNHGBPcjs.b.call(void 0, (pS,_c)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var vc=_a(),Ug=dc(),Gg=mc(),Wg=hc(),Ho=yc(),xe=Me();async function jo(e,t){Re(e);let r=qo(e,Ug.default,t),n=await Promise.all(r);return xe.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(f,c){Re(f);let d=qo(f,Wg.default,c);return xe.array.flatten(d)}e.sync=t;function r(f,c){Re(f);let d=qo(f,Gg.default,c);return xe.stream.merge(d)}e.stream=r;function n(f,c){Re(f);let d=[].concat(f),p=new Ho.default(c);return vc.generate(d,p)}e.generateTasks=n;function o(f,c){Re(f);let d=new Ho.default(c);return xe.pattern.isDynamicPattern(f,d)}e.isDynamicPattern=o;function i(f){return Re(f),xe.path.escape(f)}e.escapePath=i;function s(f){return Re(f),xe.path.convertPathToPattern(f)}e.convertPathToPattern=s;let a;(function(f){function c(p){return Re(p),xe.path.escapePosixPath(p)}f.escapePath=c;function d(p){return Re(p),xe.path.convertPosixPathToPattern(p)}f.convertPathToPattern=d})(a=e.posix||(e.posix={}));let u;(function(f){function c(p){return Re(p),xe.path.escapeWindowsPath(p)}f.escapePath=c;function d(p){return Re(p),xe.path.convertWindowsPathToPattern(p)}f.convertPathToPattern=d})(u=e.win32||(e.win32={}))})(jo||(jo={}));function qo(e,t,r){let n=[].concat(e),o=new Ho.default(r),i=vc.generate(n,o),s=new t(o);return i.map(s.read,s)}function Re(e){if(![].concat(e).every(n=>xe.string.isString(n)&&!xe.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}_c.exports=jo});var Cc=_chunkGXMNHGBPcjs.b.call(void 0, (mS,xc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var vt=1e3,_t=vt*60,xt=_t*60,tt=xt*24,zg=tt*7,Kg=tt*365.25;xc.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Yg(e);if(r==="number"&&isFinite(e))return t.long?Qg(e):Xg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Yg(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*Kg;case"weeks":case"week":case"w":return r*zg;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*_t;case"seconds":case"second":case"secs":case"sec":case"s":return r*vt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Xg(e){var t=Math.abs(e);return t>=tt?Math.round(e/tt)+"d":t>=xt?Math.round(e/xt)+"h":t>=_t?Math.round(e/_t)+"m":t>=vt?Math.round(e/vt)+"s":e+"ms"}function Qg(e){var t=Math.abs(e);return t>=tt?kr(e,t,tt,"day"):t>=xt?kr(e,t,xt,"hour"):t>=_t?kr(e,t,_t,"minute"):t>=vt?kr(e,t,vt,"second"):e+" ms"}function kr(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Bo=_chunkGXMNHGBPcjs.b.call(void 0, (hS,bc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );function Zg(e){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=Cc(),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,_,y;function x(...C){if(!x.enabled)return;let S=x,O=Number(new Date),I=O-(d||O);S.diff=I,S.prev=d,S.curr=O,d=O,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let B=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(L,R)=>{if(L==="%%")return"%";B++;let w=r.formatters[R];if(typeof w=="function"){let T=C[B];L=w.call(S,T),C.splice(B,1),B--}return L}),r.formatArgs.call(S,C),(S.log||r.log).apply(S,C)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(_!==r.namespaces&&(_=r.namespaces,y=r.enabled(c)),y),set:C=>{p=C}}),typeof r.init=="function"&&r.init(x),x}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}bc.exports=Zg});var Sc=_chunkGXMNHGBPcjs.b.call(void 0, (ye,Pr)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );ye.formatArgs=eh;ye.save=th;ye.load=rh;ye.useColors=Jg;ye.storage=nh();ye.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`."))}})();ye.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 Jg(){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 eh(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Pr.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)}ye.log=console.debug||console.log||(()=>{});function th(e){try{e?ye.storage.setItem("debug",e):ye.storage.removeItem("debug")}catch (e3){}}function rh(){let e;try{e=ye.storage.getItem("debug")}catch (e4){}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function nh(){try{return localStorage}catch (e5){}}Pr.exports=Bo()(ye);var{formatters:oh}=Pr.exports;oh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var wc=_chunkGXMNHGBPcjs.b.call(void 0, (_S,Rc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Rc.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var kc=_chunkGXMNHGBPcjs.b.call(void 0, (CS,Ac)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ih=_chunkGXMNHGBPcjs.a.call(void 0, "os"),Ec=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),Ce=wc(),{env:se}=process,Or;Ce("no-color")||Ce("no-colors")||Ce("color=false")||Ce("color=never")?Or=0:(Ce("color")||Ce("colors")||Ce("color=true")||Ce("color=always"))&&(Or=1);function sh(){if("FORCE_COLOR"in se)return se.FORCE_COLOR==="true"?1:se.FORCE_COLOR==="false"?0:se.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(se.FORCE_COLOR,10),3)}function ah(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ch(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=sh();n!==void 0&&(Or=n);let o=r?Or:n;if(o===0)return 0;if(r){if(Ce("color=16m")||Ce("color=full")||Ce("color=truecolor"))return 3;if(Ce("color=256"))return 2}if(e&&!t&&o===void 0)return 0;let i=o||0;if(se.TERM==="dumb")return i;if(process.platform==="win32"){let s=ih.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in se)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in se)||se.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(se.TEAMCITY_VERSION)?1:0;if(se.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in se){let s=Number.parseInt((se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(se.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(se.TERM)||"COLORTERM"in se?1:i}function Uo(e,t={}){let r=ch(e,{streamIsTTY:e&&e.isTTY,...t});return ah(r)}Ac.exports={supportsColor:Uo,stdout:Uo({isTTY:Ec.isatty(1)}),stderr:Uo({isTTY:Ec.isatty(2)})}});var Oc=_chunkGXMNHGBPcjs.b.call(void 0, (ae,$r)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var lh=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),Tr=_chunkGXMNHGBPcjs.a.call(void 0, "util");ae.init=hh;ae.log=dh;ae.formatArgs=fh;ae.save=mh;ae.load=gh;ae.useColors=uh;ae.destroy=Tr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ae.colors=[6,2,3,4,5,1];try{let e=kc();e&&(e.stderr||e).level>=2&&(ae.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 (e6){}ae.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 uh(){return"colors"in ae.inspectOpts?!!ae.inspectOpts.colors:lh.isatty(process.stderr.fd)}function fh(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(`
|
|
3
|
-
`).join(`
|
|
4
|
-
`+i),e.push(o+"m+"+$r.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ph()+t+" "+e[0]}function ph(){return ae.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dh(...e){return process.stderr.write(Tr.format(...e)+`
|
|
5
|
-
`)}function mh(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function gh(){return process.env.DEBUG}function hh(e){e.inspectOpts={};let t=Object.keys(ae.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ae.inspectOpts[t[r]]}$r.exports=Bo()(ae);var{formatters:Pc}=$r.exports;Pc.o=function(e){return this.inspectOpts.colors=this.useColors,Tr.inspect(e,this.inspectOpts).split(`
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};Pc.O=function(e){return this.inspectOpts.colors=this.useColors,Tr.inspect(e,this.inspectOpts)}});var Wo=_chunkGXMNHGBPcjs.b.call(void 0, (RS,Go)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Go.exports=Sc():Go.exports=Oc()});var Lc=_chunkGXMNHGBPcjs.b.call(void 0, (ES,Ic)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var{hasOwnProperty:zo}=Object.prototype,Ko=(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
|
|
7
|
-
`:`
|
|
8
|
-
`,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=Ne(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)=>Ne(f).length>=Ne(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+=Ne(`${f}${u}`).padEnd(s," ")+n+Ne(d)+r;else c&&typeof c=="object"?o.push(f):a+=Ne(f).padEnd(s," ")+n+Ne(c)+r}t.section&&a.length&&(a="["+Ne(t.section)+"]"+(t.newline?r+r:r)+a);for(let f of o){let c=$c(f,".").join("\\."),d=(t.section?t.section+".":"")+c,p=Ko(e[f],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function $c(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 Tc=(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=Fr(c[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=Fr(c[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(_optionalChain([a, 'optionalAccess', _2 => _2[d]])||0)+1,p=a[d]>1);let _=p?d.slice(0,-2):d;if(_==="__proto__")continue;let y=c[3]?Fr(c[4]):!0,x=y==="true"||y==="false"||y==="null"?JSON.parse(y):y;p&&(zo.call(n,_)?Array.isArray(n[_])||(n[_]=[n[_]]):n[_]=[]),Array.isArray(n[_])?n[_].push(x):n[_]=x}let u=[];for(let f of Object.keys(r)){if(!zo.call(r,f)||typeof r[f]!="object"||Array.isArray(r[f]))continue;let c=$c(f,".");n=r;let d=c.pop(),p=d.replace(/\\\./g,".");for(let _ of c)_!=="__proto__"&&((!zo.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},Fc=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Ne=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Fc(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Fr=(e,t)=>{if(e=(e||"").trim(),Fc(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch (e7){}}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};Ic.exports={parse:Tc,decode:Tc,stringify:Ko,encode:Ko,safe:Ne,unsafe:Fr}});var Qo=_chunkGXMNHGBPcjs.b.call(void 0, (IS,Hc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var bh=_chunkGXMNHGBPcjs.a.call(void 0, "os");Hc.exports=bh.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 Zo=_chunkGXMNHGBPcjs.b.call(void 0, (MS,jc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );jc.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 qc=_chunkGXMNHGBPcjs.b.call(void 0, (DS,Mt)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Sh=process.platform==="win32",Rh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Jo={};function wh(e){return Rh.exec(e).slice(1)}Jo.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=wh(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 Eh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ei={};function Ah(e){return Eh.exec(e).slice(1)}ei.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].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};Sh?Mt.exports=Jo.parse:Mt.exports=ei.parse;Mt.exports.posix=ei.parse;Mt.exports.win32=Jo.parse});var ti=_chunkGXMNHGBPcjs.b.call(void 0, (HS,Wc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Gc=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Bc=Gc.parse||qc(),Uc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Bc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Bc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return Gc.resolve(n,a,u)}))},[])};Wc.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 Uc(t,o)},r);var i=Uc(t,o);return r&&r.paths?i.concat(r.paths):i}});var ri=_chunkGXMNHGBPcjs.b.call(void 0, (qS,zc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );zc.exports=function(e,t){return t||{}}});var Xc=_chunkGXMNHGBPcjs.b.call(void 0, (US,Yc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var kh="Function.prototype.bind called on incompatible ",Ph=Object.prototype.toString,Oh=Math.max,Th="[object Function]",Kc=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},$h=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Fh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Yc.exports=function(t){var r=this;if(typeof r!="function"||Ph.apply(r)!==Th)throw new TypeError(kh+r);for(var n=$h(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,Kc(n,arguments));return Object(c)===c?c:this}return r.apply(t,Kc(n,arguments))},s=Oh(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+Fh(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 Zc=_chunkGXMNHGBPcjs.b.call(void 0, (WS,Qc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ih=Xc();Qc.exports=Function.prototype.bind||Ih});var el=_chunkGXMNHGBPcjs.b.call(void 0, (KS,Jc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Lh=Function.prototype.call,Mh=Object.prototype.hasOwnProperty,Nh=Zc();Jc.exports=Nh.call(Lh,Mh)});var tl=_chunkGXMNHGBPcjs.b.call(void 0, (XS,Dh)=>{Dh.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 Nt=_chunkGXMNHGBPcjs.b.call(void 0, (QS,ol)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Vh=el();function Hh(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 rl(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Hh(e,r[n]))return!1;return!0}function jh(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(rl(r,t[n]))return!0;return!1}return rl(r,t)}var nl=tl();ol.exports=function(t,r){return Vh(nl,t)&&jh(r,nl[t])}});var al=_chunkGXMNHGBPcjs.b.call(void 0, (JS,sl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var rt=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),qh=Qo(),te=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Bh=Zo(),Uh=ti(),Gh=ri(),Wh=Nt(),zh=process.platform!=="win32"&&rt.realpath&&typeof rt.realpath.native=="function"?rt.realpath.native:rt.realpath,il=qh(),Kh=function(){return[te.join(il,".node_modules"),te.join(il,".node_libraries")]},Yh=function(t,r){rt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},Xh=function(t,r){rt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},Qh=function(t,r){zh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Dt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},Zh=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch (e8){n(null)}})},Jh=function(t,r,n){for(var o=Uh(r,n,t),i=0;i<o.length;i++)o[i]=te.join(o[i],t);return o};sl.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=Gh(t,i);var a=i.isFile||Yh,u=i.isDirectory||Xh,f=i.readFile||rt.readFile,c=i.realpath||Qh,d=i.readPackage||Zh;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var _=i.packageIterator,y=i.extensions||[".js"],x=i.includeCoreModules!==!1,C=i.basedir||te.dirname(Bh()),S=i.filename||C;i.paths=i.paths||Kh();var O=te.resolve(C);Dt(c,O,i,function(m,A){m?o(m):B(A)});var I;function B(m){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=te.resolve(m,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===m?w(I,i.package,k):L(I,i.package,k);else{if(x&&Wh(t))return o(null,t);W(t,m,function(A,$,D){if(A)o(A);else{if($)return Dt(c,$,i,function(v,j){v?o(v):o(null,j,D)});var h=new Error("Cannot find module '"+t+"' from '"+S+"'");h.code="MODULE_NOT_FOUND",o(h)}})}}function k(m,A,$){m?o(m):A?o(null,A,$):w(I,function(D,h,v){if(D)o(D);else if(h)Dt(c,h,i,function(F,M){F?o(F):o(null,M,v)});else{var j=new Error("Cannot find module '"+t+"' from '"+S+"'");j.code="MODULE_NOT_FOUND",o(j)}})}function L(m,A,$){var D=A,h=$;typeof D=="function"&&(h=D,D=void 0);var v=[""].concat(y);j(v,m,D);function j(F,M,G){if(F.length===0)return h(null,void 0,G);var H=M+F[0],re=G;re?Z(null,re):R(te.dirname(H),Z);function Z(ce,V,de){if(re=V,ce)return h(ce);if(de&&re&&i.pathFilter){var lt=te.relative(de,H),P=lt.slice(0,lt.length-F[0].length),z=i.pathFilter(re,M,P);if(z)return j([""].concat(y.slice()),te.resolve(de,z),re)}a(H,Fe)}function Fe(ce,V){if(ce)return h(ce);if(V)return h(null,H,re);j(F.slice(1),M,re)}}}function R(m,A){if(m===""||m==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(m)||/[/\\]node_modules[/\\]*$/.test(m))return A(null);Dt(c,m,i,function($,D){if($)return R(te.dirname(m),A);var h=te.join(D,"package.json");a(h,function(v,j){if(!j)return R(te.dirname(m),A);d(f,h,function(F,M){F&&A(F);var G=M;G&&i.packageFilter&&(G=i.packageFilter(G,h)),A(null,G,m)})})})}function w(m,A,$){var D=$,h=A;typeof h=="function"&&(D=h,h=i.package),Dt(c,m,i,function(v,j){if(v)return D(v);var F=te.join(j,"package.json");a(F,function(M,G){if(M)return D(M);if(!G)return L(te.join(m,"index"),h,D);d(f,F,function(H,re){if(H)return D(H);var Z=re;if(Z&&i.packageFilter&&(Z=i.packageFilter(Z,F)),Z&&Z.main){if(typeof Z.main!="string"){var Fe=new TypeError("package \u201C"+Z.name+"\u201D `main` must be a string");return Fe.code="INVALID_PACKAGE_MAIN",D(Fe)}(Z.main==="."||Z.main==="./")&&(Z.main="index"),L(te.resolve(m,Z.main),Z,function(ce,V,de){if(ce)return D(ce);if(V)return D(null,V,de);if(!de)return L(te.join(m,"index"),de,D);var lt=te.resolve(m,de.main);w(lt,de,function(P,z,E){if(P)return D(P);if(z)return D(null,z,E);L(te.join(m,"index"),E,D)})});return}L(te.join(m,"/index"),Z,D)})})})}function T(m,A){if(A.length===0)return m(null,void 0);var $=A[0];u(te.dirname($),D);function D(j,F){if(j)return m(j);if(!F)return T(m,A.slice(1));L($,i.package,h)}function h(j,F,M){if(j)return m(j);if(F)return m(null,F,M);w($,i.package,v)}function v(j,F,M){if(j)return m(j);if(F)return m(null,F,M);T(m,A.slice(1))}}function W(m,A,$){var D=function(){return Jh(m,A,i)};T($,_?_(m,A,D,i):D())}}});var cl=_chunkGXMNHGBPcjs.b.call(void 0, (tR,ey)=>{ey.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 pl=_chunkGXMNHGBPcjs.b.call(void 0, (rR,fl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ty=Nt(),ll=cl(),ul={};for(Lr in ll)Object.prototype.hasOwnProperty.call(ll,Lr)&&(ul[Lr]=ty(Lr));var Lr;fl.exports=ul});var ml=_chunkGXMNHGBPcjs.b.call(void 0, (oR,dl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ry=Nt();dl.exports=function(t){return ry(t)}});var yl=_chunkGXMNHGBPcjs.b.call(void 0, (sR,hl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ny=Nt(),nt=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),fe=_chunkGXMNHGBPcjs.a.call(void 0, "path"),oy=Qo(),iy=Zo(),sy=ti(),ay=ri(),cy=process.platform!=="win32"&&nt.realpathSync&&typeof nt.realpathSync.native=="function"?nt.realpathSync.native:nt.realpathSync,gl=oy(),ly=function(){return[fe.join(gl,".node_modules"),fe.join(gl,".node_libraries")]},uy=function(t){try{var r=nt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},fy=function(t){try{var r=nt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},py=function(t){try{return cy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Vt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},dy=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch (e9){}},my=function(t,r,n){for(var o=sy(r,n,t),i=0;i<o.length;i++)o[i]=fe.join(o[i],t);return o};hl.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=ay(t,r),o=n.isFile||uy,i=n.readFileSync||nt.readFileSync,s=n.isDirectory||fy,a=n.realpathSync||py,u=n.readPackageSync||dy;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||fe.dirname(iy()),_=n.filename||p;n.paths=n.paths||ly();var y=Vt(a,fe.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var x=fe.resolve(y,t);(t==="."||t===".."||t.slice(-1)==="/")&&(x+="/");var C=I(x)||k(x);if(C)return Vt(a,C,n)}else{if(d&&ny(t))return t;var S=L(t,y);if(S)return Vt(a,S,n)}var O=new Error("Cannot find module '"+t+"' from '"+_+"'");throw O.code="MODULE_NOT_FOUND",O;function I(R){var w=B(fe.dirname(R));if(w&&w.dir&&w.pkg&&n.pathFilter){var T=fe.relative(w.dir,R),W=n.pathFilter(w.pkg,R,T);W&&(R=fe.resolve(w.dir,W))}if(o(R))return R;for(var m=0;m<c.length;m++){var A=R+c[m];if(o(A))return A}}function B(R){if(!(R===""||R==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(R))&&!/[/\\]node_modules[/\\]*$/.test(R)){var w=fe.join(Vt(a,R,n),"package.json");if(!o(w))return B(fe.dirname(R));var T=u(i,w);return T&&n.packageFilter&&(T=n.packageFilter(T,R)),{pkg:T,dir:R}}}function k(R){var w=fe.join(Vt(a,R,n),"/package.json");if(o(w)){try{var T=u(i,w)}catch (e10){}if(T&&n.packageFilter&&(T=n.packageFilter(T,R)),T&&T.main){if(typeof T.main!="string"){var W=new TypeError("package \u201C"+T.name+"\u201D `main` must be a string");throw W.code="INVALID_PACKAGE_MAIN",W}(T.main==="."||T.main==="./")&&(T.main="index");try{var m=I(fe.resolve(R,T.main));if(m)return m;var A=k(fe.resolve(R,T.main));if(A)return A}catch (e11){}}}return I(fe.join(R,"/index"))}function L(R,w){for(var T=function(){return my(R,w,n)},W=f?f(R,w,T,n):T(),m=0;m<W.length;m++){var A=W[m];if(s(fe.dirname(A))){var $=I(A);if($)return $;var D=k(A);if(D)return D}}}}});var _l=_chunkGXMNHGBPcjs.b.call(void 0, (cR,vl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Mr=al();Mr.core=pl();Mr.isCore=ml();Mr.sync=yl();vl.exports=Mr});var yi=_chunkGXMNHGBPcjs.b.call(void 0, (WE,hi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var l_=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),u_=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||l_.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Y=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+Fu(o,t,r,i)+t:e+o+t},Fu=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Fu(i,t,r,s):o+i},Iu=(e=u_)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?Y("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?Y("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?Y("\x1B[3m","\x1B[23m"):String,underline:e?Y("\x1B[4m","\x1B[24m"):String,inverse:e?Y("\x1B[7m","\x1B[27m"):String,hidden:e?Y("\x1B[8m","\x1B[28m"):String,strikethrough:e?Y("\x1B[9m","\x1B[29m"):String,black:e?Y("\x1B[30m","\x1B[39m"):String,red:e?Y("\x1B[31m","\x1B[39m"):String,green:e?Y("\x1B[32m","\x1B[39m"):String,yellow:e?Y("\x1B[33m","\x1B[39m"):String,blue:e?Y("\x1B[34m","\x1B[39m"):String,magenta:e?Y("\x1B[35m","\x1B[39m"):String,cyan:e?Y("\x1B[36m","\x1B[39m"):String,white:e?Y("\x1B[37m","\x1B[39m"):String,gray:e?Y("\x1B[90m","\x1B[39m"):String,bgBlack:e?Y("\x1B[40m","\x1B[49m"):String,bgRed:e?Y("\x1B[41m","\x1B[49m"):String,bgGreen:e?Y("\x1B[42m","\x1B[49m"):String,bgYellow:e?Y("\x1B[43m","\x1B[49m"):String,bgBlue:e?Y("\x1B[44m","\x1B[49m"):String,bgMagenta:e?Y("\x1B[45m","\x1B[49m"):String,bgCyan:e?Y("\x1B[46m","\x1B[49m"):String,bgWhite:e?Y("\x1B[47m","\x1B[49m"):String});hi.exports=Iu();hi.exports.createColors=Iu});_chunkGXMNHGBPcjs.e.call(void 0, );var _process = require('process'); var _process2 = _interopRequireDefault(_process);var _yargs = require('yargs'); var _yargs2 = _interopRequireDefault(_yargs);var _helpers = require('yargs/helpers');var ut="0.17.0-beta.3";_chunkGXMNHGBPcjs.e.call(void 0, );var Jl=_chunkGXMNHGBPcjs.c.call(void 0, Ar(),1);var _path = require('path'); var _path2 = _interopRequireDefault(_path);var _promises = require('fs/promises');var _kolorist = require('kolorist');var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);var _graymatter = require('gray-matter'); var _graymatter2 = _interopRequireDefault(_graymatter);var _markdownit = require('markdown-it'); var _markdownit2 = _interopRequireDefault(_markdownit);var _feed = require('feed');var _consola = require('consola'); var _consola2 = _interopRequireDefault(_consola);_chunkGXMNHGBPcjs.e.call(void 0, );var Ul=_chunkGXMNHGBPcjs.c.call(void 0, Wo(),1),Gl=_chunkGXMNHGBPcjs.c.call(void 0, Ar(),1);var _utils = require('@antfu/utils');var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);_chunkGXMNHGBPcjs.e.call(void 0, );var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);_chunkGXMNHGBPcjs.e.call(void 0, );var Nc=_chunkGXMNHGBPcjs.c.call(void 0, Lc(),1);var _os = require('os'); var _os2 = _interopRequireDefault(_os);var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);var Lt=_process2.default.platform==="win32",Mc=e=>{try{return Nc.default.parse(_fs2.default.readFileSync(e,"utf8")).prefix}catch (e12){}},yh=()=>Object.keys(_process2.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?_process2.default.env[t]:e,void 0),vh=()=>{if(Lt&&_process2.default.env.APPDATA)return _path2.default.join(_process2.default.env.APPDATA,"/npm/etc/npmrc");if(_process2.default.execPath.includes("/Cellar/node")){let e=_process2.default.execPath.slice(0,_process2.default.execPath.indexOf("/Cellar/node"));return _path2.default.join(e,"/lib/node_modules/npm/npmrc")}if(_process2.default.execPath.endsWith("/bin/node")){let e=_path2.default.dirname(_path2.default.dirname(_process2.default.execPath));return _path2.default.join(e,"/etc/npmrc")}},_h=()=>{if(Lt){let{APPDATA:e}=_process2.default.env;return e?_path2.default.join(e,"npm"):_path2.default.dirname(_process2.default.execPath)}return _path2.default.dirname(_path2.default.dirname(_process2.default.execPath))},xh=()=>{let e=yh();if(e)return e;let t=Mc(_path2.default.join(_os2.default.homedir(),".npmrc"));if(t)return t;if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let r=Mc(vh());return r||_h()},It=_path2.default.resolve(xh()),Dc=()=>{if(Lt&&_process2.default.env.LOCALAPPDATA){let e=_path2.default.join(_process2.default.env.LOCALAPPDATA,"Yarn");if(_fs2.default.existsSync(e))return e}return!1},Ch=()=>{if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let e=Dc();if(e)return e;let t=_path2.default.join(_os2.default.homedir(),".config/yarn");if(_fs2.default.existsSync(t))return t;let r=_path2.default.join(_os2.default.homedir(),".yarn-config");return _fs2.default.existsSync(r)?r:It},Oe={};Oe.npm={};Oe.npm.prefix=It;Oe.npm.packages=_path2.default.join(It,Lt?"node_modules":"lib/node_modules");Oe.npm.binaries=Lt?It:_path2.default.join(It,"bin");var Vc=_path2.default.resolve(Ch());Oe.yarn={};Oe.yarn.prefix=Vc;Oe.yarn.packages=_path2.default.join(Vc,Dc()?"Data/global/node_modules":"global/node_modules");Oe.yarn.binaries=_path2.default.join(Oe.yarn.packages,".bin");var Xo=Oe;var kl=_chunkGXMNHGBPcjs.c.call(void 0, _l(),1);_chunkGXMNHGBPcjs.e.call(void 0, );var _crossspawn = require('cross-spawn');function Ht(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=_crossspawn.spawn.call(void 0, "git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Nr="<!-- more -->",Ct=/^https?:/i,xl=/^pathname:\/\//;function Cl(e){return Ct.test(e)}function Te(e){return e.replace(/\\/g,"/")}function ni(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${ni("/",Te(e))}`}function bl(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}_chunkGXMNHGBPcjs.e.call(void 0, );var _vite = require('vite');_chunkGXMNHGBPcjs.e.call(void 0, );var _unconfig = require('unconfig');async function ot(e,t={}){let{config:r,sources:n}=await _unconfig.loadConfig.call(void 0, {sources:{files:e,rewrite:t.rewrite},cwd:t.cwd||_process2.default.cwd()}),o=_vite.normalizePath.call(void 0, n[0]||"");return{config:r,configFile:o}}var bt=_defu.createDefu.call(void 0, (e,t,r)=>{if(_utils.isFunction.call(void 0, e[t])&&_utils.isFunction.call(void 0, r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=_vite.mergeConfig.call(void 0, e[t],r),!0});async function oi(e,t){return ot("valaxy.config",{rewrite(r){return typeof r=="function"?r(t||{}):r},cwd:e})}async function Rl(e){let t=e.userRoot||_process2.default.cwd(),{config:r,configFile:n}=await oi(t);r&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "userValaxyConfig")} from ${_kolorist.dim.call(void 0, n)}`);let o=e.theme||_optionalChain([r, 'optionalAccess', _3 => _3.theme])||"yun";return{config:r,configFile:n,theme:o}}async function wl(e,t){let r={};for(let n of e){if(!_fs.existsSync.call(void 0, _path.resolve.call(void 0, n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await ot("valaxy.config",{rewrite(s,a){return typeof s=="function"?s(n,t):s},cwd:n.root});o&&(n.configFile=i,r=bt(o,r))}return r}function Pl(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}function $e(e,t=!1,r={preserveSymlinks:!1}){try{return(0,kl.sync)(e,r)}catch(n){_consola2.default.log(n)}if(_isinstalledglobally2.default){try{return _chunkGXMNHGBPcjs.a.resolve(_path.join.call(void 0, Xo.yarn.packages,e))}catch (e13){}try{return _chunkGXMNHGBPcjs.a.resolve(_path.join.call(void 0, Xo.npm.packages,e))}catch (e14){}}if(t)throw new Error(`Failed to resolve package ${e}`);_consola2.default.error(`Failed to resolve package ${e}`)}_chunkGXMNHGBPcjs.e.call(void 0, );var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);_chunkGXMNHGBPcjs.e.call(void 0, );function ky(e){return e}var UR=ky;function Py(e){return e}var GR=Py;function YR(e){return e}function Oy(e){return e}var XR=Oy,ii= exports.t ={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:_crypto.webcrypto.getRandomValues(new Uint8Array(16)),iv:_crypto.webcrypto.getRandomValues(new Uint8Array(16))}},Tl= exports.u ={ignoreDeadLinks:!0,siteConfig:ii,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function QR(e){return e}_chunkGXMNHGBPcjs.e.call(void 0, );var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );function si(){return _process2.default.env.NODE_ENV==="production"}function ai(e="development"){_process2.default.env.NODE_ENV=e,it.level=si()?2:3}function St(){return ai("production")}var it=_consola2.default.create({level:si()?2:3});_chunkGXMNHGBPcjs.e.call(void 0, );function Dr(e,t){if(!e)return"";if(bl(e))if(t){let r=_fsextra2.default.lstatSync(t).isFile();return _path.resolve.call(void 0, r?_path.dirname.call(void 0, t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return _path.dirname.call(void 0, $e(`${e}/package.json`)||"")}async function Hl(e,t=_process2.default.cwd()){let r=_ora2.default.call(void 0, `Resolve ${_kolorist.cyan.call(void 0, "addons")} from ${_kolorist.dim.call(void 0, t)}`).start(),n={},o=s=>{s&&(n[s.name]=_defu2.default.call(void 0, n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Dl(s,{cwd:t}));continue}typeof s=="object"&&o(_defu2.default.call(void 0, await Dl(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{it.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${_kolorist.yellow.call(void 0, s.name)}${s.global?_kolorist.cyan.call(void 0, " (global)"):""} ${_kolorist.dim.call(void 0, s.pkg.homepage||_optionalChain([s, 'access', _4 => _4.pkg, 'access', _5 => _5.repository, 'optionalAccess', _6 => _6.url])||s.pkg.repository)}`)}),i}async function Dl(e,t={}){let r=Ny(e,t.cwd||_process2.default.cwd()),n=_path.resolve.call(void 0, r,"./package.json");if(!_fsextra2.default.existsSync(n)){it.error(`No addon named ${e} found`);return}let o=await _fsextra2.default.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function Ny(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Dr(r,t)}_chunkGXMNHGBPcjs.e.call(void 0, );function jl(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Dr(r,t)}_chunkGXMNHGBPcjs.e.call(void 0, );async function jy(e){return ot("site.config",{cwd:e})}async function Vr(e){let{config:t,configFile:r}=await jy(e);return t&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "siteConfig")} from ${_kolorist.dim.call(void 0, r)}`),{siteConfig:t,siteConfigFile:r}}_chunkGXMNHGBPcjs.e.call(void 0, );async function Uy(e){return ot("theme.config",{cwd:e})}async function Hr(e){let{config:t,configFile:r}=await Uy(e);return t&&it.info(`Resolve ${_kolorist.cyan.call(void 0, "themeConfig")} from ${_kolorist.dim.call(void 0, r)}`),{themeConfig:t,themeConfigFile:r}}var Qy=(0,Ul.default)("valaxy:options");async function Zy(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=_utils.ensureSuffix.call(void 0, "/",o.url||""),o.cdn.prefix=_utils.ensureSuffix.call(void 0, "/",o.cdn.prefix||"");let i=_path.resolve.call(void 0, r,"package.json");try{t.themeConfig.pkg=await _fsextra2.default.readJson(i,"utf-8")}catch (e15){console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function ci(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await Hl(t.addons||[],e.userRoot),s=await wl(i,e);t=bt(t,s);let a=_defu2.default.call(void 0, t,Tl);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=_utils.uniq.call(void 0, [r,n,...u,o]);let c=_optionalChain([e, 'access', _7 => _7.config, 'access', _8 => _8.vite, 'optionalAccess', _9 => _9.build, 'optionalAccess', _10 => _10.rollupOptions, 'optionalAccess', _11 => _11.external])||[];return e.config.vite.build.rollupOptions.external=c.filter(d=>!f.includes(d)),await Zy(e),e}async function be(e={userRoot:_process2.default.cwd()},t="dev"){let r=_path.dirname.call(void 0, $e("valaxy/package.json",!0)),n=_path.resolve.call(void 0, r,"client"),o=Te(_path.resolve.call(void 0, e.userRoot||_process2.default.cwd()));_consola2.default.start(`Resolve ${_kolorist.magenta.call(void 0, "valaxy")} config...`);let[i,s,a,u]=await Promise.all([Rl(e),Vr(e.userRoot),Hr(e.userRoot),(0,Gl.default)(["**.md"],{cwd:_path.resolve.call(void 0, o,"pages"),ignore:["**/node_modules"]})]),{config:f,configFile:c,theme:d}=i,{siteConfig:p,siteConfigFile:_}=s,{themeConfig:y,themeConfigFile:x}=a;f=_defu2.default.call(void 0, {siteConfig:p},{themeConfig:y},f);let C=jl(d,e.userRoot),S={mode:t,pkgRoot:r,clientRoot:n,userRoot:o,themeRoot:C,addonRoots:[],roots:[],theme:d,config:{...f,runtimeConfig:{addons:{}}},configFile:c||"",siteConfigFile:_||"",themeConfigFile:x||"",pages:u.sort(),addons:[]};Qy(S);let O=await li(S),I=bt(f,O);return S=await ci(S,I),S}async function li(e){let{config:t}=await oi(e.themeRoot,e);return t&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "valaxy.config.ts")} from ${_kolorist.yellow.call(void 0, `theme(${e.theme})`)}`),t}_chunkGXMNHGBPcjs.e.call(void 0, );async function Yl(e){return await Ht(e,"created")||(await _fsextra2.default.stat(e)).ctime}async function Xl(e){return await Ht(e,"created")||(await _fsextra2.default.stat(e)).mtime}_chunkGXMNHGBPcjs.e.call(void 0, );function We(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}_chunkGXMNHGBPcjs.e.call(void 0, );function Ql(e,t){t.forEach(r=>{_optionalChain([r, 'access', _12 => _12.setup, 'optionalCall', _13 => _13(e)])})}var av=_markdownit2.default.call(void 0, {html:!0,breaks:!0,linkify:!0});async function Zl(e){_consola2.default.info(`${_kolorist.yellow.call(void 0, "RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){_consola2.default.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:_optionalChain([r, 'access', _14 => _14.author, 'optionalAccess', _15 => _15.name]),email:_optionalChain([r, 'access', _16 => _16.author, 'optionalAccess', _17 => _17.email]),link:_optionalChain([r, 'access', _18 => _18.author, 'optionalAccess', _19 => _19.link])};_consola2.default.info(`RSS Site Url: ${_kolorist.cyan.call(void 0, n)}`);let s=_optionalChain([r, 'access', _20 => _20.license, 'optionalAccess', _21 => _21.type])==="zero"?"1.0":"4.0",a={atom:_optionalChain([r, 'access', _22 => _22.feed, 'optionalAccess', _23 => _23.name])?`${_optionalChain([r, 'access', _24 => _24.feed, 'optionalAccess', _25 => _25.name])}.atom`:"atom.xml",json:`${_optionalChain([r, 'access', _26 => _26.feed, 'optionalAccess', _27 => _27.name])||"feed"}.json`,rss:`${_optionalChain([r, 'access', _28 => _28.feed, 'optionalAccess', _29 => _29.name])||"feed"}.xml`},u={title:r.title||"Valaxy Blog",description:r.description,id:n||"valaxy",link:n,copyright:`CC ${_optionalChain([r, 'access', _30 => _30.license, 'optionalAccess', _31 => _31.type, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()])} ${s} ${new Date().getFullYear()} \xA9 ${_optionalChain([r, 'access', _34 => _34.author, 'optionalAccess', _35 => _35.name])}`,feedLinks:{}};Object.keys(a).forEach(C=>{u.feedLinks[C]=`${n}${a[C]}`});let f=await(0,Jl.default)(`${e.userRoot}/pages/posts/**/*.md`),c=[];for await(let C of f){let S=await _promises.readFile.call(void 0, C,"utf-8"),{data:O,content:I,excerpt:B}=_graymatter2.default.call(void 0, S,{excerpt_separator:Nr});if(O.password)continue;if(O.draft){_consola2.default.warn(`Ignore draft post: ${_kolorist.dim.call(void 0, C)}`);continue}if(O.hide)continue;let k=C;O.date||(O.date=await Yl(k)),r.lastUpdated&&(O.updated||(O.updated=await Xl(k)));let L=av.render(B||I.slice(0,100)).replace('src="/',`src="${o}/`);_optionalChain([O, 'access', _36 => _36.image, 'optionalAccess', _37 => _37.startsWith, 'call', _38 => _38("/")])&&(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:L,author:[i],link:o+C.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")})}c.sort((C,S)=>+new Date(S.published||S.date)-+new Date(C.published||C.date));let d=_optionalChain([r, 'access', _39 => _39.author, 'optionalAccess', _40 => _40.avatar])||"/favicon.svg";u.author=i,u.image=Cl(d)?_optionalChain([r, 'access', _41 => _41.author, 'optionalAccess', _42 => _42.avatar]):`${o}${ni("/",d)}`,u.favicon=`${o}${_optionalChain([r, 'access', _43 => _43.feed, 'optionalAccess', _44 => _44.favicon])||r.favicon}`;let p=new (0, _feed.Feed)(u);c.forEach(C=>p.addItem(C)),await _fsextra2.default.ensureDir(_path.dirname.call(void 0, `./dist/${a.atom}`));let _=_path.resolve.call(void 0, e.userRoot,"./dist"),y=_path.resolve.call(void 0, e.userRoot,"public");["rss","atom","json"].forEach(async C=>{let S="",O=`${_}/${a[C]}`;C==="rss"?S=p.rss2():C==="atom"?S=p.atom1():C==="json"&&(S=p.json1()),_fsextra2.default.writeFileSync(O,S,"utf-8"),_consola2.default.success(`[${_kolorist.cyan.call(void 0, C)}] dist: ${_kolorist.dim.call(void 0, O)}`);let I=_path.resolve.call(void 0, y,a[C]),B=_path.join.call(void 0, "public",a[C]);_fsextra2.default.writeFileSync(I,S,"utf-8"),_consola2.default.success(`[${_kolorist.cyan.call(void 0, C)}] public: ${_kolorist.dim.call(void 0, O)}`);try{let k=_path.resolve.call(void 0, e.userRoot,".gitignore"),L=await _fsextra2.default.readFile(k,"utf-8"),R=B.replace(/\\/g,"/");L.includes(R)||(await _fsextra2.default.appendFile(k,`
|
|
9
|
-
# valaxy rss
|
|
10
|
-
${R}
|
|
11
|
-
`),_consola2.default.success(`Add ${_kolorist.dim.call(void 0, R)} to ${_kolorist.dim.call(void 0, ".gitignore")}`))}catch (e16){}})}var Br={extendCli(e){e.command("rss [root]","generate rss feed",t=>We(t).strict().help(),async({root:t})=>{St();let r=await be({userRoot:t},"build");await Zl(r)})},setup(e){e.hook("build:after",()=>{console.log(),Zl(e.options)})}};_chunkGXMNHGBPcjs.e.call(void 0, );var eu=_chunkGXMNHGBPcjs.c.call(void 0, Ar(),1);async function tu(e){_consola2.default.start(`Generate List for Fuse Search by (${_kolorist.cyan.call(void 0, "fuse.js")}) ...`);let t=await(0,eu.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=_fsextra2.default.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=_graymatter2.default.call(void 0, o,{excerpt_separator:"<!-- more -->"});if(i.draft){_consola2.default.warn(`Ignore draft post: ${_kolorist.dim.call(void 0, 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 uv(e){e.command("fuse [root]","generate fuse list for search",t=>We(t).strict().help(),async({root:t})=>{_consola2.default.info("Please generate it before build."),St();let r=await be({userRoot:t},"build"),n=await tu(r);await _fsextra2.default.ensureDir("./dist");let o=_path2.default.resolve(r.userRoot,"public"),i=_path2.default.resolve(o,r.config.siteConfig.fuse.dataPath),s=_path2.default.join("public",r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureFile(i),_fsextra2.default.writeJSONSync(i,n),_consola2.default.success(`Generate fuse list in ${_kolorist.dim.call(void 0, o)}`);let a=_path2.default.resolve(r.userRoot,"dist"),u=_path2.default.resolve(a,r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureDir(a),_fsextra2.default.writeJSONSync(u,n),_consola2.default.success(`Generate fuse list in ${_kolorist.dim.call(void 0, a)}`);try{let f=_path2.default.resolve(r.userRoot,".gitignore"),c=await _fsextra2.default.readFile(f,"utf-8"),d=s.replace(/\\/g,"/");c.includes(d)||(await _fsextra2.default.appendFile(f,`
|
|
12
|
-
# valaxy fuse
|
|
13
|
-
${d}
|
|
14
|
-
`),_consola2.default.success(`Add ${_kolorist.dim.call(void 0, d)} to ${_kolorist.dim.call(void 0, ".gitignore")}`))}catch (e17){}})}var ru={extendCli(e){uv(e)},setup(e){e.hook("build:before",()=>{tu(e.options)})}};_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _ejs = require('ejs');var _dayjs = require('dayjs'); var _dayjs2 = _interopRequireDefault(_dayjs);_chunkGXMNHGBPcjs.e.call(void 0, );async function Ur(e){try{return await _promises.access.call(void 0, e),!0}catch (e18){return!1}}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Ut=_process2.default.cwd(),nu=`---
|
|
15
|
-
layout: <%=layout%>
|
|
16
|
-
title: <%=title%>
|
|
17
|
-
date: <%=date%>
|
|
18
|
-
---
|
|
19
|
-
`;async function ou(e){let{clientRoot:t,themeRoot:r}=await be({userRoot:Ut}),n=[Ut,r,t];for(let o of n){let i=_path2.default.resolve(o,"scaffolds",`${e}.md`);if(await Ur(i))return _promises.readFile.call(void 0, i,"utf-8")}return!1}async function su(e){let t=_path.resolve.call(void 0, Ut,"pages"),{path:r,title:n}=e,o=r||_path.join.call(void 0, "posts",n),i=0;for(;;){let s=_path.resolve.call(void 0, t,o);if(i&&(s=`${s}-${i}`),s=_utils.ensureSuffix.call(void 0, ".md",s),!await Ur(s)){let a=await bv(e);try{await _promises.writeFile.call(void 0, s,a,"utf-8"),_consola.consola.success(`[valaxy new]: successfully generated file ${_kolorist.magenta.call(void 0, s)}`)}catch(u){console.log(u),_consola.consola.error(`[valaxy new]: failed to write file ${s}`),_consola.consola.warn(`You should run ${_kolorist.green.call(void 0, "valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function bv({date:e,title:t,layout:r="post"}){let n=await ou(r);n||(n=nu);let o="YYYY-MM-DD HH:mm:ss";return _ejs.render.call(void 0, n,{title:t,layout:r,date:e?_dayjs2.default.call(void 0, ).format(o):""})}function au(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 su({title:t,date:n,layout:o,path:r})})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _node = require('vite-ssg/node');var _vitessgsitemap = require('vite-ssg-sitemap'); var _vitessgsitemap2 = _interopRequireDefault(_vitessgsitemap);_chunkGXMNHGBPcjs.e.call(void 0, );var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);var _vitepluginvuelayouts = require('vite-plugin-vue-layouts'); var _vitepluginvuelayouts2 = _interopRequireDefault(_vitepluginvuelayouts);var _vite3 = require('unplugin-vue-components/vite'); var _vite4 = _interopRequireDefault(_vite3);var _vite5 = require('@intlify/unplugin-vue-i18n/vite'); var _vite6 = _interopRequireDefault(_vite5);var _vite7 = require('@unhead/addons/vite'); var _vite8 = _interopRequireDefault(_vite7);_chunkGXMNHGBPcjs.e.call(void 0, );var _markdownitanchor = require('markdown-it-anchor'); var _markdownitanchor2 = _interopRequireDefault(_markdownitanchor);var _markdownitattrs = require('markdown-it-attrs'); var _markdownitattrs2 = _interopRequireDefault(_markdownitattrs);var _markdownitemoji = require('markdown-it-emoji');var _markdownittasklists = require('markdown-it-task-lists'); var _markdownittasklists2 = _interopRequireDefault(_markdownittasklists);_chunkGXMNHGBPcjs.e.call(void 0, );var cu=new Set([!0,!1,"alt","title"]);function lu(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function uu(e,t){e&&e.attrs&&(e.attrs=lu(e.attrs,t))}function Sv(e,t){if(!cu.has(e))throw new TypeError(`figcaption must be one of: ${[...cu]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(uu(t,"title"),r[1]):void 0}function fu(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=Sv(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=lu(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]]),uu(u,"src")}}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _html_blocksmjs = require('markdown-it/lib/common/html_blocks.mjs'); var _html_blocksmjs2 = _interopRequireDefault(_html_blocksmjs);var wv="[a-zA-Z_:@][a-zA-Z0-9:._-]*",Ev="[^\"'=<>`\\x00-\\x20]+",Av="'[^']*'",kv='"[^"]*"',Pv="(?:"+Ev+"|"+Av+"|"+kv+")",pi="(?:\\s+"+wv+"(?:\\s*=\\s*"+Pv+")?)",pu="<[A-Za-z][A-Za-z0-9\\-]*"+pi+"*\\s*\\/?>",du="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ov="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tv="<[?][\\s\\S]*?[?]>",$v="<![A-Z]+\\s+[^>]*>",Fv="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Iv=new RegExp("^(?:"+pu+"|"+du+"|"+Ov+"|"+Tv+"|"+$v+"|"+Fv+")"),Lv=new RegExp("^(?:"+pu+"|"+du+")"),Mv=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+pi+"*\\s*\\/>"),Nv=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+pi+"*\\s*>.*<\\/\\1\\s*>"),Dv=_html_blocksmjs2.default,Vv=["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"],Hv=["template","component","transition","transition-group","keep-alive","slot","teleport"],jv=({blockTags:e,inlineTags:t})=>{let r=[...e,...Dv],n=[...t,...Vv.filter(i=>!Hv.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(Lv.source+"\\s*$"),/^$/,!1]]},qv=e=>{let t=jv(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=_nullishCoalesce(u.match(Mv), () => (u.match(Nv)));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}},Bv=e=>{let t=e|32;return t>=97&&t<=122},Uv=(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&&!Bv(o))return!1;let i=e.src.slice(r).match(Iv);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},mu=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{let n=qv({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",Uv)};_chunkGXMNHGBPcjs.e.call(void 0, );var gu=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{let n=e.render.bind(e);e.render=(o,i={})=>{let{data:s,content:a,excerpt:u=""}=_graymatter2.default.call(void 0, o,t);return i.content=a,i.frontmatter={...i.frontmatter,...s},i.excerpt=r&&u?n(u,{...i}):u,n(a,i)}};_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Wv={"&":"&","<":"<",">":">","'":"'",'"':"""},zv=/[&<>'"]/g,at=e=>e.replace(zv,t=>Wv[t]);var Gt=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=_nullishCoalesce(e.children, () => ([])),o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!_optionalChain([s, 'access', _45 => _45.meta, 'optionalAccess', _46 => _46.isPermalinkSymbol])).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${at(a.content)}`:`${s}${a.content}`,"").trim()},Gr=(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(_optionalChain([d, 'optionalAccess', _47 => _47.type])!=="heading_open"||_optionalChain([d, 'optionalAccess', _48 => _48.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 y=Gt(_,{shouldAllowHtml:r,shouldEscapeText:o}),x=_nullishCoalesce(d.attrGet("id"), () => (i(y)));f({level:p,title:_nullishCoalesce(_optionalChain([s, 'optionalCall', _49 => _49(y)]), () => (y)),slug:x,link:`#${x}`,children:[]})}return a},Kv=/[\u0000-\u001f]/g,Yv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,Xv=/[\u0300-\u036F]/g,ct=e=>e.normalize("NFKD").replace(Xv,"").replace(Kv,"").replace(Yv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var hu=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=ct,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,u)=>(u.headers=Gr(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,u))};_chunkGXMNHGBPcjs.e.call(void 0, );var yu="script",vu="style",Wt="template",Qv=/^<script\s+.*?\bsetup\b.*?>$/is,Zv=({customBlocks:e})=>{let t=Array.from(new Set([yu,vu,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},_u=(e,{customBlocks:t=[]}={})=>{let r=Zv({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:Wt,content:`<${Wt}>${a}</${Wt}>`,contentStripped:a,tagOpen:`<${Wt}>`,tagClose:`</${Wt}>`},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===yu?(u.sfcBlocks.scripts.push(_),Qv.test(_.tagOpen)?u.sfcBlocks.scriptSetup=_:u.sfcBlocks.script=_):_.type===vu?u.sfcBlocks.styles.push(_):u.sfcBlocks.customBlocks.push(_),""}};_chunkGXMNHGBPcjs.e.call(void 0, );var xu=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?Gt(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};_chunkGXMNHGBPcjs.e.call(void 0, );var Jv=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=at(e),s=t?` class="${at(t)}"`:"",a="li",u=r?` class="${at(r)}"`:"",f=at(n),c=o?` class="${at(o)}"`:"",d=_=>n==="router-link"?` to="${_}"`:` href="${_}"`,p=_=>`<${i}${s}>${_.map(y=>`<${a}${u}><${f}${c}${d(y.link)}>${y.title}</${f}>${y.children.length>0?p(y.children):""}</${a}>`).join("")}</${i}>`;return p},e_=({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},Cu=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=ct,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",e_({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let _=Jv({listTag:u,listClass:f,itemClass:c,linkTag:d,linkClass:p});e.renderer.rules.toc_body=y=>_(Gr(y,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};var _cssi18n = require('css-i18n');_chunkGXMNHGBPcjs.e.call(void 0, );var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);function Su(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 t_(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=Su(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=Su(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 r_(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}
|
|
20
|
-
`:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function di(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return _katex2.default.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>${_katex2.default.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
|
|
21
|
-
`};e.inline.ruler.after("escape","math_inline",t_),e.block.ruler.after("blockquote","math_block",r_,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}_chunkGXMNHGBPcjs.e.call(void 0, );var _markdownitcontainer = require('markdown-it-container'); var _markdownitcontainer2 = _interopRequireDefault(_markdownitcontainer);_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Ru="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var n_=128,Ke,Ye,Eu=e=>{!Ke||Ke.length<e?(Ke=Buffer.allocUnsafe(e*n_),_crypto2.default.randomFillSync(Ke),Ye=0):Ye+e>Ke.length&&(_crypto2.default.randomFillSync(Ke),Ye=0),Ye+=e},o_=e=>(Eu(e-=0),Ke.subarray(Ye-e,Ye)),i_=(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}}},Au=(e,t=21)=>i_(e,t,o_),mi=(e=21)=>{Eu(e-=0);let t="";for(let r=Ye-e;r<Ye;r++)t+=Ru[Ke[r]&63];return t};_chunkGXMNHGBPcjs.e.call(void 0, );function ku(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function gi(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 Pu(e,t=!1){return t?_optionalChain([e, 'access', _50 => _50.replace, 'call', _51 => _51(/<!--[^]*?-->/g,""), 'access', _52 => _52.match, 'call', _53 => _53(/data-title="(.*?)"/), 'optionalAccess', _54 => _54[1]])||"":_optionalChain([e, 'access', _55 => _55.match, 'call', _56 => _56(/\[(.*)\]/), 'optionalAccess', _57 => _57[1]])||ku(e)||"txt"}function s_(e){let t=_optionalChain([e, 'optionalAccess', _58 => _58.siteConfig, 'optionalAccess', _59 => _59.codeHeightLimit]);return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function Ou(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=ku(s.info),u=r(...n);return`
|
|
22
|
-
<div ${s_(t)} class="language-${a}${gi(t)}${/ active( |$)/.test(s.info)?" active":""}">
|
|
23
|
-
<button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${u}<button class="collapse"></button>
|
|
24
|
-
</div>`}}function a_(e,{icon:t,color:r,text:n,langs:o}={}){return[_markdownitcontainer2.default,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>`}
|
|
25
|
-
`;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>
|
|
26
|
-
`}else return e==="details"?`</details>
|
|
27
|
-
`:`</div>
|
|
28
|
-
`}}]}var Tu={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 $u(e,t={}){Object.keys(Tu).forEach(n=>{let o={...Tu[n],...t[n]||{}};e.use(...a_(n,o))}),e.use(...c_(t)),e.use(_markdownitcontainer2.default,"v-pre",{render:(n,o)=>n[o].nesting===1?`<div v-pre>
|
|
29
|
-
`:`</div>
|
|
30
|
-
`}),["zh-CN","en"].forEach(n=>{e.use(_markdownitcontainer2.default,n,{render:(o,i)=>o[i].nesting===1?`<div lang="${n}">
|
|
31
|
-
`:`</div>
|
|
32
|
-
`})})}function c_(e){return[_markdownitcontainer2.default,"code-group",{render(t,r){if(t[r].nesting===1){let n=mi(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=Pu(a?t[s].content:t[s].info,a);if(u){let f=mi(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${gi({theme:e.theme})}"><div class="tabs">${o}</div><div class="blocks">
|
|
33
|
-
`}return`</div></div>
|
|
34
|
-
`}}]}_chunkGXMNHGBPcjs.e.call(void 0, );var Vu=_chunkGXMNHGBPcjs.c.call(void 0, yi(),1);var _shiki = require('shiki');_chunkGXMNHGBPcjs.e.call(void 0, );function zt(e,t={}){return({code:r})=>{let n=_nullishCoalesce(t.tagRegExp, () => (/(?:\/\/|\/\*{1,2}) *\[!code ([\w+-]+)(?::(\d+))?] *(?:\*{1,2}\/)?/)),o=[];return r=r.split(`
|
|
35
|
-
`).map((i,s)=>{let[a,u,f]=_nullishCoalesce(i.match(n), () => ([]));return!a||!Object.keys(e).includes(u)?i:(Array.from({length:Number(_nullishCoalesce(f, () => (1)))}).forEach((c,d)=>{o.push({line:s+d+1,classes:e[u]})}),i.replace(n,""))}).join(`
|
|
36
|
-
`),{code:r,lineOptions:o}}}function Et(e,t,r){let n=new RegExp(`<${_nullishCoalesce(r, () => ("w+"))}[^>]*class="([\\w+-:;\\/* ]*)"`);return t=Array.isArray(t)?t:[t],e.replace(n,(o,i)=>o.replace(i,`${i} ${t}`))}function Lu(e={}){let t=_nullishCoalesce(e.commonDiffClass, () => ("diff")),r=_nullishCoalesce(e.removedLinesClasses, () => (["remove"])),n=_nullishCoalesce(e.removedLinesClasses, () => (["add"])),o=_nullishCoalesce(e.removeLineTag, () => ("--")),i=_nullishCoalesce(e.addLineTag, () => ("++")),s=_nullishCoalesce(e.hasDiffClass, () => ("has-diff"));return{name:"diff",handler:zt({[o]:[t,...r],[i]:[t,...n]},e),postProcess:({code:a})=>a.includes(t)?Et(a,s,"pre"):a}}function Mu(e={}){let t=_nullishCoalesce(e.hasFocusClass, () => ("has-focus")),r=_nullishCoalesce(e.hasFocusedLinesClass, () => ("has-focused-lines")),n=_nullishCoalesce(e.focusTag, () => ("focus"));return{name:"focus",handler:zt({[n]:[t]},e),postProcess:({code:o})=>o.includes(t)?Et(o,r,"pre"):o}}function Nu(e={}){let t=_nullishCoalesce(e.hasHighlightClass, () => ("has-highlight")),r=_nullishCoalesce(e.hasHighlightedLinesClass, () => ("has-highlighted-lines")),n=_nullishCoalesce(e.highlightTag, () => ("hl"));return{name:"highlight",handler:zt({[n]:[t]},e),postProcess:({code:o})=>o.includes(t)?Et(o,r,"pre"):o}}function p_(e,t,r){return e.reduce((n,o)=>{let{code:i,lineOptions:s}=_nullishCoalesce(_optionalChain([o, 'access', _60 => _60.handler, 'optionalCall', _61 => _61({code:n.code,lang:r})]), () => (n));return{code:i,lineOptions:[...n.lineOptions,...s]}},{code:t,lineOptions:[]})}function d_(e,t,r){return e.reduce((n,o)=>_nullishCoalesce(_optionalChain([o, 'access', _62 => _62.postProcess, 'optionalCall', _63 => _63({code:n,lang:r})]), () => (n)),t)}async function Du(e={}){let t=await _shiki.getHighlighter.call(void 0, e),r=_nullishCoalesce(e.processors, () => ([]));return{...t,codeToHtml:(n,o)=>{let i=typeof o=="object"?o.lang:o,s=typeof o=="object"?_nullishCoalesce(o.lineOptions, () => ([])):[],a=typeof o=="object"?o.theme:void 0,{code:u,lineOptions:f}=p_(r,n,i),c=t.codeToHtml(u,{lang:i,theme:a,lineOptions:[...f,...s]});return d_(r,c,i)}}}var g_=Au("abcdefghijklmnopqrstuvwxyz",10);function h_(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"]}))):[]}var y_={name:"error-level",handler:zt({error:["highlighted","error"],warning:["highlighted","warning"]})};async function Hu(e,t=[],r="",n=console){let o=typeof e=="string"||"name"in e,i=y=>typeof y=="string"?y:y.name,s=[Mu(),Nu({hasHighlightClass:"highlighted"}),Lu(),y_],a=await Du({themes:o?[e]:[e.dark,e.light],langs:[..._shiki.BUNDLED_LANGUAGES,...t],processors:s}),u=/<pre[^>]*(style=".*?")/,f=/^<pre(.*?)>/,c=/-vue$/,d=/=(\d*)/,p=/:(no-)?line-numbers(=\d*)?$/,_=/\{\{.*?\}\}/g;return(y,x,C)=>{let S=c.test(x)?"":"v-pre";x=x.replace(d,"").replace(p,"").replace(c,"").toLowerCase()||r,x&&!a.getLoadedLanguages().includes(x)&&!["ansi","plaintext","txt","text"].includes(x)&&(n.warn(Vu.default.yellow(`
|
|
37
|
-
The language '${x}' is not loaded, falling back to '${r||"txt"}' for syntax highlighting.`)),x=r);let O=h_(C),I=m=>m.replace(f,(A,$)=>`<pre ${S}${$.replace(' tabindex="0"',"")}>`).replace(u,(A,$)=>A.replace($,"")),B=new Map,k=m=>S?m:m.replace(_,A=>{let $=B.get(A);return $||($=g_(),B.set(A,$)),$}),L=m=>(B.forEach((A,$)=>{m=m.replaceAll(A,$)}),m),R=m=>m.replace(/(<span class="line highlighted">)(<\/span>)/g,"$1<wbr>$2");y=k(y).trimEnd();let w=m=>{let A=x==="ansi"?a.ansiToHtml(y,{lineOptions:O,theme:i(m)}):a.codeToHtml(y,{lang:x,lineOptions:O,theme:i(m)});return R(I(L(A)))};if(o)return w(e);let T=Et(w(e.dark),"vp-code-dark","pre"),W=Et(w(e.light),"vp-code-light","pre");return T+W}}_chunkGXMNHGBPcjs.e.call(void 0, );var vi=/{([\d,-]+)}/;function ju(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||!vi.test(u))return t(...r);let f=u.replace(vi,"").trim();i.info=f,a=vi.exec(u)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}_chunkGXMNHGBPcjs.e.call(void 0, );var _url = require('url');var __=/(^|.*\/)index.md(#?.*)$/i;function qu(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];Ct.test(_)?(Object.entries(t).forEach(([x,C])=>{c.attrSet(x,C)}),p[1]=_.replace(xl,"")):!_.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(__);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 (0, _url.URL)(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)}}_chunkGXMNHGBPcjs.e.call(void 0, );function Bu(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(`
|
|
38
|
-
`),_=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((x,C)=>`<span class="line-number">${C+u}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${_}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}_chunkGXMNHGBPcjs.e.call(void 0, );var x_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function C_(e){let[t="",r="",n="",o="",i="",s=""]=(x_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function b_(e){let t=e.split(`
|
|
39
|
-
`),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(`
|
|
40
|
-
`):e}function Gu(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 S_(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(Gu(s,a,t)){o=i+1,n=a;break}}else if(Gu(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Wu(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 w=0;w<3;++w)if(o.src.charCodeAt(f+w)!==60||f+w>=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:y,extension:x,region:C,lines:S,lang:O,title:I}=C_(_);o.line=i+1;let B=o.push("fence","code",0);B.info=`${O||x}${S?`{${S}}`:""}${I?`[${I}]`:""}`;let{realPath:k,path:L}=o.env,R=_path2.default.resolve(_path2.default.dirname(_nullishCoalesce(k, () => (L))),y);return B.src=[R,C.slice(1)],B.markup="```",B.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]=_nullishCoalesce(u.src, () => ([]));if(!f)return n(...o);a&&a.push(f);let d=_fsextra2.default.statSync(f).isFile();if(!_fsextra2.default.existsSync(f)||!d)return u.content=d?`Code snippet path not found: ${f}`:"Invalid code snippet option",u.info="",n(...o);let p=_fsextra2.default.readFileSync(f,"utf8");if(c){let _=p.split(/\r?\n/),y=S_(_,c);y&&(p=b_(_.slice(y.start,y.end).filter(x=>!y.regexp.test(x.trim())).join(`
|
|
41
|
-
`)))}return u.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}_chunkGXMNHGBPcjs.e.call(void 0, );var Ku={light:"github-light",dark:"github-dark"};async function xi(e,t,r=!1,n="/"){let o=_optionalChain([t, 'optionalAccess', _64 => _64.config, 'access', _65 => _65.markdown])||{},i=_nullishCoalesce(o.theme, () => (Ku)),s=_optionalChain([t, 'optionalAccess', _66 => _66.config, 'access', _67 => _67.siteConfig])||{};o.preConfig&&o.preConfig(e),e.use(mu,{...o.component}),e.use(ju).use(Ou,{theme:i,siteConfig:s}).use(Wu,_optionalChain([t, 'optionalAccess', _68 => _68.userRoot])).use($u,{...o.blocks,theme:i}).use(_cssi18n.cssI18nContainer,{languages:_optionalChain([t, 'optionalAccess', _69 => _69.config, 'access', _70 => _70.siteConfig, 'access', _71 => _71.languages])}).use(qu,{target:"_blank",rel:"noreferrer",...o.externalLinks},n),e.use(Bu,o.lineNumbers),_optionalChain([o, 'access', _72 => _72.attrs, 'optionalAccess', _73 => _73.disable])||e.use(_markdownitattrs2.default,o.attrs),e.use(_markdownitemoji.full),r||e.use(_markdownitanchor2.default,{slugify:ct,permalink:_markdownitanchor2.default.permalink.linkInsideHeader({symbol:"​",renderAttrs:(u,f)=>{let c=f.tokens.findIndex(p=>{let y=_optionalChain([p, 'access', _74 => _74.attrs, 'optionalAccess', _75 => _75.find, 'call', _76 => _76(x=>x[0]==="id")]);return y&&u===y[1]});return{"aria-label":`Permalink to "${f.tokens[c+1].content}"`}}}),...o.anchor}),e.use(gu,{...o.frontmatter}).use(hu,{slugify:ct,...o.headers}).use(_u,{...o.sfc}).use(xu).use(Cu,{...o.toc}),e.use(di,o.katex);let a=_optionalChain([t, 'optionalAccess', _77 => _77.config, 'access', _78 => _78.siteConfig, 'access', _79 => _79.vanillaLazyload])||{enable:!1};return e.use(fu,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...o.imageFigures}),e.use(_markdownittasklists2.default),o.config&&o.config(e),e}async function Yu(e){let t=_optionalChain([e, 'optionalAccess', _80 => _80.config, 'access', _81 => _81.markdown])||{},r=_nullishCoalesce(t.theme, () => (Ku)),n=_markdownit2.default.call(void 0, {html:!0,linkify:!0,highlight:await Hu(r,t.languages,t.defaultHighlightLang),...t.options});return await xi(n,e),n}_chunkGXMNHGBPcjs.e.call(void 0, );var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);var _unocss = require('unocss');_chunkGXMNHGBPcjs.e.call(void 0, );function Xu(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{_utils.isObject.call(void 0, e[n])?e[n]=Xu(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 Qu(e,t,r,n,o=!0){let i=n;for(let s of e){let a=_path.resolve.call(void 0, s,"setup",t);if(_fsextra2.default.existsSync(a)){let{default:u}=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, (0, _chunkGXMNHGBPcjs.d)))(a),f=await u(r);f!==null&&(i=o?Xu(i,f):f)}}return i}async function U_(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(_optionalChain([e, 'access', _82 => _82.config, 'access', _83 => _83.unocss, 'optionalAccess', _84 => _84.safelist])||[]),n="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(r),o=t.siteConfig;_optionalChain([o, 'access', _85 => _85.social, 'optionalAccess', _86 => _86.length])&&o.social.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _87 => _87.icon])||""));let i=_optionalChain([o, 'access', _88 => _88.sponsor, 'optionalAccess', _89 => _89.methods])||[];return i.length&&i.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _90 => _90.icon])||"")),n}async function G_(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:[_unocss.presetUno.call(void 0, _optionalChain([t, 'access', _91 => _91.unocssPresets, 'optionalAccess', _92 => _92.uno])),_unocss.presetAttributify.call(void 0, _optionalChain([t, 'access', _93 => _93.unocssPresets, 'optionalAccess', _94 => _94.attributify])),_unocss.presetIcons.call(void 0, {scale:1.2,..._optionalChain([t, 'access', _95 => _95.unocssPresets, 'optionalAccess', _96 => _96.icons])}),_unocss.presetTypography.call(void 0, _optionalChain([t, 'access', _97 => _97.unocssPresets, 'optionalAccess', _98 => _98.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:[_unocss.transformerDirectives.call(void 0, ),_unocss.transformerVariantGroup.call(void 0, )],safelist:await U_(e)}}async function Ju(e){let t=await Promise.resolve().then(() => _interopRequireWildcard(require("unocss/vite"))).then(p=>p.default),{unocss:r}=e.config,n=await G_(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],u=[];[o,i].forEach(p=>a.forEach(_=>u.push(_path.resolve.call(void 0, p,_))));let c={},d=[];return u.forEach(p=>{if(_fs.existsSync.call(void 0, p)){let _=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, (0, _chunkGXMNHGBPcjs.d)))(p);"default"in _&&(_=_.default),c=_defu2.default.call(void 0, c,_),d.push(p)}}),c=await Qu(s,"unocss.ts",{},c,!0),t({configDeps:d,configFile:!1,..._defu2.default.call(void 0, r||{},c,n)})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );async function zr({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=_utils.uniq.call(void 0, [t,e]).map(s=>_path.join.call(void 0, s,"vite.config.ts"));for await(let s of i){if(!_fsextra2.default.existsSync(s))continue;let a=await _vite.loadConfigFromFile.call(void 0, n,s);_optionalChain([a, 'optionalAccess', _99 => _99.config])&&(o=_vite.mergeConfig.call(void 0, o,a.config))}return o}async function ef({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+=`
|
|
42
|
-
<script>
|
|
43
|
-
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
44
|
-
const colorSchemeSetting = localStorage.getItem('vueuse-color-scheme') || 'auto';
|
|
45
|
-
if (colorSchemeSetting === 'dark' || (prefersDark && colorSchemeSetting !== 'light')) {
|
|
46
|
-
document.documentElement.classList.toggle('dark', true);
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
49
|
-
`),n.siteConfig.lang&&(s+=`
|
|
50
|
-
<script>
|
|
51
|
-
const locale = localStorage.getItem('valaxy-locale') || '${n.siteConfig.lang}';
|
|
52
|
-
document.documentElement.setAttribute('lang', locale);
|
|
53
|
-
</script>
|
|
54
|
-
`);for(let f of u){let c=_path.join.call(void 0, f,"index.html");if(!_fsextra2.default.existsSync(c))continue;let d=await _fsextra2.default.readFile(c,"utf-8");s+=`
|
|
55
|
-
${(_optionalChain([d, 'access', _100 => _100.match, 'call', _101 => _101(/<head>([\s\S]*?)<\/head>/im), 'optionalAccess', _102 => _102[1]])||"").trim()}`,a+=`
|
|
56
|
-
${(_optionalChain([d, 'access', _103 => _103.match, 'call', _104 => _104(/<body>([\s\S]*?)<\/body>/im), 'optionalAccess', _105 => _105[1]])||"").trim()}`}return i=i.replace("__ENTRY__",Q(_path.join.call(void 0, e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var Z_=["@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"],nf=["@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 of(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:_path.join.call(void 0, e.userRoot,"public"),define:Ri(e),resolve:{alias:J_(e),dedupe:["vue"]},optimizeDeps:{entries:[_path.resolve.call(void 0, e.clientRoot,"main.ts")],include:_utils.uniq.call(void 0, [...Z_,...t,...r]).filter(i=>!nf.includes(i)),exclude:nf},server:{fs:{allow:_utils.uniq.call(void 0, [_vite.searchForWorkspaceRoot.call(void 0, e.clientRoot),_vite.searchForWorkspaceRoot.call(void 0, e.themeRoot),_vite.searchForWorkspaceRoot.call(void 0, e.userRoot),_path.dirname.call(void 0, $e("katex/package.json",!0))])}}};return _isinstalledglobally2.default&&(o.cacheDir=_path.join.call(void 0, e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${$e("vue/dist/vue.esm-browser.js",!0)}`),_vite.mergeConfig.call(void 0, n,o)},async transformIndexHtml(n){return n=await ef(e,n),{html:n,tags:[]}}}}function Ri(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function J_(e){let t=[{find:"~/",replacement:`${Q(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${Q(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:Q(_path.resolve.call(void 0, e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:Q(_path.resolve.call(void 0, e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${Q(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${Q(_path.resolve.call(void 0, e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${Q(_path.resolve.call(void 0, e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:$e("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${Q(`${_path.resolve.call(void 0, r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${Q(_path.resolve.call(void 0, r.root))}/App.vue`}),t.push({find:r.name,replacement:`${Q(_path.resolve.call(void 0, r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:Q(_path.resolve.call(void 0, e.clientRoot,"./addons/index.ts"))}),t}_chunkGXMNHGBPcjs.e.call(void 0, );function sf({clientRoot:e,themeRoot:t,userRoot:r}){let n=_utils.slash.call(void 0, _path.resolve.call(void 0, 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 _utils.uniq.call(void 0, [t,r]).map(c=>_path.join.call(void 0, c,"setup",s)).forEach((c,d)=>{if(!_fs.existsSync.call(void 0, c))return;a.push(`import __n${d} from '${Q(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(`
|
|
57
|
-
`)),o=o.replace("/* __injections__ */",u.join(`
|
|
58
|
-
`)),o}return null}}}_chunkGXMNHGBPcjs.e.call(void 0, );function af(e){let t=_utils.objectEntries.call(void 0, Ri(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}}}]}_chunkGXMNHGBPcjs.e.call(void 0, );var _vite9 = require('unplugin-vue-router/vite'); var _vite10 = _interopRequireDefault(_vite9);var _htmltotext = require('html-to-text');_chunkGXMNHGBPcjs.e.call(void 0, );function c1(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 l1({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 u1({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function f1(e,t){let r=c1(e);return{countData:r,wordCount:u1(r),readingTime:l1(r,t.readTime)}}function cf({route:e,options:t}){let r=e.components.get("default")||"";if(_fs.existsSync.call(void 0, r)){let n=_fs.readFileSync.call(void 0, r,"utf-8"),{wordCount:o,readingTime:i}=f1(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 g1(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Kr.render(e);case"text":return _htmltotext.convert.call(void 0, Kr.render(e));default:return e}}function uf(e){let{roots:t,config:r}=e;return _vite10.default.call(void 0, {extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:`${e.clientRoot}/typed-router.d.ts`,...r.vueRouter,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};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=_fsextra2.default.readFileSync(i,"utf-8"),{data:a,excerpt:u,content:f}=_graymatter2.default.call(void 0, s,{excerpt_separator:Nr}),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=_fsextra2.default.statSync(i).mtime),d&&(c.updated||(c.updated=_fsextra2.default.statSync(i).ctime)),_utils.isDate.call(void 0, c.date)||(c.date=new Date(c.date)),_utils.isDate.call(void 0, c.updated)||(c.updated=new Date(c.updated)),n.addToMeta({frontmatter:c,excerpt:u?g1(u,c.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),_optionalChain([n, 'access', _106 => _106.meta, 'access', _107 => _107.frontmatter, 'optionalAccess', _108 => _108.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&&cf({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:u,content:f,path:i};_optionalChain([r, 'access', _109 => _109.extendMd, 'optionalCall', _110 => _110(p)])}return _optionalChain([r, 'access', _111 => _111.vueRouter, 'optionalAccess', _112 => _112.extendRoute, 'optionalCall', _113 => _113(n)])}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _pascalcase = require('pascalcase'); var _pascalcase2 = _interopRequireDefault(_pascalcase);_chunkGXMNHGBPcjs.e.call(void 0, );var At=_chunkGXMNHGBPcjs.c.call(void 0, yi(),1),mf=_chunkGXMNHGBPcjs.c.call(void 0, Wo(),1);var _lrucache = require('lru-cache');_chunkGXMNHGBPcjs.e.call(void 0, );function h1(e){let t=new TextEncoder;return _crypto.webcrypto.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function y1(e,t){return _crypto.webcrypto.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function Yr(e,t){let{password:r,iv:n,salt:o}=t,i=await h1(r),s=await y1(i,o),a=new TextEncoder,u=await _crypto.webcrypto.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(u))}_chunkGXMNHGBPcjs.e.call(void 0, );function ki(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?_path2.default.join(e,a.slice(a[1]==="/"?2:1)):_path2.default.join(_path2.default.dirname(r),a),d=_fsextra2.default.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(`
|
|
59
|
-
`)}return n.push(_utils.slash.call(void 0, c)),ki(e,d,c,n)}catch (e19){return s}})}var C1="\u200B",b1="<wbr>",ff=(0,mf.default)("vitepress:md"),pf=new (0, _lrucache.LRUCache)({max:1024}),S1=/<!--\s*@include:\s*(.*?)\s*-->/g;function R1(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 gf(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 w1(e,t,r){if(typeof t.title=="string"){let n=e.parseInline(t.title,{})[0];if(n)return Gt(n,{shouldAllowHtml:!1,shouldEscapeText:!1})}return r}function E1(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 A1(e){let{description:t,head:r}=e;return t!==void 0?t:r&&E1(r,"description")||""}function k1(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 hf(e,t,r,n,o=!1,i=!1,s="with-subfolders"){let a=await Yu(e);r=r.map(f=>Te(f.replace(/\.md$/,"")).replace(/\/index$/,""));let u=R1(n,o);return async(f,c,d)=>{let p=c,_=_path2.default.dirname(c),y=Te(_path2.default.relative(t,c)),x=JSON.stringify({src:f,file:p}),C=pf.get(x);if(C)return ff(`[cache hit] ${y}`),C;let S=Date.now(),O=[];f=ki(t,f,p,O),f=f.replace(S1,(M,G)=>{try{let H=_path2.default.join(_,G),re=_fsextra2.default.readFileSync(H,"utf-8");return O.push(Te(H)),re}catch (e20){return M}});let I={path:c,relativePath:y,cleanUrls:s,realPath:p},B=a.render(f,I),{frontmatter:k={},headers:L=[],links:R=[],sfcBlocks:w,title:T=""}=I,W=[],m=M=>{console.warn(At.default.yellow(`
|
|
60
|
-
(!) Found dead link ${At.default.cyan(M)} in file ${At.default.white(At.default.dim(c))}
|
|
61
|
-
If it is intended, you can use:
|
|
62
|
-
${At.default.cyan(`<a href="${M}" target="_blank" rel="noreferrer">${M}</a>`)}`)),W.push(M)};if(R){let M=_path2.default.dirname(c);for(let G of R){if(/\.(?!html|md)\w+($|\?)/i.test(G))continue;if(G.replace(Ct,"").startsWith("//localhost:")){m(G);continue}G=G.replace(/[?#].*$/,"").replace(/\.(html|md)$/,"");let H=decodeURIComponent(Te(G.startsWith("/")?G.slice(1):_path2.default.relative(t,_path2.default.resolve(M,G)))).replace(/\/index$/,"");(H.endsWith("/")?r.includes(H.slice(0,-1)):r.includes(H)||_fsextra2.default.existsSync(_path2.default.resolve(M,d,`${H}.html`))||_fsextra2.default.existsSync(_path2.default.resolve(M,d,`${H}/index.html`)))||m(G)}}let A={title:w1(a,k,T),titleTemplate:k.titleTemplate,description:A1(k),frontmatter:k,headers:L,relativePath:y,path:_path2.default.join(t,y)};i&&(A.lastUpdated=await Ht(c));let $="ValaxyMain";function D(){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(H=>`<template #${H}><slot name="${H}" /></template>`).join("")}let h=gf(B,u,b1);h=k1(h,e,k.codeHeightLimit);let{config:{siteConfig:{encrypt:v}}}=e;if(v.enable){let M=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,G=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(k.password)h=h.replaceAll(G,"");else{let H=[];for(let Z of h.matchAll(M))H.push(await Yr(Z.groups.content,{password:Z.groups.password,iv:v.iv,salt:v.salt}));k.partiallyEncryptedContents=H.length?H:void 0;let re=0;h=h.replaceAll(M,()=>`<ValaxyDecrypt :encrypted-content="frontmatter.partiallyEncryptedContents[${re++}]" />`)}if(k.password){let H=await Yr(h,{password:k.password,iv:v.iv,salt:v.salt});h="",k.encryptedContent=H,k.encrypt=!0,delete k.password}if(k.gallery_password){let H=await Yr(JSON.stringify(k.photos),{password:k.gallery_password,iv:v.iv,salt:v.salt});k.encryptedPhotos=H,delete k.gallery_password,delete k.photos}}let j=[...I1(_nullishCoalesce(_optionalChain([w, 'optionalAccess', _114 => _114.scripts, 'access', _115 => _115.map, 'call', _116 => _116(M=>M.content)]), () => ([])),A,u),`<template><${$} :frontmatter="frontmatter" :data="data">`,`<template #main-content-md>${h}</template>`,D(),"<slot />",`</${$}></template>`,..._nullishCoalesce(_optionalChain([w, 'optionalAccess', _117 => _117.styles, 'access', _118 => _118.map, 'call', _119 => _119(M=>M.content)]), () => ([])),..._nullishCoalesce(_optionalChain([w, 'optionalAccess', _120 => _120.customBlocks, 'access', _121 => _121.map, 'call', _122 => _122(M=>M.content)]), () => ([]))].join(`
|
|
63
|
-
`);ff(`[render] ${c} in ${Date.now()-S}ms.`);let F={vueSrc:j,pageData:A,deadLinks:W,includes:O};return pf.set(f,F),F}}var df=/<\/script>/,P1=/<\s*script[^>]*\blang=['"]ts['"][^>]*/,O1=/<\s*script[^>]*\bsetup\b[^>]*/,T1=/<\s*script[^>]*\bclient\b[^>]*/,$1=/((?:^|\n|;)\s*)export(\s*)default/,F1=/((?:^|\n|;)\s*)export(.+)as(\s*)default/;function I1(e,t,r){let n=JSON.stringify(t),o=`
|
|
64
|
-
export const __pageData = JSON.parse(${JSON.stringify(gf(n,r,C1))})`,i=e.findIndex(u=>df.test(u)&&!O1.test(u)&&!T1.test(u)),s=e.findIndex(u=>P1.test(u))>-1,a=`
|
|
65
|
-
import { provide } from 'vue'
|
|
66
|
-
import { useRoute } from 'vue-router'
|
|
67
|
-
const data = ${Pl(t)}
|
|
68
|
-
|
|
69
|
-
export default {
|
|
70
|
-
name:'${t.relativePath}',
|
|
71
|
-
data() {
|
|
72
|
-
return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter }
|
|
73
|
-
},
|
|
74
|
-
setup() {
|
|
75
|
-
const route = useRoute()
|
|
76
|
-
route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter)
|
|
77
|
-
provide('pageData', data)
|
|
78
|
-
}
|
|
79
|
-
}`;if(i>-1){let u=e[i],f=$1.test(u)||F1.test(u);e[i]=u.replace(df,`${o+(f?"":`
|
|
80
|
-
${a}`)}</script>`)}else e.unshift(`<script ${s?'lang="ts"':""}>${o}
|
|
81
|
-
${a}</script>`);return e}_chunkGXMNHGBPcjs.e.call(void 0, );function yf(e,t){e.includes("{%")&&e.includes("%}")&&_consola2.default.error(`${`${t}
|
|
82
|
-
`} Please ${_kolorist.red.call(void 0, "remove")} ${_kolorist.cyan.call(void 0, "{% %}")}, because it conflicts with ${_kolorist.yellow.call(void 0, "markdown-it-attrs")}.`)}function q1(e,t){let r=[];_optionalChain([t, 'access', _123 => _123.config, 'access', _124 => _124.features, 'optionalAccess', _125 => _125.katex])&&(r.push(`import "${Q($e("katex/dist/katex.min.css",!0))}"`),r.push(`import "${Q(_path.join.call(void 0, t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["index","css-vars"].forEach(s=>{o.push(_path.join.call(void 0, n,"styles",`${s}.css`)),o.push(_path.join.call(void 0, n,"styles",`${s}.scss`))});for(let s of o)_fsextra2.default.existsSync(s)&&r.push(`import "${Q(s)}"`)}return r.join(`
|
|
83
|
-
`)}function B1(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(_fsextra2.default.existsSync(s)&&_fsextra2.default.readFileSync(s,"utf-8")){let a=i.replace("-","")+o;t.unshift(`import ${a} from "${Q(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
|
|
84
|
-
`)}function U1(e){let t=e.addons.filter(i=>i.global).filter(i=>_fsextra2.default.existsSync(_path.join.call(void 0, i.root,"./App.vue"))),r=i=>`Addon${_pascalcase2.default.call(void 0, i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
|
|
85
|
-
`),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
|
|
86
|
-
export default [${o}]`}var G1='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function _f(e){let t=_path.join.call(void 0, e,"App.vue");return _fsextra2.default.existsSync(t)?[`import AppVue from "${Q(t)}"`,"export default AppVue"].join(`
|
|
87
|
-
`):G1}function xf(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 hf(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 q1(o,e);if(u==="/@valaxyjs/locales")return B1(o);if(u==="/@valaxyjs/addons")return U1(e);if(u==="/@valaxyjs/UserAppVue")return _f(e.userRoot);if(u==="/@valaxyjs/ThemeAppVue")return _f(e.themeRoot);if(u.startsWith(n))return{code:"",map:{mappings:""}}},async transform(u,f){if(f.endsWith(".md")){yf(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{file:f,server:c,read:d}=u,p=y=>{_optionalChain([t, 'access', _126 => _126.onConfigReload, 'optionalCall', _127 => _127(y,e.config)]),Object.assign(e.config,y),r=y;let x=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(x).map(S=>c.moduleGraph.getModuleById(S))].filter(S=>!!S)};if([e.configFile].includes(f)){let{config:y}=await be({userRoot:e.userRoot});return p(y)}if(f===e.siteConfigFile){let{siteConfig:y}=await Vr(e.userRoot);return r.siteConfig=_defu.defu.call(void 0, y,ii),p(r)}if(f===e.themeConfigFile){let{themeConfig:y}=await Hr(e.userRoot);return r.themeConfig=_defu.defu.call(void 0, y,r.themeConfig),p(r)}if(f===_path.resolve.call(void 0, e.themeRoot,"valaxy.config.ts")){let y=li(e),x=bt(e.config,y),{config:C}=await ci(e,x);return p(C)}if(f.endsWith(".md")){let y=await d(),{pageData:x,vueSrc:C}=await i(y,f,_path.join.call(void 0, e.userRoot,"public")),O={path:`/${Te(_path.relative.call(void 0, `${e.userRoot}/pages`,f))}`,pageData:x};c.ws.send({type:"custom",event:"valaxy:pageData",data:O}),u.read=()=>C}}}}var Kr=new (0, _markdownit2.default)({html:!0});async function Yt(e,t={}){let{roots:r,config:n}=e;await xi(Kr,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[xf(e,t),of(e),sf(e),_pluginvue2.default.call(void 0, {include:[/\.vue$/,/\.md$/],template:{compilerOptions:{isCustomElement:i=>o.has(i)},..._optionalChain([n, 'access', _128 => _128.vue, 'optionalAccess', _129 => _129.template])},...n.vue}),_vite8.default.call(void 0, ),uf(e),_vitepluginvuelayouts2.default.call(void 0, {layoutsDirs:r.map(i=>`${i}/layouts`),pagesDirs:r.map(i=>`${i}/pages`)}),_vite4.default.call(void 0, {extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(i=>`${i}/components`).concat(["src/components","components"]),dts:`${e.userRoot}/components.d.ts`,...n.components}),await Ju(e),_vite6.default.call(void 0, {runtimeOnly:!0,compositionOnly:!0,include:r.map(i=>`${i}/locales/**`)}),_vite.splitVendorChunkPlugin.call(void 0, ),af(e)]}_chunkGXMNHGBPcjs.e.call(void 0, );function Xr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Cf(e){let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Xr(n),to:Xr(r.to)});else t.push({from:Xr(r.from),to:Xr(r.to)});return t}async function bf(e,t){await _fsextra.ensureFile.call(void 0, t),await _promises.writeFile.call(void 0, t,`
|
|
88
|
-
<!DOCTYPE html>
|
|
89
|
-
<html lang="en">
|
|
90
|
-
<head>
|
|
91
|
-
<meta charset="UTF-8">
|
|
92
|
-
<meta http-equiv="refresh" content="0; url=${e}">
|
|
93
|
-
<link rel="canonical" href="${e}">
|
|
94
|
-
</head>
|
|
95
|
-
<script>
|
|
96
|
-
window.location.href = '${e}' + window.location.search + window.location.hash
|
|
97
|
-
</script>
|
|
98
|
-
</html>
|
|
99
|
-
`)}async function Af(e,t={}){let r=_vite.mergeConfig.call(void 0, t,{plugins:await Yt(e)});await _vite.build.call(void 0, r)}async function kf(e,t={}){let r={plugins:await Yt(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};r.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){_vitessgsitemap2.default.call(void 0, {hostname:e.config.siteConfig.url})}};let n=_vite.mergeConfig.call(void 0, r,t);await _node.build.call(void 0, {},n)}async function Pf(e){let{userRoot:t}=e,r=_path.resolve.call(void 0, t,"dist/index.html");if(_fsextra2.default.existsSync(r)){_consola2.default.info("post process for ssg...");let n=await _fsextra2.default.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){_consola2.default.warn("fix incomplete index.html...");let i=n.lastIndexOf(o);await _fsextra2.default.writeFile(r,n.slice(0,i+o.length),"utf-8")}}await ox(e)}async function ox(e){let t=_path.resolve.call(void 0, e.userRoot,"dist"),n=Cf(_nullishCoalesce(_optionalChain([e, 'access', _130 => _130.config, 'access', _131 => _131.siteConfig, 'optionalAccess', _132 => _132.redirects]), () => ([]))).map(async o=>{let i=_path.join.call(void 0, t,`${o.from}.html`),s=_path.join.call(void 0, t,`${o.to}.html`);if(!await _fsextra2.default.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await bf(o.to,i)});await Promise.all(n)}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );async function Tf(e,t={},r={}){_process2.default.env.EDITOR=_process2.default.env.EDITOR||"code";let n=await Yt(e,r),o=(await Promise.resolve().then(() => _interopRequireWildcard(require("vite-plugin-vue-devtools")))).default,i=_vite.mergeConfig.call(void 0, t,{plugins:[...n,e.mode==="dev"&&e.config.devtools&&o()]});return await _vite.createServer.call(void 0, i)}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _hookable = require('hookable');var cx=["build:before","build:after"];function Zr(e){let t=_hookable.createHooks.call(void 0, );typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(cx.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:ut,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}_chunkGXMNHGBPcjs.e.call(void 0, );var _readline = require('readline'); var If = _interopRequireWildcard(_readline);var en;function tn(e,t,r){if(console.log(),console.log(` ${_kolorist.bold.call(void 0, "\u{1F30C} Valaxy")} ${_kolorist.blue.call(void 0, `v${ut}`)}`),console.log(),console.log(`${_kolorist.dim.call(void 0, " \u{1FA90} theme ")} > ${e.theme?_kolorist.green.call(void 0, e.theme):_kolorist.gray.call(void 0, "none")}`),console.log(` ${_kolorist.dim.call(void 0, "\u{1F4C1}")} ${_kolorist.dim.call(void 0, _path2.default.resolve(e.userRoot))}`),t){console.log(),console.log(`${_kolorist.dim.call(void 0, " Preview ")} > ${_kolorist.cyan.call(void 0, `http://localhost:${_kolorist.bold.call(void 0, t)}/`)}`),r&&Object.values(_os2.default.networkInterfaces()).forEach(u=>(u||[]).filter(f=>f.family==="IPv4"&&!f.address.includes("127.0.0.1")).forEach(({address:f})=>{console.log(`${_kolorist.dim.call(void 0, " Network ")} > ${_kolorist.blue.call(void 0, `http://${f}:${_kolorist.bold.call(void 0, t)}/`)}`)})),console.log();let n=`${_kolorist.underline.call(void 0, "r")}${_kolorist.dim.call(void 0, "estart")}`,o=`${_kolorist.underline.call(void 0, "e")}${_kolorist.dim.call(void 0, "dit")}`,i=`${_kolorist.underline.call(void 0, "o")}${_kolorist.dim.call(void 0, "pen")}`,s=`${_kolorist.underline.call(void 0, "q")}${_kolorist.dim.call(void 0, "r")}`,a=`${_kolorist.dim.call(void 0, " | ")}`;console.log(`${_kolorist.dim.call(void 0, " shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function Xt(e,t){en&&await en.close();let r=_vite.mergeConfig.call(void 0, await zr(e,"serve"),t);try{en=await Tf(e,r,{async onConfigReload(n,o,i=!1){i&&(_consola2.default.info("[valaxy]",`${_kolorist.yellow.call(void 0, "force")} reload the server`),Xt(e,t));let s=!1;n.theme!==o.theme&&(s=!0),s&&Xt(e,t)}}),await en.listen()}catch(n){_consola2.default.error(`failed to start server. error:
|
|
100
|
-
`),console.error(n),_process2.default.exit(1)}}function Lf(e){_process2.default.stdin.resume(),_process2.default.stdin.setEncoding("utf8"),If.emitKeypressEvents(_process2.default.stdin),_process2.default.stdin.isTTY&&_process2.default.stdin.setRawMode(!0),_process2.default.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")_process2.default.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=>We(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})=>{St();let i=await be({userRoot:r},"build");tn(i);let s=Zr(i);await s.hooks.callHook("options:resolved");let a=[];i.config.modules.rss.enable&&a.push(Br),Ql(s,a);let u=_vite.mergeConfig.call(void 0, await zr(i,"build"),i.config.vite||{}),f=_vite.mergeConfig.call(void 0, u,{configFile:_path2.default.resolve(i.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:_path2.default.resolve(i.userRoot,n)},logLevel:o});await s.hooks.callHook("config:init");let c=_path2.default.resolve(i.clientRoot,"template.html"),d=_path2.default.resolve(i.clientRoot,"index.html");_fsextra2.default.existsSync(c)&&await _fsextra2.default.copyFile(c,d),await s.hooks.callHook("build:before");try{if(t){_consola2.default.info(`use ${_kolorist.yellow.call(void 0, "vite-ssg")} to do ssg build...`);try{await kf(i,f),await Pf(i)}catch(p){_consola2.default.error("[vite-ssg] An internal error occurred."),console.log(p)}}else _consola2.default.info("use vite do spa build..."),await Af(i,f)}catch(p){console.log(p)}finally{await s.hooks.callHook("build:after")}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _child_process = require('child_process');var _qrcode = require('qrcode'); var _qrcode2 = _interopRequireDefault(_qrcode);_chunkGXMNHGBPcjs.e.call(void 0, );var _net = require('net'); var _net2 = _interopRequireDefault(_net);async function $i(e){return await vx(e)?e:await $i(e+1)}function vx(e){return new Promise(t=>{let r=_net2.default.createServer(n=>{n.write(`Echo server\r
|
|
101
|
-
`),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=>We(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})=>{ai(),_fsextra2.default.existsSync(_path2.default.resolve(t,"pages"))||_process2.default.exit(0);let s=r||await $i(4859),a=await be({userRoot:t});Zr(a);let u=_vite.mergeConfig.call(void 0, {configFile:_path2.default.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 Xt(a,u),tn(a,s,o),Lf([{name:"r",fullName:"restart",action(){Xt(a,u)}},{name:"o",fullName:"open",async action(){let{default:c}=await Promise.resolve().then(() => _interopRequireWildcard(require("open")));c(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let d=`http://${_optionalChain([Object, 'access', _133 => _133.values, 'call', _134 => _134(_os2.default.networkInterfaces()), 'access', _135 => _135.flat, 'call', _136 => _136(), 'access', _137 => _137.filter, 'call', _138 => _138(p=>_optionalChain([p, 'optionalAccess', _139 => _139.family])==="IPv4"&&!p.address.includes("127.0.0.1")), 'access', _140 => _140[0], 'optionalAccess', _141 => _141.address])||"localhost"}:${s}`;_qrcode2.default.toString(d,{type:"terminal"},(p,_)=>{if(p)throw p;console.log(_)})}},{name:"e",fullName:"edit",action(){_child_process.exec.call(void 0, `code "${t}"`)}}])})}var Qt=_yargs2.default.call(void 0, _helpers.hideBin.call(void 0, _process2.default.argv)).scriptName("valaxy").usage("$0 [args]").version(ut).showHelpOnFail(!1).alias("h","help").alias("v","version");Hf(Qt);Df(Qt);au(Qt);var kx=[Br,ru];kx.forEach(e=>{_optionalChain([e, 'access', _142 => _142.extendCli, 'optionalCall', _143 => _143(Qt)])});function xT(){Qt.help().parse()}exports.a = Ht; exports.b = Cl; exports.c = Te; exports.d = ni; exports.e = Q; exports.f = bl; exports.g = bt; exports.h = oi; exports.i = Rl; exports.j = wl; exports.k = Pl; exports.l = $e; exports.m = ky; exports.n = UR; exports.o = Py; exports.p = GR; exports.q = YR; exports.r = Oy; exports.s = XR; exports.t = ii; exports.u = Tl; exports.v = QR; exports.w = ci; exports.x = be; exports.y = li; exports.z = zr; exports.A = ef; exports.B = Af; exports.C = kf; exports.D = Pf; exports.E = ox; exports.F = Tf; exports.G = Qt; exports.H = xT;
|
|
102
|
-
/*! Bundled license information:
|
|
103
|
-
|
|
104
|
-
is-extglob/index.js:
|
|
105
|
-
(*!
|
|
106
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
107
|
-
*
|
|
108
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
109
|
-
* Licensed under the MIT License.
|
|
110
|
-
*)
|
|
111
|
-
|
|
112
|
-
is-glob/index.js:
|
|
113
|
-
(*!
|
|
114
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
115
|
-
*
|
|
116
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
117
|
-
* Released under the MIT License.
|
|
118
|
-
*)
|
|
119
|
-
|
|
120
|
-
is-number/index.js:
|
|
121
|
-
(*!
|
|
122
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
123
|
-
*
|
|
124
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
125
|
-
* Released under the MIT License.
|
|
126
|
-
*)
|
|
127
|
-
|
|
128
|
-
to-regex-range/index.js:
|
|
129
|
-
(*!
|
|
130
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
131
|
-
*
|
|
132
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
133
|
-
* Released under the MIT License.
|
|
134
|
-
*)
|
|
135
|
-
|
|
136
|
-
fill-range/index.js:
|
|
137
|
-
(*!
|
|
138
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
139
|
-
*
|
|
140
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
141
|
-
* Licensed under the MIT License.
|
|
142
|
-
*)
|
|
143
|
-
|
|
144
|
-
queue-microtask/index.js:
|
|
145
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
146
|
-
|
|
147
|
-
run-parallel/index.js:
|
|
148
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
149
|
-
*/
|