fes.js/assets/js/293.f5289c13.js

1 line
19 KiB
JavaScript

"use strict";(self.webpackChunkfes_js=self.webpackChunkfes_js||[]).push([[293],{3293:(e,l,t)=>{t.r(l),t.d(l,{default:()=>ye});var a=t(6252),n=t(3577),i=t(2262),u=t(9963),r=t(7621),o=t(2201),s=t(7788),c=t(5885);const v=["href","rel","target","aria-label"],d=(0,a.aZ)({inheritAttrs:!1}),p=(0,a.aZ)({...d,__name:"NavLink",props:{item:{type:Object,required:!0}},setup(e){const l=e,t=(0,o.yj)(),u=(0,r.WF)(),{item:c}=(0,i.BK)(l),d=(0,a.Fl)((()=>(0,s.ak)(c.value.link))),p=(0,a.Fl)((()=>(0,s.B2)(c.value.link)||(0,s.R5)(c.value.link))),h=(0,a.Fl)((()=>{if(!p.value)return c.value.target?c.value.target:d.value?"_blank":void 0})),g=(0,a.Fl)((()=>"_blank"===h.value)),m=(0,a.Fl)((()=>!d.value&&!p.value&&!g.value)),k=(0,a.Fl)((()=>{if(!p.value)return c.value.rel?c.value.rel:g.value?"noopener noreferrer":void 0})),b=(0,a.Fl)((()=>c.value.ariaLabel||c.value.text)),w=(0,a.Fl)((()=>{const e=Object.keys(u.value.locales);return e.length?!e.some((e=>e===c.value.link)):"/"!==c.value.link})),f=(0,a.Fl)((()=>!!w.value&&t.path.startsWith(c.value.link))),U=(0,a.Fl)((()=>!!m.value&&(c.value.activeMatch?new RegExp(c.value.activeMatch).test(t.path):f.value)));return(e,l)=>{const t=(0,a.up)("RouterLink"),u=(0,a.up)("OutboundLink");return(0,i.SU)(m)?((0,a.wg)(),(0,a.j4)(t,(0,a.dG)({key:0,class:["nav-link",{"router-link-active":(0,i.SU)(U)}],to:(0,i.SU)(c).link,"aria-label":(0,i.SU)(b)},e.$attrs),{default:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"before"),(0,a.Uk)(" "+(0,n.zw)((0,i.SU)(c).text)+" ",1),(0,a.WI)(e.$slots,"after")])),_:3},16,["class","to","aria-label"])):((0,a.wg)(),(0,a.iD)("a",(0,a.dG)({key:1,class:"nav-link external",href:(0,i.SU)(c).link,rel:(0,i.SU)(k),target:(0,i.SU)(h),"aria-label":(0,i.SU)(b)},e.$attrs),[(0,a.WI)(e.$slots,"before"),(0,a.Uk)(" "+(0,n.zw)((0,i.SU)(c).text)+" ",1),(0,i.SU)(g)?((0,a.wg)(),(0,a.j4)(u,{key:0})):(0,a.kq)("",!0),(0,a.WI)(e.$slots,"after")],16,v))}}}),h=["aria-labelledby"],g={class:"hero"},m=["src","alt"],k={key:0,id:"main-title"},b={key:1,class:"description"},w={key:2,class:"actions"},f={key:0,class:"features"},U={class:"theme-default-content custom"},S=["innerHTML"],y=["textContent"],_=(0,a.aZ)({__name:"Home",setup(e){const l=(0,r.I2)(),t=(0,r.I5)(),u=(0,c.vs)(),o=(0,a.Fl)((()=>u.value&&void 0!==l.value.heroImageDark?l.value.heroImageDark:l.value.heroImage)),v=(0,a.Fl)((()=>null===l.value.heroText?null:l.value.heroText||t.value.title||"Hello")),d=(0,a.Fl)((()=>l.value.heroAlt||v.value||"hero")),_=(0,a.Fl)((()=>null===l.value.tagline?null:l.value.tagline||t.value.description||"Welcome to your VuePress site")),D=(0,a.Fl)((()=>(0,s.kJ)(l.value.actions)?l.value.actions.map((({text:e,link:l,type:t="primary"})=>({text:e,link:l,type:t}))):[])),F=(0,a.Fl)((()=>(0,s.kJ)(l.value.features)?l.value.features:[])),W=(0,a.Fl)((()=>l.value.footer)),x=(0,a.Fl)((()=>l.value.footerHtml));return(e,l)=>{const t=(0,a.up)("ClientOnly"),u=(0,a.up)("Content");return(0,a.wg)(),(0,a.iD)("main",{class:"home","aria-labelledby":(0,i.SU)(v)?"main-title":void 0},[(0,a._)("header",g,[(0,a.Wm)(t,null,{default:(0,a.w5)((()=>[(0,i.SU)(o)?((0,a.wg)(),(0,a.iD)("img",{key:0,src:(0,i.SU)(r.pJ)((0,i.SU)(o)),alt:(0,i.SU)(d)},null,8,m)):(0,a.kq)("",!0)])),_:1}),(0,i.SU)(v)?((0,a.wg)(),(0,a.iD)("h1",k,(0,n.zw)((0,i.SU)(v)),1)):(0,a.kq)("",!0),(0,i.SU)(_)?((0,a.wg)(),(0,a.iD)("p",b,(0,n.zw)((0,i.SU)(_)),1)):(0,a.kq)("",!0),(0,i.SU)(D).length?((0,a.wg)(),(0,a.iD)("p",w,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(D),(e=>((0,a.wg)(),(0,a.j4)(p,{key:e.text,class:(0,n.C_)(["action-button",[e.type]]),item:e},null,8,["class","item"])))),128))])):(0,a.kq)("",!0)]),(0,i.SU)(F).length?((0,a.wg)(),(0,a.iD)("div",f,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(F),(e=>((0,a.wg)(),(0,a.iD)("div",{key:e.title,class:"feature"},[(0,a._)("h2",null,(0,n.zw)(e.title),1),(0,a._)("p",null,(0,n.zw)(e.details),1)])))),128))])):(0,a.kq)("",!0),(0,a._)("div",U,[(0,a.Wm)(u)]),(0,i.SU)(W)?((0,a.wg)(),(0,a.iD)(a.HY,{key:1},[(0,i.SU)(x)?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"footer",innerHTML:(0,i.SU)(W)},null,8,S)):((0,a.wg)(),(0,a.iD)("div",{key:1,class:"footer",textContent:(0,n.zw)((0,i.SU)(W))},null,8,y))],64)):(0,a.kq)("",!0)],8,h)}}}),D=e=>!(0,s.ak)(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,F={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},W=(0,a.aZ)({__name:"DropdownTransition",setup(e){const l=e=>{e.style.height=e.scrollHeight+"px"},t=e=>{e.style.height=""};return(e,n)=>((0,a.wg)(),(0,a.j4)(u.uT,{name:"dropdown",onEnter:l,onAfterEnter:t,onBeforeLeave:l},{default:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"default")])),_:3}))}}),x=["aria-label"],I={class:"title"},L=(0,a._)("span",{class:"arrow down"},null,-1),C=["aria-label"],$={class:"title"},H={class:"nav-dropdown"},j={class:"dropdown-subtitle"},z={key:1},q={class:"dropdown-subitem-wrapper"},T=(0,a.aZ)({__name:"DropdownLink",props:{item:{type:Object,required:!0}},setup(e){const l=e,{item:t}=(0,i.BK)(l),r=(0,a.Fl)((()=>t.value.ariaLabel||t.value.text)),s=(0,i.iH)(!1),c=(0,o.yj)();(0,a.YP)((()=>c.path),(()=>{s.value=!1}));const v=e=>{const l=0===e.detail;s.value=!!l&&!s.value},d=(e,l)=>l[l.length-1]===e;return(e,l)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,n.C_)(["dropdown-wrapper",{open:s.value}])},[(0,a._)("button",{class:"dropdown-title",type:"button","aria-label":(0,i.SU)(r),onClick:v},[(0,a._)("span",I,(0,n.zw)((0,i.SU)(t).text),1),L],8,x),(0,a._)("button",{class:"mobile-dropdown-title",type:"button","aria-label":(0,i.SU)(r),onClick:l[0]||(l[0]=e=>s.value=!s.value)},[(0,a._)("span",$,(0,n.zw)((0,i.SU)(t).text),1),(0,a._)("span",{class:(0,n.C_)(["arrow",s.value?"down":"right"])},null,2)],8,C),(0,a.Wm)(W,null,{default:(0,a.w5)((()=>[(0,a.wy)((0,a._)("ul",H,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(t).children,((e,l)=>((0,a.wg)(),(0,a.iD)("li",{key:e.link||l,class:"dropdown-item"},[e.children?((0,a.wg)(),(0,a.iD)(a.HY,{key:0},[(0,a._)("h4",j,[e.link?((0,a.wg)(),(0,a.j4)(p,{key:0,item:e,onFocusout:l=>d(e,(0,i.SU)(t).children)&&0===e.children.length&&(s.value=!1)},null,8,["item","onFocusout"])):((0,a.wg)(),(0,a.iD)("span",z,(0,n.zw)(e.text),1))]),(0,a._)("ul",q,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.children,(l=>((0,a.wg)(),(0,a.iD)("li",{key:l.link,class:"dropdown-subitem"},[(0,a.Wm)(p,{item:l,onFocusout:a=>d(l,e.children)&&d(e,(0,i.SU)(t).children)&&(s.value=!1)},null,8,["item","onFocusout"])])))),128))])],64)):((0,a.wg)(),(0,a.j4)(p,{key:1,item:e,onFocusout:l=>d(e,(0,i.SU)(t).children)&&(s.value=!1)},null,8,["item","onFocusout"]))])))),128))],512),[[u.F8,s.value]])])),_:1})],2))}}),M={key:0,class:"navbar-links"},B=(0,a.aZ)({__name:"NavbarLinks",setup(e){const l=e=>(0,s.HD)(e)?(0,c.sC)(e):e.children?{...e,children:e.children.map(l)}:e,t=(()=>{const e=(0,c.X6)();return(0,a.Fl)((()=>(e.value.navbar||[]).map(l)))})(),n=(()=>{const e=(0,o.tv)(),l=(0,r.I)(),t=(0,r.I5)(),n=(0,c.X6)();return(0,a.Fl)((()=>{var a,i;const u=Object.keys(t.value.locales);if(u.length<2)return[];const r=e.currentRoute.value.path,o=e.currentRoute.value.fullPath;return[{text:null!=(a=n.value.selectLanguageText)?a:"unkown language",ariaLabel:null!=(i=n.value.selectLanguageAriaLabel)?i:"unkown language",children:u.map((a=>{var i,u,s,c,v,d;const p=null!=(u=null==(i=t.value.locales)?void 0:i[a])?u:{},h=null!=(c=null==(s=n.value.locales)?void 0:s[a])?c:{},g=`${p.lang}`,m=null!=(v=h.selectLanguageName)?v:g;let k;if(g===t.value.lang)k=o;else{const t=r.replace(l.value,a);k=e.getRoutes().some((e=>e.path===t))?t:null!=(d=h.home)?d:a}return{text:m,link:k}}))}]}))})(),u=(()=>{const e=(0,c.X6)(),l=(0,a.Fl)((()=>e.value.repo)),t=(0,a.Fl)((()=>l.value?D(l.value):null)),n=(0,a.Fl)((()=>l.value&&!(0,s.ak)(l.value)?`https://github.com/${l.value}`:l.value)),i=(0,a.Fl)((()=>n.value?e.value.repoLabel?e.value.repoLabel:null===t.value?"Source":t.value:null));return(0,a.Fl)((()=>n.value&&i.value?[{text:i.value,link:n.value}]:[]))})(),v=(0,a.Fl)((()=>[...t.value,...n.value,...u.value]));return(e,l)=>(0,i.SU)(v).length?((0,a.wg)(),(0,a.iD)("nav",M,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(v),(e=>((0,a.wg)(),(0,a.iD)("div",{key:e.text,class:"navbar-links-item"},[e.children?((0,a.wg)(),(0,a.j4)(T,{key:0,item:e},null,8,["item"])):((0,a.wg)(),(0,a.j4)(p,{key:1,item:e},null,8,["item"]))])))),128))])):(0,a.kq)("",!0)}}),P=["title"],R={class:"icon",focusable:"false",viewBox:"0 0 32 32"},Y=[(0,a.uE)('<path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path>',9)],Z={class:"icon",focusable:"false",viewBox:"0 0 32 32"},X=[(0,a._)("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1)],N=(0,a.aZ)({__name:"ToggleDarkModeButton",setup(e){const l=(0,c.X6)(),t=(0,c.vs)(),n=()=>{t.value=!t.value};return(e,r)=>((0,a.wg)(),(0,a.iD)("button",{class:"toggle-dark-button",title:(0,i.SU)(l).toggleDarkMode,onClick:n},[(0,a.wy)(((0,a.wg)(),(0,a.iD)("svg",R,Y,512)),[[u.F8,!(0,i.SU)(t)]]),(0,a.wy)(((0,a.wg)(),(0,a.iD)("svg",Z,X,512)),[[u.F8,(0,i.SU)(t)]])],8,P))}}),E=["title"],O=[(0,a._)("div",{class:"icon","aria-hidden":"true"},[(0,a._)("span"),(0,a._)("span"),(0,a._)("span")],-1)],K=(0,a.aZ)({__name:"ToggleSidebarButton",emits:["toggle"],setup(e){const l=(0,c.X6)();return(e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"toggle-sidebar-button",title:(0,i.SU)(l).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:t[0]||(t[0]=l=>e.$emit("toggle"))},O,8,E))}}),V=["src","alt"],G=(0,a.aZ)({__name:"Navbar",emits:["toggle-sidebar"],setup(e){const l=(0,r.I)(),t=(0,r.I5)(),u=(0,c.X6)(),o=(0,c.vs)(),s=(0,i.iH)(null),v=(0,i.iH)(null),d=(0,a.Fl)((()=>u.value.home||l.value)),p=(0,a.Fl)((()=>o.value&&void 0!==u.value.logoDark?u.value.logoDark:u.value.logo)),h=(0,a.Fl)((()=>t.value.title)),g=(0,i.iH)(0),m=(0,a.Fl)((()=>g.value?{maxWidth:g.value+"px"}:{})),k=(0,a.Fl)((()=>u.value.darkMode));function b(e,l){var t,a,n;const i=null==(n=null==(a=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView)?void 0:a.getComputedStyle(e,null))?void 0:n[l],u=Number.parseInt(i,10);return Number.isNaN(u)?0:u}return(0,a.bv)((()=>{const e=b(s.value,"paddingLeft")+b(s.value,"paddingRight"),l=()=>{var l;window.innerWidth<=719?g.value=0:g.value=s.value.offsetWidth-e-((null==(l=v.value)?void 0:l.offsetWidth)||0)};l(),window.addEventListener("resize",l,!1),window.addEventListener("orientationchange",l,!1)})),(e,l)=>{const t=(0,a.up)("ClientOnly"),u=(0,a.up)("RouterLink"),o=(0,a.up)("NavbarSearch");return(0,a.wg)(),(0,a.iD)("header",{ref_key:"navbar",ref:s,class:"navbar"},[(0,a.Wm)(K,{onToggle:l[0]||(l[0]=l=>e.$emit("toggle-sidebar"))}),(0,a._)("span",{ref_key:"siteBrand",ref:v},[(0,a.Wm)(u,{to:(0,i.SU)(d)},{default:(0,a.w5)((()=>[(0,a.Wm)(t,null,{default:(0,a.w5)((()=>[(0,i.SU)(p)?((0,a.wg)(),(0,a.iD)("img",{key:0,class:"logo",src:(0,i.SU)(r.pJ)((0,i.SU)(p)),alt:(0,i.SU)(h)},null,8,V)):(0,a.kq)("",!0)])),_:1}),(0,i.SU)(h)?((0,a.wg)(),(0,a.iD)("span",{key:0,class:(0,n.C_)(["site-name",{"can-hide":(0,i.SU)(p)}])},(0,n.zw)((0,i.SU)(h)),3)):(0,a.kq)("",!0)])),_:1},8,["to"])],512),(0,a._)("div",{class:"navbar-links-wrapper",style:(0,n.j5)((0,i.SU)(m))},[(0,a.WI)(e.$slots,"before"),(0,a.Wm)(B,{class:"can-hide"}),(0,a.WI)(e.$slots,"after"),(0,i.SU)(k)?((0,a.wg)(),(0,a.j4)(N,{key:0})):(0,a.kq)("",!0),(0,a.Wm)(o)],4)],512)}}}),A={class:"page-meta"},J={key:0,class:"meta-item edit-link"},Q={key:1,class:"meta-item last-updated"},ee={class:"meta-item-label"},le={class:"meta-item-info"},te={key:2,class:"meta-item contributors"},ae={class:"meta-item-label"},ne={class:"meta-item-info"},ie=["title"],ue=(0,a.aZ)({__name:"PageMeta",setup(e){const l=(0,c.X6)(),t=(()=>{const e=(0,c.X6)(),l=(0,r.Vi)(),t=(0,r.I2)();return(0,a.Fl)((()=>{var a,n,i;if(null!=(n=null!=(a=t.value.editLink)?a:e.value.editLink)&&!n)return null;const{repo:u,docsRepo:r=u,docsBranch:o="main",docsDir:c="",editLinkText:v}=e.value;if(!r)return null;const d=(({docsRepo:e,docsBranch:l,docsDir:t,filePathRelative:a,editLinkPattern:n})=>{if(!a)return null;const i=(({docsRepo:e,editLinkPattern:l})=>{if(l)return l;const t=D(e);return null!==t?F[t]:null})({docsRepo:e,editLinkPattern:n});return i?i.replace(/:repo/,(0,s.ak)(e)?e:`https://github.com/${e}`).replace(/:branch/,l).replace(/:path/,(0,s.FY)(`${(0,s.U1)(t)}/${a}`)):null})({docsRepo:r,docsBranch:o,docsDir:c,filePathRelative:l.value.filePathRelative,editLinkPattern:null!=(i=t.value.editLinkPattern)?i:e.value.editLinkPattern});return d?{text:null!=v?v:"Edit this page",link:d}:null}))})(),u=(()=>{(0,r.I5)();const e=(0,c.X6)(),l=(0,r.Vi)(),t=(0,r.I2)();return(0,a.Fl)((()=>{var a,n,i,u;return(null==(n=null!=(a=t.value.lastUpdated)?a:e.value.lastUpdated)||n)&&(null==(i=l.value.git)?void 0:i.updatedTime)?new Date(null==(u=l.value.git)?void 0:u.updatedTime).toLocaleString():null}))})(),o=(()=>{const e=(0,c.X6)(),l=(0,r.Vi)(),t=(0,r.I2)();return(0,a.Fl)((()=>{var a,n,i,u;return null!=(n=null!=(a=t.value.contributors)?a:e.value.contributors)&&!n||null==(u=null==(i=l.value.git)?void 0:i.contributors)?null:u}))})();return(e,r)=>{const s=(0,a.up)("ClientOnly");return(0,a.wg)(),(0,a.iD)("footer",A,[(0,i.SU)(t)?((0,a.wg)(),(0,a.iD)("div",J,[(0,a.Wm)(p,{class:"meta-item-label",item:(0,i.SU)(t)},null,8,["item"])])):(0,a.kq)("",!0),(0,i.SU)(u)?((0,a.wg)(),(0,a.iD)("div",Q,[(0,a._)("span",ee,(0,n.zw)((0,i.SU)(l).lastUpdatedText)+": ",1),(0,a.Wm)(s,null,{default:(0,a.w5)((()=>[(0,a._)("span",le,(0,n.zw)((0,i.SU)(u)),1)])),_:1})])):(0,a.kq)("",!0),(0,i.SU)(o)&&(0,i.SU)(o).length?((0,a.wg)(),(0,a.iD)("div",te,[(0,a._)("span",ae,(0,n.zw)((0,i.SU)(l).contributorsText)+": ",1),(0,a._)("span",ne,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(o),((e,l)=>((0,a.wg)(),(0,a.iD)(a.HY,{key:l},[(0,a._)("span",{class:"contributor",title:`email: ${e.email}`},(0,n.zw)(e.name),9,ie),l!==(0,i.SU)(o).length-1?((0,a.wg)(),(0,a.iD)(a.HY,{key:0},[(0,a.Uk)(", ")],64)):(0,a.kq)("",!0)],64)))),128))])])):(0,a.kq)("",!0)])}}}),re={key:0,class:"page-nav"},oe={class:"inner"},se={key:0,class:"prev"},ce={key:1,class:"next"},ve=(0,a.aZ)({__name:"PageNav",setup(e){const l=e=>!1===e?null:(0,s.HD)(e)?(0,c.sC)(e):!!(0,s.PO)(e)&&e,t=(e,l,a)=>{const n=e.findIndex((e=>e.link===l));if(-1!==n){const l=e[n+a];return(null==l?void 0:l.link)?l:null}for(const n of e)if(n.children){const e=t(n.children,l,a);if(e)return e}return null},n=(0,r.I2)(),u=(0,c.VU)(),v=(0,o.yj)(),d=(0,a.Fl)((()=>{const e=l(n.value.prev);return!1!==e?e:t(u.value,v.path,-1)})),h=(0,a.Fl)((()=>{const e=l(n.value.next);return!1!==e?e:t(u.value,v.path,1)}));return(e,l)=>(0,i.SU)(d)||(0,i.SU)(h)?((0,a.wg)(),(0,a.iD)("nav",re,[(0,a._)("p",oe,[(0,i.SU)(d)?((0,a.wg)(),(0,a.iD)("span",se,[(0,a.Wm)(p,{item:(0,i.SU)(d)},null,8,["item"])])):(0,a.kq)("",!0),(0,i.SU)(h)?((0,a.wg)(),(0,a.iD)("span",ce,[(0,a.Wm)(p,{item:(0,i.SU)(h)},null,8,["item"])])):(0,a.kq)("",!0)])])):(0,a.kq)("",!0)}}),de={class:"page"},pe={class:"theme-default-content"},he=(0,a.aZ)({__name:"Page",setup:e=>(e,l)=>{const t=(0,a.up)("Content");return(0,a.wg)(),(0,a.iD)("main",de,[(0,a.WI)(e.$slots,"top"),(0,a._)("div",pe,[(0,a.Wm)(t)]),(0,a.Wm)(ue),(0,a.Wm)(ve),(0,a.WI)(e.$slots,"bottom")])}}),ge=e=>decodeURI(e).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),me=(e,l)=>!!((e,l)=>void 0!==l&&(e.hash===l||ge(e.path)===ge(l)))(e,l.link)||!!l.children&&l.children.some((l=>me(e,l))),ke=(e,l)=>e.link?(0,a.h)(p,{...l,item:e}):(0,a.h)("p",l,e.text),be=(e,l)=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.length)?(0,a.h)("ul",{class:{"sidebar-sub-items":l>0}},e.children.map((e=>(0,a.h)("li",(0,a.h)(we,{item:e,depth:l+1}))))):null},we=({item:e,depth:l=0})=>{const t=(0,o.yj)(),a=me(t,e);return[ke(e,{class:{"sidebar-heading":0===l,"sidebar-item":!0,active:a}}),be(e,l)]};we.displayName="SidebarChild",we.props={item:{type:Object,required:!0},depth:{type:Number,required:!1}};const fe={class:"sidebar"},Ue={class:"sidebar-links"},Se=(0,a.aZ)({__name:"Sidebar",setup(e){const l=(0,c.VU)();return(e,t)=>((0,a.wg)(),(0,a.iD)("aside",fe,[(0,a.Wm)(B),(0,a.WI)(e.$slots,"top"),(0,a._)("ul",Ue,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,i.SU)(l),(e=>((0,a.wg)(),(0,a.j4)((0,i.SU)(we),{key:e.link||e.text,item:e},null,8,["item"])))),128))]),(0,a.WI)(e.$slots,"bottom")]))}}),ye=(0,a.aZ)({__name:"Layout",setup(e){const l=(0,r.Vi)(),t=(0,r.I2)(),s=(0,c.X6)(),v=(0,a.Fl)((()=>!1!==t.value.navbar&&!1!==s.value.navbar)),d=(0,c.VU)(),p=(0,i.iH)(!1),h=e=>{p.value="boolean"==typeof e?e:!p.value},g={x:0,y:0},m=e=>{g.x=e.changedTouches[0].clientX,g.y=e.changedTouches[0].clientY},k=e=>{const l=e.changedTouches[0].clientX-g.x,t=e.changedTouches[0].clientY-g.y;Math.abs(l)>Math.abs(t)&&Math.abs(l)>40&&(l>0&&g.x<=80?h(!0):h(!1))},b=(0,a.Fl)((()=>[{"no-navbar":!v.value,"no-sidebar":!d.value.length,"sidebar-open":p.value},t.value.pageClass]));let w;(0,a.bv)((()=>{const e=(0,o.tv)();w=e.afterEach((()=>{h(!1)}))})),(0,a.Ah)((()=>{w()}));const f=(0,c.P$)(),U=f.resolve,S=f.pending;return(e,r)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,n.C_)(["theme-container",(0,i.SU)(b)]),onTouchstart:m,onTouchend:k},[(0,a.WI)(e.$slots,"navbar",{},(()=>[(0,i.SU)(v)?((0,a.wg)(),(0,a.j4)(G,{key:0,onToggleSidebar:h},{before:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"navbar-before")])),after:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"navbar-after")])),_:3})):(0,a.kq)("",!0)])),(0,a._)("div",{class:"sidebar-mask",onClick:r[0]||(r[0]=e=>h(!1))}),(0,a.WI)(e.$slots,"sidebar",{},(()=>[(0,a.Wm)(Se,null,{top:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"sidebar-top")])),bottom:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"sidebar-bottom")])),_:3})])),(0,a.WI)(e.$slots,"page",{},(()=>[(0,i.SU)(t).home?((0,a.wg)(),(0,a.j4)(_,{key:0})):((0,a.wg)(),(0,a.j4)(u.uT,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:(0,i.SU)(U),onBeforeLeave:(0,i.SU)(S)},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)(he,{key:(0,i.SU)(l).path},{top:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"page-top")])),bottom:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"page-bottom")])),_:3}))])),_:3},8,["onBeforeEnter","onBeforeLeave"]))]))],34))}})}}]);