import{a as e}from"./chunk-BNv3lrIs.js";import{n as t}from"./jsx-runtime-pmtNMKr4.js";import{o as n}from"./querySelectorAll-PdiS4z27.js";var r;function i(e){if((!r&&r!==0||e)&&n){var t=document.createElement(`div`);t.style.position=`absolute`,t.style.top=`-9999px`,t.style.width=`50px`,t.style.height=`50px`,t.style.overflow=`scroll`,document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}var a=e(t());function o(){return(0,a.useState)(null)}export{i as n,o as t};