valaxy 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  `)}function Ah(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Ph(){return process.env.DEBUG}function Oh(e){e.inspectOpts={};let t=Object.keys(le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=le.inspectOpts[t[r]]}jr.exports=ri()(le);var{formatters:ql}=jr.exports;ql.o=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts).split(`
6
6
  `).map(t=>t.trim()).join(" ")};ql.O=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts)}});var ii=_chunkZAC5357Ocjs.b.call(void 0, (nS,oi)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?oi.exports=Nl():oi.exports=Bl()});var Yl=_chunkZAC5357Ocjs.b.call(void 0, (lS,Kl)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var{hasOwnProperty:si}=Object.prototype,ai=(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
7
  `:`
8
- `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=je(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,l)=>je(u).length>=je(l).length?u:l)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let l=e[u];if(l&&Array.isArray(l))for(let d of l)a+=je(`${u}${f}`).padEnd(s," ")+n+je(d)+r;else l&&typeof l=="object"?o.push(u):a+=je(u).padEnd(s," ")+n+je(l)+r}t.section&&a.length&&(a="["+je(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let l=Wl(u,".").join("\\."),d=(t.section?t.section+".":"")+l,p=ai(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Wl(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 Ul=(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 u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let l=u.match(i);if(!l)continue;if(l[1]!==void 0){if(o=Hr(l[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=Hr(l[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 h=p?d.slice(0,-2):d;if(h==="__proto__")continue;let v=l[3]?Hr(l[4]):!0,_=v==="true"||v==="false"||v==="null"?JSON.parse(v):v;p&&(si.call(n,h)?Array.isArray(n[h])||(n[h]=[n[h]]):n[h]=[]),Array.isArray(n[h])?n[h].push(_):n[h]=_}let f=[];for(let u of Object.keys(r)){if(!si.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=Wl(u,".");n=r;let d=l.pop(),p=d.replace(/\\\./g,".");for(let h of l)h!=="__proto__"&&((!si.call(n,h)||typeof n[h]!="object")&&(n[h]=Object.create(null)),n=n[h]);n===r&&p===d||(n[p]=r[u],f.push(u))}for(let u of f)delete r[u];return r},Gl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),je=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Gl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Hr=(e,t)=>{if(e=(e||"").trim(),Gl(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};Kl.exports={parse:Ul,decode:Ul,stringify:ai,encode:ai,safe:je,unsafe:Hr}});var ui=_chunkZAC5357Ocjs.b.call(void 0, (hS,Zl)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Lh=_chunkZAC5357Ocjs.a.call(void 0, "os");Zl.exports=Lh.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 fi=_chunkZAC5357Ocjs.b.call(void 0, (vS,ec)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );ec.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 tc=_chunkZAC5357Ocjs.b.call(void 0, (_S,Ut)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Dh=process.platform==="win32",Vh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,pi={};function jh(e){return Vh.exec(e).slice(1)}pi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=jh(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 Hh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,di={};function qh(e){return Hh.exec(e).slice(1)}di.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=qh(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]}};Dh?Ut.exports=pi.parse:Ut.exports=di.parse;Ut.exports.posix=di.parse;Ut.exports.win32=pi.parse});var mi=_chunkZAC5357Ocjs.b.call(void 0, (bS,ic)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var oc=_chunkZAC5357Ocjs.a.call(void 0, "path"),rc=oc.parse||tc(),nc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=rc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=rc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return oc.resolve(n,a,f)}))},[])};ic.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 nc(t,o)},r);var i=nc(t,o);return r&&r.paths?i.concat(r.paths):i}});var gi=_chunkZAC5357Ocjs.b.call(void 0, (RS,sc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );sc.exports=function(e,t){return t||{}}});var cc=_chunkZAC5357Ocjs.b.call(void 0, (ES,lc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Bh="Function.prototype.bind called on incompatible ",Uh=Object.prototype.toString,Wh=Math.max,Gh="[object Function]",ac=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},Kh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Yh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};lc.exports=function(t){var r=this;if(typeof r!="function"||Uh.apply(r)!==Gh)throw new TypeError(Bh+r);for(var n=Kh(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,ac(n,arguments));return Object(l)===l?l:this}return r.apply(t,ac(n,arguments))},s=Wh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+Yh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var fc=_chunkZAC5357Ocjs.b.call(void 0, (AS,uc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var zh=cc();uc.exports=Function.prototype.bind||zh});var dc=_chunkZAC5357Ocjs.b.call(void 0, (OS,pc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Xh=Function.prototype.call,Qh=Object.prototype.hasOwnProperty,Jh=fc();pc.exports=Jh.call(Xh,Qh)});var mc=_chunkZAC5357Ocjs.b.call(void 0, ($S,Zh)=>{Zh.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 Wt=_chunkZAC5357Ocjs.b.call(void 0, (FS,yc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var ey=dc();function ty(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),f=parseInt(i[s]||0,10);if(a!==f)return o==="<"?a<f:o===">="?a>=f:!1}return o===">="}function gc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ty(e,r[n]))return!1;return!0}function ry(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(gc(r,t[n]))return!0;return!1}return gc(r,t)}var hc=mc();yc.exports=function(t,r){return ey(hc,t)&&ry(r,hc[t])}});var _c=_chunkZAC5357Ocjs.b.call(void 0, (MS,xc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var lt=_chunkZAC5357Ocjs.a.call(void 0, "fs"),ny=ui(),re=_chunkZAC5357Ocjs.a.call(void 0, "path"),oy=fi(),iy=mi(),sy=gi(),ay=Wt(),ly=process.platform!=="win32"&&lt.realpath&&typeof lt.realpath.native=="function"?lt.realpath.native:lt.realpath,vc=ny(),cy=function(){return[re.join(vc,".node_modules"),re.join(vc,".node_libraries")]},uy=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},fy=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},py=function(t,r){ly(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Gt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},dy=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)}})},my=function(t,r,n){for(var o=iy(r,n,t),i=0;i<o.length;i++)o[i]=re.join(o[i],t);return o};xc.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=sy(t,i);var a=i.isFile||uy,f=i.isDirectory||fy,u=i.readFile||lt.readFile,l=i.realpath||py,d=i.readPackage||dy;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var h=i.packageIterator,v=i.extensions||[".js"],_=i.includeCoreModules!==!1,C=i.basedir||re.dirname(oy()),S=i.filename||C;i.paths=i.paths||cy();var A=re.resolve(C);Gt(l,A,i,function(g,O){g?o(g):M(O)});var F;function M(g){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))F=re.resolve(g,t),(t==="."||t===".."||t.slice(-1)==="/")&&(F+="/"),/\/$/.test(t)&&F===g?E(F,i.package,P):I(F,i.package,P);else{if(_&&ay(t))return o(null,t);W(t,g,function(O,N,V){if(O)o(O);else{if(N)return Gt(l,N,i,function(x,H){x?o(x):o(null,H,V)});var y=new Error("Cannot find module '"+t+"' from '"+S+"'");y.code="MODULE_NOT_FOUND",o(y)}})}}function P(g,O,N){g?o(g):O?o(null,O,N):E(F,function(V,y,x){if(V)o(V);else if(y)Gt(l,y,i,function($,G){$?o($):o(null,G,x)});else{var H=new Error("Cannot find module '"+t+"' from '"+S+"'");H.code="MODULE_NOT_FOUND",o(H)}})}function I(g,O,N){var V=O,y=N;typeof V=="function"&&(y=V,V=void 0);var x=[""].concat(v);H(x,g,V);function H($,G,ee){if($.length===0)return y(null,void 0,ee);var Q=G+$[0],de=ee;de?se(null,de):w(re.dirname(Q),se);function se(ce,D,he){if(de=D,ce)return y(ce);if(he&&de&&i.pathFilter){var mt=re.relative(he,Q),k=mt.slice(0,mt.length-$[0].length),U=i.pathFilter(de,G,k);if(U)return H([""].concat(v.slice()),re.resolve(he,U),de)}a(Q,Le)}function Le(ce,D){if(ce)return y(ce);if(D)return y(null,Q,de);H($.slice(1),G,de)}}}function w(g,O){if(g===""||g==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(g)||/[/\\]node_modules[/\\]*$/.test(g))return O(null);Gt(l,g,i,function(N,V){if(N)return w(re.dirname(g),O);var y=re.join(V,"package.json");a(y,function(x,H){if(!H)return w(re.dirname(g),O);d(u,y,function($,G){$&&O($);var ee=G;ee&&i.packageFilter&&(ee=i.packageFilter(ee,y)),O(null,ee,g)})})})}function E(g,O,N){var V=N,y=O;typeof y=="function"&&(V=y,y=i.package),Gt(l,g,i,function(x,H){if(x)return V(x);var $=re.join(H,"package.json");a($,function(G,ee){if(G)return V(G);if(!ee)return I(re.join(g,"index"),y,V);d(u,$,function(Q,de){if(Q)return V(Q);var se=de;if(se&&i.packageFilter&&(se=i.packageFilter(se,$)),se&&se.main){if(typeof se.main!="string"){var Le=new TypeError("package \u201C"+se.name+"\u201D `main` must be a string");return Le.code="INVALID_PACKAGE_MAIN",V(Le)}(se.main==="."||se.main==="./")&&(se.main="index"),I(re.resolve(g,se.main),se,function(ce,D,he){if(ce)return V(ce);if(D)return V(null,D,he);if(!he)return I(re.join(g,"index"),he,V);var mt=re.resolve(g,he.main);E(mt,he,function(k,U,R){if(k)return V(k);if(U)return V(null,U,R);I(re.join(g,"index"),R,V)})});return}I(re.join(g,"/index"),se,V)})})})}function T(g,O){if(O.length===0)return g(null,void 0);var N=O[0];f(re.dirname(N),V);function V(H,$){if(H)return g(H);if(!$)return T(g,O.slice(1));I(N,i.package,y)}function y(H,$,G){if(H)return g(H);if($)return g(null,$,G);E(N,i.package,x)}function x(H,$,G){if(H)return g(H);if($)return g(null,$,G);T(g,O.slice(1))}}function W(g,O,N){var V=function(){return my(g,O,i)};T(N,h?h(g,O,V,i):V())}}});var Cc=_chunkZAC5357Ocjs.b.call(void 0, (LS,gy)=>{gy.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 wc=_chunkZAC5357Ocjs.b.call(void 0, (DS,Rc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var hy=Wt(),bc=Cc(),Sc={};for(Br in bc)Object.prototype.hasOwnProperty.call(bc,Br)&&(Sc[Br]=hy(Br));var Br;Rc.exports=Sc});var kc=_chunkZAC5357Ocjs.b.call(void 0, (jS,Ec)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var yy=Wt();Ec.exports=function(t){return yy(t)}});var Oc=_chunkZAC5357Ocjs.b.call(void 0, (qS,Pc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var vy=Wt(),ct=_chunkZAC5357Ocjs.a.call(void 0, "fs"),pe=_chunkZAC5357Ocjs.a.call(void 0, "path"),xy=ui(),_y=fi(),Cy=mi(),by=gi(),Sy=process.platform!=="win32"&&ct.realpathSync&&typeof ct.realpathSync.native=="function"?ct.realpathSync.native:ct.realpathSync,Ac=xy(),Ry=function(){return[pe.join(Ac,".node_modules"),pe.join(Ac,".node_libraries")]},wy=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},Ey=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},ky=function(t){try{return Sy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Kt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Ay=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch (e9){}},Py=function(t,r,n){for(var o=Cy(r,n,t),i=0;i<o.length;i++)o[i]=pe.join(o[i],t);return o};Pc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=by(t,r),o=n.isFile||wy,i=n.readFileSync||ct.readFileSync,s=n.isDirectory||Ey,a=n.realpathSync||ky,f=n.readPackageSync||Ay;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,l=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||pe.dirname(_y()),h=n.filename||p;n.paths=n.paths||Ry();var v=Kt(a,pe.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var _=pe.resolve(v,t);(t==="."||t===".."||t.slice(-1)==="/")&&(_+="/");var C=F(_)||P(_);if(C)return Kt(a,C,n)}else{if(d&&vy(t))return t;var S=I(t,v);if(S)return Kt(a,S,n)}var A=new Error("Cannot find module '"+t+"' from '"+h+"'");throw A.code="MODULE_NOT_FOUND",A;function F(w){var E=M(pe.dirname(w));if(E&&E.dir&&E.pkg&&n.pathFilter){var T=pe.relative(E.dir,w),W=n.pathFilter(E.pkg,w,T);W&&(w=pe.resolve(E.dir,W))}if(o(w))return w;for(var g=0;g<l.length;g++){var O=w+l[g];if(o(O))return O}}function M(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var E=pe.join(Kt(a,w,n),"package.json");if(!o(E))return M(pe.dirname(w));var T=f(i,E);return T&&n.packageFilter&&(T=n.packageFilter(T,w)),{pkg:T,dir:w}}}function P(w){var E=pe.join(Kt(a,w,n),"/package.json");if(o(E)){try{var T=f(i,E)}catch (e10){}if(T&&n.packageFilter&&(T=n.packageFilter(T,w)),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 g=F(pe.resolve(w,T.main));if(g)return g;var O=P(pe.resolve(w,T.main));if(O)return O}catch (e11){}}}return F(pe.join(w,"/index"))}function I(w,E){for(var T=function(){return Py(w,E,n)},W=u?u(w,E,T,n):T(),g=0;g<W.length;g++){var O=W[g];if(s(pe.dirname(O))){var N=F(O);if(N)return N;var V=P(O);if(V)return V}}}}});var $c=_chunkZAC5357Ocjs.b.call(void 0, (US,Tc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Ur=_c();Ur.core=wc();Ur.isCore=kc();Ur.sync=Oc();Tc.exports=Ur});_chunkZAC5357Ocjs.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 gt="0.18.2";_chunkZAC5357Ocjs.e.call(void 0, );var Ee=_chunkZAC5357Ocjs.c.call(void 0, ge(),1),hu=_chunkZAC5357Ocjs.c.call(void 0, Mr(),1);var _path = require('path'); var _path2 = _interopRequireDefault(_path);var _promises = require('fs/promises');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);_chunkZAC5357Ocjs.e.call(void 0, );var au=_chunkZAC5357Ocjs.c.call(void 0, ii(),1),lu=_chunkZAC5357Ocjs.c.call(void 0, Mr(),1),ze=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);var _utils = require('@antfu/utils');var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.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)})})}_chunkZAC5357Ocjs.e.call(void 0, );var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);_chunkZAC5357Ocjs.e.call(void 0, );var Xl=_chunkZAC5357Ocjs.c.call(void 0, Yl(),1);var _os = require('os'); var _os2 = _interopRequireDefault(_os);var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);var Bt=_process2.default.platform==="win32",zl=e=>{try{return Xl.default.parse(_fs2.default.readFileSync(e,"utf8")).prefix}catch (e12){}},$h=()=>Object.keys(_process2.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?_process2.default.env[t]:e,void 0),Fh=()=>{if(Bt&&_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")}},Ih=()=>{if(Bt){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))},Mh=()=>{let e=$h();if(e)return e;let t=zl(_path2.default.join(_os2.default.homedir(),".npmrc"));if(t)return t;if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let r=zl(Fh());return r||Ih()},qt=_path2.default.resolve(Mh()),Ql=()=>{if(Bt&&_process2.default.env.LOCALAPPDATA){let e=_path2.default.join(_process2.default.env.LOCALAPPDATA,"Yarn");if(_fs2.default.existsSync(e))return e}return!1},Nh=()=>{if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let e=Ql();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:qt},Fe={};Fe.npm={};Fe.npm.prefix=qt;Fe.npm.packages=_path2.default.join(qt,Bt?"node_modules":"lib/node_modules");Fe.npm.binaries=Bt?qt:_path2.default.join(qt,"bin");var Jl=_path2.default.resolve(Nh());Fe.yarn={};Fe.yarn.prefix=Jl;Fe.yarn.packages=_path2.default.join(Jl,Ql()?"Data/global/node_modules":"global/node_modules");Fe.yarn.binaries=_path2.default.join(Fe.yarn.packages,".bin");var ci=Fe;var Mc=_chunkZAC5357Ocjs.c.call(void 0, $c(),1);function Ie(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Mc.sync)(e,r)}catch(n){_consola2.default.log(n)}if(_isinstalledglobally2.default){try{return _chunkZAC5357Ocjs.a.resolve(_path.join.call(void 0, ci.yarn.packages,e))}catch (e13){}try{return _chunkZAC5357Ocjs.a.resolve(_path.join.call(void 0, ci.npm.packages,e))}catch (e14){}}if(t)throw new Error(`Failed to resolve package ${e}`);_consola2.default.error(`Failed to resolve package ${e}`)}_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var Wr="<!-- more -->",Et= exports.d =/^https?:/i,Nc= exports.e =/^pathname:\/\//,ZS= exports.f ="/:all(.*)*",Lc= exports.g =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"]);function Dc(e){return Et.test(e)}function Ty(e){return e.replace(/\\/g,"/")}function hi(e,t){return t.startsWith(e)?t:e+t}function X(e){return`/@fs${hi("/",Ty(e))}`}function Vc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function jc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var _url = require('url');var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);function Ly(e){let{name:t,cwd:r}=e,n=_pathe.resolve.call(void 0, r,`${t}.config.ts`),o={};try{o=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, _chunkZAC5357Ocjs.d),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch (e15){_consola2.default.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function kt(e,t={}){let{config:r,configFile:n}=Ly({name:e,cwd:t.cwd||_process2.default.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}_chunkZAC5357Ocjs.e.call(void 0, );var Pt=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _vite = require('vite');_chunkZAC5357Ocjs.e.call(void 0, );function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}_chunkZAC5357Ocjs.e.call(void 0, );var At=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);var Gr={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))},redirects:{useVueRouter:!0,rules:[]}};function SR(e){return e}async function Vy(e){return kt("site",{cwd:e})}async function Kr(e){let t=Ye(),{config:r,configFile:n}=await Vy(e),o=t();return r&&n&&_consola2.default.success(`Resolve ${(0,At.cyan)("siteConfig")} from ${(0,At.dim)(n)} ${(0,At.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Bc={siteConfig:Gr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Uy(e){return e}var IR=Uy;async function Yt(e,t){return await kt("valaxy",{cwd:e,valaxyOptions:t})}var ut=_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 Uc(e){let t=e.userRoot||_process2.default.cwd(),r=Ye(),{config:n,configFile:o}=await Yt(t),i=r();n&&o&&_consola2.default.success(`Resolve ${(0,Pt.cyan)("userValaxyConfig")} from ${(0,Pt.dim)(o)} ${(0,Pt.yellow)(i)}`);let s=e.theme||_optionalChain([n, 'optionalAccess', _3 => _3.theme])||"yun";return{config:n,configFile:o,theme:s}}_chunkZAC5357Ocjs.e.call(void 0, );function Ky(e){return e}var jR=Ky;async function Wc(e,t){let r={};for(let n of e){if(!_fsextra2.default.existsSync(_path2.default.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Yt(n.root,t);o&&(n.configFile=i,r=ut(o,r))}return r}_chunkZAC5357Ocjs.e.call(void 0, );var Xr=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);_chunkZAC5357Ocjs.e.call(void 0, );var Kc=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);_chunkZAC5357Ocjs.e.call(void 0, );function zt(){return _process2.default.env.NODE_ENV==="production"}function yi(e="development"){_process2.default.env.NODE_ENV=e,Me.level=zt()?2:3}function Ot(){return yi("production")}function Yr(e){let t=_fs2.default.existsSync(_path2.default.resolve(e,"pages"));return t||Me.error(`No pages directory found in ${e}`),t}var Me=_consola2.default.create({level:zt()?2:3}),vi=`${(0,Kc.magenta)("valaxy")}:`,Tt={success:e=>Me.success(vi,e),info:e=>Me.info(vi,e),ready:e=>Me.ready(vi,e)};async function zr(e){return kt("theme",{cwd:e})}async function Yc(e){let{config:t,configFile:r}=await zr(e.userRoot);if(t&&r&&Me.info(`Resolve ${(0,Xr.cyan)("themeConfig")} from ${(0,Xr.dim)(r)}`),_optionalChain([e, 'optionalAccess', _4 => _4.themeRoot])){let{config:n}=await zr(e.themeRoot);t=_defu2.default.call(void 0, t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Jy(e){return e}var rw=Jy;function iw(e){return e}_chunkZAC5357Ocjs.e.call(void 0, );var Ne=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);_chunkZAC5357Ocjs.e.call(void 0, );function Qr(e,t){if(!e)return"";if(Vc(e))if(t){let r=_fsextra2.default.lstatSync(t).isFile();return _pathe.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 _pathe.resolve.call(void 0, _path.dirname.call(void 0, Ie(`${e}/package.json`)||""))}async function tu(e,t=_process2.default.cwd()){let r=_ora2.default.call(void 0, `Resolve ${(0,Ne.cyan)("addons")} from ${(0,Ne.dim)(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 Zc(s,{cwd:t}));continue}typeof s=="object"&&o(_defu2.default.call(void 0, await Zc(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Ne.yellow)(s.name)} ${(0,Ne.blue)(`v${_optionalChain([s, 'access', _5 => _5.pkg, 'optionalAccess', _6 => _6.version])}`)}${s.global?(0,Ne.cyan)(" (global)"):""} ${(0,Ne.dim)(s.pkg.homepage||_optionalChain([s, 'access', _7 => _7.pkg, 'access', _8 => _8.repository, 'optionalAccess', _9 => _9.url])||s.pkg.repository||"")}`)}),i}async function Zc(e,t={}){let r=rv(e,t.cwd||_process2.default.cwd()),n=_pathe.resolve.call(void 0, r,"./package.json");if(!_fsextra2.default.existsSync(n)){Me.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 rv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Qr(r,t)}_chunkZAC5357Ocjs.e.call(void 0, );function ru(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Qr(r,t)}_chunkZAC5357Ocjs.e.call(void 0, );function Jr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Zr(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Jr(n),to:Jr(r.to)});else t.push({from:Jr(r.from),to:Jr(r.to)});return t}async function nu(e,t){await _fsextra.ensureFile.call(void 0, t),await _promises.writeFile.call(void 0, t,`
8
+ `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=je(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,l)=>je(u).length>=je(l).length?u:l)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let l=e[u];if(l&&Array.isArray(l))for(let d of l)a+=je(`${u}${f}`).padEnd(s," ")+n+je(d)+r;else l&&typeof l=="object"?o.push(u):a+=je(u).padEnd(s," ")+n+je(l)+r}t.section&&a.length&&(a="["+je(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let l=Wl(u,".").join("\\."),d=(t.section?t.section+".":"")+l,p=ai(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Wl(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 Ul=(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 u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let l=u.match(i);if(!l)continue;if(l[1]!==void 0){if(o=Hr(l[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=Hr(l[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 h=p?d.slice(0,-2):d;if(h==="__proto__")continue;let v=l[3]?Hr(l[4]):!0,_=v==="true"||v==="false"||v==="null"?JSON.parse(v):v;p&&(si.call(n,h)?Array.isArray(n[h])||(n[h]=[n[h]]):n[h]=[]),Array.isArray(n[h])?n[h].push(_):n[h]=_}let f=[];for(let u of Object.keys(r)){if(!si.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=Wl(u,".");n=r;let d=l.pop(),p=d.replace(/\\\./g,".");for(let h of l)h!=="__proto__"&&((!si.call(n,h)||typeof n[h]!="object")&&(n[h]=Object.create(null)),n=n[h]);n===r&&p===d||(n[p]=r[u],f.push(u))}for(let u of f)delete r[u];return r},Gl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),je=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Gl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Hr=(e,t)=>{if(e=(e||"").trim(),Gl(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};Kl.exports={parse:Ul,decode:Ul,stringify:ai,encode:ai,safe:je,unsafe:Hr}});var ui=_chunkZAC5357Ocjs.b.call(void 0, (hS,Zl)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Lh=_chunkZAC5357Ocjs.a.call(void 0, "os");Zl.exports=Lh.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 fi=_chunkZAC5357Ocjs.b.call(void 0, (vS,ec)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );ec.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 tc=_chunkZAC5357Ocjs.b.call(void 0, (_S,Ut)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Dh=process.platform==="win32",Vh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,pi={};function jh(e){return Vh.exec(e).slice(1)}pi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=jh(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 Hh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,di={};function qh(e){return Hh.exec(e).slice(1)}di.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=qh(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]}};Dh?Ut.exports=pi.parse:Ut.exports=di.parse;Ut.exports.posix=di.parse;Ut.exports.win32=pi.parse});var mi=_chunkZAC5357Ocjs.b.call(void 0, (bS,ic)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var oc=_chunkZAC5357Ocjs.a.call(void 0, "path"),rc=oc.parse||tc(),nc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=rc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=rc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return oc.resolve(n,a,f)}))},[])};ic.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 nc(t,o)},r);var i=nc(t,o);return r&&r.paths?i.concat(r.paths):i}});var gi=_chunkZAC5357Ocjs.b.call(void 0, (RS,sc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );sc.exports=function(e,t){return t||{}}});var cc=_chunkZAC5357Ocjs.b.call(void 0, (ES,lc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Bh="Function.prototype.bind called on incompatible ",Uh=Object.prototype.toString,Wh=Math.max,Gh="[object Function]",ac=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},Kh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Yh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};lc.exports=function(t){var r=this;if(typeof r!="function"||Uh.apply(r)!==Gh)throw new TypeError(Bh+r);for(var n=Kh(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,ac(n,arguments));return Object(l)===l?l:this}return r.apply(t,ac(n,arguments))},s=Wh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+Yh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var fc=_chunkZAC5357Ocjs.b.call(void 0, (AS,uc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var zh=cc();uc.exports=Function.prototype.bind||zh});var dc=_chunkZAC5357Ocjs.b.call(void 0, (OS,pc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Xh=Function.prototype.call,Qh=Object.prototype.hasOwnProperty,Jh=fc();pc.exports=Jh.call(Xh,Qh)});var mc=_chunkZAC5357Ocjs.b.call(void 0, ($S,Zh)=>{Zh.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 Wt=_chunkZAC5357Ocjs.b.call(void 0, (FS,yc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var ey=dc();function ty(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),f=parseInt(i[s]||0,10);if(a!==f)return o==="<"?a<f:o===">="?a>=f:!1}return o===">="}function gc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ty(e,r[n]))return!1;return!0}function ry(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(gc(r,t[n]))return!0;return!1}return gc(r,t)}var hc=mc();yc.exports=function(t,r){return ey(hc,t)&&ry(r,hc[t])}});var _c=_chunkZAC5357Ocjs.b.call(void 0, (MS,xc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var lt=_chunkZAC5357Ocjs.a.call(void 0, "fs"),ny=ui(),re=_chunkZAC5357Ocjs.a.call(void 0, "path"),oy=fi(),iy=mi(),sy=gi(),ay=Wt(),ly=process.platform!=="win32"&&lt.realpath&&typeof lt.realpath.native=="function"?lt.realpath.native:lt.realpath,vc=ny(),cy=function(){return[re.join(vc,".node_modules"),re.join(vc,".node_libraries")]},uy=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},fy=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},py=function(t,r){ly(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Gt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},dy=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)}})},my=function(t,r,n){for(var o=iy(r,n,t),i=0;i<o.length;i++)o[i]=re.join(o[i],t);return o};xc.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=sy(t,i);var a=i.isFile||uy,f=i.isDirectory||fy,u=i.readFile||lt.readFile,l=i.realpath||py,d=i.readPackage||dy;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var h=i.packageIterator,v=i.extensions||[".js"],_=i.includeCoreModules!==!1,C=i.basedir||re.dirname(oy()),S=i.filename||C;i.paths=i.paths||cy();var A=re.resolve(C);Gt(l,A,i,function(g,O){g?o(g):M(O)});var F;function M(g){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))F=re.resolve(g,t),(t==="."||t===".."||t.slice(-1)==="/")&&(F+="/"),/\/$/.test(t)&&F===g?E(F,i.package,P):I(F,i.package,P);else{if(_&&ay(t))return o(null,t);W(t,g,function(O,N,V){if(O)o(O);else{if(N)return Gt(l,N,i,function(x,H){x?o(x):o(null,H,V)});var y=new Error("Cannot find module '"+t+"' from '"+S+"'");y.code="MODULE_NOT_FOUND",o(y)}})}}function P(g,O,N){g?o(g):O?o(null,O,N):E(F,function(V,y,x){if(V)o(V);else if(y)Gt(l,y,i,function($,G){$?o($):o(null,G,x)});else{var H=new Error("Cannot find module '"+t+"' from '"+S+"'");H.code="MODULE_NOT_FOUND",o(H)}})}function I(g,O,N){var V=O,y=N;typeof V=="function"&&(y=V,V=void 0);var x=[""].concat(v);H(x,g,V);function H($,G,ee){if($.length===0)return y(null,void 0,ee);var Q=G+$[0],de=ee;de?se(null,de):w(re.dirname(Q),se);function se(ce,D,he){if(de=D,ce)return y(ce);if(he&&de&&i.pathFilter){var mt=re.relative(he,Q),k=mt.slice(0,mt.length-$[0].length),U=i.pathFilter(de,G,k);if(U)return H([""].concat(v.slice()),re.resolve(he,U),de)}a(Q,Le)}function Le(ce,D){if(ce)return y(ce);if(D)return y(null,Q,de);H($.slice(1),G,de)}}}function w(g,O){if(g===""||g==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(g)||/[/\\]node_modules[/\\]*$/.test(g))return O(null);Gt(l,g,i,function(N,V){if(N)return w(re.dirname(g),O);var y=re.join(V,"package.json");a(y,function(x,H){if(!H)return w(re.dirname(g),O);d(u,y,function($,G){$&&O($);var ee=G;ee&&i.packageFilter&&(ee=i.packageFilter(ee,y)),O(null,ee,g)})})})}function E(g,O,N){var V=N,y=O;typeof y=="function"&&(V=y,y=i.package),Gt(l,g,i,function(x,H){if(x)return V(x);var $=re.join(H,"package.json");a($,function(G,ee){if(G)return V(G);if(!ee)return I(re.join(g,"index"),y,V);d(u,$,function(Q,de){if(Q)return V(Q);var se=de;if(se&&i.packageFilter&&(se=i.packageFilter(se,$)),se&&se.main){if(typeof se.main!="string"){var Le=new TypeError("package \u201C"+se.name+"\u201D `main` must be a string");return Le.code="INVALID_PACKAGE_MAIN",V(Le)}(se.main==="."||se.main==="./")&&(se.main="index"),I(re.resolve(g,se.main),se,function(ce,D,he){if(ce)return V(ce);if(D)return V(null,D,he);if(!he)return I(re.join(g,"index"),he,V);var mt=re.resolve(g,he.main);E(mt,he,function(k,U,R){if(k)return V(k);if(U)return V(null,U,R);I(re.join(g,"index"),R,V)})});return}I(re.join(g,"/index"),se,V)})})})}function T(g,O){if(O.length===0)return g(null,void 0);var N=O[0];f(re.dirname(N),V);function V(H,$){if(H)return g(H);if(!$)return T(g,O.slice(1));I(N,i.package,y)}function y(H,$,G){if(H)return g(H);if($)return g(null,$,G);E(N,i.package,x)}function x(H,$,G){if(H)return g(H);if($)return g(null,$,G);T(g,O.slice(1))}}function W(g,O,N){var V=function(){return my(g,O,i)};T(N,h?h(g,O,V,i):V())}}});var Cc=_chunkZAC5357Ocjs.b.call(void 0, (LS,gy)=>{gy.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 wc=_chunkZAC5357Ocjs.b.call(void 0, (DS,Rc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var hy=Wt(),bc=Cc(),Sc={};for(Br in bc)Object.prototype.hasOwnProperty.call(bc,Br)&&(Sc[Br]=hy(Br));var Br;Rc.exports=Sc});var kc=_chunkZAC5357Ocjs.b.call(void 0, (jS,Ec)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var yy=Wt();Ec.exports=function(t){return yy(t)}});var Oc=_chunkZAC5357Ocjs.b.call(void 0, (qS,Pc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var vy=Wt(),ct=_chunkZAC5357Ocjs.a.call(void 0, "fs"),pe=_chunkZAC5357Ocjs.a.call(void 0, "path"),xy=ui(),_y=fi(),Cy=mi(),by=gi(),Sy=process.platform!=="win32"&&ct.realpathSync&&typeof ct.realpathSync.native=="function"?ct.realpathSync.native:ct.realpathSync,Ac=xy(),Ry=function(){return[pe.join(Ac,".node_modules"),pe.join(Ac,".node_libraries")]},wy=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},Ey=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},ky=function(t){try{return Sy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Kt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Ay=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch (e9){}},Py=function(t,r,n){for(var o=Cy(r,n,t),i=0;i<o.length;i++)o[i]=pe.join(o[i],t);return o};Pc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=by(t,r),o=n.isFile||wy,i=n.readFileSync||ct.readFileSync,s=n.isDirectory||Ey,a=n.realpathSync||ky,f=n.readPackageSync||Ay;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,l=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||pe.dirname(_y()),h=n.filename||p;n.paths=n.paths||Ry();var v=Kt(a,pe.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var _=pe.resolve(v,t);(t==="."||t===".."||t.slice(-1)==="/")&&(_+="/");var C=F(_)||P(_);if(C)return Kt(a,C,n)}else{if(d&&vy(t))return t;var S=I(t,v);if(S)return Kt(a,S,n)}var A=new Error("Cannot find module '"+t+"' from '"+h+"'");throw A.code="MODULE_NOT_FOUND",A;function F(w){var E=M(pe.dirname(w));if(E&&E.dir&&E.pkg&&n.pathFilter){var T=pe.relative(E.dir,w),W=n.pathFilter(E.pkg,w,T);W&&(w=pe.resolve(E.dir,W))}if(o(w))return w;for(var g=0;g<l.length;g++){var O=w+l[g];if(o(O))return O}}function M(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var E=pe.join(Kt(a,w,n),"package.json");if(!o(E))return M(pe.dirname(w));var T=f(i,E);return T&&n.packageFilter&&(T=n.packageFilter(T,w)),{pkg:T,dir:w}}}function P(w){var E=pe.join(Kt(a,w,n),"/package.json");if(o(E)){try{var T=f(i,E)}catch (e10){}if(T&&n.packageFilter&&(T=n.packageFilter(T,w)),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 g=F(pe.resolve(w,T.main));if(g)return g;var O=P(pe.resolve(w,T.main));if(O)return O}catch (e11){}}}return F(pe.join(w,"/index"))}function I(w,E){for(var T=function(){return Py(w,E,n)},W=u?u(w,E,T,n):T(),g=0;g<W.length;g++){var O=W[g];if(s(pe.dirname(O))){var N=F(O);if(N)return N;var V=P(O);if(V)return V}}}}});var $c=_chunkZAC5357Ocjs.b.call(void 0, (US,Tc)=>{"use strict";_chunkZAC5357Ocjs.e.call(void 0, );var Ur=_c();Ur.core=wc();Ur.isCore=kc();Ur.sync=Oc();Tc.exports=Ur});_chunkZAC5357Ocjs.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 gt="0.18.3";_chunkZAC5357Ocjs.e.call(void 0, );var Ee=_chunkZAC5357Ocjs.c.call(void 0, ge(),1),hu=_chunkZAC5357Ocjs.c.call(void 0, Mr(),1);var _path = require('path'); var _path2 = _interopRequireDefault(_path);var _promises = require('fs/promises');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);_chunkZAC5357Ocjs.e.call(void 0, );var au=_chunkZAC5357Ocjs.c.call(void 0, ii(),1),lu=_chunkZAC5357Ocjs.c.call(void 0, Mr(),1),ze=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);var _utils = require('@antfu/utils');var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.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)})})}_chunkZAC5357Ocjs.e.call(void 0, );var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);_chunkZAC5357Ocjs.e.call(void 0, );var Xl=_chunkZAC5357Ocjs.c.call(void 0, Yl(),1);var _os = require('os'); var _os2 = _interopRequireDefault(_os);var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);var Bt=_process2.default.platform==="win32",zl=e=>{try{return Xl.default.parse(_fs2.default.readFileSync(e,"utf8")).prefix}catch (e12){}},$h=()=>Object.keys(_process2.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?_process2.default.env[t]:e,void 0),Fh=()=>{if(Bt&&_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")}},Ih=()=>{if(Bt){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))},Mh=()=>{let e=$h();if(e)return e;let t=zl(_path2.default.join(_os2.default.homedir(),".npmrc"));if(t)return t;if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let r=zl(Fh());return r||Ih()},qt=_path2.default.resolve(Mh()),Ql=()=>{if(Bt&&_process2.default.env.LOCALAPPDATA){let e=_path2.default.join(_process2.default.env.LOCALAPPDATA,"Yarn");if(_fs2.default.existsSync(e))return e}return!1},Nh=()=>{if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let e=Ql();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:qt},Fe={};Fe.npm={};Fe.npm.prefix=qt;Fe.npm.packages=_path2.default.join(qt,Bt?"node_modules":"lib/node_modules");Fe.npm.binaries=Bt?qt:_path2.default.join(qt,"bin");var Jl=_path2.default.resolve(Nh());Fe.yarn={};Fe.yarn.prefix=Jl;Fe.yarn.packages=_path2.default.join(Jl,Ql()?"Data/global/node_modules":"global/node_modules");Fe.yarn.binaries=_path2.default.join(Fe.yarn.packages,".bin");var ci=Fe;var Mc=_chunkZAC5357Ocjs.c.call(void 0, $c(),1);function Ie(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Mc.sync)(e,r)}catch(n){_consola2.default.log(n)}if(_isinstalledglobally2.default){try{return _chunkZAC5357Ocjs.a.resolve(_path.join.call(void 0, ci.yarn.packages,e))}catch (e13){}try{return _chunkZAC5357Ocjs.a.resolve(_path.join.call(void 0, ci.npm.packages,e))}catch (e14){}}if(t)throw new Error(`Failed to resolve package ${e}`);_consola2.default.error(`Failed to resolve package ${e}`)}_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var Wr="<!-- more -->",Et= exports.d =/^https?:/i,Nc= exports.e =/^pathname:\/\//,ZS= exports.f ="/:all(.*)*",Lc= exports.g =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"]);function Dc(e){return Et.test(e)}function Ty(e){return e.replace(/\\/g,"/")}function hi(e,t){return t.startsWith(e)?t:e+t}function X(e){return`/@fs${hi("/",Ty(e))}`}function Vc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function jc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var _url = require('url');var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);function Ly(e){let{name:t,cwd:r}=e,n=_pathe.resolve.call(void 0, r,`${t}.config.ts`),o={};try{o=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, _chunkZAC5357Ocjs.d),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch (e15){_consola2.default.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function kt(e,t={}){let{config:r,configFile:n}=Ly({name:e,cwd:t.cwd||_process2.default.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}_chunkZAC5357Ocjs.e.call(void 0, );var Pt=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _vite = require('vite');_chunkZAC5357Ocjs.e.call(void 0, );function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}_chunkZAC5357Ocjs.e.call(void 0, );var At=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);var Gr={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))},redirects:{useVueRouter:!0,rules:[]}};function SR(e){return e}async function Vy(e){return kt("site",{cwd:e})}async function Kr(e){let t=Ye(),{config:r,configFile:n}=await Vy(e),o=t();return r&&n&&_consola2.default.success(`Resolve ${(0,At.cyan)("siteConfig")} from ${(0,At.dim)(n)} ${(0,At.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Bc={siteConfig:Gr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Uy(e){return e}var IR=Uy;async function Yt(e,t){return await kt("valaxy",{cwd:e,valaxyOptions:t})}var ut=_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 Uc(e){let t=e.userRoot||_process2.default.cwd(),r=Ye(),{config:n,configFile:o}=await Yt(t),i=r();n&&o&&_consola2.default.success(`Resolve ${(0,Pt.cyan)("userValaxyConfig")} from ${(0,Pt.dim)(o)} ${(0,Pt.yellow)(i)}`);let s=e.theme||_optionalChain([n, 'optionalAccess', _3 => _3.theme])||"yun";return{config:n,configFile:o,theme:s}}_chunkZAC5357Ocjs.e.call(void 0, );function Ky(e){return e}var jR=Ky;async function Wc(e,t){let r={};for(let n of e){if(!_fsextra2.default.existsSync(_path2.default.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Yt(n.root,t);o&&(n.configFile=i,r=ut(o,r))}return r}_chunkZAC5357Ocjs.e.call(void 0, );var Xr=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);_chunkZAC5357Ocjs.e.call(void 0, );var Kc=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);_chunkZAC5357Ocjs.e.call(void 0, );function zt(){return _process2.default.env.NODE_ENV==="production"}function yi(e="development"){_process2.default.env.NODE_ENV=e,Me.level=zt()?2:3}function Ot(){return yi("production")}function Yr(e){let t=_fs2.default.existsSync(_path2.default.resolve(e,"pages"));return t||Me.error(`No pages directory found in ${e}`),t}var Me=_consola2.default.create({level:zt()?2:3}),vi=`${(0,Kc.magenta)("valaxy")}:`,Tt={success:e=>Me.success(vi,e),info:e=>Me.info(vi,e),ready:e=>Me.ready(vi,e)};async function zr(e){return kt("theme",{cwd:e})}async function Yc(e){let{config:t,configFile:r}=await zr(e.userRoot);if(t&&r&&Me.info(`Resolve ${(0,Xr.cyan)("themeConfig")} from ${(0,Xr.dim)(r)}`),_optionalChain([e, 'optionalAccess', _4 => _4.themeRoot])){let{config:n}=await zr(e.themeRoot);t=_defu2.default.call(void 0, t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Jy(e){return e}var rw=Jy;function iw(e){return e}_chunkZAC5357Ocjs.e.call(void 0, );var Ne=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);_chunkZAC5357Ocjs.e.call(void 0, );function Qr(e,t){if(!e)return"";if(Vc(e))if(t){let r=_fsextra2.default.lstatSync(t).isFile();return _pathe.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 _pathe.resolve.call(void 0, _path.dirname.call(void 0, Ie(`${e}/package.json`)||""))}async function tu(e,t=_process2.default.cwd()){let r=_ora2.default.call(void 0, `Resolve ${(0,Ne.cyan)("addons")} from ${(0,Ne.dim)(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 Zc(s,{cwd:t}));continue}typeof s=="object"&&o(_defu2.default.call(void 0, await Zc(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Ne.yellow)(s.name)} ${(0,Ne.blue)(`v${_optionalChain([s, 'access', _5 => _5.pkg, 'optionalAccess', _6 => _6.version])}`)}${s.global?(0,Ne.cyan)(" (global)"):""} ${(0,Ne.dim)(s.pkg.homepage||_optionalChain([s, 'access', _7 => _7.pkg, 'access', _8 => _8.repository, 'optionalAccess', _9 => _9.url])||s.pkg.repository||"")}`)}),i}async function Zc(e,t={}){let r=rv(e,t.cwd||_process2.default.cwd()),n=_pathe.resolve.call(void 0, r,"./package.json");if(!_fsextra2.default.existsSync(n)){Me.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 rv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Qr(r,t)}_chunkZAC5357Ocjs.e.call(void 0, );function ru(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Qr(r,t)}_chunkZAC5357Ocjs.e.call(void 0, );function Jr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Zr(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Jr(n),to:Jr(r.to)});else t.push({from:Jr(r.from),to:Jr(r.to)});return t}async function nu(e,t){await _fsextra.ensureFile.call(void 0, t),await _promises.writeFile.call(void 0, t,`
9
9
  <!DOCTYPE html>
10
10
  <html lang="en">
11
11
  <head>
@@ -45,7 +45,7 @@ date: <%=date%>
45
45
  ${(_optionalChain([d, 'access', _68 => _68.match, 'call', _69 => _69(/<head>([\s\S]*?)<\/head>/im), 'optionalAccess', _70 => _70[1]])||"").trim()}`,a+=`
46
46
  ${(_optionalChain([d, 'access', _71 => _71.match, 'call', _72 => _72(/<body>([\s\S]*?)<\/body>/im), 'optionalAccess', _73 => _73[1]])||"").trim()}`}return i=i.replace("__ENTRY__",X(_path.join.call(void 0, e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var Zv=["@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"],Tu=["@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 $u(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:wi(e),resolve:{alias:ex(e),dedupe:["vue"]},optimizeDeps:{entries:[_path.resolve.call(void 0, e.clientRoot,"main.ts")],include:_utils.uniq.call(void 0, [...Zv,...t,...r]).filter(i=>!Tu.includes(i)),exclude:Tu},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, Ie("katex/package.json",!0))])}}};return _isinstalledglobally2.default&&(o.cacheDir=_path.join.call(void 0, e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Ie("vue/dist/vue.esm-browser.js",!0)}`),_vite.mergeConfig.call(void 0, n,o)},async transformIndexHtml(n){return n=await Au(e,n),{html:n,tags:[]}}}}function wi(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function ex(e){let t=[{find:"~/",replacement:`${X(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${X(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:X(_path.resolve.call(void 0, e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:X(_path.resolve.call(void 0, e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${X(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${X(_path.resolve.call(void 0, e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${X(_path.resolve.call(void 0, e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Ie("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${X(`${_path.resolve.call(void 0, r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${X(_path.resolve.call(void 0, r.root))}/App.vue`}),t.push({find:r.name,replacement:`${X(_path.resolve.call(void 0, r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:X(_path.resolve.call(void 0, e.clientRoot,"./addons/index.ts"))}),t}_chunkZAC5357Ocjs.e.call(void 0, );function Fu({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=[],f=[];return _utils.uniq.call(void 0, [t,r]).map(l=>_path.join.call(void 0, l,"setup",s)).forEach((l,d)=>{if(!_fs.existsSync.call(void 0, l))return;a.push(`import __n${d} from '${X(l)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",f.push(`// ${l}`,p)}),o=o.replace("/* __imports__ */",a.join(`
47
47
  `)),o=o.replace("/* __injections__ */",f.join(`
48
- `)),o}return null}}}_chunkZAC5357Ocjs.e.call(void 0, );function Iu(e){let t=_utils.objectEntries.call(void 0, wi(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}}}]}_chunkZAC5357Ocjs.e.call(void 0, );var _vite9 = require('unplugin-vue-router/vite'); var _vite10 = _interopRequireDefault(_vite9);var _htmltotext = require('html-to-text');_chunkZAC5357Ocjs.e.call(void 0, );function cx(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 ux({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 fx({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function px(e,t){let r=cx(e);return{countData:r,wordCount:fx(r),readingTime:ux(r,t.readTime)}}function Mu({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}=px(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))}}var Lu=new (0, _markdownit2.default)({html:!0});function vx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Lu.render(e);case"text":return _htmltotext.convert.call(void 0, Lu.render(e));default:return e}}function Du(e){let{roots:t,config:r}=e;return _vite10.default.call(void 0, {extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:_pathe.resolve.call(void 0, e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),n.fullPath==="/posts"?n.addToMeta({layout:"empty"}):n.fullPath.startsWith("/posts/")&&n.addToMeta({layout:"post"});let i=n.components.get("default")||"";if(i.endsWith(".md")){let s=_fsextra2.default.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=_graymatter2.default.call(void 0, s,{excerpt_separator:Wr}),l=a,d=e.config.siteConfig.lastUpdated;if(delete l.password,l.gallery_password&&(delete l.gallery_password,delete l.photos),l.date||(l.date=_fsextra2.default.statSync(i).mtime),d&&(l.updated||(l.updated=_fsextra2.default.statSync(i).ctime)),_utils.isDate.call(void 0, l.date)||(l.date=new Date(l.date)),_utils.isDate.call(void 0, l.updated)||(l.updated=new Date(l.updated)),l.from&&(Array.isArray(l.from)?l.from.forEach(h=>{e.redirects.push({from:h,to:n.fullPath})}):e.redirects.push({from:l.from,to:n.fullPath})),n.addToMeta({frontmatter:l,excerpt:f?vx(f,l.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),_optionalChain([n, 'access', _74 => _74.meta, 'access', _75 => _75.frontmatter, 'optionalAccess', _76 => _76.updated])||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let h=n.meta.frontmatter.tags;typeof h=="string"&&(n.meta.frontmatter.tags=[h])}r.siteConfig.statistics.enable&&Mu({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:f,content:u,path:i};_optionalChain([r, 'access', _77 => _77.extendMd, 'optionalCall', _78 => _78(p)])}return _optionalChain([r, 'access', _79 => _79.router, 'optionalAccess', _80 => _80.extendRoute, 'optionalCall', _81 => _81(n)])}})}_chunkZAC5357Ocjs.e.call(void 0, );var ln=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _pascalcase = require('pascalcase'); var _pascalcase2 = _interopRequireDefault(_pascalcase);_chunkZAC5357Ocjs.e.call(void 0, );var Qu=_chunkZAC5357Ocjs.c.call(void 0, ii(),1);var _lrucache = require('lru-cache');_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var Ai=new Set;function Vu(e){if(Ai.size===0){let r=typeof _process2.default=="object"&&_process2.default.env.VITE_EXTRA_EXTENSIONS||_optionalChain([_process2.default, 'access', _82 => _82.env, 'optionalAccess', _83 => _83.VITE_EXTRA_EXTENSIONS])||"";`3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip${r&&typeof r=="string"?`,${r}`:""}`.split(",").forEach(n=>Ai.add(n))}let t=e.split(".").pop();return t==null||!Ai.has(t.toLowerCase())}_chunkZAC5357Ocjs.e.call(void 0, );function Oi(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 f=a.match(i);f&&(a=a.slice(0,-f[0].length));let u=a[0]==="@";try{let l=u?_path2.default.join(e,a.slice(a[1]==="/"?2:1)):_path2.default.join(_path2.default.dirname(r),a),d=_fsextra2.default.readFileSync(l,"utf-8");if(f){let[,p,h]=f;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,h?Number.parseInt(h,10):void 0).join(`
48
+ `)),o}return null}}}_chunkZAC5357Ocjs.e.call(void 0, );function Iu(e){let t=_utils.objectEntries.call(void 0, wi(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}}}]}_chunkZAC5357Ocjs.e.call(void 0, );var _vite9 = require('unplugin-vue-router/vite'); var _vite10 = _interopRequireDefault(_vite9);var _htmltotext = require('html-to-text');_chunkZAC5357Ocjs.e.call(void 0, );function cx(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 ux({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 fx({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function px(e,t){let r=cx(e);return{countData:r,wordCount:fx(r),readingTime:ux(r,t.readTime)}}function Mu({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}=px(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))}}var Lu=new (0, _markdownit2.default)({html:!0});function vx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Lu.render(e);case"text":return _htmltotext.convert.call(void 0, Lu.render(e));default:return e}}function Du(e){let{roots:t,config:r}=e;return _vite10.default.call(void 0, {extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:_pathe.resolve.call(void 0, e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),n.fullPath==="/posts"?n.addToMeta({layout:!1}):n.fullPath.startsWith("/posts/")&&n.children.length===0&&n.addToMeta({layout:"post"});let i=n.components.get("default")||"";if(i.endsWith(".md")){let s=_fsextra2.default.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=_graymatter2.default.call(void 0, s,{excerpt_separator:Wr}),l=a,d=e.config.siteConfig.lastUpdated;if(delete l.password,l.gallery_password&&(delete l.gallery_password,delete l.photos),l.date||(l.date=_fsextra2.default.statSync(i).mtime),d&&(l.updated||(l.updated=_fsextra2.default.statSync(i).ctime)),_utils.isDate.call(void 0, l.date)||(l.date=new Date(l.date)),_utils.isDate.call(void 0, l.updated)||(l.updated=new Date(l.updated)),l.from&&(Array.isArray(l.from)?l.from.forEach(h=>{e.redirects.push({from:h,to:n.fullPath})}):e.redirects.push({from:l.from,to:n.fullPath})),n.addToMeta({frontmatter:l,excerpt:f?vx(f,l.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),_optionalChain([n, 'access', _74 => _74.meta, 'access', _75 => _75.frontmatter, 'optionalAccess', _76 => _76.updated])||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let h=n.meta.frontmatter.tags;typeof h=="string"&&(n.meta.frontmatter.tags=[h])}r.siteConfig.statistics.enable&&Mu({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:f,content:u,path:i};_optionalChain([r, 'access', _77 => _77.extendMd, 'optionalCall', _78 => _78(p)])}return _optionalChain([r, 'access', _79 => _79.router, 'optionalAccess', _80 => _80.extendRoute, 'optionalCall', _81 => _81(n)])}})}_chunkZAC5357Ocjs.e.call(void 0, );var ln=_chunkZAC5357Ocjs.c.call(void 0, ge(),1);var _pascalcase = require('pascalcase'); var _pascalcase2 = _interopRequireDefault(_pascalcase);_chunkZAC5357Ocjs.e.call(void 0, );var Qu=_chunkZAC5357Ocjs.c.call(void 0, ii(),1);var _lrucache = require('lru-cache');_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );_chunkZAC5357Ocjs.e.call(void 0, );var Ai=new Set;function Vu(e){if(Ai.size===0){let r=typeof _process2.default=="object"&&_process2.default.env.VITE_EXTRA_EXTENSIONS||_optionalChain([_process2.default, 'access', _82 => _82.env, 'optionalAccess', _83 => _83.VITE_EXTRA_EXTENSIONS])||"";`3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip${r&&typeof r=="string"?`,${r}`:""}`.split(",").forEach(n=>Ai.add(n))}let t=e.split(".").pop();return t==null||!Ai.has(t.toLowerCase())}_chunkZAC5357Ocjs.e.call(void 0, );function Oi(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 f=a.match(i);f&&(a=a.slice(0,-f[0].length));let u=a[0]==="@";try{let l=u?_path2.default.join(e,a.slice(a[1]==="/"?2:1)):_path2.default.join(_path2.default.dirname(r),a),d=_fsextra2.default.readFileSync(l,"utf-8");if(f){let[,p,h]=f;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,h?Number.parseInt(h,10):void 0).join(`
49
49
  `)}return n.push(_utils.slash.call(void 0, l)),Oi(e,d,l,n)}catch (e20){return s}})}var bx=/<!--\s*@include:\s*(.*?)\s*-->/g;function Hu(e){let t=e.userRoot;return(r,n)=>{let o=n,i=[],s=_pathe2.default.dirname(n);return r=Oi(t,r,o,i),r=r.replace(bx,(a,f)=>{try{let u=_pathe2.default.join(s,f),l=_fsextra2.default.readFileSync(u,"utf-8");return i.push(u),l}catch (e21){return a}}),{code:r,includes:i}}}_chunkZAC5357Ocjs.e.call(void 0, );function qu(e){let t=e.userRoot,{ignoreDeadLinks:r}=e.config,n=_optionalChain([e, 'access', _84 => _84.config, 'access', _85 => _85.vite, 'optionalAccess', _86 => _86.publicDir])||"public";return(o,i)=>{let{links:s=[]}=e.env,a=i,f=i,u=[],l=p=>{u.push({url:p,file:_pathe2.default.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(Et,"").startsWith("//localhost"):r.some(h=>typeof h=="string"?p===h:h instanceof RegExp?h.test(p):typeof h=="function"?h(p):!1):!1}if(s){let p=_pathe2.default.dirname(f);for(let h of s){let{pathname:v}=new URL(h,"http://a.com");if(!Vu(v))continue;h=h.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),h.endsWith("/")&&(h+="index");let _=decodeURIComponent(_utils.slash.call(void 0, h.startsWith("/")?h.slice(1):_pathe2.default.relative(t,_pathe2.default.resolve(p,h)))).replace(/\/index$/,"");!e.pages.includes(_)&&!_fsextra2.default.existsSync(_pathe2.default.resolve(p,n,`${_}.html`))&&!d(h)&&l(h)}}return u}}_chunkZAC5357Ocjs.e.call(void 0, );function wx(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
50
50
  const data = ${jc(e)}
51
51
  const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
@@ -6,7 +6,7 @@ import{a as B,b as S,c as Z,d as c}from"./chunk-5OREE7SY.mjs";var he=S((l_,vn)=>
6
6
  `)}function Ph(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Oh(){return process.env.DEBUG}function Th(e){e.inspectOpts={};let t=Object.keys(ce.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ce.inspectOpts[t[r]]}Hr.exports=ni()(ce);var{formatters:Bl}=Hr.exports;Bl.o=function(e){return this.inspectOpts.colors=this.useColors,jr.inspect(e,this.inspectOpts).split(`
7
7
  `).map(t=>t.trim()).join(" ")};Bl.O=function(e){return this.inspectOpts.colors=this.useColors,jr.inspect(e,this.inspectOpts)}});var si=S((oS,ii)=>{"use strict";c();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ii.exports=Ll():ii.exports=Ul()});var zl=S((cS,Yl)=>{"use strict";c();var{hasOwnProperty:ai}=Object.prototype,li=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
8
8
  `:`
9
- `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=He(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,l)=>He(u).length>=He(l).length?u:l)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let l=e[u];if(l&&Array.isArray(l))for(let d of l)a+=He(`${u}${f}`).padEnd(s," ")+n+He(d)+r;else l&&typeof l=="object"?o.push(u):a+=He(u).padEnd(s," ")+n+He(l)+r}t.section&&a.length&&(a="["+He(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let l=Gl(u,".").join("\\."),d=(t.section?t.section+".":"")+l,p=li(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Gl(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 Wl=(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 u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let l=u.match(i);if(!l)continue;if(l[1]!==void 0){if(o=qr(l[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=qr(l[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(a?.[d]||0)+1,p=a[d]>1);let y=p?d.slice(0,-2):d;if(y==="__proto__")continue;let x=l[3]?qr(l[4]):!0,C=x==="true"||x==="false"||x==="null"?JSON.parse(x):x;p&&(ai.call(n,y)?Array.isArray(n[y])||(n[y]=[n[y]]):n[y]=[]),Array.isArray(n[y])?n[y].push(C):n[y]=C}let f=[];for(let u of Object.keys(r)){if(!ai.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=Gl(u,".");n=r;let d=l.pop(),p=d.replace(/\\\./g,".");for(let y of l)y!=="__proto__"&&((!ai.call(n,y)||typeof n[y]!="object")&&(n[y]=Object.create(null)),n=n[y]);n===r&&p===d||(n[p]=r[u],f.push(u))}for(let u of f)delete r[u];return r},Kl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),He=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Kl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),qr=(e,t)=>{if(e=(e||"").trim(),Kl(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};Yl.exports={parse:Wl,decode:Wl,stringify:li,encode:li,safe:He,unsafe:qr}});var fi=S((yS,ec)=>{"use strict";c();var Dh=B("os");ec.exports=Dh.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 pi=S((xS,tc)=>{"use strict";c();tc.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 rc=S((CS,Wt)=>{"use strict";c();var Vh=process.platform==="win32",jh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,di={};function Hh(e){return jh.exec(e).slice(1)}di.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Hh(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 qh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,mi={};function Bh(e){return qh.exec(e).slice(1)}mi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Bh(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]}};Vh?Wt.exports=di.parse:Wt.exports=mi.parse;Wt.exports.posix=mi.parse;Wt.exports.win32=di.parse});var gi=S((SS,sc)=>{"use strict";c();var ic=B("path"),nc=ic.parse||rc(),oc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=nc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=nc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return ic.resolve(n,a,f)}))},[])};sc.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 oc(t,o)},r);var i=oc(t,o);return r&&r.paths?i.concat(r.paths):i}});var hi=S((wS,ac)=>{"use strict";c();ac.exports=function(e,t){return t||{}}});var uc=S((kS,cc)=>{"use strict";c();var Uh="Function.prototype.bind called on incompatible ",Wh=Object.prototype.toString,Gh=Math.max,Kh="[object Function]",lc=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},Yh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},zh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};cc.exports=function(t){var r=this;if(typeof r!="function"||Wh.apply(r)!==Kh)throw new TypeError(Uh+r);for(var n=Yh(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,lc(n,arguments));return Object(l)===l?l:this}return r.apply(t,lc(n,arguments))},s=Gh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+zh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var pc=S((PS,fc)=>{"use strict";c();var Xh=uc();fc.exports=Function.prototype.bind||Xh});var mc=S((TS,dc)=>{"use strict";c();var Qh=Function.prototype.call,Jh=Object.prototype.hasOwnProperty,Zh=pc();dc.exports=Zh.call(Qh,Jh)});var gc=S((FS,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 Gt=S((IS,vc)=>{"use strict";c();var ty=mc();function ry(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),f=parseInt(i[s]||0,10);if(a!==f)return o==="<"?a<f:o===">="?a>=f:!1}return o===">="}function hc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ry(e,r[n]))return!1;return!0}function ny(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(hc(r,t[n]))return!0;return!1}return hc(r,t)}var yc=gc();vc.exports=function(t,r){return ty(yc,t)&&ny(r,yc[t])}});var Cc=S((NS,_c)=>{"use strict";c();var ct=B("fs"),oy=fi(),ne=B("path"),iy=pi(),sy=gi(),ay=hi(),ly=Gt(),cy=process.platform!=="win32"&&ct.realpath&&typeof ct.realpath.native=="function"?ct.realpath.native:ct.realpath,xc=oy(),uy=function(){return[ne.join(xc,".node_modules"),ne.join(xc,".node_libraries")]},fy=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},py=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},dy=function(t,r){cy(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Kt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},my=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},gy=function(t,r,n){for(var o=sy(r,n,t),i=0;i<o.length;i++)o[i]=ne.join(o[i],t);return o};_c.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=ay(t,i);var a=i.isFile||fy,f=i.isDirectory||py,u=i.readFile||ct.readFile,l=i.realpath||dy,d=i.readPackage||my;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var y=i.packageIterator,x=i.extensions||[".js"],C=i.includeCoreModules!==!1,b=i.basedir||ne.dirname(iy()),R=i.filename||b;i.paths=i.paths||uy();var P=ne.resolve(b);Kt(l,P,i,function(h,T){h?o(h):N(T)});var I;function N(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=ne.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===h?k(I,i.package,O):M(I,i.package,O);else{if(C&&ly(t))return o(null,t);G(t,h,function(T,L,j){if(T)o(T);else{if(L)return Kt(l,L,i,function(_,q){_?o(_):o(null,q,j)});var v=new Error("Cannot find module '"+t+"' from '"+R+"'");v.code="MODULE_NOT_FOUND",o(v)}})}}function O(h,T,L){h?o(h):T?o(null,T,L):k(I,function(j,v,_){if(j)o(j);else if(v)Kt(l,v,i,function(F,K){F?o(F):o(null,K,_)});else{var q=new Error("Cannot find module '"+t+"' from '"+R+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,T,L){var j=T,v=L;typeof j=="function"&&(v=j,j=void 0);var _=[""].concat(x);q(_,h,j);function q(F,K,te){if(F.length===0)return v(null,void 0,te);var J=K+F[0],me=te;me?ae(null,me):E(ne.dirname(J),ae);function ae(ue,V,ye){if(me=V,ue)return v(ue);if(ye&&me&&i.pathFilter){var gt=ne.relative(ye,J),A=gt.slice(0,gt.length-F[0].length),W=i.pathFilter(me,K,A);if(W)return q([""].concat(x.slice()),ne.resolve(ye,W),me)}a(J,De)}function De(ue,V){if(ue)return v(ue);if(V)return v(null,J,me);q(F.slice(1),K,me)}}}function E(h,T){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return T(null);Kt(l,h,i,function(L,j){if(L)return E(ne.dirname(h),T);var v=ne.join(j,"package.json");a(v,function(_,q){if(!q)return E(ne.dirname(h),T);d(u,v,function(F,K){F&&T(F);var te=K;te&&i.packageFilter&&(te=i.packageFilter(te,v)),T(null,te,h)})})})}function k(h,T,L){var j=L,v=T;typeof v=="function"&&(j=v,v=i.package),Kt(l,h,i,function(_,q){if(_)return j(_);var F=ne.join(q,"package.json");a(F,function(K,te){if(K)return j(K);if(!te)return M(ne.join(h,"index"),v,j);d(u,F,function(J,me){if(J)return j(J);var ae=me;if(ae&&i.packageFilter&&(ae=i.packageFilter(ae,F)),ae&&ae.main){if(typeof ae.main!="string"){var De=new TypeError("package \u201C"+ae.name+"\u201D `main` must be a string");return De.code="INVALID_PACKAGE_MAIN",j(De)}(ae.main==="."||ae.main==="./")&&(ae.main="index"),M(ne.resolve(h,ae.main),ae,function(ue,V,ye){if(ue)return j(ue);if(V)return j(null,V,ye);if(!ye)return M(ne.join(h,"index"),ye,j);var gt=ne.resolve(h,ye.main);k(gt,ye,function(A,W,w){if(A)return j(A);if(W)return j(null,W,w);M(ne.join(h,"index"),w,j)})});return}M(ne.join(h,"/index"),ae,j)})})})}function $(h,T){if(T.length===0)return h(null,void 0);var L=T[0];f(ne.dirname(L),j);function j(q,F){if(q)return h(q);if(!F)return $(h,T.slice(1));M(L,i.package,v)}function v(q,F,K){if(q)return h(q);if(F)return h(null,F,K);k(L,i.package,_)}function _(q,F,K){if(q)return h(q);if(F)return h(null,F,K);$(h,T.slice(1))}}function G(h,T,L){var j=function(){return gy(h,T,i)};$(L,y?y(h,T,j,i):j())}}});var bc=S((DS,hy)=>{hy.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 Ec=S((VS,wc)=>{"use strict";c();var yy=Gt(),Sc=bc(),Rc={};for(Ur in Sc)Object.prototype.hasOwnProperty.call(Sc,Ur)&&(Rc[Ur]=yy(Ur));var Ur;wc.exports=Rc});var Ac=S((HS,kc)=>{"use strict";c();var vy=Gt();kc.exports=function(t){return vy(t)}});var Tc=S((BS,Oc)=>{"use strict";c();var xy=Gt(),ut=B("fs"),de=B("path"),_y=fi(),Cy=pi(),by=gi(),Sy=hi(),Ry=process.platform!=="win32"&&ut.realpathSync&&typeof ut.realpathSync.native=="function"?ut.realpathSync.native:ut.realpathSync,Pc=_y(),wy=function(){return[de.join(Pc,".node_modules"),de.join(Pc,".node_libraries")]},Ey=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},ky=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},Ay=function(t){try{return Ry(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Yt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Py=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Oy=function(t,r,n){for(var o=by(r,n,t),i=0;i<o.length;i++)o[i]=de.join(o[i],t);return o};Oc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=Sy(t,r),o=n.isFile||Ey,i=n.readFileSync||ut.readFileSync,s=n.isDirectory||ky,a=n.realpathSync||Ay,f=n.readPackageSync||Py;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,l=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||de.dirname(Cy()),y=n.filename||p;n.paths=n.paths||wy();var x=Yt(a,de.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var C=de.resolve(x,t);(t==="."||t===".."||t.slice(-1)==="/")&&(C+="/");var b=I(C)||O(C);if(b)return Yt(a,b,n)}else{if(d&&xy(t))return t;var R=M(t,x);if(R)return Yt(a,R,n)}var P=new Error("Cannot find module '"+t+"' from '"+y+"'");throw P.code="MODULE_NOT_FOUND",P;function I(E){var k=N(de.dirname(E));if(k&&k.dir&&k.pkg&&n.pathFilter){var $=de.relative(k.dir,E),G=n.pathFilter(k.pkg,E,$);G&&(E=de.resolve(k.dir,G))}if(o(E))return E;for(var h=0;h<l.length;h++){var T=E+l[h];if(o(T))return T}}function N(E){if(!(E===""||E==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(E))&&!/[/\\]node_modules[/\\]*$/.test(E)){var k=de.join(Yt(a,E,n),"package.json");if(!o(k))return N(de.dirname(E));var $=f(i,k);return $&&n.packageFilter&&($=n.packageFilter($,E)),{pkg:$,dir:E}}}function O(E){var k=de.join(Yt(a,E,n),"/package.json");if(o(k)){try{var $=f(i,k)}catch{}if($&&n.packageFilter&&($=n.packageFilter($,E)),$&&$.main){if(typeof $.main!="string"){var G=new TypeError("package \u201C"+$.name+"\u201D `main` must be a string");throw G.code="INVALID_PACKAGE_MAIN",G}($.main==="."||$.main==="./")&&($.main="index");try{var h=I(de.resolve(E,$.main));if(h)return h;var T=O(de.resolve(E,$.main));if(T)return T}catch{}}}return I(de.join(E,"/index"))}function M(E,k){for(var $=function(){return Oy(E,k,n)},G=u?u(E,k,$,n):$(),h=0;h<G.length;h++){var T=G[h];if(s(de.dirname(T))){var L=I(T);if(L)return L;var j=O(T);if(j)return j}}}}});var Fc=S((WS,$c)=>{"use strict";c();var Wr=Cc();Wr.core=Ec();Wr.isCore=Ac();Wr.sync=Tc();$c.exports=Wr});c();import n_ from"node:process";import o_ from"yargs";import{hideBin as i_}from"yargs/helpers";var ht="0.18.2";c();var ke=Z(he(),1),yu=Z(Nr(),1);import{dirname as fv,join as pv,resolve as tn}from"node:path";import{readFile as dv}from"node:fs/promises";import Jt from"fs-extra";import mv from"gray-matter";import gv from"markdown-it";import{Feed as hv}from"feed";import pt from"consola";c();var lu=Z(si(),1),cu=Z(Nr(),1),Xe=Z(he(),1);import{dirname as sv}from"node:path";import iu from"node:process";import{resolve as Qt}from"pathe";import au from"fs-extra";import{ensureSuffix as su,uniq as av}from"@antfu/utils";import uu from"defu";import fu from"consola";c();c();import{spawn as $h}from"cross-spawn";function qt(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=$h("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}c();import{join as Ic}from"node:path";import Ty from"is-installed-globally";c();var Ql=Z(zl(),1);import ie from"node:process";import se from"node:path";import ci from"node:os";import Br from"node:fs";var Ut=ie.platform==="win32",Xl=e=>{try{return Ql.default.parse(Br.readFileSync(e,"utf8")).prefix}catch{}},Fh=()=>Object.keys(ie.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?ie.env[t]:e,void 0),Ih=()=>{if(Ut&&ie.env.APPDATA)return se.join(ie.env.APPDATA,"/npm/etc/npmrc");if(ie.execPath.includes("/Cellar/node")){let e=ie.execPath.slice(0,ie.execPath.indexOf("/Cellar/node"));return se.join(e,"/lib/node_modules/npm/npmrc")}if(ie.execPath.endsWith("/bin/node")){let e=se.dirname(se.dirname(ie.execPath));return se.join(e,"/etc/npmrc")}},Mh=()=>{if(Ut){let{APPDATA:e}=ie.env;return e?se.join(e,"npm"):se.dirname(ie.execPath)}return se.dirname(se.dirname(ie.execPath))},Nh=()=>{let e=Fh();if(e)return e;let t=Xl(se.join(ci.homedir(),".npmrc"));if(t)return t;if(ie.env.PREFIX)return ie.env.PREFIX;let r=Xl(Ih());return r||Mh()},Bt=se.resolve(Nh()),Jl=()=>{if(Ut&&ie.env.LOCALAPPDATA){let e=se.join(ie.env.LOCALAPPDATA,"Yarn");if(Br.existsSync(e))return e}return!1},Lh=()=>{if(ie.env.PREFIX)return ie.env.PREFIX;let e=Jl();if(e)return e;let t=se.join(ci.homedir(),".config/yarn");if(Br.existsSync(t))return t;let r=se.join(ci.homedir(),".yarn-config");return Br.existsSync(r)?r:Bt},Ie={};Ie.npm={};Ie.npm.prefix=Bt;Ie.npm.packages=se.join(Bt,Ut?"node_modules":"lib/node_modules");Ie.npm.binaries=Ut?Bt:se.join(Bt,"bin");var Zl=se.resolve(Lh());Ie.yarn={};Ie.yarn.prefix=Zl;Ie.yarn.packages=se.join(Zl,Jl()?"Data/global/node_modules":"global/node_modules");Ie.yarn.binaries=se.join(Ie.yarn.packages,".bin");var ui=Ie;var Nc=Z(Fc(),1);import Mc from"consola";function Me(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Nc.sync)(e,r)}catch(n){Mc.log(n)}if(Ty){try{return B.resolve(Ic(ui.yarn.packages,e))}catch{}try{return B.resolve(Ic(ui.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);Mc.error(`Failed to resolve package ${e}`)}c();c();var Gr="<!-- more -->",kt=/^https?:/i,Lc=/^pathname:\/\//,eR="/:all(.*)*",Dc=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"]);function Vc(e){return kt.test(e)}function $y(e){return e.replace(/\\/g,"/")}function yi(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${yi("/",$y(e))}`}function jc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Hc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}c();c();import Fy from"node:process";import{fileURLToPath as Iy}from"node:url";import My from"jiti";import{resolve as Ny}from"pathe";import Ly from"consola";function Dy(e){let{name:t,cwd:r}=e,n=Ny(r,`${t}.config.ts`),o={};try{o=My(Iy(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{Ly.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function At(e,t={}){let{config:r,configFile:n}=Dy({name:e,cwd:t.cwd||Fy.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}c();var Ot=Z(he(),1);import Hy from"node:process";import{createDefu as qy}from"defu";import{mergeConfig as By}from"vite";import{isFunction as Bc}from"@antfu/utils";import Uy from"consola";c();function ze(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}c();var Pt=Z(he(),1);import{webcrypto as qc}from"node:crypto";import Vy from"consola";var Kr={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:qc.getRandomValues(new Uint8Array(16)),iv:qc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function RR(e){return e}async function jy(e){return At("site",{cwd:e})}async function Yr(e){let t=ze(),{config:r,configFile:n}=await jy(e),o=t();return r&&n&&Vy.success(`Resolve ${(0,Pt.cyan)("siteConfig")} from ${(0,Pt.dim)(n)} ${(0,Pt.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Uc={siteConfig:Kr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Wy(e){return e}var MR=Wy;async function zt(e,t){return await At("valaxy",{cwd:e,valaxyOptions:t})}var ft=qy((e,t,r)=>{if(Bc(e[t])&&Bc(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=By(e[t],r),!0});async function Wc(e){let t=e.userRoot||Hy.cwd(),r=ze(),{config:n,configFile:o}=await zt(t),i=r();n&&o&&Uy.success(`Resolve ${(0,Ot.cyan)("userValaxyConfig")} from ${(0,Ot.dim)(o)} ${(0,Ot.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}c();import Gy from"node:path";import Ky from"fs-extra";function Yy(e){return e}var HR=Yy;async function Gc(e,t){let r={};for(let n of e){if(!Ky.existsSync(Gy.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await zt(n.root,t);o&&(n.configFile=i,r=ft(o,r))}return r}c();var Qr=Z(he(),1);import Jy from"defu";c();var Yc=Z(he(),1);import Qy from"consola";c();import Kc from"node:process";import zy from"node:fs";import Xy from"node:path";function Xt(){return Kc.env.NODE_ENV==="production"}function vi(e="development"){Kc.env.NODE_ENV=e,Ne.level=Xt()?2:3}function Tt(){return vi("production")}function zr(e){let t=zy.existsSync(Xy.resolve(e,"pages"));return t||Ne.error(`No pages directory found in ${e}`),t}var Ne=Qy.create({level:Xt()?2:3}),xi=`${(0,Yc.magenta)("valaxy")}:`,$t={success:e=>Ne.success(xi,e),info:e=>Ne.info(xi,e),ready:e=>Ne.ready(xi,e)};async function Xr(e){return At("theme",{cwd:e})}async function zc(e){let{config:t,configFile:r}=await Xr(e.userRoot);if(t&&r&&Ne.info(`Resolve ${(0,Qr.cyan)("themeConfig")} from ${(0,Qr.dim)(r)}`),e?.themeRoot){let{config:n}=await Xr(e.themeRoot);t=Jy(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Zy(e){return e}var nw=Zy;function sw(e){return e}c();var Le=Z(he(),1);import tu from"node:process";import{resolve as tv}from"pathe";import Jc from"fs-extra";import Zc from"defu";import rv from"ora";c();import{dirname as Xc}from"node:path";import{resolve as Qc}from"pathe";import ev from"fs-extra";function Jr(e,t){if(!e)return"";if(jc(e))if(t){let r=ev.lstatSync(t).isFile();return Qc(r?Xc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Qc(Xc(Me(`${e}/package.json`)||""))}async function ru(e,t=tu.cwd()){let r=rv(`Resolve ${(0,Le.cyan)("addons")} from ${(0,Le.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Zc(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await eu(s,{cwd:t}));continue}typeof s=="object"&&o(Zc(await eu(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Le.yellow)(s.name)} ${(0,Le.blue)(`v${s.pkg?.version}`)}${s.global?(0,Le.cyan)(" (global)"):""} ${(0,Le.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),i}async function eu(e,t={}){let r=nv(e,t.cwd||tu.cwd()),n=tv(r,"./package.json");if(!Jc.existsSync(n)){Ne.error(`No addon named ${e} found`);return}let o=await Jc.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function nv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Jr(r,t)}c();function nu(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Jr(r,t)}c();import{writeFile as ov}from"node:fs/promises";import{ensureFile as iv}from"fs-extra";function Zr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function en(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Zr(n),to:Zr(r.to)});else t.push({from:Zr(r.from),to:Zr(r.to)});return t}async function ou(e,t){await iv(t),await ov(t,`
9
+ `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=He(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,l)=>He(u).length>=He(l).length?u:l)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let l=e[u];if(l&&Array.isArray(l))for(let d of l)a+=He(`${u}${f}`).padEnd(s," ")+n+He(d)+r;else l&&typeof l=="object"?o.push(u):a+=He(u).padEnd(s," ")+n+He(l)+r}t.section&&a.length&&(a="["+He(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let l=Gl(u,".").join("\\."),d=(t.section?t.section+".":"")+l,p=li(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Gl(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 Wl=(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 u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let l=u.match(i);if(!l)continue;if(l[1]!==void 0){if(o=qr(l[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=qr(l[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(a?.[d]||0)+1,p=a[d]>1);let y=p?d.slice(0,-2):d;if(y==="__proto__")continue;let x=l[3]?qr(l[4]):!0,C=x==="true"||x==="false"||x==="null"?JSON.parse(x):x;p&&(ai.call(n,y)?Array.isArray(n[y])||(n[y]=[n[y]]):n[y]=[]),Array.isArray(n[y])?n[y].push(C):n[y]=C}let f=[];for(let u of Object.keys(r)){if(!ai.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=Gl(u,".");n=r;let d=l.pop(),p=d.replace(/\\\./g,".");for(let y of l)y!=="__proto__"&&((!ai.call(n,y)||typeof n[y]!="object")&&(n[y]=Object.create(null)),n=n[y]);n===r&&p===d||(n[p]=r[u],f.push(u))}for(let u of f)delete r[u];return r},Kl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),He=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Kl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),qr=(e,t)=>{if(e=(e||"").trim(),Kl(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};Yl.exports={parse:Wl,decode:Wl,stringify:li,encode:li,safe:He,unsafe:qr}});var fi=S((yS,ec)=>{"use strict";c();var Dh=B("os");ec.exports=Dh.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 pi=S((xS,tc)=>{"use strict";c();tc.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 rc=S((CS,Wt)=>{"use strict";c();var Vh=process.platform==="win32",jh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,di={};function Hh(e){return jh.exec(e).slice(1)}di.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Hh(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 qh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,mi={};function Bh(e){return qh.exec(e).slice(1)}mi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Bh(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]}};Vh?Wt.exports=di.parse:Wt.exports=mi.parse;Wt.exports.posix=mi.parse;Wt.exports.win32=di.parse});var gi=S((SS,sc)=>{"use strict";c();var ic=B("path"),nc=ic.parse||rc(),oc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=nc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=nc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return ic.resolve(n,a,f)}))},[])};sc.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 oc(t,o)},r);var i=oc(t,o);return r&&r.paths?i.concat(r.paths):i}});var hi=S((wS,ac)=>{"use strict";c();ac.exports=function(e,t){return t||{}}});var uc=S((kS,cc)=>{"use strict";c();var Uh="Function.prototype.bind called on incompatible ",Wh=Object.prototype.toString,Gh=Math.max,Kh="[object Function]",lc=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},Yh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},zh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};cc.exports=function(t){var r=this;if(typeof r!="function"||Wh.apply(r)!==Kh)throw new TypeError(Uh+r);for(var n=Yh(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,lc(n,arguments));return Object(l)===l?l:this}return r.apply(t,lc(n,arguments))},s=Gh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+zh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var pc=S((PS,fc)=>{"use strict";c();var Xh=uc();fc.exports=Function.prototype.bind||Xh});var mc=S((TS,dc)=>{"use strict";c();var Qh=Function.prototype.call,Jh=Object.prototype.hasOwnProperty,Zh=pc();dc.exports=Zh.call(Qh,Jh)});var gc=S((FS,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 Gt=S((IS,vc)=>{"use strict";c();var ty=mc();function ry(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),f=parseInt(i[s]||0,10);if(a!==f)return o==="<"?a<f:o===">="?a>=f:!1}return o===">="}function hc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ry(e,r[n]))return!1;return!0}function ny(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(hc(r,t[n]))return!0;return!1}return hc(r,t)}var yc=gc();vc.exports=function(t,r){return ty(yc,t)&&ny(r,yc[t])}});var Cc=S((NS,_c)=>{"use strict";c();var ct=B("fs"),oy=fi(),ne=B("path"),iy=pi(),sy=gi(),ay=hi(),ly=Gt(),cy=process.platform!=="win32"&&ct.realpath&&typeof ct.realpath.native=="function"?ct.realpath.native:ct.realpath,xc=oy(),uy=function(){return[ne.join(xc,".node_modules"),ne.join(xc,".node_libraries")]},fy=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},py=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},dy=function(t,r){cy(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Kt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},my=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},gy=function(t,r,n){for(var o=sy(r,n,t),i=0;i<o.length;i++)o[i]=ne.join(o[i],t);return o};_c.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=ay(t,i);var a=i.isFile||fy,f=i.isDirectory||py,u=i.readFile||ct.readFile,l=i.realpath||dy,d=i.readPackage||my;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var y=i.packageIterator,x=i.extensions||[".js"],C=i.includeCoreModules!==!1,b=i.basedir||ne.dirname(iy()),R=i.filename||b;i.paths=i.paths||uy();var P=ne.resolve(b);Kt(l,P,i,function(h,T){h?o(h):N(T)});var I;function N(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=ne.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===h?k(I,i.package,O):M(I,i.package,O);else{if(C&&ly(t))return o(null,t);G(t,h,function(T,L,j){if(T)o(T);else{if(L)return Kt(l,L,i,function(_,q){_?o(_):o(null,q,j)});var v=new Error("Cannot find module '"+t+"' from '"+R+"'");v.code="MODULE_NOT_FOUND",o(v)}})}}function O(h,T,L){h?o(h):T?o(null,T,L):k(I,function(j,v,_){if(j)o(j);else if(v)Kt(l,v,i,function(F,K){F?o(F):o(null,K,_)});else{var q=new Error("Cannot find module '"+t+"' from '"+R+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,T,L){var j=T,v=L;typeof j=="function"&&(v=j,j=void 0);var _=[""].concat(x);q(_,h,j);function q(F,K,te){if(F.length===0)return v(null,void 0,te);var J=K+F[0],me=te;me?ae(null,me):E(ne.dirname(J),ae);function ae(ue,V,ye){if(me=V,ue)return v(ue);if(ye&&me&&i.pathFilter){var gt=ne.relative(ye,J),A=gt.slice(0,gt.length-F[0].length),W=i.pathFilter(me,K,A);if(W)return q([""].concat(x.slice()),ne.resolve(ye,W),me)}a(J,De)}function De(ue,V){if(ue)return v(ue);if(V)return v(null,J,me);q(F.slice(1),K,me)}}}function E(h,T){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return T(null);Kt(l,h,i,function(L,j){if(L)return E(ne.dirname(h),T);var v=ne.join(j,"package.json");a(v,function(_,q){if(!q)return E(ne.dirname(h),T);d(u,v,function(F,K){F&&T(F);var te=K;te&&i.packageFilter&&(te=i.packageFilter(te,v)),T(null,te,h)})})})}function k(h,T,L){var j=L,v=T;typeof v=="function"&&(j=v,v=i.package),Kt(l,h,i,function(_,q){if(_)return j(_);var F=ne.join(q,"package.json");a(F,function(K,te){if(K)return j(K);if(!te)return M(ne.join(h,"index"),v,j);d(u,F,function(J,me){if(J)return j(J);var ae=me;if(ae&&i.packageFilter&&(ae=i.packageFilter(ae,F)),ae&&ae.main){if(typeof ae.main!="string"){var De=new TypeError("package \u201C"+ae.name+"\u201D `main` must be a string");return De.code="INVALID_PACKAGE_MAIN",j(De)}(ae.main==="."||ae.main==="./")&&(ae.main="index"),M(ne.resolve(h,ae.main),ae,function(ue,V,ye){if(ue)return j(ue);if(V)return j(null,V,ye);if(!ye)return M(ne.join(h,"index"),ye,j);var gt=ne.resolve(h,ye.main);k(gt,ye,function(A,W,w){if(A)return j(A);if(W)return j(null,W,w);M(ne.join(h,"index"),w,j)})});return}M(ne.join(h,"/index"),ae,j)})})})}function $(h,T){if(T.length===0)return h(null,void 0);var L=T[0];f(ne.dirname(L),j);function j(q,F){if(q)return h(q);if(!F)return $(h,T.slice(1));M(L,i.package,v)}function v(q,F,K){if(q)return h(q);if(F)return h(null,F,K);k(L,i.package,_)}function _(q,F,K){if(q)return h(q);if(F)return h(null,F,K);$(h,T.slice(1))}}function G(h,T,L){var j=function(){return gy(h,T,i)};$(L,y?y(h,T,j,i):j())}}});var bc=S((DS,hy)=>{hy.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 Ec=S((VS,wc)=>{"use strict";c();var yy=Gt(),Sc=bc(),Rc={};for(Ur in Sc)Object.prototype.hasOwnProperty.call(Sc,Ur)&&(Rc[Ur]=yy(Ur));var Ur;wc.exports=Rc});var Ac=S((HS,kc)=>{"use strict";c();var vy=Gt();kc.exports=function(t){return vy(t)}});var Tc=S((BS,Oc)=>{"use strict";c();var xy=Gt(),ut=B("fs"),de=B("path"),_y=fi(),Cy=pi(),by=gi(),Sy=hi(),Ry=process.platform!=="win32"&&ut.realpathSync&&typeof ut.realpathSync.native=="function"?ut.realpathSync.native:ut.realpathSync,Pc=_y(),wy=function(){return[de.join(Pc,".node_modules"),de.join(Pc,".node_libraries")]},Ey=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},ky=function(t){try{var r=ut.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},Ay=function(t){try{return Ry(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Yt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Py=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Oy=function(t,r,n){for(var o=by(r,n,t),i=0;i<o.length;i++)o[i]=de.join(o[i],t);return o};Oc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=Sy(t,r),o=n.isFile||Ey,i=n.readFileSync||ut.readFileSync,s=n.isDirectory||ky,a=n.realpathSync||Ay,f=n.readPackageSync||Py;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,l=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||de.dirname(Cy()),y=n.filename||p;n.paths=n.paths||wy();var x=Yt(a,de.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var C=de.resolve(x,t);(t==="."||t===".."||t.slice(-1)==="/")&&(C+="/");var b=I(C)||O(C);if(b)return Yt(a,b,n)}else{if(d&&xy(t))return t;var R=M(t,x);if(R)return Yt(a,R,n)}var P=new Error("Cannot find module '"+t+"' from '"+y+"'");throw P.code="MODULE_NOT_FOUND",P;function I(E){var k=N(de.dirname(E));if(k&&k.dir&&k.pkg&&n.pathFilter){var $=de.relative(k.dir,E),G=n.pathFilter(k.pkg,E,$);G&&(E=de.resolve(k.dir,G))}if(o(E))return E;for(var h=0;h<l.length;h++){var T=E+l[h];if(o(T))return T}}function N(E){if(!(E===""||E==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(E))&&!/[/\\]node_modules[/\\]*$/.test(E)){var k=de.join(Yt(a,E,n),"package.json");if(!o(k))return N(de.dirname(E));var $=f(i,k);return $&&n.packageFilter&&($=n.packageFilter($,E)),{pkg:$,dir:E}}}function O(E){var k=de.join(Yt(a,E,n),"/package.json");if(o(k)){try{var $=f(i,k)}catch{}if($&&n.packageFilter&&($=n.packageFilter($,E)),$&&$.main){if(typeof $.main!="string"){var G=new TypeError("package \u201C"+$.name+"\u201D `main` must be a string");throw G.code="INVALID_PACKAGE_MAIN",G}($.main==="."||$.main==="./")&&($.main="index");try{var h=I(de.resolve(E,$.main));if(h)return h;var T=O(de.resolve(E,$.main));if(T)return T}catch{}}}return I(de.join(E,"/index"))}function M(E,k){for(var $=function(){return Oy(E,k,n)},G=u?u(E,k,$,n):$(),h=0;h<G.length;h++){var T=G[h];if(s(de.dirname(T))){var L=I(T);if(L)return L;var j=O(T);if(j)return j}}}}});var Fc=S((WS,$c)=>{"use strict";c();var Wr=Cc();Wr.core=Ec();Wr.isCore=Ac();Wr.sync=Tc();$c.exports=Wr});c();import n_ from"node:process";import o_ from"yargs";import{hideBin as i_}from"yargs/helpers";var ht="0.18.3";c();var ke=Z(he(),1),yu=Z(Nr(),1);import{dirname as fv,join as pv,resolve as tn}from"node:path";import{readFile as dv}from"node:fs/promises";import Jt from"fs-extra";import mv from"gray-matter";import gv from"markdown-it";import{Feed as hv}from"feed";import pt from"consola";c();var lu=Z(si(),1),cu=Z(Nr(),1),Xe=Z(he(),1);import{dirname as sv}from"node:path";import iu from"node:process";import{resolve as Qt}from"pathe";import au from"fs-extra";import{ensureSuffix as su,uniq as av}from"@antfu/utils";import uu from"defu";import fu from"consola";c();c();import{spawn as $h}from"cross-spawn";function qt(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=$h("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}c();import{join as Ic}from"node:path";import Ty from"is-installed-globally";c();var Ql=Z(zl(),1);import ie from"node:process";import se from"node:path";import ci from"node:os";import Br from"node:fs";var Ut=ie.platform==="win32",Xl=e=>{try{return Ql.default.parse(Br.readFileSync(e,"utf8")).prefix}catch{}},Fh=()=>Object.keys(ie.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?ie.env[t]:e,void 0),Ih=()=>{if(Ut&&ie.env.APPDATA)return se.join(ie.env.APPDATA,"/npm/etc/npmrc");if(ie.execPath.includes("/Cellar/node")){let e=ie.execPath.slice(0,ie.execPath.indexOf("/Cellar/node"));return se.join(e,"/lib/node_modules/npm/npmrc")}if(ie.execPath.endsWith("/bin/node")){let e=se.dirname(se.dirname(ie.execPath));return se.join(e,"/etc/npmrc")}},Mh=()=>{if(Ut){let{APPDATA:e}=ie.env;return e?se.join(e,"npm"):se.dirname(ie.execPath)}return se.dirname(se.dirname(ie.execPath))},Nh=()=>{let e=Fh();if(e)return e;let t=Xl(se.join(ci.homedir(),".npmrc"));if(t)return t;if(ie.env.PREFIX)return ie.env.PREFIX;let r=Xl(Ih());return r||Mh()},Bt=se.resolve(Nh()),Jl=()=>{if(Ut&&ie.env.LOCALAPPDATA){let e=se.join(ie.env.LOCALAPPDATA,"Yarn");if(Br.existsSync(e))return e}return!1},Lh=()=>{if(ie.env.PREFIX)return ie.env.PREFIX;let e=Jl();if(e)return e;let t=se.join(ci.homedir(),".config/yarn");if(Br.existsSync(t))return t;let r=se.join(ci.homedir(),".yarn-config");return Br.existsSync(r)?r:Bt},Ie={};Ie.npm={};Ie.npm.prefix=Bt;Ie.npm.packages=se.join(Bt,Ut?"node_modules":"lib/node_modules");Ie.npm.binaries=Ut?Bt:se.join(Bt,"bin");var Zl=se.resolve(Lh());Ie.yarn={};Ie.yarn.prefix=Zl;Ie.yarn.packages=se.join(Zl,Jl()?"Data/global/node_modules":"global/node_modules");Ie.yarn.binaries=se.join(Ie.yarn.packages,".bin");var ui=Ie;var Nc=Z(Fc(),1);import Mc from"consola";function Me(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Nc.sync)(e,r)}catch(n){Mc.log(n)}if(Ty){try{return B.resolve(Ic(ui.yarn.packages,e))}catch{}try{return B.resolve(Ic(ui.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);Mc.error(`Failed to resolve package ${e}`)}c();c();var Gr="<!-- more -->",kt=/^https?:/i,Lc=/^pathname:\/\//,eR="/:all(.*)*",Dc=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"]);function Vc(e){return kt.test(e)}function $y(e){return e.replace(/\\/g,"/")}function yi(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${yi("/",$y(e))}`}function jc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Hc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}c();c();import Fy from"node:process";import{fileURLToPath as Iy}from"node:url";import My from"jiti";import{resolve as Ny}from"pathe";import Ly from"consola";function Dy(e){let{name:t,cwd:r}=e,n=Ny(r,`${t}.config.ts`),o={};try{o=My(Iy(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{Ly.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function At(e,t={}){let{config:r,configFile:n}=Dy({name:e,cwd:t.cwd||Fy.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}c();var Ot=Z(he(),1);import Hy from"node:process";import{createDefu as qy}from"defu";import{mergeConfig as By}from"vite";import{isFunction as Bc}from"@antfu/utils";import Uy from"consola";c();function ze(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}c();var Pt=Z(he(),1);import{webcrypto as qc}from"node:crypto";import Vy from"consola";var Kr={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:qc.getRandomValues(new Uint8Array(16)),iv:qc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function RR(e){return e}async function jy(e){return At("site",{cwd:e})}async function Yr(e){let t=ze(),{config:r,configFile:n}=await jy(e),o=t();return r&&n&&Vy.success(`Resolve ${(0,Pt.cyan)("siteConfig")} from ${(0,Pt.dim)(n)} ${(0,Pt.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Uc={siteConfig:Kr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Wy(e){return e}var MR=Wy;async function zt(e,t){return await At("valaxy",{cwd:e,valaxyOptions:t})}var ft=qy((e,t,r)=>{if(Bc(e[t])&&Bc(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=By(e[t],r),!0});async function Wc(e){let t=e.userRoot||Hy.cwd(),r=ze(),{config:n,configFile:o}=await zt(t),i=r();n&&o&&Uy.success(`Resolve ${(0,Ot.cyan)("userValaxyConfig")} from ${(0,Ot.dim)(o)} ${(0,Ot.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}c();import Gy from"node:path";import Ky from"fs-extra";function Yy(e){return e}var HR=Yy;async function Gc(e,t){let r={};for(let n of e){if(!Ky.existsSync(Gy.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await zt(n.root,t);o&&(n.configFile=i,r=ft(o,r))}return r}c();var Qr=Z(he(),1);import Jy from"defu";c();var Yc=Z(he(),1);import Qy from"consola";c();import Kc from"node:process";import zy from"node:fs";import Xy from"node:path";function Xt(){return Kc.env.NODE_ENV==="production"}function vi(e="development"){Kc.env.NODE_ENV=e,Ne.level=Xt()?2:3}function Tt(){return vi("production")}function zr(e){let t=zy.existsSync(Xy.resolve(e,"pages"));return t||Ne.error(`No pages directory found in ${e}`),t}var Ne=Qy.create({level:Xt()?2:3}),xi=`${(0,Yc.magenta)("valaxy")}:`,$t={success:e=>Ne.success(xi,e),info:e=>Ne.info(xi,e),ready:e=>Ne.ready(xi,e)};async function Xr(e){return At("theme",{cwd:e})}async function zc(e){let{config:t,configFile:r}=await Xr(e.userRoot);if(t&&r&&Ne.info(`Resolve ${(0,Qr.cyan)("themeConfig")} from ${(0,Qr.dim)(r)}`),e?.themeRoot){let{config:n}=await Xr(e.themeRoot);t=Jy(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Zy(e){return e}var nw=Zy;function sw(e){return e}c();var Le=Z(he(),1);import tu from"node:process";import{resolve as tv}from"pathe";import Jc from"fs-extra";import Zc from"defu";import rv from"ora";c();import{dirname as Xc}from"node:path";import{resolve as Qc}from"pathe";import ev from"fs-extra";function Jr(e,t){if(!e)return"";if(jc(e))if(t){let r=ev.lstatSync(t).isFile();return Qc(r?Xc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Qc(Xc(Me(`${e}/package.json`)||""))}async function ru(e,t=tu.cwd()){let r=rv(`Resolve ${(0,Le.cyan)("addons")} from ${(0,Le.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Zc(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await eu(s,{cwd:t}));continue}typeof s=="object"&&o(Zc(await eu(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Le.yellow)(s.name)} ${(0,Le.blue)(`v${s.pkg?.version}`)}${s.global?(0,Le.cyan)(" (global)"):""} ${(0,Le.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),i}async function eu(e,t={}){let r=nv(e,t.cwd||tu.cwd()),n=tv(r,"./package.json");if(!Jc.existsSync(n)){Ne.error(`No addon named ${e} found`);return}let o=await Jc.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function nv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Jr(r,t)}c();function nu(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Jr(r,t)}c();import{writeFile as ov}from"node:fs/promises";import{ensureFile as iv}from"fs-extra";function Zr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function en(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Zr(n),to:Zr(r.to)});else t.push({from:Zr(r.from),to:Zr(r.to)});return t}async function ou(e,t){await iv(t),await ov(t,`
10
10
  <!DOCTYPE html>
11
11
  <html lang="en">
12
12
  <head>
@@ -46,7 +46,7 @@ date: <%=date%>
46
46
  ${(d.match(/<head>([\s\S]*?)<\/head>/im)?.[1]||"").trim()}`,a+=`
47
47
  ${(d.match(/<body>([\s\S]*?)<\/body>/im)?.[1]||"").trim()}`}return i=i.replace("__ENTRY__",Q(Si(e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var ex=["@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"],$u=["@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 Fu(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:Ou(e.userRoot,"public"),define:Ei(e),resolve:{alias:tx(e),dedupe:["vue"]},optimizeDeps:{entries:[qe(e.clientRoot,"main.ts")],include:Tu([...ex,...t,...r]).filter(i=>!$u.includes(i)),exclude:$u},server:{fs:{allow:Tu([wi(e.clientRoot),wi(e.themeRoot),wi(e.userRoot),Qv(Me("katex/package.json",!0))])}}};return Zv&&(o.cacheDir=Ou(e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Me("vue/dist/vue.esm-browser.js",!0)}`),Jv(n,o)},async transformIndexHtml(n){return n=await Pu(e,n),{html:n,tags:[]}}}}function Ei(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function tx(e){let t=[{find:"~/",replacement:`${Q(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${Q(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:Q(qe(e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:Q(qe(e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${Q(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${Q(qe(e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${Q(qe(e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Me("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${Q(`${qe(r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${Q(qe(r.root))}/App.vue`}),t.push({find:r.name,replacement:`${Q(qe(r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:Q(qe(e.clientRoot,"./addons/index.ts"))}),t}c();import{existsSync as rx}from"node:fs";import{join as nx,resolve as ox}from"node:path";import{slash as ix,uniq as sx}from"@antfu/utils";function Iu({clientRoot:e,themeRoot:t,userRoot:r}){let n=ix(ox(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=[],f=[];return sx([t,r]).map(l=>nx(l,"setup",s)).forEach((l,d)=>{if(!rx(l))return;a.push(`import __n${d} from '${Q(l)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",f.push(`// ${l}`,p)}),o=o.replace("/* __imports__ */",a.join(`
48
48
  `)),o=o.replace("/* __injections__ */",f.join(`
49
- `)),o}return null}}}c();import{objectEntries as ax}from"@antfu/utils";function Mu(e){let t=ax(Ei(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}}}]}c();import mx from"unplugin-vue-router/vite";import ki from"fs-extra";import{resolve as gx}from"pathe";import hx from"gray-matter";import{isDate as Lu}from"@antfu/utils";import{convert as yx}from"html-to-text";import vx from"markdown-it";c();import{existsSync as lx,readFileSync as cx}from"node:fs";function ux(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 fx({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 px({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function dx(e,t){let r=ux(e);return{countData:r,wordCount:px(r),readingTime:fx(r,t.readTime)}}function Nu({route:e,options:t}){let r=e.components.get("default")||"";if(lx(r)){let n=cx(r,"utf-8"),{wordCount:o,readingTime:i}=dx(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))}}var Du=new vx({html:!0});function xx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Du.render(e);case"text":return yx(Du.render(e));default:return e}}function Vu(e){let{roots:t,config:r}=e;return mx({extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:gx(e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),n.fullPath==="/posts"?n.addToMeta({layout:"empty"}):n.fullPath.startsWith("/posts/")&&n.addToMeta({layout:"post"});let i=n.components.get("default")||"";if(i.endsWith(".md")){let s=ki.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=hx(s,{excerpt_separator:Gr}),l=a,d=e.config.siteConfig.lastUpdated;if(delete l.password,l.gallery_password&&(delete l.gallery_password,delete l.photos),l.date||(l.date=ki.statSync(i).mtime),d&&(l.updated||(l.updated=ki.statSync(i).ctime)),Lu(l.date)||(l.date=new Date(l.date)),Lu(l.updated)||(l.updated=new Date(l.updated)),l.from&&(Array.isArray(l.from)?l.from.forEach(y=>{e.redirects.push({from:y,to:n.fullPath})}):e.redirects.push({from:l.from,to:n.fullPath})),n.addToMeta({frontmatter:l,excerpt:f?xx(f,l.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let y=n.meta.frontmatter.tags;typeof y=="string"&&(n.meta.frontmatter.tags=[y])}r.siteConfig.statistics.enable&&Nu({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:f,content:u,path:i};r.extendMd?.(p)}return r.router?.extendRoute?.(n)}})}c();var cn=Z(he(),1);import{join as tr,relative as Lx,resolve as Dx}from"pathe";import rr from"fs-extra";import{defu as Vx}from"defu";import jx from"pascalcase";import ef from"consola";c();var Ju=Z(si(),1);import{LRUCache as Ix}from"lru-cache";import Mx from"pathe";c();import Hu from"pathe";import bx from"fs-extra";c();c();import Ai from"node:process";var Pi=new Set;function ju(e){if(Pi.size===0){let r=typeof Ai=="object"&&Ai.env.VITE_EXTRA_EXTENSIONS||Ai.env?.VITE_EXTRA_EXTENSIONS||"";`3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip${r&&typeof r=="string"?`,${r}`:""}`.split(",").forEach(n=>Pi.add(n))}let t=e.split(".").pop();return t==null||!Pi.has(t.toLowerCase())}c();import Oi from"node:path";import _x from"fs-extra";import{slash as Cx}from"@antfu/utils";function Ti(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 f=a.match(i);f&&(a=a.slice(0,-f[0].length));let u=a[0]==="@";try{let l=u?Oi.join(e,a.slice(a[1]==="/"?2:1)):Oi.join(Oi.dirname(r),a),d=_x.readFileSync(l,"utf-8");if(f){let[,p,y]=f;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,y?Number.parseInt(y,10):void 0).join(`
49
+ `)),o}return null}}}c();import{objectEntries as ax}from"@antfu/utils";function Mu(e){let t=ax(Ei(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}}}]}c();import mx from"unplugin-vue-router/vite";import ki from"fs-extra";import{resolve as gx}from"pathe";import hx from"gray-matter";import{isDate as Lu}from"@antfu/utils";import{convert as yx}from"html-to-text";import vx from"markdown-it";c();import{existsSync as lx,readFileSync as cx}from"node:fs";function ux(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 fx({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 px({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function dx(e,t){let r=ux(e);return{countData:r,wordCount:px(r),readingTime:fx(r,t.readTime)}}function Nu({route:e,options:t}){let r=e.components.get("default")||"";if(lx(r)){let n=cx(r,"utf-8"),{wordCount:o,readingTime:i}=dx(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))}}var Du=new vx({html:!0});function xx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Du.render(e);case"text":return yx(Du.render(e));default:return e}}function Vu(e){let{roots:t,config:r}=e;return mx({extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:gx(e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),n.fullPath==="/posts"?n.addToMeta({layout:!1}):n.fullPath.startsWith("/posts/")&&n.children.length===0&&n.addToMeta({layout:"post"});let i=n.components.get("default")||"";if(i.endsWith(".md")){let s=ki.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=hx(s,{excerpt_separator:Gr}),l=a,d=e.config.siteConfig.lastUpdated;if(delete l.password,l.gallery_password&&(delete l.gallery_password,delete l.photos),l.date||(l.date=ki.statSync(i).mtime),d&&(l.updated||(l.updated=ki.statSync(i).ctime)),Lu(l.date)||(l.date=new Date(l.date)),Lu(l.updated)||(l.updated=new Date(l.updated)),l.from&&(Array.isArray(l.from)?l.from.forEach(y=>{e.redirects.push({from:y,to:n.fullPath})}):e.redirects.push({from:l.from,to:n.fullPath})),n.addToMeta({frontmatter:l,excerpt:f?xx(f,l.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let y=n.meta.frontmatter.tags;typeof y=="string"&&(n.meta.frontmatter.tags=[y])}r.siteConfig.statistics.enable&&Nu({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:f,content:u,path:i};r.extendMd?.(p)}return r.router?.extendRoute?.(n)}})}c();var cn=Z(he(),1);import{join as tr,relative as Lx,resolve as Dx}from"pathe";import rr from"fs-extra";import{defu as Vx}from"defu";import jx from"pascalcase";import ef from"consola";c();var Ju=Z(si(),1);import{LRUCache as Ix}from"lru-cache";import Mx from"pathe";c();import Hu from"pathe";import bx from"fs-extra";c();c();import Ai from"node:process";var Pi=new Set;function ju(e){if(Pi.size===0){let r=typeof Ai=="object"&&Ai.env.VITE_EXTRA_EXTENSIONS||Ai.env?.VITE_EXTRA_EXTENSIONS||"";`3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip${r&&typeof r=="string"?`,${r}`:""}`.split(",").forEach(n=>Pi.add(n))}let t=e.split(".").pop();return t==null||!Pi.has(t.toLowerCase())}c();import Oi from"node:path";import _x from"fs-extra";import{slash as Cx}from"@antfu/utils";function Ti(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 f=a.match(i);f&&(a=a.slice(0,-f[0].length));let u=a[0]==="@";try{let l=u?Oi.join(e,a.slice(a[1]==="/"?2:1)):Oi.join(Oi.dirname(r),a),d=_x.readFileSync(l,"utf-8");if(f){let[,p,y]=f;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,y?Number.parseInt(y,10):void 0).join(`
50
50
  `)}return n.push(Cx(l)),Ti(e,d,l,n)}catch{return s}})}var Sx=/<!--\s*@include:\s*(.*?)\s*-->/g;function qu(e){let t=e.userRoot;return(r,n)=>{let o=n,i=[],s=Hu.dirname(n);return r=Ti(t,r,o,i),r=r.replace(Sx,(a,f)=>{try{let u=Hu.join(s,f),l=bx.readFileSync(u,"utf-8");return i.push(u),l}catch{return a}}),{code:r,includes:i}}}c();import er from"pathe";import{slash as Rx}from"@antfu/utils";import wx from"fs-extra";function Bu(e){let t=e.userRoot,{ignoreDeadLinks:r}=e.config,n=e.config.vite?.publicDir||"public";return(o,i)=>{let{links:s=[]}=e.env,a=i,f=i,u=[],l=p=>{u.push({url:p,file:er.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(kt,"").startsWith("//localhost"):r.some(y=>typeof y=="string"?p===y:y instanceof RegExp?y.test(p):typeof y=="function"?y(p):!1):!1}if(s){let p=er.dirname(f);for(let y of s){let{pathname:x}=new URL(y,"http://a.com");if(!ju(x))continue;y=y.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),y.endsWith("/")&&(y+="index");let C=decodeURIComponent(Rx(y.startsWith("/")?y.slice(1):er.relative(t,er.resolve(p,y)))).replace(/\/index$/,"");!e.pages.includes(C)&&!wx.existsSync(er.resolve(p,n,`${C}.html`))&&!d(y)&&l(y)}}return u}}c();function Ex(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
51
51
  const data = ${Hc(e)}
52
52
  const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ6HC4A7Acjs = require('../../chunk-Q6HC4A7A.cjs');require('../../chunk-ZAC5357O.cjs');exports.cli = _chunkQ6HC4A7Acjs.T; exports.run = _chunkQ6HC4A7Acjs.U;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3KSHN4HOcjs = require('../../chunk-3KSHN4HO.cjs');require('../../chunk-ZAC5357O.cjs');exports.cli = _chunk3KSHN4HOcjs.T; exports.run = _chunk3KSHN4HOcjs.U;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{T as a,U as b}from"../../chunk-SDQ4EP7Z.mjs";import"../../chunk-5OREE7SY.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-MGFFJVVM.mjs";import"../../chunk-5OREE7SY.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ6HC4A7Acjs = require('../chunk-Q6HC4A7A.cjs');require('../chunk-ZAC5357O.cjs');exports.ALL_ROUTE = _chunkQ6HC4A7Acjs.f; exports.EXCERPT_SEPARATOR = _chunkQ6HC4A7Acjs.c; exports.EXTERNAL_URL_RE = _chunkQ6HC4A7Acjs.d; exports.PATHNAME_PROTOCOL_RE = _chunkQ6HC4A7Acjs.e; exports.ViteValaxyPlugins = _chunkQ6HC4A7Acjs.N; exports.build = _chunkQ6HC4A7Acjs.O; exports.cli = _chunkQ6HC4A7Acjs.T; exports.createServer = _chunkQ6HC4A7Acjs.S; exports.createValaxyLoader = _chunkQ6HC4A7Acjs.M; exports.customElements = _chunkQ6HC4A7Acjs.g; exports.defaultSiteConfig = _chunkQ6HC4A7Acjs.p; exports.defaultValaxyConfig = _chunkQ6HC4A7Acjs.t; exports.defineAddon = _chunkQ6HC4A7Acjs.A; exports.defineConfig = _chunkQ6HC4A7Acjs.v; exports.defineSiteConfig = _chunkQ6HC4A7Acjs.q; exports.defineTheme = _chunkQ6HC4A7Acjs.F; exports.defineUnoSetup = _chunkQ6HC4A7Acjs.G; exports.defineValaxyAddon = _chunkQ6HC4A7Acjs.z; exports.defineValaxyConfig = _chunkQ6HC4A7Acjs.u; exports.defineValaxyTheme = _chunkQ6HC4A7Acjs.E; exports.ensurePrefix = _chunkQ6HC4A7Acjs.j; exports.generateClientRedirects = _chunkQ6HC4A7Acjs.R; exports.getGitTimestamp = _chunkQ6HC4A7Acjs.a; exports.getIndexHtml = _chunkQ6HC4A7Acjs.L; exports.isExternal = _chunkQ6HC4A7Acjs.h; exports.isPath = _chunkQ6HC4A7Acjs.l; exports.loadConfig = _chunkQ6HC4A7Acjs.n; exports.loadConfigFromFile = _chunkQ6HC4A7Acjs.o; exports.mergeValaxyConfig = _chunkQ6HC4A7Acjs.x; exports.mergeViteConfigs = _chunkQ6HC4A7Acjs.K; exports.postProcessForSSG = _chunkQ6HC4A7Acjs.Q; exports.processValaxyOptions = _chunkQ6HC4A7Acjs.H; exports.resolveAddonsConfig = _chunkQ6HC4A7Acjs.B; exports.resolveImportPath = _chunkQ6HC4A7Acjs.b; exports.resolveOptions = _chunkQ6HC4A7Acjs.I; exports.resolveSiteConfig = _chunkQ6HC4A7Acjs.s; exports.resolveSiteConfigFromRoot = _chunkQ6HC4A7Acjs.r; exports.resolveThemeConfigFromRoot = _chunkQ6HC4A7Acjs.C; exports.resolveThemeValaxyConfig = _chunkQ6HC4A7Acjs.J; exports.resolveUserThemeConfig = _chunkQ6HC4A7Acjs.D; exports.resolveValaxyConfig = _chunkQ6HC4A7Acjs.y; exports.resolveValaxyConfigFromRoot = _chunkQ6HC4A7Acjs.w; exports.run = _chunkQ6HC4A7Acjs.U; exports.slash = _chunkQ6HC4A7Acjs.i; exports.ssgBuild = _chunkQ6HC4A7Acjs.P; exports.toAtFS = _chunkQ6HC4A7Acjs.k; exports.transformObject = _chunkQ6HC4A7Acjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3KSHN4HOcjs = require('../chunk-3KSHN4HO.cjs');require('../chunk-ZAC5357O.cjs');exports.ALL_ROUTE = _chunk3KSHN4HOcjs.f; exports.EXCERPT_SEPARATOR = _chunk3KSHN4HOcjs.c; exports.EXTERNAL_URL_RE = _chunk3KSHN4HOcjs.d; exports.PATHNAME_PROTOCOL_RE = _chunk3KSHN4HOcjs.e; exports.ViteValaxyPlugins = _chunk3KSHN4HOcjs.N; exports.build = _chunk3KSHN4HOcjs.O; exports.cli = _chunk3KSHN4HOcjs.T; exports.createServer = _chunk3KSHN4HOcjs.S; exports.createValaxyLoader = _chunk3KSHN4HOcjs.M; exports.customElements = _chunk3KSHN4HOcjs.g; exports.defaultSiteConfig = _chunk3KSHN4HOcjs.p; exports.defaultValaxyConfig = _chunk3KSHN4HOcjs.t; exports.defineAddon = _chunk3KSHN4HOcjs.A; exports.defineConfig = _chunk3KSHN4HOcjs.v; exports.defineSiteConfig = _chunk3KSHN4HOcjs.q; exports.defineTheme = _chunk3KSHN4HOcjs.F; exports.defineUnoSetup = _chunk3KSHN4HOcjs.G; exports.defineValaxyAddon = _chunk3KSHN4HOcjs.z; exports.defineValaxyConfig = _chunk3KSHN4HOcjs.u; exports.defineValaxyTheme = _chunk3KSHN4HOcjs.E; exports.ensurePrefix = _chunk3KSHN4HOcjs.j; exports.generateClientRedirects = _chunk3KSHN4HOcjs.R; exports.getGitTimestamp = _chunk3KSHN4HOcjs.a; exports.getIndexHtml = _chunk3KSHN4HOcjs.L; exports.isExternal = _chunk3KSHN4HOcjs.h; exports.isPath = _chunk3KSHN4HOcjs.l; exports.loadConfig = _chunk3KSHN4HOcjs.n; exports.loadConfigFromFile = _chunk3KSHN4HOcjs.o; exports.mergeValaxyConfig = _chunk3KSHN4HOcjs.x; exports.mergeViteConfigs = _chunk3KSHN4HOcjs.K; exports.postProcessForSSG = _chunk3KSHN4HOcjs.Q; exports.processValaxyOptions = _chunk3KSHN4HOcjs.H; exports.resolveAddonsConfig = _chunk3KSHN4HOcjs.B; exports.resolveImportPath = _chunk3KSHN4HOcjs.b; exports.resolveOptions = _chunk3KSHN4HOcjs.I; exports.resolveSiteConfig = _chunk3KSHN4HOcjs.s; exports.resolveSiteConfigFromRoot = _chunk3KSHN4HOcjs.r; exports.resolveThemeConfigFromRoot = _chunk3KSHN4HOcjs.C; exports.resolveThemeValaxyConfig = _chunk3KSHN4HOcjs.J; exports.resolveUserThemeConfig = _chunk3KSHN4HOcjs.D; exports.resolveValaxyConfig = _chunk3KSHN4HOcjs.y; exports.resolveValaxyConfigFromRoot = _chunk3KSHN4HOcjs.w; exports.run = _chunk3KSHN4HOcjs.U; exports.slash = _chunk3KSHN4HOcjs.i; exports.ssgBuild = _chunk3KSHN4HOcjs.P; exports.toAtFS = _chunk3KSHN4HOcjs.k; exports.transformObject = _chunk3KSHN4HOcjs.m;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-SDQ4EP7Z.mjs";import"../chunk-5OREE7SY.mjs";export{f as ALL_ROUTE,c as EXCERPT_SEPARATOR,d as EXTERNAL_URL_RE,e as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,g as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,b as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
2
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-MGFFJVVM.mjs";import"../chunk-5OREE7SY.mjs";export{f as ALL_ROUTE,c as EXCERPT_SEPARATOR,d as EXTERNAL_URL_RE,e as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,g as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,b as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.18.2",
4
+ "version": "0.18.3",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -125,7 +125,7 @@
125
125
  "vue-i18n": "^9.9.1",
126
126
  "vue-router": "^4.3.0",
127
127
  "yargs": "^17.7.2",
128
- "@valaxyjs/devtools": "0.18.2"
128
+ "@valaxyjs/devtools": "0.18.3"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@mdit-vue/plugin-component": "^2.0.0",