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

12 lines
72 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.C9keCW8N.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]);
import{d as m,o as i,c as f,r as p,n as F,a as W,t as A,b as $,w as v,e as b,T as Ae,_ as S,u as Me,i as Ct,f as Nt,g as Ee,h as T,j as u,k as c,p as j,l as R,m as oe,q as we,s as N,v as J,x as me,y as ee,z as ie,A as Be,B as At,C as Mt,D as se,F as D,E as z,G as Ye,H as ge,I as L,J as K,K as Xe,L as be,M as Z,N as le,O as Et,P as ke,Q as Ve,R as Bt,S as Qe,U as ye,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 Te}from"./framework.C4_mTacX.js";const Kt=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(i(),f("span",{class:F(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[W(A(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Wt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(i(),$(Ae,{name:"fade"},{default:v(()=>[e.show?(i(),f("div",qt)):b("",!0)]),_:1}))}}),Jt=S(Wt,[["__scopeId","data-v-2cfdfdcf"]]),O=Me;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 Ie(t){return/^\//.test(t)?t:`/${t}`}function Oe(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(Ct(t)||t.startsWith("#")||!o.startsWith("http")||!Nt(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 Ee(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(/\/$/,"")+Ie(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,r,d,h;return i(),f("div",Zt,[u("p",en,A(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",tn,A(((l=c(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),nn,u("blockquote",on,A(((r=c(e).notFound)==null?void 0:r.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(Ee)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},A(((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 ve(t);if(t==null)return[];e=Ie(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Ie(o))),s=n?t[n]:[];return Array.isArray(s)?ve(s):ve(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 Ce(t,e){return Array.isArray(e)?e.some(n=>Ce(t,n)):oe(t,e.link)?!0:e.items?Ce(t,e.items):!1}function ve(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=ve(s.items,o)),s})}function Y(){const{frontmatter:t,page:e,theme:n}=O(),s=we("(min-width: 960px)"),o=N(!1),a=T(()=>{const M=n.value.sidebar,y=e.value.relativePath;return M?ot(M,y):[]}),l=N(a.value);J(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const r=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-0b0ac726"),t=t(),R(),t),hi={class:"stats-bar-content"},_i={class:"stats-bar"},mi={class:"stats-info"},gi=["href"],bi={class:"section-tab"},ki={class:"text"},yi={class:"number"},$i=vi(()=>u("div",{class:"starmap"},[u("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px"})],-1)),Si=m({__name:"StatsBar",setup(t){const{Layout:e}=vt;let n=null;const s={total:{name:"total",color:"#00a6ff",value:N(2005),link:xe},online:{name:"online",color:"#00ff00",value:N(1145),link:xe},stars:{name:"stars",color:"#ffcc00",value:N(1234),link:`${fe}/stargazers`},forks:{name:"forks",color:"#ff6600",value:N(9420),link:`${fe}/forks`},issues:{name:"issues",color:"#ff0000",value:N(1145),link:`${fe}/issues`},prs:{name:"prs",color:"#ff00ff",value:N(6543),link:`${fe}/pulls`},plugins:{name:"plugins",color:"#ff003e",value:N(1763),link:"./store/plugin"},resources:{name:"resources",color:"#ff00ff",value:N(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 ee(()=>{const a=setInterval(o,1e4);o(),pe(),ie(()=>{clearInterval(a)})}),pi(()=>{pe()}),(a,l)=>(i(),$(c(e),null,{"home-features-before":v(()=>[u("div",hi,[u("div",{class:"button",onClick:l[0]||(l[0]=(...r)=>c(pe)&&c(pe)(...r))},"Update"),u("div",_i,[u("div",mi,[(i(!0),f(D,null,z(Object.values(s),r=>(i(),f("div",{key:r.name,class:"section"},[u("a",{href:r.link,target:"_blank"},[u("div",bi,[u("span",{class:"dot",style:ke({backgroundColor:r.color})},null,4),u("span",ki,A(c(ne)(r.name)),1)]),u("div",yi,A(r.value.value),1)],8,gi)]))),128))]),$i])])]),_:1}))}}),Je=S(Si,[["__scopeId","data-v-0b0ac726"]]);var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(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()})(Pi,function(){return function(){var n={686:function(a,l,r){r.d(l,{default:function(){return It}});var d=r(279),h=r.n(d),g=r(370),_=r.n(g),k=r(817),I=r.n(k);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(w){var P=I()(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=I()(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=I()(w),V("copy")),C},te=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 te(x,{container:E});if(H)return C==="cut"?y(H):te(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 ze(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&&ze(B.prototype,w),P&&ze(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&&Se(B,w)}function Se(B,w){return Se=Object.setPrototypeOf||function(C,E){return C.__proto__=E,C},Se(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 Pe(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