var d=Object.defineProperty;var u=(a,e)=>d(a,"name",{value:e,configurable:!0});import{r as i,R as f,e as p,j as N,f as R}from"./mermaid-GHXKKRXX-D-eX3FpJ.js";var L=u(({code:a,language:e,raw:s,className:n,startLine:g,lineNumbers:m,...h})=>{let{shikiTheme:l}=i.useContext(f),t=p(),[c,r]=i.useState(s);return i.useEffect(()=>{if(!t){r(s);return}let o=t.highlight({code:a,language:e,themes:l},x=>{r(x)});o&&r(o)},[a,e,l,t,s]),N.jsx(R,{className:n,language:e,lineNumbers:m,result:c,startLine:g,...h})},"R");export{L as HighlightedCodeBlockBody};
