app/assets/chunks/theme.Cz3UhnZp.js

3 lines
56 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.C9Q3Ai3D.js","assets/chunks/framework.BZiUP1E-.js"])))=>i.map(i=>d[i]);
import{d as _,o as a,c,r as l,n as N,a as D,t as w,b as k,w as p,e as h,T as he,_ as $,u as Te,i as Je,f as Ye,g as _e,h as y,j as d,k as r,p as C,l as H,m as K,q as ue,s as P,v as U,x as ee,y as q,z as te,A as me,B as Xe,C as Qe,D as W,F as M,E,G as Ie,H as se,I as m,J as F,K as Ne,L as oe,M as R,N as ne,O as Ze,P as ke,Q as de,R as xe,S as Me,U as ae,V as et,W as tt,X as st,Y as Ae,Z as Be,$ as ot,a0 as nt,a1 as at,a2 as rt,a3 as it}from"./framework.BZiUP1E-.js";const lt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[D(w(e.text),1)])],2))}}),ct={key:0,class:"VPBackdrop"},ut=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),k(he,{name:"fade"},{default:p(()=>[e.show?(a(),c("div",ct)):h("",!0)]),_:1}))}}),dt=$(ut,[["__scopeId","data-v-2cfdfdcf"]]),L=Te;function vt(s,e){let t,o=!1;return()=>{t&&clearTimeout(t),o?t=setTimeout(s,e):(s(),(o=!0)&&setTimeout(()=>o=!1,e))}}function ve(s){return/^\//.test(s)?s:`/${s}`}function $e(s){const{pathname:e,search:t,hash:o,protocol:n}=new URL(s,"http://a.com");if(Je(s)||s.startsWith("#")||!n.startsWith("http")||!Ye(e))return s;const{site:i}=L(),u=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${o}`);return _e(u)}function X({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:o,theme:n,hash:i}=L(),u=y(()=>{var f,g;return{label:(f=e.value.locales[t.value])==null?void 0:f.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(([f,g])=>u.value.label===g.label?[]:{text:g.label,link:pt(g.link||(f==="root"?"/":`/${f}/`),n.value.i18nRouting!==!1&&s,o.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function pt(s,e,t,o){return e?s.replace(/\/$/,"")+ve(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,o?".html":"")):s}const ft=s=>(C("data-v-868b40d9"),s=s(),H(),s),ht={class:"NotFound"},_t={class:"code"},mt={class:"title"},kt=ft(()=>d("div",{class:"divider"},null,-1)),$t={class:"quote"},bt={class:"action"},gt=["href","aria-label"],yt=_({__name:"NotFound",setup(s){const{theme:e}=L(),{currentLang:t}=X();return(o,n)=>{var i,u,v,f,g;return a(),c("div",ht,[d("p",_t,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),d("h1",mt,w(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),kt,d("blockquote",$t,w(((v=r(e).notFound)==null?void 0:v.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",bt,[d("a",{class:"link",href:r(_e)(r(t).link),"aria-label":((f=r(e).notFound)==null?void 0:f.linkLabel)??"go to home"},w(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,gt)])])}}}),Pt=$(yt,[["__scopeId","data-v-868b40d9"]]);function Ce(s,e){if(Array.isArray(s))return Z(s);if(s==null)return[];e=ve(e);const t=Object.keys(s).sort((n,i)=>i.split("/").length-n.split("/").length).find(n=>e.startsWith(ve(n))),o=t?s[t]:[];return Array.isArray(o)?Z(o):Z(o.items,o.base)}function Lt(s){const e=[];let t=0;for(const o in s){const n=s[o];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function Vt(s){const e=[];function t(o){for(const n of o)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(s),e}function pe(s,e){return Array.isArray(e)?e.some(t=>pe(s,t)):K(s,e.link)?!0:e.items?pe(s,e.items):!1}function Z(s,e){return[...s].map(t=>{const o={...t},n=o.base||e;return n&&o.link&&(o.link=n+o.link),o.items&&(o.items=Z(o.items,n)),o})}function j(){const{frontmatter:s,page:e,theme:t}=L(),o=ue("(min-width: 960px)"),n=P(!1),i=y(()=>{const B=t.value.sidebar,T=e.value.relativePath;return B?Ce(B,T):[]}),u=P(i.value);U(i,(B,T)=>{JSON.stringify(B)!==JSON.stringify(T)&&(u.value=i.value)});const v=y(()=>s.value.sidebar!==!1&&u.value.length>0&&s.value.layout!=="home"),f=y(()=>g?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),g=y(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),S=y(()=>v.value&&o.value),b=y(()=>v.value?Lt(u.value):[]);function V(){n.value=!0}function I(){n.value=!1}function A(){n.value?I():V()}return{isOpen:n,sidebar:u,sidebarGroups:b,hasSidebar:v,hasAside:g,leftAside:f,isSidebarEnabled:S,open:V,close:I,toggle:A}}function St(s,e){let t;ee(()=>{t=s.value?document.activeElement:void 0}),q(()=>{window.addEventListener("keyup",o)}),te(()=>{window.removeEventListener("keyup",o)});function o(n){n.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}function wt(s){const{page:e,hash:t}=L(),o=P(!1),n=y(()=>s.value.collapsed!=null),i=y(()=>!!s.value.link),u=P(!1),v=()=>{u.value=K(e.value.relativePath,s.value.link)};U([e,s,t],v),q(v);const f=y(()=>u.value?!0:s.value.items?pe(e.value.relativePath,s.value.items):!1),g=y(()=>!!(s.value.items&&s.value.items.length));ee(()=>{o.value=!!(n.value&&s.value.collapsed)}),me(()=>{(u.value||f.value)&&(o.value=!1)});function S(){n.value&&(o.value=!o.value)}return{collapsed:o,collapsible:n,isLink:i,isActiveLink:u,hasActiveLink:f,hasChildren:g,toggle:S}}function Tt(){const{hasSidebar:s}=j(),e=ue("(min-width: 960px)"),t=ue("(min-width: 1280px)");return{isAsideEnabled:y(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const fe=[];function He(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function be(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const o=Number(t.tagName[1]);return{element:t,title:It(t),link:"#"+t.id,level:o}});return Nt(e,s)}function It(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Nt(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[o,n]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(u=>u.level>=o&&u.level<=n),fe.length=0;for(const{element:u,link:v}of s)fe.push({element:u,link:v});const i=[];e:for(let u=0;u<s.length;u++){const v=s[u];if(u===0)i.push(v);else{for(let f=u-1;f>=0;f--){const g=s[f];if(g.level<v.level){(g.children||(g.children=[])).push(v);continue e}}i.push(v)}}return i}function Mt(s,e){const{isAsideEnabled:t}=Tt(),o=vt(i,100);let n=null;q(()=>{requestAnimationFrame(i),window.addEventListener("scroll",o)}),Xe(()=>{u(location.hash)}),te(()=>{window.removeEventListener("scroll",o)});function i(){if(!t.value)return;const v=window.scrollY,f=window.innerHeight,g=document.body.offsetHeight,S=Math.abs(v+f-g)<1,b=fe.map(({element:I,link:A})=>({link:A,top:At(I)})).filter(({top:I})=>!Number.isNaN(I)).sort((I,A)=>I.top-A.top);if(!b.length){u(null);return}if(v<1){u(null);return}if(S){u(b[b.length-1].link);return}let V=null;for(const{link:I,top:A}of b){if(A>v+Qe()+4)break;V=I}u(V)}function u(v){n&&n.classList.remove("active"),v==null?n=null:n=s.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const f=n;f?(f.classList.add("active"),e.value.style.top=f.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function At(s){let e=0;for(;s!==document.body;){if(s===null)return NaN;e+=s.offsetTop,s=s.offsetParent}return e}const Bt=["href","title"],Ct=_({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(s){function e({target:t}){const o=t.href.split("#")[1],n=document.getElementById(decodeURIComponent(o));n==null||n.focus({preventScroll:!0})}return(t,o)=>{const n=W("VPDocOutlineItem",!0);return a(),c("ul",{class:N(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),c(M,null,E(t.headers,({children:i,link:u,title:v})=>(a(),c("li",null,[d("a",{class:"outline-link",href:u,onClick:e,title:v},w(v),9,Bt),i!=null&&i.length?(a(),k(n,{key:0,headers:i},null,8,["headers"])):h("",!0)]))),256))],2)}}}),Ee=$(Ct,[["__scopeId","data-v-75b86f7a"]]),Ht={class:"content"},Et={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Ft=_({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=L(),o=Ie([]);se(()=>{o.value=be(e.value.outline??t.value.outline)});const n=P(),i=P();return Mt(n,i),(u,v)=>(a(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:N(["VPDocAsideOutline",{"has-outline":o.value.length>0}]),ref_key:"container",ref:n},[d("div",Ht,[d("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),d("div",Et,w(r(He)(r(t))),1),m(Ee,{headers:o.value,root:!0},null,8,["headers"])])],2))}}),Ot=$(Ft,[["__scopeId","data-v-be1126ba"]]),Dt={class:"VPDocAsideCarbonAds"},Ut=_({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,o)=>(a(),c("div",Dt,[m(r(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),jt=s=>(C("data-v-65ef6f81"),s=s(),H(),s),Gt={class:"VPDocAside"},zt=jt(()=>d("div",{class:"spacer"},null,-1)),Rt=_({__name:"VPDocAside",setup(s){const{theme:e}=L();return(t,o)=>(a(),c("div",Gt,[l(t.$slots,"aside-top",{},void 0,!0),l(t.$slots,"aside-outline-before",{},void 0,!0),m(Ot),l(t.$slots,"aside-outline-after",{},void 0,!0),zt,l(t.$slots,"aside-ads-before",{},void 0,!0),r(e).carbonAds?(a(),k(Ut,{key:0,"carbon-ads":r(e).carbonAds},null,8,["carbon-ads"])):h("",!0),l(t.$slots,"aside-ads-after",{},void 0,!0),l(t.$slots,"aside-bottom",{},void 0,!0)]))}}),qt=$(Rt,[["__scopeId","data-v-65ef6f81"]]);function Kt(){const{theme:s,page:e}=L();return y(()=>{const{text:t="Edit this page",pattern:o=""}=s.value.editLink||{};let n;return typeof o=="function"?n=o(e.value):n=o.replace(/:path/g,e.value.filePath),{url:n,text:t}})}function Wt(){const{page:s,theme:e,frontmatter:t}=L();return y(()=>{var g,S,b,V,I,A,B,T;const o=Ce(e.value.sidebar,s.value.relativePath),n=Vt(o),i=Jt(n,G=>G.link.replace(/[?#].*$/,"")),u=i.findIndex(G=>K(s.value.relativePath,G.link)),v=((g=e.value.docFooter)==null?void 0:g.prev)===!1&&!t.value.prev||t.value.prev===!1,f=((S=e.value.docFooter)==null?void 0:S.next)===!1&&!t.value.next||t.value.next===!1;return{prev:v?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((b=i[u-1])==null?void 0:b.docFooterText)??((V=i[u-1])==null?void 0:V.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=i[u-1])==null?void 0:I.link)},next:f?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((A=i[u+1])==null?void 0:A.docFooterText)??((B=i[u+1])==null?void 0:B.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((T=i[u+1])==null?void 0:T.link)}}})}function Jt(s,e){const t=new Set;return s.filter(o=>{const n=e(o);return t.has(n)?!1:t.add(n)})}const O=_({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=y(()=>e.tag??(e.href?"a":"span")),o=y(()=>e.href&&Ne.test(e.href)||e.target==="_blank");return(n,i)=>(a(),k(F(t.value),{class:N(["VPLink",{link:n.href,"vp-external-link-icon":o.value,"no-icon":n.noIcon}]),href:n.href?r($e)(n.href):void 0,target:n.target??(o.value?"_blank":void 0),rel:n.rel??(o.value?"noreferrer":void 0)},{default:p(()=>[l(n.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Yt={class:"VPLastUpdated"},Xt=["datetime"],Qt=_({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,lang:o}=L(),n=y(()=>new Date(t.value.lastUpdated)),i=y(()=>n.value.toISOString()),u=P("");return q(()=>{ee(()=>{var v,f,g;u.value=new Intl.DateTimeFormat((f=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&f.forceLocale?o.value:void 0,((g=e.value.lastUpdated)==null?void 0:g.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(n.value)})}),(v,f)=>{var g;return a(),c("p",Yt,[D(w(((g=r(e).lastUpdated)==null?void 0:g.text)||r(e).lastUpdatedText||"Last updated")+": ",1),d("time",{datetime:i.value},w(u.value),9,Xt)])}}}),Zt=$(Qt,[["__scopeId","data-v-243e2690"]]),Fe=s=>(C("data-v-e27a0cf7"),s=s(),H(),s),xt={key:0,class:"VPDocFooter"},es={key:0,class:"edit-info"},ts={key:0,class:"edit-link"},ss=Fe(()=>d("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),os={key:1,class:"last-updated"},ns={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},as=Fe(()=>d("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),rs={class:"pager"},is=["innerHTML"],ls=["innerHTML"],cs={class:"pager"},us=["innerHTML"],ds=["innerHTML"],vs=_({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:o}=L(),n=Kt(),i=Wt(),u=y(()=>e.value.editLink&&o.value.editLink!==!1),v=y(()=>t.value.lastUpdated),f=y(()=>u.value||v.value||i.value.prev||i.value.next);return(g,S)=>{var b,V,I,A;return f.value?(a(),c("footer",xt,[l(g.$slots,"doc-footer-before",{},void 0,!0),u.value||v.value?(a(),c("div",es,[u.value?(a(),c("div",ts,[m(O,{class:"edit-link-button",href:r(n).url,"no-icon":!0},{default:p(()=>[ss,D(" "+w(r(n).text),1)]),_:1},8,["href"])])):h("",!0),v.value?(a(),c("div",os,[m(Zt)])):h("",!0)])):h("",!0),(b=r(i).prev)!=null&&b.link||(V=r(i).next)!=null&&V.link?(a(),c("nav",ns,[as,d("div",rs,[(I=r(i).prev)!=null&&I.link?(a(),k(O,{key:0,class:"pager-link prev",href:r(i).prev.link},{default:p(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=r(e).docFooter)==null?void 0:B.prev)||"Previous page"},null,8,is),d("span",{class:"title",innerHTML:r(i).prev.text},null,8,ls)]}),_:1},8,["href"])):h("",!0)]),d("div",cs,[(A=r(i).next)!=null&&A.link?(a(),k(O,{key:0,class:"pager-link next",href:r(i).next.link},{default:p(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=r(e).docFooter)==null?void 0:B.next)||"Next page"},null,8,us),d("span",{class:"title",innerHTML:r(i).next.text},null,8,ds)]}),_:1},8,["href"])):h("",!0)])])):h("",!0)])):h("",!0)}}}),ps=$(vs,[["__scopeId","data-v-e27a0cf7"]]),fs=s=>(C("data-v-4981c415"),s=s(),H(),s),hs={class:"container"},_s=fs(()=>d("div",{class:"aside-curtain"},null,-1)),ms={class:"aside-container"},ks={class:"aside-content"},$s={class:"content"},bs={class:"content-container"},gs={class:"main"},ys=_({__name:"VPDoc",setup(s){const{theme:e}=L(),t=oe(),{hasSidebar:o,hasAside:n,leftAside:i}=j(),u=y(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,f)=>{const g=W("Content");return a(),c("div",{class:N(["VPDoc",{"has-sidebar":r(o),"has-aside":r(n)}])},[l(v.$slots,"doc-top",{},void 0,!0),d("div",hs,[r(n)?(a(),c("div",{key:0,class:N(["aside",{"left-aside":r(i)}])},[_s,d("div",ms,[d("div",ks,[m(qt,null,{"aside-top":p(()=>[l(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":p(()=>[l(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":p(()=>[l(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):h("",!0),d("div",$s,[d("div",bs,[l(v.$slots,"doc-before",{},void 0,!0),d("main",gs,[m(g,{class:N(["vp-doc",[u.value,r(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),m(ps,null,{"doc-footer-before":p(()=>[l(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),l(v.$slots,"doc-after",{},void 0,!0)])])]),l(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Ps=$(ys,[["__scopeId","data-v-4981c415"]]),Ls=_({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(s){const e=s,t=y(()=>e.href&&Ne.test(e.href)),o=y(()=>e.tag||e.href?"a":"button");return(n,i)=>(a(),k(F(o.value),{class:N(["VPButton",[n.size,n.theme]]),href:n.href?r($e)(n.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:p(()=>[D(w(n.text),1)]),_:1},8,["class","href","target","rel"]))}}),Vs=$(Ls,[["__scopeId","data-v-5208c6a8"]]),Ss=["src","alt"],ws=_({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const o=W("VPImage",!0);return e.image?(a(),c(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),c("img",R({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:r(_e)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Ss)):(a(),c(M,{key:1},[m(o,R({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),m(o,R({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):h("",!0)}}}),x=$(ws,[["__scopeId","data-v-6e911b93"]]),Ts=s=>(C("data-v-4963d475"),s=s(),H(),s),Is={class:"container"},Ns={class:"main"},Ms={key:0,class:"name"},As=["innerHTML"],Bs=["innerHTML"],Cs=["innerHTML"],Hs={key:0,class:"actions"},Es={key:0,class:"image"},Fs={class:"image-container"},Os=Ts(()=>d("div",{class:"image-bg"},null,-1)),Ds=_({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=ne("hero-image-slot-exists");return(t,o)=>(a(),c("div",{class:N(["VPHero",{"has-image":t.image||r(e)}])},[d("div",Is,[d("div",Ns,[l(t.$slots,"home-hero-info-before",{},void 0,!0),l(t.$slots,"home-hero-info",{},()=>[t.name?(a(),c("h1",Ms,[d("span",{innerHTML:t.name,class:"clip"},null,8,As)])):h("",!0),t.text?(a(),c("p",{key:1,innerHTML:t.text,class:"text"},null,8,Bs)):h("",!0),t.tagline?(a(),c("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Cs)):h("",!0)],!0),l(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),c("div",Hs,[(a(!0),c(M,null,E(t.actions,n=>(a(),c("div",{key:n.link,class:"action"},[m(Vs,{tag:"a",size:"medium",theme:n.theme,text:n.text,href:n.link,target:n.target,rel:n.rel},null,8,["theme","text","href","target","rel"])]))),128))])):h("",!0),l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||r(e)?(a(),c("div",Es,[d("div",Fs,[Os,l(t.$slots,"home-hero-image",{},()=>[t.image?(a(),k(x,{key:0,class:"image-src",image:t.image},null,8,["image"])):h("",!0)],!0)])])):h("",!0)])],2))}}),Us=$(Ds,[["__scopeId","data-v-4963d475"]]),js=_({__name:"VPHomeHero",setup(s){const{frontmatter:e}=L();return(t,o)=>r(e).hero?(a(),k(Us,{key:0,class:"VPHomeHero",name:r(e).hero.name,text:r(e).hero.text,tagline:r(e).hero.tagline,image:r(e).hero.image,actions:r(e).hero.actions},{"home-hero-info-before":p(()=>[l(t.$slots,"home-hero-info-before")]),"home-hero-info":p(()=>[l(t.$slots,"home-hero-info")]),"home-hero-info-after":p(()=>[l(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":p(()=>[l(t.$slots,"home-hero-actions-after")]),"home-hero-image":p(()=>[l(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):h("",!0)}}),Gs=s=>(C("data-v-c6ed09d2"),s=s(),H(),s),zs={class:"box"},Rs={key:0,class:"icon"},qs=["innerHTML"],Ks=["innerHTML"],Ws=["innerHTML"],Js={key:4,class:"link-text"},Ys={class:"link-text-value"},Xs=Gs(()=>d("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Qs=_({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),k(O,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:p(()=>[d("article",zs,[typeof e.icon=="object"&&e.icon.wrap?(a(),c("div",Rs,[m(x,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),k(x,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,qs)):h("",!0),d("h2",{class:"title",innerHTML:e.title},null,8,Ks),e.details?(a(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,Ws)):h("",!0),e.linkText?(a(),c("div",Js,[d("p",Ys,[D(w(e.linkText)+" ",1),Xs])])):h("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Zs=$(Qs,[["__scopeId","data-v-c6ed09d2"]]),xs={key:0,class:"VPFeatures"},eo={class:"container"},to={class:"items"},so=_({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=y(()=>{const o=e.features.length;if(o){if(o===2)return"grid-2";if(o===3)return"grid-3";if(o%3===0)return"grid-6";if(o>3)return"grid-4"}else return});return(o,n)=>o.features?(a(),c("div",xs,[d("div",eo,[d("div",to,[(a(!0),c(M,null,E(o.features,i=>(a(),c("div",{key:i.title,class:N(["item",[t.value]])},[m(Zs,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):h("",!0)}}),oo=$(so,[["__scopeId","data-v-c56833f4"]]),no=_({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=L();return(t,o)=>r(e).features?(a(),k(oo,{key:0,class:"VPHomeFeatures",features:r(e).features},null,8,["features"])):h("",!0)}}),ao=_({__name:"VPHomeContent",setup(s){const{width:e}=Ze({initialWidth:0,includeScrollbar:!1});return(t,o)=>(a(),c("div",{class:"vp-doc container",style:ke(r(e)?{"--vp-offset":`calc(50% - ${r(e)/2}px)`}:{})},[l(t.$slots,"default",{},void 0,!0)],4))}}),ro=$(ao,[["__scopeId","data-v-2763ee34"]]),io={class:"VPHome"},lo=_({__name:"VPHome",setup(s){const{frontmatter:e}=L();return(t,o)=>{const n=W("Content");return a(),c("div",io,[l(t.$slots,"home-hero-before",{},void 0,!0),m(js,null,{"home-hero-info-before":p(()=>[l(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),l(t.$slots,"home-hero-after",{},void 0,!0),l(t.$slots,"home-features-before",{},void 0,!0),m(no),l(t.$slots,"home-features-after",{},void 0,!0),r(e).markdownStyles!==!1?(a(),k(ro,{key:0},{default:p(()=>[m(n)]),_:1})):(a(),k(n,{key:1}))])}}}),co=$(lo,[["__scopeId","data-v-ceddc1ed"]]),uo={},vo={class:"VPPage"};function po(s,e){const t=W("Content");return a(),c("div",vo,[l(s.$slots,"page-top"),m(t),l(s.$slots,"page-bottom")])}const fo=$(uo,[["render",po]]),ho=_({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=L(),{hasSidebar:o}=j();return(n,i)=>(a(),c("div",{class:N(["VPContent",{"has-sidebar":r(o),"is-home":r(t).layout==="home"}]),id:"VPContent"},[r(e).isNotFound?l(n.$slots,"not-found",{key:0},()=>[m(Pt)],!0):r(t).layout==="page"?(a(),k(fo,{key:1},{"page-top":p(()=>[l(n.$slots,"page-top",{},void 0,!0)]),"page-bottom":p(()=>[l(n.$slots,"page-bottom",{},void 0,!0)]),_:3})):r(t).layout==="home"?(a(),k(co,{key:2},{"home-hero-before":p(()=>[l(n.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":p(()=>[l(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(n.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":p(()=>[l(n.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":p(()=>[l(n.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":p(()=>[l(n.$slots,"home-features-after",{},void 0,!0)]),_:3})):r(t).layout&&r(t).layout!=="doc"?(a(),k(F(r(t).layout),{key:3})):(a(),k(Ps,{key:4},{"doc-top":p(()=>[l(n.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":p(()=>[l(n.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":p(()=>[l(n.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":p(()=>[l(n.$slots,"doc-before",{},void 0,!0)]),"doc-after":p(()=>[l(n.$slots,"doc-after",{},void 0,!0)]),"aside-top":p(()=>[l(n.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":p(()=>[l(n.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(n.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(n.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(n.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":p(()=>[l(n.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),_o=$(ho,[["__scopeId","data-v-4e31bbd2"]]),mo={class:"container"},ko=["innerHTML"],$o=["innerHTML"],bo=_({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=L(),{hasSidebar:o}=j();return(n,i)=>r(e).footer&&r(t).footer!==!1?(a(),c("footer",{key:0,class:N(["VPFooter",{"has-sidebar":r(o)}])},[d("div",mo,[r(e).footer.message?(a(),c("p",{key:0,class:"message",innerHTML:r(e).footer.message},null,8,ko)):h("",!0),r(e).footer.copyright?(a(),c("p",{key:1,class:"copyright",innerHTML:r(e).footer.copyright},null,8,$o)):h("",!0)])],2)):h("",!0)}}),go=$(bo,[["__scopeId","data-v-098a46ae"]]);function yo(){const{theme:s,frontmatter:e}=L(),t=Ie([]),o=y(()=>t.value.length>0);return se(()=>{t.value=be(e.value.outline??s.value.outline)}),{headers:t,hasLocalNav:o}}const Po=s=>(C("data-v-5e8cf508"),s=s(),H(),s),Lo={class:"menu-text"},Vo=Po(()=>d("span",{class:"vpi-chevron-right icon"},null,-1)),So={class:"header"},wo={class:"outline"},To=_({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=L(),o=P(!1),n=P(0),i=P(),u=P();function v(b){var V;(V=i.value)!=null&&V.contains(b.target)||(o.value=!1)}U(o,b=>{if(b){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),de("Escape",()=>{o.value=!1}),se(()=>{o.value=!1});function f(){o.value=!o.value,n.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function g(b){b.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),xe(()=>{o.value=!1}))}function S(){o.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(b,V)=>(a(),c("div",{class:"VPLocalNavOutlineDropdown",style:ke({"--vp-vh":n.value+"px"}),ref_key:"main",ref:i},[b.headers.length>0?(a(),c("button",{key:0,onClick:f,class:N({open:o.value})},[d("span",Lo,w(r(He)(r(t))),1),Vo],2)):(a(),c("button",{key:1,onClick:S},w(r(t).returnToTopLabel||"Return to top"),1)),m(he,{name:"flyout"},{default:p(()=>[o.value?(a(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:g},[d("div",So,[d("a",{class:"top-link",href:"#",onClick:S},w(r(t).returnToTopLabel||"Return to top"),1)]),d("div",wo,[m(Ee,{headers:b.headers},null,8,["headers"])])],512)):h("",!0)]),_:1})],4))}}),Io=$(To,[["__scopeId","data-v-5e8cf508"]]),No=s=>(C("data-v-b8036a12"),s=s(),H(),s),Mo={class:"container"},Ao=["aria-expanded"],Bo=No(()=>d("span",{class:"vpi-align-left menu-icon"},null,-1)),Co={class:"menu-text"},Ho=_({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=L(),{hasSidebar:o}=j(),{headers:n}=yo(),{y:i}=Me(),u=P(0);q(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),se(()=>{n.value=be(t.value.outline??e.value.outline)});const v=y(()=>n.value.length===0),f=y(()=>v.value&&!o.value),g=y(()=>({VPLocalNav:!0,"has-sidebar":o.value,empty:v.value,fixed:f.value}));return(S,b)=>r(t).layout!=="home"&&(!f.value||r(i)>=u.value)?(a(),c("div",{key:0,class:N(g.value)},[d("div",Mo,[r(o)?(a(),c("button",{key:0,class:"menu","aria-expanded":S.open,"aria-controls":"VPSidebarNav",onClick:b[0]||(b[0]=V=>S.$emit("open-menu"))},[Bo,d("span",Co,w(r(e).sidebarMenuLabel||"Menu"),1)],8,Ao)):h("",!0),m(Io,{headers:r(n),navHeight:u.value},null,8,["headers","navHeight"])])],2)):h("",!0)}}),Eo=$(Ho,[["__scopeId","data-v-b8036a12"]]);function Fo(){const s=P(!1);function e(){s.value=!0,window.addEventListener("resize",n)}function t(){s.value=!1,window.removeEventListener("resize",n)}function o(){s.value?t():e()}function n(){window.outerWidth>=768&&t()}const i=oe();return U(()=>i.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:o}}const Oo={},Do={class:"VPSwitch",type:"button",role:"switch"},Uo={class:"check"},jo={key:0,class:"icon"};function Go(s,e){return a(),c("button",Do,[d("span",Uo,[s.$slots.default?(a(),c("span",jo,[l(s.$slots,"default",{},void 0,!0)])):h("",!0)])])}const zo=$(Oo,[["render",Go],["__scopeId","data-v-b19619af"]]),Oe=s=>(C("data-v-0f382965"),s=s(),H(),s),Ro=Oe(()=>d("span",{class:"vpi-sun sun"},null,-1)),qo=Oe(()=>d("span",{class:"vpi-moon moon"},null,-1)),Ko=_({__name:"VPSwitchAppearance",setup(s){const{isDark:e,theme:t}=L(),o=ne("toggle-appearance",()=>{e.value=!e.value}),n=P("");return me(()=>{n.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(i,u)=>(a(),k(zo,{title:n.value,class:"VPSwitchAppearance","aria-checked":r(e),onClick:r(o)},{default:p(()=>[Ro,qo]),_:1},8,["title","aria-checked","onClick"]))}}),ge=$(Ko,[["__scopeId","data-v-0f382965"]]),Wo={key:0,class:"VPNavBarAppearance"},Jo=_({__name:"VPNavBarAppearance",setup(s){const{site:e}=L();return(t,o)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",Wo,[m(ge)])):h("",!0)}}),Yo=$(Jo,[["__scopeId","data-v-0a1958c9"]]),ye=P();let De=!1,ce=0;function Xo(s){const e=P(!1);if(ae){!De&&Qo(),ce++;const t=U(ye,o=>{var n,i,u;o===s.el.value||(n=s.el.value)!=null&&n.contains(o)?(e.value=!0,(i=s.onFocus)==null||i.call(s)):(e.value=!1,(u=s.onBlur)==null||u.call(s))});te(()=>{t(),ce--,ce||Zo()})}return et(e)}function Qo(){document.addEventListener("focusin",Ue),De=!0,ye.value=document.activeElement}function Zo(){document.removeEventListener("focusin",Ue)}function Ue(){ye.value=document.activeElement}const xo={class:"VPMenuLink"},en=_({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=L();return(t,o)=>(a(),c("div",xo,[m(O,{class:N({active:r(K)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:p(()=>[D(w(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),re=$(en,[["__scopeId","data-v-19363427"]]),tn={class:"VPMenuGroup"},sn={key:0,class:"title"},on=_({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),c("div",tn,[e.text?(a(),c("p",sn,w(e.text),1)):h("",!0),(a(!0),c(M,null,E(e.items,o=>(a(),c(M,null,["link"in o?(a(),k(re,{key:0,item:o},null,8,["item"])):h("",!0)],64))),256))]))}}),nn=$(on,[["__scopeId","data-v-e815e7e2"]]),an={class:"VPMenu"},rn={key:0,class:"items"},ln=_({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),c("div",an,[e.items?(a(),c("div",rn,[(a(!0),c(M,null,E(e.items,o=>(a(),c(M,{key:JSON.stringify(o)},["link"in o?(a(),k(re,{key:0,item:o},null,8,["item"])):"component"in o?(a(),k(F(o.component),R({key:1,ref_for:!0},o.props),null,16)):(a(),k(nn,{key:2,text:o.text,items:o.items},null,8,["text","items"]))],64))),128))])):h("",!0),l(e.$slots,"default",{},void 0,!0)]))}}),cn=$(ln,[["__scopeId","data-v-0e22c6c5"]]),un=s=>(C("data-v-12ec5ee2"),s=s(),H(),s),dn=["aria-expanded","aria-label"],vn={key:0,class:"text"},pn=["innerHTML"],fn=un(()=>d("span",{class:"vpi-chevron-down text-icon"},null,-1)),hn={key:1,class:"vpi-more-horizontal icon"},_n={class:"menu"},mn=_({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=P(!1),t=P();Xo({el:t,onBlur:o});function o(){e.value=!1}return(n,i)=>(a(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>e.value=!0),onMouseleave:i[2]||(i[2]=u=>e.value=!1)},[d("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":n.label,onClick:i[0]||(i[0]=u=>e.value=!e.value)},[n.button||n.icon?(a(),c("span",vn,[n.icon?(a(),c("span",{key:0,class:N([n.icon,"option-icon"])},null,2)):h("",!0),n.button?(a(),c("span",{key:1,innerHTML:n.button},null,8,pn)):h("",!0),fn])):(a(),c("span",hn))],8,dn),d("div",_n,[m(cn,{items:n.items},{default:p(()=>[l(n.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Pe=$(mn,[["__scopeId","data-v-12ec5ee2"]]),kn=["href","aria-label","innerHTML"],$n=_({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=y(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(o,n)=>(a(),c("a",{class:"VPSocialLink no-icon",href:o.link,"aria-label":o.ariaLabel??(typeof o.icon=="string"?o.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,kn))}}),bn=$($n,[["__scopeId","data-v-974e0aed"]]),gn={class:"VPSocialLinks"},yn=_({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),c("div",gn,[(a(!0),c(M,null,E(e.links,({link:o,icon:n,ariaLabel:i})=>(a(),k(bn,{key:o,icon:n,link:o,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),Le=$(yn,[["__scopeId","data-v-52782a78"]]),Pn={key:0,class:"group translations"},Ln={class:"trans-title"},Vn={key:1,class:"group"},Sn={class:"item appearance"},wn={class:"label"},Tn={class:"appearance-action"},In={key:2,class:"group"},Nn={class:"item social-links"},Mn=_({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=L(),{localeLinks:o,currentLang:n}=X({correspondingLink:!0}),i=y(()=>o.value.length&&n.value.label||e.value.appearance||t.value.socialLinks);return(u,v)=>i.value?(a(),k(Pe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:p(()=>[r(o).length&&r(n).label?(a(),c("div",Pn,[d("p",Ln,w(r(n).label),1),(a(!0),c(M,null,E(r(o),f=>(a(),k(re,{key:f.link,item:f},null,8,["item"]))),128))])):h("",!0),r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",Vn,[d("div",Sn,[d("p",wn,w(r(t).darkModeSwitchLabel||"Appearance"),1),d("div",Tn,[m(ge)])])])):h("",!0),r(t).socialLinks?(a(),c("div",In,[d("div",Nn,[m(Le,{class:"social-links-list",links:r(t).socialLinks},null,8,["links"])])])):h("",!0)]),_:1})):h("",!0)}}),An=$(Mn,[["__scopeId","data-v-c34ef5aa"]]),Bn=s=>(C("data-v-6a2ed68b"),s=s(),H(),s),Cn=["aria-expanded"],Hn=Bn(()=>d("span",{class:"container"},[d("span",{class:"top"}),d("span",{class:"middle"}),d("span",{class:"bottom"})],-1)),En=[Hn],Fn=_({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),c("button",{type:"button",class:N(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=o=>e.$emit("click"))},En,10,Cn))}}),On=$(Fn,[["__scopeId","data-v-6a2ed68b"]]),Dn=["innerHTML"],Un=_({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=L();return(t,o)=>(a(),k(O,{class:N({VPNavBarMenuLink:!0,active:r(K)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:p(()=>[d("span",{innerHTML:t.item.text},null,8,Dn)]),_:1},8,["class","href","noIcon","target","rel"]))}}),jn=$(Un,[["__scopeId","data-v-c423e9f4"]]),Gn=_({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=L(),o=i=>"component"in i?!1:"link"in i?K(t.value.relativePath,i.link,!!e.item.activeMatch):i.items.some(o),n=y(()=>o(e.item));return(i,u)=>(a(),k(Pe,{class:N({VPNavBarMenuGroup:!0,active:r(K)(r(t).relativePath,i.item.activeMatch,!!i.item.activeMatch)||n.value}),button:i.item.text,items:i.item.items},null,8,["class","button","items"]))}}),zn=s=>(C("data-v-71183eee"),s=s(),H(),s),Rn={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},qn=zn(()=>d("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Kn=_({__name:"VPNavBarMenu",setup(s){const{theme:e}=L();return(t,o)=>r(e).nav?(a(),c("nav",Rn,[qn,(a(!0),c(M,null,E(r(e).nav,n=>(a(),c(M,{key:JSON.stringify(n)},["link"in n?(a(),k(jn,{key:0,item:n},null,8,["item"])):"component"in n?(a(),k(F(n.component),R({key:1,ref_for:!0},n.props),null,16)):(a(),k(Gn,{key:2,item:n},null,8,["item"]))],64))),128))])):h("",!0)}}),Wn=$(Kn,[["__scopeId","data-v-71183eee"]]);function Jn(s){const{localeIndex:e,theme:t}=L();function o(n){var A,B,T;const i=n.split("."),u=(A=t.value.search)==null?void 0:A.options,v=u&&typeof u=="object",f=v&&((T=(B=u.locales)==null?void 0:B[e.value])==null?void 0:T.translations)||null,g=v&&u.translations||null;let S=f,b=g,V=s;const I=i.pop();for(const G of i){let z=null;const J=V==null?void 0:V[G];J&&(z=V=J);const ie=b==null?void 0:b[G];ie&&(z=b=ie);const le=S==null?void 0:S[G];le&&(z=S=le),J||(V=z),ie||(b=z),le||(S=z)}return(S==null?void 0:S[I])??(b==null?void 0:b[I])??(V==null?void 0:V[I])??""}return o}const Yn=["aria-label"],Xn={class:"DocSearch-Button-Container"},Qn=d("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Zn={class:"DocSearch-Button-Placeholder"},xn=d("span",{class:"DocSearch-Button-Keys"},[d("kbd",{class:"DocSearch-Button-Key"}),d("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Ve=_({__name:"VPNavBarSearchButton",setup(s){const t=Jn({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(o,n)=>(a(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":r(t)("button.buttonAriaLabel")},[d("span",Xn,[Qn,d("span",Zn,w(r(t)("button.buttonText")),1)]),xn],8,Yn))}}),ea={class:"VPNavBarSearch"},ta={id:"local-search"},sa={key:1,id:"docsearch"},oa=_({__name:"VPNavBarSearch",setup(s){const e=tt(()=>st(()=>import("./VPLocalSearchBox.C9Q3Ai3D.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:o}=L(),n=P(!1),i=P(!1);q(()=>{});function u(){n.value||(n.value=!0,setTimeout(v,16))}function v(){const b=new Event("keydown");b.key="k",b.metaKey=!0,window.dispatchEvent(b),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function f(b){const V=b.target,I=V.tagName;return V.isContentEditable||I==="INPUT"||I==="SELECT"||I==="TEXTAREA"}const g=P(!1);de("k",b=>{(b.ctrlKey||b.metaKey)&&(b.preventDefault(),g.value=!0)}),de("/",b=>{f(b)||(b.preventDefault(),g.value=!0)});const S="local";return(b,V)=>{var I;return a(),c("div",ea,[r(S)==="local"?(a(),c(M,{key:0},[g.value?(a(),k(r(e),{key:0,onClose:V[0]||(V[0]=A=>g.value=!1)})):h("",!0),d("div",ta,[m(Ve,{onClick:V[1]||(V[1]=A=>g.value=!0)})])],64)):r(S)==="algolia"?(a(),c(M,{key:1},[n.value?(a(),k(r(t),{key:0,algolia:((I=r(o).search)==null?void 0:I.options)??r(o).algolia,onVnodeBeforeMount:V[2]||(V[2]=A=>i.value=!0)},null,8,["algolia"])):h("",!0),i.value?h("",!0):(a(),c("div",sa,[m(Ve,{onClick:u})]))],64)):h("",!0)])}}}),na=_({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=L();return(t,o)=>r(e).socialLinks?(a(),k(Le,{key:0,class:"VPNavBarSocialLinks",links:r(e).socialLinks},null,8,["links"])):h("",!0)}}),aa=$(na,[["__scopeId","data-v-edaebeb1"]]),ra=["href","rel","target"],ia={key:1},la={key:2},ca=_({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=L(),{hasSidebar:o}=j(),{currentLang:n}=X(),i=y(()=>{var f;return typeof t.value.logoLink=="string"?t.value.logoLink:(f=t.value.logoLink)==null?void 0:f.link}),u=y(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.rel}),v=y(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.target});return(f,g)=>(a(),c("div",{class:N(["VPNavBarTitle",{"has-sidebar":r(o)}])},[d("a",{class:"title",href:i.value??r($e)(r(n).link),rel:u.value,target:v.value},[l(f.$slots,"nav-bar-title-before",{},void 0,!0),r(t).logo?(a(),k(x,{key:0,class:"logo",image:r(t).logo},null,8,["image"])):h("",!0),r(t).siteTitle?(a(),c("span",ia,w(r(t).siteTitle),1)):r(t).siteTitle===void 0?(a(),c("span",la,w(r(e).title),1)):h("",!0),l(f.$slots,"nav-bar-title-after",{},void 0,!0)],8,ra)],2))}}),ua=$(ca,[["__scopeId","data-v-de953605"]]),da={class:"items"},va={class:"title"},pa=_({__name:"VPNavBarTranslations",setup(s){const{theme:e}=L(),{localeLinks:t,currentLang:o}=X({correspondingLink:!0});return(n,i)=>r(t).length&&r(o).label?(a(),k(Pe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:r(e).langMenuLabel||"Change language"},{default:p(()=>[d("div",da,[d("p",va,w(r(o).label),1),(a(!0),c(M,null,E(r(t),u=>(a(),k(re,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):h("",!0)}}),fa=$(pa,[["__scopeId","data-v-d3047050"]]),ha=s=>(C("data-v-37a6b570"),s=s(),H(),s),_a={class:"wrapper"},ma={class:"container"},ka={class:"title"},$a={class:"content"},ba={class:"content-body"},ga=ha(()=>d("div",{class:"divider"},[d("div",{class:"divider-line"})],-1)),ya=_({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const e=s,{y:t}=Me(),{hasSidebar:o}=j(),{frontmatter:n}=L(),i=P({});return me(()=>{i.value={"has-sidebar":o.value,home:n.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(u,v)=>(a(),c("div",{class:N(["VPNavBar",i.value])},[d("div",_a,[d("div",ma,[d("div",ka,[m(ua,null,{"nav-bar-title-before":p(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),d("div",$a,[d("div",ba,[l(u.$slots,"nav-bar-content-before",{},void 0,!0),m(oa,{class:"search"}),m(Wn,{class:"menu"}),m(fa,{class:"translations"}),m(Yo,{class:"appearance"}),m(aa,{class:"social-links"}),m(An,{class:"extra"}),l(u.$slots,"nav-bar-content-after",{},void 0,!0),m(On,{class:"hamburger",active:u.isScreenOpen,onClick:v[0]||(v[0]=f=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),ga],2))}}),Pa=$(ya,[["__scopeId","data-v-37a6b570"]]),La={key:0,class:"VPNavScreenAppearance"},Va={class:"text"},Sa=_({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=L();return(o,n)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",La,[d("p",Va,w(r(t).darkModeSwitchLabel||"Appearance"),1),m(ge)])):h("",!0)}}),wa=$(Sa,[["__scopeId","data-v-beb3f918"]]),Ta=_({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,o)=>(a(),k(O,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Ia=$(Ta,[["__scopeId","data-v-6f3d2ab5"]]),Na=_({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,o)=>(a(),k(O,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e)},{default:p(()=>[D(w(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),je=$(Na,[["__scopeId","data-v-eab7bfa1"]]),Ma={class:"VPNavScreenMenuGroupSection"},Aa={key:0,class:"title"},Ba=_({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),c("div",Ma,[e.text?(a(),c("p",Aa,w(e.text),1)):h("",!0),(a(!0),c(M,null,E(e.items,o=>(a(),k(je,{key:o.text,item:o},null,8,["item"]))),128))]))}}),Ca=$(Ba,[["__scopeId","data-v-60ca4288"]]),Ha=s=>(C("data-v-9b54e8b4"),s=s(),H(),s),Ea=["aria-controls","aria-expanded"],Fa=["innerHTML"],Oa=Ha(()=>d("span",{class:"vpi-plus button-icon"},null,-1)),Da=["id"],Ua={key:0,class:"item"},ja={key:1,class:"item"},Ga={key:2,class:"group"},za=_({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=P(!1),o=y(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function n(){t.value=!t.value}return(i,u)=>(a(),c("div",{class:N(["VPNavScreenMenuGroup",{open:t.value}])},[d("button",{class:"button","aria-controls":o.value,"aria-expanded":t.value,onClick:n},[d("span",{class:"button-text",innerHTML:i.text},null,8,Fa),Oa],8,Ea),d("div",{id:o.value,class:"items"},[(a(!0),c(M,null,E(i.items,v=>(a(),c(M,{key:JSON.stringify(v)},["link"in v?(a(),c("div",Ua,[m(je,{item:v},null,8,["item"])])):"component"in v?(a(),c("div",ja,[(a(),k(F(v.component),R({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),c("div",Ga,[m(Ca,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,Da)],2))}}),Ra=$(za,[["__scopeId","data-v-9b54e8b4"]]),qa={key:0,class:"VPNavScreenMenu"},Ka=_({__name:"VPNavScreenMenu",setup(s){const{theme:e}=L();return(t,o)=>r(e).nav?(a(),c("nav",qa,[(a(!0),c(M,null,E(r(e).nav,n=>(a(),c(M,{key:JSON.stringify(n)},["link"in n?(a(),k(Ia,{key:0,item:n},null,8,["item"])):"component"in n?(a(),k(F(n.component),R({key:1,ref_for:!0},n.props,{"screen-menu":""}),null,16)):(a(),k(Ra,{key:2,text:n.text||"",items:n.items},null,8,["text","items"]))],64))),128))])):h("",!0)}}),Wa=_({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=L();return(t,o)=>r(e).socialLinks?(a(),k(Le,{key:0,class:"VPNavScreenSocialLinks",links:r(e).socialLinks},null,8,["links"])):h("",!0)}}),Ge=s=>(C("data-v-d9ff2423"),s=s(),H(),s),Ja=Ge(()=>d("span",{class:"vpi-languages icon lang"},null,-1)),Ya=Ge(()=>d("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Xa={class:"list"},Qa=_({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=X({correspondingLink:!0}),o=P(!1);function n(){o.value=!o.value}return(i,u)=>r(e).length&&r(t).label?(a(),c("div",{key:0,class:N(["VPNavScreenTranslations",{open:o.value}])},[d("button",{class:"title",onClick:n},[Ja,D(" "+w(r(t).label)+" ",1),Ya]),d("ul",Xa,[(a(!0),c(M,null,E(r(e),v=>(a(),c("li",{key:v.link,class:"item"},[m(O,{class:"link",href:v.link},{default:p(()=>[D(w(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):h("",!0)}}),Za=$(Qa,[["__scopeId","data-v-d9ff2423"]]),xa={class:"container"},er=_({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=P(null),t=Ae(ae?document.body:null);return(o,n)=>(a(),k(he,{name:"fade",onEnter:n[0]||(n[0]=i=>t.value=!0),onAfterLeave:n[1]||(n[1]=i=>t.value=!1)},{default:p(()=>[o.open?(a(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[d("div",xa,[l(o.$slots,"nav-screen-content-before",{},void 0,!0),m(Ka,{class:"menu"}),m(Za,{class:"translations"}),m(wa,{class:"appearance"}),m(Wa,{class:"social-links"}),l(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):h("",!0)]),_:3}))}}),tr=$(er,[["__scopeId","data-v-c6c7bd45"]]),sr={key:0,class:"VPNav"},or=_({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:o}=Fo(),{frontmatter:n}=L(),i=y(()=>n.value.navbar!==!1);return Be("close-screen",t),ee(()=>{ae&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,v)=>i.value?(a(),c("header",sr,[m(Pa,{"is-screen-open":r(e),onToggleScreen:r(o)},{"nav-bar-title-before":p(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":p(()=>[l(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":p(()=>[l(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),m(tr,{open:r(e)},{"nav-screen-content-before":p(()=>[l(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":p(()=>[l(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):h("",!0)}}),nr=$(or,[["__scopeId","data-v-d52d372b"]]),ze=s=>(C("data-v-b74067ae"),s=s(),H(),s),ar=["role","tabindex"],rr=ze(()=>d("div",{class:"indicator"},null,-1)),ir=ze(()=>d("span",{class:"vpi-chevron-right caret-icon"},null,-1)),lr=[ir],cr={key:1,class:"items"},ur=_({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:o,isLink:n,isActiveLink:i,hasActiveLink:u,hasChildren:v,toggle:f}=wt(y(()=>e.item)),g=y(()=>v.value?"section":"div"),S=y(()=>n.value?"a":"div"),b=y(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),V=y(()=>n.value?void 0:"button"),I=y(()=>[[`level-${e.depth}`],{collapsible:o.value},{collapsed:t.value},{"is-link":n.value},{"is-active":i.value},{"has-active":u.value}]);function A(T){"key"in T&&T.key!=="Enter"||!e.item.link&&f()}function B(){e.item.link&&f()}return(T,G)=>{const z=W("VPSidebarItem",!0);return a(),k(F(g.value),{class:N(["VPSidebarItem",I.value])},{default:p(()=>[T.item.text?(a(),c("div",R({key:0,class:"item",role:V.value},ot(T.item.items?{click:A,keydown:A}:{},!0),{tabindex:T.item.items&&0}),[rr,T.item.link?(a(),k(O,{key:0,tag:S.value,class:"link",href:T.item.link,rel:T.item.rel,target:T.item.target},{default:p(()=>[(a(),k(F(b.value),{class:"text",innerHTML:T.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),k(F(b.value),{key:1,class:"text",innerHTML:T.item.text},null,8,["innerHTML"])),T.item.collapsed!=null&&T.item.items&&T.item.items.length?(a(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:nt(B,["enter"]),tabindex:"0"},lr,32)):h("",!0)],16,ar)):h("",!0),T.item.items&&T.item.items.length?(a(),c("div",cr,[T.depth<5?(a(!0),c(M,{key:0},E(T.item.items,J=>(a(),k(z,{key:J.text,item:J,depth:T.depth+1},null,8,["item","depth"]))),128)):h("",!0)])):h("",!0)]),_:1},8,["class"])}}}),dr=$(ur,[["__scopeId","data-v-b74067ae"]]),vr=_({__name:"VPSidebarGroup",props:{items:{}},setup(s){const e=P(!0);let t=null;return q(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),at(()=>{t!=null&&(clearTimeout(t),t=null)}),(o,n)=>(a(!0),c(M,null,E(o.items,i=>(a(),c("div",{key:i.text,class:N(["group",{"no-transition":e.value}])},[m(dr,{item:i,depth:0},null,8,["item"])],2))),128))}}),pr=$(vr,[["__scopeId","data-v-e3ecf1ec"]]),Re=s=>(C("data-v-f2245985"),s=s(),H(),s),fr=Re(()=>d("div",{class:"curtain"},null,-1)),hr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},_r=Re(()=>d("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),mr=_({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=j(),o=s,n=P(null),i=Ae(ae?document.body:null);U([o,n],()=>{var v;o.open?(i.value=!0,(v=n.value)==null||v.focus()):i.value=!1},{immediate:!0,flush:"post"});const u=P(0);return U(e,()=>{u.value+=1},{deep:!0}),(v,f)=>r(t)?(a(),c("aside",{key:0,class:N(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:n,onClick:f[0]||(f[0]=rt(()=>{},["stop"]))},[fr,d("nav",hr,[_r,l(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),k(pr,{items:r(e),key:u.value},null,8,["items"])),l(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):h("",!0)}}),kr=$(mr,[["__scopeId","data-v-f2245985"]]),$r=_({__name:"VPSkipLink",setup(s){const e=oe(),t=P();U(()=>e.path,()=>t.value.focus());function o({target:n}){const i=document.getElementById(decodeURIComponent(n.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(n,i)=>(a(),c(M,null,[d("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),d("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:o}," Skip to content ")],64))}}),br=$($r,[["__scopeId","data-v-a977b129"]]),gr=_({__name:"Layout",setup(s){const{isOpen:e,open:t,close:o}=j(),n=oe();U(()=>n.path,o),St(e,o);const{frontmatter:i}=L(),u=it(),v=y(()=>!!u["home-hero-image"]);return Be("hero-image-slot-exists",v),(f,g)=>{const S=W("Content");return r(i).layout!==!1?(a(),c("div",{key:0,class:N(["Layout",r(i).pageClass])},[l(f.$slots,"layout-top",{},void 0,!0),m(br),m(dt,{class:"backdrop",show:r(e),onClick:r(o)},null,8,["show","onClick"]),m(nr,null,{"nav-bar-title-before":p(()=>[l(f.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(f.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":p(()=>[l(f.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":p(()=>[l(f.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":p(()=>[l(f.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":p(()=>[l(f.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),m(Eo,{open:r(e),onOpenMenu:r(t)},null,8,["open","onOpenMenu"]),m(kr,{open:r(e)},{"sidebar-nav-before":p(()=>[l(f.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":p(()=>[l(f.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),m(_o,null,{"page-top":p(()=>[l(f.$slots,"page-top",{},void 0,!0)]),"page-bottom":p(()=>[l(f.$slots,"page-bottom",{},void 0,!0)]),"not-found":p(()=>[l(f.$slots,"not-found",{},void 0,!0)]),"home-hero-before":p(()=>[l(f.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":p(()=>[l(f.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(f.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(f.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(f.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(f.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":p(()=>[l(f.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":p(()=>[l(f.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":p(()=>[l(f.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":p(()=>[l(f.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":p(()=>[l(f.$slots,"doc-before",{},void 0,!0)]),"doc-after":p(()=>[l(f.$slots,"doc-after",{},void 0,!0)]),"doc-top":p(()=>[l(f.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":p(()=>[l(f.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":p(()=>[l(f.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":p(()=>[l(f.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":p(()=>[l(f.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(f.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(f.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(f.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),m(go),l(f.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),k(S,{key:1}))}}}),yr=$(gr,[["__scopeId","data-v-7e3343f7"]]),qe={Layout:yr,enhanceApp:({app:s})=>{s.component("Badge",lt)}},Ke="LiteyukiStudio",We="LiteyukiBot",Pr="https://api.github.com",Lr="https://api.liteyuki.icu/online",Vr="https://api.liteyuki.icu/count",Q=`https://github.com/${Ke}/${We}`,Se="https://starmap.liteyuki.icu",Y={getTotal:async()=>{try{return(await(await fetch(Vr)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(Lr)).json()).online}catch{return-1}},getGithubStats:async()=>{try{const e=await(await fetch(`${Pr}/repos/${Ke}/${We}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}},getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}}},Sr={en:{online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",size:"Size",plugins:"Plugins",resources:"Resources"},zh:{online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"叉子",issues:"开启议题",prs:"合并请求",size:"大小",plugins:"插件",resources:"主题资源"}};let we={};function wr(s){return s.includes("-")?s.split("-")[0]:s}function Tr(s){const e=wr(Te().site.value.lang);return we[s]=P(Sr[e][s]),we[s]}const Ir=s=>(C("data-v-99c551a6"),s=s(),H(),s),Nr={class:"stats-bar-content"},Mr={class:"stats-bar"},Ar={class:"stats-info"},Br=["href"],Cr={class:"section-tab"},Hr={class:"text"},Er={class:"number"},Fr=Ir(()=>d("div",{class:"starmap"},[d("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px"})],-1)),Or=_({__name:"StatsBar",setup(s){const{Layout:e}=qe;let t=null;const o={total:{name:"total",color:"#00a6ff",value:P(2005),link:Se},online:{name:"online",color:"#00ff00",value:P(1145),link:Se},stars:{name:"stars",color:"#ffcc00",value:P(1234),link:`${Q}/stargazers`},forks:{name:"forks",color:"#ff6600",value:P(9420),link:`${Q}/forks`},issues:{name:"issues",color:"#ff0000",value:P(1145),link:`${Q}/issues`},prs:{name:"prs",color:"#ff00ff",value:P(6543),link:`${Q}/pulls`},plugins:{name:"plugins",color:"#ff003e",value:P(1763),link:"./store/plugin"},resources:{name:"resources",color:"#ff00ff",value:P(6789),link:"./store/resource"}};async function n(){[o.online.value.value,o.total.value.value,o.plugins.value.value,o.resources.value.value,t]=await Promise.all([Y.getOnline(),Y.getTotal(),Y.getPluginNum(),Y.getResourceNum(),Y.getGithubStats()]),o.stars.value.value=(t==null?void 0:t.stars)||0,o.forks.value.value=(t==null?void 0:t.forks)||0,o.issues.value.value=(t==null?void 0:t.issues)||0,o.prs.value.value=(t==null?void 0:t.prs)||0}return q(()=>{const i=setInterval(n,1e4);n(),te(()=>{clearInterval(i)})}),(i,u)=>(a(),k(r(e),null,{"home-features-before":p(()=>[d("div",Nr,[d("div",Mr,[d("div",Ar,[(a(!0),c(M,null,E(Object.values(o),v=>(a(),c("div",{key:v.name,class:"section"},[d("a",{href:v.link,target:"_blank"},[d("div",Cr,[d("span",{class:"dot",style:ke({backgroundColor:v.color})},null,4),d("span",Hr,w(r(Tr)(v.name)),1)]),d("div",Er,w(v.value.value),1)],8,Br)]))),128))]),Fr])])]),_:1}))}}),Dr=$(Or,[["__scopeId","data-v-99c551a6"]]),jr={extends:qe,Layout:Dr};export{jr as R,Jn as c,L as u};