UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

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