UNPKG

portfolio-manager-toolkit

Version:
1,325 lines (1,309 loc) 76.9 kB
import le, { useState as Te, useEffect as fr, useDebugValue as yt, createElement as pr, useRef as hr, useContext as mr } from "react"; const ge = { sm: "0.8rem", md: "1.15rem", lg: "2.5rem" }, gr = { colors: { primary: "#0B294D", primaryAlternate: "#7ab2f5", secondary: "#11335A", secondaryAlternate: "#4CA3E5", tertiary: "#4CA3E5", tertiaryAlternate: "#11335A", background: "#FFFFFF", darkText: "black", lightText: "white" }, fontSizes: ge }, yr = { colors: { primary: "#426E6F", primaryAlternate: "#9ff3f5", secondary: "#346F6F", secondaryAlternate: "#DDE9E9", tertiary: "#DDE9E9", tertiaryAlternate: "#346F6F", background: "#FBFFFF", darkText: "#426E6F", lightText: "white" }, fontSizes: ge }, vr = { colors: { primary: "#B294A0", primaryAlternate: "#ffd6e7", secondary: "#7C8D7D", secondaryAlternate: "#C2CCD6", tertiary: "#C2CCD6", tertiaryAlternate: "#7C8D7D", background: "#F0EFEB", darkText: "black", lightText: "white" }, fontSizes: ge }, br = { colors: { primary: "#2A2A2A", primaryAlternate: "#cccccc", secondary: "#D9D9D9", secondaryAlternate: "#2A2A2A", tertiary: "#D5FC51", tertiaryAlternate: "#2A2A2A", background: "#FFFFFF", darkText: "black", lightText: "white" }, fontSizes: ge }, wr = { colors: { primary: "#3148F6", primaryAlternate: "#c9d0ff", secondary: "#1C4B8F", secondaryAlternate: "#c9d0ff", tertiary: "#1C2127", tertiaryAlternate: "#c9d0ff", background: "#FFFFFF", darkText: "black", lightText: "white" }, fontSizes: ge }, xr = { colors: { primary: "#19302A", primaryAlternate: "#98f5dd", secondary: "#8FBC55", secondaryAlternate: "#19302A", tertiary: "#DEE072", tertiaryAlternate: "#19302A", background: "#E5EFE7", darkText: "black", lightText: "white" }, fontSizes: ge }, ye = { blueTheme: gr, lightTheme: yr, warmSpring: vr, boldEndurance: br, trustInBlue: wr, fern: xr // ... }, kr = "https://portfolio-website-editor.vercel.app/api/public/getUserData"; function Hn(e, t) { const [r, n] = Te(null); return fr(() => { (async () => { try { const s = await fetch(kr, { method: "GET", headers: { Authorization: `Bearer ${t}`, "User-Email": e } }), i = await s.json(); s.ok && i.userInfo ? n(i.userInfo) : n(null); } catch { n(null); } })(); }, [e, t]), r; } var Ne = { exports: {} }, Se = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var vt; function Sr() { if (vt) return Se; vt = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function r(n, o, s) { var i = null; if (s !== void 0 && (i = "" + s), o.key !== void 0 && (i = "" + o.key), "key" in o) { s = {}; for (var u in o) u !== "key" && (s[u] = o[u]); } else s = o; return o = s.ref, { $$typeof: e, type: n, key: i, ref: o !== void 0 ? o : null, props: s }; } return Se.Fragment = t, Se.jsx = r, Se.jsxs = r, Se; } var Ee = {}; /** * @license React * react-jsx-runtime.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 bt; function Er() { return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() { function e(a) { if (a == null) return null; if (typeof a == "function") return a.$$typeof === Ke ? null : a.displayName || a.name || null; if (typeof a == "string") return a; switch (a) { case A: return "Fragment"; case R: return "Profiler"; case I: return "StrictMode"; case T: return "Suspense"; case w: return "SuspenseList"; case W: return "Activity"; } if (typeof a == "object") switch (typeof a.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), a.$$typeof) { case x: return "Portal"; case S: return (a.displayName || "Context") + ".Provider"; case _: return (a._context.displayName || "Context") + ".Consumer"; case E: var f = a.render; return a = a.displayName, a || (a = f.displayName || f.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a; case h: return f = a.displayName || null, f !== null ? f : e(a.type) || "Memo"; case B: f = a._payload, a = a._init; try { return e(a(f)); } catch { } } return null; } function t(a) { return "" + a; } function r(a) { try { t(a); var f = !1; } catch { f = !0; } if (f) { f = console; var b = f.error, P = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object"; return b.call( f, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", P ), t(a); } } function n(a) { if (a === A) return "<>"; if (typeof a == "object" && a !== null && a.$$typeof === B) return "<...>"; try { var f = e(a); return f ? "<" + f + ">" : "<...>"; } catch { return "<...>"; } } function o() { var a = we.A; return a === null ? null : a.getOwner(); } function s() { return Error("react-stack-top-frame"); } function i(a) { if (je.call(a, "key")) { var f = Object.getOwnPropertyDescriptor(a, "key").get; if (f && f.isReactWarning) return !1; } return a.key !== void 0; } function u(a, f) { function b() { Pe || (Pe = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", f )); } b.isReactWarning = !0, Object.defineProperty(a, "key", { get: b, configurable: !0 }); } function l() { var a = e(this.type); return Oe[a] || (Oe[a] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), a = this.props.ref, a !== void 0 ? a : null; } function y(a, f, b, P, L, $, U, q) { return b = $.ref, a = { $$typeof: g, type: a, key: f, props: $, _owner: L }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(a, "ref", { enumerable: !1, get: l }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(a, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(a, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: U }), Object.defineProperty(a, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: q }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; } function v(a, f, b, P, L, $, U, q) { var j = f.children; if (j !== void 0) if (P) if (Re(j)) { for (P = 0; P < j.length; P++) d(j[P]); Object.freeze && Object.freeze(j); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else d(j); if (je.call(f, "key")) { j = e(a); var F = Object.keys(f).filter(function(oe) { return oe !== "key"; }); P = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", M[j + P] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, P, j, F, j ), M[j + P] = !0); } if (j = null, b !== void 0 && (r(b), j = "" + b), i(f) && (r(f.key), j = "" + f.key), "key" in f) { b = {}; for (var Z in f) Z !== "key" && (b[Z] = f[Z]); } else b = f; return j && u( b, typeof a == "function" ? a.displayName || a.name || "Unknown" : a ), y( a, j, $, L, o(), b, U, q ); } function d(a) { typeof a == "object" && a !== null && a.$$typeof === g && a._store && (a._store.validated = 1); } var p = le, g = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), Ke = Symbol.for("react.client.reference"), we = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, je = Object.prototype.hasOwnProperty, Re = Array.isArray, xe = console.createTask ? console.createTask : function() { return null; }; p = { "react-stack-bottom-frame": function(a) { return a(); } }; var Pe, Oe = {}, ne = p["react-stack-bottom-frame"].bind( p, s )(), ke = xe(n(s)), M = {}; Ee.Fragment = A, Ee.jsx = function(a, f, b, P, L) { var $ = 1e4 > we.recentlyCreatedOwnerStacks++; return v( a, f, b, !1, P, L, $ ? Error("react-stack-top-frame") : ne, $ ? xe(n(a)) : ke ); }, Ee.jsxs = function(a, f, b, P, L) { var $ = 1e4 > we.recentlyCreatedOwnerStacks++; return v( a, f, b, !0, P, L, $ ? Error("react-stack-top-frame") : ne, $ ? xe(n(a)) : ke ); }; }()), Ee; } var wt; function Ar() { return wt || (wt = 1, process.env.NODE_ENV === "production" ? Ne.exports = Sr() : Ne.exports = Er()), Ne.exports; } var c = Ar(), D = function() { return D = Object.assign || function(t) { for (var r, n = 1, o = arguments.length; n < o; n++) { r = arguments[n]; for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]); } return t; }, D.apply(this, arguments); }; function ue(e, t, r) { if (r || arguments.length === 2) for (var n = 0, o = t.length, s; n < o; n++) (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]); return e.concat(s || Array.prototype.slice.call(t)); } function Cr(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var _r = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Tr = /* @__PURE__ */ Cr( function(e) { return _r.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ), C = "-ms-", _e = "-moz-", k = "-webkit-", Mt = "comm", He = "rule", ft = "decl", jr = "@import", Lt = "@keyframes", Rr = "@layer", Vt = Math.abs, pt = String.fromCharCode, ot = Object.assign; function Pr(e, t) { return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0; } function Bt(e) { return e.trim(); } function H(e, t) { return (e = t.exec(e)) ? e[0] : e; } function m(e, t, r) { return e.replace(t, r); } function ze(e, t, r) { return e.indexOf(t, r); } function N(e, t) { return e.charCodeAt(t) | 0; } function de(e, t, r) { return e.slice(t, r); } function G(e) { return e.length; } function Yt(e) { return e.length; } function Ce(e, t) { return t.push(e), e; } function Or(e, t) { return e.map(t).join(""); } function xt(e, t) { return e.filter(function(r) { return !H(r, t); }); } var We = 1, fe = 1, Gt = 0, V = 0, O = 0, ve = ""; function qe(e, t, r, n, o, s, i, u) { return { value: e, root: t, parent: r, type: n, props: o, children: s, line: We, column: fe, length: i, return: "", siblings: u }; } function J(e, t) { return ot(qe("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function se(e) { for (; e.root; ) e = J(e.root, { children: [e] }); Ce(e, e.siblings); } function Nr() { return O; } function Ir() { return O = V > 0 ? N(ve, --V) : 0, fe--, O === 10 && (fe = 1, We--), O; } function Y() { return O = V < Gt ? N(ve, V++) : 0, fe++, O === 10 && (fe = 1, We++), O; } function ee() { return N(ve, V); } function Me() { return V; } function Xe(e, t) { return de(ve, e, t); } function st(e) { switch (e) { // \0 \t \n \r \s whitespace token case 0: case 9: case 10: case 13: case 32: return 5; // ! + , / > @ ~ isolate token case 33: case 43: case 44: case 47: case 62: case 64: case 126: // ; { } breakpoint token case 59: case 123: case 125: return 4; // : accompanied token case 58: return 3; // " ' ( [ opening delimit token case 34: case 39: case 40: case 91: return 2; // ) ] closing delimit token case 41: case 93: return 1; } return 0; } function $r(e) { return We = fe = 1, Gt = G(ve = e), V = 0, []; } function Fr(e) { return ve = "", e; } function Qe(e) { return Bt(Xe(V - 1, at(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Dr(e) { for (; (O = ee()) && O < 33; ) Y(); return st(e) > 2 || st(O) > 3 ? "" : " "; } function zr(e, t) { for (; --t && Y() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); ) ; return Xe(e, Me() + (t < 6 && ee() == 32 && Y() == 32)); } function at(e) { for (; Y(); ) switch (O) { // ] ) " ' case e: return V; // " ' case 34: case 39: e !== 34 && e !== 39 && at(O); break; // ( case 40: e === 41 && at(e); break; // \ case 92: Y(); break; } return V; } function Mr(e, t) { for (; Y() && e + O !== 57; ) if (e + O === 84 && ee() === 47) break; return "/*" + Xe(t, V - 1) + "*" + pt(e === 47 ? e : Y()); } function Lr(e) { for (; !st(ee()); ) Y(); return Xe(e, V); } function Vr(e) { return Fr(Le("", null, null, null, [""], e = $r(e), 0, [0], e)); } function Le(e, t, r, n, o, s, i, u, l) { for (var y = 0, v = 0, d = i, p = 0, g = 0, x = 0, A = 1, I = 1, R = 1, _ = 0, S = "", E = o, T = s, w = n, h = S; I; ) switch (x = _, _ = Y()) { // ( case 40: if (x != 108 && N(h, d - 1) == 58) { ze(h += m(Qe(_), "&", "&\f"), "&\f", Vt(y ? u[y - 1] : 0)) != -1 && (R = -1); break; } // " ' [ case 34: case 39: case 91: h += Qe(_); break; // \t \n \r \s case 9: case 10: case 13: case 32: h += Dr(x); break; // \ case 92: h += zr(Me() - 1, 7); continue; // / case 47: switch (ee()) { case 42: case 47: Ce(Br(Mr(Y(), Me()), t, r, l), l); break; default: h += "/"; } break; // { case 123 * A: u[y++] = G(h) * R; // } ; \0 case 125 * A: case 59: case 0: switch (_) { // \0 } case 0: case 125: I = 0; // ; case 59 + v: R == -1 && (h = m(h, /\f/g, "")), g > 0 && G(h) - d && Ce(g > 32 ? St(h + ";", n, r, d - 1, l) : St(m(h, " ", "") + ";", n, r, d - 2, l), l); break; // @ ; case 59: h += ";"; // { rule/at-rule default: if (Ce(w = kt(h, t, r, y, v, o, u, S, E = [], T = [], d, s), s), _ === 123) if (v === 0) Le(h, t, w, w, E, s, d, u, T); else switch (p === 99 && N(h, 3) === 110 ? 100 : p) { // d l m s case 100: case 108: case 109: case 115: Le(e, w, w, n && Ce(kt(e, w, w, 0, 0, o, u, S, o, E = [], d, T), T), o, T, d, u, n ? E : T); break; default: Le(h, w, w, w, [""], T, 0, u, T); } } y = v = g = 0, A = R = 1, S = h = "", d = i; break; // : case 58: d = 1 + G(h), g = x; default: if (A < 1) { if (_ == 123) --A; else if (_ == 125 && A++ == 0 && Ir() == 125) continue; } switch (h += pt(_), _ * A) { // & case 38: R = v > 0 ? 1 : (h += "\f", -1); break; // , case 44: u[y++] = (G(h) - 1) * R, R = 1; break; // @ case 64: ee() === 45 && (h += Qe(Y())), p = ee(), v = d = G(S = h += Lr(Me())), _++; break; // - case 45: x === 45 && G(h) == 2 && (A = 0); } } return s; } function kt(e, t, r, n, o, s, i, u, l, y, v, d) { for (var p = o - 1, g = o === 0 ? s : [""], x = Yt(g), A = 0, I = 0, R = 0; A < n; ++A) for (var _ = 0, S = de(e, p + 1, p = Vt(I = i[A])), E = e; _ < x; ++_) (E = Bt(I > 0 ? g[_] + " " + S : m(S, /&\f/g, g[_]))) && (l[R++] = E); return qe(e, t, r, o === 0 ? He : u, l, y, v, d); } function Br(e, t, r, n) { return qe(e, t, r, Mt, pt(Nr()), de(e, 2, -2), 0, n); } function St(e, t, r, n, o) { return qe(e, t, r, ft, de(e, 0, n), de(e, n + 1, -1), n, o); } function Ut(e, t, r) { switch (Pr(e, t)) { // color-adjust case 5103: return k + "print-" + e + e; // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return k + e + e; // tab-size case 4789: return _e + e + e; // appearance, user-select, transform, hyphens, text-size-adjust case 5349: case 4246: case 4810: case 6968: case 2756: return k + e + _e + e + C + e + e; // writing-mode case 5936: switch (N(e, t + 11)) { // vertical-l(r) case 114: return k + e + C + m(e, /[svh]\w+-[tblr]{2}/, "tb") + e; // vertical-r(l) case 108: return k + e + C + m(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; // horizontal(-)tb case 45: return k + e + C + m(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } // flex, flex-direction, scroll-snap-type, writing-mode case 6828: case 4268: case 2903: return k + e + C + e + e; // order case 6165: return k + e + C + "flex-" + e + e; // align-items case 5187: return k + e + m(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + C + "flex-$1$2") + e; // align-self case 5443: return k + e + C + "flex-item-" + m(e, /flex-|-self/g, "") + (H(e, /flex-|baseline/) ? "" : C + "grid-row-" + m(e, /flex-|-self/g, "")) + e; // align-content case 4675: return k + e + C + "flex-line-pack" + m(e, /align-content|flex-|-self/g, "") + e; // flex-shrink case 5548: return k + e + C + m(e, "shrink", "negative") + e; // flex-basis case 5292: return k + e + C + m(e, "basis", "preferred-size") + e; // flex-grow case 6060: return k + "box-" + m(e, "-grow", "") + k + e + C + m(e, "grow", "positive") + e; // transition case 4554: return k + m(e, /([^-])(transform)/g, "$1" + k + "$2") + e; // cursor case 6187: return m(m(m(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e; // background, background-image case 5495: case 3959: return m(e, /(image-set\([^]*)/, k + "$1$`$1"); // justify-content case 4968: return m(m(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + C + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e; // justify-self case 4200: if (!H(e, /flex-|baseline/)) return C + "grid-column-align" + de(e, t) + e; break; // grid-template-(columns|rows) case 2592: case 3360: return C + m(e, "template-", "") + e; // grid-(row|column)-start case 4384: case 3616: return r && r.some(function(n, o) { return t = o, H(n.props, /grid-\w+-end/); }) ? ~ze(e + (r = r[t].value), "span", 0) ? e : C + m(e, "-start", "") + e + C + "grid-row-span:" + (~ze(r, "span", 0) ? H(r, /\d+/) : +H(r, /\d+/) - +H(e, /\d+/)) + ";" : C + m(e, "-start", "") + e; // grid-(row|column)-end case 4896: case 4128: return r && r.some(function(n) { return H(n.props, /grid-\w+-start/); }) ? e : C + m(m(e, "-end", "-span"), "span ", "") + e; // (margin|padding)-inline-(start|end) case 4095: case 3583: case 4068: case 2532: return m(e, /(.+)-inline(.+)/, k + "$1$2") + e; // (min|max)?(width|height|inline-size|block-size) 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 (G(e) - 1 - t > 6) switch (N(e, t + 1)) { // (m)ax-content, (m)in-content case 109: if (N(e, t + 4) !== 45) break; // (f)ill-available, (f)it-content case 102: return m(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + _e + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; // (s)tretch case 115: return ~ze(e, "stretch", 0) ? Ut(m(e, "stretch", "fill-available"), t, r) + e : e; } break; // grid-(column|row) case 5152: case 5920: return m(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, s, i, u, l, y) { return C + o + ":" + s + y + (i ? C + o + "-span:" + (u ? l : +l - +s) + y : "") + e; }); // position: sticky case 4949: if (N(e, t + 6) === 121) return m(e, ":", ":" + k) + e; break; // display: (flex|inline-flex|grid|inline-grid) case 6444: switch (N(e, N(e, 14) === 45 ? 18 : 11)) { // (inline-)?fle(x) case 120: return m(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + C + "$2box$3") + e; // (inline-)?gri(d) case 100: return m(e, ":", ":" + C) + e; } break; // scroll-margin, scroll-margin-(top|right|bottom|left) case 5719: case 2647: case 2135: case 3927: case 2391: return m(e, "scroll-", "scroll-snap-") + e; } return e; } function Ye(e, t) { for (var r = "", n = 0; n < e.length; n++) r += t(e[n], n, e, t) || ""; return r; } function Yr(e, t, r, n) { switch (e.type) { case Rr: if (e.children.length) break; case jr: case ft: return e.return = e.return || e.value; case Mt: return ""; case Lt: return e.return = e.value + "{" + Ye(e.children, n) + "}"; case He: if (!G(e.value = e.props.join(","))) return ""; } return G(r = Ye(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; } function Gr(e) { var t = Yt(e); return function(r, n, o, s) { for (var i = "", u = 0; u < t; u++) i += e[u](r, n, o, s) || ""; return i; }; } function Ur(e) { return function(t) { t.root || (t = t.return) && e(t); }; } function Hr(e, t, r, n) { if (e.length > -1 && !e.return) switch (e.type) { case ft: e.return = Ut(e.value, e.length, r); return; case Lt: return Ye([J(e, { value: m(e.value, "@", "@" + k) })], n); case He: if (e.length) return Or(r = e.props, function(o) { switch (H(o, n = /(::plac\w+|:read-\w+)/)) { // :read-(only|write) case ":read-only": case ":read-write": se(J(e, { props: [m(o, /:(read-\w+)/, ":" + _e + "$1")] })), se(J(e, { props: [o] })), ot(e, { props: xt(r, n) }); break; // :placeholder case "::placeholder": se(J(e, { props: [m(o, /:(plac\w+)/, ":" + k + "input-$1")] })), se(J(e, { props: [m(o, /:(plac\w+)/, ":" + _e + "$1")] })), se(J(e, { props: [m(o, /:(plac\w+)/, C + "input-$1")] })), se(J(e, { props: [o] })), ot(e, { props: xt(r, n) }); break; } return ""; }); } } var Wr = { animationIterationCount: 1, aspectRatio: 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 }, re = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Ht = "active", Wt = "data-styled-version", Je = "6.1.19", ht = `/*!sc*/ `, Ge = typeof window < "u" && typeof document < "u", qr = !!(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 : typeof process < "u" && process.env !== void 0 && 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"), Et = /invalid hook call/i, Ie = /* @__PURE__ */ new Set(), Xr = function(e, t) { if (process.env.NODE_ENV !== "production") { var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` 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. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `, o = console.error; try { var s = !0; console.error = function(i) { for (var u = [], l = 1; l < arguments.length; l++) u[l - 1] = arguments[l]; Et.test(i) ? (s = !1, Ie.delete(n)) : o.apply(void 0, ue([i], u, !1)); }, hr(), s && !Ie.has(n) && (console.warn(n), Ie.add(n)); } catch (i) { Et.test(i.message) && Ie.delete(n); } finally { console.error = o; } } }, Ze = Object.freeze([]), pe = Object.freeze({}); function Jr(e, t, r) { return r === void 0 && (r = pe), e.theme !== r.theme && e.theme || t || r.theme; } var it = /* @__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"]), Zr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Kr = /(^-|-$)/g; function At(e) { return e.replace(Zr, "-").replace(Kr, ""); } var Qr = /(a)(d)/gi, $e = 52, Ct = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function ct(e) { var t, r = ""; for (t = Math.abs(e); t > $e; t = t / $e | 0) r = Ct(t % $e) + r; return (Ct(t % $e) + r).replace(Qr, "$1-$2"); } var et, qt = 5381, K = function(e, t) { for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r); return e; }, Xt = function(e) { return K(qt, e); }; function en(e) { return ct(Xt(e) >>> 0); } function Jt(e) { return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component"; } function tt(e) { return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase()); } var Zt = typeof Symbol == "function" && Symbol.for, Kt = Zt ? Symbol.for("react.memo") : 60115, tn = Zt ? Symbol.for("react.forward_ref") : 60112, rn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, nn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Qt = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, on = ((et = {})[tn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, et[Kt] = Qt, et); function _t(e) { return ("type" in (t = e) && t.type.$$typeof) === Kt ? Qt : "$$typeof" in e ? on[e.$$typeof] : rn; var t; } var sn = Object.defineProperty, an = Object.getOwnPropertyNames, Tt = Object.getOwnPropertySymbols, cn = Object.getOwnPropertyDescriptor, ln = Object.getPrototypeOf, jt = Object.prototype; function er(e, t, r) { if (typeof t != "string") { if (jt) { var n = ln(t); n && n !== jt && er(e, n, r); } var o = an(t); Tt && (o = o.concat(Tt(t))); for (var s = _t(e), i = _t(t), u = 0; u < o.length; ++u) { var l = o[u]; if (!(l in nn || r && r[l] || i && l in i || s && l in s)) { var y = cn(t, l); try { sn(e, l, y); } catch { } } } } return e; } function he(e) { return typeof e == "function"; } function mt(e) { return typeof e == "object" && "styledComponentId" in e; } function Q(e, t) { return e && t ? "".concat(e, " ").concat(t) : e || t || ""; } function Rt(e, t) { if (e.length === 0) return ""; for (var r = e[0], n = 1; n < e.length; n++) r += e[n]; return r; } function me(e) { return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof); } function lt(e, t, r) { if (r === void 0 && (r = !1), !r && !me(e) && !Array.isArray(e)) return t; if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = lt(e[n], t[n]); else if (me(t)) for (var n in t) e[n] = lt(e[n], t[n]); return e; } function gt(e, t) { Object.defineProperty(e, "toString", { value: t }); } var un = 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? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {}; function dn() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for (var r = e[0], n = [], o = 1, s = e.length; o < s; o += 1) n.push(e[o]); return n.forEach(function(i) { r = r.replace(/%[a-z]/, i); }), r; } function be(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(dn.apply(void 0, ue([un[e]], t, !1)).trim()); } var fn = function() { function e(t) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t; } return e.prototype.indexOfGroup = function(t) { for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n]; return r; }, e.prototype.insertRules = function(t, r) { if (t >= this.groupSizes.length) { for (var n = this.groupSizes, o = n.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw be(16, "".concat(t)); this.groupSizes = new Uint32Array(s), this.groupSizes.set(n), this.length = s; for (var i = o; i < s; i++) this.groupSizes[i] = 0; } for (var u = this.indexOfGroup(t + 1), l = (i = 0, r.length); i < l; i++) this.tag.insertRule(u, r[i]) && (this.groupSizes[t]++, u++); }, e.prototype.clearGroup = function(t) { if (t < this.length) { var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r; this.groupSizes[t] = 0; for (var s = n; s < o; s++) this.tag.deleteRule(n); } }, e.prototype.getGroup = function(t) { var r = ""; if (t >= this.length || this.groupSizes[t] === 0) return r; for (var n = this.groupSizes[t], o = this.indexOfGroup(t), s = o + n, i = o; i < s; i++) r += "".concat(this.tag.getRule(i)).concat(ht); return r; }, e; }(), pn = 1 << 30, Ve = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), Be = 1, Fe = function(e) { if (Ve.has(e)) return Ve.get(e); for (; Ue.has(Be); ) Be++; var t = Be++; if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > pn)) throw be(16, "".concat(t)); return Ve.set(e, t), Ue.set(t, e), t; }, hn = function(e, t) { Be = t + 1, Ve.set(e, t), Ue.set(t, e); }, mn = "style[".concat(re, "][").concat(Wt, '="').concat(Je, '"]'), gn = new RegExp("^".concat(re, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), yn = function(e, t, r) { for (var n, o = r.split(","), s = 0, i = o.length; s < i; s++) (n = o[s]) && e.registerName(t, n); }, vn = function(e, t) { for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ht), o = [], s = 0, i = n.length; s < i; s++) { var u = n[s].trim(); if (u) { var l = u.match(gn); if (l) { var y = 0 | parseInt(l[1], 10), v = l[2]; y !== 0 && (hn(v, y), yn(e, v, l[3]), e.getTag().insertRules(y, o)), o.length = 0; } else o.push(u); } } }, Pt = function(e) { for (var t = document.querySelectorAll(mn), r = 0, n = t.length; r < n; r++) { var o = t[r]; o && o.getAttribute(re) !== Ht && (vn(e, o), o.parentNode && o.parentNode.removeChild(o)); } }; function bn() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } var tr = function(e) { var t = document.head, r = e || t, n = document.createElement("style"), o = function(u) { var l = Array.from(u.querySelectorAll("style[".concat(re, "]"))); return l[l.length - 1]; }(r), s = o !== void 0 ? o.nextSibling : null; n.setAttribute(re, Ht), n.setAttribute(Wt, Je); var i = bn(); return i && n.setAttribute("nonce", i), r.insertBefore(n, s), n; }, wn = function() { function e(t) { this.element = tr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { if (r.sheet) return r.sheet; for (var n = document.styleSheets, o = 0, s = n.length; o < s; o++) { var i = n[o]; if (i.ownerNode === r) return i; } throw be(17); }(this.element), this.length = 0; } return e.prototype.insertRule = function(t, r) { try { return this.sheet.insertRule(r, t), this.length++, !0; } catch { return !1; } }, e.prototype.deleteRule = function(t) { this.sheet.deleteRule(t), this.length--; }, e.prototype.getRule = function(t) { var r = this.sheet.cssRules[t]; return r && r.cssText ? r.cssText : ""; }, e; }(), xn = function() { function e(t) { this.element = tr(t), this.nodes = this.element.childNodes, this.length = 0; } return e.prototype.insertRule = function(t, r) { if (t <= this.length && t >= 0) { var n = document.createTextNode(r); return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0; } return !1; }, e.prototype.deleteRule = function(t) { this.element.removeChild(this.nodes[t]), this.length--; }, e.prototype.getRule = function(t) { return t < this.length ? this.nodes[t].textContent : ""; }, e; }(), kn = function() { function e(t) { this.rules = [], this.length = 0; } return e.prototype.insertRule = function(t, r) { return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0); }, e.prototype.deleteRule = function(t) { this.rules.splice(t, 1), this.length--; }, e.prototype.getRule = function(t) { return t < this.length ? this.rules[t] : ""; }, e; }(), Ot = Ge, Sn = { isServer: !Ge, useCSSOMInjection: !qr }, rr = function() { function e(t, r, n) { t === void 0 && (t = pe), r === void 0 && (r = {}); var o = this; this.options = D(D({}, Sn), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Ge && Ot && (Ot = !1, Pt(this)), gt(this, function() { return function(s) { for (var i = s.getTag(), u = i.length, l = "", y = function(d) { var p = function(R) { return Ue.get(R); }(d); if (p === void 0) return "continue"; var g = s.names.get(p), x = i.getGroup(d); if (g === void 0 || !g.size || x.length === 0) return "continue"; var A = "".concat(re, ".g").concat(d, '[id="').concat(p, '"]'), I = ""; g !== void 0 && g.forEach(function(R) { R.length > 0 && (I += "".concat(R, ",")); }), l += "".concat(x).concat(A, '{content:"').concat(I, '"}').concat(ht); }, v = 0; v < u; v++) y(v); return l; }(o); }); } return e.registerId = function(t) { return Fe(t); }, e.prototype.rehydrate = function() { !this.server && Ge && Pt(this); }, e.prototype.reconstructWithOptions = function(t, r) { return r === void 0 && (r = !0), new e(D(D({}, this.options), t), this.gs, r && this.names || void 0); }, e.prototype.allocateGSInstance = function(t) { return this.gs[t] = (this.gs[t] || 0) + 1; }, e.prototype.getTag = function() { return this.tag || (this.tag = (t = function(r) { var n = r.useCSSOMInjection, o = r.target; return r.isServer ? new kn(o) : n ? new wn(o) : new xn(o); }(this.options), new fn(t))); var t; }, e.prototype.hasNameForId = function(t, r) { return this.names.has(t) && this.names.get(t).has(r); }, e.prototype.registerName = function(t, r) { if (Fe(t), this.names.has(t)) this.names.get(t).add(r); else { var n = /* @__PURE__ */ new Set(); n.add(r), this.names.set(t, n); } }, e.prototype.insertRules = function(t, r, n) { this.registerName(t, r), this.getTag().insertRules(Fe(t), n); }, e.prototype.clearNames = function(t) { this.names.has(t) && this.names.get(t).clear(); }, e.prototype.clearRules = function(t) { this.getTag().clearGroup(Fe(t)), this.clearNames(t); }, e.prototype.clearTag = function() { this.tag = void 0; }, e; }(), En = /&/g, An = /^\s*\/\/.*$/gm; function nr(e, t) { return e.map(function(r) { return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) { return "".concat(t, " ").concat(n); })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = nr(r.children, t)), r; }); } function Cn(e) { var t, r, n, o = pe, s = o.options, i = s === void 0 ? pe : s, u = o.plugins, l = u === void 0 ? Ze : u, y = function(p, g, x) { return x.startsWith(r) && x.endsWith(r) && x.replaceAll(r, "").length > 0 ? ".".concat(t) : p; }, v = l.slice(); v.push(function(p) { p.type === He && p.value.includes("&") && (p.props[0] = p.props[0].replace(En, r).replace(n, y)); }), i.prefix && v.push(Hr), v.push(Yr); var d = function(p, g, x, A) { g === void 0 && (g = ""), x === v