1import{r as a,j as e,L as v}from"./chunk-KNED5TY2-C77DV2__.js";import{c as b}from"./cn-CICYP2GW.js";import{S as f}from"./Section-Bdo5m_Ue.js";import{H as g}from"./Typography-CoVfijry.js";function i(c){return c.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}function k({title:c,lastUpdated:u,intro:o,sections:n,aboveContents:p}){const[h,j]=a.useState(null),l=a.useRef(null),d=a.useRef({});return a.useEffect(()=>{const t=s=>{s.forEach(r=>{r.isIntersecting&&j(r.target.id)})};return l.current=new IntersectionObserver(t,{rootMargin:"100% 0% -100% 0%"}),n.forEach(s=>{var m;const r=i(s.heading),x=d.current[r];x&&((m=l.current)==null||m.observe(x))}),()=>{var s;(s=l.current)==null||s.disconnect()}},[n]),e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"mt-16 text-center",children:e.jsxs("div",{className:"py-20 rounded-b-[3em] space-y-4",style:{background:"linear-gradient(0deg, rgba(98, 147, 253, 0.64) 0%, rgba(164, 203, 229, 0) 100%)"},children:[e.jsx(g,{children:c}),e.jsx("p",{className:"font-bold",children:`Last updated: ${u}`})]})}),e.jsxs(f,{className:"px-8 xl:px-40 2xl:px-60 flex flex-col sm:flex-row gap-20 sm:gap-8 w-full",children:[e.jsx("div",{className:"w-full sm:w-1/2",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:sticky sm:top-30",children:[p,n.map(t=>{const s=i(t.heading),r=h===s;return e.jsx(v,{className:b("text-xl font-bold transition-colors",r?"text-black":"text-gray-500"),to:`#${s}`,children:t.heading},t.heading)})]})}),e.jsxs("div",{className:"space-y-8 w-full",children:[o&&e.jsx("div",{children:o}),n.map(t=>{const s=i(t.heading);return e.jsxs("div",{children:[e.jsx("div",{id:s,className:"-translate-y-40",ref:r=>{r&&(d.current[s]=r)}}),e.jsx(g,{className:"text-left lg:text-4xl xl:text-4xl mb-4",children:t.heading}),t.content]},t.heading)})]})]})]})}export{k as I};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.