UNPKG

rag-chatbot-ui-bajaj

Version:

React RAG Chatbot UI with Developer Console

1,417 lines 192 kB
import * as me from "react"; import $e, { forwardRef as In, useContext as Mn, useState as Y, useRef as br, useEffect as Xe } from "react"; function Dn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Xt = { exports: {} }, Je = {}; /** * @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 yr; function Bn() { if (yr) return Je; yr = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function r(n, o, a) { var c = null; if (a !== void 0 && (c = "" + a), o.key !== void 0 && (c = "" + o.key), "key" in o) { a = {}; for (var l in o) l !== "key" && (a[l] = o[l]); } else a = o; return o = a.ref, { $$typeof: e, type: n, key: c, ref: o !== void 0 ? o : null, props: a }; } return Je.Fragment = t, Je.jsx = r, Je.jsxs = r, Je; } var Qe = {}; /** * @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 vr; function zn() { return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() { function e(u) { if (u == null) return null; if (typeof u == "function") return u.$$typeof === i ? null : u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { case s: return "Fragment"; case E: return "Profiler"; case w: return "StrictMode"; case y: return "Suspense"; case I: return "SuspenseList"; case ee: return "Activity"; } if (typeof u == "object") switch (typeof u.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), u.$$typeof) { case x: return "Portal"; case P: return (u.displayName || "Context") + ".Provider"; case M: return (u._context.displayName || "Context") + ".Consumer"; case T: var v = u.render; return u = u.displayName, u || (u = v.displayName || v.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u; case $: return v = u.displayName || null, v !== null ? v : e(u.type) || "Memo"; case G: v = u._payload, u = u._init; try { return e(u(v)); } catch { } } return null; } function t(u) { return "" + u; } function r(u) { try { t(u); var v = !1; } catch { v = !0; } if (v) { v = console; var A = v.error, R = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object"; return A.call( v, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", R ), t(u); } } function n(u) { if (u === s) return "<>"; if (typeof u == "object" && u !== null && u.$$typeof === G) return "<...>"; try { var v = e(u); return v ? "<" + v + ">" : "<...>"; } catch { return "<...>"; } } function o() { var u = k.A; return u === null ? null : u.getOwner(); } function a() { return Error("react-stack-top-frame"); } function c(u) { if (D.call(u, "key")) { var v = Object.getOwnPropertyDescriptor(u, "key").get; if (v && v.isReactWarning) return !1; } return u.key !== void 0; } function l(u, v) { function A() { ie || (ie = !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)", v )); } A.isReactWarning = !0, Object.defineProperty(u, "key", { get: A, configurable: !0 }); } function d() { var u = e(this.type); return oe[u] || (oe[u] = !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." )), u = this.props.ref, u !== void 0 ? u : null; } function p(u, v, A, R, j, B, z, F) { return A = B.ref, u = { $$typeof: C, type: u, key: v, props: B, _owner: j }, (A !== void 0 ? A : null) !== null ? Object.defineProperty(u, "ref", { enumerable: !1, get: d }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(u, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(u, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: z }), Object.defineProperty(u, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: F }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u; } function m(u, v, A, R, j, B, z, F) { var N = v.children; if (N !== void 0) if (R) if (L(N)) { for (R = 0; R < N.length; R++) f(N[R]); Object.freeze && Object.freeze(N); } 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 f(N); if (D.call(v, "key")) { N = e(u); var S = Object.keys(v).filter(function(U) { return U !== "key"; }); R = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", Ee[N + R] || (S = 0 < S.length ? "{" + S.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} />`, R, N, S, N ), Ee[N + R] = !0); } if (N = null, A !== void 0 && (r(A), N = "" + A), c(v) && (r(v.key), N = "" + v.key), "key" in v) { A = {}; for (var O in v) O !== "key" && (A[O] = v[O]); } else A = v; return N && l( A, typeof u == "function" ? u.displayName || u.name || "Unknown" : u ), p( u, N, B, j, o(), A, z, F ); } function f(u) { typeof u == "object" && u !== null && u.$$typeof === C && u._store && (u._store.validated = 1); } var h = $e, C = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), P = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), i = Symbol.for("react.client.reference"), k = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, L = Array.isArray, W = console.createTask ? console.createTask : function() { return null; }; h = { "react-stack-bottom-frame": function(u) { return u(); } }; var ie, oe = {}, ue = h["react-stack-bottom-frame"].bind( h, a )(), fe = W(n(a)), Ee = {}; Qe.Fragment = s, Qe.jsx = function(u, v, A, R, j) { var B = 1e4 > k.recentlyCreatedOwnerStacks++; return m( u, v, A, !1, R, j, B ? Error("react-stack-top-frame") : ue, B ? W(n(u)) : fe ); }, Qe.jsxs = function(u, v, A, R, j) { var B = 1e4 > k.recentlyCreatedOwnerStacks++; return m( u, v, A, !0, R, j, B ? Error("react-stack-top-frame") : ue, B ? W(n(u)) : fe ); }; }()), Qe; } process.env.NODE_ENV === "production" ? Xt.exports = Bn() : Xt.exports = zn(); var b = Xt.exports; const xr = (e) => e, Fn = () => { let e = xr; return { configure(t) { e = t; }, generate(t) { return e(t); }, reset() { e = xr; } }; }, Ln = Fn(); function je(e, ...t) { const r = new URL(`https://mui.com/production-error/?code=${e}`); return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`; } function De(e) { if (typeof e != "string") throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : je(7)); return e.charAt(0).toUpperCase() + e.slice(1); } var Jt = { exports: {} }, dt = { exports: {} }, X = {}; /** @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 Sr; function Vn() { if (Sr) return X; Sr = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119; function P(y) { if (typeof y == "object" && y !== null) { var I = y.$$typeof; switch (I) { case t: switch (y = y.type, y) { case d: case p: case n: case a: case o: case f: return y; default: switch (y = y && y.$$typeof, y) { case l: case m: case x: case C: case c: return y; default: return I; } } case r: return I; } } } function T(y) { return P(y) === p; } return X.AsyncMode = d, X.ConcurrentMode = p, X.ContextConsumer = l, X.ContextProvider = c, X.Element = t, X.ForwardRef = m, X.Fragment = n, X.Lazy = x, X.Memo = C, X.Portal = r, X.Profiler = a, X.StrictMode = o, X.Suspense = f, X.isAsyncMode = function(y) { return T(y) || P(y) === d; }, X.isConcurrentMode = T, X.isContextConsumer = function(y) { return P(y) === l; }, X.isContextProvider = function(y) { return P(y) === c; }, X.isElement = function(y) { return typeof y == "object" && y !== null && y.$$typeof === t; }, X.isForwardRef = function(y) { return P(y) === m; }, X.isFragment = function(y) { return P(y) === n; }, X.isLazy = function(y) { return P(y) === x; }, X.isMemo = function(y) { return P(y) === C; }, X.isPortal = function(y) { return P(y) === r; }, X.isProfiler = function(y) { return P(y) === a; }, X.isStrictMode = function(y) { return P(y) === o; }, X.isSuspense = function(y) { return P(y) === f; }, X.isValidElementType = function(y) { return typeof y == "string" || typeof y == "function" || y === n || y === p || y === a || y === o || y === f || y === h || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === C || y.$$typeof === c || y.$$typeof === l || y.$$typeof === m || y.$$typeof === w || y.$$typeof === E || y.$$typeof === M || y.$$typeof === s); }, X.typeOf = P, X; } var J = {}; /** @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 wr; function Un() { return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119; function P(_) { return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. _ === n || _ === p || _ === a || _ === o || _ === f || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === x || _.$$typeof === C || _.$$typeof === c || _.$$typeof === l || _.$$typeof === m || _.$$typeof === w || _.$$typeof === E || _.$$typeof === M || _.$$typeof === s); } function T(_) { if (typeof _ == "object" && _ !== null) { var Se = _.$$typeof; switch (Se) { case t: var Me = _.type; switch (Me) { case d: case p: case n: case a: case o: case f: return Me; default: var V = Me && Me.$$typeof; switch (V) { case l: case m: case x: case C: case c: return V; default: return Se; } } case r: return Se; } } } var y = d, I = p, $ = l, G = c, ee = t, i = m, k = n, D = x, L = C, W = r, ie = a, oe = o, ue = f, fe = !1; function Ee(_) { return fe || (fe = !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.")), u(_) || T(_) === d; } function u(_) { return T(_) === p; } function v(_) { return T(_) === l; } function A(_) { return T(_) === c; } function R(_) { return typeof _ == "object" && _ !== null && _.$$typeof === t; } function j(_) { return T(_) === m; } function B(_) { return T(_) === n; } function z(_) { return T(_) === x; } function F(_) { return T(_) === C; } function N(_) { return T(_) === r; } function S(_) { return T(_) === a; } function O(_) { return T(_) === o; } function U(_) { return T(_) === f; } J.AsyncMode = y, J.ConcurrentMode = I, J.ContextConsumer = $, J.ContextProvider = G, J.Element = ee, J.ForwardRef = i, J.Fragment = k, J.Lazy = D, J.Memo = L, J.Portal = W, J.Profiler = ie, J.StrictMode = oe, J.Suspense = ue, J.isAsyncMode = Ee, J.isConcurrentMode = u, J.isContextConsumer = v, J.isContextProvider = A, J.isElement = R, J.isForwardRef = j, J.isFragment = B, J.isLazy = z, J.isMemo = F, J.isPortal = N, J.isProfiler = S, J.isStrictMode = O, J.isSuspense = U, J.isValidElementType = P, J.typeOf = T; }()), J; } var Cr; function nn() { return Cr || (Cr = 1, process.env.NODE_ENV === "production" ? dt.exports = Vn() : dt.exports = Un()), dt.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Ft, Er; function Yn() { if (Er) return Ft; Er = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function n(a) { if (a == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(a); } function o() { try { if (!Object.assign) return !1; var a = new String("abc"); if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5") return !1; for (var c = {}, l = 0; l < 10; l++) c["_" + String.fromCharCode(l)] = l; var d = Object.getOwnPropertyNames(c).map(function(m) { return c[m]; }); if (d.join("") !== "0123456789") return !1; var p = {}; return "abcdefghijklmnopqrst".split("").forEach(function(m) { p[m] = m; }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Ft = o() ? Object.assign : function(a, c) { for (var l, d = n(a), p, m = 1; m < arguments.length; m++) { l = Object(arguments[m]); for (var f in l) t.call(l, f) && (d[f] = l[f]); if (e) { p = e(l); for (var h = 0; h < p.length; h++) r.call(l, p[h]) && (d[p[h]] = l[p[h]]); } } return d; }, Ft; } var Lt, Tr; function ir() { if (Tr) return Lt; Tr = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Lt = e, Lt; } var Vt, kr; function on() { return kr || (kr = 1, Vt = Function.call.bind(Object.prototype.hasOwnProperty)), Vt; } var Ut, Or; function Wn() { if (Or) return Ut; Or = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var t = ir(), r = {}, n = on(); e = function(a) { var c = "Warning: " + a; typeof console < "u" && console.error(c); try { throw new Error(c); } catch { } }; } function o(a, c, l, d, p) { if (process.env.NODE_ENV !== "production") { for (var m in a) if (n(a, m)) { var f; try { if (typeof a[m] != "function") { var h = Error( (d || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw h.name = "Invariant Violation", h; } f = a[m](c, m, d, l, null, t); } catch (x) { f = x; } if (f && !(f instanceof Error) && e( (d || "React class") + ": type specification of " + l + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), f instanceof Error && !(f.message in r)) { r[f.message] = !0; var C = p ? p() : ""; e( "Failed " + l + " type: " + f.message + (C ?? "") ); } } } } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); }, Ut = o, Ut; } var Yt, _r; function Hn() { if (_r) return Yt; _r = 1; var e = nn(), t = Yn(), r = ir(), n = on(), o = Wn(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(l) { var d = "Warning: " + l; typeof console < "u" && console.error(d); try { throw new Error(d); } catch { } }); function c() { return null; } return Yt = function(l, d) { var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator"; function f(u) { var v = u && (p && u[p] || u[m]); if (typeof v == "function") return v; } var h = "<<anonymous>>", C = { array: E("array"), bigint: E("bigint"), bool: E("boolean"), func: E("function"), number: E("number"), object: E("object"), string: E("string"), symbol: E("symbol"), any: M(), arrayOf: P, element: T(), elementType: y(), instanceOf: I, node: i(), objectOf: G, oneOf: $, oneOfType: ee, shape: D, exact: L }; function x(u, v) { return u === v ? u !== 0 || 1 / u === 1 / v : u !== u && v !== v; } function s(u, v) { this.message = u, this.data = v && typeof v == "object" ? v : {}, this.stack = ""; } s.prototype = Error.prototype; function w(u) { if (process.env.NODE_ENV !== "production") var v = {}, A = 0; function R(B, z, F, N, S, O, U) { if (N = N || h, O = O || F, U !== r) { if (d) { 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 Se = N + ":" + F; !v[Se] && // Avoid spamming the console because they are often not actionable except for lib authors A < 3 && (a( "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + N + "`. 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." ), v[Se] = !0, A++); } } return z[F] == null ? B ? z[F] === null ? new s("The " + S + " `" + O + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new s("The " + S + " `" + O + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : u(z, F, N, S, O); } var j = R.bind(null, !1); return j.isRequired = R.bind(null, !0), j; } function E(u) { function v(A, R, j, B, z, F) { var N = A[R], S = oe(N); if (S !== u) { var O = ue(N); return new s( "Invalid " + B + " `" + z + "` of type " + ("`" + O + "` supplied to `" + j + "`, expected ") + ("`" + u + "`."), { expectedType: u } ); } return null; } return w(v); } function M() { return w(c); } function P(u) { function v(A, R, j, B, z) { if (typeof u != "function") return new s("Property `" + z + "` of component `" + j + "` has invalid PropType notation inside arrayOf."); var F = A[R]; if (!Array.isArray(F)) { var N = oe(F); return new s("Invalid " + B + " `" + z + "` of type " + ("`" + N + "` supplied to `" + j + "`, expected an array.")); } for (var S = 0; S < F.length; S++) { var O = u(F, S, j, B, z + "[" + S + "]", r); if (O instanceof Error) return O; } return null; } return w(v); } function T() { function u(v, A, R, j, B) { var z = v[A]; if (!l(z)) { var F = oe(z); return new s("Invalid " + j + " `" + B + "` of type " + ("`" + F + "` supplied to `" + R + "`, expected a single ReactElement.")); } return null; } return w(u); } function y() { function u(v, A, R, j, B) { var z = v[A]; if (!e.isValidElementType(z)) { var F = oe(z); return new s("Invalid " + j + " `" + B + "` of type " + ("`" + F + "` supplied to `" + R + "`, expected a single ReactElement type.")); } return null; } return w(u); } function I(u) { function v(A, R, j, B, z) { if (!(A[R] instanceof u)) { var F = u.name || h, N = Ee(A[R]); return new s("Invalid " + B + " `" + z + "` of type " + ("`" + N + "` supplied to `" + j + "`, expected ") + ("instance of `" + F + "`.")); } return null; } return w(v); } function $(u) { if (!Array.isArray(u)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a( "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])." ) : a("Invalid argument supplied to oneOf, expected an array.")), c; function v(A, R, j, B, z) { for (var F = A[R], N = 0; N < u.length; N++) if (x(F, u[N])) return null; var S = JSON.stringify(u, function(U, _) { var Se = ue(_); return Se === "symbol" ? String(_) : _; }); return new s("Invalid " + B + " `" + z + "` of value `" + String(F) + "` " + ("supplied to `" + j + "`, expected one of " + S + ".")); } return w(v); } function G(u) { function v(A, R, j, B, z) { if (typeof u != "function") return new s("Property `" + z + "` of component `" + j + "` has invalid PropType notation inside objectOf."); var F = A[R], N = oe(F); if (N !== "object") return new s("Invalid " + B + " `" + z + "` of type " + ("`" + N + "` supplied to `" + j + "`, expected an object.")); for (var S in F) if (n(F, S)) { var O = u(F, S, j, B, z + "." + S, r); if (O instanceof Error) return O; } return null; } return w(v); } function ee(u) { if (!Array.isArray(u)) return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), c; for (var v = 0; v < u.length; v++) { var A = u[v]; if (typeof A != "function") return a( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(A) + " at index " + v + "." ), c; } function R(j, B, z, F, N) { for (var S = [], O = 0; O < u.length; O++) { var U = u[O], _ = U(j, B, z, F, N, r); if (_ == null) return null; _.data && n(_.data, "expectedType") && S.push(_.data.expectedType); } var Se = S.length > 0 ? ", expected one of type [" + S.join(", ") + "]" : ""; return new s("Invalid " + F + " `" + N + "` supplied to " + ("`" + z + "`" + Se + ".")); } return w(R); } function i() { function u(v, A, R, j, B) { return W(v[A]) ? null : new s("Invalid " + j + " `" + B + "` supplied to " + ("`" + R + "`, expected a ReactNode.")); } return w(u); } function k(u, v, A, R, j) { return new s( (u || "React class") + ": " + v + " type `" + A + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`." ); } function D(u) { function v(A, R, j, B, z) { var F = A[R], N = oe(F); if (N !== "object") return new s("Invalid " + B + " `" + z + "` of type `" + N + "` " + ("supplied to `" + j + "`, expected `object`.")); for (var S in u) { var O = u[S]; if (typeof O != "function") return k(j, B, z, S, ue(O)); var U = O(F, S, j, B, z + "." + S, r); if (U) return U; } return null; } return w(v); } function L(u) { function v(A, R, j, B, z) { var F = A[R], N = oe(F); if (N !== "object") return new s("Invalid " + B + " `" + z + "` of type `" + N + "` " + ("supplied to `" + j + "`, expected `object`.")); var S = t({}, A[R], u); for (var O in S) { var U = u[O]; if (n(u, O) && typeof U != "function") return k(j, B, z, O, ue(U)); if (!U) return new s( "Invalid " + B + " `" + z + "` key `" + O + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(A[R], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(u), null, " ") ); var _ = U(F, O, j, B, z + "." + O, r); if (_) return _; } return null; } return w(v); } function W(u) { switch (typeof u) { case "number": case "string": case "undefined": return !0; case "boolean": return !u; case "object": if (Array.isArray(u)) return u.every(W); if (u === null || l(u)) return !0; var v = f(u); if (v) { var A = v.call(u), R; if (v !== u.entries) { for (; !(R = A.next()).done; ) if (!W(R.value)) return !1; } else for (; !(R = A.next()).done; ) { var j = R.value; if (j && !W(j[1])) return !1; } } else return !1; return !0; default: return !1; } } function ie(u, v) { return u === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1; } function oe(u) { var v = typeof u; return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : ie(v, u) ? "symbol" : v; } function ue(u) { if (typeof u > "u" || u === null) return "" + u; var v = oe(u); if (v === "object") { if (u instanceof Date) return "date"; if (u instanceof RegExp) return "regexp"; } return v; } function fe(u) { var v = ue(u); switch (v) { case "array": case "object": return "an " + v; case "boolean": case "date": case "regexp": return "a " + v; default: return v; } } function Ee(u) { return !u.constructor || !u.constructor.name ? h : u.constructor.name; } return C.checkPropTypes = o, C.resetWarningCache = o.resetWarningCache, C.PropTypes = C, C; }, Yt; } var Wt, Pr; function Gn() { if (Pr) return Wt; Pr = 1; var e = ir(); function t() { } function r() { } return r.resetWarningCache = t, Wt = function() { function n(c, l, d, p, m, f) { if (f !== 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; } } n.isRequired = n; function o() { return n; } var a = { array: n, bigint: n, bool: n, func: n, number: n, object: n, string: n, symbol: n, any: n, arrayOf: o, element: n, elementType: n, instanceOf: o, node: n, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: r, resetWarningCache: t }; return a.PropTypes = a, a; }, Wt; } if (process.env.NODE_ENV !== "production") { var qn = nn(), Kn = !0; Jt.exports = Hn()(qn.isElement, Kn); } else Jt.exports = Gn()(); var Xn = Jt.exports; const H = /* @__PURE__ */ Dn(Xn); function an(e) { var t, r, n = ""; if (typeof e == "string" || typeof e == "number") n += e; else if (typeof e == "object") if (Array.isArray(e)) { var o = e.length; for (t = 0; t < o; t++) e[t] && (r = an(e[t])) && (n && (n += " "), n += r); } else for (r in e) e[r] && (n && (n += " "), n += r); return n; } function Jn() { for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = an(e)) && (n && (n += " "), n += t); return n; } function Qn(e, t, r = void 0) { const n = {}; for (const o in e) { const a = e[o]; let c = "", l = !0; for (let d = 0; d < a.length; d += 1) { const p = a[d]; p && (c += (l === !0 ? "" : " ") + t(p), l = !1, r && r[p] && (c += " " + r[p])); } n[o] = c; } return n; } var Qt = { exports: {} }, Q = {}; /** * @license React * react-is.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 Ar; function Zn() { if (Ar) return Q; Ar = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), C = Symbol.for("react.client.reference"); function x(s) { if (typeof s == "object" && s !== null) { var w = s.$$typeof; switch (w) { case e: switch (s = s.type, s) { case r: case o: case n: case d: case p: case h: return s; default: switch (s = s && s.$$typeof, s) { case c: case l: case f: case m: return s; case a: return s; default: return w; } } case t: return w; } } } return Q.ContextConsumer = a, Q.ContextProvider = c, Q.Element = e, Q.ForwardRef = l, Q.Fragment = r, Q.Lazy = f, Q.Memo = m, Q.Portal = t, Q.Profiler = o, Q.StrictMode = n, Q.Suspense = d, Q.SuspenseList = p, Q.isContextConsumer = function(s) { return x(s) === a; }, Q.isContextProvider = function(s) { return x(s) === c; }, Q.isElement = function(s) { return typeof s == "object" && s !== null && s.$$typeof === e; }, Q.isForwardRef = function(s) { return x(s) === l; }, Q.isFragment = function(s) { return x(s) === r; }, Q.isLazy = function(s) { return x(s) === f; }, Q.isMemo = function(s) { return x(s) === m; }, Q.isPortal = function(s) { return x(s) === t; }, Q.isProfiler = function(s) { return x(s) === o; }, Q.isStrictMode = function(s) { return x(s) === n; }, Q.isSuspense = function(s) { return x(s) === d; }, Q.isSuspenseList = function(s) { return x(s) === p; }, Q.isValidElementType = function(s) { return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === d || s === p || typeof s == "object" && s !== null && (s.$$typeof === f || s.$$typeof === m || s.$$typeof === c || s.$$typeof === a || s.$$typeof === l || s.$$typeof === C || s.getModuleId !== void 0); }, Q.typeOf = x, Q; } var Z = {}; /** * @license React * react-is.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 Rr; function eo() { return Rr || (Rr = 1, process.env.NODE_ENV !== "production" && function() { function e(s) { if (typeof s == "object" && s !== null) { var w = s.$$typeof; switch (w) { case t: switch (s = s.type, s) { case n: case a: case o: case p: case m: case C: return s; default: switch (s = s && s.$$typeof, s) { case l: case d: case h: case f: return s; case c: return s; default: return w; } } case r: return w; } } } var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.view_transition"), x = Symbol.for("react.client.reference"); Z.ContextConsumer = c, Z.ContextProvider = l, Z.Element = t, Z.ForwardRef = d, Z.Fragment = n, Z.Lazy = h, Z.Memo = f, Z.Portal = r, Z.Profiler = a, Z.StrictMode = o, Z.Suspense = p, Z.SuspenseList = m, Z.isContextConsumer = function(s) { return e(s) === c; }, Z.isContextProvider = function(s) { return e(s) === l; }, Z.isElement = function(s) { return typeof s == "object" && s !== null && s.$$typeof === t; }, Z.isForwardRef = function(s) { return e(s) === d; }, Z.isFragment = function(s) { return e(s) === n; }, Z.isLazy = function(s) { return e(s) === h; }, Z.isMemo = function(s) { return e(s) === f; }, Z.isPortal = function(s) { return e(s) === r; }, Z.isProfiler = function(s) { return e(s) === a; }, Z.isStrictMode = function(s) { return e(s) === o; }, Z.isSuspense = function(s) { return e(s) === p; }, Z.isSuspenseList = function(s) { return e(s) === m; }, Z.isValidElementType = function(s) { return typeof s == "string" || typeof s == "function" || s === n || s === a || s === o || s === p || s === m || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || s.$$typeof === x || s.getModuleId !== void 0); }, Z.typeOf = e; }()), Z; } process.env.NODE_ENV === "production" ? Qt.exports = Zn() : Qt.exports = eo(); var vt = Qt.exports; function Ae(e) { if (typeof e != "object" || e === null) return !1; const t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); } function sn(e) { if (/* @__PURE__ */ me.isValidElement(e) || vt.isValidElementType(e) || !Ae(e)) return e; const t = {}; return Object.keys(e).forEach((r) => { t[r] = sn(e[r]); }), t; } function ve(e, t, r = { clone: !0 }) { const n = r.clone ? { ...e } : e; return Ae(e) && Ae(t) && Object.keys(t).forEach((o) => { /* @__PURE__ */ me.isValidElement(t[o]) || vt.isValidElementType(t[o]) ? n[o] = t[o] : Ae(t[o]) && // Avoid prototype pollution Object.prototype.hasOwnProperty.call(e, o) && Ae(e[o]) ? n[o] = ve(e[o], t[o], r) : r.clone ? n[o] = Ae(t[o]) ? sn(t[o]) : t[o] : n[o] = t[o]; }), n; } function nt(e, t) { return t ? ve(e, t, { clone: !1 // No need to clone deep, it's way faster. }) : e; } const Ie = process.env.NODE_ENV !== "production" ? H.oneOfType([H.number, H.string, H.object, H.array]) : {}; function to(e, t) { if (!e.containerQueries) return t; const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => { var c, l; const a = /min-width:\s*([0-9.]+)/; return +(((c = n.match(a)) == null ? void 0 : c[1]) || 0) - +(((l = o.match(a)) == null ? void 0 : l[1]) || 0); }); return r.length ? r.reduce((n, o) => { const a = t[o]; return delete n[o], n[o] = a, n; }, { ...t }) : t; } function ro(e, t) { return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/)); } function no(e, t) { const r = t.match(/^@([^/]+)?\/?(.+)?$/); if (!r) { if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`. For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : je(18, `(${t})`)); return null; } const [, n, o] = r, a = Number.isNaN(+n) ? n || 0 : +n; return e.containerQueries(o).up(a); } function oo(e) { const t = (a, c) => a.replace("@media", c ? `@container ${c}` : "@container"); function r(a, c) { a.up = (...l) => t(e.breakpoints.up(...l), c), a.down = (...l) => t(e.breakpoints.down(...l), c), a.between = (...l) => t(e.breakpoints.between(...l), c), a.only = (...l) => t(e.breakpoints.only(...l), c), a.not = (...l) => { const d = t(e.breakpoints.not(...l), c); return d.includes("not all and") ? d.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : d; }; } const n = {}, o = (a) => (r(n, a), n); return r(o), { ...e, containerQueries: o }; } const Tt = { xs: 0, // phone sm: 600, // tablet md: 900, // small laptop lg: 1200, // desktop xl: 1536 // large screen }, $r = { // Sorted ASC by size. That's important. // It can't be configured as it's used statically for propTypes. keys: ["xs", "sm", "md", "lg", "xl"], up: (e) => `@media (min-width:${Tt[e]}px)` }, ao = { containerQueries: (e) => ({ up: (t) => { let r = typeof t == "number" ? t : Tt[t] || t; return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`; } }) }; function Re(e, t, r) { const n = e.theme || {}; if (Array.isArray(t)) { const a = n.breakpoints || $r; return t.reduce((c, l, d) => (c[a.up(a.keys[d])] = r(t[d]), c), {}); } if (typeof t == "object") { const a = n.breakpoints || $r; return Object.keys(t).reduce((c, l) => { if (ro(a.keys, l)) { const d = no(n.containerQueries ? n : ao, l); d && (c[d] = r(t[l], l)); } else if (Object.keys(a.values || Tt).includes(l)) { const d = a.up(l); c[d] = r(t[l], l); } else { const d = l; c[d] = t[d]; } return c; }, {}); } return r(t); } function io(e = {}) { var r; return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => { const a = e.up(o); return n[a] = {}, n; }, {})) || {}; } function so(e, t) { return e.reduce((r, n) => { const o = r[n]; return (!o || Object.keys(o).length === 0) && delete r[n], r; }, t); } function kt(e, t, r = !0) { if (!t || typeof t != "string") return null; if (e && e.vars && r) { const n = `vars.${t}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e); if (n != null) return n; } return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e); } function xt(e, t, r, n = r) { let o; return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = kt(e, r) || n, t && (o = t(o, n, e)), o; } function le(e) { const { prop: t, cssProperty: r = e.prop, themeKey: n, transform: o } = e, a = (c) => { if (c[t] == null) return null; const l = c[t], d = c.theme, p = kt(d, n) || {}; return Re(c, l, (f) => { let h = xt(p, o, f); return f === h && typeof f == "string" && (h = xt(p, o, `${t}${f === "default" ? "" : De(f)}`, f)), r === !1 ? h : { [r]: h }; }); }; return a.propTypes = process.env.NODE_ENV !== "production" ? { [t]: Ie } : {}, a.filterProps = [t], a; } function co(e) { const t = {}; return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]); } const lo = { m: "margin", p: "padding" }, uo = { t: "Top", r: "Right", b: "Bottom", l: "Left", x: ["Left", "Right"], y: ["Top", "Bottom"] }, jr = { marginX: "mx", marginY: "my", paddingX: "px", paddingY: "py" }, fo = co((e) => { if (e.length > 2) if (jr[e]) e = jr[e]; else return [e]; const [t, r] = e.split(""), n = lo[t], o = uo[r] || ""; return Array.isArray(o) ? o.map((a) => n + a) : [n + o]; }), Ot = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], _t = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], po = [...Ot, ..._t]; function ct(e, t, r, n) { const o = kt(e, t, !0) ?? r; return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof o == "string" ? o.startsWith("var(") && a === 0 ? 0 : o.startsWith("var(") && a === 1 ? o : `calc(${a} * ${o})` : o * a) : Array.isArray(o) ? (a) => { if (typeof a == "string") return a; const c = Math.abs(a); process.env.NODE_ENV !== "production" && (Number.isInteger(c) ? c > o.length - 1 && console.error([`MUI: The value provided (${c}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${c} > ${o.length - 1}, you need to add the missing values.`].join(` `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `))); const l = o[c]; return a >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`; } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(` `)), () => { }); } function sr(e) { return ct(e, "spacing", 8, "spacing"); } function lt(e, t) { return typeof t == "string" || t == null ? t : e(t); } function mo(e, t) { return (r) => e.reduce((n, o) => (n[o] = lt(t, r), n), {}); } function ho(e, t, r, n) { if (!t.includes(r)) return null; const o = fo(r), a = mo(o, n), c = e[r]; return Re(e, c, a); } function cn(e, t) { const r = sr(e.theme); return Object.keys(e).map((n) => ho(e, t, n, r)).reduce(nt, {}); } function se(e) { return cn(e, Ot); } se.propTypes = process.env.NODE_ENV !== "production" ? Ot.reduce((e, t) => (e[t] = Ie, e), {}) : {}; se.filterProps = Ot; function ce(e) { return cn(e, _t); } ce.propTypes = process.env.NODE_ENV !== "production" ? _t.reduce((e, t) => (e[t] = Ie, e), {}) : {}; ce.filterProps = _t; process.env.NODE_ENV !== "production" && po.reduce((e, t) => (e[t] = Ie, e), {}); function Pt(...e) { const t = e.reduce((n, o) => (o.filterProps.forEach((a) => { n[a] = o; }), n), {}), r = (n) => Object.keys(n).reduce((o, a) => t[a] ? nt(o, t[a](n)) : o, {}); return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r; } function we(e) { return typeof e != "number" ? e : `${e}px solid`; } function Ce(e, t) { return le({ prop: e, themeKey: "borders", transform: t }); } const go = Ce("border", we), bo = Ce("borderTop", we), yo = Ce("borderRight", we), vo = Ce("borderBottom", we), xo = Ce("borderLeft", we), So = Ce("borderColor"), wo = Ce("borderTopColor"), Co = Ce("borderRightColor"), Eo = Ce("borderBottomColor"), To = Ce("borderLeftColor"), ko = Ce("outline", we), Oo = Ce("outlineColor"), At = (e) => { if (e.borderRadius !== void 0 && e.borderRadius !== null) { const t = ct(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({ borderRadius: lt(t, n) }); return Re(e, e.borderRadius, r); } return null; }; At.propTypes = process.env.NODE_ENV !== "production" ? { borderRadius: Ie } : {}; At.filterProps = ["borderRadius"]; Pt(go, bo, yo, vo, xo, So, wo, Co, Eo, To, At, ko, Oo); const Rt = (e) => { if (e.gap !== void 0 && e.gap !== null) { const t = ct(e.theme, "spacing", 8, "gap"), r = (n) => ({ gap: lt(t, n)