import { __exports as r } from "../../../../../../_virtual/_assert.js";
var s;
function p() {
  if (s) return r;
  s = 1, Object.defineProperty(r, "__esModule", { value: !0 }), r.anumber = n, r.abytes = o, r.ahash = u, r.aexists = f, r.aoutput = c;
  function n(e) {
    if (!Number.isSafeInteger(e) || e < 0)
      throw new Error("positive integer expected, got " + e);
  }
  function a(e) {
    return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
  }
  function o(e, ...t) {
    if (!a(e))
      throw new Error("Uint8Array expected");
    if (t.length > 0 && !t.includes(e.length))
      throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
  }
  function u(e) {
    if (typeof e != "function" || typeof e.create != "function")
      throw new Error("Hash should be wrapped by utils.wrapConstructor");
    n(e.outputLen), n(e.blockLen);
  }
  function f(e, t = !0) {
    if (e.destroyed)
      throw new Error("Hash instance has been destroyed");
    if (t && e.finished)
      throw new Error("Hash#digest() has already been called");
  }
  function c(e, t) {
    o(e);
    const i = t.outputLen;
    if (e.length < i)
      throw new Error("digestInto() expects output buffer of length at least " + i);
  }
  return r;
}
export {
  p as __require
};
//# sourceMappingURL=_assert.js.map
