UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

1,341 lines (1,322 loc) 73.9 kB
import ye, { useRef as on, useDebugValue as Ht, createElement as an, useContext as sn } from "react"; var bt = { exports: {} }, De = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var qt; function cn() { if (qt) return De; qt = 1; var e = ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 }; function c(f, l, p) { var h, g = {}, v = null, w = null; p !== void 0 && (v = "" + p), l.key !== void 0 && (v = "" + l.key), l.ref !== void 0 && (w = l.ref); for (h in l) o.call(l, h) && !i.hasOwnProperty(h) && (g[h] = l[h]); if (f && f.defaultProps) for (h in l = f.defaultProps, l) g[h] === void 0 && (g[h] = l[h]); return { $$typeof: t, type: f, key: v, ref: w, props: g, _owner: a.current }; } return De.Fragment = r, De.jsx = c, De.jsxs = c, De; } var je = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Xt; function un() { return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() { var e = ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), k = Symbol.iterator, A = "@@iterator"; function F(n) { if (n === null || typeof n != "object") return null; var s = k && n[k] || n[A]; return typeof s == "function" ? s : null; } var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function b(n) { { for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++) u[m - 1] = arguments[m]; L("error", n, u); } } function L(n, s, u) { { var m = R.ReactDebugCurrentFrame, _ = m.getStackAddendum(); _ !== "" && (s += "%s", u = u.concat([_])); var x = u.map(function(E) { return String(E); }); x.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, x); } } var P = !1, T = !1, O = !1, d = !1, M = !1, K; K = Symbol.for("react.module.reference"); function ae(n) { return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || M || n === a || n === p || n === h || d || n === w || P || T || O || typeof n == "object" && n !== null && (n.$$typeof === v || n.$$typeof === g || n.$$typeof === c || n.$$typeof === f || n.$$typeof === l || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. n.$$typeof === K || n.getModuleId !== void 0)); } function st(n, s, u) { var m = n.displayName; if (m) return m; var _ = s.displayName || s.name || ""; return _ !== "" ? u + "(" + _ + ")" : u; } function ze(n) { return n.displayName || "Context"; } function H(n) { if (n == null) return null; if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null; if (typeof n == "string") return n; switch (n) { case o: return "Fragment"; case r: return "Portal"; case i: return "Profiler"; case a: return "StrictMode"; case p: return "Suspense"; case h: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case f: var s = n; return ze(s) + ".Consumer"; case c: var u = n; return ze(u._context) + ".Provider"; case l: return st(n, n.render, "ForwardRef"); case g: var m = n.displayName || null; return m !== null ? m : H(n.type) || "Memo"; case v: { var _ = n, x = _._payload, E = _._init; try { return H(E(x)); } catch { return null; } } } return null; } var ee = Object.assign, ie = 0, Ve, Ye, We, be, q, le, se; function z() { } z.__reactDisabledLog = !0; function Ae() { { if (ie === 0) { Ve = console.log, Ye = console.info, We = console.warn, be = console.error, q = console.group, le = console.groupCollapsed, se = console.groupEnd; var n = { configurable: !0, enumerable: !0, value: z, writable: !0 }; Object.defineProperties(console, { info: n, log: n, warn: n, error: n, group: n, groupCollapsed: n, groupEnd: n }); } ie++; } } function Ie() { { if (ie--, ie === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: ee({}, n, { value: Ve }), info: ee({}, n, { value: Ye }), warn: ee({}, n, { value: We }), error: ee({}, n, { value: be }), group: ee({}, n, { value: q }), groupCollapsed: ee({}, n, { value: le }), groupEnd: ee({}, n, { value: se }) }); } ie < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var ce = R.ReactCurrentDispatcher, te; function re(n, s, u) { { if (te === void 0) try { throw Error(); } catch (_) { var m = _.stack.trim().match(/\n( *(at )?)/); te = m && m[1] || ""; } return ` ` + te + n; } } var J = !1, W; { var $e = typeof WeakMap == "function" ? WeakMap : Map; W = new $e(); } function fe(n, s) { if (!n || J) return ""; { var u = W.get(n); if (u !== void 0) return u; } var m; J = !0; var _ = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var x; x = ce.current, ce.current = null, Ae(); try { if (s) { var E = function() { throw Error(); }; if (Object.defineProperty(E.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(E, []); } catch (ne) { m = ne; } Reflect.construct(n, [], E); } else { try { E.call(); } catch (ne) { m = ne; } n.call(E.prototype); } } else { try { throw Error(); } catch (ne) { m = ne; } n(); } } catch (ne) { if (ne && m && typeof ne.stack == "string") { for (var S = ne.stack.split(` `), V = m.stack.split(` `), $ = S.length - 1, N = V.length - 1; $ >= 1 && N >= 0 && S[$] !== V[N]; ) N--; for (; $ >= 1 && N >= 0; $--, N--) if (S[$] !== V[N]) { if ($ !== 1 || N !== 1) do if ($--, N--, N < 0 || S[$] !== V[N]) { var B = ` ` + S[$].replace(" at new ", " at "); return n.displayName && B.includes("<anonymous>") && (B = B.replace("<anonymous>", n.displayName)), typeof n == "function" && W.set(n, B), B; } while ($ >= 1 && N >= 0); break; } } } finally { J = !1, ce.current = x, Ie(), Error.prepareStackTrace = _; } var Se = n ? n.displayName || n.name : "", Ut = Se ? re(Se) : ""; return typeof n == "function" && W.set(n, Ut), Ut; } function Z(n, s, u) { return fe(n, !1); } function Fr(n) { var s = n.prototype; return !!(s && s.isReactComponent); } function Be(n, s, u) { if (n == null) return ""; if (typeof n == "function") return fe(n, Fr(n)); if (typeof n == "string") return re(n); switch (n) { case p: return re("Suspense"); case h: return re("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case l: return Z(n.render); case g: return Be(n.type, s, u); case v: { var m = n, _ = m._payload, x = m._init; try { return Be(x(_), s, u); } catch { } } } return ""; } var Ge = Object.prototype.hasOwnProperty, Nt = {}, Dt = R.ReactDebugCurrentFrame; function Ue(n) { if (n) { var s = n._owner, u = Be(n.type, n._source, s ? s.type : null); Dt.setExtraStackFrame(u); } else Dt.setExtraStackFrame(null); } function Lr(n, s, u, m, _) { { var x = Function.call.bind(Ge); for (var E in n) if (x(n, E)) { var S = void 0; try { if (typeof n[E] != "function") { var V = Error((m || "React class") + ": " + u + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw V.name = "Invariant Violation", V; } S = n[E](s, E, m, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch ($) { S = $; } S && !(S instanceof Error) && (Ue(_), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", u, E, typeof S), Ue(null)), S instanceof Error && !(S.message in Nt) && (Nt[S.message] = !0, Ue(_), b("Failed %s type: %s", u, S.message), Ue(null)); } } } var Mr = Array.isArray; function ct(n) { return Mr(n); } function zr(n) { { var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && n[Symbol.toStringTag] || n.constructor.name || "Object"; return u; } } function Vr(n) { try { return jt(n), !1; } catch { return !0; } } function jt(n) { return "" + n; } function Ft(n) { if (Vr(n)) return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zr(n)), jt(n); } var Ne = R.ReactCurrentOwner, Yr = { key: !0, ref: !0, __self: !0, __source: !0 }, Lt, Mt, ut; ut = {}; function Wr(n) { if (Ge.call(n, "ref")) { var s = Object.getOwnPropertyDescriptor(n, "ref").get; if (s && s.isReactWarning) return !1; } return n.ref !== void 0; } function Br(n) { if (Ge.call(n, "key")) { var s = Object.getOwnPropertyDescriptor(n, "key").get; if (s && s.isReactWarning) return !1; } return n.key !== void 0; } function Gr(n, s) { if (typeof n.ref == "string" && Ne.current && s && Ne.current.stateNode !== s) { var u = H(Ne.current.type); ut[u] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', H(Ne.current.type), n.ref), ut[u] = !0); } } function Ur(n, s) { { var u = function() { Lt || (Lt = !0, b("%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://reactjs.org/link/special-props)", s)); }; u.isReactWarning = !0, Object.defineProperty(n, "key", { get: u, configurable: !0 }); } } function Hr(n, s) { { var u = function() { Mt || (Mt = !0, b("%s: `ref` 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://reactjs.org/link/special-props)", s)); }; u.isReactWarning = !0, Object.defineProperty(n, "ref", { get: u, configurable: !0 }); } } var qr = function(n, s, u, m, _, x, E) { var S = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: n, key: s, ref: u, props: E, // Record the component responsible for creating this element. _owner: x }; return S._store = {}, Object.defineProperty(S._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(S, "_self", { configurable: !1, enumerable: !1, writable: !1, value: m }), Object.defineProperty(S, "_source", { configurable: !1, enumerable: !1, writable: !1, value: _ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S; }; function Xr(n, s, u, m, _) { { var x, E = {}, S = null, V = null; u !== void 0 && (Ft(u), S = "" + u), Br(s) && (Ft(s.key), S = "" + s.key), Wr(s) && (V = s.ref, Gr(s, _)); for (x in s) Ge.call(s, x) && !Yr.hasOwnProperty(x) && (E[x] = s[x]); if (n && n.defaultProps) { var $ = n.defaultProps; for (x in $) E[x] === void 0 && (E[x] = $[x]); } if (S || V) { var N = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; S && Ur(E, N), V && Hr(E, N); } return qr(n, S, V, _, m, Ne.current, E); } } var lt = R.ReactCurrentOwner, zt = R.ReactDebugCurrentFrame; function we(n) { if (n) { var s = n._owner, u = Be(n.type, n._source, s ? s.type : null); zt.setExtraStackFrame(u); } else zt.setExtraStackFrame(null); } var ft; ft = !1; function dt(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } function Vt() { { if (lt.current) { var n = H(lt.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function Kr(n) { { if (n !== void 0) { var s = n.fileName.replace(/^.*[\\\/]/, ""), u = n.lineNumber; return ` Check your code at ` + s + ":" + u + "."; } return ""; } } var Yt = {}; function Jr(n) { { var s = Vt(); if (!s) { var u = typeof n == "string" ? n : n.displayName || n.name; u && (s = ` Check the top-level render call using <` + u + ">."); } return s; } } function Wt(n, s) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var u = Jr(s); if (Yt[u]) return; Yt[u] = !0; var m = ""; n && n._owner && n._owner !== lt.current && (m = " It was passed a child from " + H(n._owner.type) + "."), we(n), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, m), we(null); } } function Bt(n, s) { { if (typeof n != "object") return; if (ct(n)) for (var u = 0; u < n.length; u++) { var m = n[u]; dt(m) && Wt(m, s); } else if (dt(n)) n._store && (n._store.validated = !0); else if (n) { var _ = F(n); if (typeof _ == "function" && _ !== n.entries) for (var x = _.call(n), E; !(E = x.next()).done; ) dt(E.value) && Wt(E.value, s); } } } function Zr(n) { { var s = n.type; if (s == null || typeof s == "string") return; var u; if (typeof s == "function") u = s.propTypes; else if (typeof s == "object" && (s.$$typeof === l || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. s.$$typeof === g)) u = s.propTypes; else return; if (u) { var m = H(s); Lr(u, n.props, "prop", m, n); } else if (s.PropTypes !== void 0 && !ft) { ft = !0; var _ = H(s); b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown"); } typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Qr(n) { { for (var s = Object.keys(n.props), u = 0; u < s.length; u++) { var m = s[u]; if (m !== "children" && m !== "key") { we(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), we(null); break; } } n.ref !== null && (we(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), we(null)); } } function Gt(n, s, u, m, _, x) { { var E = ae(n); if (!E) { var S = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var V = Kr(_); V ? S += V : S += Vt(); var $; n === null ? $ = "null" : ct(n) ? $ = "array" : n !== void 0 && n.$$typeof === t ? ($ = "<" + (H(n.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, S); } var N = Xr(n, s, u, _, x); if (N == null) return N; if (E) { var B = s.children; if (B !== void 0) if (m) if (ct(B)) { for (var Se = 0; Se < B.length; Se++) Bt(B[Se], n); Object.freeze && Object.freeze(B); } else b("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 Bt(B, n); } return n === o ? Qr(N) : Zr(N), N; } } function en(n, s, u) { return Gt(n, s, u, !0); } function tn(n, s, u) { return Gt(n, s, u, !1); } var rn = tn, nn = en; je.Fragment = o, je.jsx = rn, je.jsxs = nn; }()), je; } process.env.NODE_ENV === "production" ? bt.exports = cn() : bt.exports = un(); var ln = bt.exports; const Me = ln.jsx; var pe = /* @__PURE__ */ ((e) => (e.TEXT = "TEXT", e.TITLE = "TITLE", e.PARAGRAPH = "PARAGRAPH", e))(pe || {}), Y = function() { return Y = Object.assign || function(t) { for (var r, o = 1, a = arguments.length; o < a; o++) { r = arguments[o]; for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]); } return t; }, Y.apply(this, arguments); }; function Re(e, t, r) { if (r || arguments.length === 2) for (var o = 0, a = t.length, i; o < a; o++) (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]); return e.concat(i || Array.prototype.slice.call(t)); } function fn(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var dn = /^((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|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)-.*))$/, pn = /* @__PURE__ */ fn( function(e) { return dn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ), I = "-ms-", Le = "-moz-", C = "-webkit-", pr = "comm", nt = "rule", Tt = "decl", hn = "@import", hr = "@keyframes", mn = "@layer", gn = Math.abs, xt = String.fromCharCode, wt = Object.assign; function yn(e, t) { return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0; } function mr(e) { return e.trim(); } function oe(e, t) { return (e = t.exec(e)) ? e[0] : e; } function y(e, t, r) { return e.replace(t, r); } function Je(e, t) { return e.indexOf(t); } function j(e, t) { return e.charCodeAt(t) | 0; } function _e(e, t, r) { return e.slice(t, r); } function Q(e) { return e.length; } function gr(e) { return e.length; } function Fe(e, t) { return t.push(e), e; } function vn(e, t) { return e.map(t).join(""); } function Kt(e, t) { return e.filter(function(r) { return !oe(r, t); }); } var ot = 1, Ce = 1, yr = 0, U = 0, D = 0, Pe = ""; function at(e, t, r, o, a, i, c, f) { return { value: e, root: t, parent: r, type: o, props: a, children: i, line: ot, column: Ce, length: c, return: "", siblings: f }; } function ue(e, t) { return wt(at("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function Ee(e) { for (; e.root; ) e = ue(e.root, { children: [e] }); Fe(e, e.siblings); } function bn() { return D; } function wn() { return D = U > 0 ? j(Pe, --U) : 0, Ce--, D === 10 && (Ce = 1, ot--), D; } function X() { return D = U < yr ? j(Pe, U++) : 0, Ce++, D === 10 && (Ce = 1, ot++), D; } function me() { return j(Pe, U); } function Ze() { return U; } function it(e, t) { return _e(Pe, e, t); } function St(e) { switch (e) { 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 Sn(e) { return ot = Ce = 1, yr = Q(Pe = e), U = 0, []; } function En(e) { return Pe = "", e; } function pt(e) { return mr(it(U - 1, Et(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Rn(e) { for (; (D = me()) && D < 33; ) X(); return St(e) > 2 || St(D) > 3 ? "" : " "; } function _n(e, t) { for (; --t && X() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); ) ; return it(e, Ze() + (t < 6 && me() == 32 && X() == 32)); } function Et(e) { for (; X(); ) switch (D) { case e: return U; case 34: case 39: e !== 34 && e !== 39 && Et(D); break; case 40: e === 41 && Et(e); break; case 92: X(); break; } return U; } function Cn(e, t) { for (; X() && e + D !== 47 + 10; ) if (e + D === 42 + 42 && me() === 47) break; return "/*" + it(t, U - 1) + "*" + xt(e === 47 ? e : X()); } function kn(e) { for (; !St(me()); ) X(); return it(e, U); } function Tn(e) { return En(Qe("", null, null, null, [""], e = Sn(e), 0, [0], e)); } function Qe(e, t, r, o, a, i, c, f, l) { for (var p = 0, h = 0, g = c, v = 0, w = 0, k = 0, A = 1, F = 1, R = 1, b = 0, L = "", P = a, T = i, O = o, d = L; F; ) switch (k = b, b = X()) { case 40: if (k != 108 && j(d, g - 1) == 58) { Je(d += y(pt(b), "&", "&\f"), "&\f") != -1 && (R = -1); break; } case 34: case 39: case 91: d += pt(b); break; case 9: case 10: case 13: case 32: d += Rn(k); break; case 92: d += _n(Ze() - 1, 7); continue; case 47: switch (me()) { case 42: case 47: Fe(xn(Cn(X(), Ze()), t, r, l), l); break; default: d += "/"; } break; case 123 * A: f[p++] = Q(d) * R; case 125 * A: case 59: case 0: switch (b) { case 0: case 125: F = 0; case 59 + h: R == -1 && (d = y(d, /\f/g, "")), w > 0 && Q(d) - g && Fe(w > 32 ? Zt(d + ";", o, r, g - 1, l) : Zt(y(d, " ", "") + ";", o, r, g - 2, l), l); break; case 59: d += ";"; default: if (Fe(O = Jt(d, t, r, p, h, a, f, L, P = [], T = [], g, i), i), b === 123) if (h === 0) Qe(d, t, O, O, P, i, g, f, T); else switch (v === 99 && j(d, 3) === 110 ? 100 : v) { case 100: case 108: case 109: case 115: Qe(e, O, O, o && Fe(Jt(e, O, O, 0, 0, a, f, L, a, P = [], g, T), T), a, T, g, f, o ? P : T); break; default: Qe(d, O, O, O, [""], T, 0, f, T); } } p = h = w = 0, A = R = 1, L = d = "", g = c; break; case 58: g = 1 + Q(d), w = k; default: if (A < 1) { if (b == 123) --A; else if (b == 125 && A++ == 0 && wn() == 125) continue; } switch (d += xt(b), b * A) { case 38: R = h > 0 ? 1 : (d += "\f", -1); break; case 44: f[p++] = (Q(d) - 1) * R, R = 1; break; case 64: me() === 45 && (d += pt(X())), v = me(), h = g = Q(L = d += kn(Ze())), b++; break; case 45: k === 45 && Q(d) == 2 && (A = 0); } } return i; } function Jt(e, t, r, o, a, i, c, f, l, p, h, g) { for (var v = a - 1, w = a === 0 ? i : [""], k = gr(w), A = 0, F = 0, R = 0; A < o; ++A) for (var b = 0, L = _e(e, v + 1, v = gn(F = c[A])), P = e; b < k; ++b) (P = mr(F > 0 ? w[b] + " " + L : y(L, /&\f/g, w[b]))) && (l[R++] = P); return at(e, t, r, a === 0 ? nt : f, l, p, h, g); } function xn(e, t, r, o) { return at(e, t, r, pr, xt(bn()), _e(e, 2, -2), 0, o); } function Zt(e, t, r, o, a) { return at(e, t, r, Tt, _e(e, 0, o), _e(e, o + 1, -1), o, a); } function vr(e, t, r) { switch (yn(e, t)) { case 5103: return C + "print-" + e + e; 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 C + e + e; case 4789: return Le + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return C + e + Le + e + I + e + e; case 5936: switch (j(e, t + 11)) { case 114: return C + e + I + y(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return C + e + I + y(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return C + e + I + y(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } case 6828: case 4268: case 2903: return C + e + I + e + e; case 6165: return C + e + I + "flex-" + e + e; case 5187: return C + e + y(e, /(\w+).+(:[^]+)/, C + "box-$1$2" + I + "flex-$1$2") + e; case 5443: return C + e + I + "flex-item-" + y(e, /flex-|-self/g, "") + (oe(e, /flex-|baseline/) ? "" : I + "grid-row-" + y(e, /flex-|-self/g, "")) + e; case 4675: return C + e + I + "flex-line-pack" + y(e, /align-content|flex-|-self/g, "") + e; case 5548: return C + e + I + y(e, "shrink", "negative") + e; case 5292: return C + e + I + y(e, "basis", "preferred-size") + e; case 6060: return C + "box-" + y(e, "-grow", "") + C + e + I + y(e, "grow", "positive") + e; case 4554: return C + y(e, /([^-])(transform)/g, "$1" + C + "$2") + e; case 6187: return y(y(y(e, /(zoom-|grab)/, C + "$1"), /(image-set)/, C + "$1"), e, "") + e; case 5495: case 3959: return y(e, /(image-set\([^]*)/, C + "$1$`$1"); case 4968: return y(y(e, /(.+:)(flex-)?(.*)/, C + "box-pack:$3" + I + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + C + e + e; case 4200: if (!oe(e, /flex-|baseline/)) return I + "grid-column-align" + _e(e, t) + e; break; case 2592: case 3360: return I + y(e, "template-", "") + e; case 4384: case 3616: return r && r.some(function(o, a) { return t = a, oe(o.props, /grid-\w+-end/); }) ? ~Je(e + (r = r[t].value), "span") ? e : I + y(e, "-start", "") + e + I + "grid-row-span:" + (~Je(r, "span") ? oe(r, /\d+/) : +oe(r, /\d+/) - +oe(e, /\d+/)) + ";" : I + y(e, "-start", "") + e; case 4896: case 4128: return r && r.some(function(o) { return oe(o.props, /grid-\w+-start/); }) ? e : I + y(y(e, "-end", "-span"), "span ", "") + e; case 4095: case 3583: case 4068: case 2532: return y(e, /(.+)-inline(.+)/, C + "$1$2") + e; 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 (Q(e) - 1 - t > 6) switch (j(e, t + 1)) { case 109: if (j(e, t + 4) !== 45) break; case 102: return y(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + Le + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~Je(e, "stretch") ? vr(y(e, "stretch", "fill-available"), t, r) + e : e; } break; case 5152: case 5920: return y(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, a, i, c, f, l, p) { return I + a + ":" + i + p + (c ? I + a + "-span:" + (f ? l : +l - +i) + p : "") + e; }); case 4949: if (j(e, t + 6) === 121) return y(e, ":", ":" + C) + e; break; case 6444: switch (j(e, j(e, 14) === 45 ? 18 : 11)) { case 120: return y(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + C + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + C + "$2$3$1" + I + "$2box$3") + e; case 100: return y(e, ":", ":" + I) + e; } break; case 5719: case 2647: case 2135: case 3927: case 2391: return y(e, "scroll-", "scroll-snap-") + e; } return e; } function tt(e, t) { for (var r = "", o = 0; o < e.length; o++) r += t(e[o], o, e, t) || ""; return r; } function Pn(e, t, r, o) { switch (e.type) { case mn: if (e.children.length) break; case hn: case Tt: return e.return = e.return || e.value; case pr: return ""; case hr: return e.return = e.value + "{" + tt(e.children, o) + "}"; case nt: if (!Q(e.value = e.props.join(","))) return ""; } return Q(r = tt(e.children, o)) ? e.return = e.value + "{" + r + "}" : ""; } function On(e) { var t = gr(e); return function(r, o, a, i) { for (var c = "", f = 0; f < t; f++) c += e[f](r, o, a, i) || ""; return c; }; } function An(e) { return function(t) { t.root || (t = t.return) && e(t); }; } function In(e, t, r, o) { if (e.length > -1 && !e.return) switch (e.type) { case Tt: e.return = vr(e.value, e.length, r); return; case hr: return tt([ue(e, { value: y(e.value, "@", "@" + C) })], o); case nt: if (e.length) return vn(r = e.props, function(a) { switch (oe(a, o = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": Ee(ue(e, { props: [y(a, /:(read-\w+)/, ":" + Le + "$1")] })), Ee(ue(e, { props: [a] })), wt(e, { props: Kt(r, o) }); break; case "::placeholder": Ee(ue(e, { props: [y(a, /:(plac\w+)/, ":" + C + "input-$1")] })), Ee(ue(e, { props: [y(a, /:(plac\w+)/, ":" + Le + "$1")] })), Ee(ue(e, { props: [y(a, /:(plac\w+)/, I + "input-$1")] })), Ee(ue(e, { props: [a] })), wt(e, { props: Kt(r, o) }); break; } return ""; }); } } var $n = { 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 }, ve = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Pt = typeof window < "u" && "HTMLElement" in window, Nn = !!(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"), Qt = /invalid hook call/i, He = /* @__PURE__ */ new Set(), Dn = function(e, t) { if (process.env.NODE_ENV !== "production") { var r = t ? ' with the id of "'.concat(t, '"') : "", o = "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.`, a = console.error; try { var i = !0; console.error = function(c) { for (var f = [], l = 1; l < arguments.length; l++) f[l - 1] = arguments[l]; Qt.test(c) ? (i = !1, He.delete(o)) : a.apply(void 0, Re([c], f, !1)); }, on(), i && !He.has(o) && (console.warn(o), He.add(o)); } catch (c) { Qt.test(c.message) && He.delete(o); } finally { console.error = a; } } }, Ot = Object.freeze([]), ke = Object.freeze({}); function jn(e, t, r) { return r === void 0 && (r = ke), e.theme !== r.theme && e.theme || t || r.theme; } var br = /* @__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", "head", "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", "title", "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"]), Fn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ln = /(^-|-$)/g; function er(e) { return e.replace(Fn, "-").replace(Ln, ""); } var Mn = /(a)(d)/gi, tr = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function Rt(e) { var t, r = ""; for (t = Math.abs(e); t > 52; t = t / 52 | 0) r = tr(t % 52) + r; return (tr(t % 52) + r).replace(Mn, "$1-$2"); } var ht, de = function(e, t) { for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r); return e; }, wr = function(e) { return de(5381, e); }; function zn(e) { return Rt(wr(e) >>> 0); } function Sr(e) { return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component"; } function mt(e) { return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase()); } var Er = typeof Symbol == "function" && Symbol.for, Rr = Er ? Symbol.for("react.memo") : 60115, Vn = Er ? Symbol.for("react.forward_ref") : 60112, Yn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Wn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, _r = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Bn = ((ht = {})[Vn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ht[Rr] = _r, ht); function rr(e) { return ("type" in (t = e) && t.type.$$typeof) === Rr ? _r : "$$typeof" in e ? Bn[e.$$typeof] : Yn; var t; } var Gn = Object.defineProperty, Un = Object.getOwnPropertyNames, nr = Object.getOwnPropertySymbols, Hn = Object.getOwnPropertyDescriptor, qn = Object.getPrototypeOf, or = Object.prototype; function Cr(e, t, r) { if (typeof t != "string") { if (or) { var o = qn(t); o && o !== or && Cr(e, o, r); } var a = Un(t); nr && (a = a.concat(nr(t))); for (var i = rr(e), c = rr(t), f = 0; f < a.length; ++f) { var l = a[f]; if (!(l in Wn || r && r[l] || c && l in c || i && l in i)) { var p = Hn(t, l); try { Gn(e, l, p); } catch { } } } } return e; } function Te(e) { return typeof e == "function"; } function At(e) { return typeof e == "object" && "styledComponentId" in e; } function he(e, t) { return e && t ? "".concat(e, " ").concat(t) : e || t || ""; } function ar(e, t) { if (e.length === 0) return ""; for (var r = e[0], o = 1; o < e.length; o++) r += t ? t + e[o] : e[o]; return r; } function xe(e) { return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof); } function _t(e, t, r) { if (r === void 0 && (r = !1), !r && !xe(e) && !Array.isArray(e)) return t; if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = _t(e[o], t[o]); else if (xe(t)) for (var o in t) e[o] = _t(e[o], t[o]); return e; } function It(e, t) { Object.defineProperty(e, "toString", { value: t }); } var Xn = 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 Kn() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for (var r = e[0], o = [], a = 1, i = e.length; a < i; a += 1) o.push(e[a]); return o.forEach(function(c) { r = r.replace(/%[a-z]/, c); }), r; } function Oe(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(Kn.apply(void 0, Re([Xn[e]], t, !1)).trim()); } var Jn = 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, o = 0; o < t; o++) r += this.groupSizes[o]; return r; }, e.prototype.insertRules = function(t, r) { if (t >= this.groupSizes.length) { for (var o = this.groupSizes, a = o.length, i = a; t >= i; ) if ((