"use client";
import { __exports as m } from "../../../../_virtual/cloneDeepWith.js";
import { __require as D } from "../compat/_internal/getSymbols.js";
import { __require as u } from "../compat/_internal/getTag.js";
import { __require as B } from "../compat/_internal/tags.js";
import { __require as P } from "../predicate/isPrimitive.js";
import { __require as S } from "../predicate/isTypedArray.js";
var h;
function R() {
  return h ? m : (h = 1, (function(a) {
    Object.defineProperty(a, Symbol.toStringTag, { value: "Module" });
    const w = /* @__PURE__ */ D(), A = /* @__PURE__ */ u(), s = /* @__PURE__ */ B(), b = /* @__PURE__ */ P(), O = /* @__PURE__ */ S();
    function _(r, g) {
      return c(r, void 0, r, /* @__PURE__ */ new Map(), g);
    }
    function c(r, g, f, i = /* @__PURE__ */ new Map(), n = void 0) {
      const p = n?.(r, g, f, i);
      if (p !== void 0)
        return p;
      if (b.isPrimitive(r))
        return r;
      if (i.has(r))
        return i.get(r);
      if (Array.isArray(r)) {
        const t = new Array(r.length);
        i.set(r, t);
        for (let e = 0; e < r.length; e++)
          t[e] = c(r[e], e, f, i, n);
        return Object.hasOwn(r, "index") && (t.index = r.index), Object.hasOwn(r, "input") && (t.input = r.input), t;
      }
      if (r instanceof Date)
        return new Date(r.getTime());
      if (r instanceof RegExp) {
        const t = new RegExp(r.source, r.flags);
        return t.lastIndex = r.lastIndex, t;
      }
      if (r instanceof Map) {
        const t = /* @__PURE__ */ new Map();
        i.set(r, t);
        for (const [e, d] of r)
          t.set(e, c(d, e, f, i, n));
        return t;
      }
      if (r instanceof Set) {
        const t = /* @__PURE__ */ new Set();
        i.set(r, t);
        for (const e of r)
          t.add(c(e, void 0, f, i, n));
        return t;
      }
      if (typeof Buffer < "u" && Buffer.isBuffer(r))
        return r.subarray();
      if (O.isTypedArray(r)) {
        const t = new (Object.getPrototypeOf(r)).constructor(r.length);
        i.set(r, t);
        for (let e = 0; e < r.length; e++)
          t[e] = c(r[e], e, f, i, n);
        return t;
      }
      if (r instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && r instanceof SharedArrayBuffer)
        return r.slice(0);
      if (r instanceof DataView) {
        const t = new DataView(r.buffer.slice(0), r.byteOffset, r.byteLength);
        return i.set(r, t), y(t, r, f, i, n), t;
      }
      if (typeof File < "u" && r instanceof File) {
        const t = new File([r], r.name, {
          type: r.type
        });
        return i.set(r, t), y(t, r, f, i, n), t;
      }
      if (r instanceof Blob) {
        const t = new Blob([r], { type: r.type });
        return i.set(r, t), y(t, r, f, i, n), t;
      }
      if (r instanceof Error) {
        const t = new r.constructor();
        return i.set(r, t), t.message = r.message, t.name = r.name, t.stack = r.stack, t.cause = r.cause, y(t, r, f, i, n), t;
      }
      if (typeof r == "object" && q(r)) {
        const t = Object.create(Object.getPrototypeOf(r));
        return i.set(r, t), y(t, r, f, i, n), t;
      }
      return r;
    }
    function y(r, g, f = r, i, n) {
      const p = [...Object.keys(g), ...w.getSymbols(g)];
      for (let t = 0; t < p.length; t++) {
        const e = p[t], d = Object.getOwnPropertyDescriptor(r, e);
        (d == null || d.writable) && (r[e] = c(g[e], e, f, i, n));
      }
    }
    function q(r) {
      switch (A.getTag(r)) {
        case s.argumentsTag:
        case s.arrayTag:
        case s.arrayBufferTag:
        case s.dataViewTag:
        case s.booleanTag:
        case s.dateTag:
        case s.float32ArrayTag:
        case s.float64ArrayTag:
        case s.int8ArrayTag:
        case s.int16ArrayTag:
        case s.int32ArrayTag:
        case s.mapTag:
        case s.numberTag:
        case s.objectTag:
        case s.regexpTag:
        case s.setTag:
        case s.stringTag:
        case s.symbolTag:
        case s.uint8ArrayTag:
        case s.uint8ClampedArrayTag:
        case s.uint16ArrayTag:
        case s.uint32ArrayTag:
          return !0;
        default:
          return !1;
      }
    }
    a.cloneDeepWith = _, a.cloneDeepWithImpl = c, a.copyProperties = y;
  })(m), m);
}
export {
  R as __require
};
