{"version":3,"file":"TableofContent.ncDPBau4.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","useState","_Fragment","useId","__exportAll","init_npm_react_18_3_1","ie","init_ssg_sandbox_shims","oe","pe","x","de","window","init_jsx_runtime","J","c","p","ce","_e","motion","LayoutGroup","MotionConfigContext","init_framer_motion_DhsWWWsN","addFonts","RichText","cx","withCSS","useVariantState","init_framer_BisrWwwE","useLocaleInfo","useComponentViewport","addPropertyControls","ControlType","createStore","init_store_js__1_0","TVwMtRfL7_exports","__FramerMetadata__","FramerTVwMtRfL7","addPropertyOverrides","variants","nextOverrides","variant","overrides","cycleOrder","serializationHash","variantClassNames","transition1","Transition","Variants","humanReadableVariantMap","getProps","createLayoutDependency","init_TVwMtRfL7","__esmMin","config","transition","value","contextValue","props","title","fallbackRef","refBinding","ref","defaultLayoutId","restProps","layoutDependency","scopingClassNames","layoutId","gestureHandlers","className","classNames","style","baseVariant","gestureVariant","GLgm3YvB9","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerVariables\"","\"framerIntrinsicHeight\"","\"framerAutoSizeImages\"","\"framerContractVersion\"","\"framerImmutableVariables\"","\"framerDisplayContentsDiv\"","\"framerComponentViewportWidth\"","\"framerIntrinsicWidth\"","\"framerCanvasComponentVariantDetails\"","\"framerColorSyntax\"","\"Props\"","\"__FramerMetadata__\"","withTableOfContent","store","useStore","activeHeadingId","setActiveHeadingId","expandedParentId","setExpandedParentId","combinedHeadings","setCombinedHeadings","parents","groupHeadingEntries","result","parent","a","b","isInCurrentViewport","rect","element","getVisibleTocList","getTocAnchor","list","anchors","TOC_CONTAINER_ID","getCurrentArticleScopes","scopes","tocAnchor","scope","tocAncestors","tocAncestor","tocDistance","candidates","ancestor","distance","tocPathDistance","best","candidate","current","getCurrentArticleHeadings","scrollToId","id","heading","toggleParent","event","trigger","group","childList","wasOpen","parentId","button","headings","index","tocElement","handleScroll","activeId","l","children","hasChildren","child","MAX_VISIBLE_PARENTS","Component","isExpanded","withContent","setStore","contentSegmentId","newProps","setNewProps","formatTableOfContent","source","newChildren","item","formatHeading","formattedId","mergedClassName","CONTENT_SCOPE_CLASS","SCROLL_MARGIN_TOP","extractHeadingText","init_TableofContent","currentParent","entry","type","formattedHeading","baseId"],"sources":["https:/framerusercontent.com/modules/g3ypgVTKFJajUS1D3vvA/JfteNIeBcO3Tj5ln1pvp/TVwMtRfL7.js","https:/framerusercontent.com/modules/Nd8VedTxkIrMPOFCu0Xb/Sk3fHtV28XPYlwVCQ6Kj/TableofContent.js"],"sourcesContent":["// Generated by Framer (3256e0c)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"tzU5t7ovF\",\"jPIB_kNrj\",\"mcpDq67bu\",\"WL2t46vb7\"];const serializationHash=\"framer-uP7vd\";const variantClassNames={jPIB_kNrj:\"framer-v-1my5ngb\",mcpDq67bu:\"framer-v-to8g30\",tzU5t7ovF:\"framer-v-yixyss\",WL2t46vb7:\"framer-v-1g7osgo\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const GLgm3YvB9=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"h2-active\":\"jPIB_kNrj\",\"h3-active\":\"WL2t46vb7\",h2:\"tzU5t7ovF\",h3:\"mcpDq67bu\"};const getProps=({height,id,title,width,...props})=>{return{...props,GLgm3YvB9:title??props.GLgm3YvB9??\"Something Cool\",variant:humanReadableVariantMap[props.variant]??props.variant??\"tzU5t7ovF\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,GLgm3YvB9,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"tzU5t7ovF\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-yixyss\",className,classNames),\"data-framer-name\":\"h2\",layoutDependency:layoutDependency,layoutId:\"tzU5t7ovF\",ref:refBinding,style:{...style},...addPropertyOverrides({jPIB_kNrj:{\"data-framer-name\":\"h2-active\"},mcpDq67bu:{\"data-framer-name\":\"h3\"},WL2t46vb7:{\"data-framer-name\":\"h3-active\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-giwzca\",\"data-border\":true,layoutDependency:layoutDependency,layoutId:\"NZrldUaHO\",style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgba(0, 194, 168, 0)\",\"--border-left-width\":\"2px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\"},variants:{jPIB_kNrj:{\"--border-color\":\"rgb(0, 194, 168)\"},WL2t46vb7:{\"--border-color\":\"rgb(0, 194, 168)\"}},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-line-height\":\"24px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-c0dd8fca-6e1b-45f2-8550-f891052207c3, rgb(191, 204, 218)))\"},children:\"Something Cool\"})}),className:\"framer-1b1jfzx\",\"data-framer-name\":\"Supporting text\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"QT0VD77NE\",style:{\"--extracted-r6o4lv\":\"var(--token-c0dd8fca-6e1b-45f2-8550-f891052207c3, rgb(191, 204, 218))\",\"--framer-paragraph-spacing\":\"16px\"},text:GLgm3YvB9,variants:{jPIB_kNrj:{\"--extracted-r6o4lv\":\"var(--token-8fb7e999-5db2-49a2-8b2b-5080765af169, rgb(255, 255, 255))\"},WL2t46vb7:{\"--extracted-r6o4lv\":\"var(--token-8fb7e999-5db2-49a2-8b2b-5080765af169, rgb(255, 255, 255))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({jPIB_kNrj:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-line-height\":\"24px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-8fb7e999-5db2-49a2-8b2b-5080765af169, rgb(255, 255, 255)))\"},children:\"Something Cool\"})})},WL2t46vb7:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-line-height\":\"24px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-8fb7e999-5db2-49a2-8b2b-5080765af169, rgb(255, 255, 255)))\"},children:\"Something Cool\"})})}},baseVariant,gestureVariant)})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-uP7vd.framer-ixre3c, .framer-uP7vd .framer-ixre3c { display: block; }\",\".framer-uP7vd.framer-yixyss { align-content: flex-start; align-items: flex-start; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 16px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 8px 0px 8px 0px; position: relative; width: 347px; }\",\".framer-uP7vd .framer-giwzca { align-content: flex-start; align-items: flex-start; cursor: pointer; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px 0px 0px 12px; position: relative; width: 100%; }\",\".framer-uP7vd .framer-1b1jfzx { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-uP7vd.framer-v-to8g30 .framer-giwzca, .framer-uP7vd.framer-v-1g7osgo .framer-giwzca { padding: 0px 0px 0px 20px; }\",'.framer-uP7vd[data-border=\"true\"]::after, .framer-uP7vd [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 347\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"jPIB_kNrj\":{\"layout\":[\"fixed\",\"auto\"]},\"mcpDq67bu\":{\"layout\":[\"fixed\",\"auto\"]},\"WL2t46vb7\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"GLgm3YvB9\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerTVwMtRfL7=withCSS(Component,css,\"framer-uP7vd\");export default FramerTVwMtRfL7;FramerTVwMtRfL7.displayName=\"TOC\";FramerTVwMtRfL7.defaultProps={height:40,width:347};addPropertyControls(FramerTVwMtRfL7,{variant:{options:[\"tzU5t7ovF\",\"jPIB_kNrj\",\"mcpDq67bu\",\"WL2t46vb7\"],optionTitles:[\"h2\",\"h2-active\",\"h3\",\"h3-active\"],title:\"Variant\",type:ControlType.Enum},GLgm3YvB9:{defaultValue:\"Something Cool\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramerTVwMtRfL7,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerTVwMtRfL7\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"GLgm3YvB9\\\":\\\"title\\\"}\",\"framerIntrinsicHeight\":\"40\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"347\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"jPIB_kNrj\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"mcpDq67bu\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"WL2t46vb7\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TVwMtRfL7.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";// @ts-ignore Framer resolves this hosted store module at runtime.\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useId,useState}from\"react\";const MAX_VISIBLE_PARENTS=3;const SCROLL_MARGIN_TOP=120;const TOC_CONTAINER_ID=\"table-o-c\";const CONTENT_SCOPE_CLASS=\"toc-content-scope\";const useStore=createStore({headings:[]});export function withTableOfContent(Component){return props=>{const[store]=useStore();const[activeHeadingId,setActiveHeadingId]=useState(\"\");const[expandedParentId,setExpandedParentId]=useState(\"\");const[combinedHeadings,setCombinedHeadings]=useState([]);const parents=combinedHeadings.length>0?groupHeadingEntries(combinedHeadings):Array.isArray(store.headings)?store.headings:[];const allHeadings=parents.reduce((result,parent)=>{result.push(parent);if(Array.isArray(parent.children))result.push(...parent.children);return result;},[]).sort((a,b)=>a.originalIndex-b.originalIndex);const isInCurrentViewport=element=>{const rect=element.getBoundingClientRect();return rect.width>0&&rect.height>0&&rect.right>0&&rect.left<window.innerWidth&&rect.bottom>0&&rect.top<window.innerHeight;};const getVisibleTocList=()=>{const lists=Array.from(document.querySelectorAll(\".toc-list\"));return lists.find(isInCurrentViewport)??null;};const getTocAnchor=()=>{const list=getVisibleTocList();if(list)return list;const anchors=Array.from(document.querySelectorAll(`#${TOC_CONTAINER_ID}`));return anchors.find(isInCurrentViewport)??anchors[0]??null;};const getCurrentArticleScopes=()=>{const scopes=Array.from(document.querySelectorAll(\".toc-content-scope\"));const tocAnchor=getTocAnchor();if(!tocAnchor){return scopes.filter(scope=>{const rect=scope.getBoundingClientRect();return rect.width>0&&rect.height>0&&rect.right>0&&rect.left<window.innerWidth;});}const tocAncestors=new Map;let tocAncestor=tocAnchor;let tocDistance=0;while(tocAncestor){tocAncestors.set(tocAncestor,tocDistance++);tocAncestor=tocAncestor.parentElement;}const candidates=[];for(const scope of scopes){const rect=scope.getBoundingClientRect();if(rect.width<=0||rect.height<=0)continue;let ancestor=scope;let distance=0;while(ancestor){const tocPathDistance=tocAncestors.get(ancestor);if(tocPathDistance!==undefined){candidates.push({scope,commonAncestor:ancestor,score:distance+tocPathDistance});break;}ancestor=ancestor.parentElement;distance++;}}if(candidates.length===0)return[];const best=candidates.reduce((current,candidate)=>candidate.score<current.score?candidate:current);return candidates.filter(candidate=>candidate.commonAncestor===best.commonAncestor).map(candidate=>candidate.scope);};const getCurrentArticleHeadings=()=>{return getCurrentArticleScopes().flatMap(scope=>Array.from(scope.querySelectorAll(\"h2[id], h3[id]\")));};const scrollToId=id=>{if(typeof document===\"undefined\")return;setActiveHeadingId(id);const element=getCurrentArticleHeadings().find(heading=>heading.id===id);if(element)element.scrollIntoView({behavior:\"smooth\",block:\"start\"});};const toggleParent=(event,parentId)=>{event.preventDefault();event.stopPropagation();const trigger=event.currentTarget;const group=trigger.closest(\".toc-parent-group\");const list=trigger.closest(\".toc-list\");const childList=group?.querySelector(\".toc-children\");const wasOpen=trigger.getAttribute(\"aria-expanded\")===\"true\";setExpandedParentId(wasOpen?\"\":parentId);list?.querySelectorAll(\".toc-chevron\").forEach(button=>{button.setAttribute(\"aria-expanded\",\"false\");});list?.querySelectorAll(\".toc-children\").forEach(children=>{children.hidden=true;});if(!wasOpen&&childList){childList.hidden=false;trigger.setAttribute(\"aria-expanded\",\"true\");}};const toggleAllParents=event=>{event.preventDefault();event.stopPropagation();const button=event.currentTarget;const list=button.closest(\".toc-list\");const isExpanded=button.getAttribute(\"aria-expanded\")===\"true\";const groups=Array.from(list?.querySelectorAll(\".toc-parent-group\")??[]);groups.forEach((group,index)=>{if(index>=MAX_VISIBLE_PARENTS){group.hidden=isExpanded;}});button.setAttribute(\"aria-expanded\",String(!isExpanded));button.textContent=isExpanded?\"Show all table of contents\":\"Hide all table of contents\";};useEffect(()=>{if(typeof window===\"undefined\")return;const headingElements=getCurrentArticleHeadings();const headings=headingElements.map((heading,index)=>({id:heading.id,heading:heading.textContent?.trim()||`Section ${index+1}`,type:heading.tagName.toLowerCase(),originalIndex:index,children:[]}));if(headings.length>0){setCombinedHeadings(current=>{const currentKey=current.map(heading=>heading.id).join(\"|\");const nextKey=headings.map(heading=>heading.id).join(\"|\");return currentKey===nextKey?current:headings;});const tocElement=document.getElementById(TOC_CONTAINER_ID);if(tocElement)tocElement.style.display=headings.some(heading=>heading.type===\"h2\")?\"\":\"none\";}},[store.headings]);useEffect(()=>{if(typeof window===\"undefined\")return;const handleScroll=()=>{const headings=getCurrentArticleHeadings();const activationLine=170;let activeId=\"\";for(const heading of headings){if(heading.getBoundingClientRect().top<=activationLine){activeId=heading.id;}}if(activeId)setActiveHeadingId(current=>current===activeId?current:activeId);};window.addEventListener(\"scroll\",handleScroll,{passive:true});handleScroll();return()=>window.removeEventListener(\"scroll\",handleScroll);},[store.headings]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .toc-list {\n                        display: flex; flex-direction: column; align-items: stretch;\n                        gap: 8px; width: 100%; height: auto;\n                        max-height: clamp(160px, calc(100vh - 360px), 55vh);\n                        max-height: clamp(160px, calc(100dvh - 360px), 55dvh);\n                        overflow-y: auto; overscroll-behavior-y: auto;\n                        scrollbar-width: thin;\n                        scrollbar-color: rgba(191, 204, 218, 0.35) transparent;\n                    }\n                    .toc-list::-webkit-scrollbar { width: 4px; }\n                    .toc-list::-webkit-scrollbar-thumb {\n                        background: rgba(191, 204, 218, 0.35); border-radius: 999px;\n                    }\n                    .toc-parent-group {\n                        display: flex; flex-direction: column; align-items: stretch;\n                        gap: 0; width: 100%; height: auto; flex: 0 0 auto;\n                    }\n                    .toc-parent-group[hidden], .toc-children[hidden] {\n                        display: none !important;\n                    }\n                    .toc-parent-row {\n                        display: flex; align-items: center; gap: 4px; width: 100%;\n                    }\n                    .toc-parent-row > .toc-item { flex: 1 1 0%; min-width: 0; }\n                    .toc-item { margin-bottom: 0px; }\n                    .toc-item, .toc-item * {\n                        font-size: 14px !important;\n                        line-height: 1.45 !important;\n                    }\n                    .toc-row-active .toc-item,\n                    .toc-row-active .toc-item * {\n                        color: rgb(255, 255, 255) !important;\n                        font-weight: 700 !important;\n                    }\n                    .toc-row-active .toc-item,\n                    .toc-row-active .toc-item * {\n                        border-left-color: rgb(0, 194, 168) !important;\n                    }\n                    .toc-chevron {\n                        display: inline-flex; flex: 0 0 28px; align-items: center;\n                        justify-content: center; width: 28px; height: 28px; padding: 0;\n                        border: 0; border-radius: 4px; background: transparent;\n                        color: rgb(191, 204, 218); cursor: pointer;\n                    }\n                    .toc-chevron:hover { background: rgba(255,255,255,0.08); }\n                    .toc-parent-group-current .toc-chevron,\n                    .toc-row-active .toc-chevron { color: rgb(255, 255, 255) !important; }\n                    .toc-chevron-icon {\n                        width: 7px; height: 7px; border-right: 1.5px solid currentColor;\n                        border-bottom: 1.5px solid currentColor;\n                        transform: rotate(45deg) translate(-1px, -1px);\n                        transition: transform 160ms ease;\n                    }\n                    .toc-chevron[aria-expanded=\"true\"] .toc-chevron-icon {\n                        transform: rotate(225deg) translate(-1px, -1px);\n                    }\n                    .toc-children {\n                        display: flex; flex-direction: column; width: 100%; gap: 0;\n                    }\n                    .toc-show-all {\n                        display: block; width: 100%; padding: 6px 0; border: 0;\n                        background: transparent; color: rgb(0, 194, 168); font: inherit;\n                        font-size: 14px !important; font-weight: 600;\n                        line-height: 1.45 !important; text-align: left; cursor: pointer;\n                        text-decoration: underline; text-decoration-color: rgb(0, 194, 168);\n                        text-decoration-thickness: 1px; text-underline-offset: 2px;\n                    }\n                `}),parents.length>0&&typeof window!==\"undefined\"?/*#__PURE__*/_jsxs(\"div\",{className:\"toc-list\",children:[parents.map((parent,index)=>{const children=Array.isArray(parent.children)?parent.children:[];const hasChildren=children.length>0;return /*#__PURE__*/_jsxs(\"div\",{className:`toc-parent-group ${children.some(child=>child.id===activeHeadingId)?\"toc-parent-group-current\":\"\"}`,\"data-toc-parent-id\":parent.id,hidden:index>=MAX_VISIBLE_PARENTS,children:[/*#__PURE__*/_jsxs(\"div\",{className:`toc-parent-row ${activeHeadingId===parent.id||children.some(child=>child.id===activeHeadingId)&&expandedParentId!==parent.id?\"toc-row-active\":\"\"}`,\"data-toc-id\":parent.id,children:[/*#__PURE__*/_jsx(Component,{...props,className:\"toc-item toc-parent\",variant:parent.type,title:parent.heading,onClick:()=>scrollToId(parent.id)}),hasChildren&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"toc-chevron\",\"aria-label\":`Show subheadings for ${parent.heading}`,\"aria-expanded\":expandedParentId===parent.id,onClick:event=>toggleParent(event,parent.id),children:/*#__PURE__*/_jsx(\"span\",{className:\"toc-chevron-icon\",\"aria-hidden\":\"true\"})})]}),hasChildren&&/*#__PURE__*/_jsx(\"div\",{className:\"toc-children\",role:\"group\",\"aria-label\":`Subheadings for ${parent.heading}`,hidden:expandedParentId!==parent.id,children:children.map(child=>/*#__PURE__*/_jsx(\"div\",{className:`toc-parent-row ${activeHeadingId===child.id&&expandedParentId===parent.id?\"toc-row-active\":\"\"}`,\"data-toc-id\":child.id,children:/*#__PURE__*/_jsx(Component,{...props,className:\"toc-item toc-child\",variant:child.type,title:child.heading,onClick:()=>scrollToId(child.id)})},child.id))})]},parent.id);}),parents.length>MAX_VISIBLE_PARENTS&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"toc-show-all\",\"aria-expanded\":\"false\",onClick:toggleAllParents,children:\"Show all table of contents\"})]}):/*#__PURE__*/_jsx(Component,{...props})]});};}export function withContent(Component){return props=>{const[,setStore]=useStore();const contentSegmentId=useId().replace(/[^a-zA-Z0-9]/g,\"\");const[newProps,setNewProps]=useState(props);useEffect(()=>{const children=newProps?.children?.props?.children??[];const headings=formatTableOfContent(children,contentSegmentId);setStore({headings});},[newProps,setStore]);useEffect(()=>{const source=props?.children?.props?.children??[];if(!Array.isArray(source)){setNewProps(props);return;}const newChildren=source.map((item,index)=>{if(![\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].includes(item?.type)){return item;}const{formattedId}=formatHeading(item?.props?.children,index,contentSegmentId);return{...item,props:{...item.props,id:formattedId}};});setNewProps({...props,children:{...props.children,props:{...props.children.props,children:newChildren}}});},[props]);const mergedClassName=[newProps?.className,CONTENT_SCOPE_CLASS].filter(Boolean).join(\" \");return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${CONTENT_SCOPE_CLASS} :where(\n                        h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, img\n                    ) { margin-top: 0px; margin-bottom: 0px; }\n                    .${CONTENT_SCOPE_CLASS} :where(\n                        h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, img\n                    ) + :where(\n                        h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, img\n                    ) { margin-top: 20px; }\n                    .${CONTENT_SCOPE_CLASS} :where(h1, h2, h3, h4, h5, h6) {\n                        scroll-margin-top: ${SCROLL_MARGIN_TOP}px;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...newProps,className:mergedClassName})]});};}const groupHeadingEntries=headings=>{const parents=[];let currentParent=null;headings.forEach((heading,index)=>{const entry={id:heading.id,heading:heading.heading,type:heading.type,originalIndex:index,children:[]};if(heading.type===\"h2\"){currentParent=entry;parents.push(entry);}else if(heading.type===\"h3\"&&currentParent){currentParent.children.push(entry);}else if(heading.type===\"h3\"){parents.push(entry);}});return parents;};const formatTableOfContent=(children,contentSegmentId=\"\")=>{if(!Array.isArray(children))return[];const parents=[];let currentParent=null;children.forEach((item,index)=>{const type=item?.type;if(type!==\"h2\"&&type!==\"h3\")return;const{formattedId,formattedHeading}=formatHeading(item?.props?.children,index,contentSegmentId);const entry={id:formattedId,heading:formattedHeading,type,originalIndex:index,children:[]};if(type===\"h2\"){currentParent=entry;parents.push(currentParent);}else if(currentParent){currentParent.children.push(entry);}else{parents.push(entry);}});return parents;};const extractHeadingText=value=>{if(typeof value===\"string\"||typeof value===\"number\"){return String(value);}if(Array.isArray(value)){return value.map(item=>extractHeadingText(item)).filter(Boolean).join(\" \");}if(value&&typeof value===\"object\"){if(value.type===\"br\")return\" \";return extractHeadingText(value.props?.children??value.children??\"\");}return\"\";};const formatHeading=(children,index,contentSegmentId=\"\")=>{const formattedHeading=extractHeadingText(children).replace(/\\\\s+/g,\" \").trim()||index.toString();const baseId=formattedHeading.trim().toLowerCase().replace(/[^a-z]+/g,\"-\").replace(/^-+|-+$/g,\"\");const formattedId=contentSegmentId?`${baseId}-${contentSegmentId}-${index}`:`${baseId}-${index}`;return{formattedId,formattedHeading};};\nexport const __FramerMetadata__ = {\"exports\":{\"withContent\":{\"type\":\"reactHoc\",\"name\":\"withContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTableOfContent\":{\"type\":\"reactHoc\",\"name\":\"withTableOfContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableofContent.map"],"mappings":"A,2eAC6hB,SAAS2C,EAAqB,EAAU,GAAGC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAuF,OAArFD,GAAU,QAAQ,GAASE,GAAS,OAAO,OAAOD,EAAcE,EAAUD,EAAQ,CAAC,EAASD,CAAc,C,wEAAta,EAAW,CAAC,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,EAAyN,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAMc,EAAO3D,EAAiB0B,CAAmB,EAAQkC,EAAWC,GAAOF,EAAO,WAAiBG,EAAa7D,OAAmB,CAAC,GAAG0D,EAAO,YAAU,GAAG,CAAC,KAAK,UAAUC,CAAU,CAAC,CAAC,EAAE,MA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