mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
26 KiB
JavaScript
17 lines
26 KiB
JavaScript
import{_ as b,o as t,c as r,i as P,j as Me,h as n,a as f,t as B,F as H,k as R,l as x,m as w,n as m,p as fe,q as D,g as S,s as Ie,e as K,v as Ne,b as k,f as M,x as U,y as Y,z as X,A as De,B as qe,r as A,w as T,C as L,D as ve,E as Re,G as J,H as ee,I as G,J as ge,K as be,L as N,u as ke,T as $e,M as te,N as W,O as Q,P as Pe,Q as Ee,R as ne,S as ye,U as Le,d as Ae,V as Z,W as Fe,X as F,Y as ae,Z as Ue,$ as Oe,a0 as ze,a1 as Ve,a2 as je,a3 as Ge,a4 as We}from"./app.7f0a416a.js";const Qe=["src"],Ke={__name:"UserBoard",props:{img:{type:Object,required:!0}},setup(_){return(a,e)=>(t(),r("img",{class:"users-logo",src:_.img.logo},null,8,Qe))}};var Xe=b(Ke,[["__scopeId","data-v-31d374d1"],["__file","UserBoard.vue"]]);const Ze={key:0,class:"user-boards"},Ye=["innerHTML"],Je={class:"user-logos"},et={__name:"HomeUserBoards",setup(_){const a=P(),e=Me(a.value.users)||[];return(l,s)=>n(e)?(t(),r("div",Ze,[f("h1",null,B(n(a).users_title),1),f("p",{innerHTML:n(a).users_details},null,8,Ye),f("div",Je,[(t(!0),r(H,null,R(n(e),u=>(t(),w(Xe,{key:u.logo,img:u},null,8,["img"]))),128))])])):x("",!0)}};var tt=b(et,[["__scopeId","data-v-beefdcd8"],["__file","HomeUserBoards.vue"]]);const nt={key:0,class:"features"},at={key:0,class:"icon"},st={__name:"HomeFeatures",setup(_){const a=P(),e=m(()=>fe(a.value.features)?a.value.features:[]);return(l,s)=>n(e).length?(t(),r("div",nt,[(t(!0),r(H,null,R(n(e),u=>(t(),r("div",{key:u.title,class:"feature"},[u.icon?(t(),r("div",at,B(u.icon),1)):x("",!0),f("h2",null,B(u.title),1),f("p",null,B(u.details),1)]))),128))])):x("",!0)}};var ot=b(st,[["__scopeId","data-v-485fc84e"],["__file","HomeFeatures.vue"]]);const rt={name:"Star"},lt={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{"enable-background":"new 0 0 512 512",height:"1rem",fill:"var(--c-text)"},"xml:space":"preserve"},ct=f("g",null,[f("path",{d:`M175.1,168.9L13.7,186.8c-5.8,0.7-11,4.6-12.9,10.5c-1.9,5.9,0,12.1,4.3,16c48,43.8,120.1,109.4,120.1,109.4
|
|
c-0.1,0-19.8,95.4-32.9,159.1c-1.1,5.8,1,11.9,6,15.5c5,3.7,11.4,3.7,16.5,0.9C171.3,466,256,417.7,256,417.7l141.1,80.5
|
|
c5.1,2.8,11.6,2.8,16.6-0.9c5-3.7,7.1-9.7,6-15.5l-32.8-159.1L507,213.4c4.3-4,6.2-10.2,4.3-16.1c-1.9-5.9-7.1-9.8-12.9-10.4
|
|
c-64.6-7.2-161.5-18-161.5-18L269.9,20.8c-2.5-5.3-7.8-9-14-9c-6.2,0-11.5,3.7-13.9,9L175.1,168.9z`})],-1),ut=[ct];function it(_,a,e,l,s,u){return t(),r("svg",lt,ut)}var _t=b(rt,[["render",it],["__file","Star.vue"]]);const dt={name:"Fork"},vt={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"131 -131 512 512",style:{"enable-background":"new 131 -131 512 512",height:"1rem",fill:"var(--c-text)"},"xml:space":"preserve"},ht=f("g",{id:"XMLID_2_"},[f("path",{id:"XMLID_8_",d:`M312.8,317c0-8.5-3.4-16.2-9.4-23s-13.7-9.4-23-9.4c-9.3,0-16.2,3.4-23,9.4c-6,6-9.4,13.7-9.4,23
|
|
s3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4c9.3,0,16.2-3.4,23-9.4C310.2,334,312.8,325.5,312.8,317z M312.8-67c0-8.5-3.4-16.2-9.4-23
|
|
c-6-6-13.7-9.4-23-9.4c-9.3,0-16.2,3.4-23,9.4c-6,6-9.4,13.7-9.4,23c0,8.5,3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4
|
|
c9.3,0,16.2-3.4,23-9.4C310.2-49.9,312.8-58.5,312.8-67z M526.1-24.3c0-8.5-3.4-16.2-9.4-23s-13.7-9.4-23-9.4s-16.2,3.4-23,9.4
|
|
s-9.4,13.7-9.4,23s3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4s16.2-3.4,23-9.4C522.7-8.1,526.1-15.8,526.1-24.3z M557.7-24.3
|
|
c0,11.9-2.6,22.2-8.5,32.4s-13.7,17.9-23,23c-0.9,64-25.6,110.1-75.1,138.2c-15.4,8.5-37.5,17.1-67.4,27.3
|
|
c-28.2,8.5-46.9,17.1-56.3,23.9c-9.4,6.8-13.7,17.9-13.7,33.3v8.5c9.4,6,17.9,13.7,23,23c5.1,9.4,8.5,20.5,8.5,32.4
|
|
c0,17.9-6,33.3-18.8,45.2c-12.8,11.9-28.1,18.1-46.1,18.1s-33.3-6-45.2-18.8s-18.8-27.3-18.8-45.2c0-11.9,2.6-22.2,8.5-32.4
|
|
c6-10.2,13.7-17.9,23-23V-11.5c-9.4-6-17.9-13.7-23-23s-8.5-20.6-8.5-32.5c0-17.9,6-33.3,18.8-45.2c12.8-11.9,27.3-18.8,45.2-18.8
|
|
c17.9,0,33.3,6,45.2,18.8s18.8,27.3,18.8,45.2c0,11.9-2.6,22.2-8.5,32.4c-5.9,10.2-13.7,17.9-23,23V154c11.9-6,29-11.9,51.2-18.8
|
|
c11.9-3.4,22.2-6.8,29-10.2c6.8-3.4,15.4-6,23.9-10.2s15.4-8.5,19.6-12.8s9.4-10.2,13.7-17.1s7.7-14.5,9.4-23
|
|
c1.7-8.5,2.6-18.8,2.6-30.7c-9.4-6-17.9-13.7-23-23s-8.5-20.5-8.5-32.4c0-17.9,6-33.3,18.8-45.2c12.8-12.8,27.3-18.8,45.2-18.8
|
|
s33.3,6,45.2,18.8C551.7-57.6,557.7-42.3,557.7-24.3z`})],-1),pt=[ht];function mt(_,a,e,l,s,u){return t(),r("svg",vt,pt)}var ft=b(dt,[["render",mt],["__file","Fork.vue"]]);const gt=["href"],bt=K(" \xA0 "),kt={__name:"Badge",props:{comp:{type:Object,required:!0},data:{type:Number,required:!0}},setup(_){const a=_,e=D(0);var l=setInterval(()=>{e.value+=234,e.value>=a.data&&(e.value=a.data,clearInterval(l))},1);const u=`https://github.com/${S().value.repo}`,p=u,d=`${u}/fork`;let o=u;switch(a.comp.name){case"Star":o=p;break;case"Fork":o=d;break}return(c,i)=>(t(),r("a",{class:"my-badge",href:n(o),target:"_blank"},[(t(),w(Ie(_.comp))),bt,f("span",null,B(e.value),1)],8,gt))}};var he=b(kt,[["__scopeId","data-v-5ffdfeda"],["__file","Badge.vue"]]);const $t={class:"badges"},yt={__name:"HomeBadges",setup(_){const a=D(29582),e=D(6494);return Ne(async()=>{const{forks:s,stargazers_count:u}=await fetch("https://api.github.com/repos/alibaba/arthas").then(p=>p.json());a.value=u,e.value=s}),(s,u)=>(t(),r("div",$t,[k(he,{comp:_t,data:a.value},null,8,["data"]),k(he,{comp:ft,data:e.value},null,8,["data"])]))}};var Lt=b(yt,[["__scopeId","data-v-51de91a2"],["__file","HomeBadges.vue"]]);const wt={name:"MdiGithub"},xt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24",style:{height:"1.25rem",width:"1.25rem","vertical-align":"bottom"}},Bt=f("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"},null,-1),Ct=[Bt];function Tt(_,a,e,l,s,u){return t(),r("svg",xt,Ct)}var St=b(wt,[["render",Tt],["__file","GitHub.vue"]]);const Ht=["href","rel","target","aria-label"],Mt={key:1},It=M({inheritAttrs:!1}),Nt=Object.assign(It,{__name:"AutoLink",props:{item:{type:Object,required:!0}},setup(_){const a=_,e=U(),l=Re(),{item:s}=Y(a),u=m(()=>X(s.value.link)),p=m(()=>De(s.value.link)||qe(s.value.link)),d=m(()=>{if(!p.value){if(s.value.target)return s.value.target;if(u.value)return"_blank"}}),o=m(()=>d.value==="_blank"),c=m(()=>!u.value&&!p.value&&!o.value),i=m(()=>{if(!p.value){if(s.value.rel)return s.value.rel;if(o.value)return"noopener noreferrer"}}),v=m(()=>s.value.ariaLabel||s.value.text),h=m(()=>{const y=Object.keys(l.value.locales);return y.length?!y.some(g=>g===s.value.link):s.value.link!=="/"}),$=m(()=>h.value?e.path.startsWith(s.value.link):!1),C=m(()=>c.value?s.value.activeMatch?new RegExp(s.value.activeMatch).test(e.path):$.value:!1);return(y,g)=>{const I=A("RouterLink"),q=A("AutoLinkExternalIcon");return n(c)?(t(),w(I,ve({key:0,class:{"router-link-active":n(C)},to:n(s).link,"aria-label":n(v)},y.$attrs),{default:T(()=>[L(y.$slots,"before"),K(" "+B(n(s).text)+" ",1),L(y.$slots,"after")]),_:3},16,["class","to","aria-label"])):(t(),r("a",ve({key:1,class:"external-link",href:n(s).link,rel:n(i),target:n(d),"aria-label":n(v)},y.$attrs),[L(y.$slots,"before"),n(s).text==="GitHub"?(t(),w(St,{key:0})):(t(),r("span",Mt,B(n(s).text),1)),n(o)&&n(s).text!=="GitHub"?(t(),w(q,{key:2})):x("",!0),L(y.$slots,"after")],16,Ht))}}});var E=b(Nt,[["__file","AutoLink.vue"]]);const Dt={class:"hero"},qt={key:0,id:"main-title"},Rt={key:1,class:"description"},Pt={key:2,class:"actions"},Et={__name:"HomeHero",setup(_){const a=P(),e=J(),l=ee(),s=m(()=>l.value&&a.value.heroImageDark!==void 0?a.value.heroImageDark:a.value.heroImage),u=m(()=>a.value.heroText===null?null:a.value.heroText||e.value.title||"Hello"),p=m(()=>a.value.heroAlt||u.value||"hero"),d=m(()=>a.value.tagline===null?null:a.value.tagline||e.value.description||"Welcome to your VuePress site"),o=m(()=>fe(a.value.actions)?a.value.actions.map(({text:i,link:v,type:h="primary"})=>({text:i,link:v,type:h})):[]),c=()=>{if(!s.value)return null;const i=G("img",{src:ge(s.value),style:"width: 60%;",alt:p.value});return a.value.heroImageDark===void 0?i:G(be,()=>i)};return(i,v)=>(t(),r("header",Dt,[k(c),f("div",null,[n(u)?(t(),r("h1",qt,B(n(u)),1)):x("",!0),n(d)?(t(),r("p",Rt,B(n(d)),1)):x("",!0),k(Lt),n(o).length?(t(),r("p",Pt,[(t(!0),r(H,null,R(n(o),h=>(t(),w(E,{key:h.text,class:N(["action-button",[h.type]]),item:h},null,8,["class","item"]))),128))])):x("",!0)])]))}};var At=b(Et,[["__file","HomeHero.vue"]]);const Ft={},Ut={class:"theme-default-content"};function Ot(_,a){const e=A("Content");return t(),r("div",Ut,[k(e)])}var zt=b(Ft,[["render",Ot],["__file","HomeContent.vue"]]);const Vt=["innerHTML"],jt=["textContent"],Gt=M({__name:"HomeFooter",setup(_){const a=P(),e=m(()=>a.value.footer),l=m(()=>a.value.footerHtml);return(s,u)=>n(e)?(t(),r(H,{key:0},[n(l)?(t(),r("div",{key:0,class:"footer",innerHTML:n(e)},null,8,Vt)):(t(),r("div",{key:1,class:"footer",textContent:B(n(e))},null,8,jt))],64)):x("",!0)}});var Wt=b(Gt,[["__file","HomeFooter.vue"]]);const Qt={class:"home"},Kt={__name:"Home",setup(_){return(a,e)=>(t(),r("main",Qt,[k(At),k(ot),k(zt),k(tt),k(Wt)]))}};var Xt=b(Kt,[["__file","Home.vue"]]);const Zt=M({__name:"NavbarBrand",setup(_){const a=ke(),e=J(),l=S(),s=ee(),u=m(()=>l.value.home||a.value),p=m(()=>e.value.title),d=m(()=>s.value&&l.value.logoDark!==void 0?l.value.logoDark:l.value.logo),o=()=>{if(!d.value)return null;const c=G("img",{class:"logo",src:ge(d.value),alt:p.value});return l.value.logoDark===void 0?c:G(be,()=>c)};return(c,i)=>{const v=A("RouterLink");return t(),w(v,{to:n(u)},{default:T(()=>[k(o),n(p)?(t(),r("span",{key:0,class:N(["site-name",{"can-hide":n(d)}])},B(n(p)),3)):x("",!0)]),_:1},8,["to"])}}});var Yt=b(Zt,[["__file","NavbarBrand.vue"]]);const Jt={},en={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em",style:{height:"1.25rem",width:"1.25rem","vertical-align":"bottom"},viewBox:"0 0 24 24"},tn=f("path",{fill:"currentColor",d:"M13.35 22q-.6 0-.862-.387q-.263-.388-.063-.963l3.65-9.675q.15-.4.563-.688Q17.05 10 17.5 10q.425 0 .85.287q.425.288.575.688l3.65 9.675q.2.575-.062.963q-.263.387-.888.387q-.275 0-.5-.175q-.225-.175-.325-.425l-.85-2.45H15.1l-.875 2.45q-.1.25-.35.425q-.25.175-.525.175Zm2.35-4.8h3.6l-1.75-4.95h-.1ZM7.15 8.55q.4.725.85 1.337q.45.613 1.05 1.263q1.1-1.2 1.825-2.462Q11.6 7.425 12.1 6H2q-.425 0-.712-.287Q1 5.425 1 5t.288-.713Q1.575 4 2 4h6V3q0-.425.288-.713Q8.575 2 9 2t.713.287Q10 2.575 10 3v1h6q.425 0 .712.287Q17 4.575 17 5t-.288.713Q16.425 6 16 6h-1.9q-.525 1.775-1.425 3.45q-.9 1.675-2.225 3.15l2.4 2.45l-.75 2.05L9 14l-4.3 4.3q-.275.275-.7.275q-.425 0-.7-.275q-.275-.275-.275-.7q0-.425.275-.7l4.35-4.35q-.675-.775-1.25-1.563q-.575-.787-1.025-1.662Q5.1 8.8 5.35 8.4t.875-.4q.25 0 .525.162q.275.163.4.388Z"},null,-1),nn=[tn];function an(_,a){return t(),r("svg",en,nn)}var pe=b(Jt,[["render",an],["__file","Translate.vue"]]);const sn=M({__name:"DropdownTransition",setup(_){const a=l=>{l.style.height=l.scrollHeight+"px"},e=l=>{l.style.height=""};return(l,s)=>(t(),w($e,{name:"dropdown",onEnter:a,onAfterEnter:e,onBeforeLeave:a},{default:T(()=>[L(l.$slots,"default")]),_:3}))}});var we=b(sn,[["__file","DropdownTransition.vue"]]);const on=["aria-label"],rn={key:1,class:"title"},ln=f("span",{class:"arrow down"},null,-1),cn=["aria-label"],un={key:1,class:"title"},_n={class:"navbar-dropdown"},dn={class:"navbar-dropdown-subtitle"},vn={key:1},hn={class:"navbar-dropdown-subitem-wrapper"},pn={__name:"NavbarDropdown",props:{item:{type:Object,required:!0}},setup(_){const a=_,{item:e}=Y(a),l=m(()=>e.value.ariaLabel||e.value.text),s=D(!1),u=U();te(()=>u.path,()=>{s.value=!1});const p=o=>{o.detail===0?s.value=!s.value:s.value=!1},d=(o,c)=>c[c.length-1]===o;return(o,c)=>(t(),r("div",{class:N(["navbar-dropdown-wrapper",{open:s.value}])},[f("button",{class:"navbar-dropdown-title",type:"button","aria-label":n(l),onClick:p},[n(e).text==="Languages"?(t(),w(pe,{key:0})):(t(),r("span",rn,B(n(e).text),1)),ln],8,on),f("button",{class:"navbar-dropdown-title-mobile",type:"button","aria-label":n(l),onClick:c[0]||(c[0]=i=>s.value=!s.value)},[n(e).text==="Languages"?(t(),w(pe,{key:0})):(t(),r("span",un,B(n(e).text),1)),f("span",{class:N(["arrow",s.value?"down":"right"])},null,2)],8,cn),k(we,null,{default:T(()=>[W(f("ul",_n,[(t(!0),r(H,null,R(n(e).children,i=>(t(),r("li",{key:i.text,class:"navbar-dropdown-item"},[i.children?(t(),r(H,{key:0},[f("h4",dn,[i.link?(t(),w(E,{key:0,item:i,onFocusout:v=>d(i,n(e).children)&&i.children.length===0&&(s.value=!1)},null,8,["item","onFocusout"])):(t(),r("span",vn,B(i.text),1))]),f("ul",hn,[(t(!0),r(H,null,R(i.children,v=>(t(),r("li",{key:v.link,class:"navbar-dropdown-subitem"},[k(E,{item:v,onFocusout:h=>d(v,i.children)&&d(i,n(e).children)&&(s.value=!1)},null,8,["item","onFocusout"])]))),128))])],64)):(t(),w(E,{key:1,item:i,onFocusout:v=>d(i,n(e).children)&&(s.value=!1)},null,8,["item","onFocusout"]))]))),128))],512),[[Q,s.value]])]),_:1})],2))}};var mn=b(pn,[["__file","NavbarDropdown.vue"]]);const me=_=>decodeURI(_).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),fn=(_,a)=>{if(a.hash===_)return!0;const e=me(a.path),l=me(_);return e===l},xe=(_,a)=>_.link&&fn(_.link,a)?!0:_.children?_.children.some(e=>xe(e,a)):!1,Be=_=>!X(_)||/github\.com/.test(_)?"GitHub":/bitbucket\.org/.test(_)?"Bitbucket":/gitlab\.com/.test(_)?"GitLab":/gitee\.com/.test(_)?"Gitee":null,gn={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},bn=({docsRepo:_,editLinkPattern:a})=>{if(a)return a;const e=Be(_);return e!==null?gn[e]:null},kn=({docsRepo:_,docsBranch:a,docsDir:e,filePathRelative:l,editLinkPattern:s})=>{if(!l)return null;const u=bn({docsRepo:_,editLinkPattern:s});return u?u.replace(/:repo/,X(_)?_:`https://github.com/${_}`).replace(/:branch/,a).replace(/:path/,Pe(`${Ee(e)}/${l}`)):null},$n={key:0,class:"navbar-items"},yn=M({__name:"NavbarItems",setup(_){const a=()=>{const c=ne(),i=ke(),v=J(),h=S();return m(()=>{var q,O,z;const $=Object.keys(v.value.locales);if($.length<2)return[];const C=c.currentRoute.value.path,y=c.currentRoute.value.fullPath,g=c.currentRoute.value.hash;return[{text:(q=h.value.selectLanguageText)!=null?q:"unknown language",ariaLabel:(z=(O=h.value.selectLanguageAriaLabel)!=null?O:h.value.selectLanguageText)!=null?z:"unknown language",children:$.map(V=>{var re,le,ce,ue,ie,_e;const Te=(le=(re=v.value.locales)==null?void 0:re[V])!=null?le:{},se=(ue=(ce=h.value.locales)==null?void 0:ce[V])!=null?ue:{},oe=`${Te.lang}`,Se=(ie=se.selectLanguageName)!=null?ie:oe;let j;if(oe===v.value.lang)j=y;else{const de=C.replace(i.value,V);c.getRoutes().some(He=>He.path===de)?j=`${de}${g}`:j=(_e=se.home)!=null?_e:V}return{text:Se,link:j}})}]})},e=()=>{const c=S(),i=m(()=>c.value.repo),v=m(()=>i.value?Be(i.value):null),h=m(()=>i.value&&!X(i.value)?`https://github.com/${i.value}`:i.value),$=m(()=>h.value?c.value.repoLabel?c.value.repoLabel:v.value===null?"Source":v.value:null);return m(()=>!h.value||!$.value?[]:[{text:$.value,link:h.value}])},l=c=>ye(c)?Le(c):c.children?{...c,children:c.children.map(l)}:c,u=(()=>{const c=S();return m(()=>(c.value.navbar||[]).map(l))})(),p=a(),d=e(),o=m(()=>[...u.value,...p.value,...d.value]);return(c,i)=>n(o).length?(t(),r("nav",$n,[(t(!0),r(H,null,R(n(o),v=>(t(),r("div",{key:v.text,class:"navbar-item"},[v.children?(t(),w(mn,{key:0,item:v},null,8,["item"])):(t(),w(E,{key:1,item:v},null,8,["item"]))]))),128))])):x("",!0)}});var Ce=b(yn,[["__file","NavbarItems.vue"]]);const Ln=["title"],wn={class:"icon",focusable:"false",viewBox:"0 0 32 32"},xn=Ae('<path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path>',9),Bn=[xn],Cn={class:"icon",focusable:"false",viewBox:"0 0 32 32"},Tn=f("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1),Sn=[Tn],Hn=M({__name:"ToggleColorModeButton",setup(_){const a=S(),e=ee(),l=()=>{e.value=!e.value};return(s,u)=>(t(),r("button",{class:"toggle-color-mode-button",title:n(a).toggleColorMode,onClick:l},[W((t(),r("svg",wn,Bn,512)),[[Q,!n(e)]]),W((t(),r("svg",Cn,Sn,512)),[[Q,n(e)]])],8,Ln))}});var Mn=b(Hn,[["__file","ToggleColorModeButton.vue"]]);const In=["title"],Nn=f("div",{class:"icon","aria-hidden":"true"},[f("span"),f("span"),f("span")],-1),Dn=[Nn],qn=M({__name:"ToggleSidebarButton",emits:["toggle"],setup(_){const a=S();return(e,l)=>(t(),r("div",{class:"toggle-sidebar-button",title:n(a).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:l[0]||(l[0]=s=>e.$emit("toggle"))},Dn,8,In))}});var Rn=b(qn,[["__file","ToggleSidebarButton.vue"]]);const Pn=M({__name:"Navbar",emits:["toggle-sidebar"],setup(_){const a=S(),e=D(null),l=D(null),s=D(0),u=m(()=>s.value?{maxWidth:s.value+"px"}:{});Z(()=>{const o=p(e.value,"paddingLeft")+p(e.value,"paddingRight"),c=()=>{var i;window.innerWidth<=719?s.value=0:s.value=e.value.offsetWidth-o-(((i=l.value)==null?void 0:i.offsetWidth)||0)};c(),window.addEventListener("resize",c,!1),window.addEventListener("orientationchange",c,!1)});function p(d,o){var v,h,$;const c=($=(h=(v=d==null?void 0:d.ownerDocument)==null?void 0:v.defaultView)==null?void 0:h.getComputedStyle(d,null))==null?void 0:$[o],i=Number.parseInt(c,10);return Number.isNaN(i)?0:i}return(d,o)=>{const c=A("NavbarSearch");return t(),r("header",{ref_key:"navbar",ref:e,class:"navbar"},[k(Rn,{onToggle:o[0]||(o[0]=i=>d.$emit("toggle-sidebar"))}),f("span",{ref_key:"navbarBrand",ref:l},[k(Yt)],512),f("div",{class:"navbar-items-wrapper",style:Fe(n(u))},[L(d.$slots,"before"),k(Ce,{class:"can-hide"}),L(d.$slots,"after"),n(a).colorModeSwitch?(t(),w(Mn,{key:0})):x("",!0),k(c)],4)],512)}}});var En=b(Pn,[["__file","Navbar.vue"]]);const An={class:"right-menu-wrapper"},Fn={class:"right-menu-margin"},Un={class:"right-menu-title"},On={class:"right-menu-content"},zn=["href","title"],Vn=["href"],jn={__name:"RightMenu",setup(_){var o;const a=F(),e=S(),l=D(""),s=D([]);let u=D("");l.value=(o=e.value.rightMenuText)!=null?o:"Table of Contents";function p(){s.value=a.value.headers}function d(){u.value=decodeURIComponent(window.location.hash.slice(1))}return Z(()=>{p(),d()}),te(U(),()=>{s.value=a.value.headers,d()}),(c,i)=>(t(),r("div",An,[f("div",Fn,[f("div",Un,B(l.value),1),f("div",On,[(t(!0),r(H,null,R(s.value,(v,h)=>(t(),r("div",{class:N(["right-menu-item","level"+v.level,{active:v.slug===n(u)}]),key:h},[v.title.replace(/[^\x00-\xff]/g,"01").length>=27?(t(),r("a",{key:0,href:"#"+v.slug,title:v.title},B(v.title),9,zn)):(t(),r("a",{key:1,href:"#"+v.slug},B(v.title),9,Vn))],2))),128))])])]))}};var Gn=b(jn,[["__file","RightMenu.vue"]]);const Wn={class:"page-meta"},Qn={key:0,class:"meta-item edit-link"},Kn={key:1,class:"meta-item last-updated"},Xn={class:"meta-item-label"},Zn={class:"meta-item-info"},Yn={key:2,class:"meta-item contributors"},Jn={class:"meta-item-label"},ea={class:"meta-item-info"},ta=["title"],na=K(", "),aa=M({__name:"PageMeta",setup(_){const a=()=>{const o=S(),c=F(),i=P();return m(()=>{var q,O,z;if(!((O=(q=i.value.editLink)!=null?q:o.value.editLink)!=null?O:!0))return null;const{repo:h,docsRepo:$=h,docsBranch:C="main",docsDir:y="",editLinkText:g}=o.value;if(!$)return null;const I=kn({docsRepo:$,docsBranch:C,docsDir:y,filePathRelative:c.value.filePathRelative,editLinkPattern:(z=i.value.editLinkPattern)!=null?z:o.value.editLinkPattern});return I?{text:g!=null?g:"Edit this page",link:I}:null})},e=()=>{const o=S(),c=F(),i=P();return m(()=>{var $,C,y,g;return!((C=($=i.value.lastUpdated)!=null?$:o.value.lastUpdated)!=null?C:!0)||!((y=c.value.git)!=null&&y.updatedTime)?null:new Date((g=c.value.git)==null?void 0:g.updatedTime).toLocaleString()})},l=()=>{const o=S(),c=F(),i=P();return m(()=>{var h,$,C,y;return(($=(h=i.value.contributors)!=null?h:o.value.contributors)!=null?$:!0)&&(y=(C=c.value.git)==null?void 0:C.contributors)!=null?y:null})},s=S(),u=a(),p=e(),d=l();return(o,c)=>{const i=A("ClientOnly");return t(),r("footer",Wn,[n(u)?(t(),r("div",Qn,[k(E,{class:"meta-item-label",item:n(u)},null,8,["item"])])):x("",!0),n(p)?(t(),r("div",Kn,[f("span",Xn,B(n(s).lastUpdatedText)+": ",1),k(i,null,{default:T(()=>[f("span",Zn,B(n(p)),1)]),_:1})])):x("",!0),n(d)&&n(d).length?(t(),r("div",Yn,[f("span",Jn,B(n(s).contributorsText)+": ",1),f("span",ea,[(t(!0),r(H,null,R(n(d),(v,h)=>(t(),r(H,{key:h},[f("span",{class:"contributor",title:`email: ${v.email}`},B(v.name),9,ta),h!==n(d).length-1?(t(),r(H,{key:0},[na],64)):x("",!0)],64))),128))])])):x("",!0)])}}});var sa=b(aa,[["__file","PageMeta.vue"]]);const oa={key:0,class:"page-nav"},ra={class:"inner"},la={key:0,class:"prev"},ca={key:1,class:"next"},ua=M({__name:"PageNav",setup(_){const a=o=>o===!1?null:ye(o)?Le(o):Ue(o)?o:!1,e=(o,c,i)=>{const v=o.findIndex(h=>h.link===c);if(v!==-1){const h=o[v+i];return h!=null&&h.link?h:null}for(const h of o)if(h.children){const $=e(h.children,c,i);if($)return $}return null},l=P(),s=ae(),u=U(),p=m(()=>{const o=a(l.value.prev);return o!==!1?o:e(s.value,u.path,-1)}),d=m(()=>{const o=a(l.value.next);return o!==!1?o:e(s.value,u.path,1)});return(o,c)=>n(p)||n(d)?(t(),r("nav",oa,[f("p",ra,[n(p)?(t(),r("span",la,[k(E,{item:n(p)},null,8,["item"])])):x("",!0),n(d)?(t(),r("span",ca,[k(E,{item:n(d)},null,8,["item"])])):x("",!0)])])):x("",!0)}});var ia=b(ua,[["__file","PageNav.vue"]]);const _a={class:"page"},da={__name:"Page",setup(_){function a(){return F().value.headers.length>1}return(e,l)=>{const s=A("Content");return t(),r("main",_a,[L(e.$slots,"top",{},void 0,!0),f("div",{class:N([a()&&"right-menu-padding","theme-default-content"])},[L(e.$slots,"content-top",{},void 0,!0),a()?(t(),w(Gn,{key:0})):x("",!0),k(s),L(e.$slots,"content-bottom",{},void 0,!0)],2),k(sa,{class:N(a()&&"right-menu-padding")},null,8,["class"]),k(ia,{class:N(a()&&"right-menu-padding")},null,8,["class"]),L(e.$slots,"bottom",{},void 0,!0)])}}};var va=b(da,[["__scopeId","data-v-e0e60120"],["__file","Page.vue"]]);const ha=["onKeydown"],pa={class:"sidebar-item-children"},ma=M({__name:"SidebarItem",props:{item:{type:Object,required:!0},depth:{type:Number,required:!1,default:0}},setup(_){const a=_,{item:e,depth:l}=Y(a),s=U(),u=ne(),p=m(()=>xe(e.value,s)),d=m(()=>({"sidebar-item":!0,"sidebar-heading":l.value===0,active:p.value,collapsible:e.value.collapsible})),[o,c]=Oe(p.value),i=h=>{e.value.collapsible&&(h.preventDefault(),c())},v=u.afterEach(h=>{ze(()=>{o.value=e.value.collapsible?p.value:!0})});return Ve(()=>{v()}),(h,$)=>{var y;const C=A("SidebarItem",!0);return t(),r("li",null,[n(e).link?(t(),w(E,{key:0,class:N(n(d)),item:n(e)},null,8,["class","item"])):(t(),r("p",{key:1,tabindex:"0",class:N(n(d)),onClick:i,onKeydown:je(i,["enter"])},[K(B(n(e).text)+" ",1),n(e).collapsible?(t(),r("span",{key:0,class:N(["arrow",n(o)?"down":"right"])},null,2)):x("",!0)],42,ha)),(y=n(e).children)!=null&&y.length?(t(),w(we,{key:2},{default:T(()=>[W(f("ul",pa,[(t(!0),r(H,null,R(n(e).children,g=>(t(),w(C,{key:`${n(l)}${g.text}${g.link}`,item:g,depth:n(l)+1},null,8,["item","depth"]))),128))],512),[[Q,n(o)]])]),_:1})):x("",!0)])}}});var fa=b(ma,[["__file","SidebarItem.vue"]]);const ga={key:0,class:"sidebar-items"},ba=M({__name:"SidebarItems",setup(_){const a=U(),e=ae();return Z(()=>{te(()=>a.hash,l=>{const s=document.querySelector(".sidebar");if(!s)return;const u=document.querySelector(`.sidebar a.sidebar-item[href="${a.path}${l}"]`);if(!u)return;const{top:p,height:d}=s.getBoundingClientRect(),{top:o,height:c}=u.getBoundingClientRect();o<p?u.scrollIntoView(!0):o+c>p+d&&u.scrollIntoView(!1)})}),(l,s)=>n(e).length?(t(),r("ul",ga,[(t(!0),r(H,null,R(n(e),u=>(t(),w(fa,{key:`${u.text}${u.link}`,item:u},null,8,["item"]))),128))])):x("",!0)}});var ka=b(ba,[["__file","SidebarItems.vue"]]);const $a={class:"sidebar"},ya=M({__name:"Sidebar",setup(_){return(a,e)=>(t(),r("aside",$a,[k(Ce),L(a.$slots,"top"),k(ka),L(a.$slots,"bottom")]))}});var La=b(ya,[["__file","Sidebar.vue"]]);const wa=M({__name:"Layout",setup(_){const a=F(),e=P(),l=S(),s=m(()=>e.value.navbar!==!1&&l.value.navbar!==!1),u=ae(),p=D(!1),d=g=>{p.value=typeof g=="boolean"?g:!p.value},o={x:0,y:0},c=g=>{o.x=g.changedTouches[0].clientX,o.y=g.changedTouches[0].clientY},i=g=>{const I=g.changedTouches[0].clientX-o.x,q=g.changedTouches[0].clientY-o.y;Math.abs(I)>Math.abs(q)&&Math.abs(I)>40&&(I>0&&o.x<=80?d(!0):d(!1))},v=m(()=>[{"no-navbar":!s.value,"no-sidebar":!u.value.length,"sidebar-open":p.value},e.value.pageClass]);let h;Z(()=>{h=ne().afterEach(()=>{d(!1)})}),Ge(()=>{h()});const $=We(),C=$.resolve,y=$.pending;return(g,I)=>(t(),r("div",{class:N(["theme-container",n(v)]),onTouchstart:c,onTouchend:i},[L(g.$slots,"navbar",{},()=>[n(s)?(t(),w(En,{key:0,onToggleSidebar:d},{before:T(()=>[L(g.$slots,"navbar-before")]),after:T(()=>[L(g.$slots,"navbar-after")]),_:3})):x("",!0)]),f("div",{class:"sidebar-mask",onClick:I[0]||(I[0]=q=>d(!1))}),L(g.$slots,"sidebar",{},()=>[k(La,null,{top:T(()=>[L(g.$slots,"sidebar-top")]),bottom:T(()=>[L(g.$slots,"sidebar-bottom")]),_:3})]),L(g.$slots,"page",{},()=>[n(e).home?(t(),w(Xt,{key:0})):(t(),w($e,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:n(C),onBeforeLeave:n(y)},{default:T(()=>[(t(),w(va,{key:n(a).path},{top:T(()=>[L(g.$slots,"page-top")]),"content-top":T(()=>[L(g.$slots,"page-content-top")]),"content-bottom":T(()=>[L(g.$slots,"page-content-bottom")]),bottom:T(()=>[L(g.$slots,"page-bottom")]),_:3}))]),_:3},8,["onBeforeEnter","onBeforeLeave"]))])],34))}});var Ba=b(wa,[["__file","Layout.vue"]]);export{Ba as default};
|