function e(t) {
  var o = t.top, r = t.left, x = t.right, n = t.bottom;
  return {
    x: { min: r, max: x },
    y: { min: o, max: n }
  };
}
function m(t) {
  var o = t.x, r = t.y;
  return { top: r.min, right: o.max, bottom: r.max, left: o.min };
}
function i(t, o) {
  if (!o)
    return t;
  var r = o({ x: t.left, y: t.top }), x = o({ x: t.right, y: t.bottom });
  return {
    top: r.y,
    left: r.x,
    bottom: x.y,
    right: x.x
  };
}
export {
  e as convertBoundingBoxToBox,
  m as convertBoxToBoundingBox,
  i as transformBoxPoints
};
//# sourceMappingURL=conversion.es.js.map
