pages/assets/chunks/theme.DtcNxnPw.js

3 lines
53 KiB
JavaScript
Raw Normal View History

const __vite__fileDeps=["assets/chunks/VPLocalSearchBox.CBk5Ssa-.js","assets/chunks/framework.CsM8T_AH.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{d as _,o as a,c,r as l,n as N,a as E,t as w,b as $,w as v,e as f,T as pe,_ as b,u as ze,i as qe,f as Ke,g as he,h as y,j as d,k as r,p as C,l as B,m as z,q as le,s as I,v as O,x,y as q,z as fe,A as Pe,B as Re,C as We,D as K,F as M,E as F,G as Le,H as ee,I as m,J as W,K as Ve,L as Y,M as X,N as te,O as Ye,P as Se,Q as ce,R as we,S as Te,U as oe,V as Je,W as Xe,X as Qe,Y as Ie,Z as Ne,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as ot}from"./framework.CsM8T_AH.js";const st=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[E(w(e.text),1)])],2))}}),nt={key:0,class:"VPBackdrop"},at=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),$(pe,{name:"fade"},{default:v(()=>[e.show?(a(),c("div",nt)):f("",!0)]),_:1}))}}),rt=b(at,[["__scopeId","data-v-c79a1216"]]),P=ze;function it(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ue(o){return/^\//.test(o)?o:`/${o}`}function _e(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(qe(o)||o.startsWith("#")||!s.startsWith("http")||!Ke(e))return o;const{site:i}=P(),u=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${n}`);return he(u)}function J({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:i}=P(),u=y(()=>{var p,g;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([p,g])=>u.value.label===g.label?[]:{text:g.label,link:lt(g.link||(p==="root"?"/":`/${p}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function lt(o,e,t,n){return e?o.replace(/\/$/,"")+ue(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const ct=o=>(C("data-v-d6be1790"),o=o(),B(),o),ut={class:"NotFound"},dt={class:"code"},vt={class:"title"},pt=ct(()=>d("div",{class:"divider"},null,-1)),ht={class:"quote"},ft={class:"action"},_t=["href","aria-label"],mt=_({__name:"NotFound",setup(o){const{theme:e}=P(),{currentLang:t}=J();return(n,s)=>{var i,u,h,p,g;return a(),c("div",ut,[d("p",dt,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),d("h1",vt,w(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),pt,d("blockquote",ht,w(((h=r(e).notFound)==null?void 0:h.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",ft,[d("a",{class:"link",href:r(he)(r(t).link),"aria-label":((p=r(e).notFound)==null?void 0:p.linkLabel)??"go to home"},w(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,_t)])])}}}),kt=b(mt,[["__scopeId","data-v-d6be1790"]]);function Me(o,e){if(Array.isArray(o))return Q(o);if(o==null)return[];e=ue(e);const t=Object.keys(o).sort((s,i)=>i.split("/").length-s.split("/").length).find(s=>e.startsWith(ue(s))),n=t?o[t]:[];return Array.isArray(n)?Q(n):Q(n.items,n.base)}function bt(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 $t(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 de(o,e){return Array.isArray(e)?e.some(t=>de(o,t)):z(o,e.link)?!0:e.items?de(o,e.items):!1}function Q(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=Q(n.items,s)),n})}function U(){const{frontmatter:o,page:e,theme:t}=P(),n=le("(min-width: 960px)"),s=I(!1),i=y(()=>{const H=t.value.sidebar,S=e.value.relativePath;return H?Me(H,S):[]}),u=I(i.value);O(i,(H,S)=>{JSON.stringify(H)!==JSON.stringify(S)&&(u.value=i.value)});const h=y(()=>o.value.sidebar!==!1&&u.value.length>0&&o.value.layout!=="home"),p=y(()=>g?o.value.a