import { q as je, r as Qr, g as Jr, p as se } from "./___vite-browser-external_commonjs-proxy-4cfd28c1.js";
function Ge(r) {
  return r === void 0;
}
function Zr(r) {
  return r === null;
}
function Vr(r) {
  return typeof r == "boolean";
}
function he(r) {
  return r === Object(r);
}
function er(r) {
  return Array.isArray(r);
}
function Yr(r) {
  return r instanceof Date;
}
function xr(r, e) {
  return e ? he(r) && !Ge(r.uri) : he(r) && typeof r.size == "number" && typeof r.type == "string" && typeof r.slice == "function";
}
function Xr(r, e) {
  return xr(r, e) && typeof r.name == "string" && (he(r.lastModifiedDate) || typeof r.lastModified == "number");
}
function L(r) {
  return Ge(r) ? !1 : r;
}
function Be(r, e, t, n) {
  e = e || {}, t = t || new FormData(), e.indices = L(e.indices), e.nullsAsUndefineds = L(e.nullsAsUndefineds), e.booleansAsIntegers = L(e.booleansAsIntegers), e.allowEmptyArrays = L(e.allowEmptyArrays), e.noAttributesWithArrayNotation = L(
    e.noAttributesWithArrayNotation
  ), e.noFilesWithArrayNotation = L(e.noFilesWithArrayNotation), e.dotsForObjectNotation = L(e.dotsForObjectNotation);
  const o = typeof t.getParts == "function";
  return Ge(r) || (Zr(r) ? e.nullsAsUndefineds || t.append(n, "") : Vr(r) ? e.booleansAsIntegers ? t.append(n, r ? 1 : 0) : t.append(n, r) : er(r) ? r.length ? r.forEach((i, a) => {
    let u = n + "[" + (e.indices ? a : "") + "]";
    (e.noAttributesWithArrayNotation || e.noFilesWithArrayNotation && Xr(i, o)) && (u = n), Be(i, e, t, u);
  }) : e.allowEmptyArrays && t.append(e.noAttributesWithArrayNotation ? n : n + "[]", "") : Yr(r) ? t.append(n, r.toISOString()) : he(r) && !xr(r, o) ? Object.keys(r).forEach((i) => {
    const a = r[i];
    if (er(a))
      for (; i.length > 2 && i.lastIndexOf("[]") === i.length - 2; )
        i = i.substring(0, i.length - 2);
    const u = n ? e.dotsForObjectNotation ? n + "." + i : n + "[" + i + "]" : i;
    Be(a, e, t, u);
  }) : t.append(n, r)), t;
}
var jr = {
  serialize: Be
}, et = Error, rt = EvalError, tt = RangeError, nt = ReferenceError, Pr = SyntaxError, ae = TypeError, ot = URIError, it = function() {
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
    return !1;
  if (typeof Symbol.iterator == "symbol")
    return !0;
  var e = {}, t = Symbol("test"), n = Object(t);
  if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
    return !1;
  var o = 42;
  e[t] = o;
  for (t in e)
    return !1;
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
    return !1;
  var i = Object.getOwnPropertySymbols(e);
  if (i.length !== 1 || i[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
    return !1;
  if (typeof Object.getOwnPropertyDescriptor == "function") {
    var a = Object.getOwnPropertyDescriptor(e, t);
    if (a.value !== o || a.enumerable !== !0)
      return !1;
  }
  return !0;
}, rr = typeof Symbol < "u" && Symbol, at = it, lt = function() {
  return typeof rr != "function" || typeof Symbol != "function" || typeof rr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : at();
}, Oe = {
  __proto__: null,
  foo: {}
}, ft = Object, ut = function() {
  return { __proto__: Oe }.foo === Oe.foo && !(Oe instanceof ft);
}, st = "Function.prototype.bind called on incompatible ", ct = Object.prototype.toString, pt = Math.max, yt = "[object Function]", tr = function(e, t) {
  for (var n = [], o = 0; o < e.length; o += 1)
    n[o] = e[o];
  for (var i = 0; i < t.length; i += 1)
    n[i + e.length] = t[i];
  return n;
}, dt = function(e, t) {
  for (var n = [], o = t || 0, i = 0; o < e.length; o += 1, i += 1)
    n[i] = e[o];
  return n;
}, mt = function(r, e) {
  for (var t = "", n = 0; n < r.length; n += 1)
    t += r[n], n + 1 < r.length && (t += e);
  return t;
}, vt = function(e) {
  var t = this;
  if (typeof t != "function" || ct.apply(t) !== yt)
    throw new TypeError(st + t);
  for (var n = dt(arguments, 1), o, i = function() {
    if (this instanceof o) {
      var s = t.apply(
        this,
        tr(n, arguments)
      );
      return Object(s) === s ? s : this;
    }
    return t.apply(
      e,
      tr(n, arguments)
    );
  }, a = pt(0, t.length - n.length), u = [], l = 0; l < a; l++)
    u[l] = "$" + l;
  if (o = Function("binder", "return function (" + mt(u, ",") + "){ return binder.apply(this,arguments); }")(i), t.prototype) {
    var f = function() {
    };
    f.prototype = t.prototype, o.prototype = new f(), f.prototype = null;
  }
  return o;
}, ht = vt, qe = Function.prototype.bind || ht, gt = Function.prototype.call, bt = Object.prototype.hasOwnProperty, St = qe, wt = St.call(gt, bt), d, At = et, Et = rt, Ot = tt, xt = nt, Z = Pr, J = ae, Pt = ot, $r = Function, xe = function(r) {
  try {
    return $r('"use strict"; return (' + r + ").constructor;")();
  } catch {
  }
}, k = Object.getOwnPropertyDescriptor;
if (k)
  try {
    k({}, "");
  } catch {
    k = null;
  }
var Pe = function() {
  throw new J();
}, $t = k ? function() {
  try {
    return arguments.callee, Pe;
  } catch {
    try {
      return k(arguments, "callee").get;
    } catch {
      return Pe;
    }
  }
}() : Pe, q = lt(), It = ut(), b = Object.getPrototypeOf || (It ? function(r) {
  return r.__proto__;
} : null), Q = {}, Ft = typeof Uint8Array > "u" || !b ? d : b(Uint8Array), z = {
  __proto__: null,
  "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
  "%Array%": Array,
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
  "%ArrayIteratorPrototype%": q && b ? b([][Symbol.iterator]()) : d,
  "%AsyncFromSyncIteratorPrototype%": d,
  "%AsyncFunction%": Q,
  "%AsyncGenerator%": Q,
  "%AsyncGeneratorFunction%": Q,
  "%AsyncIteratorPrototype%": Q,
  "%Atomics%": typeof Atomics > "u" ? d : Atomics,
  "%BigInt%": typeof BigInt > "u" ? d : BigInt,
  "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
  "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
  "%Boolean%": Boolean,
  "%DataView%": typeof DataView > "u" ? d : DataView,
  "%Date%": Date,
  "%decodeURI%": decodeURI,
  "%decodeURIComponent%": decodeURIComponent,
  "%encodeURI%": encodeURI,
  "%encodeURIComponent%": encodeURIComponent,
  "%Error%": At,
  "%eval%": eval,
  // eslint-disable-line no-eval
  "%EvalError%": Et,
  "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
  "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
  "%Function%": $r,
  "%GeneratorFunction%": Q,
  "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
  "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
  "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
  "%isFinite%": isFinite,
  "%isNaN%": isNaN,
  "%IteratorPrototype%": q && b ? b(b([][Symbol.iterator]())) : d,
  "%JSON%": typeof JSON == "object" ? JSON : d,
  "%Map%": typeof Map > "u" ? d : Map,
  "%MapIteratorPrototype%": typeof Map > "u" || !q || !b ? d : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  "%Math%": Math,
  "%Number%": Number,
  "%Object%": Object,
  "%parseFloat%": parseFloat,
  "%parseInt%": parseInt,
  "%Promise%": typeof Promise > "u" ? d : Promise,
  "%Proxy%": typeof Proxy > "u" ? d : Proxy,
  "%RangeError%": Ot,
  "%ReferenceError%": xt,
  "%Reflect%": typeof Reflect > "u" ? d : Reflect,
  "%RegExp%": RegExp,
  "%Set%": typeof Set > "u" ? d : Set,
  "%SetIteratorPrototype%": typeof Set > "u" || !q || !b ? d : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
  "%String%": String,
  "%StringIteratorPrototype%": q && b ? b(""[Symbol.iterator]()) : d,
  "%Symbol%": q ? Symbol : d,
  "%SyntaxError%": Z,
  "%ThrowTypeError%": $t,
  "%TypedArray%": Ft,
  "%TypeError%": J,
  "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
  "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
  "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
  "%URIError%": Pt,
  "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
  "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
  "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet
};
if (b)
  try {
    null.error;
  } catch (r) {
    var Tt = b(b(r));
    z["%Error.prototype%"] = Tt;
  }
var Dt = function r(e) {
  var t;
  if (e === "%AsyncFunction%")
    t = xe("async function () {}");
  else if (e === "%GeneratorFunction%")
    t = xe("function* () {}");
  else if (e === "%AsyncGeneratorFunction%")
    t = xe("async function* () {}");
  else if (e === "%AsyncGenerator%") {
    var n = r("%AsyncGeneratorFunction%");
    n && (t = n.prototype);
  } else if (e === "%AsyncIteratorPrototype%") {
    var o = r("%AsyncGenerator%");
    o && b && (t = b(o.prototype));
  }
  return z[e] = t, t;
}, nr = {
  __proto__: null,
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  "%ArrayPrototype%": ["Array", "prototype"],
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  "%ArrayProto_values%": ["Array", "prototype", "values"],
  "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  "%BooleanPrototype%": ["Boolean", "prototype"],
  "%DataViewPrototype%": ["DataView", "prototype"],
  "%DatePrototype%": ["Date", "prototype"],
  "%ErrorPrototype%": ["Error", "prototype"],
  "%EvalErrorPrototype%": ["EvalError", "prototype"],
  "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  "%FunctionPrototype%": ["Function", "prototype"],
  "%Generator%": ["GeneratorFunction", "prototype"],
  "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  "%JSONParse%": ["JSON", "parse"],
  "%JSONStringify%": ["JSON", "stringify"],
  "%MapPrototype%": ["Map", "prototype"],
  "%NumberPrototype%": ["Number", "prototype"],
  "%ObjectPrototype%": ["Object", "prototype"],
  "%ObjProto_toString%": ["Object", "prototype", "toString"],
  "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  "%PromisePrototype%": ["Promise", "prototype"],
  "%PromiseProto_then%": ["Promise", "prototype", "then"],
  "%Promise_all%": ["Promise", "all"],
  "%Promise_reject%": ["Promise", "reject"],
  "%Promise_resolve%": ["Promise", "resolve"],
  "%RangeErrorPrototype%": ["RangeError", "prototype"],
  "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  "%RegExpPrototype%": ["RegExp", "prototype"],
  "%SetPrototype%": ["Set", "prototype"],
  "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  "%StringPrototype%": ["String", "prototype"],
  "%SymbolPrototype%": ["Symbol", "prototype"],
  "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  "%TypeErrorPrototype%": ["TypeError", "prototype"],
  "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  "%URIErrorPrototype%": ["URIError", "prototype"],
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
}, le = qe, ge = wt, Rt = le.call(Function.call, Array.prototype.concat), Nt = le.call(Function.apply, Array.prototype.splice), or = le.call(Function.call, String.prototype.replace), be = le.call(Function.call, String.prototype.slice), Mt = le.call(Function.call, RegExp.prototype.exec), _t = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Bt = /\\(\\)?/g, Ct = function(e) {
  var t = be(e, 0, 1), n = be(e, -1);
  if (t === "%" && n !== "%")
    throw new Z("invalid intrinsic syntax, expected closing `%`");
  if (n === "%" && t !== "%")
    throw new Z("invalid intrinsic syntax, expected opening `%`");
  var o = [];
  return or(e, _t, function(i, a, u, l) {
    o[o.length] = u ? or(l, Bt, "$1") : a || i;
  }), o;
}, Ut = function(e, t) {
  var n = e, o;
  if (ge(nr, n) && (o = nr[n], n = "%" + o[0] + "%"), ge(z, n)) {
    var i = z[n];
    if (i === Q && (i = Dt(n)), typeof i > "u" && !t)
      throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
    return {
      alias: o,
      name: n,
      value: i
    };
  }
  throw new Z("intrinsic " + e + " does not exist!");
}, X = function(e, t) {
  if (typeof e != "string" || e.length === 0)
    throw new J("intrinsic name must be a non-empty string");
  if (arguments.length > 1 && typeof t != "boolean")
    throw new J('"allowMissing" argument must be a boolean');
  if (Mt(/^%?[^%]*%?$/, e) === null)
    throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  var n = Ct(e), o = n.length > 0 ? n[0] : "", i = Ut("%" + o + "%", t), a = i.name, u = i.value, l = !1, f = i.alias;
  f && (o = f[0], Nt(n, Rt([0, 1], f)));
  for (var s = 1, p = !0; s < n.length; s += 1) {
    var c = n[s], y = be(c, 0, 1), v = be(c, -1);
    if ((y === '"' || y === "'" || y === "`" || v === '"' || v === "'" || v === "`") && y !== v)
      throw new Z("property names with quotes must have matching quotes");
    if ((c === "constructor" || !p) && (l = !0), o += "." + c, a = "%" + o + "%", ge(z, a))
      u = z[a];
    else if (u != null) {
      if (!(c in u)) {
        if (!t)
          throw new J("base intrinsic for " + e + " exists, but the property is not available.");
        return;
      }
      if (k && s + 1 >= n.length) {
        var w = k(u, c);
        p = !!w, p && "get" in w && !("originalValue" in w.get) ? u = w.get : u = u[c];
      } else
        p = ge(u, c), u = u[c];
      p && !l && (z[a] = u);
    }
  }
  return u;
}, Ir = { exports: {} }, $e, ir;
function Ke() {
  if (ir)
    return $e;
  ir = 1;
  var r = X, e = r("%Object.defineProperty%", !0) || !1;
  if (e)
    try {
      e({}, "a", { value: 1 });
    } catch {
      e = !1;
    }
  return $e = e, $e;
}
var Lt = X, me = Lt("%Object.getOwnPropertyDescriptor%", !0);
if (me)
  try {
    me([], "length");
  } catch {
    me = null;
  }
var Fr = me, ar = Ke(), Wt = Pr, K = ae, lr = Fr, kt = function(e, t, n) {
  if (!e || typeof e != "object" && typeof e != "function")
    throw new K("`obj` must be an object or a function`");
  if (typeof t != "string" && typeof t != "symbol")
    throw new K("`property` must be a string or a symbol`");
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
    throw new K("`nonEnumerable`, if provided, must be a boolean or null");
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
    throw new K("`nonWritable`, if provided, must be a boolean or null");
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
    throw new K("`nonConfigurable`, if provided, must be a boolean or null");
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
    throw new K("`loose`, if provided, must be a boolean");
  var o = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, l = !!lr && lr(e, t);
  if (ar)
    ar(e, t, {
      configurable: a === null && l ? l.configurable : !a,
      enumerable: o === null && l ? l.enumerable : !o,
      value: n,
      writable: i === null && l ? l.writable : !i
    });
  else if (u || !o && !i && !a)
    e[t] = n;
  else
    throw new Wt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
}, Ce = Ke(), Tr = function() {
  return !!Ce;
};
Tr.hasArrayLengthDefineBug = function() {
  if (!Ce)
    return null;
  try {
    return Ce([], "length", { value: 1 }).length !== 1;
  } catch {
    return !0;
  }
};
var zt = Tr, Ht = X, fr = kt, Gt = zt(), ur = Fr, sr = ae, qt = Ht("%Math.floor%"), Kt = function(e, t) {
  if (typeof e != "function")
    throw new sr("`fn` is not a function");
  if (typeof t != "number" || t < 0 || t > 4294967295 || qt(t) !== t)
    throw new sr("`length` must be a positive 32-bit integer");
  var n = arguments.length > 2 && !!arguments[2], o = !0, i = !0;
  if ("length" in e && ur) {
    var a = ur(e, "length");
    a && !a.configurable && (o = !1), a && !a.writable && (i = !1);
  }
  return (o || i || !n) && (Gt ? fr(
    /** @type {Parameters<define>[0]} */
    e,
    "length",
    t,
    !0,
    !0
  ) : fr(
    /** @type {Parameters<define>[0]} */
    e,
    "length",
    t
  )), e;
};
(function(r) {
  var e = qe, t = X, n = Kt, o = ae, i = t("%Function.prototype.apply%"), a = t("%Function.prototype.call%"), u = t("%Reflect.apply%", !0) || e.call(a, i), l = Ke(), f = t("%Math.max%");
  r.exports = function(c) {
    if (typeof c != "function")
      throw new o("a function is required");
    var y = u(e, a, arguments);
    return n(
      y,
      1 + f(0, c.length - (arguments.length - 1)),
      !0
    );
  };
  var s = function() {
    return u(e, i, arguments);
  };
  l ? l(r.exports, "apply", { value: s }) : r.exports.apply = s;
})(Ir);
var Qt = Ir.exports, Dr = X, Rr = Qt, Jt = Rr(Dr("String.prototype.indexOf")), Zt = function(e, t) {
  var n = Dr(e, !!t);
  return typeof n == "function" && Jt(e, ".prototype.") > -1 ? Rr(n) : n;
}, Qe = typeof Map == "function" && Map.prototype, Ie = Object.getOwnPropertyDescriptor && Qe ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Se = Qe && Ie && typeof Ie.get == "function" ? Ie.get : null, cr = Qe && Map.prototype.forEach, Je = typeof Set == "function" && Set.prototype, Fe = Object.getOwnPropertyDescriptor && Je ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, we = Je && Fe && typeof Fe.get == "function" ? Fe.get : null, pr = Je && Set.prototype.forEach, Vt = typeof WeakMap == "function" && WeakMap.prototype, ne = Vt ? WeakMap.prototype.has : null, Yt = typeof WeakSet == "function" && WeakSet.prototype, oe = Yt ? WeakSet.prototype.has : null, Xt = typeof WeakRef == "function" && WeakRef.prototype, yr = Xt ? WeakRef.prototype.deref : null, jt = Boolean.prototype.valueOf, en = Object.prototype.toString, rn = Function.prototype.toString, tn = String.prototype.match, Ze = String.prototype.slice, _ = String.prototype.replace, nn = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, Nr = RegExp.prototype.test, mr = Array.prototype.concat, $ = Array.prototype.join, on = Array.prototype.slice, vr = Math.floor, Ue = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Te = Object.getOwnPropertySymbols, Le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", A = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || "symbol") ? Symbol.toStringTag : null, Mr = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
  return r.__proto__;
} : null);
function gr(r, e) {
  if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Nr.call(/e/, e))
    return e;
  var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  if (typeof r == "number") {
    var n = r < 0 ? -vr(-r) : vr(r);
    if (n !== r) {
      var o = String(n), i = Ze.call(e, o.length + 1);
      return _.call(o, t, "$&_") + "." + _.call(_.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
    }
  }
  return _.call(e, t, "$&_");
}
var We = Qr, br = We.custom, Sr = Br(br) ? br : null, an = function r(e, t, n, o) {
  var i = t || {};
  if (M(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
    throw new TypeError('option "quoteStyle" must be "single" or "double"');
  if (M(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
    throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  var a = M(i, "customInspect") ? i.customInspect : !0;
  if (typeof a != "boolean" && a !== "symbol")
    throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  if (M(i, "indent") && i.indent !== null && i.indent !== "	" && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
    throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  if (M(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
    throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  var u = i.numericSeparator;
  if (typeof e > "u")
    return "undefined";
  if (e === null)
    return "null";
  if (typeof e == "boolean")
    return e ? "true" : "false";
  if (typeof e == "string")
    return Ur(e, i);
  if (typeof e == "number") {
    if (e === 0)
      return 1 / 0 / e > 0 ? "0" : "-0";
    var l = String(e);
    return u ? gr(e, l) : l;
  }
  if (typeof e == "bigint") {
    var f = String(e) + "n";
    return u ? gr(e, f) : f;
  }
  var s = typeof i.depth > "u" ? 5 : i.depth;
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
    return ke(e) ? "[Array]" : "[Object]";
  var p = On(i, n);
  if (typeof o > "u")
    o = [];
  else if (Cr(o, e) >= 0)
    return "[Circular]";
  function c(O, R, N) {
    if (R && (o = on.call(o), o.push(R)), N) {
      var re = {
        depth: i.depth
      };
      return M(i, "quoteStyle") && (re.quoteStyle = i.quoteStyle), r(O, re, n + 1, o);
    }
    return r(O, i, n + 1, o);
  }
  if (typeof e == "function" && !wr(e)) {
    var y = mn(e), v = ce(e, c);
    return "[Function" + (y ? ": " + y : " (anonymous)") + "]" + (v.length > 0 ? " { " + $.call(v, ", ") + " }" : "");
  }
  if (Br(e)) {
    var w = V ? _.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Le.call(e);
    return typeof e == "object" && !V ? te(w) : w;
  }
  if (wn(e)) {
    for (var E = "<" + dr.call(String(e.nodeName)), I = e.attributes || [], F = 0; F < I.length; F++)
      E += " " + I[F].name + "=" + _r(ln(I[F].value), "double", i);
    return E += ">", e.childNodes && e.childNodes.length && (E += "..."), E += "</" + dr.call(String(e.nodeName)) + ">", E;
  }
  if (ke(e)) {
    if (e.length === 0)
      return "[]";
    var m = ce(e, c);
    return p && !En(m) ? "[" + ze(m, p) + "]" : "[ " + $.call(m, ", ") + " ]";
  }
  if (un(e)) {
    var T = ce(e, c);
    return !("cause" in Error.prototype) && "cause" in e && !Mr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(mr.call("[cause]: " + c(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(T, ", ") + " }";
  }
  if (typeof e == "object" && a) {
    if (Sr && typeof e[Sr] == "function" && We)
      return We(e, { depth: s - n });
    if (a !== "symbol" && typeof e.inspect == "function")
      return e.inspect();
  }
  if (vn(e)) {
    var C = [];
    return cr && cr.call(e, function(O, R) {
      C.push(c(R, e, !0) + " => " + c(O, e));
    }), Ar("Map", Se.call(e), C, p);
  }
  if (bn(e)) {
    var ee = [];
    return pr && pr.call(e, function(O) {
      ee.push(c(O, e));
    }), Ar("Set", we.call(e), ee, p);
  }
  if (hn(e))
    return De("WeakMap");
  if (Sn(e))
    return De("WeakSet");
  if (gn(e))
    return De("WeakRef");
  if (cn(e))
    return te(c(Number(e)));
  if (yn(e))
    return te(c(Ue.call(e)));
  if (pn(e))
    return te(jt.call(e));
  if (sn(e))
    return te(c(String(e)));
  if (typeof window < "u" && e === window)
    return "{ [object Window] }";
  if (typeof globalThis < "u" && e === globalThis || typeof je < "u" && e === je)
    return "{ [object globalThis] }";
  if (!fn(e) && !wr(e)) {
    var H = ce(e, c), fe = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", D = !fe && A && Object(e) === e && A in e ? Ze.call(B(e), 8, -1) : U ? "Object" : "", ue = fe || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = ue + (D || U ? "[" + $.call(mr.call([], D || [], U || []), ": ") + "] " : "");
    return H.length === 0 ? G + "{}" : p ? G + "{" + ze(H, p) + "}" : G + "{ " + $.call(H, ", ") + " }";
  }
  return String(e);
};
function _r(r, e, t) {
  var n = (t.quoteStyle || e) === "double" ? '"' : "'";
  return n + r + n;
}
function ln(r) {
  return _.call(String(r), /"/g, "&quot;");
}
function ke(r) {
  return B(r) === "[object Array]" && (!A || !(typeof r == "object" && A in r));
}
function fn(r) {
  return B(r) === "[object Date]" && (!A || !(typeof r == "object" && A in r));
}
function wr(r) {
  return B(r) === "[object RegExp]" && (!A || !(typeof r == "object" && A in r));
}
function un(r) {
  return B(r) === "[object Error]" && (!A || !(typeof r == "object" && A in r));
}
function sn(r) {
  return B(r) === "[object String]" && (!A || !(typeof r == "object" && A in r));
}
function cn(r) {
  return B(r) === "[object Number]" && (!A || !(typeof r == "object" && A in r));
}
function pn(r) {
  return B(r) === "[object Boolean]" && (!A || !(typeof r == "object" && A in r));
}
function Br(r) {
  if (V)
    return r && typeof r == "object" && r instanceof Symbol;
  if (typeof r == "symbol")
    return !0;
  if (!r || typeof r != "object" || !Le)
    return !1;
  try {
    return Le.call(r), !0;
  } catch {
  }
  return !1;
}
function yn(r) {
  if (!r || typeof r != "object" || !Ue)
    return !1;
  try {
    return Ue.call(r), !0;
  } catch {
  }
  return !1;
}
var dn = Object.prototype.hasOwnProperty || function(r) {
  return r in this;
};
function M(r, e) {
  return dn.call(r, e);
}
function B(r) {
  return en.call(r);
}
function mn(r) {
  if (r.name)
    return r.name;
  var e = tn.call(rn.call(r), /^function\s*([\w$]+)/);
  return e ? e[1] : null;
}
function Cr(r, e) {
  if (r.indexOf)
    return r.indexOf(e);
  for (var t = 0, n = r.length; t < n; t++)
    if (r[t] === e)
      return t;
  return -1;
}
function vn(r) {
  if (!Se || !r || typeof r != "object")
    return !1;
  try {
    Se.call(r);
    try {
      we.call(r);
    } catch {
      return !0;
    }
    return r instanceof Map;
  } catch {
  }
  return !1;
}
function hn(r) {
  if (!ne || !r || typeof r != "object")
    return !1;
  try {
    ne.call(r, ne);
    try {
      oe.call(r, oe);
    } catch {
      return !0;
    }
    return r instanceof WeakMap;
  } catch {
  }
  return !1;
}
function gn(r) {
  if (!yr || !r || typeof r != "object")
    return !1;
  try {
    return yr.call(r), !0;
  } catch {
  }
  return !1;
}
function bn(r) {
  if (!we || !r || typeof r != "object")
    return !1;
  try {
    we.call(r);
    try {
      Se.call(r);
    } catch {
      return !0;
    }
    return r instanceof Set;
  } catch {
  }
  return !1;
}
function Sn(r) {
  if (!oe || !r || typeof r != "object")
    return !1;
  try {
    oe.call(r, oe);
    try {
      ne.call(r, ne);
    } catch {
      return !0;
    }
    return r instanceof WeakSet;
  } catch {
  }
  return !1;
}
function wn(r) {
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
}
function Ur(r, e) {
  if (r.length > e.maxStringLength) {
    var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
    return Ur(Ze.call(r, 0, e.maxStringLength), e) + n;
  }
  var o = _.call(_.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, An);
  return _r(o, "single", e);
}
function An(r) {
  var e = r.charCodeAt(0), t = {
    8: "b",
    9: "t",
    10: "n",
    12: "f",
    13: "r"
  }[e];
  return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + nn.call(e.toString(16));
}
function te(r) {
  return "Object(" + r + ")";
}
function De(r) {
  return r + " { ? }";
}
function Ar(r, e, t, n) {
  var o = n ? ze(t, n) : $.call(t, ", ");
  return r + " (" + e + ") {" + o + "}";
}
function En(r) {
  for (var e = 0; e < r.length; e++)
    if (Cr(r[e], `
`) >= 0)
      return !1;
  return !0;
}
function On(r, e) {
  var t;
  if (r.indent === "	")
    t = "	";
  else if (typeof r.indent == "number" && r.indent > 0)
    t = $.call(Array(r.indent + 1), " ");
  else
    return null;
  return {
    base: t,
    prev: $.call(Array(e + 1), t)
  };
}
function ze(r, e) {
  if (r.length === 0)
    return "";
  var t = `
` + e.prev + e.base;
  return t + $.call(r, "," + t) + `
` + e.prev;
}
function ce(r, e) {
  var t = ke(r), n = [];
  if (t) {
    n.length = r.length;
    for (var o = 0; o < r.length; o++)
      n[o] = M(r, o) ? e(r[o], r) : "";
  }
  var i = typeof Te == "function" ? Te(r) : [], a;
  if (V) {
    a = {};
    for (var u = 0; u < i.length; u++)
      a["$" + i[u]] = i[u];
  }
  for (var l in r)
    M(r, l) && (t && String(Number(l)) === l && l < r.length || V && a["$" + l] instanceof Symbol || (Nr.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
  if (typeof Te == "function")
    for (var f = 0; f < i.length; f++)
      Mr.call(r, i[f]) && n.push("[" + e(i[f]) + "]: " + e(r[i[f]], r));
  return n;
}
var Lr = X, j = Zt, xn = an, Pn = ae, pe = Lr("%WeakMap%", !0), ye = Lr("%Map%", !0), $n = j("WeakMap.prototype.get", !0), In = j("WeakMap.prototype.set", !0), Fn = j("WeakMap.prototype.has", !0), Tn = j("Map.prototype.get", !0), Dn = j("Map.prototype.set", !0), Rn = j("Map.prototype.has", !0), Ve = function(r, e) {
  for (var t = r, n; (n = t.next) !== null; t = n)
    if (n.key === e)
      return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
      r.next, r.next = n, n;
}, Nn = function(r, e) {
  var t = Ve(r, e);
  return t && t.value;
}, Mn = function(r, e, t) {
  var n = Ve(r, e);
  n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
  {
    // eslint-disable-line no-param-reassign, no-extra-parens
    key: e,
    next: r.next,
    value: t
  };
}, _n = function(r, e) {
  return !!Ve(r, e);
}, Bn = function() {
  var e, t, n, o = {
    assert: function(i) {
      if (!o.has(i))
        throw new Pn("Side channel does not contain " + xn(i));
    },
    get: function(i) {
      if (pe && i && (typeof i == "object" || typeof i == "function")) {
        if (e)
          return $n(e, i);
      } else if (ye) {
        if (t)
          return Tn(t, i);
      } else if (n)
        return Nn(n, i);
    },
    has: function(i) {
      if (pe && i && (typeof i == "object" || typeof i == "function")) {
        if (e)
          return Fn(e, i);
      } else if (ye) {
        if (t)
          return Rn(t, i);
      } else if (n)
        return _n(n, i);
      return !1;
    },
    set: function(i, a) {
      pe && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new pe()), In(e, i, a)) : ye ? (t || (t = new ye()), Dn(t, i, a)) : (n || (n = { key: {}, next: null }), Mn(n, i, a));
    }
  };
  return o;
}, Cn = String.prototype.replace, Un = /%20/g, Re = {
  RFC1738: "RFC1738",
  RFC3986: "RFC3986"
}, Ye = {
  default: Re.RFC3986,
  formatters: {
    RFC1738: function(r) {
      return Cn.call(r, Un, "+");
    },
    RFC3986: function(r) {
      return String(r);
    }
  },
  RFC1738: Re.RFC1738,
  RFC3986: Re.RFC3986
}, Ln = Ye, Ne = Object.prototype.hasOwnProperty, W = Array.isArray, x = function() {
  for (var r = [], e = 0; e < 256; ++e)
    r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
  return r;
}(), Wn = function(e) {
  for (; e.length > 1; ) {
    var t = e.pop(), n = t.obj[t.prop];
    if (W(n)) {
      for (var o = [], i = 0; i < n.length; ++i)
        typeof n[i] < "u" && o.push(n[i]);
      t.obj[t.prop] = o;
    }
  }
}, Wr = function(e, t) {
  for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
    typeof e[o] < "u" && (n[o] = e[o]);
  return n;
}, kn = function r(e, t, n) {
  if (!t)
    return e;
  if (typeof t != "object") {
    if (W(e))
      e.push(t);
    else if (e && typeof e == "object")
      (n && (n.plainObjects || n.allowPrototypes) || !Ne.call(Object.prototype, t)) && (e[t] = !0);
    else
      return [e, t];
    return e;
  }
  if (!e || typeof e != "object")
    return [e].concat(t);
  var o = e;
  return W(e) && !W(t) && (o = Wr(e, n)), W(e) && W(t) ? (t.forEach(function(i, a) {
    if (Ne.call(e, a)) {
      var u = e[a];
      u && typeof u == "object" && i && typeof i == "object" ? e[a] = r(u, i, n) : e.push(i);
    } else
      e[a] = i;
  }), e) : Object.keys(t).reduce(function(i, a) {
    var u = t[a];
    return Ne.call(i, a) ? i[a] = r(i[a], u, n) : i[a] = u, i;
  }, o);
}, zn = function(e, t) {
  return Object.keys(t).reduce(function(n, o) {
    return n[o] = t[o], n;
  }, e);
}, Hn = function(r, e, t) {
  var n = r.replace(/\+/g, " ");
  if (t === "iso-8859-1")
    return n.replace(/%[0-9a-f]{2}/gi, unescape);
  try {
    return decodeURIComponent(n);
  } catch {
    return n;
  }
}, Me = 1024, Gn = function(e, t, n, o, i) {
  if (e.length === 0)
    return e;
  var a = e;
  if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1")
    return escape(a).replace(/%u[0-9a-f]{4}/gi, function(y) {
      return "%26%23" + parseInt(y.slice(2), 16) + "%3B";
    });
  for (var u = "", l = 0; l < a.length; l += Me) {
    for (var f = a.length >= Me ? a.slice(l, l + Me) : a, s = [], p = 0; p < f.length; ++p) {
      var c = f.charCodeAt(p);
      if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || i === Ln.RFC1738 && (c === 40 || c === 41)) {
        s[s.length] = f.charAt(p);
        continue;
      }
      if (c < 128) {
        s[s.length] = x[c];
        continue;
      }
      if (c < 2048) {
        s[s.length] = x[192 | c >> 6] + x[128 | c & 63];
        continue;
      }
      if (c < 55296 || c >= 57344) {
        s[s.length] = x[224 | c >> 12] + x[128 | c >> 6 & 63] + x[128 | c & 63];
        continue;
      }
      p += 1, c = 65536 + ((c & 1023) << 10 | f.charCodeAt(p) & 1023), s[s.length] = x[240 | c >> 18] + x[128 | c >> 12 & 63] + x[128 | c >> 6 & 63] + x[128 | c & 63];
    }
    u += s.join("");
  }
  return u;
}, qn = function(e) {
  for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
    for (var i = t[o], a = i.obj[i.prop], u = Object.keys(a), l = 0; l < u.length; ++l) {
      var f = u[l], s = a[f];
      typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t.push({ obj: a, prop: f }), n.push(s));
    }
  return Wn(t), e;
}, Kn = function(e) {
  return Object.prototype.toString.call(e) === "[object RegExp]";
}, Qn = function(e) {
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, Jn = function(e, t) {
  return [].concat(e, t);
}, Zn = function(e, t) {
  if (W(e)) {
    for (var n = [], o = 0; o < e.length; o += 1)
      n.push(t(e[o]));
    return n;
  }
  return t(e);
}, kr = {
  arrayToObject: Wr,
  assign: zn,
  combine: Jn,
  compact: qn,
  decode: Hn,
  encode: Gn,
  isBuffer: Qn,
  isRegExp: Kn,
  maybeMap: Zn,
  merge: kn
}, zr = Bn, ve = kr, ie = Ye, Vn = Object.prototype.hasOwnProperty, Hr = {
  brackets: function(e) {
    return e + "[]";
  },
  comma: "comma",
  indices: function(e, t) {
    return e + "[" + t + "]";
  },
  repeat: function(e) {
    return e;
  }
}, P = Array.isArray, Yn = Array.prototype.push, Gr = function(r, e) {
  Yn.apply(r, P(e) ? e : [e]);
}, Xn = Date.prototype.toISOString, Er = ie.default, g = {
  addQueryPrefix: !1,
  allowDots: !1,
  allowEmptyArrays: !1,
  arrayFormat: "indices",
  charset: "utf-8",
  charsetSentinel: !1,
  delimiter: "&",
  encode: !0,
  encodeDotInKeys: !1,
  encoder: ve.encode,
  encodeValuesOnly: !1,
  format: Er,
  formatter: ie.formatters[Er],
  // deprecated
  indices: !1,
  serializeDate: function(e) {
    return Xn.call(e);
  },
  skipNulls: !1,
  strictNullHandling: !1
}, jn = function(e) {
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, _e = {}, eo = function r(e, t, n, o, i, a, u, l, f, s, p, c, y, v, w, E, I, F) {
  for (var m = e, T = F, C = 0, ee = !1; (T = T.get(_e)) !== void 0 && !ee; ) {
    var H = T.get(e);
    if (C += 1, typeof H < "u") {
      if (H === C)
        throw new RangeError("Cyclic object value");
      ee = !0;
    }
    typeof T.get(_e) > "u" && (C = 0);
  }
  if (typeof s == "function" ? m = s(t, m) : m instanceof Date ? m = y(m) : n === "comma" && P(m) && (m = ve.maybeMap(m, function(Ee) {
    return Ee instanceof Date ? y(Ee) : Ee;
  })), m === null) {
    if (a)
      return f && !E ? f(t, g.encoder, I, "key", v) : t;
    m = "";
  }
  if (jn(m) || ve.isBuffer(m)) {
    if (f) {
      var fe = E ? t : f(t, g.encoder, I, "key", v);
      return [w(fe) + "=" + w(f(m, g.encoder, I, "value", v))];
    }
    return [w(t) + "=" + w(String(m))];
  }
  var U = [];
  if (typeof m > "u")
    return U;
  var D;
  if (n === "comma" && P(m))
    E && f && (m = ve.maybeMap(m, f)), D = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
  else if (P(s))
    D = s;
  else {
    var ue = Object.keys(m);
    D = p ? ue.sort(p) : ue;
  }
  var G = l ? t.replace(/\./g, "%2E") : t, O = o && P(m) && m.length === 1 ? G + "[]" : G;
  if (i && P(m) && m.length === 0)
    return O + "[]";
  for (var R = 0; R < D.length; ++R) {
    var N = D[R], re = typeof N == "object" && typeof N.value < "u" ? N.value : m[N];
    if (!(u && re === null)) {
      var Ae = c && l ? N.replace(/\./g, "%2E") : N, Kr = P(m) ? typeof n == "function" ? n(O, Ae) : O : O + (c ? "." + Ae : "[" + Ae + "]");
      F.set(e, C);
      var Xe = zr();
      Xe.set(_e, F), Gr(U, r(
        re,
        Kr,
        n,
        o,
        i,
        a,
        u,
        l,
        n === "comma" && E && P(m) ? null : f,
        s,
        p,
        c,
        y,
        v,
        w,
        E,
        I,
        Xe
      ));
    }
  }
  return U;
}, ro = function(e) {
  if (!e)
    return g;
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
    throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
    throw new TypeError("Encoder has to be a function.");
  var t = e.charset || g.charset;
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var n = ie.default;
  if (typeof e.format < "u") {
    if (!Vn.call(ie.formatters, e.format))
      throw new TypeError("Unknown format option provided.");
    n = e.format;
  }
  var o = ie.formatters[n], i = g.filter;
  (typeof e.filter == "function" || P(e.filter)) && (i = e.filter);
  var a;
  if (e.arrayFormat in Hr ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = g.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
    throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : g.allowDots : !!e.allowDots;
  return {
    addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : g.addQueryPrefix,
    allowDots: u,
    allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : g.allowEmptyArrays,
    arrayFormat: a,
    charset: t,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
    commaRoundTrip: e.commaRoundTrip,
    delimiter: typeof e.delimiter > "u" ? g.delimiter : e.delimiter,
    encode: typeof e.encode == "boolean" ? e.encode : g.encode,
    encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : g.encodeDotInKeys,
    encoder: typeof e.encoder == "function" ? e.encoder : g.encoder,
    encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : g.encodeValuesOnly,
    filter: i,
    format: n,
    formatter: o,
    serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : g.serializeDate,
    skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : g.skipNulls,
    sort: typeof e.sort == "function" ? e.sort : null,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling
  };
}, to = function(r, e) {
  var t = r, n = ro(e), o, i;
  typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : P(n.filter) && (i = n.filter, o = i);
  var a = [];
  if (typeof t != "object" || t === null)
    return "";
  var u = Hr[n.arrayFormat], l = u === "comma" && n.commaRoundTrip;
  o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
  for (var f = zr(), s = 0; s < o.length; ++s) {
    var p = o[s];
    n.skipNulls && t[p] === null || Gr(a, eo(
      t[p],
      p,
      u,
      l,
      n.allowEmptyArrays,
      n.strictNullHandling,
      n.skipNulls,
      n.encodeDotInKeys,
      n.encode ? n.encoder : null,
      n.filter,
      n.sort,
      n.allowDots,
      n.serializeDate,
      n.format,
      n.formatter,
      n.encodeValuesOnly,
      n.charset,
      f
    ));
  }
  var c = a.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), c.length > 0 ? y + c : "";
}, Y = kr, He = Object.prototype.hasOwnProperty, no = Array.isArray, h = {
  allowDots: !1,
  allowEmptyArrays: !1,
  allowPrototypes: !1,
  allowSparse: !1,
  arrayLimit: 20,
  charset: "utf-8",
  charsetSentinel: !1,
  comma: !1,
  decodeDotInKeys: !1,
  decoder: Y.decode,
  delimiter: "&",
  depth: 5,
  duplicates: "combine",
  ignoreQueryPrefix: !1,
  interpretNumericEntities: !1,
  parameterLimit: 1e3,
  parseArrays: !0,
  plainObjects: !1,
  strictNullHandling: !1
}, oo = function(r) {
  return r.replace(/&#(\d+);/g, function(e, t) {
    return String.fromCharCode(parseInt(t, 10));
  });
}, qr = function(r, e) {
  return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
}, io = "utf8=%26%2310003%3B", ao = "utf8=%E2%9C%93", lo = function(e, t) {
  var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
  o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  var i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, a = o.split(t.delimiter, i), u = -1, l, f = t.charset;
  if (t.charsetSentinel)
    for (l = 0; l < a.length; ++l)
      a[l].indexOf("utf8=") === 0 && (a[l] === ao ? f = "utf-8" : a[l] === io && (f = "iso-8859-1"), u = l, l = a.length);
  for (l = 0; l < a.length; ++l)
    if (l !== u) {
      var s = a[l], p = s.indexOf("]="), c = p === -1 ? s.indexOf("=") : p + 1, y, v;
      c === -1 ? (y = t.decoder(s, h.decoder, f, "key"), v = t.strictNullHandling ? null : "") : (y = t.decoder(s.slice(0, c), h.decoder, f, "key"), v = Y.maybeMap(
        qr(s.slice(c + 1), t),
        function(E) {
          return t.decoder(E, h.decoder, f, "value");
        }
      )), v && t.interpretNumericEntities && f === "iso-8859-1" && (v = oo(v)), s.indexOf("[]=") > -1 && (v = no(v) ? [v] : v);
      var w = He.call(n, y);
      w && t.duplicates === "combine" ? n[y] = Y.combine(n[y], v) : (!w || t.duplicates === "last") && (n[y] = v);
    }
  return n;
}, fo = function(r, e, t, n) {
  for (var o = n ? e : qr(e, t), i = r.length - 1; i >= 0; --i) {
    var a, u = r[i];
    if (u === "[]" && t.parseArrays)
      a = t.allowEmptyArrays && (o === "" || t.strictNullHandling && o === null) ? [] : [].concat(o);
    else {
      a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
      var l = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, f = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, s = parseInt(f, 10);
      !t.parseArrays && f === "" ? a = { 0: o } : !isNaN(s) && u !== f && String(s) === f && s >= 0 && t.parseArrays && s <= t.arrayLimit ? (a = [], a[s] = o) : f !== "__proto__" && (a[f] = o);
    }
    o = a;
  }
  return o;
}, uo = function(e, t, n, o) {
  if (e) {
    var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, l = n.depth > 0 && a.exec(i), f = l ? i.slice(0, l.index) : i, s = [];
    if (f) {
      if (!n.plainObjects && He.call(Object.prototype, f) && !n.allowPrototypes)
        return;
      s.push(f);
    }
    for (var p = 0; n.depth > 0 && (l = u.exec(i)) !== null && p < n.depth; ) {
      if (p += 1, !n.plainObjects && He.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
        return;
      s.push(l[1]);
    }
    return l && s.push("[" + i.slice(l.index) + "]"), fo(s, t, n, o);
  }
}, so = function(e) {
  if (!e)
    return h;
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
    throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
  if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
    throw new TypeError("Decoder has to be a function.");
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var t = typeof e.charset > "u" ? h.charset : e.charset, n = typeof e.duplicates > "u" ? h.duplicates : e.duplicates;
  if (n !== "combine" && n !== "first" && n !== "last")
    throw new TypeError("The duplicates option must be either combine, first, or last");
  var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
  return {
    allowDots: o,
    allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
    allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : h.allowPrototypes,
    allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : h.allowSparse,
    arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : h.arrayLimit,
    charset: t,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
    comma: typeof e.comma == "boolean" ? e.comma : h.comma,
    decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : h.decodeDotInKeys,
    decoder: typeof e.decoder == "function" ? e.decoder : h.decoder,
    delimiter: typeof e.delimiter == "string" || Y.isRegExp(e.delimiter) ? e.delimiter : h.delimiter,
    // eslint-disable-next-line no-implicit-coercion, no-extra-parens
    depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : h.depth,
    duplicates: n,
    ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
    interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : h.interpretNumericEntities,
    parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : h.parameterLimit,
    parseArrays: e.parseArrays !== !1,
    plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : h.plainObjects,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
  };
}, co = function(r, e) {
  var t = so(e);
  if (r === "" || r === null || typeof r > "u")
    return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  for (var n = typeof r == "string" ? lo(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), a = 0; a < i.length; ++a) {
    var u = i[a], l = uo(u, n[u], t, typeof r == "string");
    o = Y.merge(o, l, t);
  }
  return t.allowSparse === !0 ? o : Y.compact(o);
}, po = to, yo = co, mo = Ye, vo = {
  formats: mo,
  parse: yo,
  stringify: po
};
const ho = /* @__PURE__ */ Jr(vo);
let de;
const go = new Uint8Array(16);
function bo() {
  if (!de && (de = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !de))
    throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
  return de(go);
}
const S = [];
for (let r = 0; r < 256; ++r)
  S.push((r + 256).toString(16).slice(1));
function So(r, e = 0) {
  return S[r[e + 0]] + S[r[e + 1]] + S[r[e + 2]] + S[r[e + 3]] + "-" + S[r[e + 4]] + S[r[e + 5]] + "-" + S[r[e + 6]] + S[r[e + 7]] + "-" + S[r[e + 8]] + S[r[e + 9]] + "-" + S[r[e + 10]] + S[r[e + 11]] + S[r[e + 12]] + S[r[e + 13]] + S[r[e + 14]] + S[r[e + 15]];
}
const wo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Or = {
  randomUUID: wo
};
function Ao(r, e, t) {
  if (Or.randomUUID && !e && !r)
    return Or.randomUUID();
  r = r || {};
  const n = r.random || (r.rng || bo)();
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
    t = t || 0;
    for (let o = 0; o < 16; ++o)
      e[t + o] = n[o];
    return e;
  }
  return So(n);
}
globalThis.toCamelCase = (r) => r && r.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (e, t) => t.toUpperCase());
globalThis.toSnakeCase = (r, e = !1) => {
  if (r && r !== r.toUpperCase()) {
    let t = r.replace(/([A-Z])/g, " $1");
    return t = t.split(" ").join("_").toUpperCase(), e && (t = t.toLowerCase()), t;
  }
  return r;
};
globalThis.isEmpty = (r) => r == null || r instanceof Array && r.length === 0 || typeof r == "string" && r.length === 0;
globalThis.isNotEmpty = (r) => !isEmpty(r);
globalThis.isEmptyOr = (r, ...e) => isEmpty(r) ? !0 : e == null ? !1 : e.some((t) => isEmpty(t));
globalThis.isNotEmptyOr = (r, ...e) => isNotEmpty(r) ? !0 : e == null ? !1 : e.some((t) => isNotEmpty(t));
globalThis.isEmptyAnd = (r, ...e) => isNotEmpty(r) ? !1 : e == null ? !0 : e.every((t) => isEmpty(t));
globalThis.isNotEmptyAnd = (r, ...e) => isEmpty(r) ? !1 : e == null ? !0 : e.every((t) => isNotEmpty(t));
globalThis.utils = {
  option: {
    yn: [{ text: "예", value: "Y" }, { text: "아니오", value: "N" }],
    makeListToOption: (r, e, t) => r ? r.map(
      (n) => ({ text: n[t] + "", value: n[e] + "" })
    ) : null
  },
  array: {
    getRowChangeOrder: (r, e, t) => {
      let n = e ? [...e] : [], o, i;
      const a = n.length;
      return r ? t !== a - 1 && (o = n[t], i = n[t + 1], n[t] = i, n[t + 1] = o) : t !== 0 && (o = n[t], i = n[t - 1], n[t] = i, n[t - 1] = o), n;
    },
    selectedRowOrder: (r, e, t) => {
      const n = "_isSelected";
      let o = e.findIndex((s) => s[n]);
      if (o < 0)
        return !1;
      let i = e[o].depth, a = o, u = -1, l = -1, f = 0;
      if (r) {
        if (o + 1 < e.length) {
          for (f = 0; f < e.length; f++) {
            const s = e[f];
            if (f > o) {
              if (s.depth < i)
                break;
              if (s.depth === i) {
                u = f, a = f - 1;
                break;
              }
            }
          }
          if (u >= 0) {
            for (f = 0; f < e.length; f++) {
              const y = e[f];
              if (f > u) {
                if (y.depth < i)
                  break;
                if (y.depth === i) {
                  l = f - 1;
                  break;
                } else if (f === e.length - 1) {
                  l = f;
                  break;
                }
              }
            }
            l < 0 && (l = u);
            let s = [], p = e.slice(o, a + 1), c = e.slice(u, l + 1);
            0 < o && s.push(...e.slice(0, o)), s.push(...c), s.push(...p), l < e.length - 1 && s.push(...e.slice(l + 1)), t(s);
          }
        }
      } else if (o < e.length) {
        for (l = o - 1, f = 0; f < e.length; f++) {
          const s = e[f];
          if (f > o) {
            if (s.depth < i)
              break;
            if (s.depth === i) {
              a = f - 1;
              break;
            }
            f === e.length - 1 && (a = f);
          }
        }
        if (l >= 0) {
          for (f = e.length; f >= 0; f--) {
            const y = e[f];
            if (f <= l) {
              if (y.depth < i)
                break;
              if (y.depth === i) {
                u = f;
                break;
              } else if (f === 0) {
                u = -1;
                break;
              }
            }
          }
          if (u < 0)
            return !1;
          l < 0 && (l = u);
          let s = [], p = e.slice(o, a + 1), c = e.slice(u, l + 1);
          0 < o && s.push(...e.slice(0, u)), s.push(...p), s.push(...c), a < e.length - 1 && s.push(...e.slice(a + 1)), t(s);
        }
      }
    },
    toRecord: (r, e) => {
      const t = {};
      return r == null || r.forEach((n) => {
        const o = n[e] + "";
        o && (t[o] || (t[o] = []), t[o].push(n));
      }), t;
    },
    toRecordDuplicateIgnore: (r, e, t = !0) => {
      const n = {};
      return r == null || r.forEach((o) => {
        const i = o[e] + "";
        i && (t && n[i] || (n[i] = o));
      }), n;
    }
  },
  tree: {
    treeToOrderedList: (r, e = [], t = 0) => {
      const { childList: n } = r;
      return n == null || n.forEach((o, i) => {
        e.push({ ...o == null ? void 0 : o.data, depth: t }), utils.tree.treeToOrderedList(o, e, t + 1);
      }), e;
    },
    toList: (r, e = []) => {
      const { childList: t = [] } = r;
      return t.forEach((n) => {
        e.push({ ...n.data }), utils.tree.toList(n, e);
      }), e;
    },
    toRecord: (r, e) => {
      const t = utils.tree.toList(r), n = {};
      return t && t.forEach((o) => {
        const i = o[e] + "";
        e && (n[i] || (n[i] = []), n[i].push(o));
      }), n;
    },
    toRecordDuplicateIgnore: (r, e, t = !0) => {
      const n = utils.tree.toList(r), o = {};
      return n && n.forEach((i) => {
        const a = i[e] + "";
        e && (t && o[a] || (o[a] = i));
      }), o;
    }
  },
  generator: {
    uuid: () => Ao()
  },
  window: {
    popup: (r, e, t, n) => {
      t || (t = 840), n || (n = 540);
      const o = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, i = window.screenTop !== void 0 ? window.screenTop : window.screenY, a = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : window.screen.width, u = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : window.screen.height, l = a / window.screen.availWidth, f = (a - t) / 2 / l + o, s = (u - n) / 2 / l + i;
      window.open(r, e, `width=${t},height=${n},top=${s},left=${f}`);
    }
  },
  http: {
    queryString: (r) => ho.stringify(r, {
      arrayFormat: "brackets",
      serializeDate: (e) => !__d_react_component_.dateSerializeType || __d_react_component_.dateSerializeType === "LOCAL-DATE-TIME" ? e ? se(e, "yyyy-MM-dd'T'HH:mm:ss") : void 0 : __d_react_component_.dateSerializeType === "ZONED-DATE-TIME" ? e == null ? void 0 : e.toISOString() : e ? se(e, "yyyy-MM-dd'T'HH:mm:ss") : void 0
    }),
    formData: (r) => {
      const e = (t) => t instanceof FormData ? t : t instanceof Date ? !__d_react_component_.dateSerializeType || __d_react_component_.dateSerializeType === "LOCAL-DATE-TIME" ? t ? se(t, "yyyy-MM-dd'T'HH:mm:ss") : void 0 : __d_react_component_.dateSerializeType === "ZONED-DATE-TIME" ? t == null ? void 0 : t.toISOString() : t ? se(t, "yyyy-MM-dd'T'HH:mm:ss") : void 0 : t instanceof File ? t : Array.isArray(t) ? t.map((n) => e(n)) : typeof t == "object" && isNotEmpty(t) ? Object.fromEntries(Object.entries(t).map(([n, o]) => [n, e(o)])) : t;
      return jr.serialize(e(r), { dotsForObjectNotation: !0, indices: !0 });
    }
  },
  text: {
    copyText: (r) => {
      navigator.clipboard.writeText(r).catch((e) => {
      });
    },
    url: (r, e) => {
      let t;
      return isNotEmptyAnd(r, e) && (t = `${r.replace(/[\/,\\]{1,}$/g, "")}/${e.replace("\\", "/").replace(/\/{1,}/g, "/").replace(/^\//g, "")}`), t;
    }
  },
  regExp: {
    tel: new RegExp(/^0([2-9]{1,2})?([0-9]{3,4})?([0-9]{4})$/),
    /*eslint no-useless-escape: "error"*/
    mobile: new RegExp(/^(010[0-9]{8}|01[1-9][0-9]{7})$/),
    /*eslint no-useless-escape: "error"*/
    email: new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)
  },
  css: {
    rgbToHex: (r) => {
      function e(t) {
        return ("0" + t.toString(16)).slice(-2);
      }
      return `#${(e(r[0]) + e(r[1]) + e(r[2])).toUpperCase()}`;
    },
    hexToRgb: (r) => {
      const e = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
      r = r.replace(e, function(n, o, i, a) {
        return o + o + i + i + a + a;
      });
      const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
      return t ? [
        parseInt(t[1], 16),
        parseInt(t[2], 16),
        parseInt(t[3], 16)
      ] : void 0;
    },
    hexToRgbMap: (r) => {
      const e = utils.css.hexToRgb(r);
      return e && e.length === 3 ? {
        r: e[0],
        g: e[1],
        b: e[2]
      } : void 0;
    },
    colorContrast: (r, e = "#000", t = "#fff", n = 4.5) => {
      const o = [
        t,
        e,
        "#000",
        "#fff"
      ];
      let i = 0, a;
      for (let u = 0; u < o.length; u++) {
        let l = o[u], f = utils.css.contrastRatio(r, l);
        if (f > n)
          return l;
        f > i && (i = f, a = l);
      }
      return a;
    },
    contrastRatio: (r, e = "#fff") => {
      const t = utils.css.luminance(r), n = utils.css.luminance(utils.css.opaque(r, e));
      return t > n ? t * 0.05 / (n * 0.05) : n * 0.05 / (t * 0.05);
    },
    luminance: (r) => {
      const e = [8e-4, 1e-3, 11e-4, 13e-4, 15e-4, 17e-4, 2e-3, 22e-4, 25e-4, 27e-4, 3e-3, 33e-4, 37e-4, 4e-3, 44e-4, 48e-4, 52e-4, 56e-4, 6e-3, 65e-4, 7e-3, 75e-4, 8e-3, 86e-4, 91e-4, 97e-4, 0.0103, 0.011, 0.0116, 0.0123, 0.013, 0.0137, 0.0144, 0.0152, 0.016, 0.0168, 0.0176, 0.0185, 0.0194, 0.0203, 0.0212, 0.0222, 0.0232, 0.0242, 0.0252, 0.0262, 0.0273, 0.0284, 0.0296, 0.0307, 0.0319, 0.0331, 0.0343, 0.0356, 0.0369, 0.0382, 0.0395, 0.0409, 0.0423, 0.0437, 0.0452, 0.0467, 0.0482, 0.0497, 0.0513, 0.0529, 0.0545, 0.0561, 0.0578, 0.0595, 0.0612, 0.063, 0.0648, 0.0666, 0.0685, 0.0704, 0.0723, 0.0742, 0.0762, 0.0782, 0.0802, 0.0823, 0.0844, 0.0865, 0.0887, 0.0908, 0.0931, 0.0953, 0.0976, 0.0999, 0.1022, 0.1046, 0.107, 0.1095, 0.1119, 0.1144, 0.117, 0.1195, 0.1221, 0.1248, 0.1274, 0.1301, 0.1329, 0.1356, 0.1384, 0.1413, 0.1441, 0.147, 0.15, 0.1529, 0.1559, 0.159, 0.162, 0.1651, 0.1683, 0.1714, 0.1746, 0.1779, 0.1812, 0.1845, 0.1878, 0.1912, 0.1946, 0.1981, 0.2016, 0.2051, 0.2086, 0.2122, 0.2159, 0.2195, 0.2232, 0.227, 0.2307, 0.2346, 0.2384, 0.2423, 0.2462, 0.2502, 0.2542, 0.2582, 0.2623, 0.2664, 0.2705, 0.2747, 0.2789, 0.2831, 0.2874, 0.2918, 0.2961, 0.3005, 0.305, 0.3095, 0.314, 0.3185, 0.3231, 0.3278, 0.3325, 0.3372, 0.3419, 0.3467, 0.3515, 0.3564, 0.3613, 0.3663, 0.3712, 0.3763, 0.3813, 0.3864, 0.3916, 0.3968, 0.402, 0.4072, 0.4125, 0.4179, 0.4233, 0.4287, 0.4342, 0.4397, 0.4452, 0.4508, 0.4564, 0.4621, 0.4678, 0.4735, 0.4793, 0.4851, 0.491, 0.4969, 0.5029, 0.5089, 0.5149, 0.521, 0.5271, 0.5333, 0.5395, 0.5457, 0.552, 0.5583, 0.5647, 0.5711, 0.5776, 0.5841, 0.5906, 0.5972, 0.6038, 0.6105, 0.6172, 0.624, 0.6308, 0.6376, 0.6445, 0.6514, 0.6584, 0.6654, 0.6724, 0.6795, 0.6867, 0.6939, 0.7011, 0.7084, 0.7157, 0.7231, 0.7305, 0.7379, 0.7454, 0.7529, 0.7605, 0.7682, 0.7758, 0.7835, 0.7913, 0.7991, 0.807, 0.8148, 0.8228, 0.8308, 0.8388, 0.8469, 0.855, 0.8632, 0.8714, 0.8796, 0.8879, 0.8963, 0.9047, 0.9131, 0.9216, 0.9301, 0.9387, 0.9473, 0.956, 0.9647, 0.9734, 0.9823, 0.9911, 1], t = utils.css.hexToRgbMap(r), n = t.r / 255 < 0.04045 ? t.r / 255 / 12.92 : e[t.r - 1], o = t.g / 255 < 0.04045 ? t.g / 255 / 12.92 : e[t.g - 1], i = t.b / 255 < 0.04045 ? t.b / 255 / 12.92 : e[t.b - 1];
      return n * 0.2126 + o * 0.7152 + i * 0.722;
    },
    opaque: (r, e) => utils.css.mix(
      e,
      r,
      100
    ),
    tintColor: (r, e) => utils.css.mix(
      "#fff",
      r,
      e
    ),
    shadeColor: (r, e) => utils.css.mix(
      "#000",
      r,
      e
    ),
    mix: (r, e, t = 50) => {
      const n = utils.css.hexToRgbMap(r), o = utils.css.hexToRgbMap(e);
      let i = [
        Math.floor(o.r + (n.r - o.r) * t / 100),
        Math.floor(o.g + (n.g - o.g) * t / 100),
        Math.floor(o.b + (n.b - o.b) * t / 100)
      ];
      return utils.css.rgbToHex(i);
    }
  }
};
class Eo {
  build() {
    return {
      invalidMessage: this.invalidMessage,
      regexp: this.regexp,
      maxLen: this.maxLen,
      minLen: this.minLen,
      maxSize: this.maxSize,
      minSize: this.minSize,
      maxByte: this.maxByte,
      minByte: this.minByte,
      customFunction: this.customFunction
    };
  }
  setInvalidMessage(e) {
    return this.invalidMessage = e, this;
  }
  setRegExp(e) {
    return this.regexp = e, this;
  }
  setMaxLength(e) {
    return this.maxLen = e, this;
  }
  setMinLength(e) {
    return this.minLen = e, this;
  }
  setMaxSize(e) {
    return this.maxSize = e, this;
  }
  setMinSize(e) {
    return this.minSize = e, this;
  }
  setMaxByte(e) {
    return this.maxByte = e, this;
  }
  setMinByte(e) {
    return this.minByte = e, this;
  }
  setCustomFunction(e) {
    return this.customFunction = e, this;
  }
}
globalThis.validate = (r) => r;
globalThis.validateBuilder = () => new Eo();
globalThis.checkValid = (r, e) => {
  let t = !0, n = "";
  const o = e.invalidMessage, i = e.customFunction, a = e.regexp, u = e.maxSize, l = e.minSize, f = e.maxLen, s = e.minLen, p = e.maxByte, c = e.minByte;
  if (i && (t = i(r), !t))
    return n = o || "일치하지 않는 형태입니다.", { isValid: t, message: n };
  if (a && typeof r == "string" && (t = a.test(r), !t))
    return n = o || `일치하지 않는 형태입니다. (${a == null ? void 0 : a.toString()})`, { isValid: t, message: n };
  let y;
  if (typeof r == "number" ? y = r : typeof r == "string" && (y = Number(Number(r).toFixed(25)), y = isNaN(y) ? void 0 : y), isNotEmptyOr(u, l) && (y === void 0 && (t = !1, n = o || "숫자 형태가 아닙니다."), !t))
    return { isValid: t, message: n };
  if (isNotEmpty(u) && (y > u && (t = !1, n = o || `${u} 보다 클 수 없습니다.`), !t))
    return { isValid: t, message: n };
  if (isNotEmpty(l) && (y < l && (t = !1, n = o || `${l} 보다 작을 수 없습니다.`), !t))
    return { isValid: t, message: n };
  if (typeof r == "string" || typeof r > "u") {
    if (isNotEmpty(f) && ((r ? r.length : 0) > f && (t = !1, n = o || `문자열의 최대길이는 ${f}입니다.`), !t))
      return { isValid: t, message: n };
    if (isNotEmpty(s) && ((r ? r.length : 0) < s && (t = !1, n = o || `문자열의 최소길이는 ${s}입니다.`), !t))
      return { isValid: t, message: n };
    if (isNotEmpty(p) && ((r ? new Blob([r]).size : 0) > p && (t = !1, n = o || `문자열의 최대 byte길이는 ${p}입니다.`), !t))
      return { isValid: t, message: n };
    if (isNotEmpty(c) && ((r ? new Blob([r]).size : 0) < c && (t = !1, n = o || `문자열의 최소 byte길이는 ${c}입니다.`), !t))
      return { isValid: t, message: n };
  }
  return { isValid: t, message: "" };
};
//# sourceMappingURL=functions.es.js.map
