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