const y = /* @__PURE__ */ (() => {
  const o = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
  return () => {
    const r = crypto.getRandomValues(new Uint8Array(16));
    let x = 0;
    return o.replace(/[xy]/g, (e) => {
      const t = r[x >> 1], n = (x % 2 ? t >> 4 : t) & 15, c = e == "x" ? n : n & 3 | 8;
      return x++, c.toString(16);
    });
  };
})(), a = typeof crypto.randomUUID == "function" ? () => crypto.randomUUID() : y;
export {
  a as uuid
};
