UNPKG

@cometchat/calls-sdk-javascript

Version:

<p align="center"> <img alt="CometChat" src="https://assets.cometchat.io/website/images/logos/banner.png"> </p>

1,606 lines (1,602 loc) 2.65 MB
import './index.css';var rT = Object.defineProperty; var oT = (c, s, u) => s in c ? rT(c, s, { enumerable: !0, configurable: !0, writable: !0, value: u }) : c[s] = u; var z = (c, s, u) => oT(c, typeof s != "symbol" ? s + "" : s, u); class jN { addEventListener(s, u) { return { remove: () => { } }; } getInstance() { return this; } } var Pl; // @__NO_SIDE_EFFECTS__ function A5(c) { return { lang: (c == null ? void 0 : c.lang) ?? (Pl == null ? void 0 : Pl.lang), message: c == null ? void 0 : c.message, abortEarly: (c == null ? void 0 : c.abortEarly) ?? (Pl == null ? void 0 : Pl.abortEarly), abortPipeEarly: (c == null ? void 0 : c.abortPipeEarly) ?? (Pl == null ? void 0 : Pl.abortPipeEarly) }; } var xS; // @__NO_SIDE_EFFECTS__ function sT(c) { return xS == null ? void 0 : xS.get(c); } var ZS; // @__NO_SIDE_EFFECTS__ function lT(c) { return ZS == null ? void 0 : ZS.get(c); } var OS; // @__NO_SIDE_EFFECTS__ function cT(c, s) { var u; return (u = OS == null ? void 0 : OS.get(c)) == null ? void 0 : u.get(s); } // @__NO_SIDE_EFFECTS__ function hR(c) { var u, p; const s = typeof c; return s === "string" ? `"${c}"` : s === "number" || s === "bigint" || s === "boolean" ? `${c}` : s === "object" || s === "function" ? (c && ((p = (u = Object.getPrototypeOf(c)) == null ? void 0 : u.constructor) == null ? void 0 : p.name)) ?? "null" : s; } function ho(c, s, u, p, g) { const S = g && "input" in g ? g.input : u.value, U = (g == null ? void 0 : g.expected) ?? c.expects ?? null, Q = (g == null ? void 0 : g.received) ?? /* @__PURE__ */ hR(S), T = { kind: c.kind, type: c.type, input: S, expected: U, received: Q, message: `Invalid ${s}: ${U ? `Expected ${U} but r` : "R"}eceived ${Q}`, requirement: c.requirement, path: g == null ? void 0 : g.path, issues: g == null ? void 0 : g.issues, lang: p.lang, abortEarly: p.abortEarly, abortPipeEarly: p.abortPipeEarly }, F = c.kind === "schema", b = (g == null ? void 0 : g.message) ?? c.message ?? /* @__PURE__ */ cT(c.reference, T.lang) ?? (F ? /* @__PURE__ */ lT(T.lang) : null) ?? p.message ?? /* @__PURE__ */ sT(T.lang); b !== void 0 && (T.message = typeof b == "function" ? ( // @ts-expect-error b(T) ) : b), F && (u.typed = !1), u.issues ? u.issues.push(T) : u.issues = [T]; } // @__NO_SIDE_EFFECTS__ function $a(c) { return { version: 1, vendor: "valibot", validate(s) { return c["~run"]({ value: s }, /* @__PURE__ */ A5()); } }; } // @__NO_SIDE_EFFECTS__ function dT(c, s) { return Object.hasOwn(c, s) && s !== "__proto__" && s !== "prototype" && s !== "constructor"; } // @__NO_SIDE_EFFECTS__ function J5(c, s) { const u = [...new Set(c)]; return u.length > 1 ? `(${u.join(` ${s} `)})` : u[0] ?? "never"; } // @__NO_SIDE_EFFECTS__ function uT(c, s, u) { return typeof c.fallback == "function" ? ( // @ts-expect-error c.fallback(s, u) ) : ( // @ts-expect-error c.fallback ); } // @__NO_SIDE_EFFECTS__ function L5(c, s, u) { return typeof c.default == "function" ? ( // @ts-expect-error c.default(s, u) ) : ( // @ts-expect-error c.default ); } // @__NO_SIDE_EFFECTS__ function I5() { return { kind: "schema", type: "any", reference: I5, expects: "any", async: !1, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(c) { return c.typed = !0, c; } }; } // @__NO_SIDE_EFFECTS__ function If(c, s) { return { kind: "schema", type: "array", reference: If, expects: "Array", async: !1, item: c, message: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { var S; const g = u.value; if (Array.isArray(g)) { u.typed = !0, u.value = []; for (let U = 0; U < g.length; U++) { const Q = g[U], T = this.item["~run"]({ value: Q }, p); if (T.issues) { const F = { type: "array", origin: "value", input: g, key: U, value: Q }; for (const b of T.issues) b.path ? b.path.unshift(F) : b.path = [F], (S = u.issues) == null || S.push(b); if (u.issues || (u.issues = T.issues), p.abortEarly) { u.typed = !1; break; } } T.typed || (u.typed = !1), u.value.push(T.value); } } else ho(this, "type", u, p); return u; } }; } // @__NO_SIDE_EFFECTS__ function Qa(c) { return { kind: "schema", type: "boolean", reference: Qa, expects: "boolean", async: !1, message: c, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(s, u) { return typeof s.value == "boolean" ? s.typed = !0 : ho(this, "type", s, u), s; } }; } // @__NO_SIDE_EFFECTS__ function Gg(c, s) { return { kind: "schema", type: "literal", reference: Gg, expects: /* @__PURE__ */ hR(c), async: !1, literal: c, message: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { return u.value === this.literal ? u.typed = !0 : ho(this, "type", u, p), u; } }; } // @__NO_SIDE_EFFECTS__ function qS(c, s, u) { return { kind: "schema", type: "map", reference: qS, expects: "Map", async: !1, key: c, value: s, message: u, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(p, g) { var U, Q; const S = p.value; if (S instanceof Map) { p.typed = !0, p.value = /* @__PURE__ */ new Map(); for (const [T, F] of S) { const b = this.key["~run"]({ value: T }, g); if (b.issues) { const V = { type: "map", origin: "key", input: S, key: T, value: F }; for (const A of b.issues) A.path ? A.path.unshift(V) : A.path = [V], (U = p.issues) == null || U.push(A); if (p.issues || (p.issues = b.issues), g.abortEarly) { p.typed = !1; break; } } const M = this.value["~run"]( { value: F }, g ); if (M.issues) { const V = { type: "map", origin: "value", input: S, key: T, value: F }; for (const A of M.issues) A.path ? A.path.unshift(V) : A.path = [V], (Q = p.issues) == null || Q.push(A); if (p.issues || (p.issues = M.issues), g.abortEarly) { p.typed = !1; break; } } (!b.typed || !M.typed) && (p.typed = !1), p.value.set(b.value, M.value); } } else ho(this, "type", p, g); return p; } }; } // @__NO_SIDE_EFFECTS__ function ma(c) { return { kind: "schema", type: "number", reference: ma, expects: "number", async: !1, message: c, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(s, u) { return typeof s.value == "number" && !isNaN(s.value) ? s.typed = !0 : ho(this, "type", s, u), s; } }; } // @__NO_SIDE_EFFECTS__ function di(c, s) { return { kind: "schema", type: "object", reference: di, expects: "Object", async: !1, entries: c, message: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { var S; const g = u.value; if (g && typeof g == "object") { u.typed = !0, u.value = {}; for (const U in this.entries) { const Q = this.entries[U]; if (U in g || (Q.type === "exact_optional" || Q.type === "optional" || Q.type === "nullish") && // @ts-expect-error Q.default !== void 0) { const T = U in g ? ( // @ts-expect-error g[U] ) : /* @__PURE__ */ L5(Q), F = Q["~run"]({ value: T }, p); if (F.issues) { const b = { type: "object", origin: "value", input: g, key: U, value: T }; for (const M of F.issues) M.path ? M.path.unshift(b) : M.path = [b], (S = u.issues) == null || S.push(M); if (u.issues || (u.issues = F.issues), p.abortEarly) { u.typed = !1; break; } } F.typed || (u.typed = !1), u.value[U] = F.value; } else if (Q.fallback !== void 0) u.value[U] = /* @__PURE__ */ uT(Q); else if (Q.type !== "exact_optional" && Q.type !== "optional" && Q.type !== "nullish" && (ho(this, "key", u, p, { input: void 0, expected: `"${U}"`, path: [ { type: "object", origin: "key", input: g, key: U, // @ts-expect-error value: g[U] } ] }), p.abortEarly)) break; } } else ho(this, "type", u, p); return u; } }; } // @__NO_SIDE_EFFECTS__ function $e(c, s) { return { kind: "schema", type: "optional", reference: $e, expects: `(${c.expects} | undefined)`, async: !1, wrapped: c, default: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { return u.value === void 0 && (this.default !== void 0 && (u.value = /* @__PURE__ */ L5(this, u, p)), u.value === void 0) ? (u.typed = !0, u) : this.wrapped["~run"](u, p); } }; } // @__NO_SIDE_EFFECTS__ function W5(c, s) { return { kind: "schema", type: "picklist", reference: W5, expects: /* @__PURE__ */ J5(c.map(hR), "|"), async: !1, options: c, message: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { return this.options.includes(u.value) ? u.typed = !0 : ho(this, "type", u, p), u; } }; } // @__NO_SIDE_EFFECTS__ function H5(c, s, u) { return { kind: "schema", type: "record", reference: H5, expects: "Object", async: !1, key: c, value: s, message: u, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(p, g) { var U, Q; const S = p.value; if (S && typeof S == "object") { p.typed = !0, p.value = {}; for (const T in S) if (/* @__PURE__ */ dT(S, T)) { const F = S[T], b = this.key["~run"]({ value: T }, g); if (b.issues) { const V = { type: "object", origin: "key", input: S, key: T, value: F }; for (const A of b.issues) A.path = [V], (U = p.issues) == null || U.push(A); if (p.issues || (p.issues = b.issues), g.abortEarly) { p.typed = !1; break; } } const M = this.value["~run"]( { value: F }, g ); if (M.issues) { const V = { type: "object", origin: "value", input: S, key: T, value: F }; for (const A of M.issues) A.path ? A.path.unshift(V) : A.path = [V], (Q = p.issues) == null || Q.push(A); if (p.issues || (p.issues = M.issues), g.abortEarly) { p.typed = !1; break; } } (!b.typed || !M.typed) && (p.typed = !1), b.typed && (p.value[b.value] = M.value); } } else ho(this, "type", p, g); return p; } }; } // @__NO_SIDE_EFFECTS__ function Xt(c) { return { kind: "schema", type: "string", reference: Xt, expects: "string", async: !1, message: c, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(s, u) { return typeof s.value == "string" ? s.typed = !0 : ho(this, "type", s, u), s; } }; } // @__NO_SIDE_EFFECTS__ function D3(c) { let s; if (c) for (const u of c) s ? s.push(...u.issues) : s = u.issues; return s; } // @__NO_SIDE_EFFECTS__ function z5(c, s) { return { kind: "schema", type: "union", reference: z5, expects: /* @__PURE__ */ J5( c.map((u) => u.expects), "|" ), async: !1, options: c, message: s, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(u, p) { let g, S, U; for (const Q of this.options) { const T = Q["~run"]({ value: u.value }, p); if (T.typed) if (T.issues) S ? S.push(T) : S = [T]; else { g = T; break; } else U ? U.push(T) : U = [T]; } if (g) return g; if (S) { if (S.length === 1) return S[0]; ho(this, "type", u, p, { issues: /* @__PURE__ */ D3(S) }), u.typed = !0; } else { if ((U == null ? void 0 : U.length) === 1) return U[0]; ho(this, "type", u, p, { issues: /* @__PURE__ */ D3(U) }); } return u; } }; } // @__NO_SIDE_EFFECTS__ function j5() { return { kind: "schema", type: "unknown", reference: j5, expects: "unknown", async: !1, get "~standard"() { return /* @__PURE__ */ $a(this); }, "~run"(c) { return c.typed = !0, c; } }; } // @__NO_SIDE_EFFECTS__ function hT(c, s) { const u = {}; for (const p of s) u[p] = c.entries[p]; return { ...c, entries: u, get "~standard"() { return /* @__PURE__ */ $a(this); } }; } // @__NO_SIDE_EFFECTS__ function sv(c, s, u) { const p = c["~run"]({ value: s }, /* @__PURE__ */ A5(u)); return { typed: p.typed, success: !p.issues, output: p.value, issues: p.issues }; } class mT { constructor() { z(this, "actionListenersMap"); z(this, "emittingEvents", !1); this.actionListenersMap = /* @__PURE__ */ new Map(); } startEmitting() { this.emittingEvents = !0; } stopEmitting() { this.emittingEvents = !1; } publish(s, u = !1) { const p = s.type.startsWith("internal."); if (!this.emittingEvents && !u && !p) return; const g = this.actionListenersMap.get(s.type); if (g) for (const S of g) typeof S == "function" && ("payload" in s ? S(s.payload) : S()); } // Subscribe to actions subscribe(s, u, p) { var S, U; if ((S = p == null ? void 0 : p.signal) != null && S.aborted) return () => { }; this.actionListenersMap.get(s) || this.actionListenersMap.set(s, []), (U = this.actionListenersMap.get(s)) == null || U.push(u); const g = () => { const Q = this.actionListenersMap.get(s); Q && this.actionListenersMap.set( s, Q.filter((T) => T !== u) ); }; return p != null && p.signal && p.signal.addEventListener("abort", g, { once: !0 }), g; } } const ze = new mT(), x3 = (c) => { let s; const u = /* @__PURE__ */ new Set(), p = (F, b) => { const M = typeof F == "function" ? F(s) : F; if (!Object.is(M, s)) { const V = s; s = b ?? (typeof M != "object" || M === null) ? M : Object.assign({}, s, M), u.forEach((A) => A(s, V)); } }, g = () => s, Q = { setState: p, getState: g, getInitialState: () => T, subscribe: (F) => (u.add(F), () => u.delete(F)) }, T = s = c(p, g, Q); return Q; }, pT = (c) => c ? x3(c) : x3; function fT(c) { return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c; } var wg = { exports: {} }, kt = {}; /** * @license React * react.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 Z3; function gT() { if (Z3) return kt; Z3 = 1; var c = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), U = Symbol.for("react.context"), Q = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), F = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), M = Symbol.iterator; function V(y) { return y === null || typeof y != "object" ? null : (y = M && y[M] || y["@@iterator"], typeof y == "function" ? y : null); } var A = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, ge = Object.assign, de = {}; function Me(y, L, j) { this.props = y, this.context = L, this.refs = de, this.updater = j || A; } Me.prototype.isReactComponent = {}, Me.prototype.setState = function(y, L) { if (typeof y != "object" && typeof y != "function" && y != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, y, L, "setState"); }, Me.prototype.forceUpdate = function(y) { this.updater.enqueueForceUpdate(this, y, "forceUpdate"); }; function ee() { } ee.prototype = Me.prototype; function ae(y, L, j) { this.props = y, this.context = L, this.refs = de, this.updater = j || A; } var Re = ae.prototype = new ee(); Re.constructor = ae, ge(Re, Me.prototype), Re.isPureReactComponent = !0; var Le = Array.isArray, G = { H: null, A: null, T: null, S: null, V: null }, Qe = Object.prototype.hasOwnProperty; function Te(y, L, j, pe, Fe, Ae) { return j = Ae.ref, { $$typeof: c, type: y, key: L, ref: j !== void 0 ? j : null, props: Ae }; } function Ee(y, L) { return Te( y.type, L, void 0, void 0, void 0, y.props ); } function ye(y) { return typeof y == "object" && y !== null && y.$$typeof === c; } function Ue(y) { var L = { "=": "=0", ":": "=2" }; return "$" + y.replace(/[=:]/g, function(j) { return L[j]; }); } var be = /\/+/g; function xe(y, L) { return typeof y == "object" && y !== null && y.key != null ? Ue("" + y.key) : L.toString(36); } function Ce() { } function Ze(y) { switch (y.status) { case "fulfilled": return y.value; case "rejected": throw y.reason; default: switch (typeof y.status == "string" ? y.then(Ce, Ce) : (y.status = "pending", y.then( function(L) { y.status === "pending" && (y.status = "fulfilled", y.value = L); }, function(L) { y.status === "pending" && (y.status = "rejected", y.reason = L); } )), y.status) { case "fulfilled": return y.value; case "rejected": throw y.reason; } } throw y; } function Ne(y, L, j, pe, Fe) { var Ae = typeof y; (Ae === "undefined" || Ae === "boolean") && (y = null); var Oe = !1; if (y === null) Oe = !0; else switch (Ae) { case "bigint": case "string": case "number": Oe = !0; break; case "object": switch (y.$$typeof) { case c: case s: Oe = !0; break; case b: return Oe = y._init, Ne( Oe(y._payload), L, j, pe, Fe ); } } if (Oe) return Fe = Fe(y), Oe = pe === "" ? "." + xe(y, 0) : pe, Le(Fe) ? (j = "", Oe != null && (j = Oe.replace(be, "$&/") + "/"), Ne(Fe, L, j, "", function(pt) { return pt; })) : Fe != null && (ye(Fe) && (Fe = Ee( Fe, j + (Fe.key == null || y && y.key === Fe.key ? "" : ("" + Fe.key).replace( be, "$&/" ) + "/") + Oe )), L.push(Fe)), 1; Oe = 0; var tn = pe === "" ? "." : pe + ":"; if (Le(y)) for (var Ge = 0; Ge < y.length; Ge++) pe = y[Ge], Ae = tn + xe(pe, Ge), Oe += Ne( pe, L, j, Ae, Fe ); else if (Ge = V(y), typeof Ge == "function") for (y = Ge.call(y), Ge = 0; !(pe = y.next()).done; ) pe = pe.value, Ae = tn + xe(pe, Ge++), Oe += Ne( pe, L, j, Ae, Fe ); else if (Ae === "object") { if (typeof y.then == "function") return Ne( Ze(y), L, j, pe, Fe ); throw L = String(y), Error( "Objects are not valid as a React child (found: " + (L === "[object Object]" ? "object with keys {" + Object.keys(y).join(", ") + "}" : L) + "). If you meant to render a collection of children, use an array instead." ); } return Oe; } function Z(y, L, j) { if (y == null) return y; var pe = [], Fe = 0; return Ne(y, pe, "", "", function(Ae) { return L.call(j, Ae, Fe++); }), pe; } function X(y) { if (y._status === -1) { var L = y._result; L = L(), L.then( function(j) { (y._status === 0 || y._status === -1) && (y._status = 1, y._result = j); }, function(j) { (y._status === 0 || y._status === -1) && (y._status = 2, y._result = j); } ), y._status === -1 && (y._status = 0, y._result = L); } if (y._status === 1) return y._result.default; throw y._result; } var le = typeof reportError == "function" ? reportError : function(y) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var L = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof y == "object" && y !== null && typeof y.message == "string" ? String(y.message) : String(y), error: y }); if (!window.dispatchEvent(L)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", y); return; } console.error(y); }; function De() { } return kt.Children = { map: Z, forEach: function(y, L, j) { Z( y, function() { L.apply(this, arguments); }, j ); }, count: function(y) { var L = 0; return Z(y, function() { L++; }), L; }, toArray: function(y) { return Z(y, function(L) { return L; }) || []; }, only: function(y) { if (!ye(y)) throw Error( "React.Children.only expected to receive a single React element child." ); return y; } }, kt.Component = Me, kt.Fragment = u, kt.Profiler = g, kt.PureComponent = ae, kt.StrictMode = p, kt.Suspense = T, kt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = G, kt.__COMPILER_RUNTIME = { __proto__: null, c: function(y) { return G.H.useMemoCache(y); } }, kt.cache = function(y) { return function() { return y.apply(null, arguments); }; }, kt.cloneElement = function(y, L, j) { if (y == null) throw Error( "The argument must be a React element, but you passed " + y + "." ); var pe = ge({}, y.props), Fe = y.key, Ae = void 0; if (L != null) for (Oe in L.ref !== void 0 && (Ae = void 0), L.key !== void 0 && (Fe = "" + L.key), L) !Qe.call(L, Oe) || Oe === "key" || Oe === "__self" || Oe === "__source" || Oe === "ref" && L.ref === void 0 || (pe[Oe] = L[Oe]); var Oe = arguments.length - 2; if (Oe === 1) pe.children = j; else if (1 < Oe) { for (var tn = Array(Oe), Ge = 0; Ge < Oe; Ge++) tn[Ge] = arguments[Ge + 2]; pe.children = tn; } return Te(y.type, Fe, void 0, void 0, Ae, pe); }, kt.createContext = function(y) { return y = { $$typeof: U, _currentValue: y, _currentValue2: y, _threadCount: 0, Provider: null, Consumer: null }, y.Provider = y, y.Consumer = { $$typeof: S, _context: y }, y; }, kt.createElement = function(y, L, j) { var pe, Fe = {}, Ae = null; if (L != null) for (pe in L.key !== void 0 && (Ae = "" + L.key), L) Qe.call(L, pe) && pe !== "key" && pe !== "__self" && pe !== "__source" && (Fe[pe] = L[pe]); var Oe = arguments.length - 2; if (Oe === 1) Fe.children = j; else if (1 < Oe) { for (var tn = Array(Oe), Ge = 0; Ge < Oe; Ge++) tn[Ge] = arguments[Ge + 2]; Fe.children = tn; } if (y && y.defaultProps) for (pe in Oe = y.defaultProps, Oe) Fe[pe] === void 0 && (Fe[pe] = Oe[pe]); return Te(y, Ae, void 0, void 0, null, Fe); }, kt.createRef = function() { return { current: null }; }, kt.forwardRef = function(y) { return { $$typeof: Q, render: y }; }, kt.isValidElement = ye, kt.lazy = function(y) { return { $$typeof: b, _payload: { _status: -1, _result: y }, _init: X }; }, kt.memo = function(y, L) { return { $$typeof: F, type: y, compare: L === void 0 ? null : L }; }, kt.startTransition = function(y) { var L = G.T, j = {}; G.T = j; try { var pe = y(), Fe = G.S; Fe !== null && Fe(j, pe), typeof pe == "object" && pe !== null && typeof pe.then == "function" && pe.then(De, le); } catch (Ae) { le(Ae); } finally { G.T = L; } }, kt.unstable_useCacheRefresh = function() { return G.H.useCacheRefresh(); }, kt.use = function(y) { return G.H.use(y); }, kt.useActionState = function(y, L, j) { return G.H.useActionState(y, L, j); }, kt.useCallback = function(y, L) { return G.H.useCallback(y, L); }, kt.useContext = function(y) { return G.H.useContext(y); }, kt.useDebugValue = function() { }, kt.useDeferredValue = function(y, L) { return G.H.useDeferredValue(y, L); }, kt.useEffect = function(y, L, j) { var pe = G.H; if (typeof j == "function") throw Error( "useEffect CRUD overload is not enabled in this build of React." ); return pe.useEffect(y, L); }, kt.useId = function() { return G.H.useId(); }, kt.useImperativeHandle = function(y, L, j) { return G.H.useImperativeHandle(y, L, j); }, kt.useInsertionEffect = function(y, L) { return G.H.useInsertionEffect(y, L); }, kt.useLayoutEffect = function(y, L) { return G.H.useLayoutEffect(y, L); }, kt.useMemo = function(y, L) { return G.H.useMemo(y, L); }, kt.useOptimistic = function(y, L) { return G.H.useOptimistic(y, L); }, kt.useReducer = function(y, L, j) { return G.H.useReducer(y, L, j); }, kt.useRef = function(y) { return G.H.useRef(y); }, kt.useState = function(y) { return G.H.useState(y); }, kt.useSyncExternalStore = function(y, L, j) { return G.H.useSyncExternalStore( y, L, j ); }, kt.useTransition = function() { return G.H.useTransition(); }, kt.version = "19.1.0", kt; } var Af = { exports: {} }; /** * @license React * react.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. */ Af.exports; var O3; function vT() { return O3 || (O3 = 1, function(c, s) { process.env.NODE_ENV !== "production" && function() { function u(C, H) { Object.defineProperty(S.prototype, C, { get: function() { H[0], H[1]; } }); } function p(C) { return C === null || typeof C != "object" ? null : (C = Hn && C[Hn] || C["@@iterator"], typeof C == "function" ? C : null); } function g(C, H) { C = (C = C.constructor) && (C.displayName || C.name) || "ReactClass"; var ke = C + "." + H; qt[ke] || (console.error( "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", H, C ), qt[ke] = !0); } function S(C, H, ke) { this.props = C, this.context = H, this.refs = er, this.updater = ke || ti; } function U() { } function Q(C, H, ke) { this.props = C, this.context = H, this.refs = er, this.updater = ke || ti; } function T(C) { return "" + C; } function F(C) { try { T(C); var H = !1; } catch { H = !0; } if (H) { H = console; var ke = H.error, Be = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object"; return ke.call( H, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", Be ), T(C); } } function b(C) { if (C == null) return null; if (typeof C == "function") return C.$$typeof === Rr ? null : C.displayName || C.name || null; if (typeof C == "string") return C; switch (C) { case y: return "Fragment"; case j: return "Profiler"; case L: return "StrictMode"; case Oe: return "Suspense"; case tn: return "SuspenseList"; case wn: return "Activity"; } if (typeof C == "object") switch (typeof C.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), C.$$typeof) { case De: return "Portal"; case Fe: return (C.displayName || "Context") + ".Provider"; case pe: return (C._context.displayName || "Context") + ".Consumer"; case Ae: var H = C.render; return C = C.displayName, C || (C = H.displayName || H.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C; case Ge: return H = C.displayName || null, H !== null ? H : b(C.type) || "Memo"; case pt: H = C._payload, C = C._init; try { return b(C(H)); } catch { } } return null; } function M(C) { if (C === y) return "<>"; if (typeof C == "object" && C !== null && C.$$typeof === pt) return "<...>"; try { var H = b(C); return H ? "<" + H + ">" : "<...>"; } catch { return "<...>"; } } function V() { var C = vt.A; return C === null ? null : C.getOwner(); } function A() { return Error("react-stack-top-frame"); } function ge(C) { if (Pi.call(C, "key")) { var H = Object.getOwnPropertyDescriptor(C, "key").get; if (H && H.isReactWarning) return !1; } return C.key !== void 0; } function de(C, H) { function ke() { fa || (fa = !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)", H )); } ke.isReactWarning = !0, Object.defineProperty(C, "key", { get: ke, configurable: !0 }); } function Me() { var C = b(this.type); return po[C] || (po[C] = !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." )), C = this.props.ref, C !== void 0 ? C : null; } function ee(C, H, ke, Be, je, lt, ft, Vt) { return ke = lt.ref, C = { $$typeof: le, type: C, key: H, props: lt, _owner: je }, (ke !== void 0 ? ke : null) !== null ? Object.defineProperty(C, "ref", { enumerable: !1, get: Me }) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(C, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(C, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: ft }), Object.defineProperty(C, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: Vt }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C; } function ae(C, H) { return H = ee( C.type, H, void 0, void 0, C._owner, C.props, C._debugStack, C._debugTask ), C._store && (H._store.validated = C._store.validated), H; } function Re(C) { return typeof C == "object" && C !== null && C.$$typeof === le; } function Le(C) { var H = { "=": "=0", ":": "=2" }; return "$" + C.replace(/[=:]/g, function(ke) { return H[ke]; }); } function G(C, H) { return typeof C == "object" && C !== null && C.key != null ? (F(C.key), Le("" + C.key)) : H.toString(36); } function Qe() { } function Te(C) { switch (C.status) { case "fulfilled": return C.value; case "rejected": throw C.reason; default: switch (typeof C.status == "string" ? C.then(Qe, Qe) : (C.status = "pending", C.then( function(H) { C.status === "pending" && (C.status = "fulfilled", C.value = H); }, function(H) { C.status === "pending" && (C.status = "rejected", C.reason = H); } )), C.status) { case "fulfilled": return C.value; case "rejected": throw C.reason; } } throw C; } function Ee(C, H, ke, Be, je) { var lt = typeof C; (lt === "undefined" || lt === "boolean") && (C = null); var ft = !1; if (C === null) ft = !0; else switch (lt) { case "bigint": case "string": case "number": ft = !0; break; case "object": switch (C.$$typeof) { case le: case De: ft = !0; break; case pt: return ft = C._init, Ee( ft(C._payload), H, ke, Be, je ); } } if (ft) { ft = C, je = je(ft); var Vt = Be === "" ? "." + G(ft, 0) : Be; return Ot(je) ? (ke = "", Vt != null && (ke = Vt.replace(Jn, "$&/") + "/"), Ee(je, H, ke, "", function(Sn) { return Sn; })) : je != null && (Re(je) && (je.key != null && (ft && ft.key === je.key || F(je.key)), ke = ae( je, ke + (je.key == null || ft && ft.key === je.key ? "" : ("" + je.key).replace( Jn, "$&/" ) + "/") + Vt ), Be !== "" && ft != null && Re(ft) && ft.key == null && ft._store && !ft._store.validated && (ke._store.validated = 2), je = ke), H.push(je)), 1; } if (ft = 0, Vt = Be === "" ? "." : Be + ":", Ot(C)) for (var dt = 0; dt < C.length; dt++) Be = C[dt], lt = Vt + G(Be, dt), ft += Ee( Be, H, ke, lt, je ); else if (dt = p(C), typeof dt == "function") for (dt === C.entries && (bi = !0), C = dt.call(C), dt = 0; !(Be = C.next()).done; ) Be = Be.value, lt = Vt + G(Be, dt++), ft += Ee( Be, H, ke, lt, je ); else if (lt === "object") { if (typeof C.then == "function") return Ee( Te(C), H, ke, Be, je ); throw H = String(C), Error( "Objects are not valid as a React child (found: " + (H === "[object Object]" ? "object with keys {" + Object.keys(C).join(", ") + "}" : H) + "). If you meant to render a collection of children, use an array instead." ); } return ft; } function ye(C, H, ke) { if (C == null) return C; var Be = [], je = 0; return Ee(C, Be, "", "", function(lt) { return H.call(ke, lt, je++); }), Be; } function Ue(C) { if (C._status === -1) { var H = C._result; H = H(), H.then( function(ke) { (C._status === 0 || C._status === -1) && (C._status = 1, C._result = ke); }, function(ke) { (C._status === 0 || C._status === -1) && (C._status = 2, C._result = ke); } ), C._status === -1 && (C._status = 0, C._result = H); } if (C._status === 1) return H = C._result, H === void 0 && console.error( `lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) Did you accidentally put curly braces around the import?`, H ), "default" in H || console.error( `lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, H ), H.default; throw C._result; } function be() { var C = vt.H; return C === null && console.error( `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.` ), C; } function xe() { } function Ce(C) { if (Ur === null) try { var H = ("require" + Math.random()).slice(0, 7); Ur = (c && c[H]).call( c, "timers" ).setImmediate; } catch { Ur = function(Be) { fo === !1 && (fo = !0, typeof MessageChannel > "u" && console.error( "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." )); var je = new MessageChannel(); je.port1.onmessage = Be, je.port2.postMessage(void 0); }; } return Ur(C); } function Ze(C) { return 1 < C.length && typeof AggregateError == "function" ? new AggregateError(C) : C[0]; } function Ne(C, H) { H !== Zi - 1 && console.error( "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " ), Zi = H; } function Z(C, H, ke) { var Be = vt.actQueue; if (Be !== null) if (Be.length !== 0) try { X(Be), Ce(function() { return Z(C, H, ke); }); return; } catch (je) { vt.thrownErrors.push(je); } else vt.actQueue = null; 0 < vt.thrownErrors.length ? (Be = Ze(vt.thrownErrors), vt.thrownErrors.length = 0, ke(Be)) : H(C); } function X(C) { if (!yn) { yn = !0; var H = 0; try { for (; H < C.length; H++) { var ke = C[H]; do { vt.didUsePromise = !1; var Be = ke(!1); if (Be !== null) { if (vt.didUsePromise) { C[H] = ke, C.splice(0, H); return; } ke = Be; } else break; } while (!0); } C.length = 0; } catch (je) { C.splice(0, H + 1), vt.thrownErrors.push(je); } finally { yn = !1; } } } typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var le = Symbol.for("react.transitional.element"), De = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), L = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), pe = Symbol.for("react.consumer"), Fe = Symbol.for("react.context"), Ae = Symbol.for("react.forward_ref"), Oe = Symbol.for("react.suspense"), tn = Symbol.for("react.suspense_list"), Ge = Symbol.for("react.memo"), pt = Symbol.for("react.lazy"), wn = Symbol.for("react.activity"), Hn = Symbol.iterator, qt = {}, ti = { isMounted: function() { return !1; }, enqueueForceUpdate: function(C) { g(C, "forceUpdate"); }, enqueueReplaceState: function(C) { g(C, "replaceState"); }, enqueueSetState: function(C) { g(C, "setState"); } }, Da = Object.assign, er = {}; Object.freeze(er), S.prototype.isReactComponent = {}, S.prototype.setState = function(C, H) { if (typeof C != "object" && typeof C != "function" && C != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, C, H, "setState"); }, S.prototype.forceUpdate = function(C) { this.updater.enqueueForceUpdate(this, C, "forceUpdate"); }; var gn = { isMounted: [ "isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." ], replaceState: [ "replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." ] }, vn; for (vn in gn) gn.hasOwnProperty(vn) && u(vn, gn[vn]); U.prototype = S.prototype, gn = Q.prototype = new U(), gn.constructor = Q, Da(gn, S.prototype), gn.isPureReactComponent = !0; var Ot = Array.isArray, Rr = Symbol.for("react.client.reference"), vt = { H: null, A: null, T: null, S: null, V: null, actQueue: null, isBatchingLegacy: !1, didScheduleLegacyUpdate: !1, didUsePromise: !1, thrownErrors: [], getCurrentStack: null, recentlyCreatedOwnerStacks: 0 }, Pi = Object.prototype.hasOwnProperty, yi = console.createTask ? console.createTask : function() { return null; }; gn = { "react-stack-bottom-frame": function(C) { return C(); } }; var fa, Ni, po = {}, Gi = gn["react-stack-bottom-frame"].bind(gn, A)(), An = yi(M(A)), bi = !1, Jn = /\/+/g, Er = typeof reportError == "function" ? reportError : function(C) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var H = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof C == "object" && C !== null && typeof C.message == "string" ? String(C.message) : String(C), error: C }); if (!window.dispatchEvent(H)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", C); return; } console.error(C); }, fo = !1, Ur = null, Zi = 0, ni = !1, yn = !1, Oi = typeof queueMicrotask == "function" ? function(C) { queueMicrotask(function() { return queueMicrotask(C); }); } : Ce; gn = Object.freeze({ __proto__: null, c: function(C) { return be().useMemoCache(C); } }), s.Children = { map: ye, forEach: function(C, H, ke) { ye( C, function() { H.apply(this, arguments); }, ke ); }, count: function(C) { var H = 0; return ye(C, function() { H++; }), H; }, toArray: function(C) { return ye(C, function(H) { return H; }) || []; }, only: function(C) { if (!Re(C)) throw Error( "React.Children.only expected to receive a single React element child." ); return C; } }, s.Component = S, s.Fragment = y, s.Profiler = j, s.PureComponent = Q, s.StrictMode = L, s.Suspense = Oe, s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = vt, s.__COMPILER_RUNTIME = gn, s.act = function(C) { var H = vt.actQueue, ke = Zi; Zi++; var Be = vt.actQueue = H !== null ? H : [], je = !1; try { var lt = C(); } catch (dt) { vt.thrownErrors.push(dt); } if (0 < vt.thrownErrors.length) throw Ne(H, ke), C = Ze(vt.thrownErrors), vt.thrownErrors.length = 0, C; if (lt !== null && typeof lt == "object" && typeof lt.then == "function") { var ft = lt; return Oi(function() { je || ni || (ni = !0, console.error( "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" )); }), { then: function(dt, Sn) { je = !0, ft.then( function(Bi) { if (Ne(H, ke), ke === 0) { try { X(Be), Ce(function() { return Z( Bi, dt, Sn ); }); } catch (go) { vt.thrownErrors.push(go); } if (0 < vt.thrownErrors.length) { var qo = Ze( vt.thrownErrors ); vt.thrownErrors.length = 0, Sn(qo); } } else dt(Bi); }, function(Bi) { Ne(H, ke), 0 < vt.thrownErrors.length && (Bi = Ze( vt.thrownErrors ), vt.thrownErrors.length = 0), Sn(Bi); } ); } }; } var Vt = lt; if (Ne(H, ke), ke === 0 && (X(Be), Be.length !== 0 && Oi(function() { je || ni || (ni = !0, console.error( "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" )); }), vt.actQueue = null), 0 < vt.thrownErrors.length) throw C = Ze(vt.thrownErrors), vt.thrownErrors.length = 0, C; return { then: function(dt, Sn) { je = !0, ke === 0 ? (vt.actQueue = Be, Ce(function() { return Z( Vt, dt, Sn ); })) : dt(Vt); } }; }, s.cache = function(C) { return function() { return C.apply(null, arguments); }; }, s.captureOwnerStack = function() { var C = vt.getCurrentStack; return C === null ? null : C(); }, s.cloneElement = function(C, H, ke) { if (C == null) throw Error( "The argument must be a React element, but you passed " + C + "." ); var Be = Da({}, C.props), je = C.key, lt = C._owner; if (H != null) { var ft; e: { if (Pi.call(H, "ref") && (ft = Object.getOwnPropertyDescriptor( H,