1
0
forked from bot/app
LiteyukiBot/assets/chunks/theme.Cms3Mxdp.js

7 lines
56 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.BmvB34tM.js","assets/chunks/framework.BcfwU5BI.js"])))=>i.map(i=>d[i]);
import{d as _,o as a,c,r as l,n as N,a as F,t as w,b as k,w as p,e as h,T as me,_ as b,u as ke,i as tt,f as st,g as be,h as y,j as d,k as r,p as C,l as H,m as K,q as ve,s as V,v as U,x as oe,y as q,z as X,A as $e,B as nt,C as ot,D as W,F as M,E,G as He,H as ae,I as m,J as D,K as Ee,L as re,M as R,N as Q,O as at,P as ge,Q as pe,R as rt,S as De,U as ie,V as it,W as lt,X as ct,Y as Oe,Z as Fe,$ as ut,a0 as dt,a1 as vt,a2 as pt,a3 as ft,a4 as ht,a5 as _t}from"./framework.BcfwU5BI.js";const mt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[F(w(e.text),1)])],2))}}),kt={key:0,class:"VPBackdrop"},bt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),k(me,{name:"fade"},{default:p(()=>[e.show?(a(),c("div",kt)):h("",!0)]),_:1}))}}),$t=b(bt,[["__scopeId","data-v-2cfdfdcf"]]),P=ke;function gt(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function fe(s){return/^\//.test(s)?s:`/${s}`}function ye(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(tt(s)||s.startsWith("#")||!o.startsWith("http")||!st(e))return s;const{site:i}=P(),u=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${n}`);return be(u)}function Z({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:n,theme:o,hash:i}=P(),u=y(()=>{var f,g;return{label:(f=e.value.locales[t.value])==null?void 0:f.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([f,g])=>u.value.label===g.label?[]:{text:g.label,link:yt(g.link||(f==="root"?"/":`/${f}/`),o.value.i18nRouting!==!1&&s,n.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function yt(s,e,t,n){return e?s.replace(/\/$/,"")+fe(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const Pt=s=>(C("data-v-868b40d9"),s=s(),H(),s),Lt={class:"NotFound"},Vt={class:"code"},St={class:"title"},wt=Pt(()=>d("div",{class:"divider"},null,-1)),It={class:"quote"},Tt={class:"action"},Nt=["href","aria-label"],Mt=_({__name:"NotFound",setup(s){const{theme:e}=P(),{currentLang:t}=Z();return(n,o)=>{var i,u,v,f,g;return a(),c("div",Lt,[d("p",Vt,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),d("h1",St,w(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),wt,d("blockquote",It,w(((v=r(e).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",Tt,[d("a",{class:"link",href:r(be)(r(t).link),"aria-label":((f=r(e).notFound)==null?void 0:f.linkLabel)??"go to home"},w(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,Nt)])])}}}),At=b(Mt,[["__scopeId","data-v-868b40d9"]]);function Ue(s,e){if(Array.isArray(s))return te(s);if(s==null)return[];e=fe(e);const t=Object.keys(s).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>e.startsWith(fe(o))),n=t?s[t]:[];return Array.isArray(n)?te(n):te(n.items,n.base)}function Bt(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function Ct(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function he(s,e){return Array.isArray(e)?e.some(t=>he(s,t)):K(s,e.link)?!0:e.items?he(s,e.items):!1}function te(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=te(n.items,o)),n})}function j(){const{frontmatter:s,page:e,theme:t}=P(),n=ve("(min-width: 960px)"),o=V(!1),i=y(()=>{const B=t.value.sidebar,I=e.value.relativePath;return B?Ue(B,I):[]}),u=V(i.value);U(i,(B,I)=>{JSON.stringify(B)!==JSON.stringify(I)&&(u.value=i.value)});const v=y(()=>s.value.sidebar!==!1&&u.value.length>0&&s.value.layout!=="hom
* vue-router v4.4.3
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var Me;(function(s){s.pop="pop",s.push="push"})(Me||(Me={}));var Ae;(function(s){s.back="back",s.forward="forward",s.unknown=""})(Ae||(Ae={}));var Be;(function(s){s[s.aborted=4]="aborted",s[s.cancelled=8]="cancelled",s[s.duplicated=16]="duplicated"})(Be||(Be={}));const Dr=Symbol("");function Or(s,e,t){const n=()=>{s[e].delete(t)};X(n),ht(n),_t(()=>{s[e].add(t)}),s[e].add(t)}function Fr(s){const e=Q(Dr,{}).value;e&&Or(e,"updateGuards",s)}const Ur=s=>(C("data-v-0b0ac726"),s=s(),H(),s),jr={class:"stats-bar-content"},Gr={class:"stats-bar"},zr={class:"stats-info"},Rr=["href"],qr={class:"section-tab"},Kr={class:"text"},Wr={class:"number"},Jr=Ur(()=>d("div",{class:"starmap"},[d("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px"})],-1)),Yr=_({__name:"StatsBar",setup(s){const{Layout:e}=Qe;let t=null;const n={total:{name:"total",color:"#00a6ff",value:V(2005),link:Ne},online:{name:"online",color:"#00ff00",value:V(1145),link:Ne},stars:{name:"stars",color:"#ffcc00",value:V(1234),link:`${x}/stargazers`},forks:{name:"forks",color:"#ff6600",value:V(9420),link:`${x}/forks`},issues:{name:"issues",color:"#ff0000",value:V(1145),link:`${x}/issues`},prs:{name:"prs",color:"#ff00ff",value:V(6543),link:`${x}/pulls`},plugins:{name:"plugins",color:"#ff003e",value:V(1763),link:"./store/plugin"},resources:{name:"resources",color:"#ff00ff",value:V(6789),link:"./store/resource"}};async function o(){[n.online.value.value,n.total.value.value,n.plugins.value.value,n.resources.value.value,t]=await Promise.all([Y.getOnline(),Y.getTotal(),Y.getPluginNum(),Y.getResourceNum(),Y.getGithubStats()]),n.stars.value.value=(t==null?void 0:t.stars)||0,n.forks.value.value=(t==null?void 0:t.forks)||0,n.issues.value.value=(t==null?void 0:t.issues)||0,n.prs.value.value=(t==null?void 0:t.prs)||0}return q(()=>{const i=setInterval(o,1e4);o(),ee(),X(()=>{clearInterval(i)})}),Fr(()=>{ee()}),(i,u)=>(a(),k(r(e),null,{"home-features-before":p(()=>[d("div",jr,[d("div",{class:"button",onClick:u[0]||(u[0]=(...v)=>r(ee)&&r(ee)(...v))},"Update"),d("div",Gr,[d("div",zr,[(a(!0),c(M,null,E(Object.values(n),v=>(a(),c("div",{key:v.name,class:"section"},[d("a",{href:v.link,target:"_blank"},[d("div",qr,[d("span",{class:"dot",style:ge({backgroundColor:v.color})},null,4),d("span",Kr,w(r(Er)(v.name)),1)]),d("div",Wr,w(v.value.value),1)],8,Rr)]))),128))]),Jr])])]),_:1}))}}),Ce=b(Yr,[["__scopeId","data-v-0b0ac726"]]),Qr={extends:Qe,enhanceApp({app:s}){s.component("StatsBar",Ce)},Layout:Ce};export{Qr as R,na as c,P as u};