var i = Object.defineProperty;
var f = (t, n) => i(t, "name", { value: n, configurable: !0 });
function l(t, n) {
  if (!t)
    throw new Error(n);
}
f(l, "assert");
const e = 34028234663852886e22, o = -34028234663852886e22, r = 4294967295, w = 2147483647, u = -2147483648;
function I(t) {
  if (typeof t != "number")
    throw new Error("invalid int 32: " + typeof t);
  if (!Number.isInteger(t) || t > w || t < u)
    throw new Error("invalid int 32: " + t);
}
f(I, "assertInt32");
function N(t) {
  if (typeof t != "number")
    throw new Error("invalid uint 32: " + typeof t);
  if (!Number.isInteger(t) || t > r || t < 0)
    throw new Error("invalid uint 32: " + t);
}
f(N, "assertUInt32");
function h(t) {
  if (typeof t != "number")
    throw new Error("invalid float 32: " + typeof t);
  if (Number.isFinite(t) && (t > e || t < o))
    throw new Error("invalid float 32: " + t);
}
f(h, "assertFloat32");
export {
  l as assert,
  h as assertFloat32,
  I as assertInt32,
  N as assertUInt32
};
