function Sv(i, u) {
  for (var r = 0; r < u.length; r++) {
    const s = u[r];
    if (typeof s != "string" && !Array.isArray(s)) {
      for (const f in s)
        if (f !== "default" && !(f in i)) {
          const d = Object.getOwnPropertyDescriptor(s, f);
          d &&
            Object.defineProperty(
              i,
              f,
              d.get ? d : { enumerable: !0, get: () => s[f] }
            );
        }
    }
  }
  return Object.freeze(
    Object.defineProperty(i, Symbol.toStringTag, { value: "Module" })
  );
}
(function () {
  const u = document.createElement("link").relList;
  if (u && u.supports && u.supports("modulepreload")) return;
  for (const f of document.querySelectorAll('link[rel="modulepreload"]')) s(f);
  new MutationObserver(f => {
    for (const d of f)
      if (d.type === "childList")
        for (const p of d.addedNodes)
          p.tagName === "LINK" && p.rel === "modulepreload" && s(p);
  }).observe(document, { childList: !0, subtree: !0 });
  function r(f) {
    const d = {};
    return (
      f.integrity && (d.integrity = f.integrity),
      f.referrerPolicy && (d.referrerPolicy = f.referrerPolicy),
      f.crossOrigin === "use-credentials"
        ? (d.credentials = "include")
        : f.crossOrigin === "anonymous"
          ? (d.credentials = "omit")
          : (d.credentials = "same-origin"),
      d
    );
  }
  function s(f) {
    if (f.ep) return;
    f.ep = !0;
    const d = r(f);
    fetch(f.href, d);
  }
})();
function lg(i) {
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default")
    ? i.default
    : i;
}
var Ur = { exports: {} },
  Di = {};
/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var mh;
function Ev() {
  if (mh) return Di;
  mh = 1;
  var i = Symbol.for("react.transitional.element"),
    u = Symbol.for("react.fragment");
  function r(s, f, d) {
    var p = null;
    if (
      (d !== void 0 && (p = "" + d),
      f.key !== void 0 && (p = "" + f.key),
      "key" in f)
    ) {
      d = {};
      for (var x in f) x !== "key" && (d[x] = f[x]);
    } else d = f;
    return (
      (f = d.ref),
      { $$typeof: i, type: s, key: p, ref: f !== void 0 ? f : null, props: d }
    );
  }
  return ((Di.Fragment = u), (Di.jsx = r), (Di.jsxs = r), Di);
}
var hh;
function Tv() {
  return (hh || ((hh = 1), (Ur.exports = Ev())), Ur.exports);
}
var E = Tv(),
  Hr = { exports: {} },
  ji = {},
  Br = { exports: {} },
  Lr = {};
/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var gh;
function wv() {
  return (
    gh ||
      ((gh = 1),
      (function (i) {
        function u(w, U) {
          var R = w.length;
          w.push(U);
          t: for (; 0 < R; ) {
            var it = (R - 1) >>> 1,
              ot = w[it];
            if (0 < f(ot, U)) ((w[it] = U), (w[R] = ot), (R = it));
            else break t;
          }
        }
        function r(w) {
          return w.length === 0 ? null : w[0];
        }
        function s(w) {
          if (w.length === 0) return null;
          var U = w[0],
            R = w.pop();
          if (R !== U) {
            w[0] = R;
            t: for (var it = 0, ot = w.length, b = ot >>> 1; it < b; ) {
              var H = 2 * (it + 1) - 1,
                B = w[H],
                k = H + 1,
                $ = w[k];
              if (0 > f(B, R))
                k < ot && 0 > f($, B)
                  ? ((w[it] = $), (w[k] = R), (it = k))
                  : ((w[it] = B), (w[H] = R), (it = H));
              else if (k < ot && 0 > f($, R))
                ((w[it] = $), (w[k] = R), (it = k));
              else break t;
            }
          }
          return U;
        }
        function f(w, U) {
          var R = w.sortIndex - U.sortIndex;
          return R !== 0 ? R : w.id - U.id;
        }
        if (
          ((i.unstable_now = void 0),
          typeof performance == "object" &&
            typeof performance.now == "function")
        ) {
          var d = performance;
          i.unstable_now = function () {
            return d.now();
          };
        } else {
          var p = Date,
            x = p.now();
          i.unstable_now = function () {
            return p.now() - x;
          };
        }
        var y = [],
          g = [],
          v = 1,
          h = null,
          z = 3,
          _ = !1,
          D = !1,
          Y = !1,
          X = !1,
          V = typeof setTimeout == "function" ? setTimeout : null,
          F = typeof clearTimeout == "function" ? clearTimeout : null,
          J = typeof setImmediate < "u" ? setImmediate : null;
        function W(w) {
          for (var U = r(g); U !== null; ) {
            if (U.callback === null) s(g);
            else if (U.startTime <= w)
              (s(g), (U.sortIndex = U.expirationTime), u(y, U));
            else break;
            U = r(g);
          }
        }
        function P(w) {
          if (((Y = !1), W(w), !D))
            if (r(y) !== null) ((D = !0), nt || ((nt = !0), ht()));
            else {
              var U = r(g);
              U !== null && yt(P, U.startTime - w);
            }
        }
        var nt = !1,
          Q = -1,
          Z = 5,
          mt = -1;
        function xt() {
          return X ? !0 : !(i.unstable_now() - mt < Z);
        }
        function zt() {
          if (((X = !1), nt)) {
            var w = i.unstable_now();
            mt = w;
            var U = !0;
            try {
              t: {
                ((D = !1), Y && ((Y = !1), F(Q), (Q = -1)), (_ = !0));
                var R = z;
                try {
                  e: {
                    for (
                      W(w), h = r(y);
                      h !== null && !(h.expirationTime > w && xt());

                    ) {
                      var it = h.callback;
                      if (typeof it == "function") {
                        ((h.callback = null), (z = h.priorityLevel));
                        var ot = it(h.expirationTime <= w);
                        if (((w = i.unstable_now()), typeof ot == "function")) {
                          ((h.callback = ot), W(w), (U = !0));
                          break e;
                        }
                        (h === r(y) && s(y), W(w));
                      } else s(y);
                      h = r(y);
                    }
                    if (h !== null) U = !0;
                    else {
                      var b = r(g);
                      (b !== null && yt(P, b.startTime - w), (U = !1));
                    }
                  }
                  break t;
                } finally {
                  ((h = null), (z = R), (_ = !1));
                }
                U = void 0;
              }
            } finally {
              U ? ht() : (nt = !1);
            }
          }
        }
        var ht;
        if (typeof J == "function")
          ht = function () {
            J(zt);
          };
        else if (typeof MessageChannel < "u") {
          var ct = new MessageChannel(),
            gt = ct.port2;
          ((ct.port1.onmessage = zt),
            (ht = function () {
              gt.postMessage(null);
            }));
        } else
          ht = function () {
            V(zt, 0);
          };
        function yt(w, U) {
          Q = V(function () {
            w(i.unstable_now());
          }, U);
        }
        ((i.unstable_IdlePriority = 5),
          (i.unstable_ImmediatePriority = 1),
          (i.unstable_LowPriority = 4),
          (i.unstable_NormalPriority = 3),
          (i.unstable_Profiling = null),
          (i.unstable_UserBlockingPriority = 2),
          (i.unstable_cancelCallback = function (w) {
            w.callback = null;
          }),
          (i.unstable_forceFrameRate = function (w) {
            0 > w || 125 < w
              ? console.error(
                  "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
                )
              : (Z = 0 < w ? Math.floor(1e3 / w) : 5);
          }),
          (i.unstable_getCurrentPriorityLevel = function () {
            return z;
          }),
          (i.unstable_next = function (w) {
            switch (z) {
              case 1:
              case 2:
              case 3:
                var U = 3;
                break;
              default:
                U = z;
            }
            var R = z;
            z = U;
            try {
              return w();
            } finally {
              z = R;
            }
          }),
          (i.unstable_requestPaint = function () {
            X = !0;
          }),
          (i.unstable_runWithPriority = function (w, U) {
            switch (w) {
              case 1:
              case 2:
              case 3:
              case 4:
              case 5:
                break;
              default:
                w = 3;
            }
            var R = z;
            z = w;
            try {
              return U();
            } finally {
              z = R;
            }
          }),
          (i.unstable_scheduleCallback = function (w, U, R) {
            var it = i.unstable_now();
            switch (
              (typeof R == "object" && R !== null
                ? ((R = R.delay),
                  (R = typeof R == "number" && 0 < R ? it + R : it))
                : (R = it),
              w)
            ) {
              case 1:
                var ot = -1;
                break;
              case 2:
                ot = 250;
                break;
              case 5:
                ot = 1073741823;
                break;
              case 4:
                ot = 1e4;
                break;
              default:
                ot = 5e3;
            }
            return (
              (ot = R + ot),
              (w = {
                id: v++,
                callback: U,
                priorityLevel: w,
                startTime: R,
                expirationTime: ot,
                sortIndex: -1,
              }),
              R > it
                ? ((w.sortIndex = R),
                  u(g, w),
                  r(y) === null &&
                    w === r(g) &&
                    (Y ? (F(Q), (Q = -1)) : (Y = !0), yt(P, R - it)))
                : ((w.sortIndex = ot),
                  u(y, w),
                  D || _ || ((D = !0), nt || ((nt = !0), ht()))),
              w
            );
          }),
          (i.unstable_shouldYield = xt),
          (i.unstable_wrapCallback = function (w) {
            var U = z;
            return function () {
              var R = z;
              z = U;
              try {
                return w.apply(this, arguments);
              } finally {
                z = R;
              }
            };
          }));
      })(Lr)),
    Lr
  );
}
var ph;
function Av() {
  return (ph || ((ph = 1), (Br.exports = wv())), Br.exports);
}
var Yr = { exports: {} },
  pt = {};
/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var yh;
function zv() {
  if (yh) return pt;
  yh = 1;
  var i = Symbol.for("react.transitional.element"),
    u = Symbol.for("react.portal"),
    r = Symbol.for("react.fragment"),
    s = Symbol.for("react.strict_mode"),
    f = Symbol.for("react.profiler"),
    d = Symbol.for("react.consumer"),
    p = Symbol.for("react.context"),
    x = Symbol.for("react.forward_ref"),
    y = Symbol.for("react.suspense"),
    g = Symbol.for("react.memo"),
    v = Symbol.for("react.lazy"),
    h = Symbol.for("react.activity"),
    z = Symbol.iterator;
  function _(b) {
    return b === null || typeof b != "object"
      ? null
      : ((b = (z && b[z]) || b["@@iterator"]),
        typeof b == "function" ? b : null);
  }
  var D = {
      isMounted: function () {
        return !1;
      },
      enqueueForceUpdate: function () {},
      enqueueReplaceState: function () {},
      enqueueSetState: function () {},
    },
    Y = Object.assign,
    X = {};
  function V(b, H, B) {
    ((this.props = b),
      (this.context = H),
      (this.refs = X),
      (this.updater = B || D));
  }
  ((V.prototype.isReactComponent = {}),
    (V.prototype.setState = function (b, H) {
      if (typeof b != "object" && typeof b != "function" && b != null)
        throw Error(
          "takes an object of state variables to update or a function which returns an object of state variables."
        );
      this.updater.enqueueSetState(this, b, H, "setState");
    }),
    (V.prototype.forceUpdate = function (b) {
      this.updater.enqueueForceUpdate(this, b, "forceUpdate");
    }));
  function F() {}
  F.prototype = V.prototype;
  function J(b, H, B) {
    ((this.props = b),
      (this.context = H),
      (this.refs = X),
      (this.updater = B || D));
  }
  var W = (J.prototype = new F());
  ((W.constructor = J), Y(W, V.prototype), (W.isPureReactComponent = !0));
  var P = Array.isArray;
  function nt() {}
  var Q = { H: null, A: null, T: null, S: null },
    Z = Object.prototype.hasOwnProperty;
  function mt(b, H, B) {
    var k = B.ref;
    return {
      $$typeof: i,
      type: b,
      key: H,
      ref: k !== void 0 ? k : null,
      props: B,
    };
  }
  function xt(b, H) {
    return mt(b.type, H, b.props);
  }
  function zt(b) {
    return typeof b == "object" && b !== null && b.$$typeof === i;
  }
  function ht(b) {
    var H = { "=": "=0", ":": "=2" };
    return (
      "$" +
      b.replace(/[=:]/g, function (B) {
        return H[B];
      })
    );
  }
  var ct = /\/+/g;
  function gt(b, H) {
    return typeof b == "object" && b !== null && b.key != null
      ? ht("" + b.key)
      : H.toString(36);
  }
  function yt(b) {
    switch (b.status) {
      case "fulfilled":
        return b.value;
      case "rejected":
        throw b.reason;
      default:
        switch (
          (typeof b.status == "string"
            ? b.then(nt, nt)
            : ((b.status = "pending"),
              b.then(
                function (H) {
                  b.status === "pending" &&
                    ((b.status = "fulfilled"), (b.value = H));
                },
                function (H) {
                  b.status === "pending" &&
                    ((b.status = "rejected"), (b.reason = H));
                }
              )),
          b.status)
        ) {
          case "fulfilled":
            return b.value;
          case "rejected":
            throw b.reason;
        }
    }
    throw b;
  }
  function w(b, H, B, k, $) {
    var ut = typeof b;
    (ut === "undefined" || ut === "boolean") && (b = null);
    var lt = !1;
    if (b === null) lt = !0;
    else
      switch (ut) {
        case "bigint":
        case "string":
        case "number":
          lt = !0;
          break;
        case "object":
          switch (b.$$typeof) {
            case i:
            case u:
              lt = !0;
              break;
            case v:
              return ((lt = b._init), w(lt(b._payload), H, B, k, $));
          }
      }
    if (lt)
      return (
        ($ = $(b)),
        (lt = k === "" ? "." + gt(b, 0) : k),
        P($)
          ? ((B = ""),
            lt != null && (B = lt.replace(ct, "$&/") + "/"),
            w($, H, B, "", function (ne) {
              return ne;
            }))
          : $ != null &&
            (zt($) &&
              ($ = xt(
                $,
                B +
                  ($.key == null || (b && b.key === $.key)
                    ? ""
                    : ("" + $.key).replace(ct, "$&/") + "/") +
                  lt
              )),
            H.push($)),
        1
      );
    lt = 0;
    var ft = k === "" ? "." : k + ":";
    if (P(b))
      for (var Ot = 0; Ot < b.length; Ot++)
        ((k = b[Ot]), (ut = ft + gt(k, Ot)), (lt += w(k, H, B, ut, $)));
    else if (((Ot = _(b)), typeof Ot == "function"))
      for (b = Ot.call(b), Ot = 0; !(k = b.next()).done; )
        ((k = k.value), (ut = ft + gt(k, Ot++)), (lt += w(k, H, B, ut, $)));
    else if (ut === "object") {
      if (typeof b.then == "function") return w(yt(b), H, B, k, $);
      throw (
        (H = String(b)),
        Error(
          "Objects are not valid as a React child (found: " +
            (H === "[object Object]"
              ? "object with keys {" + Object.keys(b).join(", ") + "}"
              : H) +
            "). If you meant to render a collection of children, use an array instead."
        )
      );
    }
    return lt;
  }
  function U(b, H, B) {
    if (b == null) return b;
    var k = [],
      $ = 0;
    return (
      w(b, k, "", "", function (ut) {
        return H.call(B, ut, $++);
      }),
      k
    );
  }
  function R(b) {
    if (b._status === -1) {
      var H = b._result;
      ((H = H()),
        H.then(
          function (B) {
            (b._status === 0 || b._status === -1) &&
              ((b._status = 1), (b._result = B));
          },
          function (B) {
            (b._status === 0 || b._status === -1) &&
              ((b._status = 2), (b._result = B));
          }
        ),
        b._status === -1 && ((b._status = 0), (b._result = H)));
    }
    if (b._status === 1) return b._result.default;
    throw b._result;
  }
  var it =
      typeof reportError == "function"
        ? reportError
        : function (b) {
            if (
              typeof window == "object" &&
              typeof window.ErrorEvent == "function"
            ) {
              var H = new window.ErrorEvent("error", {
                bubbles: !0,
                cancelable: !0,
                message:
                  typeof b == "object" &&
                  b !== null &&
                  typeof b.message == "string"
                    ? String(b.message)
                    : String(b),
                error: b,
              });
              if (!window.dispatchEvent(H)) return;
            } else if (
              typeof process == "object" &&
              typeof process.emit == "function"
            ) {
              process.emit("uncaughtException", b);
              return;
            }
            console.error(b);
          },
    ot = {
      map: U,
      forEach: function (b, H, B) {
        U(
          b,
          function () {
            H.apply(this, arguments);
          },
          B
        );
      },
      count: function (b) {
        var H = 0;
        return (
          U(b, function () {
            H++;
          }),
          H
        );
      },
      toArray: function (b) {
        return (
          U(b, function (H) {
            return H;
          }) || []
        );
      },
      only: function (b) {
        if (!zt(b))
          throw Error(
            "React.Children.only expected to receive a single React element child."
          );
        return b;
      },
    };
  return (
    (pt.Activity = h),
    (pt.Children = ot),
    (pt.Component = V),
    (pt.Fragment = r),
    (pt.Profiler = f),
    (pt.PureComponent = J),
    (pt.StrictMode = s),
    (pt.Suspense = y),
    (pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Q),
    (pt.__COMPILER_RUNTIME = {
      __proto__: null,
      c: function (b) {
        return Q.H.useMemoCache(b);
      },
    }),
    (pt.cache = function (b) {
      return function () {
        return b.apply(null, arguments);
      };
    }),
    (pt.cacheSignal = function () {
      return null;
    }),
    (pt.cloneElement = function (b, H, B) {
      if (b == null)
        throw Error(
          "The argument must be a React element, but you passed " + b + "."
        );
      var k = Y({}, b.props),
        $ = b.key;
      if (H != null)
        for (ut in (H.key !== void 0 && ($ = "" + H.key), H))
          !Z.call(H, ut) ||
            ut === "key" ||
            ut === "__self" ||
            ut === "__source" ||
            (ut === "ref" && H.ref === void 0) ||
            (k[ut] = H[ut]);
      var ut = arguments.length - 2;
      if (ut === 1) k.children = B;
      else if (1 < ut) {
        for (var lt = Array(ut), ft = 0; ft < ut; ft++)
          lt[ft] = arguments[ft + 2];
        k.children = lt;
      }
      return mt(b.type, $, k);
    }),
    (pt.createContext = function (b) {
      return (
        (b = {
          $$typeof: p,
          _currentValue: b,
          _currentValue2: b,
          _threadCount: 0,
          Provider: null,
          Consumer: null,
        }),
        (b.Provider = b),
        (b.Consumer = { $$typeof: d, _context: b }),
        b
      );
    }),
    (pt.createElement = function (b, H, B) {
      var k,
        $ = {},
        ut = null;
      if (H != null)
        for (k in (H.key !== void 0 && (ut = "" + H.key), H))
          Z.call(H, k) &&
            k !== "key" &&
            k !== "__self" &&
            k !== "__source" &&
            ($[k] = H[k]);
      var lt = arguments.length - 2;
      if (lt === 1) $.children = B;
      else if (1 < lt) {
        for (var ft = Array(lt), Ot = 0; Ot < lt; Ot++)
          ft[Ot] = arguments[Ot + 2];
        $.children = ft;
      }
      if (b && b.defaultProps)
        for (k in ((lt = b.defaultProps), lt))
          $[k] === void 0 && ($[k] = lt[k]);
      return mt(b, ut, $);
    }),
    (pt.createRef = function () {
      return { current: null };
    }),
    (pt.forwardRef = function (b) {
      return { $$typeof: x, render: b };
    }),
    (pt.isValidElement = zt),
    (pt.lazy = function (b) {
      return { $$typeof: v, _payload: { _status: -1, _result: b }, _init: R };
    }),
    (pt.memo = function (b, H) {
      return { $$typeof: g, type: b, compare: H === void 0 ? null : H };
    }),
    (pt.startTransition = function (b) {
      var H = Q.T,
        B = {};
      Q.T = B;
      try {
        var k = b(),
          $ = Q.S;
        ($ !== null && $(B, k),
          typeof k == "object" &&
            k !== null &&
            typeof k.then == "function" &&
            k.then(nt, it));
      } catch (ut) {
        it(ut);
      } finally {
        (H !== null && B.types !== null && (H.types = B.types), (Q.T = H));
      }
    }),
    (pt.unstable_useCacheRefresh = function () {
      return Q.H.useCacheRefresh();
    }),
    (pt.use = function (b) {
      return Q.H.use(b);
    }),
    (pt.useActionState = function (b, H, B) {
      return Q.H.useActionState(b, H, B);
    }),
    (pt.useCallback = function (b, H) {
      return Q.H.useCallback(b, H);
    }),
    (pt.useContext = function (b) {
      return Q.H.useContext(b);
    }),
    (pt.useDebugValue = function () {}),
    (pt.useDeferredValue = function (b, H) {
      return Q.H.useDeferredValue(b, H);
    }),
    (pt.useEffect = function (b, H) {
      return Q.H.useEffect(b, H);
    }),
    (pt.useEffectEvent = function (b) {
      return Q.H.useEffectEvent(b);
    }),
    (pt.useId = function () {
      return Q.H.useId();
    }),
    (pt.useImperativeHandle = function (b, H, B) {
      return Q.H.useImperativeHandle(b, H, B);
    }),
    (pt.useInsertionEffect = function (b, H) {
      return Q.H.useInsertionEffect(b, H);
    }),
    (pt.useLayoutEffect = function (b, H) {
      return Q.H.useLayoutEffect(b, H);
    }),
    (pt.useMemo = function (b, H) {
      return Q.H.useMemo(b, H);
    }),
    (pt.useOptimistic = function (b, H) {
      return Q.H.useOptimistic(b, H);
    }),
    (pt.useReducer = function (b, H, B) {
      return Q.H.useReducer(b, H, B);
    }),
    (pt.useRef = function (b) {
      return Q.H.useRef(b);
    }),
    (pt.useState = function (b) {
      return Q.H.useState(b);
    }),
    (pt.useSyncExternalStore = function (b, H, B) {
      return Q.H.useSyncExternalStore(b, H, B);
    }),
    (pt.useTransition = function () {
      return Q.H.useTransition();
    }),
    (pt.version = "19.2.1"),
    pt
  );
}
var vh;
function du() {
  return (vh || ((vh = 1), (Yr.exports = zv())), Yr.exports);
}
var qr = { exports: {} },
  fe = {};
/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var bh;
function Ov() {
  if (bh) return fe;
  bh = 1;
  var i = du();
  function u(y) {
    var g = "https://react.dev/errors/" + y;
    if (1 < arguments.length) {
      g += "?args[]=" + encodeURIComponent(arguments[1]);
      for (var v = 2; v < arguments.length; v++)
        g += "&args[]=" + encodeURIComponent(arguments[v]);
    }
    return (
      "Minified React error #" +
      y +
      "; visit " +
      g +
      " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    );
  }
  function r() {}
  var s = {
      d: {
        f: r,
        r: function () {
          throw Error(u(522));
        },
        D: r,
        C: r,
        L: r,
        m: r,
        X: r,
        S: r,
        M: r,
      },
      p: 0,
      findDOMNode: null,
    },
    f = Symbol.for("react.portal");
  function d(y, g, v) {
    var h =
      3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
    return {
      $$typeof: f,
      key: h == null ? null : "" + h,
      children: y,
      containerInfo: g,
      implementation: v,
    };
  }
  var p = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
  function x(y, g) {
    if (y === "font") return "";
    if (typeof g == "string") return g === "use-credentials" ? g : "";
  }
  return (
    (fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s),
    (fe.createPortal = function (y, g) {
      var v =
        2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
      if (!g || (g.nodeType !== 1 && g.nodeType !== 9 && g.nodeType !== 11))
        throw Error(u(299));
      return d(y, g, null, v);
    }),
    (fe.flushSync = function (y) {
      var g = p.T,
        v = s.p;
      try {
        if (((p.T = null), (s.p = 2), y)) return y();
      } finally {
        ((p.T = g), (s.p = v), s.d.f());
      }
    }),
    (fe.preconnect = function (y, g) {
      typeof y == "string" &&
        (g
          ? ((g = g.crossOrigin),
            (g =
              typeof g == "string"
                ? g === "use-credentials"
                  ? g
                  : ""
                : void 0))
          : (g = null),
        s.d.C(y, g));
    }),
    (fe.prefetchDNS = function (y) {
      typeof y == "string" && s.d.D(y);
    }),
    (fe.preinit = function (y, g) {
      if (typeof y == "string" && g && typeof g.as == "string") {
        var v = g.as,
          h = x(v, g.crossOrigin),
          z = typeof g.integrity == "string" ? g.integrity : void 0,
          _ = typeof g.fetchPriority == "string" ? g.fetchPriority : void 0;
        v === "style"
          ? s.d.S(y, typeof g.precedence == "string" ? g.precedence : void 0, {
              crossOrigin: h,
              integrity: z,
              fetchPriority: _,
            })
          : v === "script" &&
            s.d.X(y, {
              crossOrigin: h,
              integrity: z,
              fetchPriority: _,
              nonce: typeof g.nonce == "string" ? g.nonce : void 0,
            });
      }
    }),
    (fe.preinitModule = function (y, g) {
      if (typeof y == "string")
        if (typeof g == "object" && g !== null) {
          if (g.as == null || g.as === "script") {
            var v = x(g.as, g.crossOrigin);
            s.d.M(y, {
              crossOrigin: v,
              integrity: typeof g.integrity == "string" ? g.integrity : void 0,
              nonce: typeof g.nonce == "string" ? g.nonce : void 0,
            });
          }
        } else g == null && s.d.M(y);
    }),
    (fe.preload = function (y, g) {
      if (
        typeof y == "string" &&
        typeof g == "object" &&
        g !== null &&
        typeof g.as == "string"
      ) {
        var v = g.as,
          h = x(v, g.crossOrigin);
        s.d.L(y, v, {
          crossOrigin: h,
          integrity: typeof g.integrity == "string" ? g.integrity : void 0,
          nonce: typeof g.nonce == "string" ? g.nonce : void 0,
          type: typeof g.type == "string" ? g.type : void 0,
          fetchPriority:
            typeof g.fetchPriority == "string" ? g.fetchPriority : void 0,
          referrerPolicy:
            typeof g.referrerPolicy == "string" ? g.referrerPolicy : void 0,
          imageSrcSet:
            typeof g.imageSrcSet == "string" ? g.imageSrcSet : void 0,
          imageSizes: typeof g.imageSizes == "string" ? g.imageSizes : void 0,
          media: typeof g.media == "string" ? g.media : void 0,
        });
      }
    }),
    (fe.preloadModule = function (y, g) {
      if (typeof y == "string")
        if (g) {
          var v = x(g.as, g.crossOrigin);
          s.d.m(y, {
            as: typeof g.as == "string" && g.as !== "script" ? g.as : void 0,
            crossOrigin: v,
            integrity: typeof g.integrity == "string" ? g.integrity : void 0,
          });
        } else s.d.m(y);
    }),
    (fe.requestFormReset = function (y) {
      s.d.r(y);
    }),
    (fe.unstable_batchedUpdates = function (y, g) {
      return y(g);
    }),
    (fe.useFormState = function (y, g, v) {
      return p.H.useFormState(y, g, v);
    }),
    (fe.useFormStatus = function () {
      return p.H.useHostTransitionStatus();
    }),
    (fe.version = "19.2.1"),
    fe
  );
}
var xh;
function ag() {
  if (xh) return qr.exports;
  xh = 1;
  function i() {
    if (
      !(
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" ||
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"
      )
    )
      try {
        __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i);
      } catch (u) {
        console.error(u);
      }
  }
  return (i(), (qr.exports = Ov()), qr.exports);
}
/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Sh;
function Cv() {
  if (Sh) return ji;
  Sh = 1;
  var i = Av(),
    u = du(),
    r = ag();
  function s(t) {
    var e = "https://react.dev/errors/" + t;
    if (1 < arguments.length) {
      e += "?args[]=" + encodeURIComponent(arguments[1]);
      for (var n = 2; n < arguments.length; n++)
        e += "&args[]=" + encodeURIComponent(arguments[n]);
    }
    return (
      "Minified React error #" +
      t +
      "; visit " +
      e +
      " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    );
  }
  function f(t) {
    return !(!t || (t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11));
  }
  function d(t) {
    var e = t,
      n = t;
    if (t.alternate) for (; e.return; ) e = e.return;
    else {
      t = e;
      do ((e = t), (e.flags & 4098) !== 0 && (n = e.return), (t = e.return));
      while (t);
    }
    return e.tag === 3 ? n : null;
  }
  function p(t) {
    if (t.tag === 13) {
      var e = t.memoizedState;
      if (
        (e === null && ((t = t.alternate), t !== null && (e = t.memoizedState)),
        e !== null)
      )
        return e.dehydrated;
    }
    return null;
  }
  function x(t) {
    if (t.tag === 31) {
      var e = t.memoizedState;
      if (
        (e === null && ((t = t.alternate), t !== null && (e = t.memoizedState)),
        e !== null)
      )
        return e.dehydrated;
    }
    return null;
  }
  function y(t) {
    if (d(t) !== t) throw Error(s(188));
  }
  function g(t) {
    var e = t.alternate;
    if (!e) {
      if (((e = d(t)), e === null)) throw Error(s(188));
      return e !== t ? null : t;
    }
    for (var n = t, l = e; ; ) {
      var a = n.return;
      if (a === null) break;
      var o = a.alternate;
      if (o === null) {
        if (((l = a.return), l !== null)) {
          n = l;
          continue;
        }
        break;
      }
      if (a.child === o.child) {
        for (o = a.child; o; ) {
          if (o === n) return (y(a), t);
          if (o === l) return (y(a), e);
          o = o.sibling;
        }
        throw Error(s(188));
      }
      if (n.return !== l.return) ((n = a), (l = o));
      else {
        for (var c = !1, m = a.child; m; ) {
          if (m === n) {
            ((c = !0), (n = a), (l = o));
            break;
          }
          if (m === l) {
            ((c = !0), (l = a), (n = o));
            break;
          }
          m = m.sibling;
        }
        if (!c) {
          for (m = o.child; m; ) {
            if (m === n) {
              ((c = !0), (n = o), (l = a));
              break;
            }
            if (m === l) {
              ((c = !0), (l = o), (n = a));
              break;
            }
            m = m.sibling;
          }
          if (!c) throw Error(s(189));
        }
      }
      if (n.alternate !== l) throw Error(s(190));
    }
    if (n.tag !== 3) throw Error(s(188));
    return n.stateNode.current === n ? t : e;
  }
  function v(t) {
    var e = t.tag;
    if (e === 5 || e === 26 || e === 27 || e === 6) return t;
    for (t = t.child; t !== null; ) {
      if (((e = v(t)), e !== null)) return e;
      t = t.sibling;
    }
    return null;
  }
  var h = Object.assign,
    z = Symbol.for("react.element"),
    _ = Symbol.for("react.transitional.element"),
    D = Symbol.for("react.portal"),
    Y = Symbol.for("react.fragment"),
    X = Symbol.for("react.strict_mode"),
    V = Symbol.for("react.profiler"),
    F = Symbol.for("react.consumer"),
    J = Symbol.for("react.context"),
    W = Symbol.for("react.forward_ref"),
    P = Symbol.for("react.suspense"),
    nt = Symbol.for("react.suspense_list"),
    Q = Symbol.for("react.memo"),
    Z = Symbol.for("react.lazy"),
    mt = Symbol.for("react.activity"),
    xt = Symbol.for("react.memo_cache_sentinel"),
    zt = Symbol.iterator;
  function ht(t) {
    return t === null || typeof t != "object"
      ? null
      : ((t = (zt && t[zt]) || t["@@iterator"]),
        typeof t == "function" ? t : null);
  }
  var ct = Symbol.for("react.client.reference");
  function gt(t) {
    if (t == null) return null;
    if (typeof t == "function")
      return t.$$typeof === ct ? null : t.displayName || t.name || null;
    if (typeof t == "string") return t;
    switch (t) {
      case Y:
        return "Fragment";
      case V:
        return "Profiler";
      case X:
        return "StrictMode";
      case P:
        return "Suspense";
      case nt:
        return "SuspenseList";
      case mt:
        return "Activity";
    }
    if (typeof t == "object")
      switch (t.$$typeof) {
        case D:
          return "Portal";
        case J:
          return t.displayName || "Context";
        case F:
          return (t._context.displayName || "Context") + ".Consumer";
        case W:
          var e = t.render;
          return (
            (t = t.displayName),
            t ||
              ((t = e.displayName || e.name || ""),
              (t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef")),
            t
          );
        case Q:
          return (
            (e = t.displayName || null),
            e !== null ? e : gt(t.type) || "Memo"
          );
        case Z:
          ((e = t._payload), (t = t._init));
          try {
            return gt(t(e));
          } catch {}
      }
    return null;
  }
  var yt = Array.isArray,
    w = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
    U = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
    R = { pending: !1, data: null, method: null, action: null },
    it = [],
    ot = -1;
  function b(t) {
    return { current: t };
  }
  function H(t) {
    0 > ot || ((t.current = it[ot]), (it[ot] = null), ot--);
  }
  function B(t, e) {
    (ot++, (it[ot] = t.current), (t.current = e));
  }
  var k = b(null),
    $ = b(null),
    ut = b(null),
    lt = b(null);
  function ft(t, e) {
    switch ((B(ut, e), B($, t), B(k, null), e.nodeType)) {
      case 9:
      case 11:
        t = (t = e.documentElement) && (t = t.namespaceURI) ? Hm(t) : 0;
        break;
      default:
        if (((t = e.tagName), (e = e.namespaceURI)))
          ((e = Hm(e)), (t = Bm(e, t)));
        else
          switch (t) {
            case "svg":
              t = 1;
              break;
            case "math":
              t = 2;
              break;
            default:
              t = 0;
          }
    }
    (H(k), B(k, t));
  }
  function Ot() {
    (H(k), H($), H(ut));
  }
  function ne(t) {
    t.memoizedState !== null && B(lt, t);
    var e = k.current,
      n = Bm(e, t.type);
    e !== n && (B($, t), B(k, n));
  }
  function de(t) {
    ($.current === t && (H(k), H($)),
      lt.current === t && (H(lt), (Ni._currentValue = R)));
  }
  var le, hn;
  function Je(t) {
    if (le === void 0)
      try {
        throw Error();
      } catch (n) {
        var e = n.stack.trim().match(/\n( *(at )?)/);
        ((le = (e && e[1]) || ""),
          (hn =
            -1 <
            n.stack.indexOf(`
    at`)
              ? " (<anonymous>)"
              : -1 < n.stack.indexOf("@")
                ? "@unknown:0:0"
                : ""));
      }
    return (
      `
` +
      le +
      t +
      hn
    );
  }
  var La = !1;
  function Vl(t, e) {
    if (!t || La) return "";
    La = !0;
    var n = Error.prepareStackTrace;
    Error.prepareStackTrace = void 0;
    try {
      var l = {
        DetermineComponentFrameRoot: function () {
          try {
            if (e) {
              var G = function () {
                throw Error();
              };
              if (
                (Object.defineProperty(G.prototype, "props", {
                  set: function () {
                    throw Error();
                  },
                }),
                typeof Reflect == "object" && Reflect.construct)
              ) {
                try {
                  Reflect.construct(G, []);
                } catch (j) {
                  var M = j;
                }
                Reflect.construct(t, [], G);
              } else {
                try {
                  G.call();
                } catch (j) {
                  M = j;
                }
                t.call(G.prototype);
              }
            } else {
              try {
                throw Error();
              } catch (j) {
                M = j;
              }
              (G = t()) &&
                typeof G.catch == "function" &&
                G.catch(function () {});
            }
          } catch (j) {
            if (j && M && typeof j.stack == "string") return [j.stack, M.stack];
          }
          return [null, null];
        },
      };
      l.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
      var a = Object.getOwnPropertyDescriptor(
        l.DetermineComponentFrameRoot,
        "name"
      );
      a &&
        a.configurable &&
        Object.defineProperty(l.DetermineComponentFrameRoot, "name", {
          value: "DetermineComponentFrameRoot",
        });
      var o = l.DetermineComponentFrameRoot(),
        c = o[0],
        m = o[1];
      if (c && m) {
        var S = c.split(`
`),
          N = m.split(`
`);
        for (
          a = l = 0;
          l < S.length && !S[l].includes("DetermineComponentFrameRoot");

        )
          l++;
        for (; a < N.length && !N[a].includes("DetermineComponentFrameRoot"); )
          a++;
        if (l === S.length || a === N.length)
          for (
            l = S.length - 1, a = N.length - 1;
            1 <= l && 0 <= a && S[l] !== N[a];

          )
            a--;
        for (; 1 <= l && 0 <= a; l--, a--)
          if (S[l] !== N[a]) {
            if (l !== 1 || a !== 1)
              do
                if ((l--, a--, 0 > a || S[l] !== N[a])) {
                  var L =
                    `
` + S[l].replace(" at new ", " at ");
                  return (
                    t.displayName &&
                      L.includes("<anonymous>") &&
                      (L = L.replace("<anonymous>", t.displayName)),
                    L
                  );
                }
              while (1 <= l && 0 <= a);
            break;
          }
      }
    } finally {
      ((La = !1), (Error.prepareStackTrace = n));
    }
    return (n = t ? t.displayName || t.name : "") ? Je(n) : "";
  }
  function gl(t, e) {
    switch (t.tag) {
      case 26:
      case 27:
      case 5:
        return Je(t.type);
      case 16:
        return Je("Lazy");
      case 13:
        return t.child !== e && e !== null
          ? Je("Suspense Fallback")
          : Je("Suspense");
      case 19:
        return Je("SuspenseList");
      case 0:
      case 15:
        return Vl(t.type, !1);
      case 11:
        return Vl(t.type.render, !1);
      case 1:
        return Vl(t.type, !0);
      case 31:
        return Je("Activity");
      default:
        return "";
    }
  }
  function Ya(t) {
    try {
      var e = "",
        n = null;
      do ((e += gl(t, n)), (n = t), (t = t.return));
      while (t);
      return e;
    } catch (l) {
      return (
        `
Error generating stack: ` +
        l.message +
        `
` +
        l.stack
      );
    }
  }
  var Ce = Object.prototype.hasOwnProperty,
    qa = i.unstable_scheduleCallback,
    Ga = i.unstable_cancelCallback,
    me = i.unstable_shouldYield,
    Ln = i.unstable_requestPaint,
    he = i.unstable_now,
    Tu = i.unstable_getCurrentPriorityLevel,
    pl = i.unstable_ImmediatePriority,
    Gi = i.unstable_UserBlockingPriority,
    yl = i.unstable_NormalPriority,
    Va = i.unstable_LowPriority,
    gn = i.unstable_IdlePriority,
    Vi = i.log,
    Yn = i.unstable_setDisableYieldValue,
    vl = null,
    ge = null;
  function $e(t) {
    if (
      (typeof Vi == "function" && Yn(t),
      ge && typeof ge.setStrictMode == "function")
    )
      try {
        ge.setStrictMode(vl, t);
      } catch {}
  }
  var re = Math.clz32 ? Math.clz32 : nn,
    wu = Math.log,
    Xa = Math.LN2;
  function nn(t) {
    return ((t >>>= 0), t === 0 ? 32 : (31 - ((wu(t) / Xa) | 0)) | 0);
  }
  var Xl = 256,
    kl = 262144,
    bl = 4194304;
  function ln(t) {
    var e = t & 42;
    if (e !== 0) return e;
    switch (t & -t) {
      case 1:
        return 1;
      case 2:
        return 2;
      case 4:
        return 4;
      case 8:
        return 8;
      case 16:
        return 16;
      case 32:
        return 32;
      case 64:
        return 64;
      case 128:
        return 128;
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
        return t & 261888;
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
        return t & 3932160;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
        return t & 62914560;
      case 67108864:
        return 67108864;
      case 134217728:
        return 134217728;
      case 268435456:
        return 268435456;
      case 536870912:
        return 536870912;
      case 1073741824:
        return 0;
      default:
        return t;
    }
  }
  function dt(t, e, n) {
    var l = t.pendingLanes;
    if (l === 0) return 0;
    var a = 0,
      o = t.suspendedLanes,
      c = t.pingedLanes;
    t = t.warmLanes;
    var m = l & 134217727;
    return (
      m !== 0
        ? ((l = m & ~o),
          l !== 0
            ? (a = ln(l))
            : ((c &= m),
              c !== 0
                ? (a = ln(c))
                : n || ((n = m & ~t), n !== 0 && (a = ln(n)))))
        : ((m = l & ~o),
          m !== 0
            ? (a = ln(m))
            : c !== 0
              ? (a = ln(c))
              : n || ((n = l & ~t), n !== 0 && (a = ln(n)))),
      a === 0
        ? 0
        : e !== 0 &&
            e !== a &&
            (e & o) === 0 &&
            ((o = a & -a),
            (n = e & -e),
            o >= n || (o === 32 && (n & 4194048) !== 0))
          ? e
          : a
    );
  }
  function qt(t, e) {
    return (t.pendingLanes & ~(t.suspendedLanes & ~t.pingedLanes) & e) === 0;
  }
  function It(t, e) {
    switch (t) {
      case 1:
      case 2:
      case 4:
      case 8:
      case 64:
        return e + 250;
      case 16:
      case 32:
      case 128:
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
        return e + 5e3;
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
        return -1;
      case 67108864:
      case 134217728:
      case 268435456:
      case 536870912:
      case 1073741824:
        return -1;
      default:
        return -1;
    }
  }
  function ce() {
    var t = bl;
    return ((bl <<= 1), (bl & 62914560) === 0 && (bl = 4194304), t);
  }
  function qn(t) {
    for (var e = [], n = 0; 31 > n; n++) e.push(t);
    return e;
  }
  function Vt(t, e) {
    ((t.pendingLanes |= e),
      e !== 268435456 &&
        ((t.suspendedLanes = 0), (t.pingedLanes = 0), (t.warmLanes = 0)));
  }
  function ye(t, e, n, l, a, o) {
    var c = t.pendingLanes;
    ((t.pendingLanes = n),
      (t.suspendedLanes = 0),
      (t.pingedLanes = 0),
      (t.warmLanes = 0),
      (t.expiredLanes &= n),
      (t.entangledLanes &= n),
      (t.errorRecoveryDisabledLanes &= n),
      (t.shellSuspendCounter = 0));
    var m = t.entanglements,
      S = t.expirationTimes,
      N = t.hiddenUpdates;
    for (n = c & ~n; 0 < n; ) {
      var L = 31 - re(n),
        G = 1 << L;
      ((m[L] = 0), (S[L] = -1));
      var M = N[L];
      if (M !== null)
        for (N[L] = null, L = 0; L < M.length; L++) {
          var j = M[L];
          j !== null && (j.lane &= -536870913);
        }
      n &= ~G;
    }
    (l !== 0 && xl(t, l, 0),
      o !== 0 && a === 0 && t.tag !== 0 && (t.suspendedLanes |= o & ~(c & ~e)));
  }
  function xl(t, e, n) {
    ((t.pendingLanes |= e), (t.suspendedLanes &= ~e));
    var l = 31 - re(e);
    ((t.entangledLanes |= e),
      (t.entanglements[l] = t.entanglements[l] | 1073741824 | (n & 261930)));
  }
  function ve(t, e) {
    var n = (t.entangledLanes |= e);
    for (t = t.entanglements; n; ) {
      var l = 31 - re(n),
        a = 1 << l;
      ((a & e) | (t[l] & e) && (t[l] |= e), (n &= ~a));
    }
  }
  function be(t, e) {
    var n = e & -e;
    return (
      (n = (n & 42) !== 0 ? 1 : Ql(n)),
      (n & (t.suspendedLanes | e)) !== 0 ? 0 : n
    );
  }
  function Ql(t) {
    switch (t) {
      case 2:
        t = 1;
        break;
      case 8:
        t = 4;
        break;
      case 32:
        t = 16;
        break;
      case 256:
      case 512:
      case 1024:
      case 2048:
      case 4096:
      case 8192:
      case 16384:
      case 32768:
      case 65536:
      case 131072:
      case 262144:
      case 524288:
      case 1048576:
      case 2097152:
      case 4194304:
      case 8388608:
      case 16777216:
      case 33554432:
        t = 128;
        break;
      case 268435456:
        t = 134217728;
        break;
      default:
        t = 0;
    }
    return t;
  }
  function We(t) {
    return (
      (t &= -t),
      2 < t ? (8 < t ? ((t & 134217727) !== 0 ? 32 : 268435456) : 8) : 2
    );
  }
  function Au() {
    var t = U.p;
    return t !== 0 ? t : ((t = window.event), t === void 0 ? 32 : oh(t.type));
  }
  function Sc(t, e) {
    var n = U.p;
    try {
      return ((U.p = t), e());
    } finally {
      U.p = n;
    }
  }
  var Gn = Math.random().toString(36).slice(2),
    ae = "__reactFiber$" + Gn,
    xe = "__reactProps$" + Gn,
    Zl = "__reactContainer$" + Gn,
    zu = "__reactEvents$" + Gn,
    cp = "__reactListeners$" + Gn,
    fp = "__reactHandles$" + Gn,
    Ec = "__reactResources$" + Gn,
    ka = "__reactMarker$" + Gn;
  function Ou(t) {
    (delete t[ae], delete t[xe], delete t[zu], delete t[cp], delete t[fp]);
  }
  function Kl(t) {
    var e = t[ae];
    if (e) return e;
    for (var n = t.parentNode; n; ) {
      if ((e = n[Zl] || n[ae])) {
        if (
          ((n = e.alternate),
          e.child !== null || (n !== null && n.child !== null))
        )
          for (t = km(t); t !== null; ) {
            if ((n = t[ae])) return n;
            t = km(t);
          }
        return e;
      }
      ((t = n), (n = t.parentNode));
    }
    return null;
  }
  function Jl(t) {
    if ((t = t[ae] || t[Zl])) {
      var e = t.tag;
      if (
        e === 5 ||
        e === 6 ||
        e === 13 ||
        e === 31 ||
        e === 26 ||
        e === 27 ||
        e === 3
      )
        return t;
    }
    return null;
  }
  function Qa(t) {
    var e = t.tag;
    if (e === 5 || e === 26 || e === 27 || e === 6) return t.stateNode;
    throw Error(s(33));
  }
  function $l(t) {
    var e = t[Ec];
    return (
      e ||
        (e = t[Ec] =
          { hoistableStyles: new Map(), hoistableScripts: new Map() }),
      e
    );
  }
  function te(t) {
    t[ka] = !0;
  }
  var Tc = new Set(),
    wc = {};
  function Sl(t, e) {
    (Wl(t, e), Wl(t + "Capture", e));
  }
  function Wl(t, e) {
    for (wc[t] = e, t = 0; t < e.length; t++) Tc.add(e[t]);
  }
  var dp = RegExp(
      "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
    ),
    Ac = {},
    zc = {};
  function mp(t) {
    return Ce.call(zc, t)
      ? !0
      : Ce.call(Ac, t)
        ? !1
        : dp.test(t)
          ? (zc[t] = !0)
          : ((Ac[t] = !0), !1);
  }
  function Xi(t, e, n) {
    if (mp(e))
      if (n === null) t.removeAttribute(e);
      else {
        switch (typeof n) {
          case "undefined":
          case "function":
          case "symbol":
            t.removeAttribute(e);
            return;
          case "boolean":
            var l = e.toLowerCase().slice(0, 5);
            if (l !== "data-" && l !== "aria-") {
              t.removeAttribute(e);
              return;
            }
        }
        t.setAttribute(e, "" + n);
      }
  }
  function ki(t, e, n) {
    if (n === null) t.removeAttribute(e);
    else {
      switch (typeof n) {
        case "undefined":
        case "function":
        case "symbol":
        case "boolean":
          t.removeAttribute(e);
          return;
      }
      t.setAttribute(e, "" + n);
    }
  }
  function pn(t, e, n, l) {
    if (l === null) t.removeAttribute(n);
    else {
      switch (typeof l) {
        case "undefined":
        case "function":
        case "symbol":
        case "boolean":
          t.removeAttribute(n);
          return;
      }
      t.setAttributeNS(e, n, "" + l);
    }
  }
  function Le(t) {
    switch (typeof t) {
      case "bigint":
      case "boolean":
      case "number":
      case "string":
      case "undefined":
        return t;
      case "object":
        return t;
      default:
        return "";
    }
  }
  function Oc(t) {
    var e = t.type;
    return (
      (t = t.nodeName) &&
      t.toLowerCase() === "input" &&
      (e === "checkbox" || e === "radio")
    );
  }
  function hp(t, e, n) {
    var l = Object.getOwnPropertyDescriptor(t.constructor.prototype, e);
    if (
      !t.hasOwnProperty(e) &&
      typeof l < "u" &&
      typeof l.get == "function" &&
      typeof l.set == "function"
    ) {
      var a = l.get,
        o = l.set;
      return (
        Object.defineProperty(t, e, {
          configurable: !0,
          get: function () {
            return a.call(this);
          },
          set: function (c) {
            ((n = "" + c), o.call(this, c));
          },
        }),
        Object.defineProperty(t, e, { enumerable: l.enumerable }),
        {
          getValue: function () {
            return n;
          },
          setValue: function (c) {
            n = "" + c;
          },
          stopTracking: function () {
            ((t._valueTracker = null), delete t[e]);
          },
        }
      );
    }
  }
  function Cu(t) {
    if (!t._valueTracker) {
      var e = Oc(t) ? "checked" : "value";
      t._valueTracker = hp(t, e, "" + t[e]);
    }
  }
  function Cc(t) {
    if (!t) return !1;
    var e = t._valueTracker;
    if (!e) return !0;
    var n = e.getValue(),
      l = "";
    return (
      t && (l = Oc(t) ? (t.checked ? "true" : "false") : t.value),
      (t = l),
      t !== n ? (e.setValue(t), !0) : !1
    );
  }
  function Qi(t) {
    if (
      ((t = t || (typeof document < "u" ? document : void 0)), typeof t > "u")
    )
      return null;
    try {
      return t.activeElement || t.body;
    } catch {
      return t.body;
    }
  }
  var gp = /[\n"\\]/g;
  function Ye(t) {
    return t.replace(gp, function (e) {
      return "\\" + e.charCodeAt(0).toString(16) + " ";
    });
  }
  function Nu(t, e, n, l, a, o, c, m) {
    ((t.name = ""),
      c != null &&
      typeof c != "function" &&
      typeof c != "symbol" &&
      typeof c != "boolean"
        ? (t.type = c)
        : t.removeAttribute("type"),
      e != null
        ? c === "number"
          ? ((e === 0 && t.value === "") || t.value != e) &&
            (t.value = "" + Le(e))
          : t.value !== "" + Le(e) && (t.value = "" + Le(e))
        : (c !== "submit" && c !== "reset") || t.removeAttribute("value"),
      e != null
        ? _u(t, c, Le(e))
        : n != null
          ? _u(t, c, Le(n))
          : l != null && t.removeAttribute("value"),
      a == null && o != null && (t.defaultChecked = !!o),
      a != null &&
        (t.checked = a && typeof a != "function" && typeof a != "symbol"),
      m != null &&
      typeof m != "function" &&
      typeof m != "symbol" &&
      typeof m != "boolean"
        ? (t.name = "" + Le(m))
        : t.removeAttribute("name"));
  }
  function Nc(t, e, n, l, a, o, c, m) {
    if (
      (o != null &&
        typeof o != "function" &&
        typeof o != "symbol" &&
        typeof o != "boolean" &&
        (t.type = o),
      e != null || n != null)
    ) {
      if (!((o !== "submit" && o !== "reset") || e != null)) {
        Cu(t);
        return;
      }
      ((n = n != null ? "" + Le(n) : ""),
        (e = e != null ? "" + Le(e) : n),
        m || e === t.value || (t.value = e),
        (t.defaultValue = e));
    }
    ((l = l ?? a),
      (l = typeof l != "function" && typeof l != "symbol" && !!l),
      (t.checked = m ? t.checked : !!l),
      (t.defaultChecked = !!l),
      c != null &&
        typeof c != "function" &&
        typeof c != "symbol" &&
        typeof c != "boolean" &&
        (t.name = c),
      Cu(t));
  }
  function _u(t, e, n) {
    (e === "number" && Qi(t.ownerDocument) === t) ||
      t.defaultValue === "" + n ||
      (t.defaultValue = "" + n);
  }
  function Fl(t, e, n, l) {
    if (((t = t.options), e)) {
      e = {};
      for (var a = 0; a < n.length; a++) e["$" + n[a]] = !0;
      for (n = 0; n < t.length; n++)
        ((a = e.hasOwnProperty("$" + t[n].value)),
          t[n].selected !== a && (t[n].selected = a),
          a && l && (t[n].defaultSelected = !0));
    } else {
      for (n = "" + Le(n), e = null, a = 0; a < t.length; a++) {
        if (t[a].value === n) {
          ((t[a].selected = !0), l && (t[a].defaultSelected = !0));
          return;
        }
        e !== null || t[a].disabled || (e = t[a]);
      }
      e !== null && (e.selected = !0);
    }
  }
  function _c(t, e, n) {
    if (
      e != null &&
      ((e = "" + Le(e)), e !== t.value && (t.value = e), n == null)
    ) {
      t.defaultValue !== e && (t.defaultValue = e);
      return;
    }
    t.defaultValue = n != null ? "" + Le(n) : "";
  }
  function Mc(t, e, n, l) {
    if (e == null) {
      if (l != null) {
        if (n != null) throw Error(s(92));
        if (yt(l)) {
          if (1 < l.length) throw Error(s(93));
          l = l[0];
        }
        n = l;
      }
      (n == null && (n = ""), (e = n));
    }
    ((n = Le(e)),
      (t.defaultValue = n),
      (l = t.textContent),
      l === n && l !== "" && l !== null && (t.value = l),
      Cu(t));
  }
  function Pl(t, e) {
    if (e) {
      var n = t.firstChild;
      if (n && n === t.lastChild && n.nodeType === 3) {
        n.nodeValue = e;
        return;
      }
    }
    t.textContent = e;
  }
  var pp = new Set(
    "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
      " "
    )
  );
  function Rc(t, e, n) {
    var l = e.indexOf("--") === 0;
    n == null || typeof n == "boolean" || n === ""
      ? l
        ? t.setProperty(e, "")
        : e === "float"
          ? (t.cssFloat = "")
          : (t[e] = "")
      : l
        ? t.setProperty(e, n)
        : typeof n != "number" || n === 0 || pp.has(e)
          ? e === "float"
            ? (t.cssFloat = n)
            : (t[e] = ("" + n).trim())
          : (t[e] = n + "px");
  }
  function Dc(t, e, n) {
    if (e != null && typeof e != "object") throw Error(s(62));
    if (((t = t.style), n != null)) {
      for (var l in n)
        !n.hasOwnProperty(l) ||
          (e != null && e.hasOwnProperty(l)) ||
          (l.indexOf("--") === 0
            ? t.setProperty(l, "")
            : l === "float"
              ? (t.cssFloat = "")
              : (t[l] = ""));
      for (var a in e)
        ((l = e[a]), e.hasOwnProperty(a) && n[a] !== l && Rc(t, a, l));
    } else for (var o in e) e.hasOwnProperty(o) && Rc(t, o, e[o]);
  }
  function Mu(t) {
    if (t.indexOf("-") === -1) return !1;
    switch (t) {
      case "annotation-xml":
      case "color-profile":
      case "font-face":
      case "font-face-src":
      case "font-face-uri":
      case "font-face-format":
      case "font-face-name":
      case "missing-glyph":
        return !1;
      default:
        return !0;
    }
  }
  var yp = new Map([
      ["acceptCharset", "accept-charset"],
      ["htmlFor", "for"],
      ["httpEquiv", "http-equiv"],
      ["crossOrigin", "crossorigin"],
      ["accentHeight", "accent-height"],
      ["alignmentBaseline", "alignment-baseline"],
      ["arabicForm", "arabic-form"],
      ["baselineShift", "baseline-shift"],
      ["capHeight", "cap-height"],
      ["clipPath", "clip-path"],
      ["clipRule", "clip-rule"],
      ["colorInterpolation", "color-interpolation"],
      ["colorInterpolationFilters", "color-interpolation-filters"],
      ["colorProfile", "color-profile"],
      ["colorRendering", "color-rendering"],
      ["dominantBaseline", "dominant-baseline"],
      ["enableBackground", "enable-background"],
      ["fillOpacity", "fill-opacity"],
      ["fillRule", "fill-rule"],
      ["floodColor", "flood-color"],
      ["floodOpacity", "flood-opacity"],
      ["fontFamily", "font-family"],
      ["fontSize", "font-size"],
      ["fontSizeAdjust", "font-size-adjust"],
      ["fontStretch", "font-stretch"],
      ["fontStyle", "font-style"],
      ["fontVariant", "font-variant"],
      ["fontWeight", "font-weight"],
      ["glyphName", "glyph-name"],
      ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
      ["glyphOrientationVertical", "glyph-orientation-vertical"],
      ["horizAdvX", "horiz-adv-x"],
      ["horizOriginX", "horiz-origin-x"],
      ["imageRendering", "image-rendering"],
      ["letterSpacing", "letter-spacing"],
      ["lightingColor", "lighting-color"],
      ["markerEnd", "marker-end"],
      ["markerMid", "marker-mid"],
      ["markerStart", "marker-start"],
      ["overlinePosition", "overline-position"],
      ["overlineThickness", "overline-thickness"],
      ["paintOrder", "paint-order"],
      ["panose-1", "panose-1"],
      ["pointerEvents", "pointer-events"],
      ["renderingIntent", "rendering-intent"],
      ["shapeRendering", "shape-rendering"],
      ["stopColor", "stop-color"],
      ["stopOpacity", "stop-opacity"],
      ["strikethroughPosition", "strikethrough-position"],
      ["strikethroughThickness", "strikethrough-thickness"],
      ["strokeDasharray", "stroke-dasharray"],
      ["strokeDashoffset", "stroke-dashoffset"],
      ["strokeLinecap", "stroke-linecap"],
      ["strokeLinejoin", "stroke-linejoin"],
      ["strokeMiterlimit", "stroke-miterlimit"],
      ["strokeOpacity", "stroke-opacity"],
      ["strokeWidth", "stroke-width"],
      ["textAnchor", "text-anchor"],
      ["textDecoration", "text-decoration"],
      ["textRendering", "text-rendering"],
      ["transformOrigin", "transform-origin"],
      ["underlinePosition", "underline-position"],
      ["underlineThickness", "underline-thickness"],
      ["unicodeBidi", "unicode-bidi"],
      ["unicodeRange", "unicode-range"],
      ["unitsPerEm", "units-per-em"],
      ["vAlphabetic", "v-alphabetic"],
      ["vHanging", "v-hanging"],
      ["vIdeographic", "v-ideographic"],
      ["vMathematical", "v-mathematical"],
      ["vectorEffect", "vector-effect"],
      ["vertAdvY", "vert-adv-y"],
      ["vertOriginX", "vert-origin-x"],
      ["vertOriginY", "vert-origin-y"],
      ["wordSpacing", "word-spacing"],
      ["writingMode", "writing-mode"],
      ["xmlnsXlink", "xmlns:xlink"],
      ["xHeight", "x-height"],
    ]),
    vp =
      /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
  function Zi(t) {
    return vp.test("" + t)
      ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
      : t;
  }
  function yn() {}
  var Ru = null;
  function Du(t) {
    return (
      (t = t.target || t.srcElement || window),
      t.correspondingUseElement && (t = t.correspondingUseElement),
      t.nodeType === 3 ? t.parentNode : t
    );
  }
  var Il = null,
    ta = null;
  function jc(t) {
    var e = Jl(t);
    if (e && (t = e.stateNode)) {
      var n = t[xe] || null;
      t: switch (((t = e.stateNode), e.type)) {
        case "input":
          if (
            (Nu(
              t,
              n.value,
              n.defaultValue,
              n.defaultValue,
              n.checked,
              n.defaultChecked,
              n.type,
              n.name
            ),
            (e = n.name),
            n.type === "radio" && e != null)
          ) {
            for (n = t; n.parentNode; ) n = n.parentNode;
            for (
              n = n.querySelectorAll(
                'input[name="' + Ye("" + e) + '"][type="radio"]'
              ),
                e = 0;
              e < n.length;
              e++
            ) {
              var l = n[e];
              if (l !== t && l.form === t.form) {
                var a = l[xe] || null;
                if (!a) throw Error(s(90));
                Nu(
                  l,
                  a.value,
                  a.defaultValue,
                  a.defaultValue,
                  a.checked,
                  a.defaultChecked,
                  a.type,
                  a.name
                );
              }
            }
            for (e = 0; e < n.length; e++)
              ((l = n[e]), l.form === t.form && Cc(l));
          }
          break t;
        case "textarea":
          _c(t, n.value, n.defaultValue);
          break t;
        case "select":
          ((e = n.value), e != null && Fl(t, !!n.multiple, e, !1));
      }
    }
  }
  var ju = !1;
  function Uc(t, e, n) {
    if (ju) return t(e, n);
    ju = !0;
    try {
      var l = t(e);
      return l;
    } finally {
      if (
        ((ju = !1),
        (Il !== null || ta !== null) &&
          (jo(), Il && ((e = Il), (t = ta), (ta = Il = null), jc(e), t)))
      )
        for (e = 0; e < t.length; e++) jc(t[e]);
    }
  }
  function Za(t, e) {
    var n = t.stateNode;
    if (n === null) return null;
    var l = n[xe] || null;
    if (l === null) return null;
    n = l[e];
    t: switch (e) {
      case "onClick":
      case "onClickCapture":
      case "onDoubleClick":
      case "onDoubleClickCapture":
      case "onMouseDown":
      case "onMouseDownCapture":
      case "onMouseMove":
      case "onMouseMoveCapture":
      case "onMouseUp":
      case "onMouseUpCapture":
      case "onMouseEnter":
        ((l = !l.disabled) ||
          ((t = t.type),
          (l = !(
            t === "button" ||
            t === "input" ||
            t === "select" ||
            t === "textarea"
          ))),
          (t = !l));
        break t;
      default:
        t = !1;
    }
    if (t) return null;
    if (n && typeof n != "function") throw Error(s(231, e, typeof n));
    return n;
  }
  var vn = !(
      typeof window > "u" ||
      typeof window.document > "u" ||
      typeof window.document.createElement > "u"
    ),
    Uu = !1;
  if (vn)
    try {
      var Ka = {};
      (Object.defineProperty(Ka, "passive", {
        get: function () {
          Uu = !0;
        },
      }),
        window.addEventListener("test", Ka, Ka),
        window.removeEventListener("test", Ka, Ka));
    } catch {
      Uu = !1;
    }
  var Vn = null,
    Hu = null,
    Ki = null;
  function Hc() {
    if (Ki) return Ki;
    var t,
      e = Hu,
      n = e.length,
      l,
      a = "value" in Vn ? Vn.value : Vn.textContent,
      o = a.length;
    for (t = 0; t < n && e[t] === a[t]; t++);
    var c = n - t;
    for (l = 1; l <= c && e[n - l] === a[o - l]; l++);
    return (Ki = a.slice(t, 1 < l ? 1 - l : void 0));
  }
  function Ji(t) {
    var e = t.keyCode;
    return (
      "charCode" in t
        ? ((t = t.charCode), t === 0 && e === 13 && (t = 13))
        : (t = e),
      t === 10 && (t = 13),
      32 <= t || t === 13 ? t : 0
    );
  }
  function $i() {
    return !0;
  }
  function Bc() {
    return !1;
  }
  function Se(t) {
    function e(n, l, a, o, c) {
      ((this._reactName = n),
        (this._targetInst = a),
        (this.type = l),
        (this.nativeEvent = o),
        (this.target = c),
        (this.currentTarget = null));
      for (var m in t)
        t.hasOwnProperty(m) && ((n = t[m]), (this[m] = n ? n(o) : o[m]));
      return (
        (this.isDefaultPrevented = (
          o.defaultPrevented != null ? o.defaultPrevented : o.returnValue === !1
        )
          ? $i
          : Bc),
        (this.isPropagationStopped = Bc),
        this
      );
    }
    return (
      h(e.prototype, {
        preventDefault: function () {
          this.defaultPrevented = !0;
          var n = this.nativeEvent;
          n &&
            (n.preventDefault
              ? n.preventDefault()
              : typeof n.returnValue != "unknown" && (n.returnValue = !1),
            (this.isDefaultPrevented = $i));
        },
        stopPropagation: function () {
          var n = this.nativeEvent;
          n &&
            (n.stopPropagation
              ? n.stopPropagation()
              : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0),
            (this.isPropagationStopped = $i));
        },
        persist: function () {},
        isPersistent: $i,
      }),
      e
    );
  }
  var El = {
      eventPhase: 0,
      bubbles: 0,
      cancelable: 0,
      timeStamp: function (t) {
        return t.timeStamp || Date.now();
      },
      defaultPrevented: 0,
      isTrusted: 0,
    },
    Wi = Se(El),
    Ja = h({}, El, { view: 0, detail: 0 }),
    bp = Se(Ja),
    Bu,
    Lu,
    $a,
    Fi = h({}, Ja, {
      screenX: 0,
      screenY: 0,
      clientX: 0,
      clientY: 0,
      pageX: 0,
      pageY: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      getModifierState: qu,
      button: 0,
      buttons: 0,
      relatedTarget: function (t) {
        return t.relatedTarget === void 0
          ? t.fromElement === t.srcElement
            ? t.toElement
            : t.fromElement
          : t.relatedTarget;
      },
      movementX: function (t) {
        return "movementX" in t
          ? t.movementX
          : (t !== $a &&
              ($a && t.type === "mousemove"
                ? ((Bu = t.screenX - $a.screenX), (Lu = t.screenY - $a.screenY))
                : (Lu = Bu = 0),
              ($a = t)),
            Bu);
      },
      movementY: function (t) {
        return "movementY" in t ? t.movementY : Lu;
      },
    }),
    Lc = Se(Fi),
    xp = h({}, Fi, { dataTransfer: 0 }),
    Sp = Se(xp),
    Ep = h({}, Ja, { relatedTarget: 0 }),
    Yu = Se(Ep),
    Tp = h({}, El, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }),
    wp = Se(Tp),
    Ap = h({}, El, {
      clipboardData: function (t) {
        return "clipboardData" in t ? t.clipboardData : window.clipboardData;
      },
    }),
    zp = Se(Ap),
    Op = h({}, El, { data: 0 }),
    Yc = Se(Op),
    Cp = {
      Esc: "Escape",
      Spacebar: " ",
      Left: "ArrowLeft",
      Up: "ArrowUp",
      Right: "ArrowRight",
      Down: "ArrowDown",
      Del: "Delete",
      Win: "OS",
      Menu: "ContextMenu",
      Apps: "ContextMenu",
      Scroll: "ScrollLock",
      MozPrintableKey: "Unidentified",
    },
    Np = {
      8: "Backspace",
      9: "Tab",
      12: "Clear",
      13: "Enter",
      16: "Shift",
      17: "Control",
      18: "Alt",
      19: "Pause",
      20: "CapsLock",
      27: "Escape",
      32: " ",
      33: "PageUp",
      34: "PageDown",
      35: "End",
      36: "Home",
      37: "ArrowLeft",
      38: "ArrowUp",
      39: "ArrowRight",
      40: "ArrowDown",
      45: "Insert",
      46: "Delete",
      112: "F1",
      113: "F2",
      114: "F3",
      115: "F4",
      116: "F5",
      117: "F6",
      118: "F7",
      119: "F8",
      120: "F9",
      121: "F10",
      122: "F11",
      123: "F12",
      144: "NumLock",
      145: "ScrollLock",
      224: "Meta",
    },
    _p = {
      Alt: "altKey",
      Control: "ctrlKey",
      Meta: "metaKey",
      Shift: "shiftKey",
    };
  function Mp(t) {
    var e = this.nativeEvent;
    return e.getModifierState
      ? e.getModifierState(t)
      : (t = _p[t])
        ? !!e[t]
        : !1;
  }
  function qu() {
    return Mp;
  }
  var Rp = h({}, Ja, {
      key: function (t) {
        if (t.key) {
          var e = Cp[t.key] || t.key;
          if (e !== "Unidentified") return e;
        }
        return t.type === "keypress"
          ? ((t = Ji(t)), t === 13 ? "Enter" : String.fromCharCode(t))
          : t.type === "keydown" || t.type === "keyup"
            ? Np[t.keyCode] || "Unidentified"
            : "";
      },
      code: 0,
      location: 0,
      ctrlKey: 0,
      shiftKey: 0,
      altKey: 0,
      metaKey: 0,
      repeat: 0,
      locale: 0,
      getModifierState: qu,
      charCode: function (t) {
        return t.type === "keypress" ? Ji(t) : 0;
      },
      keyCode: function (t) {
        return t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
      },
      which: function (t) {
        return t.type === "keypress"
          ? Ji(t)
          : t.type === "keydown" || t.type === "keyup"
            ? t.keyCode
            : 0;
      },
    }),
    Dp = Se(Rp),
    jp = h({}, Fi, {
      pointerId: 0,
      width: 0,
      height: 0,
      pressure: 0,
      tangentialPressure: 0,
      tiltX: 0,
      tiltY: 0,
      twist: 0,
      pointerType: 0,
      isPrimary: 0,
    }),
    qc = Se(jp),
    Up = h({}, Ja, {
      touches: 0,
      targetTouches: 0,
      changedTouches: 0,
      altKey: 0,
      metaKey: 0,
      ctrlKey: 0,
      shiftKey: 0,
      getModifierState: qu,
    }),
    Hp = Se(Up),
    Bp = h({}, El, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }),
    Lp = Se(Bp),
    Yp = h({}, Fi, {
      deltaX: function (t) {
        return "deltaX" in t
          ? t.deltaX
          : "wheelDeltaX" in t
            ? -t.wheelDeltaX
            : 0;
      },
      deltaY: function (t) {
        return "deltaY" in t
          ? t.deltaY
          : "wheelDeltaY" in t
            ? -t.wheelDeltaY
            : "wheelDelta" in t
              ? -t.wheelDelta
              : 0;
      },
      deltaZ: 0,
      deltaMode: 0,
    }),
    qp = Se(Yp),
    Gp = h({}, El, { newState: 0, oldState: 0 }),
    Vp = Se(Gp),
    Xp = [9, 13, 27, 32],
    Gu = vn && "CompositionEvent" in window,
    Wa = null;
  vn && "documentMode" in document && (Wa = document.documentMode);
  var kp = vn && "TextEvent" in window && !Wa,
    Gc = vn && (!Gu || (Wa && 8 < Wa && 11 >= Wa)),
    Vc = " ",
    Xc = !1;
  function kc(t, e) {
    switch (t) {
      case "keyup":
        return Xp.indexOf(e.keyCode) !== -1;
      case "keydown":
        return e.keyCode !== 229;
      case "keypress":
      case "mousedown":
      case "focusout":
        return !0;
      default:
        return !1;
    }
  }
  function Qc(t) {
    return (
      (t = t.detail),
      typeof t == "object" && "data" in t ? t.data : null
    );
  }
  var ea = !1;
  function Qp(t, e) {
    switch (t) {
      case "compositionend":
        return Qc(e);
      case "keypress":
        return e.which !== 32 ? null : ((Xc = !0), Vc);
      case "textInput":
        return ((t = e.data), t === Vc && Xc ? null : t);
      default:
        return null;
    }
  }
  function Zp(t, e) {
    if (ea)
      return t === "compositionend" || (!Gu && kc(t, e))
        ? ((t = Hc()), (Ki = Hu = Vn = null), (ea = !1), t)
        : null;
    switch (t) {
      case "paste":
        return null;
      case "keypress":
        if (!(e.ctrlKey || e.altKey || e.metaKey) || (e.ctrlKey && e.altKey)) {
          if (e.char && 1 < e.char.length) return e.char;
          if (e.which) return String.fromCharCode(e.which);
        }
        return null;
      case "compositionend":
        return Gc && e.locale !== "ko" ? null : e.data;
      default:
        return null;
    }
  }
  var Kp = {
    color: !0,
    date: !0,
    datetime: !0,
    "datetime-local": !0,
    email: !0,
    month: !0,
    number: !0,
    password: !0,
    range: !0,
    search: !0,
    tel: !0,
    text: !0,
    time: !0,
    url: !0,
    week: !0,
  };
  function Zc(t) {
    var e = t && t.nodeName && t.nodeName.toLowerCase();
    return e === "input" ? !!Kp[t.type] : e === "textarea";
  }
  function Kc(t, e, n, l) {
    (Il ? (ta ? ta.push(l) : (ta = [l])) : (Il = l),
      (e = Go(e, "onChange")),
      0 < e.length &&
        ((n = new Wi("onChange", "change", null, n, l)),
        t.push({ event: n, listeners: e })));
  }
  var Fa = null,
    Pa = null;
  function Jp(t) {
    _m(t, 0);
  }
  function Pi(t) {
    var e = Qa(t);
    if (Cc(e)) return t;
  }
  function Jc(t, e) {
    if (t === "change") return e;
  }
  var $c = !1;
  if (vn) {
    var Vu;
    if (vn) {
      var Xu = "oninput" in document;
      if (!Xu) {
        var Wc = document.createElement("div");
        (Wc.setAttribute("oninput", "return;"),
          (Xu = typeof Wc.oninput == "function"));
      }
      Vu = Xu;
    } else Vu = !1;
    $c = Vu && (!document.documentMode || 9 < document.documentMode);
  }
  function Fc() {
    Fa && (Fa.detachEvent("onpropertychange", Pc), (Pa = Fa = null));
  }
  function Pc(t) {
    if (t.propertyName === "value" && Pi(Pa)) {
      var e = [];
      (Kc(e, Pa, t, Du(t)), Uc(Jp, e));
    }
  }
  function $p(t, e, n) {
    t === "focusin"
      ? (Fc(), (Fa = e), (Pa = n), Fa.attachEvent("onpropertychange", Pc))
      : t === "focusout" && Fc();
  }
  function Wp(t) {
    if (t === "selectionchange" || t === "keyup" || t === "keydown")
      return Pi(Pa);
  }
  function Fp(t, e) {
    if (t === "click") return Pi(e);
  }
  function Pp(t, e) {
    if (t === "input" || t === "change") return Pi(e);
  }
  function Ip(t, e) {
    return (t === e && (t !== 0 || 1 / t === 1 / e)) || (t !== t && e !== e);
  }
  var Ne = typeof Object.is == "function" ? Object.is : Ip;
  function Ia(t, e) {
    if (Ne(t, e)) return !0;
    if (
      typeof t != "object" ||
      t === null ||
      typeof e != "object" ||
      e === null
    )
      return !1;
    var n = Object.keys(t),
      l = Object.keys(e);
    if (n.length !== l.length) return !1;
    for (l = 0; l < n.length; l++) {
      var a = n[l];
      if (!Ce.call(e, a) || !Ne(t[a], e[a])) return !1;
    }
    return !0;
  }
  function Ic(t) {
    for (; t && t.firstChild; ) t = t.firstChild;
    return t;
  }
  function tf(t, e) {
    var n = Ic(t);
    t = 0;
    for (var l; n; ) {
      if (n.nodeType === 3) {
        if (((l = t + n.textContent.length), t <= e && l >= e))
          return { node: n, offset: e - t };
        t = l;
      }
      t: {
        for (; n; ) {
          if (n.nextSibling) {
            n = n.nextSibling;
            break t;
          }
          n = n.parentNode;
        }
        n = void 0;
      }
      n = Ic(n);
    }
  }
  function ef(t, e) {
    return t && e
      ? t === e
        ? !0
        : t && t.nodeType === 3
          ? !1
          : e && e.nodeType === 3
            ? ef(t, e.parentNode)
            : "contains" in t
              ? t.contains(e)
              : t.compareDocumentPosition
                ? !!(t.compareDocumentPosition(e) & 16)
                : !1
      : !1;
  }
  function nf(t) {
    t =
      t != null &&
      t.ownerDocument != null &&
      t.ownerDocument.defaultView != null
        ? t.ownerDocument.defaultView
        : window;
    for (var e = Qi(t.document); e instanceof t.HTMLIFrameElement; ) {
      try {
        var n = typeof e.contentWindow.location.href == "string";
      } catch {
        n = !1;
      }
      if (n) t = e.contentWindow;
      else break;
      e = Qi(t.document);
    }
    return e;
  }
  function ku(t) {
    var e = t && t.nodeName && t.nodeName.toLowerCase();
    return (
      e &&
      ((e === "input" &&
        (t.type === "text" ||
          t.type === "search" ||
          t.type === "tel" ||
          t.type === "url" ||
          t.type === "password")) ||
        e === "textarea" ||
        t.contentEditable === "true")
    );
  }
  var ty = vn && "documentMode" in document && 11 >= document.documentMode,
    na = null,
    Qu = null,
    ti = null,
    Zu = !1;
  function lf(t, e, n) {
    var l =
      n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
    Zu ||
      na == null ||
      na !== Qi(l) ||
      ((l = na),
      "selectionStart" in l && ku(l)
        ? (l = { start: l.selectionStart, end: l.selectionEnd })
        : ((l = (
            (l.ownerDocument && l.ownerDocument.defaultView) ||
            window
          ).getSelection()),
          (l = {
            anchorNode: l.anchorNode,
            anchorOffset: l.anchorOffset,
            focusNode: l.focusNode,
            focusOffset: l.focusOffset,
          })),
      (ti && Ia(ti, l)) ||
        ((ti = l),
        (l = Go(Qu, "onSelect")),
        0 < l.length &&
          ((e = new Wi("onSelect", "select", null, e, n)),
          t.push({ event: e, listeners: l }),
          (e.target = na))));
  }
  function Tl(t, e) {
    var n = {};
    return (
      (n[t.toLowerCase()] = e.toLowerCase()),
      (n["Webkit" + t] = "webkit" + e),
      (n["Moz" + t] = "moz" + e),
      n
    );
  }
  var la = {
      animationend: Tl("Animation", "AnimationEnd"),
      animationiteration: Tl("Animation", "AnimationIteration"),
      animationstart: Tl("Animation", "AnimationStart"),
      transitionrun: Tl("Transition", "TransitionRun"),
      transitionstart: Tl("Transition", "TransitionStart"),
      transitioncancel: Tl("Transition", "TransitionCancel"),
      transitionend: Tl("Transition", "TransitionEnd"),
    },
    Ku = {},
    af = {};
  vn &&
    ((af = document.createElement("div").style),
    "AnimationEvent" in window ||
      (delete la.animationend.animation,
      delete la.animationiteration.animation,
      delete la.animationstart.animation),
    "TransitionEvent" in window || delete la.transitionend.transition);
  function wl(t) {
    if (Ku[t]) return Ku[t];
    if (!la[t]) return t;
    var e = la[t],
      n;
    for (n in e) if (e.hasOwnProperty(n) && n in af) return (Ku[t] = e[n]);
    return t;
  }
  var of = wl("animationend"),
    uf = wl("animationiteration"),
    sf = wl("animationstart"),
    ey = wl("transitionrun"),
    ny = wl("transitionstart"),
    ly = wl("transitioncancel"),
    rf = wl("transitionend"),
    cf = new Map(),
    Ju =
      "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(
        " "
      );
  Ju.push("scrollEnd");
  function Fe(t, e) {
    (cf.set(t, e), Sl(e, [t]));
  }
  var Ii =
      typeof reportError == "function"
        ? reportError
        : function (t) {
            if (
              typeof window == "object" &&
              typeof window.ErrorEvent == "function"
            ) {
              var e = new window.ErrorEvent("error", {
                bubbles: !0,
                cancelable: !0,
                message:
                  typeof t == "object" &&
                  t !== null &&
                  typeof t.message == "string"
                    ? String(t.message)
                    : String(t),
                error: t,
              });
              if (!window.dispatchEvent(e)) return;
            } else if (
              typeof process == "object" &&
              typeof process.emit == "function"
            ) {
              process.emit("uncaughtException", t);
              return;
            }
            console.error(t);
          },
    qe = [],
    aa = 0,
    $u = 0;
  function to() {
    for (var t = aa, e = ($u = aa = 0); e < t; ) {
      var n = qe[e];
      qe[e++] = null;
      var l = qe[e];
      qe[e++] = null;
      var a = qe[e];
      qe[e++] = null;
      var o = qe[e];
      if (((qe[e++] = null), l !== null && a !== null)) {
        var c = l.pending;
        (c === null ? (a.next = a) : ((a.next = c.next), (c.next = a)),
          (l.pending = a));
      }
      o !== 0 && ff(n, a, o);
    }
  }
  function eo(t, e, n, l) {
    ((qe[aa++] = t),
      (qe[aa++] = e),
      (qe[aa++] = n),
      (qe[aa++] = l),
      ($u |= l),
      (t.lanes |= l),
      (t = t.alternate),
      t !== null && (t.lanes |= l));
  }
  function Wu(t, e, n, l) {
    return (eo(t, e, n, l), no(t));
  }
  function Al(t, e) {
    return (eo(t, null, null, e), no(t));
  }
  function ff(t, e, n) {
    t.lanes |= n;
    var l = t.alternate;
    l !== null && (l.lanes |= n);
    for (var a = !1, o = t.return; o !== null; )
      ((o.childLanes |= n),
        (l = o.alternate),
        l !== null && (l.childLanes |= n),
        o.tag === 22 &&
          ((t = o.stateNode), t === null || t._visibility & 1 || (a = !0)),
        (t = o),
        (o = o.return));
    return t.tag === 3
      ? ((o = t.stateNode),
        a &&
          e !== null &&
          ((a = 31 - re(n)),
          (t = o.hiddenUpdates),
          (l = t[a]),
          l === null ? (t[a] = [e]) : l.push(e),
          (e.lane = n | 536870912)),
        o)
      : null;
  }
  function no(t) {
    if (50 < Ei) throw ((Ei = 0), (ir = null), Error(s(185)));
    for (var e = t.return; e !== null; ) ((t = e), (e = t.return));
    return t.tag === 3 ? t.stateNode : null;
  }
  var ia = {};
  function ay(t, e, n, l) {
    ((this.tag = t),
      (this.key = n),
      (this.sibling =
        this.child =
        this.return =
        this.stateNode =
        this.type =
        this.elementType =
          null),
      (this.index = 0),
      (this.refCleanup = this.ref = null),
      (this.pendingProps = e),
      (this.dependencies =
        this.memoizedState =
        this.updateQueue =
        this.memoizedProps =
          null),
      (this.mode = l),
      (this.subtreeFlags = this.flags = 0),
      (this.deletions = null),
      (this.childLanes = this.lanes = 0),
      (this.alternate = null));
  }
  function _e(t, e, n, l) {
    return new ay(t, e, n, l);
  }
  function Fu(t) {
    return ((t = t.prototype), !(!t || !t.isReactComponent));
  }
  function bn(t, e) {
    var n = t.alternate;
    return (
      n === null
        ? ((n = _e(t.tag, e, t.key, t.mode)),
          (n.elementType = t.elementType),
          (n.type = t.type),
          (n.stateNode = t.stateNode),
          (n.alternate = t),
          (t.alternate = n))
        : ((n.pendingProps = e),
          (n.type = t.type),
          (n.flags = 0),
          (n.subtreeFlags = 0),
          (n.deletions = null)),
      (n.flags = t.flags & 65011712),
      (n.childLanes = t.childLanes),
      (n.lanes = t.lanes),
      (n.child = t.child),
      (n.memoizedProps = t.memoizedProps),
      (n.memoizedState = t.memoizedState),
      (n.updateQueue = t.updateQueue),
      (e = t.dependencies),
      (n.dependencies =
        e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }),
      (n.sibling = t.sibling),
      (n.index = t.index),
      (n.ref = t.ref),
      (n.refCleanup = t.refCleanup),
      n
    );
  }
  function df(t, e) {
    t.flags &= 65011714;
    var n = t.alternate;
    return (
      n === null
        ? ((t.childLanes = 0),
          (t.lanes = e),
          (t.child = null),
          (t.subtreeFlags = 0),
          (t.memoizedProps = null),
          (t.memoizedState = null),
          (t.updateQueue = null),
          (t.dependencies = null),
          (t.stateNode = null))
        : ((t.childLanes = n.childLanes),
          (t.lanes = n.lanes),
          (t.child = n.child),
          (t.subtreeFlags = 0),
          (t.deletions = null),
          (t.memoizedProps = n.memoizedProps),
          (t.memoizedState = n.memoizedState),
          (t.updateQueue = n.updateQueue),
          (t.type = n.type),
          (e = n.dependencies),
          (t.dependencies =
            e === null
              ? null
              : { lanes: e.lanes, firstContext: e.firstContext })),
      t
    );
  }
  function lo(t, e, n, l, a, o) {
    var c = 0;
    if (((l = t), typeof t == "function")) Fu(t) && (c = 1);
    else if (typeof t == "string")
      c = rv(t, n, k.current)
        ? 26
        : t === "html" || t === "head" || t === "body"
          ? 27
          : 5;
    else
      t: switch (t) {
        case mt:
          return (
            (t = _e(31, n, e, a)),
            (t.elementType = mt),
            (t.lanes = o),
            t
          );
        case Y:
          return zl(n.children, a, o, e);
        case X:
          ((c = 8), (a |= 24));
          break;
        case V:
          return (
            (t = _e(12, n, e, a | 2)),
            (t.elementType = V),
            (t.lanes = o),
            t
          );
        case P:
          return ((t = _e(13, n, e, a)), (t.elementType = P), (t.lanes = o), t);
        case nt:
          return (
            (t = _e(19, n, e, a)),
            (t.elementType = nt),
            (t.lanes = o),
            t
          );
        default:
          if (typeof t == "object" && t !== null)
            switch (t.$$typeof) {
              case J:
                c = 10;
                break t;
              case F:
                c = 9;
                break t;
              case W:
                c = 11;
                break t;
              case Q:
                c = 14;
                break t;
              case Z:
                ((c = 16), (l = null));
                break t;
            }
          ((c = 29),
            (n = Error(s(130, t === null ? "null" : typeof t, ""))),
            (l = null));
      }
    return (
      (e = _e(c, n, e, a)),
      (e.elementType = t),
      (e.type = l),
      (e.lanes = o),
      e
    );
  }
  function zl(t, e, n, l) {
    return ((t = _e(7, t, l, e)), (t.lanes = n), t);
  }
  function Pu(t, e, n) {
    return ((t = _e(6, t, null, e)), (t.lanes = n), t);
  }
  function mf(t) {
    var e = _e(18, null, null, 0);
    return ((e.stateNode = t), e);
  }
  function Iu(t, e, n) {
    return (
      (e = _e(4, t.children !== null ? t.children : [], t.key, e)),
      (e.lanes = n),
      (e.stateNode = {
        containerInfo: t.containerInfo,
        pendingChildren: null,
        implementation: t.implementation,
      }),
      e
    );
  }
  var hf = new WeakMap();
  function Ge(t, e) {
    if (typeof t == "object" && t !== null) {
      var n = hf.get(t);
      return n !== void 0
        ? n
        : ((e = { value: t, source: e, stack: Ya(e) }), hf.set(t, e), e);
    }
    return { value: t, source: e, stack: Ya(e) };
  }
  var oa = [],
    ua = 0,
    ao = null,
    ei = 0,
    Ve = [],
    Xe = 0,
    Xn = null,
    an = 1,
    on = "";
  function xn(t, e) {
    ((oa[ua++] = ei), (oa[ua++] = ao), (ao = t), (ei = e));
  }
  function gf(t, e, n) {
    ((Ve[Xe++] = an), (Ve[Xe++] = on), (Ve[Xe++] = Xn), (Xn = t));
    var l = an;
    t = on;
    var a = 32 - re(l) - 1;
    ((l &= ~(1 << a)), (n += 1));
    var o = 32 - re(e) + a;
    if (30 < o) {
      var c = a - (a % 5);
      ((o = (l & ((1 << c) - 1)).toString(32)),
        (l >>= c),
        (a -= c),
        (an = (1 << (32 - re(e) + a)) | (n << a) | l),
        (on = o + t));
    } else ((an = (1 << o) | (n << a) | l), (on = t));
  }
  function ts(t) {
    t.return !== null && (xn(t, 1), gf(t, 1, 0));
  }
  function es(t) {
    for (; t === ao; )
      ((ao = oa[--ua]), (oa[ua] = null), (ei = oa[--ua]), (oa[ua] = null));
    for (; t === Xn; )
      ((Xn = Ve[--Xe]),
        (Ve[Xe] = null),
        (on = Ve[--Xe]),
        (Ve[Xe] = null),
        (an = Ve[--Xe]),
        (Ve[Xe] = null));
  }
  function pf(t, e) {
    ((Ve[Xe++] = an),
      (Ve[Xe++] = on),
      (Ve[Xe++] = Xn),
      (an = e.id),
      (on = e.overflow),
      (Xn = t));
  }
  var ie = null,
    Lt = null,
    Ct = !1,
    kn = null,
    ke = !1,
    ns = Error(s(519));
  function Qn(t) {
    var e = Error(
      s(
        418,
        1 < arguments.length && arguments[1] !== void 0 && arguments[1]
          ? "text"
          : "HTML",
        ""
      )
    );
    throw (ni(Ge(e, t)), ns);
  }
  function yf(t) {
    var e = t.stateNode,
      n = t.type,
      l = t.memoizedProps;
    switch (((e[ae] = t), (e[xe] = l), n)) {
      case "dialog":
        (Tt("cancel", e), Tt("close", e));
        break;
      case "iframe":
      case "object":
      case "embed":
        Tt("load", e);
        break;
      case "video":
      case "audio":
        for (n = 0; n < wi.length; n++) Tt(wi[n], e);
        break;
      case "source":
        Tt("error", e);
        break;
      case "img":
      case "image":
      case "link":
        (Tt("error", e), Tt("load", e));
        break;
      case "details":
        Tt("toggle", e);
        break;
      case "input":
        (Tt("invalid", e),
          Nc(
            e,
            l.value,
            l.defaultValue,
            l.checked,
            l.defaultChecked,
            l.type,
            l.name,
            !0
          ));
        break;
      case "select":
        Tt("invalid", e);
        break;
      case "textarea":
        (Tt("invalid", e), Mc(e, l.value, l.defaultValue, l.children));
    }
    ((n = l.children),
      (typeof n != "string" && typeof n != "number" && typeof n != "bigint") ||
      e.textContent === "" + n ||
      l.suppressHydrationWarning === !0 ||
      jm(e.textContent, n)
        ? (l.popover != null && (Tt("beforetoggle", e), Tt("toggle", e)),
          l.onScroll != null && Tt("scroll", e),
          l.onScrollEnd != null && Tt("scrollend", e),
          l.onClick != null && (e.onclick = yn),
          (e = !0))
        : (e = !1),
      e || Qn(t, !0));
  }
  function vf(t) {
    for (ie = t.return; ie; )
      switch (ie.tag) {
        case 5:
        case 31:
        case 13:
          ke = !1;
          return;
        case 27:
        case 3:
          ke = !0;
          return;
        default:
          ie = ie.return;
      }
  }
  function sa(t) {
    if (t !== ie) return !1;
    if (!Ct) return (vf(t), (Ct = !0), !1);
    var e = t.tag,
      n;
    if (
      ((n = e !== 3 && e !== 27) &&
        ((n = e === 5) &&
          ((n = t.type),
          (n =
            !(n !== "form" && n !== "button") || xr(t.type, t.memoizedProps))),
        (n = !n)),
      n && Lt && Qn(t),
      vf(t),
      e === 13)
    ) {
      if (((t = t.memoizedState), (t = t !== null ? t.dehydrated : null), !t))
        throw Error(s(317));
      Lt = Xm(t);
    } else if (e === 31) {
      if (((t = t.memoizedState), (t = t !== null ? t.dehydrated : null), !t))
        throw Error(s(317));
      Lt = Xm(t);
    } else
      e === 27
        ? ((e = Lt), il(t.type) ? ((t = Ar), (Ar = null), (Lt = t)) : (Lt = e))
        : (Lt = ie ? Ze(t.stateNode.nextSibling) : null);
    return !0;
  }
  function Ol() {
    ((Lt = ie = null), (Ct = !1));
  }
  function ls() {
    var t = kn;
    return (
      t !== null &&
        (Ae === null ? (Ae = t) : Ae.push.apply(Ae, t), (kn = null)),
      t
    );
  }
  function ni(t) {
    kn === null ? (kn = [t]) : kn.push(t);
  }
  var as = b(null),
    Cl = null,
    Sn = null;
  function Zn(t, e, n) {
    (B(as, e._currentValue), (e._currentValue = n));
  }
  function En(t) {
    ((t._currentValue = as.current), H(as));
  }
  function is(t, e, n) {
    for (; t !== null; ) {
      var l = t.alternate;
      if (
        ((t.childLanes & e) !== e
          ? ((t.childLanes |= e), l !== null && (l.childLanes |= e))
          : l !== null && (l.childLanes & e) !== e && (l.childLanes |= e),
        t === n)
      )
        break;
      t = t.return;
    }
  }
  function os(t, e, n, l) {
    var a = t.child;
    for (a !== null && (a.return = t); a !== null; ) {
      var o = a.dependencies;
      if (o !== null) {
        var c = a.child;
        o = o.firstContext;
        t: for (; o !== null; ) {
          var m = o;
          o = a;
          for (var S = 0; S < e.length; S++)
            if (m.context === e[S]) {
              ((o.lanes |= n),
                (m = o.alternate),
                m !== null && (m.lanes |= n),
                is(o.return, n, t),
                l || (c = null));
              break t;
            }
          o = m.next;
        }
      } else if (a.tag === 18) {
        if (((c = a.return), c === null)) throw Error(s(341));
        ((c.lanes |= n),
          (o = c.alternate),
          o !== null && (o.lanes |= n),
          is(c, n, t),
          (c = null));
      } else c = a.child;
      if (c !== null) c.return = a;
      else
        for (c = a; c !== null; ) {
          if (c === t) {
            c = null;
            break;
          }
          if (((a = c.sibling), a !== null)) {
            ((a.return = c.return), (c = a));
            break;
          }
          c = c.return;
        }
      a = c;
    }
  }
  function ra(t, e, n, l) {
    t = null;
    for (var a = e, o = !1; a !== null; ) {
      if (!o) {
        if ((a.flags & 524288) !== 0) o = !0;
        else if ((a.flags & 262144) !== 0) break;
      }
      if (a.tag === 10) {
        var c = a.alternate;
        if (c === null) throw Error(s(387));
        if (((c = c.memoizedProps), c !== null)) {
          var m = a.type;
          Ne(a.pendingProps.value, c.value) ||
            (t !== null ? t.push(m) : (t = [m]));
        }
      } else if (a === lt.current) {
        if (((c = a.alternate), c === null)) throw Error(s(387));
        c.memoizedState.memoizedState !== a.memoizedState.memoizedState &&
          (t !== null ? t.push(Ni) : (t = [Ni]));
      }
      a = a.return;
    }
    (t !== null && os(e, t, n, l), (e.flags |= 262144));
  }
  function io(t) {
    for (t = t.firstContext; t !== null; ) {
      if (!Ne(t.context._currentValue, t.memoizedValue)) return !0;
      t = t.next;
    }
    return !1;
  }
  function Nl(t) {
    ((Cl = t),
      (Sn = null),
      (t = t.dependencies),
      t !== null && (t.firstContext = null));
  }
  function oe(t) {
    return bf(Cl, t);
  }
  function oo(t, e) {
    return (Cl === null && Nl(t), bf(t, e));
  }
  function bf(t, e) {
    var n = e._currentValue;
    if (((e = { context: e, memoizedValue: n, next: null }), Sn === null)) {
      if (t === null) throw Error(s(308));
      ((Sn = e),
        (t.dependencies = { lanes: 0, firstContext: e }),
        (t.flags |= 524288));
    } else Sn = Sn.next = e;
    return n;
  }
  var iy =
      typeof AbortController < "u"
        ? AbortController
        : function () {
            var t = [],
              e = (this.signal = {
                aborted: !1,
                addEventListener: function (n, l) {
                  t.push(l);
                },
              });
            this.abort = function () {
              ((e.aborted = !0),
                t.forEach(function (n) {
                  return n();
                }));
            };
          },
    oy = i.unstable_scheduleCallback,
    uy = i.unstable_NormalPriority,
    Kt = {
      $$typeof: J,
      Consumer: null,
      Provider: null,
      _currentValue: null,
      _currentValue2: null,
      _threadCount: 0,
    };
  function us() {
    return { controller: new iy(), data: new Map(), refCount: 0 };
  }
  function li(t) {
    (t.refCount--,
      t.refCount === 0 &&
        oy(uy, function () {
          t.controller.abort();
        }));
  }
  var ai = null,
    ss = 0,
    ca = 0,
    fa = null;
  function sy(t, e) {
    if (ai === null) {
      var n = (ai = []);
      ((ss = 0),
        (ca = fr()),
        (fa = {
          status: "pending",
          value: void 0,
          then: function (l) {
            n.push(l);
          },
        }));
    }
    return (ss++, e.then(xf, xf), e);
  }
  function xf() {
    if (--ss === 0 && ai !== null) {
      fa !== null && (fa.status = "fulfilled");
      var t = ai;
      ((ai = null), (ca = 0), (fa = null));
      for (var e = 0; e < t.length; e++) (0, t[e])();
    }
  }
  function ry(t, e) {
    var n = [],
      l = {
        status: "pending",
        value: null,
        reason: null,
        then: function (a) {
          n.push(a);
        },
      };
    return (
      t.then(
        function () {
          ((l.status = "fulfilled"), (l.value = e));
          for (var a = 0; a < n.length; a++) (0, n[a])(e);
        },
        function (a) {
          for (l.status = "rejected", l.reason = a, a = 0; a < n.length; a++)
            (0, n[a])(void 0);
        }
      ),
      l
    );
  }
  var Sf = w.S;
  w.S = function (t, e) {
    ((am = he()),
      typeof e == "object" &&
        e !== null &&
        typeof e.then == "function" &&
        sy(t, e),
      Sf !== null && Sf(t, e));
  };
  var _l = b(null);
  function rs() {
    var t = _l.current;
    return t !== null ? t : Bt.pooledCache;
  }
  function uo(t, e) {
    e === null ? B(_l, _l.current) : B(_l, e.pool);
  }
  function Ef() {
    var t = rs();
    return t === null ? null : { parent: Kt._currentValue, pool: t };
  }
  var da = Error(s(460)),
    cs = Error(s(474)),
    so = Error(s(542)),
    ro = { then: function () {} };
  function Tf(t) {
    return ((t = t.status), t === "fulfilled" || t === "rejected");
  }
  function wf(t, e, n) {
    switch (
      ((n = t[n]),
      n === void 0 ? t.push(e) : n !== e && (e.then(yn, yn), (e = n)),
      e.status)
    ) {
      case "fulfilled":
        return e.value;
      case "rejected":
        throw ((t = e.reason), zf(t), t);
      default:
        if (typeof e.status == "string") e.then(yn, yn);
        else {
          if (((t = Bt), t !== null && 100 < t.shellSuspendCounter))
            throw Error(s(482));
          ((t = e),
            (t.status = "pending"),
            t.then(
              function (l) {
                if (e.status === "pending") {
                  var a = e;
                  ((a.status = "fulfilled"), (a.value = l));
                }
              },
              function (l) {
                if (e.status === "pending") {
                  var a = e;
                  ((a.status = "rejected"), (a.reason = l));
                }
              }
            ));
        }
        switch (e.status) {
          case "fulfilled":
            return e.value;
          case "rejected":
            throw ((t = e.reason), zf(t), t);
        }
        throw ((Rl = e), da);
    }
  }
  function Ml(t) {
    try {
      var e = t._init;
      return e(t._payload);
    } catch (n) {
      throw n !== null && typeof n == "object" && typeof n.then == "function"
        ? ((Rl = n), da)
        : n;
    }
  }
  var Rl = null;
  function Af() {
    if (Rl === null) throw Error(s(459));
    var t = Rl;
    return ((Rl = null), t);
  }
  function zf(t) {
    if (t === da || t === so) throw Error(s(483));
  }
  var ma = null,
    ii = 0;
  function co(t) {
    var e = ii;
    return ((ii += 1), ma === null && (ma = []), wf(ma, t, e));
  }
  function oi(t, e) {
    ((e = e.props.ref), (t.ref = e !== void 0 ? e : null));
  }
  function fo(t, e) {
    throw e.$$typeof === z
      ? Error(s(525))
      : ((t = Object.prototype.toString.call(e)),
        Error(
          s(
            31,
            t === "[object Object]"
              ? "object with keys {" + Object.keys(e).join(", ") + "}"
              : t
          )
        ));
  }
  function Of(t) {
    function e(A, T) {
      if (t) {
        var O = A.deletions;
        O === null ? ((A.deletions = [T]), (A.flags |= 16)) : O.push(T);
      }
    }
    function n(A, T) {
      if (!t) return null;
      for (; T !== null; ) (e(A, T), (T = T.sibling));
      return null;
    }
    function l(A) {
      for (var T = new Map(); A !== null; )
        (A.key !== null ? T.set(A.key, A) : T.set(A.index, A), (A = A.sibling));
      return T;
    }
    function a(A, T) {
      return ((A = bn(A, T)), (A.index = 0), (A.sibling = null), A);
    }
    function o(A, T, O) {
      return (
        (A.index = O),
        t
          ? ((O = A.alternate),
            O !== null
              ? ((O = O.index), O < T ? ((A.flags |= 67108866), T) : O)
              : ((A.flags |= 67108866), T))
          : ((A.flags |= 1048576), T)
      );
    }
    function c(A) {
      return (t && A.alternate === null && (A.flags |= 67108866), A);
    }
    function m(A, T, O, q) {
      return T === null || T.tag !== 6
        ? ((T = Pu(O, A.mode, q)), (T.return = A), T)
        : ((T = a(T, O)), (T.return = A), T);
    }
    function S(A, T, O, q) {
      var st = O.type;
      return st === Y
        ? L(A, T, O.props.children, q, O.key)
        : T !== null &&
            (T.elementType === st ||
              (typeof st == "object" &&
                st !== null &&
                st.$$typeof === Z &&
                Ml(st) === T.type))
          ? ((T = a(T, O.props)), oi(T, O), (T.return = A), T)
          : ((T = lo(O.type, O.key, O.props, null, A.mode, q)),
            oi(T, O),
            (T.return = A),
            T);
    }
    function N(A, T, O, q) {
      return T === null ||
        T.tag !== 4 ||
        T.stateNode.containerInfo !== O.containerInfo ||
        T.stateNode.implementation !== O.implementation
        ? ((T = Iu(O, A.mode, q)), (T.return = A), T)
        : ((T = a(T, O.children || [])), (T.return = A), T);
    }
    function L(A, T, O, q, st) {
      return T === null || T.tag !== 7
        ? ((T = zl(O, A.mode, q, st)), (T.return = A), T)
        : ((T = a(T, O)), (T.return = A), T);
    }
    function G(A, T, O) {
      if (
        (typeof T == "string" && T !== "") ||
        typeof T == "number" ||
        typeof T == "bigint"
      )
        return ((T = Pu("" + T, A.mode, O)), (T.return = A), T);
      if (typeof T == "object" && T !== null) {
        switch (T.$$typeof) {
          case _:
            return (
              (O = lo(T.type, T.key, T.props, null, A.mode, O)),
              oi(O, T),
              (O.return = A),
              O
            );
          case D:
            return ((T = Iu(T, A.mode, O)), (T.return = A), T);
          case Z:
            return ((T = Ml(T)), G(A, T, O));
        }
        if (yt(T) || ht(T))
          return ((T = zl(T, A.mode, O, null)), (T.return = A), T);
        if (typeof T.then == "function") return G(A, co(T), O);
        if (T.$$typeof === J) return G(A, oo(A, T), O);
        fo(A, T);
      }
      return null;
    }
    function M(A, T, O, q) {
      var st = T !== null ? T.key : null;
      if (
        (typeof O == "string" && O !== "") ||
        typeof O == "number" ||
        typeof O == "bigint"
      )
        return st !== null ? null : m(A, T, "" + O, q);
      if (typeof O == "object" && O !== null) {
        switch (O.$$typeof) {
          case _:
            return O.key === st ? S(A, T, O, q) : null;
          case D:
            return O.key === st ? N(A, T, O, q) : null;
          case Z:
            return ((O = Ml(O)), M(A, T, O, q));
        }
        if (yt(O) || ht(O)) return st !== null ? null : L(A, T, O, q, null);
        if (typeof O.then == "function") return M(A, T, co(O), q);
        if (O.$$typeof === J) return M(A, T, oo(A, O), q);
        fo(A, O);
      }
      return null;
    }
    function j(A, T, O, q, st) {
      if (
        (typeof q == "string" && q !== "") ||
        typeof q == "number" ||
        typeof q == "bigint"
      )
        return ((A = A.get(O) || null), m(T, A, "" + q, st));
      if (typeof q == "object" && q !== null) {
        switch (q.$$typeof) {
          case _:
            return (
              (A = A.get(q.key === null ? O : q.key) || null),
              S(T, A, q, st)
            );
          case D:
            return (
              (A = A.get(q.key === null ? O : q.key) || null),
              N(T, A, q, st)
            );
          case Z:
            return ((q = Ml(q)), j(A, T, O, q, st));
        }
        if (yt(q) || ht(q))
          return ((A = A.get(O) || null), L(T, A, q, st, null));
        if (typeof q.then == "function") return j(A, T, O, co(q), st);
        if (q.$$typeof === J) return j(A, T, O, oo(T, q), st);
        fo(T, q);
      }
      return null;
    }
    function I(A, T, O, q) {
      for (
        var st = null, Nt = null, at = T, bt = (T = 0), At = null;
        at !== null && bt < O.length;
        bt++
      ) {
        at.index > bt ? ((At = at), (at = null)) : (At = at.sibling);
        var _t = M(A, at, O[bt], q);
        if (_t === null) {
          at === null && (at = At);
          break;
        }
        (t && at && _t.alternate === null && e(A, at),
          (T = o(_t, T, bt)),
          Nt === null ? (st = _t) : (Nt.sibling = _t),
          (Nt = _t),
          (at = At));
      }
      if (bt === O.length) return (n(A, at), Ct && xn(A, bt), st);
      if (at === null) {
        for (; bt < O.length; bt++)
          ((at = G(A, O[bt], q)),
            at !== null &&
              ((T = o(at, T, bt)),
              Nt === null ? (st = at) : (Nt.sibling = at),
              (Nt = at)));
        return (Ct && xn(A, bt), st);
      }
      for (at = l(at); bt < O.length; bt++)
        ((At = j(at, A, bt, O[bt], q)),
          At !== null &&
            (t &&
              At.alternate !== null &&
              at.delete(At.key === null ? bt : At.key),
            (T = o(At, T, bt)),
            Nt === null ? (st = At) : (Nt.sibling = At),
            (Nt = At)));
      return (
        t &&
          at.forEach(function (cl) {
            return e(A, cl);
          }),
        Ct && xn(A, bt),
        st
      );
    }
    function rt(A, T, O, q) {
      if (O == null) throw Error(s(151));
      for (
        var st = null,
          Nt = null,
          at = T,
          bt = (T = 0),
          At = null,
          _t = O.next();
        at !== null && !_t.done;
        bt++, _t = O.next()
      ) {
        at.index > bt ? ((At = at), (at = null)) : (At = at.sibling);
        var cl = M(A, at, _t.value, q);
        if (cl === null) {
          at === null && (at = At);
          break;
        }
        (t && at && cl.alternate === null && e(A, at),
          (T = o(cl, T, bt)),
          Nt === null ? (st = cl) : (Nt.sibling = cl),
          (Nt = cl),
          (at = At));
      }
      if (_t.done) return (n(A, at), Ct && xn(A, bt), st);
      if (at === null) {
        for (; !_t.done; bt++, _t = O.next())
          ((_t = G(A, _t.value, q)),
            _t !== null &&
              ((T = o(_t, T, bt)),
              Nt === null ? (st = _t) : (Nt.sibling = _t),
              (Nt = _t)));
        return (Ct && xn(A, bt), st);
      }
      for (at = l(at); !_t.done; bt++, _t = O.next())
        ((_t = j(at, A, bt, _t.value, q)),
          _t !== null &&
            (t &&
              _t.alternate !== null &&
              at.delete(_t.key === null ? bt : _t.key),
            (T = o(_t, T, bt)),
            Nt === null ? (st = _t) : (Nt.sibling = _t),
            (Nt = _t)));
      return (
        t &&
          at.forEach(function (xv) {
            return e(A, xv);
          }),
        Ct && xn(A, bt),
        st
      );
    }
    function Ht(A, T, O, q) {
      if (
        (typeof O == "object" &&
          O !== null &&
          O.type === Y &&
          O.key === null &&
          (O = O.props.children),
        typeof O == "object" && O !== null)
      ) {
        switch (O.$$typeof) {
          case _:
            t: {
              for (var st = O.key; T !== null; ) {
                if (T.key === st) {
                  if (((st = O.type), st === Y)) {
                    if (T.tag === 7) {
                      (n(A, T.sibling),
                        (q = a(T, O.props.children)),
                        (q.return = A),
                        (A = q));
                      break t;
                    }
                  } else if (
                    T.elementType === st ||
                    (typeof st == "object" &&
                      st !== null &&
                      st.$$typeof === Z &&
                      Ml(st) === T.type)
                  ) {
                    (n(A, T.sibling),
                      (q = a(T, O.props)),
                      oi(q, O),
                      (q.return = A),
                      (A = q));
                    break t;
                  }
                  n(A, T);
                  break;
                } else e(A, T);
                T = T.sibling;
              }
              O.type === Y
                ? ((q = zl(O.props.children, A.mode, q, O.key)),
                  (q.return = A),
                  (A = q))
                : ((q = lo(O.type, O.key, O.props, null, A.mode, q)),
                  oi(q, O),
                  (q.return = A),
                  (A = q));
            }
            return c(A);
          case D:
            t: {
              for (st = O.key; T !== null; ) {
                if (T.key === st)
                  if (
                    T.tag === 4 &&
                    T.stateNode.containerInfo === O.containerInfo &&
                    T.stateNode.implementation === O.implementation
                  ) {
                    (n(A, T.sibling),
                      (q = a(T, O.children || [])),
                      (q.return = A),
                      (A = q));
                    break t;
                  } else {
                    n(A, T);
                    break;
                  }
                else e(A, T);
                T = T.sibling;
              }
              ((q = Iu(O, A.mode, q)), (q.return = A), (A = q));
            }
            return c(A);
          case Z:
            return ((O = Ml(O)), Ht(A, T, O, q));
        }
        if (yt(O)) return I(A, T, O, q);
        if (ht(O)) {
          if (((st = ht(O)), typeof st != "function")) throw Error(s(150));
          return ((O = st.call(O)), rt(A, T, O, q));
        }
        if (typeof O.then == "function") return Ht(A, T, co(O), q);
        if (O.$$typeof === J) return Ht(A, T, oo(A, O), q);
        fo(A, O);
      }
      return (typeof O == "string" && O !== "") ||
        typeof O == "number" ||
        typeof O == "bigint"
        ? ((O = "" + O),
          T !== null && T.tag === 6
            ? (n(A, T.sibling), (q = a(T, O)), (q.return = A), (A = q))
            : (n(A, T), (q = Pu(O, A.mode, q)), (q.return = A), (A = q)),
          c(A))
        : n(A, T);
    }
    return function (A, T, O, q) {
      try {
        ii = 0;
        var st = Ht(A, T, O, q);
        return ((ma = null), st);
      } catch (at) {
        if (at === da || at === so) throw at;
        var Nt = _e(29, at, null, A.mode);
        return ((Nt.lanes = q), (Nt.return = A), Nt);
      } finally {
      }
    };
  }
  var Dl = Of(!0),
    Cf = Of(!1),
    Kn = !1;
  function fs(t) {
    t.updateQueue = {
      baseState: t.memoizedState,
      firstBaseUpdate: null,
      lastBaseUpdate: null,
      shared: { pending: null, lanes: 0, hiddenCallbacks: null },
      callbacks: null,
    };
  }
  function ds(t, e) {
    ((t = t.updateQueue),
      e.updateQueue === t &&
        (e.updateQueue = {
          baseState: t.baseState,
          firstBaseUpdate: t.firstBaseUpdate,
          lastBaseUpdate: t.lastBaseUpdate,
          shared: t.shared,
          callbacks: null,
        }));
  }
  function Jn(t) {
    return { lane: t, tag: 0, payload: null, callback: null, next: null };
  }
  function $n(t, e, n) {
    var l = t.updateQueue;
    if (l === null) return null;
    if (((l = l.shared), (Mt & 2) !== 0)) {
      var a = l.pending;
      return (
        a === null ? (e.next = e) : ((e.next = a.next), (a.next = e)),
        (l.pending = e),
        (e = no(t)),
        ff(t, null, n),
        e
      );
    }
    return (eo(t, l, e, n), no(t));
  }
  function ui(t, e, n) {
    if (
      ((e = e.updateQueue), e !== null && ((e = e.shared), (n & 4194048) !== 0))
    ) {
      var l = e.lanes;
      ((l &= t.pendingLanes), (n |= l), (e.lanes = n), ve(t, n));
    }
  }
  function ms(t, e) {
    var n = t.updateQueue,
      l = t.alternate;
    if (l !== null && ((l = l.updateQueue), n === l)) {
      var a = null,
        o = null;
      if (((n = n.firstBaseUpdate), n !== null)) {
        do {
          var c = {
            lane: n.lane,
            tag: n.tag,
            payload: n.payload,
            callback: null,
            next: null,
          };
          (o === null ? (a = o = c) : (o = o.next = c), (n = n.next));
        } while (n !== null);
        o === null ? (a = o = e) : (o = o.next = e);
      } else a = o = e;
      ((n = {
        baseState: l.baseState,
        firstBaseUpdate: a,
        lastBaseUpdate: o,
        shared: l.shared,
        callbacks: l.callbacks,
      }),
        (t.updateQueue = n));
      return;
    }
    ((t = n.lastBaseUpdate),
      t === null ? (n.firstBaseUpdate = e) : (t.next = e),
      (n.lastBaseUpdate = e));
  }
  var hs = !1;
  function si() {
    if (hs) {
      var t = fa;
      if (t !== null) throw t;
    }
  }
  function ri(t, e, n, l) {
    hs = !1;
    var a = t.updateQueue;
    Kn = !1;
    var o = a.firstBaseUpdate,
      c = a.lastBaseUpdate,
      m = a.shared.pending;
    if (m !== null) {
      a.shared.pending = null;
      var S = m,
        N = S.next;
      ((S.next = null), c === null ? (o = N) : (c.next = N), (c = S));
      var L = t.alternate;
      L !== null &&
        ((L = L.updateQueue),
        (m = L.lastBaseUpdate),
        m !== c &&
          (m === null ? (L.firstBaseUpdate = N) : (m.next = N),
          (L.lastBaseUpdate = S)));
    }
    if (o !== null) {
      var G = a.baseState;
      ((c = 0), (L = N = S = null), (m = o));
      do {
        var M = m.lane & -536870913,
          j = M !== m.lane;
        if (j ? (wt & M) === M : (l & M) === M) {
          (M !== 0 && M === ca && (hs = !0),
            L !== null &&
              (L = L.next =
                {
                  lane: 0,
                  tag: m.tag,
                  payload: m.payload,
                  callback: null,
                  next: null,
                }));
          t: {
            var I = t,
              rt = m;
            M = e;
            var Ht = n;
            switch (rt.tag) {
              case 1:
                if (((I = rt.payload), typeof I == "function")) {
                  G = I.call(Ht, G, M);
                  break t;
                }
                G = I;
                break t;
              case 3:
                I.flags = (I.flags & -65537) | 128;
              case 0:
                if (
                  ((I = rt.payload),
                  (M = typeof I == "function" ? I.call(Ht, G, M) : I),
                  M == null)
                )
                  break t;
                G = h({}, G, M);
                break t;
              case 2:
                Kn = !0;
            }
          }
          ((M = m.callback),
            M !== null &&
              ((t.flags |= 64),
              j && (t.flags |= 8192),
              (j = a.callbacks),
              j === null ? (a.callbacks = [M]) : j.push(M)));
        } else
          ((j = {
            lane: M,
            tag: m.tag,
            payload: m.payload,
            callback: m.callback,
            next: null,
          }),
            L === null ? ((N = L = j), (S = G)) : (L = L.next = j),
            (c |= M));
        if (((m = m.next), m === null)) {
          if (((m = a.shared.pending), m === null)) break;
          ((j = m),
            (m = j.next),
            (j.next = null),
            (a.lastBaseUpdate = j),
            (a.shared.pending = null));
        }
      } while (!0);
      (L === null && (S = G),
        (a.baseState = S),
        (a.firstBaseUpdate = N),
        (a.lastBaseUpdate = L),
        o === null && (a.shared.lanes = 0),
        (tl |= c),
        (t.lanes = c),
        (t.memoizedState = G));
    }
  }
  function Nf(t, e) {
    if (typeof t != "function") throw Error(s(191, t));
    t.call(e);
  }
  function _f(t, e) {
    var n = t.callbacks;
    if (n !== null)
      for (t.callbacks = null, t = 0; t < n.length; t++) Nf(n[t], e);
  }
  var ha = b(null),
    mo = b(0);
  function Mf(t, e) {
    ((t = Mn), B(mo, t), B(ha, e), (Mn = t | e.baseLanes));
  }
  function gs() {
    (B(mo, Mn), B(ha, ha.current));
  }
  function ps() {
    ((Mn = mo.current), H(ha), H(mo));
  }
  var Me = b(null),
    Qe = null;
  function Wn(t) {
    var e = t.alternate;
    (B(Qt, Qt.current & 1),
      B(Me, t),
      Qe === null &&
        (e === null || ha.current !== null || e.memoizedState !== null) &&
        (Qe = t));
  }
  function ys(t) {
    (B(Qt, Qt.current), B(Me, t), Qe === null && (Qe = t));
  }
  function Rf(t) {
    t.tag === 22
      ? (B(Qt, Qt.current), B(Me, t), Qe === null && (Qe = t))
      : Fn();
  }
  function Fn() {
    (B(Qt, Qt.current), B(Me, Me.current));
  }
  function Re(t) {
    (H(Me), Qe === t && (Qe = null), H(Qt));
  }
  var Qt = b(0);
  function ho(t) {
    for (var e = t; e !== null; ) {
      if (e.tag === 13) {
        var n = e.memoizedState;
        if (n !== null && ((n = n.dehydrated), n === null || Tr(n) || wr(n)))
          return e;
      } else if (
        e.tag === 19 &&
        (e.memoizedProps.revealOrder === "forwards" ||
          e.memoizedProps.revealOrder === "backwards" ||
          e.memoizedProps.revealOrder === "unstable_legacy-backwards" ||
          e.memoizedProps.revealOrder === "together")
      ) {
        if ((e.flags & 128) !== 0) return e;
      } else if (e.child !== null) {
        ((e.child.return = e), (e = e.child));
        continue;
      }
      if (e === t) break;
      for (; e.sibling === null; ) {
        if (e.return === null || e.return === t) return null;
        e = e.return;
      }
      ((e.sibling.return = e.return), (e = e.sibling));
    }
    return null;
  }
  var Tn = 0,
    vt = null,
    jt = null,
    Jt = null,
    go = !1,
    ga = !1,
    jl = !1,
    po = 0,
    ci = 0,
    pa = null,
    cy = 0;
  function Xt() {
    throw Error(s(321));
  }
  function vs(t, e) {
    if (e === null) return !1;
    for (var n = 0; n < e.length && n < t.length; n++)
      if (!Ne(t[n], e[n])) return !1;
    return !0;
  }
  function bs(t, e, n, l, a, o) {
    return (
      (Tn = o),
      (vt = e),
      (e.memoizedState = null),
      (e.updateQueue = null),
      (e.lanes = 0),
      (w.H = t === null || t.memoizedState === null ? gd : js),
      (jl = !1),
      (o = n(l, a)),
      (jl = !1),
      ga && (o = jf(e, n, l, a)),
      Df(t),
      o
    );
  }
  function Df(t) {
    w.H = mi;
    var e = jt !== null && jt.next !== null;
    if (((Tn = 0), (Jt = jt = vt = null), (go = !1), (ci = 0), (pa = null), e))
      throw Error(s(300));
    t === null ||
      $t ||
      ((t = t.dependencies), t !== null && io(t) && ($t = !0));
  }
  function jf(t, e, n, l) {
    vt = t;
    var a = 0;
    do {
      if ((ga && (pa = null), (ci = 0), (ga = !1), 25 <= a))
        throw Error(s(301));
      if (((a += 1), (Jt = jt = null), t.updateQueue != null)) {
        var o = t.updateQueue;
        ((o.lastEffect = null),
          (o.events = null),
          (o.stores = null),
          o.memoCache != null && (o.memoCache.index = 0));
      }
      ((w.H = pd), (o = e(n, l)));
    } while (ga);
    return o;
  }
  function fy() {
    var t = w.H,
      e = t.useState()[0];
    return (
      (e = typeof e.then == "function" ? fi(e) : e),
      (t = t.useState()[0]),
      (jt !== null ? jt.memoizedState : null) !== t && (vt.flags |= 1024),
      e
    );
  }
  function xs() {
    var t = po !== 0;
    return ((po = 0), t);
  }
  function Ss(t, e, n) {
    ((e.updateQueue = t.updateQueue), (e.flags &= -2053), (t.lanes &= ~n));
  }
  function Es(t) {
    if (go) {
      for (t = t.memoizedState; t !== null; ) {
        var e = t.queue;
        (e !== null && (e.pending = null), (t = t.next));
      }
      go = !1;
    }
    ((Tn = 0), (Jt = jt = vt = null), (ga = !1), (ci = po = 0), (pa = null));
  }
  function pe() {
    var t = {
      memoizedState: null,
      baseState: null,
      baseQueue: null,
      queue: null,
      next: null,
    };
    return (Jt === null ? (vt.memoizedState = Jt = t) : (Jt = Jt.next = t), Jt);
  }
  function Zt() {
    if (jt === null) {
      var t = vt.alternate;
      t = t !== null ? t.memoizedState : null;
    } else t = jt.next;
    var e = Jt === null ? vt.memoizedState : Jt.next;
    if (e !== null) ((Jt = e), (jt = t));
    else {
      if (t === null)
        throw vt.alternate === null ? Error(s(467)) : Error(s(310));
      ((jt = t),
        (t = {
          memoizedState: jt.memoizedState,
          baseState: jt.baseState,
          baseQueue: jt.baseQueue,
          queue: jt.queue,
          next: null,
        }),
        Jt === null ? (vt.memoizedState = Jt = t) : (Jt = Jt.next = t));
    }
    return Jt;
  }
  function yo() {
    return { lastEffect: null, events: null, stores: null, memoCache: null };
  }
  function fi(t) {
    var e = ci;
    return (
      (ci += 1),
      pa === null && (pa = []),
      (t = wf(pa, t, e)),
      (e = vt),
      (Jt === null ? e.memoizedState : Jt.next) === null &&
        ((e = e.alternate),
        (w.H = e === null || e.memoizedState === null ? gd : js)),
      t
    );
  }
  function vo(t) {
    if (t !== null && typeof t == "object") {
      if (typeof t.then == "function") return fi(t);
      if (t.$$typeof === J) return oe(t);
    }
    throw Error(s(438, String(t)));
  }
  function Ts(t) {
    var e = null,
      n = vt.updateQueue;
    if ((n !== null && (e = n.memoCache), e == null)) {
      var l = vt.alternate;
      l !== null &&
        ((l = l.updateQueue),
        l !== null &&
          ((l = l.memoCache),
          l != null &&
            (e = {
              data: l.data.map(function (a) {
                return a.slice();
              }),
              index: 0,
            })));
    }
    if (
      (e == null && (e = { data: [], index: 0 }),
      n === null && ((n = yo()), (vt.updateQueue = n)),
      (n.memoCache = e),
      (n = e.data[e.index]),
      n === void 0)
    )
      for (n = e.data[e.index] = Array(t), l = 0; l < t; l++) n[l] = xt;
    return (e.index++, n);
  }
  function wn(t, e) {
    return typeof e == "function" ? e(t) : e;
  }
  function bo(t) {
    var e = Zt();
    return ws(e, jt, t);
  }
  function ws(t, e, n) {
    var l = t.queue;
    if (l === null) throw Error(s(311));
    l.lastRenderedReducer = n;
    var a = t.baseQueue,
      o = l.pending;
    if (o !== null) {
      if (a !== null) {
        var c = a.next;
        ((a.next = o.next), (o.next = c));
      }
      ((e.baseQueue = a = o), (l.pending = null));
    }
    if (((o = t.baseState), a === null)) t.memoizedState = o;
    else {
      e = a.next;
      var m = (c = null),
        S = null,
        N = e,
        L = !1;
      do {
        var G = N.lane & -536870913;
        if (G !== N.lane ? (wt & G) === G : (Tn & G) === G) {
          var M = N.revertLane;
          if (M === 0)
            (S !== null &&
              (S = S.next =
                {
                  lane: 0,
                  revertLane: 0,
                  gesture: null,
                  action: N.action,
                  hasEagerState: N.hasEagerState,
                  eagerState: N.eagerState,
                  next: null,
                }),
              G === ca && (L = !0));
          else if ((Tn & M) === M) {
            ((N = N.next), M === ca && (L = !0));
            continue;
          } else
            ((G = {
              lane: 0,
              revertLane: N.revertLane,
              gesture: null,
              action: N.action,
              hasEagerState: N.hasEagerState,
              eagerState: N.eagerState,
              next: null,
            }),
              S === null ? ((m = S = G), (c = o)) : (S = S.next = G),
              (vt.lanes |= M),
              (tl |= M));
          ((G = N.action),
            jl && n(o, G),
            (o = N.hasEagerState ? N.eagerState : n(o, G)));
        } else
          ((M = {
            lane: G,
            revertLane: N.revertLane,
            gesture: N.gesture,
            action: N.action,
            hasEagerState: N.hasEagerState,
            eagerState: N.eagerState,
            next: null,
          }),
            S === null ? ((m = S = M), (c = o)) : (S = S.next = M),
            (vt.lanes |= G),
            (tl |= G));
        N = N.next;
      } while (N !== null && N !== e);
      if (
        (S === null ? (c = o) : (S.next = m),
        !Ne(o, t.memoizedState) && (($t = !0), L && ((n = fa), n !== null)))
      )
        throw n;
      ((t.memoizedState = o),
        (t.baseState = c),
        (t.baseQueue = S),
        (l.lastRenderedState = o));
    }
    return (a === null && (l.lanes = 0), [t.memoizedState, l.dispatch]);
  }
  function As(t) {
    var e = Zt(),
      n = e.queue;
    if (n === null) throw Error(s(311));
    n.lastRenderedReducer = t;
    var l = n.dispatch,
      a = n.pending,
      o = e.memoizedState;
    if (a !== null) {
      n.pending = null;
      var c = (a = a.next);
      do ((o = t(o, c.action)), (c = c.next));
      while (c !== a);
      (Ne(o, e.memoizedState) || ($t = !0),
        (e.memoizedState = o),
        e.baseQueue === null && (e.baseState = o),
        (n.lastRenderedState = o));
    }
    return [o, l];
  }
  function Uf(t, e, n) {
    var l = vt,
      a = Zt(),
      o = Ct;
    if (o) {
      if (n === void 0) throw Error(s(407));
      n = n();
    } else n = e();
    var c = !Ne((jt || a).memoizedState, n);
    if (
      (c && ((a.memoizedState = n), ($t = !0)),
      (a = a.queue),
      Cs(Lf.bind(null, l, a, t), [t]),
      a.getSnapshot !== e || c || (Jt !== null && Jt.memoizedState.tag & 1))
    ) {
      if (
        ((l.flags |= 2048),
        ya(9, { destroy: void 0 }, Bf.bind(null, l, a, n, e), null),
        Bt === null)
      )
        throw Error(s(349));
      o || (Tn & 127) !== 0 || Hf(l, e, n);
    }
    return n;
  }
  function Hf(t, e, n) {
    ((t.flags |= 16384),
      (t = { getSnapshot: e, value: n }),
      (e = vt.updateQueue),
      e === null
        ? ((e = yo()), (vt.updateQueue = e), (e.stores = [t]))
        : ((n = e.stores), n === null ? (e.stores = [t]) : n.push(t)));
  }
  function Bf(t, e, n, l) {
    ((e.value = n), (e.getSnapshot = l), Yf(e) && qf(t));
  }
  function Lf(t, e, n) {
    return n(function () {
      Yf(e) && qf(t);
    });
  }
  function Yf(t) {
    var e = t.getSnapshot;
    t = t.value;
    try {
      var n = e();
      return !Ne(t, n);
    } catch {
      return !0;
    }
  }
  function qf(t) {
    var e = Al(t, 2);
    e !== null && ze(e, t, 2);
  }
  function zs(t) {
    var e = pe();
    if (typeof t == "function") {
      var n = t;
      if (((t = n()), jl)) {
        $e(!0);
        try {
          n();
        } finally {
          $e(!1);
        }
      }
    }
    return (
      (e.memoizedState = e.baseState = t),
      (e.queue = {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: wn,
        lastRenderedState: t,
      }),
      e
    );
  }
  function Gf(t, e, n, l) {
    return ((t.baseState = n), ws(t, jt, typeof l == "function" ? l : wn));
  }
  function dy(t, e, n, l, a) {
    if (Eo(t)) throw Error(s(485));
    if (((t = e.action), t !== null)) {
      var o = {
        payload: a,
        action: t,
        next: null,
        isTransition: !0,
        status: "pending",
        value: null,
        reason: null,
        listeners: [],
        then: function (c) {
          o.listeners.push(c);
        },
      };
      (w.T !== null ? n(!0) : (o.isTransition = !1),
        l(o),
        (n = e.pending),
        n === null
          ? ((o.next = e.pending = o), Vf(e, o))
          : ((o.next = n.next), (e.pending = n.next = o)));
    }
  }
  function Vf(t, e) {
    var n = e.action,
      l = e.payload,
      a = t.state;
    if (e.isTransition) {
      var o = w.T,
        c = {};
      w.T = c;
      try {
        var m = n(a, l),
          S = w.S;
        (S !== null && S(c, m), Xf(t, e, m));
      } catch (N) {
        Os(t, e, N);
      } finally {
        (o !== null && c.types !== null && (o.types = c.types), (w.T = o));
      }
    } else
      try {
        ((o = n(a, l)), Xf(t, e, o));
      } catch (N) {
        Os(t, e, N);
      }
  }
  function Xf(t, e, n) {
    n !== null && typeof n == "object" && typeof n.then == "function"
      ? n.then(
          function (l) {
            kf(t, e, l);
          },
          function (l) {
            return Os(t, e, l);
          }
        )
      : kf(t, e, n);
  }
  function kf(t, e, n) {
    ((e.status = "fulfilled"),
      (e.value = n),
      Qf(e),
      (t.state = n),
      (e = t.pending),
      e !== null &&
        ((n = e.next),
        n === e ? (t.pending = null) : ((n = n.next), (e.next = n), Vf(t, n))));
  }
  function Os(t, e, n) {
    var l = t.pending;
    if (((t.pending = null), l !== null)) {
      l = l.next;
      do ((e.status = "rejected"), (e.reason = n), Qf(e), (e = e.next));
      while (e !== l);
    }
    t.action = null;
  }
  function Qf(t) {
    t = t.listeners;
    for (var e = 0; e < t.length; e++) (0, t[e])();
  }
  function Zf(t, e) {
    return e;
  }
  function Kf(t, e) {
    if (Ct) {
      var n = Bt.formState;
      if (n !== null) {
        t: {
          var l = vt;
          if (Ct) {
            if (Lt) {
              e: {
                for (var a = Lt, o = ke; a.nodeType !== 8; ) {
                  if (!o) {
                    a = null;
                    break e;
                  }
                  if (((a = Ze(a.nextSibling)), a === null)) {
                    a = null;
                    break e;
                  }
                }
                ((o = a.data), (a = o === "F!" || o === "F" ? a : null));
              }
              if (a) {
                ((Lt = Ze(a.nextSibling)), (l = a.data === "F!"));
                break t;
              }
            }
            Qn(l);
          }
          l = !1;
        }
        l && (e = n[0]);
      }
    }
    return (
      (n = pe()),
      (n.memoizedState = n.baseState = e),
      (l = {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: Zf,
        lastRenderedState: e,
      }),
      (n.queue = l),
      (n = dd.bind(null, vt, l)),
      (l.dispatch = n),
      (l = zs(!1)),
      (o = Ds.bind(null, vt, !1, l.queue)),
      (l = pe()),
      (a = { state: e, dispatch: null, action: t, pending: null }),
      (l.queue = a),
      (n = dy.bind(null, vt, a, o, n)),
      (a.dispatch = n),
      (l.memoizedState = t),
      [e, n, !1]
    );
  }
  function Jf(t) {
    var e = Zt();
    return $f(e, jt, t);
  }
  function $f(t, e, n) {
    if (
      ((e = ws(t, e, Zf)[0]),
      (t = bo(wn)[0]),
      typeof e == "object" && e !== null && typeof e.then == "function")
    )
      try {
        var l = fi(e);
      } catch (c) {
        throw c === da ? so : c;
      }
    else l = e;
    e = Zt();
    var a = e.queue,
      o = a.dispatch;
    return (
      n !== e.memoizedState &&
        ((vt.flags |= 2048),
        ya(9, { destroy: void 0 }, my.bind(null, a, n), null)),
      [l, o, t]
    );
  }
  function my(t, e) {
    t.action = e;
  }
  function Wf(t) {
    var e = Zt(),
      n = jt;
    if (n !== null) return $f(e, n, t);
    (Zt(), (e = e.memoizedState), (n = Zt()));
    var l = n.queue.dispatch;
    return ((n.memoizedState = t), [e, l, !1]);
  }
  function ya(t, e, n, l) {
    return (
      (t = { tag: t, create: n, deps: l, inst: e, next: null }),
      (e = vt.updateQueue),
      e === null && ((e = yo()), (vt.updateQueue = e)),
      (n = e.lastEffect),
      n === null
        ? (e.lastEffect = t.next = t)
        : ((l = n.next), (n.next = t), (t.next = l), (e.lastEffect = t)),
      t
    );
  }
  function Ff() {
    return Zt().memoizedState;
  }
  function xo(t, e, n, l) {
    var a = pe();
    ((vt.flags |= t),
      (a.memoizedState = ya(
        1 | e,
        { destroy: void 0 },
        n,
        l === void 0 ? null : l
      )));
  }
  function So(t, e, n, l) {
    var a = Zt();
    l = l === void 0 ? null : l;
    var o = a.memoizedState.inst;
    jt !== null && l !== null && vs(l, jt.memoizedState.deps)
      ? (a.memoizedState = ya(e, o, n, l))
      : ((vt.flags |= t), (a.memoizedState = ya(1 | e, o, n, l)));
  }
  function Pf(t, e) {
    xo(8390656, 8, t, e);
  }
  function Cs(t, e) {
    So(2048, 8, t, e);
  }
  function hy(t) {
    vt.flags |= 4;
    var e = vt.updateQueue;
    if (e === null) ((e = yo()), (vt.updateQueue = e), (e.events = [t]));
    else {
      var n = e.events;
      n === null ? (e.events = [t]) : n.push(t);
    }
  }
  function If(t) {
    var e = Zt().memoizedState;
    return (
      hy({ ref: e, nextImpl: t }),
      function () {
        if ((Mt & 2) !== 0) throw Error(s(440));
        return e.impl.apply(void 0, arguments);
      }
    );
  }
  function td(t, e) {
    return So(4, 2, t, e);
  }
  function ed(t, e) {
    return So(4, 4, t, e);
  }
  function nd(t, e) {
    if (typeof e == "function") {
      t = t();
      var n = e(t);
      return function () {
        typeof n == "function" ? n() : e(null);
      };
    }
    if (e != null)
      return (
        (t = t()),
        (e.current = t),
        function () {
          e.current = null;
        }
      );
  }
  function ld(t, e, n) {
    ((n = n != null ? n.concat([t]) : null), So(4, 4, nd.bind(null, e, t), n));
  }
  function Ns() {}
  function ad(t, e) {
    var n = Zt();
    e = e === void 0 ? null : e;
    var l = n.memoizedState;
    return e !== null && vs(e, l[1]) ? l[0] : ((n.memoizedState = [t, e]), t);
  }
  function id(t, e) {
    var n = Zt();
    e = e === void 0 ? null : e;
    var l = n.memoizedState;
    if (e !== null && vs(e, l[1])) return l[0];
    if (((l = t()), jl)) {
      $e(!0);
      try {
        t();
      } finally {
        $e(!1);
      }
    }
    return ((n.memoizedState = [l, e]), l);
  }
  function _s(t, e, n) {
    return n === void 0 || ((Tn & 1073741824) !== 0 && (wt & 261930) === 0)
      ? (t.memoizedState = e)
      : ((t.memoizedState = n), (t = om()), (vt.lanes |= t), (tl |= t), n);
  }
  function od(t, e, n, l) {
    return Ne(n, e)
      ? n
      : ha.current !== null
        ? ((t = _s(t, n, l)), Ne(t, e) || ($t = !0), t)
        : (Tn & 42) === 0 || ((Tn & 1073741824) !== 0 && (wt & 261930) === 0)
          ? (($t = !0), (t.memoizedState = n))
          : ((t = om()), (vt.lanes |= t), (tl |= t), e);
  }
  function ud(t, e, n, l, a) {
    var o = U.p;
    U.p = o !== 0 && 8 > o ? o : 8;
    var c = w.T,
      m = {};
    ((w.T = m), Ds(t, !1, e, n));
    try {
      var S = a(),
        N = w.S;
      if (
        (N !== null && N(m, S),
        S !== null && typeof S == "object" && typeof S.then == "function")
      ) {
        var L = ry(S, l);
        di(t, e, L, Ue(t));
      } else di(t, e, l, Ue(t));
    } catch (G) {
      di(t, e, { then: function () {}, status: "rejected", reason: G }, Ue());
    } finally {
      ((U.p = o),
        c !== null && m.types !== null && (c.types = m.types),
        (w.T = c));
    }
  }
  function gy() {}
  function Ms(t, e, n, l) {
    if (t.tag !== 5) throw Error(s(476));
    var a = sd(t).queue;
    ud(
      t,
      a,
      e,
      R,
      n === null
        ? gy
        : function () {
            return (rd(t), n(l));
          }
    );
  }
  function sd(t) {
    var e = t.memoizedState;
    if (e !== null) return e;
    e = {
      memoizedState: R,
      baseState: R,
      baseQueue: null,
      queue: {
        pending: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: wn,
        lastRenderedState: R,
      },
      next: null,
    };
    var n = {};
    return (
      (e.next = {
        memoizedState: n,
        baseState: n,
        baseQueue: null,
        queue: {
          pending: null,
          lanes: 0,
          dispatch: null,
          lastRenderedReducer: wn,
          lastRenderedState: n,
        },
        next: null,
      }),
      (t.memoizedState = e),
      (t = t.alternate),
      t !== null && (t.memoizedState = e),
      e
    );
  }
  function rd(t) {
    var e = sd(t);
    (e.next === null && (e = t.alternate.memoizedState),
      di(t, e.next.queue, {}, Ue()));
  }
  function Rs() {
    return oe(Ni);
  }
  function cd() {
    return Zt().memoizedState;
  }
  function fd() {
    return Zt().memoizedState;
  }
  function py(t) {
    for (var e = t.return; e !== null; ) {
      switch (e.tag) {
        case 24:
        case 3:
          var n = Ue();
          t = Jn(n);
          var l = $n(e, t, n);
          (l !== null && (ze(l, e, n), ui(l, e, n)),
            (e = { cache: us() }),
            (t.payload = e));
          return;
      }
      e = e.return;
    }
  }
  function yy(t, e, n) {
    var l = Ue();
    ((n = {
      lane: l,
      revertLane: 0,
      gesture: null,
      action: n,
      hasEagerState: !1,
      eagerState: null,
      next: null,
    }),
      Eo(t)
        ? md(e, n)
        : ((n = Wu(t, e, n, l)), n !== null && (ze(n, t, l), hd(n, e, l))));
  }
  function dd(t, e, n) {
    var l = Ue();
    di(t, e, n, l);
  }
  function di(t, e, n, l) {
    var a = {
      lane: l,
      revertLane: 0,
      gesture: null,
      action: n,
      hasEagerState: !1,
      eagerState: null,
      next: null,
    };
    if (Eo(t)) md(e, a);
    else {
      var o = t.alternate;
      if (
        t.lanes === 0 &&
        (o === null || o.lanes === 0) &&
        ((o = e.lastRenderedReducer), o !== null)
      )
        try {
          var c = e.lastRenderedState,
            m = o(c, n);
          if (((a.hasEagerState = !0), (a.eagerState = m), Ne(m, c)))
            return (eo(t, e, a, 0), Bt === null && to(), !1);
        } catch {
        } finally {
        }
      if (((n = Wu(t, e, a, l)), n !== null))
        return (ze(n, t, l), hd(n, e, l), !0);
    }
    return !1;
  }
  function Ds(t, e, n, l) {
    if (
      ((l = {
        lane: 2,
        revertLane: fr(),
        gesture: null,
        action: l,
        hasEagerState: !1,
        eagerState: null,
        next: null,
      }),
      Eo(t))
    ) {
      if (e) throw Error(s(479));
    } else ((e = Wu(t, n, l, 2)), e !== null && ze(e, t, 2));
  }
  function Eo(t) {
    var e = t.alternate;
    return t === vt || (e !== null && e === vt);
  }
  function md(t, e) {
    ga = go = !0;
    var n = t.pending;
    (n === null ? (e.next = e) : ((e.next = n.next), (n.next = e)),
      (t.pending = e));
  }
  function hd(t, e, n) {
    if ((n & 4194048) !== 0) {
      var l = e.lanes;
      ((l &= t.pendingLanes), (n |= l), (e.lanes = n), ve(t, n));
    }
  }
  var mi = {
    readContext: oe,
    use: vo,
    useCallback: Xt,
    useContext: Xt,
    useEffect: Xt,
    useImperativeHandle: Xt,
    useLayoutEffect: Xt,
    useInsertionEffect: Xt,
    useMemo: Xt,
    useReducer: Xt,
    useRef: Xt,
    useState: Xt,
    useDebugValue: Xt,
    useDeferredValue: Xt,
    useTransition: Xt,
    useSyncExternalStore: Xt,
    useId: Xt,
    useHostTransitionStatus: Xt,
    useFormState: Xt,
    useActionState: Xt,
    useOptimistic: Xt,
    useMemoCache: Xt,
    useCacheRefresh: Xt,
  };
  mi.useEffectEvent = Xt;
  var gd = {
      readContext: oe,
      use: vo,
      useCallback: function (t, e) {
        return ((pe().memoizedState = [t, e === void 0 ? null : e]), t);
      },
      useContext: oe,
      useEffect: Pf,
      useImperativeHandle: function (t, e, n) {
        ((n = n != null ? n.concat([t]) : null),
          xo(4194308, 4, nd.bind(null, e, t), n));
      },
      useLayoutEffect: function (t, e) {
        return xo(4194308, 4, t, e);
      },
      useInsertionEffect: function (t, e) {
        xo(4, 2, t, e);
      },
      useMemo: function (t, e) {
        var n = pe();
        e = e === void 0 ? null : e;
        var l = t();
        if (jl) {
          $e(!0);
          try {
            t();
          } finally {
            $e(!1);
          }
        }
        return ((n.memoizedState = [l, e]), l);
      },
      useReducer: function (t, e, n) {
        var l = pe();
        if (n !== void 0) {
          var a = n(e);
          if (jl) {
            $e(!0);
            try {
              n(e);
            } finally {
              $e(!1);
            }
          }
        } else a = e;
        return (
          (l.memoizedState = l.baseState = a),
          (t = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: t,
            lastRenderedState: a,
          }),
          (l.queue = t),
          (t = t.dispatch = yy.bind(null, vt, t)),
          [l.memoizedState, t]
        );
      },
      useRef: function (t) {
        var e = pe();
        return ((t = { current: t }), (e.memoizedState = t));
      },
      useState: function (t) {
        t = zs(t);
        var e = t.queue,
          n = dd.bind(null, vt, e);
        return ((e.dispatch = n), [t.memoizedState, n]);
      },
      useDebugValue: Ns,
      useDeferredValue: function (t, e) {
        var n = pe();
        return _s(n, t, e);
      },
      useTransition: function () {
        var t = zs(!1);
        return (
          (t = ud.bind(null, vt, t.queue, !0, !1)),
          (pe().memoizedState = t),
          [!1, t]
        );
      },
      useSyncExternalStore: function (t, e, n) {
        var l = vt,
          a = pe();
        if (Ct) {
          if (n === void 0) throw Error(s(407));
          n = n();
        } else {
          if (((n = e()), Bt === null)) throw Error(s(349));
          (wt & 127) !== 0 || Hf(l, e, n);
        }
        a.memoizedState = n;
        var o = { value: n, getSnapshot: e };
        return (
          (a.queue = o),
          Pf(Lf.bind(null, l, o, t), [t]),
          (l.flags |= 2048),
          ya(9, { destroy: void 0 }, Bf.bind(null, l, o, n, e), null),
          n
        );
      },
      useId: function () {
        var t = pe(),
          e = Bt.identifierPrefix;
        if (Ct) {
          var n = on,
            l = an;
          ((n = (l & ~(1 << (32 - re(l) - 1))).toString(32) + n),
            (e = "_" + e + "R_" + n),
            (n = po++),
            0 < n && (e += "H" + n.toString(32)),
            (e += "_"));
        } else ((n = cy++), (e = "_" + e + "r_" + n.toString(32) + "_"));
        return (t.memoizedState = e);
      },
      useHostTransitionStatus: Rs,
      useFormState: Kf,
      useActionState: Kf,
      useOptimistic: function (t) {
        var e = pe();
        e.memoizedState = e.baseState = t;
        var n = {
          pending: null,
          lanes: 0,
          dispatch: null,
          lastRenderedReducer: null,
          lastRenderedState: null,
        };
        return (
          (e.queue = n),
          (e = Ds.bind(null, vt, !0, n)),
          (n.dispatch = e),
          [t, e]
        );
      },
      useMemoCache: Ts,
      useCacheRefresh: function () {
        return (pe().memoizedState = py.bind(null, vt));
      },
      useEffectEvent: function (t) {
        var e = pe(),
          n = { impl: t };
        return (
          (e.memoizedState = n),
          function () {
            if ((Mt & 2) !== 0) throw Error(s(440));
            return n.impl.apply(void 0, arguments);
          }
        );
      },
    },
    js = {
      readContext: oe,
      use: vo,
      useCallback: ad,
      useContext: oe,
      useEffect: Cs,
      useImperativeHandle: ld,
      useInsertionEffect: td,
      useLayoutEffect: ed,
      useMemo: id,
      useReducer: bo,
      useRef: Ff,
      useState: function () {
        return bo(wn);
      },
      useDebugValue: Ns,
      useDeferredValue: function (t, e) {
        var n = Zt();
        return od(n, jt.memoizedState, t, e);
      },
      useTransition: function () {
        var t = bo(wn)[0],
          e = Zt().memoizedState;
        return [typeof t == "boolean" ? t : fi(t), e];
      },
      useSyncExternalStore: Uf,
      useId: cd,
      useHostTransitionStatus: Rs,
      useFormState: Jf,
      useActionState: Jf,
      useOptimistic: function (t, e) {
        var n = Zt();
        return Gf(n, jt, t, e);
      },
      useMemoCache: Ts,
      useCacheRefresh: fd,
    };
  js.useEffectEvent = If;
  var pd = {
    readContext: oe,
    use: vo,
    useCallback: ad,
    useContext: oe,
    useEffect: Cs,
    useImperativeHandle: ld,
    useInsertionEffect: td,
    useLayoutEffect: ed,
    useMemo: id,
    useReducer: As,
    useRef: Ff,
    useState: function () {
      return As(wn);
    },
    useDebugValue: Ns,
    useDeferredValue: function (t, e) {
      var n = Zt();
      return jt === null ? _s(n, t, e) : od(n, jt.memoizedState, t, e);
    },
    useTransition: function () {
      var t = As(wn)[0],
        e = Zt().memoizedState;
      return [typeof t == "boolean" ? t : fi(t), e];
    },
    useSyncExternalStore: Uf,
    useId: cd,
    useHostTransitionStatus: Rs,
    useFormState: Wf,
    useActionState: Wf,
    useOptimistic: function (t, e) {
      var n = Zt();
      return jt !== null
        ? Gf(n, jt, t, e)
        : ((n.baseState = t), [t, n.queue.dispatch]);
    },
    useMemoCache: Ts,
    useCacheRefresh: fd,
  };
  pd.useEffectEvent = If;
  function Us(t, e, n, l) {
    ((e = t.memoizedState),
      (n = n(l, e)),
      (n = n == null ? e : h({}, e, n)),
      (t.memoizedState = n),
      t.lanes === 0 && (t.updateQueue.baseState = n));
  }
  var Hs = {
    enqueueSetState: function (t, e, n) {
      t = t._reactInternals;
      var l = Ue(),
        a = Jn(l);
      ((a.payload = e),
        n != null && (a.callback = n),
        (e = $n(t, a, l)),
        e !== null && (ze(e, t, l), ui(e, t, l)));
    },
    enqueueReplaceState: function (t, e, n) {
      t = t._reactInternals;
      var l = Ue(),
        a = Jn(l);
      ((a.tag = 1),
        (a.payload = e),
        n != null && (a.callback = n),
        (e = $n(t, a, l)),
        e !== null && (ze(e, t, l), ui(e, t, l)));
    },
    enqueueForceUpdate: function (t, e) {
      t = t._reactInternals;
      var n = Ue(),
        l = Jn(n);
      ((l.tag = 2),
        e != null && (l.callback = e),
        (e = $n(t, l, n)),
        e !== null && (ze(e, t, n), ui(e, t, n)));
    },
  };
  function yd(t, e, n, l, a, o, c) {
    return (
      (t = t.stateNode),
      typeof t.shouldComponentUpdate == "function"
        ? t.shouldComponentUpdate(l, o, c)
        : e.prototype && e.prototype.isPureReactComponent
          ? !Ia(n, l) || !Ia(a, o)
          : !0
    );
  }
  function vd(t, e, n, l) {
    ((t = e.state),
      typeof e.componentWillReceiveProps == "function" &&
        e.componentWillReceiveProps(n, l),
      typeof e.UNSAFE_componentWillReceiveProps == "function" &&
        e.UNSAFE_componentWillReceiveProps(n, l),
      e.state !== t && Hs.enqueueReplaceState(e, e.state, null));
  }
  function Ul(t, e) {
    var n = e;
    if ("ref" in e) {
      n = {};
      for (var l in e) l !== "ref" && (n[l] = e[l]);
    }
    if ((t = t.defaultProps)) {
      n === e && (n = h({}, n));
      for (var a in t) n[a] === void 0 && (n[a] = t[a]);
    }
    return n;
  }
  function bd(t) {
    Ii(t);
  }
  function xd(t) {
    console.error(t);
  }
  function Sd(t) {
    Ii(t);
  }
  function To(t, e) {
    try {
      var n = t.onUncaughtError;
      n(e.value, { componentStack: e.stack });
    } catch (l) {
      setTimeout(function () {
        throw l;
      });
    }
  }
  function Ed(t, e, n) {
    try {
      var l = t.onCaughtError;
      l(n.value, {
        componentStack: n.stack,
        errorBoundary: e.tag === 1 ? e.stateNode : null,
      });
    } catch (a) {
      setTimeout(function () {
        throw a;
      });
    }
  }
  function Bs(t, e, n) {
    return (
      (n = Jn(n)),
      (n.tag = 3),
      (n.payload = { element: null }),
      (n.callback = function () {
        To(t, e);
      }),
      n
    );
  }
  function Td(t) {
    return ((t = Jn(t)), (t.tag = 3), t);
  }
  function wd(t, e, n, l) {
    var a = n.type.getDerivedStateFromError;
    if (typeof a == "function") {
      var o = l.value;
      ((t.payload = function () {
        return a(o);
      }),
        (t.callback = function () {
          Ed(e, n, l);
        }));
    }
    var c = n.stateNode;
    c !== null &&
      typeof c.componentDidCatch == "function" &&
      (t.callback = function () {
        (Ed(e, n, l),
          typeof a != "function" &&
            (el === null ? (el = new Set([this])) : el.add(this)));
        var m = l.stack;
        this.componentDidCatch(l.value, {
          componentStack: m !== null ? m : "",
        });
      });
  }
  function vy(t, e, n, l, a) {
    if (
      ((n.flags |= 32768),
      l !== null && typeof l == "object" && typeof l.then == "function")
    ) {
      if (
        ((e = n.alternate),
        e !== null && ra(e, n, a, !0),
        (n = Me.current),
        n !== null)
      ) {
        switch (n.tag) {
          case 31:
          case 13:
            return (
              Qe === null ? Uo() : n.alternate === null && kt === 0 && (kt = 3),
              (n.flags &= -257),
              (n.flags |= 65536),
              (n.lanes = a),
              l === ro
                ? (n.flags |= 16384)
                : ((e = n.updateQueue),
                  e === null ? (n.updateQueue = new Set([l])) : e.add(l),
                  sr(t, l, a)),
              !1
            );
          case 22:
            return (
              (n.flags |= 65536),
              l === ro
                ? (n.flags |= 16384)
                : ((e = n.updateQueue),
                  e === null
                    ? ((e = {
                        transitions: null,
                        markerInstances: null,
                        retryQueue: new Set([l]),
                      }),
                      (n.updateQueue = e))
                    : ((n = e.retryQueue),
                      n === null ? (e.retryQueue = new Set([l])) : n.add(l)),
                  sr(t, l, a)),
              !1
            );
        }
        throw Error(s(435, n.tag));
      }
      return (sr(t, l, a), Uo(), !1);
    }
    if (Ct)
      return (
        (e = Me.current),
        e !== null
          ? ((e.flags & 65536) === 0 && (e.flags |= 256),
            (e.flags |= 65536),
            (e.lanes = a),
            l !== ns && ((t = Error(s(422), { cause: l })), ni(Ge(t, n))))
          : (l !== ns && ((e = Error(s(423), { cause: l })), ni(Ge(e, n))),
            (t = t.current.alternate),
            (t.flags |= 65536),
            (a &= -a),
            (t.lanes |= a),
            (l = Ge(l, n)),
            (a = Bs(t.stateNode, l, a)),
            ms(t, a),
            kt !== 4 && (kt = 2)),
        !1
      );
    var o = Error(s(520), { cause: l });
    if (
      ((o = Ge(o, n)),
      Si === null ? (Si = [o]) : Si.push(o),
      kt !== 4 && (kt = 2),
      e === null)
    )
      return !0;
    ((l = Ge(l, n)), (n = e));
    do {
      switch (n.tag) {
        case 3:
          return (
            (n.flags |= 65536),
            (t = a & -a),
            (n.lanes |= t),
            (t = Bs(n.stateNode, l, t)),
            ms(n, t),
            !1
          );
        case 1:
          if (
            ((e = n.type),
            (o = n.stateNode),
            (n.flags & 128) === 0 &&
              (typeof e.getDerivedStateFromError == "function" ||
                (o !== null &&
                  typeof o.componentDidCatch == "function" &&
                  (el === null || !el.has(o)))))
          )
            return (
              (n.flags |= 65536),
              (a &= -a),
              (n.lanes |= a),
              (a = Td(a)),
              wd(a, t, n, l),
              ms(n, a),
              !1
            );
      }
      n = n.return;
    } while (n !== null);
    return !1;
  }
  var Ls = Error(s(461)),
    $t = !1;
  function ue(t, e, n, l) {
    e.child = t === null ? Cf(e, null, n, l) : Dl(e, t.child, n, l);
  }
  function Ad(t, e, n, l, a) {
    n = n.render;
    var o = e.ref;
    if ("ref" in l) {
      var c = {};
      for (var m in l) m !== "ref" && (c[m] = l[m]);
    } else c = l;
    return (
      Nl(e),
      (l = bs(t, e, n, c, o, a)),
      (m = xs()),
      t !== null && !$t
        ? (Ss(t, e, a), An(t, e, a))
        : (Ct && m && ts(e), (e.flags |= 1), ue(t, e, l, a), e.child)
    );
  }
  function zd(t, e, n, l, a) {
    if (t === null) {
      var o = n.type;
      return typeof o == "function" &&
        !Fu(o) &&
        o.defaultProps === void 0 &&
        n.compare === null
        ? ((e.tag = 15), (e.type = o), Od(t, e, o, l, a))
        : ((t = lo(n.type, null, l, e, e.mode, a)),
          (t.ref = e.ref),
          (t.return = e),
          (e.child = t));
    }
    if (((o = t.child), !Zs(t, a))) {
      var c = o.memoizedProps;
      if (
        ((n = n.compare), (n = n !== null ? n : Ia), n(c, l) && t.ref === e.ref)
      )
        return An(t, e, a);
    }
    return (
      (e.flags |= 1),
      (t = bn(o, l)),
      (t.ref = e.ref),
      (t.return = e),
      (e.child = t)
    );
  }
  function Od(t, e, n, l, a) {
    if (t !== null) {
      var o = t.memoizedProps;
      if (Ia(o, l) && t.ref === e.ref)
        if ((($t = !1), (e.pendingProps = l = o), Zs(t, a)))
          (t.flags & 131072) !== 0 && ($t = !0);
        else return ((e.lanes = t.lanes), An(t, e, a));
    }
    return Ys(t, e, n, l, a);
  }
  function Cd(t, e, n, l) {
    var a = l.children,
      o = t !== null ? t.memoizedState : null;
    if (
      (t === null &&
        e.stateNode === null &&
        (e.stateNode = {
          _visibility: 1,
          _pendingMarkers: null,
          _retryCache: null,
          _transitions: null,
        }),
      l.mode === "hidden")
    ) {
      if ((e.flags & 128) !== 0) {
        if (((o = o !== null ? o.baseLanes | n : n), t !== null)) {
          for (l = e.child = t.child, a = 0; l !== null; )
            ((a = a | l.lanes | l.childLanes), (l = l.sibling));
          l = a & ~o;
        } else ((l = 0), (e.child = null));
        return Nd(t, e, o, n, l);
      }
      if ((n & 536870912) !== 0)
        ((e.memoizedState = { baseLanes: 0, cachePool: null }),
          t !== null && uo(e, o !== null ? o.cachePool : null),
          o !== null ? Mf(e, o) : gs(),
          Rf(e));
      else
        return (
          (l = e.lanes = 536870912),
          Nd(t, e, o !== null ? o.baseLanes | n : n, n, l)
        );
    } else
      o !== null
        ? (uo(e, o.cachePool), Mf(e, o), Fn(), (e.memoizedState = null))
        : (t !== null && uo(e, null), gs(), Fn());
    return (ue(t, e, a, n), e.child);
  }
  function hi(t, e) {
    return (
      (t !== null && t.tag === 22) ||
        e.stateNode !== null ||
        (e.stateNode = {
          _visibility: 1,
          _pendingMarkers: null,
          _retryCache: null,
          _transitions: null,
        }),
      e.sibling
    );
  }
  function Nd(t, e, n, l, a) {
    var o = rs();
    return (
      (o = o === null ? null : { parent: Kt._currentValue, pool: o }),
      (e.memoizedState = { baseLanes: n, cachePool: o }),
      t !== null && uo(e, null),
      gs(),
      Rf(e),
      t !== null && ra(t, e, l, !0),
      (e.childLanes = a),
      null
    );
  }
  function wo(t, e) {
    return (
      (e = zo({ mode: e.mode, children: e.children }, t.mode)),
      (e.ref = t.ref),
      (t.child = e),
      (e.return = t),
      e
    );
  }
  function _d(t, e, n) {
    return (
      Dl(e, t.child, null, n),
      (t = wo(e, e.pendingProps)),
      (t.flags |= 2),
      Re(e),
      (e.memoizedState = null),
      t
    );
  }
  function by(t, e, n) {
    var l = e.pendingProps,
      a = (e.flags & 128) !== 0;
    if (((e.flags &= -129), t === null)) {
      if (Ct) {
        if (l.mode === "hidden")
          return ((t = wo(e, l)), (e.lanes = 536870912), hi(null, t));
        if (
          (ys(e),
          (t = Lt)
            ? ((t = Vm(t, ke)),
              (t = t !== null && t.data === "&" ? t : null),
              t !== null &&
                ((e.memoizedState = {
                  dehydrated: t,
                  treeContext: Xn !== null ? { id: an, overflow: on } : null,
                  retryLane: 536870912,
                  hydrationErrors: null,
                }),
                (n = mf(t)),
                (n.return = e),
                (e.child = n),
                (ie = e),
                (Lt = null)))
            : (t = null),
          t === null)
        )
          throw Qn(e);
        return ((e.lanes = 536870912), null);
      }
      return wo(e, l);
    }
    var o = t.memoizedState;
    if (o !== null) {
      var c = o.dehydrated;
      if ((ys(e), a))
        if (e.flags & 256) ((e.flags &= -257), (e = _d(t, e, n)));
        else if (e.memoizedState !== null)
          ((e.child = t.child), (e.flags |= 128), (e = null));
        else throw Error(s(558));
      else if (
        ($t || ra(t, e, n, !1), (a = (n & t.childLanes) !== 0), $t || a)
      ) {
        if (
          ((l = Bt),
          l !== null && ((c = be(l, n)), c !== 0 && c !== o.retryLane))
        )
          throw ((o.retryLane = c), Al(t, c), ze(l, t, c), Ls);
        (Uo(), (e = _d(t, e, n)));
      } else
        ((t = o.treeContext),
          (Lt = Ze(c.nextSibling)),
          (ie = e),
          (Ct = !0),
          (kn = null),
          (ke = !1),
          t !== null && pf(e, t),
          (e = wo(e, l)),
          (e.flags |= 4096));
      return e;
    }
    return (
      (t = bn(t.child, { mode: l.mode, children: l.children })),
      (t.ref = e.ref),
      (e.child = t),
      (t.return = e),
      t
    );
  }
  function Ao(t, e) {
    var n = e.ref;
    if (n === null) t !== null && t.ref !== null && (e.flags |= 4194816);
    else {
      if (typeof n != "function" && typeof n != "object") throw Error(s(284));
      (t === null || t.ref !== n) && (e.flags |= 4194816);
    }
  }
  function Ys(t, e, n, l, a) {
    return (
      Nl(e),
      (n = bs(t, e, n, l, void 0, a)),
      (l = xs()),
      t !== null && !$t
        ? (Ss(t, e, a), An(t, e, a))
        : (Ct && l && ts(e), (e.flags |= 1), ue(t, e, n, a), e.child)
    );
  }
  function Md(t, e, n, l, a, o) {
    return (
      Nl(e),
      (e.updateQueue = null),
      (n = jf(e, l, n, a)),
      Df(t),
      (l = xs()),
      t !== null && !$t
        ? (Ss(t, e, o), An(t, e, o))
        : (Ct && l && ts(e), (e.flags |= 1), ue(t, e, n, o), e.child)
    );
  }
  function Rd(t, e, n, l, a) {
    if ((Nl(e), e.stateNode === null)) {
      var o = ia,
        c = n.contextType;
      (typeof c == "object" && c !== null && (o = oe(c)),
        (o = new n(l, o)),
        (e.memoizedState =
          o.state !== null && o.state !== void 0 ? o.state : null),
        (o.updater = Hs),
        (e.stateNode = o),
        (o._reactInternals = e),
        (o = e.stateNode),
        (o.props = l),
        (o.state = e.memoizedState),
        (o.refs = {}),
        fs(e),
        (c = n.contextType),
        (o.context = typeof c == "object" && c !== null ? oe(c) : ia),
        (o.state = e.memoizedState),
        (c = n.getDerivedStateFromProps),
        typeof c == "function" && (Us(e, n, c, l), (o.state = e.memoizedState)),
        typeof n.getDerivedStateFromProps == "function" ||
          typeof o.getSnapshotBeforeUpdate == "function" ||
          (typeof o.UNSAFE_componentWillMount != "function" &&
            typeof o.componentWillMount != "function") ||
          ((c = o.state),
          typeof o.componentWillMount == "function" && o.componentWillMount(),
          typeof o.UNSAFE_componentWillMount == "function" &&
            o.UNSAFE_componentWillMount(),
          c !== o.state && Hs.enqueueReplaceState(o, o.state, null),
          ri(e, l, o, a),
          si(),
          (o.state = e.memoizedState)),
        typeof o.componentDidMount == "function" && (e.flags |= 4194308),
        (l = !0));
    } else if (t === null) {
      o = e.stateNode;
      var m = e.memoizedProps,
        S = Ul(n, m);
      o.props = S;
      var N = o.context,
        L = n.contextType;
      ((c = ia), typeof L == "object" && L !== null && (c = oe(L)));
      var G = n.getDerivedStateFromProps;
      ((L =
        typeof G == "function" ||
        typeof o.getSnapshotBeforeUpdate == "function"),
        (m = e.pendingProps !== m),
        L ||
          (typeof o.UNSAFE_componentWillReceiveProps != "function" &&
            typeof o.componentWillReceiveProps != "function") ||
          ((m || N !== c) && vd(e, o, l, c)),
        (Kn = !1));
      var M = e.memoizedState;
      ((o.state = M),
        ri(e, l, o, a),
        si(),
        (N = e.memoizedState),
        m || M !== N || Kn
          ? (typeof G == "function" && (Us(e, n, G, l), (N = e.memoizedState)),
            (S = Kn || yd(e, n, S, l, M, N, c))
              ? (L ||
                  (typeof o.UNSAFE_componentWillMount != "function" &&
                    typeof o.componentWillMount != "function") ||
                  (typeof o.componentWillMount == "function" &&
                    o.componentWillMount(),
                  typeof o.UNSAFE_componentWillMount == "function" &&
                    o.UNSAFE_componentWillMount()),
                typeof o.componentDidMount == "function" &&
                  (e.flags |= 4194308))
              : (typeof o.componentDidMount == "function" &&
                  (e.flags |= 4194308),
                (e.memoizedProps = l),
                (e.memoizedState = N)),
            (o.props = l),
            (o.state = N),
            (o.context = c),
            (l = S))
          : (typeof o.componentDidMount == "function" && (e.flags |= 4194308),
            (l = !1)));
    } else {
      ((o = e.stateNode),
        ds(t, e),
        (c = e.memoizedProps),
        (L = Ul(n, c)),
        (o.props = L),
        (G = e.pendingProps),
        (M = o.context),
        (N = n.contextType),
        (S = ia),
        typeof N == "object" && N !== null && (S = oe(N)),
        (m = n.getDerivedStateFromProps),
        (N =
          typeof m == "function" ||
          typeof o.getSnapshotBeforeUpdate == "function") ||
          (typeof o.UNSAFE_componentWillReceiveProps != "function" &&
            typeof o.componentWillReceiveProps != "function") ||
          ((c !== G || M !== S) && vd(e, o, l, S)),
        (Kn = !1),
        (M = e.memoizedState),
        (o.state = M),
        ri(e, l, o, a),
        si());
      var j = e.memoizedState;
      c !== G ||
      M !== j ||
      Kn ||
      (t !== null && t.dependencies !== null && io(t.dependencies))
        ? (typeof m == "function" && (Us(e, n, m, l), (j = e.memoizedState)),
          (L =
            Kn ||
            yd(e, n, L, l, M, j, S) ||
            (t !== null && t.dependencies !== null && io(t.dependencies)))
            ? (N ||
                (typeof o.UNSAFE_componentWillUpdate != "function" &&
                  typeof o.componentWillUpdate != "function") ||
                (typeof o.componentWillUpdate == "function" &&
                  o.componentWillUpdate(l, j, S),
                typeof o.UNSAFE_componentWillUpdate == "function" &&
                  o.UNSAFE_componentWillUpdate(l, j, S)),
              typeof o.componentDidUpdate == "function" && (e.flags |= 4),
              typeof o.getSnapshotBeforeUpdate == "function" &&
                (e.flags |= 1024))
            : (typeof o.componentDidUpdate != "function" ||
                (c === t.memoizedProps && M === t.memoizedState) ||
                (e.flags |= 4),
              typeof o.getSnapshotBeforeUpdate != "function" ||
                (c === t.memoizedProps && M === t.memoizedState) ||
                (e.flags |= 1024),
              (e.memoizedProps = l),
              (e.memoizedState = j)),
          (o.props = l),
          (o.state = j),
          (o.context = S),
          (l = L))
        : (typeof o.componentDidUpdate != "function" ||
            (c === t.memoizedProps && M === t.memoizedState) ||
            (e.flags |= 4),
          typeof o.getSnapshotBeforeUpdate != "function" ||
            (c === t.memoizedProps && M === t.memoizedState) ||
            (e.flags |= 1024),
          (l = !1));
    }
    return (
      (o = l),
      Ao(t, e),
      (l = (e.flags & 128) !== 0),
      o || l
        ? ((o = e.stateNode),
          (n =
            l && typeof n.getDerivedStateFromError != "function"
              ? null
              : o.render()),
          (e.flags |= 1),
          t !== null && l
            ? ((e.child = Dl(e, t.child, null, a)),
              (e.child = Dl(e, null, n, a)))
            : ue(t, e, n, a),
          (e.memoizedState = o.state),
          (t = e.child))
        : (t = An(t, e, a)),
      t
    );
  }
  function Dd(t, e, n, l) {
    return (Ol(), (e.flags |= 256), ue(t, e, n, l), e.child);
  }
  var qs = {
    dehydrated: null,
    treeContext: null,
    retryLane: 0,
    hydrationErrors: null,
  };
  function Gs(t) {
    return { baseLanes: t, cachePool: Ef() };
  }
  function Vs(t, e, n) {
    return ((t = t !== null ? t.childLanes & ~n : 0), e && (t |= je), t);
  }
  function jd(t, e, n) {
    var l = e.pendingProps,
      a = !1,
      o = (e.flags & 128) !== 0,
      c;
    if (
      ((c = o) ||
        (c =
          t !== null && t.memoizedState === null ? !1 : (Qt.current & 2) !== 0),
      c && ((a = !0), (e.flags &= -129)),
      (c = (e.flags & 32) !== 0),
      (e.flags &= -33),
      t === null)
    ) {
      if (Ct) {
        if (
          (a ? Wn(e) : Fn(),
          (t = Lt)
            ? ((t = Vm(t, ke)),
              (t = t !== null && t.data !== "&" ? t : null),
              t !== null &&
                ((e.memoizedState = {
                  dehydrated: t,
                  treeContext: Xn !== null ? { id: an, overflow: on } : null,
                  retryLane: 536870912,
                  hydrationErrors: null,
                }),
                (n = mf(t)),
                (n.return = e),
                (e.child = n),
                (ie = e),
                (Lt = null)))
            : (t = null),
          t === null)
        )
          throw Qn(e);
        return (wr(t) ? (e.lanes = 32) : (e.lanes = 536870912), null);
      }
      var m = l.children;
      return (
        (l = l.fallback),
        a
          ? (Fn(),
            (a = e.mode),
            (m = zo({ mode: "hidden", children: m }, a)),
            (l = zl(l, a, n, null)),
            (m.return = e),
            (l.return = e),
            (m.sibling = l),
            (e.child = m),
            (l = e.child),
            (l.memoizedState = Gs(n)),
            (l.childLanes = Vs(t, c, n)),
            (e.memoizedState = qs),
            hi(null, l))
          : (Wn(e), Xs(e, m))
      );
    }
    var S = t.memoizedState;
    if (S !== null && ((m = S.dehydrated), m !== null)) {
      if (o)
        e.flags & 256
          ? (Wn(e), (e.flags &= -257), (e = ks(t, e, n)))
          : e.memoizedState !== null
            ? (Fn(), (e.child = t.child), (e.flags |= 128), (e = null))
            : (Fn(),
              (m = l.fallback),
              (a = e.mode),
              (l = zo({ mode: "visible", children: l.children }, a)),
              (m = zl(m, a, n, null)),
              (m.flags |= 2),
              (l.return = e),
              (m.return = e),
              (l.sibling = m),
              (e.child = l),
              Dl(e, t.child, null, n),
              (l = e.child),
              (l.memoizedState = Gs(n)),
              (l.childLanes = Vs(t, c, n)),
              (e.memoizedState = qs),
              (e = hi(null, l)));
      else if ((Wn(e), wr(m))) {
        if (((c = m.nextSibling && m.nextSibling.dataset), c)) var N = c.dgst;
        ((c = N),
          (l = Error(s(419))),
          (l.stack = ""),
          (l.digest = c),
          ni({ value: l, source: null, stack: null }),
          (e = ks(t, e, n)));
      } else if (
        ($t || ra(t, e, n, !1), (c = (n & t.childLanes) !== 0), $t || c)
      ) {
        if (
          ((c = Bt),
          c !== null && ((l = be(c, n)), l !== 0 && l !== S.retryLane))
        )
          throw ((S.retryLane = l), Al(t, l), ze(c, t, l), Ls);
        (Tr(m) || Uo(), (e = ks(t, e, n)));
      } else
        Tr(m)
          ? ((e.flags |= 192), (e.child = t.child), (e = null))
          : ((t = S.treeContext),
            (Lt = Ze(m.nextSibling)),
            (ie = e),
            (Ct = !0),
            (kn = null),
            (ke = !1),
            t !== null && pf(e, t),
            (e = Xs(e, l.children)),
            (e.flags |= 4096));
      return e;
    }
    return a
      ? (Fn(),
        (m = l.fallback),
        (a = e.mode),
        (S = t.child),
        (N = S.sibling),
        (l = bn(S, { mode: "hidden", children: l.children })),
        (l.subtreeFlags = S.subtreeFlags & 65011712),
        N !== null ? (m = bn(N, m)) : ((m = zl(m, a, n, null)), (m.flags |= 2)),
        (m.return = e),
        (l.return = e),
        (l.sibling = m),
        (e.child = l),
        hi(null, l),
        (l = e.child),
        (m = t.child.memoizedState),
        m === null
          ? (m = Gs(n))
          : ((a = m.cachePool),
            a !== null
              ? ((S = Kt._currentValue),
                (a = a.parent !== S ? { parent: S, pool: S } : a))
              : (a = Ef()),
            (m = { baseLanes: m.baseLanes | n, cachePool: a })),
        (l.memoizedState = m),
        (l.childLanes = Vs(t, c, n)),
        (e.memoizedState = qs),
        hi(t.child, l))
      : (Wn(e),
        (n = t.child),
        (t = n.sibling),
        (n = bn(n, { mode: "visible", children: l.children })),
        (n.return = e),
        (n.sibling = null),
        t !== null &&
          ((c = e.deletions),
          c === null ? ((e.deletions = [t]), (e.flags |= 16)) : c.push(t)),
        (e.child = n),
        (e.memoizedState = null),
        n);
  }
  function Xs(t, e) {
    return (
      (e = zo({ mode: "visible", children: e }, t.mode)),
      (e.return = t),
      (t.child = e)
    );
  }
  function zo(t, e) {
    return ((t = _e(22, t, null, e)), (t.lanes = 0), t);
  }
  function ks(t, e, n) {
    return (
      Dl(e, t.child, null, n),
      (t = Xs(e, e.pendingProps.children)),
      (t.flags |= 2),
      (e.memoizedState = null),
      t
    );
  }
  function Ud(t, e, n) {
    t.lanes |= e;
    var l = t.alternate;
    (l !== null && (l.lanes |= e), is(t.return, e, n));
  }
  function Qs(t, e, n, l, a, o) {
    var c = t.memoizedState;
    c === null
      ? (t.memoizedState = {
          isBackwards: e,
          rendering: null,
          renderingStartTime: 0,
          last: l,
          tail: n,
          tailMode: a,
          treeForkCount: o,
        })
      : ((c.isBackwards = e),
        (c.rendering = null),
        (c.renderingStartTime = 0),
        (c.last = l),
        (c.tail = n),
        (c.tailMode = a),
        (c.treeForkCount = o));
  }
  function Hd(t, e, n) {
    var l = e.pendingProps,
      a = l.revealOrder,
      o = l.tail;
    l = l.children;
    var c = Qt.current,
      m = (c & 2) !== 0;
    if (
      (m ? ((c = (c & 1) | 2), (e.flags |= 128)) : (c &= 1),
      B(Qt, c),
      ue(t, e, l, n),
      (l = Ct ? ei : 0),
      !m && t !== null && (t.flags & 128) !== 0)
    )
      t: for (t = e.child; t !== null; ) {
        if (t.tag === 13) t.memoizedState !== null && Ud(t, n, e);
        else if (t.tag === 19) Ud(t, n, e);
        else if (t.child !== null) {
          ((t.child.return = t), (t = t.child));
          continue;
        }
        if (t === e) break t;
        for (; t.sibling === null; ) {
          if (t.return === null || t.return === e) break t;
          t = t.return;
        }
        ((t.sibling.return = t.return), (t = t.sibling));
      }
    switch (a) {
      case "forwards":
        for (n = e.child, a = null; n !== null; )
          ((t = n.alternate),
            t !== null && ho(t) === null && (a = n),
            (n = n.sibling));
        ((n = a),
          n === null
            ? ((a = e.child), (e.child = null))
            : ((a = n.sibling), (n.sibling = null)),
          Qs(e, !1, a, n, o, l));
        break;
      case "backwards":
      case "unstable_legacy-backwards":
        for (n = null, a = e.child, e.child = null; a !== null; ) {
          if (((t = a.alternate), t !== null && ho(t) === null)) {
            e.child = a;
            break;
          }
          ((t = a.sibling), (a.sibling = n), (n = a), (a = t));
        }
        Qs(e, !0, n, null, o, l);
        break;
      case "together":
        Qs(e, !1, null, null, void 0, l);
        break;
      default:
        e.memoizedState = null;
    }
    return e.child;
  }
  function An(t, e, n) {
    if (
      (t !== null && (e.dependencies = t.dependencies),
      (tl |= e.lanes),
      (n & e.childLanes) === 0)
    )
      if (t !== null) {
        if ((ra(t, e, n, !1), (n & e.childLanes) === 0)) return null;
      } else return null;
    if (t !== null && e.child !== t.child) throw Error(s(153));
    if (e.child !== null) {
      for (
        t = e.child, n = bn(t, t.pendingProps), e.child = n, n.return = e;
        t.sibling !== null;

      )
        ((t = t.sibling),
          (n = n.sibling = bn(t, t.pendingProps)),
          (n.return = e));
      n.sibling = null;
    }
    return e.child;
  }
  function Zs(t, e) {
    return (t.lanes & e) !== 0
      ? !0
      : ((t = t.dependencies), !!(t !== null && io(t)));
  }
  function xy(t, e, n) {
    switch (e.tag) {
      case 3:
        (ft(e, e.stateNode.containerInfo),
          Zn(e, Kt, t.memoizedState.cache),
          Ol());
        break;
      case 27:
      case 5:
        ne(e);
        break;
      case 4:
        ft(e, e.stateNode.containerInfo);
        break;
      case 10:
        Zn(e, e.type, e.memoizedProps.value);
        break;
      case 31:
        if (e.memoizedState !== null) return ((e.flags |= 128), ys(e), null);
        break;
      case 13:
        var l = e.memoizedState;
        if (l !== null)
          return l.dehydrated !== null
            ? (Wn(e), (e.flags |= 128), null)
            : (n & e.child.childLanes) !== 0
              ? jd(t, e, n)
              : (Wn(e), (t = An(t, e, n)), t !== null ? t.sibling : null);
        Wn(e);
        break;
      case 19:
        var a = (t.flags & 128) !== 0;
        if (
          ((l = (n & e.childLanes) !== 0),
          l || (ra(t, e, n, !1), (l = (n & e.childLanes) !== 0)),
          a)
        ) {
          if (l) return Hd(t, e, n);
          e.flags |= 128;
        }
        if (
          ((a = e.memoizedState),
          a !== null &&
            ((a.rendering = null), (a.tail = null), (a.lastEffect = null)),
          B(Qt, Qt.current),
          l)
        )
          break;
        return null;
      case 22:
        return ((e.lanes = 0), Cd(t, e, n, e.pendingProps));
      case 24:
        Zn(e, Kt, t.memoizedState.cache);
    }
    return An(t, e, n);
  }
  function Bd(t, e, n) {
    if (t !== null)
      if (t.memoizedProps !== e.pendingProps) $t = !0;
      else {
        if (!Zs(t, n) && (e.flags & 128) === 0) return (($t = !1), xy(t, e, n));
        $t = (t.flags & 131072) !== 0;
      }
    else (($t = !1), Ct && (e.flags & 1048576) !== 0 && gf(e, ei, e.index));
    switch (((e.lanes = 0), e.tag)) {
      case 16:
        t: {
          var l = e.pendingProps;
          if (((t = Ml(e.elementType)), (e.type = t), typeof t == "function"))
            Fu(t)
              ? ((l = Ul(t, l)), (e.tag = 1), (e = Rd(null, e, t, l, n)))
              : ((e.tag = 0), (e = Ys(null, e, t, l, n)));
          else {
            if (t != null) {
              var a = t.$$typeof;
              if (a === W) {
                ((e.tag = 11), (e = Ad(null, e, t, l, n)));
                break t;
              } else if (a === Q) {
                ((e.tag = 14), (e = zd(null, e, t, l, n)));
                break t;
              }
            }
            throw ((e = gt(t) || t), Error(s(306, e, "")));
          }
        }
        return e;
      case 0:
        return Ys(t, e, e.type, e.pendingProps, n);
      case 1:
        return ((l = e.type), (a = Ul(l, e.pendingProps)), Rd(t, e, l, a, n));
      case 3:
        t: {
          if ((ft(e, e.stateNode.containerInfo), t === null))
            throw Error(s(387));
          l = e.pendingProps;
          var o = e.memoizedState;
          ((a = o.element), ds(t, e), ri(e, l, null, n));
          var c = e.memoizedState;
          if (
            ((l = c.cache),
            Zn(e, Kt, l),
            l !== o.cache && os(e, [Kt], n, !0),
            si(),
            (l = c.element),
            o.isDehydrated)
          )
            if (
              ((o = { element: l, isDehydrated: !1, cache: c.cache }),
              (e.updateQueue.baseState = o),
              (e.memoizedState = o),
              e.flags & 256)
            ) {
              e = Dd(t, e, l, n);
              break t;
            } else if (l !== a) {
              ((a = Ge(Error(s(424)), e)), ni(a), (e = Dd(t, e, l, n)));
              break t;
            } else {
              switch (((t = e.stateNode.containerInfo), t.nodeType)) {
                case 9:
                  t = t.body;
                  break;
                default:
                  t = t.nodeName === "HTML" ? t.ownerDocument.body : t;
              }
              for (
                Lt = Ze(t.firstChild),
                  ie = e,
                  Ct = !0,
                  kn = null,
                  ke = !0,
                  n = Cf(e, null, l, n),
                  e.child = n;
                n;

              )
                ((n.flags = (n.flags & -3) | 4096), (n = n.sibling));
            }
          else {
            if ((Ol(), l === a)) {
              e = An(t, e, n);
              break t;
            }
            ue(t, e, l, n);
          }
          e = e.child;
        }
        return e;
      case 26:
        return (
          Ao(t, e),
          t === null
            ? (n = Jm(e.type, null, e.pendingProps, null))
              ? (e.memoizedState = n)
              : Ct ||
                ((n = e.type),
                (t = e.pendingProps),
                (l = Vo(ut.current).createElement(n)),
                (l[ae] = e),
                (l[xe] = t),
                se(l, n, t),
                te(l),
                (e.stateNode = l))
            : (e.memoizedState = Jm(
                e.type,
                t.memoizedProps,
                e.pendingProps,
                t.memoizedState
              )),
          null
        );
      case 27:
        return (
          ne(e),
          t === null &&
            Ct &&
            ((l = e.stateNode = Qm(e.type, e.pendingProps, ut.current)),
            (ie = e),
            (ke = !0),
            (a = Lt),
            il(e.type) ? ((Ar = a), (Lt = Ze(l.firstChild))) : (Lt = a)),
          ue(t, e, e.pendingProps.children, n),
          Ao(t, e),
          t === null && (e.flags |= 4194304),
          e.child
        );
      case 5:
        return (
          t === null &&
            Ct &&
            ((a = l = Lt) &&
              ((l = Wy(l, e.type, e.pendingProps, ke)),
              l !== null
                ? ((e.stateNode = l),
                  (ie = e),
                  (Lt = Ze(l.firstChild)),
                  (ke = !1),
                  (a = !0))
                : (a = !1)),
            a || Qn(e)),
          ne(e),
          (a = e.type),
          (o = e.pendingProps),
          (c = t !== null ? t.memoizedProps : null),
          (l = o.children),
          xr(a, o) ? (l = null) : c !== null && xr(a, c) && (e.flags |= 32),
          e.memoizedState !== null &&
            ((a = bs(t, e, fy, null, null, n)), (Ni._currentValue = a)),
          Ao(t, e),
          ue(t, e, l, n),
          e.child
        );
      case 6:
        return (
          t === null &&
            Ct &&
            ((t = n = Lt) &&
              ((n = Fy(n, e.pendingProps, ke)),
              n !== null
                ? ((e.stateNode = n), (ie = e), (Lt = null), (t = !0))
                : (t = !1)),
            t || Qn(e)),
          null
        );
      case 13:
        return jd(t, e, n);
      case 4:
        return (
          ft(e, e.stateNode.containerInfo),
          (l = e.pendingProps),
          t === null ? (e.child = Dl(e, null, l, n)) : ue(t, e, l, n),
          e.child
        );
      case 11:
        return Ad(t, e, e.type, e.pendingProps, n);
      case 7:
        return (ue(t, e, e.pendingProps, n), e.child);
      case 8:
        return (ue(t, e, e.pendingProps.children, n), e.child);
      case 12:
        return (ue(t, e, e.pendingProps.children, n), e.child);
      case 10:
        return (
          (l = e.pendingProps),
          Zn(e, e.type, l.value),
          ue(t, e, l.children, n),
          e.child
        );
      case 9:
        return (
          (a = e.type._context),
          (l = e.pendingProps.children),
          Nl(e),
          (a = oe(a)),
          (l = l(a)),
          (e.flags |= 1),
          ue(t, e, l, n),
          e.child
        );
      case 14:
        return zd(t, e, e.type, e.pendingProps, n);
      case 15:
        return Od(t, e, e.type, e.pendingProps, n);
      case 19:
        return Hd(t, e, n);
      case 31:
        return by(t, e, n);
      case 22:
        return Cd(t, e, n, e.pendingProps);
      case 24:
        return (
          Nl(e),
          (l = oe(Kt)),
          t === null
            ? ((a = rs()),
              a === null &&
                ((a = Bt),
                (o = us()),
                (a.pooledCache = o),
                o.refCount++,
                o !== null && (a.pooledCacheLanes |= n),
                (a = o)),
              (e.memoizedState = { parent: l, cache: a }),
              fs(e),
              Zn(e, Kt, a))
            : ((t.lanes & n) !== 0 && (ds(t, e), ri(e, null, null, n), si()),
              (a = t.memoizedState),
              (o = e.memoizedState),
              a.parent !== l
                ? ((a = { parent: l, cache: l }),
                  (e.memoizedState = a),
                  e.lanes === 0 &&
                    (e.memoizedState = e.updateQueue.baseState = a),
                  Zn(e, Kt, l))
                : ((l = o.cache),
                  Zn(e, Kt, l),
                  l !== a.cache && os(e, [Kt], n, !0))),
          ue(t, e, e.pendingProps.children, n),
          e.child
        );
      case 29:
        throw e.pendingProps;
    }
    throw Error(s(156, e.tag));
  }
  function zn(t) {
    t.flags |= 4;
  }
  function Ks(t, e, n, l, a) {
    if (((e = (t.mode & 32) !== 0) && (e = !1), e)) {
      if (((t.flags |= 16777216), (a & 335544128) === a))
        if (t.stateNode.complete) t.flags |= 8192;
        else if (cm()) t.flags |= 8192;
        else throw ((Rl = ro), cs);
    } else t.flags &= -16777217;
  }
  function Ld(t, e) {
    if (e.type !== "stylesheet" || (e.state.loading & 4) !== 0)
      t.flags &= -16777217;
    else if (((t.flags |= 16777216), !Im(e)))
      if (cm()) t.flags |= 8192;
      else throw ((Rl = ro), cs);
  }
  function Oo(t, e) {
    (e !== null && (t.flags |= 4),
      t.flags & 16384 &&
        ((e = t.tag !== 22 ? ce() : 536870912), (t.lanes |= e), (Sa |= e)));
  }
  function gi(t, e) {
    if (!Ct)
      switch (t.tailMode) {
        case "hidden":
          e = t.tail;
          for (var n = null; e !== null; )
            (e.alternate !== null && (n = e), (e = e.sibling));
          n === null ? (t.tail = null) : (n.sibling = null);
          break;
        case "collapsed":
          n = t.tail;
          for (var l = null; n !== null; )
            (n.alternate !== null && (l = n), (n = n.sibling));
          l === null
            ? e || t.tail === null
              ? (t.tail = null)
              : (t.tail.sibling = null)
            : (l.sibling = null);
      }
  }
  function Yt(t) {
    var e = t.alternate !== null && t.alternate.child === t.child,
      n = 0,
      l = 0;
    if (e)
      for (var a = t.child; a !== null; )
        ((n |= a.lanes | a.childLanes),
          (l |= a.subtreeFlags & 65011712),
          (l |= a.flags & 65011712),
          (a.return = t),
          (a = a.sibling));
    else
      for (a = t.child; a !== null; )
        ((n |= a.lanes | a.childLanes),
          (l |= a.subtreeFlags),
          (l |= a.flags),
          (a.return = t),
          (a = a.sibling));
    return ((t.subtreeFlags |= l), (t.childLanes = n), e);
  }
  function Sy(t, e, n) {
    var l = e.pendingProps;
    switch ((es(e), e.tag)) {
      case 16:
      case 15:
      case 0:
      case 11:
      case 7:
      case 8:
      case 12:
      case 9:
      case 14:
        return (Yt(e), null);
      case 1:
        return (Yt(e), null);
      case 3:
        return (
          (n = e.stateNode),
          (l = null),
          t !== null && (l = t.memoizedState.cache),
          e.memoizedState.cache !== l && (e.flags |= 2048),
          En(Kt),
          Ot(),
          n.pendingContext &&
            ((n.context = n.pendingContext), (n.pendingContext = null)),
          (t === null || t.child === null) &&
            (sa(e)
              ? zn(e)
              : t === null ||
                (t.memoizedState.isDehydrated && (e.flags & 256) === 0) ||
                ((e.flags |= 1024), ls())),
          Yt(e),
          null
        );
      case 26:
        var a = e.type,
          o = e.memoizedState;
        return (
          t === null
            ? (zn(e),
              o !== null ? (Yt(e), Ld(e, o)) : (Yt(e), Ks(e, a, null, l, n)))
            : o
              ? o !== t.memoizedState
                ? (zn(e), Yt(e), Ld(e, o))
                : (Yt(e), (e.flags &= -16777217))
              : ((t = t.memoizedProps),
                t !== l && zn(e),
                Yt(e),
                Ks(e, a, t, l, n)),
          null
        );
      case 27:
        if (
          (de(e),
          (n = ut.current),
          (a = e.type),
          t !== null && e.stateNode != null)
        )
          t.memoizedProps !== l && zn(e);
        else {
          if (!l) {
            if (e.stateNode === null) throw Error(s(166));
            return (Yt(e), null);
          }
          ((t = k.current),
            sa(e) ? yf(e) : ((t = Qm(a, l, n)), (e.stateNode = t), zn(e)));
        }
        return (Yt(e), null);
      case 5:
        if ((de(e), (a = e.type), t !== null && e.stateNode != null))
          t.memoizedProps !== l && zn(e);
        else {
          if (!l) {
            if (e.stateNode === null) throw Error(s(166));
            return (Yt(e), null);
          }
          if (((o = k.current), sa(e))) yf(e);
          else {
            var c = Vo(ut.current);
            switch (o) {
              case 1:
                o = c.createElementNS("http://www.w3.org/2000/svg", a);
                break;
              case 2:
                o = c.createElementNS("http://www.w3.org/1998/Math/MathML", a);
                break;
              default:
                switch (a) {
                  case "svg":
                    o = c.createElementNS("http://www.w3.org/2000/svg", a);
                    break;
                  case "math":
                    o = c.createElementNS(
                      "http://www.w3.org/1998/Math/MathML",
                      a
                    );
                    break;
                  case "script":
                    ((o = c.createElement("div")),
                      (o.innerHTML = "<script><\/script>"),
                      (o = o.removeChild(o.firstChild)));
                    break;
                  case "select":
                    ((o =
                      typeof l.is == "string"
                        ? c.createElement("select", { is: l.is })
                        : c.createElement("select")),
                      l.multiple
                        ? (o.multiple = !0)
                        : l.size && (o.size = l.size));
                    break;
                  default:
                    o =
                      typeof l.is == "string"
                        ? c.createElement(a, { is: l.is })
                        : c.createElement(a);
                }
            }
            ((o[ae] = e), (o[xe] = l));
            t: for (c = e.child; c !== null; ) {
              if (c.tag === 5 || c.tag === 6) o.appendChild(c.stateNode);
              else if (c.tag !== 4 && c.tag !== 27 && c.child !== null) {
                ((c.child.return = c), (c = c.child));
                continue;
              }
              if (c === e) break t;
              for (; c.sibling === null; ) {
                if (c.return === null || c.return === e) break t;
                c = c.return;
              }
              ((c.sibling.return = c.return), (c = c.sibling));
            }
            e.stateNode = o;
            t: switch ((se(o, a, l), a)) {
              case "button":
              case "input":
              case "select":
              case "textarea":
                l = !!l.autoFocus;
                break t;
              case "img":
                l = !0;
                break t;
              default:
                l = !1;
            }
            l && zn(e);
          }
        }
        return (
          Yt(e),
          Ks(e, e.type, t === null ? null : t.memoizedProps, e.pendingProps, n),
          null
        );
      case 6:
        if (t && e.stateNode != null) t.memoizedProps !== l && zn(e);
        else {
          if (typeof l != "string" && e.stateNode === null) throw Error(s(166));
          if (((t = ut.current), sa(e))) {
            if (
              ((t = e.stateNode),
              (n = e.memoizedProps),
              (l = null),
              (a = ie),
              a !== null)
            )
              switch (a.tag) {
                case 27:
                case 5:
                  l = a.memoizedProps;
              }
            ((t[ae] = e),
              (t = !!(
                t.nodeValue === n ||
                (l !== null && l.suppressHydrationWarning === !0) ||
                jm(t.nodeValue, n)
              )),
              t || Qn(e, !0));
          } else
            ((t = Vo(t).createTextNode(l)), (t[ae] = e), (e.stateNode = t));
        }
        return (Yt(e), null);
      case 31:
        if (((n = e.memoizedState), t === null || t.memoizedState !== null)) {
          if (((l = sa(e)), n !== null)) {
            if (t === null) {
              if (!l) throw Error(s(318));
              if (
                ((t = e.memoizedState),
                (t = t !== null ? t.dehydrated : null),
                !t)
              )
                throw Error(s(557));
              t[ae] = e;
            } else
              (Ol(),
                (e.flags & 128) === 0 && (e.memoizedState = null),
                (e.flags |= 4));
            (Yt(e), (t = !1));
          } else
            ((n = ls()),
              t !== null &&
                t.memoizedState !== null &&
                (t.memoizedState.hydrationErrors = n),
              (t = !0));
          if (!t) return e.flags & 256 ? (Re(e), e) : (Re(e), null);
          if ((e.flags & 128) !== 0) throw Error(s(558));
        }
        return (Yt(e), null);
      case 13:
        if (
          ((l = e.memoizedState),
          t === null ||
            (t.memoizedState !== null && t.memoizedState.dehydrated !== null))
        ) {
          if (((a = sa(e)), l !== null && l.dehydrated !== null)) {
            if (t === null) {
              if (!a) throw Error(s(318));
              if (
                ((a = e.memoizedState),
                (a = a !== null ? a.dehydrated : null),
                !a)
              )
                throw Error(s(317));
              a[ae] = e;
            } else
              (Ol(),
                (e.flags & 128) === 0 && (e.memoizedState = null),
                (e.flags |= 4));
            (Yt(e), (a = !1));
          } else
            ((a = ls()),
              t !== null &&
                t.memoizedState !== null &&
                (t.memoizedState.hydrationErrors = a),
              (a = !0));
          if (!a) return e.flags & 256 ? (Re(e), e) : (Re(e), null);
        }
        return (
          Re(e),
          (e.flags & 128) !== 0
            ? ((e.lanes = n), e)
            : ((n = l !== null),
              (t = t !== null && t.memoizedState !== null),
              n &&
                ((l = e.child),
                (a = null),
                l.alternate !== null &&
                  l.alternate.memoizedState !== null &&
                  l.alternate.memoizedState.cachePool !== null &&
                  (a = l.alternate.memoizedState.cachePool.pool),
                (o = null),
                l.memoizedState !== null &&
                  l.memoizedState.cachePool !== null &&
                  (o = l.memoizedState.cachePool.pool),
                o !== a && (l.flags |= 2048)),
              n !== t && n && (e.child.flags |= 8192),
              Oo(e, e.updateQueue),
              Yt(e),
              null)
        );
      case 4:
        return (Ot(), t === null && gr(e.stateNode.containerInfo), Yt(e), null);
      case 10:
        return (En(e.type), Yt(e), null);
      case 19:
        if ((H(Qt), (l = e.memoizedState), l === null)) return (Yt(e), null);
        if (((a = (e.flags & 128) !== 0), (o = l.rendering), o === null))
          if (a) gi(l, !1);
          else {
            if (kt !== 0 || (t !== null && (t.flags & 128) !== 0))
              for (t = e.child; t !== null; ) {
                if (((o = ho(t)), o !== null)) {
                  for (
                    e.flags |= 128,
                      gi(l, !1),
                      t = o.updateQueue,
                      e.updateQueue = t,
                      Oo(e, t),
                      e.subtreeFlags = 0,
                      t = n,
                      n = e.child;
                    n !== null;

                  )
                    (df(n, t), (n = n.sibling));
                  return (
                    B(Qt, (Qt.current & 1) | 2),
                    Ct && xn(e, l.treeForkCount),
                    e.child
                  );
                }
                t = t.sibling;
              }
            l.tail !== null &&
              he() > Ro &&
              ((e.flags |= 128), (a = !0), gi(l, !1), (e.lanes = 4194304));
          }
        else {
          if (!a)
            if (((t = ho(o)), t !== null)) {
              if (
                ((e.flags |= 128),
                (a = !0),
                (t = t.updateQueue),
                (e.updateQueue = t),
                Oo(e, t),
                gi(l, !0),
                l.tail === null &&
                  l.tailMode === "hidden" &&
                  !o.alternate &&
                  !Ct)
              )
                return (Yt(e), null);
            } else
              2 * he() - l.renderingStartTime > Ro &&
                n !== 536870912 &&
                ((e.flags |= 128), (a = !0), gi(l, !1), (e.lanes = 4194304));
          l.isBackwards
            ? ((o.sibling = e.child), (e.child = o))
            : ((t = l.last),
              t !== null ? (t.sibling = o) : (e.child = o),
              (l.last = o));
        }
        return l.tail !== null
          ? ((t = l.tail),
            (l.rendering = t),
            (l.tail = t.sibling),
            (l.renderingStartTime = he()),
            (t.sibling = null),
            (n = Qt.current),
            B(Qt, a ? (n & 1) | 2 : n & 1),
            Ct && xn(e, l.treeForkCount),
            t)
          : (Yt(e), null);
      case 22:
      case 23:
        return (
          Re(e),
          ps(),
          (l = e.memoizedState !== null),
          t !== null
            ? (t.memoizedState !== null) !== l && (e.flags |= 8192)
            : l && (e.flags |= 8192),
          l
            ? (n & 536870912) !== 0 &&
              (e.flags & 128) === 0 &&
              (Yt(e), e.subtreeFlags & 6 && (e.flags |= 8192))
            : Yt(e),
          (n = e.updateQueue),
          n !== null && Oo(e, n.retryQueue),
          (n = null),
          t !== null &&
            t.memoizedState !== null &&
            t.memoizedState.cachePool !== null &&
            (n = t.memoizedState.cachePool.pool),
          (l = null),
          e.memoizedState !== null &&
            e.memoizedState.cachePool !== null &&
            (l = e.memoizedState.cachePool.pool),
          l !== n && (e.flags |= 2048),
          t !== null && H(_l),
          null
        );
      case 24:
        return (
          (n = null),
          t !== null && (n = t.memoizedState.cache),
          e.memoizedState.cache !== n && (e.flags |= 2048),
          En(Kt),
          Yt(e),
          null
        );
      case 25:
        return null;
      case 30:
        return null;
    }
    throw Error(s(156, e.tag));
  }
  function Ey(t, e) {
    switch ((es(e), e.tag)) {
      case 1:
        return (
          (t = e.flags),
          t & 65536 ? ((e.flags = (t & -65537) | 128), e) : null
        );
      case 3:
        return (
          En(Kt),
          Ot(),
          (t = e.flags),
          (t & 65536) !== 0 && (t & 128) === 0
            ? ((e.flags = (t & -65537) | 128), e)
            : null
        );
      case 26:
      case 27:
      case 5:
        return (de(e), null);
      case 31:
        if (e.memoizedState !== null) {
          if ((Re(e), e.alternate === null)) throw Error(s(340));
          Ol();
        }
        return (
          (t = e.flags),
          t & 65536 ? ((e.flags = (t & -65537) | 128), e) : null
        );
      case 13:
        if (
          (Re(e), (t = e.memoizedState), t !== null && t.dehydrated !== null)
        ) {
          if (e.alternate === null) throw Error(s(340));
          Ol();
        }
        return (
          (t = e.flags),
          t & 65536 ? ((e.flags = (t & -65537) | 128), e) : null
        );
      case 19:
        return (H(Qt), null);
      case 4:
        return (Ot(), null);
      case 10:
        return (En(e.type), null);
      case 22:
      case 23:
        return (
          Re(e),
          ps(),
          t !== null && H(_l),
          (t = e.flags),
          t & 65536 ? ((e.flags = (t & -65537) | 128), e) : null
        );
      case 24:
        return (En(Kt), null);
      case 25:
        return null;
      default:
        return null;
    }
  }
  function Yd(t, e) {
    switch ((es(e), e.tag)) {
      case 3:
        (En(Kt), Ot());
        break;
      case 26:
      case 27:
      case 5:
        de(e);
        break;
      case 4:
        Ot();
        break;
      case 31:
        e.memoizedState !== null && Re(e);
        break;
      case 13:
        Re(e);
        break;
      case 19:
        H(Qt);
        break;
      case 10:
        En(e.type);
        break;
      case 22:
      case 23:
        (Re(e), ps(), t !== null && H(_l));
        break;
      case 24:
        En(Kt);
    }
  }
  function pi(t, e) {
    try {
      var n = e.updateQueue,
        l = n !== null ? n.lastEffect : null;
      if (l !== null) {
        var a = l.next;
        n = a;
        do {
          if ((n.tag & t) === t) {
            l = void 0;
            var o = n.create,
              c = n.inst;
            ((l = o()), (c.destroy = l));
          }
          n = n.next;
        } while (n !== a);
      }
    } catch (m) {
      Dt(e, e.return, m);
    }
  }
  function Pn(t, e, n) {
    try {
      var l = e.updateQueue,
        a = l !== null ? l.lastEffect : null;
      if (a !== null) {
        var o = a.next;
        l = o;
        do {
          if ((l.tag & t) === t) {
            var c = l.inst,
              m = c.destroy;
            if (m !== void 0) {
              ((c.destroy = void 0), (a = e));
              var S = n,
                N = m;
              try {
                N();
              } catch (L) {
                Dt(a, S, L);
              }
            }
          }
          l = l.next;
        } while (l !== o);
      }
    } catch (L) {
      Dt(e, e.return, L);
    }
  }
  function qd(t) {
    var e = t.updateQueue;
    if (e !== null) {
      var n = t.stateNode;
      try {
        _f(e, n);
      } catch (l) {
        Dt(t, t.return, l);
      }
    }
  }
  function Gd(t, e, n) {
    ((n.props = Ul(t.type, t.memoizedProps)), (n.state = t.memoizedState));
    try {
      n.componentWillUnmount();
    } catch (l) {
      Dt(t, e, l);
    }
  }
  function yi(t, e) {
    try {
      var n = t.ref;
      if (n !== null) {
        switch (t.tag) {
          case 26:
          case 27:
          case 5:
            var l = t.stateNode;
            break;
          case 30:
            l = t.stateNode;
            break;
          default:
            l = t.stateNode;
        }
        typeof n == "function" ? (t.refCleanup = n(l)) : (n.current = l);
      }
    } catch (a) {
      Dt(t, e, a);
    }
  }
  function un(t, e) {
    var n = t.ref,
      l = t.refCleanup;
    if (n !== null)
      if (typeof l == "function")
        try {
          l();
        } catch (a) {
          Dt(t, e, a);
        } finally {
          ((t.refCleanup = null),
            (t = t.alternate),
            t != null && (t.refCleanup = null));
        }
      else if (typeof n == "function")
        try {
          n(null);
        } catch (a) {
          Dt(t, e, a);
        }
      else n.current = null;
  }
  function Vd(t) {
    var e = t.type,
      n = t.memoizedProps,
      l = t.stateNode;
    try {
      t: switch (e) {
        case "button":
        case "input":
        case "select":
        case "textarea":
          n.autoFocus && l.focus();
          break t;
        case "img":
          n.src ? (l.src = n.src) : n.srcSet && (l.srcset = n.srcSet);
      }
    } catch (a) {
      Dt(t, t.return, a);
    }
  }
  function Js(t, e, n) {
    try {
      var l = t.stateNode;
      (ky(l, t.type, n, e), (l[xe] = e));
    } catch (a) {
      Dt(t, t.return, a);
    }
  }
  function Xd(t) {
    return (
      t.tag === 5 ||
      t.tag === 3 ||
      t.tag === 26 ||
      (t.tag === 27 && il(t.type)) ||
      t.tag === 4
    );
  }
  function $s(t) {
    t: for (;;) {
      for (; t.sibling === null; ) {
        if (t.return === null || Xd(t.return)) return null;
        t = t.return;
      }
      for (
        t.sibling.return = t.return, t = t.sibling;
        t.tag !== 5 && t.tag !== 6 && t.tag !== 18;

      ) {
        if (
          (t.tag === 27 && il(t.type)) ||
          t.flags & 2 ||
          t.child === null ||
          t.tag === 4
        )
          continue t;
        ((t.child.return = t), (t = t.child));
      }
      if (!(t.flags & 2)) return t.stateNode;
    }
  }
  function Ws(t, e, n) {
    var l = t.tag;
    if (l === 5 || l === 6)
      ((t = t.stateNode),
        e
          ? (n.nodeType === 9
              ? n.body
              : n.nodeName === "HTML"
                ? n.ownerDocument.body
                : n
            ).insertBefore(t, e)
          : ((e =
              n.nodeType === 9
                ? n.body
                : n.nodeName === "HTML"
                  ? n.ownerDocument.body
                  : n),
            e.appendChild(t),
            (n = n._reactRootContainer),
            n != null || e.onclick !== null || (e.onclick = yn)));
    else if (
      l !== 4 &&
      (l === 27 && il(t.type) && ((n = t.stateNode), (e = null)),
      (t = t.child),
      t !== null)
    )
      for (Ws(t, e, n), t = t.sibling; t !== null; )
        (Ws(t, e, n), (t = t.sibling));
  }
  function Co(t, e, n) {
    var l = t.tag;
    if (l === 5 || l === 6)
      ((t = t.stateNode), e ? n.insertBefore(t, e) : n.appendChild(t));
    else if (
      l !== 4 &&
      (l === 27 && il(t.type) && (n = t.stateNode), (t = t.child), t !== null)
    )
      for (Co(t, e, n), t = t.sibling; t !== null; )
        (Co(t, e, n), (t = t.sibling));
  }
  function kd(t) {
    var e = t.stateNode,
      n = t.memoizedProps;
    try {
      for (var l = t.type, a = e.attributes; a.length; )
        e.removeAttributeNode(a[0]);
      (se(e, l, n), (e[ae] = t), (e[xe] = n));
    } catch (o) {
      Dt(t, t.return, o);
    }
  }
  var On = !1,
    Wt = !1,
    Fs = !1,
    Qd = typeof WeakSet == "function" ? WeakSet : Set,
    ee = null;
  function Ty(t, e) {
    if (((t = t.containerInfo), (vr = $o), (t = nf(t)), ku(t))) {
      if ("selectionStart" in t)
        var n = { start: t.selectionStart, end: t.selectionEnd };
      else
        t: {
          n = ((n = t.ownerDocument) && n.defaultView) || window;
          var l = n.getSelection && n.getSelection();
          if (l && l.rangeCount !== 0) {
            n = l.anchorNode;
            var a = l.anchorOffset,
              o = l.focusNode;
            l = l.focusOffset;
            try {
              (n.nodeType, o.nodeType);
            } catch {
              n = null;
              break t;
            }
            var c = 0,
              m = -1,
              S = -1,
              N = 0,
              L = 0,
              G = t,
              M = null;
            e: for (;;) {
              for (
                var j;
                G !== n || (a !== 0 && G.nodeType !== 3) || (m = c + a),
                  G !== o || (l !== 0 && G.nodeType !== 3) || (S = c + l),
                  G.nodeType === 3 && (c += G.nodeValue.length),
                  (j = G.firstChild) !== null;

              )
                ((M = G), (G = j));
              for (;;) {
                if (G === t) break e;
                if (
                  (M === n && ++N === a && (m = c),
                  M === o && ++L === l && (S = c),
                  (j = G.nextSibling) !== null)
                )
                  break;
                ((G = M), (M = G.parentNode));
              }
              G = j;
            }
            n = m === -1 || S === -1 ? null : { start: m, end: S };
          } else n = null;
        }
      n = n || { start: 0, end: 0 };
    } else n = null;
    for (
      br = { focusedElem: t, selectionRange: n }, $o = !1, ee = e;
      ee !== null;

    )
      if (
        ((e = ee), (t = e.child), (e.subtreeFlags & 1028) !== 0 && t !== null)
      )
        ((t.return = e), (ee = t));
      else
        for (; ee !== null; ) {
          switch (((e = ee), (o = e.alternate), (t = e.flags), e.tag)) {
            case 0:
              if (
                (t & 4) !== 0 &&
                ((t = e.updateQueue),
                (t = t !== null ? t.events : null),
                t !== null)
              )
                for (n = 0; n < t.length; n++)
                  ((a = t[n]), (a.ref.impl = a.nextImpl));
              break;
            case 11:
            case 15:
              break;
            case 1:
              if ((t & 1024) !== 0 && o !== null) {
                ((t = void 0),
                  (n = e),
                  (a = o.memoizedProps),
                  (o = o.memoizedState),
                  (l = n.stateNode));
                try {
                  var I = Ul(n.type, a);
                  ((t = l.getSnapshotBeforeUpdate(I, o)),
                    (l.__reactInternalSnapshotBeforeUpdate = t));
                } catch (rt) {
                  Dt(n, n.return, rt);
                }
              }
              break;
            case 3:
              if ((t & 1024) !== 0) {
                if (
                  ((t = e.stateNode.containerInfo), (n = t.nodeType), n === 9)
                )
                  Er(t);
                else if (n === 1)
                  switch (t.nodeName) {
                    case "HEAD":
                    case "HTML":
                    case "BODY":
                      Er(t);
                      break;
                    default:
                      t.textContent = "";
                  }
              }
              break;
            case 5:
            case 26:
            case 27:
            case 6:
            case 4:
            case 17:
              break;
            default:
              if ((t & 1024) !== 0) throw Error(s(163));
          }
          if (((t = e.sibling), t !== null)) {
            ((t.return = e.return), (ee = t));
            break;
          }
          ee = e.return;
        }
  }
  function Zd(t, e, n) {
    var l = n.flags;
    switch (n.tag) {
      case 0:
      case 11:
      case 15:
        (Nn(t, n), l & 4 && pi(5, n));
        break;
      case 1:
        if ((Nn(t, n), l & 4))
          if (((t = n.stateNode), e === null))
            try {
              t.componentDidMount();
            } catch (c) {
              Dt(n, n.return, c);
            }
          else {
            var a = Ul(n.type, e.memoizedProps);
            e = e.memoizedState;
            try {
              t.componentDidUpdate(a, e, t.__reactInternalSnapshotBeforeUpdate);
            } catch (c) {
              Dt(n, n.return, c);
            }
          }
        (l & 64 && qd(n), l & 512 && yi(n, n.return));
        break;
      case 3:
        if ((Nn(t, n), l & 64 && ((t = n.updateQueue), t !== null))) {
          if (((e = null), n.child !== null))
            switch (n.child.tag) {
              case 27:
              case 5:
                e = n.child.stateNode;
                break;
              case 1:
                e = n.child.stateNode;
            }
          try {
            _f(t, e);
          } catch (c) {
            Dt(n, n.return, c);
          }
        }
        break;
      case 27:
        e === null && l & 4 && kd(n);
      case 26:
      case 5:
        (Nn(t, n), e === null && l & 4 && Vd(n), l & 512 && yi(n, n.return));
        break;
      case 12:
        Nn(t, n);
        break;
      case 31:
        (Nn(t, n), l & 4 && $d(t, n));
        break;
      case 13:
        (Nn(t, n),
          l & 4 && Wd(t, n),
          l & 64 &&
            ((t = n.memoizedState),
            t !== null &&
              ((t = t.dehydrated),
              t !== null && ((n = Ry.bind(null, n)), Py(t, n)))));
        break;
      case 22:
        if (((l = n.memoizedState !== null || On), !l)) {
          ((e = (e !== null && e.memoizedState !== null) || Wt), (a = On));
          var o = Wt;
          ((On = l),
            (Wt = e) && !o ? _n(t, n, (n.subtreeFlags & 8772) !== 0) : Nn(t, n),
            (On = a),
            (Wt = o));
        }
        break;
      case 30:
        break;
      default:
        Nn(t, n);
    }
  }
  function Kd(t) {
    var e = t.alternate;
    (e !== null && ((t.alternate = null), Kd(e)),
      (t.child = null),
      (t.deletions = null),
      (t.sibling = null),
      t.tag === 5 && ((e = t.stateNode), e !== null && Ou(e)),
      (t.stateNode = null),
      (t.return = null),
      (t.dependencies = null),
      (t.memoizedProps = null),
      (t.memoizedState = null),
      (t.pendingProps = null),
      (t.stateNode = null),
      (t.updateQueue = null));
  }
  var Gt = null,
    Ee = !1;
  function Cn(t, e, n) {
    for (n = n.child; n !== null; ) (Jd(t, e, n), (n = n.sibling));
  }
  function Jd(t, e, n) {
    if (ge && typeof ge.onCommitFiberUnmount == "function")
      try {
        ge.onCommitFiberUnmount(vl, n);
      } catch {}
    switch (n.tag) {
      case 26:
        (Wt || un(n, e),
          Cn(t, e, n),
          n.memoizedState
            ? n.memoizedState.count--
            : n.stateNode && ((n = n.stateNode), n.parentNode.removeChild(n)));
        break;
      case 27:
        Wt || un(n, e);
        var l = Gt,
          a = Ee;
        (il(n.type) && ((Gt = n.stateNode), (Ee = !1)),
          Cn(t, e, n),
          zi(n.stateNode),
          (Gt = l),
          (Ee = a));
        break;
      case 5:
        Wt || un(n, e);
      case 6:
        if (
          ((l = Gt),
          (a = Ee),
          (Gt = null),
          Cn(t, e, n),
          (Gt = l),
          (Ee = a),
          Gt !== null)
        )
          if (Ee)
            try {
              (Gt.nodeType === 9
                ? Gt.body
                : Gt.nodeName === "HTML"
                  ? Gt.ownerDocument.body
                  : Gt
              ).removeChild(n.stateNode);
            } catch (o) {
              Dt(n, e, o);
            }
          else
            try {
              Gt.removeChild(n.stateNode);
            } catch (o) {
              Dt(n, e, o);
            }
        break;
      case 18:
        Gt !== null &&
          (Ee
            ? ((t = Gt),
              qm(
                t.nodeType === 9
                  ? t.body
                  : t.nodeName === "HTML"
                    ? t.ownerDocument.body
                    : t,
                n.stateNode
              ),
              Na(t))
            : qm(Gt, n.stateNode));
        break;
      case 4:
        ((l = Gt),
          (a = Ee),
          (Gt = n.stateNode.containerInfo),
          (Ee = !0),
          Cn(t, e, n),
          (Gt = l),
          (Ee = a));
        break;
      case 0:
      case 11:
      case 14:
      case 15:
        (Pn(2, n, e), Wt || Pn(4, n, e), Cn(t, e, n));
        break;
      case 1:
        (Wt ||
          (un(n, e),
          (l = n.stateNode),
          typeof l.componentWillUnmount == "function" && Gd(n, e, l)),
          Cn(t, e, n));
        break;
      case 21:
        Cn(t, e, n);
        break;
      case 22:
        ((Wt = (l = Wt) || n.memoizedState !== null), Cn(t, e, n), (Wt = l));
        break;
      default:
        Cn(t, e, n);
    }
  }
  function $d(t, e) {
    if (
      e.memoizedState === null &&
      ((t = e.alternate), t !== null && ((t = t.memoizedState), t !== null))
    ) {
      t = t.dehydrated;
      try {
        Na(t);
      } catch (n) {
        Dt(e, e.return, n);
      }
    }
  }
  function Wd(t, e) {
    if (
      e.memoizedState === null &&
      ((t = e.alternate),
      t !== null &&
        ((t = t.memoizedState), t !== null && ((t = t.dehydrated), t !== null)))
    )
      try {
        Na(t);
      } catch (n) {
        Dt(e, e.return, n);
      }
  }
  function wy(t) {
    switch (t.tag) {
      case 31:
      case 13:
      case 19:
        var e = t.stateNode;
        return (e === null && (e = t.stateNode = new Qd()), e);
      case 22:
        return (
          (t = t.stateNode),
          (e = t._retryCache),
          e === null && (e = t._retryCache = new Qd()),
          e
        );
      default:
        throw Error(s(435, t.tag));
    }
  }
  function No(t, e) {
    var n = wy(t);
    e.forEach(function (l) {
      if (!n.has(l)) {
        n.add(l);
        var a = Dy.bind(null, t, l);
        l.then(a, a);
      }
    });
  }
  function Te(t, e) {
    var n = e.deletions;
    if (n !== null)
      for (var l = 0; l < n.length; l++) {
        var a = n[l],
          o = t,
          c = e,
          m = c;
        t: for (; m !== null; ) {
          switch (m.tag) {
            case 27:
              if (il(m.type)) {
                ((Gt = m.stateNode), (Ee = !1));
                break t;
              }
              break;
            case 5:
              ((Gt = m.stateNode), (Ee = !1));
              break t;
            case 3:
            case 4:
              ((Gt = m.stateNode.containerInfo), (Ee = !0));
              break t;
          }
          m = m.return;
        }
        if (Gt === null) throw Error(s(160));
        (Jd(o, c, a),
          (Gt = null),
          (Ee = !1),
          (o = a.alternate),
          o !== null && (o.return = null),
          (a.return = null));
      }
    if (e.subtreeFlags & 13886)
      for (e = e.child; e !== null; ) (Fd(e, t), (e = e.sibling));
  }
  var Pe = null;
  function Fd(t, e) {
    var n = t.alternate,
      l = t.flags;
    switch (t.tag) {
      case 0:
      case 11:
      case 14:
      case 15:
        (Te(e, t),
          we(t),
          l & 4 && (Pn(3, t, t.return), pi(3, t), Pn(5, t, t.return)));
        break;
      case 1:
        (Te(e, t),
          we(t),
          l & 512 && (Wt || n === null || un(n, n.return)),
          l & 64 &&
            On &&
            ((t = t.updateQueue),
            t !== null &&
              ((l = t.callbacks),
              l !== null &&
                ((n = t.shared.hiddenCallbacks),
                (t.shared.hiddenCallbacks = n === null ? l : n.concat(l))))));
        break;
      case 26:
        var a = Pe;
        if (
          (Te(e, t),
          we(t),
          l & 512 && (Wt || n === null || un(n, n.return)),
          l & 4)
        ) {
          var o = n !== null ? n.memoizedState : null;
          if (((l = t.memoizedState), n === null))
            if (l === null)
              if (t.stateNode === null) {
                t: {
                  ((l = t.type),
                    (n = t.memoizedProps),
                    (a = a.ownerDocument || a));
                  e: switch (l) {
                    case "title":
                      ((o = a.getElementsByTagName("title")[0]),
                        (!o ||
                          o[ka] ||
                          o[ae] ||
                          o.namespaceURI === "http://www.w3.org/2000/svg" ||
                          o.hasAttribute("itemprop")) &&
                          ((o = a.createElement(l)),
                          a.head.insertBefore(
                            o,
                            a.querySelector("head > title")
                          )),
                        se(o, l, n),
                        (o[ae] = t),
                        te(o),
                        (l = o));
                      break t;
                    case "link":
                      var c = Fm("link", "href", a).get(l + (n.href || ""));
                      if (c) {
                        for (var m = 0; m < c.length; m++)
                          if (
                            ((o = c[m]),
                            o.getAttribute("href") ===
                              (n.href == null || n.href === ""
                                ? null
                                : n.href) &&
                              o.getAttribute("rel") ===
                                (n.rel == null ? null : n.rel) &&
                              o.getAttribute("title") ===
                                (n.title == null ? null : n.title) &&
                              o.getAttribute("crossorigin") ===
                                (n.crossOrigin == null ? null : n.crossOrigin))
                          ) {
                            c.splice(m, 1);
                            break e;
                          }
                      }
                      ((o = a.createElement(l)),
                        se(o, l, n),
                        a.head.appendChild(o));
                      break;
                    case "meta":
                      if (
                        (c = Fm("meta", "content", a).get(
                          l + (n.content || "")
                        ))
                      ) {
                        for (m = 0; m < c.length; m++)
                          if (
                            ((o = c[m]),
                            o.getAttribute("content") ===
                              (n.content == null ? null : "" + n.content) &&
                              o.getAttribute("name") ===
                                (n.name == null ? null : n.name) &&
                              o.getAttribute("property") ===
                                (n.property == null ? null : n.property) &&
                              o.getAttribute("http-equiv") ===
                                (n.httpEquiv == null ? null : n.httpEquiv) &&
                              o.getAttribute("charset") ===
                                (n.charSet == null ? null : n.charSet))
                          ) {
                            c.splice(m, 1);
                            break e;
                          }
                      }
                      ((o = a.createElement(l)),
                        se(o, l, n),
                        a.head.appendChild(o));
                      break;
                    default:
                      throw Error(s(468, l));
                  }
                  ((o[ae] = t), te(o), (l = o));
                }
                t.stateNode = l;
              } else Pm(a, t.type, t.stateNode);
            else t.stateNode = Wm(a, l, t.memoizedProps);
          else
            o !== l
              ? (o === null
                  ? n.stateNode !== null &&
                    ((n = n.stateNode), n.parentNode.removeChild(n))
                  : o.count--,
                l === null
                  ? Pm(a, t.type, t.stateNode)
                  : Wm(a, l, t.memoizedProps))
              : l === null &&
                t.stateNode !== null &&
                Js(t, t.memoizedProps, n.memoizedProps);
        }
        break;
      case 27:
        (Te(e, t),
          we(t),
          l & 512 && (Wt || n === null || un(n, n.return)),
          n !== null && l & 4 && Js(t, t.memoizedProps, n.memoizedProps));
        break;
      case 5:
        if (
          (Te(e, t),
          we(t),
          l & 512 && (Wt || n === null || un(n, n.return)),
          t.flags & 32)
        ) {
          a = t.stateNode;
          try {
            Pl(a, "");
          } catch (I) {
            Dt(t, t.return, I);
          }
        }
        (l & 4 &&
          t.stateNode != null &&
          ((a = t.memoizedProps), Js(t, a, n !== null ? n.memoizedProps : a)),
          l & 1024 && (Fs = !0));
        break;
      case 6:
        if ((Te(e, t), we(t), l & 4)) {
          if (t.stateNode === null) throw Error(s(162));
          ((l = t.memoizedProps), (n = t.stateNode));
          try {
            n.nodeValue = l;
          } catch (I) {
            Dt(t, t.return, I);
          }
        }
        break;
      case 3:
        if (
          ((Qo = null),
          (a = Pe),
          (Pe = Xo(e.containerInfo)),
          Te(e, t),
          (Pe = a),
          we(t),
          l & 4 && n !== null && n.memoizedState.isDehydrated)
        )
          try {
            Na(e.containerInfo);
          } catch (I) {
            Dt(t, t.return, I);
          }
        Fs && ((Fs = !1), Pd(t));
        break;
      case 4:
        ((l = Pe),
          (Pe = Xo(t.stateNode.containerInfo)),
          Te(e, t),
          we(t),
          (Pe = l));
        break;
      case 12:
        (Te(e, t), we(t));
        break;
      case 31:
        (Te(e, t),
          we(t),
          l & 4 &&
            ((l = t.updateQueue),
            l !== null && ((t.updateQueue = null), No(t, l))));
        break;
      case 13:
        (Te(e, t),
          we(t),
          t.child.flags & 8192 &&
            (t.memoizedState !== null) !=
              (n !== null && n.memoizedState !== null) &&
            (Mo = he()),
          l & 4 &&
            ((l = t.updateQueue),
            l !== null && ((t.updateQueue = null), No(t, l))));
        break;
      case 22:
        a = t.memoizedState !== null;
        var S = n !== null && n.memoizedState !== null,
          N = On,
          L = Wt;
        if (
          ((On = N || a),
          (Wt = L || S),
          Te(e, t),
          (Wt = L),
          (On = N),
          we(t),
          l & 8192)
        )
          t: for (
            e = t.stateNode,
              e._visibility = a ? e._visibility & -2 : e._visibility | 1,
              a && (n === null || S || On || Wt || Hl(t)),
              n = null,
              e = t;
            ;

          ) {
            if (e.tag === 5 || e.tag === 26) {
              if (n === null) {
                S = n = e;
                try {
                  if (((o = S.stateNode), a))
                    ((c = o.style),
                      typeof c.setProperty == "function"
                        ? c.setProperty("display", "none", "important")
                        : (c.display = "none"));
                  else {
                    m = S.stateNode;
                    var G = S.memoizedProps.style,
                      M =
                        G != null && G.hasOwnProperty("display")
                          ? G.display
                          : null;
                    m.style.display =
                      M == null || typeof M == "boolean" ? "" : ("" + M).trim();
                  }
                } catch (I) {
                  Dt(S, S.return, I);
                }
              }
            } else if (e.tag === 6) {
              if (n === null) {
                S = e;
                try {
                  S.stateNode.nodeValue = a ? "" : S.memoizedProps;
                } catch (I) {
                  Dt(S, S.return, I);
                }
              }
            } else if (e.tag === 18) {
              if (n === null) {
                S = e;
                try {
                  var j = S.stateNode;
                  a ? Gm(j, !0) : Gm(S.stateNode, !1);
                } catch (I) {
                  Dt(S, S.return, I);
                }
              }
            } else if (
              ((e.tag !== 22 && e.tag !== 23) ||
                e.memoizedState === null ||
                e === t) &&
              e.child !== null
            ) {
              ((e.child.return = e), (e = e.child));
              continue;
            }
            if (e === t) break t;
            for (; e.sibling === null; ) {
              if (e.return === null || e.return === t) break t;
              (n === e && (n = null), (e = e.return));
            }
            (n === e && (n = null),
              (e.sibling.return = e.return),
              (e = e.sibling));
          }
        l & 4 &&
          ((l = t.updateQueue),
          l !== null &&
            ((n = l.retryQueue),
            n !== null && ((l.retryQueue = null), No(t, n))));
        break;
      case 19:
        (Te(e, t),
          we(t),
          l & 4 &&
            ((l = t.updateQueue),
            l !== null && ((t.updateQueue = null), No(t, l))));
        break;
      case 30:
        break;
      case 21:
        break;
      default:
        (Te(e, t), we(t));
    }
  }
  function we(t) {
    var e = t.flags;
    if (e & 2) {
      try {
        for (var n, l = t.return; l !== null; ) {
          if (Xd(l)) {
            n = l;
            break;
          }
          l = l.return;
        }
        if (n == null) throw Error(s(160));
        switch (n.tag) {
          case 27:
            var a = n.stateNode,
              o = $s(t);
            Co(t, o, a);
            break;
          case 5:
            var c = n.stateNode;
            n.flags & 32 && (Pl(c, ""), (n.flags &= -33));
            var m = $s(t);
            Co(t, m, c);
            break;
          case 3:
          case 4:
            var S = n.stateNode.containerInfo,
              N = $s(t);
            Ws(t, N, S);
            break;
          default:
            throw Error(s(161));
        }
      } catch (L) {
        Dt(t, t.return, L);
      }
      t.flags &= -3;
    }
    e & 4096 && (t.flags &= -4097);
  }
  function Pd(t) {
    if (t.subtreeFlags & 1024)
      for (t = t.child; t !== null; ) {
        var e = t;
        (Pd(e),
          e.tag === 5 && e.flags & 1024 && e.stateNode.reset(),
          (t = t.sibling));
      }
  }
  function Nn(t, e) {
    if (e.subtreeFlags & 8772)
      for (e = e.child; e !== null; ) (Zd(t, e.alternate, e), (e = e.sibling));
  }
  function Hl(t) {
    for (t = t.child; t !== null; ) {
      var e = t;
      switch (e.tag) {
        case 0:
        case 11:
        case 14:
        case 15:
          (Pn(4, e, e.return), Hl(e));
          break;
        case 1:
          un(e, e.return);
          var n = e.stateNode;
          (typeof n.componentWillUnmount == "function" && Gd(e, e.return, n),
            Hl(e));
          break;
        case 27:
          zi(e.stateNode);
        case 26:
        case 5:
          (un(e, e.return), Hl(e));
          break;
        case 22:
          e.memoizedState === null && Hl(e);
          break;
        case 30:
          Hl(e);
          break;
        default:
          Hl(e);
      }
      t = t.sibling;
    }
  }
  function _n(t, e, n) {
    for (n = n && (e.subtreeFlags & 8772) !== 0, e = e.child; e !== null; ) {
      var l = e.alternate,
        a = t,
        o = e,
        c = o.flags;
      switch (o.tag) {
        case 0:
        case 11:
        case 15:
          (_n(a, o, n), pi(4, o));
          break;
        case 1:
          if (
            (_n(a, o, n),
            (l = o),
            (a = l.stateNode),
            typeof a.componentDidMount == "function")
          )
            try {
              a.componentDidMount();
            } catch (N) {
              Dt(l, l.return, N);
            }
          if (((l = o), (a = l.updateQueue), a !== null)) {
            var m = l.stateNode;
            try {
              var S = a.shared.hiddenCallbacks;
              if (S !== null)
                for (a.shared.hiddenCallbacks = null, a = 0; a < S.length; a++)
                  Nf(S[a], m);
            } catch (N) {
              Dt(l, l.return, N);
            }
          }
          (n && c & 64 && qd(o), yi(o, o.return));
          break;
        case 27:
          kd(o);
        case 26:
        case 5:
          (_n(a, o, n), n && l === null && c & 4 && Vd(o), yi(o, o.return));
          break;
        case 12:
          _n(a, o, n);
          break;
        case 31:
          (_n(a, o, n), n && c & 4 && $d(a, o));
          break;
        case 13:
          (_n(a, o, n), n && c & 4 && Wd(a, o));
          break;
        case 22:
          (o.memoizedState === null && _n(a, o, n), yi(o, o.return));
          break;
        case 30:
          break;
        default:
          _n(a, o, n);
      }
      e = e.sibling;
    }
  }
  function Ps(t, e) {
    var n = null;
    (t !== null &&
      t.memoizedState !== null &&
      t.memoizedState.cachePool !== null &&
      (n = t.memoizedState.cachePool.pool),
      (t = null),
      e.memoizedState !== null &&
        e.memoizedState.cachePool !== null &&
        (t = e.memoizedState.cachePool.pool),
      t !== n && (t != null && t.refCount++, n != null && li(n)));
  }
  function Is(t, e) {
    ((t = null),
      e.alternate !== null && (t = e.alternate.memoizedState.cache),
      (e = e.memoizedState.cache),
      e !== t && (e.refCount++, t != null && li(t)));
  }
  function Ie(t, e, n, l) {
    if (e.subtreeFlags & 10256)
      for (e = e.child; e !== null; ) (Id(t, e, n, l), (e = e.sibling));
  }
  function Id(t, e, n, l) {
    var a = e.flags;
    switch (e.tag) {
      case 0:
      case 11:
      case 15:
        (Ie(t, e, n, l), a & 2048 && pi(9, e));
        break;
      case 1:
        Ie(t, e, n, l);
        break;
      case 3:
        (Ie(t, e, n, l),
          a & 2048 &&
            ((t = null),
            e.alternate !== null && (t = e.alternate.memoizedState.cache),
            (e = e.memoizedState.cache),
            e !== t && (e.refCount++, t != null && li(t))));
        break;
      case 12:
        if (a & 2048) {
          (Ie(t, e, n, l), (t = e.stateNode));
          try {
            var o = e.memoizedProps,
              c = o.id,
              m = o.onPostCommit;
            typeof m == "function" &&
              m(
                c,
                e.alternate === null ? "mount" : "update",
                t.passiveEffectDuration,
                -0
              );
          } catch (S) {
            Dt(e, e.return, S);
          }
        } else Ie(t, e, n, l);
        break;
      case 31:
        Ie(t, e, n, l);
        break;
      case 13:
        Ie(t, e, n, l);
        break;
      case 23:
        break;
      case 22:
        ((o = e.stateNode),
          (c = e.alternate),
          e.memoizedState !== null
            ? o._visibility & 2
              ? Ie(t, e, n, l)
              : vi(t, e)
            : o._visibility & 2
              ? Ie(t, e, n, l)
              : ((o._visibility |= 2),
                va(t, e, n, l, (e.subtreeFlags & 10256) !== 0 || !1)),
          a & 2048 && Ps(c, e));
        break;
      case 24:
        (Ie(t, e, n, l), a & 2048 && Is(e.alternate, e));
        break;
      default:
        Ie(t, e, n, l);
    }
  }
  function va(t, e, n, l, a) {
    for (
      a = a && ((e.subtreeFlags & 10256) !== 0 || !1), e = e.child;
      e !== null;

    ) {
      var o = t,
        c = e,
        m = n,
        S = l,
        N = c.flags;
      switch (c.tag) {
        case 0:
        case 11:
        case 15:
          (va(o, c, m, S, a), pi(8, c));
          break;
        case 23:
          break;
        case 22:
          var L = c.stateNode;
          (c.memoizedState !== null
            ? L._visibility & 2
              ? va(o, c, m, S, a)
              : vi(o, c)
            : ((L._visibility |= 2), va(o, c, m, S, a)),
            a && N & 2048 && Ps(c.alternate, c));
          break;
        case 24:
          (va(o, c, m, S, a), a && N & 2048 && Is(c.alternate, c));
          break;
        default:
          va(o, c, m, S, a);
      }
      e = e.sibling;
    }
  }
  function vi(t, e) {
    if (e.subtreeFlags & 10256)
      for (e = e.child; e !== null; ) {
        var n = t,
          l = e,
          a = l.flags;
        switch (l.tag) {
          case 22:
            (vi(n, l), a & 2048 && Ps(l.alternate, l));
            break;
          case 24:
            (vi(n, l), a & 2048 && Is(l.alternate, l));
            break;
          default:
            vi(n, l);
        }
        e = e.sibling;
      }
  }
  var bi = 8192;
  function ba(t, e, n) {
    if (t.subtreeFlags & bi)
      for (t = t.child; t !== null; ) (tm(t, e, n), (t = t.sibling));
  }
  function tm(t, e, n) {
    switch (t.tag) {
      case 26:
        (ba(t, e, n),
          t.flags & bi &&
            t.memoizedState !== null &&
            cv(n, Pe, t.memoizedState, t.memoizedProps));
        break;
      case 5:
        ba(t, e, n);
        break;
      case 3:
      case 4:
        var l = Pe;
        ((Pe = Xo(t.stateNode.containerInfo)), ba(t, e, n), (Pe = l));
        break;
      case 22:
        t.memoizedState === null &&
          ((l = t.alternate),
          l !== null && l.memoizedState !== null
            ? ((l = bi), (bi = 16777216), ba(t, e, n), (bi = l))
            : ba(t, e, n));
        break;
      default:
        ba(t, e, n);
    }
  }
  function em(t) {
    var e = t.alternate;
    if (e !== null && ((t = e.child), t !== null)) {
      e.child = null;
      do ((e = t.sibling), (t.sibling = null), (t = e));
      while (t !== null);
    }
  }
  function xi(t) {
    var e = t.deletions;
    if ((t.flags & 16) !== 0) {
      if (e !== null)
        for (var n = 0; n < e.length; n++) {
          var l = e[n];
          ((ee = l), lm(l, t));
        }
      em(t);
    }
    if (t.subtreeFlags & 10256)
      for (t = t.child; t !== null; ) (nm(t), (t = t.sibling));
  }
  function nm(t) {
    switch (t.tag) {
      case 0:
      case 11:
      case 15:
        (xi(t), t.flags & 2048 && Pn(9, t, t.return));
        break;
      case 3:
        xi(t);
        break;
      case 12:
        xi(t);
        break;
      case 22:
        var e = t.stateNode;
        t.memoizedState !== null &&
        e._visibility & 2 &&
        (t.return === null || t.return.tag !== 13)
          ? ((e._visibility &= -3), _o(t))
          : xi(t);
        break;
      default:
        xi(t);
    }
  }
  function _o(t) {
    var e = t.deletions;
    if ((t.flags & 16) !== 0) {
      if (e !== null)
        for (var n = 0; n < e.length; n++) {
          var l = e[n];
          ((ee = l), lm(l, t));
        }
      em(t);
    }
    for (t = t.child; t !== null; ) {
      switch (((e = t), e.tag)) {
        case 0:
        case 11:
        case 15:
          (Pn(8, e, e.return), _o(e));
          break;
        case 22:
          ((n = e.stateNode),
            n._visibility & 2 && ((n._visibility &= -3), _o(e)));
          break;
        default:
          _o(e);
      }
      t = t.sibling;
    }
  }
  function lm(t, e) {
    for (; ee !== null; ) {
      var n = ee;
      switch (n.tag) {
        case 0:
        case 11:
        case 15:
          Pn(8, n, e);
          break;
        case 23:
        case 22:
          if (n.memoizedState !== null && n.memoizedState.cachePool !== null) {
            var l = n.memoizedState.cachePool.pool;
            l != null && l.refCount++;
          }
          break;
        case 24:
          li(n.memoizedState.cache);
      }
      if (((l = n.child), l !== null)) ((l.return = n), (ee = l));
      else
        t: for (n = t; ee !== null; ) {
          l = ee;
          var a = l.sibling,
            o = l.return;
          if ((Kd(l), l === n)) {
            ee = null;
            break t;
          }
          if (a !== null) {
            ((a.return = o), (ee = a));
            break t;
          }
          ee = o;
        }
    }
  }
  var Ay = {
      getCacheForType: function (t) {
        var e = oe(Kt),
          n = e.data.get(t);
        return (n === void 0 && ((n = t()), e.data.set(t, n)), n);
      },
      cacheSignal: function () {
        return oe(Kt).controller.signal;
      },
    },
    zy = typeof WeakMap == "function" ? WeakMap : Map,
    Mt = 0,
    Bt = null,
    Et = null,
    wt = 0,
    Rt = 0,
    De = null,
    In = !1,
    xa = !1,
    tr = !1,
    Mn = 0,
    kt = 0,
    tl = 0,
    Bl = 0,
    er = 0,
    je = 0,
    Sa = 0,
    Si = null,
    Ae = null,
    nr = !1,
    Mo = 0,
    am = 0,
    Ro = 1 / 0,
    Do = null,
    el = null,
    Ft = 0,
    nl = null,
    Ea = null,
    Rn = 0,
    lr = 0,
    ar = null,
    im = null,
    Ei = 0,
    ir = null;
  function Ue() {
    return (Mt & 2) !== 0 && wt !== 0 ? wt & -wt : w.T !== null ? fr() : Au();
  }
  function om() {
    if (je === 0)
      if ((wt & 536870912) === 0 || Ct) {
        var t = kl;
        ((kl <<= 1), (kl & 3932160) === 0 && (kl = 262144), (je = t));
      } else je = 536870912;
    return ((t = Me.current), t !== null && (t.flags |= 32), je);
  }
  function ze(t, e, n) {
    (((t === Bt && (Rt === 2 || Rt === 9)) || t.cancelPendingCommit !== null) &&
      (Ta(t, 0), ll(t, wt, je, !1)),
      Vt(t, n),
      ((Mt & 2) === 0 || t !== Bt) &&
        (t === Bt &&
          ((Mt & 2) === 0 && (Bl |= n), kt === 4 && ll(t, wt, je, !1)),
        sn(t)));
  }
  function um(t, e, n) {
    if ((Mt & 6) !== 0) throw Error(s(327));
    var l = (!n && (e & 127) === 0 && (e & t.expiredLanes) === 0) || qt(t, e),
      a = l ? Ny(t, e) : ur(t, e, !0),
      o = l;
    do {
      if (a === 0) {
        xa && !l && ll(t, e, 0, !1);
        break;
      } else {
        if (((n = t.current.alternate), o && !Oy(n))) {
          ((a = ur(t, e, !1)), (o = !1));
          continue;
        }
        if (a === 2) {
          if (((o = e), t.errorRecoveryDisabledLanes & o)) var c = 0;
          else
            ((c = t.pendingLanes & -536870913),
              (c = c !== 0 ? c : c & 536870912 ? 536870912 : 0));
          if (c !== 0) {
            e = c;
            t: {
              var m = t;
              a = Si;
              var S = m.current.memoizedState.isDehydrated;
              if ((S && (Ta(m, c).flags |= 256), (c = ur(m, c, !1)), c !== 2)) {
                if (tr && !S) {
                  ((m.errorRecoveryDisabledLanes |= o), (Bl |= o), (a = 4));
                  break t;
                }
                ((o = Ae),
                  (Ae = a),
                  o !== null &&
                    (Ae === null ? (Ae = o) : Ae.push.apply(Ae, o)));
              }
              a = c;
            }
            if (((o = !1), a !== 2)) continue;
          }
        }
        if (a === 1) {
          (Ta(t, 0), ll(t, e, 0, !0));
          break;
        }
        t: {
          switch (((l = t), (o = a), o)) {
            case 0:
            case 1:
              throw Error(s(345));
            case 4:
              if ((e & 4194048) !== e) break;
            case 6:
              ll(l, e, je, !In);
              break t;
            case 2:
              Ae = null;
              break;
            case 3:
            case 5:
              break;
            default:
              throw Error(s(329));
          }
          if ((e & 62914560) === e && ((a = Mo + 300 - he()), 10 < a)) {
            if ((ll(l, e, je, !In), dt(l, 0, !0) !== 0)) break t;
            ((Rn = e),
              (l.timeoutHandle = Lm(
                sm.bind(
                  null,
                  l,
                  n,
                  Ae,
                  Do,
                  nr,
                  e,
                  je,
                  Bl,
                  Sa,
                  In,
                  o,
                  "Throttled",
                  -0,
                  0
                ),
                a
              )));
            break t;
          }
          sm(l, n, Ae, Do, nr, e, je, Bl, Sa, In, o, null, -0, 0);
        }
      }
      break;
    } while (!0);
    sn(t);
  }
  function sm(t, e, n, l, a, o, c, m, S, N, L, G, M, j) {
    if (
      ((t.timeoutHandle = -1),
      (G = e.subtreeFlags),
      G & 8192 || (G & 16785408) === 16785408)
    ) {
      ((G = {
        stylesheets: null,
        count: 0,
        imgCount: 0,
        imgBytes: 0,
        suspenseyImages: [],
        waitingForImages: !0,
        waitingForViewTransition: !1,
        unsuspend: yn,
      }),
        tm(e, o, G));
      var I =
        (o & 62914560) === o ? Mo - he() : (o & 4194048) === o ? am - he() : 0;
      if (((I = fv(G, I)), I !== null)) {
        ((Rn = o),
          (t.cancelPendingCommit = I(
            pm.bind(null, t, e, o, n, l, a, c, m, S, L, G, null, M, j)
          )),
          ll(t, o, c, !N));
        return;
      }
    }
    pm(t, e, o, n, l, a, c, m, S);
  }
  function Oy(t) {
    for (var e = t; ; ) {
      var n = e.tag;
      if (
        (n === 0 || n === 11 || n === 15) &&
        e.flags & 16384 &&
        ((n = e.updateQueue), n !== null && ((n = n.stores), n !== null))
      )
        for (var l = 0; l < n.length; l++) {
          var a = n[l],
            o = a.getSnapshot;
          a = a.value;
          try {
            if (!Ne(o(), a)) return !1;
          } catch {
            return !1;
          }
        }
      if (((n = e.child), e.subtreeFlags & 16384 && n !== null))
        ((n.return = e), (e = n));
      else {
        if (e === t) break;
        for (; e.sibling === null; ) {
          if (e.return === null || e.return === t) return !0;
          e = e.return;
        }
        ((e.sibling.return = e.return), (e = e.sibling));
      }
    }
    return !0;
  }
  function ll(t, e, n, l) {
    ((e &= ~er),
      (e &= ~Bl),
      (t.suspendedLanes |= e),
      (t.pingedLanes &= ~e),
      l && (t.warmLanes |= e),
      (l = t.expirationTimes));
    for (var a = e; 0 < a; ) {
      var o = 31 - re(a),
        c = 1 << o;
      ((l[o] = -1), (a &= ~c));
    }
    n !== 0 && xl(t, n, e);
  }
  function jo() {
    return (Mt & 6) === 0 ? (Ti(0), !1) : !0;
  }
  function or() {
    if (Et !== null) {
      if (Rt === 0) var t = Et.return;
      else ((t = Et), (Sn = Cl = null), Es(t), (ma = null), (ii = 0), (t = Et));
      for (; t !== null; ) (Yd(t.alternate, t), (t = t.return));
      Et = null;
    }
  }
  function Ta(t, e) {
    var n = t.timeoutHandle;
    (n !== -1 && ((t.timeoutHandle = -1), Ky(n)),
      (n = t.cancelPendingCommit),
      n !== null && ((t.cancelPendingCommit = null), n()),
      (Rn = 0),
      or(),
      (Bt = t),
      (Et = n = bn(t.current, null)),
      (wt = e),
      (Rt = 0),
      (De = null),
      (In = !1),
      (xa = qt(t, e)),
      (tr = !1),
      (Sa = je = er = Bl = tl = kt = 0),
      (Ae = Si = null),
      (nr = !1),
      (e & 8) !== 0 && (e |= e & 32));
    var l = t.entangledLanes;
    if (l !== 0)
      for (t = t.entanglements, l &= e; 0 < l; ) {
        var a = 31 - re(l),
          o = 1 << a;
        ((e |= t[a]), (l &= ~o));
      }
    return ((Mn = e), to(), n);
  }
  function rm(t, e) {
    ((vt = null),
      (w.H = mi),
      e === da || e === so
        ? ((e = Af()), (Rt = 3))
        : e === cs
          ? ((e = Af()), (Rt = 4))
          : (Rt =
              e === Ls
                ? 8
                : e !== null &&
                    typeof e == "object" &&
                    typeof e.then == "function"
                  ? 6
                  : 1),
      (De = e),
      Et === null && ((kt = 1), To(t, Ge(e, t.current))));
  }
  function cm() {
    var t = Me.current;
    return t === null
      ? !0
      : (wt & 4194048) === wt
        ? Qe === null
        : (wt & 62914560) === wt || (wt & 536870912) !== 0
          ? t === Qe
          : !1;
  }
  function fm() {
    var t = w.H;
    return ((w.H = mi), t === null ? mi : t);
  }
  function dm() {
    var t = w.A;
    return ((w.A = Ay), t);
  }
  function Uo() {
    ((kt = 4),
      In || ((wt & 4194048) !== wt && Me.current !== null) || (xa = !0),
      ((tl & 134217727) === 0 && (Bl & 134217727) === 0) ||
        Bt === null ||
        ll(Bt, wt, je, !1));
  }
  function ur(t, e, n) {
    var l = Mt;
    Mt |= 2;
    var a = fm(),
      o = dm();
    ((Bt !== t || wt !== e) && ((Do = null), Ta(t, e)), (e = !1));
    var c = kt;
    t: do
      try {
        if (Rt !== 0 && Et !== null) {
          var m = Et,
            S = De;
          switch (Rt) {
            case 8:
              (or(), (c = 6));
              break t;
            case 3:
            case 2:
            case 9:
            case 6:
              Me.current === null && (e = !0);
              var N = Rt;
              if (((Rt = 0), (De = null), wa(t, m, S, N), n && xa)) {
                c = 0;
                break t;
              }
              break;
            default:
              ((N = Rt), (Rt = 0), (De = null), wa(t, m, S, N));
          }
        }
        (Cy(), (c = kt));
        break;
      } catch (L) {
        rm(t, L);
      }
    while (!0);
    return (
      e && t.shellSuspendCounter++,
      (Sn = Cl = null),
      (Mt = l),
      (w.H = a),
      (w.A = o),
      Et === null && ((Bt = null), (wt = 0), to()),
      c
    );
  }
  function Cy() {
    for (; Et !== null; ) mm(Et);
  }
  function Ny(t, e) {
    var n = Mt;
    Mt |= 2;
    var l = fm(),
      a = dm();
    Bt !== t || wt !== e
      ? ((Do = null), (Ro = he() + 500), Ta(t, e))
      : (xa = qt(t, e));
    t: do
      try {
        if (Rt !== 0 && Et !== null) {
          e = Et;
          var o = De;
          e: switch (Rt) {
            case 1:
              ((Rt = 0), (De = null), wa(t, e, o, 1));
              break;
            case 2:
            case 9:
              if (Tf(o)) {
                ((Rt = 0), (De = null), hm(e));
                break;
              }
              ((e = function () {
                ((Rt !== 2 && Rt !== 9) || Bt !== t || (Rt = 7), sn(t));
              }),
                o.then(e, e));
              break t;
            case 3:
              Rt = 7;
              break t;
            case 4:
              Rt = 5;
              break t;
            case 7:
              Tf(o)
                ? ((Rt = 0), (De = null), hm(e))
                : ((Rt = 0), (De = null), wa(t, e, o, 7));
              break;
            case 5:
              var c = null;
              switch (Et.tag) {
                case 26:
                  c = Et.memoizedState;
                case 5:
                case 27:
                  var m = Et;
                  if (c ? Im(c) : m.stateNode.complete) {
                    ((Rt = 0), (De = null));
                    var S = m.sibling;
                    if (S !== null) Et = S;
                    else {
                      var N = m.return;
                      N !== null ? ((Et = N), Ho(N)) : (Et = null);
                    }
                    break e;
                  }
              }
              ((Rt = 0), (De = null), wa(t, e, o, 5));
              break;
            case 6:
              ((Rt = 0), (De = null), wa(t, e, o, 6));
              break;
            case 8:
              (or(), (kt = 6));
              break t;
            default:
              throw Error(s(462));
          }
        }
        _y();
        break;
      } catch (L) {
        rm(t, L);
      }
    while (!0);
    return (
      (Sn = Cl = null),
      (w.H = l),
      (w.A = a),
      (Mt = n),
      Et !== null ? 0 : ((Bt = null), (wt = 0), to(), kt)
    );
  }
  function _y() {
    for (; Et !== null && !me(); ) mm(Et);
  }
  function mm(t) {
    var e = Bd(t.alternate, t, Mn);
    ((t.memoizedProps = t.pendingProps), e === null ? Ho(t) : (Et = e));
  }
  function hm(t) {
    var e = t,
      n = e.alternate;
    switch (e.tag) {
      case 15:
      case 0:
        e = Md(n, e, e.pendingProps, e.type, void 0, wt);
        break;
      case 11:
        e = Md(n, e, e.pendingProps, e.type.render, e.ref, wt);
        break;
      case 5:
        Es(e);
      default:
        (Yd(n, e), (e = Et = df(e, Mn)), (e = Bd(n, e, Mn)));
    }
    ((t.memoizedProps = t.pendingProps), e === null ? Ho(t) : (Et = e));
  }
  function wa(t, e, n, l) {
    ((Sn = Cl = null), Es(e), (ma = null), (ii = 0));
    var a = e.return;
    try {
      if (vy(t, a, e, n, wt)) {
        ((kt = 1), To(t, Ge(n, t.current)), (Et = null));
        return;
      }
    } catch (o) {
      if (a !== null) throw ((Et = a), o);
      ((kt = 1), To(t, Ge(n, t.current)), (Et = null));
      return;
    }
    e.flags & 32768
      ? (Ct || l === 1
          ? (t = !0)
          : xa || (wt & 536870912) !== 0
            ? (t = !1)
            : ((In = t = !0),
              (l === 2 || l === 9 || l === 3 || l === 6) &&
                ((l = Me.current),
                l !== null && l.tag === 13 && (l.flags |= 16384))),
        gm(e, t))
      : Ho(e);
  }
  function Ho(t) {
    var e = t;
    do {
      if ((e.flags & 32768) !== 0) {
        gm(e, In);
        return;
      }
      t = e.return;
      var n = Sy(e.alternate, e, Mn);
      if (n !== null) {
        Et = n;
        return;
      }
      if (((e = e.sibling), e !== null)) {
        Et = e;
        return;
      }
      Et = e = t;
    } while (e !== null);
    kt === 0 && (kt = 5);
  }
  function gm(t, e) {
    do {
      var n = Ey(t.alternate, t);
      if (n !== null) {
        ((n.flags &= 32767), (Et = n));
        return;
      }
      if (
        ((n = t.return),
        n !== null &&
          ((n.flags |= 32768), (n.subtreeFlags = 0), (n.deletions = null)),
        !e && ((t = t.sibling), t !== null))
      ) {
        Et = t;
        return;
      }
      Et = t = n;
    } while (t !== null);
    ((kt = 6), (Et = null));
  }
  function pm(t, e, n, l, a, o, c, m, S) {
    t.cancelPendingCommit = null;
    do Bo();
    while (Ft !== 0);
    if ((Mt & 6) !== 0) throw Error(s(327));
    if (e !== null) {
      if (e === t.current) throw Error(s(177));
      if (
        ((o = e.lanes | e.childLanes),
        (o |= $u),
        ye(t, n, o, c, m, S),
        t === Bt && ((Et = Bt = null), (wt = 0)),
        (Ea = e),
        (nl = t),
        (Rn = n),
        (lr = o),
        (ar = a),
        (im = l),
        (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0
          ? ((t.callbackNode = null),
            (t.callbackPriority = 0),
            jy(yl, function () {
              return (Sm(), null);
            }))
          : ((t.callbackNode = null), (t.callbackPriority = 0)),
        (l = (e.flags & 13878) !== 0),
        (e.subtreeFlags & 13878) !== 0 || l)
      ) {
        ((l = w.T), (w.T = null), (a = U.p), (U.p = 2), (c = Mt), (Mt |= 4));
        try {
          Ty(t, e, n);
        } finally {
          ((Mt = c), (U.p = a), (w.T = l));
        }
      }
      ((Ft = 1), ym(), vm(), bm());
    }
  }
  function ym() {
    if (Ft === 1) {
      Ft = 0;
      var t = nl,
        e = Ea,
        n = (e.flags & 13878) !== 0;
      if ((e.subtreeFlags & 13878) !== 0 || n) {
        ((n = w.T), (w.T = null));
        var l = U.p;
        U.p = 2;
        var a = Mt;
        Mt |= 4;
        try {
          Fd(e, t);
          var o = br,
            c = nf(t.containerInfo),
            m = o.focusedElem,
            S = o.selectionRange;
          if (
            c !== m &&
            m &&
            m.ownerDocument &&
            ef(m.ownerDocument.documentElement, m)
          ) {
            if (S !== null && ku(m)) {
              var N = S.start,
                L = S.end;
              if ((L === void 0 && (L = N), "selectionStart" in m))
                ((m.selectionStart = N),
                  (m.selectionEnd = Math.min(L, m.value.length)));
              else {
                var G = m.ownerDocument || document,
                  M = (G && G.defaultView) || window;
                if (M.getSelection) {
                  var j = M.getSelection(),
                    I = m.textContent.length,
                    rt = Math.min(S.start, I),
                    Ht = S.end === void 0 ? rt : Math.min(S.end, I);
                  !j.extend && rt > Ht && ((c = Ht), (Ht = rt), (rt = c));
                  var A = tf(m, rt),
                    T = tf(m, Ht);
                  if (
                    A &&
                    T &&
                    (j.rangeCount !== 1 ||
                      j.anchorNode !== A.node ||
                      j.anchorOffset !== A.offset ||
                      j.focusNode !== T.node ||
                      j.focusOffset !== T.offset)
                  ) {
                    var O = G.createRange();
                    (O.setStart(A.node, A.offset),
                      j.removeAllRanges(),
                      rt > Ht
                        ? (j.addRange(O), j.extend(T.node, T.offset))
                        : (O.setEnd(T.node, T.offset), j.addRange(O)));
                  }
                }
              }
            }
            for (G = [], j = m; (j = j.parentNode); )
              j.nodeType === 1 &&
                G.push({ element: j, left: j.scrollLeft, top: j.scrollTop });
            for (
              typeof m.focus == "function" && m.focus(), m = 0;
              m < G.length;
              m++
            ) {
              var q = G[m];
              ((q.element.scrollLeft = q.left), (q.element.scrollTop = q.top));
            }
          }
          (($o = !!vr), (br = vr = null));
        } finally {
          ((Mt = a), (U.p = l), (w.T = n));
        }
      }
      ((t.current = e), (Ft = 2));
    }
  }
  function vm() {
    if (Ft === 2) {
      Ft = 0;
      var t = nl,
        e = Ea,
        n = (e.flags & 8772) !== 0;
      if ((e.subtreeFlags & 8772) !== 0 || n) {
        ((n = w.T), (w.T = null));
        var l = U.p;
        U.p = 2;
        var a = Mt;
        Mt |= 4;
        try {
          Zd(t, e.alternate, e);
        } finally {
          ((Mt = a), (U.p = l), (w.T = n));
        }
      }
      Ft = 3;
    }
  }
  function bm() {
    if (Ft === 4 || Ft === 3) {
      ((Ft = 0), Ln());
      var t = nl,
        e = Ea,
        n = Rn,
        l = im;
      (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0
        ? (Ft = 5)
        : ((Ft = 0), (Ea = nl = null), xm(t, t.pendingLanes));
      var a = t.pendingLanes;
      if (
        (a === 0 && (el = null),
        We(n),
        (e = e.stateNode),
        ge && typeof ge.onCommitFiberRoot == "function")
      )
        try {
          ge.onCommitFiberRoot(vl, e, void 0, (e.current.flags & 128) === 128);
        } catch {}
      if (l !== null) {
        ((e = w.T), (a = U.p), (U.p = 2), (w.T = null));
        try {
          for (var o = t.onRecoverableError, c = 0; c < l.length; c++) {
            var m = l[c];
            o(m.value, { componentStack: m.stack });
          }
        } finally {
          ((w.T = e), (U.p = a));
        }
      }
      ((Rn & 3) !== 0 && Bo(),
        sn(t),
        (a = t.pendingLanes),
        (n & 261930) !== 0 && (a & 42) !== 0
          ? t === ir
            ? Ei++
            : ((Ei = 0), (ir = t))
          : (Ei = 0),
        Ti(0));
    }
  }
  function xm(t, e) {
    (t.pooledCacheLanes &= e) === 0 &&
      ((e = t.pooledCache), e != null && ((t.pooledCache = null), li(e)));
  }
  function Bo() {
    return (ym(), vm(), bm(), Sm());
  }
  function Sm() {
    if (Ft !== 5) return !1;
    var t = nl,
      e = lr;
    lr = 0;
    var n = We(Rn),
      l = w.T,
      a = U.p;
    try {
      ((U.p = 32 > n ? 32 : n), (w.T = null), (n = ar), (ar = null));
      var o = nl,
        c = Rn;
      if (((Ft = 0), (Ea = nl = null), (Rn = 0), (Mt & 6) !== 0))
        throw Error(s(331));
      var m = Mt;
      if (
        ((Mt |= 4),
        nm(o.current),
        Id(o, o.current, c, n),
        (Mt = m),
        Ti(0, !1),
        ge && typeof ge.onPostCommitFiberRoot == "function")
      )
        try {
          ge.onPostCommitFiberRoot(vl, o);
        } catch {}
      return !0;
    } finally {
      ((U.p = a), (w.T = l), xm(t, e));
    }
  }
  function Em(t, e, n) {
    ((e = Ge(n, e)),
      (e = Bs(t.stateNode, e, 2)),
      (t = $n(t, e, 2)),
      t !== null && (Vt(t, 2), sn(t)));
  }
  function Dt(t, e, n) {
    if (t.tag === 3) Em(t, t, n);
    else
      for (; e !== null; ) {
        if (e.tag === 3) {
          Em(e, t, n);
          break;
        } else if (e.tag === 1) {
          var l = e.stateNode;
          if (
            typeof e.type.getDerivedStateFromError == "function" ||
            (typeof l.componentDidCatch == "function" &&
              (el === null || !el.has(l)))
          ) {
            ((t = Ge(n, t)),
              (n = Td(2)),
              (l = $n(e, n, 2)),
              l !== null && (wd(n, l, e, t), Vt(l, 2), sn(l)));
            break;
          }
        }
        e = e.return;
      }
  }
  function sr(t, e, n) {
    var l = t.pingCache;
    if (l === null) {
      l = t.pingCache = new zy();
      var a = new Set();
      l.set(e, a);
    } else ((a = l.get(e)), a === void 0 && ((a = new Set()), l.set(e, a)));
    a.has(n) ||
      ((tr = !0), a.add(n), (t = My.bind(null, t, e, n)), e.then(t, t));
  }
  function My(t, e, n) {
    var l = t.pingCache;
    (l !== null && l.delete(e),
      (t.pingedLanes |= t.suspendedLanes & n),
      (t.warmLanes &= ~n),
      Bt === t &&
        (wt & n) === n &&
        (kt === 4 || (kt === 3 && (wt & 62914560) === wt && 300 > he() - Mo)
          ? (Mt & 2) === 0 && Ta(t, 0)
          : (er |= n),
        Sa === wt && (Sa = 0)),
      sn(t));
  }
  function Tm(t, e) {
    (e === 0 && (e = ce()), (t = Al(t, e)), t !== null && (Vt(t, e), sn(t)));
  }
  function Ry(t) {
    var e = t.memoizedState,
      n = 0;
    (e !== null && (n = e.retryLane), Tm(t, n));
  }
  function Dy(t, e) {
    var n = 0;
    switch (t.tag) {
      case 31:
      case 13:
        var l = t.stateNode,
          a = t.memoizedState;
        a !== null && (n = a.retryLane);
        break;
      case 19:
        l = t.stateNode;
        break;
      case 22:
        l = t.stateNode._retryCache;
        break;
      default:
        throw Error(s(314));
    }
    (l !== null && l.delete(e), Tm(t, n));
  }
  function jy(t, e) {
    return qa(t, e);
  }
  var Lo = null,
    Aa = null,
    rr = !1,
    Yo = !1,
    cr = !1,
    al = 0;
  function sn(t) {
    (t !== Aa &&
      t.next === null &&
      (Aa === null ? (Lo = Aa = t) : (Aa = Aa.next = t)),
      (Yo = !0),
      rr || ((rr = !0), Hy()));
  }
  function Ti(t, e) {
    if (!cr && Yo) {
      cr = !0;
      do
        for (var n = !1, l = Lo; l !== null; ) {
          if (t !== 0) {
            var a = l.pendingLanes;
            if (a === 0) var o = 0;
            else {
              var c = l.suspendedLanes,
                m = l.pingedLanes;
              ((o = (1 << (31 - re(42 | t) + 1)) - 1),
                (o &= a & ~(c & ~m)),
                (o = o & 201326741 ? (o & 201326741) | 1 : o ? o | 2 : 0));
            }
            o !== 0 && ((n = !0), Om(l, o));
          } else
            ((o = wt),
              (o = dt(
                l,
                l === Bt ? o : 0,
                l.cancelPendingCommit !== null || l.timeoutHandle !== -1
              )),
              (o & 3) === 0 || qt(l, o) || ((n = !0), Om(l, o)));
          l = l.next;
        }
      while (n);
      cr = !1;
    }
  }
  function Uy() {
    wm();
  }
  function wm() {
    Yo = rr = !1;
    var t = 0;
    al !== 0 && Zy() && (t = al);
    for (var e = he(), n = null, l = Lo; l !== null; ) {
      var a = l.next,
        o = Am(l, e);
      (o === 0
        ? ((l.next = null),
          n === null ? (Lo = a) : (n.next = a),
          a === null && (Aa = n))
        : ((n = l), (t !== 0 || (o & 3) !== 0) && (Yo = !0)),
        (l = a));
    }
    ((Ft !== 0 && Ft !== 5) || Ti(t), al !== 0 && (al = 0));
  }
  function Am(t, e) {
    for (
      var n = t.suspendedLanes,
        l = t.pingedLanes,
        a = t.expirationTimes,
        o = t.pendingLanes & -62914561;
      0 < o;

    ) {
      var c = 31 - re(o),
        m = 1 << c,
        S = a[c];
      (S === -1
        ? ((m & n) === 0 || (m & l) !== 0) && (a[c] = It(m, e))
        : S <= e && (t.expiredLanes |= m),
        (o &= ~m));
    }
    if (
      ((e = Bt),
      (n = wt),
      (n = dt(
        t,
        t === e ? n : 0,
        t.cancelPendingCommit !== null || t.timeoutHandle !== -1
      )),
      (l = t.callbackNode),
      n === 0 ||
        (t === e && (Rt === 2 || Rt === 9)) ||
        t.cancelPendingCommit !== null)
    )
      return (
        l !== null && l !== null && Ga(l),
        (t.callbackNode = null),
        (t.callbackPriority = 0)
      );
    if ((n & 3) === 0 || qt(t, n)) {
      if (((e = n & -n), e === t.callbackPriority)) return e;
      switch ((l !== null && Ga(l), We(n))) {
        case 2:
        case 8:
          n = Gi;
          break;
        case 32:
          n = yl;
          break;
        case 268435456:
          n = gn;
          break;
        default:
          n = yl;
      }
      return (
        (l = zm.bind(null, t)),
        (n = qa(n, l)),
        (t.callbackPriority = e),
        (t.callbackNode = n),
        e
      );
    }
    return (
      l !== null && l !== null && Ga(l),
      (t.callbackPriority = 2),
      (t.callbackNode = null),
      2
    );
  }
  function zm(t, e) {
    if (Ft !== 0 && Ft !== 5)
      return ((t.callbackNode = null), (t.callbackPriority = 0), null);
    var n = t.callbackNode;
    if (Bo() && t.callbackNode !== n) return null;
    var l = wt;
    return (
      (l = dt(
        t,
        t === Bt ? l : 0,
        t.cancelPendingCommit !== null || t.timeoutHandle !== -1
      )),
      l === 0
        ? null
        : (um(t, l, e),
          Am(t, he()),
          t.callbackNode != null && t.callbackNode === n
            ? zm.bind(null, t)
            : null)
    );
  }
  function Om(t, e) {
    if (Bo()) return null;
    um(t, e, !0);
  }
  function Hy() {
    Jy(function () {
      (Mt & 6) !== 0 ? qa(pl, Uy) : wm();
    });
  }
  function fr() {
    if (al === 0) {
      var t = ca;
      (t === 0 && ((t = Xl), (Xl <<= 1), (Xl & 261888) === 0 && (Xl = 256)),
        (al = t));
    }
    return al;
  }
  function Cm(t) {
    return t == null || typeof t == "symbol" || typeof t == "boolean"
      ? null
      : typeof t == "function"
        ? t
        : Zi("" + t);
  }
  function Nm(t, e) {
    var n = e.ownerDocument.createElement("input");
    return (
      (n.name = e.name),
      (n.value = e.value),
      t.id && n.setAttribute("form", t.id),
      e.parentNode.insertBefore(n, e),
      (t = new FormData(t)),
      n.parentNode.removeChild(n),
      t
    );
  }
  function By(t, e, n, l, a) {
    if (e === "submit" && n && n.stateNode === a) {
      var o = Cm((a[xe] || null).action),
        c = l.submitter;
      c &&
        ((e = (e = c[xe] || null)
          ? Cm(e.formAction)
          : c.getAttribute("formAction")),
        e !== null && ((o = e), (c = null)));
      var m = new Wi("action", "action", null, l, a);
      t.push({
        event: m,
        listeners: [
          {
            instance: null,
            listener: function () {
              if (l.defaultPrevented) {
                if (al !== 0) {
                  var S = c ? Nm(a, c) : new FormData(a);
                  Ms(
                    n,
                    { pending: !0, data: S, method: a.method, action: o },
                    null,
                    S
                  );
                }
              } else
                typeof o == "function" &&
                  (m.preventDefault(),
                  (S = c ? Nm(a, c) : new FormData(a)),
                  Ms(
                    n,
                    { pending: !0, data: S, method: a.method, action: o },
                    o,
                    S
                  ));
            },
            currentTarget: a,
          },
        ],
      });
    }
  }
  for (var dr = 0; dr < Ju.length; dr++) {
    var mr = Ju[dr],
      Ly = mr.toLowerCase(),
      Yy = mr[0].toUpperCase() + mr.slice(1);
    Fe(Ly, "on" + Yy);
  }
  (Fe(of, "onAnimationEnd"),
    Fe(uf, "onAnimationIteration"),
    Fe(sf, "onAnimationStart"),
    Fe("dblclick", "onDoubleClick"),
    Fe("focusin", "onFocus"),
    Fe("focusout", "onBlur"),
    Fe(ey, "onTransitionRun"),
    Fe(ny, "onTransitionStart"),
    Fe(ly, "onTransitionCancel"),
    Fe(rf, "onTransitionEnd"),
    Wl("onMouseEnter", ["mouseout", "mouseover"]),
    Wl("onMouseLeave", ["mouseout", "mouseover"]),
    Wl("onPointerEnter", ["pointerout", "pointerover"]),
    Wl("onPointerLeave", ["pointerout", "pointerover"]),
    Sl(
      "onChange",
      "change click focusin focusout input keydown keyup selectionchange".split(
        " "
      )
    ),
    Sl(
      "onSelect",
      "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
        " "
      )
    ),
    Sl("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]),
    Sl(
      "onCompositionEnd",
      "compositionend focusout keydown keypress keyup mousedown".split(" ")
    ),
    Sl(
      "onCompositionStart",
      "compositionstart focusout keydown keypress keyup mousedown".split(" ")
    ),
    Sl(
      "onCompositionUpdate",
      "compositionupdate focusout keydown keypress keyup mousedown".split(" ")
    ));
  var wi =
      "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(
        " "
      ),
    qy = new Set(
      "beforetoggle cancel close invalid load scroll scrollend toggle"
        .split(" ")
        .concat(wi)
    );
  function _m(t, e) {
    e = (e & 4) !== 0;
    for (var n = 0; n < t.length; n++) {
      var l = t[n],
        a = l.event;
      l = l.listeners;
      t: {
        var o = void 0;
        if (e)
          for (var c = l.length - 1; 0 <= c; c--) {
            var m = l[c],
              S = m.instance,
              N = m.currentTarget;
            if (((m = m.listener), S !== o && a.isPropagationStopped()))
              break t;
            ((o = m), (a.currentTarget = N));
            try {
              o(a);
            } catch (L) {
              Ii(L);
            }
            ((a.currentTarget = null), (o = S));
          }
        else
          for (c = 0; c < l.length; c++) {
            if (
              ((m = l[c]),
              (S = m.instance),
              (N = m.currentTarget),
              (m = m.listener),
              S !== o && a.isPropagationStopped())
            )
              break t;
            ((o = m), (a.currentTarget = N));
            try {
              o(a);
            } catch (L) {
              Ii(L);
            }
            ((a.currentTarget = null), (o = S));
          }
      }
    }
  }
  function Tt(t, e) {
    var n = e[zu];
    n === void 0 && (n = e[zu] = new Set());
    var l = t + "__bubble";
    n.has(l) || (Mm(e, t, 2, !1), n.add(l));
  }
  function hr(t, e, n) {
    var l = 0;
    (e && (l |= 4), Mm(n, t, l, e));
  }
  var qo = "_reactListening" + Math.random().toString(36).slice(2);
  function gr(t) {
    if (!t[qo]) {
      ((t[qo] = !0),
        Tc.forEach(function (n) {
          n !== "selectionchange" && (qy.has(n) || hr(n, !1, t), hr(n, !0, t));
        }));
      var e = t.nodeType === 9 ? t : t.ownerDocument;
      e === null || e[qo] || ((e[qo] = !0), hr("selectionchange", !1, e));
    }
  }
  function Mm(t, e, n, l) {
    switch (oh(e)) {
      case 2:
        var a = hv;
        break;
      case 8:
        a = gv;
        break;
      default:
        a = _r;
    }
    ((n = a.bind(null, e, n, t)),
      (a = void 0),
      !Uu ||
        (e !== "touchstart" && e !== "touchmove" && e !== "wheel") ||
        (a = !0),
      l
        ? a !== void 0
          ? t.addEventListener(e, n, { capture: !0, passive: a })
          : t.addEventListener(e, n, !0)
        : a !== void 0
          ? t.addEventListener(e, n, { passive: a })
          : t.addEventListener(e, n, !1));
  }
  function pr(t, e, n, l, a) {
    var o = l;
    if ((e & 1) === 0 && (e & 2) === 0 && l !== null)
      t: for (;;) {
        if (l === null) return;
        var c = l.tag;
        if (c === 3 || c === 4) {
          var m = l.stateNode.containerInfo;
          if (m === a) break;
          if (c === 4)
            for (c = l.return; c !== null; ) {
              var S = c.tag;
              if ((S === 3 || S === 4) && c.stateNode.containerInfo === a)
                return;
              c = c.return;
            }
          for (; m !== null; ) {
            if (((c = Kl(m)), c === null)) return;
            if (((S = c.tag), S === 5 || S === 6 || S === 26 || S === 27)) {
              l = o = c;
              continue t;
            }
            m = m.parentNode;
          }
        }
        l = l.return;
      }
    Uc(function () {
      var N = o,
        L = Du(n),
        G = [];
      t: {
        var M = cf.get(t);
        if (M !== void 0) {
          var j = Wi,
            I = t;
          switch (t) {
            case "keypress":
              if (Ji(n) === 0) break t;
            case "keydown":
            case "keyup":
              j = Dp;
              break;
            case "focusin":
              ((I = "focus"), (j = Yu));
              break;
            case "focusout":
              ((I = "blur"), (j = Yu));
              break;
            case "beforeblur":
            case "afterblur":
              j = Yu;
              break;
            case "click":
              if (n.button === 2) break t;
            case "auxclick":
            case "dblclick":
            case "mousedown":
            case "mousemove":
            case "mouseup":
            case "mouseout":
            case "mouseover":
            case "contextmenu":
              j = Lc;
              break;
            case "drag":
            case "dragend":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "dragstart":
            case "drop":
              j = Sp;
              break;
            case "touchcancel":
            case "touchend":
            case "touchmove":
            case "touchstart":
              j = Hp;
              break;
            case of:
            case uf:
            case sf:
              j = wp;
              break;
            case rf:
              j = Lp;
              break;
            case "scroll":
            case "scrollend":
              j = bp;
              break;
            case "wheel":
              j = qp;
              break;
            case "copy":
            case "cut":
            case "paste":
              j = zp;
              break;
            case "gotpointercapture":
            case "lostpointercapture":
            case "pointercancel":
            case "pointerdown":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "pointerup":
              j = qc;
              break;
            case "toggle":
            case "beforetoggle":
              j = Vp;
          }
          var rt = (e & 4) !== 0,
            Ht = !rt && (t === "scroll" || t === "scrollend"),
            A = rt ? (M !== null ? M + "Capture" : null) : M;
          rt = [];
          for (var T = N, O; T !== null; ) {
            var q = T;
            if (
              ((O = q.stateNode),
              (q = q.tag),
              (q !== 5 && q !== 26 && q !== 27) ||
                O === null ||
                A === null ||
                ((q = Za(T, A)), q != null && rt.push(Ai(T, q, O))),
              Ht)
            )
              break;
            T = T.return;
          }
          0 < rt.length &&
            ((M = new j(M, I, null, n, L)),
            G.push({ event: M, listeners: rt }));
        }
      }
      if ((e & 7) === 0) {
        t: {
          if (
            ((M = t === "mouseover" || t === "pointerover"),
            (j = t === "mouseout" || t === "pointerout"),
            M &&
              n !== Ru &&
              (I = n.relatedTarget || n.fromElement) &&
              (Kl(I) || I[Zl]))
          )
            break t;
          if (
            (j || M) &&
            ((M =
              L.window === L
                ? L
                : (M = L.ownerDocument)
                  ? M.defaultView || M.parentWindow
                  : window),
            j
              ? ((I = n.relatedTarget || n.toElement),
                (j = N),
                (I = I ? Kl(I) : null),
                I !== null &&
                  ((Ht = d(I)),
                  (rt = I.tag),
                  I !== Ht || (rt !== 5 && rt !== 27 && rt !== 6)) &&
                  (I = null))
              : ((j = null), (I = N)),
            j !== I)
          ) {
            if (
              ((rt = Lc),
              (q = "onMouseLeave"),
              (A = "onMouseEnter"),
              (T = "mouse"),
              (t === "pointerout" || t === "pointerover") &&
                ((rt = qc),
                (q = "onPointerLeave"),
                (A = "onPointerEnter"),
                (T = "pointer")),
              (Ht = j == null ? M : Qa(j)),
              (O = I == null ? M : Qa(I)),
              (M = new rt(q, T + "leave", j, n, L)),
              (M.target = Ht),
              (M.relatedTarget = O),
              (q = null),
              Kl(L) === N &&
                ((rt = new rt(A, T + "enter", I, n, L)),
                (rt.target = O),
                (rt.relatedTarget = Ht),
                (q = rt)),
              (Ht = q),
              j && I)
            )
              e: {
                for (rt = Gy, A = j, T = I, O = 0, q = A; q; q = rt(q)) O++;
                q = 0;
                for (var st = T; st; st = rt(st)) q++;
                for (; 0 < O - q; ) ((A = rt(A)), O--);
                for (; 0 < q - O; ) ((T = rt(T)), q--);
                for (; O--; ) {
                  if (A === T || (T !== null && A === T.alternate)) {
                    rt = A;
                    break e;
                  }
                  ((A = rt(A)), (T = rt(T)));
                }
                rt = null;
              }
            else rt = null;
            (j !== null && Rm(G, M, j, rt, !1),
              I !== null && Ht !== null && Rm(G, Ht, I, rt, !0));
          }
        }
        t: {
          if (
            ((M = N ? Qa(N) : window),
            (j = M.nodeName && M.nodeName.toLowerCase()),
            j === "select" || (j === "input" && M.type === "file"))
          )
            var Nt = Jc;
          else if (Zc(M))
            if ($c) Nt = Pp;
            else {
              Nt = Wp;
              var at = $p;
            }
          else
            ((j = M.nodeName),
              !j ||
              j.toLowerCase() !== "input" ||
              (M.type !== "checkbox" && M.type !== "radio")
                ? N && Mu(N.elementType) && (Nt = Jc)
                : (Nt = Fp));
          if (Nt && (Nt = Nt(t, N))) {
            Kc(G, Nt, n, L);
            break t;
          }
          (at && at(t, M, N),
            t === "focusout" &&
              N &&
              M.type === "number" &&
              N.memoizedProps.value != null &&
              _u(M, "number", M.value));
        }
        switch (((at = N ? Qa(N) : window), t)) {
          case "focusin":
            (Zc(at) || at.contentEditable === "true") &&
              ((na = at), (Qu = N), (ti = null));
            break;
          case "focusout":
            ti = Qu = na = null;
            break;
          case "mousedown":
            Zu = !0;
            break;
          case "contextmenu":
          case "mouseup":
          case "dragend":
            ((Zu = !1), lf(G, n, L));
            break;
          case "selectionchange":
            if (ty) break;
          case "keydown":
          case "keyup":
            lf(G, n, L);
        }
        var bt;
        if (Gu)
          t: {
            switch (t) {
              case "compositionstart":
                var At = "onCompositionStart";
                break t;
              case "compositionend":
                At = "onCompositionEnd";
                break t;
              case "compositionupdate":
                At = "onCompositionUpdate";
                break t;
            }
            At = void 0;
          }
        else
          ea
            ? kc(t, n) && (At = "onCompositionEnd")
            : t === "keydown" &&
              n.keyCode === 229 &&
              (At = "onCompositionStart");
        (At &&
          (Gc &&
            n.locale !== "ko" &&
            (ea || At !== "onCompositionStart"
              ? At === "onCompositionEnd" && ea && (bt = Hc())
              : ((Vn = L),
                (Hu = "value" in Vn ? Vn.value : Vn.textContent),
                (ea = !0))),
          (at = Go(N, At)),
          0 < at.length &&
            ((At = new Yc(At, t, null, n, L)),
            G.push({ event: At, listeners: at }),
            bt
              ? (At.data = bt)
              : ((bt = Qc(n)), bt !== null && (At.data = bt)))),
          (bt = kp ? Qp(t, n) : Zp(t, n)) &&
            ((At = Go(N, "onBeforeInput")),
            0 < At.length &&
              ((at = new Yc("onBeforeInput", "beforeinput", null, n, L)),
              G.push({ event: at, listeners: At }),
              (at.data = bt))),
          By(G, t, N, n, L));
      }
      _m(G, e);
    });
  }
  function Ai(t, e, n) {
    return { instance: t, listener: e, currentTarget: n };
  }
  function Go(t, e) {
    for (var n = e + "Capture", l = []; t !== null; ) {
      var a = t,
        o = a.stateNode;
      if (
        ((a = a.tag),
        (a !== 5 && a !== 26 && a !== 27) ||
          o === null ||
          ((a = Za(t, n)),
          a != null && l.unshift(Ai(t, a, o)),
          (a = Za(t, e)),
          a != null && l.push(Ai(t, a, o))),
        t.tag === 3)
      )
        return l;
      t = t.return;
    }
    return [];
  }
  function Gy(t) {
    if (t === null) return null;
    do t = t.return;
    while (t && t.tag !== 5 && t.tag !== 27);
    return t || null;
  }
  function Rm(t, e, n, l, a) {
    for (var o = e._reactName, c = []; n !== null && n !== l; ) {
      var m = n,
        S = m.alternate,
        N = m.stateNode;
      if (((m = m.tag), S !== null && S === l)) break;
      ((m !== 5 && m !== 26 && m !== 27) ||
        N === null ||
        ((S = N),
        a
          ? ((N = Za(n, o)), N != null && c.unshift(Ai(n, N, S)))
          : a || ((N = Za(n, o)), N != null && c.push(Ai(n, N, S)))),
        (n = n.return));
    }
    c.length !== 0 && t.push({ event: e, listeners: c });
  }
  var Vy = /\r\n?/g,
    Xy = /\u0000|\uFFFD/g;
  function Dm(t) {
    return (typeof t == "string" ? t : "" + t)
      .replace(
        Vy,
        `
`
      )
      .replace(Xy, "");
  }
  function jm(t, e) {
    return ((e = Dm(e)), Dm(t) === e);
  }
  function Ut(t, e, n, l, a, o) {
    switch (n) {
      case "children":
        typeof l == "string"
          ? e === "body" || (e === "textarea" && l === "") || Pl(t, l)
          : (typeof l == "number" || typeof l == "bigint") &&
            e !== "body" &&
            Pl(t, "" + l);
        break;
      case "className":
        ki(t, "class", l);
        break;
      case "tabIndex":
        ki(t, "tabindex", l);
        break;
      case "dir":
      case "role":
      case "viewBox":
      case "width":
      case "height":
        ki(t, n, l);
        break;
      case "style":
        Dc(t, l, o);
        break;
      case "data":
        if (e !== "object") {
          ki(t, "data", l);
          break;
        }
      case "src":
      case "href":
        if (l === "" && (e !== "a" || n !== "href")) {
          t.removeAttribute(n);
          break;
        }
        if (
          l == null ||
          typeof l == "function" ||
          typeof l == "symbol" ||
          typeof l == "boolean"
        ) {
          t.removeAttribute(n);
          break;
        }
        ((l = Zi("" + l)), t.setAttribute(n, l));
        break;
      case "action":
      case "formAction":
        if (typeof l == "function") {
          t.setAttribute(
            n,
            "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')"
          );
          break;
        } else
          typeof o == "function" &&
            (n === "formAction"
              ? (e !== "input" && Ut(t, e, "name", a.name, a, null),
                Ut(t, e, "formEncType", a.formEncType, a, null),
                Ut(t, e, "formMethod", a.formMethod, a, null),
                Ut(t, e, "formTarget", a.formTarget, a, null))
              : (Ut(t, e, "encType", a.encType, a, null),
                Ut(t, e, "method", a.method, a, null),
                Ut(t, e, "target", a.target, a, null)));
        if (l == null || typeof l == "symbol" || typeof l == "boolean") {
          t.removeAttribute(n);
          break;
        }
        ((l = Zi("" + l)), t.setAttribute(n, l));
        break;
      case "onClick":
        l != null && (t.onclick = yn);
        break;
      case "onScroll":
        l != null && Tt("scroll", t);
        break;
      case "onScrollEnd":
        l != null && Tt("scrollend", t);
        break;
      case "dangerouslySetInnerHTML":
        if (l != null) {
          if (typeof l != "object" || !("__html" in l)) throw Error(s(61));
          if (((n = l.__html), n != null)) {
            if (a.children != null) throw Error(s(60));
            t.innerHTML = n;
          }
        }
        break;
      case "multiple":
        t.multiple = l && typeof l != "function" && typeof l != "symbol";
        break;
      case "muted":
        t.muted = l && typeof l != "function" && typeof l != "symbol";
        break;
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "ref":
        break;
      case "autoFocus":
        break;
      case "xlinkHref":
        if (
          l == null ||
          typeof l == "function" ||
          typeof l == "boolean" ||
          typeof l == "symbol"
        ) {
          t.removeAttribute("xlink:href");
          break;
        }
        ((n = Zi("" + l)),
          t.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n));
        break;
      case "contentEditable":
      case "spellCheck":
      case "draggable":
      case "value":
      case "autoReverse":
      case "externalResourcesRequired":
      case "focusable":
      case "preserveAlpha":
        l != null && typeof l != "function" && typeof l != "symbol"
          ? t.setAttribute(n, "" + l)
          : t.removeAttribute(n);
        break;
      case "inert":
      case "allowFullScreen":
      case "async":
      case "autoPlay":
      case "controls":
      case "default":
      case "defer":
      case "disabled":
      case "disablePictureInPicture":
      case "disableRemotePlayback":
      case "formNoValidate":
      case "hidden":
      case "loop":
      case "noModule":
      case "noValidate":
      case "open":
      case "playsInline":
      case "readOnly":
      case "required":
      case "reversed":
      case "scoped":
      case "seamless":
      case "itemScope":
        l && typeof l != "function" && typeof l != "symbol"
          ? t.setAttribute(n, "")
          : t.removeAttribute(n);
        break;
      case "capture":
      case "download":
        l === !0
          ? t.setAttribute(n, "")
          : l !== !1 &&
              l != null &&
              typeof l != "function" &&
              typeof l != "symbol"
            ? t.setAttribute(n, l)
            : t.removeAttribute(n);
        break;
      case "cols":
      case "rows":
      case "size":
      case "span":
        l != null &&
        typeof l != "function" &&
        typeof l != "symbol" &&
        !isNaN(l) &&
        1 <= l
          ? t.setAttribute(n, l)
          : t.removeAttribute(n);
        break;
      case "rowSpan":
      case "start":
        l == null || typeof l == "function" || typeof l == "symbol" || isNaN(l)
          ? t.removeAttribute(n)
          : t.setAttribute(n, l);
        break;
      case "popover":
        (Tt("beforetoggle", t), Tt("toggle", t), Xi(t, "popover", l));
        break;
      case "xlinkActuate":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:actuate", l);
        break;
      case "xlinkArcrole":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:arcrole", l);
        break;
      case "xlinkRole":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:role", l);
        break;
      case "xlinkShow":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:show", l);
        break;
      case "xlinkTitle":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:title", l);
        break;
      case "xlinkType":
        pn(t, "http://www.w3.org/1999/xlink", "xlink:type", l);
        break;
      case "xmlBase":
        pn(t, "http://www.w3.org/XML/1998/namespace", "xml:base", l);
        break;
      case "xmlLang":
        pn(t, "http://www.w3.org/XML/1998/namespace", "xml:lang", l);
        break;
      case "xmlSpace":
        pn(t, "http://www.w3.org/XML/1998/namespace", "xml:space", l);
        break;
      case "is":
        Xi(t, "is", l);
        break;
      case "innerText":
      case "textContent":
        break;
      default:
        (!(2 < n.length) ||
          (n[0] !== "o" && n[0] !== "O") ||
          (n[1] !== "n" && n[1] !== "N")) &&
          ((n = yp.get(n) || n), Xi(t, n, l));
    }
  }
  function yr(t, e, n, l, a, o) {
    switch (n) {
      case "style":
        Dc(t, l, o);
        break;
      case "dangerouslySetInnerHTML":
        if (l != null) {
          if (typeof l != "object" || !("__html" in l)) throw Error(s(61));
          if (((n = l.__html), n != null)) {
            if (a.children != null) throw Error(s(60));
            t.innerHTML = n;
          }
        }
        break;
      case "children":
        typeof l == "string"
          ? Pl(t, l)
          : (typeof l == "number" || typeof l == "bigint") && Pl(t, "" + l);
        break;
      case "onScroll":
        l != null && Tt("scroll", t);
        break;
      case "onScrollEnd":
        l != null && Tt("scrollend", t);
        break;
      case "onClick":
        l != null && (t.onclick = yn);
        break;
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
      case "innerHTML":
      case "ref":
        break;
      case "innerText":
      case "textContent":
        break;
      default:
        if (!wc.hasOwnProperty(n))
          t: {
            if (
              n[0] === "o" &&
              n[1] === "n" &&
              ((a = n.endsWith("Capture")),
              (e = n.slice(2, a ? n.length - 7 : void 0)),
              (o = t[xe] || null),
              (o = o != null ? o[n] : null),
              typeof o == "function" && t.removeEventListener(e, o, a),
              typeof l == "function")
            ) {
              (typeof o != "function" &&
                o !== null &&
                (n in t
                  ? (t[n] = null)
                  : t.hasAttribute(n) && t.removeAttribute(n)),
                t.addEventListener(e, l, a));
              break t;
            }
            n in t
              ? (t[n] = l)
              : l === !0
                ? t.setAttribute(n, "")
                : Xi(t, n, l);
          }
    }
  }
  function se(t, e, n) {
    switch (e) {
      case "div":
      case "span":
      case "svg":
      case "path":
      case "a":
      case "g":
      case "p":
      case "li":
        break;
      case "img":
        (Tt("error", t), Tt("load", t));
        var l = !1,
          a = !1,
          o;
        for (o in n)
          if (n.hasOwnProperty(o)) {
            var c = n[o];
            if (c != null)
              switch (o) {
                case "src":
                  l = !0;
                  break;
                case "srcSet":
                  a = !0;
                  break;
                case "children":
                case "dangerouslySetInnerHTML":
                  throw Error(s(137, e));
                default:
                  Ut(t, e, o, c, n, null);
              }
          }
        (a && Ut(t, e, "srcSet", n.srcSet, n, null),
          l && Ut(t, e, "src", n.src, n, null));
        return;
      case "input":
        Tt("invalid", t);
        var m = (o = c = a = null),
          S = null,
          N = null;
        for (l in n)
          if (n.hasOwnProperty(l)) {
            var L = n[l];
            if (L != null)
              switch (l) {
                case "name":
                  a = L;
                  break;
                case "type":
                  c = L;
                  break;
                case "checked":
                  S = L;
                  break;
                case "defaultChecked":
                  N = L;
                  break;
                case "value":
                  o = L;
                  break;
                case "defaultValue":
                  m = L;
                  break;
                case "children":
                case "dangerouslySetInnerHTML":
                  if (L != null) throw Error(s(137, e));
                  break;
                default:
                  Ut(t, e, l, L, n, null);
              }
          }
        Nc(t, o, m, S, N, c, a, !1);
        return;
      case "select":
        (Tt("invalid", t), (l = c = o = null));
        for (a in n)
          if (n.hasOwnProperty(a) && ((m = n[a]), m != null))
            switch (a) {
              case "value":
                o = m;
                break;
              case "defaultValue":
                c = m;
                break;
              case "multiple":
                l = m;
              default:
                Ut(t, e, a, m, n, null);
            }
        ((e = o),
          (n = c),
          (t.multiple = !!l),
          e != null ? Fl(t, !!l, e, !1) : n != null && Fl(t, !!l, n, !0));
        return;
      case "textarea":
        (Tt("invalid", t), (o = a = l = null));
        for (c in n)
          if (n.hasOwnProperty(c) && ((m = n[c]), m != null))
            switch (c) {
              case "value":
                l = m;
                break;
              case "defaultValue":
                a = m;
                break;
              case "children":
                o = m;
                break;
              case "dangerouslySetInnerHTML":
                if (m != null) throw Error(s(91));
                break;
              default:
                Ut(t, e, c, m, n, null);
            }
        Mc(t, l, a, o);
        return;
      case "option":
        for (S in n)
          if (n.hasOwnProperty(S) && ((l = n[S]), l != null))
            switch (S) {
              case "selected":
                t.selected =
                  l && typeof l != "function" && typeof l != "symbol";
                break;
              default:
                Ut(t, e, S, l, n, null);
            }
        return;
      case "dialog":
        (Tt("beforetoggle", t),
          Tt("toggle", t),
          Tt("cancel", t),
          Tt("close", t));
        break;
      case "iframe":
      case "object":
        Tt("load", t);
        break;
      case "video":
      case "audio":
        for (l = 0; l < wi.length; l++) Tt(wi[l], t);
        break;
      case "image":
        (Tt("error", t), Tt("load", t));
        break;
      case "details":
        Tt("toggle", t);
        break;
      case "embed":
      case "source":
      case "link":
        (Tt("error", t), Tt("load", t));
      case "area":
      case "base":
      case "br":
      case "col":
      case "hr":
      case "keygen":
      case "meta":
      case "param":
      case "track":
      case "wbr":
      case "menuitem":
        for (N in n)
          if (n.hasOwnProperty(N) && ((l = n[N]), l != null))
            switch (N) {
              case "children":
              case "dangerouslySetInnerHTML":
                throw Error(s(137, e));
              default:
                Ut(t, e, N, l, n, null);
            }
        return;
      default:
        if (Mu(e)) {
          for (L in n)
            n.hasOwnProperty(L) &&
              ((l = n[L]), l !== void 0 && yr(t, e, L, l, n, void 0));
          return;
        }
    }
    for (m in n)
      n.hasOwnProperty(m) && ((l = n[m]), l != null && Ut(t, e, m, l, n, null));
  }
  function ky(t, e, n, l) {
    switch (e) {
      case "div":
      case "span":
      case "svg":
      case "path":
      case "a":
      case "g":
      case "p":
      case "li":
        break;
      case "input":
        var a = null,
          o = null,
          c = null,
          m = null,
          S = null,
          N = null,
          L = null;
        for (j in n) {
          var G = n[j];
          if (n.hasOwnProperty(j) && G != null)
            switch (j) {
              case "checked":
                break;
              case "value":
                break;
              case "defaultValue":
                S = G;
              default:
                l.hasOwnProperty(j) || Ut(t, e, j, null, l, G);
            }
        }
        for (var M in l) {
          var j = l[M];
          if (((G = n[M]), l.hasOwnProperty(M) && (j != null || G != null)))
            switch (M) {
              case "type":
                o = j;
                break;
              case "name":
                a = j;
                break;
              case "checked":
                N = j;
                break;
              case "defaultChecked":
                L = j;
                break;
              case "value":
                c = j;
                break;
              case "defaultValue":
                m = j;
                break;
              case "children":
              case "dangerouslySetInnerHTML":
                if (j != null) throw Error(s(137, e));
                break;
              default:
                j !== G && Ut(t, e, M, j, l, G);
            }
        }
        Nu(t, c, m, S, N, L, o, a);
        return;
      case "select":
        j = c = m = M = null;
        for (o in n)
          if (((S = n[o]), n.hasOwnProperty(o) && S != null))
            switch (o) {
              case "value":
                break;
              case "multiple":
                j = S;
              default:
                l.hasOwnProperty(o) || Ut(t, e, o, null, l, S);
            }
        for (a in l)
          if (
            ((o = l[a]),
            (S = n[a]),
            l.hasOwnProperty(a) && (o != null || S != null))
          )
            switch (a) {
              case "value":
                M = o;
                break;
              case "defaultValue":
                m = o;
                break;
              case "multiple":
                c = o;
              default:
                o !== S && Ut(t, e, a, o, l, S);
            }
        ((e = m),
          (n = c),
          (l = j),
          M != null
            ? Fl(t, !!n, M, !1)
            : !!l != !!n &&
              (e != null ? Fl(t, !!n, e, !0) : Fl(t, !!n, n ? [] : "", !1)));
        return;
      case "textarea":
        j = M = null;
        for (m in n)
          if (
            ((a = n[m]),
            n.hasOwnProperty(m) && a != null && !l.hasOwnProperty(m))
          )
            switch (m) {
              case "value":
                break;
              case "children":
                break;
              default:
                Ut(t, e, m, null, l, a);
            }
        for (c in l)
          if (
            ((a = l[c]),
            (o = n[c]),
            l.hasOwnProperty(c) && (a != null || o != null))
          )
            switch (c) {
              case "value":
                M = a;
                break;
              case "defaultValue":
                j = a;
                break;
              case "children":
                break;
              case "dangerouslySetInnerHTML":
                if (a != null) throw Error(s(91));
                break;
              default:
                a !== o && Ut(t, e, c, a, l, o);
            }
        _c(t, M, j);
        return;
      case "option":
        for (var I in n)
          if (
            ((M = n[I]),
            n.hasOwnProperty(I) && M != null && !l.hasOwnProperty(I))
          )
            switch (I) {
              case "selected":
                t.selected = !1;
                break;
              default:
                Ut(t, e, I, null, l, M);
            }
        for (S in l)
          if (
            ((M = l[S]),
            (j = n[S]),
            l.hasOwnProperty(S) && M !== j && (M != null || j != null))
          )
            switch (S) {
              case "selected":
                t.selected =
                  M && typeof M != "function" && typeof M != "symbol";
                break;
              default:
                Ut(t, e, S, M, l, j);
            }
        return;
      case "img":
      case "link":
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "keygen":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
      case "menuitem":
        for (var rt in n)
          ((M = n[rt]),
            n.hasOwnProperty(rt) &&
              M != null &&
              !l.hasOwnProperty(rt) &&
              Ut(t, e, rt, null, l, M));
        for (N in l)
          if (
            ((M = l[N]),
            (j = n[N]),
            l.hasOwnProperty(N) && M !== j && (M != null || j != null))
          )
            switch (N) {
              case "children":
              case "dangerouslySetInnerHTML":
                if (M != null) throw Error(s(137, e));
                break;
              default:
                Ut(t, e, N, M, l, j);
            }
        return;
      default:
        if (Mu(e)) {
          for (var Ht in n)
            ((M = n[Ht]),
              n.hasOwnProperty(Ht) &&
                M !== void 0 &&
                !l.hasOwnProperty(Ht) &&
                yr(t, e, Ht, void 0, l, M));
          for (L in l)
            ((M = l[L]),
              (j = n[L]),
              !l.hasOwnProperty(L) ||
                M === j ||
                (M === void 0 && j === void 0) ||
                yr(t, e, L, M, l, j));
          return;
        }
    }
    for (var A in n)
      ((M = n[A]),
        n.hasOwnProperty(A) &&
          M != null &&
          !l.hasOwnProperty(A) &&
          Ut(t, e, A, null, l, M));
    for (G in l)
      ((M = l[G]),
        (j = n[G]),
        !l.hasOwnProperty(G) ||
          M === j ||
          (M == null && j == null) ||
          Ut(t, e, G, M, l, j));
  }
  function Um(t) {
    switch (t) {
      case "css":
      case "script":
      case "font":
      case "img":
      case "image":
      case "input":
      case "link":
        return !0;
      default:
        return !1;
    }
  }
  function Qy() {
    if (typeof performance.getEntriesByType == "function") {
      for (
        var t = 0, e = 0, n = performance.getEntriesByType("resource"), l = 0;
        l < n.length;
        l++
      ) {
        var a = n[l],
          o = a.transferSize,
          c = a.initiatorType,
          m = a.duration;
        if (o && m && Um(c)) {
          for (c = 0, m = a.responseEnd, l += 1; l < n.length; l++) {
            var S = n[l],
              N = S.startTime;
            if (N > m) break;
            var L = S.transferSize,
              G = S.initiatorType;
            L &&
              Um(G) &&
              ((S = S.responseEnd), (c += L * (S < m ? 1 : (m - N) / (S - N))));
          }
          if ((--l, (e += (8 * (o + c)) / (a.duration / 1e3)), t++, 10 < t))
            break;
        }
      }
      if (0 < t) return e / t / 1e6;
    }
    return navigator.connection &&
      ((t = navigator.connection.downlink), typeof t == "number")
      ? t
      : 5;
  }
  var vr = null,
    br = null;
  function Vo(t) {
    return t.nodeType === 9 ? t : t.ownerDocument;
  }
  function Hm(t) {
    switch (t) {
      case "http://www.w3.org/2000/svg":
        return 1;
      case "http://www.w3.org/1998/Math/MathML":
        return 2;
      default:
        return 0;
    }
  }
  function Bm(t, e) {
    if (t === 0)
      switch (e) {
        case "svg":
          return 1;
        case "math":
          return 2;
        default:
          return 0;
      }
    return t === 1 && e === "foreignObject" ? 0 : t;
  }
  function xr(t, e) {
    return (
      t === "textarea" ||
      t === "noscript" ||
      typeof e.children == "string" ||
      typeof e.children == "number" ||
      typeof e.children == "bigint" ||
      (typeof e.dangerouslySetInnerHTML == "object" &&
        e.dangerouslySetInnerHTML !== null &&
        e.dangerouslySetInnerHTML.__html != null)
    );
  }
  var Sr = null;
  function Zy() {
    var t = window.event;
    return t && t.type === "popstate"
      ? t === Sr
        ? !1
        : ((Sr = t), !0)
      : ((Sr = null), !1);
  }
  var Lm = typeof setTimeout == "function" ? setTimeout : void 0,
    Ky = typeof clearTimeout == "function" ? clearTimeout : void 0,
    Ym = typeof Promise == "function" ? Promise : void 0,
    Jy =
      typeof queueMicrotask == "function"
        ? queueMicrotask
        : typeof Ym < "u"
          ? function (t) {
              return Ym.resolve(null).then(t).catch($y);
            }
          : Lm;
  function $y(t) {
    setTimeout(function () {
      throw t;
    });
  }
  function il(t) {
    return t === "head";
  }
  function qm(t, e) {
    var n = e,
      l = 0;
    do {
      var a = n.nextSibling;
      if ((t.removeChild(n), a && a.nodeType === 8))
        if (((n = a.data), n === "/$" || n === "/&")) {
          if (l === 0) {
            (t.removeChild(a), Na(e));
            return;
          }
          l--;
        } else if (
          n === "$" ||
          n === "$?" ||
          n === "$~" ||
          n === "$!" ||
          n === "&"
        )
          l++;
        else if (n === "html") zi(t.ownerDocument.documentElement);
        else if (n === "head") {
          ((n = t.ownerDocument.head), zi(n));
          for (var o = n.firstChild; o; ) {
            var c = o.nextSibling,
              m = o.nodeName;
            (o[ka] ||
              m === "SCRIPT" ||
              m === "STYLE" ||
              (m === "LINK" && o.rel.toLowerCase() === "stylesheet") ||
              n.removeChild(o),
              (o = c));
          }
        } else n === "body" && zi(t.ownerDocument.body);
      n = a;
    } while (n);
    Na(e);
  }
  function Gm(t, e) {
    var n = t;
    t = 0;
    do {
      var l = n.nextSibling;
      if (
        (n.nodeType === 1
          ? e
            ? ((n._stashedDisplay = n.style.display),
              (n.style.display = "none"))
            : ((n.style.display = n._stashedDisplay || ""),
              n.getAttribute("style") === "" && n.removeAttribute("style"))
          : n.nodeType === 3 &&
            (e
              ? ((n._stashedText = n.nodeValue), (n.nodeValue = ""))
              : (n.nodeValue = n._stashedText || "")),
        l && l.nodeType === 8)
      )
        if (((n = l.data), n === "/$")) {
          if (t === 0) break;
          t--;
        } else (n !== "$" && n !== "$?" && n !== "$~" && n !== "$!") || t++;
      n = l;
    } while (n);
  }
  function Er(t) {
    var e = t.firstChild;
    for (e && e.nodeType === 10 && (e = e.nextSibling); e; ) {
      var n = e;
      switch (((e = e.nextSibling), n.nodeName)) {
        case "HTML":
        case "HEAD":
        case "BODY":
          (Er(n), Ou(n));
          continue;
        case "SCRIPT":
        case "STYLE":
          continue;
        case "LINK":
          if (n.rel.toLowerCase() === "stylesheet") continue;
      }
      t.removeChild(n);
    }
  }
  function Wy(t, e, n, l) {
    for (; t.nodeType === 1; ) {
      var a = n;
      if (t.nodeName.toLowerCase() !== e.toLowerCase()) {
        if (!l && (t.nodeName !== "INPUT" || t.type !== "hidden")) break;
      } else if (l) {
        if (!t[ka])
          switch (e) {
            case "meta":
              if (!t.hasAttribute("itemprop")) break;
              return t;
            case "link":
              if (
                ((o = t.getAttribute("rel")),
                o === "stylesheet" && t.hasAttribute("data-precedence"))
              )
                break;
              if (
                o !== a.rel ||
                t.getAttribute("href") !==
                  (a.href == null || a.href === "" ? null : a.href) ||
                t.getAttribute("crossorigin") !==
                  (a.crossOrigin == null ? null : a.crossOrigin) ||
                t.getAttribute("title") !== (a.title == null ? null : a.title)
              )
                break;
              return t;
            case "style":
              if (t.hasAttribute("data-precedence")) break;
              return t;
            case "script":
              if (
                ((o = t.getAttribute("src")),
                (o !== (a.src == null ? null : a.src) ||
                  t.getAttribute("type") !== (a.type == null ? null : a.type) ||
                  t.getAttribute("crossorigin") !==
                    (a.crossOrigin == null ? null : a.crossOrigin)) &&
                  o &&
                  t.hasAttribute("async") &&
                  !t.hasAttribute("itemprop"))
              )
                break;
              return t;
            default:
              return t;
          }
      } else if (e === "input" && t.type === "hidden") {
        var o = a.name == null ? null : "" + a.name;
        if (a.type === "hidden" && t.getAttribute("name") === o) return t;
      } else return t;
      if (((t = Ze(t.nextSibling)), t === null)) break;
    }
    return null;
  }
  function Fy(t, e, n) {
    if (e === "") return null;
    for (; t.nodeType !== 3; )
      if (
        ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") &&
          !n) ||
        ((t = Ze(t.nextSibling)), t === null)
      )
        return null;
    return t;
  }
  function Vm(t, e) {
    for (; t.nodeType !== 8; )
      if (
        ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") &&
          !e) ||
        ((t = Ze(t.nextSibling)), t === null)
      )
        return null;
    return t;
  }
  function Tr(t) {
    return t.data === "$?" || t.data === "$~";
  }
  function wr(t) {
    return (
      t.data === "$!" ||
      (t.data === "$?" && t.ownerDocument.readyState !== "loading")
    );
  }
  function Py(t, e) {
    var n = t.ownerDocument;
    if (t.data === "$~") t._reactRetry = e;
    else if (t.data !== "$?" || n.readyState !== "loading") e();
    else {
      var l = function () {
        (e(), n.removeEventListener("DOMContentLoaded", l));
      };
      (n.addEventListener("DOMContentLoaded", l), (t._reactRetry = l));
    }
  }
  function Ze(t) {
    for (; t != null; t = t.nextSibling) {
      var e = t.nodeType;
      if (e === 1 || e === 3) break;
      if (e === 8) {
        if (
          ((e = t.data),
          e === "$" ||
            e === "$!" ||
            e === "$?" ||
            e === "$~" ||
            e === "&" ||
            e === "F!" ||
            e === "F")
        )
          break;
        if (e === "/$" || e === "/&") return null;
      }
    }
    return t;
  }
  var Ar = null;
  function Xm(t) {
    t = t.nextSibling;
    for (var e = 0; t; ) {
      if (t.nodeType === 8) {
        var n = t.data;
        if (n === "/$" || n === "/&") {
          if (e === 0) return Ze(t.nextSibling);
          e--;
        } else
          (n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&") ||
            e++;
      }
      t = t.nextSibling;
    }
    return null;
  }
  function km(t) {
    t = t.previousSibling;
    for (var e = 0; t; ) {
      if (t.nodeType === 8) {
        var n = t.data;
        if (n === "$" || n === "$!" || n === "$?" || n === "$~" || n === "&") {
          if (e === 0) return t;
          e--;
        } else (n !== "/$" && n !== "/&") || e++;
      }
      t = t.previousSibling;
    }
    return null;
  }
  function Qm(t, e, n) {
    switch (((e = Vo(n)), t)) {
      case "html":
        if (((t = e.documentElement), !t)) throw Error(s(452));
        return t;
      case "head":
        if (((t = e.head), !t)) throw Error(s(453));
        return t;
      case "body":
        if (((t = e.body), !t)) throw Error(s(454));
        return t;
      default:
        throw Error(s(451));
    }
  }
  function zi(t) {
    for (var e = t.attributes; e.length; ) t.removeAttributeNode(e[0]);
    Ou(t);
  }
  var Ke = new Map(),
    Zm = new Set();
  function Xo(t) {
    return typeof t.getRootNode == "function"
      ? t.getRootNode()
      : t.nodeType === 9
        ? t
        : t.ownerDocument;
  }
  var Dn = U.d;
  U.d = { f: Iy, r: tv, D: ev, C: nv, L: lv, m: av, X: ov, S: iv, M: uv };
  function Iy() {
    var t = Dn.f(),
      e = jo();
    return t || e;
  }
  function tv(t) {
    var e = Jl(t);
    e !== null && e.tag === 5 && e.type === "form" ? rd(e) : Dn.r(t);
  }
  var za = typeof document > "u" ? null : document;
  function Km(t, e, n) {
    var l = za;
    if (l && typeof e == "string" && e) {
      var a = Ye(e);
      ((a = 'link[rel="' + t + '"][href="' + a + '"]'),
        typeof n == "string" && (a += '[crossorigin="' + n + '"]'),
        Zm.has(a) ||
          (Zm.add(a),
          (t = { rel: t, crossOrigin: n, href: e }),
          l.querySelector(a) === null &&
            ((e = l.createElement("link")),
            se(e, "link", t),
            te(e),
            l.head.appendChild(e))));
    }
  }
  function ev(t) {
    (Dn.D(t), Km("dns-prefetch", t, null));
  }
  function nv(t, e) {
    (Dn.C(t, e), Km("preconnect", t, e));
  }
  function lv(t, e, n) {
    Dn.L(t, e, n);
    var l = za;
    if (l && t && e) {
      var a = 'link[rel="preload"][as="' + Ye(e) + '"]';
      e === "image" && n && n.imageSrcSet
        ? ((a += '[imagesrcset="' + Ye(n.imageSrcSet) + '"]'),
          typeof n.imageSizes == "string" &&
            (a += '[imagesizes="' + Ye(n.imageSizes) + '"]'))
        : (a += '[href="' + Ye(t) + '"]');
      var o = a;
      switch (e) {
        case "style":
          o = Oa(t);
          break;
        case "script":
          o = Ca(t);
      }
      Ke.has(o) ||
        ((t = h(
          {
            rel: "preload",
            href: e === "image" && n && n.imageSrcSet ? void 0 : t,
            as: e,
          },
          n
        )),
        Ke.set(o, t),
        l.querySelector(a) !== null ||
          (e === "style" && l.querySelector(Oi(o))) ||
          (e === "script" && l.querySelector(Ci(o))) ||
          ((e = l.createElement("link")),
          se(e, "link", t),
          te(e),
          l.head.appendChild(e)));
    }
  }
  function av(t, e) {
    Dn.m(t, e);
    var n = za;
    if (n && t) {
      var l = e && typeof e.as == "string" ? e.as : "script",
        a =
          'link[rel="modulepreload"][as="' + Ye(l) + '"][href="' + Ye(t) + '"]',
        o = a;
      switch (l) {
        case "audioworklet":
        case "paintworklet":
        case "serviceworker":
        case "sharedworker":
        case "worker":
        case "script":
          o = Ca(t);
      }
      if (
        !Ke.has(o) &&
        ((t = h({ rel: "modulepreload", href: t }, e)),
        Ke.set(o, t),
        n.querySelector(a) === null)
      ) {
        switch (l) {
          case "audioworklet":
          case "paintworklet":
          case "serviceworker":
          case "sharedworker":
          case "worker":
          case "script":
            if (n.querySelector(Ci(o))) return;
        }
        ((l = n.createElement("link")),
          se(l, "link", t),
          te(l),
          n.head.appendChild(l));
      }
    }
  }
  function iv(t, e, n) {
    Dn.S(t, e, n);
    var l = za;
    if (l && t) {
      var a = $l(l).hoistableStyles,
        o = Oa(t);
      e = e || "default";
      var c = a.get(o);
      if (!c) {
        var m = { loading: 0, preload: null };
        if ((c = l.querySelector(Oi(o)))) m.loading = 5;
        else {
          ((t = h({ rel: "stylesheet", href: t, "data-precedence": e }, n)),
            (n = Ke.get(o)) && zr(t, n));
          var S = (c = l.createElement("link"));
          (te(S),
            se(S, "link", t),
            (S._p = new Promise(function (N, L) {
              ((S.onload = N), (S.onerror = L));
            })),
            S.addEventListener("load", function () {
              m.loading |= 1;
            }),
            S.addEventListener("error", function () {
              m.loading |= 2;
            }),
            (m.loading |= 4),
            ko(c, e, l));
        }
        ((c = { type: "stylesheet", instance: c, count: 1, state: m }),
          a.set(o, c));
      }
    }
  }
  function ov(t, e) {
    Dn.X(t, e);
    var n = za;
    if (n && t) {
      var l = $l(n).hoistableScripts,
        a = Ca(t),
        o = l.get(a);
      o ||
        ((o = n.querySelector(Ci(a))),
        o ||
          ((t = h({ src: t, async: !0 }, e)),
          (e = Ke.get(a)) && Or(t, e),
          (o = n.createElement("script")),
          te(o),
          se(o, "link", t),
          n.head.appendChild(o)),
        (o = { type: "script", instance: o, count: 1, state: null }),
        l.set(a, o));
    }
  }
  function uv(t, e) {
    Dn.M(t, e);
    var n = za;
    if (n && t) {
      var l = $l(n).hoistableScripts,
        a = Ca(t),
        o = l.get(a);
      o ||
        ((o = n.querySelector(Ci(a))),
        o ||
          ((t = h({ src: t, async: !0, type: "module" }, e)),
          (e = Ke.get(a)) && Or(t, e),
          (o = n.createElement("script")),
          te(o),
          se(o, "link", t),
          n.head.appendChild(o)),
        (o = { type: "script", instance: o, count: 1, state: null }),
        l.set(a, o));
    }
  }
  function Jm(t, e, n, l) {
    var a = (a = ut.current) ? Xo(a) : null;
    if (!a) throw Error(s(446));
    switch (t) {
      case "meta":
      case "title":
        return null;
      case "style":
        return typeof n.precedence == "string" && typeof n.href == "string"
          ? ((e = Oa(n.href)),
            (n = $l(a).hoistableStyles),
            (l = n.get(e)),
            l ||
              ((l = { type: "style", instance: null, count: 0, state: null }),
              n.set(e, l)),
            l)
          : { type: "void", instance: null, count: 0, state: null };
      case "link":
        if (
          n.rel === "stylesheet" &&
          typeof n.href == "string" &&
          typeof n.precedence == "string"
        ) {
          t = Oa(n.href);
          var o = $l(a).hoistableStyles,
            c = o.get(t);
          if (
            (c ||
              ((a = a.ownerDocument || a),
              (c = {
                type: "stylesheet",
                instance: null,
                count: 0,
                state: { loading: 0, preload: null },
              }),
              o.set(t, c),
              (o = a.querySelector(Oi(t))) &&
                !o._p &&
                ((c.instance = o), (c.state.loading = 5)),
              Ke.has(t) ||
                ((n = {
                  rel: "preload",
                  as: "style",
                  href: n.href,
                  crossOrigin: n.crossOrigin,
                  integrity: n.integrity,
                  media: n.media,
                  hrefLang: n.hrefLang,
                  referrerPolicy: n.referrerPolicy,
                }),
                Ke.set(t, n),
                o || sv(a, t, n, c.state))),
            e && l === null)
          )
            throw Error(s(528, ""));
          return c;
        }
        if (e && l !== null) throw Error(s(529, ""));
        return null;
      case "script":
        return (
          (e = n.async),
          (n = n.src),
          typeof n == "string" &&
          e &&
          typeof e != "function" &&
          typeof e != "symbol"
            ? ((e = Ca(n)),
              (n = $l(a).hoistableScripts),
              (l = n.get(e)),
              l ||
                ((l = {
                  type: "script",
                  instance: null,
                  count: 0,
                  state: null,
                }),
                n.set(e, l)),
              l)
            : { type: "void", instance: null, count: 0, state: null }
        );
      default:
        throw Error(s(444, t));
    }
  }
  function Oa(t) {
    return 'href="' + Ye(t) + '"';
  }
  function Oi(t) {
    return 'link[rel="stylesheet"][' + t + "]";
  }
  function $m(t) {
    return h({}, t, { "data-precedence": t.precedence, precedence: null });
  }
  function sv(t, e, n, l) {
    t.querySelector('link[rel="preload"][as="style"][' + e + "]")
      ? (l.loading = 1)
      : ((e = t.createElement("link")),
        (l.preload = e),
        e.addEventListener("load", function () {
          return (l.loading |= 1);
        }),
        e.addEventListener("error", function () {
          return (l.loading |= 2);
        }),
        se(e, "link", n),
        te(e),
        t.head.appendChild(e));
  }
  function Ca(t) {
    return '[src="' + Ye(t) + '"]';
  }
  function Ci(t) {
    return "script[async]" + t;
  }
  function Wm(t, e, n) {
    if ((e.count++, e.instance === null))
      switch (e.type) {
        case "style":
          var l = t.querySelector('style[data-href~="' + Ye(n.href) + '"]');
          if (l) return ((e.instance = l), te(l), l);
          var a = h({}, n, {
            "data-href": n.href,
            "data-precedence": n.precedence,
            href: null,
            precedence: null,
          });
          return (
            (l = (t.ownerDocument || t).createElement("style")),
            te(l),
            se(l, "style", a),
            ko(l, n.precedence, t),
            (e.instance = l)
          );
        case "stylesheet":
          a = Oa(n.href);
          var o = t.querySelector(Oi(a));
          if (o) return ((e.state.loading |= 4), (e.instance = o), te(o), o);
          ((l = $m(n)),
            (a = Ke.get(a)) && zr(l, a),
            (o = (t.ownerDocument || t).createElement("link")),
            te(o));
          var c = o;
          return (
            (c._p = new Promise(function (m, S) {
              ((c.onload = m), (c.onerror = S));
            })),
            se(o, "link", l),
            (e.state.loading |= 4),
            ko(o, n.precedence, t),
            (e.instance = o)
          );
        case "script":
          return (
            (o = Ca(n.src)),
            (a = t.querySelector(Ci(o)))
              ? ((e.instance = a), te(a), a)
              : ((l = n),
                (a = Ke.get(o)) && ((l = h({}, n)), Or(l, a)),
                (t = t.ownerDocument || t),
                (a = t.createElement("script")),
                te(a),
                se(a, "link", l),
                t.head.appendChild(a),
                (e.instance = a))
          );
        case "void":
          return null;
        default:
          throw Error(s(443, e.type));
      }
    else
      e.type === "stylesheet" &&
        (e.state.loading & 4) === 0 &&
        ((l = e.instance), (e.state.loading |= 4), ko(l, n.precedence, t));
    return e.instance;
  }
  function ko(t, e, n) {
    for (
      var l = n.querySelectorAll(
          'link[rel="stylesheet"][data-precedence],style[data-precedence]'
        ),
        a = l.length ? l[l.length - 1] : null,
        o = a,
        c = 0;
      c < l.length;
      c++
    ) {
      var m = l[c];
      if (m.dataset.precedence === e) o = m;
      else if (o !== a) break;
    }
    o
      ? o.parentNode.insertBefore(t, o.nextSibling)
      : ((e = n.nodeType === 9 ? n.head : n), e.insertBefore(t, e.firstChild));
  }
  function zr(t, e) {
    (t.crossOrigin == null && (t.crossOrigin = e.crossOrigin),
      t.referrerPolicy == null && (t.referrerPolicy = e.referrerPolicy),
      t.title == null && (t.title = e.title));
  }
  function Or(t, e) {
    (t.crossOrigin == null && (t.crossOrigin = e.crossOrigin),
      t.referrerPolicy == null && (t.referrerPolicy = e.referrerPolicy),
      t.integrity == null && (t.integrity = e.integrity));
  }
  var Qo = null;
  function Fm(t, e, n) {
    if (Qo === null) {
      var l = new Map(),
        a = (Qo = new Map());
      a.set(n, l);
    } else ((a = Qo), (l = a.get(n)), l || ((l = new Map()), a.set(n, l)));
    if (l.has(t)) return l;
    for (
      l.set(t, null), n = n.getElementsByTagName(t), a = 0;
      a < n.length;
      a++
    ) {
      var o = n[a];
      if (
        !(
          o[ka] ||
          o[ae] ||
          (t === "link" && o.getAttribute("rel") === "stylesheet")
        ) &&
        o.namespaceURI !== "http://www.w3.org/2000/svg"
      ) {
        var c = o.getAttribute(e) || "";
        c = t + c;
        var m = l.get(c);
        m ? m.push(o) : l.set(c, [o]);
      }
    }
    return l;
  }
  function Pm(t, e, n) {
    ((t = t.ownerDocument || t),
      t.head.insertBefore(
        n,
        e === "title" ? t.querySelector("head > title") : null
      ));
  }
  function rv(t, e, n) {
    if (n === 1 || e.itemProp != null) return !1;
    switch (t) {
      case "meta":
      case "title":
        return !0;
      case "style":
        if (
          typeof e.precedence != "string" ||
          typeof e.href != "string" ||
          e.href === ""
        )
          break;
        return !0;
      case "link":
        if (
          typeof e.rel != "string" ||
          typeof e.href != "string" ||
          e.href === "" ||
          e.onLoad ||
          e.onError
        )
          break;
        switch (e.rel) {
          case "stylesheet":
            return (
              (t = e.disabled),
              typeof e.precedence == "string" && t == null
            );
          default:
            return !0;
        }
      case "script":
        if (
          e.async &&
          typeof e.async != "function" &&
          typeof e.async != "symbol" &&
          !e.onLoad &&
          !e.onError &&
          e.src &&
          typeof e.src == "string"
        )
          return !0;
    }
    return !1;
  }
  function Im(t) {
    return !(t.type === "stylesheet" && (t.state.loading & 3) === 0);
  }
  function cv(t, e, n, l) {
    if (
      n.type === "stylesheet" &&
      (typeof l.media != "string" || matchMedia(l.media).matches !== !1) &&
      (n.state.loading & 4) === 0
    ) {
      if (n.instance === null) {
        var a = Oa(l.href),
          o = e.querySelector(Oi(a));
        if (o) {
          ((e = o._p),
            e !== null &&
              typeof e == "object" &&
              typeof e.then == "function" &&
              (t.count++, (t = Zo.bind(t)), e.then(t, t)),
            (n.state.loading |= 4),
            (n.instance = o),
            te(o));
          return;
        }
        ((o = e.ownerDocument || e),
          (l = $m(l)),
          (a = Ke.get(a)) && zr(l, a),
          (o = o.createElement("link")),
          te(o));
        var c = o;
        ((c._p = new Promise(function (m, S) {
          ((c.onload = m), (c.onerror = S));
        })),
          se(o, "link", l),
          (n.instance = o));
      }
      (t.stylesheets === null && (t.stylesheets = new Map()),
        t.stylesheets.set(n, e),
        (e = n.state.preload) &&
          (n.state.loading & 3) === 0 &&
          (t.count++,
          (n = Zo.bind(t)),
          e.addEventListener("load", n),
          e.addEventListener("error", n)));
    }
  }
  var Cr = 0;
  function fv(t, e) {
    return (
      t.stylesheets && t.count === 0 && Jo(t, t.stylesheets),
      0 < t.count || 0 < t.imgCount
        ? function (n) {
            var l = setTimeout(function () {
              if ((t.stylesheets && Jo(t, t.stylesheets), t.unsuspend)) {
                var o = t.unsuspend;
                ((t.unsuspend = null), o());
              }
            }, 6e4 + e);
            0 < t.imgBytes && Cr === 0 && (Cr = 62500 * Qy());
            var a = setTimeout(
              function () {
                if (
                  ((t.waitingForImages = !1),
                  t.count === 0 &&
                    (t.stylesheets && Jo(t, t.stylesheets), t.unsuspend))
                ) {
                  var o = t.unsuspend;
                  ((t.unsuspend = null), o());
                }
              },
              (t.imgBytes > Cr ? 50 : 800) + e
            );
            return (
              (t.unsuspend = n),
              function () {
                ((t.unsuspend = null), clearTimeout(l), clearTimeout(a));
              }
            );
          }
        : null
    );
  }
  function Zo() {
    if (
      (this.count--,
      this.count === 0 && (this.imgCount === 0 || !this.waitingForImages))
    ) {
      if (this.stylesheets) Jo(this, this.stylesheets);
      else if (this.unsuspend) {
        var t = this.unsuspend;
        ((this.unsuspend = null), t());
      }
    }
  }
  var Ko = null;
  function Jo(t, e) {
    ((t.stylesheets = null),
      t.unsuspend !== null &&
        (t.count++,
        (Ko = new Map()),
        e.forEach(dv, t),
        (Ko = null),
        Zo.call(t)));
  }
  function dv(t, e) {
    if (!(e.state.loading & 4)) {
      var n = Ko.get(t);
      if (n) var l = n.get(null);
      else {
        ((n = new Map()), Ko.set(t, n));
        for (
          var a = t.querySelectorAll(
              "link[data-precedence],style[data-precedence]"
            ),
            o = 0;
          o < a.length;
          o++
        ) {
          var c = a[o];
          (c.nodeName === "LINK" || c.getAttribute("media") !== "not all") &&
            (n.set(c.dataset.precedence, c), (l = c));
        }
        l && n.set(null, l);
      }
      ((a = e.instance),
        (c = a.getAttribute("data-precedence")),
        (o = n.get(c) || l),
        o === l && n.set(null, a),
        n.set(c, a),
        this.count++,
        (l = Zo.bind(this)),
        a.addEventListener("load", l),
        a.addEventListener("error", l),
        o
          ? o.parentNode.insertBefore(a, o.nextSibling)
          : ((t = t.nodeType === 9 ? t.head : t),
            t.insertBefore(a, t.firstChild)),
        (e.state.loading |= 4));
    }
  }
  var Ni = {
    $$typeof: J,
    Provider: null,
    Consumer: null,
    _currentValue: R,
    _currentValue2: R,
    _threadCount: 0,
  };
  function mv(t, e, n, l, a, o, c, m, S) {
    ((this.tag = 1),
      (this.containerInfo = t),
      (this.pingCache = this.current = this.pendingChildren = null),
      (this.timeoutHandle = -1),
      (this.callbackNode =
        this.next =
        this.pendingContext =
        this.context =
        this.cancelPendingCommit =
          null),
      (this.callbackPriority = 0),
      (this.expirationTimes = qn(-1)),
      (this.entangledLanes =
        this.shellSuspendCounter =
        this.errorRecoveryDisabledLanes =
        this.expiredLanes =
        this.warmLanes =
        this.pingedLanes =
        this.suspendedLanes =
        this.pendingLanes =
          0),
      (this.entanglements = qn(0)),
      (this.hiddenUpdates = qn(null)),
      (this.identifierPrefix = l),
      (this.onUncaughtError = a),
      (this.onCaughtError = o),
      (this.onRecoverableError = c),
      (this.pooledCache = null),
      (this.pooledCacheLanes = 0),
      (this.formState = S),
      (this.incompleteTransitions = new Map()));
  }
  function th(t, e, n, l, a, o, c, m, S, N, L, G) {
    return (
      (t = new mv(t, e, n, c, S, N, L, G, m)),
      (e = 1),
      o === !0 && (e |= 24),
      (o = _e(3, null, null, e)),
      (t.current = o),
      (o.stateNode = t),
      (e = us()),
      e.refCount++,
      (t.pooledCache = e),
      e.refCount++,
      (o.memoizedState = { element: l, isDehydrated: n, cache: e }),
      fs(o),
      t
    );
  }
  function eh(t) {
    return t ? ((t = ia), t) : ia;
  }
  function nh(t, e, n, l, a, o) {
    ((a = eh(a)),
      l.context === null ? (l.context = a) : (l.pendingContext = a),
      (l = Jn(e)),
      (l.payload = { element: n }),
      (o = o === void 0 ? null : o),
      o !== null && (l.callback = o),
      (n = $n(t, l, e)),
      n !== null && (ze(n, t, e), ui(n, t, e)));
  }
  function lh(t, e) {
    if (((t = t.memoizedState), t !== null && t.dehydrated !== null)) {
      var n = t.retryLane;
      t.retryLane = n !== 0 && n < e ? n : e;
    }
  }
  function Nr(t, e) {
    (lh(t, e), (t = t.alternate) && lh(t, e));
  }
  function ah(t) {
    if (t.tag === 13 || t.tag === 31) {
      var e = Al(t, 67108864);
      (e !== null && ze(e, t, 67108864), Nr(t, 67108864));
    }
  }
  function ih(t) {
    if (t.tag === 13 || t.tag === 31) {
      var e = Ue();
      e = Ql(e);
      var n = Al(t, e);
      (n !== null && ze(n, t, e), Nr(t, e));
    }
  }
  var $o = !0;
  function hv(t, e, n, l) {
    var a = w.T;
    w.T = null;
    var o = U.p;
    try {
      ((U.p = 2), _r(t, e, n, l));
    } finally {
      ((U.p = o), (w.T = a));
    }
  }
  function gv(t, e, n, l) {
    var a = w.T;
    w.T = null;
    var o = U.p;
    try {
      ((U.p = 8), _r(t, e, n, l));
    } finally {
      ((U.p = o), (w.T = a));
    }
  }
  function _r(t, e, n, l) {
    if ($o) {
      var a = Mr(l);
      if (a === null) (pr(t, e, l, Wo, n), uh(t, l));
      else if (yv(a, t, e, n, l)) l.stopPropagation();
      else if ((uh(t, l), e & 4 && -1 < pv.indexOf(t))) {
        for (; a !== null; ) {
          var o = Jl(a);
          if (o !== null)
            switch (o.tag) {
              case 3:
                if (((o = o.stateNode), o.current.memoizedState.isDehydrated)) {
                  var c = ln(o.pendingLanes);
                  if (c !== 0) {
                    var m = o;
                    for (m.pendingLanes |= 2, m.entangledLanes |= 2; c; ) {
                      var S = 1 << (31 - re(c));
                      ((m.entanglements[1] |= S), (c &= ~S));
                    }
                    (sn(o), (Mt & 6) === 0 && ((Ro = he() + 500), Ti(0)));
                  }
                }
                break;
              case 31:
              case 13:
                ((m = Al(o, 2)), m !== null && ze(m, o, 2), jo(), Nr(o, 2));
            }
          if (((o = Mr(l)), o === null && pr(t, e, l, Wo, n), o === a)) break;
          a = o;
        }
        a !== null && l.stopPropagation();
      } else pr(t, e, l, null, n);
    }
  }
  function Mr(t) {
    return ((t = Du(t)), Rr(t));
  }
  var Wo = null;
  function Rr(t) {
    if (((Wo = null), (t = Kl(t)), t !== null)) {
      var e = d(t);
      if (e === null) t = null;
      else {
        var n = e.tag;
        if (n === 13) {
          if (((t = p(e)), t !== null)) return t;
          t = null;
        } else if (n === 31) {
          if (((t = x(e)), t !== null)) return t;
          t = null;
        } else if (n === 3) {
          if (e.stateNode.current.memoizedState.isDehydrated)
            return e.tag === 3 ? e.stateNode.containerInfo : null;
          t = null;
        } else e !== t && (t = null);
      }
    }
    return ((Wo = t), null);
  }
  function oh(t) {
    switch (t) {
      case "beforetoggle":
      case "cancel":
      case "click":
      case "close":
      case "contextmenu":
      case "copy":
      case "cut":
      case "auxclick":
      case "dblclick":
      case "dragend":
      case "dragstart":
      case "drop":
      case "focusin":
      case "focusout":
      case "input":
      case "invalid":
      case "keydown":
      case "keypress":
      case "keyup":
      case "mousedown":
      case "mouseup":
      case "paste":
      case "pause":
      case "play":
      case "pointercancel":
      case "pointerdown":
      case "pointerup":
      case "ratechange":
      case "reset":
      case "resize":
      case "seeked":
      case "submit":
      case "toggle":
      case "touchcancel":
      case "touchend":
      case "touchstart":
      case "volumechange":
      case "change":
      case "selectionchange":
      case "textInput":
      case "compositionstart":
      case "compositionend":
      case "compositionupdate":
      case "beforeblur":
      case "afterblur":
      case "beforeinput":
      case "blur":
      case "fullscreenchange":
      case "focus":
      case "hashchange":
      case "popstate":
      case "select":
      case "selectstart":
        return 2;
      case "drag":
      case "dragenter":
      case "dragexit":
      case "dragleave":
      case "dragover":
      case "mousemove":
      case "mouseout":
      case "mouseover":
      case "pointermove":
      case "pointerout":
      case "pointerover":
      case "scroll":
      case "touchmove":
      case "wheel":
      case "mouseenter":
      case "mouseleave":
      case "pointerenter":
      case "pointerleave":
        return 8;
      case "message":
        switch (Tu()) {
          case pl:
            return 2;
          case Gi:
            return 8;
          case yl:
          case Va:
            return 32;
          case gn:
            return 268435456;
          default:
            return 32;
        }
      default:
        return 32;
    }
  }
  var Dr = !1,
    ol = null,
    ul = null,
    sl = null,
    _i = new Map(),
    Mi = new Map(),
    rl = [],
    pv =
      "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(
        " "
      );
  function uh(t, e) {
    switch (t) {
      case "focusin":
      case "focusout":
        ol = null;
        break;
      case "dragenter":
      case "dragleave":
        ul = null;
        break;
      case "mouseover":
      case "mouseout":
        sl = null;
        break;
      case "pointerover":
      case "pointerout":
        _i.delete(e.pointerId);
        break;
      case "gotpointercapture":
      case "lostpointercapture":
        Mi.delete(e.pointerId);
    }
  }
  function Ri(t, e, n, l, a, o) {
    return t === null || t.nativeEvent !== o
      ? ((t = {
          blockedOn: e,
          domEventName: n,
          eventSystemFlags: l,
          nativeEvent: o,
          targetContainers: [a],
        }),
        e !== null && ((e = Jl(e)), e !== null && ah(e)),
        t)
      : ((t.eventSystemFlags |= l),
        (e = t.targetContainers),
        a !== null && e.indexOf(a) === -1 && e.push(a),
        t);
  }
  function yv(t, e, n, l, a) {
    switch (e) {
      case "focusin":
        return ((ol = Ri(ol, t, e, n, l, a)), !0);
      case "dragenter":
        return ((ul = Ri(ul, t, e, n, l, a)), !0);
      case "mouseover":
        return ((sl = Ri(sl, t, e, n, l, a)), !0);
      case "pointerover":
        var o = a.pointerId;
        return (_i.set(o, Ri(_i.get(o) || null, t, e, n, l, a)), !0);
      case "gotpointercapture":
        return (
          (o = a.pointerId),
          Mi.set(o, Ri(Mi.get(o) || null, t, e, n, l, a)),
          !0
        );
    }
    return !1;
  }
  function sh(t) {
    var e = Kl(t.target);
    if (e !== null) {
      var n = d(e);
      if (n !== null) {
        if (((e = n.tag), e === 13)) {
          if (((e = p(n)), e !== null)) {
            ((t.blockedOn = e),
              Sc(t.priority, function () {
                ih(n);
              }));
            return;
          }
        } else if (e === 31) {
          if (((e = x(n)), e !== null)) {
            ((t.blockedOn = e),
              Sc(t.priority, function () {
                ih(n);
              }));
            return;
          }
        } else if (e === 3 && n.stateNode.current.memoizedState.isDehydrated) {
          t.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;
          return;
        }
      }
    }
    t.blockedOn = null;
  }
  function Fo(t) {
    if (t.blockedOn !== null) return !1;
    for (var e = t.targetContainers; 0 < e.length; ) {
      var n = Mr(t.nativeEvent);
      if (n === null) {
        n = t.nativeEvent;
        var l = new n.constructor(n.type, n);
        ((Ru = l), n.target.dispatchEvent(l), (Ru = null));
      } else return ((e = Jl(n)), e !== null && ah(e), (t.blockedOn = n), !1);
      e.shift();
    }
    return !0;
  }
  function rh(t, e, n) {
    Fo(t) && n.delete(e);
  }
  function vv() {
    ((Dr = !1),
      ol !== null && Fo(ol) && (ol = null),
      ul !== null && Fo(ul) && (ul = null),
      sl !== null && Fo(sl) && (sl = null),
      _i.forEach(rh),
      Mi.forEach(rh));
  }
  function Po(t, e) {
    t.blockedOn === e &&
      ((t.blockedOn = null),
      Dr ||
        ((Dr = !0),
        i.unstable_scheduleCallback(i.unstable_NormalPriority, vv)));
  }
  var Io = null;
  function ch(t) {
    Io !== t &&
      ((Io = t),
      i.unstable_scheduleCallback(i.unstable_NormalPriority, function () {
        Io === t && (Io = null);
        for (var e = 0; e < t.length; e += 3) {
          var n = t[e],
            l = t[e + 1],
            a = t[e + 2];
          if (typeof l != "function") {
            if (Rr(l || n) === null) continue;
            break;
          }
          var o = Jl(n);
          o !== null &&
            (t.splice(e, 3),
            (e -= 3),
            Ms(o, { pending: !0, data: a, method: n.method, action: l }, l, a));
        }
      }));
  }
  function Na(t) {
    function e(S) {
      return Po(S, t);
    }
    (ol !== null && Po(ol, t),
      ul !== null && Po(ul, t),
      sl !== null && Po(sl, t),
      _i.forEach(e),
      Mi.forEach(e));
    for (var n = 0; n < rl.length; n++) {
      var l = rl[n];
      l.blockedOn === t && (l.blockedOn = null);
    }
    for (; 0 < rl.length && ((n = rl[0]), n.blockedOn === null); )
      (sh(n), n.blockedOn === null && rl.shift());
    if (((n = (t.ownerDocument || t).$$reactFormReplay), n != null))
      for (l = 0; l < n.length; l += 3) {
        var a = n[l],
          o = n[l + 1],
          c = a[xe] || null;
        if (typeof o == "function") c || ch(n);
        else if (c) {
          var m = null;
          if (o && o.hasAttribute("formAction")) {
            if (((a = o), (c = o[xe] || null))) m = c.formAction;
            else if (Rr(a) !== null) continue;
          } else m = c.action;
          (typeof m == "function" ? (n[l + 1] = m) : (n.splice(l, 3), (l -= 3)),
            ch(n));
        }
      }
  }
  function fh() {
    function t(o) {
      o.canIntercept &&
        o.info === "react-transition" &&
        o.intercept({
          handler: function () {
            return new Promise(function (c) {
              return (a = c);
            });
          },
          focusReset: "manual",
          scroll: "manual",
        });
    }
    function e() {
      (a !== null && (a(), (a = null)), l || setTimeout(n, 20));
    }
    function n() {
      if (!l && !navigation.transition) {
        var o = navigation.currentEntry;
        o &&
          o.url != null &&
          navigation.navigate(o.url, {
            state: o.getState(),
            info: "react-transition",
            history: "replace",
          });
      }
    }
    if (typeof navigation == "object") {
      var l = !1,
        a = null;
      return (
        navigation.addEventListener("navigate", t),
        navigation.addEventListener("navigatesuccess", e),
        navigation.addEventListener("navigateerror", e),
        setTimeout(n, 100),
        function () {
          ((l = !0),
            navigation.removeEventListener("navigate", t),
            navigation.removeEventListener("navigatesuccess", e),
            navigation.removeEventListener("navigateerror", e),
            a !== null && (a(), (a = null)));
        }
      );
    }
  }
  function jr(t) {
    this._internalRoot = t;
  }
  ((tu.prototype.render = jr.prototype.render =
    function (t) {
      var e = this._internalRoot;
      if (e === null) throw Error(s(409));
      var n = e.current,
        l = Ue();
      nh(n, l, t, e, null, null);
    }),
    (tu.prototype.unmount = jr.prototype.unmount =
      function () {
        var t = this._internalRoot;
        if (t !== null) {
          this._internalRoot = null;
          var e = t.containerInfo;
          (nh(t.current, 2, null, t, null, null), jo(), (e[Zl] = null));
        }
      }));
  function tu(t) {
    this._internalRoot = t;
  }
  tu.prototype.unstable_scheduleHydration = function (t) {
    if (t) {
      var e = Au();
      t = { blockedOn: null, target: t, priority: e };
      for (var n = 0; n < rl.length && e !== 0 && e < rl[n].priority; n++);
      (rl.splice(n, 0, t), n === 0 && sh(t));
    }
  };
  var dh = u.version;
  if (dh !== "19.2.1") throw Error(s(527, dh, "19.2.1"));
  U.findDOMNode = function (t) {
    var e = t._reactInternals;
    if (e === void 0)
      throw typeof t.render == "function"
        ? Error(s(188))
        : ((t = Object.keys(t).join(",")), Error(s(268, t)));
    return (
      (t = g(e)),
      (t = t !== null ? v(t) : null),
      (t = t === null ? null : t.stateNode),
      t
    );
  };
  var bv = {
    bundleType: 0,
    version: "19.2.1",
    rendererPackageName: "react-dom",
    currentDispatcherRef: w,
    reconcilerVersion: "19.2.1",
  };
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
    var eu = __REACT_DEVTOOLS_GLOBAL_HOOK__;
    if (!eu.isDisabled && eu.supportsFiber)
      try {
        ((vl = eu.inject(bv)), (ge = eu));
      } catch {}
  }
  return (
    (ji.createRoot = function (t, e) {
      if (!f(t)) throw Error(s(299));
      var n = !1,
        l = "",
        a = bd,
        o = xd,
        c = Sd;
      return (
        e != null &&
          (e.unstable_strictMode === !0 && (n = !0),
          e.identifierPrefix !== void 0 && (l = e.identifierPrefix),
          e.onUncaughtError !== void 0 && (a = e.onUncaughtError),
          e.onCaughtError !== void 0 && (o = e.onCaughtError),
          e.onRecoverableError !== void 0 && (c = e.onRecoverableError)),
        (e = th(t, 1, !1, null, null, n, l, null, a, o, c, fh)),
        (t[Zl] = e.current),
        gr(t),
        new jr(e)
      );
    }),
    (ji.hydrateRoot = function (t, e, n) {
      if (!f(t)) throw Error(s(299));
      var l = !1,
        a = "",
        o = bd,
        c = xd,
        m = Sd,
        S = null;
      return (
        n != null &&
          (n.unstable_strictMode === !0 && (l = !0),
          n.identifierPrefix !== void 0 && (a = n.identifierPrefix),
          n.onUncaughtError !== void 0 && (o = n.onUncaughtError),
          n.onCaughtError !== void 0 && (c = n.onCaughtError),
          n.onRecoverableError !== void 0 && (m = n.onRecoverableError),
          n.formState !== void 0 && (S = n.formState)),
        (e = th(t, 1, !0, e, n ?? null, l, a, S, o, c, m, fh)),
        (e.context = eh(null)),
        (n = e.current),
        (l = Ue()),
        (l = Ql(l)),
        (a = Jn(l)),
        (a.callback = null),
        $n(n, a, l),
        (n = l),
        (e.current.lanes = n),
        Vt(e, n),
        sn(e),
        (t[Zl] = e.current),
        gr(t),
        new tu(e)
      );
    }),
    (ji.version = "19.2.1"),
    ji
  );
}
var Eh;
function Nv() {
  if (Eh) return Hr.exports;
  Eh = 1;
  function i() {
    if (
      !(
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" ||
        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"
      )
    )
      try {
        __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i);
      } catch (u) {
        console.error(u);
      }
  }
  return (i(), (Hr.exports = Cv()), Hr.exports);
}
var _v = Nv(),
  C = du();
const K = lg(C),
  Mv = Sv({ __proto__: null, default: K }, [C]);
var Rv = (i, u, r, s, f, d, p, x) => {
    let y = document.documentElement,
      g = ["light", "dark"];
    function v(_) {
      ((Array.isArray(i) ? i : [i]).forEach(D => {
        let Y = D === "class",
          X = Y && d ? f.map(V => d[V] || V) : f;
        Y
          ? (y.classList.remove(...X), y.classList.add(d && d[_] ? d[_] : _))
          : y.setAttribute(D, _);
      }),
        h(_));
    }
    function h(_) {
      x && g.includes(_) && (y.style.colorScheme = _);
    }
    function z() {
      return window.matchMedia("(prefers-color-scheme: dark)").matches
        ? "dark"
        : "light";
    }
    if (s) v(s);
    else
      try {
        let _ = localStorage.getItem(u) || r,
          D = p && _ === "system" ? z() : _;
        v(D);
      } catch {}
  },
  Dv = C.createContext(void 0),
  jv = { setTheme: i => {}, themes: [] },
  Uv = () => {
    var i;
    return (i = C.useContext(Dv)) != null ? i : jv;
  };
C.memo(
  ({
    forcedTheme: i,
    storageKey: u,
    attribute: r,
    enableSystem: s,
    enableColorScheme: f,
    defaultTheme: d,
    value: p,
    themes: x,
    nonce: y,
    scriptProps: g,
  }) => {
    let v = JSON.stringify([r, u, d, i, x, p, s, f]).slice(1, -1);
    return C.createElement("script", {
      ...g,
      suppressHydrationWarning: !0,
      nonce: typeof window > "u" ? y : "",
      dangerouslySetInnerHTML: { __html: `(${Rv.toString()})(${v})` },
    });
  }
);
var uc = ag();
const Hv = lg(uc);
function Bv(i) {
  if (typeof document > "u") return;
  let u = document.head || document.getElementsByTagName("head")[0],
    r = document.createElement("style");
  ((r.type = "text/css"),
    u.appendChild(r),
    r.styleSheet
      ? (r.styleSheet.cssText = i)
      : r.appendChild(document.createTextNode(i)));
}
const Lv = i => {
    switch (i) {
      case "success":
        return Gv;
      case "info":
        return Xv;
      case "warning":
        return Vv;
      case "error":
        return kv;
      default:
        return null;
    }
  },
  Yv = Array(12).fill(0),
  qv = ({ visible: i, className: u }) =>
    K.createElement(
      "div",
      {
        className: ["sonner-loading-wrapper", u].filter(Boolean).join(" "),
        "data-visible": i,
      },
      K.createElement(
        "div",
        { className: "sonner-spinner" },
        Yv.map((r, s) =>
          K.createElement("div", {
            className: "sonner-loading-bar",
            key: `spinner-bar-${s}`,
          })
        )
      )
    ),
  Gv = K.createElement(
    "svg",
    {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 20 20",
      fill: "currentColor",
      height: "20",
      width: "20",
    },
    K.createElement("path", {
      fillRule: "evenodd",
      d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
      clipRule: "evenodd",
    })
  ),
  Vv = K.createElement(
    "svg",
    {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 24 24",
      fill: "currentColor",
      height: "20",
      width: "20",
    },
    K.createElement("path", {
      fillRule: "evenodd",
      d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
      clipRule: "evenodd",
    })
  ),
  Xv = K.createElement(
    "svg",
    {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 20 20",
      fill: "currentColor",
      height: "20",
      width: "20",
    },
    K.createElement("path", {
      fillRule: "evenodd",
      d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
      clipRule: "evenodd",
    })
  ),
  kv = K.createElement(
    "svg",
    {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 20 20",
      fill: "currentColor",
      height: "20",
      width: "20",
    },
    K.createElement("path", {
      fillRule: "evenodd",
      d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
      clipRule: "evenodd",
    })
  ),
  Qv = K.createElement(
    "svg",
    {
      xmlns: "http://www.w3.org/2000/svg",
      width: "12",
      height: "12",
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "1.5",
      strokeLinecap: "round",
      strokeLinejoin: "round",
    },
    K.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
    K.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
  ),
  Zv = () => {
    const [i, u] = K.useState(document.hidden);
    return (
      K.useEffect(() => {
        const r = () => {
          u(document.hidden);
        };
        return (
          document.addEventListener("visibilitychange", r),
          () => window.removeEventListener("visibilitychange", r)
        );
      }, []),
      i
    );
  };
let Jr = 1;
class Kv {
  constructor() {
    ((this.subscribe = u => (
      this.subscribers.push(u),
      () => {
        const r = this.subscribers.indexOf(u);
        this.subscribers.splice(r, 1);
      }
    )),
      (this.publish = u => {
        this.subscribers.forEach(r => r(u));
      }),
      (this.addToast = u => {
        (this.publish(u), (this.toasts = [...this.toasts, u]));
      }),
      (this.create = u => {
        var r;
        const { message: s, ...f } = u,
          d =
            typeof u?.id == "number" ||
            ((r = u.id) == null ? void 0 : r.length) > 0
              ? u.id
              : Jr++,
          p = this.toasts.find(y => y.id === d),
          x = u.dismissible === void 0 ? !0 : u.dismissible;
        return (
          this.dismissedToasts.has(d) && this.dismissedToasts.delete(d),
          p
            ? (this.toasts = this.toasts.map(y =>
                y.id === d
                  ? (this.publish({ ...y, ...u, id: d, title: s }),
                    { ...y, ...u, id: d, dismissible: x, title: s })
                  : y
              ))
            : this.addToast({ title: s, ...f, dismissible: x, id: d }),
          d
        );
      }),
      (this.dismiss = u => (
        u
          ? (this.dismissedToasts.add(u),
            requestAnimationFrame(() =>
              this.subscribers.forEach(r => r({ id: u, dismiss: !0 }))
            ))
          : this.toasts.forEach(r => {
              this.subscribers.forEach(s => s({ id: r.id, dismiss: !0 }));
            }),
        u
      )),
      (this.message = (u, r) => this.create({ ...r, message: u })),
      (this.error = (u, r) => this.create({ ...r, message: u, type: "error" })),
      (this.success = (u, r) =>
        this.create({ ...r, type: "success", message: u })),
      (this.info = (u, r) => this.create({ ...r, type: "info", message: u })),
      (this.warning = (u, r) =>
        this.create({ ...r, type: "warning", message: u })),
      (this.loading = (u, r) =>
        this.create({ ...r, type: "loading", message: u })),
      (this.promise = (u, r) => {
        if (!r) return;
        let s;
        r.loading !== void 0 &&
          (s = this.create({
            ...r,
            promise: u,
            type: "loading",
            message: r.loading,
            description:
              typeof r.description != "function" ? r.description : void 0,
          }));
        const f = Promise.resolve(u instanceof Function ? u() : u);
        let d = s !== void 0,
          p;
        const x = f
            .then(async g => {
              if (((p = ["resolve", g]), K.isValidElement(g)))
                ((d = !1), this.create({ id: s, type: "default", message: g }));
              else if ($v(g) && !g.ok) {
                d = !1;
                const h =
                    typeof r.error == "function"
                      ? await r.error(`HTTP error! status: ${g.status}`)
                      : r.error,
                  z =
                    typeof r.description == "function"
                      ? await r.description(`HTTP error! status: ${g.status}`)
                      : r.description,
                  D =
                    typeof h == "object" && !K.isValidElement(h)
                      ? h
                      : { message: h };
                this.create({ id: s, type: "error", description: z, ...D });
              } else if (g instanceof Error) {
                d = !1;
                const h =
                    typeof r.error == "function" ? await r.error(g) : r.error,
                  z =
                    typeof r.description == "function"
                      ? await r.description(g)
                      : r.description,
                  D =
                    typeof h == "object" && !K.isValidElement(h)
                      ? h
                      : { message: h };
                this.create({ id: s, type: "error", description: z, ...D });
              } else if (r.success !== void 0) {
                d = !1;
                const h =
                    typeof r.success == "function"
                      ? await r.success(g)
                      : r.success,
                  z =
                    typeof r.description == "function"
                      ? await r.description(g)
                      : r.description,
                  D =
                    typeof h == "object" && !K.isValidElement(h)
                      ? h
                      : { message: h };
                this.create({ id: s, type: "success", description: z, ...D });
              }
            })
            .catch(async g => {
              if (((p = ["reject", g]), r.error !== void 0)) {
                d = !1;
                const v =
                    typeof r.error == "function" ? await r.error(g) : r.error,
                  h =
                    typeof r.description == "function"
                      ? await r.description(g)
                      : r.description,
                  _ =
                    typeof v == "object" && !K.isValidElement(v)
                      ? v
                      : { message: v };
                this.create({ id: s, type: "error", description: h, ..._ });
              }
            })
            .finally(() => {
              (d && (this.dismiss(s), (s = void 0)),
                r.finally == null || r.finally.call(r));
            }),
          y = () =>
            new Promise((g, v) =>
              x.then(() => (p[0] === "reject" ? v(p[1]) : g(p[1]))).catch(v)
            );
        return typeof s != "string" && typeof s != "number"
          ? { unwrap: y }
          : Object.assign(s, { unwrap: y });
      }),
      (this.custom = (u, r) => {
        const s = r?.id || Jr++;
        return (this.create({ jsx: u(s), id: s, ...r }), s);
      }),
      (this.getActiveToasts = () =>
        this.toasts.filter(u => !this.dismissedToasts.has(u.id))),
      (this.subscribers = []),
      (this.toasts = []),
      (this.dismissedToasts = new Set()));
  }
}
const Oe = new Kv(),
  Jv = (i, u) => {
    const r = u?.id || Jr++;
    return (Oe.addToast({ title: i, ...u, id: r }), r);
  },
  $v = i =>
    i &&
    typeof i == "object" &&
    "ok" in i &&
    typeof i.ok == "boolean" &&
    "status" in i &&
    typeof i.status == "number",
  Wv = Jv,
  Fv = () => Oe.toasts,
  Pv = () => Oe.getActiveToasts();
Object.assign(
  Wv,
  {
    success: Oe.success,
    info: Oe.info,
    warning: Oe.warning,
    error: Oe.error,
    custom: Oe.custom,
    message: Oe.message,
    promise: Oe.promise,
    dismiss: Oe.dismiss,
    loading: Oe.loading,
  },
  { getHistory: Fv, getToasts: Pv }
);
Bv(
  "[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}"
);
function nu(i) {
  return i.label !== void 0;
}
const Iv = 3,
  t0 = "24px",
  e0 = "16px",
  Th = 4e3,
  n0 = 356,
  l0 = 14,
  a0 = 45,
  i0 = 200;
function rn(...i) {
  return i.filter(Boolean).join(" ");
}
function o0(i) {
  const [u, r] = i.split("-"),
    s = [];
  return (u && s.push(u), r && s.push(r), s);
}
const u0 = i => {
  var u, r, s, f, d, p, x, y, g;
  const {
      invert: v,
      toast: h,
      unstyled: z,
      interacting: _,
      setHeights: D,
      visibleToasts: Y,
      heights: X,
      index: V,
      toasts: F,
      expanded: J,
      removeToast: W,
      defaultRichColors: P,
      closeButton: nt,
      style: Q,
      cancelButtonStyle: Z,
      actionButtonStyle: mt,
      className: xt = "",
      descriptionClassName: zt = "",
      duration: ht,
      position: ct,
      gap: gt,
      expandByDefault: yt,
      classNames: w,
      icons: U,
      closeButtonAriaLabel: R = "Close toast",
    } = i,
    [it, ot] = K.useState(null),
    [b, H] = K.useState(null),
    [B, k] = K.useState(!1),
    [$, ut] = K.useState(!1),
    [lt, ft] = K.useState(!1),
    [Ot, ne] = K.useState(!1),
    [de, le] = K.useState(!1),
    [hn, Je] = K.useState(0),
    [La, Vl] = K.useState(0),
    gl = K.useRef(h.duration || ht || Th),
    Ya = K.useRef(null),
    Ce = K.useRef(null),
    qa = V === 0,
    Ga = V + 1 <= Y,
    me = h.type,
    Ln = h.dismissible !== !1,
    he = h.className || "",
    Tu = h.descriptionClassName || "",
    pl = K.useMemo(
      () => X.findIndex(dt => dt.toastId === h.id) || 0,
      [X, h.id]
    ),
    Gi = K.useMemo(() => {
      var dt;
      return (dt = h.closeButton) != null ? dt : nt;
    }, [h.closeButton, nt]),
    yl = K.useMemo(() => h.duration || ht || Th, [h.duration, ht]),
    Va = K.useRef(0),
    gn = K.useRef(0),
    Vi = K.useRef(0),
    Yn = K.useRef(null),
    [vl, ge] = ct.split("-"),
    $e = K.useMemo(
      () => X.reduce((dt, qt, It) => (It >= pl ? dt : dt + qt.height), 0),
      [X, pl]
    ),
    re = Zv(),
    wu = h.invert || v,
    Xa = me === "loading";
  ((gn.current = K.useMemo(() => pl * gt + $e, [pl, $e])),
    K.useEffect(() => {
      gl.current = yl;
    }, [yl]),
    K.useEffect(() => {
      k(!0);
    }, []),
    K.useEffect(() => {
      const dt = Ce.current;
      if (dt) {
        const qt = dt.getBoundingClientRect().height;
        return (
          Vl(qt),
          D(It => [{ toastId: h.id, height: qt, position: h.position }, ...It]),
          () => D(It => It.filter(ce => ce.toastId !== h.id))
        );
      }
    }, [D, h.id]),
    K.useLayoutEffect(() => {
      if (!B) return;
      const dt = Ce.current,
        qt = dt.style.height;
      dt.style.height = "auto";
      const It = dt.getBoundingClientRect().height;
      ((dt.style.height = qt),
        Vl(It),
        D(ce =>
          ce.find(Vt => Vt.toastId === h.id)
            ? ce.map(Vt => (Vt.toastId === h.id ? { ...Vt, height: It } : Vt))
            : [{ toastId: h.id, height: It, position: h.position }, ...ce]
        ));
    }, [B, h.title, h.description, D, h.id, h.jsx, h.action, h.cancel]));
  const nn = K.useCallback(() => {
    (ut(!0),
      Je(gn.current),
      D(dt => dt.filter(qt => qt.toastId !== h.id)),
      setTimeout(() => {
        W(h);
      }, i0));
  }, [h, W, D, gn]);
  (K.useEffect(() => {
    if (
      (h.promise && me === "loading") ||
      h.duration === 1 / 0 ||
      h.type === "loading"
    )
      return;
    let dt;
    return (
      J || _ || re
        ? (() => {
            if (Vi.current < Va.current) {
              const ce = new Date().getTime() - Va.current;
              gl.current = gl.current - ce;
            }
            Vi.current = new Date().getTime();
          })()
        : (() => {
            gl.current !== 1 / 0 &&
              ((Va.current = new Date().getTime()),
              (dt = setTimeout(() => {
                (h.onAutoClose == null || h.onAutoClose.call(h, h), nn());
              }, gl.current)));
          })(),
      () => clearTimeout(dt)
    );
  }, [J, _, h, me, re, nn]),
    K.useEffect(() => {
      h.delete && (nn(), h.onDismiss == null || h.onDismiss.call(h, h));
    }, [nn, h.delete]));
  function Xl() {
    var dt;
    if (U?.loading) {
      var qt;
      return K.createElement(
        "div",
        {
          className: rn(
            w?.loader,
            h == null || (qt = h.classNames) == null ? void 0 : qt.loader,
            "sonner-loader"
          ),
          "data-visible": me === "loading",
        },
        U.loading
      );
    }
    return K.createElement(qv, {
      className: rn(
        w?.loader,
        h == null || (dt = h.classNames) == null ? void 0 : dt.loader
      ),
      visible: me === "loading",
    });
  }
  const kl = h.icon || U?.[me] || Lv(me);
  var bl, ln;
  return K.createElement(
    "li",
    {
      tabIndex: 0,
      ref: Ce,
      className: rn(
        xt,
        he,
        w?.toast,
        h == null || (u = h.classNames) == null ? void 0 : u.toast,
        w?.default,
        w?.[me],
        h == null || (r = h.classNames) == null ? void 0 : r[me]
      ),
      "data-sonner-toast": "",
      "data-rich-colors": (bl = h.richColors) != null ? bl : P,
      "data-styled": !(h.jsx || h.unstyled || z),
      "data-mounted": B,
      "data-promise": !!h.promise,
      "data-swiped": de,
      "data-removed": $,
      "data-visible": Ga,
      "data-y-position": vl,
      "data-x-position": ge,
      "data-index": V,
      "data-front": qa,
      "data-swiping": lt,
      "data-dismissible": Ln,
      "data-type": me,
      "data-invert": wu,
      "data-swipe-out": Ot,
      "data-swipe-direction": b,
      "data-expanded": !!(J || (yt && B)),
      "data-testid": h.testId,
      style: {
        "--index": V,
        "--toasts-before": V,
        "--z-index": F.length - V,
        "--offset": `${$ ? hn : gn.current}px`,
        "--initial-height": yt ? "auto" : `${La}px`,
        ...Q,
        ...h.style,
      },
      onDragEnd: () => {
        (ft(!1), ot(null), (Yn.current = null));
      },
      onPointerDown: dt => {
        dt.button !== 2 &&
          (Xa ||
            !Ln ||
            ((Ya.current = new Date()),
            Je(gn.current),
            dt.target.setPointerCapture(dt.pointerId),
            dt.target.tagName !== "BUTTON" &&
              (ft(!0), (Yn.current = { x: dt.clientX, y: dt.clientY }))));
      },
      onPointerUp: () => {
        var dt, qt, It;
        if (Ot || !Ln) return;
        Yn.current = null;
        const ce = Number(
            ((dt = Ce.current) == null
              ? void 0
              : dt.style
                  .getPropertyValue("--swipe-amount-x")
                  .replace("px", "")) || 0
          ),
          qn = Number(
            ((qt = Ce.current) == null
              ? void 0
              : qt.style
                  .getPropertyValue("--swipe-amount-y")
                  .replace("px", "")) || 0
          ),
          Vt =
            new Date().getTime() -
            ((It = Ya.current) == null ? void 0 : It.getTime()),
          ye = it === "x" ? ce : qn,
          xl = Math.abs(ye) / Vt;
        if (Math.abs(ye) >= a0 || xl > 0.11) {
          (Je(gn.current),
            h.onDismiss == null || h.onDismiss.call(h, h),
            H(
              it === "x" ? (ce > 0 ? "right" : "left") : qn > 0 ? "down" : "up"
            ),
            nn(),
            ne(!0));
          return;
        } else {
          var ve, be;
          ((ve = Ce.current) == null ||
            ve.style.setProperty("--swipe-amount-x", "0px"),
            (be = Ce.current) == null ||
              be.style.setProperty("--swipe-amount-y", "0px"));
        }
        (le(!1), ft(!1), ot(null));
      },
      onPointerMove: dt => {
        var qt, It, ce;
        if (
          !Yn.current ||
          !Ln ||
          ((qt = window.getSelection()) == null
            ? void 0
            : qt.toString().length) > 0
        )
          return;
        const Vt = dt.clientY - Yn.current.y,
          ye = dt.clientX - Yn.current.x;
        var xl;
        const ve = (xl = i.swipeDirections) != null ? xl : o0(ct);
        !it &&
          (Math.abs(ye) > 1 || Math.abs(Vt) > 1) &&
          ot(Math.abs(ye) > Math.abs(Vt) ? "x" : "y");
        let be = { x: 0, y: 0 };
        const Ql = We => 1 / (1.5 + Math.abs(We) / 20);
        if (it === "y") {
          if (ve.includes("top") || ve.includes("bottom"))
            if (
              (ve.includes("top") && Vt < 0) ||
              (ve.includes("bottom") && Vt > 0)
            )
              be.y = Vt;
            else {
              const We = Vt * Ql(Vt);
              be.y = Math.abs(We) < Math.abs(Vt) ? We : Vt;
            }
        } else if (it === "x" && (ve.includes("left") || ve.includes("right")))
          if (
            (ve.includes("left") && ye < 0) ||
            (ve.includes("right") && ye > 0)
          )
            be.x = ye;
          else {
            const We = ye * Ql(ye);
            be.x = Math.abs(We) < Math.abs(ye) ? We : ye;
          }
        ((Math.abs(be.x) > 0 || Math.abs(be.y) > 0) && le(!0),
          (It = Ce.current) == null ||
            It.style.setProperty("--swipe-amount-x", `${be.x}px`),
          (ce = Ce.current) == null ||
            ce.style.setProperty("--swipe-amount-y", `${be.y}px`));
      },
    },
    Gi && !h.jsx && me !== "loading"
      ? K.createElement(
          "button",
          {
            "aria-label": R,
            "data-disabled": Xa,
            "data-close-button": !0,
            onClick:
              Xa || !Ln
                ? () => {}
                : () => {
                    (nn(), h.onDismiss == null || h.onDismiss.call(h, h));
                  },
            className: rn(
              w?.closeButton,
              h == null || (s = h.classNames) == null ? void 0 : s.closeButton
            ),
          },
          (ln = U?.close) != null ? ln : Qv
        )
      : null,
    (me || h.icon || h.promise) &&
      h.icon !== null &&
      (U?.[me] !== null || h.icon)
      ? K.createElement(
          "div",
          {
            "data-icon": "",
            className: rn(
              w?.icon,
              h == null || (f = h.classNames) == null ? void 0 : f.icon
            ),
          },
          h.promise || (h.type === "loading" && !h.icon)
            ? h.icon || Xl()
            : null,
          h.type !== "loading" ? kl : null
        )
      : null,
    K.createElement(
      "div",
      {
        "data-content": "",
        className: rn(
          w?.content,
          h == null || (d = h.classNames) == null ? void 0 : d.content
        ),
      },
      K.createElement(
        "div",
        {
          "data-title": "",
          className: rn(
            w?.title,
            h == null || (p = h.classNames) == null ? void 0 : p.title
          ),
        },
        h.jsx ? h.jsx : typeof h.title == "function" ? h.title() : h.title
      ),
      h.description
        ? K.createElement(
            "div",
            {
              "data-description": "",
              className: rn(
                zt,
                Tu,
                w?.description,
                h == null || (x = h.classNames) == null ? void 0 : x.description
              ),
            },
            typeof h.description == "function" ? h.description() : h.description
          )
        : null
    ),
    K.isValidElement(h.cancel)
      ? h.cancel
      : h.cancel && nu(h.cancel)
        ? K.createElement(
            "button",
            {
              "data-button": !0,
              "data-cancel": !0,
              style: h.cancelButtonStyle || Z,
              onClick: dt => {
                nu(h.cancel) &&
                  Ln &&
                  (h.cancel.onClick == null ||
                    h.cancel.onClick.call(h.cancel, dt),
                  nn());
              },
              className: rn(
                w?.cancelButton,
                h == null || (y = h.classNames) == null
                  ? void 0
                  : y.cancelButton
              ),
            },
            h.cancel.label
          )
        : null,
    K.isValidElement(h.action)
      ? h.action
      : h.action && nu(h.action)
        ? K.createElement(
            "button",
            {
              "data-button": !0,
              "data-action": !0,
              style: h.actionButtonStyle || mt,
              onClick: dt => {
                nu(h.action) &&
                  (h.action.onClick == null ||
                    h.action.onClick.call(h.action, dt),
                  !dt.defaultPrevented && nn());
              },
              className: rn(
                w?.actionButton,
                h == null || (g = h.classNames) == null
                  ? void 0
                  : g.actionButton
              ),
            },
            h.action.label
          )
        : null
  );
};
function wh() {
  if (typeof window > "u" || typeof document > "u") return "ltr";
  const i = document.documentElement.getAttribute("dir");
  return i === "auto" || !i
    ? window.getComputedStyle(document.documentElement).direction
    : i;
}
function s0(i, u) {
  const r = {};
  return (
    [i, u].forEach((s, f) => {
      const d = f === 1,
        p = d ? "--mobile-offset" : "--offset",
        x = d ? e0 : t0;
      function y(g) {
        ["top", "right", "bottom", "left"].forEach(v => {
          r[`${p}-${v}`] = typeof g == "number" ? `${g}px` : g;
        });
      }
      typeof s == "number" || typeof s == "string"
        ? y(s)
        : typeof s == "object"
          ? ["top", "right", "bottom", "left"].forEach(g => {
              s[g] === void 0
                ? (r[`${p}-${g}`] = x)
                : (r[`${p}-${g}`] =
                    typeof s[g] == "number" ? `${s[g]}px` : s[g]);
            })
          : y(x);
    }),
    r
  );
}
const r0 = K.forwardRef(function (u, r) {
    const {
        id: s,
        invert: f,
        position: d = "bottom-right",
        hotkey: p = ["altKey", "KeyT"],
        expand: x,
        closeButton: y,
        className: g,
        offset: v,
        mobileOffset: h,
        theme: z = "light",
        richColors: _,
        duration: D,
        style: Y,
        visibleToasts: X = Iv,
        toastOptions: V,
        dir: F = wh(),
        gap: J = l0,
        icons: W,
        containerAriaLabel: P = "Notifications",
      } = u,
      [nt, Q] = K.useState([]),
      Z = K.useMemo(
        () =>
          s ? nt.filter(B => B.toasterId === s) : nt.filter(B => !B.toasterId),
        [nt, s]
      ),
      mt = K.useMemo(
        () =>
          Array.from(
            new Set([d].concat(Z.filter(B => B.position).map(B => B.position)))
          ),
        [Z, d]
      ),
      [xt, zt] = K.useState([]),
      [ht, ct] = K.useState(!1),
      [gt, yt] = K.useState(!1),
      [w, U] = K.useState(
        z !== "system"
          ? z
          : typeof window < "u" &&
              window.matchMedia &&
              window.matchMedia("(prefers-color-scheme: dark)").matches
            ? "dark"
            : "light"
      ),
      R = K.useRef(null),
      it = p.join("+").replace(/Key/g, "").replace(/Digit/g, ""),
      ot = K.useRef(null),
      b = K.useRef(!1),
      H = K.useCallback(B => {
        Q(k => {
          var $;
          return (
            (($ = k.find(ut => ut.id === B.id)) != null && $.delete) ||
              Oe.dismiss(B.id),
            k.filter(({ id: ut }) => ut !== B.id)
          );
        });
      }, []);
    return (
      K.useEffect(
        () =>
          Oe.subscribe(B => {
            if (B.dismiss) {
              requestAnimationFrame(() => {
                Q(k => k.map($ => ($.id === B.id ? { ...$, delete: !0 } : $)));
              });
              return;
            }
            setTimeout(() => {
              Hv.flushSync(() => {
                Q(k => {
                  const $ = k.findIndex(ut => ut.id === B.id);
                  return $ !== -1
                    ? [...k.slice(0, $), { ...k[$], ...B }, ...k.slice($ + 1)]
                    : [B, ...k];
                });
              });
            });
          }),
        [nt]
      ),
      K.useEffect(() => {
        if (z !== "system") {
          U(z);
          return;
        }
        if (
          (z === "system" &&
            (window.matchMedia &&
            window.matchMedia("(prefers-color-scheme: dark)").matches
              ? U("dark")
              : U("light")),
          typeof window > "u")
        )
          return;
        const B = window.matchMedia("(prefers-color-scheme: dark)");
        try {
          B.addEventListener("change", ({ matches: k }) => {
            U(k ? "dark" : "light");
          });
        } catch {
          B.addListener(({ matches: $ }) => {
            try {
              U($ ? "dark" : "light");
            } catch (ut) {
              console.error(ut);
            }
          });
        }
      }, [z]),
      K.useEffect(() => {
        nt.length <= 1 && ct(!1);
      }, [nt]),
      K.useEffect(() => {
        const B = k => {
          var $;
          if (p.every(ft => k[ft] || k.code === ft)) {
            var lt;
            (ct(!0), (lt = R.current) == null || lt.focus());
          }
          k.code === "Escape" &&
            (document.activeElement === R.current ||
              (($ = R.current) != null &&
                $.contains(document.activeElement))) &&
            ct(!1);
        };
        return (
          document.addEventListener("keydown", B),
          () => document.removeEventListener("keydown", B)
        );
      }, [p]),
      K.useEffect(() => {
        if (R.current)
          return () => {
            ot.current &&
              (ot.current.focus({ preventScroll: !0 }),
              (ot.current = null),
              (b.current = !1));
          };
      }, [R.current]),
      K.createElement(
        "section",
        {
          ref: r,
          "aria-label": `${P} ${it}`,
          tabIndex: -1,
          "aria-live": "polite",
          "aria-relevant": "additions text",
          "aria-atomic": "false",
          suppressHydrationWarning: !0,
        },
        mt.map((B, k) => {
          var $;
          const [ut, lt] = B.split("-");
          return Z.length
            ? K.createElement(
                "ol",
                {
                  key: B,
                  dir: F === "auto" ? wh() : F,
                  tabIndex: -1,
                  ref: R,
                  className: g,
                  "data-sonner-toaster": !0,
                  "data-sonner-theme": w,
                  "data-y-position": ut,
                  "data-x-position": lt,
                  style: {
                    "--front-toast-height": `${(($ = xt[0]) == null ? void 0 : $.height) || 0}px`,
                    "--width": `${n0}px`,
                    "--gap": `${J}px`,
                    ...Y,
                    ...s0(v, h),
                  },
                  onBlur: ft => {
                    b.current &&
                      !ft.currentTarget.contains(ft.relatedTarget) &&
                      ((b.current = !1),
                      ot.current &&
                        (ot.current.focus({ preventScroll: !0 }),
                        (ot.current = null)));
                  },
                  onFocus: ft => {
                    (ft.target instanceof HTMLElement &&
                      ft.target.dataset.dismissible === "false") ||
                      b.current ||
                      ((b.current = !0), (ot.current = ft.relatedTarget));
                  },
                  onMouseEnter: () => ct(!0),
                  onMouseMove: () => ct(!0),
                  onMouseLeave: () => {
                    gt || ct(!1);
                  },
                  onDragEnd: () => ct(!1),
                  onPointerDown: ft => {
                    (ft.target instanceof HTMLElement &&
                      ft.target.dataset.dismissible === "false") ||
                      yt(!0);
                  },
                  onPointerUp: () => yt(!1),
                },
                Z.filter(
                  ft => (!ft.position && k === 0) || ft.position === B
                ).map((ft, Ot) => {
                  var ne, de;
                  return K.createElement(u0, {
                    key: ft.id,
                    icons: W,
                    index: Ot,
                    toast: ft,
                    defaultRichColors: _,
                    duration: (ne = V?.duration) != null ? ne : D,
                    className: V?.className,
                    descriptionClassName: V?.descriptionClassName,
                    invert: f,
                    visibleToasts: X,
                    closeButton: (de = V?.closeButton) != null ? de : y,
                    interacting: gt,
                    position: B,
                    style: V?.style,
                    unstyled: V?.unstyled,
                    classNames: V?.classNames,
                    cancelButtonStyle: V?.cancelButtonStyle,
                    actionButtonStyle: V?.actionButtonStyle,
                    closeButtonAriaLabel: V?.closeButtonAriaLabel,
                    removeToast: H,
                    toasts: Z.filter(le => le.position == ft.position),
                    heights: xt.filter(le => le.position == ft.position),
                    setHeights: zt,
                    expandByDefault: x,
                    gap: J,
                    expanded: ht,
                    swipeDirections: u.swipeDirections,
                  });
                })
              )
            : null;
        })
      )
    );
  }),
  c0 = ({ ...i }) => {
    const { theme: u = "system" } = Uv();
    return E.jsx(r0, {
      theme: u,
      className: "toaster group",
      style: {
        "--normal-bg": "var(--popover)",
        "--normal-text": "var(--popover-foreground)",
        "--normal-border": "var(--border)",
      },
      ...i,
    });
  };
function Un(i, u, { checkForDefaultPrevented: r = !0 } = {}) {
  return function (f) {
    if ((i?.(f), r === !1 || !f.defaultPrevented)) return u?.(f);
  };
}
function Ah(i, u) {
  if (typeof i == "function") return i(u);
  i != null && (i.current = u);
}
function ig(...i) {
  return u => {
    let r = !1;
    const s = i.map(f => {
      const d = Ah(f, u);
      return (!r && typeof d == "function" && (r = !0), d);
    });
    if (r)
      return () => {
        for (let f = 0; f < s.length; f++) {
          const d = s[f];
          typeof d == "function" ? d() : Ah(i[f], null);
        }
      };
  };
}
function ql(...i) {
  return C.useCallback(ig(...i), i);
}
function og(i, u = []) {
  let r = [];
  function s(d, p) {
    const x = C.createContext(p),
      y = r.length;
    r = [...r, p];
    const g = h => {
      const { scope: z, children: _, ...D } = h,
        Y = z?.[i]?.[y] || x,
        X = C.useMemo(() => D, Object.values(D));
      return E.jsx(Y.Provider, { value: X, children: _ });
    };
    g.displayName = d + "Provider";
    function v(h, z) {
      const _ = z?.[i]?.[y] || x,
        D = C.useContext(_);
      if (D) return D;
      if (p !== void 0) return p;
      throw new Error(`\`${h}\` must be used within \`${d}\``);
    }
    return [g, v];
  }
  const f = () => {
    const d = r.map(p => C.createContext(p));
    return function (x) {
      const y = x?.[i] || d;
      return C.useMemo(() => ({ [`__scope${i}`]: { ...x, [i]: y } }), [x, y]);
    };
  };
  return ((f.scopeName = i), [s, f0(f, ...u)]);
}
function f0(...i) {
  const u = i[0];
  if (i.length === 1) return u;
  const r = () => {
    const s = i.map(f => ({ useScope: f(), scopeName: f.scopeName }));
    return function (d) {
      const p = s.reduce((x, { useScope: y, scopeName: g }) => {
        const h = y(d)[`__scope${g}`];
        return { ...x, ...h };
      }, {});
      return C.useMemo(() => ({ [`__scope${u.scopeName}`]: p }), [p]);
    };
  };
  return ((r.scopeName = u.scopeName), r);
}
function ug(i) {
  const u = m0(i),
    r = C.forwardRef((s, f) => {
      const { children: d, ...p } = s,
        x = C.Children.toArray(d),
        y = x.find(g0);
      if (y) {
        const g = y.props.children,
          v = x.map(h =>
            h === y
              ? C.Children.count(g) > 1
                ? C.Children.only(null)
                : C.isValidElement(g)
                  ? g.props.children
                  : null
              : h
          );
        return E.jsx(u, {
          ...p,
          ref: f,
          children: C.isValidElement(g) ? C.cloneElement(g, void 0, v) : null,
        });
      }
      return E.jsx(u, { ...p, ref: f, children: d });
    });
  return ((r.displayName = `${i}.Slot`), r);
}
var d0 = ug("Slot");
function m0(i) {
  const u = C.forwardRef((r, s) => {
    const { children: f, ...d } = r;
    if (C.isValidElement(f)) {
      const p = y0(f),
        x = p0(d, f.props);
      return (
        f.type !== C.Fragment && (x.ref = s ? ig(s, p) : p),
        C.cloneElement(f, x)
      );
    }
    return C.Children.count(f) > 1 ? C.Children.only(null) : null;
  });
  return ((u.displayName = `${i}.SlotClone`), u);
}
var sg = Symbol("radix.slottable");
function h0(i) {
  const u = ({ children: r }) => E.jsx(E.Fragment, { children: r });
  return ((u.displayName = `${i}.Slottable`), (u.__radixId = sg), u);
}
function g0(i) {
  return (
    C.isValidElement(i) &&
    typeof i.type == "function" &&
    "__radixId" in i.type &&
    i.type.__radixId === sg
  );
}
function p0(i, u) {
  const r = { ...u };
  for (const s in u) {
    const f = i[s],
      d = u[s];
    /^on[A-Z]/.test(s)
      ? f && d
        ? (r[s] = (...x) => {
            const y = d(...x);
            return (f(...x), y);
          })
        : f && (r[s] = f)
      : s === "style"
        ? (r[s] = { ...f, ...d })
        : s === "className" && (r[s] = [f, d].filter(Boolean).join(" "));
  }
  return { ...i, ...r };
}
function y0(i) {
  let u = Object.getOwnPropertyDescriptor(i.props, "ref")?.get,
    r = u && "isReactWarning" in u && u.isReactWarning;
  return r
    ? i.ref
    : ((u = Object.getOwnPropertyDescriptor(i, "ref")?.get),
      (r = u && "isReactWarning" in u && u.isReactWarning),
      r ? i.props.ref : i.props.ref || i.ref);
}
var v0 = [
    "a",
    "button",
    "div",
    "form",
    "h2",
    "h3",
    "img",
    "input",
    "label",
    "li",
    "nav",
    "ol",
    "p",
    "select",
    "span",
    "svg",
    "ul",
  ],
  Gl = v0.reduce((i, u) => {
    const r = ug(`Primitive.${u}`),
      s = C.forwardRef((f, d) => {
        const { asChild: p, ...x } = f,
          y = p ? r : u;
        return (
          typeof window < "u" && (window[Symbol.for("radix-ui")] = !0),
          E.jsx(y, { ...x, ref: d })
        );
      });
    return ((s.displayName = `Primitive.${u}`), { ...i, [u]: s });
  }, {});
function b0(i, u) {
  i && uc.flushSync(() => i.dispatchEvent(u));
}
function mu(i) {
  const u = C.useRef(i);
  return (
    C.useEffect(() => {
      u.current = i;
    }),
    C.useMemo(
      () =>
        (...r) =>
          u.current?.(...r),
      []
    )
  );
}
function x0(i, u = globalThis?.document) {
  const r = mu(i);
  C.useEffect(() => {
    const s = f => {
      f.key === "Escape" && r(f);
    };
    return (
      u.addEventListener("keydown", s, { capture: !0 }),
      () => u.removeEventListener("keydown", s, { capture: !0 })
    );
  }, [r, u]);
}
var S0 = "DismissableLayer",
  $r = "dismissableLayer.update",
  E0 = "dismissableLayer.pointerDownOutside",
  T0 = "dismissableLayer.focusOutside",
  zh,
  rg = C.createContext({
    layers: new Set(),
    layersWithOutsidePointerEventsDisabled: new Set(),
    branches: new Set(),
  }),
  cg = C.forwardRef((i, u) => {
    const {
        disableOutsidePointerEvents: r = !1,
        onEscapeKeyDown: s,
        onPointerDownOutside: f,
        onFocusOutside: d,
        onInteractOutside: p,
        onDismiss: x,
        ...y
      } = i,
      g = C.useContext(rg),
      [v, h] = C.useState(null),
      z = v?.ownerDocument ?? globalThis?.document,
      [, _] = C.useState({}),
      D = ql(u, Q => h(Q)),
      Y = Array.from(g.layers),
      [X] = [...g.layersWithOutsidePointerEventsDisabled].slice(-1),
      V = Y.indexOf(X),
      F = v ? Y.indexOf(v) : -1,
      J = g.layersWithOutsidePointerEventsDisabled.size > 0,
      W = F >= V,
      P = z0(Q => {
        const Z = Q.target,
          mt = [...g.branches].some(xt => xt.contains(Z));
        !W || mt || (f?.(Q), p?.(Q), Q.defaultPrevented || x?.());
      }, z),
      nt = O0(Q => {
        const Z = Q.target;
        [...g.branches].some(xt => xt.contains(Z)) ||
          (d?.(Q), p?.(Q), Q.defaultPrevented || x?.());
      }, z);
    return (
      x0(Q => {
        F === g.layers.size - 1 &&
          (s?.(Q), !Q.defaultPrevented && x && (Q.preventDefault(), x()));
      }, z),
      C.useEffect(() => {
        if (v)
          return (
            r &&
              (g.layersWithOutsidePointerEventsDisabled.size === 0 &&
                ((zh = z.body.style.pointerEvents),
                (z.body.style.pointerEvents = "none")),
              g.layersWithOutsidePointerEventsDisabled.add(v)),
            g.layers.add(v),
            Oh(),
            () => {
              r &&
                g.layersWithOutsidePointerEventsDisabled.size === 1 &&
                (z.body.style.pointerEvents = zh);
            }
          );
      }, [v, z, r, g]),
      C.useEffect(
        () => () => {
          v &&
            (g.layers.delete(v),
            g.layersWithOutsidePointerEventsDisabled.delete(v),
            Oh());
        },
        [v, g]
      ),
      C.useEffect(() => {
        const Q = () => _({});
        return (
          document.addEventListener($r, Q),
          () => document.removeEventListener($r, Q)
        );
      }, []),
      E.jsx(Gl.div, {
        ...y,
        ref: D,
        style: {
          pointerEvents: J ? (W ? "auto" : "none") : void 0,
          ...i.style,
        },
        onFocusCapture: Un(i.onFocusCapture, nt.onFocusCapture),
        onBlurCapture: Un(i.onBlurCapture, nt.onBlurCapture),
        onPointerDownCapture: Un(
          i.onPointerDownCapture,
          P.onPointerDownCapture
        ),
      })
    );
  });
cg.displayName = S0;
var w0 = "DismissableLayerBranch",
  A0 = C.forwardRef((i, u) => {
    const r = C.useContext(rg),
      s = C.useRef(null),
      f = ql(u, s);
    return (
      C.useEffect(() => {
        const d = s.current;
        if (d)
          return (
            r.branches.add(d),
            () => {
              r.branches.delete(d);
            }
          );
      }, [r.branches]),
      E.jsx(Gl.div, { ...i, ref: f })
    );
  });
A0.displayName = w0;
function z0(i, u = globalThis?.document) {
  const r = mu(i),
    s = C.useRef(!1),
    f = C.useRef(() => {});
  return (
    C.useEffect(() => {
      const d = x => {
          if (x.target && !s.current) {
            let y = function () {
              fg(E0, r, g, { discrete: !0 });
            };
            const g = { originalEvent: x };
            x.pointerType === "touch"
              ? (u.removeEventListener("click", f.current),
                (f.current = y),
                u.addEventListener("click", f.current, { once: !0 }))
              : y();
          } else u.removeEventListener("click", f.current);
          s.current = !1;
        },
        p = window.setTimeout(() => {
          u.addEventListener("pointerdown", d);
        }, 0);
      return () => {
        (window.clearTimeout(p),
          u.removeEventListener("pointerdown", d),
          u.removeEventListener("click", f.current));
      };
    }, [u, r]),
    { onPointerDownCapture: () => (s.current = !0) }
  );
}
function O0(i, u = globalThis?.document) {
  const r = mu(i),
    s = C.useRef(!1);
  return (
    C.useEffect(() => {
      const f = d => {
        d.target &&
          !s.current &&
          fg(T0, r, { originalEvent: d }, { discrete: !1 });
      };
      return (
        u.addEventListener("focusin", f),
        () => u.removeEventListener("focusin", f)
      );
    }, [u, r]),
    {
      onFocusCapture: () => (s.current = !0),
      onBlurCapture: () => (s.current = !1),
    }
  );
}
function Oh() {
  const i = new CustomEvent($r);
  document.dispatchEvent(i);
}
function fg(i, u, r, { discrete: s }) {
  const f = r.originalEvent.target,
    d = new CustomEvent(i, { bubbles: !1, cancelable: !0, detail: r });
  (u && f.addEventListener(i, u, { once: !0 }),
    s ? b0(f, d) : f.dispatchEvent(d));
}
var Hi = globalThis?.document ? C.useLayoutEffect : () => {};
const C0 = ["top", "right", "bottom", "left"],
  ml = Math.min,
  He = Math.max,
  su = Math.round,
  lu = Math.floor,
  fn = i => ({ x: i, y: i }),
  N0 = { left: "right", right: "left", bottom: "top", top: "bottom" },
  _0 = { start: "end", end: "start" };
function Wr(i, u, r) {
  return He(i, ml(u, r));
}
function Hn(i, u) {
  return typeof i == "function" ? i(u) : i;
}
function Bn(i) {
  return i.split("-")[0];
}
function ja(i) {
  return i.split("-")[1];
}
function sc(i) {
  return i === "x" ? "y" : "x";
}
function rc(i) {
  return i === "y" ? "height" : "width";
}
const M0 = new Set(["top", "bottom"]);
function cn(i) {
  return M0.has(Bn(i)) ? "y" : "x";
}
function cc(i) {
  return sc(cn(i));
}
function R0(i, u, r) {
  r === void 0 && (r = !1);
  const s = ja(i),
    f = cc(i),
    d = rc(f);
  let p =
    f === "x"
      ? s === (r ? "end" : "start")
        ? "right"
        : "left"
      : s === "start"
        ? "bottom"
        : "top";
  return (u.reference[d] > u.floating[d] && (p = ru(p)), [p, ru(p)]);
}
function D0(i) {
  const u = ru(i);
  return [Fr(i), u, Fr(u)];
}
function Fr(i) {
  return i.replace(/start|end/g, u => _0[u]);
}
const Ch = ["left", "right"],
  Nh = ["right", "left"],
  j0 = ["top", "bottom"],
  U0 = ["bottom", "top"];
function H0(i, u, r) {
  switch (i) {
    case "top":
    case "bottom":
      return r ? (u ? Nh : Ch) : u ? Ch : Nh;
    case "left":
    case "right":
      return u ? j0 : U0;
    default:
      return [];
  }
}
function B0(i, u, r, s) {
  const f = ja(i);
  let d = H0(Bn(i), r === "start", s);
  return (
    f && ((d = d.map(p => p + "-" + f)), u && (d = d.concat(d.map(Fr)))),
    d
  );
}
function ru(i) {
  return i.replace(/left|right|bottom|top/g, u => N0[u]);
}
function L0(i) {
  return { top: 0, right: 0, bottom: 0, left: 0, ...i };
}
function dg(i) {
  return typeof i != "number"
    ? L0(i)
    : { top: i, right: i, bottom: i, left: i };
}
function cu(i) {
  const { x: u, y: r, width: s, height: f } = i;
  return {
    width: s,
    height: f,
    top: r,
    left: u,
    right: u + s,
    bottom: r + f,
    x: u,
    y: r,
  };
}
function _h(i, u, r) {
  let { reference: s, floating: f } = i;
  const d = cn(u),
    p = cc(u),
    x = rc(p),
    y = Bn(u),
    g = d === "y",
    v = s.x + s.width / 2 - f.width / 2,
    h = s.y + s.height / 2 - f.height / 2,
    z = s[x] / 2 - f[x] / 2;
  let _;
  switch (y) {
    case "top":
      _ = { x: v, y: s.y - f.height };
      break;
    case "bottom":
      _ = { x: v, y: s.y + s.height };
      break;
    case "right":
      _ = { x: s.x + s.width, y: h };
      break;
    case "left":
      _ = { x: s.x - f.width, y: h };
      break;
    default:
      _ = { x: s.x, y: s.y };
  }
  switch (ja(u)) {
    case "start":
      _[p] -= z * (r && g ? -1 : 1);
      break;
    case "end":
      _[p] += z * (r && g ? -1 : 1);
      break;
  }
  return _;
}
const Y0 = async (i, u, r) => {
  const {
      placement: s = "bottom",
      strategy: f = "absolute",
      middleware: d = [],
      platform: p,
    } = r,
    x = d.filter(Boolean),
    y = await (p.isRTL == null ? void 0 : p.isRTL(u));
  let g = await p.getElementRects({ reference: i, floating: u, strategy: f }),
    { x: v, y: h } = _h(g, s, y),
    z = s,
    _ = {},
    D = 0;
  for (let Y = 0; Y < x.length; Y++) {
    const { name: X, fn: V } = x[Y],
      {
        x: F,
        y: J,
        data: W,
        reset: P,
      } = await V({
        x: v,
        y: h,
        initialPlacement: s,
        placement: z,
        strategy: f,
        middlewareData: _,
        rects: g,
        platform: p,
        elements: { reference: i, floating: u },
      });
    ((v = F ?? v),
      (h = J ?? h),
      (_ = { ..._, [X]: { ..._[X], ...W } }),
      P &&
        D <= 50 &&
        (D++,
        typeof P == "object" &&
          (P.placement && (z = P.placement),
          P.rects &&
            (g =
              P.rects === !0
                ? await p.getElementRects({
                    reference: i,
                    floating: u,
                    strategy: f,
                  })
                : P.rects),
          ({ x: v, y: h } = _h(g, z, y))),
        (Y = -1)));
  }
  return { x: v, y: h, placement: z, strategy: f, middlewareData: _ };
};
async function Bi(i, u) {
  var r;
  u === void 0 && (u = {});
  const { x: s, y: f, platform: d, rects: p, elements: x, strategy: y } = i,
    {
      boundary: g = "clippingAncestors",
      rootBoundary: v = "viewport",
      elementContext: h = "floating",
      altBoundary: z = !1,
      padding: _ = 0,
    } = Hn(u, i),
    D = dg(_),
    X = x[z ? (h === "floating" ? "reference" : "floating") : h],
    V = cu(
      await d.getClippingRect({
        element:
          (r = await (d.isElement == null ? void 0 : d.isElement(X))) == null ||
          r
            ? X
            : X.contextElement ||
              (await (d.getDocumentElement == null
                ? void 0
                : d.getDocumentElement(x.floating))),
        boundary: g,
        rootBoundary: v,
        strategy: y,
      })
    ),
    F =
      h === "floating"
        ? { x: s, y: f, width: p.floating.width, height: p.floating.height }
        : p.reference,
    J = await (d.getOffsetParent == null
      ? void 0
      : d.getOffsetParent(x.floating)),
    W = (await (d.isElement == null ? void 0 : d.isElement(J)))
      ? (await (d.getScale == null ? void 0 : d.getScale(J))) || { x: 1, y: 1 }
      : { x: 1, y: 1 },
    P = cu(
      d.convertOffsetParentRelativeRectToViewportRelativeRect
        ? await d.convertOffsetParentRelativeRectToViewportRelativeRect({
            elements: x,
            rect: F,
            offsetParent: J,
            strategy: y,
          })
        : F
    );
  return {
    top: (V.top - P.top + D.top) / W.y,
    bottom: (P.bottom - V.bottom + D.bottom) / W.y,
    left: (V.left - P.left + D.left) / W.x,
    right: (P.right - V.right + D.right) / W.x,
  };
}
const q0 = i => ({
    name: "arrow",
    options: i,
    async fn(u) {
      const {
          x: r,
          y: s,
          placement: f,
          rects: d,
          platform: p,
          elements: x,
          middlewareData: y,
        } = u,
        { element: g, padding: v = 0 } = Hn(i, u) || {};
      if (g == null) return {};
      const h = dg(v),
        z = { x: r, y: s },
        _ = cc(f),
        D = rc(_),
        Y = await p.getDimensions(g),
        X = _ === "y",
        V = X ? "top" : "left",
        F = X ? "bottom" : "right",
        J = X ? "clientHeight" : "clientWidth",
        W = d.reference[D] + d.reference[_] - z[_] - d.floating[D],
        P = z[_] - d.reference[_],
        nt = await (p.getOffsetParent == null ? void 0 : p.getOffsetParent(g));
      let Q = nt ? nt[J] : 0;
      (!Q || !(await (p.isElement == null ? void 0 : p.isElement(nt)))) &&
        (Q = x.floating[J] || d.floating[D]);
      const Z = W / 2 - P / 2,
        mt = Q / 2 - Y[D] / 2 - 1,
        xt = ml(h[V], mt),
        zt = ml(h[F], mt),
        ht = xt,
        ct = Q - Y[D] - zt,
        gt = Q / 2 - Y[D] / 2 + Z,
        yt = Wr(ht, gt, ct),
        w =
          !y.arrow &&
          ja(f) != null &&
          gt !== yt &&
          d.reference[D] / 2 - (gt < ht ? xt : zt) - Y[D] / 2 < 0,
        U = w ? (gt < ht ? gt - ht : gt - ct) : 0;
      return {
        [_]: z[_] + U,
        data: {
          [_]: yt,
          centerOffset: gt - yt - U,
          ...(w && { alignmentOffset: U }),
        },
        reset: w,
      };
    },
  }),
  G0 = function (i) {
    return (
      i === void 0 && (i = {}),
      {
        name: "flip",
        options: i,
        async fn(u) {
          var r, s;
          const {
              placement: f,
              middlewareData: d,
              rects: p,
              initialPlacement: x,
              platform: y,
              elements: g,
            } = u,
            {
              mainAxis: v = !0,
              crossAxis: h = !0,
              fallbackPlacements: z,
              fallbackStrategy: _ = "bestFit",
              fallbackAxisSideDirection: D = "none",
              flipAlignment: Y = !0,
              ...X
            } = Hn(i, u);
          if ((r = d.arrow) != null && r.alignmentOffset) return {};
          const V = Bn(f),
            F = cn(x),
            J = Bn(x) === x,
            W = await (y.isRTL == null ? void 0 : y.isRTL(g.floating)),
            P = z || (J || !Y ? [ru(x)] : D0(x)),
            nt = D !== "none";
          !z && nt && P.push(...B0(x, Y, D, W));
          const Q = [x, ...P],
            Z = await Bi(u, X),
            mt = [];
          let xt = ((s = d.flip) == null ? void 0 : s.overflows) || [];
          if ((v && mt.push(Z[V]), h)) {
            const gt = R0(f, p, W);
            mt.push(Z[gt[0]], Z[gt[1]]);
          }
          if (
            ((xt = [...xt, { placement: f, overflows: mt }]),
            !mt.every(gt => gt <= 0))
          ) {
            var zt, ht;
            const gt = (((zt = d.flip) == null ? void 0 : zt.index) || 0) + 1,
              yt = Q[gt];
            if (
              yt &&
              (!(h === "alignment" ? F !== cn(yt) : !1) ||
                xt.every(R =>
                  cn(R.placement) === F ? R.overflows[0] > 0 : !0
                ))
            )
              return {
                data: { index: gt, overflows: xt },
                reset: { placement: yt },
              };
            let w =
              (ht = xt
                .filter(U => U.overflows[0] <= 0)
                .sort((U, R) => U.overflows[1] - R.overflows[1])[0]) == null
                ? void 0
                : ht.placement;
            if (!w)
              switch (_) {
                case "bestFit": {
                  var ct;
                  const U =
                    (ct = xt
                      .filter(R => {
                        if (nt) {
                          const it = cn(R.placement);
                          return it === F || it === "y";
                        }
                        return !0;
                      })
                      .map(R => [
                        R.placement,
                        R.overflows
                          .filter(it => it > 0)
                          .reduce((it, ot) => it + ot, 0),
                      ])
                      .sort((R, it) => R[1] - it[1])[0]) == null
                      ? void 0
                      : ct[0];
                  U && (w = U);
                  break;
                }
                case "initialPlacement":
                  w = x;
                  break;
              }
            if (f !== w) return { reset: { placement: w } };
          }
          return {};
        },
      }
    );
  };
function Mh(i, u) {
  return {
    top: i.top - u.height,
    right: i.right - u.width,
    bottom: i.bottom - u.height,
    left: i.left - u.width,
  };
}
function Rh(i) {
  return C0.some(u => i[u] >= 0);
}
const V0 = function (i) {
    return (
      i === void 0 && (i = {}),
      {
        name: "hide",
        options: i,
        async fn(u) {
          const { rects: r } = u,
            { strategy: s = "referenceHidden", ...f } = Hn(i, u);
          switch (s) {
            case "referenceHidden": {
              const d = await Bi(u, { ...f, elementContext: "reference" }),
                p = Mh(d, r.reference);
              return {
                data: { referenceHiddenOffsets: p, referenceHidden: Rh(p) },
              };
            }
            case "escaped": {
              const d = await Bi(u, { ...f, altBoundary: !0 }),
                p = Mh(d, r.floating);
              return { data: { escapedOffsets: p, escaped: Rh(p) } };
            }
            default:
              return {};
          }
        },
      }
    );
  },
  mg = new Set(["left", "top"]);
async function X0(i, u) {
  const { placement: r, platform: s, elements: f } = i,
    d = await (s.isRTL == null ? void 0 : s.isRTL(f.floating)),
    p = Bn(r),
    x = ja(r),
    y = cn(r) === "y",
    g = mg.has(p) ? -1 : 1,
    v = d && y ? -1 : 1,
    h = Hn(u, i);
  let {
    mainAxis: z,
    crossAxis: _,
    alignmentAxis: D,
  } = typeof h == "number"
    ? { mainAxis: h, crossAxis: 0, alignmentAxis: null }
    : {
        mainAxis: h.mainAxis || 0,
        crossAxis: h.crossAxis || 0,
        alignmentAxis: h.alignmentAxis,
      };
  return (
    x && typeof D == "number" && (_ = x === "end" ? D * -1 : D),
    y ? { x: _ * v, y: z * g } : { x: z * g, y: _ * v }
  );
}
const k0 = function (i) {
    return (
      i === void 0 && (i = 0),
      {
        name: "offset",
        options: i,
        async fn(u) {
          var r, s;
          const { x: f, y: d, placement: p, middlewareData: x } = u,
            y = await X0(u, i);
          return p === ((r = x.offset) == null ? void 0 : r.placement) &&
            (s = x.arrow) != null &&
            s.alignmentOffset
            ? {}
            : { x: f + y.x, y: d + y.y, data: { ...y, placement: p } };
        },
      }
    );
  },
  Q0 = function (i) {
    return (
      i === void 0 && (i = {}),
      {
        name: "shift",
        options: i,
        async fn(u) {
          const { x: r, y: s, placement: f } = u,
            {
              mainAxis: d = !0,
              crossAxis: p = !1,
              limiter: x = {
                fn: X => {
                  let { x: V, y: F } = X;
                  return { x: V, y: F };
                },
              },
              ...y
            } = Hn(i, u),
            g = { x: r, y: s },
            v = await Bi(u, y),
            h = cn(Bn(f)),
            z = sc(h);
          let _ = g[z],
            D = g[h];
          if (d) {
            const X = z === "y" ? "top" : "left",
              V = z === "y" ? "bottom" : "right",
              F = _ + v[X],
              J = _ - v[V];
            _ = Wr(F, _, J);
          }
          if (p) {
            const X = h === "y" ? "top" : "left",
              V = h === "y" ? "bottom" : "right",
              F = D + v[X],
              J = D - v[V];
            D = Wr(F, D, J);
          }
          const Y = x.fn({ ...u, [z]: _, [h]: D });
          return {
            ...Y,
            data: { x: Y.x - r, y: Y.y - s, enabled: { [z]: d, [h]: p } },
          };
        },
      }
    );
  },
  Z0 = function (i) {
    return (
      i === void 0 && (i = {}),
      {
        options: i,
        fn(u) {
          const { x: r, y: s, placement: f, rects: d, middlewareData: p } = u,
            { offset: x = 0, mainAxis: y = !0, crossAxis: g = !0 } = Hn(i, u),
            v = { x: r, y: s },
            h = cn(f),
            z = sc(h);
          let _ = v[z],
            D = v[h];
          const Y = Hn(x, u),
            X =
              typeof Y == "number"
                ? { mainAxis: Y, crossAxis: 0 }
                : { mainAxis: 0, crossAxis: 0, ...Y };
          if (y) {
            const J = z === "y" ? "height" : "width",
              W = d.reference[z] - d.floating[J] + X.mainAxis,
              P = d.reference[z] + d.reference[J] - X.mainAxis;
            _ < W ? (_ = W) : _ > P && (_ = P);
          }
          if (g) {
            var V, F;
            const J = z === "y" ? "width" : "height",
              W = mg.has(Bn(f)),
              P =
                d.reference[h] -
                d.floating[J] +
                ((W && ((V = p.offset) == null ? void 0 : V[h])) || 0) +
                (W ? 0 : X.crossAxis),
              nt =
                d.reference[h] +
                d.reference[J] +
                (W ? 0 : ((F = p.offset) == null ? void 0 : F[h]) || 0) -
                (W ? X.crossAxis : 0);
            D < P ? (D = P) : D > nt && (D = nt);
          }
          return { [z]: _, [h]: D };
        },
      }
    );
  },
  K0 = function (i) {
    return (
      i === void 0 && (i = {}),
      {
        name: "size",
        options: i,
        async fn(u) {
          var r, s;
          const { placement: f, rects: d, platform: p, elements: x } = u,
            { apply: y = () => {}, ...g } = Hn(i, u),
            v = await Bi(u, g),
            h = Bn(f),
            z = ja(f),
            _ = cn(f) === "y",
            { width: D, height: Y } = d.floating;
          let X, V;
          h === "top" || h === "bottom"
            ? ((X = h),
              (V =
                z ===
                ((await (p.isRTL == null ? void 0 : p.isRTL(x.floating)))
                  ? "start"
                  : "end")
                  ? "left"
                  : "right"))
            : ((V = h), (X = z === "end" ? "top" : "bottom"));
          const F = Y - v.top - v.bottom,
            J = D - v.left - v.right,
            W = ml(Y - v[X], F),
            P = ml(D - v[V], J),
            nt = !u.middlewareData.shift;
          let Q = W,
            Z = P;
          if (
            ((r = u.middlewareData.shift) != null && r.enabled.x && (Z = J),
            (s = u.middlewareData.shift) != null && s.enabled.y && (Q = F),
            nt && !z)
          ) {
            const xt = He(v.left, 0),
              zt = He(v.right, 0),
              ht = He(v.top, 0),
              ct = He(v.bottom, 0);
            _
              ? (Z =
                  D -
                  2 * (xt !== 0 || zt !== 0 ? xt + zt : He(v.left, v.right)))
              : (Q =
                  Y -
                  2 * (ht !== 0 || ct !== 0 ? ht + ct : He(v.top, v.bottom)));
          }
          await y({ ...u, availableWidth: Z, availableHeight: Q });
          const mt = await p.getDimensions(x.floating);
          return D !== mt.width || Y !== mt.height
            ? { reset: { rects: !0 } }
            : {};
        },
      }
    );
  };
function hu() {
  return typeof window < "u";
}
function Ua(i) {
  return hg(i) ? (i.nodeName || "").toLowerCase() : "#document";
}
function Be(i) {
  var u;
  return (
    (i == null || (u = i.ownerDocument) == null ? void 0 : u.defaultView) ||
    window
  );
}
function mn(i) {
  var u;
  return (u = (hg(i) ? i.ownerDocument : i.document) || window.document) == null
    ? void 0
    : u.documentElement;
}
function hg(i) {
  return hu() ? i instanceof Node || i instanceof Be(i).Node : !1;
}
function tn(i) {
  return hu() ? i instanceof Element || i instanceof Be(i).Element : !1;
}
function dn(i) {
  return hu() ? i instanceof HTMLElement || i instanceof Be(i).HTMLElement : !1;
}
function Dh(i) {
  return !hu() || typeof ShadowRoot > "u"
    ? !1
    : i instanceof ShadowRoot || i instanceof Be(i).ShadowRoot;
}
const J0 = new Set(["inline", "contents"]);
function Yi(i) {
  const { overflow: u, overflowX: r, overflowY: s, display: f } = en(i);
  return /auto|scroll|overlay|hidden|clip/.test(u + s + r) && !J0.has(f);
}
const $0 = new Set(["table", "td", "th"]);
function W0(i) {
  return $0.has(Ua(i));
}
const F0 = [":popover-open", ":modal"];
function gu(i) {
  return F0.some(u => {
    try {
      return i.matches(u);
    } catch {
      return !1;
    }
  });
}
const P0 = ["transform", "translate", "scale", "rotate", "perspective"],
  I0 = ["transform", "translate", "scale", "rotate", "perspective", "filter"],
  tb = ["paint", "layout", "strict", "content"];
function fc(i) {
  const u = dc(),
    r = tn(i) ? en(i) : i;
  return (
    P0.some(s => (r[s] ? r[s] !== "none" : !1)) ||
    (r.containerType ? r.containerType !== "normal" : !1) ||
    (!u && (r.backdropFilter ? r.backdropFilter !== "none" : !1)) ||
    (!u && (r.filter ? r.filter !== "none" : !1)) ||
    I0.some(s => (r.willChange || "").includes(s)) ||
    tb.some(s => (r.contain || "").includes(s))
  );
}
function eb(i) {
  let u = hl(i);
  for (; dn(u) && !Ra(u); ) {
    if (fc(u)) return u;
    if (gu(u)) return null;
    u = hl(u);
  }
  return null;
}
function dc() {
  return typeof CSS > "u" || !CSS.supports
    ? !1
    : CSS.supports("-webkit-backdrop-filter", "none");
}
const nb = new Set(["html", "body", "#document"]);
function Ra(i) {
  return nb.has(Ua(i));
}
function en(i) {
  return Be(i).getComputedStyle(i);
}
function pu(i) {
  return tn(i)
    ? { scrollLeft: i.scrollLeft, scrollTop: i.scrollTop }
    : { scrollLeft: i.scrollX, scrollTop: i.scrollY };
}
function hl(i) {
  if (Ua(i) === "html") return i;
  const u = i.assignedSlot || i.parentNode || (Dh(i) && i.host) || mn(i);
  return Dh(u) ? u.host : u;
}
function gg(i) {
  const u = hl(i);
  return Ra(u)
    ? i.ownerDocument
      ? i.ownerDocument.body
      : i.body
    : dn(u) && Yi(u)
      ? u
      : gg(u);
}
function Li(i, u, r) {
  var s;
  (u === void 0 && (u = []), r === void 0 && (r = !0));
  const f = gg(i),
    d = f === ((s = i.ownerDocument) == null ? void 0 : s.body),
    p = Be(f);
  if (d) {
    const x = Pr(p);
    return u.concat(
      p,
      p.visualViewport || [],
      Yi(f) ? f : [],
      x && r ? Li(x) : []
    );
  }
  return u.concat(f, Li(f, [], r));
}
function Pr(i) {
  return i.parent && Object.getPrototypeOf(i.parent) ? i.frameElement : null;
}
function pg(i) {
  const u = en(i);
  let r = parseFloat(u.width) || 0,
    s = parseFloat(u.height) || 0;
  const f = dn(i),
    d = f ? i.offsetWidth : r,
    p = f ? i.offsetHeight : s,
    x = su(r) !== d || su(s) !== p;
  return (x && ((r = d), (s = p)), { width: r, height: s, $: x });
}
function mc(i) {
  return tn(i) ? i : i.contextElement;
}
function Ma(i) {
  const u = mc(i);
  if (!dn(u)) return fn(1);
  const r = u.getBoundingClientRect(),
    { width: s, height: f, $: d } = pg(u);
  let p = (d ? su(r.width) : r.width) / s,
    x = (d ? su(r.height) : r.height) / f;
  return (
    (!p || !Number.isFinite(p)) && (p = 1),
    (!x || !Number.isFinite(x)) && (x = 1),
    { x: p, y: x }
  );
}
const lb = fn(0);
function yg(i) {
  const u = Be(i);
  return !dc() || !u.visualViewport
    ? lb
    : { x: u.visualViewport.offsetLeft, y: u.visualViewport.offsetTop };
}
function ab(i, u, r) {
  return (u === void 0 && (u = !1), !r || (u && r !== Be(i)) ? !1 : u);
}
function Yl(i, u, r, s) {
  (u === void 0 && (u = !1), r === void 0 && (r = !1));
  const f = i.getBoundingClientRect(),
    d = mc(i);
  let p = fn(1);
  u && (s ? tn(s) && (p = Ma(s)) : (p = Ma(i)));
  const x = ab(d, r, s) ? yg(d) : fn(0);
  let y = (f.left + x.x) / p.x,
    g = (f.top + x.y) / p.y,
    v = f.width / p.x,
    h = f.height / p.y;
  if (d) {
    const z = Be(d),
      _ = s && tn(s) ? Be(s) : s;
    let D = z,
      Y = Pr(D);
    for (; Y && s && _ !== D; ) {
      const X = Ma(Y),
        V = Y.getBoundingClientRect(),
        F = en(Y),
        J = V.left + (Y.clientLeft + parseFloat(F.paddingLeft)) * X.x,
        W = V.top + (Y.clientTop + parseFloat(F.paddingTop)) * X.y;
      ((y *= X.x),
        (g *= X.y),
        (v *= X.x),
        (h *= X.y),
        (y += J),
        (g += W),
        (D = Be(Y)),
        (Y = Pr(D)));
    }
  }
  return cu({ width: v, height: h, x: y, y: g });
}
function yu(i, u) {
  const r = pu(i).scrollLeft;
  return u ? u.left + r : Yl(mn(i)).left + r;
}
function vg(i, u) {
  const r = i.getBoundingClientRect(),
    s = r.left + u.scrollLeft - yu(i, r),
    f = r.top + u.scrollTop;
  return { x: s, y: f };
}
function ib(i) {
  let { elements: u, rect: r, offsetParent: s, strategy: f } = i;
  const d = f === "fixed",
    p = mn(s),
    x = u ? gu(u.floating) : !1;
  if (s === p || (x && d)) return r;
  let y = { scrollLeft: 0, scrollTop: 0 },
    g = fn(1);
  const v = fn(0),
    h = dn(s);
  if (
    (h || (!h && !d)) &&
    ((Ua(s) !== "body" || Yi(p)) && (y = pu(s)), dn(s))
  ) {
    const _ = Yl(s);
    ((g = Ma(s)), (v.x = _.x + s.clientLeft), (v.y = _.y + s.clientTop));
  }
  const z = p && !h && !d ? vg(p, y) : fn(0);
  return {
    width: r.width * g.x,
    height: r.height * g.y,
    x: r.x * g.x - y.scrollLeft * g.x + v.x + z.x,
    y: r.y * g.y - y.scrollTop * g.y + v.y + z.y,
  };
}
function ob(i) {
  return Array.from(i.getClientRects());
}
function ub(i) {
  const u = mn(i),
    r = pu(i),
    s = i.ownerDocument.body,
    f = He(u.scrollWidth, u.clientWidth, s.scrollWidth, s.clientWidth),
    d = He(u.scrollHeight, u.clientHeight, s.scrollHeight, s.clientHeight);
  let p = -r.scrollLeft + yu(i);
  const x = -r.scrollTop;
  return (
    en(s).direction === "rtl" && (p += He(u.clientWidth, s.clientWidth) - f),
    { width: f, height: d, x: p, y: x }
  );
}
const jh = 25;
function sb(i, u) {
  const r = Be(i),
    s = mn(i),
    f = r.visualViewport;
  let d = s.clientWidth,
    p = s.clientHeight,
    x = 0,
    y = 0;
  if (f) {
    ((d = f.width), (p = f.height));
    const v = dc();
    (!v || (v && u === "fixed")) && ((x = f.offsetLeft), (y = f.offsetTop));
  }
  const g = yu(s);
  if (g <= 0) {
    const v = s.ownerDocument,
      h = v.body,
      z = getComputedStyle(h),
      _ =
        (v.compatMode === "CSS1Compat" &&
          parseFloat(z.marginLeft) + parseFloat(z.marginRight)) ||
        0,
      D = Math.abs(s.clientWidth - h.clientWidth - _);
    D <= jh && (d -= D);
  } else g <= jh && (d += g);
  return { width: d, height: p, x, y };
}
const rb = new Set(["absolute", "fixed"]);
function cb(i, u) {
  const r = Yl(i, !0, u === "fixed"),
    s = r.top + i.clientTop,
    f = r.left + i.clientLeft,
    d = dn(i) ? Ma(i) : fn(1),
    p = i.clientWidth * d.x,
    x = i.clientHeight * d.y,
    y = f * d.x,
    g = s * d.y;
  return { width: p, height: x, x: y, y: g };
}
function Uh(i, u, r) {
  let s;
  if (u === "viewport") s = sb(i, r);
  else if (u === "document") s = ub(mn(i));
  else if (tn(u)) s = cb(u, r);
  else {
    const f = yg(i);
    s = { x: u.x - f.x, y: u.y - f.y, width: u.width, height: u.height };
  }
  return cu(s);
}
function bg(i, u) {
  const r = hl(i);
  return r === u || !tn(r) || Ra(r)
    ? !1
    : en(r).position === "fixed" || bg(r, u);
}
function fb(i, u) {
  const r = u.get(i);
  if (r) return r;
  let s = Li(i, [], !1).filter(x => tn(x) && Ua(x) !== "body"),
    f = null;
  const d = en(i).position === "fixed";
  let p = d ? hl(i) : i;
  for (; tn(p) && !Ra(p); ) {
    const x = en(p),
      y = fc(p);
    (!y && x.position === "fixed" && (f = null),
      (
        d
          ? !y && !f
          : (!y && x.position === "static" && !!f && rb.has(f.position)) ||
            (Yi(p) && !y && bg(i, p))
      )
        ? (s = s.filter(v => v !== p))
        : (f = x),
      (p = hl(p)));
  }
  return (u.set(i, s), s);
}
function db(i) {
  let { element: u, boundary: r, rootBoundary: s, strategy: f } = i;
  const p = [
      ...(r === "clippingAncestors"
        ? gu(u)
          ? []
          : fb(u, this._c)
        : [].concat(r)),
      s,
    ],
    x = p[0],
    y = p.reduce(
      (g, v) => {
        const h = Uh(u, v, f);
        return (
          (g.top = He(h.top, g.top)),
          (g.right = ml(h.right, g.right)),
          (g.bottom = ml(h.bottom, g.bottom)),
          (g.left = He(h.left, g.left)),
          g
        );
      },
      Uh(u, x, f)
    );
  return {
    width: y.right - y.left,
    height: y.bottom - y.top,
    x: y.left,
    y: y.top,
  };
}
function mb(i) {
  const { width: u, height: r } = pg(i);
  return { width: u, height: r };
}
function hb(i, u, r) {
  const s = dn(u),
    f = mn(u),
    d = r === "fixed",
    p = Yl(i, !0, d, u);
  let x = { scrollLeft: 0, scrollTop: 0 };
  const y = fn(0);
  function g() {
    y.x = yu(f);
  }
  if (s || (!s && !d))
    if (((Ua(u) !== "body" || Yi(f)) && (x = pu(u)), s)) {
      const _ = Yl(u, !0, d, u);
      ((y.x = _.x + u.clientLeft), (y.y = _.y + u.clientTop));
    } else f && g();
  d && !s && f && g();
  const v = f && !s && !d ? vg(f, x) : fn(0),
    h = p.left + x.scrollLeft - y.x - v.x,
    z = p.top + x.scrollTop - y.y - v.y;
  return { x: h, y: z, width: p.width, height: p.height };
}
function Gr(i) {
  return en(i).position === "static";
}
function Hh(i, u) {
  if (!dn(i) || en(i).position === "fixed") return null;
  if (u) return u(i);
  let r = i.offsetParent;
  return (mn(i) === r && (r = r.ownerDocument.body), r);
}
function xg(i, u) {
  const r = Be(i);
  if (gu(i)) return r;
  if (!dn(i)) {
    let f = hl(i);
    for (; f && !Ra(f); ) {
      if (tn(f) && !Gr(f)) return f;
      f = hl(f);
    }
    return r;
  }
  let s = Hh(i, u);
  for (; s && W0(s) && Gr(s); ) s = Hh(s, u);
  return s && Ra(s) && Gr(s) && !fc(s) ? r : s || eb(i) || r;
}
const gb = async function (i) {
  const u = this.getOffsetParent || xg,
    r = this.getDimensions,
    s = await r(i.floating);
  return {
    reference: hb(i.reference, await u(i.floating), i.strategy),
    floating: { x: 0, y: 0, width: s.width, height: s.height },
  };
};
function pb(i) {
  return en(i).direction === "rtl";
}
const yb = {
  convertOffsetParentRelativeRectToViewportRelativeRect: ib,
  getDocumentElement: mn,
  getClippingRect: db,
  getOffsetParent: xg,
  getElementRects: gb,
  getClientRects: ob,
  getDimensions: mb,
  getScale: Ma,
  isElement: tn,
  isRTL: pb,
};
function Sg(i, u) {
  return (
    i.x === u.x && i.y === u.y && i.width === u.width && i.height === u.height
  );
}
function vb(i, u) {
  let r = null,
    s;
  const f = mn(i);
  function d() {
    var x;
    (clearTimeout(s), (x = r) == null || x.disconnect(), (r = null));
  }
  function p(x, y) {
    (x === void 0 && (x = !1), y === void 0 && (y = 1), d());
    const g = i.getBoundingClientRect(),
      { left: v, top: h, width: z, height: _ } = g;
    if ((x || u(), !z || !_)) return;
    const D = lu(h),
      Y = lu(f.clientWidth - (v + z)),
      X = lu(f.clientHeight - (h + _)),
      V = lu(v),
      J = {
        rootMargin: -D + "px " + -Y + "px " + -X + "px " + -V + "px",
        threshold: He(0, ml(1, y)) || 1,
      };
    let W = !0;
    function P(nt) {
      const Q = nt[0].intersectionRatio;
      if (Q !== y) {
        if (!W) return p();
        Q
          ? p(!1, Q)
          : (s = setTimeout(() => {
              p(!1, 1e-7);
            }, 1e3));
      }
      (Q === 1 && !Sg(g, i.getBoundingClientRect()) && p(), (W = !1));
    }
    try {
      r = new IntersectionObserver(P, { ...J, root: f.ownerDocument });
    } catch {
      r = new IntersectionObserver(P, J);
    }
    r.observe(i);
  }
  return (p(!0), d);
}
function bb(i, u, r, s) {
  s === void 0 && (s = {});
  const {
      ancestorScroll: f = !0,
      ancestorResize: d = !0,
      elementResize: p = typeof ResizeObserver == "function",
      layoutShift: x = typeof IntersectionObserver == "function",
      animationFrame: y = !1,
    } = s,
    g = mc(i),
    v = f || d ? [...(g ? Li(g) : []), ...Li(u)] : [];
  v.forEach(V => {
    (f && V.addEventListener("scroll", r, { passive: !0 }),
      d && V.addEventListener("resize", r));
  });
  const h = g && x ? vb(g, r) : null;
  let z = -1,
    _ = null;
  p &&
    ((_ = new ResizeObserver(V => {
      let [F] = V;
      (F &&
        F.target === g &&
        _ &&
        (_.unobserve(u),
        cancelAnimationFrame(z),
        (z = requestAnimationFrame(() => {
          var J;
          (J = _) == null || J.observe(u);
        }))),
        r());
    })),
    g && !y && _.observe(g),
    _.observe(u));
  let D,
    Y = y ? Yl(i) : null;
  y && X();
  function X() {
    const V = Yl(i);
    (Y && !Sg(Y, V) && r(), (Y = V), (D = requestAnimationFrame(X)));
  }
  return (
    r(),
    () => {
      var V;
      (v.forEach(F => {
        (f && F.removeEventListener("scroll", r),
          d && F.removeEventListener("resize", r));
      }),
        h?.(),
        (V = _) == null || V.disconnect(),
        (_ = null),
        y && cancelAnimationFrame(D));
    }
  );
}
const xb = k0,
  Sb = Q0,
  Eb = G0,
  Tb = K0,
  wb = V0,
  Bh = q0,
  Ab = Z0,
  zb = (i, u, r) => {
    const s = new Map(),
      f = { platform: yb, ...r },
      d = { ...f.platform, _c: s };
    return Y0(i, u, { ...f, platform: d });
  };
var Ob = typeof document < "u",
  Cb = function () {},
  uu = Ob ? C.useLayoutEffect : Cb;
function fu(i, u) {
  if (i === u) return !0;
  if (typeof i != typeof u) return !1;
  if (typeof i == "function" && i.toString() === u.toString()) return !0;
  let r, s, f;
  if (i && u && typeof i == "object") {
    if (Array.isArray(i)) {
      if (((r = i.length), r !== u.length)) return !1;
      for (s = r; s-- !== 0; ) if (!fu(i[s], u[s])) return !1;
      return !0;
    }
    if (((f = Object.keys(i)), (r = f.length), r !== Object.keys(u).length))
      return !1;
    for (s = r; s-- !== 0; ) if (!{}.hasOwnProperty.call(u, f[s])) return !1;
    for (s = r; s-- !== 0; ) {
      const d = f[s];
      if (!(d === "_owner" && i.$$typeof) && !fu(i[d], u[d])) return !1;
    }
    return !0;
  }
  return i !== i && u !== u;
}
function Eg(i) {
  return typeof window > "u"
    ? 1
    : (i.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function Lh(i, u) {
  const r = Eg(i);
  return Math.round(u * r) / r;
}
function Vr(i) {
  const u = C.useRef(i);
  return (
    uu(() => {
      u.current = i;
    }),
    u
  );
}
function Nb(i) {
  i === void 0 && (i = {});
  const {
      placement: u = "bottom",
      strategy: r = "absolute",
      middleware: s = [],
      platform: f,
      elements: { reference: d, floating: p } = {},
      transform: x = !0,
      whileElementsMounted: y,
      open: g,
    } = i,
    [v, h] = C.useState({
      x: 0,
      y: 0,
      strategy: r,
      placement: u,
      middlewareData: {},
      isPositioned: !1,
    }),
    [z, _] = C.useState(s);
  fu(z, s) || _(s);
  const [D, Y] = C.useState(null),
    [X, V] = C.useState(null),
    F = C.useCallback(R => {
      R !== nt.current && ((nt.current = R), Y(R));
    }, []),
    J = C.useCallback(R => {
      R !== Q.current && ((Q.current = R), V(R));
    }, []),
    W = d || D,
    P = p || X,
    nt = C.useRef(null),
    Q = C.useRef(null),
    Z = C.useRef(v),
    mt = y != null,
    xt = Vr(y),
    zt = Vr(f),
    ht = Vr(g),
    ct = C.useCallback(() => {
      if (!nt.current || !Q.current) return;
      const R = { placement: u, strategy: r, middleware: z };
      (zt.current && (R.platform = zt.current),
        zb(nt.current, Q.current, R).then(it => {
          const ot = { ...it, isPositioned: ht.current !== !1 };
          gt.current &&
            !fu(Z.current, ot) &&
            ((Z.current = ot),
            uc.flushSync(() => {
              h(ot);
            }));
        }));
    }, [z, u, r, zt, ht]);
  uu(() => {
    g === !1 &&
      Z.current.isPositioned &&
      ((Z.current.isPositioned = !1), h(R => ({ ...R, isPositioned: !1 })));
  }, [g]);
  const gt = C.useRef(!1);
  (uu(
    () => (
      (gt.current = !0),
      () => {
        gt.current = !1;
      }
    ),
    []
  ),
    uu(() => {
      if ((W && (nt.current = W), P && (Q.current = P), W && P)) {
        if (xt.current) return xt.current(W, P, ct);
        ct();
      }
    }, [W, P, ct, xt, mt]));
  const yt = C.useMemo(
      () => ({ reference: nt, floating: Q, setReference: F, setFloating: J }),
      [F, J]
    ),
    w = C.useMemo(() => ({ reference: W, floating: P }), [W, P]),
    U = C.useMemo(() => {
      const R = { position: r, left: 0, top: 0 };
      if (!w.floating) return R;
      const it = Lh(w.floating, v.x),
        ot = Lh(w.floating, v.y);
      return x
        ? {
            ...R,
            transform: "translate(" + it + "px, " + ot + "px)",
            ...(Eg(w.floating) >= 1.5 && { willChange: "transform" }),
          }
        : { position: r, left: it, top: ot };
    }, [r, x, w.floating, v.x, v.y]);
  return C.useMemo(
    () => ({ ...v, update: ct, refs: yt, elements: w, floatingStyles: U }),
    [v, ct, yt, w, U]
  );
}
const _b = i => {
    function u(r) {
      return {}.hasOwnProperty.call(r, "current");
    }
    return {
      name: "arrow",
      options: i,
      fn(r) {
        const { element: s, padding: f } = typeof i == "function" ? i(r) : i;
        return s && u(s)
          ? s.current != null
            ? Bh({ element: s.current, padding: f }).fn(r)
            : {}
          : s
            ? Bh({ element: s, padding: f }).fn(r)
            : {};
      },
    };
  },
  Mb = (i, u) => ({ ...xb(i), options: [i, u] }),
  Rb = (i, u) => ({ ...Sb(i), options: [i, u] }),
  Db = (i, u) => ({ ...Ab(i), options: [i, u] }),
  jb = (i, u) => ({ ...Eb(i), options: [i, u] }),
  Ub = (i, u) => ({ ...Tb(i), options: [i, u] }),
  Hb = (i, u) => ({ ...wb(i), options: [i, u] }),
  Bb = (i, u) => ({ ..._b(i), options: [i, u] });
var Lb = "Arrow",
  Tg = C.forwardRef((i, u) => {
    const { children: r, width: s = 10, height: f = 5, ...d } = i;
    return E.jsx(Gl.svg, {
      ...d,
      ref: u,
      width: s,
      height: f,
      viewBox: "0 0 30 10",
      preserveAspectRatio: "none",
      children: i.asChild ? r : E.jsx("polygon", { points: "0,0 30,0 15,10" }),
    });
  });
Tg.displayName = Lb;
var Yb = Tg;
function qb(i) {
  const [u, r] = C.useState(void 0);
  return (
    Hi(() => {
      if (i) {
        r({ width: i.offsetWidth, height: i.offsetHeight });
        const s = new ResizeObserver(f => {
          if (!Array.isArray(f) || !f.length) return;
          const d = f[0];
          let p, x;
          if ("borderBoxSize" in d) {
            const y = d.borderBoxSize,
              g = Array.isArray(y) ? y[0] : y;
            ((p = g.inlineSize), (x = g.blockSize));
          } else ((p = i.offsetWidth), (x = i.offsetHeight));
          r({ width: p, height: x });
        });
        return (s.observe(i, { box: "border-box" }), () => s.unobserve(i));
      } else r(void 0);
    }, [i]),
    u
  );
}
var wg = "Popper",
  [Ag, zg] = og(wg),
  [oS, Og] = Ag(wg),
  Cg = "PopperAnchor",
  Ng = C.forwardRef((i, u) => {
    const { __scopePopper: r, virtualRef: s, ...f } = i,
      d = Og(Cg, r),
      p = C.useRef(null),
      x = ql(u, p),
      y = C.useRef(null);
    return (
      C.useEffect(() => {
        const g = y.current;
        ((y.current = s?.current || p.current),
          g !== y.current && d.onAnchorChange(y.current));
      }),
      s ? null : E.jsx(Gl.div, { ...f, ref: x })
    );
  });
Ng.displayName = Cg;
var hc = "PopperContent",
  [Gb, Vb] = Ag(hc),
  _g = C.forwardRef((i, u) => {
    const {
        __scopePopper: r,
        side: s = "bottom",
        sideOffset: f = 0,
        align: d = "center",
        alignOffset: p = 0,
        arrowPadding: x = 0,
        avoidCollisions: y = !0,
        collisionBoundary: g = [],
        collisionPadding: v = 0,
        sticky: h = "partial",
        hideWhenDetached: z = !1,
        updatePositionStrategy: _ = "optimized",
        onPlaced: D,
        ...Y
      } = i,
      X = Og(hc, r),
      [V, F] = C.useState(null),
      J = ql(u, lt => F(lt)),
      [W, P] = C.useState(null),
      nt = qb(W),
      Q = nt?.width ?? 0,
      Z = nt?.height ?? 0,
      mt = s + (d !== "center" ? "-" + d : ""),
      xt =
        typeof v == "number"
          ? v
          : { top: 0, right: 0, bottom: 0, left: 0, ...v },
      zt = Array.isArray(g) ? g : [g],
      ht = zt.length > 0,
      ct = { padding: xt, boundary: zt.filter(kb), altBoundary: ht },
      {
        refs: gt,
        floatingStyles: yt,
        placement: w,
        isPositioned: U,
        middlewareData: R,
      } = Nb({
        strategy: "fixed",
        placement: mt,
        whileElementsMounted: (...lt) =>
          bb(...lt, { animationFrame: _ === "always" }),
        elements: { reference: X.anchor },
        middleware: [
          Mb({ mainAxis: f + Z, alignmentAxis: p }),
          y &&
            Rb({
              mainAxis: !0,
              crossAxis: !1,
              limiter: h === "partial" ? Db() : void 0,
              ...ct,
            }),
          y && jb({ ...ct }),
          Ub({
            ...ct,
            apply: ({
              elements: lt,
              rects: ft,
              availableWidth: Ot,
              availableHeight: ne,
            }) => {
              const { width: de, height: le } = ft.reference,
                hn = lt.floating.style;
              (hn.setProperty("--radix-popper-available-width", `${Ot}px`),
                hn.setProperty("--radix-popper-available-height", `${ne}px`),
                hn.setProperty("--radix-popper-anchor-width", `${de}px`),
                hn.setProperty("--radix-popper-anchor-height", `${le}px`));
            },
          }),
          W && Bb({ element: W, padding: x }),
          Qb({ arrowWidth: Q, arrowHeight: Z }),
          z && Hb({ strategy: "referenceHidden", ...ct }),
        ],
      }),
      [it, ot] = Dg(w),
      b = mu(D);
    Hi(() => {
      U && b?.();
    }, [U, b]);
    const H = R.arrow?.x,
      B = R.arrow?.y,
      k = R.arrow?.centerOffset !== 0,
      [$, ut] = C.useState();
    return (
      Hi(() => {
        V && ut(window.getComputedStyle(V).zIndex);
      }, [V]),
      E.jsx("div", {
        ref: gt.setFloating,
        "data-radix-popper-content-wrapper": "",
        style: {
          ...yt,
          transform: U ? yt.transform : "translate(0, -200%)",
          minWidth: "max-content",
          zIndex: $,
          "--radix-popper-transform-origin": [
            R.transformOrigin?.x,
            R.transformOrigin?.y,
          ].join(" "),
          ...(R.hide?.referenceHidden && {
            visibility: "hidden",
            pointerEvents: "none",
          }),
        },
        dir: i.dir,
        children: E.jsx(Gb, {
          scope: r,
          placedSide: it,
          onArrowChange: P,
          arrowX: H,
          arrowY: B,
          shouldHideArrow: k,
          children: E.jsx(Gl.div, {
            "data-side": it,
            "data-align": ot,
            ...Y,
            ref: J,
            style: { ...Y.style, animation: U ? void 0 : "none" },
          }),
        }),
      })
    );
  });
_g.displayName = hc;
var Mg = "PopperArrow",
  Xb = { top: "bottom", right: "left", bottom: "top", left: "right" },
  Rg = C.forwardRef(function (u, r) {
    const { __scopePopper: s, ...f } = u,
      d = Vb(Mg, s),
      p = Xb[d.placedSide];
    return E.jsx("span", {
      ref: d.onArrowChange,
      style: {
        position: "absolute",
        left: d.arrowX,
        top: d.arrowY,
        [p]: 0,
        transformOrigin: {
          top: "",
          right: "0 0",
          bottom: "center 0",
          left: "100% 0",
        }[d.placedSide],
        transform: {
          top: "translateY(100%)",
          right: "translateY(50%) rotate(90deg) translateX(-50%)",
          bottom: "rotate(180deg)",
          left: "translateY(50%) rotate(-90deg) translateX(50%)",
        }[d.placedSide],
        visibility: d.shouldHideArrow ? "hidden" : void 0,
      },
      children: E.jsx(Yb, {
        ...f,
        ref: r,
        style: { ...f.style, display: "block" },
      }),
    });
  });
Rg.displayName = Mg;
function kb(i) {
  return i !== null;
}
var Qb = i => ({
  name: "transformOrigin",
  options: i,
  fn(u) {
    const { placement: r, rects: s, middlewareData: f } = u,
      p = f.arrow?.centerOffset !== 0,
      x = p ? 0 : i.arrowWidth,
      y = p ? 0 : i.arrowHeight,
      [g, v] = Dg(r),
      h = { start: "0%", center: "50%", end: "100%" }[v],
      z = (f.arrow?.x ?? 0) + x / 2,
      _ = (f.arrow?.y ?? 0) + y / 2;
    let D = "",
      Y = "";
    return (
      g === "bottom"
        ? ((D = p ? h : `${z}px`), (Y = `${-y}px`))
        : g === "top"
          ? ((D = p ? h : `${z}px`), (Y = `${s.floating.height + y}px`))
          : g === "right"
            ? ((D = `${-y}px`), (Y = p ? h : `${_}px`))
            : g === "left" &&
              ((D = `${s.floating.width + y}px`), (Y = p ? h : `${_}px`)),
      { data: { x: D, y: Y } }
    );
  },
});
function Dg(i) {
  const [u, r = "center"] = i.split("-");
  return [u, r];
}
var Zb = Ng,
  Kb = _g,
  Jb = Rg;
function $b(i, u) {
  return C.useReducer((r, s) => u[r][s] ?? r, i);
}
var jg = i => {
  const { present: u, children: r } = i,
    s = Wb(u),
    f =
      typeof r == "function" ? r({ present: s.isPresent }) : C.Children.only(r),
    d = ql(s.ref, Fb(f));
  return typeof r == "function" || s.isPresent
    ? C.cloneElement(f, { ref: d })
    : null;
};
jg.displayName = "Presence";
function Wb(i) {
  const [u, r] = C.useState(),
    s = C.useRef(null),
    f = C.useRef(i),
    d = C.useRef("none"),
    p = i ? "mounted" : "unmounted",
    [x, y] = $b(p, {
      mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" },
      unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" },
      unmounted: { MOUNT: "mounted" },
    });
  return (
    C.useEffect(() => {
      const g = au(s.current);
      d.current = x === "mounted" ? g : "none";
    }, [x]),
    Hi(() => {
      const g = s.current,
        v = f.current;
      if (v !== i) {
        const z = d.current,
          _ = au(g);
        (i
          ? y("MOUNT")
          : _ === "none" || g?.display === "none"
            ? y("UNMOUNT")
            : y(v && z !== _ ? "ANIMATION_OUT" : "UNMOUNT"),
          (f.current = i));
      }
    }, [i, y]),
    Hi(() => {
      if (u) {
        let g;
        const v = u.ownerDocument.defaultView ?? window,
          h = _ => {
            const Y = au(s.current).includes(CSS.escape(_.animationName));
            if (_.target === u && Y && (y("ANIMATION_END"), !f.current)) {
              const X = u.style.animationFillMode;
              ((u.style.animationFillMode = "forwards"),
                (g = v.setTimeout(() => {
                  u.style.animationFillMode === "forwards" &&
                    (u.style.animationFillMode = X);
                })));
            }
          },
          z = _ => {
            _.target === u && (d.current = au(s.current));
          };
        return (
          u.addEventListener("animationstart", z),
          u.addEventListener("animationcancel", h),
          u.addEventListener("animationend", h),
          () => {
            (v.clearTimeout(g),
              u.removeEventListener("animationstart", z),
              u.removeEventListener("animationcancel", h),
              u.removeEventListener("animationend", h));
          }
        );
      } else y("ANIMATION_END");
    }, [u, y]),
    {
      isPresent: ["mounted", "unmountSuspended"].includes(x),
      ref: C.useCallback(g => {
        ((s.current = g ? getComputedStyle(g) : null), r(g));
      }, []),
    }
  );
}
function au(i) {
  return i?.animationName || "none";
}
function Fb(i) {
  let u = Object.getOwnPropertyDescriptor(i.props, "ref")?.get,
    r = u && "isReactWarning" in u && u.isReactWarning;
  return r
    ? i.ref
    : ((u = Object.getOwnPropertyDescriptor(i, "ref")?.get),
      (r = u && "isReactWarning" in u && u.isReactWarning),
      r ? i.props.ref : i.props.ref || i.ref);
}
var Pb = Object.freeze({
    position: "absolute",
    border: 0,
    width: 1,
    height: 1,
    padding: 0,
    margin: -1,
    overflow: "hidden",
    clip: "rect(0, 0, 0, 0)",
    whiteSpace: "nowrap",
    wordWrap: "normal",
  }),
  Ib = "VisuallyHidden",
  Ug = C.forwardRef((i, u) =>
    E.jsx(Gl.span, { ...i, ref: u, style: { ...Pb, ...i.style } })
  );
Ug.displayName = Ib;
var t1 = Ug,
  [vu] = og("Tooltip", [zg]),
  gc = zg(),
  Hg = "TooltipProvider",
  e1 = 700,
  Yh = "tooltip.open",
  [n1, Bg] = vu(Hg),
  Lg = i => {
    const {
        __scopeTooltip: u,
        delayDuration: r = e1,
        skipDelayDuration: s = 300,
        disableHoverableContent: f = !1,
        children: d,
      } = i,
      p = C.useRef(!0),
      x = C.useRef(!1),
      y = C.useRef(0);
    return (
      C.useEffect(() => {
        const g = y.current;
        return () => window.clearTimeout(g);
      }, []),
      E.jsx(n1, {
        scope: u,
        isOpenDelayedRef: p,
        delayDuration: r,
        onOpen: C.useCallback(() => {
          (window.clearTimeout(y.current), (p.current = !1));
        }, []),
        onClose: C.useCallback(() => {
          (window.clearTimeout(y.current),
            (y.current = window.setTimeout(() => (p.current = !0), s)));
        }, [s]),
        isPointerInTransitRef: x,
        onPointerInTransitChange: C.useCallback(g => {
          x.current = g;
        }, []),
        disableHoverableContent: f,
        children: d,
      })
    );
  };
Lg.displayName = Hg;
var Yg = "Tooltip",
  [uS, bu] = vu(Yg),
  Ir = "TooltipTrigger",
  l1 = C.forwardRef((i, u) => {
    const { __scopeTooltip: r, ...s } = i,
      f = bu(Ir, r),
      d = Bg(Ir, r),
      p = gc(r),
      x = C.useRef(null),
      y = ql(u, x, f.onTriggerChange),
      g = C.useRef(!1),
      v = C.useRef(!1),
      h = C.useCallback(() => (g.current = !1), []);
    return (
      C.useEffect(
        () => () => document.removeEventListener("pointerup", h),
        [h]
      ),
      E.jsx(Zb, {
        asChild: !0,
        ...p,
        children: E.jsx(Gl.button, {
          "aria-describedby": f.open ? f.contentId : void 0,
          "data-state": f.stateAttribute,
          ...s,
          ref: y,
          onPointerMove: Un(i.onPointerMove, z => {
            z.pointerType !== "touch" &&
              !v.current &&
              !d.isPointerInTransitRef.current &&
              (f.onTriggerEnter(), (v.current = !0));
          }),
          onPointerLeave: Un(i.onPointerLeave, () => {
            (f.onTriggerLeave(), (v.current = !1));
          }),
          onPointerDown: Un(i.onPointerDown, () => {
            (f.open && f.onClose(),
              (g.current = !0),
              document.addEventListener("pointerup", h, { once: !0 }));
          }),
          onFocus: Un(i.onFocus, () => {
            g.current || f.onOpen();
          }),
          onBlur: Un(i.onBlur, f.onClose),
          onClick: Un(i.onClick, f.onClose),
        }),
      })
    );
  });
l1.displayName = Ir;
var a1 = "TooltipPortal",
  [sS, i1] = vu(a1, { forceMount: void 0 }),
  Da = "TooltipContent",
  o1 = C.forwardRef((i, u) => {
    const r = i1(Da, i.__scopeTooltip),
      { forceMount: s = r.forceMount, side: f = "top", ...d } = i,
      p = bu(Da, i.__scopeTooltip);
    return E.jsx(jg, {
      present: s || p.open,
      children: p.disableHoverableContent
        ? E.jsx(qg, { side: f, ...d, ref: u })
        : E.jsx(u1, { side: f, ...d, ref: u }),
    });
  }),
  u1 = C.forwardRef((i, u) => {
    const r = bu(Da, i.__scopeTooltip),
      s = Bg(Da, i.__scopeTooltip),
      f = C.useRef(null),
      d = ql(u, f),
      [p, x] = C.useState(null),
      { trigger: y, onClose: g } = r,
      v = f.current,
      { onPointerInTransitChange: h } = s,
      z = C.useCallback(() => {
        (x(null), h(!1));
      }, [h]),
      _ = C.useCallback(
        (D, Y) => {
          const X = D.currentTarget,
            V = { x: D.clientX, y: D.clientY },
            F = d1(V, X.getBoundingClientRect()),
            J = m1(V, F),
            W = h1(Y.getBoundingClientRect()),
            P = p1([...J, ...W]);
          (x(P), h(!0));
        },
        [h]
      );
    return (
      C.useEffect(() => () => z(), [z]),
      C.useEffect(() => {
        if (y && v) {
          const D = X => _(X, v),
            Y = X => _(X, y);
          return (
            y.addEventListener("pointerleave", D),
            v.addEventListener("pointerleave", Y),
            () => {
              (y.removeEventListener("pointerleave", D),
                v.removeEventListener("pointerleave", Y));
            }
          );
        }
      }, [y, v, _, z]),
      C.useEffect(() => {
        if (p) {
          const D = Y => {
            const X = Y.target,
              V = { x: Y.clientX, y: Y.clientY },
              F = y?.contains(X) || v?.contains(X),
              J = !g1(V, p);
            F ? z() : J && (z(), g());
          };
          return (
            document.addEventListener("pointermove", D),
            () => document.removeEventListener("pointermove", D)
          );
        }
      }, [y, v, p, g, z]),
      E.jsx(qg, { ...i, ref: d })
    );
  }),
  [s1, r1] = vu(Yg, { isInside: !1 }),
  c1 = h0("TooltipContent"),
  qg = C.forwardRef((i, u) => {
    const {
        __scopeTooltip: r,
        children: s,
        "aria-label": f,
        onEscapeKeyDown: d,
        onPointerDownOutside: p,
        ...x
      } = i,
      y = bu(Da, r),
      g = gc(r),
      { onClose: v } = y;
    return (
      C.useEffect(
        () => (
          document.addEventListener(Yh, v),
          () => document.removeEventListener(Yh, v)
        ),
        [v]
      ),
      C.useEffect(() => {
        if (y.trigger) {
          const h = z => {
            z.target?.contains(y.trigger) && v();
          };
          return (
            window.addEventListener("scroll", h, { capture: !0 }),
            () => window.removeEventListener("scroll", h, { capture: !0 })
          );
        }
      }, [y.trigger, v]),
      E.jsx(cg, {
        asChild: !0,
        disableOutsidePointerEvents: !1,
        onEscapeKeyDown: d,
        onPointerDownOutside: p,
        onFocusOutside: h => h.preventDefault(),
        onDismiss: v,
        children: E.jsxs(Kb, {
          "data-state": y.stateAttribute,
          ...g,
          ...x,
          ref: u,
          style: {
            ...x.style,
            "--radix-tooltip-content-transform-origin":
              "var(--radix-popper-transform-origin)",
            "--radix-tooltip-content-available-width":
              "var(--radix-popper-available-width)",
            "--radix-tooltip-content-available-height":
              "var(--radix-popper-available-height)",
            "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
            "--radix-tooltip-trigger-height":
              "var(--radix-popper-anchor-height)",
          },
          children: [
            E.jsx(c1, { children: s }),
            E.jsx(s1, {
              scope: r,
              isInside: !0,
              children: E.jsx(t1, {
                id: y.contentId,
                role: "tooltip",
                children: f || s,
              }),
            }),
          ],
        }),
      })
    );
  });
o1.displayName = Da;
var Gg = "TooltipArrow",
  f1 = C.forwardRef((i, u) => {
    const { __scopeTooltip: r, ...s } = i,
      f = gc(r);
    return r1(Gg, r).isInside ? null : E.jsx(Jb, { ...f, ...s, ref: u });
  });
f1.displayName = Gg;
function d1(i, u) {
  const r = Math.abs(u.top - i.y),
    s = Math.abs(u.bottom - i.y),
    f = Math.abs(u.right - i.x),
    d = Math.abs(u.left - i.x);
  switch (Math.min(r, s, f, d)) {
    case d:
      return "left";
    case f:
      return "right";
    case r:
      return "top";
    case s:
      return "bottom";
    default:
      throw new Error("unreachable");
  }
}
function m1(i, u, r = 5) {
  const s = [];
  switch (u) {
    case "top":
      s.push({ x: i.x - r, y: i.y + r }, { x: i.x + r, y: i.y + r });
      break;
    case "bottom":
      s.push({ x: i.x - r, y: i.y - r }, { x: i.x + r, y: i.y - r });
      break;
    case "left":
      s.push({ x: i.x + r, y: i.y - r }, { x: i.x + r, y: i.y + r });
      break;
    case "right":
      s.push({ x: i.x - r, y: i.y - r }, { x: i.x - r, y: i.y + r });
      break;
  }
  return s;
}
function h1(i) {
  const { top: u, right: r, bottom: s, left: f } = i;
  return [
    { x: f, y: u },
    { x: r, y: u },
    { x: r, y: s },
    { x: f, y: s },
  ];
}
function g1(i, u) {
  const { x: r, y: s } = i;
  let f = !1;
  for (let d = 0, p = u.length - 1; d < u.length; p = d++) {
    const x = u[d],
      y = u[p],
      g = x.x,
      v = x.y,
      h = y.x,
      z = y.y;
    v > s != z > s && r < ((h - g) * (s - v)) / (z - v) + g && (f = !f);
  }
  return f;
}
function p1(i) {
  const u = i.slice();
  return (
    u.sort((r, s) =>
      r.x < s.x ? -1 : r.x > s.x ? 1 : r.y < s.y ? -1 : r.y > s.y ? 1 : 0
    ),
    y1(u)
  );
}
function y1(i) {
  if (i.length <= 1) return i.slice();
  const u = [];
  for (let s = 0; s < i.length; s++) {
    const f = i[s];
    for (; u.length >= 2; ) {
      const d = u[u.length - 1],
        p = u[u.length - 2];
      if ((d.x - p.x) * (f.y - p.y) >= (d.y - p.y) * (f.x - p.x)) u.pop();
      else break;
    }
    u.push(f);
  }
  u.pop();
  const r = [];
  for (let s = i.length - 1; s >= 0; s--) {
    const f = i[s];
    for (; r.length >= 2; ) {
      const d = r[r.length - 1],
        p = r[r.length - 2];
      if ((d.x - p.x) * (f.y - p.y) >= (d.y - p.y) * (f.x - p.x)) r.pop();
      else break;
    }
    r.push(f);
  }
  return (
    r.pop(),
    u.length === 1 && r.length === 1 && u[0].x === r[0].x && u[0].y === r[0].y
      ? u
      : u.concat(r)
  );
}
var v1 = Lg;
function Vg(i) {
  var u,
    r,
    s = "";
  if (typeof i == "string" || typeof i == "number") s += i;
  else if (typeof i == "object")
    if (Array.isArray(i)) {
      var f = i.length;
      for (u = 0; u < f; u++)
        i[u] && (r = Vg(i[u])) && (s && (s += " "), (s += r));
    } else for (r in i) i[r] && (s && (s += " "), (s += r));
  return s;
}
function Xg() {
  for (var i, u, r = 0, s = "", f = arguments.length; r < f; r++)
    (i = arguments[r]) && (u = Vg(i)) && (s && (s += " "), (s += u));
  return s;
}
const pc = "-",
  b1 = i => {
    const u = S1(i),
      { conflictingClassGroups: r, conflictingClassGroupModifiers: s } = i;
    return {
      getClassGroupId: p => {
        const x = p.split(pc);
        return (x[0] === "" && x.length !== 1 && x.shift(), kg(x, u) || x1(p));
      },
      getConflictingClassGroupIds: (p, x) => {
        const y = r[p] || [];
        return x && s[p] ? [...y, ...s[p]] : y;
      },
    };
  },
  kg = (i, u) => {
    if (i.length === 0) return u.classGroupId;
    const r = i[0],
      s = u.nextPart.get(r),
      f = s ? kg(i.slice(1), s) : void 0;
    if (f) return f;
    if (u.validators.length === 0) return;
    const d = i.join(pc);
    return u.validators.find(({ validator: p }) => p(d))?.classGroupId;
  },
  qh = /^\[(.+)\]$/,
  x1 = i => {
    if (qh.test(i)) {
      const u = qh.exec(i)[1],
        r = u?.substring(0, u.indexOf(":"));
      if (r) return "arbitrary.." + r;
    }
  },
  S1 = i => {
    const { theme: u, classGroups: r } = i,
      s = { nextPart: new Map(), validators: [] };
    for (const f in r) tc(r[f], s, f, u);
    return s;
  },
  tc = (i, u, r, s) => {
    i.forEach(f => {
      if (typeof f == "string") {
        const d = f === "" ? u : Gh(u, f);
        d.classGroupId = r;
        return;
      }
      if (typeof f == "function") {
        if (E1(f)) {
          tc(f(s), u, r, s);
          return;
        }
        u.validators.push({ validator: f, classGroupId: r });
        return;
      }
      Object.entries(f).forEach(([d, p]) => {
        tc(p, Gh(u, d), r, s);
      });
    });
  },
  Gh = (i, u) => {
    let r = i;
    return (
      u.split(pc).forEach(s => {
        (r.nextPart.has(s) ||
          r.nextPart.set(s, { nextPart: new Map(), validators: [] }),
          (r = r.nextPart.get(s)));
      }),
      r
    );
  },
  E1 = i => i.isThemeGetter,
  T1 = i => {
    if (i < 1) return { get: () => {}, set: () => {} };
    let u = 0,
      r = new Map(),
      s = new Map();
    const f = (d, p) => {
      (r.set(d, p), u++, u > i && ((u = 0), (s = r), (r = new Map())));
    };
    return {
      get(d) {
        let p = r.get(d);
        if (p !== void 0) return p;
        if ((p = s.get(d)) !== void 0) return (f(d, p), p);
      },
      set(d, p) {
        r.has(d) ? r.set(d, p) : f(d, p);
      },
    };
  },
  ec = "!",
  nc = ":",
  w1 = nc.length,
  A1 = i => {
    const { prefix: u, experimentalParseClassName: r } = i;
    let s = f => {
      const d = [];
      let p = 0,
        x = 0,
        y = 0,
        g;
      for (let D = 0; D < f.length; D++) {
        let Y = f[D];
        if (p === 0 && x === 0) {
          if (Y === nc) {
            (d.push(f.slice(y, D)), (y = D + w1));
            continue;
          }
          if (Y === "/") {
            g = D;
            continue;
          }
        }
        Y === "[" ? p++ : Y === "]" ? p-- : Y === "(" ? x++ : Y === ")" && x--;
      }
      const v = d.length === 0 ? f : f.substring(y),
        h = z1(v),
        z = h !== v,
        _ = g && g > y ? g - y : void 0;
      return {
        modifiers: d,
        hasImportantModifier: z,
        baseClassName: h,
        maybePostfixModifierPosition: _,
      };
    };
    if (u) {
      const f = u + nc,
        d = s;
      s = p =>
        p.startsWith(f)
          ? d(p.substring(f.length))
          : {
              isExternal: !0,
              modifiers: [],
              hasImportantModifier: !1,
              baseClassName: p,
              maybePostfixModifierPosition: void 0,
            };
    }
    if (r) {
      const f = s;
      s = d => r({ className: d, parseClassName: f });
    }
    return s;
  },
  z1 = i =>
    i.endsWith(ec)
      ? i.substring(0, i.length - 1)
      : i.startsWith(ec)
        ? i.substring(1)
        : i,
  O1 = i => {
    const u = Object.fromEntries(i.orderSensitiveModifiers.map(s => [s, !0]));
    return s => {
      if (s.length <= 1) return s;
      const f = [];
      let d = [];
      return (
        s.forEach(p => {
          p[0] === "[" || u[p] ? (f.push(...d.sort(), p), (d = [])) : d.push(p);
        }),
        f.push(...d.sort()),
        f
      );
    };
  },
  C1 = i => ({
    cache: T1(i.cacheSize),
    parseClassName: A1(i),
    sortModifiers: O1(i),
    ...b1(i),
  }),
  N1 = /\s+/,
  _1 = (i, u) => {
    const {
        parseClassName: r,
        getClassGroupId: s,
        getConflictingClassGroupIds: f,
        sortModifiers: d,
      } = u,
      p = [],
      x = i.trim().split(N1);
    let y = "";
    for (let g = x.length - 1; g >= 0; g -= 1) {
      const v = x[g],
        {
          isExternal: h,
          modifiers: z,
          hasImportantModifier: _,
          baseClassName: D,
          maybePostfixModifierPosition: Y,
        } = r(v);
      if (h) {
        y = v + (y.length > 0 ? " " + y : y);
        continue;
      }
      let X = !!Y,
        V = s(X ? D.substring(0, Y) : D);
      if (!V) {
        if (!X) {
          y = v + (y.length > 0 ? " " + y : y);
          continue;
        }
        if (((V = s(D)), !V)) {
          y = v + (y.length > 0 ? " " + y : y);
          continue;
        }
        X = !1;
      }
      const F = d(z).join(":"),
        J = _ ? F + ec : F,
        W = J + V;
      if (p.includes(W)) continue;
      p.push(W);
      const P = f(V, X);
      for (let nt = 0; nt < P.length; ++nt) {
        const Q = P[nt];
        p.push(J + Q);
      }
      y = v + (y.length > 0 ? " " + y : y);
    }
    return y;
  };
function M1() {
  let i = 0,
    u,
    r,
    s = "";
  for (; i < arguments.length; )
    (u = arguments[i++]) && (r = Qg(u)) && (s && (s += " "), (s += r));
  return s;
}
const Qg = i => {
  if (typeof i == "string") return i;
  let u,
    r = "";
  for (let s = 0; s < i.length; s++)
    i[s] && (u = Qg(i[s])) && (r && (r += " "), (r += u));
  return r;
};
function R1(i, ...u) {
  let r,
    s,
    f,
    d = p;
  function p(y) {
    const g = u.reduce((v, h) => h(v), i());
    return ((r = C1(g)), (s = r.cache.get), (f = r.cache.set), (d = x), x(y));
  }
  function x(y) {
    const g = s(y);
    if (g) return g;
    const v = _1(y, r);
    return (f(y, v), v);
  }
  return function () {
    return d(M1.apply(null, arguments));
  };
}
const Pt = i => {
    const u = r => r[i] || [];
    return ((u.isThemeGetter = !0), u);
  },
  Zg = /^\[(?:(\w[\w-]*):)?(.+)\]$/i,
  Kg = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
  D1 = /^\d+\/\d+$/,
  j1 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,
  U1 =
    /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
  H1 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,
  B1 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,
  L1 =
    /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
  _a = i => D1.test(i),
  St = i => !!i && !Number.isNaN(Number(i)),
  fl = i => !!i && Number.isInteger(Number(i)),
  Xr = i => i.endsWith("%") && St(i.slice(0, -1)),
  jn = i => j1.test(i),
  Y1 = () => !0,
  q1 = i => U1.test(i) && !H1.test(i),
  Jg = () => !1,
  G1 = i => B1.test(i),
  V1 = i => L1.test(i),
  X1 = i => !tt(i) && !et(i),
  k1 = i => Ha(i, Fg, Jg),
  tt = i => Zg.test(i),
  Ll = i => Ha(i, Pg, q1),
  kr = i => Ha(i, $1, St),
  Vh = i => Ha(i, $g, Jg),
  Q1 = i => Ha(i, Wg, V1),
  iu = i => Ha(i, Ig, G1),
  et = i => Kg.test(i),
  Ui = i => Ba(i, Pg),
  Z1 = i => Ba(i, W1),
  Xh = i => Ba(i, $g),
  K1 = i => Ba(i, Fg),
  J1 = i => Ba(i, Wg),
  ou = i => Ba(i, Ig, !0),
  Ha = (i, u, r) => {
    const s = Zg.exec(i);
    return s ? (s[1] ? u(s[1]) : r(s[2])) : !1;
  },
  Ba = (i, u, r = !1) => {
    const s = Kg.exec(i);
    return s ? (s[1] ? u(s[1]) : r) : !1;
  },
  $g = i => i === "position" || i === "percentage",
  Wg = i => i === "image" || i === "url",
  Fg = i => i === "length" || i === "size" || i === "bg-size",
  Pg = i => i === "length",
  $1 = i => i === "number",
  W1 = i => i === "family-name",
  Ig = i => i === "shadow",
  F1 = () => {
    const i = Pt("color"),
      u = Pt("font"),
      r = Pt("text"),
      s = Pt("font-weight"),
      f = Pt("tracking"),
      d = Pt("leading"),
      p = Pt("breakpoint"),
      x = Pt("container"),
      y = Pt("spacing"),
      g = Pt("radius"),
      v = Pt("shadow"),
      h = Pt("inset-shadow"),
      z = Pt("text-shadow"),
      _ = Pt("drop-shadow"),
      D = Pt("blur"),
      Y = Pt("perspective"),
      X = Pt("aspect"),
      V = Pt("ease"),
      F = Pt("animate"),
      J = () => [
        "auto",
        "avoid",
        "all",
        "avoid-page",
        "page",
        "left",
        "right",
        "column",
      ],
      W = () => [
        "center",
        "top",
        "bottom",
        "left",
        "right",
        "top-left",
        "left-top",
        "top-right",
        "right-top",
        "bottom-right",
        "right-bottom",
        "bottom-left",
        "left-bottom",
      ],
      P = () => [...W(), et, tt],
      nt = () => ["auto", "hidden", "clip", "visible", "scroll"],
      Q = () => ["auto", "contain", "none"],
      Z = () => [et, tt, y],
      mt = () => [_a, "full", "auto", ...Z()],
      xt = () => [fl, "none", "subgrid", et, tt],
      zt = () => ["auto", { span: ["full", fl, et, tt] }, fl, et, tt],
      ht = () => [fl, "auto", et, tt],
      ct = () => ["auto", "min", "max", "fr", et, tt],
      gt = () => [
        "start",
        "end",
        "center",
        "between",
        "around",
        "evenly",
        "stretch",
        "baseline",
        "center-safe",
        "end-safe",
      ],
      yt = () => [
        "start",
        "end",
        "center",
        "stretch",
        "center-safe",
        "end-safe",
      ],
      w = () => ["auto", ...Z()],
      U = () => [
        _a,
        "auto",
        "full",
        "dvw",
        "dvh",
        "lvw",
        "lvh",
        "svw",
        "svh",
        "min",
        "max",
        "fit",
        ...Z(),
      ],
      R = () => [i, et, tt],
      it = () => [...W(), Xh, Vh, { position: [et, tt] }],
      ot = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }],
      b = () => ["auto", "cover", "contain", K1, k1, { size: [et, tt] }],
      H = () => [Xr, Ui, Ll],
      B = () => ["", "none", "full", g, et, tt],
      k = () => ["", St, Ui, Ll],
      $ = () => ["solid", "dashed", "dotted", "double"],
      ut = () => [
        "normal",
        "multiply",
        "screen",
        "overlay",
        "darken",
        "lighten",
        "color-dodge",
        "color-burn",
        "hard-light",
        "soft-light",
        "difference",
        "exclusion",
        "hue",
        "saturation",
        "color",
        "luminosity",
      ],
      lt = () => [St, Xr, Xh, Vh],
      ft = () => ["", "none", D, et, tt],
      Ot = () => ["none", St, et, tt],
      ne = () => ["none", St, et, tt],
      de = () => [St, et, tt],
      le = () => [_a, "full", ...Z()];
    return {
      cacheSize: 500,
      theme: {
        animate: ["spin", "ping", "pulse", "bounce"],
        aspect: ["video"],
        blur: [jn],
        breakpoint: [jn],
        color: [Y1],
        container: [jn],
        "drop-shadow": [jn],
        ease: ["in", "out", "in-out"],
        font: [X1],
        "font-weight": [
          "thin",
          "extralight",
          "light",
          "normal",
          "medium",
          "semibold",
          "bold",
          "extrabold",
          "black",
        ],
        "inset-shadow": [jn],
        leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
        perspective: [
          "dramatic",
          "near",
          "normal",
          "midrange",
          "distant",
          "none",
        ],
        radius: [jn],
        shadow: [jn],
        spacing: ["px", St],
        text: [jn],
        "text-shadow": [jn],
        tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"],
      },
      classGroups: {
        aspect: [{ aspect: ["auto", "square", _a, tt, et, X] }],
        container: ["container"],
        columns: [{ columns: [St, tt, et, x] }],
        "break-after": [{ "break-after": J() }],
        "break-before": [{ "break-before": J() }],
        "break-inside": [
          { "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] },
        ],
        "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
        box: [{ box: ["border", "content"] }],
        display: [
          "block",
          "inline-block",
          "inline",
          "flex",
          "inline-flex",
          "table",
          "inline-table",
          "table-caption",
          "table-cell",
          "table-column",
          "table-column-group",
          "table-footer-group",
          "table-header-group",
          "table-row-group",
          "table-row",
          "flow-root",
          "grid",
          "inline-grid",
          "contents",
          "list-item",
          "hidden",
        ],
        sr: ["sr-only", "not-sr-only"],
        float: [{ float: ["right", "left", "none", "start", "end"] }],
        clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }],
        isolation: ["isolate", "isolation-auto"],
        "object-fit": [
          { object: ["contain", "cover", "fill", "none", "scale-down"] },
        ],
        "object-position": [{ object: P() }],
        overflow: [{ overflow: nt() }],
        "overflow-x": [{ "overflow-x": nt() }],
        "overflow-y": [{ "overflow-y": nt() }],
        overscroll: [{ overscroll: Q() }],
        "overscroll-x": [{ "overscroll-x": Q() }],
        "overscroll-y": [{ "overscroll-y": Q() }],
        position: ["static", "fixed", "absolute", "relative", "sticky"],
        inset: [{ inset: mt() }],
        "inset-x": [{ "inset-x": mt() }],
        "inset-y": [{ "inset-y": mt() }],
        start: [{ start: mt() }],
        end: [{ end: mt() }],
        top: [{ top: mt() }],
        right: [{ right: mt() }],
        bottom: [{ bottom: mt() }],
        left: [{ left: mt() }],
        visibility: ["visible", "invisible", "collapse"],
        z: [{ z: [fl, "auto", et, tt] }],
        basis: [{ basis: [_a, "full", "auto", x, ...Z()] }],
        "flex-direction": [
          { flex: ["row", "row-reverse", "col", "col-reverse"] },
        ],
        "flex-wrap": [{ flex: ["nowrap", "wrap", "wrap-reverse"] }],
        flex: [{ flex: [St, _a, "auto", "initial", "none", tt] }],
        grow: [{ grow: ["", St, et, tt] }],
        shrink: [{ shrink: ["", St, et, tt] }],
        order: [{ order: [fl, "first", "last", "none", et, tt] }],
        "grid-cols": [{ "grid-cols": xt() }],
        "col-start-end": [{ col: zt() }],
        "col-start": [{ "col-start": ht() }],
        "col-end": [{ "col-end": ht() }],
        "grid-rows": [{ "grid-rows": xt() }],
        "row-start-end": [{ row: zt() }],
        "row-start": [{ "row-start": ht() }],
        "row-end": [{ "row-end": ht() }],
        "grid-flow": [
          { "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] },
        ],
        "auto-cols": [{ "auto-cols": ct() }],
        "auto-rows": [{ "auto-rows": ct() }],
        gap: [{ gap: Z() }],
        "gap-x": [{ "gap-x": Z() }],
        "gap-y": [{ "gap-y": Z() }],
        "justify-content": [{ justify: [...gt(), "normal"] }],
        "justify-items": [{ "justify-items": [...yt(), "normal"] }],
        "justify-self": [{ "justify-self": ["auto", ...yt()] }],
        "align-content": [{ content: ["normal", ...gt()] }],
        "align-items": [{ items: [...yt(), { baseline: ["", "last"] }] }],
        "align-self": [{ self: ["auto", ...yt(), { baseline: ["", "last"] }] }],
        "place-content": [{ "place-content": gt() }],
        "place-items": [{ "place-items": [...yt(), "baseline"] }],
        "place-self": [{ "place-self": ["auto", ...yt()] }],
        p: [{ p: Z() }],
        px: [{ px: Z() }],
        py: [{ py: Z() }],
        ps: [{ ps: Z() }],
        pe: [{ pe: Z() }],
        pt: [{ pt: Z() }],
        pr: [{ pr: Z() }],
        pb: [{ pb: Z() }],
        pl: [{ pl: Z() }],
        m: [{ m: w() }],
        mx: [{ mx: w() }],
        my: [{ my: w() }],
        ms: [{ ms: w() }],
        me: [{ me: w() }],
        mt: [{ mt: w() }],
        mr: [{ mr: w() }],
        mb: [{ mb: w() }],
        ml: [{ ml: w() }],
        "space-x": [{ "space-x": Z() }],
        "space-x-reverse": ["space-x-reverse"],
        "space-y": [{ "space-y": Z() }],
        "space-y-reverse": ["space-y-reverse"],
        size: [{ size: U() }],
        w: [{ w: [x, "screen", ...U()] }],
        "min-w": [{ "min-w": [x, "screen", "none", ...U()] }],
        "max-w": [
          { "max-w": [x, "screen", "none", "prose", { screen: [p] }, ...U()] },
        ],
        h: [{ h: ["screen", "lh", ...U()] }],
        "min-h": [{ "min-h": ["screen", "lh", "none", ...U()] }],
        "max-h": [{ "max-h": ["screen", "lh", ...U()] }],
        "font-size": [{ text: ["base", r, Ui, Ll] }],
        "font-smoothing": ["antialiased", "subpixel-antialiased"],
        "font-style": ["italic", "not-italic"],
        "font-weight": [{ font: [s, et, kr] }],
        "font-stretch": [
          {
            "font-stretch": [
              "ultra-condensed",
              "extra-condensed",
              "condensed",
              "semi-condensed",
              "normal",
              "semi-expanded",
              "expanded",
              "extra-expanded",
              "ultra-expanded",
              Xr,
              tt,
            ],
          },
        ],
        "font-family": [{ font: [Z1, tt, u] }],
        "fvn-normal": ["normal-nums"],
        "fvn-ordinal": ["ordinal"],
        "fvn-slashed-zero": ["slashed-zero"],
        "fvn-figure": ["lining-nums", "oldstyle-nums"],
        "fvn-spacing": ["proportional-nums", "tabular-nums"],
        "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
        tracking: [{ tracking: [f, et, tt] }],
        "line-clamp": [{ "line-clamp": [St, "none", et, kr] }],
        leading: [{ leading: [d, ...Z()] }],
        "list-image": [{ "list-image": ["none", et, tt] }],
        "list-style-position": [{ list: ["inside", "outside"] }],
        "list-style-type": [{ list: ["disc", "decimal", "none", et, tt] }],
        "text-alignment": [
          { text: ["left", "center", "right", "justify", "start", "end"] },
        ],
        "placeholder-color": [{ placeholder: R() }],
        "text-color": [{ text: R() }],
        "text-decoration": [
          "underline",
          "overline",
          "line-through",
          "no-underline",
        ],
        "text-decoration-style": [{ decoration: [...$(), "wavy"] }],
        "text-decoration-thickness": [
          { decoration: [St, "from-font", "auto", et, Ll] },
        ],
        "text-decoration-color": [{ decoration: R() }],
        "underline-offset": [{ "underline-offset": [St, "auto", et, tt] }],
        "text-transform": [
          "uppercase",
          "lowercase",
          "capitalize",
          "normal-case",
        ],
        "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
        "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }],
        indent: [{ indent: Z() }],
        "vertical-align": [
          {
            align: [
              "baseline",
              "top",
              "middle",
              "bottom",
              "text-top",
              "text-bottom",
              "sub",
              "super",
              et,
              tt,
            ],
          },
        ],
        whitespace: [
          {
            whitespace: [
              "normal",
              "nowrap",
              "pre",
              "pre-line",
              "pre-wrap",
              "break-spaces",
            ],
          },
        ],
        break: [{ break: ["normal", "words", "all", "keep"] }],
        wrap: [{ wrap: ["break-word", "anywhere", "normal"] }],
        hyphens: [{ hyphens: ["none", "manual", "auto"] }],
        content: [{ content: ["none", et, tt] }],
        "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }],
        "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }],
        "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }],
        "bg-position": [{ bg: it() }],
        "bg-repeat": [{ bg: ot() }],
        "bg-size": [{ bg: b() }],
        "bg-image": [
          {
            bg: [
              "none",
              {
                linear: [
                  { to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] },
                  fl,
                  et,
                  tt,
                ],
                radial: ["", et, tt],
                conic: [fl, et, tt],
              },
              J1,
              Q1,
            ],
          },
        ],
        "bg-color": [{ bg: R() }],
        "gradient-from-pos": [{ from: H() }],
        "gradient-via-pos": [{ via: H() }],
        "gradient-to-pos": [{ to: H() }],
        "gradient-from": [{ from: R() }],
        "gradient-via": [{ via: R() }],
        "gradient-to": [{ to: R() }],
        rounded: [{ rounded: B() }],
        "rounded-s": [{ "rounded-s": B() }],
        "rounded-e": [{ "rounded-e": B() }],
        "rounded-t": [{ "rounded-t": B() }],
        "rounded-r": [{ "rounded-r": B() }],
        "rounded-b": [{ "rounded-b": B() }],
        "rounded-l": [{ "rounded-l": B() }],
        "rounded-ss": [{ "rounded-ss": B() }],
        "rounded-se": [{ "rounded-se": B() }],
        "rounded-ee": [{ "rounded-ee": B() }],
        "rounded-es": [{ "rounded-es": B() }],
        "rounded-tl": [{ "rounded-tl": B() }],
        "rounded-tr": [{ "rounded-tr": B() }],
        "rounded-br": [{ "rounded-br": B() }],
        "rounded-bl": [{ "rounded-bl": B() }],
        "border-w": [{ border: k() }],
        "border-w-x": [{ "border-x": k() }],
        "border-w-y": [{ "border-y": k() }],
        "border-w-s": [{ "border-s": k() }],
        "border-w-e": [{ "border-e": k() }],
        "border-w-t": [{ "border-t": k() }],
        "border-w-r": [{ "border-r": k() }],
        "border-w-b": [{ "border-b": k() }],
        "border-w-l": [{ "border-l": k() }],
        "divide-x": [{ "divide-x": k() }],
        "divide-x-reverse": ["divide-x-reverse"],
        "divide-y": [{ "divide-y": k() }],
        "divide-y-reverse": ["divide-y-reverse"],
        "border-style": [{ border: [...$(), "hidden", "none"] }],
        "divide-style": [{ divide: [...$(), "hidden", "none"] }],
        "border-color": [{ border: R() }],
        "border-color-x": [{ "border-x": R() }],
        "border-color-y": [{ "border-y": R() }],
        "border-color-s": [{ "border-s": R() }],
        "border-color-e": [{ "border-e": R() }],
        "border-color-t": [{ "border-t": R() }],
        "border-color-r": [{ "border-r": R() }],
        "border-color-b": [{ "border-b": R() }],
        "border-color-l": [{ "border-l": R() }],
        "divide-color": [{ divide: R() }],
        "outline-style": [{ outline: [...$(), "none", "hidden"] }],
        "outline-offset": [{ "outline-offset": [St, et, tt] }],
        "outline-w": [{ outline: ["", St, Ui, Ll] }],
        "outline-color": [{ outline: R() }],
        shadow: [{ shadow: ["", "none", v, ou, iu] }],
        "shadow-color": [{ shadow: R() }],
        "inset-shadow": [{ "inset-shadow": ["none", h, ou, iu] }],
        "inset-shadow-color": [{ "inset-shadow": R() }],
        "ring-w": [{ ring: k() }],
        "ring-w-inset": ["ring-inset"],
        "ring-color": [{ ring: R() }],
        "ring-offset-w": [{ "ring-offset": [St, Ll] }],
        "ring-offset-color": [{ "ring-offset": R() }],
        "inset-ring-w": [{ "inset-ring": k() }],
        "inset-ring-color": [{ "inset-ring": R() }],
        "text-shadow": [{ "text-shadow": ["none", z, ou, iu] }],
        "text-shadow-color": [{ "text-shadow": R() }],
        opacity: [{ opacity: [St, et, tt] }],
        "mix-blend": [
          { "mix-blend": [...ut(), "plus-darker", "plus-lighter"] },
        ],
        "bg-blend": [{ "bg-blend": ut() }],
        "mask-clip": [
          {
            "mask-clip": [
              "border",
              "padding",
              "content",
              "fill",
              "stroke",
              "view",
            ],
          },
          "mask-no-clip",
        ],
        "mask-composite": [
          { mask: ["add", "subtract", "intersect", "exclude"] },
        ],
        "mask-image-linear-pos": [{ "mask-linear": [St] }],
        "mask-image-linear-from-pos": [{ "mask-linear-from": lt() }],
        "mask-image-linear-to-pos": [{ "mask-linear-to": lt() }],
        "mask-image-linear-from-color": [{ "mask-linear-from": R() }],
        "mask-image-linear-to-color": [{ "mask-linear-to": R() }],
        "mask-image-t-from-pos": [{ "mask-t-from": lt() }],
        "mask-image-t-to-pos": [{ "mask-t-to": lt() }],
        "mask-image-t-from-color": [{ "mask-t-from": R() }],
        "mask-image-t-to-color": [{ "mask-t-to": R() }],
        "mask-image-r-from-pos": [{ "mask-r-from": lt() }],
        "mask-image-r-to-pos": [{ "mask-r-to": lt() }],
        "mask-image-r-from-color": [{ "mask-r-from": R() }],
        "mask-image-r-to-color": [{ "mask-r-to": R() }],
        "mask-image-b-from-pos": [{ "mask-b-from": lt() }],
        "mask-image-b-to-pos": [{ "mask-b-to": lt() }],
        "mask-image-b-from-color": [{ "mask-b-from": R() }],
        "mask-image-b-to-color": [{ "mask-b-to": R() }],
        "mask-image-l-from-pos": [{ "mask-l-from": lt() }],
        "mask-image-l-to-pos": [{ "mask-l-to": lt() }],
        "mask-image-l-from-color": [{ "mask-l-from": R() }],
        "mask-image-l-to-color": [{ "mask-l-to": R() }],
        "mask-image-x-from-pos": [{ "mask-x-from": lt() }],
        "mask-image-x-to-pos": [{ "mask-x-to": lt() }],
        "mask-image-x-from-color": [{ "mask-x-from": R() }],
        "mask-image-x-to-color": [{ "mask-x-to": R() }],
        "mask-image-y-from-pos": [{ "mask-y-from": lt() }],
        "mask-image-y-to-pos": [{ "mask-y-to": lt() }],
        "mask-image-y-from-color": [{ "mask-y-from": R() }],
        "mask-image-y-to-color": [{ "mask-y-to": R() }],
        "mask-image-radial": [{ "mask-radial": [et, tt] }],
        "mask-image-radial-from-pos": [{ "mask-radial-from": lt() }],
        "mask-image-radial-to-pos": [{ "mask-radial-to": lt() }],
        "mask-image-radial-from-color": [{ "mask-radial-from": R() }],
        "mask-image-radial-to-color": [{ "mask-radial-to": R() }],
        "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
        "mask-image-radial-size": [
          {
            "mask-radial": [
              { closest: ["side", "corner"], farthest: ["side", "corner"] },
            ],
          },
        ],
        "mask-image-radial-pos": [{ "mask-radial-at": W() }],
        "mask-image-conic-pos": [{ "mask-conic": [St] }],
        "mask-image-conic-from-pos": [{ "mask-conic-from": lt() }],
        "mask-image-conic-to-pos": [{ "mask-conic-to": lt() }],
        "mask-image-conic-from-color": [{ "mask-conic-from": R() }],
        "mask-image-conic-to-color": [{ "mask-conic-to": R() }],
        "mask-mode": [{ mask: ["alpha", "luminance", "match"] }],
        "mask-origin": [
          {
            "mask-origin": [
              "border",
              "padding",
              "content",
              "fill",
              "stroke",
              "view",
            ],
          },
        ],
        "mask-position": [{ mask: it() }],
        "mask-repeat": [{ mask: ot() }],
        "mask-size": [{ mask: b() }],
        "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
        "mask-image": [{ mask: ["none", et, tt] }],
        filter: [{ filter: ["", "none", et, tt] }],
        blur: [{ blur: ft() }],
        brightness: [{ brightness: [St, et, tt] }],
        contrast: [{ contrast: [St, et, tt] }],
        "drop-shadow": [{ "drop-shadow": ["", "none", _, ou, iu] }],
        "drop-shadow-color": [{ "drop-shadow": R() }],
        grayscale: [{ grayscale: ["", St, et, tt] }],
        "hue-rotate": [{ "hue-rotate": [St, et, tt] }],
        invert: [{ invert: ["", St, et, tt] }],
        saturate: [{ saturate: [St, et, tt] }],
        sepia: [{ sepia: ["", St, et, tt] }],
        "backdrop-filter": [{ "backdrop-filter": ["", "none", et, tt] }],
        "backdrop-blur": [{ "backdrop-blur": ft() }],
        "backdrop-brightness": [{ "backdrop-brightness": [St, et, tt] }],
        "backdrop-contrast": [{ "backdrop-contrast": [St, et, tt] }],
        "backdrop-grayscale": [{ "backdrop-grayscale": ["", St, et, tt] }],
        "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [St, et, tt] }],
        "backdrop-invert": [{ "backdrop-invert": ["", St, et, tt] }],
        "backdrop-opacity": [{ "backdrop-opacity": [St, et, tt] }],
        "backdrop-saturate": [{ "backdrop-saturate": [St, et, tt] }],
        "backdrop-sepia": [{ "backdrop-sepia": ["", St, et, tt] }],
        "border-collapse": [{ border: ["collapse", "separate"] }],
        "border-spacing": [{ "border-spacing": Z() }],
        "border-spacing-x": [{ "border-spacing-x": Z() }],
        "border-spacing-y": [{ "border-spacing-y": Z() }],
        "table-layout": [{ table: ["auto", "fixed"] }],
        caption: [{ caption: ["top", "bottom"] }],
        transition: [
          {
            transition: [
              "",
              "all",
              "colors",
              "opacity",
              "shadow",
              "transform",
              "none",
              et,
              tt,
            ],
          },
        ],
        "transition-behavior": [{ transition: ["normal", "discrete"] }],
        duration: [{ duration: [St, "initial", et, tt] }],
        ease: [{ ease: ["linear", "initial", V, et, tt] }],
        delay: [{ delay: [St, et, tt] }],
        animate: [{ animate: ["none", F, et, tt] }],
        backface: [{ backface: ["hidden", "visible"] }],
        perspective: [{ perspective: [Y, et, tt] }],
        "perspective-origin": [{ "perspective-origin": P() }],
        rotate: [{ rotate: Ot() }],
        "rotate-x": [{ "rotate-x": Ot() }],
        "rotate-y": [{ "rotate-y": Ot() }],
        "rotate-z": [{ "rotate-z": Ot() }],
        scale: [{ scale: ne() }],
        "scale-x": [{ "scale-x": ne() }],
        "scale-y": [{ "scale-y": ne() }],
        "scale-z": [{ "scale-z": ne() }],
        "scale-3d": ["scale-3d"],
        skew: [{ skew: de() }],
        "skew-x": [{ "skew-x": de() }],
        "skew-y": [{ "skew-y": de() }],
        transform: [{ transform: [et, tt, "", "none", "gpu", "cpu"] }],
        "transform-origin": [{ origin: P() }],
        "transform-style": [{ transform: ["3d", "flat"] }],
        translate: [{ translate: le() }],
        "translate-x": [{ "translate-x": le() }],
        "translate-y": [{ "translate-y": le() }],
        "translate-z": [{ "translate-z": le() }],
        "translate-none": ["translate-none"],
        accent: [{ accent: R() }],
        appearance: [{ appearance: ["none", "auto"] }],
        "caret-color": [{ caret: R() }],
        "color-scheme": [
          {
            scheme: [
              "normal",
              "dark",
              "light",
              "light-dark",
              "only-dark",
              "only-light",
            ],
          },
        ],
        cursor: [
          {
            cursor: [
              "auto",
              "default",
              "pointer",
              "wait",
              "text",
              "move",
              "help",
              "not-allowed",
              "none",
              "context-menu",
              "progress",
              "cell",
              "crosshair",
              "vertical-text",
              "alias",
              "copy",
              "no-drop",
              "grab",
              "grabbing",
              "all-scroll",
              "col-resize",
              "row-resize",
              "n-resize",
              "e-resize",
              "s-resize",
              "w-resize",
              "ne-resize",
              "nw-resize",
              "se-resize",
              "sw-resize",
              "ew-resize",
              "ns-resize",
              "nesw-resize",
              "nwse-resize",
              "zoom-in",
              "zoom-out",
              et,
              tt,
            ],
          },
        ],
        "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
        "pointer-events": [{ "pointer-events": ["auto", "none"] }],
        resize: [{ resize: ["none", "", "y", "x"] }],
        "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
        "scroll-m": [{ "scroll-m": Z() }],
        "scroll-mx": [{ "scroll-mx": Z() }],
        "scroll-my": [{ "scroll-my": Z() }],
        "scroll-ms": [{ "scroll-ms": Z() }],
        "scroll-me": [{ "scroll-me": Z() }],
        "scroll-mt": [{ "scroll-mt": Z() }],
        "scroll-mr": [{ "scroll-mr": Z() }],
        "scroll-mb": [{ "scroll-mb": Z() }],
        "scroll-ml": [{ "scroll-ml": Z() }],
        "scroll-p": [{ "scroll-p": Z() }],
        "scroll-px": [{ "scroll-px": Z() }],
        "scroll-py": [{ "scroll-py": Z() }],
        "scroll-ps": [{ "scroll-ps": Z() }],
        "scroll-pe": [{ "scroll-pe": Z() }],
        "scroll-pt": [{ "scroll-pt": Z() }],
        "scroll-pr": [{ "scroll-pr": Z() }],
        "scroll-pb": [{ "scroll-pb": Z() }],
        "scroll-pl": [{ "scroll-pl": Z() }],
        "snap-align": [{ snap: ["start", "end", "center", "align-none"] }],
        "snap-stop": [{ snap: ["normal", "always"] }],
        "snap-type": [{ snap: ["none", "x", "y", "both"] }],
        "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
        touch: [{ touch: ["auto", "none", "manipulation"] }],
        "touch-x": [{ "touch-pan": ["x", "left", "right"] }],
        "touch-y": [{ "touch-pan": ["y", "up", "down"] }],
        "touch-pz": ["touch-pinch-zoom"],
        select: [{ select: ["none", "text", "all", "auto"] }],
        "will-change": [
          {
            "will-change": ["auto", "scroll", "contents", "transform", et, tt],
          },
        ],
        fill: [{ fill: ["none", ...R()] }],
        "stroke-w": [{ stroke: [St, Ui, Ll, kr] }],
        stroke: [{ stroke: ["none", ...R()] }],
        "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }],
      },
      conflictingClassGroups: {
        overflow: ["overflow-x", "overflow-y"],
        overscroll: ["overscroll-x", "overscroll-y"],
        inset: [
          "inset-x",
          "inset-y",
          "start",
          "end",
          "top",
          "right",
          "bottom",
          "left",
        ],
        "inset-x": ["right", "left"],
        "inset-y": ["top", "bottom"],
        flex: ["basis", "grow", "shrink"],
        gap: ["gap-x", "gap-y"],
        p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
        px: ["pr", "pl"],
        py: ["pt", "pb"],
        m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
        mx: ["mr", "ml"],
        my: ["mt", "mb"],
        size: ["w", "h"],
        "font-size": ["leading"],
        "fvn-normal": [
          "fvn-ordinal",
          "fvn-slashed-zero",
          "fvn-figure",
          "fvn-spacing",
          "fvn-fraction",
        ],
        "fvn-ordinal": ["fvn-normal"],
        "fvn-slashed-zero": ["fvn-normal"],
        "fvn-figure": ["fvn-normal"],
        "fvn-spacing": ["fvn-normal"],
        "fvn-fraction": ["fvn-normal"],
        "line-clamp": ["display", "overflow"],
        rounded: [
          "rounded-s",
          "rounded-e",
          "rounded-t",
          "rounded-r",
          "rounded-b",
          "rounded-l",
          "rounded-ss",
          "rounded-se",
          "rounded-ee",
          "rounded-es",
          "rounded-tl",
          "rounded-tr",
          "rounded-br",
          "rounded-bl",
        ],
        "rounded-s": ["rounded-ss", "rounded-es"],
        "rounded-e": ["rounded-se", "rounded-ee"],
        "rounded-t": ["rounded-tl", "rounded-tr"],
        "rounded-r": ["rounded-tr", "rounded-br"],
        "rounded-b": ["rounded-br", "rounded-bl"],
        "rounded-l": ["rounded-tl", "rounded-bl"],
        "border-spacing": ["border-spacing-x", "border-spacing-y"],
        "border-w": [
          "border-w-x",
          "border-w-y",
          "border-w-s",
          "border-w-e",
          "border-w-t",
          "border-w-r",
          "border-w-b",
          "border-w-l",
        ],
        "border-w-x": ["border-w-r", "border-w-l"],
        "border-w-y": ["border-w-t", "border-w-b"],
        "border-color": [
          "border-color-x",
          "border-color-y",
          "border-color-s",
          "border-color-e",
          "border-color-t",
          "border-color-r",
          "border-color-b",
          "border-color-l",
        ],
        "border-color-x": ["border-color-r", "border-color-l"],
        "border-color-y": ["border-color-t", "border-color-b"],
        translate: ["translate-x", "translate-y", "translate-none"],
        "translate-none": [
          "translate",
          "translate-x",
          "translate-y",
          "translate-z",
        ],
        "scroll-m": [
          "scroll-mx",
          "scroll-my",
          "scroll-ms",
          "scroll-me",
          "scroll-mt",
          "scroll-mr",
          "scroll-mb",
          "scroll-ml",
        ],
        "scroll-mx": ["scroll-mr", "scroll-ml"],
        "scroll-my": ["scroll-mt", "scroll-mb"],
        "scroll-p": [
          "scroll-px",
          "scroll-py",
          "scroll-ps",
          "scroll-pe",
          "scroll-pt",
          "scroll-pr",
          "scroll-pb",
          "scroll-pl",
        ],
        "scroll-px": ["scroll-pr", "scroll-pl"],
        "scroll-py": ["scroll-pt", "scroll-pb"],
        touch: ["touch-x", "touch-y", "touch-pz"],
        "touch-x": ["touch"],
        "touch-y": ["touch"],
        "touch-pz": ["touch"],
      },
      conflictingClassGroupModifiers: { "font-size": ["leading"] },
      orderSensitiveModifiers: [
        "*",
        "**",
        "after",
        "backdrop",
        "before",
        "details-content",
        "file",
        "first-letter",
        "first-line",
        "marker",
        "placeholder",
        "selection",
      ],
    };
  },
  P1 = R1(F1);
function xu(...i) {
  return P1(Xg(i));
}
function I1({ delayDuration: i = 0, ...u }) {
  return E.jsx(v1, { "data-slot": "tooltip-provider", delayDuration: i, ...u });
}
const kh = i => (typeof i == "boolean" ? `${i}` : i === 0 ? "0" : i),
  Qh = Xg,
  tx = (i, u) => r => {
    var s;
    if (u?.variants == null) return Qh(i, r?.class, r?.className);
    const { variants: f, defaultVariants: d } = u,
      p = Object.keys(f).map(g => {
        const v = r?.[g],
          h = d?.[g];
        if (v === null) return null;
        const z = kh(v) || kh(h);
        return f[g][z];
      }),
      x =
        r &&
        Object.entries(r).reduce((g, v) => {
          let [h, z] = v;
          return (z === void 0 || (g[h] = z), g);
        }, {}),
      y =
        u == null || (s = u.compoundVariants) === null || s === void 0
          ? void 0
          : s.reduce((g, v) => {
              let { class: h, className: z, ..._ } = v;
              return Object.entries(_).every(D => {
                let [Y, X] = D;
                return Array.isArray(X)
                  ? X.includes({ ...d, ...x }[Y])
                  : { ...d, ...x }[Y] === X;
              })
                ? [...g, h, z]
                : g;
            }, []);
    return Qh(i, p, y, r?.class, r?.className);
  },
  ex = tx(
    "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
    {
      variants: {
        variant: {
          default: "bg-primary text-primary-foreground hover:bg-primary/90",
          destructive:
            "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
          outline:
            "border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",
          secondary:
            "bg-secondary text-secondary-foreground hover:bg-secondary/80",
          ghost: "hover:bg-accent dark:hover:bg-accent/50",
          link: "text-primary underline-offset-4 hover:underline",
        },
        size: {
          default: "h-9 px-4 py-2 has-[>svg]:px-3",
          sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
          lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
          icon: "size-9",
          "icon-sm": "size-8",
          "icon-lg": "size-10",
        },
      },
      defaultVariants: { variant: "default", size: "default" },
    }
  );
function nx({ className: i, variant: u, size: r, asChild: s = !1, ...f }) {
  const d = s ? d0 : "button";
  return E.jsx(d, {
    "data-slot": "button",
    className: xu(ex({ variant: u, size: r, className: i })),
    ...f,
  });
}
function lx({ className: i, ...u }) {
  return E.jsx("div", {
    "data-slot": "card",
    className: xu(
      "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
      i
    ),
    ...u,
  });
}
function ax({ className: i, ...u }) {
  return E.jsx("div", {
    "data-slot": "card-content",
    className: xu("px-6", i),
    ...u,
  });
}
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const ix = i => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
  tp = (...i) => i.filter((u, r, s) => !!u && s.indexOf(u) === r).join(" ");
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ var ox = {
  xmlns: "http://www.w3.org/2000/svg",
  width: 24,
  height: 24,
  viewBox: "0 0 24 24",
  fill: "none",
  stroke: "currentColor",
  strokeWidth: 2,
  strokeLinecap: "round",
  strokeLinejoin: "round",
};
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const ux = C.forwardRef(
  (
    {
      color: i = "currentColor",
      size: u = 24,
      strokeWidth: r = 2,
      absoluteStrokeWidth: s,
      className: f = "",
      children: d,
      iconNode: p,
      ...x
    },
    y
  ) =>
    C.createElement(
      "svg",
      {
        ref: y,
        ...ox,
        width: u,
        height: u,
        stroke: i,
        strokeWidth: s ? (Number(r) * 24) / Number(u) : r,
        className: tp("lucide", f),
        ...x,
      },
      [
        ...p.map(([g, v]) => C.createElement(g, v)),
        ...(Array.isArray(d) ? d : [d]),
      ]
    )
);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const Su = (i, u) => {
  const r = C.forwardRef(({ className: s, ...f }, d) =>
    C.createElement(ux, {
      ref: d,
      iconNode: u,
      className: tp(`lucide-${ix(i)}`, s),
      ...f,
    })
  );
  return ((r.displayName = `${i}`), r);
};
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const sx = Su("CircleAlert", [
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }],
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const rx = Su("House", [
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
  [
    "path",
    {
      d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
      key: "1d0kgt",
    },
  ],
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const cx = Su("RotateCcw", [
  [
    "path",
    { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" },
  ],
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */ const fx = Su("TriangleAlert", [
  [
    "path",
    {
      d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
      key: "wmoenq",
    },
  ],
  ["path", { d: "M12 9v4", key: "juzpu7" }],
  ["path", { d: "M12 17h.01", key: "p32p05" }],
]);
function dx(i, u) {
  if (i instanceof RegExp) return { keys: !1, pattern: i };
  var r,
    s,
    f,
    d,
    p = [],
    x = "",
    y = i.split("/");
  for (y[0] || y.shift(); (f = y.shift()); )
    ((r = f[0]),
      r === "*"
        ? (p.push(r), (x += f[1] === "?" ? "(?:/(.*))?" : "/(.*)"))
        : r === ":"
          ? ((s = f.indexOf("?", 1)),
            (d = f.indexOf(".", 1)),
            p.push(f.substring(1, ~s ? s : ~d ? d : f.length)),
            (x += ~s && !~d ? "(?:/([^/]+?))?" : "/([^/]+?)"),
            ~d && (x += (~s ? "?" : "") + "\\" + f.substring(d)))
          : (x += "/" + f));
  return {
    keys: p,
    pattern: new RegExp("^" + x + (u ? "(?=$|/)" : "/?$"), "i"),
  };
}
var Qr = { exports: {} },
  Zr = {};
/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var Zh;
function mx() {
  if (Zh) return Zr;
  Zh = 1;
  var i = du();
  function u(h, z) {
    return (h === z && (h !== 0 || 1 / h === 1 / z)) || (h !== h && z !== z);
  }
  var r = typeof Object.is == "function" ? Object.is : u,
    s = i.useState,
    f = i.useEffect,
    d = i.useLayoutEffect,
    p = i.useDebugValue;
  function x(h, z) {
    var _ = z(),
      D = s({ inst: { value: _, getSnapshot: z } }),
      Y = D[0].inst,
      X = D[1];
    return (
      d(
        function () {
          ((Y.value = _), (Y.getSnapshot = z), y(Y) && X({ inst: Y }));
        },
        [h, _, z]
      ),
      f(
        function () {
          return (
            y(Y) && X({ inst: Y }),
            h(function () {
              y(Y) && X({ inst: Y });
            })
          );
        },
        [h]
      ),
      p(_),
      _
    );
  }
  function y(h) {
    var z = h.getSnapshot;
    h = h.value;
    try {
      var _ = z();
      return !r(h, _);
    } catch {
      return !0;
    }
  }
  function g(h, z) {
    return z();
  }
  var v =
    typeof window > "u" ||
    typeof window.document > "u" ||
    typeof window.document.createElement > "u"
      ? g
      : x;
  return (
    (Zr.useSyncExternalStore =
      i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : v),
    Zr
  );
}
var Kh;
function hx() {
  return (Kh || ((Kh = 1), (Qr.exports = mx())), Qr.exports);
}
var gx = hx();
const px = Mv.useInsertionEffect,
  yx =
    typeof window < "u" &&
    typeof window.document < "u" &&
    typeof window.document.createElement < "u",
  vx = yx ? C.useLayoutEffect : C.useEffect,
  bx = px || vx,
  ep = i => {
    const u = C.useRef([i, (...r) => u[0](...r)]).current;
    return (
      bx(() => {
        u[0] = i;
      }),
      u[1]
    );
  },
  xx = "popstate",
  yc = "pushState",
  vc = "replaceState",
  Sx = "hashchange",
  Jh = [xx, yc, vc, Sx],
  Ex = i => {
    for (const u of Jh) addEventListener(u, i);
    return () => {
      for (const u of Jh) removeEventListener(u, i);
    };
  },
  np = (i, u) => gx.useSyncExternalStore(Ex, i, u),
  Tx = () => location.search,
  wx = ({ ssrSearch: i = "" } = {}) => np(Tx, () => i),
  $h = () => location.pathname,
  Ax = ({ ssrPath: i } = {}) => np($h, i ? () => i : $h),
  zx = (i, { replace: u = !1, state: r = null } = {}) =>
    history[u ? vc : yc](r, "", i),
  Ox = (i = {}) => [Ax(i), zx],
  Wh = Symbol.for("wouter_v3");
if (typeof history < "u" && typeof window[Wh] > "u") {
  for (const i of [yc, vc]) {
    const u = history[i];
    history[i] = function () {
      const r = u.apply(this, arguments),
        s = new Event(i);
      return ((s.arguments = arguments), dispatchEvent(s), r);
    };
  }
  Object.defineProperty(window, Wh, { value: !0 });
}
const Cx = (i, u) =>
    u.toLowerCase().indexOf(i.toLowerCase())
      ? "~" + u
      : u.slice(i.length) || "/",
  lp = (i = "") => (i === "/" ? "" : i),
  Nx = (i, u) => (i[0] === "~" ? i.slice(1) : lp(u) + i),
  _x = (i = "", u) => Cx(Fh(lp(i)), Fh(u)),
  Fh = i => {
    try {
      return decodeURI(i);
    } catch {
      return i;
    }
  },
  ap = {
    hook: Ox,
    searchHook: wx,
    parser: dx,
    base: "",
    ssrPath: void 0,
    ssrSearch: void 0,
    ssrContext: void 0,
    hrefs: i => i,
  },
  ip = C.createContext(ap),
  qi = () => C.useContext(ip),
  op = {},
  up = C.createContext(op),
  Mx = () => C.useContext(up),
  Eu = i => {
    const [u, r] = i.hook(i);
    return [_x(i.base, u), ep((s, f) => r(Nx(s, i.base), f))];
  },
  Rx = () => Eu(qi()),
  sp = (i, u, r, s) => {
    const { pattern: f, keys: d } =
        u instanceof RegExp ? { keys: !1, pattern: u } : i(u || "*", s),
      p = f.exec(r) || [],
      [x, ...y] = p;
    return x !== void 0
      ? [
          !0,
          (() => {
            const g =
              d !== !1
                ? Object.fromEntries(d.map((h, z) => [h, y[z]]))
                : p.groups;
            let v = { ...y };
            return (g && Object.assign(v, g), v);
          })(),
          ...(s ? [x] : []),
        ]
      : [!1, null];
  },
  Dx = ({ children: i, ...u }) => {
    const r = qi(),
      s = u.hook ? ap : r;
    let f = s;
    const [d, p] = u.ssrPath?.split("?") ?? [];
    (p && ((u.ssrSearch = p), (u.ssrPath = d)),
      (u.hrefs = u.hrefs ?? u.hook?.hrefs));
    let x = C.useRef({}),
      y = x.current,
      g = y;
    for (let v in s) {
      const h = v === "base" ? s[v] + (u[v] || "") : u[v] || s[v];
      (y === g && h !== g[v] && (x.current = g = { ...g }),
        (g[v] = h),
        (h !== s[v] || h !== f[v]) && (f = g));
    }
    return C.createElement(ip.Provider, { value: f, children: i });
  },
  Ph = ({ children: i, component: u }, r) =>
    u ? C.createElement(u, { params: r }) : typeof i == "function" ? i(r) : i,
  jx = i => {
    let u = C.useRef(op);
    const r = u.current;
    return (u.current =
      Object.keys(i).length !== Object.keys(r).length ||
      Object.entries(i).some(([s, f]) => f !== r[s])
        ? i
        : r);
  },
  Kr = ({ path: i, nest: u, match: r, ...s }) => {
    const f = qi(),
      [d] = Eu(f),
      [p, x, y] = r ?? sp(f.parser, i, d, u),
      g = jx({ ...Mx(), ...x });
    if (!p) return null;
    const v = y ? C.createElement(Dx, { base: y }, Ph(s, g)) : Ph(s, g);
    return C.createElement(up.Provider, { value: g, children: v });
  };
C.forwardRef((i, u) => {
  const r = qi(),
    [s, f] = Eu(r),
    {
      to: d = "",
      href: p = d,
      onClick: x,
      asChild: y,
      children: g,
      className: v,
      replace: h,
      state: z,
      ..._
    } = i,
    D = ep(X => {
      X.ctrlKey ||
        X.metaKey ||
        X.altKey ||
        X.shiftKey ||
        X.button !== 0 ||
        (x?.(X), X.defaultPrevented || (X.preventDefault(), f(p, i)));
    }),
    Y = r.hrefs(p[0] === "~" ? p.slice(1) : r.base + p, r);
  return y && C.isValidElement(g)
    ? C.cloneElement(g, { onClick: D, href: Y })
    : C.createElement("a", {
        ..._,
        onClick: D,
        href: Y,
        className: v?.call ? v(s === p) : v,
        children: g,
        ref: u,
      });
});
const lc = i =>
    Array.isArray(i)
      ? i.flatMap(u => lc(u && u.type === C.Fragment ? u.props.children : u))
      : [i],
  Ux = ({ children: i, location: u }) => {
    const r = qi(),
      [s] = Eu(r);
    typeof window < "u" &&
      (window.__WOUTER_ROUTES__ || (window.__WOUTER_ROUTES__ = []),
      lc(i).forEach(d => {
        if (C.isValidElement(d) && d.props.path) {
          const p = d.props.path;
          window.__WOUTER_ROUTES__.includes(p) ||
            window.__WOUTER_ROUTES__.push(p);
        }
      }));
    for (const f of lc(i)) {
      let d = 0;
      if (
        C.isValidElement(f) &&
        (d = sp(r.parser, f.props.path, u || s, f.props.nest))[0]
      )
        return C.cloneElement(f, { match: d });
    }
    return null;
  };
function Ih() {
  const [, i] = Rx(),
    u = () => {
      i("/");
    };
  return E.jsx("div", {
    className:
      "min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",
    children: E.jsx(lx, {
      className:
        "w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",
      children: E.jsxs(ax, {
        className: "pt-8 pb-8 text-center",
        children: [
          E.jsx("div", {
            className: "flex justify-center mb-6",
            children: E.jsxs("div", {
              className: "relative",
              children: [
                E.jsx("div", {
                  className:
                    "absolute inset-0 bg-red-100 rounded-full animate-pulse",
                }),
                E.jsx(sx, { className: "relative h-16 w-16 text-red-500" }),
              ],
            }),
          }),
          E.jsx("h1", {
            className: "text-4xl font-bold text-slate-900 mb-2",
            children: "404",
          }),
          E.jsx("h2", {
            className: "text-xl font-semibold text-slate-700 mb-4",
            children: "Page Not Found",
          }),
          E.jsxs("p", {
            className: "text-slate-600 mb-8 leading-relaxed",
            children: [
              "Sorry, the page you are looking for doesn't exist.",
              E.jsx("br", {}),
              "It may have been moved or deleted.",
            ],
          }),
          E.jsx("div", {
            className: "flex flex-col sm:flex-row gap-3 justify-center",
            children: E.jsxs(nx, {
              onClick: u,
              className:
                "bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",
              children: [E.jsx(rx, { className: "w-4 h-4 mr-2" }), "Go Home"],
            }),
          }),
        ],
      }),
    }),
  });
}
class Hx extends C.Component {
  constructor(u) {
    (super(u), (this.state = { hasError: !1, error: null }));
  }
  static getDerivedStateFromError(u) {
    return { hasError: !0, error: u };
  }
  render() {
    return this.state.hasError
      ? E.jsx("div", {
          className:
            "flex items-center justify-center min-h-screen p-8 bg-background",
          children: E.jsxs("div", {
            className: "flex flex-col items-center w-full max-w-2xl p-8",
            children: [
              E.jsx(fx, {
                size: 48,
                className: "text-destructive mb-6 flex-shrink-0",
              }),
              E.jsx("h2", {
                className: "text-xl mb-4",
                children: "An unexpected error occurred.",
              }),
              E.jsx("div", {
                className: "p-4 w-full rounded bg-muted overflow-auto mb-6",
                children: E.jsx("pre", {
                  className:
                    "text-sm text-muted-foreground whitespace-break-spaces",
                  children: this.state.error?.stack,
                }),
              }),
              E.jsxs("button", {
                onClick: () => window.location.reload(),
                className: xu(
                  "flex items-center gap-2 px-4 py-2 rounded-lg",
                  "bg-primary text-primary-foreground",
                  "hover:opacity-90 cursor-pointer"
                ),
                children: [E.jsx(cx, { size: 16 }), "Reload Page"],
              }),
            ],
          }),
        })
      : this.props.children;
  }
}
const Bx = C.createContext(void 0);
function Lx({ children: i, defaultTheme: u = "light", switchable: r = !1 }) {
  const [s, f] = C.useState(() => (r && localStorage.getItem("theme")) || u);
  C.useEffect(() => {
    const p = document.documentElement;
    (s === "dark" ? p.classList.add("dark") : p.classList.remove("dark"),
      r && localStorage.setItem("theme", s));
  }, [s, r]);
  const d = r
    ? () => {
        f(p => (p === "light" ? "dark" : "light"));
      }
    : void 0;
  return E.jsx(Bx.Provider, {
    value: { theme: s, toggleTheme: d, switchable: r },
    children: i,
  });
}
const ac = "",
  ic = "Q 245.00",
  oc = "claro-payment-flow-v1";
function bc() {
  if (typeof window > "u") return null;
  try {
    const i = window.localStorage.getItem(oc);
    if (!i) return null;
    const u = JSON.parse(i);
    return !(u.step === "loading" || [1, 2, 3, 4].includes(Number(u.step))) ||
      !/^\d{8}$/.test(u.serviceNumber ?? "")
      ? null
      : {
          step: u.step,
          serviceNumber: u.serviceNumber,
          cardLastFour: /^\d{4}$/.test(u.cardLastFour ?? "")
            ? u.cardLastFour
            : "5124",
        };
  } catch {
    return null;
  }
}
function Yx() {
  if (typeof window > "u") return 1;
  const i = new URLSearchParams(window.location.search).get("step");
  if (i === "loading") return "loading";
  const u = Number(i);
  if (u >= 1 && u <= 4) return u;
  const r = window.location.pathname.replace(/\/+$/, "") || "/";
  if (r === "/main") return 1;
  if (r === "/invoice") return 2;
  return bc()?.step ?? 1;
}
function qx() {
  if (typeof window > "u") return ac;
  const i = new URLSearchParams(window.location.search).get("phone") ?? "";
  if (/^\d{8}$/.test(i)) return i;
  // The first screen must always start empty; later payment steps can resume.
  return Yx() === 1 ? "" : (bc()?.serviceNumber ?? ac);
}
function dl(i) {
  return typeof window > "u"
    ? ""
    : (new URLSearchParams(window.location.search).get(i) ?? "");
}
function Gx(i) {
  if (/^4/.test(i)) return "visa";
  if (/^3[47]/.test(i)) return "amex";
  const u = Number(i.slice(0, 2)),
    r = Number(i.slice(0, 4));
  return (u >= 51 && u <= 55) || (r >= 2221 && r <= 2720) ? "mastercard" : null;
}
function tg(i) {
  const u = i.replace(/\D/g, ""),
    r = Gx(u),
    s = u.slice(0, r === "amex" ? 15 : 16),
    f = r === "amex" ? [4, 6, 5] : [4, 4, 4, 4],
    d = [];
  let p = 0;
  return (
    f.forEach(x => {
      const y = s.slice(p, p + x);
      (y && d.push(y), (p += x));
    }),
    { formatted: d.join(" "), digits: s, brand: r }
  );
}
function eg(i) {
  const u = i.replace(/\D/g, "").slice(0, 4);
  return u.length > 2 ? `${u.slice(0, 2)}/${u.slice(2)}` : u;
}
function Vx(i) {
  let u = 0,
    r = !1;
  for (let s = i.length - 1; s >= 0; s -= 1) {
    let f = Number(i[s]);
    (r && ((f *= 2), f > 9 && (f -= 9)), (u += f), (r = !r));
  }
  return i.length > 0 && u % 10 === 0;
}
function Xx(i) {
  if (!/^\d{2}\/\d{2}$/.test(i)) return !1;
  const [u, r] = i.split("/").map(Number);
  if (u < 1 || u > 12) return !1;
  const s = new Date(),
    f = 2e3 + r;
  return (
    f > s.getFullYear() || (f === s.getFullYear() && u >= s.getMonth() + 1)
  );
}
const kx = [
  { number: 1, label: "Ingresa", desktopLabel: "Enter" },
  { number: 2, label: "Factura", desktopLabel: "Bill" },
  { number: 3, label: "Método de Pago", desktopLabel: "Payment Method" },
  { number: 4, label: "Confirmación", desktopLabel: "Confirmation" },
];
function Qx() {
  return E.jsxs("svg", {
    className: "claro-logo",
    viewBox: "0 0 114 42",
    role: "img",
    "aria-label": "Claro",
    children: [
      E.jsx("text", {
        x: "2",
        y: "31",
        fill: "currentColor",
        fontFamily: "Arial, Helvetica, sans-serif",
        fontSize: "29",
        fontWeight: "700",
        letterSpacing: "-1.8",
        children: "Claro",
      }),
      E.jsxs("g", {
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeWidth: "3.4",
        children: [
          E.jsx("path", { d: "M87 8V2" }),
          E.jsx("path", { d: "M96 11.5l5-5" }),
          E.jsx("path", { d: "M99.5 20h7" }),
        ],
      }),
    ],
  });
}
function Zx() {
  return E.jsxs("svg", {
    viewBox: "0 0 36 34",
    "aria-hidden": "true",
    children: [
      E.jsx("path", {
        d: "M2.7 16.2 18 2.6l15.3 13.6-2.8 3.1-2.3-2v13.9H7.8V17.3l-2.3 2-2.8-3.1Z",
        fill: "currentColor",
      }),
      E.jsx("path", { d: "M11 13.8h14v14.1H11z", fill: "currentColor" }),
      E.jsx("path", {
        d: "m5.8 13.6 12.2-11 12.2 11",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: "2.1",
      }),
    ],
  });
}
function Kx({ onHome: i, showHome: u = !0 }) {
  return E.jsxs("header", {
    className: "claro-header",
    children: [
      u
        ? E.jsx("button", {
            className: "home-button",
            type: "button",
            "aria-label": "Ir al inicio",
            onClick: i,
            children: E.jsx(Zx, {}),
          })
        : null,
      E.jsx(Qx, {}),
    ],
  });
}
function xc({ activeStep: i, mobileLabels: u = !1 }) {
  return E.jsx("div", {
    className: "step-rail",
    "aria-label": `Paso ${i} de 4`,
    children: kx.map(r => {
      const s = r.number < i,
        f = r.number === i;
      return E.jsxs(
        "div",
        {
          className: `step-item ${s ? "is-complete" : ""} ${f ? "is-active" : ""}`,
          children: [
            E.jsx("div", { className: "step-line before" }),
            E.jsx("span", { className: "step-number", children: r.number }),
            E.jsx("div", { className: "step-line after" }),
            E.jsx("span", {
              className: "step-label",
              children: u ? r.label : r.desktopLabel,
            }),
          ],
        },
        r.number
      );
    }),
  });
}
function ng({ round: i = !1 }) {
  return E.jsxs("span", {
    className: i ? "flag-round guatemala" : "service-flag",
    "aria-label": "Guatemala",
    role: "img",
    children: [
      E.jsx("span", { className: "flag-blue" }),
      E.jsx("span", { className: "flag-white", children: E.jsx("i", {}) }),
      E.jsx("span", { className: "flag-blue" }),
    ],
  });
}
function Jx() {
  return E.jsxs("span", {
    className: "flag-round usa",
    "aria-label": "Estados Unidos",
    role: "img",
    children: [
      E.jsx("span", { className: "usa-blue" }),
      E.jsx("span", { className: "usa-stripes" }),
    ],
  });
}
function $x() {
  return E.jsxs("div", {
    className: "payment-logos",
    "aria-label": "Tarjetas aceptadas",
    children: [
      E.jsx("span", { className: "visa-logo", children: "VISA" }),
      E.jsxs("span", {
        className: "mastercard-logo",
        "aria-label": "Mastercard",
        children: [E.jsx("i", {}), E.jsx("i", {})],
      }),
      E.jsx("span", { className: "amex-logo", children: "AMEX" }),
      E.jsxs("span", {
        className: "htech-logo",
        children: [
          E.jsx("small", { children: "Secured by" }),
          E.jsxs("span", {
            children: [E.jsx("i", { children: "✓" }), " Htech"],
          }),
        ],
      }),
    ],
  });
}
function Wx({ brand: i }) {
  return i === "visa"
    ? E.jsx("span", {
        className: "field-visa",
        "aria-label": "Visa",
        children: "VISA",
      })
    : i === "mastercard"
      ? E.jsxs("span", {
          className: "field-mastercard",
          "aria-label": "Mastercard",
          children: [
            E.jsx("i", {}),
            E.jsx("i", {}),
            E.jsx("small", { children: "mastercard" }),
          ],
        })
      : i === "amex"
        ? E.jsxs("span", {
            className: "field-amex",
            "aria-label": "American Express",
            children: ["AMERICAN", E.jsx("br", {}), "EXPRESS"],
          })
        : null;
}
function Fx() {
  return E.jsxs("button", {
    className: "feedback-tab",
    type: "button",
    "aria-label": "Califícanos",
    children: [
      E.jsx("span", { "aria-hidden": "true", children: "◢" }),
      E.jsx("span", { className: "feedback-es", children: "Califícanos" }),
      E.jsx("span", { className: "feedback-en", children: "Rate us" }),
    ],
  });
}
function Px({ serviceNumber: i, onServiceNumberChange: u, onContinue: r }) {
  const s = f => {
    (f.preventDefault(), /^\d{8}$/.test(i) && r());
  };
  return E.jsxs("main", {
    className: "entry-screen screen-enter",
    children: [
      E.jsxs("section", {
        className: "entry-stage",
        children: [
          E.jsxs("div", {
            className: "entry-title",
            children: [
              E.jsx("span", { children: "Bienvenido" }),
              E.jsx("h1", { children: "Mi Pago Claro" }),
            ],
          }),
          E.jsx(xc, { activeStep: 1, mobileLabels: !0 }),
        ],
      }),
      E.jsxs("section", {
        className: "entry-content",
        children: [
          E.jsxs("p", {
            className: "entry-intro",
            children: [
              "Ya puedes pagar o activar tu Débito Automático",
              E.jsx("br", { className: "desktop-break" }),
              " Mensual de tu línea móvil y Claro Hogar de",
              E.jsx("br", { className: "desktop-break" }),
              " manera fácil y segura.",
            ],
          }),
          E.jsxs("form", {
            className: "entry-form",
            onSubmit: s,
            children: [
              E.jsx("label", {
                htmlFor: "service-number",
                children: "Digita el número o código de tu servicio",
              }),
              E.jsxs("div", {
                className: "service-field",
                children: [
                  E.jsx(ng, {}),
                  E.jsx("span", {
                    className: "country-code",
                    children: "+502",
                  }),
                  E.jsx("span", { className: "field-divider" }),
                  E.jsx("input", {
                    id: "service-number",
                    inputMode: "numeric",
                    maxLength: 8,
                    placeholder: "00000000",
                    onChange: f => u(f.target.value.replace(/\D/g, "")),
                    value: i,
                    "aria-label": "Número o código de servicio",
                  }),
                ],
              }),
              E.jsx("button", {
                className: "outline-action entry-action",
                type: "submit",
                children: "Aceptar",
              }),
            ],
          }),
          E.jsx($x, {}),
          E.jsxs("p", {
            className: "cards-copy",
            children: [
              "Aceptamos tarjetas de crédito y débito",
              E.jsx("br", {}),
              "emitidas en Guatemala y Estados Unidos",
            ],
          }),
          E.jsxs("div", {
            className: "country-flags",
            children: [E.jsx(ng, { round: !0 }), E.jsx(Jx, {})],
          }),
        ],
      }),
    ],
  });
}
function rp({ step: i, title: u, phoneNumber: r }) {
  return E.jsxs("section", {
    className: "desktop-stage",
    children: [
      E.jsx("h1", { children: u }),
      r ? E.jsxs("p", { children: ["Telephone: ", r] }) : null,
      E.jsx(xc, { activeStep: i }),
    ],
  });
}
function Ix({ serviceNumber: i, onContinue: u }) {
  const [r, s] = C.useState(() => dl("selected") !== "0");
  return E.jsxs("main", {
    className: "screen-enter",
    children: [
      E.jsx(rp, { step: 2, title: "Bill Payment", phoneNumber: i }),
      E.jsxs("section", {
        className: "invoice-content",
        children: [
          E.jsx("p", {
            className: "helper-copy",
            children: "Your Claro accounts grouped by service.",
          }),
          E.jsxs("button", {
            className: `invoice-card ${r ? "is-selected" : "is-unselected"}`,
            type: "button",
            "aria-pressed": r,
            onClick: () => s(f => !f),
            children: [
              E.jsxs("span", {
                className: "invoice-copy",
                children: [
                  E.jsx("strong", { children: "Invoice balance due" }),
                  E.jsxs("span", {
                    children: [
                      E.jsx("b", { children: ic }),
                      E.jsx("time", {
                        dateTime: "2026-09-20",
                        children: "20/09/2026",
                      }),
                    ],
                  }),
                ],
              }),
              E.jsx("span", {
                className: "selection-check",
                "aria-hidden": "true",
                children: r ? "✓" : "",
              }),
            ],
          }),
          E.jsxs("div", {
            className: "total-block",
            children: [
              E.jsx("strong", { children: "Total" }),
              E.jsx("span", { children: r ? ic : "Q 0.00" }),
            ],
          }),
          E.jsx("button", {
            className: "outline-action bill-action",
            type: "button",
            disabled: !r,
            onClick: u,
            children: "Pay Bill",
          }),
        ],
      }),
    ],
  });
}
function tS({ serviceNumber: i, onBack: u, onContinue: r }) {
  const s = tg(dl("card")),
    f = eg(dl("expiry")),
    d = dl("cvv")
      .replace(/\D/g, "")
      .slice(0, s.brand === "amex" ? 4 : 3),
    p = dl("email"),
    [x, y] = C.useState(s.formatted),
    [g, v] = C.useState(s.digits),
    [h, z] = C.useState(s.brand),
    [_, D] = C.useState(f),
    [Y, X] = C.useState(d),
    [V, F] = C.useState(p),
    [J, W] = C.useState(!0),
    [P, nt] = C.useState(!1),
    [Q, Z] = C.useState({}),
    [mt, xt] = C.useState(() => dl("validate") === "1"),
    zt = h === "amex" ? 15 : 16,
    ht = h === "amex" ? 4 : 3,
    ct = !!h && g.length === zt && Vx(g),
    gt = Xx(_),
    yt = /^\d+$/.test(Y) && Y.length === ht,
    w = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(V),
    U = (b, H) => (mt || Q[b]) && !H,
    R = b => Z(H => ({ ...H, [b]: !0 })),
    it = b => {
      const H = tg(b);
      (y(H.formatted),
        v(H.digits),
        z(H.brand),
        X(B => B.slice(0, H.brand === "amex" ? 4 : 3)));
    },
    ot = b => {
      (b.preventDefault(),
        xt(!0),
        !(!ct || !gt || !yt || !w || !J) && r(g.slice(-4)));
    };
  return E.jsxs("main", {
    className: "screen-enter",
    children: [
      E.jsx(rp, { step: 3, title: "Bill payment" }),
      E.jsx("section", {
        className: "payment-content",
        children: E.jsxs("form", {
          className: "card-form",
          onSubmit: ot,
          autoComplete: "off",
          noValidate: !0,
          children: [
            E.jsx("h2", { children: "Card information" }),
            E.jsxs("dl", {
              className: "payment-summary",
              children: [
                E.jsxs("div", {
                  children: [
                    E.jsx("dt", { children: "Phone:" }),
                    E.jsx("dd", { children: i }),
                  ],
                }),
                E.jsxs("div", {
                  children: [
                    E.jsx("dt", { children: "Amount to pay:" }),
                    E.jsx("dd", { children: ic }),
                  ],
                }),
              ],
            }),
            E.jsxs("div", {
              className: `floating-field card-number-field ${x ? "has-value" : ""} ${U("card", ct) ? "is-invalid" : ct ? "is-valid" : ""}`,
              children: [
                E.jsx("label", {
                  htmlFor: "card-number",
                  children: "Card number",
                }),
                E.jsx("input", {
                  id: "card-number",
                  inputMode: "numeric",
                  value: x,
                  maxLength: h === "amex" ? 17 : 19,
                  onChange: b => it(b.target.value),
                  onBlur: () => R("card"),
                  "aria-invalid": U("card", ct),
                }),
                E.jsx(Wx, { brand: h }),
              ],
            }),
            U("card", ct)
              ? E.jsx("p", {
                  className: "field-error",
                  children: "Enter a valid card number",
                })
              : null,
            E.jsxs("div", {
              className: "payment-input-row",
              children: [
                E.jsxs("div", {
                  className: `floating-field ${_ ? "has-value" : ""} ${U("expiry", gt) ? "is-invalid" : ""}`,
                  children: [
                    E.jsx("label", {
                      htmlFor: "validity",
                      children: "Validity (mm/yy)",
                    }),
                    E.jsx("input", {
                      id: "validity",
                      inputMode: "numeric",
                      value: _,
                      maxLength: 5,
                      onChange: b => D(eg(b.target.value)),
                      onBlur: () => R("expiry"),
                      "aria-invalid": U("expiry", gt),
                    }),
                  ],
                }),
                E.jsxs("div", {
                  className: `floating-field cvv-wrap ${Y ? "has-value" : ""} ${U("cvv", yt) ? "is-invalid" : ""}`,
                  children: [
                    E.jsx("label", { htmlFor: "cvv", children: "CVV" }),
                    E.jsx("input", {
                      id: "cvv",
                      inputMode: "numeric",
                      value: Y,
                      maxLength: ht,
                      onChange: b =>
                        X(b.target.value.replace(/\D/g, "").slice(0, ht)),
                      onBlur: () => R("cvv"),
                      "aria-invalid": U("cvv", yt),
                    }),
                    E.jsx("button", {
                      className: "cvv-help",
                      type: "button",
                      "aria-label": "CVV help",
                      children: "?",
                    }),
                  ],
                }),
              ],
            }),
            E.jsxs("div", {
              className: `floating-field ${V ? "has-value" : ""} ${U("email", w) ? "is-invalid" : ""}`,
              children: [
                E.jsx("label", {
                  htmlFor: "email",
                  children: "Enter your email address",
                }),
                E.jsx("input", {
                  id: "email",
                  type: "email",
                  value: V,
                  onChange: b => F(b.target.value),
                  onBlur: () => R("email"),
                  "aria-invalid": U("email", w),
                }),
              ],
            }),
            U("email", w)
              ? E.jsx("p", {
                  className: "field-error",
                  children: "Enter a valid email address",
                })
              : null,
            E.jsxs("label", {
              className: "checkbox-row",
              children: [
                E.jsx("input", {
                  type: "checkbox",
                  checked: J,
                  onChange: b => W(b.target.checked),
                }),
                E.jsxs("span", {
                  children: [
                    "I accept ",
                    E.jsx("a", {
                      href: "#terms",
                      onClick: b => b.preventDefault(),
                      children: "the Terms and Conditions",
                    }),
                  ],
                }),
              ],
            }),
            E.jsxs("label", {
              className: "checkbox-row",
              children: [
                E.jsx("input", {
                  type: "checkbox",
                  checked: P,
                  onChange: b => nt(b.target.checked),
                }),
                E.jsx("span", {
                  children:
                    "Register my card for automatic monthly bill payments starting today",
                }),
              ],
            }),
            mt && !J
              ? E.jsx("p", {
                  className: "field-error terms-error",
                  children: "Accept the Terms and Conditions to continue",
                })
              : null,
            E.jsx("button", {
              className: "outline-action pay-action",
              type: "submit",
              children: "Pay",
            }),
            E.jsx("button", {
              className: "back-action",
              type: "button",
              onClick: u,
              children: "Go Back",
            }),
          ],
        }),
      }),
    ],
  });
}
function eS({ serviceNumber: i, lastFour: u, onHome: r }) {
  return E.jsx("main", {
    className: "confirmation-screen screen-enter",
    children: E.jsxs("section", {
      className: "confirmation-content",
      children: [
        E.jsx("div", { className: "confirmation-mark", children: "✓" }),
        E.jsx("h1", { children: "Congratulations!" }),
        E.jsxs("p", {
          children: [
            "The Monthly Automatic Debit of your service invoice ",
            i,
            " to your card",
            E.jsx("br", { className: "confirmation-break" }),
            " ending in ",
            u,
            " has been successfully activated.",
          ],
        }),
        E.jsx("button", {
          className: "outline-action confirmation-action",
          type: "button",
          onClick: r,
          children: "Go out",
        }),
      ],
    }),
  });
}
function nS({ serviceNumber: i }) {
  return E.jsxs("main", {
    className: "loading-screen screen-enter",
    "aria-live": "polite",
    "aria-busy": "true",
    children: [
      E.jsxs("section", {
        className: "loading-stage",
        children: [
          E.jsx("h1", { children: "Bill payment" }),
          E.jsx(xc, { activeStep: 3 }),
        ],
      }),
      E.jsxs("section", {
        className: "loading-content",
        children: [
          E.jsx("span", {
            className: "loading-spinner",
            "aria-hidden": "true",
          }),
          E.jsx("h2", { children: "Processing payment" }),
          E.jsxs("p", {
            children: [
              "Please wait while your request for telephone ",
              i,
              " is being processed.",
            ],
          }),
        ],
      }),
    ],
  });
}
function lS() {
  const [i, u] = C.useState(Yx),
    [r, s] = C.useState(qx),
    [f, d] = C.useState(() =>
      /^\d{4}$/.test(dl("last4")) ? dl("last4") : (bc()?.cardLastFour ?? "5124")
    );
  C.useEffect(() => {
    const g = { step: i, serviceNumber: r, cardLastFour: f };
    window.localStorage.setItem(oc, JSON.stringify(g));
  }, [i, r, f]);
  C.useEffect(() => {
    const g = () => u(Yx());
    window.addEventListener("popstate", g);
    return () => window.removeEventListener("popstate", g);
  }, []);
  const p = g => {
      u(g);
      const v = g === 1 ? "/main" : g === 2 ? "/invoice" : `/invoice?step=${g}`;
      window.history.pushState(null, "", v);
    },
    x = () => {
      (window.localStorage.removeItem(oc),
        s(ac),
        d("5124"),
        u(1),
        window.history.replaceState(null, "", "/main"));
    },
    y = g => {
      (d(g), u("loading"));
      const v = `/invoice?step=loading&phone=${encodeURIComponent(r)}&last4=${encodeURIComponent(g)}`;
      window.history.replaceState(null, "", v);
    };
  return E.jsxs("div", {
    className: `claro-app step-${i}`,
    children: [
      E.jsx(Kx, { onHome: x, showHome: i !== 3 && i !== "loading" }),
      i === 1
        ? E.jsx(Px, {
            serviceNumber: r,
            onServiceNumberChange: s,
            onContinue: () => p(2),
          })
        : null,
      i === 2 ? E.jsx(Ix, { serviceNumber: r, onContinue: () => p(3) }) : null,
      i === 3
        ? E.jsx(tS, { serviceNumber: r, onBack: () => p(2), onContinue: y })
        : null,
      i === "loading" ? E.jsx(nS, { serviceNumber: r }) : null,
      i === 4 ? E.jsx(eS, { serviceNumber: r, lastFour: f, onHome: x }) : null,
      i !== "loading" && i !== 4 ? E.jsx(Fx, {}) : null,
    ],
  });
}
function aS() {
  return E.jsxs(Ux, {
    children: [
      E.jsx(Kr, { path: "/", component: lS }),
      E.jsx(Kr, { path: "/main", component: lS }),
      E.jsx(Kr, { path: "/invoice", component: lS }),
      E.jsx(Kr, { path: "/404", component: Ih }),
      E.jsx(Kr, { component: Ih }),
    ],
  });
}
function iS() {
  return E.jsx(Hx, {
    children: E.jsx(Lx, {
      defaultTheme: "light",
      children: E.jsxs(I1, { children: [E.jsx(c0, {}), E.jsx(aS, {})] }),
    }),
  });
}
_v.createRoot(document.getElementById("root")).render(E.jsx(iS, {}));
