UNPKG

iwelp

Version:
1,454 lines (1,452 loc) • 112 kB
import te, { createElement as Vr, forwardRef as De, useRef as _e, useState as ue, useEffect as ee, createContext as Hr, useContext as pt } from "react"; function Jt(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var ct = { exports: {} }, Fe = {}; /** * @license React * react-jsx-runtime.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 Ot; function Ur() { if (Ot) return Fe; Ot = 1; var e = te, a = Symbol.for("react.element"), r = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 }; function l(i, d, o) { var v, m = {}, y = null, T = null; o !== void 0 && (y = "" + o), d.key !== void 0 && (y = "" + d.key), d.ref !== void 0 && (T = d.ref); for (v in d) t.call(d, v) && !s.hasOwnProperty(v) && (m[v] = d[v]); if (i && i.defaultProps) for (v in d = i.defaultProps, d) m[v] === void 0 && (m[v] = d[v]); return { $$typeof: a, type: i, key: y, ref: T, props: m, _owner: c.current }; } return Fe.Fragment = r, Fe.jsx = l, Fe.jsxs = l, Fe; } var Ie = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var At; function Kr() { return At || (At = 1, process.env.NODE_ENV !== "production" && function() { var e = te, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), i = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), C = Symbol.iterator, b = "@@iterator"; function w(n) { if (n === null || typeof n != "object") return null; var p = C && n[C] || n[b]; return typeof p == "function" ? p : null; } var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function E(n) { { for (var p = arguments.length, x = new Array(p > 1 ? p - 1 : 0), A = 1; A < p; A++) x[A - 1] = arguments[A]; k("error", n, x); } } function k(n, p, x) { { var A = $.ReactDebugCurrentFrame, q = A.getStackAddendum(); q !== "" && (p += "%s", x = x.concat([q])); var U = x.map(function(W) { return String(W); }); U.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, U); } } var I = !1, f = !1, S = !1, X = !1, Z = !1, H; H = Symbol.for("react.module.reference"); function re(n) { return !!(typeof n == "string" || typeof n == "function" || n === t || n === s || Z || n === c || n === o || n === v || X || n === T || I || f || S || typeof n == "object" && n !== null && (n.$$typeof === y || n.$$typeof === m || n.$$typeof === l || n.$$typeof === i || n.$$typeof === d || // 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. n.$$typeof === H || n.getModuleId !== void 0)); } function he(n, p, x) { var A = n.displayName; if (A) return A; var q = p.displayName || p.name || ""; return q !== "" ? x + "(" + q + ")" : x; } function ie(n) { return n.displayName || "Context"; } function N(n) { if (n == null) return null; if (typeof n.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null; if (typeof n == "string") return n; switch (n) { case t: return "Fragment"; case r: return "Portal"; case s: return "Profiler"; case c: return "StrictMode"; case o: return "Suspense"; case v: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case i: var p = n; return ie(p) + ".Consumer"; case l: var x = n; return ie(x._context) + ".Provider"; case d: return he(n, n.render, "ForwardRef"); case m: var A = n.displayName || null; return A !== null ? A : N(n.type) || "Memo"; case y: { var q = n, U = q._payload, W = q._init; try { return N(W(U)); } catch { return null; } } } return null; } var G = Object.assign, J = 0, Q, ne, oe, ve, h, g, F; function P() { } P.__reactDisabledLog = !0; function O() { { if (J === 0) { Q = console.log, ne = console.info, oe = console.warn, ve = console.error, h = console.group, g = console.groupCollapsed, F = console.groupEnd; var n = { configurable: !0, enumerable: !0, value: P, writable: !0 }; Object.defineProperties(console, { info: n, log: n, warn: n, error: n, group: n, groupCollapsed: n, groupEnd: n }); } J++; } } function L() { { if (J--, J === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: G({}, n, { value: Q }), info: G({}, n, { value: ne }), warn: G({}, n, { value: oe }), error: G({}, n, { value: ve }), group: G({}, n, { value: h }), groupCollapsed: G({}, n, { value: g }), groupEnd: G({}, n, { value: F }) }); } J < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var R = $.ReactCurrentDispatcher, j; function M(n, p, x) { { if (j === void 0) try { throw Error(); } catch (q) { var A = q.stack.trim().match(/\n( *(at )?)/); j = A && A[1] || ""; } return ` ` + j + n; } } var B = !1, D; { var le = typeof WeakMap == "function" ? WeakMap : Map; D = new le(); } function _(n, p) { if (!n || B) return ""; { var x = D.get(n); if (x !== void 0) return x; } var A; B = !0; var q = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var U; U = R.current, R.current = null, O(); try { if (p) { var W = function() { throw Error(); }; if (Object.defineProperty(W.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(W, []); } catch (pe) { A = pe; } Reflect.construct(n, [], W); } else { try { W.call(); } catch (pe) { A = pe; } n.call(W.prototype); } } else { try { throw Error(); } catch (pe) { A = pe; } n(); } } catch (pe) { if (pe && A && typeof pe.stack == "string") { for (var z = pe.stack.split(` `), fe = A.stack.split(` `), ae = z.length - 1, se = fe.length - 1; ae >= 1 && se >= 0 && z[ae] !== fe[se]; ) se--; for (; ae >= 1 && se >= 0; ae--, se--) if (z[ae] !== fe[se]) { if (ae !== 1 || se !== 1) do if (ae--, se--, se < 0 || z[ae] !== fe[se]) { var ye = ` ` + z[ae].replace(" at new ", " at "); return n.displayName && ye.includes("<anonymous>") && (ye = ye.replace("<anonymous>", n.displayName)), typeof n == "function" && D.set(n, ye), ye; } while (ae >= 1 && se >= 0); break; } } } finally { B = !1, R.current = U, L(), Error.prepareStackTrace = q; } var je = n ? n.displayName || n.name : "", Te = je ? M(je) : ""; return typeof n == "function" && D.set(n, Te), Te; } function me(n, p, x) { return _(n, !1); } function $e(n) { var p = n.prototype; return !!(p && p.isReactComponent); } function Ee(n, p, x) { if (n == null) return ""; if (typeof n == "function") return _(n, $e(n)); if (typeof n == "string") return M(n); switch (n) { case o: return M("Suspense"); case v: return M("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case d: return me(n.render); case m: return Ee(n.type, p, x); case y: { var A = n, q = A._payload, U = A._init; try { return Ee(U(q), p, x); } catch { } } } return ""; } var Oe = Object.prototype.hasOwnProperty, bt = {}, _t = $.ReactDebugCurrentFrame; function ze(n) { if (n) { var p = n._owner, x = Ee(n.type, n._source, p ? p.type : null); _t.setExtraStackFrame(x); } else _t.setExtraStackFrame(null); } function Tr(n, p, x, A, q) { { var U = Function.call.bind(Oe); for (var W in n) if (U(n, W)) { var z = void 0; try { if (typeof n[W] != "function") { var fe = Error((A || "React class") + ": " + x + " type `" + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[W] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw fe.name = "Invariant Violation", fe; } z = n[W](p, W, A, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (ae) { z = ae; } z && !(z instanceof Error) && (ze(q), E("%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).", A || "React class", x, W, typeof z), ze(null)), z instanceof Error && !(z.message in bt) && (bt[z.message] = !0, ze(q), E("Failed %s type: %s", x, z.message), ze(null)); } } } var Cr = Array.isArray; function Ve(n) { return Cr(n); } function wr(n) { { var p = typeof Symbol == "function" && Symbol.toStringTag, x = p && n[Symbol.toStringTag] || n.constructor.name || "Object"; return x; } } function $r(n) { try { return xt(n), !1; } catch { return !0; } } function xt(n) { return "" + n; } function Et(n) { if ($r(n)) return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(n)), xt(n); } var Ae = $.ReactCurrentOwner, Rr = { key: !0, ref: !0, __self: !0, __source: !0 }, Tt, Ct, He; He = {}; function jr(n) { if (Oe.call(n, "ref")) { var p = Object.getOwnPropertyDescriptor(n, "ref").get; if (p && p.isReactWarning) return !1; } return n.ref !== void 0; } function kr(n) { if (Oe.call(n, "key")) { var p = Object.getOwnPropertyDescriptor(n, "key").get; if (p && p.isReactWarning) return !1; } return n.key !== void 0; } function Sr(n, p) { if (typeof n.ref == "string" && Ae.current && p && Ae.current.stateNode !== p) { var x = N(Ae.current.type); He[x] || (E('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', N(Ae.current.type), n.ref), He[x] = !0); } } function Pr(n, p) { { var x = function() { Tt || (Tt = !0, E("%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)", p)); }; x.isReactWarning = !0, Object.defineProperty(n, "key", { get: x, configurable: !0 }); } } function Or(n, p) { { var x = function() { Ct || (Ct = !0, E("%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)", p)); }; x.isReactWarning = !0, Object.defineProperty(n, "ref", { get: x, configurable: !0 }); } } var Ar = function(n, p, x, A, q, U, W) { var z = { // This tag allows us to uniquely identify this as a React Element $$typeof: a, // Built-in properties that belong on the element type: n, key: p, ref: x, props: W, // Record the component responsible for creating this element. _owner: U }; return z._store = {}, Object.defineProperty(z._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(z, "_self", { configurable: !1, enumerable: !1, writable: !1, value: A }), Object.defineProperty(z, "_source", { configurable: !1, enumerable: !1, writable: !1, value: q }), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z; }; function Fr(n, p, x, A, q) { { var U, W = {}, z = null, fe = null; x !== void 0 && (Et(x), z = "" + x), kr(p) && (Et(p.key), z = "" + p.key), jr(p) && (fe = p.ref, Sr(p, q)); for (U in p) Oe.call(p, U) && !Rr.hasOwnProperty(U) && (W[U] = p[U]); if (n && n.defaultProps) { var ae = n.defaultProps; for (U in ae) W[U] === void 0 && (W[U] = ae[U]); } if (z || fe) { var se = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; z && Pr(W, se), fe && Or(W, se); } return Ar(n, z, fe, q, A, Ae.current, W); } } var Ue = $.ReactCurrentOwner, wt = $.ReactDebugCurrentFrame; function Re(n) { if (n) { var p = n._owner, x = Ee(n.type, n._source, p ? p.type : null); wt.setExtraStackFrame(x); } else wt.setExtraStackFrame(null); } var Ke; Ke = !1; function Ge(n) { return typeof n == "object" && n !== null && n.$$typeof === a; } function $t() { { if (Ue.current) { var n = N(Ue.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function Ir(n) { return ""; } var Rt = {}; function Nr(n) { { var p = $t(); if (!p) { var x = typeof n == "string" ? n : n.displayName || n.name; x && (p = ` Check the top-level render call using <` + x + ">."); } return p; } } function jt(n, p) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var x = Nr(p); if (Rt[x]) return; Rt[x] = !0; var A = ""; n && n._owner && n._owner !== Ue.current && (A = " It was passed a child from " + N(n._owner.type) + "."), Re(n), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, A), Re(null); } } function kt(n, p) { { if (typeof n != "object") return; if (Ve(n)) for (var x = 0; x < n.length; x++) { var A = n[x]; Ge(A) && jt(A, p); } else if (Ge(n)) n._store && (n._store.validated = !0); else if (n) { var q = w(n); if (typeof q == "function" && q !== n.entries) for (var U = q.call(n), W; !(W = U.next()).done; ) Ge(W.value) && jt(W.value, p); } } } function Lr(n) { { var p = n.type; if (p == null || typeof p == "string") return; var x; if (typeof p == "function") x = p.propTypes; else if (typeof p == "object" && (p.$$typeof === d || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. p.$$typeof === m)) x = p.propTypes; else return; if (x) { var A = N(p); Tr(x, n.props, "prop", A, n); } else if (p.PropTypes !== void 0 && !Ke) { Ke = !0; var q = N(p); E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown"); } typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Mr(n) { { for (var p = Object.keys(n.props), x = 0; x < p.length; x++) { var A = p[x]; if (A !== "children" && A !== "key") { Re(n), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), Re(null); break; } } n.ref !== null && (Re(n), E("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null)); } } var St = {}; function Pt(n, p, x, A, q, U) { { var W = re(n); if (!W) { var z = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (z += " 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 fe = Ir(); fe ? z += fe : z += $t(); var ae; n === null ? ae = "null" : Ve(n) ? ae = "array" : n !== void 0 && n.$$typeof === a ? (ae = "<" + (N(n.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof n, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, z); } var se = Fr(n, p, x, q, U); if (se == null) return se; if (W) { var ye = p.children; if (ye !== void 0) if (A) if (Ve(ye)) { for (var je = 0; je < ye.length; je++) kt(ye[je], n); Object.freeze && Object.freeze(ye); } else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else kt(ye, n); } if (Oe.call(p, "key")) { var Te = N(n), pe = Object.keys(p).filter(function(Yr) { return Yr !== "key"; }), Je = pe.length > 0 ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!St[Te + Je]) { var qr = pe.length > 0 ? "{" + pe.join(": ..., ") + ": ...}" : "{}"; E(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, Je, Te, qr, Te), St[Te + Je] = !0; } } return n === t ? Mr(se) : Lr(se), se; } } function Dr(n, p, x) { return Pt(n, p, x, !0); } function zr(n, p, x) { return Pt(n, p, x, !1); } var Wr = zr, Br = Dr; Ie.Fragment = t, Ie.jsx = Wr, Ie.jsxs = Br; }()), Ie; } process.env.NODE_ENV === "production" ? ct.exports = Ur() : ct.exports = Kr(); var u = ct.exports, lt = { exports: {} }, We = { exports: {} }, Y = {}; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ft; function Gr() { if (Ft) return Y; Ft = 1; var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, o = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119; function k(f) { if (typeof f == "object" && f !== null) { var S = f.$$typeof; switch (S) { case a: switch (f = f.type, f) { case d: case o: case t: case s: case c: case m: return f; default: switch (f = f && f.$$typeof, f) { case i: case v: case C: case T: case l: return f; default: return S; } } case r: return S; } } } function I(f) { return k(f) === o; } return Y.AsyncMode = d, Y.ConcurrentMode = o, Y.ContextConsumer = i, Y.ContextProvider = l, Y.Element = a, Y.ForwardRef = v, Y.Fragment = t, Y.Lazy = C, Y.Memo = T, Y.Portal = r, Y.Profiler = s, Y.StrictMode = c, Y.Suspense = m, Y.isAsyncMode = function(f) { return I(f) || k(f) === d; }, Y.isConcurrentMode = I, Y.isContextConsumer = function(f) { return k(f) === i; }, Y.isContextProvider = function(f) { return k(f) === l; }, Y.isElement = function(f) { return typeof f == "object" && f !== null && f.$$typeof === a; }, Y.isForwardRef = function(f) { return k(f) === v; }, Y.isFragment = function(f) { return k(f) === t; }, Y.isLazy = function(f) { return k(f) === C; }, Y.isMemo = function(f) { return k(f) === T; }, Y.isPortal = function(f) { return k(f) === r; }, Y.isProfiler = function(f) { return k(f) === s; }, Y.isStrictMode = function(f) { return k(f) === c; }, Y.isSuspense = function(f) { return k(f) === m; }, Y.isValidElementType = function(f) { return typeof f == "string" || typeof f == "function" || f === t || f === o || f === s || f === c || f === m || f === y || typeof f == "object" && f !== null && (f.$$typeof === C || f.$$typeof === T || f.$$typeof === l || f.$$typeof === i || f.$$typeof === v || f.$$typeof === w || f.$$typeof === $ || f.$$typeof === E || f.$$typeof === b); }, Y.typeOf = k, Y; } var V = {}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var It; function Jr() { return It || (It = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, o = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119; function k(_) { return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. _ === t || _ === o || _ === s || _ === c || _ === m || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === C || _.$$typeof === T || _.$$typeof === l || _.$$typeof === i || _.$$typeof === v || _.$$typeof === w || _.$$typeof === $ || _.$$typeof === E || _.$$typeof === b); } function I(_) { if (typeof _ == "object" && _ !== null) { var me = _.$$typeof; switch (me) { case a: var $e = _.type; switch ($e) { case d: case o: case t: case s: case c: case m: return $e; default: var Ee = $e && $e.$$typeof; switch (Ee) { case i: case v: case C: case T: case l: return Ee; default: return me; } } case r: return me; } } } var f = d, S = o, X = i, Z = l, H = a, re = v, he = t, ie = C, N = T, G = r, J = s, Q = c, ne = m, oe = !1; function ve(_) { return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(_) || I(_) === d; } function h(_) { return I(_) === o; } function g(_) { return I(_) === i; } function F(_) { return I(_) === l; } function P(_) { return typeof _ == "object" && _ !== null && _.$$typeof === a; } function O(_) { return I(_) === v; } function L(_) { return I(_) === t; } function R(_) { return I(_) === C; } function j(_) { return I(_) === T; } function M(_) { return I(_) === r; } function B(_) { return I(_) === s; } function D(_) { return I(_) === c; } function le(_) { return I(_) === m; } V.AsyncMode = f, V.ConcurrentMode = S, V.ContextConsumer = X, V.ContextProvider = Z, V.Element = H, V.ForwardRef = re, V.Fragment = he, V.Lazy = ie, V.Memo = N, V.Portal = G, V.Profiler = J, V.StrictMode = Q, V.Suspense = ne, V.isAsyncMode = ve, V.isConcurrentMode = h, V.isContextConsumer = g, V.isContextProvider = F, V.isElement = P, V.isForwardRef = O, V.isFragment = L, V.isLazy = R, V.isMemo = j, V.isPortal = M, V.isProfiler = B, V.isStrictMode = D, V.isSuspense = le, V.isValidElementType = k, V.typeOf = I; }()), V; } var Nt; function Xt() { return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? We.exports = Gr() : We.exports = Jr()), We.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Xe, Lt; function Xr() { if (Lt) return Xe; Lt = 1; var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function t(s) { if (s == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(s); } function c() { try { if (!Object.assign) return !1; var s = new String("abc"); if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5") return !1; for (var l = {}, i = 0; i < 10; i++) l["_" + String.fromCharCode(i)] = i; var d = Object.getOwnPropertyNames(l).map(function(v) { return l[v]; }); if (d.join("") !== "0123456789") return !1; var o = {}; return "abcdefghijklmnopqrst".split("").forEach(function(v) { o[v] = v; }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Xe = c() ? Object.assign : function(s, l) { for (var i, d = t(s), o, v = 1; v < arguments.length; v++) { i = Object(arguments[v]); for (var m in i) a.call(i, m) && (d[m] = i[m]); if (e) { o = e(i); for (var y = 0; y < o.length; y++) r.call(i, o[y]) && (d[o[y]] = i[o[y]]); } } return d; }, Xe; } var Ze, Mt; function ht() { if (Mt) return Ze; Mt = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Ze = e, Ze; } var Qe, Dt; function Zt() { return Dt || (Dt = 1, Qe = Function.call.bind(Object.prototype.hasOwnProperty)), Qe; } var et, zt; function Zr() { if (zt) return et; zt = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var a = ht(), r = {}, t = Zt(); e = function(s) { var l = "Warning: " + s; typeof console < "u" && console.error(l); try { throw new Error(l); } catch { } }; } function c(s, l, i, d, o) { if (process.env.NODE_ENV !== "production") { for (var v in s) if (t(s, v)) { var m; try { if (typeof s[v] != "function") { var y = Error( (d || "React class") + ": " + i + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw y.name = "Invariant Violation", y; } m = s[v](l, v, d, i, null, a); } catch (C) { m = C; } if (m && !(m instanceof Error) && e( (d || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), m instanceof Error && !(m.message in r)) { r[m.message] = !0; var T = o ? o() : ""; e( "Failed " + i + " type: " + m.message + (T ?? "") ); } } } } return c.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); }, et = c, et; } var tt, Wt; function Qr() { if (Wt) return tt; Wt = 1; var e = Xt(), a = Xr(), r = ht(), t = Zt(), c = Zr(), s = function() { }; process.env.NODE_ENV !== "production" && (s = function(i) { var d = "Warning: " + i; typeof console < "u" && console.error(d); try { throw new Error(d); } catch { } }); function l() { return null; } return tt = function(i, d) { var o = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator"; function m(h) { var g = h && (o && h[o] || h[v]); if (typeof g == "function") return g; } var y = "<<anonymous>>", T = { array: $("array"), bigint: $("bigint"), bool: $("boolean"), func: $("function"), number: $("number"), object: $("object"), string: $("string"), symbol: $("symbol"), any: E(), arrayOf: k, element: I(), elementType: f(), instanceOf: S, node: re(), objectOf: Z, oneOf: X, oneOfType: H, shape: ie, exact: N }; function C(h, g) { return h === g ? h !== 0 || 1 / h === 1 / g : h !== h && g !== g; } function b(h, g) { this.message = h, this.data = g && typeof g == "object" ? g : {}, this.stack = ""; } b.prototype = Error.prototype; function w(h) { if (process.env.NODE_ENV !== "production") var g = {}, F = 0; function P(L, R, j, M, B, D, le) { if (M = M || y, D = D || j, le !== r) { if (d) { var _ = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); throw _.name = "Invariant Violation", _; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var me = M + ":" + j; !g[me] && // Avoid spamming the console because they are often not actionable except for lib authors F < 3 && (s( "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + M + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), g[me] = !0, F++); } } return R[j] == null ? L ? R[j] === null ? new b("The " + B + " `" + D + "` is marked as required " + ("in `" + M + "`, but its value is `null`.")) : new b("The " + B + " `" + D + "` is marked as required in " + ("`" + M + "`, but its value is `undefined`.")) : null : h(R, j, M, B, D); } var O = P.bind(null, !1); return O.isRequired = P.bind(null, !0), O; } function $(h) { function g(F, P, O, L, R, j) { var M = F[P], B = Q(M); if (B !== h) { var D = ne(M); return new b( "Invalid " + L + " `" + R + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected ") + ("`" + h + "`."), { expectedType: h } ); } return null; } return w(g); } function E() { return w(l); } function k(h) { function g(F, P, O, L, R) { if (typeof h != "function") return new b("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside arrayOf."); var j = F[P]; if (!Array.isArray(j)) { var M = Q(j); return new b("Invalid " + L + " `" + R + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected an array.")); } for (var B = 0; B < j.length; B++) { var D = h(j, B, O, L, R + "[" + B + "]", r); if (D instanceof Error) return D; } return null; } return w(g); } function I() { function h(g, F, P, O, L) { var R = g[F]; if (!i(R)) { var j = Q(R); return new b("Invalid " + O + " `" + L + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected a single ReactElement.")); } return null; } return w(h); } function f() { function h(g, F, P, O, L) { var R = g[F]; if (!e.isValidElementType(R)) { var j = Q(R); return new b("Invalid " + O + " `" + L + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected a single ReactElement type.")); } return null; } return w(h); } function S(h) { function g(F, P, O, L, R) { if (!(F[P] instanceof h)) { var j = h.name || y, M = ve(F[P]); return new b("Invalid " + L + " `" + R + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected ") + ("instance of `" + j + "`.")); } return null; } return w(g); } function X(h) { if (!Array.isArray(h)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : s("Invalid argument supplied to oneOf, expected an array.")), l; function g(F, P, O, L, R) { for (var j = F[P], M = 0; M < h.length; M++) if (C(j, h[M])) return null; var B = JSON.stringify(h, function(le, _) { var me = ne(_); return me === "symbol" ? String(_) : _; }); return new b("Invalid " + L + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + O + "`, expected one of " + B + ".")); } return w(g); } function Z(h) { function g(F, P, O, L, R) { if (typeof h != "function") return new b("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside objectOf."); var j = F[P], M = Q(j); if (M !== "object") return new b("Invalid " + L + " `" + R + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected an object.")); for (var B in j) if (t(j, B)) { var D = h(j, B, O, L, R + "." + B, r); if (D instanceof Error) return D; } return null; } return w(g); } function H(h) { if (!Array.isArray(h)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), l; for (var g = 0; g < h.length; g++) { var F = h[g]; if (typeof F != "function") return s( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(F) + " at index " + g + "." ), l; } function P(O, L, R, j, M) { for (var B = [], D = 0; D < h.length; D++) { var le = h[D], _ = le(O, L, R, j, M, r); if (_ == null) return null; _.data && t(_.data, "expectedType") && B.push(_.data.expectedType); } var me = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : ""; return new b("Invalid " + j + " `" + M + "` supplied to " + ("`" + R + "`" + me + ".")); } return w(P); } function re() { function h(g, F, P, O, L) { return G(g[F]) ? null : new b("Invalid " + O + " `" + L + "` supplied to " + ("`" + P + "`, expected a ReactNode.")); } return w(h); } function he(h, g, F, P, O) { return new b( (h || "React class") + ": " + g + " type `" + F + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`." ); } function ie(h) { function g(F, P, O, L, R) { var j = F[P], M = Q(j); if (M !== "object") return new b("Invalid " + L + " `" + R + "` of type `" + M + "` " + ("supplied to `" + O + "`, expected `object`.")); for (var B in h) { var D = h[B]; if (typeof D != "function") return he(O, L, R, B, ne(D)); var le = D(j, B, O, L, R + "." + B, r); if (le) return le; } return null; } return w(g); } function N(h) { function g(F, P, O, L, R) { var j = F[P], M = Q(j); if (M !== "object") return new b("Invalid " + L + " `" + R + "` of type `" + M + "` " + ("supplied to `" + O + "`, expected `object`.")); var B = a({}, F[P], h); for (var D in B) { var le = h[D]; if (t(h, D) && typeof le != "function") return he(O, L, R, D, ne(le)); if (!le) return new b( "Invalid " + L + " `" + R + "` key `" + D + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(F[P], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(h), null, " ") ); var _ = le(j, D, O, L, R + "." + D, r); if (_) return _; } return null; } return w(g); } function G(h) { switch (typeof h) { case "number": case "string": case "undefined": return !0; case "boolean": return !h; case "object": if (Array.isArray(h)) return h.every(G); if (h === null || i(h)) return !0; var g = m(h); if (g) { var F = g.call(h), P; if (g !== h.entries) { for (; !(P = F.next()).done; ) if (!G(P.value)) return !1; } else for (; !(P = F.next()).done; ) { var O = P.value; if (O && !G(O[1])) return !1; } } else return !1; return !0; default: return !1; } } function J(h, g) { return h === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1; } function Q(h) { var g = typeof h; return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : J(g, h) ? "symbol" : g; } function ne(h) { if (typeof h > "u" || h === null) return "" + h; var g = Q(h); if (g === "object") { if (h instanceof Date) return "date"; if (h instanceof RegExp) return "regexp"; } return g; } function oe(h) { var g = ne(h); switch (g) { case "array": case "object": return "an " + g; case "boolean": case "date": case "regexp": return "a " + g; default: return g; } } function ve(h) { return !h.constructor || !h.constructor.name ? y : h.constructor.name; } return T.checkPropTypes = c, T.resetWarningCache = c.resetWarningCache, T.PropTypes = T, T; }, tt; } var rt, Bt; function en() { if (Bt) return rt; Bt = 1; var e = ht(); function a() { } function r() { } return r.resetWarningCache = a, rt = function() { function t(l, i, d, o, v, m) { if (m !== e) { var y = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); throw y.name = "Invariant Violation", y; } } t.isRequired = t; function c() { return t; } var s = { array: t, bigint: t, bool: t, func: t, number: t, object: t, string: t, symbol: t, any: t, arrayOf: c, element: t, elementType: t, instanceOf: c, node: t, objectOf: c, oneOf: c, oneOfType: c, shape: c, exact: c, checkPropTypes: r, resetWarningCache: a }; return s.PropTypes = s, s; }, rt; } if (process.env.NODE_ENV !== "production") { var tn = Xt(), rn = !0; lt.exports = Qr()(tn.isElement, rn); } else lt.exports = en()(); var nn = lt.exports; const de = /* @__PURE__ */ Jt(nn); var Qt = { exports: {} }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ (function(e) { (function() { var a = {}.hasOwnProperty; function r() { for (var s = "", l = 0; l < arguments.length; l++) { var i = arguments[l]; i && (s = c(s, t(i))); } return s; } function t(s) { if (typeof s == "string" || typeof s == "number") return s; if (typeof s != "object") return ""; if (Array.isArray(s)) return r.apply(null, s); if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]")) return s.toString(); var l = ""; for (var i in s) a.call(s, i) && s[i] && (l = c(l, i)); return l; } function c(s, l) { return l ? s ? s + " " + l : s + l : s; } e.exports ? (r.default = r, e.exports = r) : window.classNames = r; })(); })(Qt); var an = Qt.exports; const K = /* @__PURE__ */ Jt(an), sn = ({ prefix: e = "", className: a, viewBox: r = "0 0 24 24", ariaHidden: t = !0, children: c, ...s }) => /* @__PURE__ */ u.jsx( "svg", { viewBox: r, focusable: "false", width: "24", height: "24", ...s, "aria-hidden": t, className: `${e}svg-icon${a ? ` ${a}` : ""}`, children: c } ), on = (e) => { const { prefix: a = "", viewBox: r = "0 0 24 24", paths: t, className: c, modifier: s, ariaHidden: l = !0, ...i } = e, d = K(c, s && `${a}svg-icon--${s}`); return t ? /* @__PURE__ */ u.jsx( sn, { viewBox: r, prefix: a, ...i, className: d, ariaHidden: l, children: t().map((o, v) => te.cloneElement(o, { key: v })) } ) : null; }; var cn = on, we = cn; const ln = [{ tag: "path", att: { d: "M11.9999 15.0002c-1.3965 0-2.5725-.9551-2.9056-2.2492l-1.9368.4985c.555 2.1563 2.5112 3.7507 4.8424 3.7507 2.3312 0 4.2874-1.5944 4.8424-3.7507l-1.9369-.4985c-.3331 1.2941-1.509 2.2492-2.9055 2.2492zM11 9.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z" } }, { tag: "path", att: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z" } }]; function un(e) { return e.replace(/-([a-z])/g, (a, r) => r.toUpperCase()); } function fn(e) { return Object.entries(e).reduce((a, [r, t]) => (a[un(r)] = t, a), {}); } function ce(e) { if (e) return e.map( (a) => Vr(a.tag, fn(a.att), ce(a.nds)) ); } var er = () => ce(ln); const vt = ({ position: e = "rightCenter", bgcolor: a = "#FFD700", style: r, className: t, onClick: c }) => /* @__PURE__ */ u.jsx(u.Fragment, { // <div // onClick={onClick} // className={styles.WelpButton + " " + styles[position] + " " + className} // style={{ // ...style, // backgroundColor: bgcolor // }} // > // <SSRIcon prefix="iwelp-" className={styles.WelpIcon} paths={FeedbackHappyIcon} /> // <div className={styles.WelpText}> // <span>Feedback</span> // </div> // </div> children: /* @__PURE__ */ u.jsx( "div", { onClick: c, className: `iwelp-Content iwelp-${e} ` + t, style: { ...r, "--backgroundColor": a }, children: /* @__PURE__ */ u.jsx("div", { className: "iwelp-Text", children: "Feedback" }) } ) }); vt.propTypes = { position: de.oneOf(["leftCenter", "rightCenter", "topLeft", "topRight", "bottomLeft", "bottomRight"]), bgcolor: de.string, style: de.object, className: de.string, onClick: de.func.isRequired }; vt.displayName = "iWelpButton"; const dn = "100ms", pn = [{ tag: "path", att: { d: "M11.0036 14.2499h2v-6h-2v6zm1 1.5c-.6904 0-1.25.5596-1.25 1.25 0 .6903.5596 1.25 1.25 1.25.6903 0 1.25-.5597 1.25-1.25 0-.6904-.5597-1.25-1.25-1.25z" } }, { tag: "path", att: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "m1.1152 20.5341 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853L3.6565 20z" } }]; var hn = () => ce(pn); const vn = [ "primary", "emphasised", "secondary", "tertiary" ], tr = De( (e, a) => { const { href: r = "", newWindow: t = !1, loadingSrText: c = "Loading…", ssrIcon: s, iconOnly: l = !1, prefix: i = "", htmlType: d = "button", disabled: o = !1, className: v = "", onClick: m, text: y = "", type: T = "secondary", expanding: C = !1, loading: b = !1, iconPosition: w = "leading", fluid: $ = !1, inverseTheme: E = !1, children: k, expa