UNPKG

@blockscout/ui-toolkit

Version:

A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects

1,376 lines 547 kB
import { jsx as h, jsxs as X, Fragment as Ge } from "react/jsx-runtime"; import { Accordion as Tt, Icon as ge, defineRecipe as $e, Circle as So, Skeleton as ko, Stack as Ss, Button as _0, ButtonGroup as ks, useRecipe as b0, Alert as Rt, Avatar as cr, Group as Ao, useBreakpointValue as y0, Tooltip as Lt, Portal as At, useDisclosure as E0, chakra as ht, Badge as x0, Checkbox as qt, CheckboxGroup as w0, Link as Qo, LinkOverlay as Jo, LinkBox as C0, Flex as Fe, Dialog as Te, Drawer as Ue, EmptyState as Pt, VStack as T0, Field as We, Heading as S0, Image as k0, InputElement as ei, Input as A0, Menu as ve, AbsoluteCenter as Io, PinInput as Er, Popover as Le, Progress as Rn, ProgressCircle as sr, defineSlotRecipe as fe, defineConfig as I0, createSystem as O0, defaultConfig as R0, ChakraProvider as L0, RadioGroup as nr, useRatingGroup as P0, RatingGroup as Nt, useSelectContext as As, Select as Ce, createListCollection as N0, Box as Pe, Slider as Be, HStack as z0, For as D0, Status as M0, Switch as mt, Table as Wt, Tabs as gn, Tag as vt, Textarea as B0, createToaster as U0, Toaster as F0, Toast as Zt, Spinner as $0, Text as Bt, Center as lo, useToken as Oe, VisuallyHidden as H0 } from "@chakra-ui/react"; import * as z from "react"; import O, { useState as Oo, useEffect as Is, useCallback as ti, useRef as W0 } from "react"; import X0 from "react-dom"; import { pickBy as Os, debounce as mn, upperFirst as j0, throttle as V0, clamp as zt, uniq as G0, maxBy as q0, range as so } from "es-toolkit"; import { useClickAway as Z0, useDebounce as Y0, useCopyToClipboard as Rs } from "@uidotdev/usehooks"; import Ls from "next/link"; import { useTheme as K0, ThemeProvider as Q0 } from "next-themes"; import { useRouter as Ps } from "next/router"; import J0 from "dom-to-image"; import * as Y from "d3"; import je from "dayjs"; import { useFormContext as st, useWatch as eu, useController as pt } from "react-hook-form"; var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Ns(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var de = {}, wr = {}, Cr = {}, Tr = {}, Ln, ri; function tu() { if (ri) return Ln; ri = 1; var e = "Expected a function", t = NaN, r = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, u = typeof xr == "object" && xr && xr.Object === Object && xr, c = typeof self == "object" && self && self.Object === Object && self, f = u || c || Function("return this")(), g = Object.prototype, y = g.toString, v = Math.max, b = Math.min, P = function() { return f.Date.now(); }; function S(U, W, s) { var d, p, E, m, w, k, _ = 0, T = !1, C = !1, A = !0; if (typeof U != "function") throw new TypeError(e); W = M(W) || 0, x(s) && (T = !!s.leading, C = "maxWait" in s, E = C ? v(M(s.maxWait) || 0, W) : E, A = "trailing" in s ? !!s.trailing : A); function I(G) { var Q = d, ee = p; return d = p = void 0, _ = G, m = U.apply(ee, Q), m; } function R(G) { return _ = G, w = setTimeout(F, W), T ? I(G) : m; } function N(G) { var Q = G - k, ee = G - _, J = W - Q; return C ? b(J, E - ee) : J; } function H(G) { var Q = G - k, ee = G - _; return k === void 0 || Q >= W || Q < 0 || C && ee >= E; } function F() { var G = P(); if (H(G)) return Z(G); w = setTimeout(F, N(G)); } function Z(G) { return w = void 0, A && d ? I(G) : (d = p = void 0, m); } function V() { w !== void 0 && clearTimeout(w), _ = 0, d = k = p = w = void 0; } function q() { return w === void 0 ? m : Z(P()); } function K() { var G = P(), Q = H(G); if (d = arguments, p = this, k = G, Q) { if (w === void 0) return R(k); if (C) return w = setTimeout(F, W), I(k); } return w === void 0 && (w = setTimeout(F, W)), m; } return K.cancel = V, K.flush = q, K; } function L(U, W, s) { var d = !0, p = !0; if (typeof U != "function") throw new TypeError(e); return x(s) && (d = "leading" in s ? !!s.leading : d, p = "trailing" in s ? !!s.trailing : p), S(U, W, { leading: d, maxWait: W, trailing: p }); } function x(U) { var W = typeof U; return !!U && (W == "object" || W == "function"); } function D(U) { return !!U && typeof U == "object"; } function $(U) { return typeof U == "symbol" || D(U) && y.call(U) == r; } function M(U) { if (typeof U == "number") return U; if ($(U)) return t; if (x(U)) { var W = typeof U.valueOf == "function" ? U.valueOf() : U; U = x(W) ? W + "" : W; } if (typeof U != "string") return U === 0 ? U : +U; U = U.replace(n, ""); var s = i.test(U); return s || a.test(U) ? l(U.slice(2), s ? 2 : 8) : o.test(U) ? t : +U; } return Ln = L, Ln; } var Yt = {}, ni; function Ro() { if (ni) return Yt; ni = 1, Object.defineProperty(Yt, "__esModule", { value: !0 }), Yt.addPassiveEventListener = function(r, n, o) { var i = o.name; i || (i = n, console.warn("Listener must be a named function.")), e.has(n) || e.set(n, /* @__PURE__ */ new Set()); var a = e.get(n); if (!a.has(i)) { var l = (function() { var u = !1; try { var c = Object.defineProperty({}, "passive", { get: function() { u = !0; } }); window.addEventListener("test", null, c); } catch { } return u; })(); r.addEventListener(n, o, l ? { passive: !0 } : !1), a.add(i); } }, Yt.removePassiveEventListener = function(r, n, o) { r.removeEventListener(n, o), e.get(n).delete(o.name || n); }; var e = /* @__PURE__ */ new Map(); return Yt; } var oi; function Lo() { if (oi) return Tr; oi = 1, Object.defineProperty(Tr, "__esModule", { value: !0 }); var e = tu(), t = n(e), r = Ro(); function n(a) { return a && a.__esModule ? a : { default: a }; } var o = function(l) { var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 66; return (0, t.default)(l, u); }, i = { spyCallbacks: [], spySetState: [], scrollSpyContainers: [], mount: function(l, u) { if (l) { var c = o(function(f) { i.scrollHandler(l); }, u); return i.scrollSpyContainers.push(l), (0, r.addPassiveEventListener)(l, "scroll", c), function() { (0, r.removePassiveEventListener)(l, "scroll", c), i.scrollSpyContainers.splice(i.scrollSpyContainers.indexOf(l), 1); }; } return function() { }; }, isMounted: function(l) { return i.scrollSpyContainers.indexOf(l) !== -1; }, currentPositionX: function(l) { if (l === document) { var u = window.scrollY !== void 0, c = (document.compatMode || "") === "CSS1Compat"; return u ? window.scrollX : c ? document.documentElement.scrollLeft : document.body.scrollLeft; } else return l.scrollLeft; }, currentPositionY: function(l) { if (l === document) { var u = window.scrollX !== void 0, c = (document.compatMode || "") === "CSS1Compat"; return u ? window.scrollY : c ? document.documentElement.scrollTop : document.body.scrollTop; } else return l.scrollTop; }, scrollHandler: function(l) { var u = i.scrollSpyContainers[i.scrollSpyContainers.indexOf(l)].spyCallbacks || []; u.forEach(function(c) { return c(i.currentPositionX(l), i.currentPositionY(l)); }); }, addStateHandler: function(l) { i.spySetState.push(l); }, addSpyHandler: function(l, u) { var c = i.scrollSpyContainers[i.scrollSpyContainers.indexOf(u)]; c.spyCallbacks || (c.spyCallbacks = []), c.spyCallbacks.push(l); }, updateStates: function() { i.spySetState.forEach(function(l) { return l(); }); }, unmount: function(l, u) { i.scrollSpyContainers.forEach(function(c) { return c.spyCallbacks && c.spyCallbacks.length && c.spyCallbacks.indexOf(u) > -1 && c.spyCallbacks.splice(c.spyCallbacks.indexOf(u), 1); }), i.spySetState && i.spySetState.length && i.spySetState.indexOf(l) > -1 && i.spySetState.splice(i.spySetState.indexOf(l), 1), document.removeEventListener("scroll", i.scrollHandler); }, update: function() { return i.scrollSpyContainers.forEach(function(l) { return i.scrollHandler(l); }); } }; return Tr.default = i, Tr; } var Sr = {}, kr = {}, ii; function vn() { if (ii) return kr; ii = 1, Object.defineProperty(kr, "__esModule", { value: !0 }); var e = function(l, u) { var c = l.indexOf("#") === 0 ? l.substring(1) : l, f = c ? "#" + c : "", g = window && window.location, y = f ? g.pathname + g.search + f : g.pathname + g.search; u ? history.pushState(history.state, "", y) : history.replaceState(history.state, "", y); }, t = function() { return window.location.hash.replace(/^#/, ""); }, r = function(l) { return function(u) { return l.contains ? l != u && l.contains(u) : !!(l.compareDocumentPosition(u) & 16); }; }, n = function(l) { return getComputedStyle(l).position !== "static"; }, o = function(l, u) { for (var c = l.offsetTop, f = l.offsetParent; f && !u(f); ) c += f.offsetTop, f = f.offsetParent; return { offsetTop: c, offsetParent: f }; }, i = function(l, u, c) { if (c) return l === document ? u.getBoundingClientRect().left + (window.scrollX || window.pageXOffset) : getComputedStyle(l).position !== "static" ? u.offsetLeft : u.offsetLeft - l.offsetLeft; if (l === document) return u.getBoundingClientRect().top + (window.scrollY || window.pageYOffset); if (n(l)) { if (u.offsetParent !== l) { var f = function(S) { return S === l || S === document; }, g = o(u, f), y = g.offsetTop, v = g.offsetParent; if (v !== l) throw new Error("Seems containerElement is not an ancestor of the Element"); return y; } return u.offsetTop; } if (u.offsetParent === l.offsetParent) return u.offsetTop - l.offsetTop; var b = function(S) { return S === document; }; return o(u, b).offsetTop - o(l, b).offsetTop; }; return kr.default = { updateHash: e, getHash: t, filterElementInContainer: r, scrollOffset: i }, kr; } var Ar = {}, Ir = {}, ai; function ru() { return ai || (ai = 1, Object.defineProperty(Ir, "__esModule", { value: !0 }), Ir.default = { /* * https://github.com/oblador/angular-scroll (duScrollDefaultEasing) */ defaultEasing: function(t) { return t < 0.5 ? Math.pow(t * 2, 2) / 2 : 1 - Math.pow((1 - t) * 2, 2) / 2; }, /* * https://gist.github.com/gre/1650294 */ // no easing, no acceleration linear: function(t) { return t; }, // accelerating from zero velocity easeInQuad: function(t) { return t * t; }, // decelerating to zero velocity easeOutQuad: function(t) { return t * (2 - t); }, // acceleration until halfway, then deceleration easeInOutQuad: function(t) { return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t; }, // accelerating from zero velocity easeInCubic: function(t) { return t * t * t; }, // decelerating to zero velocity π easeOutCubic: function(t) { return --t * t * t + 1; }, // acceleration until halfway, then deceleration easeInOutCubic: function(t) { return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1; }, // accelerating from zero velocity easeInQuart: function(t) { return t * t * t * t; }, // decelerating to zero velocity easeOutQuart: function(t) { return 1 - --t * t * t * t; }, // acceleration until halfway, then deceleration easeInOutQuart: function(t) { return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t; }, // accelerating from zero velocity easeInQuint: function(t) { return t * t * t * t * t; }, // decelerating to zero velocity easeOutQuint: function(t) { return 1 + --t * t * t * t * t; }, // acceleration until halfway, then deceleration easeInOutQuint: function(t) { return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t; } }), Ir; } var Or = {}, li; function nu() { if (li) return Or; li = 1, Object.defineProperty(Or, "__esModule", { value: !0 }); var e = Ro(), t = ["mousedown", "wheel", "touchmove", "keydown"]; return Or.default = { subscribe: function(n) { return typeof document < "u" && t.forEach(function(o) { return (0, e.addPassiveEventListener)(document, o, n); }); } }, Or; } var Rr = {}, si; function Po() { if (si) return Rr; si = 1, Object.defineProperty(Rr, "__esModule", { value: !0 }); var e = { registered: {}, scrollEvent: { register: function(r, n) { e.registered[r] = n; }, remove: function(r) { e.registered[r] = null; } } }; return Rr.default = e, Rr; } var ci; function zs() { if (ci) return Ar; ci = 1, Object.defineProperty(Ar, "__esModule", { value: !0 }); var e = Object.assign || function(p) { for (var E = 1; E < arguments.length; E++) { var m = arguments[E]; for (var w in m) Object.prototype.hasOwnProperty.call(m, w) && (p[w] = m[w]); } return p; }, t = vn(); u(t); var r = ru(), n = u(r), o = nu(), i = u(o), a = Po(), l = u(a); function u(p) { return p && p.__esModule ? p : { default: p }; } var c = function(E) { return n.default[E.smooth] || n.default.defaultEasing; }, f = function(E) { return typeof E == "function" ? E : function() { return E; }; }, g = function() { if (typeof window < "u") return window.requestAnimationFrame || window.webkitRequestAnimationFrame; }, y = (function() { return g() || function(p, E, m) { window.setTimeout(p, m || 1e3 / 60, (/* @__PURE__ */ new Date()).getTime()); }; })(), v = function() { return { currentPosition: 0, startPosition: 0, targetPosition: 0, progress: 0, duration: 0, cancel: !1, target: null, containerElement: null, to: null, start: null, delta: null, percent: null, delayTimeout: null }; }, b = function(E) { var m = E.data.containerElement; if (m && m !== document && m !== document.body) return m.scrollLeft; var w = window.pageXOffset !== void 0, k = (document.compatMode || "") === "CSS1Compat"; return w ? window.pageXOffset : k ? document.documentElement.scrollLeft : document.body.scrollLeft; }, P = function(E) { var m = E.data.containerElement; if (m && m !== document && m !== document.body) return m.scrollTop; var w = window.pageXOffset !== void 0, k = (document.compatMode || "") === "CSS1Compat"; return w ? window.pageYOffset : k ? document.documentElement.scrollTop : document.body.scrollTop; }, S = function(E) { var m = E.data.containerElement; if (m && m !== document && m !== document.body) return m.scrollWidth - m.offsetWidth; var w = document.body, k = document.documentElement; return Math.max(w.scrollWidth, w.offsetWidth, k.clientWidth, k.scrollWidth, k.offsetWidth); }, L = function(E) { var m = E.data.containerElement; if (m && m !== document && m !== document.body) return m.scrollHeight - m.offsetHeight; var w = document.body, k = document.documentElement; return Math.max(w.scrollHeight, w.offsetHeight, k.clientHeight, k.scrollHeight, k.offsetHeight); }, x = function p(E, m, w) { var k = m.data; if (!m.ignoreCancelEvents && k.cancel) { l.default.registered.end && l.default.registered.end(k.to, k.target, k.currentPositionY); return; } if (k.delta = Math.round(k.targetPosition - k.startPosition), k.start === null && (k.start = w), k.progress = w - k.start, k.percent = k.progress >= k.duration ? 1 : E(k.progress / k.duration), k.currentPosition = k.startPosition + Math.ceil(k.delta * k.percent), k.containerElement && k.containerElement !== document && k.containerElement !== document.body ? m.horizontal ? k.containerElement.scrollLeft = k.currentPosition : k.containerElement.scrollTop = k.currentPosition : m.horizontal ? window.scrollTo(k.currentPosition, 0) : window.scrollTo(0, k.currentPosition), k.percent < 1) { var _ = p.bind(null, E, m); y.call(window, _); return; } l.default.registered.end && l.default.registered.end(k.to, k.target, k.currentPosition); }, D = function(E) { E.data.containerElement = E ? E.containerId ? document.getElementById(E.containerId) : E.container && E.container.nodeType ? E.container : document : null; }, $ = function(E, m, w, k) { m.data = m.data || v(), window.clearTimeout(m.data.delayTimeout); var _ = function() { m.data.cancel = !0; }; if (i.default.subscribe(_), D(m), m.data.start = null, m.data.cancel = !1, m.data.startPosition = m.horizontal ? b(m) : P(m), m.data.targetPosition = m.absolute ? E : E + m.data.startPosition, m.data.startPosition === m.data.targetPosition) { l.default.registered.end && l.default.registered.end(m.data.to, m.data.target, m.data.currentPosition); return; } m.data.delta = Math.round(m.data.targetPosition - m.data.startPosition), m.data.duration = f(m.duration)(m.data.delta), m.data.duration = isNaN(parseFloat(m.data.duration)) ? 1e3 : parseFloat(m.data.duration), m.data.to = w, m.data.target = k; var T = c(m), C = x.bind(null, T, m); if (m && m.delay > 0) { m.data.delayTimeout = window.setTimeout(function() { l.default.registered.begin && l.default.registered.begin(m.data.to, m.data.target), y.call(window, C); }, m.delay); return; } l.default.registered.begin && l.default.registered.begin(m.data.to, m.data.target), y.call(window, C); }, M = function(E) { return E = e({}, E), E.data = E.data || v(), E.absolute = !0, E; }, U = function(E) { $(0, M(E)); }, W = function(E, m) { $(E, M(m)); }, s = function(E) { E = M(E), D(E), $(E.horizontal ? S(E) : L(E), E); }, d = function(E, m) { m = M(m), D(m); var w = m.horizontal ? b(m) : P(m); $(E + w, m); }; return Ar.default = { animateTopScroll: $, getAnimationType: c, scrollToTop: U, scrollToBottom: s, scrollTo: W, scrollMore: d }, Ar; } var ui; function _n() { if (ui) return Sr; ui = 1, Object.defineProperty(Sr, "__esModule", { value: !0 }); var e = Object.assign || function(f) { for (var g = 1; g < arguments.length; g++) { var y = arguments[g]; for (var v in y) Object.prototype.hasOwnProperty.call(y, v) && (f[v] = y[v]); } return f; }, t = vn(), r = l(t), n = zs(), o = l(n), i = Po(), a = l(i); function l(f) { return f && f.__esModule ? f : { default: f }; } var u = {}, c = void 0; return Sr.default = { unmount: function() { u = {}; }, register: function(g, y) { u[g] = y; }, unregister: function(g) { delete u[g]; }, get: function(g) { return u[g] || document.getElementById(g) || document.getElementsByName(g)[0] || document.getElementsByClassName(g)[0]; }, setActiveLink: function(g) { return c = g; }, getActiveLink: function() { return c; }, scrollTo: function(g, y) { var v = this.get(g); if (!v) { console.warn("target Element not found"); return; } y = e({}, y, { absolute: !1 }); var b = y.containerId, P = y.container, S = void 0; b ? S = document.getElementById(b) : P && P.nodeType ? S = P : S = document, y.absolute = !0; var L = y.horizontal, x = r.default.scrollOffset(S, v, L) + (y.offset || 0); if (!y.smooth) { a.default.registered.begin && a.default.registered.begin(g, v), S === document ? y.horizontal ? window.scrollTo(x, 0) : window.scrollTo(0, x) : S.scrollTop = x, a.default.registered.end && a.default.registered.end(g, v); return; } o.default.animateTopScroll(x, y, g, v); } }, Sr; } var Lr = { exports: {} }, Pr = { exports: {} }, ce = {}; /** @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 di; function ou() { if (di) return ce; di = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119; function D(M) { if (typeof M == "object" && M !== null) { var U = M.$$typeof; switch (U) { case t: switch (M = M.type, M) { case u: case c: case n: case i: case o: case g: return M; default: switch (M = M && M.$$typeof, M) { case l: case f: case b: case v: case a: return M; default: return U; } } case r: return U; } } } function $(M) { return D(M) === c; } return ce.AsyncMode = u, ce.ConcurrentMode = c, ce.ContextConsumer = l, ce.ContextProvider = a, ce.Element = t, ce.ForwardRef = f, ce.Fragment = n, ce.Lazy = b, ce.Memo = v, ce.Portal = r, ce.Profiler = i, ce.StrictMode = o, ce.Suspense = g, ce.isAsyncMode = function(M) { return $(M) || D(M) === u; }, ce.isConcurrentMode = $, ce.isContextConsumer = function(M) { return D(M) === l; }, ce.isContextProvider = function(M) { return D(M) === a; }, ce.isElement = function(M) { return typeof M == "object" && M !== null && M.$$typeof === t; }, ce.isForwardRef = function(M) { return D(M) === f; }, ce.isFragment = function(M) { return D(M) === n; }, ce.isLazy = function(M) { return D(M) === b; }, ce.isMemo = function(M) { return D(M) === v; }, ce.isPortal = function(M) { return D(M) === r; }, ce.isProfiler = function(M) { return D(M) === i; }, ce.isStrictMode = function(M) { return D(M) === o; }, ce.isSuspense = function(M) { return D(M) === g; }, ce.isValidElementType = function(M) { return typeof M == "string" || typeof M == "function" || M === n || M === c || M === i || M === o || M === g || M === y || typeof M == "object" && M !== null && (M.$$typeof === b || M.$$typeof === v || M.$$typeof === a || M.$$typeof === l || M.$$typeof === f || M.$$typeof === S || M.$$typeof === L || M.$$typeof === x || M.$$typeof === P); }, ce.typeOf = D, ce; } var ue = {}; /** @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 fi; function iu() { return fi || (fi = 1, process.env.NODE_ENV !== "production" && (function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119; function D(j) { return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. j === n || j === c || j === i || j === o || j === g || j === y || typeof j == "object" && j !== null && (j.$$typeof === b || j.$$typeof === v || j.$$typeof === a || j.$$typeof === l || j.$$typeof === f || j.$$typeof === S || j.$$typeof === L || j.$$typeof === x || j.$$typeof === P); } function $(j) { if (typeof j == "object" && j !== null) { var ie = j.$$typeof; switch (ie) { case t: var ne = j.type; switch (ne) { case u: case c: case n: case i: case o: case g: return ne; default: var re = ne && ne.$$typeof; switch (re) { case l: case f: case b: case v: case a: return re; default: return ie; } } case r: return ie; } } } var M = u, U = c, W = l, s = a, d = t, p = f, E = n, m = b, w = v, k = r, _ = i, T = o, C = g, A = !1; function I(j) { return A || (A = !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.")), R(j) || $(j) === u; } function R(j) { return $(j) === c; } function N(j) { return $(j) === l; } function H(j) { return $(j) === a; } function F(j) { return typeof j == "object" && j !== null && j.$$typeof === t; } function Z(j) { return $(j) === f; } function V(j) { return $(j) === n; } function q(j) { return $(j) === b; } function K(j) { return $(j) === v; } function G(j) { return $(j) === r; } function Q(j) { return $(j) === i; } function ee(j) { return $(j) === o; } function J(j) { return $(j) === g; } ue.AsyncMode = M, ue.ConcurrentMode = U, ue.ContextConsumer = W, ue.ContextProvider = s, ue.Element = d, ue.ForwardRef = p, ue.Fragment = E, ue.Lazy = m, ue.Memo = w, ue.Portal = k, ue.Profiler = _, ue.StrictMode = T, ue.Suspense = C, ue.isAsyncMode = I, ue.isConcurrentMode = R, ue.isContextConsumer = N, ue.isContextProvider = H, ue.isElement = F, ue.isForwardRef = Z, ue.isFragment = V, ue.isLazy = q, ue.isMemo = K, ue.isPortal = G, ue.isProfiler = Q, ue.isStrictMode = ee, ue.isSuspense = J, ue.isValidElementType = D, ue.typeOf = $; })()), ue; } var hi; function Ds() { return hi || (hi = 1, process.env.NODE_ENV === "production" ? Pr.exports = ou() : Pr.exports = iu()), Pr.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Pn, pi; function au() { if (pi) return Pn; pi = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function n(i) { if (i == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(i); } function o() { try { if (!Object.assign) return !1; var i = new String("abc"); if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5") return !1; for (var a = {}, l = 0; l < 10; l++) a["_" + String.fromCharCode(l)] = l; var u = Object.getOwnPropertyNames(a).map(function(f) { return a[f]; }); if (u.join("") !== "0123456789") return !1; var c = {}; return "abcdefghijklmnopqrst".split("").forEach(function(f) { c[f] = f; }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Pn = o() ? Object.assign : function(i, a) { for (var l, u = n(i), c, f = 1; f < arguments.length; f++) { l = Object(arguments[f]); for (var g in l) t.call(l, g) && (u[g] = l[g]); if (e) { c = e(l); for (var y = 0; y < c.length; y++) r.call(l, c[y]) && (u[c[y]] = l[c[y]]); } } return u; }, Pn; } var Nn, gi; function No() { if (gi) return Nn; gi = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Nn = e, Nn; } var zn, mi; function Ms() { return mi || (mi = 1, zn = Function.call.bind(Object.prototype.hasOwnProperty)), zn; } var Dn, vi; function lu() { if (vi) return Dn; vi = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var t = /* @__PURE__ */ No(), r = {}, n = /* @__PURE__ */ Ms(); e = function(i) { var a = "Warning: " + i; typeof console < "u" && console.error(a); try { throw new Error(a); } catch { } }; } function o(i, a, l, u, c) { if (process.env.NODE_ENV !== "production") { for (var f in i) if (n(i, f)) { var g; try { if (typeof i[f] != "function") { var y = Error( (u || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw y.name = "Invariant Violation", y; } g = i[f](a, f, u, l, null, t); } catch (b) { g = b; } if (g && !(g instanceof Error) && e( (u || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), g instanceof Error && !(g.message in r)) { r[g.message] = !0; var v = c ? c() : ""; e( "Failed " + l + " type: " + g.message + (v ?? "") ); } } } } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); }, Dn = o, Dn; } var Mn, _i; function su() { if (_i) return Mn; _i = 1; var e = Ds(), t = au(), r = /* @__PURE__ */ No(), n = /* @__PURE__ */ Ms(), o = /* @__PURE__ */ lu(), i = function() { }; process.env.NODE_ENV !== "production" && (i = function(l) { var u = "Warning: " + l; typeof console < "u" && console.error(u); try { throw new Error(u); } catch { } }); function a() { return null; } return Mn = function(l, u) { var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator"; function g(R) { var N = R && (c && R[c] || R[f]); if (typeof N == "function") return N; } var y = "<<anonymous>>", v = { array: L("array"), bigint: L("bigint"), bool: L("boolean"), func: L("function"), number: L("number"), object: L("object"), string: L("string"), symbol: L("symbol"), any: x(), arrayOf: D, element: $(), elementType: M(), instanceOf: U, node: p(), objectOf: s, oneOf: W, oneOfType: d, shape: m, exact: w }; function b(R, N) { return R === N ? R !== 0 || 1 / R === 1 / N : R !== R && N !== N; } function P(R, N) { this.message = R, this.data = N && typeof N == "object" ? N : {}, this.stack = ""; } P.prototype = Error.prototype; function S(R) { if (process.env.NODE_ENV !== "production") var N = {}, H = 0; function F(V, q, K, G, Q, ee, J) { if (G = G || y, ee = ee || K, J !== r) { if (u) { var j = 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 j.name = "Invariant Violation", j; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var ie = G + ":" + K; !N[ie] && // Avoid spamming the console because they are often not actionable except for lib authors H < 3 && (i( "You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + G + "`. 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." ), N[ie] = !0, H++); } } return q[K] == null ? V ? q[K] === null ? new P("The " + Q + " `" + ee + "` is marked as required " + ("in `" + G + "`, but its value is `null`.")) : new P("The " + Q + " `" + ee + "` is marked as required in " + ("`" + G + "`, but its value is `undefined`.")) : null : R(q, K, G, Q, ee); } var Z = F.bind(null, !1); return Z.isRequired = F.bind(null, !0), Z; } function L(R) { function N(H, F, Z, V, q, K) { var G = H[F], Q = T(G); if (Q !== R) { var ee = C(G); return new P( "Invalid " + V + " `" + q + "` of type " + ("`" + ee + "` supplied to `" + Z + "`, expected ") + ("`" + R + "`."), { expectedType: R } ); } return null; } return S(N); } function x() { return S(a); } function D(R) { function N(H, F, Z, V, q) { if (typeof R != "function") return new P("Property `" + q + "` of component `" + Z + "` has invalid PropType notation inside arrayOf."); var K = H[F]; if (!Array.isArray(K)) { var G = T(K); return new P("Invalid " + V + " `" + q + "` of type " + ("`" + G + "` supplied to `" + Z + "`, expected an array.")); } for (var Q = 0; Q < K.length; Q++) { var ee = R(K, Q, Z, V, q + "[" + Q + "]", r); if (ee instanceof Error) return ee; } return null; } return S(N); } function $() { function R(N, H, F, Z, V) { var q = N[H]; if (!l(q)) { var K = T(q); return new P("Invalid " + Z + " `" + V + "` of type " + ("`" + K + "` supplied to `" + F + "`, expected a single ReactElement.")); } return null; } return S(R); } function M() { function R(N, H, F, Z, V) { var q = N[H]; if (!e.isValidElementType(q)) { var K = T(q); return new P("Invalid " + Z + " `" + V + "` of type " + ("`" + K + "` supplied to `" + F + "`, expected a single ReactElement type.")); } return null; } return S(R); } function U(R) { function N(H, F, Z, V, q) { if (!(H[F] instanceof R)) { var K = R.name || y, G = I(H[F]); return new P("Invalid " + V + " `" + q + "` of type " + ("`" + G + "` supplied to `" + Z + "`, expected ") + ("instance of `" + K + "`.")); } return null; } return S(N); } function W(R) { if (!Array.isArray(R)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i( "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])." ) : i("Invalid argument supplied to oneOf, expected an array.")), a; function N(H, F, Z, V, q) { for (var K = H[F], G = 0; G < R.length; G++) if (b(K, R[G])) return null; var Q = JSON.stringify(R, function(J, j) { var ie = C(j); return ie === "symbol" ? String(j) : j; }); return new P("Invalid " + V + " `" + q + "` of value `" + String(K) + "` " + ("supplied to `" + Z + "`, expected one of " + Q + ".")); } return S(N); } function s(R) { function N(H, F, Z, V, q) { if (typeof R != "function") return new P("Property `" + q + "` of component `" + Z + "` has invalid PropType notation inside objectOf."); var K = H[F], G = T(K); if (G !== "object") return new P("Invalid " + V + " `" + q + "` of type " + ("`" + G + "` supplied to `" + Z + "`, expected an object.")); for (var Q in K) if (n(K, Q)) { var ee = R(K, Q, Z, V, q + "." + Q, r); if (ee instanceof Error) return ee; } return null; } return S(N); } function d(R) { if (!Array.isArray(R)) return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a; for (var N = 0; N < R.length; N++) { var H = R[N]; if (typeof H != "function") return i( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + A(H) + " at index " + N + "." ), a; } function F(Z, V, q, K, G) { for (var Q = [], ee = 0; ee < R.length; ee++) { var J = R[ee], j = J(Z, V, q, K, G, r); if (j == null) return null; j.data && n(j.data, "expectedType") && Q.push(j.data.expectedType); } var ie = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : ""; return new P("Invalid " + K + " `" + G + "` supplied to " + ("`" + q + "`" + ie + ".")); } return S(F); } function p() { function R(N, H, F, Z, V) { return k(N[H]) ? null : new P("Invalid " + Z + " `" + V + "` supplied to " + ("`" + F + "`, expected a ReactNode.")); } return S(R); } function E(R, N, H, F, Z) { return new P( (R || "React class") + ": " + N + " type `" + H + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Z + "`." ); } function m(R) { function N(H, F, Z, V, q) { var K = H[F], G = T(K); if (G !== "object") return new P("Invalid " + V + " `" + q + "` of type `" + G + "` " + ("supplied to `" + Z + "`, expected `object`.")); for (var Q in R) { var ee = R[Q]; if (typeof ee != "function") return E(Z, V, q, Q, C(ee)); var J = ee(K, Q, Z, V, q + "." + Q, r); if (J) return J; } return null; } return S(N); } function w(R) { function N(H, F, Z, V, q) { var K = H[F], G = T(K); if (G !== "object") return new P("Invalid " + V + " `" + q + "` of type `" + G + "` " + ("supplied to `" + Z + "`, expected `object`.")); var Q = t({}, H[F], R); for (var ee in Q) { var J = R[ee]; if (n(R, ee) && typeof J != "function") return E(Z, V, q, ee, C(J)); if (!J) return new P( "Invalid " + V + " `" + q + "` key `" + ee + "` supplied to `" + Z + "`.\nBad object: " + JSON.stringify(H[F], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(R), null, " ") ); var j = J(K, ee, Z, V, q + "." + ee, r); if (j) return j; } return null; } return S(N); } function k(R) { switch (typeof R) { case "number": case "string": case "undefined": return !0; case "boolean": return !R; case "object": if (Array.isArray(R)) return R.every(k); if (R === null || l(R)) return !0; var N = g(R); if (N) { var H = N.call(R), F; if (N !== R.entries) { for (; !(F = H.next()).done; ) if (!k(F.value)) return !1; } else for (; !(F = H.next()).done; ) { var Z = F.value; if (Z && !k(Z[1])) return !1; } } else return !1; return !0; default: return !1; } } function _(R, N) { return R === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1; } function T(R) { var N = typeof R; return Array.isArray(R) ? "array" : R instanceof RegExp ? "object" : _(N, R) ? "symbol" : N; } function C(R) { if (typeof R > "u" || R === null) return "" + R; var N = T(R); if (N === "object") { if (R instanceof Date) return "date"; if (R instanceof RegExp) return "regexp"; } return N; } function A(R) { var N = C(R); switch (N) { case "array": case "object": return "an " + N; case "boolean": case "date": case "regexp": return "a " + N; default: return N; } } function I(R) { return !R.constructor || !R.constructor.name ? y : R.constructor.name; } return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v; }, Mn; } var Bn, bi; function cu() { if (bi) return Bn; bi = 1; var e = /* @__PURE__ */ No(); function t() { } function r() { } return r.resetWarningCache = t, Bn = function() { function n(a, l, u, c, f, g) { if (g !== 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; } } n.isRequired = n; function o() { return n; } var i = { array: n, bigint: n, bool: n, func: n, number: n, object: n, string: n, symbol: n, any: n, arrayOf: o, element: n, elementType: n, instanceOf: o, node: n, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: r, resetWarningCache: t }; return i.PropTypes = i, i; }, Bn; } var yi; function bn() { if (yi) return Lr.exports; if (yi = 1, process.env.NODE_ENV !== "production") { var e = Ds(), t = !0; Lr.exports = /* @__PURE__ */ su()(e.isElement, t); } else Lr.exports = /* @__PURE__ */ cu()(); return Lr.exports; } var Nr = {}, Ei; function Bs() { if (Ei) return Nr; Ei = 1, Object.defineProperty(Nr, "__esModule", { value: !0 }), Ro(); var e = vn(), t = r(e); function r(o) { return o && o.__esModule ? o : { default: o }; } var n = { mountFlag: !1, initialized: !1, scroller: null, containers: {}, mount: function(i) { this.scroller = i, this.handleHashChange = this.handleHashChange.bind(this), window.addEventListener("hashchange", this.handleHashChange), this.initStateFromHash(), this.mountFlag = !0; }, mapContainer: function(i, a) { this.containers[i] = a; }, isMounted: function() { return this.mountFlag; }, isInitialized: function() { return this.initialized; }, initStateFromHash: function() { var i = this, a = this.getHash(); a ? window.setTimeout(function() { i.scrollTo(a, !0), i.initialized = !0; }, 10) : this.initialized = !0; }, scrollTo: function(i, a) { var l = this.scroller, u = l.get(i); if (u && (a || i !== l.getActiveLink())) { var c = this.containers[i] || document; l.scrollTo(i, { container: c }); } }, getHash: function() { return t.default.getHash(); }, changeHash: function(i, a) { this.isInitialized() && t.default.getHash() !== i && t.default.updateHash(i, a); }, handleHashChange: function() { this.scrollTo(this.getHash()); }, unmount: function() { this.scroller = null, this.containers = null, window.removeEventListener("hashchange", this.handleHashChange); } }; return Nr.default = n, Nr; } var xi; function zo() { if (xi) return Cr; xi = 1, Object.defineProperty(Cr, "__esModule", { value: !0 }); var e = Object.assign || function(L) { for (var x = 1; x < arguments.length; x++) { var D = arguments[x]; for (var $ in D) Object.prototype.hasOwnProperty.call(D, $) && (L[$] = D[$]); } return L; }, t = /* @__PURE__ */ (function() { function L(x, D) { for (var $ = 0; $ < D.length; $++) { var M = D[$]; M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(x, M.key, M); } } return function(x, D, $) { return D && L(x.prototype, D), $ && L(x, $), x; }; })(), r = O, n = y(r), o = Lo(), i = y(o), a = _n(), l = y(a), u = /* @__PURE__ */ bn(), c = y(u), f = Bs(), g = y(f); function y(L) { return L && L.__esModule ? L : { default: L }; } function v(L, x) { if (!(L instanceof x)) throw new TypeError("Cannot call a class as a function"); } function b(L, x) { if (!L) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return x && (typeof x == "object" || typeof x == "function") ? x : L; } function P(L, x) { if (typeof x != "function" && x !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof x); L.prototype = Object.create(x && x.prototype, { constructor: { value: L, enumerable: !1, writable: !0, configurable: !0 } }), x && (Object.setPrototypeOf ? Object.setPrototypeOf(L, x) : L.__proto__ = x); } var S = { to: c.default.string.isRequired, containerId: c.default.string, container: c.default.object, activeClass: c.default.string, activeStyle: c.default.object, spy: c.default.bool, horizontal: c.default.bool, smooth: c.default.oneOfType([c.default.bool, c.default.string]), offset: c.default.number, delay: c.default.number, isDynamic: c.default.bool, onClick: c.default.func, duration: c.default.oneOfType([c.default.number, c.default.func]), absolute: c.default.bool, onSetActive: c.default.func, onSetInactive: c.default.func, ignoreCancelEvents: c.default.bool, hashSpy: c.default.bool, saveHashHistory: c.default.bool, spyThrottle: c.default.number }; return Cr.default = function(L, x) { var D = x || l.default, $ = (function(U) { P(W, U); function W(s) { v(this, W); var d = b(this, (W.__proto__ || Object.getPrototypeOf(W)).call(this, s)); return M.call(d), d.state = { active: !1 }, d.beforeUnmountCallbacks = [], d; } return t(W, [{ key: "getScrollSpyContainer", value: function() { var d = this.props.containerId, p = this.props.container; return d && !p ? document.getElementById(d) : p && p.nodeType ? p : document; } }, { key: "componentDidMount", value: function() { if (this.props.spy || this.props.hashSpy) { var d = this.getScrollSpyContainer(); if (!i.default.isMounted(d)) { var p = i.default.mount(d, this.props.spyThrottle); this.beforeUnmountCallbacks.push(p); } this.props.hashSpy && (g.default.isMounted() || g.default.mount(D), g.default.mapContainer(this.props.to, d)), i.default.addSpyHandler(this.spyHandler, d), this.setState({ container: d }); } } }, { key: "componentWillUnmount", value: function() { i.default.unmount(this.stateHandler, this.spyHandler), this.beforeUnmountCallbacks.forEach(function(d) { return d(); }); } }, { key: "render", value: function() { var d = ""; this.state && this.state.active ? d = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim() : d = this.props.className; var p = {}; this.state && this.state.active ? p = e({}, this.props.style, this.props.activeStyle) : p = e({}, this.props.style); var E = e({}, this.props); for (var m in