mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
3 lines
54 KiB
JavaScript
3 lines
54 KiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPAlgoliaSearchBox.nRDYEdJs.js","assets/chunks/framework.Bhsyh9kO.js"])))=>i.map(i=>d[i]);
|
||
|
|
import{d as m,c as u,r as d,n as L,o as a,a as R,t as S,b as _,w as v,T as ce,e as f,_ as k,u as Pe,i as Oe,f as ze,g as ue,h as b,j as p,k as i,l as U,m as be,p as D,q as Ge,s as Y,v as Re,x as P,y as X,z as F,A as de,B as pe,C as K,D as ee,E as $e,F as Le,G as N,H,I as j,J as h,K as A,L as Ve,M as G,N as te,O as Se,P as Ue,Q as je,R as Te,S as we,U as We,V as Ke,W as qe,X as Ne,Y as Ie,Z as Je,$ as Ye,a0 as Xe,a1 as Qe,a2 as Ze}from"./framework.Bhsyh9kO.js";const xe=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),u("span",{class:L(["VPBadge",e.type])},[d(e.$slots,"default",{},()=>[R(S(e.text),1)])],2))}}),et={key:0,class:"VPBackdrop"},tt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),_(ce,{name:"fade"},{default:v(()=>[e.show?(a(),u("div",et)):f("",!0)]),_:1}))}}),nt=k(tt,[["__scopeId","data-v-c79a1216"]]),$=Pe;function Me(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function oe(o){return o.startsWith("/")?o:`/${o}`}function ve(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(Oe(o)||o.startsWith("#")||!s.startsWith("http")||!ze(e))return o;const{site:r}=$(),c=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return ue(c)}function Q({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:r}=$(),c=b(()=>({label:e.value.locales[t.value]?.label,link:e.value.locales[t.value]?.link||(t.value==="root"?"/":`/${t.value}/`)}));return{localeLinks:b(()=>Object.entries(e.value.locales).flatMap(([g,V])=>c.value.label===V.label?[]:{text:V.label,link:st(V.link||(g==="root"?"/":`/${g}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(c.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:c}}function st(o,e,t,n){return e?o.replace(/\/$/,"")+oe(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const ot={class:"NotFound"},at={class:"code"},rt={class:"title"},it={class:"quote"},lt={class:"action"},ct=["href","aria-label"],ut=m({__name:"NotFound",setup(o){const{theme:e}=$(),{currentLang:t}=Q();return(n,s)=>(a(),u("div",ot,[p("p",at,S(i(e).notFound?.code??"404"),1),p("h1",rt,S(i(e).notFound?.title??"PAGE NOT FOUND"),1),s[0]||(s[0]=p("div",{class:"divider"},null,-1)),p("blockquote",it,S(i(e).notFound?.quote??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),p("div",lt,[p("a",{class:"link",href:i(ue)(i(e).notFound?.link??i(t).link),"aria-label":i(e).notFound?.linkLabel??"go to home"},S(i(e).notFound?.linkText??"Take me home"),9,ct)])]))}}),dt=k(ut,[["__scopeId","data-v-829df670"]]);function Ce(o,e){if(Array.isArray(o))return Z(o);if(o==null)return[];e=oe(e);const t=Object.keys(o).sort((s,r)=>r.split("/").length-s.split("/").length).find(s=>e.startsWith(oe(s))),n=t?o[t]:[];return Array.isArray(n)?Z(n):Z(n.items,n.base)}function pt(o){const e=[];let t=0;for(const n in o){const s=o[n];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function vt(o){const e=[];function t(n){for(const s of n)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(o),e}function ae(o,e){return Array.isArray(e)?e.some(t=>ae(o,t)):U(o,e.link)?!0:e.items?ae(o,e.items):!1}function Z(o,e){return[...o].map(t=>{const n={...t},s=n.base||e;return s&&n.link&&(n.link=s+n.link.replace(/^\//,s.endsWith("/")?"":"/")),n.items&&(n.items=Z(n.items,s)),n})}function ft(){const{hasSidebar:o}=O(),e=be("(min-width: 960px)"),t=be("(min-width: 1280px)");return{isAsideEnabled:b(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const mt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,re=[];function He(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function ht(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{c
|