import{k as g,m as h,S as b,U as x,_ as k,d as H,O as S,G as C,o as i,c as d,F as f,a as u,A as T,h as w,n as p,N as A,t as B,V as q}from"./entry-d195bacb.mjs";const D=()=>{const c=g(),r=g([]),n=g([]),o=e=>e.forEach(t=>{const a=t.target.id;t.isIntersecting?r.value.push(a):r.value=r.value.filter(s=>s!==a)}),l=e=>e.forEach(t=>{c.value.observe(t)});return h(r,(e,t)=>{e.length===0?n.value=t:n.value=e}),b(()=>c.value=new IntersectionObserver(o)),x(()=>{var e;return(e=c.value)==null?void 0:e.disconnect()}),{visibleHeadings:r,activeHeadings:n,updateHeadings:l}},E=H({name:"DocsToc",emits:["move"],setup(c,{expose:r,emit:n}){r();const o=S(),{activeHeadings:l,updateHeadings:e}=D(),{toc:t,prev:a,next:s}=C();h(()=>o.path,()=>{setTimeout(()=>{e([...document.querySelectorAll(".docus-content h1"),...document.querySelectorAll(".docus-content h2"),...document.querySelectorAll(".docus-content h3"),...document.querySelectorAll(".docus-content h4")])},100)},{immediate:!0});function m(_,y){q(_,y),n("move",_)}const v={emit:n,route:o,activeHeadings:l,updateHeadings:e,toc:t,prev:a,next:s,scrollToHeading:m};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),N={class:"flex flex-col space-y-1 sm:space-y-2"},O=u("div",{class:"items-center hidden overflow-hidden font-semibold lg:flex"},[u("span",null,"Table of Contents")],-1),V={class:"pl-3"},F=["href","onClick"];function I(c,r,n,o,l,e){var t,a;return i(),d("div",N,[(a=(t=o.toc)==null?void 0:t.links)!=null&&a.length?(i(),d(f,{key:0},[O,u("ul",V,[(i(!0),d(f,null,T(o.toc.links,s=>(i(),d("li",{key:s.text,class:p(["min-w-0 transition-colors transition-base group",o.activeHeadings.includes(s.id)?"font-medium":"border-gray-200 dark:border-gray-700 hover:border-gray-300 hover:dark:border-gray-600"])},[u("a",{href:`#${s.id}`,class:p(["block py-1 text-sm truncate lg:pr-3",[o.activeHeadings.includes(s.id)?"text-gray-900 dark:text-gray-200":"text-gray-500 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-200"]]),onClick:A(m=>o.scrollToHeading(s.id,"--docs-scroll-margin-block"),["prevent"])},B(s.text),11,F)],2))),128))])],64)):w("",!0)])}var U=k(E,[["render",I]]);export{U as default};
