UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

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