// node_modules/@gkucmierz/utils/src/mod.mjs
var getMod = (ZERO) => {
  return (dividend, divisor) => {
    if (dividend < ZERO ^ divisor < ZERO) {
      const res = -dividend % divisor;
      return res === ZERO ? ZERO : divisor - res;
    }
    return dividend % divisor;
  };
};
var mod = getMod(0);
var modBI = getMod(0n);

export {
  mod,
  modBI
};
//# sourceMappingURL=chunk-Y44FVENP.js.map
