var o=function(o,t){var n=t;do{if(e(o,n)){var i=r(o,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},e=function(o,e){return"v"===o?function(o){var e=window.getComputedStyle(o);return"hidden"!==e.overflowY&&!(e.overflowY===e.overflowX&&"visible"===e.overflowY)}(e):function(o){var e=window.getComputedStyle(o);return"hidden"!==e.overflowX&&!(e.overflowY===e.overflowX&&"visible"===e.overflowX)}(e)},r=function(o,e){return"v"===o?[(r=e).scrollTop,r.scrollHeight,r.clientHeight]:function(o){return[o.scrollLeft,o.scrollWidth,o.clientWidth]}(e);var r},t=function(o,t,n,i,l){var v=i,u=n.target,d=t.contains(u),f=!1,c=v>0,w=0,a=0;do{var h=r(o,u),s=h[0],p=h[1]-h[2]-s;(s||p)&&e(o,u)&&(w+=p,a+=s),u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(c&&(l&&0===w||!l&&v>w)||!c&&(l&&0===a||!l&&-v>a))&&(f=!0),f};export{t as handleScroll,o as locationCouldBeScrolled};
//# sourceMappingURL=handleScroll.js.map
