UNPKG

@unicity/design-system

Version:

A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support

1,480 lines 389 kB
import * as qe from "react"; import me, { useState as ir, useEffect as yt, createContext as zi, useContext as Hi, useRef as go, createElement as oa, useCallback as cr } from "react"; import { CssBaseline as qi, Box as $, Tooltip as jt, IconButton as _e, FormControl as lr, InputLabel as Dn, Select as In, MenuItem as Ve, Typography as X, Divider as Sr, Grid as dr, CardContent as br, TextField as xr, Button as Xe, Switch as mo, Chip as Ge, Badge as Br, Avatar as Cr, Slider as vo, LinearProgress as _t, Rating as yo, Fab as An, Card as bo, CardHeader as Gi, CardActions as Vi, Modal as Xi, Paper as Rt, FormHelperText as Mr, ListSubheader as Qi, FormControlLabel as bt, Alert as xo, Collapse as Fn, AlertTitle as Ki, Accordion as Zi, AccordionSummary as Ji, AccordionDetails as es, Checkbox as rs, Radio as ts, FormLabel as mn, RadioGroup as ns, Skeleton as as, List as Nn, ListItem as Wn, ListItemButton as wo, ListItemIcon as Ln, ListItemAvatar as To, ListItemText as $t, Tabs as os, Tab as is, CircularProgress as xt, Snackbar as ss, Slide as Bn, Fade as Yn, Zoom as So, Grow as Co, Breadcrumbs as Mo, Link as ko, Pagination as us, PaginationItem as ia, Popper as ls, ClickAwayListener as cs, MenuList as ds, Menu as Eo, Stepper as fs, Step as sa, StepButton as ps, StepContent as ua, StepLabel as hs, Autocomplete as gs, InputAdornment as ct, useTheme as Dt, useMediaQuery as Un, Drawer as ms, Toolbar as vs, AppBar as ys, InputBase as bs, ToggleButton as Oo, ToggleButtonGroup as xs, DialogContent as ws, DialogContentText as Ts, DialogActions as Ss, Dialog as Cs, DialogTitle as Ms, Backdrop as ks, SpeedDialAction as Es, SpeedDialIcon as Os, SpeedDial as Ps } from "@mui/material"; import { CacheProvider as js, Global as _s, ThemeContext as zn, css as Rs, keyframes as $s } from "@emotion/react"; import { LightMode as Ds, DarkMode as Is, Palette as As, AutoAwesome as Fs, NotificationsActive as Ns, Settings as Ws, Star as vn, Add as Po, Close as Vr, ExpandMore as jo, StarBorder as Ls, FavoriteBorder as Bs, Favorite as Ys, NavigateNext as _o, ArrowForwardIos as Us, ChevronRight as Ro, Home as zs, NavigateBefore as Hs, LastPage as qs, FirstPage as Gs, MoreVert as Vs, Error as $o, Check as Do, Search as yn, CalendarToday as Xs, DateRange as Qs, AccessTime as Ks, Clear as Zs, ChevronLeft as Js, ExpandLess as eu, ArrowBack as ru, Menu as tu, Notifications as nu, Warning as au } from "@mui/icons-material"; import ou from "@emotion/styled"; import { DataGridPro as iu } from "@mui/x-data-grid-pro"; import { TreeView as su, TreeItem as uu } from "@mui/x-tree-view"; import { LocalizationProvider as la, DatePicker as lu, DateTimePicker as cu, TimePicker as du } from "@mui/x-date-pickers"; function Io(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } function tr(e) { if (e.__esModule) return e; var r = e.default; if (typeof r == "function") { var n = function t() { return this instanceof t ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments); }; n.prototype = r.prototype; } else n = {}; return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) { var a = Object.getOwnPropertyDescriptor(e, t); Object.defineProperty(n, t, a.get ? a : { enumerable: !0, get: function() { return e[t]; } }); }), n; } var bn = { exports: {} }, $r = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ca; function fu() { if (ca) return $r; ca = 1; var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment"); function n(t, a, o) { var i = null; if (o !== void 0 && (i = "" + o), a.key !== void 0 && (i = "" + a.key), "key" in a) { o = {}; for (var u in a) u !== "key" && (o[u] = a[u]); } else o = a; return a = o.ref, { $$typeof: e, type: t, key: i, ref: a !== void 0 ? a : null, props: o }; } return $r.Fragment = r, $r.jsx = n, $r.jsxs = n, $r; } var Dr = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var da; function pu() { return da || (da = 1, process.env.NODE_ENV !== "production" && function() { function e(m) { if (m == null) return null; if (typeof m == "function") return m.$$typeof === B ? null : m.displayName || m.name || null; if (typeof m == "string") return m; switch (m) { case d: return "Fragment"; case w: return "Profiler"; case b: return "StrictMode"; case y: return "Suspense"; case O: return "SuspenseList"; case z: return "Activity"; } if (typeof m == "object") switch (typeof m.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), m.$$typeof) { case v: return "Portal"; case T: return (m.displayName || "Context") + ".Provider"; case S: return (m._context.displayName || "Context") + ".Consumer"; case E: var x = m.render; return m = m.displayName, m || (m = x.displayName || x.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m; case M: return x = m.displayName || null, x !== null ? x : e(m.type) || "Memo"; case U: x = m._payload, m = m._init; try { return e(m(x)); } catch { } } return null; } function r(m) { return "" + m; } function n(m) { try { r(m); var x = !1; } catch { x = !0; } if (x) { x = console; var C = x.error, A = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object"; return C.call( x, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", A ), r(m); } } function t(m) { if (m === d) return "<>"; if (typeof m == "object" && m !== null && m.$$typeof === U) return "<...>"; try { var x = e(m); return x ? "<" + x + ">" : "<...>"; } catch { return "<...>"; } } function a() { var m = Y.A; return m === null ? null : m.getOwner(); } function o() { return Error("react-stack-top-frame"); } function i(m) { if (G.call(m, "key")) { var x = Object.getOwnPropertyDescriptor(m, "key").get; if (x && x.isReactWarning) return !1; } return m.key !== void 0; } function u(m, x) { function C() { L || (L = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", x )); } C.isReactWarning = !0, Object.defineProperty(m, "key", { get: C, configurable: !0 }); } function l() { var m = e(this.type); return V[m] || (V[m] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), m = this.props.ref, m !== void 0 ? m : null; } function c(m, x, C, A, W, H, K, Q) { return C = H.ref, m = { $$typeof: g, type: m, key: x, props: H, _owner: W }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(m, "ref", { enumerable: !1, get: l }) : Object.defineProperty(m, "ref", { enumerable: !1, value: null }), m._store = {}, Object.defineProperty(m._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(m, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(m, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: K }), Object.defineProperty(m, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: Q }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m; } function f(m, x, C, A, W, H, K, Q) { var D = x.children; if (D !== void 0) if (A) if (J(D)) { for (A = 0; A < D.length; A++) p(D[A]); Object.freeze && Object.freeze(D); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else p(D); if (G.call(x, "key")) { D = e(m); var N = Object.keys(x).filter(function(Se) { return Se !== "key"; }); A = 0 < N.length ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}", Ae[D + A] || (N = 0 < N.length ? "{" + N.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, A, D, N, D ), Ae[D + A] = !0); } if (D = null, C !== void 0 && (n(C), D = "" + C), i(x) && (n(x.key), D = "" + x.key), "key" in x) { C = {}; for (var q in x) q !== "key" && (C[q] = x[q]); } else C = x; return D && u( C, typeof m == "function" ? m.displayName || m.name || "Unknown" : m ), c( m, D, H, W, a(), C, K, Q ); } function p(m) { typeof m == "object" && m !== null && m.$$typeof === g && m._store && (m._store.validated = 1); } var h = me, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), T = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), z = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), Y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, J = Array.isArray, F = console.createTask ? console.createTask : function() { return null; }; h = { "react-stack-bottom-frame": function(m) { return m(); } }; var L, V = {}, re = h["react-stack-bottom-frame"].bind( h, o )(), be = F(t(o)), Ae = {}; Dr.Fragment = d, Dr.jsx = function(m, x, C, A, W) { var H = 1e4 > Y.recentlyCreatedOwnerStacks++; return f( m, x, C, !1, A, W, H ? Error("react-stack-top-frame") : re, H ? F(t(m)) : be ); }, Dr.jsxs = function(m, x, C, A, W) { var H = 1e4 > Y.recentlyCreatedOwnerStacks++; return f( m, x, C, !0, A, W, H ? Error("react-stack-top-frame") : re, H ? F(t(m)) : be ); }; }()), Dr; } process.env.NODE_ENV === "production" ? bn.exports = fu() : bn.exports = pu(); var s = bn.exports; function sr(e) { let r = "https://mui.com/production-error/?code=" + e; for (let n = 1; n < arguments.length; n += 1) r += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified MUI error #" + e + "; visit " + r + " for the full message."; } const hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: sr }, Symbol.toStringTag, { value: "Module" })), xn = "$$material"; function ue() { return ue = Object.assign ? Object.assign.bind() : function(e) { for (var r = 1; r < arguments.length; r++) { var n = arguments[r]; for (var t in n) ({}).hasOwnProperty.call(n, t) && (e[t] = n[t]); } return e; }, ue.apply(null, arguments); } function Ze(e, r) { if (e == null) return {}; var n = {}; for (var t in e) if ({}.hasOwnProperty.call(e, t)) { if (r.indexOf(t) !== -1) continue; n[t] = e[t]; } return n; } var wn = { exports: {} }, tt = { exports: {} }, ce = {}; /** @license React v16.13.1 * react-is.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 fa; function gu() { if (fa) return ce; fa = 1; var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119; function T(y) { if (typeof y == "object" && y !== null) { var O = y.$$typeof; switch (O) { case r: switch (y = y.type, y) { case l: case c: case t: case o: case a: case p: return y; default: switch (y = y && y.$$typeof, y) { case u: case f: case v: case g: case i: return y; default: return O; } } case n: return O; } } } function E(y) { return T(y) === c; } return ce.AsyncMode = l, ce.ConcurrentMode = c, ce.ContextConsumer = u, ce.ContextProvider = i, ce.Element = r, ce.ForwardRef = f, ce.Fragment = t, ce.Lazy = v, ce.Memo = g, ce.Portal = n, ce.Profiler = o, ce.StrictMode = a, ce.Suspense = p, ce.isAsyncMode = function(y) { return E(y) || T(y) === l; }, ce.isConcurrentMode = E, ce.isContextConsumer = function(y) { return T(y) === u; }, ce.isContextProvider = function(y) { return T(y) === i; }, ce.isElement = function(y) { return typeof y == "object" && y !== null && y.$$typeof === r; }, ce.isForwardRef = function(y) { return T(y) === f; }, ce.isFragment = function(y) { return T(y) === t; }, ce.isLazy = function(y) { return T(y) === v; }, ce.isMemo = function(y) { return T(y) === g; }, ce.isPortal = function(y) { return T(y) === n; }, ce.isProfiler = function(y) { return T(y) === o; }, ce.isStrictMode = function(y) { return T(y) === a; }, ce.isSuspense = function(y) { return T(y) === p; }, ce.isValidElementType = function(y) { return typeof y == "string" || typeof y == "function" || y === t || y === c || y === o || y === a || y === p || y === h || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === g || y.$$typeof === i || y.$$typeof === u || y.$$typeof === f || y.$$typeof === b || y.$$typeof === w || y.$$typeof === S || y.$$typeof === d); }, ce.typeOf = T, ce; } var de = {}; /** @license React v16.13.1 * react-is.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 pa; function mu() { return pa || (pa = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119; function T(_) { return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. _ === t || _ === c || _ === o || _ === a || _ === p || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === v || _.$$typeof === g || _.$$typeof === i || _.$$typeof === u || _.$$typeof === f || _.$$typeof === b || _.$$typeof === w || _.$$typeof === S || _.$$typeof === d); } function E(_) { if (typeof _ == "object" && _ !== null) { var $e = _.$$typeof; switch ($e) { case r: var Je = _.type; switch (Je) { case l: case c: case t: case o: case a: case p: return Je; default: var Rr = Je && Je.$$typeof; switch (Rr) { case u: case f: case v: case g: case i: return Rr; default: return $e; } } case n: return $e; } } } var y = l, O = c, M = u, U = i, z = r, B = f, Y = t, G = v, J = g, F = n, L = o, V = a, re = p, be = !1; function Ae(_) { return be || (be = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(_) || E(_) === l; } function m(_) { return E(_) === c; } function x(_) { return E(_) === u; } function C(_) { return E(_) === i; } function A(_) { return typeof _ == "object" && _ !== null && _.$$typeof === r; } function W(_) { return E(_) === f; } function H(_) { return E(_) === t; } function K(_) { return E(_) === v; } function Q(_) { return E(_) === g; } function D(_) { return E(_) === n; } function N(_) { return E(_) === o; } function q(_) { return E(_) === a; } function Se(_) { return E(_) === p; } de.AsyncMode = y, de.ConcurrentMode = O, de.ContextConsumer = M, de.ContextProvider = U, de.Element = z, de.ForwardRef = B, de.Fragment = Y, de.Lazy = G, de.Memo = J, de.Portal = F, de.Profiler = L, de.StrictMode = V, de.Suspense = re, de.isAsyncMode = Ae, de.isConcurrentMode = m, de.isContextConsumer = x, de.isContextProvider = C, de.isElement = A, de.isForwardRef = W, de.isFragment = H, de.isLazy = K, de.isMemo = Q, de.isPortal = D, de.isProfiler = N, de.isStrictMode = q, de.isSuspense = Se, de.isValidElementType = T, de.typeOf = E; }()), de; } var ha; function Ao() { return ha || (ha = 1, process.env.NODE_ENV === "production" ? tt.exports = gu() : tt.exports = mu()), tt.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Zt, ga; function vu() { if (ga) return Zt; ga = 1; var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; function t(o) { if (o == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(o); } function a() { try { if (!Object.assign) return !1; var o = new String("abc"); if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5") return !1; for (var i = {}, u = 0; u < 10; u++) i["_" + String.fromCharCode(u)] = u; var l = Object.getOwnPropertyNames(i).map(function(f) { return i[f]; }); if (l.join("") !== "0123456789") return !1; var c = {}; return "abcdefghijklmnopqrst".split("").forEach(function(f) { c[f] = f; }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Zt = a() ? Object.assign : function(o, i) { for (var u, l = t(o), c, f = 1; f < arguments.length; f++) { u = Object(arguments[f]); for (var p in u) r.call(u, p) && (l[p] = u[p]); if (e) { c = e(u); for (var h = 0; h < c.length; h++) n.call(u, c[h]) && (l[c[h]] = u[c[h]]); } } return l; }, Zt; } var Jt, ma; function Hn() { if (ma) return Jt; ma = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Jt = e, Jt; } var en, va; function Fo() { return va || (va = 1, en = Function.call.bind(Object.prototype.hasOwnProperty)), en; } var rn, ya; function yu() { if (ya) return rn; ya = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var r = Hn(), n = {}, t = Fo(); e = function(o) { var i = "Warning: " + o; typeof console < "u" && console.error(i); try { throw new Error(i); } catch { } }; } function a(o, i, u, l, c) { if (process.env.NODE_ENV !== "production") { for (var f in o) if (t(o, f)) { var p; try { if (typeof o[f] != "function") { var h = Error( (l || "React class") + ": " + u + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw h.name = "Invariant Violation", h; } p = o[f](i, f, l, u, null, r); } catch (v) { p = v; } if (p && !(p instanceof Error) && e( (l || "React class") + ": type specification of " + u + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), p instanceof Error && !(p.message in n)) { n[p.message] = !0; var g = c ? c() : ""; e( "Failed " + u + " type: " + p.message + (g ?? "") ); } } } } return a.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (n = {}); }, rn = a, rn; } var tn, ba; function bu() { if (ba) return tn; ba = 1; var e = Ao(), r = vu(), n = Hn(), t = Fo(), a = yu(), o = function() { }; process.env.NODE_ENV !== "production" && (o = function(u) { var l = "Warning: " + u; typeof console < "u" && console.error(l); try { throw new Error(l); } catch { } }); function i() { return null; } return tn = function(u, l) { var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator"; function p(m) { var x = m && (c && m[c] || m[f]); if (typeof x == "function") return x; } var h = "<<anonymous>>", g = { array: w("array"), bigint: w("bigint"), bool: w("boolean"), func: w("function"), number: w("number"), object: w("object"), string: w("string"), symbol: w("symbol"), any: S(), arrayOf: T, element: E(), elementType: y(), instanceOf: O, node: B(), objectOf: U, oneOf: M, oneOfType: z, shape: G, exact: J }; function v(m, x) { return m === x ? m !== 0 || 1 / m === 1 / x : m !== m && x !== x; } function d(m, x) { this.message = m, this.data = x && typeof x == "object" ? x : {}, this.stack = ""; } d.prototype = Error.prototype; function b(m) { if (process.env.NODE_ENV !== "production") var x = {}, C = 0; function A(H, K, Q, D, N, q, Se) { if (D = D || h, q = q || Q, Se !== n) { if (l) { var _ = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); throw _.name = "Invariant Violation", _; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var $e = D + ":" + Q; !x[$e] && // Avoid spamming the console because they are often not actionable except for lib authors C < 3 && (o( "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), x[$e] = !0, C++); } } return K[Q] == null ? H ? K[Q] === null ? new d("The " + N + " `" + q + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new d("The " + N + " `" + q + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : m(K, Q, D, N, q); } var W = A.bind(null, !1); return W.isRequired = A.bind(null, !0), W; } function w(m) { function x(C, A, W, H, K, Q) { var D = C[A], N = V(D); if (N !== m) { var q = re(D); return new d( "Invalid " + H + " `" + K + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + m + "`."), { expectedType: m } ); } return null; } return b(x); } function S() { return b(i); } function T(m) { function x(C, A, W, H, K) { if (typeof m != "function") return new d("Property `" + K + "` of component `" + W + "` has invalid PropType notation inside arrayOf."); var Q = C[A]; if (!Array.isArray(Q)) { var D = V(Q); return new d("Invalid " + H + " `" + K + "` of type " + ("`" + D + "` supplied to `" + W + "`, expected an array.")); } for (var N = 0; N < Q.length; N++) { var q = m(Q, N, W, H, K + "[" + N + "]", n); if (q instanceof Error) return q; } return null; } return b(x); } function E() { function m(x, C, A, W, H) { var K = x[C]; if (!u(K)) { var Q = V(K); return new d("Invalid " + W + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + A + "`, expected a single ReactElement.")); } return null; } return b(m); } function y() { function m(x, C, A, W, H) { var K = x[C]; if (!e.isValidElementType(K)) { var Q = V(K); return new d("Invalid " + W + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + A + "`, expected a single ReactElement type.")); } return null; } return b(m); } function O(m) { function x(C, A, W, H, K) { if (!(C[A] instanceof m)) { var Q = m.name || h, D = Ae(C[A]); return new d("Invalid " + H + " `" + K + "` of type " + ("`" + D + "` supplied to `" + W + "`, expected ") + ("instance of `" + Q + "`.")); } return null; } return b(x); } function M(m) { if (!Array.isArray(m)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : o("Invalid argument supplied to oneOf, expected an array.")), i; function x(C, A, W, H, K) { for (var Q = C[A], D = 0; D < m.length; D++) if (v(Q, m[D])) return null; var N = JSON.stringify(m, function(Se, _) { var $e = re(_); return $e === "symbol" ? String(_) : _; }); return new d("Invalid " + H + " `" + K + "` of value `" + String(Q) + "` " + ("supplied to `" + W + "`, expected one of " + N + ".")); } return b(x); } function U(m) { function x(C, A, W, H, K) { if (typeof m != "function") return new d("Property `" + K + "` of component `" + W + "` has invalid PropType notation inside objectOf."); var Q = C[A], D = V(Q); if (D !== "object") return new d("Invalid " + H + " `" + K + "` of type " + ("`" + D + "` supplied to `" + W + "`, expected an object.")); for (var N in Q) if (t(Q, N)) { var q = m(Q, N, W, H, K + "." + N, n); if (q instanceof Error) return q; } return null; } return b(x); } function z(m) { if (!Array.isArray(m)) return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i; for (var x = 0; x < m.length; x++) { var C = m[x]; if (typeof C != "function") return o( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + be(C) + " at index " + x + "." ), i; } function A(W, H, K, Q, D) { for (var N = [], q = 0; q < m.length; q++) { var Se = m[q], _ = Se(W, H, K, Q, D, n); if (_ == null) return null; _.data && t(_.data, "expectedType") && N.push(_.data.expectedType); } var $e = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : ""; return new d("Invalid " + Q + " `" + D + "` supplied to " + ("`" + K + "`" + $e + ".")); } return b(A); } function B() { function m(x, C, A, W, H) { return F(x[C]) ? null : new d("Invalid " + W + " `" + H + "` supplied to " + ("`" + A + "`, expected a ReactNode.")); } return b(m); } function Y(m, x, C, A, W) { return new d( (m || "React class") + ": " + x + " type `" + C + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`." ); } function G(m) { function x(C, A, W, H, K) { var Q = C[A], D = V(Q); if (D !== "object") return new d("Invalid " + H + " `" + K + "` of type `" + D + "` " + ("supplied to `" + W + "`, expected `object`.")); for (var N in m) { var q = m[N]; if (typeof q != "function") return Y(W, H, K, N, re(q)); var Se = q(Q, N, W, H, K + "." + N, n); if (Se) return Se; } return null; } return b(x); } function J(m) { function x(C, A, W, H, K) { var Q = C[A], D = V(Q); if (D !== "object") return new d("Invalid " + H + " `" + K + "` of type `" + D + "` " + ("supplied to `" + W + "`, expected `object`.")); var N = r({}, C[A], m); for (var q in N) { var Se = m[q]; if (t(m, q) && typeof Se != "function") return Y(W, H, K, q, re(Se)); if (!Se) return new d( "Invalid " + H + " `" + K + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(C[A], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(m), null, " ") ); var _ = Se(Q, q, W, H, K + "." + q, n); if (_) return _; } return null; } return b(x); } function F(m) { switch (typeof m) { case "number": case "string": case "undefined": return !0; case "boolean": return !m; case "object": if (Array.isArray(m)) return m.every(F); if (m === null || u(m)) return !0; var x = p(m); if (x) { var C = x.call(m), A; if (x !== m.entries) { for (; !(A = C.next()).done; ) if (!F(A.value)) return !1; } else for (; !(A = C.next()).done; ) { var W = A.value; if (W && !F(W[1])) return !1; } } else return !1; return !0; default: return !1; } } function L(m, x) { return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1; } function V(m) { var x = typeof m; return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(x, m) ? "symbol" : x; } function re(m) { if (typeof m > "u" || m === null) return "" + m; var x = V(m); if (x === "object") { if (m instanceof Date) return "date"; if (m instanceof RegExp) return "regexp"; } return x; } function be(m) { var x = re(m); switch (x) { case "array": case "object": return "an " + x; case "boolean": case "date": case "regexp": return "a " + x; default: return x; } } function Ae(m) { return !m.constructor || !m.constructor.name ? h : m.constructor.name; } return g.checkPropTypes = a, g.resetWarningCache = a.resetWarningCache, g.PropTypes = g, g; }, tn; } var nn, xa; function xu() { if (xa) return nn; xa = 1; var e = Hn(); function r() { } function n() { } return n.resetWarningCache = r, nn = function() { function t(i, u, l, c, f, p) { if (p !== e) { var h = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); throw h.name = "Invariant Violation", h; } } t.isRequired = t; function a() { return t; } var o = { array: t, bigint: t, bool: t, func: t, number: t, object: t, string: t, symbol: t, any: t, arrayOf: a, element: t, elementType: t, instanceOf: a, node: t, objectOf: a, oneOf: a, oneOfType: a, shape: a, exact: a, checkPropTypes: n, resetWarningCache: r }; return o.PropTypes = o, o; }, nn; } if (process.env.NODE_ENV !== "production") { var wu = Ao(), Tu = !0; wn.exports = bu()(wu.isElement, Tu); } else wn.exports = xu()(); var Su = wn.exports; const fe = /* @__PURE__ */ Io(Su); function Cu(e) { if (e.sheet) return e.sheet; for (var r = 0; r < document.styleSheets.length; r++) if (document.styleSheets[r].ownerNode === e) return document.styleSheets[r]; } function Mu(e) { var r = document.createElement("style"); return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r; } var ku = /* @__PURE__ */ function() { function e(n) { var t = this; this._insertTag = function(a) { var o; t.tags.length === 0 ? t.insertionPoint ? o = t.insertionPoint.nextSibling : t.prepend ? o = t.container.firstChild : o = t.before : o = t.tags[t.tags.length - 1].nextSibling, t.container.insertBefore(a, o), t.tags.push(a); }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null; } var r = e.prototype; return r.hydrate = function(t) { t.forEach(this._insertTag); }, r.insert = function(t) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Mu(this)); var a = this.tags[this.tags.length - 1]; if (this.isSpeedy) { var o = Cu(a); try { o.insertRule(t, o.cssRules.length); } catch { } } else a.appendChild(document.createTextNode(t)); this.ctr++; }, r.flush = function() { this.tags.forEach(function(t) { var a; return (a = t.parentNode) == null ? void 0 : a.removeChild(t); }), this.tags = [], this.ctr = 0; }, e; }(), je = "-ms-", wt = "-moz-", ie = "-webkit-", No = "comm", qn = "rule", Gn = "decl", Eu = "@import", Wo = "@keyframes", Ou = "@layer", Pu = Math.abs, It = String.fromCharCode, ju = Object.assign; function _u(e, r) { return Pe(e, 0) ^ 45 ? (((r << 2 ^ Pe(e, 0)) << 2 ^ Pe(e, 1)) << 2 ^ Pe(e, 2)) << 2 ^ Pe(e, 3) : 0; } function Lo(e) { return e.trim(); } function Ru(e, r) { return (e = r.exec(e)) ? e[0] : e; } function se(e, r, n) { return e.replace(r, n); } function Tn(e, r) { return e.indexOf(r); } function Pe(e, r) { return e.charCodeAt(r) | 0; } function Hr(e, r, n) { return e.slice(r, n); } function Be(e) { return e.length; } function Vn(e) { return e.length; } function nt(e, r) { return r.push(e), e; } function $u(e, r) { return e.map(r).join(""); } var At = 1, kr = 1, Bo = 0, Re = 0, Oe = 0, Pr = ""; function Ft(e, r, n, t, a, o, i) { return { value: e, root: r, parent: n, type: t, props: a, children: o, line: At, column: kr, length: i, return: "" }; } function Ir(e, r) { return ju(Ft("", null, null, "", null, null, 0), e, { length: -e.length }, r); } function Du() { return Oe; } function Iu() { return Oe = Re > 0 ? Pe(Pr, --Re) : 0, kr--, Oe === 10 && (kr = 1, At--), Oe; } function Ie() { return Oe = Re < Bo ? Pe(Pr, Re++) : 0, kr++, Oe === 10 && (kr = 1, At++), Oe; } function ze() { return Pe(Pr, Re); } function dt() { return Re; } function Xr(e, r) { return Hr(Pr, e, r); } function qr(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 Yo(e) { return At = kr = 1, Bo = Be(Pr = e), Re = 0, []; } function Uo(e) { return Pr = "", e; } function ft(e) { return Lo(Xr(Re - 1, Sn(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Au(e) { for (; (Oe = ze()) && Oe < 33; ) Ie(); return qr(e) > 2 || qr(Oe) > 3 ? "" : " "; } function Fu(e, r) { for (; --r && Ie() && !(Oe < 48 || Oe > 102 || Oe > 57 && Oe < 65 || Oe > 70 && Oe < 97); ) ; return Xr(e, dt() + (r < 6 && ze() == 32 && Ie() == 32)); } function Sn(e) { for (; Ie(); ) switch (Oe) { case e: return Re; case 34: case 39: e !== 34 && e !== 39 && Sn(Oe); break; case 40: e === 41 && Sn(e); break; case 92: Ie(); break; } return Re; } function Nu(e, r) { for (; Ie() && e + Oe !== 57; ) if (e + Oe === 84 && ze() === 47) break; return "/*" + Xr(r, Re - 1) + "*" + It(e === 47 ? e : Ie()); } function Wu(e) { for (; !qr(ze()); ) Ie(); return Xr(e, Re); } function Lu(e) { return Uo(pt("", null, null, null, [""], e = Yo(e), 0, [0], e)); } function pt(e, r, n, t, a, o, i, u, l) { for (var c = 0, f = 0, p = i, h = 0, g = 0, v = 0, d = 1, b = 1, w = 1, S = 0, T = "", E = a, y = o, O = t, M = T; b; ) switch (v = S, S = Ie()) { case 40: if (v != 108 && Pe(M, p - 1) == 58) { Tn(M += se(ft(S), "&", "&\f"), "&\f") != -1 && (w = -1); break; } case 34: case 39: case 91: M += ft(S); break; case 9: case 10: case 13: case 32: M += Au(v); break; case 92: M += Fu(dt() - 1, 7); continue; case 47: switch (ze()) { case 42: case 47: nt(Bu(Nu(Ie(), dt()), r, n), l); break; default: M += "/"; } break; case 123 * d: u[c++] = Be(M) * w; case 125 * d: case 59: case 0: switch (S) { case 0: case 125: b = 0; case 59 + f: w == -1 && (M = se(M, /\f/g, "")), g > 0 && Be(M) - p && nt(g > 32 ? Ta(M + ";", t, n, p - 1) : Ta(se(M, " ", "") + ";", t, n, p - 2), l); break; case 59: M += ";"; default: if (nt(O = wa(M, r, n, c, f, a, u, T, E = [], y = [], p), o), S === 123) if (f === 0) pt(M, r, O, O, E, o, p, u, y); else switch (h === 99 && Pe(M, 3) === 110 ? 100 : h) { case 100: case 108: case 109: case 115: pt(e, O, O, t && nt(wa(e, O, O, 0, 0, a, u, T, a, E = [], p), y), a, y, p, u, t ? E : y); break; default: pt(M, O, O, O, [""], y, 0, u, y); } } c = f = g = 0, d = w = 1, T = M = "", p = i; break; case 58: p = 1 + Be(M), g = v; default: if (d < 1) { if (S == 123) --d; else if (S == 125 && d++ == 0 && Iu() == 125) continue; } switch (M += It(S), S * d) { case 38: w = f > 0 ? 1 : (M += "\f", -1); break; case 44: u[c++] = (Be(M) - 1) * w, w = 1; break; case 64: ze() === 45 && (M += ft(Ie())), h = ze(), f = p = Be(T = M += Wu(dt())), S++; break; case 45: v === 45 && Be(M) == 2 && (d = 0); } } return o; } function wa(e, r, n, t, a, o, i, u, l, c, f) { for (var p = a - 1, h = a === 0 ? o : [""], g = Vn(h), v = 0, d = 0, b = 0; v < t; ++v) for (var w = 0, S = Hr(e, p + 1, p = Pu(d = i[v])), T = e; w < g; ++w) (T = Lo(d > 0 ? h[w] + " " + S : se(S, /&\f/g, h[w]))) && (l[b++] = T); return Ft(e, r, n, a === 0 ? qn : u, l, c, f); } function Bu(e, r, n) { return Ft(e, r, n, No, It(Du()), Hr(e, 2, -2), 0); } function Ta(e, r, n, t) { return Ft(e, r, n, Gn, Hr(e, 0, t), Hr(e, t + 1, -1), t); } function wr(e, r) { for (var n = "", t = Vn(e), a = 0; a < t; a++) n += r(e[a], a, e, r) || ""; return n; } function Yu(e, r, n, t) { switch (e.type) { case Ou: if (e.children.length) break; case Eu: case Gn: return e.return = e.return || e.value; case No: return ""; case Wo: return e.return = e.value + "{" + wr(e.children, t) + "}"; case qn: e.value = e.props.join(","); } return Be(n = wr(e.children, t)) ? e.return = e.value + "{" + n + "}" : ""; } function Uu(e) { var r = Vn(e); return function(n, t, a, o) { for (var i = "", u = 0; u < r; u++) i += e[u](n, t, a, o) || ""; return i; }; } function zu(e) { return function(r) { r.root || (r = r.return) && e(r); }; } var Hu = function(r, n, t) { for (var a = 0, o = 0; a = o, o = ze(), a === 38 && o === 12 && (n[t] = 1), !qr(o); ) Ie(); return Xr(r, Re); }, qu = function(r, n) { var t = -1, a = 44; do switch (qr(a)) { case 0: a === 38 && ze() === 12 && (n[t] = 1), r[t] += Hu(Re - 1, n, t); break; case 2: r[t] += ft(a); break; case 4: if (a === 44) { r[++t] = ze() === 58 ? "&\f" : "", n[t] = r[t].length; break; } default: r[t] += It(a); } while (a = Ie()); return r; }, Gu = function(r, n) { return Uo(qu(Yo(r), n)); }, Sa = /* @__PURE__ */ new WeakMap(), Vu = function(r) { if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo // negative .length indicates that this rule has been already prefixed r.length < 1)) { for (var n = r.value, t = r.parent, a = r.column === t.column && r.line === t.line; t.type !== "rule"; ) if (t = t.parent, !t) return; if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !Sa.get(t)) && !a) { Sa.set(r, !0); for (var o = [], i = Gu(n, o), u = t.props, l = 0, c = 0; l < i.length; l++) for (var f = 0; f < u.length; f++, c++) r.props[c] = o[l] ? i[l].replace(/&\f/g, u[f]) : u[f] + " " + i[l]; } } }, Xu = function(r) { if (r.type === "decl") { var n = r.value; // charcode for l n.charCodeAt(0) === 108 && // charcode for b n.charCodeAt(2) === 98 && (r.return = "", r.value = ""); } }; function zo(e, r) { switch (_u(e, r)) { case 5103: return ie + "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 ie + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return ie + e + wt + e + je + e + e; case 6828: case 4268: return ie + e + je + e + e; case 6165: return ie + e + je + "flex-" + e + e; case 5187: return ie + e + se(e, /(\w+).+(:[^]+)/, ie + "box-$1$2" + je + "flex-$1$2") + e; case 5443: return ie + e + je + "flex-item-" + se(e, /flex-|-self/, "") + e; case 4675: return ie + e + je + "flex-line-pack" + se(e, /align-content|flex-|-self/, "") + e; case 5548: return ie + e + je + se(e, "shrink", "negative") + e; case 5292: return ie + e + je + se(e, "basis", "preferred-size") + e; case 6060: return ie + "box-" + se(e, "-grow", "") + ie + e + je + se(e, "grow", "positive") + e; case 4554: return ie + se(e, /([^-])(transform)/g, "$1" + ie + "$2") + e; case 6187: return se(se(se(e, /(zoom-|grab)/, ie + "$1"), /(image-set)/, ie + "$1"), e, "") + e; case 5495: case 3959: return se(e, /(image-set\([^]*)/, ie + "$1$`$1"); case 4968: return se(se(e, /(.+:)(flex-)?(.*)/, ie + "box-pack:$3" + je + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ie + e + e; case 4095: case 3583: case 4068: case 2532: return se(e, /(.+)-inline(.+)/, ie + "$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 (Be(e) - 1 - r > 6) switch (Pe(e, r + 1)) { case 109: if (Pe(e, r + 4) !== 45) break; case 102: return se(e, /(.+:)(.+)-([^]+)/, "$1" + ie + "$2-$3$1" + wt + (Pe(e, r + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~Tn(e, "stretch") ? zo(se(e, "stretch", "fill-available"), r) + e : e; } break; case 4949: if (Pe(e, r + 1) !== 115) break; case 6444: switch (Pe(e, Be(e) - 3 - (~Tn(e, "!important") && 10))) { case 107: return se(e, ":", ":" + ie) + e; case 101: return se(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ie + (Pe(e, 14) === 45 ? "inline-" : "") + "box$3$1" + ie + "$2$3$1" + je + "$2box$3") + e; } break; case 5936: switch (Pe(e, r + 11)) { case 114: return ie + e + je + se(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return ie + e + je + se(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return ie + e + je + se(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } return ie + e + je + e + e; } return e; } var Qu = function(r, n, t, a) { if (r.length > -1 && !r.return) switch (r.type) { case Gn: r.return = zo(r.value, r.length); break; case Wo: return wr([Ir(r, { value: se(r.value, "@", "@" + ie) })], a); case qn: if (r.length) return $u(r.props, functio