mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-25 13:35:03 +08:00
12 lines
72 KiB
JavaScript
12 lines
72 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.p_T2NDiL.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]);
|
||
|
import{d as m,o as r,c as f,r as p,n as F,a as W,t as I,b as $,w as v,e as b,T as Ce,_ as S,u as Ae,i as Nt,f as Ct,g as Me,h as T,j as u,k as c,p as j,l as R,m as oe,q as Le,s as A,v as J,x as _e,y as te,z as ie,A as Ee,B as At,C as Mt,D as se,F as D,E as z,G as Ye,H as me,I as L,J as K,K as Xe,L as ge,M as ee,N as le,O as Et,P as be,Q as we,R as Bt,S as Qe,U as ke,V as Ot,W as Ht,X as Dt,Y as Ze,Z as et,$ as Ft,a0 as jt,a1 as Rt,a2 as Ut,a3 as zt,a4 as Gt,a5 as xt,a6 as tt,a7 as nt,a8 as Ve}from"./framework.C4_mTacX.js";const Kt=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),f("span",{class:F(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[W(I(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Wt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),$(Ce,{name:"fade"},{default:v(()=>[e.show?(r(),f("div",qt)):b("",!0)]),_:1}))}}),Jt=S(Wt,[["__scopeId","data-v-2cfdfdcf"]]),O=Ae;function Yt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Te(t){return/^\//.test(t)?t:`/${t}`}function Be(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(Nt(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Me(l)}function ce({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),l=T(()=>{var d,h;return{label:(d=e.value.locales[n.value])==null?void 0:d.label,link:((h=e.value.locales[n.value])==null?void 0:h.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>l.value.label===h.label?[]:{text:h.label,link:Xt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:l}}function Xt(t,e,n,s){return e?t.replace(/\/$/,"")+Te(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Qt=t=>(j("data-v-868b40d9"),t=t(),R(),t),Zt={class:"NotFound"},en={class:"code"},tn={class:"title"},nn=Qt(()=>u("div",{class:"divider"},null,-1)),on={class:"quote"},sn={class:"action"},an=["href","aria-label"],rn=m({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ce();return(s,o)=>{var a,l,i,d,h;return r(),f("div",Zt,[u("p",en,I(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",tn,I(((l=c(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),nn,u("blockquote",on,I(((i=c(e).notFound)==null?void 0:i.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",sn,[u("a",{class:"link",href:c(Me)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},I(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,an)])])}}}),ln=S(rn,[["__scopeId","data-v-868b40d9"]]);function ot(t,e){if(Array.isArray(t))return pe(t);if(t==null)return[];e=Te(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Te(o))),s=n?t[n]:[];return Array.isArray(s)?pe(s):pe(s.items,s.base)}function cn(t){const e=[];let n=0;for(const s in t){const o=t[s];if(o.items){n=e.push(o);continue}e[n]||e.push({items:[]}),e[n].items.push(o)}return e}function un(t){const e=[];function n(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(t),e}function Ie(t,e){return Array.isArray(e)?e.some(n=>Ie(t,n)):oe(t,e.link)?!0:e.items?Ie(t,e.items):!1}function pe(t,e){return[...t].map(n=>{const s={...n},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=pe(s.items,o)),s})}function Y(){const{frontmatter:t,page:e,theme:n}=O(),s=Le("(min-width: 960px)"),o=A(!1),a=T(()=>{const M=n.value.sidebar,y=e.value.relativePath;return M?ot(M,y):[]}),l=A(a.value);J(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const i=T(()=>t.value.sidebar
|
||
|
* vue-router v4.4.3
|
||
|
* (c) 2024 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/var Ke;(function(t){t.pop="pop",t.push="push"})(Ke||(Ke={}));var qe;(function(t){t.back="back",t.forward="forward",t.unknown=""})(qe||(qe={}));var We;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(We||(We={}));const di=Symbol("");function fi(t,e,n){const s=()=>{t[e].delete(n)};ie(s),Gt(s),xt(()=>{t[e].add(n)}),t[e].add(n)}function pi(t){const e=le(di,{}).value;e&&fi(e,"updateGuards",t)}const vi=t=>(j("data-v-eec78961"),t=t(),R(),t),hi={class:"stats-bar-content"},_i={class:"stats-bar"},mi={class:"stats-info"},gi={class:"stats-title"},bi={class:"sections"},ki=["href"],yi={class:"section-tab"},$i={class:"text"},Si={class:"number"},Pi=vi(()=>u("div",{class:"starmap"},[u("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px"})],-1)),Li=m({__name:"StatsBar",setup(t){const{Layout:e}=vt;let n=null;const s={total:{name:"total",color:"#00a6ff",value:A(2005),link:Ge},online:{name:"online",color:"#00ff00",value:A(1145),link:Ge},stars:{name:"stars",color:"#ffcc00",value:A(1234),link:`${fe}/stargazers`},forks:{name:"forks",color:"#ff6600",value:A(9420),link:`${fe}/forks`},issues:{name:"issues",color:"#ff0000",value:A(1145),link:`${fe}/issues`},prs:{name:"prs",color:"#ff00ff",value:A(6543),link:`${fe}/pulls`},plugins:{name:"plugins",color:"#ff003e",value:A(1763),link:"./store/plugin"},resources:{name:"resources",color:"#ff00ff",value:A(6789),link:"./store/resource"}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,n]=await Promise.all([re.getOnline(),re.getTotal(),re.getPluginNum(),re.getResourceNum(),re.getGithubStats()]),s.stars.value.value=(n==null?void 0:n.stars)||0,s.forks.value.value=(n==null?void 0:n.forks)||0,s.issues.value.value=(n==null?void 0:n.issues)||0,s.prs.value.value=(n==null?void 0:n.prs)||0}return te(()=>{const a=setInterval(o,1e4);o(),xe(),ie(()=>{clearInterval(a)})}),pi(()=>{xe()}),(a,l)=>(r(),$(c(e),null,{"home-features-before":v(()=>[u("div",hi,[u("div",_i,[u("div",mi,[u("div",gi,I(c(Z)("stats")),1),u("div",bi,[(r(!0),f(D,null,z(Object.values(s),i=>(r(),f("div",{key:i.name,class:"section"},[u("a",{href:i.link,target:"_blank"},[u("div",yi,[u("span",{class:"dot",style:be({backgroundColor:i.color})},null,4),u("span",$i,I(c(Z)(i.name)),1)]),u("div",Si,I(i.value.value),1)],8,ki)]))),128))])]),Pi])])]),_:1}))}}),Je=S(Li,[["__scopeId","data-v-eec78961"]]);var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gt={exports:{}};/*!
|
||
|
* clipboard.js v2.0.11
|
||
|
* https://clipboardjs.com/
|
||
|
*
|
||
|
* Licensed MIT © Zeno Rocha
|
||
|
*/(function(t,e){(function(s,o){t.exports=o()})(wi,function(){return function(){var n={686:function(a,l,i){i.d(l,{default:function(){return It}});var d=i(279),h=i.n(d),g=i(370),_=i.n(g),k=i(817),N=i.n(k);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(w){var P=N()(w);return V("cut"),P},y=M;function U(B){var w=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[w?"right":"left"]="-9999px";var C=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(C,"px"),P.setAttribute("readonly",""),P.value=B,P}var G=function(w,P){var C=U(w);P.container.appendChild(C);var E=N()(C);return V("copy"),C.remove(),E},X=function(w){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},C="";return typeof w=="string"?C=G(w,P):w instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(w==null?void 0:w.type)?C=G(w.value,P):(C=N()(w),V("copy")),C},ne=X;function Q(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q=function(P){return typeof P}:Q=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Q(B)}var bt=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=w.action,C=P===void 0?"copy":P,E=w.container,H=w.target,x=w.text;if(C!=="copy"&&C!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Q(H)==="object"&&H.nodeType===1){if(C==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(C==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(x)return ne(x,{container:E});if(H)return C==="cut"?y(H):ne(H,{container:E})},kt=bt;function ae(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(P){return typeof P}:ae=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ae(B)}function yt(B,w){if(!(B instanceof w))throw new TypeError("Cannot call a class as a function")}function Ue(B,w){for(var P=0;P<w.length;P++){var C=w[P];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(B,C.key,C)}}function $t(B,w,P){return w&&Ue(B.prototype,w),P&&Ue(B,P),B}function St(B,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(w&&w.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),w&&$e(B,w)}function $e(B,w){return $e=Object.setPrototypeOf||function(C,E){return C.__proto__=E,C},$e(B,w)}function Pt(B){var w=Vt();return function(){var C=ue(B),E;if(w){var H=ue(this).constructor;E=Reflect.construct(C,arguments,H)}else E=C.apply(this,arguments);return Lt(this,E)}}function Lt(B,w){return w&&(ae(w)==="object"||typeof w=="function")?w:wt(B)}function wt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function Vt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ue(B){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},ue(B)}function Se(B,w){var P="data-clipboard-".concat(B);if(w.hasAttribute(P))return w.getAttribute(P)}var Tt=function(B){St(P,B);var w=Pt(P);function P(C,E){var H;return yt(this,P),H=w.call(this),H.resolveOptions(E),H.listenClick(C),H}return $t(P,[{key:"resolveOptions",value:function(){var E=argume
|