UNPKG

bkit-chatbot-client-test

Version:

A starter vanilla-ts (extended) template that began with Vite 3.x, prepared for writing node utility libraries in typescript. This starter is meant to provide rapid node package development and publishing onto npm.

1,348 lines (1,341 loc) 322 kB
var Oa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Jt(a) { return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a; } var Nr = { exports: {} }, x = {}; /** * @license React * react.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 jt; function Ma() { if (jt) return x; jt = 1; var a = Symbol.for("react.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), y = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), z = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), I = Symbol.iterator; function F(g) { return g === null || typeof g != "object" ? null : (g = I && g[I] || g["@@iterator"], typeof g == "function" ? g : null); } var ee = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, J = Object.assign, G = {}; function X(g, v, j) { this.props = g, this.context = v, this.refs = G, this.updater = j || ee; } X.prototype.isReactComponent = {}, X.prototype.setState = function(g, v) { if (typeof g != "object" && typeof g != "function" && g != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, g, v, "setState"); }, X.prototype.forceUpdate = function(g) { this.updater.enqueueForceUpdate(this, g, "forceUpdate"); }; function ae() { } ae.prototype = X.prototype; function Z(g, v, j) { this.props = g, this.context = v, this.refs = G, this.updater = j || ee; } var ne = Z.prototype = new ae(); ne.constructor = Z, J(ne, X.prototype), ne.isPureReactComponent = !0; var n = Array.isArray, s = Object.prototype.hasOwnProperty, u = { current: null }, d = { key: !0, ref: !0, __self: !0, __source: !0 }; function h(g, v, j) { var $, D = {}, H = null, Y = null; if (v != null) for ($ in v.ref !== void 0 && (Y = v.ref), v.key !== void 0 && (H = "" + v.key), v) s.call(v, $) && !d.hasOwnProperty($) && (D[$] = v[$]); var V = arguments.length - 2; if (V === 1) D.children = j; else if (1 < V) { for (var U = Array(V), fe = 0; fe < V; fe++) U[fe] = arguments[fe + 2]; D.children = U; } if (g && g.defaultProps) for ($ in V = g.defaultProps, V) D[$] === void 0 && (D[$] = V[$]); return { $$typeof: a, type: g, key: H, ref: Y, props: D, _owner: u.current }; } function m(g, v) { return { $$typeof: a, type: g.type, key: v, ref: g.ref, props: g.props, _owner: g._owner }; } function l(g) { return typeof g == "object" && g !== null && g.$$typeof === a; } function b(g) { var v = { "=": "=0", ":": "=2" }; return "$" + g.replace(/[=:]/g, function(j) { return v[j]; }); } var E = /\/+/g; function S(g, v) { return typeof g == "object" && g !== null && g.key != null ? b("" + g.key) : v.toString(36); } function C(g, v, j, $, D) { var H = typeof g; (H === "undefined" || H === "boolean") && (g = null); var Y = !1; if (g === null) Y = !0; else switch (H) { case "string": case "number": Y = !0; break; case "object": switch (g.$$typeof) { case a: case e: Y = !0; } } if (Y) return Y = g, D = D(Y), g = $ === "" ? "." + S(Y, 0) : $, n(D) ? (j = "", g != null && (j = g.replace(E, "$&/") + "/"), C(D, v, j, "", function(fe) { return fe; })) : D != null && (l(D) && (D = m(D, j + (!D.key || Y && Y.key === D.key ? "" : ("" + D.key).replace(E, "$&/") + "/") + g)), v.push(D)), 1; if (Y = 0, $ = $ === "" ? "." : $ + ":", n(g)) for (var V = 0; V < g.length; V++) { H = g[V]; var U = $ + S(H, V); Y += C(H, v, j, U, D); } else if (U = F(g), typeof U == "function") for (g = U.call(g), V = 0; !(H = g.next()).done; ) H = H.value, U = $ + S(H, V++), Y += C(H, v, j, U, D); else if (H === "object") throw v = String(g), Error("Objects are not valid as a React child (found: " + (v === "[object Object]" ? "object with keys {" + Object.keys(g).join(", ") + "}" : v) + "). If you meant to render a collection of children, use an array instead."); return Y; } function P(g, v, j) { if (g == null) return g; var $ = [], D = 0; return C(g, $, "", "", function(H) { return v.call(j, H, D++); }), $; } function c(g) { if (g._status === -1) { var v = g._result; v = v(), v.then(function(j) { (g._status === 0 || g._status === -1) && (g._status = 1, g._result = j); }, function(j) { (g._status === 0 || g._status === -1) && (g._status = 2, g._result = j); }), g._status === -1 && (g._status = 0, g._result = v); } if (g._status === 1) return g._result.default; throw g._result; } var _ = { current: null }, O = { transition: null }, M = { ReactCurrentDispatcher: _, ReactCurrentBatchConfig: O, ReactCurrentOwner: u }; return x.Children = { map: P, forEach: function(g, v, j) { P(g, function() { v.apply(this, arguments); }, j); }, count: function(g) { var v = 0; return P(g, function() { v++; }), v; }, toArray: function(g) { return P(g, function(v) { return v; }) || []; }, only: function(g) { if (!l(g)) throw Error("React.Children.only expected to receive a single React element child."); return g; } }, x.Component = X, x.Fragment = t, x.Profiler = i, x.PureComponent = Z, x.StrictMode = r, x.Suspense = A, x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = M, x.cloneElement = function(g, v, j) { if (g == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + g + "."); var $ = J({}, g.props), D = g.key, H = g.ref, Y = g._owner; if (v != null) { if (v.ref !== void 0 && (H = v.ref, Y = u.current), v.key !== void 0 && (D = "" + v.key), g.type && g.type.defaultProps) var V = g.type.defaultProps; for (U in v) s.call(v, U) && !d.hasOwnProperty(U) && ($[U] = v[U] === void 0 && V !== void 0 ? V[U] : v[U]); } var U = arguments.length - 2; if (U === 1) $.children = j; else if (1 < U) { V = Array(U); for (var fe = 0; fe < U; fe++) V[fe] = arguments[fe + 2]; $.children = V; } return { $$typeof: a, type: g.type, key: D, ref: H, props: $, _owner: Y }; }, x.createContext = function(g) { return g = { $$typeof: y, _currentValue: g, _currentValue2: g, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, g.Provider = { $$typeof: p, _context: g }, g.Consumer = g; }, x.createElement = h, x.createFactory = function(g) { var v = h.bind(null, g); return v.type = g, v; }, x.createRef = function() { return { current: null }; }, x.forwardRef = function(g) { return { $$typeof: T, render: g }; }, x.isValidElement = l, x.lazy = function(g) { return { $$typeof: N, _payload: { _status: -1, _result: g }, _init: c }; }, x.memo = function(g, v) { return { $$typeof: z, type: g, compare: v === void 0 ? null : v }; }, x.startTransition = function(g) { var v = O.transition; O.transition = {}; try { g(); } finally { O.transition = v; } }, x.unstable_act = function() { throw Error("act(...) is not supported in production builds of React."); }, x.useCallback = function(g, v) { return _.current.useCallback(g, v); }, x.useContext = function(g) { return _.current.useContext(g); }, x.useDebugValue = function() { }, x.useDeferredValue = function(g) { return _.current.useDeferredValue(g); }, x.useEffect = function(g, v) { return _.current.useEffect(g, v); }, x.useId = function() { return _.current.useId(); }, x.useImperativeHandle = function(g, v, j) { return _.current.useImperativeHandle(g, v, j); }, x.useInsertionEffect = function(g, v) { return _.current.useInsertionEffect(g, v); }, x.useLayoutEffect = function(g, v) { return _.current.useLayoutEffect(g, v); }, x.useMemo = function(g, v) { return _.current.useMemo(g, v); }, x.useReducer = function(g, v, j) { return _.current.useReducer(g, v, j); }, x.useRef = function(g) { return _.current.useRef(g); }, x.useState = function(g) { return _.current.useState(g); }, x.useSyncExternalStore = function(g, v, j) { return _.current.useSyncExternalStore(g, v, j); }, x.useTransition = function() { return _.current.useTransition(); }, x.version = "18.2.0", x; } var Ke = { exports: {} }; /** * @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. */ Ke.exports; var Lt; function ja() { return Lt || (Lt = 1, function(a, e) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var t = "18.2.0", r = Symbol.for("react.element"), i = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), z = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), X = Symbol.iterator, ae = "@@iterator"; function Z(o) { if (o === null || typeof o != "object") return null; var f = X && o[X] || o[ae]; return typeof f == "function" ? f : null; } var ne = { /** * @internal * @type {ReactComponent} */ current: null }, n = { transition: null }, s = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, u = { /** * @internal * @type {ReactComponent} */ current: null }, d = {}, h = null; function m(o) { h = o; } d.setExtraStackFrame = function(o) { h = o; }, d.getCurrentStack = null, d.getStackAddendum = function() { var o = ""; h && (o += h); var f = d.getCurrentStack; return f && (o += f() || ""), o; }; var l = !1, b = !1, E = !1, S = !1, C = !1, P = { ReactCurrentDispatcher: ne, ReactCurrentBatchConfig: n, ReactCurrentOwner: u }; P.ReactDebugCurrentFrame = d, P.ReactCurrentActQueue = s; function c(o) { { for (var f = arguments.length, w = new Array(f > 1 ? f - 1 : 0), k = 1; k < f; k++) w[k - 1] = arguments[k]; O("warn", o, w); } } function _(o) { { for (var f = arguments.length, w = new Array(f > 1 ? f - 1 : 0), k = 1; k < f; k++) w[k - 1] = arguments[k]; O("error", o, w); } } function O(o, f, w) { { var k = P.ReactDebugCurrentFrame, R = k.getStackAddendum(); R !== "" && (f += "%s", w = w.concat([R])); var B = w.map(function(L) { return String(L); }); B.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, B); } } var M = {}; function g(o, f) { { var w = o.constructor, k = w && (w.displayName || w.name) || "ReactClass", R = k + "." + f; if (M[R]) return; _("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.", f, k), M[R] = !0; } } var v = { /** * 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(o) { 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(o, f, w) { g(o, "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(o, f, w, k) { g(o, "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(o, f, w, k) { g(o, "setState"); } }, j = Object.assign, $ = {}; Object.freeze($); function D(o, f, w) { this.props = o, this.context = f, this.refs = $, this.updater = w || v; } D.prototype.isReactComponent = {}, D.prototype.setState = function(o, f) { if (typeof o != "object" && typeof o != "function" && o != 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, o, f, "setState"); }, D.prototype.forceUpdate = function(o) { this.updater.enqueueForceUpdate(this, o, "forceUpdate"); }; { var H = { 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)."] }, Y = function(o, f) { Object.defineProperty(D.prototype, o, { get: function() { c("%s(...) is deprecated in plain JavaScript React classes. %s", f[0], f[1]); } }); }; for (var V in H) H.hasOwnProperty(V) && Y(V, H[V]); } function U() { } U.prototype = D.prototype; function fe(o, f, w) { this.props = o, this.context = f, this.refs = $, this.updater = w || v; } var Se = fe.prototype = new U(); Se.constructor = fe, j(Se, D.prototype), Se.isPureReactComponent = !0; function Je() { var o = { current: null }; return Object.seal(o), o; } var Fe = Array.isArray; function Te(o) { return Fe(o); } function Pn(o) { { var f = typeof Symbol == "function" && Symbol.toStringTag, w = f && o[Symbol.toStringTag] || o.constructor.name || "Object"; return w; } } function Sn(o) { try { return Xr(o), !1; } catch { return !0; } } function Xr(o) { return "" + o; } function Ze(o) { if (Sn(o)) return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pn(o)), Xr(o); } function Tn(o, f, w) { var k = o.displayName; if (k) return k; var R = f.displayName || f.name || ""; return R !== "" ? w + "(" + R + ")" : w; } function Qr(o) { return o.displayName || "Context"; } function ve(o) { if (o == null) return null; if (typeof o.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function") return o.displayName || o.name || null; if (typeof o == "string") return o; switch (o) { case p: return "Fragment"; case i: return "Portal"; case T: return "Profiler"; case y: return "StrictMode"; case I: return "Suspense"; case F: return "SuspenseList"; } if (typeof o == "object") switch (o.$$typeof) { case z: var f = o; return Qr(f) + ".Consumer"; case A: var w = o; return Qr(w._context) + ".Provider"; case N: return Tn(o, o.render, "ForwardRef"); case ee: var k = o.displayName || null; return k !== null ? k : ve(o.type) || "Memo"; case J: { var R = o, B = R._payload, L = R._init; try { return ve(L(B)); } catch { return null; } } } return null; } var $e = Object.prototype.hasOwnProperty, Jr = { key: !0, ref: !0, __self: !0, __source: !0 }, Zr, et, yr; yr = {}; function rt(o) { if ($e.call(o, "ref")) { var f = Object.getOwnPropertyDescriptor(o, "ref").get; if (f && f.isReactWarning) return !1; } return o.ref !== void 0; } function tt(o) { if ($e.call(o, "key")) { var f = Object.getOwnPropertyDescriptor(o, "key").get; if (f && f.isReactWarning) return !1; } return o.key !== void 0; } function Rn(o, f) { var w = function() { Zr || (Zr = !0, _("%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)", f)); }; w.isReactWarning = !0, Object.defineProperty(o, "key", { get: w, configurable: !0 }); } function An(o, f) { var w = function() { et || (et = !0, _("%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)", f)); }; w.isReactWarning = !0, Object.defineProperty(o, "ref", { get: w, configurable: !0 }); } function On(o) { if (typeof o.ref == "string" && u.current && o.__self && u.current.stateNode !== o.__self) { var f = ve(u.current.type); yr[f] || (_('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', f, o.ref), yr[f] = !0); } } var vr = function(o, f, w, k, R, B, L) { var W = { // This tag allows us to uniquely identify this as a React Element $$typeof: r, // Built-in properties that belong on the element type: o, key: f, ref: w, props: L, // Record the component responsible for creating this element. _owner: B }; return W._store = {}, Object.defineProperty(W._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(W, "_self", { configurable: !1, enumerable: !1, writable: !1, value: k }), Object.defineProperty(W, "_source", { configurable: !1, enumerable: !1, writable: !1, value: R }), Object.freeze && (Object.freeze(W.props), Object.freeze(W)), W; }; function Mn(o, f, w) { var k, R = {}, B = null, L = null, W = null, Q = null; if (f != null) { rt(f) && (L = f.ref, On(f)), tt(f) && (Ze(f.key), B = "" + f.key), W = f.__self === void 0 ? null : f.__self, Q = f.__source === void 0 ? null : f.__source; for (k in f) $e.call(f, k) && !Jr.hasOwnProperty(k) && (R[k] = f[k]); } var te = arguments.length - 2; if (te === 1) R.children = w; else if (te > 1) { for (var se = Array(te), oe = 0; oe < te; oe++) se[oe] = arguments[oe + 2]; Object.freeze && Object.freeze(se), R.children = se; } if (o && o.defaultProps) { var ie = o.defaultProps; for (k in ie) R[k] === void 0 && (R[k] = ie[k]); } if (B || L) { var de = typeof o == "function" ? o.displayName || o.name || "Unknown" : o; B && Rn(R, de), L && An(R, de); } return vr(o, B, L, W, Q, u.current, R); } function jn(o, f) { var w = vr(o.type, f, o.ref, o._self, o._source, o._owner, o.props); return w; } function Ln(o, f, w) { if (o == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + "."); var k, R = j({}, o.props), B = o.key, L = o.ref, W = o._self, Q = o._source, te = o._owner; if (f != null) { rt(f) && (L = f.ref, te = u.current), tt(f) && (Ze(f.key), B = "" + f.key); var se; o.type && o.type.defaultProps && (se = o.type.defaultProps); for (k in f) $e.call(f, k) && !Jr.hasOwnProperty(k) && (f[k] === void 0 && se !== void 0 ? R[k] = se[k] : R[k] = f[k]); } var oe = arguments.length - 2; if (oe === 1) R.children = w; else if (oe > 1) { for (var ie = Array(oe), de = 0; de < oe; de++) ie[de] = arguments[de + 2]; R.children = ie; } return vr(o.type, B, L, W, Q, te, R); } function je(o) { return typeof o == "object" && o !== null && o.$$typeof === r; } var nt = ".", zn = ":"; function Nn(o) { var f = /[=:]/g, w = { "=": "=0", ":": "=2" }, k = o.replace(f, function(R) { return w[R]; }); return "$" + k; } var at = !1, Bn = /\/+/g; function ut(o) { return o.replace(Bn, "$&/"); } function kr(o, f) { return typeof o == "object" && o !== null && o.key != null ? (Ze(o.key), Nn("" + o.key)) : f.toString(36); } function er(o, f, w, k, R) { var B = typeof o; (B === "undefined" || B === "boolean") && (o = null); var L = !1; if (o === null) L = !0; else switch (B) { case "string": case "number": L = !0; break; case "object": switch (o.$$typeof) { case r: case i: L = !0; } } if (L) { var W = o, Q = R(W), te = k === "" ? nt + kr(W, 0) : k; if (Te(Q)) { var se = ""; te != null && (se = ut(te) + "/"), er(Q, f, se, "", function(Aa) { return Aa; }); } else Q != null && (je(Q) && (Q.key && (!W || W.key !== Q.key) && Ze(Q.key), Q = jn( Q, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children w + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key (Q.key && (!W || W.key !== Q.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion ut("" + Q.key) + "/" ) : "") + te )), f.push(Q)); return 1; } var oe, ie, de = 0, he = k === "" ? nt : k + zn; if (Te(o)) for (var ir = 0; ir < o.length; ir++) oe = o[ir], ie = he + kr(oe, ir), de += er(oe, f, w, ie, R); else { var Mr = Z(o); if (typeof Mr == "function") { var At = o; Mr === At.entries && (at || c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), at = !0); for (var Ta = Mr.call(At), Ot, Ra = 0; !(Ot = Ta.next()).done; ) oe = Ot.value, ie = he + kr(oe, Ra++), de += er(oe, f, w, ie, R); } else if (B === "object") { var Mt = String(o); throw new Error("Objects are not valid as a React child (found: " + (Mt === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : Mt) + "). If you meant to render a collection of children, use an array instead."); } } return de; } function rr(o, f, w) { if (o == null) return o; var k = [], R = 0; return er(o, k, "", "", function(B) { return f.call(w, B, R++); }), k; } function Dn(o) { var f = 0; return rr(o, function() { f++; }), f; } function In(o, f, w) { rr(o, function() { f.apply(this, arguments); }, w); } function Fn(o) { return rr(o, function(f) { return f; }) || []; } function $n(o) { if (!je(o)) throw new Error("React.Children.only expected to receive a single React element child."); return o; } function Wn(o) { var f = { $$typeof: z, // 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: o, _currentValue2: o, // 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 }; f.Provider = { $$typeof: A, _context: f }; var w = !1, k = !1, R = !1; { var B = { $$typeof: z, _context: f }; Object.defineProperties(B, { Provider: { get: function() { return k || (k = !0, _("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), f.Provider; }, set: function(L) { f.Provider = L; } }, _currentValue: { get: function() { return f._currentValue; }, set: function(L) { f._currentValue = L; } }, _currentValue2: { get: function() { return f._currentValue2; }, set: function(L) { f._currentValue2 = L; } }, _threadCount: { get: function() { return f._threadCount; }, set: function(L) { f._threadCount = L; } }, Consumer: { get: function() { return w || (w = !0, _("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), f.Consumer; } }, displayName: { get: function() { return f.displayName; }, set: function(L) { R || (c("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", L), R = !0); } } }), f.Consumer = B; } return f._currentRenderer = null, f._currentRenderer2 = null, f; } var We = -1, Er = 0, st = 1, Hn = 2; function qn(o) { if (o._status === We) { var f = o._result, w = f(); if (w.then(function(B) { if (o._status === Er || o._status === We) { var L = o; L._status = st, L._result = B; } }, function(B) { if (o._status === Er || o._status === We) { var L = o; L._status = Hn, L._result = B; } }), o._status === We) { var k = o; k._status = Er, k._result = w; } } if (o._status === st) { var R = o._result; return R === void 0 && _(`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?`, R), "default" in R || _(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, R), R.default; } else throw o._result; } function Vn(o) { var f = { // We use these fields to store the result. _status: We, _result: o }, w = { $$typeof: J, _payload: f, _init: qn }; { var k, R; Object.defineProperties(w, { defaultProps: { configurable: !0, get: function() { return k; }, set: function(B) { _("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."), k = B, Object.defineProperty(w, "defaultProps", { enumerable: !0 }); } }, propTypes: { configurable: !0, get: function() { return R; }, set: function(B) { _("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."), R = B, Object.defineProperty(w, "propTypes", { enumerable: !0 }); } } }); } return w; } function Un(o) { o != null && o.$$typeof === ee ? _("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof o != "function" ? _("forwardRef requires a render function but was given %s.", o === null ? "null" : typeof o) : o.length !== 0 && o.length !== 2 && _("forwardRef render functions accept exactly two parameters: props and ref. %s", o.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), o != null && (o.defaultProps != null || o.propTypes != null) && _("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); var f = { $$typeof: N, render: o }; { var w; Object.defineProperty(f, "displayName", { enumerable: !1, configurable: !0, get: function() { return w; }, set: function(k) { w = k, !o.name && !o.displayName && (o.displayName = k); } }); } return f; } var ot; ot = Symbol.for("react.module.reference"); function it(o) { return !!(typeof o == "string" || typeof o == "function" || o === p || o === T || C || o === y || o === I || o === F || S || o === G || l || b || E || typeof o == "object" && o !== null && (o.$$typeof === J || o.$$typeof === ee || o.$$typeof === A || o.$$typeof === z || o.$$typeof === N || // 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. o.$$typeof === ot || o.getModuleId !== void 0)); } function Yn(o, f) { it(o) || _("memo: The first argument must be a component. Instead received: %s", o === null ? "null" : typeof o); var w = { $$typeof: ee, type: o, compare: f === void 0 ? null : f }; { var k; Object.defineProperty(w, "displayName", { enumerable: !1, configurable: !0, get: function() { return k; }, set: function(R) { k = R, !o.name && !o.displayName && (o.displayName = R); } }); } return w; } function pe() { var o = ne.current; return o === null && _(`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.`), o; } function xn(o) { var f = pe(); if (o._context !== void 0) { var w = o._context; w.Consumer === o ? _("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?") : w.Provider === o && _("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } return f.useContext(o); } function Gn(o) { var f = pe(); return f.useState(o); } function Kn(o, f, w) { var k = pe(); return k.useReducer(o, f, w); } function Xn(o) { var f = pe(); return f.useRef(o); } function Qn(o, f) { var w = pe(); return w.useEffect(o, f); } function Jn(o, f) { var w = pe(); return w.useInsertionEffect(o, f); } function Zn(o, f) { var w = pe(); return w.useLayoutEffect(o, f); } function ea(o, f) { var w = pe(); return w.useCallback(o, f); } function ra(o, f) { var w = pe(); return w.useMemo(o, f); } function ta(o, f, w) { var k = pe(); return k.useImperativeHandle(o, f, w); } function na(o, f) { { var w = pe(); return w.useDebugValue(o, f); } } function aa() { var o = pe(); return o.useTransition(); } function ua(o) { var f = pe(); return f.useDeferredValue(o); } function sa() { var o = pe(); return o.useId(); } function oa(o, f, w) { var k = pe(); return k.useSyncExternalStore(o, f, w); } var He = 0, dt, ct, ft, lt, ht, pt, mt; function gt() { } gt.__reactDisabledLog = !0; function ia() { { if (He === 0) { dt = console.log, ct = console.info, ft = console.warn, lt = console.error, ht = console.group, pt = console.groupCollapsed, mt = console.groupEnd; var o = { configurable: !0, enumerable: !0, value: gt, writable: !0 }; Object.defineProperties(console, { info: o, log: o, warn: o, error: o, group: o, groupCollapsed: o, groupEnd: o }); } He++; } } function da() { { if (He--, He === 0) { var o = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: j({}, o, { value: dt }), info: j({}, o, { value: ct }), warn: j({}, o, { value: ft }), error: j({}, o, { value: lt }), group: j({}, o, { value: ht }), groupCollapsed: j({}, o, { value: pt }), groupEnd: j({}, o, { value: mt }) }); } He < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Cr = P.ReactCurrentDispatcher, Pr; function tr(o, f, w) { { if (Pr === void 0) try { throw Error(); } catch (R) { var k = R.stack.trim().match(/\n( *(at )?)/); Pr = k && k[1] || ""; } return ` ` + Pr + o; } } var Sr = !1, nr; { var ca = typeof WeakMap == "function" ? WeakMap : Map; nr = new ca(); } function bt(o, f) { if (!o || Sr) return ""; { var w = nr.get(o); if (w !== void 0) return w; } var k; Sr = !0; var R = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var B; B = Cr.current, Cr.current = null, ia(); try { if (f) { var L = function() { throw Error(); }; if (Object.defineProperty(L.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(L, []); } catch (he) { k = he; } Reflect.construct(o, [], L); } else { try { L.call(); } catch (he) { k = he; } o.call(L.prototype); } } else { try { throw Error(); } catch (he) { k = he; } o(); } } catch (he) { if (he && k && typeof he.stack == "string") { for (var W = he.stack.split(` `), Q = k.stack.split(` `), te = W.length - 1, se = Q.length - 1; te >= 1 && se >= 0 && W[te] !== Q[se]; ) se--; for (; te >= 1 && se >= 0; te--, se--) if (W[te] !== Q[se]) { if (te !== 1 || se !== 1) do if (te--, se--, se < 0 || W[te] !== Q[se]) { var oe = ` ` + W[te].replace(" at new ", " at "); return o.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", o.displayName)), typeof o == "function" && nr.set(o, oe), oe; } while (te >= 1 && se >= 0); break; } } } finally { Sr = !1, Cr.current = B, da(), Error.prepareStackTrace = R; } var ie = o ? o.displayName || o.name : "", de = ie ? tr(ie) : ""; return typeof o == "function" && nr.set(o, de), de; } function fa(o, f, w) { return bt(o, !1); } function la(o) { var f = o.prototype; return !!(f && f.isReactComponent); } function ar(o, f, w) { if (o == null) return ""; if (typeof o == "function") return bt(o, la(o)); if (typeof o == "string") return tr(o); switch (o) { case I: return tr("Suspense"); case F: return tr("SuspenseList"); } if (typeof o == "object") switch (o.$$typeof) { case N: return fa(o.render); case ee: return ar(o.type, f, w); case J: { var k = o, R = k._payload, B = k._init; try { return ar(B(R), f, w); } catch { } } } return ""; } var _t = {}, wt = P.ReactDebugCurrentFrame; function ur(o) { if (o) { var f = o._owner, w = ar(o.type, o._source, f ? f.type : null); wt.setExtraStackFrame(w); } else wt.setExtraStackFrame(null); } function ha(o, f, w, k, R) { { var B = Function.call.bind($e); for (var L in o) if (B(o, L)) { var W = void 0; try { if (typeof o[L] != "function") { var Q = Error((k || "React class") + ": " + w + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw Q.name = "Invariant Violation", Q; } W = o[L](f, L, k, w, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (te) { W = te; } W && !(W instanceof Error) && (ur(R), _("%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).", k || "React class", w, L, typeof W), ur(null)), W instanceof Error && !(W.message in _t) && (_t[W.message] = !0, ur(R), _("Failed %s type: %s", w, W.message), ur(null)); } } } function Le(o) { if (o) { var f = o._owner, w = ar(o.type, o._source, f ? f.type : null); m(w); } else m(null); } var Tr; Tr = !1; function yt() { if (u.current) { var o = ve(u.current.type); if (o) return ` Check the render method of \`` + o + "`."; } return ""; } function pa(o) { if (o !== void 0) { var f = o.fileName.replace(/^.*[\\\/]/, ""), w = o.lineNumber; return ` Check your code at ` + f + ":" + w + "."; } return ""; } function ma(o) { return o != null ? pa(o.__source) : ""; } var vt = {}; function ga(o) { var f = yt(); if (!f) { var w = typeof o == "string" ? o : o.displayName || o.name; w && (f = ` Check the top-level render call using <` + w + ">."); } return f; } function kt(o, f) { if (!(!o._store || o._store.validated || o.key != null)) { o._store.validated = !0; var w = ga(f); if (!vt[w]) { vt[w] = !0; var k = ""; o && o._owner && o._owner !== u.current && (k = " It was passed a child from " + ve(o._owner.type) + "."), Le(o), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, k), Le(null); } } } function Et(o, f) { if (typeof o == "object") { if (Te(o)) for (var w = 0; w < o.length; w++) { var k = o[w]; je(k) && kt(k, f); } else if (je(o)) o._store && (o._store.validated = !0); else if (o) { var R = Z(o); if (typeof R == "function" && R !== o.entries) for (var B = R.call(o), L; !(L = B.next()).done; ) je(L.value) && kt(L.value, f); } } } function Ct(o) { { var f = o.type; if (f == null || typeof f == "string") return; var w; if (typeof f == "function") w = f.propTypes; else if (typeof f == "object" && (f.$$typeof === N || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. f.$$typeof === ee)) w = f.propTypes; else return; if (w) { var k = ve(f); ha(w, o.props, "prop", k, o); } else if (f.PropTypes !== void 0 && !Tr) { Tr = !0; var R = ve(f); _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown"); } typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function ba(o) { { for (var f = Object.keys(o.props), w = 0; w < f.length; w++) { var k = f[w]; if (k !== "children" && k !== "key") { Le(o), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Le(null); break; } } o.ref !== null && (Le(o), _("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null)); } } function Pt(o, f, w) { var k = it(o); if (!k) { var R = ""; (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " 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 B = ma(f); B ? R += B : R += yt(); var L; o === null ? L = "null" : Te(o) ? L = "array" : o !== void 0 && o.$$typeof === r ? (L = "<" + (ve(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, _("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, R); }