import { __exports as n } from "../../../../../../_virtual/traversal.js";
import { __require as d } from "../../../../domhandler@5.0.3/node_modules/domhandler/lib/index.js";
var b;
function m() {
  if (b) return n;
  b = 1, Object.defineProperty(n, "__esModule", { value: !0 }), n.getChildren = s, n.getParent = v, n.getSiblings = g, n.getAttributeValue = p, n.hasAttrib = h, n.getName = f, n.nextElementSibling = _, n.prevElementSibling = c;
  var u = /* @__PURE__ */ d();
  function s(r) {
    return (0, u.hasChildren)(r) ? r.children : [];
  }
  function v(r) {
    return r.parent || null;
  }
  function g(r) {
    var t, e, o = v(r);
    if (o != null)
      return s(o);
    for (var l = [r], i = r.prev, a = r.next; i != null; )
      l.unshift(i), t = i, i = t.prev;
    for (; a != null; )
      l.push(a), e = a, a = e.next;
    return l;
  }
  function p(r, t) {
    var e;
    return (e = r.attribs) === null || e === void 0 ? void 0 : e[t];
  }
  function h(r, t) {
    return r.attribs != null && Object.prototype.hasOwnProperty.call(r.attribs, t) && r.attribs[t] != null;
  }
  function f(r) {
    return r.name;
  }
  function _(r) {
    for (var t, e = r.next; e !== null && !(0, u.isTag)(e); )
      t = e, e = t.next;
    return e;
  }
  function c(r) {
    for (var t, e = r.prev; e !== null && !(0, u.isTag)(e); )
      t = e, e = t.prev;
    return e;
  }
  return n;
}
export {
  m as __require
};
//# sourceMappingURL=traversal.js.map
