function d(n) {
  if (!n)
    return !1;
  const t = n.getBoundingClientRect(), e = window.innerHeight || document.documentElement.clientHeight, i = window.innerWidth || document.documentElement.clientWidth, o = t.top >= 0 && t.bottom <= e, c = t.left >= 0 && t.right <= i;
  return o && c;
}
export {
  d as isElementInViewport
};
