const e=t=>{if("undefined"==typeof document)return 0;if(!document.body||document.readyState&&"loading"===document.readyState)return;if(!0!==t&&"number"==typeof e.__cache)return e.__cache;const o=document.createElement("div"),{style:n}=o;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(o,null);const{clientWidth:c}=o;if(0!==c)return e.__cache=100-c,document.body.removeChild(o),e.__cache;document.body.removeChild(o)};export{e as scrollbarWidth};
