|
|
|
import{d as _,o as a,c,r as l,n as N,a as D,t as w,b as g,w as d,e as f,T as ve,_ as b,u as ze,i as qe,f as Ke,g as pe,h as y,j as v,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 Re,C as We,D as K,F as M,E,G as Ve,H as ee,I as m,J as W,K as Se,L as J,M as Y,N as te,O as Je,P as Te,Q as le,R as we,S as Ie,U as oe,V as Xe,W as Ye,X as Qe,Y as Ne,Z as Me,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as ot,a4 as $e}from"./framework.Cpfv34D1.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",{},()=>[D(w(e.text),1)])],2))}}),nt={key:0,class:"VPBackdrop"},at=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),g(ve,{name:"fade"},{default:d(()=>[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 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(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 pe(u)}function X({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:lt($.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(/\/$/,"")+ce(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(()=>v("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}=X();return(n,s)=>{var i,u,h,p,$;return a(),c("div",ut,[v("p",dt,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),v("h1",vt,w(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),pt,v("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),v("div",ft,[v("a",{class:"link",href:r(pe)(r(t).link),"aria-label":((p=r(e).notFound)==null?void 0:p.linkLabel)??"go to home"},w((($=r(e).notFound)==null?void 0:$.linkText)??"Take me home"),9,_t)])])}}}),kt=b(mt,[["__scopeId","data-v-d6be1790"]]);function He(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 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 gt(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 A=t.value.sidebar,S=e.value.relativePath;return A?He(A,S):[]}),u=I(i.value);O(i,(A,S)=>{JSON.stringify(A)!==JSON.stringify(S)&&(u.value=i.value)});const h=y(()=>o.value.sidebar!==!1&&u.value.length>0&&o.value.layout!=="home"),p=y(()=>$?o.val
|