import { dN as e, dO as t } from "./vendor-208d0ff5.js";
import n, { useState as r, useMemo as o, useEffect as s, useContext as a, useRef as i, useDebugValue as c, createElement as u } from "react";
var l = function() {
  return l = Object.assign || function(e2) {
    for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
      for (var o2 in t2 = arguments[n2])
        Object.prototype.hasOwnProperty.call(t2, o2) && (e2[o2] = t2[o2]);
    return e2;
  }, l.apply(this, arguments);
};
function p(e2, t2, n2) {
  if (n2 || 2 === arguments.length)
    for (var r2, o2 = 0, s2 = t2.length; o2 < s2; o2++)
      !r2 && o2 in t2 || (r2 || (r2 = Array.prototype.slice.call(t2, 0, o2)), r2[o2] = t2[o2]);
  return e2.concat(r2 || Array.prototype.slice.call(t2));
}
var d = "-ms-", h = "-moz-", f = "-webkit-", m = "comm", y = "rule", v = "decl", g = "@import", S = "@keyframes", w = "@layer", b = Math.abs, E = String.fromCharCode, N = Object.assign;
function C(e2) {
  return e2.trim();
}
function P(e2, t2) {
  return (e2 = t2.exec(e2)) ? e2[0] : e2;
}
function _(e2, t2, n2) {
  return e2.replace(t2, n2);
}
function I(e2, t2, n2) {
  return e2.indexOf(t2, n2);
}
function k(e2, t2) {
  return 0 | e2.charCodeAt(t2);
}
function A(e2, t2, n2) {
  return e2.slice(t2, n2);
}
function O(e2) {
  return e2.length;
}
function x(e2) {
  return e2.length;
}
function R(e2, t2) {
  return t2.push(e2), e2;
}
function T(e2, t2) {
  return e2.filter(function(e3) {
    return !P(e3, t2);
  });
}
var D = 1, $ = 1, j = 0, V = 0, M = 0, z = "";
function F(e2, t2, n2, r2, o2, s2, a2, i2) {
  return { value: e2, root: t2, parent: n2, type: r2, props: o2, children: s2, line: D, column: $, length: a2, return: "", siblings: i2 };
}
function G(e2, t2) {
  return N(F("", null, null, "", null, null, 0, e2.siblings), e2, { length: -e2.length }, t2);
}
function B(e2) {
  for (; e2.root; )
    e2 = G(e2.root, { children: [e2] });
  R(e2, e2.siblings);
}
function L() {
  return M = V > 0 ? k(z, --V) : 0, $--, 10 === M && ($ = 1, D--), M;
}
function W() {
  return M = V < j ? k(z, V++) : 0, $++, 10 === M && ($ = 1, D++), M;
}
function Y() {
  return k(z, V);
}
function H() {
  return V;
}
function q(e2, t2) {
  return A(z, e2, t2);
}
function U(e2) {
  switch (e2) {
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    case 59:
    case 123:
    case 125:
      return 4;
    case 58:
      return 3;
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
function J(e2) {
  return C(q(V - 1, K(91 === e2 ? e2 + 2 : 40 === e2 ? e2 + 1 : e2)));
}
function X(e2) {
  for (; (M = Y()) && M < 33; )
    W();
  return U(e2) > 2 || U(M) > 3 ? "" : " ";
}
function Z(e2, t2) {
  for (; --t2 && W() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
    ;
  return q(e2, H() + (t2 < 6 && 32 == Y() && 32 == W()));
}
function K(e2) {
  for (; W(); )
    switch (M) {
      case e2:
        return V;
      case 34:
      case 39:
        34 !== e2 && 39 !== e2 && K(M);
        break;
      case 40:
        41 === e2 && K(e2);
        break;
      case 92:
        W();
    }
  return V;
}
function Q(e2, t2) {
  for (; W() && e2 + M !== 57 && (e2 + M !== 84 || 47 !== Y()); )
    ;
  return "/*" + q(t2, V - 1) + "*" + E(47 === e2 ? e2 : W());
}
function ee(e2) {
  for (; !U(Y()); )
    W();
  return q(e2, V);
}
function te(e2) {
  return function(e3) {
    return z = "", e3;
  }(ne("", null, null, null, [""], e2 = function(e3) {
    return D = $ = 1, j = O(z = e3), V = 0, [];
  }(e2), 0, [0], e2));
}
function ne(e2, t2, n2, r2, o2, s2, a2, i2, c2) {
  for (var u2 = 0, l2 = 0, p2 = a2, d2 = 0, h2 = 0, f2 = 0, m2 = 1, y2 = 1, v2 = 1, g2 = 0, S2 = "", w2 = o2, N2 = s2, C2 = r2, P2 = S2; y2; )
    switch (f2 = g2, g2 = W()) {
      case 40:
        if (108 != f2 && 58 == k(P2, p2 - 1)) {
          -1 != I(P2 += _(J(g2), "&", "&\f"), "&\f", b(u2 ? i2[u2 - 1] : 0)) && (v2 = -1);
          break;
        }
      case 34:
      case 39:
      case 91:
        P2 += J(g2);
        break;
      case 9:
      case 10:
      case 13:
      case 32:
        P2 += X(f2);
        break;
      case 92:
        P2 += Z(H() - 1, 7);
        continue;
      case 47:
        switch (Y()) {
          case 42:
          case 47:
            R(oe(Q(W(), H()), t2, n2, c2), c2);
            break;
          default:
            P2 += "/";
        }
        break;
      case 123 * m2:
        i2[u2++] = O(P2) * v2;
      case 125 * m2:
      case 59:
      case 0:
        switch (g2) {
          case 0:
          case 125:
            y2 = 0;
          case 59 + l2:
            -1 == v2 && (P2 = _(P2, /\f/g, "")), h2 > 0 && O(P2) - p2 && R(h2 > 32 ? se(P2 + ";", r2, n2, p2 - 1, c2) : se(_(P2, " ", "") + ";", r2, n2, p2 - 2, c2), c2);
            break;
          case 59:
            P2 += ";";
          default:
            if (R(C2 = re(P2, t2, n2, u2, l2, o2, i2, S2, w2 = [], N2 = [], p2, s2), s2), 123 === g2)
              if (0 === l2)
                ne(P2, t2, C2, C2, w2, s2, p2, i2, N2);
              else
                switch (99 === d2 && 110 === k(P2, 3) ? 100 : d2) {
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    ne(e2, C2, C2, r2 && R(re(e2, C2, C2, 0, 0, o2, i2, S2, o2, w2 = [], p2, N2), N2), o2, N2, p2, i2, r2 ? w2 : N2);
                    break;
                  default:
                    ne(P2, C2, C2, C2, [""], N2, 0, i2, N2);
                }
        }
        u2 = l2 = h2 = 0, m2 = v2 = 1, S2 = P2 = "", p2 = a2;
        break;
      case 58:
        p2 = 1 + O(P2), h2 = f2;
      default:
        if (m2 < 1) {
          if (123 == g2)
            --m2;
          else if (125 == g2 && 0 == m2++ && 125 == L())
            continue;
        }
        switch (P2 += E(g2), g2 * m2) {
          case 38:
            v2 = l2 > 0 ? 1 : (P2 += "\f", -1);
            break;
          case 44:
            i2[u2++] = (O(P2) - 1) * v2, v2 = 1;
            break;
          case 64:
            45 === Y() && (P2 += J(W())), d2 = Y(), l2 = p2 = O(S2 = P2 += ee(H())), g2++;
            break;
          case 45:
            45 === f2 && 2 == O(P2) && (m2 = 0);
        }
    }
  return s2;
}
function re(e2, t2, n2, r2, o2, s2, a2, i2, c2, u2, l2, p2) {
  for (var d2 = o2 - 1, h2 = 0 === o2 ? s2 : [""], f2 = x(h2), m2 = 0, v2 = 0, g2 = 0; m2 < r2; ++m2)
    for (var S2 = 0, w2 = A(e2, d2 + 1, d2 = b(v2 = a2[m2])), E2 = e2; S2 < f2; ++S2)
      (E2 = C(v2 > 0 ? h2[S2] + " " + w2 : _(w2, /&\f/g, h2[S2]))) && (c2[g2++] = E2);
  return F(e2, t2, n2, 0 === o2 ? y : i2, c2, u2, l2, p2);
}
function oe(e2, t2, n2, r2) {
  return F(e2, t2, n2, m, E(M), A(e2, 2, -2), 0, r2);
}
function se(e2, t2, n2, r2, o2) {
  return F(e2, t2, n2, v, A(e2, 0, r2), A(e2, r2 + 1, -1), r2, o2);
}
function ae(e2, t2, n2) {
  switch (function(e3, t3) {
    return 45 ^ k(e3, 0) ? (((t3 << 2 ^ k(e3, 0)) << 2 ^ k(e3, 1)) << 2 ^ k(e3, 2)) << 2 ^ k(e3, 3) : 0;
  }(e2, t2)) {
    case 5103:
      return f + "print-" + e2 + e2;
    case 5737:
    case 4201:
    case 3177:
    case 3433:
    case 1641:
    case 4457:
    case 2921:
    case 5572:
    case 6356:
    case 5844:
    case 3191:
    case 6645:
    case 3005:
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
    case 4855:
    case 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
      return f + e2 + e2;
    case 4789:
      return h + e2 + e2;
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return f + e2 + h + e2 + d + e2 + e2;
    case 5936:
      switch (k(e2, t2 + 11)) {
        case 114:
          return f + e2 + d + _(e2, /[svh]\w+-[tblr]{2}/, "tb") + e2;
        case 108:
          return f + e2 + d + _(e2, /[svh]\w+-[tblr]{2}/, "tb-rl") + e2;
        case 45:
          return f + e2 + d + _(e2, /[svh]\w+-[tblr]{2}/, "lr") + e2;
      }
    case 6828:
    case 4268:
    case 2903:
      return f + e2 + d + e2 + e2;
    case 6165:
      return f + e2 + d + "flex-" + e2 + e2;
    case 5187:
      return f + e2 + _(e2, /(\w+).+(:[^]+)/, f + "box-$1$2" + d + "flex-$1$2") + e2;
    case 5443:
      return f + e2 + d + "flex-item-" + _(e2, /flex-|-self/g, "") + (P(e2, /flex-|baseline/) ? "" : d + "grid-row-" + _(e2, /flex-|-self/g, "")) + e2;
    case 4675:
      return f + e2 + d + "flex-line-pack" + _(e2, /align-content|flex-|-self/g, "") + e2;
    case 5548:
      return f + e2 + d + _(e2, "shrink", "negative") + e2;
    case 5292:
      return f + e2 + d + _(e2, "basis", "preferred-size") + e2;
    case 6060:
      return f + "box-" + _(e2, "-grow", "") + f + e2 + d + _(e2, "grow", "positive") + e2;
    case 4554:
      return f + _(e2, /([^-])(transform)/g, "$1" + f + "$2") + e2;
    case 6187:
      return _(_(_(e2, /(zoom-|grab)/, f + "$1"), /(image-set)/, f + "$1"), e2, "") + e2;
    case 5495:
    case 3959:
      return _(e2, /(image-set\([^]*)/, f + "$1$`$1");
    case 4968:
      return _(_(e2, /(.+:)(flex-)?(.*)/, f + "box-pack:$3" + d + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + f + e2 + e2;
    case 4200:
      if (!P(e2, /flex-|baseline/))
        return d + "grid-column-align" + A(e2, t2) + e2;
      break;
    case 2592:
    case 3360:
      return d + _(e2, "template-", "") + e2;
    case 4384:
    case 3616:
      return n2 && n2.some(function(e3, n3) {
        return t2 = n3, P(e3.props, /grid-\w+-end/);
      }) ? ~I(e2 + (n2 = n2[t2].value), "span", 0) ? e2 : d + _(e2, "-start", "") + e2 + d + "grid-row-span:" + (~I(n2, "span", 0) ? P(n2, /\d+/) : +P(n2, /\d+/) - +P(e2, /\d+/)) + ";" : d + _(e2, "-start", "") + e2;
    case 4896:
    case 4128:
      return n2 && n2.some(function(e3) {
        return P(e3.props, /grid-\w+-start/);
      }) ? e2 : d + _(_(e2, "-end", "-span"), "span ", "") + e2;
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return _(e2, /(.+)-inline(.+)/, f + "$1$2") + e2;
    case 8116:
    case 7059:
    case 5753:
    case 5535:
    case 5445:
    case 5701:
    case 4933:
    case 4677:
    case 5533:
    case 5789:
    case 5021:
    case 4765:
      if (O(e2) - 1 - t2 > 6)
        switch (k(e2, t2 + 1)) {
          case 109:
            if (45 !== k(e2, t2 + 4))
              break;
          case 102:
            return _(e2, /(.+:)(.+)-([^]+)/, "$1" + f + "$2-$3$1" + h + (108 == k(e2, t2 + 3) ? "$3" : "$2-$3")) + e2;
          case 115:
            return ~I(e2, "stretch", 0) ? ae(_(e2, "stretch", "fill-available"), t2, n2) + e2 : e2;
        }
      break;
    case 5152:
    case 5920:
      return _(e2, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t3, n3, r2, o2, s2, a2, i2) {
        return d + n3 + ":" + r2 + i2 + (o2 ? d + n3 + "-span:" + (s2 ? a2 : +a2 - +r2) + i2 : "") + e2;
      });
    case 4949:
      if (121 === k(e2, t2 + 6))
        return _(e2, ":", ":" + f) + e2;
      break;
    case 6444:
      switch (k(e2, 45 === k(e2, 14) ? 18 : 11)) {
        case 120:
          return _(e2, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + f + (45 === k(e2, 14) ? "inline-" : "") + "box$3$1" + f + "$2$3$1" + d + "$2box$3") + e2;
        case 100:
          return _(e2, ":", ":" + d) + e2;
      }
      break;
    case 5719:
    case 2647:
    case 2135:
    case 3927:
    case 2391:
      return _(e2, "scroll-", "scroll-snap-") + e2;
  }
  return e2;
}
function ie(e2, t2) {
  for (var n2 = "", r2 = 0; r2 < e2.length; r2++)
    n2 += t2(e2[r2], r2, e2, t2) || "";
  return n2;
}
function ce(e2, t2, n2, r2) {
  switch (e2.type) {
    case w:
      if (e2.children.length)
        break;
    case g:
    case v:
      return e2.return = e2.return || e2.value;
    case m:
      return "";
    case S:
      return e2.return = e2.value + "{" + ie(e2.children, r2) + "}";
    case y:
      if (!O(e2.value = e2.props.join(",")))
        return "";
  }
  return O(n2 = ie(e2.children, r2)) ? e2.return = e2.value + "{" + n2 + "}" : "";
}
function ue(e2, t2, n2, r2) {
  if (e2.length > -1 && !e2.return)
    switch (e2.type) {
      case v:
        return void (e2.return = ae(e2.value, e2.length, n2));
      case S:
        return ie([G(e2, { value: _(e2.value, "@", "@" + f) })], r2);
      case y:
        if (e2.length)
          return function(e3, t3) {
            return e3.map(t3).join("");
          }(n2 = e2.props, function(t3) {
            switch (P(t3, r2 = /(::plac\w+|:read-\w+)/)) {
              case ":read-only":
              case ":read-write":
                B(G(e2, { props: [_(t3, /:(read-\w+)/, ":" + h + "$1")] })), B(G(e2, { props: [t3] })), N(e2, { props: T(n2, r2) });
                break;
              case "::placeholder":
                B(G(e2, { props: [_(t3, /:(plac\w+)/, ":" + f + "input-$1")] })), B(G(e2, { props: [_(t3, /:(plac\w+)/, ":" + h + "$1")] })), B(G(e2, { props: [_(t3, /:(plac\w+)/, d + "input-$1")] })), B(G(e2, { props: [t3] })), N(e2, { props: T(n2, r2) });
            }
            return "";
          });
    }
}
var le = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, pe = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", de = "active", he = "data-styled-version", fe = "6.1.8", me = "/*!sc*/\n", ye = "undefined" != typeof window && "HTMLElement" in window, ve = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), ge = {}, Se = /invalid hook call/i, we = /* @__PURE__ */ new Set(), be = function(e2, t2) {
  if ("production" !== process.env.NODE_ENV) {
    var n2 = t2 ? ' with the id of "'.concat(t2, '"') : "", r2 = "The component ".concat(e2).concat(n2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", o2 = console.error;
    try {
      var s2 = true;
      console.error = function(e3) {
        for (var t3 = [], n3 = 1; n3 < arguments.length; n3++)
          t3[n3 - 1] = arguments[n3];
        Se.test(e3) ? (s2 = false, we.delete(r2)) : o2.apply(void 0, p([e3], t3, false));
      }, i(), s2 && !we.has(r2) && (console.warn(r2), we.add(r2));
    } catch (e3) {
      Se.test(e3.message) && we.delete(r2);
    } finally {
      console.error = o2;
    }
  }
}, Ee = Object.freeze([]), Ne = Object.freeze({});
function Ce(e2, t2, n2) {
  return void 0 === n2 && (n2 = Ne), e2.theme !== n2.theme && e2.theme || t2 || n2.theme;
}
var Pe = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), _e = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ie = /(^-|-$)/g;
function ke(e2) {
  return e2.replace(_e, "-").replace(Ie, "");
}
var Ae = /(a)(d)/gi, Oe = 52, xe = function(e2) {
  return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
};
function Re(e2) {
  var t2, n2 = "";
  for (t2 = Math.abs(e2); t2 > Oe; t2 = t2 / Oe | 0)
    n2 = xe(t2 % Oe) + n2;
  return (xe(t2 % Oe) + n2).replace(Ae, "$1-$2");
}
var Te, De = 5381, $e = function(e2, t2) {
  for (var n2 = t2.length; n2; )
    e2 = 33 * e2 ^ t2.charCodeAt(--n2);
  return e2;
}, je = function(e2) {
  return $e(De, e2);
};
function Ve(e2) {
  return Re(je(e2) >>> 0);
}
function Me(e2) {
  return "production" !== process.env.NODE_ENV && "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
}
function ze(e2) {
  return "string" == typeof e2 && ("production" === process.env.NODE_ENV || e2.charAt(0) === e2.charAt(0).toLowerCase());
}
var Fe = "function" == typeof Symbol && Symbol.for, Ge = Fe ? Symbol.for("react.memo") : 60115, Be = Fe ? Symbol.for("react.forward_ref") : 60112, Le = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, We = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, Ye = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, He = ((Te = {})[Be] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, Te[Ge] = Ye, Te);
function qe(e2) {
  return ("type" in (t2 = e2) && t2.type.$$typeof) === Ge ? Ye : "$$typeof" in e2 ? He[e2.$$typeof] : Le;
  var t2;
}
var Ue = Object.defineProperty, Je = Object.getOwnPropertyNames, Xe = Object.getOwnPropertySymbols, Ze = Object.getOwnPropertyDescriptor, Ke = Object.getPrototypeOf, Qe = Object.prototype;
function et(e2, t2, n2) {
  if ("string" != typeof t2) {
    if (Qe) {
      var r2 = Ke(t2);
      r2 && r2 !== Qe && et(e2, r2, n2);
    }
    var o2 = Je(t2);
    Xe && (o2 = o2.concat(Xe(t2)));
    for (var s2 = qe(e2), a2 = qe(t2), i2 = 0; i2 < o2.length; ++i2) {
      var c2 = o2[i2];
      if (!(c2 in We || n2 && n2[c2] || a2 && c2 in a2 || s2 && c2 in s2)) {
        var u2 = Ze(t2, c2);
        try {
          Ue(e2, c2, u2);
        } catch (e3) {
        }
      }
    }
  }
  return e2;
}
function tt(e2) {
  return "function" == typeof e2;
}
function nt(e2) {
  return "object" == typeof e2 && "styledComponentId" in e2;
}
function rt(e2, t2) {
  return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
}
function ot(e2, t2) {
  if (0 === e2.length)
    return "";
  for (var n2 = e2[0], r2 = 1; r2 < e2.length; r2++)
    n2 += t2 ? t2 + e2[r2] : e2[r2];
  return n2;
}
function st(e2) {
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
}
function at(e2, t2, n2) {
  if (void 0 === n2 && (n2 = false), !n2 && !st(e2) && !Array.isArray(e2))
    return t2;
  if (Array.isArray(t2))
    for (var r2 = 0; r2 < t2.length; r2++)
      e2[r2] = at(e2[r2], t2[r2]);
  else if (st(t2))
    for (var r2 in t2)
      e2[r2] = at(e2[r2], t2[r2]);
  return e2;
}
function it(e2, t2) {
  Object.defineProperty(e2, "toString", { value: t2 });
}
var ct = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
function ut() {
  for (var e2 = [], t2 = 0; t2 < arguments.length; t2++)
    e2[t2] = arguments[t2];
  for (var n2 = e2[0], r2 = [], o2 = 1, s2 = e2.length; o2 < s2; o2 += 1)
    r2.push(e2[o2]);
  return r2.forEach(function(e3) {
    n2 = n2.replace(/%[a-z]/, e3);
  }), n2;
}
function lt(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e2, " for more information.").concat(t2.length > 0 ? " Args: ".concat(t2.join(", ")) : "")) : new Error(ut.apply(void 0, p([ct[e2]], t2, false)).trim());
}
var pt = function() {
  function e2(e3) {
    this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3;
  }
  return e2.prototype.indexOfGroup = function(e3) {
    for (var t2 = 0, n2 = 0; n2 < e3; n2++)
      t2 += this.groupSizes[n2];
    return t2;
  }, e2.prototype.insertRules = function(e3, t2) {
    if (e3 >= this.groupSizes.length) {
      for (var n2 = this.groupSizes, r2 = n2.length, o2 = r2; e3 >= o2; )
        if ((o2 <<= 1) < 0)
          throw lt(16, "".concat(e3));
      this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n2), this.length = o2;
      for (var s2 = r2; s2 < o2; s2++)
        this.groupSizes[s2] = 0;
    }
    for (var a2 = this.indexOfGroup(e3 + 1), i2 = (s2 = 0, t2.length); s2 < i2; s2++)
      this.tag.insertRule(a2, t2[s2]) && (this.groupSizes[e3]++, a2++);
  }, e2.prototype.clearGroup = function(e3) {
    if (e3 < this.length) {
      var t2 = this.groupSizes[e3], n2 = this.indexOfGroup(e3), r2 = n2 + t2;
      this.groupSizes[e3] = 0;
      for (var o2 = n2; o2 < r2; o2++)
        this.tag.deleteRule(n2);
    }
  }, e2.prototype.getGroup = function(e3) {
    var t2 = "";
    if (e3 >= this.length || 0 === this.groupSizes[e3])
      return t2;
    for (var n2 = this.groupSizes[e3], r2 = this.indexOfGroup(e3), o2 = r2 + n2, s2 = r2; s2 < o2; s2++)
      t2 += "".concat(this.tag.getRule(s2)).concat(me);
    return t2;
  }, e2;
}(), dt = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), ft = 1, mt = function(e2) {
  if (dt.has(e2))
    return dt.get(e2);
  for (; ht.has(ft); )
    ft++;
  var t2 = ft++;
  if ("production" !== process.env.NODE_ENV && ((0 | t2) < 0 || t2 > 1073741824))
    throw lt(16, "".concat(t2));
  return dt.set(e2, t2), ht.set(t2, e2), t2;
}, yt = function(e2, t2) {
  ft = t2 + 1, dt.set(e2, t2), ht.set(t2, e2);
}, vt = "style[".concat(pe, "][").concat(he, '="').concat(fe, '"]'), gt = new RegExp("^".concat(pe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), St = function(e2, t2, n2) {
  for (var r2, o2 = n2.split(","), s2 = 0, a2 = o2.length; s2 < a2; s2++)
    (r2 = o2[s2]) && e2.registerName(t2, r2);
}, wt = function(e2, t2) {
  for (var n2, r2 = (null !== (n2 = t2.textContent) && void 0 !== n2 ? n2 : "").split(me), o2 = [], s2 = 0, a2 = r2.length; s2 < a2; s2++) {
    var i2 = r2[s2].trim();
    if (i2) {
      var c2 = i2.match(gt);
      if (c2) {
        var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2];
        0 !== u2 && (yt(l2, u2), St(e2, l2, c2[3]), e2.getTag().insertRules(u2, o2)), o2.length = 0;
      } else
        o2.push(i2);
    }
  }
};
function bt() {
  return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
}
var Et = function(e2) {
  var t2 = document.head, n2 = e2 || t2, r2 = document.createElement("style"), o2 = function(e3) {
    var t3 = Array.from(e3.querySelectorAll("style[".concat(pe, "]")));
    return t3[t3.length - 1];
  }(n2), s2 = void 0 !== o2 ? o2.nextSibling : null;
  r2.setAttribute(pe, de), r2.setAttribute(he, fe);
  var a2 = bt();
  return a2 && r2.setAttribute("nonce", a2), n2.insertBefore(r2, s2), r2;
}, Nt = function() {
  function e2(e3) {
    this.element = Et(e3), this.element.appendChild(document.createTextNode("")), this.sheet = function(e4) {
      if (e4.sheet)
        return e4.sheet;
      for (var t2 = document.styleSheets, n2 = 0, r2 = t2.length; n2 < r2; n2++) {
        var o2 = t2[n2];
        if (o2.ownerNode === e4)
          return o2;
      }
      throw lt(17);
    }(this.element), this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    try {
      return this.sheet.insertRule(t2, e3), this.length++, true;
    } catch (e4) {
      return false;
    }
  }, e2.prototype.deleteRule = function(e3) {
    this.sheet.deleteRule(e3), this.length--;
  }, e2.prototype.getRule = function(e3) {
    var t2 = this.sheet.cssRules[e3];
    return t2 && t2.cssText ? t2.cssText : "";
  }, e2;
}(), Ct = function() {
  function e2(e3) {
    this.element = Et(e3), this.nodes = this.element.childNodes, this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    if (e3 <= this.length && e3 >= 0) {
      var n2 = document.createTextNode(t2);
      return this.element.insertBefore(n2, this.nodes[e3] || null), this.length++, true;
    }
    return false;
  }, e2.prototype.deleteRule = function(e3) {
    this.element.removeChild(this.nodes[e3]), this.length--;
  }, e2.prototype.getRule = function(e3) {
    return e3 < this.length ? this.nodes[e3].textContent : "";
  }, e2;
}(), Pt = function() {
  function e2(e3) {
    this.rules = [], this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    return e3 <= this.length && (this.rules.splice(e3, 0, t2), this.length++, true);
  }, e2.prototype.deleteRule = function(e3) {
    this.rules.splice(e3, 1), this.length--;
  }, e2.prototype.getRule = function(e3) {
    return e3 < this.length ? this.rules[e3] : "";
  }, e2;
}(), _t = ye, It = { isServer: !ye, useCSSOMInjection: !ve }, kt = function() {
  function e2(e3, t2, n2) {
    void 0 === e3 && (e3 = Ne), void 0 === t2 && (t2 = {});
    var r2 = this;
    this.options = l(l({}, It), e3), this.gs = t2, this.names = new Map(n2), this.server = !!e3.isServer, !this.server && ye && _t && (_t = false, function(e4) {
      for (var t3 = document.querySelectorAll(vt), n3 = 0, r3 = t3.length; n3 < r3; n3++) {
        var o2 = t3[n3];
        o2 && o2.getAttribute(pe) !== de && (wt(e4, o2), o2.parentNode && o2.parentNode.removeChild(o2));
      }
    }(this)), it(this, function() {
      return function(e4) {
        for (var t3 = e4.getTag(), n3 = t3.length, r3 = "", o2 = function(n4) {
          var o3 = function(e5) {
            return ht.get(e5);
          }(n4);
          if (void 0 === o3)
            return "continue";
          var s3 = e4.names.get(o3), a2 = t3.getGroup(n4);
          if (void 0 === s3 || 0 === a2.length)
            return "continue";
          var i2 = "".concat(pe, ".g").concat(n4, '[id="').concat(o3, '"]'), c2 = "";
          void 0 !== s3 && s3.forEach(function(e5) {
            e5.length > 0 && (c2 += "".concat(e5, ","));
          }), r3 += "".concat(a2).concat(i2, '{content:"').concat(c2, '"}').concat(me);
        }, s2 = 0; s2 < n3; s2++)
          o2(s2);
        return r3;
      }(r2);
    });
  }
  return e2.registerId = function(e3) {
    return mt(e3);
  }, e2.prototype.reconstructWithOptions = function(t2, n2) {
    return void 0 === n2 && (n2 = true), new e2(l(l({}, this.options), t2), this.gs, n2 && this.names || void 0);
  }, e2.prototype.allocateGSInstance = function(e3) {
    return this.gs[e3] = (this.gs[e3] || 0) + 1;
  }, e2.prototype.getTag = function() {
    return this.tag || (this.tag = (e3 = function(e4) {
      var t2 = e4.useCSSOMInjection, n2 = e4.target;
      return e4.isServer ? new Pt(n2) : t2 ? new Nt(n2) : new Ct(n2);
    }(this.options), new pt(e3)));
    var e3;
  }, e2.prototype.hasNameForId = function(e3, t2) {
    return this.names.has(e3) && this.names.get(e3).has(t2);
  }, e2.prototype.registerName = function(e3, t2) {
    if (mt(e3), this.names.has(e3))
      this.names.get(e3).add(t2);
    else {
      var n2 = /* @__PURE__ */ new Set();
      n2.add(t2), this.names.set(e3, n2);
    }
  }, e2.prototype.insertRules = function(e3, t2, n2) {
    this.registerName(e3, t2), this.getTag().insertRules(mt(e3), n2);
  }, e2.prototype.clearNames = function(e3) {
    this.names.has(e3) && this.names.get(e3).clear();
  }, e2.prototype.clearRules = function(e3) {
    this.getTag().clearGroup(mt(e3)), this.clearNames(e3);
  }, e2.prototype.clearTag = function() {
    this.tag = void 0;
  }, e2;
}(), At = /&/g, Ot = /^\s*\/\/.*$/gm;
function xt(e2, t2) {
  return e2.map(function(e3) {
    return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
      return "".concat(t2, " ").concat(e4);
    })), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = xt(e3.children, t2)), e3;
  });
}
function Rt(e2) {
  var t2, n2, r2, o2 = void 0 === e2 ? Ne : e2, s2 = o2.options, a2 = void 0 === s2 ? Ne : s2, i2 = o2.plugins, c2 = void 0 === i2 ? Ee : i2, u2 = function(e3, r3, o3) {
    return o3.startsWith(n2) && o3.endsWith(n2) && o3.replaceAll(n2, "").length > 0 ? ".".concat(t2) : e3;
  }, l2 = c2.slice();
  l2.push(function(e3) {
    e3.type === y && e3.value.includes("&") && (e3.props[0] = e3.props[0].replace(At, n2).replace(r2, u2));
  }), a2.prefix && l2.push(ue), l2.push(ce);
  var p2 = function(e3, o3, s3, i3) {
    void 0 === o3 && (o3 = ""), void 0 === s3 && (s3 = ""), void 0 === i3 && (i3 = "&"), t2 = i3, n2 = o3, r2 = new RegExp("\\".concat(n2, "\\b"), "g");
    var c3 = e3.replace(Ot, ""), u3 = te(s3 || o3 ? "".concat(s3, " ").concat(o3, " { ").concat(c3, " }") : c3);
    a2.namespace && (u3 = xt(u3, a2.namespace));
    var p3, d2 = [];
    return ie(u3, function(e4) {
      var t3 = x(e4);
      return function(n3, r3, o4, s4) {
        for (var a3 = "", i4 = 0; i4 < t3; i4++)
          a3 += e4[i4](n3, r3, o4, s4) || "";
        return a3;
      };
    }(l2.concat((p3 = function(e4) {
      return d2.push(e4);
    }, function(e4) {
      e4.root || (e4 = e4.return) && p3(e4);
    })))), d2;
  };
  return p2.hash = c2.length ? c2.reduce(function(e3, t3) {
    return t3.name || lt(15), $e(e3, t3.name);
  }, De).toString() : "", p2;
}
var Tt = new kt(), Dt = Rt(), $t = n.createContext({ shouldForwardProp: void 0, styleSheet: Tt, stylis: Dt }), jt = $t.Consumer, Vt = n.createContext(void 0);
function Mt() {
  return a($t);
}
function zt(t2) {
  var a2 = r(t2.stylisPlugins), i2 = a2[0], c2 = a2[1], u2 = Mt().styleSheet, l2 = o(function() {
    var e2 = u2;
    return t2.sheet ? e2 = t2.sheet : t2.target && (e2 = e2.reconstructWithOptions({ target: t2.target }, false)), t2.disableCSSOMInjection && (e2 = e2.reconstructWithOptions({ useCSSOMInjection: false })), e2;
  }, [t2.disableCSSOMInjection, t2.sheet, t2.target, u2]), p2 = o(function() {
    return Rt({ options: { namespace: t2.namespace, prefix: t2.enableVendorPrefixes }, plugins: i2 });
  }, [t2.enableVendorPrefixes, t2.namespace, i2]);
  s(function() {
    e(i2, t2.stylisPlugins) || c2(t2.stylisPlugins);
  }, [t2.stylisPlugins]);
  var d2 = o(function() {
    return { shouldForwardProp: t2.shouldForwardProp, styleSheet: l2, stylis: p2 };
  }, [t2.shouldForwardProp, l2, p2]);
  return n.createElement($t.Provider, { value: d2 }, n.createElement(Vt.Provider, { value: p2 }, t2.children));
}
var Ft = function() {
  function e2(e3, t2) {
    var n2 = this;
    this.inject = function(e4, t3) {
      void 0 === t3 && (t3 = Dt);
      var r2 = n2.name + t3.hash;
      e4.hasNameForId(n2.id, r2) || e4.insertRules(n2.id, r2, t3(n2.rules, r2, "@keyframes"));
    }, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, it(this, function() {
      throw lt(12, String(n2.name));
    });
  }
  return e2.prototype.getName = function(e3) {
    return void 0 === e3 && (e3 = Dt), this.name + e3.hash;
  }, e2;
}(), Gt = function(e2) {
  return e2 >= "A" && e2 <= "Z";
};
function Bt(e2) {
  for (var t2 = "", n2 = 0; n2 < e2.length; n2++) {
    var r2 = e2[n2];
    if (1 === n2 && "-" === r2 && "-" === e2[0])
      return e2;
    Gt(r2) ? t2 += "-" + r2.toLowerCase() : t2 += r2;
  }
  return t2.startsWith("ms-") ? "-" + t2 : t2;
}
var Lt = function(e2) {
  return null == e2 || false === e2 || "" === e2;
}, Wt = function(e2) {
  var t2, n2, r2 = [];
  for (var o2 in e2) {
    var s2 = e2[o2];
    e2.hasOwnProperty(o2) && !Lt(s2) && (Array.isArray(s2) && s2.isCss || tt(s2) ? r2.push("".concat(Bt(o2), ":"), s2, ";") : st(s2) ? r2.push.apply(r2, p(p(["".concat(o2, " {")], Wt(s2), false), ["}"], false)) : r2.push("".concat(Bt(o2), ": ").concat((t2 = o2, null == (n2 = s2) || "boolean" == typeof n2 || "" === n2 ? "" : "number" != typeof n2 || 0 === n2 || t2 in le || t2.startsWith("--") ? String(n2).trim() : "".concat(n2, "px")), ";")));
  }
  return r2;
};
function Yt(e2, t2, n2, r2) {
  if (Lt(e2))
    return [];
  if (nt(e2))
    return [".".concat(e2.styledComponentId)];
  if (tt(e2)) {
    if (!tt(s2 = e2) || s2.prototype && s2.prototype.isReactComponent || !t2)
      return [e2];
    var o2 = e2(t2);
    return "production" === process.env.NODE_ENV || "object" != typeof o2 || Array.isArray(o2) || o2 instanceof Ft || st(o2) || null === o2 || console.error("".concat(Me(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Yt(o2, t2, n2, r2);
  }
  var s2;
  return e2 instanceof Ft ? n2 ? (e2.inject(n2, r2), [e2.getName(r2)]) : [e2] : st(e2) ? Wt(e2) : Array.isArray(e2) ? Array.prototype.concat.apply(Ee, e2.map(function(e3) {
    return Yt(e3, t2, n2, r2);
  })) : [e2.toString()];
}
function Ht(e2) {
  for (var t2 = 0; t2 < e2.length; t2 += 1) {
    var n2 = e2[t2];
    if (tt(n2) && !nt(n2))
      return false;
  }
  return true;
}
var qt = je(fe), Ut = function() {
  function e2(e3, t2, n2) {
    this.rules = e3, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n2 || n2.isStatic) && Ht(e3), this.componentId = t2, this.baseHash = $e(qt, t2), this.baseStyle = n2, kt.registerId(t2);
  }
  return e2.prototype.generateAndInjectStyles = function(e3, t2, n2) {
    var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n2) : "";
    if (this.isStatic && !n2.hash)
      if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId))
        r2 = rt(r2, this.staticRulesId);
      else {
        var o2 = ot(Yt(this.rules, e3, t2, n2)), s2 = Re($e(this.baseHash, o2) >>> 0);
        if (!t2.hasNameForId(this.componentId, s2)) {
          var a2 = n2(o2, ".".concat(s2), void 0, this.componentId);
          t2.insertRules(this.componentId, s2, a2);
        }
        r2 = rt(r2, s2), this.staticRulesId = s2;
      }
    else {
      for (var i2 = $e(this.baseHash, n2.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) {
        var l2 = this.rules[u2];
        if ("string" == typeof l2)
          c2 += l2, "production" !== process.env.NODE_ENV && (i2 = $e(i2, l2));
        else if (l2) {
          var p2 = ot(Yt(l2, e3, t2, n2));
          i2 = $e(i2, p2 + u2), c2 += p2;
        }
      }
      if (c2) {
        var d2 = Re(i2 >>> 0);
        t2.hasNameForId(this.componentId, d2) || t2.insertRules(this.componentId, d2, n2(c2, ".".concat(d2), void 0, this.componentId)), r2 = rt(r2, d2);
      }
    }
    return r2;
  }, e2;
}(), Jt = n.createContext(void 0), Xt = Jt.Consumer;
var Zt = {}, Kt = /* @__PURE__ */ new Set();
function Qt(e2, r2, o2) {
  var s2 = nt(e2), a2 = e2, i2 = !ze(e2), p2 = r2.attrs, d2 = void 0 === p2 ? Ee : p2, h2 = r2.componentId, f2 = void 0 === h2 ? function(e3, t2) {
    var n2 = "string" != typeof e3 ? "sc" : ke(e3);
    Zt[n2] = (Zt[n2] || 0) + 1;
    var r3 = "".concat(n2, "-").concat(Ve(fe + n2 + Zt[n2]));
    return t2 ? "".concat(t2, "-").concat(r3) : r3;
  }(r2.displayName, r2.parentComponentId) : h2, m2 = r2.displayName, y2 = void 0 === m2 ? function(e3) {
    return ze(e3) ? "styled.".concat(e3) : "Styled(".concat(Me(e3), ")");
  }(e2) : m2, v2 = r2.displayName && r2.componentId ? "".concat(ke(r2.displayName), "-").concat(r2.componentId) : r2.componentId || f2, g2 = s2 && a2.attrs ? a2.attrs.concat(d2).filter(Boolean) : d2, S2 = r2.shouldForwardProp;
  if (s2 && a2.shouldForwardProp) {
    var w2 = a2.shouldForwardProp;
    if (r2.shouldForwardProp) {
      var b2 = r2.shouldForwardProp;
      S2 = function(e3, t2) {
        return w2(e3, t2) && b2(e3, t2);
      };
    } else
      S2 = w2;
  }
  var E2 = new Ut(o2, v2, s2 ? a2.componentStyle : void 0);
  function N2(e3, r3) {
    return function(e4, r4, o3) {
      var s3 = e4.attrs, a3 = e4.componentStyle, i3 = e4.defaultProps, p3 = e4.foldedComponentIds, d3 = e4.styledComponentId, h3 = e4.target, f3 = n.useContext(Jt), m3 = Mt(), y3 = e4.shouldForwardProp || m3.shouldForwardProp;
      "production" !== process.env.NODE_ENV && c(d3);
      var v3 = Ce(r4, f3, i3) || Ne, g3 = function(e5, t2, n2) {
        for (var r5, o4 = l(l({}, t2), { className: void 0, theme: n2 }), s4 = 0; s4 < e5.length; s4 += 1) {
          var a4 = tt(r5 = e5[s4]) ? r5(o4) : r5;
          for (var i4 in a4)
            o4[i4] = "className" === i4 ? rt(o4[i4], a4[i4]) : "style" === i4 ? l(l({}, o4[i4]), a4[i4]) : a4[i4];
        }
        return t2.className && (o4.className = rt(o4.className, t2.className)), o4;
      }(s3, r4, v3), S3 = g3.as || h3, w3 = {};
      for (var b3 in g3)
        void 0 === g3[b3] || "$" === b3[0] || "as" === b3 || "theme" === b3 && g3.theme === v3 || ("forwardedAs" === b3 ? w3.as = g3.forwardedAs : y3 && !y3(b3, S3) || (w3[b3] = g3[b3], y3 || "development" !== process.env.NODE_ENV || t(b3) || Kt.has(b3) || !Pe.has(S3) || (Kt.add(b3), console.warn('styled-components: it looks like an unknown prop "'.concat(b3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
      var E3 = function(e5, t2) {
        var n2 = Mt(), r5 = e5.generateAndInjectStyles(t2, n2.styleSheet, n2.stylis);
        return "production" !== process.env.NODE_ENV && c(r5), r5;
      }(a3, g3);
      "production" !== process.env.NODE_ENV && e4.warnTooManyClasses && e4.warnTooManyClasses(E3);
      var N3 = rt(p3, d3);
      return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[ze(S3) && !Pe.has(S3) ? "class" : "className"] = N3, w3.ref = o3, u(S3, w3);
    }(C2, e3, r3);
  }
  N2.displayName = y2;
  var C2 = n.forwardRef(N2);
  return C2.attrs = g2, C2.componentStyle = E2, C2.displayName = y2, C2.shouldForwardProp = S2, C2.foldedComponentIds = s2 ? rt(a2.foldedComponentIds, a2.styledComponentId) : "", C2.styledComponentId = v2, C2.target = s2 ? a2.target : e2, Object.defineProperty(C2, "defaultProps", { get: function() {
    return this._foldedDefaultProps;
  }, set: function(e3) {
    this._foldedDefaultProps = s2 ? function(e4) {
      for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
        t2[n2 - 1] = arguments[n2];
      for (var r3 = 0, o3 = t2; r3 < o3.length; r3++)
        at(e4, o3[r3], true);
      return e4;
    }({}, a2.defaultProps, e3) : e3;
  } }), "production" !== process.env.NODE_ENV && (be(y2, v2), C2.warnTooManyClasses = function(e3, t2) {
    var n2 = {}, r3 = false;
    return function(o3) {
      if (!r3 && (n2[o3] = true, Object.keys(n2).length >= 200)) {
        var s3 = t2 ? ' with the id of "'.concat(t2, '"') : "";
        console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s3, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n  const Component = styled.div.attrs(props => ({\n    style: {\n      background: props.background,\n    },\n  }))`width: 100%;`\n\n  <Component />"), r3 = true, n2 = {};
      }
    };
  }(y2, v2)), it(C2, function() {
    return ".".concat(C2.styledComponentId);
  }), i2 && et(C2, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), C2;
}
function en(e2, t2) {
  for (var n2 = [e2[0]], r2 = 0, o2 = t2.length; r2 < o2; r2 += 1)
    n2.push(t2[r2], e2[r2 + 1]);
  return n2;
}
var tn = function(e2) {
  return Object.assign(e2, { isCss: true });
};
function nn(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  if (tt(e2) || st(e2))
    return tn(Yt(en(Ee, p([e2], t2, true))));
  var r2 = e2;
  return 0 === t2.length && 1 === r2.length && "string" == typeof r2[0] ? Yt(r2) : tn(Yt(en(r2, t2)));
}
function rn(e2, t2, n2) {
  if (void 0 === n2 && (n2 = Ne), !t2)
    throw lt(1, t2);
  var r2 = function(r3) {
    for (var o2 = [], s2 = 1; s2 < arguments.length; s2++)
      o2[s2 - 1] = arguments[s2];
    return e2(t2, n2, nn.apply(void 0, p([r3], o2, false)));
  };
  return r2.attrs = function(r3) {
    return rn(e2, t2, l(l({}, n2), { attrs: Array.prototype.concat(n2.attrs, r3).filter(Boolean) }));
  }, r2.withConfig = function(r3) {
    return rn(e2, t2, l(l({}, n2), r3));
  }, r2;
}
var on = function(e2) {
  return rn(Qt, e2);
}, sn = on;
Pe.forEach(function(e2) {
  sn[e2] = on(e2);
});
var an = function() {
  function e2(e3, t2) {
    this.rules = e3, this.componentId = t2, this.isStatic = Ht(e3), kt.registerId(this.componentId + 1);
  }
  return e2.prototype.createStyles = function(e3, t2, n2, r2) {
    var o2 = r2(ot(Yt(this.rules, t2, n2, r2)), ""), s2 = this.componentId + e3;
    n2.insertRules(s2, s2, o2);
  }, e2.prototype.removeStyles = function(e3, t2) {
    t2.clearRules(this.componentId + e3);
  }, e2.prototype.renderStyles = function(e3, t2, n2, r2) {
    e3 > 2 && kt.registerId(this.componentId + e3), this.removeStyles(e3, n2), this.createStyles(e3, t2, n2, r2);
  }, e2;
}();
var cn = function() {
  function e2() {
    var e3 = this;
    this._emitSheetCSS = function() {
      var t2 = e3.instance.toString(), n2 = bt(), r2 = ot([n2 && 'nonce="'.concat(n2, '"'), "".concat(pe, '="true"'), "".concat(he, '="').concat(fe, '"')].filter(Boolean), " ");
      return "<style ".concat(r2, ">").concat(t2, "</style>");
    }, this.getStyleTags = function() {
      if (e3.sealed)
        throw lt(2);
      return e3._emitSheetCSS();
    }, this.getStyleElement = function() {
      var t2;
      if (e3.sealed)
        throw lt(2);
      var r2 = ((t2 = {})[pe] = "", t2[he] = fe, t2.dangerouslySetInnerHTML = { __html: e3.instance.toString() }, t2), o2 = bt();
      return o2 && (r2.nonce = o2), [n.createElement("style", l({}, r2, { key: "sc-0-0" }))];
    }, this.seal = function() {
      e3.sealed = true;
    }, this.instance = new kt({ isServer: true }), this.sealed = false;
  }
  return e2.prototype.collectStyles = function(e3) {
    if (this.sealed)
      throw lt(2);
    return n.createElement(zt, { sheet: this.instance }, e3);
  }, e2.prototype.interleaveWithNodeStream = function(e3) {
    throw lt(3);
  }, e2;
}(), un = { StyleSheet: kt, mainSheet: Tt };
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
var ln = "__sc-".concat(pe, "__");
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[ln] || (window[ln] = 0), 1 === window[ln] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[ln] += 1);
const pn = Object.freeze(Object.defineProperty({ __proto__: null, ServerStyleSheet: cn, StyleSheetConsumer: jt, StyleSheetContext: $t, StyleSheetManager: zt, ThemeConsumer: Xt, ThemeContext: Jt, ThemeProvider: function(e2) {
  var t2 = n.useContext(Jt), r2 = o(function() {
    return function(e3, t3) {
      if (!e3)
        throw lt(14);
      if (tt(e3)) {
        var n2 = e3(t3);
        if ("production" !== process.env.NODE_ENV && (null === n2 || Array.isArray(n2) || "object" != typeof n2))
          throw lt(7);
        return n2;
      }
      if (Array.isArray(e3) || "object" != typeof e3)
        throw lt(8);
      return t3 ? l(l({}, t3), e3) : e3;
    }(e2.theme, t2);
  }, [e2.theme, t2]);
  return e2.children ? n.createElement(Jt.Provider, { value: r2 }, e2.children) : null;
}, __PRIVATE__: un, createGlobalStyle: function(e2) {
  for (var t2 = [], r2 = 1; r2 < arguments.length; r2++)
    t2[r2 - 1] = arguments[r2];
  var o2 = nn.apply(void 0, p([e2], t2, false)), s2 = "sc-global-".concat(Ve(JSON.stringify(o2))), a2 = new an(o2, s2);
  "production" !== process.env.NODE_ENV && be(s2);
  var i2 = function(e3) {
    var t3 = Mt(), r3 = n.useContext(Jt), i3 = n.useRef(t3.styleSheet.allocateGSInstance(s2)).current;
    return "production" !== process.env.NODE_ENV && n.Children.count(e3.children) && console.warn("The global style component ".concat(s2, " was given child JSX. createGlobalStyle does not render children.")), "production" !== process.env.NODE_ENV && o2.some(function(e4) {
      return "string" == typeof e4 && -1 !== e4.indexOf("@import");
    }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t3.styleSheet.server && c2(i3, e3, t3.styleSheet, r3, t3.stylis), n.useLayoutEffect(function() {
      if (!t3.styleSheet.server)
        return c2(i3, e3, t3.styleSheet, r3, t3.stylis), function() {
          return a2.removeStyles(i3, t3.styleSheet);
        };
    }, [i3, e3, t3.styleSheet, r3, t3.stylis]), null;
  };
  function c2(e3, t3, n2, r3, o3) {
    if (a2.isStatic)
      a2.renderStyles(e3, ge, n2, o3);
    else {
      var s3 = l(l({}, t3), { theme: Ce(t3, r3, i2.defaultProps) });
      a2.renderStyles(e3, s3, n2, o3);
    }
  }
  return n.memo(i2);
}, css: nn, default: sn, isStyledComponent: nt, keyframes: function(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
  var r2 = ot(nn.apply(void 0, p([e2], t2, false))), o2 = Ve(r2);
  return new Ft(o2, r2);
}, styled: sn, useTheme: function() {
  var e2 = a(Jt);
  if (!e2)
    throw lt(18);
  return e2;
}, version: fe, withTheme: function(e2) {
  var t2 = n.forwardRef(function(t3, r2) {
    var o2 = Ce(t3, n.useContext(Jt), e2.defaultProps);
    return "production" !== process.env.NODE_ENV && void 0 === o2 && console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(Me(e2), '"')), n.createElement(e2, l({}, t3, { theme: o2, ref: r2 }));
  });
  return t2.displayName = "WithTheme(".concat(Me(e2), ")"), et(t2, e2);
} }, Symbol.toStringTag, { value: "Module" }));
export {
  zt as L,
  nn as a,
  pn as s,
  sn as u
};
