UNPKG

kylin-ui-component

Version:

A React UI library for some developers to develop quickly

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