function e(e){function t(){let t=e.scrollWidth>e.clientWidth+1;e.classList.toggle(`is-overflowing`,t)}t();let n=new ResizeObserver(t);n.observe(e);let r=new MutationObserver(t);return r.observe(e,{characterData:!0,childList:!0,subtree:!0}),{destroy(){n.disconnect(),r.disconnect()}}}export{e as t};