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