toshiki-notebook/assets/chunks/theme.dc9155a4.js

8 lines
68 KiB
JavaScript

import{d as g,o as a,c as i,r as d,n as L,a as N,t as P,_ as m,u as Ze,b as c,e as et,f as ze,g as tt,h as w,i as nt,j as st,w as j,k as Q,l as k,m as ot,p as E,q as at,P as ct,s as fe,v as K,x as ee,y as te,z as r,F as x,A as y,B as v,T as pe,C as p,D as oe,E as f,G as R,H as lt,I as He,J as it,K as U,L as Ee,M as rt,N as A,O as z,Q as H,R as ut,S as Be,U as me,V as ae,W as dt,X as J,Y as ge,Z as _t,$ as vt,a0 as ht,a1 as ft,a2 as pt,a3 as mt}from"./framework.a1bac067.js";const gt=g({__name:"VPBadge",props:{text:null,type:null},setup(e){return(t,n)=>(a(),i("span",{class:L(["VPBadge",e.type??"tip"])},[d(t.$slots,"default",{},()=>[N(P(e.text),1)],!0)],2))}});const yt=m(gt,[["__scopeId","data-v-b8591dbf"]]),V=Ze;function De(e){return nt()?(st(e),!0):!1}function Fe(e){return typeof e=="function"?e():c(e)}const bt=typeof window<"u",Oe=()=>{};function kt(...e){if(e.length!==1)return et(...e);const t=e[0];return typeof t=="function"?ze(tt(()=>({get:t,set:Oe}))):w(t)}function $t(e){var t;const n=Fe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ye=bt?window:void 0;function Pt(...e){let t,n,s,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,o]=e,t=ye):[t,n,s,o]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const l=[],u=()=>{l.forEach(S=>S()),l.length=0},h=(S,I,B,b)=>(S.addEventListener(I,B,b),()=>S.removeEventListener(I,B,b)),_=j(()=>[$t(t),Fe(o)],([S,I])=>{u(),S&&l.push(...n.flatMap(B=>s.map(b=>h(S,B,b,I))))},{immediate:!0,flush:"post"}),$=()=>{_(),u()};return De($),$}function Vt(){const e=w(!1);return ot()&&E(()=>{e.value=!0}),e}function wt(e){const t=Vt();return k(()=>(t.value,!!e()))}function _e(e,t={}){const{window:n=ye}=t,s=wt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=w(!1),u=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",h):o.removeListener(h))},h=()=>{s.value&&(u(),o=n.matchMedia(kt(e).value),l.value=!!(o!=null&&o.matches),o&&("addEventListener"in o?o.addEventListener("change",h):o.addListener(h)))};return Q(h),De(()=>u()),l}function xt({window:e=ye}={}){if(!e)return{x:w(0),y:w(0)};const t=w(e.scrollX),n=w(e.scrollY);return Pt(e,"scroll",()=>{t.value=e.scrollX,n.value=e.scrollY},{capture:!1,passive:!0}),{x:t,y:n}}function Ge(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),s=!0,setTimeout(()=>{s=!1},t))}}function ve(e){return/^\//.test(e)?e:`/${e}`}function Z(e){if(at(e))return e.replace(ct,"");const{site:t}=V(),{pathname:n,search:s,hash:o}=new URL(e,"http://example.com"),l=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,t.value.cleanUrls?"":".html")}${s}${o}`);return fe(l)}function Re(e,t){if(Array.isArray(e))return e;if(e==null)return[];t=ve(t);const n=Object.keys(e).sort((s,o)=>o.split("/").length-s.split("/").length).find(s=>t.startsWith(ve(s)));return n?e[n]:[]}function St(e){const t=[];let n=0;for(const s in e){const o=e[s];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function Lt(e){const t=[];function n(s){for(const o of s)o.text&&o.link&&t.push({text:o.text,link:o.link}),o.items&&n(o.items)}return n(e),t}function he(e,t){return Array.isArray(t)?t.some(n=>he(e,n)):K(e,t.link)?!0:t.items?he(e,t.items):!1}function D(){const e=ee(),{theme:t,frontmatter:n}=V(),s=_e("(min-width: 960px)"),o=w(!1),l=k(()=>{const C=t.value.sidebar,M=e.data.relativePath;return C?Re(C,M):[]}),u=k(()=>n.value.sidebar!==!1&&l.value.length>0&&n.value.layout!=="home"),h=k(()=>_?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),_=k(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),$=k(()=>u.value&&s.value),S=k(()=>u.value?St(l.value):[]);function I(){o.value=!0}function B(){o.value=!1}function b(){o.value?B():I()}return{isOpen:o,sidebar:l,sidebarGroups:S,hasSidebar:u,hasAside:_,leftAside:h,isSidebarEnabled:$,open:I,close:B,toggle:b}}function Mt(e,t){let n;Q(()=>{n=e.value?document.activeElement:void 0}),E(()=>{window.addEventListener("keyup",s)}),te(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&e.value&&(t(),n==null||n.focus())}}function Ct(e){const{page:t}=V(),n=w(!1),s=k(()=>e.value.collapsed!=null),o=k(()=>!!e.value.link),l=k(()=>K(t.value.relativePath,e.value.link)),u=k(()=>l.value?!0:e.value.items?he(t.value.relativePath,e.value.items):!1),h=k(()=>!!(e.value.items&&e.value.items.length));Q(()=>{n.value=!!(s.value&&e.value.collapsed)}),Q(()=>{(l.value||u.value)&&(n.value=!1)});function _(){s.value&&(n.value=!n.value)}return{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:u,hasChildren:h,toggle:_}}const It=g({__name:"VPSkipLink",setup(e){const t=ee(),n=w();j(()=>t.path,()=>n.value.focus());function s({target:o}){const l=document.querySelector(decodeURIComponent(o.hash));if(l){const u=()=>{l.removeAttribute("tabindex"),l.removeEventListener("blur",u)};l.setAttribute("tabindex","-1"),l.addEventListener("blur",u),l.focus(),window.scrollTo(0,0)}}return(o,l)=>(a(),i(x,null,[r("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),r("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}});const Bt=m(It,[["__scopeId","data-v-aa63c34f"]]),At={key:0,class:"VPBackdrop"},Tt=g({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(a(),y(pe,{name:"fade"},{default:v(()=>[e.show?(a(),i("div",At)):p("",!0)]),_:1}))}});const Nt=m(Tt,[["__scopeId","data-v-d0d4b99a"]]);function zt(){const e=w(!1);function t(){e.value=!0,window.addEventListener("resize",o)}function n(){e.value=!1,window.removeEventListener("resize",o)}function s(){e.value?n():t()}function o(){window.outerWidth>=768&&n()}const l=ee();return j(()=>l.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:s}}function ne({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:n,localeIndex:s,page:o,theme:l}=V(),u=k(()=>{var _,$;return{label:(_=n.value.locales[s.value])==null?void 0:_.label,link:(($=n.value.locales[s.value])==null?void 0:$.link)||(s.value==="root"?"/":`/${s.value}/`)}});return{localeLinks:k(()=>Object.entries(n.value.locales).flatMap(([_,$])=>e&&u.value.label===$.label?[]:{text:$.label,link:Ht($.link||(_==="root"?"/":`/${_}/`),l.value.i18nRouting!==!1&&t,o.value.relativePath.slice(u.value.link.length-1),!n.value.cleanUrls)})),currentLang:u}}function Ht(e,t,n,s){return t?e.replace(/\/$/,"")+ve(n.replace(/(^|\/)?index.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const Et=["src","alt"],Dt={inheritAttrs:!1},Ft=g({...Dt,__name:"VPImage",props:{image:null,alt:null},setup(e){return(t,n)=>{const s=R("VPImage",!0);return e.image?(a(),i(x,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),i("img",oe({key:0,class:"VPImage"},typeof e.image=="string"?t.$attrs:{...e.image,...t.$attrs},{src:c(fe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Et)):(a(),i(x,{key:1},[f(s,oe({class:"dark",image:e.image.dark,alt:e.image.alt},t.$attrs),null,16,["image","alt"]),f(s,oe({class:"light",image:e.image.light,alt:e.image.alt},t.$attrs),null,16,["image","alt"])],64))],64)):p("",!0)}}});const be=m(Ft,[["__scopeId","data-v-6f75ecd0"]]),Ot=["href"],Gt=g({__name:"VPNavBarTitle",setup(e){const{site:t,theme:n}=V(),{hasSidebar:s}=D(),{currentLang:o}=ne();return(l,u)=>(a(),i("div",{class:L(["VPNavBarTitle",{"has-sidebar":c(s)}])},[r("a",{class:"title",href:c(Z)(c(o).link)},[d(l.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(a(),y(be,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):p("",!0),c(n).siteTitle?(a(),i(x,{key:1},[N(P(c(n).siteTitle),1)],64)):c(n).siteTitle===void 0?(a(),i(x,{key:2},[N(P(c(t).title),1)],64)):p("",!0),d(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ot)],2))}});const Rt=m(Gt,[["__scopeId","data-v-75402b34"]]);const Ut={type:"button",class:"DocSearch DocSearch-Button","aria-label":"Search"},qt={class:"DocSearch-Button-Container"},jt=r("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[r("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Kt={class:"DocSearch-Button-Placeholder"},Wt=r("span",{class:"DocSearch-Button-Keys"},[r("kbd",{class:"DocSearch-Button-Key"}),r("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Ae=g({__name:"VPNavBarSearchButton",props:{placeholder:null},setup(e){return(t,n)=>(a(),i("button",Ut,[r("span",qt,[jt,r("span",Kt,P(e.placeholder),1)]),Wt]))}});const Yt={id:"local-search"},Xt={key:1,id:"docsearch"},Qt=g({__name:"VPNavBarSearch",setup(e){const t=()=>null,n=lt(()=>it(()=>import("./VPAlgoliaSearchBox.17ce1723.js"),["assets/chunks/VPAlgoliaSearchBox.17ce1723.js","assets/chunks/framework.a1bac067.js"])),{theme:s,localeIndex:o}=V(),l=w(!1),u=k(()=>{var C,M,T,F,se,W,Ie;const b=((C=s.value.search)==null?void 0:C.options)??s.value.algolia;return((se=(F=(T=(M=b==null?void 0:b.locales)==null?void 0:M[o.value])==null?void 0:T.translations)==null?void 0:F.button)==null?void 0:se.buttonText)||((Ie=(W=b==null?void 0:b.translations)==null?void 0:W.button)==null?void 0:Ie.buttonText)||"Search"}),h=()=>{const b="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var T;const M=document.createElement("link");M.id=b,M.rel="preconnect",M.href=`https://${(((T=s.value.search)==null?void 0:T.options)??s.value.algolia).appId}-dsn.algolia.net`,M.crossOrigin="",document.head.appendChild(M)})};E(()=>{h();const b=M=>{M.key==="k"&&(M.ctrlKey||M.metaKey)&&(M.preventDefault(),_(),C())},C=()=>{window.removeEventListener("keydown",b)};window.addEventListener("keydown",b),te(C)});function _(){l.value||(l.value=!0,setTimeout($,16))}function $(){const b=new Event("keydown");b.key="k",b.metaKey=!0,window.dispatchEvent(b),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||$()},16)}const S=w(!1),I=w("'Meta'");E(()=>{I.value=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"'⌘'":"'Ctrl'"});const B="algolia";return(b,C)=>{var M;return a(),i("div",{class:"VPNavBarSearch",style:He({"--vp-meta-key":I.value})},[c(B)==="local"?(a(),i(x,{key:0},[S.value?(a(),y(c(t),{key:0,placeholder:c(u),onClose:C[0]||(C[0]=T=>S.value=!1)},null,8,["placeholder"])):p("",!0),r("div",Yt,[f(Ae,{placeholder:c(u),onClick:C[1]||(C[1]=T=>S.value=!0)},null,8,["placeholder"])])],64)):c(B)==="algolia"?(a(),i(x,{key:1},[l.value?(a(),y(c(n),{key:0,algolia:((M=c(s).search)==null?void 0:M.options)??c(s).algolia},null,8,["algolia"])):(a(),i("div",Xt,[f(Ae,{placeholder:c(u),onClick:_},null,8,["placeholder"])]))],64)):p("",!0)],4)}}});const Jt={},Zt={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px"},en=r("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),tn=r("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"},null,-1),nn=[en,tn];function sn(e,t){return a(),i("svg",Zt,nn)}const on=m(Jt,[["render",sn]]),an=g({__name:"VPLink",props:{tag:null,href:null,noIcon:{type:Boolean},target:null,rel:null},setup(e){const t=e,n=k(()=>t.tag??t.href?"a":"span"),s=k(()=>t.href&&Ee.test(t.href));return(o,l)=>(a(),y(U(c(n)),{class:L(["VPLink",{link:e.href}]),href:e.href?c(Z)(e.href):void 0,target:e.target||(c(s)?"_blank":void 0),rel:e.rel||(c(s)?"noreferrer":void 0)},{default:v(()=>[d(o.$slots,"default",{},void 0,!0),c(s)&&!e.noIcon?(a(),y(on,{key:0,class:"icon"})):p("",!0)]),_:3},8,["class","href","target","rel"]))}});const O=m(an,[["__scopeId","data-v-a72b6228"]]),cn=g({__name:"VPNavBarMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y(O,{class:L({VPNavBarMenuLink:!0,active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,tabindex:"0"},{default:v(()=>[N(P(e.item.text),1)]),_:1},8,["class","href","target","rel"]))}});const ln=m(cn,[["__scopeId","data-v-fa5c4352"]]),ke=w();let Ue=!1,de=0;function rn(e){const t=w(!1);if(rt){!Ue&&un(),de++;const n=j(ke,s=>{var o,l,u;s===e.el.value||(o=e.el.value)!=null&&o.contains(s)?(t.value=!0,(l=e.onFocus)==null||l.call(e)):(t.value=!1,(u=e.onBlur)==null||u.call(e))});te(()=>{n(),de--,de||dn()})}return ze(t)}function un(){document.addEventListener("focusin",qe),Ue=!0,ke.value=document.activeElement}function dn(){document.removeEventListener("focusin",qe)}function qe(){ke.value=document.activeElement}const _n={},vn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},hn=r("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),fn=[hn];function pn(e,t){return a(),i("svg",vn,fn)}const je=m(_n,[["render",pn]]),mn={},gn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},yn=r("circle",{cx:"12",cy:"12",r:"2"},null,-1),bn=r("circle",{cx:"19",cy:"12",r:"2"},null,-1),kn=r("circle",{cx:"5",cy:"12",r:"2"},null,-1),$n=[yn,bn,kn];function Pn(e,t){return a(),i("svg",gn,$n)}const Vn=m(mn,[["render",Pn]]),wn={class:"VPMenuLink"},xn=g({__name:"VPMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),i("div",wn,[f(O,{class:L({active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel},{default:v(()=>[N(P(e.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const re=m(xn,[["__scopeId","data-v-dcf4ab55"]]),Sn={class:"VPMenuGroup"},Ln={key:0,class:"title"},Mn=g({__name:"VPMenuGroup",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",Sn,[e.text?(a(),i("p",Ln,P(e.text),1)):p("",!0),(a(!0),i(x,null,A(e.items,s=>(a(),i(x,null,["link"in s?(a(),y(re,{key:0,item:s},null,8,["item"])):p("",!0)],64))),256))]))}});const Cn=m(Mn,[["__scopeId","data-v-b48b6f40"]]),In={class:"VPMenu"},Bn={key:0,class:"items"},An=g({__name:"VPMenu",props:{items:null},setup(e){return(t,n)=>(a(),i("div",In,[e.items?(a(),i("div",Bn,[(a(!0),i(x,null,A(e.items,s=>(a(),i(x,{key:s.text},["link"in s?(a(),y(re,{key:0,item:s},null,8,["item"])):(a(),y(Cn,{key:1,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):p("",!0),d(t.$slots,"default",{},void 0,!0)]))}});const Tn=m(An,[["__scopeId","data-v-ed414532"]]),Nn=["aria-expanded","aria-label"],zn={key:0,class:"text"},Hn={class:"menu"},En=g({__name:"VPFlyout",props:{icon:null,button:null,label:null,items:null},setup(e){const t=w(!1),n=w();rn({el:n,onBlur:s});function s(){t.value=!1}return(o,l)=>(a(),i("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:l[1]||(l[1]=u=>t.value=!0),onMouseleave:l[2]||(l[2]=u=>t.value=!1)},[r("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":e.label,onClick:l[0]||(l[0]=u=>t.value=!t.value)},[e.button||e.icon?(a(),i("span",zn,[e.icon?(a(),y(U(e.icon),{key:0,class:"option-icon"})):p("",!0),N(" "+P(e.button)+" ",1),f(je,{class:"text-icon"})])):(a(),y(Vn,{key:1,class:"icon"}))],8,Nn),r("div",Hn,[f(Tn,{items:e.items},{default:v(()=>[d(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const $e=m(En,[["__scopeId","data-v-d146844d"]]),Dn=g({__name:"VPNavBarMenuGroup",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y($e,{class:L({VPNavBarMenuGroup:!0,active:c(K)(c(t).relativePath,e.item.activeMatch,!!e.item.activeMatch)}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),Fn=e=>(z("data-v-a0e7a303"),e=e(),H(),e),On={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Gn=Fn(()=>r("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Rn=g({__name:"VPNavBarMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",On,[Gn,(a(!0),i(x,null,A(c(t).nav,o=>(a(),i(x,{key:o.text},["link"in o?(a(),y(ln,{key:0,item:o},null,8,["item"])):(a(),y(Dn,{key:1,item:o},null,8,["item"]))],64))),128))])):p("",!0)}});const Un=m(Rn,[["__scopeId","data-v-a0e7a303"]]),qn={},jn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Kn=r("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),Wn=r("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),Yn=[Kn,Wn];function Xn(e,t){return a(),i("svg",jn,Yn)}const Ke=m(qn,[["render",Xn]]),Qn={class:"items"},Jn={class:"title"},Zn=g({__name:"VPNavBarTranslations",setup(e){const{theme:t}=V(),{localeLinks:n,currentLang:s}=ne({correspondingLink:!0});return(o,l)=>c(n).length&&c(s).label?(a(),y($e,{key:0,class:"VPNavBarTranslations",icon:Ke,label:c(t).langMenuLabel||"Change language"},{default:v(()=>[r("div",Qn,[r("p",Jn,P(c(s).label),1),(a(!0),i(x,null,A(c(n),u=>(a(),y(re,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):p("",!0)}});const es=m(Zn,[["__scopeId","data-v-9047dbea"]]);const ts={},ns={class:"VPSwitch",type:"button",role:"switch"},ss={class:"check"},os={key:0,class:"icon"};function as(e,t){return a(),i("button",ns,[r("span",ss,[e.$slots.default?(a(),i("span",os,[d(e.$slots,"default",{},void 0,!0)])):p("",!0)])])}const cs=m(ts,[["render",as],["__scopeId","data-v-fb9fb2bc"]]),ls={},is={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},rs=ut('<path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path>',9),us=[rs];function ds(e,t){return a(),i("svg",is,us)}const _s=m(ls,[["render",ds]]),vs={},hs={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},fs=r("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),ps=[fs];function ms(e,t){return a(),i("svg",hs,ps)}const gs=m(vs,[["render",ms]]),ys={title:"toggle dark mode"},bs=g({__name:"VPSwitchAppearance",setup(e){const{site:t,isDark:n}=V(),s=w(!1),o=typeof localStorage<"u"?l():()=>{};E(()=>{s.value=document.documentElement.classList.contains("dark")});function l(){const u=window.matchMedia("(prefers-color-scheme: dark)"),h=document.documentElement.classList;let _=localStorage.getItem(Be),$=t.value.appearance==="dark"&&_==null||(_==="auto"||_==null?u.matches:_==="dark");u.onchange=B=>{_==="auto"&&I($=B.matches)};function S(){I($=!$),_=$?u.matches?"auto":"dark":u.matches?"light":"auto",localStorage.setItem(Be,_)}function I(B){const b=document.createElement("style");b.type="text/css",b.appendChild(document.createTextNode(`:not(.VPSwitchAppearance):not(.VPSwitchAppearance *) {
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
-ms-transition: none !important;
transition: none !important;
}`)),document.head.appendChild(b),s.value=B,h[B?"add":"remove"]("dark"),window.getComputedStyle(b).opacity,document.head.removeChild(b)}return S}return j(s,u=>{n.value=u}),(u,h)=>(a(),i("label",ys,[f(cs,{class:"VPSwitchAppearance","aria-checked":s.value,onClick:c(o)},{default:v(()=>[f(_s,{class:"sun"}),f(gs,{class:"moon"})]),_:1},8,["aria-checked","onClick"])]))}});const Pe=m(bs,[["__scopeId","data-v-5314f25c"]]),ks={key:0,class:"VPNavBarAppearance"},$s=g({__name:"VPNavBarAppearance",setup(e){const{site:t}=V();return(n,s)=>c(t).appearance?(a(),i("div",ks,[f(Pe)])):p("",!0)}});const Ps=m($s,[["__scopeId","data-v-ba9af2dd"]]),Vs={discord:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discord</title><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>',facebook:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Facebook</title><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>',github:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>',instagram:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Instagram</title><path d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"/></svg>',linkedin:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LinkedIn</title><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>',mastodon:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Mastodon</title><path d="M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z"/></svg>',slack:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Slack</title><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>',twitter:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitter</title><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>',youtube:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>YouTube</title><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>'},ws=["href","aria-label","innerHTML"],xs=g({__name:"VPSocialLink",props:{icon:null,link:null},setup(e){const t=e,n=k(()=>typeof t.icon=="object"?t.icon.svg:Vs[t.icon]);return(s,o)=>(a(),i("a",{class:"VPSocialLink",href:e.link,"aria-label":typeof e.icon=="string"?e.icon:"",target:"_blank",rel:"noopener",innerHTML:c(n)},null,8,ws))}});const Ss=m(xs,[["__scopeId","data-v-f4bd6624"]]),Ls={class:"VPSocialLinks"},Ms=g({__name:"VPSocialLinks",props:{links:null},setup(e){return(t,n)=>(a(),i("div",Ls,[(a(!0),i(x,null,A(e.links,({link:s,icon:o})=>(a(),y(Ss,{key:s,icon:o,link:s},null,8,["icon","link"]))),128))]))}});const Ve=m(Ms,[["__scopeId","data-v-fea619a9"]]),Cs=g({__name:"VPNavBarSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y(Ve,{key:0,class:"VPNavBarSocialLinks",links:c(t).socialLinks},null,8,["links"])):p("",!0)}});const Is=m(Cs,[["__scopeId","data-v-49754fc9"]]),Bs={key:0,class:"group translations"},As={class:"trans-title"},Ts={key:1,class:"group"},Ns={class:"item appearance"},zs={class:"label"},Hs={class:"appearance-action"},Es={key:2,class:"group"},Ds={class:"item social-links"},Fs=g({__name:"VPNavBarExtra",setup(e){const{site:t,theme:n}=V(),{localeLinks:s,currentLang:o}=ne({correspondingLink:!0}),l=k(()=>s.value.length&&o.value.label||t.value.appearance||n.value.socialLinks);return(u,h)=>c(l)?(a(),y($e,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(a(),i("div",Bs,[r("p",As,P(c(o).label),1),(a(!0),i(x,null,A(c(s),_=>(a(),y(re,{key:_.link,item:_},null,8,["item"]))),128))])):p("",!0),c(t).appearance?(a(),i("div",Ts,[r("div",Ns,[r("p",zs,P(c(n).darkModeSwitchLabel||"Appearance"),1),r("div",Hs,[f(Pe)])])])):p("",!0),c(n).socialLinks?(a(),i("div",Es,[r("div",Ds,[f(Ve,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):p("",!0)]),_:1})):p("",!0)}});const Os=m(Fs,[["__scopeId","data-v-5ac0399f"]]),Gs=e=>(z("data-v-07c69bee"),e=e(),H(),e),Rs=["aria-expanded"],Us=Gs(()=>r("span",{class:"container"},[r("span",{class:"top"}),r("span",{class:"middle"}),r("span",{class:"bottom"})],-1)),qs=[Us],js=g({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(a(),i("button",{type:"button",class:L(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>t.$emit("click"))},qs,10,Rs))}});const Ks=m(js,[["__scopeId","data-v-07c69bee"]]),Ws=e=>(z("data-v-528d5544"),e=e(),H(),e),Ys={class:"container"},Xs={class:"title"},Qs={class:"content"},Js=Ws(()=>r("div",{class:"curtain"},null,-1)),Zs={class:"content-body"},eo=g({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:t}=xt(),{hasSidebar:n}=D(),s=k(()=>({"has-sidebar":n.value,fill:t.value>0}));return(o,l)=>(a(),i("div",{class:L(["VPNavBar",c(s)])},[r("div",Ys,[r("div",Xs,[f(Rt,null,{"nav-bar-title-before":v(()=>[d(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[d(o.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),r("div",Qs,[Js,r("div",Zs,[d(o.$slots,"nav-bar-content-before",{},void 0,!0),f(Qt,{class:"search"}),f(Un,{class:"menu"}),f(es,{class:"translations"}),f(Ps,{class:"appearance"}),f(Is,{class:"social-links"}),f(Os,{class:"extra"}),d(o.$slots,"nav-bar-content-after",{},void 0,!0),f(Ks,{class:"hamburger",active:e.isScreenOpen,onClick:l[0]||(l[0]=u=>o.$emit("toggle-screen"))},null,8,["active"])])])])],2))}});const to=m(eo,[["__scopeId","data-v-528d5544"]]);function no(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var we=!1;if(typeof window<"u"){var Te={get passive(){we=!0}};window.addEventListener("testPassive",null,Te),window.removeEventListener("testPassive",null,Te)}var ce=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),q=[],le=!1,xe=-1,Y=void 0,G=void 0,X=void 0,We=function(t){return q.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},ie=function(t){var n=t||window.event;return We(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},so=function(t){if(X===void 0){var n=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(n&&s>0){var o=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);X=document.body.style.paddingRight,document.body.style.paddingRight=o+s+"px"}}Y===void 0&&(Y=document.body.style.overflow,document.body.style.overflow="hidden")},oo=function(){X!==void 0&&(document.body.style.paddingRight=X,X=void 0),Y!==void 0&&(document.body.style.overflow=Y,Y=void 0)},ao=function(){return window.requestAnimationFrame(function(){if(G===void 0){G={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,n=t.scrollY,s=t.scrollX,o=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-n,document.body.style.left=-s,setTimeout(function(){return window.requestAnimationFrame(function(){var l=o-window.innerHeight;l&&n>=o&&(document.body.style.top=-(n+l))})},300)}})},co=function(){if(G!==void 0){var t=-parseInt(document.body.style.top,10),n=-parseInt(document.body.style.left,10);document.body.style.position=G.position,document.body.style.top=G.top,document.body.style.left=G.left,window.scrollTo(n,t),G=void 0}},lo=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},io=function(t,n){var s=t.targetTouches[0].clientY-xe;return We(t.target)?!1:n&&n.scrollTop===0&&s>0||lo(n)&&s<0?ie(t):(t.stopPropagation(),!0)},Ye=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!q.some(function(o){return o.targetElement===t})){var s={targetElement:t,options:n||{}};q=[].concat(no(q),[s]),ce?ao():so(n),ce&&(t.ontouchstart=function(o){o.targetTouches.length===1&&(xe=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&io(o,t)},le||(document.addEventListener("touchmove",ie,we?{passive:!1}:void 0),le=!0))}},Xe=function(){ce&&(q.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),le&&(document.removeEventListener("touchmove",ie,we?{passive:!1}:void 0),le=!1),xe=-1),ce?co():oo(),q=[]};const ro=g({__name:"VPNavScreenMenuLink",props:{text:null,link:null},setup(e){const t=me("close-screen");return(n,s)=>(a(),y(O,{class:"VPNavScreenMenuLink",href:e.link,onClick:c(t)},{default:v(()=>[N(P(e.text),1)]),_:1},8,["href","onClick"]))}});const uo=m(ro,[["__scopeId","data-v-4a38c9c0"]]),_o={},vo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ho=r("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),fo=[ho];function po(e,t){return a(),i("svg",vo,fo)}const mo=m(_o,[["render",po]]),go=g({__name:"VPNavScreenMenuGroupLink",props:{text:null,link:null},setup(e){const t=me("close-screen");return(n,s)=>(a(),y(O,{class:"VPNavScreenMenuGroupLink",href:e.link,onClick:c(t)},{default:v(()=>[N(P(e.text),1)]),_:1},8,["href","onClick"]))}});const Qe=m(go,[["__scopeId","data-v-5b16e6cf"]]),yo={class:"VPNavScreenMenuGroupSection"},bo={key:0,class:"title"},ko=g({__name:"VPNavScreenMenuGroupSection",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",yo,[e.text?(a(),i("p",bo,P(e.text),1)):p("",!0),(a(!0),i(x,null,A(e.items,s=>(a(),y(Qe,{key:s.text,text:s.text,link:s.link},null,8,["text","link"]))),128))]))}});const $o=m(ko,[["__scopeId","data-v-34625a7e"]]),Po=["aria-controls","aria-expanded"],Vo={class:"button-text"},wo=["id"],xo={key:1,class:"group"},So=g({__name:"VPNavScreenMenuGroup",props:{text:null,items:null},setup(e){const t=e,n=w(!1),s=k(()=>`NavScreenGroup-${t.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(l,u)=>(a(),i("div",{class:L(["VPNavScreenMenuGroup",{open:n.value}])},[r("button",{class:"button","aria-controls":c(s),"aria-expanded":n.value,onClick:o},[r("span",Vo,P(e.text),1),f(mo,{class:"button-icon"})],8,Po),r("div",{id:c(s),class:"items"},[(a(!0),i(x,null,A(e.items,h=>(a(),i(x,{key:h.text},["link"in h?(a(),i("div",{key:h.text,class:"item"},[f(Qe,{text:h.text,link:h.link},null,8,["text","link"])])):(a(),i("div",xo,[f($o,{text:h.text,items:h.items},null,8,["text","items"])]))],64))),128))],8,wo)],2))}});const Lo=m(So,[["__scopeId","data-v-a3dd94ad"]]),Mo={key:0,class:"VPNavScreenMenu"},Co=g({__name:"VPNavScreenMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",Mo,[(a(!0),i(x,null,A(c(t).nav,o=>(a(),i(x,{key:o.text},["link"in o?(a(),y(uo,{key:0,text:o.text,link:o.link},null,8,["text","link"])):(a(),y(Lo,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):p("",!0)}}),Io={key:0,class:"VPNavScreenAppearance"},Bo={class:"text"},Ao=g({__name:"VPNavScreenAppearance",setup(e){const{site:t,theme:n}=V();return(s,o)=>c(t).appearance?(a(),i("div",Io,[r("p",Bo,P(c(n).darkModeSwitchLabel||"Appearance"),1),f(Pe)])):p("",!0)}});const To=m(Ao,[["__scopeId","data-v-cefb5854"]]),No={class:"list"},zo=g({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:t,currentLang:n}=ne({correspondingLink:!0}),s=w(!1);function o(){s.value=!s.value}return(l,u)=>c(t).length&&c(n).label?(a(),i("div",{key:0,class:L(["VPNavScreenTranslations",{open:s.value}])},[r("button",{class:"title",onClick:o},[f(Ke,{class:"icon lang"}),N(" "+P(c(n).label)+" ",1),f(je,{class:"icon chevron"})]),r("ul",No,[(a(!0),i(x,null,A(c(t),h=>(a(),i("li",{key:h.link,class:"item"},[f(O,{class:"link",href:h.link},{default:v(()=>[N(P(h.text),1)]),_:2},1032,["href"])]))),128))])],2)):p("",!0)}});const Ho=m(zo,[["__scopeId","data-v-4d5840eb"]]),Eo=g({__name:"VPNavScreenSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y(Ve,{key:0,class:"VPNavScreenSocialLinks",links:c(t).socialLinks},null,8,["links"])):p("",!0)}}),Do={class:"container"},Fo=g({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const t=w(null);function n(){Ye(t.value,{reserveScrollBarGap:!0})}function s(){Xe()}return(o,l)=>(a(),y(pe,{name:"fade",onEnter:n,onAfterLeave:s},{default:v(()=>[e.open?(a(),i("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:t},[r("div",Do,[d(o.$slots,"nav-screen-content-before",{},void 0,!0),f(Co,{class:"menu"}),f(Ho,{class:"translations"}),f(To,{class:"appearance"}),f(Eo,{class:"social-links"}),d(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):p("",!0)]),_:3}))}});const Oo=m(Fo,[["__scopeId","data-v-8337e0f7"]]),Go={class:"VPNav"},Ro=g({__name:"VPNav",setup(e){const{isScreenOpen:t,closeScreen:n,toggleScreen:s}=zt();return ae("close-screen",n),(o,l)=>(a(),i("header",Go,[f(to,{"is-screen-open":c(t),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[d(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[d(o.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[d(o.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[d(o.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),f(Oo,{open:c(t)},{"nav-screen-content-before":v(()=>[d(o.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[d(o.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])]))}});const Uo=m(Ro,[["__scopeId","data-v-d58b459a"]]),qo={},jo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Ko=r("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),Wo=r("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),Yo=r("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),Xo=r("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),Qo=[Ko,Wo,Yo,Xo];function Jo(e,t){return a(),i("svg",jo,Qo)}const Zo=m(qo,[["render",Jo]]);function ea(){const{hasSidebar:e}=D(),t=_e("(min-width: 960px)"),n=_e("(min-width: 1280px)");return{isAsideEnabled:k(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const ta=71;function Se(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function Le(e){const t=[...document.querySelectorAll(".VPDoc h2,h3,h4,h5,h6")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{title:na(n),link:"#"+n.id,level:s}});return sa(t,e)}function na(e){let t="";for(const n of e.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor"))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function sa(e,t){if(t===!1)return[];const n=(typeof t=="object"&&!Array.isArray(t)?t.level:t)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;e=e.filter(u=>u.level>=s&&u.level<=o);const l=[];e:for(let u=0;u<e.length;u++){const h=e[u];if(u===0)l.push(h);else{for(let _=u-1;_>=0;_--){const $=e[_];if($.level<h.level){($.children||($.children=[])).push(h);continue e}}l.push(h)}}return l}function oa(e,t){const{isAsideEnabled:n}=ea(),s=Ge(l,100);let o=null;E(()=>{requestAnimationFrame(l),window.addEventListener("scroll",s)}),dt(()=>{u(location.hash)}),te(()=>{window.removeEventListener("scroll",s)});function l(){if(!n.value)return;const h=[].slice.call(e.value.querySelectorAll(".outline-link")),_=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(b=>h.some(C=>C.hash===b.hash&&b.offsetParent!==null)),$=window.scrollY,S=window.innerHeight,I=document.body.offsetHeight,B=Math.abs($+S-I)<1;if(_.length&&B){u(_[_.length-1].hash);return}for(let b=0;b<_.length;b++){const C=_[b],M=_[b+1],[T,F]=aa(b,C,M);if(T){u(F);return}}}function u(h){o&&o.classList.remove("active"),h!==null&&(o=e.value.querySelector(`a[href="${decodeURIComponent(h)}"]`));const _=o;_?(_.classList.add("active"),t.value.style.top=_.offsetTop+33+"px",t.value.style.opacity="1"):(t.value.style.top="33px",t.value.style.opacity="0")}}function Ne(e){return e.parentElement.offsetTop-ta}function aa(e,t,n){const s=window.scrollY;return e===0&&s===0?[!0,null]:s<Ne(t)?[!1,null]:!n||s<Ne(n)?[!0,t.hash]:[!1,null]}const ca=["href","title"],la=g({__name:"VPDocOutlineItem",props:{headers:null,root:{type:Boolean}},setup(e){function t({target:n}){const s="#"+n.href.split("#")[1],o=document.querySelector(decodeURIComponent(s));o==null||o.focus()}return(n,s)=>{const o=R("VPDocOutlineItem",!0);return a(),i("ul",{class:L(e.root?"root":"nested")},[(a(!0),i(x,null,A(e.headers,({children:l,link:u,title:h})=>(a(),i("li",null,[r("a",{class:"outline-link",href:u,onClick:t,title:h},P(h),9,ca),l!=null&&l.length?(a(),y(o,{key:0,headers:l},null,8,["headers"])):p("",!0)]))),256))],2)}}});const Me=m(la,[["__scopeId","data-v-65e3602e"]]),ia={},ra={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ua=r("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),da=[ua];function _a(e,t){return a(),i("svg",ra,da)}const Ce=m(ia,[["render",_a]]),va=g({__name:"VPLocalNavOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=w(!1),o=w(0),l=w();J(()=>{s.value=!1});function u(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-64,0)}function h(S){S.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),_t(()=>{s.value=!1}))}function _(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}const $=ge([]);return J(()=>{$.value=Le(t.value.outline??n.value.outline)}),(S,I)=>(a(),i("div",{class:"VPLocalNavOutlineDropdown",style:He({"--vp-vh":o.value+"px"})},[c($).length>0?(a(),i("button",{key:0,onClick:u,class:L({open:s.value})},[N(P(c(Se)(c(n)))+" ",1),f(Ce,{class:"icon"})],2)):(a(),i("button",{key:1,onClick:_},P(c(n).returnToTopLabel||"Return to top"),1)),f(pe,{name:"flyout"},{default:v(()=>[s.value?(a(),i("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[r("a",{class:"top-link",href:"#",onClick:_},P(c(n).returnToTopLabel||"Return to top"),1),f(Me,{headers:c($)},null,8,["headers"])],512)):p("",!0)]),_:1})],4))}});const ha=m(va,[["__scopeId","data-v-ba7b08b9"]]),fa={key:0,class:"VPLocalNav"},pa=["aria-expanded"],ma={class:"menu-text"},ga=g({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:t,frontmatter:n}=V(),{hasSidebar:s}=D();return(o,l)=>c(n).layout!=="home"?(a(),i("div",fa,[c(s)?(a(),i("button",{key:0,class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:l[0]||(l[0]=u=>o.$emit("open-menu"))},[f(Zo,{class:"menu-icon"}),r("span",ma,P(c(t).sidebarMenuLabel||"Menu"),1)],8,pa)):p("",!0),f(ha)])):p("",!0)}});const ya=m(ga,[["__scopeId","data-v-8c9577da"]]),ba=e=>(z("data-v-a2d5c4ca"),e=e(),H(),e),ka=["role","tabindex"],$a=ba(()=>r("div",{class:"indicator"},null,-1)),Pa=["onKeydown"],Va={key:1,class:"items"},wa=g({__name:"VPSidebarItem",props:{item:null,depth:null},setup(e){const t=e,{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:u,hasChildren:h,toggle:_}=Ct(k(()=>t.item)),$=k(()=>h.value?"section":"div"),S=k(()=>o.value?"a":"div"),I=k(()=>h.value?t.depth+2===7?"p":`h${t.depth+2}`:"p"),B=k(()=>o.value?void 0:"button"),b=k(()=>[[`level-${t.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":l.value},{"has-active":u.value}]);function C(T){"key"in T&&T.key!=="Enter"||!t.item.link&&_()}function M(){t.item.link&&_()}return(T,F)=>{const se=R("VPSidebarItem",!0);return a(),y(U(c($)),{class:L(["VPSidebarItem",c(b)])},{default:v(()=>[e.item.text?(a(),i("div",oe({key:0,class:"item",role:c(B)},ht(e.item.items?{click:C,keydown:C}:{},!0),{tabindex:e.item.items&&0}),[$a,e.item.link?(a(),y(O,{key:0,tag:c(S),class:"link",href:e.item.link},{default:v(()=>[(a(),y(U(c(I)),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href"])):(a(),y(U(c(I)),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null?(a(),i("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:vt(M,["enter"]),tabindex:"0"},[f(Ce,{class:"caret-icon"})],40,Pa)):p("",!0)],16,ka)):p("",!0),e.item.items&&e.item.items.length?(a(),i("div",Va,[e.depth<5?(a(!0),i(x,{key:0},A(e.item.items,W=>(a(),y(se,{key:W.text,item:W,depth:e.depth+1},null,8,["item","depth"]))),128)):p("",!0)])):p("",!0)]),_:1},8,["class"])}}});const xa=m(wa,[["__scopeId","data-v-a2d5c4ca"]]),Je=e=>(z("data-v-c7a4f3fe"),e=e(),H(),e),Sa=Je(()=>r("div",{class:"curtain"},null,-1)),La={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Ma=Je(()=>r("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Ca=g({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const t=e,{sidebarGroups:n,hasSidebar:s}=D();let o=w(null);function l(){Ye(o.value,{reserveScrollBarGap:!0})}function u(){Xe()}return ft(async()=>{var h;t.open?(l(),(h=o.value)==null||h.focus()):u()}),(h,_)=>c(s)?(a(),i("aside",{key:0,class:L(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:o,onClick:_[0]||(_[0]=pt(()=>{},["stop"]))},[Sa,r("nav",La,[Ma,d(h.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),i(x,null,A(c(n),$=>(a(),i("div",{key:$.text,class:"group"},[f(xa,{item:$,depth:0},null,8,["item"])]))),128)),d(h.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):p("",!0)}});const Ia=m(Ca,[["__scopeId","data-v-c7a4f3fe"]]),Ba={},Aa={class:"VPPage"};function Ta(e,t){const n=R("Content");return a(),i("div",Aa,[d(e.$slots,"page-top"),f(n),d(e.$slots,"page-bottom")])}const Na=m(Ba,[["render",Ta]]),za=g({__name:"VPButton",props:{tag:null,size:null,theme:null,text:null,href:null},setup(e){const t=e,n=k(()=>[t.size??"medium",t.theme??"brand"]),s=k(()=>t.href&&Ee.test(t.href)),o=k(()=>t.tag?t.tag:t.href?"a":"button");return(l,u)=>(a(),y(U(c(o)),{class:L(["VPButton",c(n)]),href:e.href?c(Z)(e.href):void 0,target:c(s)?"_blank":void 0,rel:c(s)?"noreferrer":void 0},{default:v(()=>[N(P(e.text),1)]),_:1},8,["class","href","target","rel"]))}});const Ha=m(za,[["__scopeId","data-v-30800ca8"]]),Ea=e=>(z("data-v-9e7a9339"),e=e(),H(),e),Da={class:"container"},Fa={class:"main"},Oa={key:0,class:"name"},Ga={class:"clip"},Ra={key:1,class:"text"},Ua={key:2,class:"tagline"},qa={key:0,class:"actions"},ja={key:0,class:"image"},Ka={class:"image-container"},Wa=Ea(()=>r("div",{class:"image-bg"},null,-1)),Ya=g({__name:"VPHero",props:{name:null,text:null,tagline:null,image:null,actions:null},setup(e){const t=me("hero-image-slot-exists");return(n,s)=>(a(),i("div",{class:L(["VPHero",{"has-image":e.image||c(t)}])},[r("div",Da,[r("div",Fa,[d(n.$slots,"home-hero-info",{},()=>[e.name?(a(),i("h1",Oa,[r("span",Ga,P(e.name),1)])):p("",!0),e.text?(a(),i("p",Ra,P(e.text),1)):p("",!0),e.tagline?(a(),i("p",Ua,P(e.tagline),1)):p("",!0)],!0),e.actions?(a(),i("div",qa,[(a(!0),i(x,null,A(e.actions,o=>(a(),i("div",{key:o.link,class:"action"},[f(Ha,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):p("",!0)]),e.image||c(t)?(a(),i("div",ja,[r("div",Ka,[Wa,d(n.$slots,"home-hero-image",{},()=>[e.image?(a(),y(be,{key:0,class:"image-src",image:e.image},null,8,["image"])):p("",!0)],!0)])])):p("",!0)])],2))}});const Xa=m(Ya,[["__scopeId","data-v-9e7a9339"]]),Qa=g({__name:"VPHomeHero",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).hero?(a(),y(Xa,{key:0,class:"VPHomeHero",name:c(t).hero.name,text:c(t).hero.text,tagline:c(t).hero.tagline,image:c(t).hero.image,actions:c(t).hero.actions},{"home-hero-info":v(()=>[d(n.$slots,"home-hero-info")]),"home-hero-image":v(()=>[d(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):p("",!0)}}),Ja={},Za={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ec=r("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),tc=[ec];function nc(e,t){return a(),i("svg",Za,tc)}const sc=m(Ja,[["render",nc]]),oc={class:"box"},ac=["innerHTML"],cc=["innerHTML"],lc=["innerHTML"],ic={key:3,class:"link-text"},rc={class:"link-text-value"},uc=g({__name:"VPFeature",props:{icon:null,title:null,details:null,link:null,linkText:null},setup(e){return(t,n)=>(a(),y(O,{class:"VPFeature",href:e.link,"no-icon":!0},{default:v(()=>[r("article",oc,[typeof e.icon=="object"?(a(),y(be,{key:0,image:e.icon,alt:e.icon.alt,height:e.icon.height,width:e.icon.width},null,8,["image","alt","height","width"])):e.icon?(a(),i("div",{key:1,class:"icon",innerHTML:e.icon},null,8,ac)):p("",!0),r("h2",{class:"title",innerHTML:e.title},null,8,cc),e.details?(a(),i("p",{key:2,class:"details",innerHTML:e.details},null,8,lc)):p("",!0),e.linkText?(a(),i("div",ic,[r("p",rc,[N(P(e.linkText)+" ",1),f(sc,{class:"link-text-icon"})])])):p("",!0)])]),_:1},8,["href"]))}});const dc=m(uc,[["__scopeId","data-v-c4ab7714"]]),_c={key:0,class:"VPFeatures"},vc={class:"container"},hc={class:"items"},fc=g({__name:"VPFeatures",props:{features:null},setup(e){const t=e,n=k(()=>{const s=t.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s%2===0)return"grid-4"}else return});return(s,o)=>e.features?(a(),i("div",_c,[r("div",vc,[r("div",hc,[(a(!0),i(x,null,A(e.features,l=>(a(),i("div",{key:l.title,class:L(["item",[c(n)]])},[f(dc,{icon:l.icon,title:l.title,details:l.details,link:l.link,"link-text":l.linkText},null,8,["icon","title","details","link","link-text"])],2))),128))])])])):p("",!0)}});const pc=m(fc,[["__scopeId","data-v-1cc0eb36"]]),mc=g({__name:"VPHomeFeatures",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).features?(a(),y(pc,{key:0,class:"VPHomeFeatures",features:c(t).features},null,8,["features"])):p("",!0)}}),gc={class:"VPHome"},yc=g({__name:"VPHome",setup(e){return(t,n)=>{const s=R("Content");return a(),i("div",gc,[d(t.$slots,"home-hero-before",{},void 0,!0),f(Qa,null,{"home-hero-info":v(()=>[d(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[d(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),d(t.$slots,"home-hero-after",{},void 0,!0),d(t.$slots,"home-features-before",{},void 0,!0),f(mc),d(t.$slots,"home-features-after",{},void 0,!0),f(s)])}}});const bc=m(yc,[["__scopeId","data-v-0cc58ac0"]]),kc=e=>(z("data-v-7c84bbba"),e=e(),H(),e),$c={class:"content"},Pc={class:"outline-title"},Vc={"aria-labelledby":"doc-outline-aria-label"},wc=kc(()=>r("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),xc=g({__name:"VPDocAsideOutline",setup(e){const{frontmatter:t,theme:n}=V(),s=ge([]);J(()=>{s.value=Le(t.value.outline??n.value.outline)});const o=w(),l=w();return oa(o,l),(u,h)=>(a(),i("div",{class:L(["VPDocAsideOutline",{"has-outline":c(s).length>0}]),ref_key:"container",ref:o},[r("div",$c,[r("div",{class:"outline-marker",ref_key:"marker",ref:l},null,512),r("div",Pc,P(c(Se)(c(n))),1),r("nav",Vc,[wc,f(Me,{headers:c(s),root:!0},null,8,["headers"])])])],2))}});const Sc=m(xc,[["__scopeId","data-v-7c84bbba"]]),Lc={class:"VPDocAsideCarbonAds"},Mc=g({__name:"VPDocAsideCarbonAds",props:{carbonAds:null},setup(e){const t=()=>null;return(n,s)=>(a(),i("div",Lc,[f(c(t),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),Cc=e=>(z("data-v-ac259e18"),e=e(),H(),e),Ic={class:"VPDocAside"},Bc=Cc(()=>r("div",{class:"spacer"},null,-1)),Ac=g({__name:"VPDocAside",setup(e){const{theme:t}=V();return(n,s)=>(a(),i("div",Ic,[d(n.$slots,"aside-top",{},void 0,!0),d(n.$slots,"aside-outline-before",{},void 0,!0),f(Sc),d(n.$slots,"aside-outline-after",{},void 0,!0),Bc,d(n.$slots,"aside-ads-before",{},void 0,!0),c(t).carbonAds?(a(),y(Mc,{key:0,"carbon-ads":c(t).carbonAds},null,8,["carbon-ads"])):p("",!0),d(n.$slots,"aside-ads-after",{},void 0,!0),d(n.$slots,"aside-bottom",{},void 0,!0)]))}});const Tc=m(Ac,[["__scopeId","data-v-ac259e18"]]);function Nc(){const{theme:e,page:t}=V();return k(()=>{const{text:n="Edit this page",pattern:s=""}=e.value.editLink||{};let o;return typeof s=="function"?o=s(t.value):o=s.replace(/:path/g,t.value.filePath),{url:o,text:n}})}function zc(){const{page:e,theme:t,frontmatter:n}=V();return k(()=>{var u,h,_,$;const s=Re(t.value.sidebar,e.value.relativePath),o=Lt(s),l=o.findIndex(S=>K(e.value.relativePath,S.link));return{prev:n.value.prev===!1?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((u=o[l-1])==null?void 0:u.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((h=o[l-1])==null?void 0:h.link)},next:n.value.next===!1?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((_=o[l+1])==null?void 0:_.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??(($=o[l+1])==null?void 0:$.link)}}})}const Hc={},Ec={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Dc=r("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Fc=r("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),Oc=[Dc,Fc];function Gc(e,t){return a(),i("svg",Ec,Oc)}const Rc=m(Hc,[["render",Gc]]),Uc={class:"VPLastUpdated"},qc=["datetime"],jc=g({__name:"VPDocFooterLastUpdated",setup(e){const{theme:t,page:n,lang:s}=V(),o=k(()=>new Date(n.value.lastUpdated)),l=k(()=>o.value.toISOString()),u=w("");return E(()=>{Q(()=>{u.value=o.value.toLocaleString(s.value)})}),(h,_)=>(a(),i("p",Uc,[N(P(c(t).lastUpdatedText||"Last updated")+": ",1),r("time",{datetime:c(l)},P(u.value),9,qc)]))}});const Kc=m(jc,[["__scopeId","data-v-d35b8cb4"]]),Wc={key:0,class:"VPDocFooter"},Yc={key:0,class:"edit-info"},Xc={key:0,class:"edit-link"},Qc={key:1,class:"last-updated"},Jc={key:1,class:"prev-next"},Zc={class:"pager"},el=["href"],tl=["innerHTML"],nl=["innerHTML"],sl=["href"],ol=["innerHTML"],al=["innerHTML"],cl=g({__name:"VPDocFooter",setup(e){const{theme:t,page:n,frontmatter:s}=V(),o=Nc(),l=zc(),u=k(()=>t.value.editLink&&s.value.editLink!==!1),h=k(()=>n.value.lastUpdated&&s.value.lastUpdated!==!1),_=k(()=>u.value||h.value||l.value.prev||l.value.next);return($,S)=>{var I,B,b,C,M,T,F;return c(_)?(a(),i("footer",Wc,[d($.$slots,"doc-footer-before",{},void 0,!0),c(u)||c(h)?(a(),i("div",Yc,[c(u)?(a(),i("div",Xc,[f(O,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[f(Rc,{class:"edit-link-icon","aria-label":"edit icon"}),N(" "+P(c(o).text),1)]),_:1},8,["href"])])):p("",!0),c(h)?(a(),i("div",Qc,[f(Kc)])):p("",!0)])):p("",!0),(I=c(l).prev)!=null&&I.link||(B=c(l).next)!=null&&B.link?(a(),i("div",Jc,[r("div",Zc,[(b=c(l).prev)!=null&&b.link?(a(),i("a",{key:0,class:"pager-link prev",href:c(Z)(c(l).prev.link)},[r("span",{class:"desc",innerHTML:((C=c(t).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,tl),r("span",{class:"title",innerHTML:c(l).prev.text},null,8,nl)],8,el)):p("",!0)]),r("div",{class:L(["pager",{"has-prev":(M=c(l).prev)==null?void 0:M.link}])},[(T=c(l).next)!=null&&T.link?(a(),i("a",{key:0,class:"pager-link next",href:c(Z)(c(l).next.link)},[r("span",{class:"desc",innerHTML:((F=c(t).docFooter)==null?void 0:F.next)||"Next page"},null,8,ol),r("span",{class:"title",innerHTML:c(l).next.text},null,8,al)],8,sl)):p("",!0)],2)])):p("",!0)])):p("",!0)}}});const ll=m(cl,[["__scopeId","data-v-2b4f87e4"]]),il={key:0,class:"VPDocOutlineDropdown"},rl={key:0,class:"items"},ul=g({__name:"VPDocOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=w(!1);J(()=>{s.value=!1});const o=ge([]);return J(()=>{o.value=Le(t.value.outline??n.value.outline)}),(l,u)=>c(o).length>0?(a(),i("div",il,[r("button",{onClick:u[0]||(u[0]=h=>s.value=!s.value),class:L({open:s.value})},[N(P(c(Se)(c(n)))+" ",1),f(Ce,{class:"icon"})],2),s.value?(a(),i("div",rl,[f(Me,{headers:c(o)},null,8,["headers"])])):p("",!0)])):p("",!0)}});const dl=m(ul,[["__scopeId","data-v-7fff1eb3"]]),_l=e=>(z("data-v-4c07d6a3"),e=e(),H(),e),vl={class:"container"},hl=_l(()=>r("div",{class:"aside-curtain"},null,-1)),fl={class:"aside-container"},pl={class:"aside-content"},ml={class:"content"},gl={class:"content-container"},yl={class:"main"},bl=g({__name:"VPDoc",setup(e){const t=ee(),{hasSidebar:n,hasAside:s,leftAside:o}=D(),l=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(u,h)=>{const _=R("Content");return a(),i("div",{class:L(["VPDoc",{"has-sidebar":c(n),"has-aside":c(s)}])},[d(u.$slots,"doc-top",{},void 0,!0),r("div",vl,[c(s)?(a(),i("div",{key:0,class:L(["aside",{"left-aside":c(o)}])},[hl,r("div",fl,[r("div",pl,[f(Tc,null,{"aside-top":v(()=>[d(u.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[d(u.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[d(u.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[d(u.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[d(u.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[d(u.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):p("",!0),r("div",ml,[r("div",gl,[d(u.$slots,"doc-before",{},void 0,!0),f(dl),r("main",yl,[f(_,{class:L(["vp-doc",c(l)])},null,8,["class"])]),f(ll,null,{"doc-footer-before":v(()=>[d(u.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),d(u.$slots,"doc-after",{},void 0,!0)])])]),d(u.$slots,"doc-bottom",{},void 0,!0)],2)}}});const kl=m(bl,[["__scopeId","data-v-4c07d6a3"]]),ue=e=>(z("data-v-135d8cce"),e=e(),H(),e),$l={class:"NotFound"},Pl=ue(()=>r("p",{class:"code"},"404",-1)),Vl=ue(()=>r("h1",{class:"title"},"PAGE NOT FOUND",-1)),wl=ue(()=>r("div",{class:"divider"},null,-1)),xl=ue(()=>r("blockquote",{class:"quote"}," But if you don't change your direction, and if you keep looking, you may end up where you are heading. ",-1)),Sl={class:"action"},Ll=["href"],Ml=g({__name:"NotFound",setup(e){const{site:t}=V(),{localeLinks:n}=ne({removeCurrent:!1}),s=w("/");return E(()=>{var l;const o=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(s.value=((l=n.value.find(({link:u})=>u.startsWith(o)))==null?void 0:l.link)||n.value[0].link)}),(o,l)=>(a(),i("div",$l,[Pl,Vl,wl,xl,r("div",Sl,[r("a",{class:"link",href:c(fe)(s.value),"aria-label":"go to home"}," Take me home ",8,Ll)])]))}});const Cl=m(Ml,[["__scopeId","data-v-135d8cce"]]),Il=g({__name:"VPContent",setup(e){const{page:t,frontmatter:n}=V(),{hasSidebar:s}=D();return(o,l)=>(a(),i("div",{class:L(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(t).isNotFound?d(o.$slots,"not-found",{key:0},()=>[f(Cl)],!0):c(n).layout==="page"?(a(),y(Na,{key:1},{"page-top":v(()=>[d(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[d(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(a(),y(bc,{key:2},{"home-hero-before":v(()=>[d(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[d(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[d(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[d(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[d(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[d(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):(a(),y(kl,{key:3},{"doc-top":v(()=>[d(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[d(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[d(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[d(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[d(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[d(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[d(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[d(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[d(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[d(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[d(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}});const Bl=m(Il,[["__scopeId","data-v-185f5406"]]),Al={class:"container"},Tl=["innerHTML"],Nl=["innerHTML"],zl=g({__name:"VPFooter",setup(e){const{theme:t}=V(),{hasSidebar:n}=D();return(s,o)=>c(t).footer?(a(),i("footer",{key:0,class:L(["VPFooter",{"has-sidebar":c(n)}])},[r("div",Al,[c(t).footer.message?(a(),i("p",{key:0,class:"message",innerHTML:c(t).footer.message},null,8,Tl)):p("",!0),c(t).footer.copyright?(a(),i("p",{key:1,class:"copyright",innerHTML:c(t).footer.copyright},null,8,Nl)):p("",!0)])],2)):p("",!0)}});const Hl=m(zl,[["__scopeId","data-v-e35069ff"]]),El={key:0,class:"Layout"},Dl=g({__name:"Layout",setup(e){const{isOpen:t,open:n,close:s}=D(),o=ee();j(()=>o.path,s),Mt(t,s),ae("close-sidebar",s),ae("is-sidebar-open",t);const{frontmatter:l}=V(),u=mt(),h=k(()=>!!u["home-hero-image"]);return ae("hero-image-slot-exists",h),(_,$)=>{const S=R("Content");return c(l).layout!==!1?(a(),i("div",El,[d(_.$slots,"layout-top",{},void 0,!0),f(Bt),f(Nt,{class:"backdrop",show:c(t),onClick:c(s)},null,8,["show","onClick"]),f(Uo,null,{"nav-bar-title-before":v(()=>[d(_.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[d(_.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[d(_.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[d(_.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[d(_.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[d(_.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),f(ya,{open:c(t),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),f(Ia,{open:c(t)},{"sidebar-nav-before":v(()=>[d(_.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[d(_.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),f(Bl,null,{"page-top":v(()=>[d(_.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[d(_.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[d(_.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[d(_.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[d(_.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[d(_.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[d(_.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[d(_.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[d(_.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[d(_.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[d(_.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[d(_.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[d(_.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[d(_.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[d(_.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[d(_.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[d(_.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[d(_.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[d(_.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[d(_.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),f(Hl),d(_.$slots,"layout-bottom",{},void 0,!0)])):(a(),y(S,{key:1}))}}});const Fl=m(Dl,[["__scopeId","data-v-b4389d08"]]),Ol={xmini:[[0,2]],mini:[],small:[[920,6],[768,5],[640,4],[480,3],[0,2]],medium:[[960,5],[832,4],[640,3],[480,2]],big:[[832,3],[640,2]]};function Gl({el:e,size:t="medium"}){const n=Ge(s,100);E(()=>{s(),window.addEventListener("resize",n)}),te(()=>{window.removeEventListener("resize",n)});function s(){Rl(e.value,t)}}function Rl(e,t){const n=e.children.length,s=e.querySelectorAll(".vp-sponsor-grid-item:not(.empty)").length,o=Ul(e,t,s);jl(e,o,n,s)}function Ul(e,t,n){const s=Ol[t],o=window.innerWidth;let l=1;return s.some(([u,h])=>{if(o>=u)return l=n<h?n:h,!0}),ql(e,l),l}function ql(e,t){e.dataset.vpGrid=String(t)}function jl(e,t,n,s){const o=n-s,l=s%t,u=l===0?l:t-l;Kl(e,u-o)}function Kl(e,t){t!==0&&(t>0?Wl(e,t):Yl(e,t*-1))}function Wl(e,t){for(let n=0;n<t;n++){const s=document.createElement("div");s.classList.add("vp-sponsor-grid-item","empty"),e.append(s)}}function Yl(e,t){for(let n=0;n<t;n++)e.removeChild(e.lastElementChild)}const Xl=["href"],Ql={class:"vp-sponsor-grid-box"},Jl={class:"visually-hidden"},Zl=["src","alt"],ei=g({__name:"VPSponsorsGrid",props:{size:null,data:null},setup(e){const t=e,n=w(null);return Gl({el:n,size:t.size}),(s,o)=>(a(),i("div",{class:L(["VPSponsorsGrid vp-sponsor-grid",[t.size??"medium"]]),ref_key:"el",ref:n},[(a(!0),i(x,null,A(e.data,l=>(a(),i("div",{key:l.name,class:"vp-sponsor-grid-item"},[r("a",{class:"vp-sponsor-grid-link",href:l.url,target:"_blank",rel:"sponsored noopener"},[r("article",Ql,[r("h4",Jl,P(l.name),1),r("img",{class:"vp-sponsor-grid-image",src:l.img,alt:l.name},null,8,Zl)])],8,Xl)]))),128))],2))}}),ti={key:0,class:"vp-sponsor-tier"},ni=g({__name:"VPSponsors",props:{mode:null,tier:null,size:null,data:null},setup(e){const t=e,n=k(()=>t.data.some(o=>"items"in o)?t.data:[{tier:t.tier,size:t.size,items:t.data}]);return(s,o)=>(a(),i("div",{class:L(["VPSponsors vp-sponsor",[e.mode??"normal"]])},[(a(!0),i(x,null,A(c(n),(l,u)=>(a(),i("section",{key:u,class:"vp-sponsor-section"},[l.tier?(a(),i("h3",ti,P(l.tier),1)):p("",!0),f(ei,{size:l.size,data:l.items},null,8,["size","data"])]))),128))],2))}});const si={class:"VPDocAsideSponsors"},ai=g({__name:"VPDocAsideSponsors",props:{tier:null,size:null,data:null},setup(e){return(t,n)=>(a(),i("div",si,[f(ni,{mode:"aside",tier:e.tier,size:e.size,data:e.data},null,8,["tier","size","data"])]))}});const ci={Layout:Fl,enhanceApp:({app:e})=>{e.component("Badge",yt)}};export{ai as _,ci as t,V as u};