import{O as a,an as d,ao as u}from"./index.js";function w(o,i={}){const{wait:s=150,immediate:r}=i;let e=()=>{o()};e=a(e,s);const n=()=>{r&&e(),window.addEventListener("resize",e)},t=()=>{window.removeEventListener("resize",e)};return d(()=>{n()}),u(()=>{t()}),{start:n,stop:t}}export{w as u};
