import { validateAndParse as s, compareSegments as p } from "./utils.mjs";
const m = (c, i) => {
  const n = s(c), e = s(i), r = n.pop(), t = e.pop(), o = p(n, e);
  return o !== 0 ? o : r && t ? p(r.split("."), t.split(".")) : r || t ? r ? -1 : 1 : 0;
};
export {
  m as compareVersions
};
