@lanaco/lnc-react-ui
Version:
React component library
1,174 lines (1,157 loc) • 54.4 kB
JavaScript
import { jsx as Ue, jsxs as St } from "react/jsx-runtime";
import le, { useRef as ot, useContext as we, useLayoutEffect as wt, createElement as Et, createContext as bt, useState as Ct, useEffect as _t } from "react";
import { v as At, d as xe, b as oe, w as Ie } from "./utils-DtRLzzTZ.js";
import { P as Oe } from "./index-S5Cd7WrG.js";
import { i as We } from "./emotion-is-prop-valid.esm-CbWxtx4i.js";
import { m as Tt } from "./hoist-non-react-statics.cjs-CAHiRNzQ.js";
import { b as Rt } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
const kt = (e) => {
const n = e.palette.disabled.color, t = e.palette[n][e.palette.disabled.background], r = e.palette.opacity[e.palette.disabled.opacity];
return At(t, r ?? "100%");
}, Pt = (e) => {
const n = e.palette.disabled.color;
return e.palette[n][e.palette.disabled.text];
};
var ze = { exports: {} }, I = {};
/**
* @license React
* react-is.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 Xe;
function Nt() {
if (Xe) return I;
Xe = 1;
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), _ = Symbol.for("react.view_transition"), N = Symbol.for("react.client.reference");
function m(o) {
if (typeof o == "object" && o !== null) {
var S = o.$$typeof;
switch (S) {
case e:
switch (o = o.type, o) {
case t:
case s:
case r:
case g:
case p:
case _:
return o;
default:
switch (o = o && o.$$typeof, o) {
case c:
case l:
case v:
case y:
return o;
case i:
return o;
default:
return S;
}
}
case n:
return S;
}
}
}
return I.ContextConsumer = i, I.ContextProvider = c, I.Element = e, I.ForwardRef = l, I.Fragment = t, I.Lazy = v, I.Memo = y, I.Portal = n, I.Profiler = s, I.StrictMode = r, I.Suspense = g, I.SuspenseList = p, I.isContextConsumer = function(o) {
return m(o) === i;
}, I.isContextProvider = function(o) {
return m(o) === c;
}, I.isElement = function(o) {
return typeof o == "object" && o !== null && o.$$typeof === e;
}, I.isForwardRef = function(o) {
return m(o) === l;
}, I.isFragment = function(o) {
return m(o) === t;
}, I.isLazy = function(o) {
return m(o) === v;
}, I.isMemo = function(o) {
return m(o) === y;
}, I.isPortal = function(o) {
return m(o) === n;
}, I.isProfiler = function(o) {
return m(o) === s;
}, I.isStrictMode = function(o) {
return m(o) === r;
}, I.isSuspense = function(o) {
return m(o) === g;
}, I.isSuspenseList = function(o) {
return m(o) === p;
}, I.isValidElementType = function(o) {
return typeof o == "string" || typeof o == "function" || o === t || o === s || o === r || o === g || o === p || typeof o == "object" && o !== null && (o.$$typeof === v || o.$$typeof === y || o.$$typeof === c || o.$$typeof === i || o.$$typeof === l || o.$$typeof === N || o.getModuleId !== void 0);
}, I.typeOf = m, I;
}
var O = {};
/**
* @license React
* react-is.development.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 Ze;
function xt() {
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
function e(o) {
if (typeof o == "object" && o !== null) {
var S = o.$$typeof;
switch (S) {
case n:
switch (o = o.type, o) {
case r:
case i:
case s:
case p:
case y:
case N:
return o;
default:
switch (o = o && o.$$typeof, o) {
case l:
case g:
case _:
case v:
return o;
case c:
return o;
default:
return S;
}
}
case t:
return S;
}
}
}
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), N = Symbol.for("react.view_transition"), m = Symbol.for("react.client.reference");
O.ContextConsumer = c, O.ContextProvider = l, O.Element = n, O.ForwardRef = g, O.Fragment = r, O.Lazy = _, O.Memo = v, O.Portal = t, O.Profiler = i, O.StrictMode = s, O.Suspense = p, O.SuspenseList = y, O.isContextConsumer = function(o) {
return e(o) === c;
}, O.isContextProvider = function(o) {
return e(o) === l;
}, O.isElement = function(o) {
return typeof o == "object" && o !== null && o.$$typeof === n;
}, O.isForwardRef = function(o) {
return e(o) === g;
}, O.isFragment = function(o) {
return e(o) === r;
}, O.isLazy = function(o) {
return e(o) === _;
}, O.isMemo = function(o) {
return e(o) === v;
}, O.isPortal = function(o) {
return e(o) === t;
}, O.isProfiler = function(o) {
return e(o) === i;
}, O.isStrictMode = function(o) {
return e(o) === s;
}, O.isSuspense = function(o) {
return e(o) === p;
}, O.isSuspenseList = function(o) {
return e(o) === y;
}, O.isValidElementType = function(o) {
return typeof o == "string" || typeof o == "function" || o === r || o === i || o === s || o === p || o === y || typeof o == "object" && o !== null && (o.$$typeof === _ || o.$$typeof === v || o.$$typeof === l || o.$$typeof === c || o.$$typeof === g || o.$$typeof === m || o.getModuleId !== void 0);
}, O.typeOf = e;
}()), O;
}
process.env.NODE_ENV === "production" ? ze.exports = Nt() : ze.exports = xt();
var je = ze.exports;
function It(e) {
function n(h, d, f, E, a) {
for (var T = 0, u = 0, Y = 0, R = 0, k, b, M = 0, B = 0, A, j = A = k = 0, P = 0, F = 0, ge = 0, V = 0, Ee = f.length, ye = Ee - 1, Q, w = "", L = "", Pe = "", Ne = "", ne; P < Ee; ) {
if (b = f.charCodeAt(P), P === ye && u + R + Y + T !== 0 && (u !== 0 && (b = u === 47 ? 10 : 47), R = Y = T = 0, Ee++, ye++), u + R + Y + T === 0) {
if (P === ye && (0 < F && (w = w.replace(_, "")), 0 < w.trim().length)) {
switch (b) {
case 32:
case 9:
case 59:
case 13:
case 10:
break;
default:
w += f.charAt(P);
}
b = 59;
}
switch (b) {
case 123:
for (w = w.trim(), k = w.charCodeAt(0), A = 1, V = ++P; P < Ee; ) {
switch (b = f.charCodeAt(P)) {
case 123:
A++;
break;
case 125:
A--;
break;
case 47:
switch (b = f.charCodeAt(P + 1)) {
case 42:
case 47:
e: {
for (j = P + 1; j < ye; ++j)
switch (f.charCodeAt(j)) {
case 47:
if (b === 42 && f.charCodeAt(j - 1) === 42 && P + 2 !== j) {
P = j + 1;
break e;
}
break;
case 10:
if (b === 47) {
P = j + 1;
break e;
}
}
P = j;
}
}
break;
case 91:
b++;
case 40:
b++;
case 34:
case 39:
for (; P++ < ye && f.charCodeAt(P) !== b; )
;
}
if (A === 0) break;
P++;
}
switch (A = f.substring(V, P), k === 0 && (k = (w = w.replace(v, "").trim()).charCodeAt(0)), k) {
case 64:
switch (0 < F && (w = w.replace(_, "")), b = w.charCodeAt(1), b) {
case 100:
case 109:
case 115:
case 45:
F = d;
break;
default:
F = he;
}
if (A = n(d, F, A, b, a + 1), V = A.length, 0 < W && (F = t(he, w, ge), ne = l(3, A, F, d, X, H, V, b, a, E), w = F.join(""), ne !== void 0 && (V = (A = ne.trim()).length) === 0 && (b = 0, A = "")), 0 < V) switch (b) {
case 115:
w = w.replace(J, c);
case 100:
case 109:
case 45:
A = w + "{" + A + "}";
break;
case 107:
w = w.replace(C, "$1 $2"), A = w + "{" + A + "}", A = G === 1 || G === 2 && i("@" + A, 3) ? "@-webkit-" + A + "@" + A : "@" + A;
break;
default:
A = w + A, E === 112 && (A = (L += A, ""));
}
else A = "";
break;
default:
A = n(d, t(d, w, ge), A, E, a + 1);
}
Pe += A, A = ge = F = j = k = 0, w = "", b = f.charCodeAt(++P);
break;
case 125:
case 59:
if (w = (0 < F ? w.replace(_, "") : w).trim(), 1 < (V = w.length)) switch (j === 0 && (k = w.charCodeAt(0), k === 45 || 96 < k && 123 > k) && (V = (w = w.replace(" ", ":")).length), 0 < W && (ne = l(1, w, d, h, X, H, L.length, E, a, E)) !== void 0 && (V = (w = ne.trim()).length) === 0 && (w = "\0\0"), k = w.charCodeAt(0), b = w.charCodeAt(1), k) {
case 0:
break;
case 64:
if (b === 105 || b === 99) {
Ne += w + f.charAt(P);
break;
}
default:
w.charCodeAt(V - 1) !== 58 && (L += s(w, k, b, w.charCodeAt(2)));
}
ge = F = j = k = 0, w = "", b = f.charCodeAt(++P);
}
}
switch (b) {
case 13:
case 10:
u === 47 ? u = 0 : 1 + k === 0 && E !== 107 && 0 < w.length && (F = 1, w += "\0"), 0 < W * ue && l(0, w, d, h, X, H, L.length, E, a, E), H = 1, X++;
break;
case 59:
case 125:
if (u + R + Y + T === 0) {
H++;
break;
}
default:
switch (H++, Q = f.charAt(P), b) {
case 9:
case 32:
if (R + T + u === 0) switch (M) {
case 44:
case 58:
case 9:
case 32:
Q = "";
break;
default:
b !== 32 && (Q = " ");
}
break;
case 0:
Q = "\\0";
break;
case 12:
Q = "\\f";
break;
case 11:
Q = "\\v";
break;
case 38:
R + u + T === 0 && (F = ge = 1, Q = "\f" + Q);
break;
case 108:
if (R + u + T + q === 0 && 0 < j) switch (P - j) {
case 2:
M === 112 && f.charCodeAt(P - 3) === 58 && (q = M);
case 8:
B === 111 && (q = B);
}
break;
case 58:
R + u + T === 0 && (j = P);
break;
case 44:
u + Y + R + T === 0 && (F = 1, Q += "\r");
break;
case 34:
case 39:
u === 0 && (R = R === b ? 0 : R === 0 ? b : R);
break;
case 91:
R + u + Y === 0 && T++;
break;
case 93:
R + u + Y === 0 && T--;
break;
case 41:
R + u + T === 0 && Y--;
break;
case 40:
if (R + u + T === 0) {
if (k === 0) switch (2 * M + 3 * B) {
case 533:
break;
default:
k = 1;
}
Y++;
}
break;
case 64:
u + Y + R + T + j + A === 0 && (A = 1);
break;
case 42:
case 47:
if (!(0 < R + T + Y)) switch (u) {
case 0:
switch (2 * b + 3 * f.charCodeAt(P + 1)) {
case 235:
u = 47;
break;
case 220:
V = P, u = 42;
}
break;
case 42:
b === 47 && M === 42 && V + 2 !== P && (f.charCodeAt(V + 2) === 33 && (L += f.substring(V, P + 1)), Q = "", u = 0);
}
}
u === 0 && (w += Q);
}
B = M, M = b, P++;
}
if (V = L.length, 0 < V) {
if (F = d, 0 < W && (ne = l(2, L, F, h, X, H, V, E, a, E), ne !== void 0 && (L = ne).length === 0)) return Ne + L + Pe;
if (L = F.join(",") + "{" + L + "}", G * q !== 0) {
switch (G !== 2 || i(L, 2) || (q = 0), q) {
case 111:
L = L.replace(x, ":-moz-$1") + L;
break;
case 112:
L = L.replace(z, "::-webkit-input-$1") + L.replace(z, "::-moz-$1") + L.replace(z, ":-ms-input-$1") + L;
}
q = 0;
}
}
return Ne + L + Pe;
}
function t(h, d, f) {
var E = d.trim().split(S);
d = E;
var a = E.length, T = h.length;
switch (T) {
case 0:
case 1:
var u = 0;
for (h = T === 0 ? "" : h[0] + " "; u < a; ++u)
d[u] = r(h, d[u], f).trim();
break;
default:
var Y = u = 0;
for (d = []; u < a; ++u)
for (var R = 0; R < T; ++R)
d[Y++] = r(h[R] + " ", E[u], f).trim();
}
return d;
}
function r(h, d, f) {
var E = d.charCodeAt(0);
switch (33 > E && (E = (d = d.trim()).charCodeAt(0)), E) {
case 38:
return d.replace($, "$1" + h.trim());
case 58:
return h.trim() + d.replace($, "$1" + h.trim());
default:
if (0 < 1 * f && 0 < d.indexOf("\f")) return d.replace($, (h.charCodeAt(0) === 58 ? "" : "$1") + h.trim());
}
return h + d;
}
function s(h, d, f, E) {
var a = h + ";", T = 2 * d + 3 * f + 4 * E;
if (T === 944) {
h = a.indexOf(":", 9) + 1;
var u = a.substring(h, a.length - 1).trim();
return u = a.substring(0, h).trim() + u + ";", G === 1 || G === 2 && i(u, 1) ? "-webkit-" + u + u : u;
}
if (G === 0 || G === 2 && !i(a, 1)) return a;
switch (T) {
case 1015:
return a.charCodeAt(10) === 97 ? "-webkit-" + a + a : a;
case 951:
return a.charCodeAt(3) === 116 ? "-webkit-" + a + a : a;
case 963:
return a.charCodeAt(5) === 110 ? "-webkit-" + a + a : a;
case 1009:
if (a.charCodeAt(4) !== 100) break;
case 969:
case 942:
return "-webkit-" + a + a;
case 978:
return "-webkit-" + a + "-moz-" + a + a;
case 1019:
case 983:
return "-webkit-" + a + "-moz-" + a + "-ms-" + a + a;
case 883:
if (a.charCodeAt(8) === 45) return "-webkit-" + a + a;
if (0 < a.indexOf("image-set(", 11)) return a.replace(ce, "$1-webkit-$2") + a;
break;
case 932:
if (a.charCodeAt(4) === 45) switch (a.charCodeAt(5)) {
case 103:
return "-webkit-box-" + a.replace("-grow", "") + "-webkit-" + a + "-ms-" + a.replace("grow", "positive") + a;
case 115:
return "-webkit-" + a + "-ms-" + a.replace("shrink", "negative") + a;
case 98:
return "-webkit-" + a + "-ms-" + a.replace("basis", "preferred-size") + a;
}
return "-webkit-" + a + "-ms-" + a + a;
case 964:
return "-webkit-" + a + "-ms-flex-" + a + a;
case 1023:
if (a.charCodeAt(8) !== 99) break;
return u = a.substring(a.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + u + "-webkit-" + a + "-ms-flex-pack" + u + a;
case 1005:
return m.test(a) ? a.replace(N, ":-webkit-") + a.replace(N, ":-moz-") + a : a;
case 1e3:
switch (u = a.substring(13).trim(), d = u.indexOf("-") + 1, u.charCodeAt(0) + u.charCodeAt(d)) {
case 226:
u = a.replace(D, "tb");
break;
case 232:
u = a.replace(D, "tb-rl");
break;
case 220:
u = a.replace(D, "lr");
break;
default:
return a;
}
return "-webkit-" + a + "-ms-" + u + a;
case 1017:
if (a.indexOf("sticky", 9) === -1) break;
case 975:
switch (d = (a = h).length - 10, u = (a.charCodeAt(d) === 33 ? a.substring(0, d) : a).substring(h.indexOf(":", 7) + 1).trim(), T = u.charCodeAt(0) + (u.charCodeAt(7) | 0)) {
case 203:
if (111 > u.charCodeAt(8)) break;
case 115:
a = a.replace(u, "-webkit-" + u) + ";" + a;
break;
case 207:
case 102:
a = a.replace(u, "-webkit-" + (102 < T ? "inline-" : "") + "box") + ";" + a.replace(u, "-webkit-" + u) + ";" + a.replace(u, "-ms-" + u + "box") + ";" + a;
}
return a + ";";
case 938:
if (a.charCodeAt(5) === 45) switch (a.charCodeAt(6)) {
case 105:
return u = a.replace("-items", ""), "-webkit-" + a + "-webkit-box-" + u + "-ms-flex-" + u + a;
case 115:
return "-webkit-" + a + "-ms-flex-item-" + a.replace(U, "") + a;
default:
return "-webkit-" + a + "-ms-flex-line-pack" + a.replace("align-content", "").replace(U, "") + a;
}
break;
case 973:
case 989:
if (a.charCodeAt(3) !== 45 || a.charCodeAt(4) === 122) break;
case 931:
case 953:
if (re.test(h) === !0) return (u = h.substring(h.indexOf(":") + 1)).charCodeAt(0) === 115 ? s(h.replace("stretch", "fill-available"), d, f, E).replace(":fill-available", ":stretch") : a.replace(u, "-webkit-" + u) + a.replace(u, "-moz-" + u.replace("fill-", "")) + a;
break;
case 962:
if (a = "-webkit-" + a + (a.charCodeAt(5) === 102 ? "-ms-" + a : "") + a, f + E === 211 && a.charCodeAt(13) === 105 && 0 < a.indexOf("transform", 10)) return a.substring(0, a.indexOf(";", 27) + 1).replace(o, "$1-webkit-$2") + a;
}
return a;
}
function i(h, d) {
var f = h.indexOf(d === 1 ? ":" : "{"), E = h.substring(0, d !== 3 ? f : 10);
return f = h.substring(f + 1, h.length - 1), pe(d !== 2 ? E : E.replace(K, "$1"), f, d);
}
function c(h, d) {
var f = s(d, d.charCodeAt(0), d.charCodeAt(1), d.charCodeAt(2));
return f !== d + ";" ? f.replace(te, " or ($1)").substring(4) : "(" + d + ")";
}
function l(h, d, f, E, a, T, u, Y, R, k) {
for (var b = 0, M = d, B; b < W; ++b)
switch (B = Z[b].call(y, h, M, f, E, a, T, u, Y, R, k)) {
case void 0:
case !1:
case !0:
case null:
break;
default:
M = B;
}
if (M !== d) return M;
}
function g(h) {
switch (h) {
case void 0:
case null:
W = Z.length = 0;
break;
default:
if (typeof h == "function") Z[W++] = h;
else if (typeof h == "object") for (var d = 0, f = h.length; d < f; ++d)
g(h[d]);
else ue = !!h | 0;
}
return g;
}
function p(h) {
return h = h.prefix, h !== void 0 && (pe = null, h ? typeof h != "function" ? G = 1 : (G = 2, pe = h) : G = 0), p;
}
function y(h, d) {
var f = h;
if (33 > f.charCodeAt(0) && (f = f.trim()), me = f, f = [me], 0 < W) {
var E = l(-1, d, f, f, X, H, 0, 0, 0, 0);
E !== void 0 && typeof E == "string" && (d = E);
}
var a = n(he, f, d, 0, 0);
return 0 < W && (E = l(-2, a, f, f, X, H, a.length, 0, 0, 0), E !== void 0 && (a = E)), me = "", q = 0, H = X = 1, a;
}
var v = /^\0+/g, _ = /[\0\r\f]/g, N = /: */g, m = /zoo|gra/, o = /([,: ])(transform)/g, S = /,\r+?/g, $ = /([\t\r\n ])*\f?&/g, C = /@(k\w+)\s*(\S*)\s*/, z = /::(place)/g, x = /:(read-only)/g, D = /[svh]\w+-[tblr]{2}/, J = /\(\s*(.*)\s*\)/g, te = /([\s\S]*?);/g, U = /-self|flex-/g, K = /[^]*?(:[rp][el]a[\w-]+)[^]*/, re = /stretch|:\s*\w+\-(?:conte|avail)/, ce = /([^-])(image-set\()/, H = 1, X = 1, q = 0, G = 1, he = [], Z = [], W = 0, pe = null, ue = 0, me = "";
return y.use = g, y.set = p, e !== void 0 && p(e), y;
}
var Ot = {
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,
// SVG-related properties
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
};
function ee() {
return (ee = Object.assign || function(e) {
for (var n = 1; n < arguments.length; n++) {
var t = arguments[n];
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
}
return e;
}).apply(this, arguments);
}
var Qe = function(e, n) {
for (var t = [e[0]], r = 0, s = n.length; r < s; r += 1) t.push(n[r], e[r + 1]);
return t;
}, Ye = function(e) {
return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !je.typeOf(e);
}, Te = Object.freeze([]), ae = Object.freeze({});
function Se(e) {
return typeof e == "function";
}
function Le(e) {
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
}
function Ge(e) {
return e && typeof e.styledComponentId == "string";
}
var de = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Be = typeof window < "u" && "HTMLElement" in window, $t = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_DISABLE_SPEEDY !== 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.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production")), Dt = {}, zt = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
`, 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.
- Are you trying to reuse it across renders?
- Are you accidentally calling collectStyles twice?
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
- Does this error occur on the client and is your target falsy?
- Does this error occur on the server and is the sheet falsy?
`, 5: `The clone method cannot be used on the client!
- Are you running in a client-like environment on the server?
- Are you trying to run SSR on the client?
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
- Are you using a custom target that isn't mounted?
- Does your document not have a valid head element?
- Have you accidentally removed a style tag manually?
`, 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.
`, 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
`, 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.
`, 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.
`, 14: `ThemeProvider: "theme" prop is required.
`, 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.
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
as for instance in your render method then you may be running into this limitation.
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
Has styled-components' style tag been unmounted or altered by another script?
` } : {};
function Yt() {
for (var e = arguments.length <= 0 ? void 0 : arguments[0], n = [], t = 1, r = arguments.length; t < r; t += 1) n.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
return n.forEach(function(s) {
e = e.replace(/%[a-z]/, s);
}), e;
}
function fe(e) {
for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++) t[r - 1] = arguments[r];
throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(Yt.apply(void 0, [zt[e]].concat(t)).trim());
}
var Lt = function() {
function e(t) {
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
}
var n = e.prototype;
return n.indexOfGroup = function(t) {
for (var r = 0, s = 0; s < t; s++) r += this.groupSizes[s];
return r;
}, n.insertRules = function(t, r) {
if (t >= this.groupSizes.length) {
for (var s = this.groupSizes, i = s.length, c = i; t >= c; ) (c <<= 1) < 0 && fe(16, "" + t);
this.groupSizes = new Uint32Array(c), this.groupSizes.set(s), this.length = c;
for (var l = i; l < c; l++) this.groupSizes[l] = 0;
}
for (var g = this.indexOfGroup(t + 1), p = 0, y = r.length; p < y; p++) this.tag.insertRule(g, r[p]) && (this.groupSizes[t]++, g++);
}, n.clearGroup = function(t) {
if (t < this.length) {
var r = this.groupSizes[t], s = this.indexOfGroup(t), i = s + r;
this.groupSizes[t] = 0;
for (var c = s; c < i; c++) this.tag.deleteRule(s);
}
}, n.getGroup = function(t) {
var r = "";
if (t >= this.length || this.groupSizes[t] === 0) return r;
for (var s = this.groupSizes[t], i = this.indexOfGroup(t), c = i + s, l = i; l < c; l++) r += this.tag.getRule(l) + `/*!sc*/
`;
return r;
}, e;
}(), Ae = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), ve = 1, be = function(e) {
if (Ae.has(e)) return Ae.get(e);
for (; Re.has(ve); ) ve++;
var n = ve++;
return process.env.NODE_ENV !== "production" && ((0 | n) < 0 || n > 1 << 30) && fe(16, "" + n), Ae.set(e, n), Re.set(n, e), n;
}, Mt = function(e) {
return Re.get(e);
}, Ft = function(e, n) {
n >= ve && (ve = n + 1), Ae.set(e, n), Re.set(n, e);
}, Vt = "style[" + de + '][data-styled-version="5.3.11"]', jt = new RegExp("^" + de + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Gt = function(e, n, t) {
for (var r, s = t.split(","), i = 0, c = s.length; i < c; i++) (r = s[i]) && e.registerName(n, r);
}, Bt = function(e, n) {
for (var t = (n.textContent || "").split(`/*!sc*/
`), r = [], s = 0, i = t.length; s < i; s++) {
var c = t[s].trim();
if (c) {
var l = c.match(jt);
if (l) {
var g = 0 | parseInt(l[1], 10), p = l[2];
g !== 0 && (Ft(p, g), Gt(e, p, l[3]), e.getTag().insertRules(g, r)), r.length = 0;
} else r.push(c);
}
}
}, Ht = function() {
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
}, at = function(e) {
var n = document.head, t = e || n, r = document.createElement("style"), s = function(l) {
for (var g = l.childNodes, p = g.length; p >= 0; p--) {
var y = g[p];
if (y && y.nodeType === 1 && y.hasAttribute(de)) return y;
}
}(t), i = s !== void 0 ? s.nextSibling : null;
r.setAttribute(de, "active"), r.setAttribute("data-styled-version", "5.3.11");
var c = Ht();
return c && r.setAttribute("nonce", c), t.insertBefore(r, i), r;
}, Ut = function() {
function e(t) {
var r = this.element = at(t);
r.appendChild(document.createTextNode("")), this.sheet = function(s) {
if (s.sheet) return s.sheet;
for (var i = document.styleSheets, c = 0, l = i.length; c < l; c++) {
var g = i[c];
if (g.ownerNode === s) return g;
}
fe(17);
}(r), this.length = 0;
}
var n = e.prototype;
return n.insertRule = function(t, r) {
try {
return this.sheet.insertRule(r, t), this.length++, !0;
} catch {
return !1;
}
}, n.deleteRule = function(t) {
this.sheet.deleteRule(t), this.length--;
}, n.getRule = function(t) {
var r = this.sheet.cssRules[t];
return r !== void 0 && typeof r.cssText == "string" ? r.cssText : "";
}, e;
}(), Wt = function() {
function e(t) {
var r = this.element = at(t);
this.nodes = r.childNodes, this.length = 0;
}
var n = e.prototype;
return n.insertRule = function(t, r) {
if (t <= this.length && t >= 0) {
var s = document.createTextNode(r), i = this.nodes[t];
return this.element.insertBefore(s, i || null), this.length++, !0;
}
return !1;
}, n.deleteRule = function(t) {
this.element.removeChild(this.nodes[t]), this.length--;
}, n.getRule = function(t) {
return t < this.length ? this.nodes[t].textContent : "";
}, e;
}(), Xt = function() {
function e(t) {
this.rules = [], this.length = 0;
}
var n = e.prototype;
return n.insertRule = function(t, r) {
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
}, n.deleteRule = function(t) {
this.rules.splice(t, 1), this.length--;
}, n.getRule = function(t) {
return t < this.length ? this.rules[t] : "";
}, e;
}(), Je = Be, Zt = { isServer: !Be, useCSSOMInjection: !$t }, ke = function() {
function e(t, r, s) {
t === void 0 && (t = ae), r === void 0 && (r = {}), this.options = ee({}, Zt, {}, t), this.gs = r, this.names = new Map(s), this.server = !!t.isServer, !this.server && Be && Je && (Je = !1, function(i) {
for (var c = document.querySelectorAll(Vt), l = 0, g = c.length; l < g; l++) {
var p = c[l];
p && p.getAttribute(de) !== "active" && (Bt(i, p), p.parentNode && p.parentNode.removeChild(p));
}
}(this));
}
e.registerId = function(t) {
return be(t);
};
var n = e.prototype;
return n.reconstructWithOptions = function(t, r) {
return r === void 0 && (r = !0), new e(ee({}, this.options, {}, t), this.gs, r && this.names || void 0);
}, n.allocateGSInstance = function(t) {
return this.gs[t] = (this.gs[t] || 0) + 1;
}, n.getTag = function() {
return this.tag || (this.tag = (s = (r = this.options).isServer, i = r.useCSSOMInjection, c = r.target, t = s ? new Xt(c) : i ? new Ut(c) : new Wt(c), new Lt(t)));
var t, r, s, i, c;
}, n.hasNameForId = function(t, r) {
return this.names.has(t) && this.names.get(t).has(r);
}, n.registerName = function(t, r) {
if (be(t), this.names.has(t)) this.names.get(t).add(r);
else {
var s = /* @__PURE__ */ new Set();
s.add(r), this.names.set(t, s);
}
}, n.insertRules = function(t, r, s) {
this.registerName(t, r), this.getTag().insertRules(be(t), s);
}, n.clearNames = function(t) {
this.names.has(t) && this.names.get(t).clear();
}, n.clearRules = function(t) {
this.getTag().clearGroup(be(t)), this.clearNames(t);
}, n.clearTag = function() {
this.tag = void 0;
}, n.toString = function() {
return function(t) {
for (var r = t.getTag(), s = r.length, i = "", c = 0; c < s; c++) {
var l = Mt(c);
if (l !== void 0) {
var g = t.names.get(l), p = r.getGroup(c);
if (g && p && g.size) {
var y = de + ".g" + c + '[id="' + l + '"]', v = "";
g !== void 0 && g.forEach(function(_) {
_.length > 0 && (v += _ + ",");
}), i += "" + p + y + '{content:"' + v + `"}/*!sc*/
`;
}
}
}
return i;
}(this);
}, e;
}(), Qt = /(a)(d)/gi, Ke = function(e) {
return String.fromCharCode(e + (e > 25 ? 39 : 97));
};
function Me(e) {
var n, t = "";
for (n = Math.abs(e); n > 52; n = n / 52 | 0) t = Ke(n % 52) + t;
return (Ke(n % 52) + t).replace(Qt, "$1-$2");
}
var se = function(e, n) {
for (var t = n.length; t; ) e = 33 * e ^ n.charCodeAt(--t);
return e;
}, st = function(e) {
return se(5381, e);
};
function it(e) {
for (var n = 0; n < e.length; n += 1) {
var t = e[n];
if (Se(t) && !Ge(t)) return !1;
}
return !0;
}
var Jt = st("5.3.11"), Kt = function() {
function e(n, t, r) {
this.rules = n, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && it(n), this.componentId = t, this.baseHash = se(Jt, t), this.baseStyle = r, ke.registerId(t);
}
return e.prototype.generateAndInjectStyles = function(n, t, r) {
var s = this.componentId, i = [];
if (this.baseStyle && i.push(this.baseStyle.generateAndInjectStyles(n, t, r)), this.isStatic && !r.hash) if (this.staticRulesId && t.hasNameForId(s, this.staticRulesId)) i.push(this.staticRulesId);
else {
var c = ie(this.rules, n, t, r).join(""), l = Me(se(this.baseHash, c) >>> 0);
if (!t.hasNameForId(s, l)) {
var g = r(c, "." + l, void 0, s);
t.insertRules(s, l, g);
}
i.push(l), this.staticRulesId = l;
}
else {
for (var p = this.rules.length, y = se(this.baseHash, r.hash), v = "", _ = 0; _ < p; _++) {
var N = this.rules[_];
if (typeof N == "string") v += N, process.env.NODE_ENV !== "production" && (y = se(y, N + _));
else if (N) {
var m = ie(N, n, t, r), o = Array.isArray(m) ? m.join("") : m;
y = se(y, o + _), v += o;
}
}
if (v) {
var S = Me(y >>> 0);
if (!t.hasNameForId(s, S)) {
var $ = r(v, "." + S, void 0, s);
t.insertRules(s, S, $);
}
i.push(S);
}
}
return i.join(" ");
}, e;
}(), qt = /^\s*\/\/.*$/gm, er = [":", "[", ".", "#"];
function tr(e) {
var n, t, r, s, i = ae, c = i.options, l = c === void 0 ? ae : c, g = i.plugins, p = g === void 0 ? Te : g, y = new It(l), v = [], _ = /* @__PURE__ */ function(o) {
function S($) {
if ($) try {
o($ + "}");
} catch {
}
}
return function($, C, z, x, D, J, te, U, K, re) {
switch ($) {
case 1:
if (K === 0 && C.charCodeAt(0) === 64) return o(C + ";"), "";
break;
case 2:
if (U === 0) return C + "/*|*/";
break;
case 3:
switch (U) {
case 102:
case 112:
return o(z[0] + C), "";
default:
return C + (re === 0 ? "/*|*/" : "");
}
case -2:
C.split("/*|*/}").forEach(S);
}
};
}(function(o) {
v.push(o);
}), N = function(o, S, $) {
return S === 0 && er.indexOf($[t.length]) !== -1 || $.match(s) ? o : "." + n;
};
function m(o, S, $, C) {
C === void 0 && (C = "&");
var z = o.replace(qt, ""), x = S && $ ? $ + " " + S + " { " + z + " }" : z;
return n = C, t = S, r = new RegExp("\\" + t + "\\b", "g"), s = new RegExp("(\\" + t + "\\b){2,}"), y($ || !S ? "" : S, x);
}
return y.use([].concat(p, [function(o, S, $) {
o === 2 && $.length && $[0].lastIndexOf(t) > 0 && ($[0] = $[0].replace(r, N));
}, _, function(o) {
if (o === -2) {
var S = v;
return v = [], S;
}
}])), m.hash = p.length ? p.reduce(function(o, S) {
return S.name || fe(15), se(o, S.name);
}, 5381).toString() : "", m;
}
var ct = le.createContext();
ct.Consumer;
var ut = le.createContext(), rr = (ut.Consumer, new ke()), Fe = tr();
function lt() {
return we(ct) || rr;
}
function dt() {
return we(ut) || Fe;
}
var nr = function() {
function e(n, t) {
var r = this;
this.inject = function(s, i) {
i === void 0 && (i = Fe);
var c = r.name + i.hash;
s.hasNameForId(r.id, c) || s.insertRules(r.id, c, i(r.rules, c, "@keyframes"));
}, this.toString = function() {
return fe(12, String(r.name));
}, this.name = n, this.id = "sc-keyframes-" + n, this.rules = t;
}
return e.prototype.getName = function(n) {
return n === void 0 && (n = Fe), this.name + n.hash;
}, e;
}(), or = /([A-Z])/, ar = /([A-Z])/g, sr = /^ms-/, ir = function(e) {
return "-" + e.toLowerCase();
};
function qe(e) {
return or.test(e) ? e.replace(ar, ir).replace(sr, "-ms-") : e;
}
var et = function(e) {
return e == null || e === !1 || e === "";
};
function ie(e, n, t, r) {
if (Array.isArray(e)) {
for (var s, i = [], c = 0, l = e.length; c < l; c += 1) (s = ie(e[c], n, t, r)) !== "" && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
return i;
}
if (et(e)) return "";
if (Ge(e)) return "." + e.styledComponentId;
if (Se(e)) {
if (typeof (p = e) != "function" || p.prototype && p.prototype.isReactComponent || !n) return e;
var g = e(n);
return process.env.NODE_ENV !== "production" && je.isElement(g) && console.warn(Le(e) + " 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."), ie(g, n, t, r);
}
var p;
return e instanceof nr ? t ? (e.inject(t, r), e.getName(r)) : e : Ye(e) ? function y(v, _) {
var N, m, o = [];
for (var S in v) v.hasOwnProperty(S) && !et(v[S]) && (Array.isArray(v[S]) && v[S].isCss || Se(v[S]) ? o.push(qe(S) + ":", v[S], ";") : Ye(v[S]) ? o.push.apply(o, y(v[S], S)) : o.push(qe(S) + ": " + (N = S, (m = v[S]) == null || typeof m == "boolean" || m === "" ? "" : typeof m != "number" || m === 0 || N in Ot || N.startsWith("--") ? String(m).trim() : m + "px") + ";"));
return _ ? [_ + " {"].concat(o, ["}"]) : o;
}(e) : e.toString();
}
var tt = function(e) {
return Array.isArray(e) && (e.isCss = !0), e;
};
function ft(e) {
for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++) t[r - 1] = arguments[r];
return Se(e) || Ye(e) ? tt(ie(Qe(Te, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : tt(ie(Qe(e, t)));
}
var rt = /invalid hook call/i, Ce = /* @__PURE__ */ new Set(), ht = function(e, n) {
if (process.env.NODE_ENV !== "production") {
var t = "The component " + e + (n ? ' with the id of "' + n + '"' : "") + ` has been created dynamically.
You may see this warning because you've called styled inside another component.
To resolve this only create new StyledComponents outside of any render method and function component.`, r = console.error;
try {
var s = !0;
console.error = function(i) {
if (rt.test(i)) s = !1, Ce.delete(t);
else {
for (var c = arguments.length, l = new Array(c > 1 ? c - 1 : 0), g = 1; g < c; g++) l[g - 1] = arguments[g];
r.apply(void 0, [i].concat(l));
}
}, ot(), s && !Ce.has(t) && (console.warn(t), Ce.add(t));
} catch (i) {
rt.test(i.message) && Ce.delete(t);
} finally {
console.error = r;
}
}
}, pt = function(e, n, t) {
return t === void 0 && (t = ae), e.theme !== t.theme && e.theme || n || t.theme;
}, cr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ur = /(^-|-$)/g;
function $e(e) {
return e.replace(cr, "-").replace(ur, "");
}
var mt = function(e) {
return Me(st(e) >>> 0);
};
function _e(e) {
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
}
var Ve = function(e) {
return typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
}, lr = function(e) {
return e !== "__proto__" && e !== "constructor" && e !== "prototype";
};
function dr(e, n, t) {
var r = e[t];
Ve(n) && Ve(r) ? gt(r, n) : e[t] = n;
}
function gt(e) {
for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++) t[r - 1] = arguments[r];
for (var s = 0, i = t; s < i.length; s++) {
var c = i[s];
if (Ve(c)) for (var l in c) lr(l) && dr(e, c[l], l);
}
return e;
}
var He = le.createContext();
He.Consumer;
var De = {};
function yt(e, n, t) {
var r = Ge(e), s = !_e(e), i = n.attrs, c = i === void 0 ? Te : i, l = n.componentId, g = l === void 0 ? function(C, z) {
var x = typeof C != "string" ? "sc" : $e(C);
De[x] = (De[x] || 0) + 1;
var D = x + "-" + mt("5.3.11" + x + De[x]);
return z ? z + "-" + D : D;
}(n.displayName, n.parentComponentId) : l, p = n.displayName, y = p === void 0 ? function(C) {
return _e(C) ? "styled." + C : "Styled(" + Le(C) + ")";
}(e) : p, v = n.displayName && n.componentId ? $e(n.displayName) + "-" + n.componentId : n.componentId || g, _ = r && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, N = n.shouldForwardProp;
r && e.shouldForwardProp && (N = n.shouldForwardProp ? function(C, z, x) {
return e.shouldForwardProp(C, z, x) && n.shouldForwardProp(C, z, x);
} : e.shouldForwardProp);
var m, o = new Kt(t, v, r ? e.componentStyle : void 0), S = o.isStatic && c.length === 0, $ = function(C, z) {
return function(x, D, J, te) {
var U = x.attrs, K = x.componentStyle, re = x.defaultProps, ce = x.foldedComponentIds, H = x.shouldForwardProp, X = x.styledComponentId, q = x.target, G = function(E, a, T) {
E === void 0 && (E = ae);
var u = ee({}, a, { theme: E }), Y = {};
return T.forEach(function(R) {
var k, b, M, B = R;
for (k in Se(B) && (B = B(u)), B) u[k] = Y[k] = k === "className" ? (b = Y[k], M = B[k], b && M ? b + " " + M : b || M) : B[k];
}), [u, Y];
}(pt(D, we(He), re) || ae, D, U), he = G[0], Z = G[1], W = function(E, a, T, u) {
var Y = lt(), R = dt(), k = a ? E.generateAndInjectStyles(ae, Y, R) : E.generateAndInjectStyles(T, Y, R);
return process.env.NODE_ENV !== "production" && !a && u && u(k), k;
}(K, te, he, process.env.NODE_ENV !== "production" ? x.warnTooManyClasses : void 0), pe = J, ue = Z.$as || D.$as || Z.as || D.as || q, me = _e(ue), h = Z !== D ? ee({}, D, {}, Z) : D, d = {};
for (var f in h) f[0] !== "$" && f !== "as" && (f === "forwardedAs" ? d.as = h[f] : (H ? H(f, We, ue) : !me || We(f)) && (d[f] = h[f]));
return D.style && Z.style !== D.style && (d.style = ee({}, D.style, {}, Z.style)), d.className = Array.prototype.concat(ce, X, W !== X ? W : null, D.className, Z.className).filter(Boolean).join(" "), d.ref = pe, Et(ue, d);
}(m, C, z, S);
};
return $.displayName = y, (m = le.forwardRef($)).attrs = _, m.componentStyle = o, m.displayName = y, m.shouldForwardProp = N, m.foldedComponentIds = r ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : Te, m.styledComponentId = v, m.target = r ? e.target : e, m.withComponent = function(C) {
var z = n.componentId, x = function(J, te) {
if (J == null) return {};
var U, K, re = {}, ce = Object.keys(J);
for (K = 0; K < ce.length; K++) U = ce[K], te.indexOf(U) >= 0 || (re[U] = J[U]);
return re;
}(n, ["componentId"]), D = z && z + "-" + (_e(C) ? C : $e(Le(C)));
return yt(C, ee({}, x, { attrs: _, componentId: D }), t);
}, Object.defineProperty(m, "defaultProps", { get: function() {
return this._foldedDefaultProps;
}, set: function(C) {
this._foldedDefaultProps = r ? gt({}, e.defaultProps, C) : C;
} }), process.env.NODE_ENV !== "production" && (ht(y, v), m.warnTooManyClasses = /* @__PURE__ */ function(C, z) {
var x = {}, D = !1;
return function(J) {
if (!D && (x[J] = !0, Object.keys(x).length >= 200)) {
var te = z ? ' with the id of "' + z + '"' : "";
console.warn("Over 200 classes were generated for component " + C + te + `.
Consider using the attrs method, together with a style object for frequently changed styles.
Example:
const Component = styled.div.attrs(props => ({
style: {
background: props.background,
},
}))\`width: 100%;\`
<Component />`), D = !0, x = {};
}
};
}(y, v)), Object.defineProperty(m, "toString", { value: function() {
return "." + m.styledComponentId;
} }), s && Tt(m, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), m;
}
var nt = function(e) {
return function n(t, r, s) {
if (s === void 0 && (s = ae), !je.isValidElementType(r)) return fe(1, String(r));
var i = function() {
return t(r, s, ft.apply(void 0, arguments));
};
return i.withConfig = function(c) {
return n(t, r, ee({}, s, {}, c));
}, i.attrs = function(c) {
return n(t, r, ee({}, s, { attrs: Array.prototype.concat(s.attrs, c).filter(Boolean) }));
}, i;
}(yt, e);
};
["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", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "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", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function(e) {
nt[e] = nt(e);
});
var fr = function() {
function e(t, r) {
this.rules = t, this.componentId = r, this.isStatic = it(t), ke.registerId(this.componentId + 1);
}
var n = e.prototype;
return n.createStyles = function(t, r, s, i) {
var c = i(ie(this.rules, r, s, i).join(""), ""), l = this.componentId + t;
s.insertRules(l, l, c);
}, n.removeStyles = function(t, r) {
r.clearRules(this.componentId + t);
}, n.renderStyles = function(t, r, s, i) {
t > 2 && ke.registerId(this.componentId + t), this.removeStyles(t, s), this.createStyles(t, r, s, i);
}, e;
}();
function hr(e) {
for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++) t[r - 1] = arguments[r];
var s = ft.apply(void 0, [e].concat(t)), i = "sc-global-" + mt(JSON.stringify(s)), c = new fr(s, i);
function l(p