import{i as n}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-2ce7a1bc.js";const{useState:s,useEffect:a}=await n("react"),u=e=>{const[t,r]=s({width:void 0,height:void 0});return a(()=>{let i;const o=()=>{clearTimeout(i),i=setTimeout(()=>{r({width:window.innerWidth,height:window.innerHeight})},e)};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o),clearTimeout(i)}},[e]),t};function w(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{w as c,u};
