@zoom/videosdk-ui-toolkit
Version:
The Zoom Video SDK UI toolkit is a prebuilt video chat user interface powered by the Zoom Video SDK.
1,311 lines (1,305 loc) • 5.47 MB
JavaScript
var zze = Object.defineProperty;
var Gze = (e, t, r) => t in e ? zze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var Ul = (e, t, r) => Gze(e, typeof t != "symbol" ? t + "" : t, r);
function $ze(e, t) {
for (var r = 0; r < t.length; r++) {
const n = t[r];
if (typeof n != "string" && !Array.isArray(n)) {
for (const i in n)
if (i !== "default" && !(i in e)) {
const a = Object.getOwnPropertyDescriptor(n, i);
a && Object.defineProperty(e, i, a.get ? a : {
enumerable: !0,
get: () => n[i]
});
}
}
}
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
}
var JA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function bs(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function Wze(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if (typeof t == "function") {
var r = function n() {
return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
var i = Object.getOwnPropertyDescriptor(e, n);
Object.defineProperty(r, n, i.get ? i : {
enumerable: !0,
get: function() {
return e[n];
}
});
}), r;
}
var oQ = { exports: {} }, sQ = { exports: {} }, yR = { exports: {} };
yR.exports;
var wfe;
function qze() {
return wfe || (wfe = 1, function(e, t) {
/**
* @license React
* react.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.
*/
(function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var r = "18.3.1", n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
function C(Le) {
if (Le === null || typeof Le != "object")
return null;
var Ze = m && Le[m] || Le[b];
return typeof Ze == "function" ? Ze : null;
}
var x = {
/**
* @internal
* @type {ReactComponent}
*/
current: null
}, O = {
transition: null
}, R = {
current: null,
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
isBatchingLegacy: !1,
didScheduleLegacyUpdate: !1
}, N = {
/**
* @internal
* @type {ReactComponent}
*/
current: null
}, L = {}, j = null;
function Q(Le) {
j = Le;
}
L.setExtraStackFrame = function(Le) {
j = Le;
}, L.getCurrentStack = null, L.getStackAddendum = function() {
var Le = "";
j && (Le += j);
var Ze = L.getCurrentStack;
return Ze && (Le += Ze() || ""), Le;
};
var re = !1, W = !1, G = !1, ne = !1, ee = !1, de = {
ReactCurrentDispatcher: x,
ReactCurrentBatchConfig: O,
ReactCurrentOwner: N
};
de.ReactDebugCurrentFrame = L, de.ReactCurrentActQueue = R;
function me(Le) {
{
for (var Ze = arguments.length, ur = new Array(Ze > 1 ? Ze - 1 : 0), Ir = 1; Ir < Ze; Ir++)
ur[Ir - 1] = arguments[Ir];
Ce("warn", Le, ur);
}
}
function pe(Le) {
{
for (var Ze = arguments.length, ur = new Array(Ze > 1 ? Ze - 1 : 0), Ir = 1; Ir < Ze; Ir++)
ur[Ir - 1] = arguments[Ir];
Ce("error", Le, ur);
}
}
function Ce(Le, Ze, ur) {
{
var Ir = de.ReactDebugCurrentFrame, Zr = Ir.getStackAddendum();
Zr !== "" && (Ze += "%s", ur = ur.concat([Zr]));
var Er = ur.map(function(or) {
return String(or);
});
Er.unshift("Warning: " + Ze), Function.prototype.apply.call(console[Le], console, Er);
}
}
var Ie = {};
function Qe(Le, Ze) {
{
var ur = Le.constructor, Ir = ur && (ur.displayName || ur.name) || "ReactClass", Zr = Ir + "." + Ze;
if (Ie[Zr])
return;
pe("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.", Ze, Ir), Ie[Zr] = !0;
}
}
var Ve = {
/**
* Checks whether or not this composite component is mounted.
* @param {ReactClass} publicInstance The instance we want to test.
* @return {boolean} True if mounted, false otherwise.
* @protected
* @final
*/
isMounted: function(Le) {
return !1;
},
/**
* Forces an update. This should only be invoked when it is known with
* certainty that we are **not** in a DOM transaction.
*
* You may want to call this when you know that some deeper aspect of the
* component's state has changed but `setState` was not called.
*
* This will not invoke `shouldComponentUpdate`, but it will invoke
* `componentWillUpdate` and `componentDidUpdate`.
*
* @param {ReactClass} publicInstance The instance that should rerender.
* @param {?function} callback Called after component is updated.
* @param {?string} callerName name of the calling function in the public API.
* @internal
*/
enqueueForceUpdate: function(Le, Ze, ur) {
Qe(Le, "forceUpdate");
},
/**
* Replaces all of the state. Always use this or `setState` to mutate state.
* You should treat `this.state` as immutable.
*
* There is no guarantee that `this.state` will be immediately updated, so
* accessing `this.state` after calling this method may return the old value.
*
* @param {ReactClass} publicInstance The instance that should rerender.
* @param {object} completeState Next state.
* @param {?function} callback Called after component is updated.
* @param {?string} callerName name of the calling function in the public API.
* @internal
*/
enqueueReplaceState: function(Le, Ze, ur, Ir) {
Qe(Le, "replaceState");
},
/**
* Sets a subset of the state. This only exists because _pendingState is
* internal. This provides a merging strategy that is not available to deep
* properties which is confusing. TODO: Expose pendingState or don't use it
* during the merge.
*
* @param {ReactClass} publicInstance The instance that should rerender.
* @param {object} partialState Next partial state to be merged with state.
* @param {?function} callback Called after component is updated.
* @param {?string} Name of the calling function in the public API.
* @internal
*/
enqueueSetState: function(Le, Ze, ur, Ir) {
Qe(Le, "setState");
}
}, se = Object.assign, _e = {};
Object.freeze(_e);
function Pe(Le, Ze, ur) {
this.props = Le, this.context = Ze, this.refs = _e, this.updater = ur || Ve;
}
Pe.prototype.isReactComponent = {}, Pe.prototype.setState = function(Le, Ze) {
if (typeof Le != "object" && typeof Le != "function" && Le != null)
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
this.updater.enqueueSetState(this, Le, Ze, "setState");
}, Pe.prototype.forceUpdate = function(Le) {
this.updater.enqueueForceUpdate(this, Le, "forceUpdate");
};
{
var xe = {
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)."]
}, ke = function(Le, Ze) {
Object.defineProperty(Pe.prototype, Le, {
get: function() {
me("%s(...) is deprecated in plain JavaScript React classes. %s", Ze[0], Ze[1]);
}
});
};
for (var et in xe)
xe.hasOwnProperty(et) && ke(et, xe[et]);
}
function tt() {
}
tt.prototype = Pe.prototype;
function Je(Le, Ze, ur) {
this.props = Le, this.context = Ze, this.refs = _e, this.updater = ur || Ve;
}
var xt = Je.prototype = new tt();
xt.constructor = Je, se(xt, Pe.prototype), xt.isPureReactComponent = !0;
function yt() {
var Le = {
current: null
};
return Object.seal(Le), Le;
}
var nt = Array.isArray;
function Dt(Le) {
return nt(Le);
}
function wt(Le) {
{
var Ze = typeof Symbol == "function" && Symbol.toStringTag, ur = Ze && Le[Symbol.toStringTag] || Le.constructor.name || "Object";
return ur;
}
}
function qe(Le) {
try {
return ot(Le), !1;
} catch {
return !0;
}
}
function ot(Le) {
return "" + Le;
}
function Cr(Le) {
if (qe(Le))
return pe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(Le)), ot(Le);
}
function Jt(Le, Ze, ur) {
var Ir = Le.displayName;
if (Ir)
return Ir;
var Zr = Ze.displayName || Ze.name || "";
return Zr !== "" ? ur + "(" + Zr + ")" : ur;
}
function nr(Le) {
return Le.displayName || "Context";
}
function dr(Le) {
if (Le == null)
return null;
if (typeof Le.tag == "number" && pe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof Le == "function")
return Le.displayName || Le.name || null;
if (typeof Le == "string")
return Le;
switch (Le) {
case a:
return "Fragment";
case i:
return "Portal";
case s:
return "Profiler";
case o:
return "StrictMode";
case d:
return "Suspense";
case h:
return "SuspenseList";
}
if (typeof Le == "object")
switch (Le.$$typeof) {
case l:
var Ze = Le;
return nr(Ze) + ".Consumer";
case u:
var ur = Le;
return nr(ur._context) + ".Provider";
case c:
return Jt(Le, Le.render, "ForwardRef");
case p:
var Ir = Le.displayName || null;
return Ir !== null ? Ir : dr(Le.type) || "Memo";
case g: {
var Zr = Le, Er = Zr._payload, or = Zr._init;
try {
return dr(or(Er));
} catch {
return null;
}
}
}
return null;
}
var Rt = Object.prototype.hasOwnProperty, Zt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, zt, Nr, xr;
xr = {};
function vr(Le) {
if (Rt.call(Le, "ref")) {
var Ze = Object.getOwnPropertyDescriptor(Le, "ref").get;
if (Ze && Ze.isReactWarning)
return !1;
}
return Le.ref !== void 0;
}
function on(Le) {
if (Rt.call(Le, "key")) {
var Ze = Object.getOwnPropertyDescriptor(Le, "key").get;
if (Ze && Ze.isReactWarning)
return !1;
}
return Le.key !== void 0;
}
function kn(Le, Ze) {
var ur = function() {
zt || (zt = !0, pe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ze));
};
ur.isReactWarning = !0, Object.defineProperty(Le, "key", {
get: ur,
configurable: !0
});
}
function Sn(Le, Ze) {
var ur = function() {
Nr || (Nr = !0, pe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ze));
};
ur.isReactWarning = !0, Object.defineProperty(Le, "ref", {
get: ur,
configurable: !0
});
}
function Mr(Le) {
if (typeof Le.ref == "string" && N.current && Le.__self && N.current.stateNode !== Le.__self) {
var Ze = dr(N.current.type);
xr[Ze] || (pe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Ze, Le.ref), xr[Ze] = !0);
}
}
var Ar = function(Le, Ze, ur, Ir, Zr, Er, or) {
var Gr = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: n,
// Built-in properties that belong on the element
type: Le,
key: Ze,
ref: ur,
props: or,
// Record the component responsible for creating this element.
_owner: Er
};
return Gr._store = {}, Object.defineProperty(Gr._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Gr, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Ir
}), Object.defineProperty(Gr, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Zr
}), Object.freeze && (Object.freeze(Gr.props), Object.freeze(Gr)), Gr;
};
function xn(Le, Ze, ur) {
var Ir, Zr = {}, Er = null, or = null, Gr = null, Dn = null;
if (Ze != null) {
vr(Ze) && (or = Ze.ref, Mr(Ze)), on(Ze) && (Cr(Ze.key), Er = "" + Ze.key), Gr = Ze.__self === void 0 ? null : Ze.__self, Dn = Ze.__source === void 0 ? null : Ze.__source;
for (Ir in Ze)
Rt.call(Ze, Ir) && !Zt.hasOwnProperty(Ir) && (Zr[Ir] = Ze[Ir]);
}
var Rn = arguments.length - 2;
if (Rn === 1)
Zr.children = ur;
else if (Rn > 1) {
for (var mr = Array(Rn), H = 0; H < Rn; H++)
mr[H] = arguments[H + 2];
Object.freeze && Object.freeze(mr), Zr.children = mr;
}
if (Le && Le.defaultProps) {
var Ei = Le.defaultProps;
for (Ir in Ei)
Zr[Ir] === void 0 && (Zr[Ir] = Ei[Ir]);
}
if (Er || or) {
var ji = typeof Le == "function" ? Le.displayName || Le.name || "Unknown" : Le;
Er && kn(Zr, ji), or && Sn(Zr, ji);
}
return Ar(Le, Er, or, Gr, Dn, N.current, Zr);
}
function In(Le, Ze) {
var ur = Ar(Le.type, Ze, Le.ref, Le._self, Le._source, Le._owner, Le.props);
return ur;
}
function Ln(Le, Ze, ur) {
if (Le == null)
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + Le + ".");
var Ir, Zr = se({}, Le.props), Er = Le.key, or = Le.ref, Gr = Le._self, Dn = Le._source, Rn = Le._owner;
if (Ze != null) {
vr(Ze) && (or = Ze.ref, Rn = N.current), on(Ze) && (Cr(Ze.key), Er = "" + Ze.key);
var mr;
Le.type && Le.type.defaultProps && (mr = Le.type.defaultProps);
for (Ir in Ze)
Rt.call(Ze, Ir) && !Zt.hasOwnProperty(Ir) && (Ze[Ir] === void 0 && mr !== void 0 ? Zr[Ir] = mr[Ir] : Zr[Ir] = Ze[Ir]);
}
var H = arguments.length - 2;
if (H === 1)
Zr.children = ur;
else if (H > 1) {
for (var Ei = Array(H), ji = 0; ji < H; ji++)
Ei[ji] = arguments[ji + 2];
Zr.children = Ei;
}
return Ar(Le.type, Er, or, Gr, Dn, Rn, Zr);
}
function zn(Le) {
return typeof Le == "object" && Le !== null && Le.$$typeof === n;
}
var li = ".", Ji = ":";
function Xn(Le) {
var Ze = /[=:]/g, ur = {
"=": "=0",
":": "=2"
}, Ir = Le.replace(Ze, function(Zr) {
return ur[Zr];
});
return "$" + Ir;
}
var bi = !1, Cn = /\/+/g;
function Ia(Le) {
return Le.replace(Cn, "$&/");
}
function Bi(Le, Ze) {
return typeof Le == "object" && Le !== null && Le.key != null ? (Cr(Le.key), Xn("" + Le.key)) : Ze.toString(36);
}
function vn(Le, Ze, ur, Ir, Zr) {
var Er = typeof Le;
(Er === "undefined" || Er === "boolean") && (Le = null);
var or = !1;
if (Le === null)
or = !0;
else
switch (Er) {
case "string":
case "number":
or = !0;
break;
case "object":
switch (Le.$$typeof) {
case n:
case i:
or = !0;
}
}
if (or) {
var Gr = Le, Dn = Zr(Gr), Rn = Ir === "" ? li + Bi(Gr, 0) : Ir;
if (Dt(Dn)) {
var mr = "";
Rn != null && (mr = Ia(Rn) + "/"), vn(Dn, Ze, mr, "", function(Ao) {
return Ao;
});
} else Dn != null && (zn(Dn) && (Dn.key && (!Gr || Gr.key !== Dn.key) && Cr(Dn.key), Dn = In(
Dn,
// Keep both the (mapped) and old keys if they differ, just as
// traverseAllChildren used to do for objects as children
ur + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
(Dn.key && (!Gr || Gr.key !== Dn.key) ? (
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
// eslint-disable-next-line react-internal/safe-string-coercion
Ia("" + Dn.key) + "/"
) : "") + Rn
)), Ze.push(Dn));
return 1;
}
var H, Ei, ji = 0, Wa = Ir === "" ? li : Ir + Ji;
if (Dt(Le))
for (var uo = 0; uo < Le.length; uo++)
H = Le[uo], Ei = Wa + Bi(H, uo), ji += vn(H, Ze, ur, Ei, Zr);
else {
var as = C(Le);
if (typeof as == "function") {
var sl = Le;
as === sl.entries && (bi || me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), bi = !0);
for (var kl = as.call(sl), Na, Au = 0; !(Na = kl.next()).done; )
H = Na.value, Ei = Wa + Bi(H, Au++), ji += vn(H, Ze, ur, Ei, Zr);
} else if (Er === "object") {
var no = String(Le);
throw new Error("Objects are not valid as a React child (found: " + (no === "[object Object]" ? "object with keys {" + Object.keys(Le).join(", ") + "}" : no) + "). If you meant to render a collection of children, use an array instead.");
}
}
return ji;
}
function Fn(Le, Ze, ur) {
if (Le == null)
return Le;
var Ir = [], Zr = 0;
return vn(Le, Ir, "", "", function(Er) {
return Ze.call(ur, Er, Zr++);
}), Ir;
}
function qn(Le) {
var Ze = 0;
return Fn(Le, function() {
Ze++;
}), Ze;
}
function Kn(Le, Ze, ur) {
Fn(Le, function() {
Ze.apply(this, arguments);
}, ur);
}
function pn(Le) {
return Fn(Le, function(Ze) {
return Ze;
}) || [];
}
function Di(Le) {
if (!zn(Le))
throw new Error("React.Children.only expected to receive a single React element child.");
return Le;
}
function Ki(Le) {
var Ze = {
$$typeof: l,
// As a workaround to support multiple concurrent renderers, we categorize
// some renderers as primary and others as secondary. We only expect
// there to be two concurrent renderers at most: React Native (primary) and
// Fabric (secondary); React DOM (primary) and React ART (secondary).
// Secondary renderers store their context values on separate fields.
_currentValue: Le,
_currentValue2: Le,
// Used to track how many concurrent renderers this context currently
// supports within in a single renderer. Such as parallel server rendering.
_threadCount: 0,
// These are circular
Provider: null,
Consumer: null,
// Add these to use same hidden class in VM as ServerContext
_defaultValue: null,
_globalName: null
};
Ze.Provider = {
$$typeof: u,
_context: Ze
};
var ur = !1, Ir = !1, Zr = !1;
{
var Er = {
$$typeof: l,
_context: Ze
};
Object.defineProperties(Er, {
Provider: {
get: function() {
return Ir || (Ir = !0, pe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), Ze.Provider;
},
set: function(or) {
Ze.Provider = or;
}
},
_currentValue: {
get: function() {
return Ze._currentValue;
},
set: function(or) {
Ze._currentValue = or;
}
},
_currentValue2: {
get: function() {
return Ze._currentValue2;
},
set: function(or) {
Ze._currentValue2 = or;
}
},
_threadCount: {
get: function() {
return Ze._threadCount;
},
set: function(or) {
Ze._threadCount = or;
}
},
Consumer: {
get: function() {
return ur || (ur = !0, pe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), Ze.Consumer;
}
},
displayName: {
get: function() {
return Ze.displayName;
},
set: function(or) {
Zr || (me("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", or), Zr = !0);
}
}
}), Ze.Consumer = Er;
}
return Ze._currentRenderer = null, Ze._currentRenderer2 = null, Ze;
}
var lr = -1, Nn = 0, jn = 1, mi = 2;
function Yi(Le) {
if (Le._status === lr) {
var Ze = Le._result, ur = Ze();
if (ur.then(function(Er) {
if (Le._status === Nn || Le._status === lr) {
var or = Le;
or._status = jn, or._result = Er;
}
}, function(Er) {
if (Le._status === Nn || Le._status === lr) {
var or = Le;
or._status = mi, or._result = Er;
}
}), Le._status === lr) {
var Ir = Le;
Ir._status = Nn, Ir._result = ur;
}
}
if (Le._status === jn) {
var Zr = Le._result;
return Zr === void 0 && pe(`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?`, Zr), "default" in Zr || pe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`, Zr), Zr.default;
} else
throw Le._result;
}
function fa(Le) {
var Ze = {
// We use these fields to store the result.
_status: lr,
_result: Le
}, ur = {
$$typeof: g,
_payload: Ze,
_init: Yi
};
{
var Ir, Zr;
Object.defineProperties(ur, {
defaultProps: {
configurable: !0,
get: function() {
return Ir;
},
set: function(Er) {
pe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), Ir = Er, Object.defineProperty(ur, "defaultProps", {
enumerable: !0
});
}
},
propTypes: {
configurable: !0,
get: function() {
return Zr;
},
set: function(Er) {
pe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), Zr = Er, Object.defineProperty(ur, "propTypes", {
enumerable: !0
});
}
}
});
}
return ur;
}
function ja(Le) {
Le != null && Le.$$typeof === p ? pe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof Le != "function" ? pe("forwardRef requires a render function but was given %s.", Le === null ? "null" : typeof Le) : Le.length !== 0 && Le.length !== 2 && pe("forwardRef render functions accept exactly two parameters: props and ref. %s", Le.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), Le != null && (Le.defaultProps != null || Le.propTypes != null) && pe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
var Ze = {
$$typeof: c,
render: Le
};
{
var ur;
Object.defineProperty(Ze, "displayName", {
enumerable: !1,
configurable: !0,
get: function() {
return ur;
},
set: function(Ir) {
ur = Ir, !Le.name && !Le.displayName && (Le.displayName = Ir);
}
});
}
return Ze;
}
var Et;
Et = Symbol.for("react.module.reference");
function Dr(Le) {
return !!(typeof Le == "string" || typeof Le == "function" || Le === a || Le === s || ee || Le === o || Le === d || Le === h || ne || Le === v || re || W || G || typeof Le == "object" && Le !== null && (Le.$$typeof === g || Le.$$typeof === p || Le.$$typeof === u || Le.$$typeof === l || Le.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
Le.$$typeof === Et || Le.getModuleId !== void 0));
}
function zr(Le, Ze) {
Dr(Le) || pe("memo: The first argument must be a component. Instead received: %s", Le === null ? "null" : typeof Le);
var ur = {
$$typeof: p,
type: Le,
compare: Ze === void 0 ? null : Ze
};
{
var Ir;
Object.defineProperty(ur, "displayName", {
enumerable: !1,
configurable: !0,
get: function() {
return Ir;
},
set: function(Zr) {
Ir = Zr, !Le.name && !Le.displayName && (Le.displayName = Zr);
}
});
}
return ur;
}
function _n() {
var Le = x.current;
return Le === null && pe(`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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), Le;
}
function wi(Le) {
var Ze = _n();
if (Le._context !== void 0) {
var ur = Le._context;
ur.Consumer === Le ? pe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : ur.Provider === Le && pe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
}
return Ze.useContext(Le);
}
function si(Le) {
var Ze = _n();
return Ze.useState(Le);
}
function fi(Le, Ze, ur) {
var Ir = _n();
return Ir.useReducer(Le, Ze, ur);
}
function _i(Le) {
var Ze = _n();
return Ze.useRef(Le);
}
function En(Le, Ze) {
var ur = _n();
return ur.useEffect(Le, Ze);
}
function St(Le, Ze) {
var ur = _n();
return ur.useInsertionEffect(Le, Ze);
}
function Ur(Le, Ze) {
var ur = _n();
return ur.useLayoutEffect(Le, Ze);
}
function Wr(Le, Ze) {
var ur = _n();
return ur.useCallback(Le, Ze);
}
function Si(Le, Ze) {
var ur = _n();
return ur.useMemo(Le, Ze);
}
function ua(Le, Ze, ur) {
var Ir = _n();
return Ir.useImperativeHandle(Le, Ze, ur);
}
function Pi(Le, Ze) {
{
var ur = _n();
return ur.useDebugValue(Le, Ze);
}
}
function Ai() {
var Le = _n();
return Le.useTransition();
}
function Ka(Le) {
var Ze = _n();
return Ze.useDeferredValue(Le);
}
function Uo() {
var Le = _n();
return Le.useId();
}
function Ro(Le, Ze, ur) {
var Ir = _n();
return Ir.useSyncExternalStore(Le, Ze, ur);
}
var xs = 0, so, Ho, xu, cu, Iu, Ga, ol;
function Ya() {
}
Ya.__reactDisabledLog = !0;
function eu() {
{
if (xs === 0) {
so = console.log, Ho = console.info, xu = console.warn, cu = console.error, Iu = console.group, Ga = console.groupCollapsed, ol = console.groupEnd;
var Le = {
configurable: !0,
enumerable: !0,
value: Ya,
writable: !0
};
Object.defineProperties(console, {
info: Le,
log: Le,
warn: Le,
error: Le,
group: Le,
groupCollapsed: Le,
groupEnd: Le
});
}
xs++;
}
}
function Bo() {
{
if (xs--, xs === 0) {
var Le = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: se({}, Le, {
value: so
}),
info: se({}, Le, {
value: Ho
}),
warn: se({}, Le, {
value: xu
}),
error: se({}, Le, {
value: cu
}),
group: se({}, Le, {
value: Iu
}),
groupCollapsed: se({}, Le, {
value: Ga
}),
groupEnd: se({}, Le, {
value: ol
})
});
}
xs < 0 && pe("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var La = de.ReactCurrentDispatcher, $a;
function ns(Le, Ze, ur) {
{
if ($a === void 0)
try {
throw Error();
} catch (Zr) {
var Ir = Zr.stack.trim().match(/\n( *(at )?)/);
$a = Ir && Ir[1] || "";
}
return `
` + $a + Le;
}
}
var fs = !1, gl;
{
var fu = typeof WeakMap == "function" ? WeakMap : Map;
gl = new fu();
}
function tu(Le, Ze) {
if (!Le || fs)
return "";
{
var ur = gl.get(Le);
if (ur !== void 0)
return ur;
}
var Ir;
fs = !0;
var Zr = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Er;
Er = La.current, La.current = null, eu();
try {
if (Ze) {
var or = function() {
throw Error();
};
if (Object.defineProperty(or.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(or, []);
} catch (Wa) {
Ir = Wa;
}
Reflect.construct(Le, [], or);
} else {
try {
or.call();
} catch (Wa) {
Ir = Wa;
}
Le.call(or.prototype);
}
} else {
try {
throw Error();
} catch (Wa) {
Ir = Wa;
}
Le();
}
} catch (Wa) {
if (Wa && Ir && typeof Wa.stack == "string") {
for (var Gr = Wa.stack.split(`
`), Dn = Ir.stack.split(`
`), Rn = Gr.length - 1, mr = Dn.length - 1; Rn >= 1 && mr >= 0 && Gr[Rn] !== Dn[mr]; )
mr--;
for (; Rn >= 1 && mr >= 0; Rn--, mr--)
if (Gr[Rn] !== Dn[mr]) {
if (Rn !== 1 || mr !== 1)
do
if (Rn--, mr--, mr < 0 || Gr[Rn] !== Dn[mr]) {
var H = `
` + Gr[Rn].replace(" at new ", " at ");
return Le.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", Le.displayName)), typeof Le == "function" && gl.set(Le, H), H;
}
while (Rn >= 1 && mr >= 0);
break;
}
}
} finally {
fs = !1, La.current = Er, Bo(), Error.prepareStackTrace = Zr;
}
var Ei = Le ? Le.displayName || Le.name : "", ji = Ei ? ns(Ei) : "";
return typeof Le == "function" && gl.set(Le, ji), ji;
}
function Vo(Le, Ze, ur) {
return tu(Le, !1);
}
function Qo(Le) {
var Ze = Le.prototype;
return !!(Ze && Ze.isReactComponent);
}
function du(Le, Ze, ur) {
if (Le == null)
return "";
if (typeof Le == "function")
return tu(Le, Qo(Le));
if (typeof Le == "string")
return ns(Le);
switch (Le) {
case d:
return ns("Suspense");
case h:
return ns("SuspenseList");
}
if (typeof Le == "object")
switch (Le.$$typeof) {
case c:
return Vo(Le.render);
case p:
return du(Le.type, Ze, ur);
case g: {
var Ir = Le, Zr = Ir._payload, Er = Ir._init;
try {
return du(Er(Zr), Ze, ur);
} catch {
}
}
}
return "";
}
var he = {}, F = de.ReactDebugCurrentFrame;
function Y(Le) {
if (Le) {
var Ze = Le._owner, ur = du(Le.type, Le._source, Ze ? Ze.type : null);
F.setExtraStackFrame(ur);
} else
F.setExtraStackFrame(null);
}
function be(Le, Ze, ur, Ir, Zr) {
{
var Er = Function.call.bind(Rt);
for (var or in Le)
if (Er(Le, or)) {
var Gr = void 0;
try {
if (typeof Le[or] != "function") {
var Dn = Error((Ir || "React class") + ": " + ur + " type `" + or + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Le[or] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Dn.name = "Invariant Violation", Dn;
}
Gr = Le[or](Ze, or, Ir, ur, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (Rn) {
Gr = Rn;
}
Gr && !(Gr instanceof Error) && (Y(Zr), pe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ir || "React class", ur, or, typeof Gr), Y(null)), Gr instanceof Error && !(Gr.message in he) && (he[Gr.message] = !0, Y(Zr), pe("Failed %s type: %s", ur, Gr.message), Y(null));
}
}
}
function Oe(Le) {
if (Le) {
var Ze = Le._owner, ur = du(Le.type, Le._source, Ze ? Ze.type : null);
Q(ur);
} else
Q(null);
}
var Ne;
Ne = !1;
function $e() {
if (N.current) {
var Le = dr(N.current.type);
if (Le)
return `
Check the render method of \`` + Le + "`.";
}
return "";
}
function ie(Le) {
if (Le !== void 0) {
var Ze = Le.fileName.replace(/^.*[\\\/]/, ""), ur = Le.lineNumber;
return `
Check your code at ` + Ze + ":" + ur + ".";
}
return "";
}
function le(Le) {
return Le != null ? ie(Le.__source) : "";
}
var K = {};
function ve(Le) {
var Ze = $e();
if (!Ze) {
var ur = typeof Le == "string" ? Le : Le.displayName || Le.name;
ur && (Ze = `
Check the top-level render call using <` + ur + ">.");
}
return Ze;
}
function Me(Le, Ze) {
if (!(!Le._store || Le._store.validated || Le.key != null)) {
Le._store.validated = !0;
var ur = ve(Ze);
if (!K[ur]) {
K[ur] = !0;
var Ir = "";
Le && Le._owner && Le._owner !== N.current && (Ir = " It was passed a child from " + dr(Le._owner.type) + "."), Oe(Le), pe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ur, Ir), Oe(null);
}
}
}
function Be(Le, Ze) {
if (typeof Le == "object") {
if (Dt(Le))
for (var ur = 0; ur < Le.length; ur++) {
var Ir = Le[ur];
zn(Ir) && Me(Ir, Ze);
}
else if (zn(Le))
Le._store && (Le._store.validated = !0);
else if (Le) {
var Zr = C(Le);
if (typeof Zr == "function" && Zr !== Le.entries)
for (var Er = Zr.call(Le), or; !(or = Er.next()).done; )
zn(or.value) && Me(or.value, Ze);
}
}
}
function We(Le) {
{
var Ze = Le.type;
if (Ze == null || typeof Ze == "string")
return;
var ur;
if (typeof Ze == "function")
ur = Ze.propTypes;
else if (typeof Ze == "object" && (Ze.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
Ze.$$typeof === p))
ur = Ze.propTypes;
else
return;
if (ur) {
var Ir = dr(Ze);
be(ur, Le.props, "prop", Ir, Le);
} else if (Ze.PropTypes !== void 0 && !Ne) {
Ne = !0;
var Zr = dr(Ze);
pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Zr || "Unknown");
}
typeof Ze.getDefaultProps == "function" && !Ze.getDefaultProps.isReactClassApproved && pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function st(Le) {
{
for (var Ze = Object.keys(Le.props), ur = 0; ur < Ze.length; ur++) {
var Ir = Ze[ur];
if (Ir !== "children" && Ir !== "key") {
Oe(Le), pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ir), Oe(null);
break;
}
}
Le.ref !== null && (Oe(Le), pe("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
}
}
function ht(Le, Ze, ur) {
var Ir = Dr(Le);
if (!Ir) {
var Zr = "";
(Le === void 0 || typeof Le == "object" && Le !== null && Object.keys(Le).length === 0) && (Zr += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Er = le(Ze);
Er ? Zr += Er : Zr += $e();
var or;
Le === null ? or = "null" : Dt(Le) ? or = "array" : Le !== void 0 && Le.$$typeof === n ? (or = "<" + (dr(Le.type) || "Unknown") + " />", Zr = " Did you accidentally export a JSX literal instead of a component?") : or = typeof Le, pe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", or, Zr);
}
var Gr = xn.apply(this, arguments);
if (Gr == null)
return Gr;
if (Ir)
for (var Dn = 2; Dn < arguments.length; Dn++)
Be(arguments[Dn], Le);
return Le === a ? st(Gr) : We(Gr), Gr;
}
var It = !1;
function Ft(Le) {
var Ze = ht.bind(null, Le);
return Ze.type = Le, It || (It = !0, me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(Ze, "type", {
enumerable: !1,
get: function() {
return me("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
value: Le
}), Le;
}
}), Ze;
}
function Lt(Le, Ze, ur) {
for (var Ir = Ln.apply(this, arguments), Zr = 2; Zr < arguments.length; Zr++)
Be(arguments[Zr], Ir.type);
return We(Ir), Ir;
}
function _t(Le, Ze) {
var ur = O.transition;
O.transition = {};
var Ir = O.transition;
O.transition._updatedFibers = /* @__PURE__ */ new Set();
try {
Le();
} finally {
if (O.transition = ur, ur === null && Ir._updatedFibers) {
var Zr = Ir._updatedFibers.size;
Zr > 10 && me("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), Ir._updatedFibers.clear();
}
}
}
var $t = !1, Ct = null;
function Pt(Le) {
if (Ct === null)
try {
var Ze = ("require" + Math.random()).slice(0, 7), ur = e && e[Ze];
Ct = ur.call(e, "timers").setImmediate;
} catch {
Ct = function(Zr) {
$t === !1 && ($t = !0, typeof MessageChannel > "u" && pe("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 Er = new MessageChannel();
Er.port1.onmessage = Zr, Er.port2.postMessage(void 0);
};
}
return Ct(Le);
}
var Gt = 0, Lr = !1;
function cn(Le) {
{
var Ze = Gt;
Gt++, R.current === null && (R.current = []);
var ur = R.isBatchingLegacy, Ir;
try {
if (R.isBatchingLegacy = !0, Ir = Le(), !ur && R.didScheduleLegacyUpdate) {
var Zr = R.current;
Zr !== null && (R.didScheduleLegacyUpdate = !1, ma(Zr));
}
} catch (Ei) {
throw An(Ze), Ei;
} finally {
R.isBatchingLegacy = ur;
}
if (Ir !== null && typeof Ir == "object" && typeof Ir.then == "function") {
var Er = Ir, or = !1, Gr = {
then: function(Ei, ji) {
or = !0, Er.then(function(Wa) {
An(Ze), Gt === 0 ? $n(Wa, Ei, ji) : Ei(Wa);
}, function(Wa) {
An(Ze), ji(Wa);
});
}
};
return !Lr && typeof Promise < "u" && Promise.resolve().then(function() {
}).then(function() {
or || (Lr = !0, pe("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 () => ...);"));
}), Gr;
} else {
var Dn = Ir;
if (An(Ze), Gt === 0) {
var Rn = R.current;
Rn !== null && (ma(Rn), R.current = null);
var mr = {
then: function(Ei, ji) {
R.current === null ? (R.current = [], $n(Dn, Ei, ji)) : Ei(Dn);
}
};
return mr;
} else {
var H = {
then: function(Ei, ji) {
Ei(Dn);
}
};
return H;
}
}
}
}
function An(Le) {
Le !== Gt - 1 && pe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Gt = Le;
}
function $n(Le, Ze, ur) {
{
var Ir = R.current;
if (Ir !== null)
try {
ma(Ir), Pt(function() {
Ir.length === 0 ? (R.current = null, Ze(Le)) : $n(Le, Ze, ur);
});
} catch (Zr) {
ur(Zr);
}
else
Ze(Le);
}
}
var Mi = !1;
function ma(Le) {
if (!Mi) {
Mi = !0;
var Ze = 0;
try {
for (; Ze < Le.length; Ze++) {
var ur = Le[Ze];
do
ur = ur(!0);
while (ur !== null);
}
Le.length = 0;
} catch (Ir) {
throw Le = Le.slice(Ze + 1), Ir;
} finally {
Mi = !1;
}
}
}
var Xi = ht, is = Lt, fo = Ft, ba = {
map: Fn,
forEach: Kn,
count: qn,
toArray: pn,
only: Di
};
t.Children = ba, t.Component = Pe, t.Fragment = a, t.Profiler = s, t.PureComponent = Je, t.StrictMode = o, t.Suspense = d, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = de, t.act = cn, t.cloneElement = is, t.createContext = Ki, t.createElement = Xi, t.createFactory = fo, t.createRef = yt, t.forwardRef = ja, t.isValidElement = zn, t.lazy = fa, t.memo = zr, t.startTransition = _t, t.unstable_act = cn, t.useCallback = Wr, t.useContext = wi, t.useDebugValue = Pi, t.useDeferredValue = Ka, t.useEffect = En, t.useId = Uo, t.useImperativeHandle = ua, t.useInsertionEffect = St, t.useLayoutEffect = Ur, t.useMemo = Si, t.useReducer = fi, t.useRef = _i, t.useState = si, t.useSyncExternalStore = Ro, t.useTransition = Ai, t.version = r, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
})();
}(yR,