app/assets/chunks/theme.Bq5BHSOG.js

19 lines
80 KiB
JavaScript
Raw Permalink Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.ZgG69GDE.js","assets/chunks/framework.BUxnStXl.js"])))=>i.map(i=>d[i]);
import{d as b,c as p,r as f,n as D,o as l,a as Z,t as C,b as w,w as v,T as Ae,e as k,_ as $,u as ve,i as wt,f as Pt,g as Ee,h as T,j as c,k as u,l as te,m as Pe,p as N,q as W,s as he,v as q,x as re,y as Be,z as Lt,A as Vt,F as x,B as R,C as ne,D as Xe,E as me,G as S,H as G,I as Qe,J as _e,K as Q,L as ie,M as Tt,N as ge,O as Le,P as Ze,Q as et,R as be,S as Nt,U as Ct,V as It,W as tt,X as nt,Y as Mt,Z as At,$ as Et,a0 as ot,a1 as Bt,a2 as Ht,a3 as Ot,a4 as Ve,a5 as Te,a6 as Ne}from"./framework.BUxnStXl.js";const xt=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(l(),p("span",{class:D(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[Z(C(e.text),1)])],2))}}),Dt={key:0,class:"VPBackdrop"},Ft=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(l(),w(Ae,{name:"fade"},{default:v(()=>[e.show?(l(),p("div",Dt)):k("",!0)]),_:1}))}}),Rt=$(Ft,[["__scopeId","data-v-399e5df4"]]),H=ve;function jt(o,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(o,e):(o(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ce(o){return o.startsWith("/")?o:`/${o}`}function He(o){const{pathname:e,search:t,hash:s,protocol:n}=new URL(o,"http://a.com");if(wt(o)||o.startsWith("#")||!n.startsWith("http")||!Pt(e))return o;const{site:a}=H(),i=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${s}`);return Ee(i)}function le({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:s,theme:n,hash:a}=H(),i=T(()=>{var d,h;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>i.value.label===h.label?[]:{text:h.label,link:zt(h.link||(d==="root"?"/":`/${d}/`),n.value.i18nRouting!==!1&&o,s.value.relativePath.slice(i.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:i}}function zt(o,e,t,s){return e?o.replace(/\/$/,"")+Ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):o}const Ut={class:"NotFound"},Gt={class:"code"},Kt={class:"title"},Wt={class:"quote"},qt={class:"action"},Jt=["href","aria-label"],Yt=b({__name:"NotFound",setup(o){const{theme:e}=H(),{currentLang:t}=le();return(s,n)=>{var a,i,r,d,h;return l(),p("div",Ut,[c("p",Gt,C(((a=u(e).notFound)==null?void 0:a.code)??"404"),1),c("h1",Kt,C(((i=u(e).notFound)==null?void 0:i.title)??"PAGE NOT FOUND"),1),n[0]||(n[0]=c("div",{class:"divider"},null,-1)),c("blockquote",Wt,C(((r=u(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),c("div",qt,[c("a",{class:"link",href:u(Ee)(u(t).link),"aria-label":((d=u(e).notFound)==null?void 0:d.linkLabel)??"go to home"},C(((h=u(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,Jt)])])}}}),Xt=$(Yt,[["__scopeId","data-v-12d2d4a1"]]);function st(o,e){if(Array.isArray(o))return de(o);if(o==null)return[];e=Ce(e);const t=Object.keys(o).sort((n,a)=>a.split("/").length-n.split("/").length).find(n=>e.startsWith(Ce(n))),s=t?o[t]:[];return Array.isArray(s)?de(s):de(s.items,s.base)}function Qt(o){const e=[];let t=0;for(const s in o){const n=o[s];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function Zt(o){const e=[];function t(s){for(const n of s)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(o),e}function Ie(o,e){return Array.isArray(e)?e.some(t=>Ie(o,t)):te(o,e.link)?!0:e.items?Ie(o,e.items):!1}function de(o,e){return[...o].map(t=>{const s={...t},n=s.base||e;return n&&s.link&&(s.link=n+s.link),s.items&&(s.items=de(s.items,n)),s})}function J(){const{frontmatter:o,page:e,theme:t}=H(),s=Pe("(min-width: 960px)"),n=N(!1),a=T(()=>{const A=t.value.sidebar,y=e.value.relativePath;return A?st(A,y):[]}),i=N(a.value);W(a,(A,y)=>{JSON.stringify(A)!==JSON.stringify(y)&&(i.value=a.value)});const r=T(()=>o.value.sidebar!==!1&&i.value.length>0&&o.value.layout!=="home"),d=T((
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var We;(function(o){o.pop="pop",o.push="push"})(We||(We={}));var qe;(function(o){o.back="back",o.forward="forward",o.unknown=""})(qe||(qe={}));var Je;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Je||(Je={}));const Ar=Symbol("");function Er(o,e,t){const s=()=>{o[e].delete(t)};re(s),Ht(s),Ot(()=>{o[e].add(t)}),o[e].add(t)}function Br(o){const e=ie(Ar,{}).value;e&&Er(e,"updateGuards",o)}const Hr={class:"stats-bar-content"},Or={class:"stats-bar"},xr={class:"stats-info"},Dr={class:"stats-title"},Fr={class:"sections"},Rr=["href"],jr={class:"section-tab"},zr={class:"text"},Ur={class:"number"},Gr=b({__name:"StatsBar",setup(o){const{Layout:e}=ct;let t=null;const s={total:{name:"total",color:"#00a6ff",value:N(-1),link:Ke},online:{name:"online",color:"#7eff7e",value:N(-1),link:Ke},stars:{name:"stars",color:"#ffcc00",value:N(-1),link:`${se}/stargazers`},forks:{name:"forks",color:"#ff6600",value:N(-1),link:`${se}/forks`},issues:{name:"issues",color:"#ff0000",value:N(-1),link:`${se}/issues`},prs:{name:"prs",color:"#f15df1",value:N(-1),link:`${se}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:N(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:N(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:N(-1),link:se}};async function n(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,t]=await Promise.all([oe.getOnline(),oe.getTotal(),oe.getPluginNum(),oe.getResourceNum(),oe.getVisitCount(),oe.getGithubStats()]),s.stars.value.value=(t==null?void 0:t.stars)||0,s.forks.value.value=(t==null?void 0:t.forks)||0,s.issues.value.value=(t==null?void 0:t.issues)||0,s.prs.value.value=(t==null?void 0:t.prs)||0}function a(i){return i.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return q(()=>{const i=setInterval(n,1e4);n(),Nr(),re(()=>{clearInterval(i)})}),Br(()=>{Mr()}),console.log(` _ _ _ _ _ ____ _
| | (_) | | | (_) _ \\ | |
| | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_
| | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __|
| |____| | || __/ |_| | |_| | <| | |_) | (_) | |_
|______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__|
__/ |
|___/ `),console.log(j("easterEgg")),(i,r)=>(l(),w(u(e),null,{"home-features-before":v(()=>[c("div",Hr,[c("div",Or,[c("div",xr,[c("div",Dr,C(u(j)("stats")),1),c("div",Fr,[(l(!0),p(x,null,R(Object.values(s),d=>(l(),p("div",{key:d.name,class:"section"},[c("a",{href:d.link,target:"_blank"},[c("div",jr,[c("span",{class:"dot",style:ge({backgroundColor:d.color})},null,4),c("span",zr,C(u(j)(d.name)),1)]),c("div",Ur,C(a(d.value)),1)],8,Rr)]))),128))])]),r[0]||(r[0]=c("div",{class:"starmap"},[c("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1))])])]),_:1}))}}),Ye=$(Gr,[["__scopeId","data-v-2391887b"]]);var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var pt={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(o,e){(function(s,n){o.exports=n()})(Kr,function(){return function(){var t={686:function(a,i,r){r.d(i,{default:function(){return St}});var d=r(279),h=r.n(d),_=r(370),m=r.n(_),g=r(817),I=r.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var A=function(L){var P=I()(L);return V("cut"),P},y=A;function F(B){var L=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[L?"right":"left"]="-9999px";var M=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(M,"px"),P.setAttribute("readonly",""),P.value=B,P}var z=function(L,P){var M=F(L);P.container.appendChild(M);var E=I()(M);return V("copy"),M.remove(),E},Y=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},M="";return typeof L=="string"?M=z(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?M=z(L.value,P):(M=I()(L),V("copy")),M},ee=Y;function X(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X=function(P){return typeof P}:X=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},X(B)}var ft=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,M=P===void 0?"copy":P,E=L.container,O=L.target,U=L.text;if(M!=="copy"&&M!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(O!==void 0)if(O&&X(O)==="object"&&O.nodeType===1){if(M==="copy"&&O.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(M==="cut"&&(O.hasAttribute("readonly")||O.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(U)return ee(U,{container:E});if(O)return M==="cut"?y(O):ee(O,{container:E})},vt=ft;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 ht(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ue(B,L){for(var P=0;P<L.length;P++){var M=L[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(B,M.key,M)}}function mt(B,L,P){return L&&Ue(B.prototype,L),P&&Ue(B,P),B}function _t(B,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(L&&L.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),L&&$e(B,L)}function $e(B,L){return $e=Object.setPrototypeOf||function(M,E){return M.__proto__=E,M},$e(B,L)}function gt(B){var L=yt();return function(){var M=ue(B),E;if(L){var O=ue(this).constructor;E=Reflect.construct(M,arguments,O)}else E=M.apply(this,arguments);return bt(this,E)}}function bt(B,L){return L&&(ae(L)==="object"||typeof L=="function")?L:kt(B)}function kt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function yt(){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,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var $t=function(B){_t(P,B);var L=gt(P);function P(M,E){var O;return ht(this,P),O=L.call(this),O.resolveOptions(E),O.listenClick(M),O}return mt(P,[{key:"resolveOptions",value:function(){var E=argume