function f(o, n, t) {
  var e = n;
  return !e && t && (e = "".concat(o, "-").concat(t)), e;
}
function c(o, n) {
  var t = o["page".concat(n ? "Y" : "X", "Offset")], e = "scroll".concat(n ? "Top" : "Left");
  if (typeof t != "number") {
    var r = o.document;
    t = r.documentElement[e], typeof t != "number" && (t = r.body[e]);
  }
  return t;
}
function a(o) {
  var n = o.getBoundingClientRect(), t = {
    left: n.left,
    top: n.top
  }, e = o.ownerDocument, r = e.defaultView || e.parentWindow;
  return t.left += c(r), t.top += c(r, !0), t;
}
export {
  f as getMotionName,
  a as offset
};
