import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t}from"./jsx-runtime-CiQ1k8xo.js";import{lt as n}from"./vscode-api-DjORcpSo.js";import{n as r}from"./use-resize-observer-pZWTsQ9C.js";var i=n(),a=e(t(),1);function o(){let e=(0,i.c)(7),[t,n]=(0,a.useState)(0),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{n(t=>t===e?t:e)},e[0]=o):o=e[0];let c=o,l;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{c(s(e))},e[1]=l):l=e[1];let u=r(l),d;e[2]===u?d=e[3]:(d=e=>{e!=null&&c(e.scrollHeight),u(e)},e[2]=u,e[3]=d);let f=d,p;return e[4]!==t||e[5]!==f?(p={elementHeightPx:t,elementRef:f},e[4]=t,e[5]=f,e[6]=p):p=e[6],p}function s(e){return e.borderBoxSize?(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize)?.blockSize??e.contentRect.height:e.contentRect.height}export{o as t};
//# sourceMappingURL=use-measured-element-height-DscTfu6m.js.map