import { __module as scrollparent$1 } from "../../../../../_virtual/scrollparent2.js";
var scrollparent = scrollparent$1.exports;
var hasRequiredScrollparent;
function requireScrollparent() {
  if (hasRequiredScrollparent) return scrollparent$1.exports;
  hasRequiredScrollparent = 1;
  (function(module) {
    (function(root, factory) {
      if (module.exports) {
        module.exports = factory();
      } else {
        root.Scrollparent = factory();
      }
    })(scrollparent, function() {
      function isScrolling(node) {
        var overflow = getComputedStyle(node, null).getPropertyValue("overflow");
        return overflow.indexOf("scroll") > -1 || overflow.indexOf("auto") > -1;
      }
      function scrollParent(node) {
        if (!(node instanceof HTMLElement || node instanceof SVGElement)) {
          return void 0;
        }
        var current = node.parentNode;
        while (current.parentNode) {
          if (isScrolling(current)) {
            return current;
          }
          current = current.parentNode;
        }
        return document.scrollingElement || document.documentElement;
      }
      return scrollParent;
    });
  })(scrollparent$1);
  return scrollparent$1.exports;
}
export {
  requireScrollparent as __require
};
//# sourceMappingURL=scrollparent.js.map
