From 55d0d2e033dc746c717d77108282ec5fdc8ebaa0 Mon Sep 17 00:00:00 2001 From: Ehsan Heydari <19144304+ehsan-github@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:03:42 +0200 Subject: [PATCH] feat(chakrathemeprovider): make it customizable (#497) * Chore fix code language * feat(chakrathemeprovider): make it customizable * build --- dist/{Flex-ddd5f349.mjs => Flex-41e0872e.mjs} | 11197 ++++----- dist/chakra.mjs | 2735 +-- dist/index.mjs | 19201 ++++++++-------- dist/theme-chakra/ChakraThemeProvider.d.ts | 5 +- src/components/code/stories.tsx | 2 +- src/theme-chakra/ChakraThemeProvider.tsx | 14 +- 6 files changed, 16585 insertions(+), 16569 deletions(-) rename dist/{Flex-ddd5f349.mjs => Flex-41e0872e.mjs} (72%) diff --git a/dist/Flex-ddd5f349.mjs b/dist/Flex-41e0872e.mjs similarity index 72% rename from dist/Flex-ddd5f349.mjs rename to dist/Flex-41e0872e.mjs index 5b9d09c84..1d0190294 100644 --- a/dist/Flex-ddd5f349.mjs +++ b/dist/Flex-41e0872e.mjs @@ -1,11 +1,11 @@ import * as U from "react"; -import Dt, { createContext as Sr, forwardRef as Tt, createElement as or, Fragment as yu, useContext as dt, useLayoutEffect as Es, useEffect as Fe, useState as Ye, useRef as be, useMemo as vt, useReducer as g0, useCallback as q, useInsertionEffect as pm, useId as wr, cloneElement as La, Children as Ps, isValidElement as xu, PureComponent as b0 } from "react"; -import { createPortal as hm } from "react-dom"; -var di = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Ts(e) { +import Mt, { createContext as Cr, forwardRef as At, createElement as ar, Fragment as yu, useContext as ft, useLayoutEffect as Ts, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as y0, useCallback as G, useInsertionEffect as hm, useId as _r, cloneElement as Ua, Children as As, isValidElement as xu, PureComponent as x0 } from "react"; +import { createPortal as mm } from "react-dom"; +var pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function Os(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -function As(e) { +function Rs(e) { if (e.__esModule) return e; var t = e.default; @@ -32,7 +32,7 @@ function As(e) { }); }), r; } -var yc = { exports: {} }, zo = {}; +var xc = { exports: {} }, Lo = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -43,11 +43,11 @@ var yc = { exports: {} }, zo = {}; * LICENSE file in the root directory of this source tree. */ var Ld; -function y0() { +function S0() { if (Ld) - return zo; + return Lo; Ld = 1; - var e = Dt, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; + var e = Mt, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; function i(s, l, c) { var u, d = {}, f = null, p = null; c !== void 0 && (f = "" + c), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (p = l.ref); @@ -58,9 +58,9 @@ function y0() { d[u] === void 0 && (d[u] = l[u]); return { $$typeof: t, type: s, key: f, ref: p, props: d, _owner: o.current }; } - return zo.Fragment = r, zo.jsx = i, zo.jsxs = i, zo; + return Lo.Fragment = r, Lo.jsx = i, Lo.jsxs = i, Lo; } -var Vo = {}; +var Wo = {}; /** * @license React * react-jsx-runtime.development.js @@ -71,9 +71,9 @@ var Vo = {}; * LICENSE file in the root directory of this source tree. */ var Wd; -function x0() { +function w0() { return Wd || (Wd = 1, process.env.NODE_ENV !== "production" && function() { - var e = Dt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator"; + var e = Mt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator"; function v(x) { if (x === null || typeof x != "object") return null; @@ -269,50 +269,50 @@ function x0() { }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(Pe, []); - } catch (Nt) { - he = Nt; + } catch (jt) { + he = jt; } Reflect.construct(x, [], Pe); } else { try { Pe.call(); - } catch (Nt) { - he = Nt; + } catch (jt) { + he = jt; } x.call(Pe.prototype); } } else { try { throw Error(); - } catch (Nt) { - he = Nt; + } catch (jt) { + he = jt; } x(); } - } catch (Nt) { - if (Nt && he && typeof Nt.stack == "string") { - for (var Ee = Nt.stack.split(` -`), wt = he.stack.split(` -`), ot = Ee.length - 1, lt = wt.length - 1; ot >= 1 && lt >= 0 && Ee[ot] !== wt[lt]; ) - lt--; - for (; ot >= 1 && lt >= 0; ot--, lt--) - if (Ee[ot] !== wt[lt]) { - if (ot !== 1 || lt !== 1) + } catch (jt) { + if (jt && he && typeof jt.stack == "string") { + for (var Ee = jt.stack.split(` +`), Ct = he.stack.split(` +`), ot = Ee.length - 1, ct = Ct.length - 1; ot >= 1 && ct >= 0 && Ee[ot] !== Ct[ct]; ) + ct--; + for (; ot >= 1 && ct >= 0; ot--, ct--) + if (Ee[ot] !== Ct[ct]) { + if (ot !== 1 || ct !== 1) do - if (ot--, lt--, lt < 0 || Ee[ot] !== wt[lt]) { - var Ft = ` + if (ot--, ct--, ct < 0 || Ee[ot] !== Ct[ct]) { + var Nt = ` ` + Ee[ot].replace(" at new ", " at "); - return x.displayName && Ft.includes("") && (Ft = Ft.replace("", x.displayName)), typeof x == "function" && Y.set(x, Ft), Ft; + return x.displayName && Nt.includes("") && (Nt = Nt.replace("", x.displayName)), typeof x == "function" && Y.set(x, Nt), Nt; } - while (ot >= 1 && lt >= 0); + while (ot >= 1 && ct >= 0); break; } } } finally { Z = !1, C.current = Oe, B(), Error.prepareStackTrace = De; } - var kr = x ? x.displayName || x.name : "", si = kr ? A(kr) : ""; - return typeof x == "function" && Y.set(x, si), si; + var Pr = x ? x.displayName || x.name : "", ci = Pr ? A(Pr) : ""; + return typeof x == "function" && Y.set(x, ci), ci; } function Se(x, W, K) { return R(x, !1); @@ -351,7 +351,7 @@ function x0() { return ""; } var $e = Object.prototype.hasOwnProperty, ye = {}, we = b.ReactDebugCurrentFrame; - function pt(x) { + function ht(x) { if (x) { var W = x._owner, K = le(x.type, x._source, W ? W.type : null); we.setExtraStackFrame(K); @@ -366,20 +366,20 @@ function x0() { var Ee = void 0; try { if (typeof x[Pe] != "function") { - var wt = Error((he || "React class") + ": " + K + " type `" + Pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[Pe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw wt.name = "Invariant Violation", wt; + var Ct = Error((he || "React class") + ": " + K + " type `" + Pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[Pe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw Ct.name = "Invariant Violation", Ct; } Ee = x[Pe](W, Pe, he, K, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (ot) { Ee = ot; } - Ee && !(Ee instanceof Error) && (pt(De), y("%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).", he || "React class", K, Pe, typeof Ee), pt(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, pt(De), y("Failed %s type: %s", K, Ee.message), pt(null)); + Ee && !(Ee instanceof Error) && (ht(De), y("%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).", he || "React class", K, Pe, typeof Ee), ht(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, ht(De), y("Failed %s type: %s", K, Ee.message), ht(null)); } } } - var ut = Array.isArray; + var dt = Array.isArray; function rt(x) { - return ut(x); + return dt(x); } function Me(x) { { @@ -397,17 +397,17 @@ function x0() { function Ae(x) { return "" + x; } - function At(x) { + function Ot(x) { if (se(x)) return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(x)), Ae(x); } - var yt = b.ReactCurrentOwner, st = { + var xt = b.ReactCurrentOwner, lt = { key: !0, ref: !0, __self: !0, __source: !0 - }, jr, Br, zr; - zr = {}; + }, zr, Vr, Lr; + Lr = {}; function te(x) { if ($e.call(x, "ref")) { var W = Object.getOwnPropertyDescriptor(x, "ref").get; @@ -424,16 +424,16 @@ function x0() { } return x.key !== void 0; } - function Cr(x, W) { - if (typeof x.ref == "string" && yt.current && W && yt.current.stateNode !== W) { - var K = J(yt.current.type); - zr[K] || (y('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', J(yt.current.type), x.ref), zr[K] = !0); + function kr(x, W) { + if (typeof x.ref == "string" && xt.current && W && xt.current.stateNode !== W) { + var K = J(xt.current.type); + Lr[K] || (y('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', J(xt.current.type), x.ref), Lr[K] = !0); } } - function G(x, W) { + function q(x, W) { { var K = function() { - jr || (jr = !0, y("%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)", W)); + zr || (zr = !0, y("%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)", W)); }; K.isReactWarning = !0, Object.defineProperty(x, "key", { get: K, @@ -444,7 +444,7 @@ function x0() { function ie(x, W) { { var K = function() { - Br || (Br = !0, y("%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)", W)); + Vr || (Vr = !0, y("%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)", W)); }; K.isReactWarning = !0, Object.defineProperty(x, "ref", { get: K, @@ -483,36 +483,36 @@ function x0() { }; function Ce(x, W, K, he, De) { { - var Oe, Pe = {}, Ee = null, wt = null; - K !== void 0 && (At(K), Ee = "" + K), ve(W) && (At(W.key), Ee = "" + W.key), te(W) && (wt = W.ref, Cr(W, De)); + var Oe, Pe = {}, Ee = null, Ct = null; + K !== void 0 && (Ot(K), Ee = "" + K), ve(W) && (Ot(W.key), Ee = "" + W.key), te(W) && (Ct = W.ref, kr(W, De)); for (Oe in W) - $e.call(W, Oe) && !st.hasOwnProperty(Oe) && (Pe[Oe] = W[Oe]); + $e.call(W, Oe) && !lt.hasOwnProperty(Oe) && (Pe[Oe] = W[Oe]); if (x && x.defaultProps) { var ot = x.defaultProps; for (Oe in ot) Pe[Oe] === void 0 && (Pe[Oe] = ot[Oe]); } - if (Ee || wt) { - var lt = typeof x == "function" ? x.displayName || x.name || "Unknown" : x; - Ee && G(Pe, lt), wt && ie(Pe, lt); + if (Ee || Ct) { + var ct = typeof x == "function" ? x.displayName || x.name || "Unknown" : x; + Ee && q(Pe, ct), Ct && ie(Pe, ct); } - return xe(x, Ee, wt, De, he, yt.current, Pe); + return xe(x, Ee, Ct, De, he, xt.current, Pe); } } - var He = b.ReactCurrentOwner, St = b.ReactDebugCurrentFrame; + var He = b.ReactCurrentOwner, wt = b.ReactDebugCurrentFrame; function Ze(x) { if (x) { var W = x._owner, K = le(x.type, x._source, W ? W.type : null); - St.setExtraStackFrame(K); + wt.setExtraStackFrame(K); } else - St.setExtraStackFrame(null); + wt.setExtraStackFrame(null); } var nt; nt = !1; - function Vr(x) { + function Wr(x) { return typeof x == "object" && x !== null && x.$$typeof === t; } - function _r() { + function Er() { { if (He.current) { var x = J(He.current.type); @@ -524,7 +524,7 @@ Check the render method of \`` + x + "`."; return ""; } } - function ol(x) { + function il(x) { { if (x !== void 0) { var W = x.fileName.replace(/^.*[\\\/]/, ""), K = x.lineNumber; @@ -535,10 +535,10 @@ Check your code at ` + W + ":" + K + "."; return ""; } } - var ni = {}; - function al(x) { + var ai = {}; + function sl(x) { { - var W = _r(); + var W = Er(); if (!W) { var K = typeof x == "string" ? x : x.displayName || x.name; K && (W = ` @@ -548,39 +548,39 @@ Check the top-level render call using <` + K + ">."); return W; } } - function oi(x, W) { + function ii(x, W) { { if (!x._store || x._store.validated || x.key != null) return; x._store.validated = !0; - var K = al(W); - if (ni[K]) + var K = sl(W); + if (ai[K]) return; - ni[K] = !0; + ai[K] = !0; var he = ""; x && x._owner && x._owner !== He.current && (he = " It was passed a child from " + J(x._owner.type) + "."), Ze(x), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, he), Ze(null); } } - function ai(x, W) { + function si(x, W) { { if (typeof x != "object") return; if (rt(x)) for (var K = 0; K < x.length; K++) { var he = x[K]; - Vr(he) && oi(he, W); + Wr(he) && ii(he, W); } - else if (Vr(x)) + else if (Wr(x)) x._store && (x._store.validated = !0); else if (x) { var De = v(x); if (typeof De == "function" && De !== x.entries) for (var Oe = De.call(x), Pe; !(Pe = Oe.next()).done; ) - Vr(Pe.value) && oi(Pe.value, W); + Wr(Pe.value) && ii(Pe.value, W); } } } - function ur(x) { + function dr(x) { { var W = x.type; if (W == null || typeof W == "string") @@ -605,7 +605,7 @@ Check the top-level render call using <` + K + ">."); typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } - function il(x) { + function ll(x) { { for (var W = Object.keys(x.props), K = 0; K < W.length; K++) { var he = W[K]; @@ -617,124 +617,124 @@ Check the top-level render call using <` + K + ">."); x.ref !== null && (Ze(x), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null)); } } - function ii(x, W, K, he, De, Oe) { + function li(x, W, K, he, De, Oe) { { var Pe = j(x); if (!Pe) { var Ee = ""; (x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (Ee += " 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 wt = ol(De); - wt ? Ee += wt : Ee += _r(); + var Ct = il(De); + Ct ? Ee += Ct : Ee += Er(); var ot; x === null ? ot = "null" : rt(x) ? ot = "array" : x !== void 0 && x.$$typeof === t ? (ot = "<" + (J(x.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : ot = typeof x, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ot, Ee); } - var lt = Ce(x, W, K, De, Oe); - if (lt == null) - return lt; + var ct = Ce(x, W, K, De, Oe); + if (ct == null) + return ct; if (Pe) { - var Ft = W.children; - if (Ft !== void 0) + var Nt = W.children; + if (Nt !== void 0) if (he) - if (rt(Ft)) { - for (var kr = 0; kr < Ft.length; kr++) - ai(Ft[kr], x); - Object.freeze && Object.freeze(Ft); + if (rt(Nt)) { + for (var Pr = 0; Pr < Nt.length; Pr++) + si(Nt[Pr], x); + Object.freeze && Object.freeze(Nt); } else y("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 - ai(Ft, x); + si(Nt, x); } - return x === n ? il(lt) : ur(lt), lt; + return x === n ? ll(ct) : dr(ct), ct; } } - function sl(x, W, K) { - return ii(x, W, K, !0); + function cl(x, W, K) { + return li(x, W, K, !0); } - function ll(x, W, K) { - return ii(x, W, K, !1); + function ul(x, W, K) { + return li(x, W, K, !1); } - var cl = ll, on = sl; - Vo.Fragment = n, Vo.jsx = cl, Vo.jsxs = on; - }()), Vo; + var dl = ul, sn = cl; + Wo.Fragment = n, Wo.jsx = dl, Wo.jsxs = sn; + }()), Wo; } -process.env.NODE_ENV === "production" ? yc.exports = y0() : yc.exports = x0(); -var L = yc.exports, ya = {}; -function xa(e) { +process.env.NODE_ENV === "production" ? xc.exports = S0() : xc.exports = w0(); +var L = xc.exports, Sa = {}; +function wa(e) { "@babel/helpers - typeof"; - return xa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { + return wa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; - }, xa(e); + }, wa(e); } -function S0(e, t) { - if (xa(e) !== "object" || e === null) +function C0(e, t) { + if (wa(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); - if (xa(n) !== "object") + if (wa(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } -function w0(e) { - var t = S0(e, "string"); - return xa(t) === "symbol" ? t : String(t); +function _0(e) { + var t = C0(e, "string"); + return wa(t) === "symbol" ? t : String(t); } function Su(e, t, r) { - return t = w0(t), t in e ? Object.defineProperty(e, t, { + return t = _0(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } -function mm(e) { +function vm(e) { var t = {}; return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var C0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, vm = mm( +var k0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, gm = vm( function(e) { - return C0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; + return k0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); -function xc(e, t) { - return xc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { +function Sc(e, t) { + return Sc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { return n.__proto__ = o, n; - }, xc(e, t); + }, Sc(e, t); } -function _0(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xc(e, t); +function E0(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Sc(e, t); } -function k0(e) { +function P0(e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; } -function E0(e) { +function T0(e) { var t = document.createElement("style"); return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t; } -var P0 = /* @__PURE__ */ function() { +var A0 = /* @__PURE__ */ function() { function e(r) { this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.before = null; } var t = e.prototype; return t.insert = function(n) { if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { - var o = E0(this), a; + var o = T0(this), a; this.tags.length === 0 ? a = this.before : a = this.tags[this.tags.length - 1].nextSibling, this.container.insertBefore(o, a), this.tags.push(o); } var i = this.tags[this.tags.length - 1]; if (this.isSpeedy) { - var s = k0(i); + var s = P0(i); try { var l = n.charCodeAt(1) === 105 && n.charCodeAt(0) === 64; s.insertRule( @@ -762,10 +762,10 @@ var P0 = /* @__PURE__ */ function() { }), this.tags = [], this.ctr = 0; }, e; }(); -function T0(e) { +function O0(e) { function t(V, T, O, B, C) { - for (var H = 0, A = 0, Z = 0, Y = 0, ae, R, Se = 0, pe = 0, le, $e = le = ae = 0, ye = 0, we = 0, pt = 0, ke = 0, ut = O.length, rt = ut - 1, Me, se = "", Ae = "", At = "", yt = "", st; ye < ut; ) { - if (R = O.charCodeAt(ye), ye === rt && A + Y + Z + H !== 0 && (A !== 0 && (R = A === 47 ? 10 : 47), Y = Z = H = 0, ut++, rt++), A + Y + Z + H === 0) { + for (var H = 0, A = 0, Z = 0, Y = 0, ae, R, Se = 0, pe = 0, le, $e = le = ae = 0, ye = 0, we = 0, ht = 0, ke = 0, dt = O.length, rt = dt - 1, Me, se = "", Ae = "", Ot = "", xt = "", lt; ye < dt; ) { + if (R = O.charCodeAt(ye), ye === rt && A + Y + Z + H !== 0 && (A !== 0 && (R = A === 47 ? 10 : 47), Y = Z = H = 0, dt++, rt++), A + Y + Z + H === 0) { if (ye === rt && (0 < we && (se = se.replace(f, "")), 0 < se.trim().length)) { switch (R) { case 32: @@ -781,7 +781,7 @@ function T0(e) { } switch (R) { case 123: - for (se = se.trim(), ae = se.charCodeAt(0), le = 1, ke = ++ye; ye < ut; ) { + for (se = se.trim(), ae = se.charCodeAt(0), le = 1, ke = ++ye; ye < dt; ) { switch (R = O.charCodeAt(ye)) { case 123: le++; @@ -837,7 +837,7 @@ function T0(e) { default: we = oe; } - if (le = t(T, we, le, R, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, pt), st = s(3, le, we, T, J, ne, ke, R, C, B), se = we.join(""), st !== void 0 && (ke = (le = st.trim()).length) === 0 && (R = 0, le = "")), 0 < ke) + if (le = t(T, we, le, R, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, ht), lt = s(3, le, we, T, J, ne, ke, R, C, B), se = we.join(""), lt !== void 0 && (ke = (le = lt.trim()).length) === 0 && (R = 0, le = "")), 0 < ke) switch (R) { case 115: se = se.replace(M, i); @@ -856,25 +856,25 @@ function T0(e) { le = ""; break; default: - le = t(T, r(T, se, pt), le, B, C + 1); + le = t(T, r(T, se, ht), le, B, C + 1); } - At += le, le = pt = we = $e = ae = 0, se = "", R = O.charCodeAt(++ye); + Ot += le, le = ht = we = $e = ae = 0, se = "", R = O.charCodeAt(++ye); break; case 125: case 59: if (se = (0 < we ? se.replace(f, "") : se).trim(), 1 < (ke = se.length)) - switch ($e === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (st = s(1, se, T, V, J, ne, Ae.length, B, C, B)) !== void 0 && (ke = (se = st.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), R = se.charCodeAt(1), ae) { + switch ($e === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (lt = s(1, se, T, V, J, ne, Ae.length, B, C, B)) !== void 0 && (ke = (se = lt.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), R = se.charCodeAt(1), ae) { case 0: break; case 64: if (R === 105 || R === 99) { - yt += se + O.charAt(ye); + xt += se + O.charAt(ye); break; } default: se.charCodeAt(ke - 1) !== 58 && (Ae += o(se, ae, R, se.charCodeAt(2))); } - pt = we = $e = ae = 0, se = "", R = O.charCodeAt(++ye); + ht = we = $e = ae = 0, se = "", R = O.charCodeAt(++ye); } } switch (R) { @@ -914,7 +914,7 @@ function T0(e) { Me = "\\v"; break; case 38: - Y + A + H === 0 && (we = pt = 1, Me = "\f" + Me); + Y + A + H === 0 && (we = ht = 1, Me = "\f" + Me); break; case 108: if (Y + A + H + Q === 0 && 0 < $e) @@ -981,8 +981,8 @@ function T0(e) { pe = Se, Se = R, ye++; } if (ke = Ae.length, 0 < ke) { - if (we = T, 0 < ce && (st = s(2, Ae, we, V, J, ne, ke, B, C, B), st !== void 0 && (Ae = st).length === 0)) - return yt + Ae + At; + if (we = T, 0 < ce && (lt = s(2, Ae, we, V, J, ne, ke, B, C, B), lt !== void 0 && (Ae = lt).length === 0)) + return xt + Ae + Ot; if (Ae = we.join(",") + "{" + Ae + "}", ee * Q !== 0) { switch (ee !== 2 || a(Ae, 2) || (Q = 0), Q) { case 111: @@ -994,7 +994,7 @@ function T0(e) { Q = 0; } } - return yt + Ae + At; + return xt + Ae + Ot; } function r(V, T, O) { var B = T.trim().split(v); @@ -1199,18 +1199,18 @@ var Ud = function(t) { var o = t(n); return r.set(n, o), o; }; -}, Sc = "/*|*/", A0 = Sc + "}"; -function O0(e) { - e && Sa.current.insert(e + "}"); +}, wc = "/*|*/", R0 = wc + "}"; +function $0(e) { + e && Ca.current.insert(e + "}"); } -var Sa = { +var Ca = { current: null -}, R0 = function(t, r, n, o, a, i, s, l, c, u) { +}, D0 = function(t, r, n, o, a, i, s, l, c, u) { switch (t) { case 1: { switch (r.charCodeAt(0)) { case 64: - return Sa.current.insert(r + ";"), ""; + return Ca.current.insert(r + ";"), ""; case 108: if (r.charCodeAt(2) === 98) return ""; @@ -1219,27 +1219,27 @@ var Sa = { } case 2: { if (l === 0) - return r + Sc; + return r + wc; break; } case 3: switch (l) { case 102: case 112: - return Sa.current.insert(n[0] + r), ""; + return Ca.current.insert(n[0] + r), ""; default: - return r + (u === 0 ? Sc : ""); + return r + (u === 0 ? wc : ""); } case -2: - r.split(A0).forEach(O0); + r.split(R0).forEach($0); } -}, $0 = function(t) { +}, M0 = function(t) { t === void 0 && (t = {}); var r = t.key || "css", n; t.prefix !== void 0 && (n = { prefix: t.prefix }); - var o = new T0(n); + var o = new O0(n); if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r)) throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed'); var a = {}, i; @@ -1254,11 +1254,11 @@ var Sa = { }); } var l; - if (o.use(t.stylisPlugins)(R0), l = function(p, m, h, v) { + if (o.use(t.stylisPlugins)(D0), l = function(p, m, h, v) { var b = m.name; - if (Sa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) { + if (Ca.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) { var y = m.map; - Sa.current = { + Ca.current = { insert: function(k) { h.insert(k + y); } @@ -1296,7 +1296,7 @@ var Sa = { } var d = { key: r, - sheet: new P0({ + sheet: new A0({ key: r, container: i, nonce: t.nonce, @@ -1308,14 +1308,14 @@ var Sa = { insert: l }; return d; -}, D0 = !0; -function gm(e, t, r) { +}, I0 = !0; +function bm(e, t, r) { var n = ""; return r.split(" ").forEach(function(o) { e[o] !== void 0 ? t.push(e[o]) : n += o + " "; }), n; } -var bm = function(t, r, n) { +var ym = function(t, r, n) { var o = t.key + "-" + r.name; if ( // we only need to add the styles to the registered cache if the @@ -1327,7 +1327,7 @@ var bm = function(t, r, n) { // in node since emotion-server relies on whether a style is in // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser - D0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0 + I0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0 ) { var a = r; do @@ -1335,7 +1335,7 @@ var bm = function(t, r, n) { while (a !== void 0); } }; -function M0(e) { +function F0(e) { for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ @@ -1354,7 +1354,7 @@ function M0(e) { return t ^= t >>> 13, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); } -var I0 = { +var N0 = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -1404,39 +1404,39 @@ var I0 = { }, Hd = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, F0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", N0 = /[A-Z]|^ms/g, ym = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wu = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, j0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", B0 = /[A-Z]|^ms/g, xm = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wu = function(t) { return t.charCodeAt(1) === 45; }, Yd = function(t) { return t != null && typeof t != "boolean"; -}, yl = mm(function(e) { - return wu(e) ? e : e.replace(N0, "-$&").toLowerCase(); -}), es = function(t, r) { +}, Sl = vm(function(e) { + return wu(e) ? e : e.replace(B0, "-$&").toLowerCase(); +}), rs = function(t, r) { switch (t) { case "animation": case "animationName": if (typeof r == "string") - return r.replace(ym, function(n, o, a) { - return hr = { + return r.replace(xm, function(n, o, a) { + return mr = { name: o, styles: a, - next: hr + next: mr }, o; }); } - return I0[t] !== 1 && !wu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; + return N0[t] !== 1 && !wu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; }; if (process.env.NODE_ENV !== "production") { - var j0 = /(attr|calc|counters?|url)\(/, B0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], z0 = es, V0 = /^-ms-/, L0 = /-(.)/g, qd = {}; - es = function(t, r) { - t === "content" && (typeof r != "string" || B0.indexOf(r) === -1 && !j0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); - var n = z0(t, r); - return n !== "" && !wu(t) && t.indexOf("-") !== -1 && qd[t] === void 0 && (qd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(V0, "ms-").replace(L0, function(o, a) { + var z0 = /(attr|calc|counters?|url)\(/, V0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], L0 = rs, W0 = /^-ms-/, U0 = /-(.)/g, Gd = {}; + rs = function(t, r) { + t === "content" && (typeof r != "string" || V0.indexOf(r) === -1 && !z0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); + var n = L0(t, r); + return n !== "" && !wu(t) && t.indexOf("-") !== -1 && Gd[t] === void 0 && (Gd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(W0, "ms-").replace(U0, function(o, a) { return a.toUpperCase(); }) + "?")), n; }; } -var Gd = !0; -function wa(e, t, r, n) { +var qd = !0; +function _a(e, t, r, n) { if (r == null) return ""; if (r.__emotion_styles !== void 0) { @@ -1449,36 +1449,36 @@ function wa(e, t, r, n) { return ""; case "object": { if (r.anim === 1) - return hr = { + return mr = { name: r.name, styles: r.styles, - next: hr + next: mr }, r.name; if (r.styles !== void 0) { var o = r.next; if (o !== void 0) for (; o !== void 0; ) - hr = { + mr = { name: o.name, styles: o.styles, - next: hr + next: mr }, o = o.next; var a = r.styles + ";"; return process.env.NODE_ENV !== "production" && r.map !== void 0 && (a += r.map), a; } - return W0(e, t, r); + return H0(e, t, r); } case "function": { if (e !== void 0) { - var i = hr, s = r(e); - return hr = i, wa(e, t, s, n); + var i = mr, s = r(e); + return mr = i, _a(e, t, s, n); } else process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); break; } case "string": if (process.env.NODE_ENV !== "production") { - var l = [], c = r.replace(ym, function(d, f, p) { + var l = [], c = r.replace(xm, function(d, f, p) { var m = "animation" + l.length; return l.push("const " + m + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}"; }); @@ -1494,121 +1494,121 @@ You should wrap it with \`css\` like this: if (t == null) return r; var u = t[r]; - return process.env.NODE_ENV !== "production" && n && Gd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), Gd = !1), u !== void 0 && !n ? u : r; + return process.env.NODE_ENV !== "production" && n && qd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), qd = !1), u !== void 0 && !n ? u : r; } -function W0(e, t, r) { +function H0(e, t, r) { var n = ""; if (Array.isArray(r)) for (var o = 0; o < r.length; o++) - n += wa(e, t, r[o], !1); + n += _a(e, t, r[o], !1); else for (var a in r) { var i = r[a]; if (typeof i != "object") - t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Yd(i) && (n += yl(a) + ":" + es(a, i) + ";"); + t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Yd(i) && (n += Sl(a) + ":" + rs(a, i) + ";"); else { if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion."); if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0)) for (var s = 0; s < i.length; s++) - Yd(i[s]) && (n += yl(a) + ":" + es(a, i[s]) + ";"); + Yd(i[s]) && (n += Sl(a) + ":" + rs(a, i[s]) + ";"); else { - var l = wa(e, t, i, !1); + var l = _a(e, t, i, !1); switch (a) { case "animation": case "animationName": { - n += yl(a) + ":" + l + ";"; + n += Sl(a) + ":" + l + ";"; break; } default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(F0), n += a + "{" + l + "}"; + process.env.NODE_ENV !== "production" && a === "undefined" && console.error(j0), n += a + "{" + l + "}"; } } } } return n; } -var Xd = /label:\s*([^\s;\n{]+)\s*;/g, xm; -process.env.NODE_ENV !== "production" && (xm = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//); -var hr, wc = function(t, r, n) { +var Xd = /label:\s*([^\s;\n{]+)\s*;/g, Sm; +process.env.NODE_ENV !== "production" && (Sm = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//); +var mr, Cc = function(t, r, n) { if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0) return t[0]; var o = !0, a = ""; - hr = void 0; + mr = void 0; var i = t[0]; - i == null || i.raw === void 0 ? (o = !1, a += wa(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Hd), a += i[0]); + i == null || i.raw === void 0 ? (o = !1, a += _a(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Hd), a += i[0]); for (var s = 1; s < t.length; s++) - a += wa(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Hd), a += i[s]); + a += _a(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Hd), a += i[s]); var l; - process.env.NODE_ENV !== "production" && (a = a.replace(xm, function(f) { + process.env.NODE_ENV !== "production" && (a = a.replace(Sm, function(f) { return l = f, ""; })), Xd.lastIndex = 0; for (var c = "", u; (u = Xd.exec(a)) !== null; ) c += "-" + // $FlowFixMe we know it's not null u[1]; - var d = M0(a) + c; + var d = F0(a) + c; return process.env.NODE_ENV !== "production" ? { name: d, styles: a, map: l, - next: hr, + next: mr, toString: function() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } } : { name: d, styles: a, - next: hr + next: mr }; -}, U0 = Object.prototype.hasOwnProperty, Sm = /* @__PURE__ */ Sr( +}, Y0 = Object.prototype.hasOwnProperty, wm = /* @__PURE__ */ Cr( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes // and we could have a special build just for that // but this is much easier and the native packages // might use a different theme context in the future anyway - typeof HTMLElement < "u" ? $0() : null -), Ca = /* @__PURE__ */ Sr({}); -Sm.Provider; -var wm = function(t) { + typeof HTMLElement < "u" ? M0() : null +), ka = /* @__PURE__ */ Cr({}); +wm.Provider; +var Cm = function(t) { var r = function(o, a) { - return /* @__PURE__ */ or(Sm.Consumer, null, function(i) { + return /* @__PURE__ */ ar(wm.Consumer, null, function(i) { return t(o, i, a); }); }; - return /* @__PURE__ */ Tt(r); -}, Kd = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zd = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", H0 = function() { + return /* @__PURE__ */ At(r); +}, Kd = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zd = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", G0 = function() { return null; }, Jd = function(t, r, n, o) { var a = n === null ? r.css : r.css(n); typeof a == "string" && t.registered[a] !== void 0 && (a = t.registered[a]); var i = r[Kd], s = [a], l = ""; - typeof r.className == "string" ? l = gm(t.registered, s, r.className) : r.className != null && (l = r.className + " "); - var c = wc(s); + typeof r.className == "string" ? l = bm(t.registered, s, r.className) : r.className != null && (l = r.className + " "); + var c = Cc(s); if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) { var u = r[Zd]; - u && (c = wc([c, "label:" + u + ";"])); + u && (c = Cc([c, "label:" + u + ";"])); } - bm(t, c, typeof i == "string"), l += t.key + "-" + c.name; + ym(t, c, typeof i == "string"), l += t.key + "-" + c.name; var d = {}; for (var f in r) - U0.call(r, f) && f !== "css" && f !== Kd && (process.env.NODE_ENV === "production" || f !== Zd) && (d[f] = r[f]); + Y0.call(r, f) && f !== "css" && f !== Kd && (process.env.NODE_ENV === "production" || f !== Zd) && (d[f] = r[f]); d.ref = o, d.className = l; - var p = /* @__PURE__ */ or(i, d), m = /* @__PURE__ */ or(H0, null); - return /* @__PURE__ */ or(yu, null, m, p); -}, Y0 = /* @__PURE__ */ wm(function(e, t, r) { - return typeof e.css == "function" ? /* @__PURE__ */ or(Ca.Consumer, null, function(n) { + var p = /* @__PURE__ */ ar(i, d), m = /* @__PURE__ */ ar(G0, null); + return /* @__PURE__ */ ar(yu, null, m, p); +}, q0 = /* @__PURE__ */ Cm(function(e, t, r) { + return typeof e.css == "function" ? /* @__PURE__ */ ar(ka.Consumer, null, function(n) { return Jd(t, e, n, r); }) : Jd(t, e, null, r); }); -process.env.NODE_ENV !== "production" && (Y0.displayName = "EmotionCssPropInternal"); -var q0 = vm, G0 = function(t) { +process.env.NODE_ENV !== "production" && (q0.displayName = "EmotionCssPropInternal"); +var X0 = gm, K0 = function(t) { return t !== "theme" && t !== "innerRef"; }, Qd = function(t) { return typeof t == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character - t.charCodeAt(0) > 96 ? q0 : G0; + t.charCodeAt(0) > 96 ? X0 : K0; }; function ef(e, t) { var r = Object.keys(e); @@ -1620,7 +1620,7 @@ function ef(e, t) { } return r; } -function X0(e) { +function Z0(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? ef(Object(r), !0).forEach(function(n) { @@ -1634,9 +1634,9 @@ function X0(e) { var tf = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, K0 = function() { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, J0 = function() { return null; -}, Z0 = function e(t, r) { +}, Q0 = function e(t, r) { if (process.env.NODE_ENV !== "production" && t === void 0) throw new Error(`You are trying to create a styled element with an undefined component. You may have forgotten to import it.`); @@ -1657,8 +1657,8 @@ You may have forgotten to import it.`); for (var f = u.length, p = 1; p < f; p++) process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(tf), d.push(u[p], u[0][p]); } - var m = wm(function(h, v, b) { - return /* @__PURE__ */ or(Ca.Consumer, null, function(y) { + var m = Cm(function(h, v, b) { + return /* @__PURE__ */ ar(ka.Consumer, null, function(y) { var S = c && h.as || s, k = "", w = [], M = h; if (h.theme == null) { M = {}; @@ -1666,16 +1666,16 @@ You may have forgotten to import it.`); M[P] = h[P]; M.theme = y; } - typeof h.className == "string" ? k = gm(v.registered, w, h.className) : h.className != null && (k = h.className + " "); - var I = wc(d.concat(w), v.registered, M); - bm(v, I, typeof S == "string"), k += v.key + "-" + I.name, a !== void 0 && (k += " " + a); + typeof h.className == "string" ? k = bm(v.registered, w, h.className) : h.className != null && (k = h.className + " "); + var I = Cc(d.concat(w), v.registered, M); + ym(v, I, typeof S == "string"), k += v.key + "-" + I.name, a !== void 0 && (k += " " + a); var z = c && o === void 0 ? Qd(S) : l, j = {}; for (var X in h) c && X === "as" || // $FlowFixMe z(X) && (j[X] = h[X]); j.className = k, j.ref = b || h.innerRef, process.env.NODE_ENV !== "production" && h.innerRef && console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead" + (n === void 0 ? "" : " in the usage of `" + n + "`")); - var ne = /* @__PURE__ */ or(S, j), J = /* @__PURE__ */ or(K0, null); - return /* @__PURE__ */ or(yu, null, J, ne); + var ne = /* @__PURE__ */ ar(S, j), J = /* @__PURE__ */ ar(J0, null); + return /* @__PURE__ */ ar(yu, null, J, ne); }); }); return m.displayName = n !== void 0 ? n : "Styled(" + (typeof s == "string" ? s : s.displayName || s.name || "Component") + ")", m.defaultProps = t.defaultProps, m.__emotion_real = m, m.__emotion_base = s, m.__emotion_styles = d, m.__emotion_forwardProp = o, Object.defineProperty(m, "toString", { @@ -1683,10 +1683,10 @@ You may have forgotten to import it.`); return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a; } }), m.withComponent = function(h, v) { - return e(h, v !== void 0 ? X0({}, r || {}, {}, v) : r).apply(void 0, d); + return e(h, v !== void 0 ? Z0({}, r || {}, {}, v) : r).apply(void 0, d); }, m; }; -}, J0 = [ +}, ex = [ "a", "abbr", "address", @@ -1822,76 +1822,69 @@ You may have forgotten to import it.`); "svg", "text", "tspan" -], Cc = Z0.bind(); -J0.forEach(function(e) { - Cc[e] = Cc(e); +], _c = Q0.bind(); +ex.forEach(function(e) { + _c[e] = _c(e); }); -const Q0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const tx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Cc -}, Symbol.toStringTag, { value: "Module" })), ex = /* @__PURE__ */ As(Q0); + default: _c +}, Symbol.toStringTag, { value: "Module" })), rx = /* @__PURE__ */ Rs(tx); /* object-assign (c) Sindre Sorhus @license MIT */ -var xl, rf; -function Cm() { - if (rf) - return xl; - rf = 1; - var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; - function n(a) { - if (a == null) - throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(a); - } - function o() { - try { - if (!Object.assign) - return !1; - var a = new String("abc"); - if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5") - return !1; - for (var i = {}, s = 0; s < 10; s++) - i["_" + String.fromCharCode(s)] = s; - var l = Object.getOwnPropertyNames(i).map(function(u) { - return i[u]; - }); - if (l.join("") !== "0123456789") - return !1; - var c = {}; - return "abcdefghijklmnopqrst".split("").forEach(function(u) { - c[u] = u; - }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst"; - } catch { +var rf = Object.getOwnPropertySymbols, nx = Object.prototype.hasOwnProperty, ox = Object.prototype.propertyIsEnumerable; +function ax(e) { + if (e == null) + throw new TypeError("Object.assign cannot be called with null or undefined"); + return Object(e); +} +function ix() { + try { + if (!Object.assign) return !1; - } + var e = new String("abc"); + if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") + return !1; + for (var t = {}, r = 0; r < 10; r++) + t["_" + String.fromCharCode(r)] = r; + var n = Object.getOwnPropertyNames(t).map(function(a) { + return t[a]; + }); + if (n.join("") !== "0123456789") + return !1; + var o = {}; + return "abcdefghijklmnopqrst".split("").forEach(function(a) { + o[a] = a; + }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst"; + } catch { + return !1; } - return xl = o() ? Object.assign : function(a, i) { - for (var s, l = n(a), c, u = 1; u < arguments.length; u++) { - s = Object(arguments[u]); - for (var d in s) - t.call(s, d) && (l[d] = s[d]); - if (e) { - c = e(s); - for (var f = 0; f < c.length; f++) - r.call(s, c[f]) && (l[c[f]] = s[c[f]]); - } - } - return l; - }, xl; } -var tx = Cm(); -const br = /* @__PURE__ */ Ts(tx); +var _m = ix() ? Object.assign : function(e, t) { + for (var r, n = ax(e), o, a = 1; a < arguments.length; a++) { + r = Object(arguments[a]); + for (var i in r) + nx.call(r, i) && (n[i] = r[i]); + if (rf) { + o = rf(r); + for (var s = 0; s < o.length; s++) + ox.call(r, o[s]) && (n[o[s]] = r[o[s]]); + } + } + return n; +}; +const xr = /* @__PURE__ */ Os(_m); var nf = function(t, r) { - var n = br({}, t, r); + var n = xr({}, t, r); for (var o in t) { var a; - !t[o] || typeof r[o] != "object" || br(n, (a = {}, a[o] = br(t[o], r[o]), a)); + !t[o] || typeof r[o] != "object" || xr(n, (a = {}, a[o] = xr(t[o], r[o]), a)); } return n; -}, rx = function(t) { +}, sx = function(t) { var r = {}; return Object.keys(t).sort(function(n, o) { return n.localeCompare(o, void 0, { @@ -1901,35 +1894,35 @@ var nf = function(t, r) { }).forEach(function(n) { r[n] = t[n]; }), r; -}, nx = { +}, lx = { breakpoints: [40, 52, 64].map(function(e) { return e + "em"; }) -}, _m = function(t) { +}, km = function(t) { return "@media screen and (min-width: " + t + ")"; -}, ox = function(t, r) { - return Zr(r, t, t); -}, Zr = function(t, r, n, o, a) { +}, cx = function(t, r) { + return Qr(r, t, t); +}, Qr = function(t, r, n, o, a) { for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++) t = t ? t[r[o]] : a; return t === a ? n : t; -}, Wa = function e(t) { +}, Ha = function e(t) { var r = {}, n = function(i) { var s = {}, l = !1, c = i.theme && i.theme.disableStyledSystemCache; for (var u in i) if (t[u]) { - var d = t[u], f = i[u], p = Zr(i.theme, d.scale, d.defaults); + var d = t[u], f = i[u], p = Qr(i.theme, d.scale, d.defaults); if (typeof f == "object") { - if (r.breakpoints = !c && r.breakpoints || Zr(i.theme, "breakpoints", nx.breakpoints), Array.isArray(f)) { - r.media = !c && r.media || [null].concat(r.breakpoints.map(_m)), s = nf(s, ax(r.media, d, p, f, i)); + if (r.breakpoints = !c && r.breakpoints || Qr(i.theme, "breakpoints", lx.breakpoints), Array.isArray(f)) { + r.media = !c && r.media || [null].concat(r.breakpoints.map(km)), s = nf(s, ux(r.media, d, p, f, i)); continue; } - f !== null && (s = nf(s, ix(r.breakpoints, d, p, f, i)), l = !0); + f !== null && (s = nf(s, dx(r.breakpoints, d, p, f, i)), l = !0); continue; } - br(s, d(f, p, i)); + xr(s, d(f, p, i)); } - return l && (s = rx(s)), s; + return l && (s = sx(s)), s; }; n.config = t, n.propNames = Object.keys(t), n.cache = r; var o = Object.keys(t).filter(function(a) { @@ -1939,31 +1932,31 @@ var nf = function(t, r) { var i; n[a] = e((i = {}, i[a] = t[a], i)); }), n; -}, ax = function(t, r, n, o, a) { +}, ux = function(t, r, n, o, a) { var i = {}; return o.slice(0, t.length).forEach(function(s, l) { var c = t[l], u = r(s, n, a); if (!c) - br(i, u); + xr(i, u); else { var d; - br(i, (d = {}, d[c] = br({}, i[c], u), d)); + xr(i, (d = {}, d[c] = xr({}, i[c], u), d)); } }), i; -}, ix = function(t, r, n, o, a) { +}, dx = function(t, r, n, o, a) { var i = {}; for (var s in o) { var l = t[s], c = o[s], u = r(c, n, a); if (!l) - br(i, u); + xr(i, u); else { - var d, f = _m(l); - br(i, (d = {}, d[f] = br({}, i[f], u), d)); + var d, f = km(l); + xr(i, (d = {}, d[f] = xr({}, i[f], u), d)); } } return i; -}, ts = function(t) { - var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? ox : a, s = t.defaultScale; +}, ns = function(t) { + var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? cx : a, s = t.defaultScale; r = r || [n]; var l = function(u, d, f) { var p = {}, m = i(u, d, f); @@ -1973,13 +1966,13 @@ var nf = function(t, r) { }), p; }; return l.scale = o, l.defaults = s, l; -}, cr = function(t) { +}, ur = function(t) { t === void 0 && (t = {}); var r = {}; Object.keys(t).forEach(function(o) { var a = t[o]; if (a === !0) { - r[o] = ts({ + r[o] = ns({ property: o, scale: o }); @@ -1989,27 +1982,27 @@ var nf = function(t, r) { r[o] = a; return; } - r[o] = ts(a); + r[o] = ns(a); }); - var n = Wa(r); + var n = Ha(r); return n; }, Cu = function() { for (var t = {}, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o]; n.forEach(function(i) { - !i || !i.config || br(t, i.config); + !i || !i.config || xr(t, i.config); }); - var a = Wa(t); + var a = Ha(t); return a; -}, sx = function(t) { +}, fx = function(t) { return typeof t == "number" && !isNaN(t); -}, lx = function(t, r) { - return Zr(r, t, !sx(t) || t > 1 ? t : t * 100 + "%"); -}, cx = { +}, px = function(t, r) { + return Qr(r, t, !fx(t) || t > 1 ? t : t * 100 + "%"); +}, hx = { width: { property: "width", scale: "sizes", - transform: lx + transform: px }, height: { property: "height", @@ -2040,7 +2033,7 @@ var nf = function(t, r) { overflowY: !0, display: !0, verticalAlign: !0 -}, Ht = cr(cx), _c = { +}, Yt = ur(hx), kc = { color: { property: "color", scale: "colors" @@ -2051,10 +2044,10 @@ var nf = function(t, r) { }, opacity: !0 }; -_c.bg = _c.backgroundColor; -var _u = cr(_c), ux = { +kc.bg = kc.backgroundColor; +var _u = ur(kc), mx = { fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, dx = { +}, vx = { fontFamily: { property: "fontFamily", scale: "fonts" @@ -2062,7 +2055,7 @@ var _u = cr(_c), ux = { fontSize: { property: "fontSize", scale: "fontSizes", - defaultScale: ux.fontSizes + defaultScale: mx.fontSizes }, fontWeight: { property: "fontWeight", @@ -2078,7 +2071,7 @@ var _u = cr(_c), ux = { }, textAlign: !0, fontStyle: !0 -}, rn = cr(dx), fx = { +}, on = ur(vx), gx = { alignItems: !0, alignContent: !0, justifyItems: !0, @@ -2093,23 +2086,23 @@ var _u = cr(_c), ux = { justifySelf: !0, alignSelf: !0, order: !0 -}, Mt = cr(fx), Sl = { +}, It = ur(gx), wl = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, px = { +}, bx = { gridGap: { property: "gridGap", scale: "space", - defaultScale: Sl.space + defaultScale: wl.space }, gridColumnGap: { property: "gridColumnGap", scale: "space", - defaultScale: Sl.space + defaultScale: wl.space }, gridRowGap: { property: "gridRowGap", scale: "space", - defaultScale: Sl.space + defaultScale: wl.space }, gridColumn: !0, gridRow: !0, @@ -2120,7 +2113,7 @@ var _u = cr(_c), ux = { gridTemplateRows: !0, gridTemplateAreas: !0, gridArea: !0 -}, Yt = cr(px), Et = { +}, Gt = ur(bx), Pt = { border: { property: "border", scale: "borders" @@ -2182,84 +2175,84 @@ var _u = cr(_c), ux = { scale: "borders" } }; -Et.borderTopWidth = { +Pt.borderTopWidth = { property: "borderTopWidth", scale: "borderWidths" }; -Et.borderTopColor = { +Pt.borderTopColor = { property: "borderTopColor", scale: "colors" }; -Et.borderTopStyle = { +Pt.borderTopStyle = { property: "borderTopStyle", scale: "borderStyles" }; -Et.borderTopLeftRadius = { +Pt.borderTopLeftRadius = { property: "borderTopLeftRadius", scale: "radii" }; -Et.borderTopRightRadius = { +Pt.borderTopRightRadius = { property: "borderTopRightRadius", scale: "radii" }; -Et.borderBottomWidth = { +Pt.borderBottomWidth = { property: "borderBottomWidth", scale: "borderWidths" }; -Et.borderBottomColor = { +Pt.borderBottomColor = { property: "borderBottomColor", scale: "colors" }; -Et.borderBottomStyle = { +Pt.borderBottomStyle = { property: "borderBottomStyle", scale: "borderStyles" }; -Et.borderBottomLeftRadius = { +Pt.borderBottomLeftRadius = { property: "borderBottomLeftRadius", scale: "radii" }; -Et.borderBottomRightRadius = { +Pt.borderBottomRightRadius = { property: "borderBottomRightRadius", scale: "radii" }; -Et.borderLeftWidth = { +Pt.borderLeftWidth = { property: "borderLeftWidth", scale: "borderWidths" }; -Et.borderLeftColor = { +Pt.borderLeftColor = { property: "borderLeftColor", scale: "colors" }; -Et.borderLeftStyle = { +Pt.borderLeftStyle = { property: "borderLeftStyle", scale: "borderStyles" }; -Et.borderRightWidth = { +Pt.borderRightWidth = { property: "borderRightWidth", scale: "borderWidths" }; -Et.borderRightColor = { +Pt.borderRightColor = { property: "borderRightColor", scale: "colors" }; -Et.borderRightStyle = { +Pt.borderRightStyle = { property: "borderRightStyle", scale: "borderStyles" }; -var yr = cr(Et), Jr = { +var Sr = ur(Pt), en = { background: !0, backgroundImage: !0, backgroundSize: !0, backgroundPosition: !0, backgroundRepeat: !0 }; -Jr.bgImage = Jr.backgroundImage; -Jr.bgSize = Jr.backgroundSize; -Jr.bgPosition = Jr.backgroundPosition; -Jr.bgRepeat = Jr.backgroundRepeat; -var Oo = cr(Jr), fi = { +en.bgImage = en.backgroundImage; +en.bgSize = en.backgroundSize; +en.bgPosition = en.backgroundPosition; +en.bgRepeat = en.backgroundRepeat; +var $o = ur(en), hi = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, hx = { +}, yx = { position: !0, zIndex: { property: "zIndex", @@ -2268,75 +2261,75 @@ var Oo = cr(Jr), fi = { top: { property: "top", scale: "space", - defaultScale: fi.space + defaultScale: hi.space }, right: { property: "right", scale: "space", - defaultScale: fi.space + defaultScale: hi.space }, bottom: { property: "bottom", scale: "space", - defaultScale: fi.space + defaultScale: hi.space }, left: { property: "left", scale: "space", - defaultScale: fi.space + defaultScale: hi.space } -}, Vn = cr(hx), jt = { +}, Un = ur(yx), Bt = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] }, of = function(t) { return typeof t == "number" && !isNaN(t); -}, kn = function(t, r) { +}, Pn = function(t, r) { if (!of(t)) - return Zr(r, t, t); - var n = t < 0, o = Math.abs(t), a = Zr(r, o, o); + return Qr(r, t, t); + var n = t < 0, o = Math.abs(t), a = Qr(r, o, o); return of(a) ? a * (n ? -1 : 1) : n ? "-" + a : a; }, Ne = {}; Ne.margin = { margin: { property: "margin", scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginTop: { property: "marginTop", scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginRight: { property: "marginRight", scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginBottom: { property: "marginBottom", scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginLeft: { property: "marginLeft", scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginX: { properties: ["marginLeft", "marginRight"], scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space }, marginY: { properties: ["marginTop", "marginBottom"], scale: "space", - transform: kn, - defaultScale: jt.space + transform: Pn, + defaultScale: Bt.space } }; Ne.margin.m = Ne.margin.margin; @@ -2350,37 +2343,37 @@ Ne.padding = { padding: { property: "padding", scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingTop: { property: "paddingTop", scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingRight: { property: "paddingRight", scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingBottom: { property: "paddingBottom", scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingLeft: { property: "paddingLeft", scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingX: { properties: ["paddingLeft", "paddingRight"], scale: "space", - defaultScale: jt.space + defaultScale: Bt.space }, paddingY: { properties: ["paddingTop", "paddingBottom"], scale: "space", - defaultScale: jt.space + defaultScale: Bt.space } }; Ne.padding.p = Ne.padding.padding; @@ -2390,7 +2383,7 @@ Ne.padding.pb = Ne.padding.paddingBottom; Ne.padding.pl = Ne.padding.paddingLeft; Ne.padding.px = Ne.padding.paddingX; Ne.padding.py = Ne.padding.paddingY; -var km = cr(Ne.margin), Em = cr(Ne.padding), Pm = Cu(km, Em), $i = cr({ +var Em = ur(Ne.margin), Pm = ur(Ne.padding), Tm = Cu(Em, Pm), Mi = ur({ boxShadow: { property: "boxShadow", scale: "shadows" @@ -2400,26 +2393,26 @@ var km = cr(Ne.margin), Em = cr(Ne.padding), Pm = Cu(km, Em), $i = cr({ scale: "shadows" } }); -function _a() { - return _a = Object.assign || function(e) { +function Ea() { + return Ea = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, _a.apply(this, arguments); + }, Ea.apply(this, arguments); } -var pr = function(t, r, n, o, a) { +var hr = function(t, r, n, o, a) { for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++) t = t ? t[r[o]] : a; return t === a ? n : t; -}, mx = [40, 52, 64].map(function(e) { +}, xx = [40, 52, 64].map(function(e) { return e + "em"; -}), vx = { +}), Sx = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, gx = { +}, wx = { bg: "backgroundColor", m: "margin", mt: "marginTop", @@ -2441,7 +2434,7 @@ var pr = function(t, r, n, o, a) { paddingX: ["paddingLeft", "paddingRight"], paddingY: ["paddingTop", "paddingBottom"], size: ["width", "height"] -}, bx = { +}, Cx = { color: "colors", backgroundColor: "colors", borderColor: "colors", @@ -2513,17 +2506,17 @@ var pr = function(t, r, n, o, a) { // svg fill: "colors", stroke: "colors" -}, yx = function(t, r) { +}, _x = function(t, r) { if (typeof r != "number" || r >= 0) - return pr(t, r, r); - var n = Math.abs(r), o = pr(t, n, n); + return hr(t, r, r); + var n = Math.abs(r), o = hr(t, n, n); return typeof o == "string" ? "-" + o : o * -1; -}, xx = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) { +}, kx = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) { var r; - return _a({}, e, (r = {}, r[t] = yx, r)); -}, {}), Tm = function(t) { + return Ea({}, e, (r = {}, r[t] = _x, r)); +}, {}), Am = function(t) { return function(r) { - var n = {}, o = pr(r, "breakpoints", mx), a = [null].concat(o.map(function(u) { + var n = {}, o = hr(r, "breakpoints", xx), a = [null].concat(o.map(function(u) { return "@media screen and (min-width: " + u + ")"; })); for (var i in t) { @@ -2545,22 +2538,22 @@ var pr = function(t, r, n, o, a) { } return n; }; -}, Am = function e(t) { +}, Om = function e(t) { return function(r) { r === void 0 && (r = {}); - var n = _a({}, vx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Tm(a)(n); + var n = Ea({}, Sx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Am(a)(n); for (var s in i) { var l = i[s], c = typeof l == "function" ? l(n) : l; if (s === "variant") { - var u = e(pr(n, c))(n); - o = _a({}, o, {}, u); + var u = e(hr(n, c))(n); + o = Ea({}, o, {}, u); continue; } if (c && typeof c == "object") { o[s] = e(c)(n); continue; } - var d = pr(gx, s, s), f = pr(bx, d), p = pr(n, f, pr(n, d, {})), m = pr(xx, d, pr), h = m(p, c, c); + var d = hr(wx, s, s), f = hr(Cx, d), p = hr(n, f, hr(n, d, {})), m = hr(kx, d, hr), h = m(p, c, c); if (af[d]) for (var v = af[d], b = 0; b < v.length; b++) o[v[b]] = h; @@ -2570,168 +2563,168 @@ var pr = function(t, r, n, o, a) { return o; }; }; -const Om = Am, Sx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Rm = Om, Ex = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - css: Am, - default: Om, - get: pr, - responsive: Tm + css: Om, + default: Rm, + get: hr, + responsive: Am }, Symbol.toStringTag, { value: "Module" })); -var Os = function(t) { +var $s = function(t) { var r, n = t.scale, o = t.prop, a = o === void 0 ? "variant" : o, i = t.variants, s = i === void 0 ? {} : i, l = t.key, c; Object.keys(s).length ? c = function(p, m, h) { - return Om(Zr(m, p, null))(h.theme); + return Rm(Qr(m, p, null))(h.theme); } : c = function(p, m) { - return Zr(m, p, null); + return Qr(m, p, null); }, c.scale = n || l, c.defaults = s; - var u = (r = {}, r[a] = c, r), d = Wa(u); + var u = (r = {}, r[a] = c, r), d = Ha(u); return d; -}, Rm = Os({ +}, $m = $s({ key: "buttons" -}), $m = Os({ +}), Dm = $s({ key: "textStyles", prop: "textStyle" -}), Dm = Os({ +}), Mm = $s({ key: "colorStyles", prop: "colors" -}), wx = Ht.width, Cx = Ht.height, _x = Ht.minWidth, kx = Ht.minHeight, Ex = Ht.maxWidth, Px = Ht.maxHeight, Tx = Ht.size, Ax = Ht.verticalAlign, Ox = Ht.display, Rx = Ht.overflow, $x = Ht.overflowX, Dx = Ht.overflowY, Mx = _u.opacity, Ix = rn.fontSize, Fx = rn.fontFamily, Nx = rn.fontWeight, jx = rn.lineHeight, Bx = rn.textAlign, zx = rn.fontStyle, Vx = rn.letterSpacing, Lx = Mt.alignItems, Wx = Mt.alignContent, Ux = Mt.justifyItems, Hx = Mt.justifyContent, Yx = Mt.flexWrap, qx = Mt.flexDirection, Gx = Mt.flex, Xx = Mt.flexGrow, Kx = Mt.flexShrink, Zx = Mt.flexBasis, Jx = Mt.justifySelf, Qx = Mt.alignSelf, eS = Mt.order, tS = Yt.gridGap, rS = Yt.gridColumnGap, nS = Yt.gridRowGap, oS = Yt.gridColumn, aS = Yt.gridRow, iS = Yt.gridAutoFlow, sS = Yt.gridAutoColumns, lS = Yt.gridAutoRows, cS = Yt.gridTemplateColumns, uS = Yt.gridTemplateRows, dS = Yt.gridTemplateAreas, fS = Yt.gridArea, pS = yr.borderWidth, hS = yr.borderStyle, mS = yr.borderColor, vS = yr.borderTop, gS = yr.borderRight, bS = yr.borderBottom, yS = yr.borderLeft, xS = yr.borderRadius, SS = Oo.backgroundImage, wS = Oo.backgroundSize, CS = Oo.backgroundPosition, _S = Oo.backgroundRepeat, kS = Vn.zIndex, ES = Vn.top, PS = Vn.right, TS = Vn.bottom, AS = Vn.left, OS = function(t) { +}), Px = Yt.width, Tx = Yt.height, Ax = Yt.minWidth, Ox = Yt.minHeight, Rx = Yt.maxWidth, $x = Yt.maxHeight, Dx = Yt.size, Mx = Yt.verticalAlign, Ix = Yt.display, Fx = Yt.overflow, Nx = Yt.overflowX, jx = Yt.overflowY, Bx = _u.opacity, zx = on.fontSize, Vx = on.fontFamily, Lx = on.fontWeight, Wx = on.lineHeight, Ux = on.textAlign, Hx = on.fontStyle, Yx = on.letterSpacing, Gx = It.alignItems, qx = It.alignContent, Xx = It.justifyItems, Kx = It.justifyContent, Zx = It.flexWrap, Jx = It.flexDirection, Qx = It.flex, eS = It.flexGrow, tS = It.flexShrink, rS = It.flexBasis, nS = It.justifySelf, oS = It.alignSelf, aS = It.order, iS = Gt.gridGap, sS = Gt.gridColumnGap, lS = Gt.gridRowGap, cS = Gt.gridColumn, uS = Gt.gridRow, dS = Gt.gridAutoFlow, fS = Gt.gridAutoColumns, pS = Gt.gridAutoRows, hS = Gt.gridTemplateColumns, mS = Gt.gridTemplateRows, vS = Gt.gridTemplateAreas, gS = Gt.gridArea, bS = Sr.borderWidth, yS = Sr.borderStyle, xS = Sr.borderColor, SS = Sr.borderTop, wS = Sr.borderRight, CS = Sr.borderBottom, _S = Sr.borderLeft, kS = Sr.borderRadius, ES = $o.backgroundImage, PS = $o.backgroundSize, TS = $o.backgroundPosition, AS = $o.backgroundRepeat, OS = Un.zIndex, RS = Un.top, $S = Un.right, DS = Un.bottom, MS = Un.left, IS = function(t) { var r = t.prop, n = t.cssProperty, o = t.alias, a = t.key, i = t.transformValue, s = t.scale, l = t.properties, c = {}; - c[r] = ts({ + c[r] = ns({ properties: l, property: n || r, scale: a, defaultScale: s, transform: i }), o && (c[o] = c[r]); - var u = Wa(c); + var u = Ha(c); return u; }; -const RS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - alignContent: Wx, - alignItems: Lx, - alignSelf: Qx, - background: Oo, - backgroundImage: SS, - backgroundPosition: CS, - backgroundRepeat: _S, - backgroundSize: wS, - border: yr, - borderBottom: bS, - borderColor: mS, - borderLeft: yS, - borderRadius: xS, - borderRight: gS, - borderStyle: hS, - borderTop: vS, - borderWidth: pS, - borders: yr, - bottom: TS, - boxShadow: $i, - buttonStyle: Rm, + alignContent: qx, + alignItems: Gx, + alignSelf: oS, + background: $o, + backgroundImage: ES, + backgroundPosition: TS, + backgroundRepeat: AS, + backgroundSize: PS, + border: Sr, + borderBottom: CS, + borderColor: xS, + borderLeft: _S, + borderRadius: kS, + borderRight: wS, + borderStyle: yS, + borderTop: SS, + borderWidth: bS, + borders: Sr, + bottom: DS, + boxShadow: Mi, + buttonStyle: $m, color: _u, - colorStyle: Dm, + colorStyle: Mm, compose: Cu, - createParser: Wa, - createStyleFunction: ts, - display: Ox, - flex: Gx, - flexBasis: Zx, - flexDirection: qx, - flexGrow: Xx, - flexShrink: Kx, - flexWrap: Yx, - flexbox: Mt, - fontFamily: Fx, - fontSize: Ix, - fontStyle: zx, - fontWeight: Nx, - get: Zr, - grid: Yt, - gridArea: fS, - gridAutoColumns: sS, - gridAutoFlow: iS, - gridAutoRows: lS, - gridColumn: oS, - gridColumnGap: rS, - gridGap: tS, - gridRow: aS, - gridRowGap: nS, - gridTemplateAreas: dS, - gridTemplateColumns: cS, - gridTemplateRows: uS, - height: Cx, - justifyContent: Hx, - justifyItems: Ux, - justifySelf: Jx, - layout: Ht, - left: AS, - letterSpacing: Vx, - lineHeight: jx, - margin: km, - maxHeight: Px, - maxWidth: Ex, - minHeight: kx, - minWidth: _x, - opacity: Mx, - order: eS, - overflow: Rx, - overflowX: $x, - overflowY: Dx, - padding: Em, - position: Vn, - right: PS, - shadow: $i, - size: Tx, - space: Pm, - style: OS, - system: cr, - textAlign: Bx, - textShadow: $i, - textStyle: $m, - top: ES, - typography: rn, - variant: Os, - verticalAlign: Ax, - width: wx, - zIndex: kS -}, Symbol.toStringTag, { value: "Module" })), $S = /* @__PURE__ */ As(RS), DS = /* @__PURE__ */ As(Sx); -function MS(e) { + createParser: Ha, + createStyleFunction: ns, + display: Ix, + flex: Qx, + flexBasis: rS, + flexDirection: Jx, + flexGrow: eS, + flexShrink: tS, + flexWrap: Zx, + flexbox: It, + fontFamily: Vx, + fontSize: zx, + fontStyle: Hx, + fontWeight: Lx, + get: Qr, + grid: Gt, + gridArea: gS, + gridAutoColumns: fS, + gridAutoFlow: dS, + gridAutoRows: pS, + gridColumn: cS, + gridColumnGap: sS, + gridGap: iS, + gridRow: uS, + gridRowGap: lS, + gridTemplateAreas: vS, + gridTemplateColumns: hS, + gridTemplateRows: mS, + height: Tx, + justifyContent: Kx, + justifyItems: Xx, + justifySelf: nS, + layout: Yt, + left: MS, + letterSpacing: Yx, + lineHeight: Wx, + margin: Em, + maxHeight: $x, + maxWidth: Rx, + minHeight: Ox, + minWidth: Ax, + opacity: Bx, + order: aS, + overflow: Fx, + overflowX: Nx, + overflowY: jx, + padding: Pm, + position: Un, + right: $S, + shadow: Mi, + size: Dx, + space: Tm, + style: IS, + system: ur, + textAlign: Ux, + textShadow: Mi, + textStyle: Dm, + top: RS, + typography: on, + variant: $s, + verticalAlign: Mx, + width: Px, + zIndex: OS +}, Symbol.toStringTag, { value: "Module" })), NS = /* @__PURE__ */ Rs(FS), jS = /* @__PURE__ */ Rs(Ex); +function BS(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var IS = Cu(Pm, rn, _u, Ht, Mt, yr, Oo, Vn, Yt, $i, Rm, $m, Dm), Mm = IS.propNames, Im = function(t) { +var zS = Cu(Tm, on, _u, Yt, It, Sr, $o, Un, Gt, Mi, $m, Dm, Mm), Im = zS.propNames, Fm = function(t) { var r = new RegExp("^(" + t.join("|") + ")$"); - return MS(function(n) { - return vm(n) && !r.test(n); + return BS(function(n) { + return gm(n) && !r.test(n); }); }; -const FS = Im(Mm), NS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const VS = Fm(Im), LS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - createShouldForwardProp: Im, - default: FS, - props: Mm -}, Symbol.toStringTag, { value: "Module" })), jS = /* @__PURE__ */ As(NS); -Object.defineProperty(ya, "__esModule", { + createShouldForwardProp: Fm, + default: VS, + props: Im +}, Symbol.toStringTag, { value: "Module" })), WS = /* @__PURE__ */ Rs(LS); +Object.defineProperty(Sa, "__esModule", { value: !0 }); -var Fm = ya.Flex = Ln = ya.Box = void 0; -ku(Dt); -var Nm = ku(ex), Yn = $S, oa = zS(DS), BS = ku(jS); -function jm() { +var Nm = Sa.Flex = Hn = Sa.Box = void 0; +ku(Mt); +var jm = ku(rx), Xn = NS, ia = HS(jS), US = ku(WS); +function Bm() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return jm = function() { + return Bm = function() { return e; }, e; } -function zS(e) { +function HS(e) { if (e && e.__esModule) return e; - var t = jm(); + var t = Bm(); if (t && t.has(e)) return t.get(e); var r = {}; @@ -2748,43 +2741,43 @@ function zS(e) { function ku(e) { return e && e.__esModule ? e : { default: e }; } -var VS = function(t) { - return (0, oa.default)(t.sx)(t.theme); -}, LS = function(t) { - return (0, oa.default)(t.__css)(t.theme); -}, WS = function(t) { +var YS = function(t) { + return (0, ia.default)(t.sx)(t.theme); +}, GS = function(t) { + return (0, ia.default)(t.__css)(t.theme); +}, qS = function(t) { var r = t.theme, n = t.variant, o = t.tx, a = o === void 0 ? "variants" : o; - return (0, oa.default)((0, oa.get)(r, a + "." + n, (0, oa.get)(r, n)))(r); -}, Bm = (0, Nm.default)("div", { - shouldForwardProp: BS.default + return (0, ia.default)((0, ia.get)(r, a + "." + n, (0, ia.get)(r, n)))(r); +}, zm = (0, jm.default)("div", { + shouldForwardProp: US.default })({ boxSizing: "border-box", margin: 0, minWidth: 0 -}, LS, WS, VS, function(e) { +}, GS, qS, YS, function(e) { return e.css; -}, (0, Yn.compose)(Yn.space, Yn.layout, Yn.typography, Yn.color, Yn.flexbox)), Ln = ya.Box = Bm, US = (0, Nm.default)(Bm)({ +}, (0, Xn.compose)(Xn.space, Xn.layout, Xn.typography, Xn.color, Xn.flexbox)), Hn = Sa.Box = zm, XS = (0, jm.default)(zm)({ display: "flex" }); -Fm = ya.Flex = US; -function mn() { - return mn = Object.assign || function(e) { +Nm = Sa.Flex = XS; +function gn() { + return gn = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, mn.apply(this, arguments); + }, gn.apply(this, arguments); } -var iV = Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +var dV = At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, tx: "text" }, e)); }); -Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, as: "h2", tx: "text", @@ -2798,14 +2791,14 @@ Tt(function(e, t) { } })); }); -var sV = Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +var fV = At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, as: "a", variant: "link" }, e)); -}), lV = Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +}), pV = At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, as: "button", tx: "buttons", @@ -2827,8 +2820,8 @@ var sV = Tt(function(e, t) { } })); }); -Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, as: "img" }, e, { @@ -2838,39 +2831,39 @@ Tt(function(e, t) { } })); }); -var cV = Tt(function(e, t) { - return Dt.createElement(Ln, mn({ +var hV = At(function(e, t) { + return Mt.createElement(Hn, gn({ ref: t, variant: "card" }, e)); }); -function Jn(e) { +function at(e) { return e != null && typeof e == "object" && e["@@functional/placeholder"] === !0; } -function Dn(e) { +function br(e) { return function t(r) { - return arguments.length === 0 || Jn(r) ? t : e.apply(this, arguments); + return arguments.length === 0 || at(r) ? t : e.apply(this, arguments); }; } -function HS(e) { +function An(e) { return function t(r, n) { switch (arguments.length) { case 0: return t; case 1: - return Jn(r) ? t : Dn(function(o) { + return at(r) ? t : br(function(o) { return e(r, o); }); default: - return Jn(r) && Jn(n) ? t : Jn(r) ? Dn(function(o) { + return at(r) && at(n) ? t : at(r) ? br(function(o) { return e(o, n); - }) : Jn(n) ? Dn(function(o) { + }) : at(n) ? br(function(o) { return e(r, o); }) : e(r, n); } }; } -function YS(e, t) { +function KS(e, t) { switch (e) { case 0: return function() { @@ -2920,15 +2913,49 @@ function YS(e, t) { throw new Error("First argument to _arity must be a non-negative integer no greater than ten"); } } -const qS = Array.isArray || function(t) { +function Vm(e) { + return function t(r, n, o) { + switch (arguments.length) { + case 0: + return t; + case 1: + return at(r) ? t : An(function(a, i) { + return e(r, a, i); + }); + case 2: + return at(r) && at(n) ? t : at(r) ? An(function(a, i) { + return e(a, n, i); + }) : at(n) ? An(function(a, i) { + return e(r, a, i); + }) : br(function(a) { + return e(r, n, a); + }); + default: + return at(r) && at(n) && at(o) ? t : at(r) && at(n) ? An(function(a, i) { + return e(a, i, o); + }) : at(r) && at(o) ? An(function(a, i) { + return e(a, n, i); + }) : at(n) && at(o) ? An(function(a, i) { + return e(r, a, i); + }) : at(r) ? br(function(a) { + return e(a, n, o); + }) : at(n) ? br(function(a) { + return e(r, a, o); + }) : at(o) ? br(function(a) { + return e(r, n, a); + }) : e(r, n, o); + } + }; +} +const ZS = Array.isArray || function(t) { return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]"; }; -function GS(e) { +function JS(e) { return Object.prototype.toString.call(e) === "[object String]"; } -var XS = /* @__PURE__ */ Dn(function(t) { - return qS(t) ? !0 : !t || typeof t != "object" || GS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1; -}), KS = /* @__PURE__ */ function() { +var QS = /* @__PURE__ */ br(function(t) { + return ZS(t) ? !0 : !t || typeof t != "object" || JS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1; +}), e1 = /* @__PURE__ */ function() { function e(t) { this.f = t; } @@ -2940,15 +2967,15 @@ var XS = /* @__PURE__ */ Dn(function(t) { return this.f(t, r); }, e; }(); -function ZS(e) { - return new KS(e); +function t1(e) { + return new e1(e); } -var JS = /* @__PURE__ */ HS(function(t, r) { - return YS(t.length, function() { +var r1 = /* @__PURE__ */ An(function(t, r) { + return KS(t.length, function() { return t.apply(r, arguments); }); }); -function QS(e, t, r) { +function n1(e, t, r) { for (var n = 0, o = r.length; n < o; ) { if (t = e["@@transducer/step"](t, r[n]), t && t["@@transducer/reduced"]) { t = t["@@transducer/value"]; @@ -2969,12 +2996,12 @@ function sf(e, t, r) { return e["@@transducer/result"](t); } function lf(e, t, r, n) { - return e["@@transducer/result"](r[n](JS(e["@@transducer/step"], e), t)); + return e["@@transducer/result"](r[n](r1(e["@@transducer/step"], e), t)); } var cf = typeof Symbol < "u" ? Symbol.iterator : "@@iterator"; -function uV(e, t, r) { - if (typeof e == "function" && (e = ZS(e)), XS(r)) - return QS(e, t, r); +function mV(e, t, r) { + if (typeof e == "function" && (e = t1(e)), QS(r)) + return n1(e, t, r); if (typeof r["fantasy-land/reduce"] == "function") return lf(e, t, r, "fantasy-land/reduce"); if (r[cf] != null) @@ -2985,50 +3012,65 @@ function uV(e, t, r) { return lf(e, t, r, "reduce"); throw new TypeError("reduce: list must be array or iterable"); } -function kc(e, t) { +function Mn(e, t) { return Object.prototype.hasOwnProperty.call(t, e); } -var uf = Object.prototype.toString, e1 = /* @__PURE__ */ function() { +var uf = Object.prototype.toString, o1 = /* @__PURE__ */ function() { return uf.call(arguments) === "[object Arguments]" ? function(t) { return uf.call(t) === "[object Arguments]"; } : function(t) { - return kc("callee", t); + return Mn("callee", t); }; -}(), t1 = !/* @__PURE__ */ { +}(), a1 = !/* @__PURE__ */ { toString: null }.propertyIsEnumerable("toString"), df = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], ff = /* @__PURE__ */ function() { return arguments.propertyIsEnumerable("length"); -}(), r1 = function(t, r) { +}(), i1 = function(t, r) { for (var n = 0; n < t.length; ) { if (t[n] === r) return !0; n += 1; } return !1; -}, dV = /* @__PURE__ */ Dn(typeof Object.keys == "function" && !ff ? function(t) { +}, vV = /* @__PURE__ */ br(typeof Object.keys == "function" && !ff ? function(t) { return Object(t) !== t ? [] : Object.keys(t); } : function(t) { if (Object(t) !== t) return []; - var r, n, o = [], a = ff && e1(t); + var r, n, o = [], a = ff && o1(t); for (r in t) - kc(r, t) && (!a || r !== "length") && (o[o.length] = r); - if (t1) + Mn(r, t) && (!a || r !== "length") && (o[o.length] = r); + if (a1) for (n = df.length - 1; n >= 0; ) - r = df[n], kc(r, t) && !r1(o, r) && (o[o.length] = r), n -= 1; + r = df[n], Mn(r, t) && !i1(o, r) && (o[o.length] = r), n -= 1; return o; -}), fV = /* @__PURE__ */ Dn(function(t) { +}), gV = /* @__PURE__ */ br(function(t) { return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1); }); -function Bn() { - return Bn = Object.assign ? Object.assign.bind() : function(e) { +function pf(e) { + return Object.prototype.toString.call(e) === "[object Object]"; +} +var s1 = /* @__PURE__ */ Vm(function(t, r, n) { + var o = {}, a; + for (a in r) + Mn(a, r) && (o[a] = Mn(a, n) ? t(a, r[a], n[a]) : r[a]); + for (a in n) + Mn(a, n) && !Mn(a, o) && (o[a] = n[a]); + return o; +}), bV = /* @__PURE__ */ Vm(function e(t, r, n) { + return s1(function(o, a, i) { + return pf(a) && pf(i) ? e(t, a, i) : t(o, a, i); + }, r, n); +}); +function Ln() { + return Ln = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, Bn.apply(this, arguments); + }, Ln.apply(this, arguments); } var Ec = { exports: {} }, Le = {}; /** @license React v16.13.1 @@ -3039,11 +3081,11 @@ var Ec = { exports: {} }, Le = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var pf; -function n1() { - if (pf) +var hf; +function l1() { + if (hf) return Le; - pf = 1; + hf = 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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; function S(w) { if (typeof w == "object" && w !== null) { @@ -3115,9 +3157,9 @@ var We = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var hf; -function o1() { - return hf || (hf = 1, process.env.NODE_ENV !== "production" && function() { +var mf; +function c1() { + return mf || (mf = 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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; function S(R) { return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. @@ -3198,24 +3240,24 @@ function o1() { We.AsyncMode = w, We.ConcurrentMode = M, We.ContextConsumer = P, We.ContextProvider = I, We.Element = z, We.ForwardRef = j, We.Fragment = X, We.Lazy = ne, We.Memo = J, We.Portal = Q, We.Profiler = ee, We.StrictMode = oe, We.Suspense = D, We.isAsyncMode = de, We.isConcurrentMode = F, We.isContextConsumer = N, We.isContextProvider = V, We.isElement = T, We.isForwardRef = O, We.isFragment = B, We.isLazy = C, We.isMemo = H, We.isPortal = A, We.isProfiler = Z, We.isStrictMode = Y, We.isSuspense = ae, We.isValidElementType = S, We.typeOf = k; }()), We; } -process.env.NODE_ENV === "production" ? Ec.exports = n1() : Ec.exports = o1(); -var Eu = Ec.exports, zm = Eu, a1 = { +process.env.NODE_ENV === "production" ? Ec.exports = l1() : Ec.exports = c1(); +var Eu = Ec.exports, Lm = Eu, u1 = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 -}, i1 = { +}, d1 = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 -}, Vm = {}; -Vm[zm.ForwardRef] = a1; -Vm[zm.Memo] = i1; -function mf(e, t) { +}, Wm = {}; +Wm[Lm.ForwardRef] = u1; +Wm[Lm.Memo] = d1; +function vf(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); @@ -3225,18 +3267,18 @@ function mf(e, t) { } return r; } -function s1(e) { +function f1(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? mf(Object(r), !0).forEach(function(n) { + t % 2 ? vf(Object(r), !0).forEach(function(n) { Su(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mf(Object(r)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : vf(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -var l1 = function(t, r) { +var p1 = function(t, r) { if (typeof r == "function") { var n = r(t); if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n))) @@ -3245,22 +3287,22 @@ var l1 = function(t, r) { } if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r))) throw new Error("[ThemeProvider] Please make your theme prop a plain object"); - return s1({}, t, {}, r); -}, c1 = Ud(function(e) { + return f1({}, t, {}, r); +}, h1 = Ud(function(e) { return Ud(function(t) { - return l1(e, t); + return p1(e, t); }); -}), pV = function(t) { - return /* @__PURE__ */ or(Ca.Consumer, null, function(r) { - return t.theme !== r && (r = c1(r)(t.theme)), /* @__PURE__ */ or(Ca.Provider, { +}), yV = function(t) { + return /* @__PURE__ */ ar(ka.Consumer, null, function(r) { + return t.theme !== r && (r = h1(r)(t.theme)), /* @__PURE__ */ ar(ka.Provider, { value: r }, t.children); }); }; -function u1() { - return Dt.useContext(Ca); +function m1() { + return Mt.useContext(ka); } -const d1 = { +const v1 = { color: "primary", bg: "transparent", borderWidth: "1px", @@ -3284,7 +3326,7 @@ const d1 = { bg: "unset", color: "gray" } -}, f1 = { +}, g1 = { color: "primary", bg: "unset", textDecoration: "underline", @@ -3299,7 +3341,7 @@ const d1 = { color: "gray", textDecoration: "none" } -}, p1 = { +}, b1 = { color: "white", bg: "primary", borderWidth: "1px", @@ -3326,7 +3368,7 @@ const d1 = { borderColor: "gray", boxShadow: "disabled" } -}, h1 = { +}, y1 = { color: "primary", bg: "white", borderWidth: "1px", @@ -3351,7 +3393,7 @@ const d1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, m1 = { +}, x1 = { variant: "buttons.secondary", color: "labels.red", borderColor: "grayShade2", @@ -3372,13 +3414,13 @@ const d1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, v1 = { - ghost: d1, - alert: m1, - inline: f1, - primary: p1, - secondary: h1 -}, g1 = { +}, S1 = { + ghost: v1, + alert: x1, + inline: g1, + primary: b1, + secondary: y1 +}, w1 = { bg: "white", boxShadow: "secondary", borderColor: "grayShade2", @@ -3396,7 +3438,7 @@ const d1 = { "& path": { fill: "black" } -}, b1 = { +}, C1 = { bg: "white", borderColor: "white", ":hover": { @@ -3414,7 +3456,7 @@ const d1 = { "& path": { fill: "black" } -}, y1 = { +}, _1 = { bg: "transparent", borderColor: "transparent", ":hover": { @@ -3433,11 +3475,11 @@ const d1 = { "& path": { fill: "black" } -}, x1 = { - "icon-primary": g1, - "icon-ghost": b1, - "icon-ghost-white": y1 -}, S1 = { +}, k1 = { + "icon-primary": w1, + "icon-ghost": C1, + "icon-ghost-white": _1 +}, E1 = { color: "black", bg: "grayShade3", borderTopColor: "primary", @@ -3453,9 +3495,9 @@ const d1 = { color: "black", bg: "grayShade3" } -}, w1 = { - "footer-primary": S1 -}, C1 = { +}, P1 = { + "footer-primary": E1 +}, T1 = { color: "primary", bg: "white", borderWidth: "1px", @@ -3479,9 +3521,9 @@ const d1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, _1 = { - "file-secondary": C1 -}, k1 = { +}, A1 = { + "file-secondary": T1 +}, O1 = { primary: { div: { bg: "grayShade3", @@ -3516,9 +3558,9 @@ const d1 = { borderColor: "transparent" } } -}, E1 = { +}, R1 = { color: "black" -}, P1 = { +}, $1 = { bg: "black", color: "white", // Arrow @@ -3530,25 +3572,25 @@ const d1 = { pl: "10px", color: "gray" } -}, T1 = { +}, D1 = { bg: "white", color: "black", borderColor: "grayShade2" -}, A1 = { +}, M1 = { bg: "white", color: "black", borderColor: "gray" -}, O1 = { - card: T1, - readOnly: A1 -}, R1 = { +}, I1 = { + card: D1, + readOnly: M1 +}, F1 = { color: "labels.red" -}, $1 = { +}, N1 = { color: "darkGray" -}, D1 = { - error: R1, - default: $1 -}, M1 = { +}, j1 = { + error: F1, + default: N1 +}, B1 = { color: "black", bg: "grayShade3", ":hover": { @@ -3577,27 +3619,27 @@ const d1 = { "~ svg path": { fill: "gray" } -}, I1 = { +}, z1 = { variant: "inputs.primary", bg: "white", ":focus": { borderColor: "gray" } -}, F1 = { +}, V1 = { variant: "inputs.primary", bg: "grayShade2", borderColor: "grayShade2", ":focus": { borderColor: "grayShade2" } -}, N1 = { - disabled: F1, - primary: M1, - white: I1 -}, j1 = { +}, L1 = { + disabled: V1, + primary: B1, + white: z1 +}, W1 = { default: "transparent", error: "labels.red" -}, B1 = { +}, U1 = { bg: "white", borderLeftColor: "grayShade2", "> div:first-of-type": { @@ -3612,7 +3654,7 @@ const d1 = { "~ div": { borderTopColor: "grayShade3" } -}, z1 = { +}, H1 = { bg: "white", borderRightColor: "grayShade2", "> div": { @@ -3621,7 +3663,7 @@ const d1 = { fill: "gray" } } -}, V1 = { +}, Y1 = { color: "black", bg: "white", cursor: "pointer", @@ -3645,7 +3687,7 @@ const d1 = { "~ div": { borderTopColor: "grayShade3" } -}, L1 = { +}, G1 = { bg: "primaryShade2", color: "primary", path: { @@ -3655,44 +3697,44 @@ const d1 = { "~ div": { borderTopColor: "primaryShade2" } -}, W1 = { +}, q1 = { variant: "navigation.item.default", cursor: "default", ":hover": {}, ":active": {} -}, U1 = { - default: V1, - active: L1, - disabled: W1 -}, H1 = { +}, X1 = { + default: Y1, + active: G1, + disabled: q1 +}, K1 = { variant: "navigation.subItem.default", cursor: "default", ":hover": {}, ":active": {} -}, Y1 = { +}, Z1 = { variant: "navigation.item.default", borderLeftWidth: "2px", borderLeftStyle: "solid", borderLeftColor: "grayShade2" -}, q1 = { +}, J1 = { variant: "navigation.subItem.default", color: "primary", cursor: "default", borderLeftColor: "primary", ":hover": {} -}, G1 = { - default: Y1, - active: q1, - disabled: H1 -}, X1 = { - container: z1, - item: U1, - subItem: G1, - category: B1 -}, K1 = { +}, Q1 = { + default: Z1, + active: J1, + disabled: K1 +}, ew = { + container: H1, + item: X1, + subItem: Q1, + category: U1 +}, tw = { bg: "white", boxShadow: "list" -}, Z1 = { +}, rw = { color: "black", bg: "white", fontWeight: "label", @@ -3703,16 +3745,16 @@ const d1 = { ":hover": { bg: "grayShade3" } -}, J1 = { +}, nw = { variant: "variants.list.item.primary", bg: "grayShade3" -}, Q1 = { - primary: Z1, - active: J1 -}, ew = { - container: K1, - item: Q1 -}, tw = { +}, ow = { + primary: rw, + active: nw +}, aw = { + container: tw, + item: ow +}, iw = { bg: "white", borderBottomColor: "grayShade2", zIndex: "modals", @@ -3726,79 +3768,79 @@ const d1 = { } } } -}, rw = { +}, sw = { fontFamily: "title", fontSize: "title", fontWeight: "title", color: "black" -}, nw = { +}, lw = { fontFamily: "subtitle", fontSize: "subtitle", fontWeight: "subtitle", color: "black" -}, ow = { +}, cw = { fontFamily: "label", fontSize: "label", fontWeight: 500, color: "black" -}, aw = { +}, uw = { fontFamily: "microlabel", fontSize: "microlabel", fontWeight: "microlabel", color: "black" -}, iw = { +}, dw = { variant: "text.microlabeling", color: "gray" -}, sw = { +}, fw = { fontFamily: "value", fontSize: "value", fontWeight: "value", color: "black" -}, lw = { +}, pw = { variant: "text.value", color: "primary" -}, cw = { +}, hw = { fontFamily: "text", fontSize: "text", fontWeight: "text", color: "black" -}, uw = { +}, mw = { variant: "text.labeling", color: "gray" -}, dw = { +}, vw = { color: "gray" -}, fw = { +}, gw = { color: "primary" -}, pw = { +}, bw = { color: "labels.orange" -}, vf = { - title: rw, - text: cw, - subtitle: nw, - labeling: ow, - value: sw, - valuePrimary: lw, - labelingGray: uw, - microlabeling: aw, - microlabelingGray: iw, - inputValidationneutral: dw, - inputValidationsuccess: fw, - inputValidationwarning: pw -}, hw = { +}, gf = { + title: sw, + text: hw, + subtitle: lw, + labeling: cw, + value: fw, + valuePrimary: pw, + labelingGray: mw, + microlabeling: uw, + microlabelingGray: dw, + inputValidationneutral: vw, + inputValidationsuccess: gw, + inputValidationwarning: bw +}, yw = { bg: "white", borderTopColor: "primary", boxShadow: "popup" -}, mw = { +}, xw = { bg: "white", ":not(:last-of-type)": { borderBottomColor: "grayShade3", borderBottomWidth: "2px", borderBottomStyle: "solid" } -}, vw = { - drawerSection: mw, - primary: hw -}, gw = { +}, Sw = { + drawerSection: xw, + primary: yw +}, ww = { black: { bg: "black", color: "white" @@ -3807,7 +3849,7 @@ const d1 = { bg: "labels.green", color: "white" } -}, bw = { +}, Cw = { red: { bg: "labels.red" }, @@ -3817,7 +3859,7 @@ const d1 = { gray: { bg: "gray" } -}, yw = { +}, _w = { bg: "grayShade2", borderColor: "gray", "> span": { @@ -3825,7 +3867,7 @@ const d1 = { bg: "white" } } -}, xw = { +}, kw = { bg: "white", borderColor: "gray", "> span": { @@ -3833,10 +3875,10 @@ const d1 = { bg: "grayShade2" } } -}, Sw = { - gray: yw, - white: xw -}, ww = { +}, Ew = { + gray: _w, + white: kw +}, Pw = { default: { "> span": { color: "grayShade3" @@ -3879,7 +3921,7 @@ const d1 = { }, bg: "labels.yellow" } -}, Cw = { +}, Tw = { default: { "> span": { color: "black" @@ -3936,13 +3978,13 @@ const d1 = { border: "1px solid", borderColor: "labels.yellow" } -}, _w = { - keyValue: Sw, - primary: ww, - bordered: Cw, - dot: gw, - blink: bw -}, kw = { +}, Aw = { + keyValue: Ew, + primary: Pw, + bordered: Tw, + dot: ww, + blink: Cw +}, Ow = { primary: { span: { bg: "grayShade3", @@ -3959,7 +4001,7 @@ const d1 = { bg: "grayShade1" } } -}, Ew = { +}, Rw = { primary: { span: { bg: "grayShade3", @@ -3976,7 +4018,7 @@ const d1 = { bg: "grayShade1" } } -}, Pw = { +}, $w = { bg: "grayShade3", borderColor: "transparent", cursor: "pointer", @@ -3986,26 +4028,26 @@ const d1 = { ":focus": { borderColor: "gray" } -}, Tw = { +}, Dw = { variant: "variants.select.primary", bg: "white" -}, Aw = { +}, Mw = { bg: "grayShade2", borderColor: "transparent", cursor: "default", pointerEvents: "none" -}, Ow = { - disabled: Aw, - primary: Pw, - white: Tw -}, Rw = { +}, Iw = { + disabled: Mw, + primary: $w, + white: Dw +}, Fw = { color: "labels.red" -}, $w = { +}, Nw = { color: "darkGray" -}, Dw = { - error: Rw, - default: $w -}, Mw = { +}, jw = { + error: Fw, + default: Nw +}, Bw = { progress: { bg: "labels.green", "> span": { @@ -4018,7 +4060,7 @@ const d1 = { bg: "#EBEBEB" } } -}, Iw = { +}, zw = { black: { bg: "grayShade2", "> div": { @@ -4043,7 +4085,7 @@ const d1 = { bg: "labels.orange" } } -}, Fw = { +}, Vw = { bg: "primaryShade2", whiteSpace: "pre-wrap", pre: { @@ -4052,7 +4094,7 @@ const d1 = { fontSize: "value", whiteSpace: "pre-wrap" } -}, Nw = { +}, Lw = { color: "labels.green", bg: "primaryShade2", borderLeftWidth: 0, @@ -4068,7 +4110,7 @@ const d1 = { } } } -}, jw = { +}, Ww = { color: "labels.red", bg: "labels.redShade2", borderLeftWidth: 0, @@ -4084,7 +4126,7 @@ const d1 = { } } } -}, Bw = { +}, Uw = { color: "labels.orange", bg: "labels.orangeShade2", borderLeftWidth: 0, @@ -4100,7 +4142,7 @@ const d1 = { } } } -}, zw = { +}, Hw = { color: "black", bg: "grayShade2", borderLeftWidth: 0, @@ -4116,18 +4158,18 @@ const d1 = { } } } -}, Vw = { - valid: Nw, - error: jw, - warning: Bw, - neutral: zw -}, Lw = { +}, Yw = { + valid: Lw, + error: Ww, + warning: Uw, + neutral: Hw +}, Gw = { primary: { path: { fill: "black" } } -}, Ww = { +}, qw = { bg: "transparent", label: { color: "black", @@ -4143,7 +4185,7 @@ const d1 = { "& > div > button:disabled > svg > path": { fill: "grayShade1" } -}, Uw = { +}, Xw = { variant: "pagination.primary", label: { color: "black", @@ -4156,7 +4198,7 @@ const d1 = { borderColor: "gray" } } -}, Hw = { +}, Kw = { variant: "pagination.primary", label: { color: "black", @@ -4167,18 +4209,18 @@ const d1 = { "& > div > button:disabled > svg > path": { fill: "grayShade1" } -}, Yw = { - primary: Ww, - white: Uw, - disabled: Hw -}, qw = { +}, Zw = { + primary: qw, + white: Xw, + disabled: Kw +}, Jw = { secondary: { notification: { bg: "white", borderColor: "grayShade2" } } -}, Gw = { +}, Qw = { primary: "#21B182", primaryShade1: "#65D3AF", primaryShade2: "#E6F2EE", @@ -4202,8 +4244,8 @@ const d1 = { orangeShade2: "#FDF0E4", redShade2: "#F8DEDE" } -}, Xw = { - colors: Gw, +}, eC = { + colors: Qw, fonts: { text: "Inter", title: "Inter", @@ -4253,27 +4295,27 @@ const d1 = { focused: "0 0 0 2px rgba(33, 177, 130, 0.6)" }, variants: { - ...O1, - tooltip: P1, - label: E1, - list: ew, - header: tw, - checkbox: kw, - radio: Ew, - badges: _w, - popup: vw, - bar: Mw, - perf: Iw, - code: Fw, - select: Ow, - callout: Vw, - icon: Lw, - ...vf + ...I1, + tooltip: $1, + label: R1, + list: aw, + header: iw, + checkbox: Ow, + radio: Rw, + badges: Aw, + popup: Sw, + bar: Bw, + perf: zw, + code: Vw, + select: Iw, + callout: Yw, + icon: Gw, + ...gf }, text: { - inputInfo: D1, - selectInfo: Dw, - ...vf + inputInfo: j1, + selectInfo: jw, + ...gf }, zIndices: { default: 10, @@ -4283,18 +4325,18 @@ const d1 = { notifications: 50 }, buttons: { - ...v1, - ...x1, - ...w1, - ..._1, - toggleButton: k1 - }, - navigation: X1, - inputs: N1, - inputIntents: j1, - pagination: Yw, - notification: qw -}, Kw = { + ...S1, + ...k1, + ...P1, + ...A1, + toggleButton: O1 + }, + navigation: ew, + inputs: L1, + inputIntents: W1, + pagination: Zw, + notification: Jw +}, tC = { white: "#181a1b", gray: "#A6A6A6", grayShade1: "#707070", @@ -4318,7 +4360,7 @@ const d1 = { redShade2: "#4E3131", purpleShade2: "#8449BB" } -}, Zw = { +}, rC = { primary: "0 0 1px 2px rgba(160, 160, 160, 0.1)", secondary: "0 0 1px 2px rgba(160, 160, 160, 0.1)", explorer: "0 0 1px 2px rgba(160, 160, 160, 0.1)", @@ -4330,23 +4372,23 @@ const d1 = { popup: "0 0 1px 2px rgba(160, 160, 160, 0.1)", notification: "0 0 1px 2px rgba(160, 160, 160, 0.1)", focused: "0 0 0 2px rgba(33, 177, 130, 0.6)" -}, hV = () => u1(), mV = { - ...Xw, - colors: Kw, - shadows: Zw +}, xV = () => m1(), SV = { + ...eC, + colors: tC, + shadows: rC }; -function Jw(e) { +function nC(e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; } -function Qw(e) { +function oC(e) { var t = document.createElement("style"); return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t; } -var eC = /* @__PURE__ */ function() { +var aC = /* @__PURE__ */ function() { function e(r) { var n = this; this._insertTag = function(o) { @@ -4358,7 +4400,7 @@ var eC = /* @__PURE__ */ function() { return t.hydrate = function(n) { n.forEach(this._insertTag); }, t.insert = function(n) { - this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Qw(this)); + this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(oC(this)); var o = this.tags[this.tags.length - 1]; if (process.env.NODE_ENV !== "production") { var a = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105; @@ -4366,7 +4408,7 @@ var eC = /* @__PURE__ */ function() { ` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !a; } if (this.isSpeedy) { - var i = Jw(o); + var i = nC(o); try { i.insertRule(n, i.cssRules.length); } catch (s) { @@ -4380,14 +4422,14 @@ var eC = /* @__PURE__ */ function() { return n.parentNode && n.parentNode.removeChild(n); }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1); }, e; -}(), Pt = "-ms-", rs = "-moz-", Be = "-webkit-", Pu = "comm", Tu = "rule", Au = "decl", tC = "@import", Lm = "@keyframes", rC = "@layer", nC = Math.abs, Rs = String.fromCharCode, oC = Object.assign; -function aC(e, t) { - return _t(e, 0) ^ 45 ? (((t << 2 ^ _t(e, 0)) << 2 ^ _t(e, 1)) << 2 ^ _t(e, 2)) << 2 ^ _t(e, 3) : 0; +}(), Tt = "-ms-", os = "-moz-", Be = "-webkit-", Pu = "comm", Tu = "rule", Au = "decl", iC = "@import", Um = "@keyframes", sC = "@layer", lC = Math.abs, Ds = String.fromCharCode, cC = Object.assign; +function uC(e, t) { + return kt(e, 0) ^ 45 ? (((t << 2 ^ kt(e, 0)) << 2 ^ kt(e, 1)) << 2 ^ kt(e, 2)) << 2 ^ kt(e, 3) : 0; } -function Wm(e) { +function Hm(e) { return e.trim(); } -function iC(e, t) { +function dC(e, t) { return (e = t.exec(e)) ? e[0] : e; } function ze(e, t, r) { @@ -4396,50 +4438,50 @@ function ze(e, t, r) { function Pc(e, t) { return e.indexOf(t); } -function _t(e, t) { +function kt(e, t) { return e.charCodeAt(t) | 0; } -function ka(e, t, r) { +function Pa(e, t, r) { return e.slice(t, r); } -function Ar(e) { +function Rr(e) { return e.length; } function Ou(e) { return e.length; } -function pi(e, t) { +function mi(e, t) { return t.push(e), e; } -function sC(e, t) { +function fC(e, t) { return e.map(t).join(""); } -var $s = 1, So = 1, Um = 0, Wt = 0, mt = 0, Ro = ""; -function Ds(e, t, r, n, o, a, i) { - return { value: e, root: t, parent: r, type: n, props: o, children: a, line: $s, column: So, length: i, return: "" }; +var Ms = 1, Co = 1, Ym = 0, Ut = 0, vt = 0, Do = ""; +function Is(e, t, r, n, o, a, i) { + return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Ms, column: Co, length: i, return: "" }; } -function Lo(e, t) { - return oC(Ds("", null, null, "", null, null, 0), e, { length: -e.length }, t); +function Uo(e, t) { + return cC(Is("", null, null, "", null, null, 0), e, { length: -e.length }, t); } -function lC() { - return mt; +function pC() { + return vt; } -function cC() { - return mt = Wt > 0 ? _t(Ro, --Wt) : 0, So--, mt === 10 && (So = 1, $s--), mt; +function hC() { + return vt = Ut > 0 ? kt(Do, --Ut) : 0, Co--, vt === 10 && (Co = 1, Ms--), vt; } -function Gt() { - return mt = Wt < Um ? _t(Ro, Wt++) : 0, So++, mt === 10 && (So = 1, $s++), mt; +function Xt() { + return vt = Ut < Ym ? kt(Do, Ut++) : 0, Co++, vt === 10 && (Co = 1, Ms++), vt; } -function Rr() { - return _t(Ro, Wt); +function Dr() { + return kt(Do, Ut); } -function Di() { - return Wt; +function Ii() { + return Ut; } -function Ua(e, t) { - return ka(Ro, e, t); +function Ya(e, t) { + return Pa(Do, e, t); } -function Ea(e) { +function Ta(e) { switch (e) { case 0: case 9: @@ -4471,91 +4513,91 @@ function Ea(e) { } return 0; } -function Hm(e) { - return $s = So = 1, Um = Ar(Ro = e), Wt = 0, []; +function Gm(e) { + return Ms = Co = 1, Ym = Rr(Do = e), Ut = 0, []; } -function Ym(e) { - return Ro = "", e; +function qm(e) { + return Do = "", e; } -function Mi(e) { - return Wm(Ua(Wt - 1, Tc(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); +function Fi(e) { + return Hm(Ya(Ut - 1, Tc(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } -function uC(e) { - for (; (mt = Rr()) && mt < 33; ) - Gt(); - return Ea(e) > 2 || Ea(mt) > 3 ? "" : " "; +function mC(e) { + for (; (vt = Dr()) && vt < 33; ) + Xt(); + return Ta(e) > 2 || Ta(vt) > 3 ? "" : " "; } -function dC(e, t) { - for (; --t && Gt() && !(mt < 48 || mt > 102 || mt > 57 && mt < 65 || mt > 70 && mt < 97); ) +function vC(e, t) { + for (; --t && Xt() && !(vt < 48 || vt > 102 || vt > 57 && vt < 65 || vt > 70 && vt < 97); ) ; - return Ua(e, Di() + (t < 6 && Rr() == 32 && Gt() == 32)); + return Ya(e, Ii() + (t < 6 && Dr() == 32 && Xt() == 32)); } function Tc(e) { - for (; Gt(); ) - switch (mt) { + for (; Xt(); ) + switch (vt) { case e: - return Wt; + return Ut; case 34: case 39: - e !== 34 && e !== 39 && Tc(mt); + e !== 34 && e !== 39 && Tc(vt); break; case 40: e === 41 && Tc(e); break; case 92: - Gt(); + Xt(); break; } - return Wt; + return Ut; } -function fC(e, t) { - for (; Gt() && e + mt !== 47 + 10; ) - if (e + mt === 42 + 42 && Rr() === 47) +function gC(e, t) { + for (; Xt() && e + vt !== 47 + 10; ) + if (e + vt === 42 + 42 && Dr() === 47) break; - return "/*" + Ua(t, Wt - 1) + "*" + Rs(e === 47 ? e : Gt()); + return "/*" + Ya(t, Ut - 1) + "*" + Ds(e === 47 ? e : Xt()); } -function pC(e) { - for (; !Ea(Rr()); ) - Gt(); - return Ua(e, Wt); +function bC(e) { + for (; !Ta(Dr()); ) + Xt(); + return Ya(e, Ut); } -function hC(e) { - return Ym(Ii("", null, null, null, [""], e = Hm(e), 0, [0], e)); +function yC(e) { + return qm(Ni("", null, null, null, [""], e = Gm(e), 0, [0], e)); } -function Ii(e, t, r, n, o, a, i, s, l) { +function Ni(e, t, r, n, o, a, i, s, l) { for (var c = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, S = "", k = o, w = a, M = n, P = S; v; ) - switch (m = y, y = Gt()) { + switch (m = y, y = Xt()) { case 40: - if (m != 108 && _t(P, d - 1) == 58) { - Pc(P += ze(Mi(y), "&", "&\f"), "&\f") != -1 && (b = -1); + if (m != 108 && kt(P, d - 1) == 58) { + Pc(P += ze(Fi(y), "&", "&\f"), "&\f") != -1 && (b = -1); break; } case 34: case 39: case 91: - P += Mi(y); + P += Fi(y); break; case 9: case 10: case 13: case 32: - P += uC(m); + P += mC(m); break; case 92: - P += dC(Di() - 1, 7); + P += vC(Ii() - 1, 7); continue; case 47: - switch (Rr()) { + switch (Dr()) { case 42: case 47: - pi(mC(fC(Gt(), Di()), t, r), l); + mi(xC(gC(Xt(), Ii()), t, r), l); break; default: P += "/"; } break; case 123 * h: - s[c++] = Ar(P) * b; + s[c++] = Rr(P) * b; case 125 * h: case 59: case 0: @@ -4564,88 +4606,88 @@ function Ii(e, t, r, n, o, a, i, s, l) { case 125: v = 0; case 59 + u: - b == -1 && (P = ze(P, /\f/g, "")), p > 0 && Ar(P) - d && pi(p > 32 ? bf(P + ";", n, r, d - 1) : bf(ze(P, " ", "") + ";", n, r, d - 2), l); + b == -1 && (P = ze(P, /\f/g, "")), p > 0 && Rr(P) - d && mi(p > 32 ? yf(P + ";", n, r, d - 1) : yf(ze(P, " ", "") + ";", n, r, d - 2), l); break; case 59: P += ";"; default: - if (pi(M = gf(P, t, r, c, u, o, s, S, k = [], w = [], d), a), y === 123) + if (mi(M = bf(P, t, r, c, u, o, s, S, k = [], w = [], d), a), y === 123) if (u === 0) - Ii(P, t, M, M, k, a, d, s, w); + Ni(P, t, M, M, k, a, d, s, w); else - switch (f === 99 && _t(P, 3) === 110 ? 100 : f) { + switch (f === 99 && kt(P, 3) === 110 ? 100 : f) { case 100: case 108: case 109: case 115: - Ii(e, M, M, n && pi(gf(e, M, M, 0, 0, o, s, S, o, k = [], d), w), o, w, d, s, n ? k : w); + Ni(e, M, M, n && mi(bf(e, M, M, 0, 0, o, s, S, o, k = [], d), w), o, w, d, s, n ? k : w); break; default: - Ii(P, M, M, M, [""], w, 0, s, w); + Ni(P, M, M, M, [""], w, 0, s, w); } } c = u = p = 0, h = b = 1, S = P = "", d = i; break; case 58: - d = 1 + Ar(P), p = m; + d = 1 + Rr(P), p = m; default: if (h < 1) { if (y == 123) --h; - else if (y == 125 && h++ == 0 && cC() == 125) + else if (y == 125 && h++ == 0 && hC() == 125) continue; } - switch (P += Rs(y), y * h) { + switch (P += Ds(y), y * h) { case 38: b = u > 0 ? 1 : (P += "\f", -1); break; case 44: - s[c++] = (Ar(P) - 1) * b, b = 1; + s[c++] = (Rr(P) - 1) * b, b = 1; break; case 64: - Rr() === 45 && (P += Mi(Gt())), f = Rr(), u = d = Ar(S = P += pC(Di())), y++; + Dr() === 45 && (P += Fi(Xt())), f = Dr(), u = d = Rr(S = P += bC(Ii())), y++; break; case 45: - m === 45 && Ar(P) == 2 && (h = 0); + m === 45 && Rr(P) == 2 && (h = 0); } } return a; } -function gf(e, t, r, n, o, a, i, s, l, c, u) { +function bf(e, t, r, n, o, a, i, s, l, c, u) { for (var d = o - 1, f = o === 0 ? a : [""], p = Ou(f), m = 0, h = 0, v = 0; m < n; ++m) - for (var b = 0, y = ka(e, d + 1, d = nC(h = i[m])), S = e; b < p; ++b) - (S = Wm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S); - return Ds(e, t, r, o === 0 ? Tu : s, l, c, u); + for (var b = 0, y = Pa(e, d + 1, d = lC(h = i[m])), S = e; b < p; ++b) + (S = Hm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S); + return Is(e, t, r, o === 0 ? Tu : s, l, c, u); } -function mC(e, t, r) { - return Ds(e, t, r, Pu, Rs(lC()), ka(e, 2, -2), 0); +function xC(e, t, r) { + return Is(e, t, r, Pu, Ds(pC()), Pa(e, 2, -2), 0); } -function bf(e, t, r, n) { - return Ds(e, t, r, Au, ka(e, 0, n), ka(e, n + 1, -1), n); +function yf(e, t, r, n) { + return Is(e, t, r, Au, Pa(e, 0, n), Pa(e, n + 1, -1), n); } -function lo(e, t) { +function uo(e, t) { for (var r = "", n = Ou(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || ""; return r; } -function vC(e, t, r, n) { +function SC(e, t, r, n) { switch (e.type) { - case rC: + case sC: if (e.children.length) break; - case tC: + case iC: case Au: return e.return = e.return || e.value; case Pu: return ""; - case Lm: - return e.return = e.value + "{" + lo(e.children, n) + "}"; + case Um: + return e.return = e.value + "{" + uo(e.children, n) + "}"; case Tu: e.value = e.props.join(","); } - return Ar(r = lo(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; + return Rr(r = uo(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; } -function gC(e) { +function wC(e) { var t = Ou(e); return function(r, n, o, a) { for (var i = "", s = 0; s < t; s++) @@ -4653,12 +4695,12 @@ function gC(e) { return i; }; } -function bC(e) { +function CC(e) { return function(t) { t.root || (t = t.return) && e(t); }; } -var yf = function(t) { +var xf = function(t) { var r = /* @__PURE__ */ new WeakMap(); return function(n) { if (r.has(n)) @@ -4667,62 +4709,62 @@ var yf = function(t) { return r.set(n, o), o; }; }; -function qm(e) { +function Xm(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var yC = function(t, r, n) { - for (var o = 0, a = 0; o = a, a = Rr(), o === 38 && a === 12 && (r[n] = 1), !Ea(a); ) - Gt(); - return Ua(t, Wt); -}, xC = function(t, r) { +var _C = function(t, r, n) { + for (var o = 0, a = 0; o = a, a = Dr(), o === 38 && a === 12 && (r[n] = 1), !Ta(a); ) + Xt(); + return Ya(t, Ut); +}, kC = function(t, r) { var n = -1, o = 44; do - switch (Ea(o)) { + switch (Ta(o)) { case 0: - o === 38 && Rr() === 12 && (r[n] = 1), t[n] += yC(Wt - 1, r, n); + o === 38 && Dr() === 12 && (r[n] = 1), t[n] += _C(Ut - 1, r, n); break; case 2: - t[n] += Mi(o); + t[n] += Fi(o); break; case 4: if (o === 44) { - t[++n] = Rr() === 58 ? "&\f" : "", r[n] = t[n].length; + t[++n] = Dr() === 58 ? "&\f" : "", r[n] = t[n].length; break; } default: - t[n] += Rs(o); + t[n] += Ds(o); } - while (o = Gt()); + while (o = Xt()); return t; -}, SC = function(t, r) { - return Ym(xC(Hm(t), r)); -}, xf = /* @__PURE__ */ new WeakMap(), wC = function(t) { +}, EC = function(t, r) { + return qm(kC(Gm(t), r)); +}, Sf = /* @__PURE__ */ new WeakMap(), PC = function(t) { if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo // negative .length indicates that this rule has been already prefixed t.length < 1)) { for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; ) if (n = n.parent, !n) return; - if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !xf.get(n)) && !o) { - xf.set(t, !0); - for (var a = [], i = SC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++) + if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Sf.get(n)) && !o) { + Sf.set(t, !0); + for (var a = [], i = EC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++) for (var u = 0; u < s.length; u++, c++) t.props[c] = a[l] ? i[l].replace(/&\f/g, s[u]) : s[u] + " " + i[l]; } } -}, CC = function(t) { +}, TC = function(t) { if (t.type === "decl") { var r = t.value; // charcode for l r.charCodeAt(0) === 108 && // charcode for b r.charCodeAt(2) === 98 && (t.return = "", t.value = ""); } -}, _C = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", kC = function(t) { - return t.type === "comm" && t.children.indexOf(_C) > -1; -}, EC = function(t) { +}, AC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", OC = function(t) { + return t.type === "comm" && t.children.indexOf(AC) > -1; +}, RC = function(t) { return function(r, n, o) { if (!(r.type !== "rule" || t.compat)) { var a = r.value.match(/(:first|:nth|:nth-last)-child/g); @@ -4735,7 +4777,7 @@ var yC = function(t, r, n) { if (c.line < r.line) break; if (c.column < r.column) { - if (kC(c)) + if (OC(c)) return; break; } @@ -4746,20 +4788,20 @@ var yC = function(t, r, n) { } } }; -}, Gm = function(t) { +}, Km = function(t) { return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64; -}, PC = function(t, r) { +}, $C = function(t, r) { for (var n = t - 1; n >= 0; n--) - if (!Gm(r[n])) + if (!Km(r[n])) return !0; return !1; -}, Sf = function(t) { +}, wf = function(t) { t.type = "", t.value = "", t.return = "", t.children = "", t.props = ""; -}, TC = function(t, r, n) { - Gm(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Sf(t)) : PC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Sf(t))); +}, DC = function(t, r, n) { + Km(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), wf(t)) : $C(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), wf(t))); }; -function Xm(e, t) { - switch (aC(e, t)) { +function Zm(e, t) { + switch (uC(e, t)) { case 5103: return Be + "print-" + e + e; case 5737: @@ -4793,24 +4835,24 @@ function Xm(e, t) { case 4810: case 6968: case 2756: - return Be + e + rs + e + Pt + e + e; + return Be + e + os + e + Tt + e + e; case 6828: case 4268: - return Be + e + Pt + e + e; + return Be + e + Tt + e + e; case 6165: - return Be + e + Pt + "flex-" + e + e; + return Be + e + Tt + "flex-" + e + e; case 5187: - return Be + e + ze(e, /(\w+).+(:[^]+)/, Be + "box-$1$2" + Pt + "flex-$1$2") + e; + return Be + e + ze(e, /(\w+).+(:[^]+)/, Be + "box-$1$2" + Tt + "flex-$1$2") + e; case 5443: - return Be + e + Pt + "flex-item-" + ze(e, /flex-|-self/, "") + e; + return Be + e + Tt + "flex-item-" + ze(e, /flex-|-self/, "") + e; case 4675: - return Be + e + Pt + "flex-line-pack" + ze(e, /align-content|flex-|-self/, "") + e; + return Be + e + Tt + "flex-line-pack" + ze(e, /align-content|flex-|-self/, "") + e; case 5548: - return Be + e + Pt + ze(e, "shrink", "negative") + e; + return Be + e + Tt + ze(e, "shrink", "negative") + e; case 5292: - return Be + e + Pt + ze(e, "basis", "preferred-size") + e; + return Be + e + Tt + ze(e, "basis", "preferred-size") + e; case 6060: - return Be + "box-" + ze(e, "-grow", "") + Be + e + Pt + ze(e, "grow", "positive") + e; + return Be + "box-" + ze(e, "-grow", "") + Be + e + Tt + ze(e, "grow", "positive") + e; case 4554: return Be + ze(e, /([^-])(transform)/g, "$1" + Be + "$2") + e; case 6187: @@ -4819,7 +4861,7 @@ function Xm(e, t) { case 3959: return ze(e, /(image-set\([^]*)/, Be + "$1$`$1"); case 4968: - return ze(ze(e, /(.+:)(flex-)?(.*)/, Be + "box-pack:$3" + Pt + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Be + e + e; + return ze(ze(e, /(.+:)(flex-)?(.*)/, Be + "box-pack:$3" + Tt + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Be + e + e; case 4095: case 3583: case 4068: @@ -4837,73 +4879,73 @@ function Xm(e, t) { case 5789: case 5021: case 4765: - if (Ar(e) - 1 - t > 6) - switch (_t(e, t + 1)) { + if (Rr(e) - 1 - t > 6) + switch (kt(e, t + 1)) { case 109: - if (_t(e, t + 4) !== 45) + if (kt(e, t + 4) !== 45) break; case 102: - return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + rs + (_t(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; + return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + os + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: - return ~Pc(e, "stretch") ? Xm(ze(e, "stretch", "fill-available"), t) + e : e; + return ~Pc(e, "stretch") ? Zm(ze(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: - if (_t(e, t + 1) !== 115) + if (kt(e, t + 1) !== 115) break; case 6444: - switch (_t(e, Ar(e) - 3 - (~Pc(e, "!important") && 10))) { + switch (kt(e, Rr(e) - 3 - (~Pc(e, "!important") && 10))) { case 107: return ze(e, ":", ":" + Be) + e; case 101: - return ze(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Be + (_t(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Be + "$2$3$1" + Pt + "$2box$3") + e; + return ze(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Be + (kt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Be + "$2$3$1" + Tt + "$2box$3") + e; } break; case 5936: - switch (_t(e, t + 11)) { + switch (kt(e, t + 11)) { case 114: - return Be + e + Pt + ze(e, /[svh]\w+-[tblr]{2}/, "tb") + e; + return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: - return Be + e + Pt + ze(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; + return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: - return Be + e + Pt + ze(e, /[svh]\w+-[tblr]{2}/, "lr") + e; + return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } - return Be + e + Pt + e + e; + return Be + e + Tt + e + e; } return e; } -var AC = function(t, r, n, o) { +var MC = function(t, r, n, o) { if (t.length > -1 && !t.return) switch (t.type) { case Au: - t.return = Xm(t.value, t.length); + t.return = Zm(t.value, t.length); break; - case Lm: - return lo([Lo(t, { + case Um: + return uo([Uo(t, { value: ze(t.value, "@", "@" + Be) })], o); case Tu: if (t.length) - return sC(t.props, function(a) { - switch (iC(a, /(::plac\w+|:read-\w+)/)) { + return fC(t.props, function(a) { + switch (dC(a, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - return lo([Lo(t, { - props: [ze(a, /:(read-\w+)/, ":" + rs + "$1")] + return uo([Uo(t, { + props: [ze(a, /:(read-\w+)/, ":" + os + "$1")] })], o); case "::placeholder": - return lo([Lo(t, { + return uo([Uo(t, { props: [ze(a, /:(plac\w+)/, ":" + Be + "input-$1")] - }), Lo(t, { - props: [ze(a, /:(plac\w+)/, ":" + rs + "$1")] - }), Lo(t, { - props: [ze(a, /:(plac\w+)/, Pt + "input-$1")] + }), Uo(t, { + props: [ze(a, /:(plac\w+)/, ":" + os + "$1")] + }), Uo(t, { + props: [ze(a, /:(plac\w+)/, Tt + "input-$1")] })], o); } return ""; }); } -}, OC = [AC], RC = function(t) { +}, IC = [MC], FC = function(t) { var r = t.key; if (process.env.NODE_ENV !== "production" && !r) throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. @@ -4915,7 +4957,7 @@ If multiple caches share the same key they might "fight" for each other's style v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", "")); }); } - var o = t.stylisPlugins || OC; + var o = t.stylisPlugins || IC; if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r)) throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed'); var a = {}, i, s = []; @@ -4929,19 +4971,19 @@ If multiple caches share the same key they might "fight" for each other's style s.push(h); } ); - var l, c = [wC, CC]; - process.env.NODE_ENV !== "production" && c.push(EC({ + var l, c = [PC, TC]; + process.env.NODE_ENV !== "production" && c.push(RC({ get compat() { return m.compat; } - }), TC); + }), DC); { - var u, d = [vC, process.env.NODE_ENV !== "production" ? function(h) { + var u, d = [SC, process.env.NODE_ENV !== "production" ? function(h) { h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Pu && u.insert(h.value + "{}")); - } : bC(function(h) { + } : CC(function(h) { u.insert(h); - })], f = gC(c.concat(o, d)), p = function(v) { - return lo(hC(v), f); + })], f = wC(c.concat(o, d)), p = function(v) { + return uo(yC(v), f); }; l = function(v, b, y, S) { u = y, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = { @@ -4953,7 +4995,7 @@ If multiple caches share the same key they might "fight" for each other's style } var m = { key: r, - sheet: new eC({ + sheet: new aC({ key: r, container: i, nonce: t.nonce, @@ -4967,14 +5009,14 @@ If multiple caches share the same key they might "fight" for each other's style insert: l }; return m.sheet.hydrate(s), m; -}, $C = !0; +}, NC = !0; function Ru(e, t, r) { var n = ""; return r.split(" ").forEach(function(o) { e[o] !== void 0 ? t.push(e[o] + ";") : n += o + " "; }), n; } -var Ms = function(t, r, n) { +var Fs = function(t, r, n) { var o = t.key + "-" + r.name; // we only need to add the styles to the registered cache if the // class name could be used further down @@ -4985,9 +5027,9 @@ var Ms = function(t, r, n) { // in node since emotion-server relies on whether a style is in // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser - $C === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles); -}, Is = function(t, r, n) { - Ms(t, r, n); + NC === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles); +}, Ns = function(t, r, n) { + Fs(t, r, n); var o = t.key + "-" + r.name; if (t.inserted[r.name] === void 0) { var a = r; @@ -4996,7 +5038,7 @@ var Ms = function(t, r, n) { while (a !== void 0); } }; -function DC(e) { +function jC(e) { for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ @@ -5015,7 +5057,7 @@ function DC(e) { return t ^= t >>> 13, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); } -var MC = { +var BC = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -5063,48 +5105,48 @@ var MC = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, wf = `You have illegal escape sequence in your template literal, most likely inside content's property value. +}, Cf = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, IC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", FC = /[A-Z]|^ms/g, Km = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $u = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, zC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", VC = /[A-Z]|^ms/g, Jm = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $u = function(t) { return t.charCodeAt(1) === 45; -}, Cf = function(t) { +}, _f = function(t) { return t != null && typeof t != "boolean"; -}, wl = /* @__PURE__ */ qm(function(e) { - return $u(e) ? e : e.replace(FC, "-$&").toLowerCase(); -}), ns = function(t, r) { +}, Cl = /* @__PURE__ */ Xm(function(e) { + return $u(e) ? e : e.replace(VC, "-$&").toLowerCase(); +}), as = function(t, r) { switch (t) { case "animation": case "animationName": if (typeof r == "string") - return r.replace(Km, function(n, o, a) { - return mr = { + return r.replace(Jm, function(n, o, a) { + return vr = { name: o, styles: a, - next: mr + next: vr }, o; }); } - return MC[t] !== 1 && !$u(t) && typeof r == "number" && r !== 0 ? r + "px" : r; + return BC[t] !== 1 && !$u(t) && typeof r == "number" && r !== 0 ? r + "px" : r; }; if (process.env.NODE_ENV !== "production") { - var NC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, jC = ["normal", "none", "initial", "inherit", "unset"], BC = ns, zC = /^-ms-/, VC = /-(.)/g, _f = {}; - ns = function(t, r) { - if (t === "content" && (typeof r != "string" || jC.indexOf(r) === -1 && !NC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'"))) + var LC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, WC = ["normal", "none", "initial", "inherit", "unset"], UC = as, HC = /^-ms-/, YC = /-(.)/g, kf = {}; + as = function(t, r) { + if (t === "content" && (typeof r != "string" || WC.indexOf(r) === -1 && !LC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'"))) throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); - var n = BC(t, r); - return n !== "" && !$u(t) && t.indexOf("-") !== -1 && _f[t] === void 0 && (_f[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(zC, "ms-").replace(VC, function(o, a) { + var n = UC(t, r); + return n !== "" && !$u(t) && t.indexOf("-") !== -1 && kf[t] === void 0 && (kf[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(HC, "ms-").replace(YC, function(o, a) { return a.toUpperCase(); }) + "?")), n; }; } -var Zm = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; -function Pa(e, t, r) { +var Qm = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; +function Aa(e, t, r) { if (r == null) return ""; if (r.__emotion_styles !== void 0) { if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR") - throw new Error(Zm); + throw new Error(Qm); return r; } switch (typeof r) { @@ -5112,36 +5154,36 @@ function Pa(e, t, r) { return ""; case "object": { if (r.anim === 1) - return mr = { + return vr = { name: r.name, styles: r.styles, - next: mr + next: vr }, r.name; if (r.styles !== void 0) { var n = r.next; if (n !== void 0) for (; n !== void 0; ) - mr = { + vr = { name: n.name, styles: n.styles, - next: mr + next: vr }, n = n.next; var o = r.styles + ";"; return process.env.NODE_ENV !== "production" && r.map !== void 0 && (o += r.map), o; } - return LC(e, t, r); + return GC(e, t, r); } case "function": { if (e !== void 0) { - var a = mr, i = r(e); - return mr = a, Pa(e, t, i); + var a = vr, i = r(e); + return vr = a, Aa(e, t, i); } else process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); break; } case "string": if (process.env.NODE_ENV !== "production") { - var s = [], l = r.replace(Km, function(u, d, f) { + var s = [], l = r.replace(Jm, function(u, d, f) { var p = "animation" + s.length; return s.push("const " + p + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}"; }); @@ -5159,93 +5201,93 @@ You should wrap it with \`css\` like this: var c = t[r]; return c !== void 0 ? c : r; } -function LC(e, t, r) { +function GC(e, t, r) { var n = ""; if (Array.isArray(r)) for (var o = 0; o < r.length; o++) - n += Pa(e, t, r[o]) + ";"; + n += Aa(e, t, r[o]) + ";"; else for (var a in r) { var i = r[a]; if (typeof i != "object") - t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Cf(i) && (n += wl(a) + ":" + ns(a, i) + ";"); + t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : _f(i) && (n += Cl(a) + ":" + as(a, i) + ";"); else { if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") - throw new Error(Zm); + throw new Error(Qm); if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0)) for (var s = 0; s < i.length; s++) - Cf(i[s]) && (n += wl(a) + ":" + ns(a, i[s]) + ";"); + _f(i[s]) && (n += Cl(a) + ":" + as(a, i[s]) + ";"); else { - var l = Pa(e, t, i); + var l = Aa(e, t, i); switch (a) { case "animation": case "animationName": { - n += wl(a) + ":" + l + ";"; + n += Cl(a) + ":" + l + ";"; break; } default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(IC), n += a + "{" + l + "}"; + process.env.NODE_ENV !== "production" && a === "undefined" && console.error(zC), n += a + "{" + l + "}"; } } } } return n; } -var kf = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Jm; -process.env.NODE_ENV !== "production" && (Jm = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g); -var mr, wo = function(t, r, n) { +var Ef = /label:\s*([^\s;\n{]+)\s*(;|$)/g, ev; +process.env.NODE_ENV !== "production" && (ev = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g); +var vr, _o = function(t, r, n) { if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0) return t[0]; var o = !0, a = ""; - mr = void 0; + vr = void 0; var i = t[0]; - i == null || i.raw === void 0 ? (o = !1, a += Pa(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(wf), a += i[0]); + i == null || i.raw === void 0 ? (o = !1, a += Aa(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Cf), a += i[0]); for (var s = 1; s < t.length; s++) - a += Pa(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(wf), a += i[s]); + a += Aa(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Cf), a += i[s]); var l; - process.env.NODE_ENV !== "production" && (a = a.replace(Jm, function(f) { + process.env.NODE_ENV !== "production" && (a = a.replace(ev, function(f) { return l = f, ""; - })), kf.lastIndex = 0; - for (var c = "", u; (u = kf.exec(a)) !== null; ) + })), Ef.lastIndex = 0; + for (var c = "", u; (u = Ef.exec(a)) !== null; ) c += "-" + // $FlowFixMe we know it's not null u[1]; - var d = DC(a) + c; + var d = jC(a) + c; return process.env.NODE_ENV !== "production" ? { name: d, styles: a, map: l, - next: mr, + next: vr, toString: function() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } } : { name: d, styles: a, - next: mr + next: vr }; -}, WC = function(t) { +}, qC = function(t) { return t(); -}, Qm = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, Du = Qm || WC, Ef = Qm || U.useLayoutEffect, Mu = {}.hasOwnProperty, Iu = /* @__PURE__ */ U.createContext( +}, tv = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, Du = tv || qC, Pf = tv || U.useLayoutEffect, Mu = {}.hasOwnProperty, Iu = /* @__PURE__ */ U.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes // and we could have a special build just for that // but this is much easier and the native packages // might use a different theme context in the future anyway - typeof HTMLElement < "u" ? /* @__PURE__ */ RC({ + typeof HTMLElement < "u" ? /* @__PURE__ */ FC({ key: "css" }) : null ); process.env.NODE_ENV !== "production" && (Iu.displayName = "EmotionCacheContext"); Iu.Provider; -var Fs = function(t) { - return /* @__PURE__ */ Tt(function(r, n) { - var o = dt(Iu); +var js = function(t) { + return /* @__PURE__ */ At(function(r, n) { + var o = ft(Iu); return t(r, o, n); }); -}, vn = /* @__PURE__ */ U.createContext({}); -process.env.NODE_ENV !== "production" && (vn.displayName = "EmotionThemeContext"); -var UC = function(t, r) { +}, bn = /* @__PURE__ */ U.createContext({}); +process.env.NODE_ENV !== "production" && (bn.displayName = "EmotionThemeContext"); +var XC = function(t, r) { if (typeof r == "function") { var n = r(t); if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n))) @@ -5254,38 +5296,38 @@ var UC = function(t, r) { } if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r))) throw new Error("[ThemeProvider] Please make your theme prop a plain object"); - return Bn({}, t, r); -}, HC = /* @__PURE__ */ yf(function(e) { - return yf(function(t) { - return UC(e, t); + return Ln({}, t, r); +}, KC = /* @__PURE__ */ xf(function(e) { + return xf(function(t) { + return XC(e, t); }); -}), vV = function(t) { - var r = U.useContext(vn); - return t.theme !== r && (r = HC(r)(t.theme)), /* @__PURE__ */ U.createElement(vn.Provider, { +}), wV = function(t) { + var r = U.useContext(bn); + return t.theme !== r && (r = KC(r)(t.theme)), /* @__PURE__ */ U.createElement(bn.Provider, { value: r }, t.children); -}, Pf = function(t) { +}, Tf = function(t) { var r = t.split("."); return r[r.length - 1]; -}, YC = function(t) { +}, ZC = function(t) { var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t); if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(t), r)) - return Pf(r[1]); -}, qC = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), GC = function(t) { + return Tf(r[1]); +}, JC = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), QC = function(t) { return t.replace(/\$/g, "-"); -}, XC = function(t) { +}, e_ = function(t) { if (t) for (var r = t.split(` `), n = 0; n < r.length; n++) { - var o = YC(r[n]); + var o = ZC(r[n]); if (o) { - if (qC.has(o)) + if (JC.has(o)) break; if (/^[A-Z]/.test(o)) - return GC(o); + return QC(o); } } -}, Ac = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Oc = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", KC = function(t, r) { +}, Ac = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Oc = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", t_ = function(t, r) { if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration r.css.indexOf(":") !== -1) throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`"); @@ -5293,37 +5335,37 @@ var UC = function(t, r) { for (var o in r) Mu.call(r, o) && (n[o] = r[o]); if (n[Ac] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) { - var a = XC(new Error().stack); + var a = e_(new Error().stack); a && (n[Oc] = a); } return n; -}, ZC = function(t) { +}, r_ = function(t) { var r = t.cache, n = t.serialized, o = t.isStringTag; - return Ms(r, n, o), Du(function() { - return Is(r, n, o); + return Fs(r, n, o), Du(function() { + return Ns(r, n, o); }), null; -}, ev = /* @__PURE__ */ Fs(function(e, t, r) { +}, rv = /* @__PURE__ */ js(function(e, t, r) { var n = e.css; typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]); var o = e[Ac], a = [n], i = ""; typeof e.className == "string" ? i = Ru(t.registered, a, e.className) : e.className != null && (i = e.className + " "); - var s = wo(a, void 0, U.useContext(vn)); + var s = _o(a, void 0, U.useContext(bn)); if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) { var l = e[Oc]; - l && (s = wo([s, "label:" + l + ";"])); + l && (s = _o([s, "label:" + l + ";"])); } i += t.key + "-" + s.name; var c = {}; for (var u in e) Mu.call(e, u) && u !== "css" && u !== Ac && (process.env.NODE_ENV === "production" || u !== Oc) && (c[u] = e[u]); - return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(ZC, { + return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(r_, { cache: t, serialized: s, isStringTag: typeof o == "string" }), /* @__PURE__ */ U.createElement(o, c)); }); -process.env.NODE_ENV !== "production" && (ev.displayName = "EmotionCssPropInternal"); -var JC = ev, QC = { +process.env.NODE_ENV !== "production" && (rv.displayName = "EmotionCssPropInternal"); +var n_ = rv, o_ = { name: "@emotion/react", version: "11.11.1", main: "dist/emotion-react.cjs.js", @@ -5453,23 +5495,23 @@ var JC = ev, QC = { } } } -}, gV = function(t, r) { +}, CV = function(t, r) { var n = arguments; if (r == null || !Mu.call(r, "css")) return U.createElement.apply(void 0, n); var o = n.length, a = new Array(o); - a[0] = JC, a[1] = KC(t, r); + a[0] = n_, a[1] = t_(t, r); for (var i = 2; i < o; i++) a[i] = n[i]; return U.createElement.apply(null, a); -}, Tf = !1, e_ = /* @__PURE__ */ Fs(function(e, t) { - process.env.NODE_ENV !== "production" && !Tf && // check for className as well since the user is +}, Af = !1, a_ = /* @__PURE__ */ js(function(e, t) { + process.env.NODE_ENV !== "production" && !Af && // check for className as well since the user is // probably using the custom createElement which // means it will be turned into a className prop // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Tf = !0); - var r = e.styles, n = wo([r], void 0, U.useContext(vn)), o = U.useRef(); - return Ef(function() { + (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Af = !0); + var r = e.styles, n = _o([r], void 0, U.useContext(bn)), o = U.useRef(); + return Pf(function() { var a = t.key + "-global", i = new t.sheet.constructor({ key: a, nonce: t.sheet.nonce, @@ -5479,27 +5521,27 @@ var JC = ev, QC = { return t.sheet.tags.length && (i.before = t.sheet.tags[0]), l !== null && (s = !0, l.setAttribute("data-emotion", a), i.hydrate([l])), o.current = [i, s], function() { i.flush(); }; - }, [t]), Ef(function() { + }, [t]), Pf(function() { var a = o.current, i = a[0], s = a[1]; if (s) { a[1] = !1; return; } - if (n.next !== void 0 && Is(t, n.next, !0), i.tags.length) { + if (n.next !== void 0 && Ns(t, n.next, !0), i.tags.length) { var l = i.tags[i.tags.length - 1].nextElementSibling; i.before = l, i.flush(); } t.insert("", n, i, !1); }, [t, n.name]), null; }); -process.env.NODE_ENV !== "production" && (e_.displayName = "EmotionGlobal"); -function t_() { +process.env.NODE_ENV !== "production" && (a_.displayName = "EmotionGlobal"); +function i_() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; - return wo(t); + return _o(t); } -var r_ = function() { - var t = t_.apply(void 0, arguments), r = "animation-" + t.name; +var s_ = function() { + var t = i_.apply(void 0, arguments), r = "animation-" + t.name; return { name: r, styles: "@keyframes " + r + "{" + t.styles + "}", @@ -5508,7 +5550,7 @@ var r_ = function() { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; -}, n_ = function e(t) { +}, l_ = function e(t) { for (var r = t.length, n = 0, o = ""; n < r; n++) { var a = t[n]; if (a != null) { @@ -5534,55 +5576,55 @@ var r_ = function() { } return o; }; -function o_(e, t, r) { +function c_(e, t, r) { var n = [], o = Ru(e, n, r); return n.length < 2 ? r : o + t(n); } -var a_ = function(t) { +var u_ = function(t) { var r = t.cache, n = t.serializedArr; return Du(function() { for (var o = 0; o < n.length; o++) - Is(r, n[o], !1); + Ns(r, n[o], !1); }), null; -}, i_ = /* @__PURE__ */ Fs(function(e, t) { +}, d_ = /* @__PURE__ */ js(function(e, t) { var r = !1, n = [], o = function() { if (r && process.env.NODE_ENV !== "production") throw new Error("css can only be used during render"); for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++) u[d] = arguments[d]; - var f = wo(u, t.registered); - return n.push(f), Ms(t, f, !1), t.key + "-" + f.name; + var f = _o(u, t.registered); + return n.push(f), Fs(t, f, !1), t.key + "-" + f.name; }, a = function() { if (r && process.env.NODE_ENV !== "production") throw new Error("cx can only be used during render"); for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++) u[d] = arguments[d]; - return o_(t.registered, o, n_(u)); + return c_(t.registered, o, l_(u)); }, i = { css: o, cx: a, - theme: U.useContext(vn) + theme: U.useContext(bn) }, s = e.children(i); - return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(a_, { + return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(u_, { cache: t, serializedArr: n }), s); }); -process.env.NODE_ENV !== "production" && (i_.displayName = "EmotionClassNames"); +process.env.NODE_ENV !== "production" && (d_.displayName = "EmotionClassNames"); if (process.env.NODE_ENV !== "production") { - var Af = !0, s_ = typeof jest < "u" || typeof vi < "u"; - if (Af && !s_) { - var Of = ( + var Of = !0, f_ = typeof jest < "u" || typeof vi < "u"; + if (Of && !f_) { + var Rf = ( // $FlowIgnore - typeof globalThis < "u" ? globalThis : Af ? window : global - ), Rf = "__EMOTION_REACT_" + QC.version.split(".")[0] + "__"; - Of[Rf] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), Of[Rf] = !0; + typeof globalThis < "u" ? globalThis : Of ? window : global + ), $f = "__EMOTION_REACT_" + o_.version.split(".")[0] + "__"; + Rf[$f] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), Rf[$f] = !0; } } -function l_(e, t) { +function p_(e, t) { return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`; } -function It(e = {}) { +function Ft(e = {}) { const { name: t, strict: r = !0, @@ -5590,14 +5632,14 @@ function It(e = {}) { providerName: o = "Provider", errorMessage: a, defaultValue: i - } = e, s = Sr(i); + } = e, s = Cr(i); s.displayName = t; function l() { var c; - const u = dt(s); + const u = ft(s); if (!u && r) { const d = new Error( - a ?? l_(n, o) + a ?? p_(n, o) ); throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d; } @@ -5605,19 +5647,19 @@ function It(e = {}) { } return [s.Provider, l, s]; } -var [c_, u_] = It({ +var [h_, m_] = Ft({ strict: !1, name: "PortalManagerContext" }); -function d_(e) { +function v_(e) { const { children: t, zIndex: r } = e; - return /* @__PURE__ */ L.jsx(c_, { value: { zIndex: r }, children: t }); + return /* @__PURE__ */ L.jsx(h_, { value: { zIndex: r }, children: t }); } -d_.displayName = "PortalManager"; -var Ta = globalThis != null && globalThis.document ? Es : Fe, [tv, f_] = It({ +v_.displayName = "PortalManager"; +var Oa = globalThis != null && globalThis.document ? Ts : Fe, [nv, g_] = Ft({ strict: !1, name: "PortalContext" -}), Fu = "chakra-portal", p_ = ".chakra-portal", h_ = (e) => /* @__PURE__ */ L.jsx( +}), Fu = "chakra-portal", b_ = ".chakra-portal", y_ = (e) => /* @__PURE__ */ L.jsx( "div", { className: "chakra-portal-zIndex", @@ -5630,11 +5672,11 @@ var Ta = globalThis != null && globalThis.document ? Es : Fe, [tv, f_] = It({ }, children: e.children } -), m_ = (e) => { +), x_ = (e) => { const { appendToParentPortal: t, children: r } = e, [n, o] = Ye(null), a = be(null), [, i] = Ye({}); Fe(() => i({}), []); - const s = f_(), l = u_(); - Ta(() => { + const s = g_(), l = m_(); + Oa(() => { if (!n) return; const u = n.ownerDocument, d = t ? s ?? u.body : u.body; @@ -5646,9 +5688,9 @@ var Ta = globalThis != null && globalThis.document ? Es : Fe, [tv, f_] = It({ d.contains(f) && d.removeChild(f); }; }, [n]); - const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(h_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r; - return a.current ? hm( - /* @__PURE__ */ L.jsx(tv, { value: a.current, children: c }), + const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(y_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r; + return a.current ? mm( + /* @__PURE__ */ L.jsx(nv, { value: a.current, children: c }), a.current ) : /* @__PURE__ */ L.jsx( "span", @@ -5658,34 +5700,34 @@ var Ta = globalThis != null && globalThis.document ? Es : Fe, [tv, f_] = It({ } } ); -}, v_ = (e) => { - const { children: t, containerRef: r, appendToParentPortal: n } = e, o = r.current, a = o ?? (typeof window < "u" ? document.body : void 0), i = vt(() => { +}, S_ = (e) => { + const { children: t, containerRef: r, appendToParentPortal: n } = e, o = r.current, a = o ?? (typeof window < "u" ? document.body : void 0), i = gt(() => { const l = o == null ? void 0 : o.ownerDocument.createElement("div"); return l && (l.className = Fu), l; }, [o]), [, s] = Ye({}); - return Ta(() => s({}), []), Ta(() => { + return Oa(() => s({}), []), Oa(() => { if (!(!i || !a)) return a.appendChild(i), () => { a.removeChild(i); }; - }, [i, a]), a && i ? hm( - /* @__PURE__ */ L.jsx(tv, { value: n ? i : null, children: t }), + }, [i, a]), a && i ? mm( + /* @__PURE__ */ L.jsx(nv, { value: n ? i : null, children: t }), i ) : null; }; -function Ha(e) { +function Ga(e) { const t = { appendToParentPortal: !0, ...e }, { containerRef: r, ...n } = t; - return r ? /* @__PURE__ */ L.jsx(v_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(m_, { ...n }); -} -Ha.className = Fu; -Ha.selector = p_; -Ha.displayName = "Portal"; -function nn() { - const e = dt( - vn + return r ? /* @__PURE__ */ L.jsx(S_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(x_, { ...n }); +} +Ga.className = Fu; +Ga.selector = b_; +Ga.displayName = "Portal"; +function an() { + const e = ft( + bn ); if (!e) throw Error( @@ -5693,23 +5735,23 @@ function nn() { ); return e; } -var rv = Sr({}); -rv.displayName = "ColorModeContext"; +var ov = Cr({}); +ov.displayName = "ColorModeContext"; function Nu() { - const e = dt(rv); + const e = ft(ov); if (e === void 0) throw new Error("useColorMode must be used within a ColorModeProvider"); return e; } -function bV(e, t) { +function _V(e, t) { const { colorMode: r } = Nu(); return r === "dark" ? t : e; } -function nv() { - const e = Nu(), t = nn(); +function av() { + const e = Nu(), t = an(); return { ...e, theme: t }; } -function g_(e, t, r) { +function w_(e, t, r) { var n, o; if (t == null) return t; @@ -5719,7 +5761,7 @@ function g_(e, t, r) { }; return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; } -function b_(e, t, r) { +function C_(e, t, r) { var n, o; if (t == null) return t; @@ -5729,57 +5771,57 @@ function b_(e, t, r) { }; return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; } -function yV(e, t, r) { - const n = nn(); - return y_(e, t, r)(n); +function kV(e, t, r) { + const n = an(); + return __(e, t, r)(n); } -function y_(e, t, r) { +function __(e, t, r) { const n = Array.isArray(t) ? t : [t], o = Array.isArray(r) ? r : [r]; return (a) => { const i = o.filter(Boolean), s = n.map((l, c) => { var u, d; if (e === "breakpoints") - return g_(a, l, (u = i[c]) != null ? u : l); + return w_(a, l, (u = i[c]) != null ? u : l); const f = `${e}.${l}`; - return b_(a, f, (d = i[c]) != null ? d : l); + return C_(a, f, (d = i[c]) != null ? d : l); }); return Array.isArray(t) ? s : s[0]; }; } var Xe = (...e) => e.filter(Boolean).join(" "); -function x_() { +function k_() { return process.env.NODE_ENV !== "production"; } -function zt(e) { +function Vt(e) { const t = typeof e; return e != null && (t === "object" || t === "function") && !Array.isArray(e); } -var xV = (e) => { +var EV = (e) => { const { condition: t, message: r } = e; - t && x_() && console.warn(r); + t && k_() && console.warn(r); }; -function fn(e, ...t) { - return S_(e) ? e(...t) : e; +function hn(e, ...t) { + return E_(e) ? e(...t) : e; } -var S_ = (e) => typeof e == "function", eo = (e) => e ? "" : void 0, Cl = (e) => e ? !0 : void 0; -function Rt(...e) { +var E_ = (e) => typeof e == "function", ro = (e) => e ? "" : void 0, _l = (e) => e ? !0 : void 0; +function $t(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function w_(...e) { +function P_(...e) { return function(r) { e.forEach((n) => { n == null || n(r); }); }; } -var os = { exports: {} }; -os.exports; +var is = { exports: {} }; +is.exports; (function(e, t) { var r = 200, n = "__lodash_hash_undefined__", o = 800, a = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", b = "[object Null]", y = "[object Object]", S = "[object Proxy]", k = "[object RegExp]", w = "[object Set]", M = "[object String]", P = "[object Undefined]", I = "[object WeakMap]", z = "[object ArrayBuffer]", j = "[object DataView]", X = "[object Float32Array]", ne = "[object Float64Array]", J = "[object Int8Array]", Q = "[object Int16Array]", ee = "[object Int32Array]", oe = "[object Uint8Array]", D = "[object Uint8ClampedArray]", ce = "[object Uint16Array]", de = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, T = {}; T[X] = T[ne] = T[J] = T[Q] = T[ee] = T[oe] = T[D] = T[ce] = T[de] = !0, T[s] = T[l] = T[z] = T[u] = T[j] = T[d] = T[f] = T[p] = T[h] = T[v] = T[y] = T[k] = T[w] = T[M] = T[I] = !1; - var O = typeof di == "object" && di && di.Object === Object && di, B = typeof self == "object" && self && self.Object === Object && self, C = O || B || Function("return this")(), H = t && !t.nodeType && t, A = H && !0 && e && !e.nodeType && e, Z = A && A.exports === H, Y = Z && O.process, ae = function() { + var O = typeof pi == "object" && pi && pi.Object === Object && pi, B = typeof self == "object" && self && self.Object === Object && self, C = O || B || Function("return this")(), H = t && !t.nodeType && t, A = H && !0 && e && !e.nodeType && e, Z = A && A.exports === H, Y = Z && O.process, ae = function() { try { var g = A && A.require && A.require("util").types; return g || Y && Y.binding && Y.binding("util"); @@ -5817,22 +5859,22 @@ os.exports; return g(_($)); }; } - var we = Array.prototype, pt = Function.prototype, ke = Object.prototype, ut = C["__core-js_shared__"], rt = pt.toString, Me = ke.hasOwnProperty, se = function() { - var g = /[^.]+$/.exec(ut && ut.keys && ut.keys.IE_PROTO || ""); + var we = Array.prototype, ht = Function.prototype, ke = Object.prototype, dt = C["__core-js_shared__"], rt = ht.toString, Me = ke.hasOwnProperty, se = function() { + var g = /[^.]+$/.exec(dt && dt.keys && dt.keys.IE_PROTO || ""); return g ? "Symbol(src)_1." + g : ""; - }(), Ae = ke.toString, At = rt.call(Object), yt = RegExp( + }(), Ae = ke.toString, Ot = rt.call(Object), xt = RegExp( "^" + rt.call(Me).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ), st = Z ? C.Buffer : void 0, jr = C.Symbol, Br = C.Uint8Array, zr = st ? st.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, Cr = ke.propertyIsEnumerable, G = we.splice, ie = jr ? jr.toStringTag : void 0, xe = function() { + ), lt = Z ? C.Buffer : void 0, zr = C.Symbol, Vr = C.Uint8Array, Lr = lt ? lt.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, kr = ke.propertyIsEnumerable, q = we.splice, ie = zr ? zr.toStringTag : void 0, xe = function() { try { - var g = dl(Object, "defineProperty"); + var g = pl(Object, "defineProperty"); return g({}, "", {}), g; } catch { } - }(), Ce = st ? st.isBuffer : void 0, He = Math.max, St = Date.now, Ze = dl(C, "Map"), nt = dl(Object, "create"), Vr = function() { + }(), Ce = lt ? lt.isBuffer : void 0, He = Math.max, wt = Date.now, Ze = pl(C, "Map"), nt = pl(Object, "create"), Wr = function() { function g() { } return function(_) { - if (!_n(_)) + if (!En(_)) return {}; if (ve) return ve(_); @@ -5841,21 +5883,21 @@ os.exports; return g.prototype = void 0, $; }; }(); - function _r(g) { + function Er(g) { var _ = -1, $ = g == null ? 0 : g.length; for (this.clear(); ++_ < $; ) { var re = g[_]; this.set(re[0], re[1]); } } - function ol() { + function il() { this.__data__ = nt ? nt(null) : {}, this.size = 0; } - function ni(g) { + function ai(g) { var _ = this.has(g) && delete this.__data__[g]; return this.size -= _ ? 1 : 0, _; } - function al(g) { + function sl(g) { var _ = this.__data__; if (nt) { var $ = _[g]; @@ -5863,45 +5905,45 @@ os.exports; } return Me.call(_, g) ? _[g] : void 0; } - function oi(g) { + function ii(g) { var _ = this.__data__; return nt ? _[g] !== void 0 : Me.call(_, g); } - function ai(g, _) { + function si(g, _) { var $ = this.__data__; return this.size += this.has(g) ? 0 : 1, $[g] = nt && _ === void 0 ? n : _, this; } - _r.prototype.clear = ol, _r.prototype.delete = ni, _r.prototype.get = al, _r.prototype.has = oi, _r.prototype.set = ai; - function ur(g) { + Er.prototype.clear = il, Er.prototype.delete = ai, Er.prototype.get = sl, Er.prototype.has = ii, Er.prototype.set = si; + function dr(g) { var _ = -1, $ = g == null ? 0 : g.length; for (this.clear(); ++_ < $; ) { var re = g[_]; this.set(re[0], re[1]); } } - function il() { + function ll() { this.__data__ = [], this.size = 0; } - function ii(g) { - var _ = this.__data__, $ = Nt(_, g); + function li(g) { + var _ = this.__data__, $ = jt(_, g); if ($ < 0) return !1; var re = _.length - 1; - return $ == re ? _.pop() : G.call(_, $, 1), --this.size, !0; + return $ == re ? _.pop() : q.call(_, $, 1), --this.size, !0; } - function sl(g) { - var _ = this.__data__, $ = Nt(_, g); + function cl(g) { + var _ = this.__data__, $ = jt(_, g); return $ < 0 ? void 0 : _[$][1]; } - function ll(g) { - return Nt(this.__data__, g) > -1; + function ul(g) { + return jt(this.__data__, g) > -1; } - function cl(g, _) { - var $ = this.__data__, re = Nt($, g); + function dl(g, _) { + var $ = this.__data__, re = jt($, g); return re < 0 ? (++this.size, $.push([g, _])) : $[re][1] = _, this; } - ur.prototype.clear = il, ur.prototype.delete = ii, ur.prototype.get = sl, ur.prototype.has = ll, ur.prototype.set = cl; - function on(g) { + dr.prototype.clear = ll, dr.prototype.delete = li, dr.prototype.get = cl, dr.prototype.has = ul, dr.prototype.set = dl; + function sn(g) { var _ = -1, $ = g == null ? 0 : g.length; for (this.clear(); ++_ < $; ) { var re = g[_]; @@ -5910,78 +5952,78 @@ os.exports; } function x() { this.size = 0, this.__data__ = { - hash: new _r(), - map: new (Ze || ur)(), - string: new _r() + hash: new Er(), + map: new (Ze || dr)(), + string: new Er() }; } function W(g) { - var _ = ci(this, g).delete(g); + var _ = di(this, g).delete(g); return this.size -= _ ? 1 : 0, _; } function K(g) { - return ci(this, g).get(g); + return di(this, g).get(g); } function he(g) { - return ci(this, g).has(g); + return di(this, g).has(g); } function De(g, _) { - var $ = ci(this, g), re = $.size; + var $ = di(this, g), re = $.size; return $.set(g, _), this.size += $.size == re ? 0 : 1, this; } - on.prototype.clear = x, on.prototype.delete = W, on.prototype.get = K, on.prototype.has = he, on.prototype.set = De; + sn.prototype.clear = x, sn.prototype.delete = W, sn.prototype.get = K, sn.prototype.has = he, sn.prototype.set = De; function Oe(g) { - var _ = this.__data__ = new ur(g); + var _ = this.__data__ = new dr(g); this.size = _.size; } function Pe() { - this.__data__ = new ur(), this.size = 0; + this.__data__ = new dr(), this.size = 0; } function Ee(g) { var _ = this.__data__, $ = _.delete(g); return this.size = _.size, $; } - function wt(g) { + function Ct(g) { return this.__data__.get(g); } function ot(g) { return this.__data__.has(g); } - function lt(g, _) { + function ct(g, _) { var $ = this.__data__; - if ($ instanceof ur) { + if ($ instanceof dr) { var re = $.__data__; if (!Ze || re.length < r - 1) return re.push([g, _]), this.size = ++$.size, this; - $ = this.__data__ = new on(re); + $ = this.__data__ = new sn(re); } return $.set(g, _), this.size = $.size, this; } - Oe.prototype.clear = Pe, Oe.prototype.delete = Ee, Oe.prototype.get = wt, Oe.prototype.has = ot, Oe.prototype.set = lt; - function Ft(g, _) { - var $ = hl(g), re = !$ && pl(g), Re = !$ && !re && Fd(g), qe = !$ && !re && !Re && jd(g), Qe = $ || re || Re || qe, Te = Qe ? pe(g.length, String) : [], et = Te.length; - for (var Qt in g) - (_ || Me.call(g, Qt)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode. - (Qt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. - Re && (Qt == "offset" || Qt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. - qe && (Qt == "buffer" || Qt == "byteLength" || Qt == "byteOffset") || // Skip index properties. - Md(Qt, et))) && Te.push(Qt); + Oe.prototype.clear = Pe, Oe.prototype.delete = Ee, Oe.prototype.get = Ct, Oe.prototype.has = ot, Oe.prototype.set = ct; + function Nt(g, _) { + var $ = vl(g), re = !$ && ml(g), Re = !$ && !re && Fd(g), Ge = !$ && !re && !Re && jd(g), Qe = $ || re || Re || Ge, Te = Qe ? pe(g.length, String) : [], et = Te.length; + for (var er in g) + (_ || Me.call(g, er)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode. + (er == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + Re && (er == "offset" || er == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + Ge && (er == "buffer" || er == "byteLength" || er == "byteOffset") || // Skip index properties. + Md(er, et))) && Te.push(er); return Te; } - function kr(g, _, $) { - ($ !== void 0 && !ui(g[_], $) || $ === void 0 && !(_ in g)) && ul(g, _, $); + function Pr(g, _, $) { + ($ !== void 0 && !fi(g[_], $) || $ === void 0 && !(_ in g)) && fl(g, _, $); } - function si(g, _, $) { + function ci(g, _, $) { var re = g[_]; - (!(Me.call(g, _) && ui(re, $)) || $ === void 0 && !(_ in g)) && ul(g, _, $); + (!(Me.call(g, _) && fi(re, $)) || $ === void 0 && !(_ in g)) && fl(g, _, $); } - function Nt(g, _) { + function jt(g, _) { for (var $ = g.length; $--; ) - if (ui(g[$][0], _)) + if (fi(g[$][0], _)) return $; return -1; } - function ul(g, _, $) { + function fl(g, _, $) { _ == "__proto__" && xe ? xe(g, _, { configurable: !0, enumerable: !0, @@ -5989,122 +6031,122 @@ os.exports; writable: !0 }) : g[_] = $; } - var zy = Qy(); - function li(g) { - return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? e0(g) : i0(g); + var Ly = t0(); + function ui(g) { + return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? r0(g) : l0(g); } function $d(g) { - return jo(g) && li(g) == s; + return zo(g) && ui(g) == s; } - function Vy(g) { - if (!_n(g) || o0(g)) + function Wy(g) { + if (!En(g) || i0(g)) return !1; - var _ = vl(g) ? yt : N; - return _.test(u0(g)); + var _ = bl(g) ? xt : N; + return _.test(f0(g)); } - function Ly(g) { - return jo(g) && Nd(g.length) && !!T[li(g)]; + function Uy(g) { + return zo(g) && Nd(g.length) && !!T[ui(g)]; } - function Wy(g) { - if (!_n(g)) - return a0(g); + function Hy(g) { + if (!En(g)) + return s0(g); var _ = Id(g), $ = []; for (var re in g) re == "constructor" && (_ || !Me.call(g, re)) || $.push(re); return $; } function Dd(g, _, $, re, Re) { - g !== _ && zy(_, function(qe, Qe) { - if (Re || (Re = new Oe()), _n(qe)) - Uy(g, _, Qe, $, Dd, re, Re); + g !== _ && Ly(_, function(Ge, Qe) { + if (Re || (Re = new Oe()), En(Ge)) + Yy(g, _, Qe, $, Dd, re, Re); else { - var Te = re ? re(fl(g, Qe), qe, Qe + "", g, _, Re) : void 0; - Te === void 0 && (Te = qe), kr(g, Qe, Te); + var Te = re ? re(hl(g, Qe), Ge, Qe + "", g, _, Re) : void 0; + Te === void 0 && (Te = Ge), Pr(g, Qe, Te); } }, Bd); } - function Uy(g, _, $, re, Re, qe, Qe) { - var Te = fl(g, $), et = fl(_, $), Qt = Qe.get(et); - if (Qt) { - kr(g, $, Qt); + function Yy(g, _, $, re, Re, Ge, Qe) { + var Te = hl(g, $), et = hl(_, $), er = Qe.get(et); + if (er) { + Pr(g, $, er); return; } - var qt = qe ? qe(Te, et, $ + "", g, _, Qe) : void 0, Bo = qt === void 0; - if (Bo) { - var gl = hl(et), bl = !gl && Fd(et), Vd = !gl && !bl && jd(et); - qt = et, gl || bl || Vd ? hl(Te) ? qt = Te : d0(Te) ? qt = Ky(Te) : bl ? (Bo = !1, qt = qy(et, !0)) : Vd ? (Bo = !1, qt = Xy(et, !0)) : qt = [] : f0(et) || pl(et) ? (qt = Te, pl(Te) ? qt = p0(Te) : (!_n(Te) || vl(Te)) && (qt = t0(et))) : Bo = !1; + var qt = Ge ? Ge(Te, et, $ + "", g, _, Qe) : void 0, Vo = qt === void 0; + if (Vo) { + var yl = vl(et), xl = !yl && Fd(et), Vd = !yl && !xl && jd(et); + qt = et, yl || xl || Vd ? vl(Te) ? qt = Te : p0(Te) ? qt = Jy(Te) : xl ? (Vo = !1, qt = Xy(et, !0)) : Vd ? (Vo = !1, qt = Zy(et, !0)) : qt = [] : h0(et) || ml(et) ? (qt = Te, ml(Te) ? qt = m0(Te) : (!En(Te) || bl(Te)) && (qt = n0(et))) : Vo = !1; } - Bo && (Qe.set(et, qt), Re(qt, et, re, qe, Qe), Qe.delete(et)), kr(g, $, qt); + Vo && (Qe.set(et, qt), Re(qt, et, re, Ge, Qe), Qe.delete(et)), Pr(g, $, qt); } - function Hy(g, _) { - return l0(s0(g, _, zd), g + ""); + function Gy(g, _) { + return u0(c0(g, _, zd), g + ""); } - var Yy = xe ? function(g, _) { + var qy = xe ? function(g, _) { return xe(g, "toString", { configurable: !0, enumerable: !1, - value: m0(_), + value: g0(_), writable: !0 }); } : zd; - function qy(g, _) { + function Xy(g, _) { if (_) return g.slice(); - var $ = g.length, re = zr ? zr($) : new g.constructor($); + var $ = g.length, re = Lr ? Lr($) : new g.constructor($); return g.copy(re), re; } - function Gy(g) { + function Ky(g) { var _ = new g.constructor(g.byteLength); - return new Br(_).set(new Br(g)), _; + return new Vr(_).set(new Vr(g)), _; } - function Xy(g, _) { - var $ = _ ? Gy(g.buffer) : g.buffer; + function Zy(g, _) { + var $ = _ ? Ky(g.buffer) : g.buffer; return new g.constructor($, g.byteOffset, g.length); } - function Ky(g, _) { + function Jy(g, _) { var $ = -1, re = g.length; for (_ || (_ = Array(re)); ++$ < re; ) _[$] = g[$]; return _; } - function Zy(g, _, $, re) { + function Qy(g, _, $, re) { var Re = !$; $ || ($ = {}); - for (var qe = -1, Qe = _.length; ++qe < Qe; ) { - var Te = _[qe], et = re ? re($[Te], g[Te], Te, $, g) : void 0; - et === void 0 && (et = g[Te]), Re ? ul($, Te, et) : si($, Te, et); + for (var Ge = -1, Qe = _.length; ++Ge < Qe; ) { + var Te = _[Ge], et = re ? re($[Te], g[Te], Te, $, g) : void 0; + et === void 0 && (et = g[Te]), Re ? fl($, Te, et) : ci($, Te, et); } return $; } - function Jy(g) { - return Hy(function(_, $) { - var re = -1, Re = $.length, qe = Re > 1 ? $[Re - 1] : void 0, Qe = Re > 2 ? $[2] : void 0; - for (qe = g.length > 3 && typeof qe == "function" ? (Re--, qe) : void 0, Qe && r0($[0], $[1], Qe) && (qe = Re < 3 ? void 0 : qe, Re = 1), _ = Object(_); ++re < Re; ) { + function e0(g) { + return Gy(function(_, $) { + var re = -1, Re = $.length, Ge = Re > 1 ? $[Re - 1] : void 0, Qe = Re > 2 ? $[2] : void 0; + for (Ge = g.length > 3 && typeof Ge == "function" ? (Re--, Ge) : void 0, Qe && o0($[0], $[1], Qe) && (Ge = Re < 3 ? void 0 : Ge, Re = 1), _ = Object(_); ++re < Re; ) { var Te = $[re]; - Te && g(_, Te, re, qe); + Te && g(_, Te, re, Ge); } return _; }); } - function Qy(g) { + function t0(g) { return function(_, $, re) { - for (var Re = -1, qe = Object(_), Qe = re(_), Te = Qe.length; Te--; ) { + for (var Re = -1, Ge = Object(_), Qe = re(_), Te = Qe.length; Te--; ) { var et = Qe[g ? Te : ++Re]; - if ($(qe[et], et, qe) === !1) + if ($(Ge[et], et, Ge) === !1) break; } return _; }; } - function ci(g, _) { + function di(g, _) { var $ = g.__data__; - return n0(_) ? $[typeof _ == "string" ? "string" : "hash"] : $.map; + return a0(_) ? $[typeof _ == "string" ? "string" : "hash"] : $.map; } - function dl(g, _) { + function pl(g, _) { var $ = $e(g, _); - return Vy($) ? $ : void 0; + return Wy($) ? $ : void 0; } - function e0(g) { + function r0(g) { var _ = Me.call(g, ie), $ = g[ie]; try { g[ie] = void 0; @@ -6114,43 +6156,43 @@ os.exports; var Re = Ae.call(g); return re && (_ ? g[ie] = $ : delete g[ie]), Re; } - function t0(g) { - return typeof g.constructor == "function" && !Id(g) ? Vr(te(g)) : {}; + function n0(g) { + return typeof g.constructor == "function" && !Id(g) ? Wr(te(g)) : {}; } function Md(g, _) { var $ = typeof g; return _ = _ ?? i, !!_ && ($ == "number" || $ != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < _; } - function r0(g, _, $) { - if (!_n($)) + function o0(g, _, $) { + if (!En($)) return !1; var re = typeof _; - return (re == "number" ? ml($) && Md(_, $.length) : re == "string" && _ in $) ? ui($[_], g) : !1; + return (re == "number" ? gl($) && Md(_, $.length) : re == "string" && _ in $) ? fi($[_], g) : !1; } - function n0(g) { + function a0(g) { var _ = typeof g; return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? g !== "__proto__" : g === null; } - function o0(g) { + function i0(g) { return !!se && se in g; } function Id(g) { var _ = g && g.constructor, $ = typeof _ == "function" && _.prototype || ke; return g === $; } - function a0(g) { + function s0(g) { var _ = []; if (g != null) for (var $ in Object(g)) _.push($); return _; } - function i0(g) { + function l0(g) { return Ae.call(g); } - function s0(g, _, $) { + function c0(g, _, $) { return _ = He(_ === void 0 ? g.length - 1 : _, 0), function() { - for (var re = arguments, Re = -1, qe = He(re.length - _, 0), Qe = Array(qe); ++Re < qe; ) + for (var re = arguments, Re = -1, Ge = He(re.length - _, 0), Qe = Array(Ge); ++Re < Ge; ) Qe[Re] = re[_ + Re]; Re = -1; for (var Te = Array(_ + 1); ++Re < _; ) @@ -6158,15 +6200,15 @@ os.exports; return Te[_] = $(Qe), Se(g, this, Te); }; } - function fl(g, _) { + function hl(g, _) { if (!(_ === "constructor" && typeof g[_] == "function") && _ != "__proto__") return g[_]; } - var l0 = c0(Yy); - function c0(g) { + var u0 = d0(qy); + function d0(g) { var _ = 0, $ = 0; return function() { - var re = St(), Re = a - (re - $); + var re = wt(), Re = a - (re - $); if ($ = re, Re > 0) { if (++_ >= o) return arguments[0]; @@ -6175,7 +6217,7 @@ os.exports; return g.apply(void 0, arguments); }; } - function u0(g) { + function f0(g) { if (g != null) { try { return rt.call(g); @@ -6188,57 +6230,57 @@ os.exports; } return ""; } - function ui(g, _) { + function fi(g, _) { return g === _ || g !== g && _ !== _; } - var pl = $d(function() { + var ml = $d(function() { return arguments; }()) ? $d : function(g) { - return jo(g) && Me.call(g, "callee") && !Cr.call(g, "callee"); - }, hl = Array.isArray; - function ml(g) { - return g != null && Nd(g.length) && !vl(g); + return zo(g) && Me.call(g, "callee") && !kr.call(g, "callee"); + }, vl = Array.isArray; + function gl(g) { + return g != null && Nd(g.length) && !bl(g); } - function d0(g) { - return jo(g) && ml(g); + function p0(g) { + return zo(g) && gl(g); } - var Fd = Ce || v0; - function vl(g) { - if (!_n(g)) + var Fd = Ce || b0; + function bl(g) { + if (!En(g)) return !1; - var _ = li(g); + var _ = ui(g); return _ == p || _ == m || _ == c || _ == S; } function Nd(g) { return typeof g == "number" && g > -1 && g % 1 == 0 && g <= i; } - function _n(g) { + function En(g) { var _ = typeof g; return g != null && (_ == "object" || _ == "function"); } - function jo(g) { + function zo(g) { return g != null && typeof g == "object"; } - function f0(g) { - if (!jo(g) || li(g) != y) + function h0(g) { + if (!zo(g) || ui(g) != y) return !1; var _ = te(g); if (_ === null) return !0; var $ = Me.call(_, "constructor") && _.constructor; - return typeof $ == "function" && $ instanceof $ && rt.call($) == At; + return typeof $ == "function" && $ instanceof $ && rt.call($) == Ot; } - var jd = R ? le(R) : Ly; - function p0(g) { - return Zy(g, Bd(g)); + var jd = R ? le(R) : Uy; + function m0(g) { + return Qy(g, Bd(g)); } function Bd(g) { - return ml(g) ? Ft(g, !0) : Wy(g); + return gl(g) ? Nt(g, !0) : Hy(g); } - var h0 = Jy(function(g, _, $, re) { + var v0 = e0(function(g, _, $, re) { Dd(g, _, $, re); }); - function m0(g) { + function g0(g) { return function() { return g; }; @@ -6246,29 +6288,29 @@ os.exports; function zd(g) { return g; } - function v0() { + function b0() { return !1; } - e.exports = h0; -})(os, os.exports); -var C_ = os.exports; -const ar = /* @__PURE__ */ Ts(C_); -var __ = (e) => /!(important)?$/.test(e), $f = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, k_ = (e, t) => (r) => { - const n = String(t), o = __(n), a = $f(n), i = e ? `${e}.${a}` : a; - let s = zt(r.__cssMap) && i in r.__cssMap ? r.__cssMap[i].varRef : t; - return s = $f(s), o ? `${s} !important` : s; + e.exports = v0; +})(is, is.exports); +var T_ = is.exports; +const ir = /* @__PURE__ */ Os(T_); +var A_ = (e) => /!(important)?$/.test(e), Df = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, O_ = (e, t) => (r) => { + const n = String(t), o = A_(n), a = Df(n), i = e ? `${e}.${a}` : a; + let s = Vt(r.__cssMap) && i in r.__cssMap ? r.__cssMap[i].varRef : t; + return s = Df(s), o ? `${s} !important` : s; }; function ju(e) { const { scale: t, transform: r, compose: n } = e; return (a, i) => { var s; - const l = k_(t, a)(i); + const l = O_(t, a)(i); let c = (s = r == null ? void 0 : r(l, i)) != null ? s : l; return n && (c = n(c, i)), c; }; } -var hi = (...e) => (t) => e.reduce((r, n) => n(r), t); -function er(e, t) { +var gi = (...e) => (t) => e.reduce((r, n) => n(r), t); +function tr(e, t) { return (r) => { const n = { property: r, scale: e }; return n.transform = ju({ @@ -6277,39 +6319,39 @@ function er(e, t) { }), n; }; } -var E_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t; -function P_(e) { +var R_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t; +function $_(e) { const { property: t, scale: r, transform: n } = e; return { scale: r, - property: E_(t), + property: R_(t), transform: r ? ju({ scale: r, compose: n }) : n }; } -var ov = [ +var iv = [ "rotate(var(--chakra-rotate, 0))", "scaleX(var(--chakra-scale-x, 1))", "scaleY(var(--chakra-scale-y, 1))", "skewX(var(--chakra-skew-x, 0))", "skewY(var(--chakra-skew-y, 0))" ]; -function T_() { +function D_() { return [ "translateX(var(--chakra-translate-x, 0))", "translateY(var(--chakra-translate-y, 0))", - ...ov + ...iv ].join(" "); } -function A_() { +function M_() { return [ "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)", - ...ov + ...iv ].join(" "); } -var O_ = { +var I_ = { "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)", @@ -6330,7 +6372,7 @@ var O_ = { "var(--chakra-sepia)", "var(--chakra-drop-shadow)" ].join(" ") -}, R_ = { +}, F_ = { backdropFilter: [ "var(--chakra-backdrop-blur)", "var(--chakra-backdrop-brightness)", @@ -6352,7 +6394,7 @@ var O_ = { "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)" }; -function $_(e) { +function N_(e) { return { "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)", "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)", @@ -6364,7 +6406,7 @@ function $_(e) { ].join(", ") }; } -var D_ = { +var j_ = { "row-reverse": { space: "--chakra-space-x-reverse", divide: "--chakra-divide-x-reverse" @@ -6382,15 +6424,15 @@ var D_ = { "to-bl": "to bottom left", "to-l": "to left", "to-tl": "to top left" -}, M_ = new Set(Object.values(Rc)), $c = /* @__PURE__ */ new Set([ +}, B_ = new Set(Object.values(Rc)), $c = /* @__PURE__ */ new Set([ "none", "-moz-initial", "inherit", "initial", "revert", "unset" -]), I_ = (e) => e.trim(); -function F_(e, t) { +]), z_ = (e) => e.trim(); +function V_(e, t) { if (e == null || $c.has(e)) return e; if (!(Dc(e) || $c.has(e))) @@ -6398,13 +6440,13 @@ function F_(e, t) { const o = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = o == null ? void 0 : o[1], i = o == null ? void 0 : o[2]; if (!a || !i) return e; - const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(I_).filter(Boolean); + const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(z_).filter(Boolean); if ((c == null ? void 0 : c.length) === 0) return e; const u = l in Rc ? Rc[l] : l; c.unshift(u); const d = c.map((f) => { - if (M_.has(f)) + if (B_.has(f)) return f; const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = Dc(h) ? h : h && h.split(" "), b = `colors.${m}`, y = b in t.__cssMap ? t.__cssMap[b].varRef : m; return v ? [ @@ -6414,28 +6456,28 @@ function F_(e, t) { }); return `${s}(${d.join(", ")})`; } -var Dc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), N_ = (e, t) => F_(e, t ?? {}); -function j_(e) { +var Dc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), L_ = (e, t) => V_(e, t ?? {}); +function W_(e) { return /^var\(--.+\)$/.test(e); } -var B_ = (e) => { +var U_ = (e) => { const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); return { unitless: !r, value: t, unit: r }; -}, Er = (e) => (t) => `${e}(${t})`, Ie = { +}, Tr = (e) => (t) => `${e}(${t})`, Ie = { filter(e) { - return e !== "auto" ? e : O_; + return e !== "auto" ? e : I_; }, backdropFilter(e) { - return e !== "auto" ? e : R_; + return e !== "auto" ? e : F_; }, ring(e) { - return $_(Ie.px(e)); + return N_(Ie.px(e)); }, bgClip(e) { return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e }; }, transform(e) { - return e === "auto" ? T_() : e === "auto-gpu" ? A_() : e; + return e === "auto" ? D_() : e === "auto-gpu" ? M_() : e; }, vh(e) { return e === "$100vh" ? "var(--chakra-vh)" : e; @@ -6443,7 +6485,7 @@ var B_ = (e) => { px(e) { if (e == null) return e; - const { unitless: t } = B_(e); + const { unitless: t } = U_(e); return t || typeof e == "number" ? `${e}px` : e; }, fraction(e) { @@ -6454,22 +6496,22 @@ var B_ = (e) => { return t.direction === "rtl" ? r[e] : e; }, degree(e) { - if (j_(e) || e == null) + if (W_(e) || e == null) return e; const t = typeof e == "string" && !e.endsWith("deg"); return typeof e == "number" || t ? `${e}deg` : e; }, - gradient: N_, - blur: Er("blur"), - opacity: Er("opacity"), - brightness: Er("brightness"), - contrast: Er("contrast"), - dropShadow: Er("drop-shadow"), - grayscale: Er("grayscale"), - hueRotate: Er("hue-rotate"), - invert: Er("invert"), - saturate: Er("saturate"), - sepia: Er("sepia"), + gradient: L_, + blur: Tr("blur"), + opacity: Tr("opacity"), + brightness: Tr("brightness"), + contrast: Tr("contrast"), + dropShadow: Tr("drop-shadow"), + grayscale: Tr("grayscale"), + hueRotate: Tr("hue-rotate"), + invert: Tr("invert"), + saturate: Tr("saturate"), + sepia: Tr("sepia"), bgImage(e) { return e == null || Dc(e) || $c.has(e) ? e : `url(${e})`; }, @@ -6479,18 +6521,18 @@ var B_ = (e) => { }, flexDirection(e) { var t; - const { space: r, divide: n } = (t = D_[e]) != null ? t : {}, o = { flexDirection: e }; + const { space: r, divide: n } = (t = j_[e]) != null ? t : {}, o = { flexDirection: e }; return r && (o[r] = 1), n && (o[n] = 1), o; } }, E = { - borderWidths: er("borderWidths"), - borderStyles: er("borderStyles"), - colors: er("colors"), - borders: er("borders"), - gradients: er("gradients", Ie.gradient), - radii: er("radii", Ie.px), - space: er("space", hi(Ie.vh, Ie.px)), - spaceT: er("space", hi(Ie.vh, Ie.px)), + borderWidths: tr("borderWidths"), + borderStyles: tr("borderStyles"), + colors: tr("colors"), + borders: tr("borders"), + gradients: tr("gradients", Ie.gradient), + radii: tr("radii", Ie.px), + space: tr("space", gi(Ie.vh, Ie.px)), + spaceT: tr("space", gi(Ie.vh, Ie.px)), degreeT(e) { return { property: e, transform: Ie.degree }; }, @@ -6506,12 +6548,12 @@ var B_ = (e) => { propT(e, t) { return { property: e, transform: t }; }, - sizes: er("sizes", hi(Ie.vh, Ie.px)), - sizesT: er("sizes", hi(Ie.vh, Ie.fraction)), - shadows: er("shadows"), - logical: P_, - blur: er("blur", Ie.blur) -}, Fi = { + sizes: tr("sizes", gi(Ie.vh, Ie.px)), + sizesT: tr("sizes", gi(Ie.vh, Ie.fraction)), + shadows: tr("shadows"), + logical: $_, + blur: tr("blur", Ie.blur) +}, ji = { background: E.colors("background"), backgroundColor: E.colors("backgroundColor"), backgroundImage: E.gradients("backgroundImage"), @@ -6530,9 +6572,9 @@ var B_ = (e) => { bgGradient: E.gradients("backgroundImage"), bgClip: { transform: Ie.bgClip } }; -Object.assign(Fi, { - bgImage: Fi.backgroundImage, - bgImg: Fi.backgroundImage +Object.assign(ji, { + bgImage: ji.backgroundImage, + bgImg: ji.backgroundImage }); var je = { border: E.borders("border"), @@ -6667,7 +6709,7 @@ Object.assign(je, { borderStartStyle: je.borderInlineStartStyle, borderEndStyle: je.borderInlineEndStyle }); -var z_ = { +var H_ = { color: E.colors("color"), textColor: E.colors("color"), fill: E.colors("fill"), @@ -6683,7 +6725,7 @@ var z_ = { Object.assign(Mc, { shadow: Mc.boxShadow }); -var V_ = { +var Y_ = { filter: { transform: Ie.filter }, blur: E.blur("--chakra-blur"), brightness: E.propT("--chakra-brightness", Ie.brightness), @@ -6702,7 +6744,7 @@ var V_ = { backdropHueRotate: E.degreeT("--chakra-backdrop-hue-rotate"), backdropInvert: E.propT("--chakra-backdrop-invert", Ie.invert), backdropSaturate: E.propT("--chakra-backdrop-saturate", Ie.saturate) -}, as = { +}, ss = { alignItems: !0, alignContent: !0, justifyItems: !0, @@ -6724,10 +6766,10 @@ var V_ = { rowGap: E.space("rowGap"), columnGap: E.space("columnGap") }; -Object.assign(as, { - flexDir: as.flexDirection +Object.assign(ss, { + flexDir: ss.flexDirection }); -var av = { +var sv = { gridGap: E.space("gridGap"), gridColumnGap: E.space("gridColumnGap"), gridRowGap: E.space("gridRowGap"), @@ -6745,7 +6787,7 @@ var av = { gridTemplateRows: !0, gridTemplateAreas: !0, gridArea: !0 -}, L_ = { +}, G_ = { appearance: !0, cursor: !0, resize: !0, @@ -6754,7 +6796,7 @@ var av = { outline: { transform: Ie.outline }, outlineOffset: !0, outlineColor: E.colors("outlineColor") -}, rr = { +}, nr = { width: E.sizesT("width"), inlineSize: E.sizesT("inlineSize"), height: E.sizes("height"), @@ -6799,31 +6841,31 @@ var av = { visibility: !0, isolation: !0 }; -Object.assign(rr, { - w: rr.width, - h: rr.height, - minW: rr.minWidth, - maxW: rr.maxWidth, - minH: rr.minHeight, - maxH: rr.maxHeight, - overscroll: rr.overscrollBehavior, - overscrollX: rr.overscrollBehaviorX, - overscrollY: rr.overscrollBehaviorY +Object.assign(nr, { + w: nr.width, + h: nr.height, + minW: nr.minWidth, + maxW: nr.maxWidth, + minH: nr.minHeight, + maxH: nr.maxHeight, + overscroll: nr.overscrollBehavior, + overscrollX: nr.overscrollBehaviorX, + overscrollY: nr.overscrollBehaviorY }); -var W_ = { +var q_ = { listStyleType: !0, listStylePosition: !0, listStylePos: E.prop("listStylePosition"), listStyleImage: !0, listStyleImg: E.prop("listStyleImage") }; -function U_(e, t, r, n) { +function X_(e, t, r, n) { const o = typeof t == "string" ? t.split(".") : [t]; for (n = 0; n < o.length && e; n += 1) e = e[o[n]]; return e === void 0 ? r : e; } -var H_ = (e) => { +var K_ = (e) => { const t = /* @__PURE__ */ new WeakMap(); return (n, o, a, i) => { if (typeof n > "u") @@ -6835,7 +6877,7 @@ var H_ = (e) => { const l = e(n, o, a, i); return s.set(o, l), l; }; -}, Y_ = H_(U_), q_ = { +}, Z_ = K_(X_), J_ = { border: "0px", clip: "rect(0, 0, 0, 0)", width: "1px", @@ -6845,7 +6887,7 @@ var H_ = (e) => { overflow: "hidden", whiteSpace: "nowrap", position: "absolute" -}, G_ = { +}, Q_ = { position: "static", width: "auto", height: "auto", @@ -6854,30 +6896,30 @@ var H_ = (e) => { margin: "0", overflow: "visible", whiteSpace: "normal" -}, _l = (e, t, r) => { - const n = {}, o = Y_(e, t, {}); +}, kl = (e, t, r) => { + const n = {}, o = Z_(e, t, {}); for (const a in o) a in r && r[a] != null || (n[a] = o[a]); return n; -}, X_ = { +}, ek = { srOnly: { transform(e) { - return e === !0 ? q_ : e === "focusable" ? G_ : {}; + return e === !0 ? J_ : e === "focusable" ? Q_ : {}; } }, layerStyle: { processResult: !0, - transform: (e, t, r) => _l(t, `layerStyles.${e}`, r) + transform: (e, t, r) => kl(t, `layerStyles.${e}`, r) }, textStyle: { processResult: !0, - transform: (e, t, r) => _l(t, `textStyles.${e}`, r) + transform: (e, t, r) => kl(t, `textStyles.${e}`, r) }, apply: { processResult: !0, - transform: (e, t, r) => _l(t, e, r) + transform: (e, t, r) => kl(t, e, r) } -}, aa = { +}, sa = { position: !0, pos: E.prop("position"), zIndex: E.prop("zIndex", "zIndices"), @@ -6901,11 +6943,11 @@ var H_ = (e) => { property: { ltr: "right", rtl: "left" } }) }; -Object.assign(aa, { - insetStart: aa.insetInlineStart, - insetEnd: aa.insetInlineEnd +Object.assign(sa, { + insetStart: sa.insetInlineStart, + insetEnd: sa.insetInlineEnd }); -var K_ = { +var tk = { ring: { transform: Ie.ring }, ringColor: E.colors("--chakra-ring-color"), ringOffset: E.prop("--chakra-ring-offset-width"), @@ -6963,7 +7005,7 @@ Object.assign(Je, { pe: Je.paddingInlineEnd, paddingEnd: Je.paddingInlineEnd }); -var Z_ = { +var rk = { textDecorationColor: E.colors("textDecorationColor"), textDecoration: !0, textDecor: { property: "textDecoration" }, @@ -6972,7 +7014,7 @@ var Z_ = { textDecorationThickness: !0, textUnderlineOffset: !0, textShadow: E.shadows("textShadow") -}, J_ = { +}, nk = { clipPath: !0, transform: E.propT("transform", Ie.transform), transformOrigin: !0, @@ -6984,7 +7026,7 @@ var Z_ = { scaleY: E.prop("--chakra-scale-y"), scale: E.prop(["--chakra-scale-x", "--chakra-scale-y"]), rotate: E.degreeT("--chakra-rotate") -}, Q_ = { +}, ok = { transition: !0, transitionDelay: !0, animation: !0, @@ -6995,7 +7037,7 @@ var Z_ = { "transitionTimingFunction", "transition.easing" ) -}, ek = { +}, ak = { fontFamily: E.prop("fontFamily", "fonts"), fontSize: E.prop("fontSize", "fontSizes", Ie.px), fontWeight: E.prop("fontWeight", "fontWeights"), @@ -7029,7 +7071,7 @@ var Z_ = { }, property: "--chakra-line-clamp" } -}, tk = { +}, ik = { scrollBehavior: !0, scrollSnapAlign: !0, scrollSnapStop: !0, @@ -7049,59 +7091,59 @@ var Z_ = { scrollPaddingX: E.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]), scrollPaddingY: E.spaceT(["scrollPaddingTop", "scrollPaddingBottom"]) }; -function iv(e) { - return zt(e) && e.reference ? e.reference : String(e); +function lv(e) { + return Vt(e) && e.reference ? e.reference : String(e); } -var Ns = (e, ...t) => t.map(iv).join(` ${e} `).replace(/calc/g, ""), Df = (...e) => `calc(${Ns("+", ...e)})`, Mf = (...e) => `calc(${Ns("-", ...e)})`, Ic = (...e) => `calc(${Ns("*", ...e)})`, If = (...e) => `calc(${Ns("/", ...e)})`, Ff = (e) => { - const t = iv(e); +var Bs = (e, ...t) => t.map(lv).join(` ${e} `).replace(/calc/g, ""), Mf = (...e) => `calc(${Bs("+", ...e)})`, If = (...e) => `calc(${Bs("-", ...e)})`, Ic = (...e) => `calc(${Bs("*", ...e)})`, Ff = (...e) => `calc(${Bs("/", ...e)})`, Nf = (e) => { + const t = lv(e); return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Ic(t, -1); -}, An = Object.assign( +}, $n = Object.assign( (e) => ({ - add: (...t) => An(Df(e, ...t)), - subtract: (...t) => An(Mf(e, ...t)), - multiply: (...t) => An(Ic(e, ...t)), - divide: (...t) => An(If(e, ...t)), - negate: () => An(Ff(e)), + add: (...t) => $n(Mf(e, ...t)), + subtract: (...t) => $n(If(e, ...t)), + multiply: (...t) => $n(Ic(e, ...t)), + divide: (...t) => $n(Ff(e, ...t)), + negate: () => $n(Nf(e)), toString: () => e.toString() }), { - add: Df, - subtract: Mf, + add: Mf, + subtract: If, multiply: Ic, - divide: If, - negate: Ff + divide: Ff, + negate: Nf } ); -function rk(e, t = "-") { +function sk(e, t = "-") { return e.replace(/\s+/g, t); } -function nk(e) { - const t = rk(e.toString()); - return ak(ok(t)); +function lk(e) { + const t = sk(e.toString()); + return uk(ck(t)); } -function ok(e) { +function ck(e) { return e.includes("\\.") ? e : !Number.isInteger(parseFloat(e.toString())) ? e.replace(".", "\\.") : e; } -function ak(e) { +function uk(e) { return e.replace(/[!-,/:-@[-^`{-~]/g, "\\$&"); } -function ik(e, t = "") { +function dk(e, t = "") { return [t, e].filter(Boolean).join("-"); } -function sk(e, t) { +function fk(e, t) { return `var(${e}${t ? `, ${t}` : ""})`; } -function lk(e, t = "") { - return nk(`--${ik(e, t)}`); +function pk(e, t = "") { + return lk(`--${dk(e, t)}`); } function me(e, t, r) { - const n = lk(e, r); + const n = pk(e, r); return { variable: n, - reference: sk(n, t) + reference: fk(n, t) }; } -function ck(e, t) { +function hk(e, t) { const r = {}; for (const n of t) { if (Array.isArray(n)) { @@ -7113,30 +7155,30 @@ function ck(e, t) { } return r; } -function uk(e) { +function mk(e) { const t = e == null ? 0 : e.length; return t ? e[t - 1] : void 0; } -function dk(e) { +function vk(e) { const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); return { unitless: !r, value: t, unit: r }; } function Fc(e) { if (e == null) return e; - const { unitless: t } = dk(e); + const { unitless: t } = vk(e); return t || typeof e == "number" ? `${e}px` : e; } -var sv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Bu = (e) => Object.fromEntries(Object.entries(e).sort(sv)); -function Nf(e) { +var cv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Bu = (e) => Object.fromEntries(Object.entries(e).sort(cv)); +function jf(e) { const t = Bu(e); return Object.assign(Object.values(t), t); } -function fk(e) { +function gk(e) { const t = Object.keys(Bu(e)); return new Set(t); } -function jf(e) { +function Bf(e) { var t; if (!e) return e; @@ -7144,28 +7186,28 @@ function jf(e) { const r = -0.02; return typeof e == "number" ? `${e + r}` : e.replace(/(\d+\.?\d*)/u, (n) => `${parseFloat(n) + r}`); } -function Ko(e, t) { +function Jo(e, t) { const r = ["@media screen"]; return e && r.push("and", `(min-width: ${Fc(e)})`), t && r.push("and", `(max-width: ${Fc(t)})`), r.join(" "); } -function pk(e) { +function bk(e) { var t; if (!e) return null; e.base = (t = e.base) != null ? t : "0px"; - const r = Nf(e), n = Object.entries(e).sort(sv).map(([i, s], l, c) => { + const r = jf(e), n = Object.entries(e).sort(cv).map(([i, s], l, c) => { var u; let [, d] = (u = c[l + 1]) != null ? u : []; - return d = parseFloat(d) > 0 ? jf(d) : void 0, { - _minW: jf(s), + return d = parseFloat(d) > 0 ? Bf(d) : void 0, { + _minW: Bf(s), breakpoint: i, minW: s, maxW: d, - maxWQuery: Ko(null, d), - minWQuery: Ko(s), - minMaxQuery: Ko(s, d) + maxWQuery: Jo(null, d), + minWQuery: Jo(s), + minMaxQuery: Jo(s, d) }; - }), o = fk(e), a = Array.from(o.values()); + }), o = gk(e), a = Array.from(o.values()); return { keys: o, normalized: r, @@ -7174,23 +7216,23 @@ function pk(e) { return s.length > 0 && s.every((l) => o.has(l)); }, asObject: Bu(e), - asArray: Nf(e), + asArray: jf(e), details: n, get(i) { return n.find((s) => s.breakpoint === i); }, media: [ null, - ...r.map((i) => Ko(i)).slice(1) + ...r.map((i) => Jo(i)).slice(1) ], toArrayValue(i) { - if (!zt(i)) + if (!Vt(i)) throw new Error("toArrayValue: value must be an object"); const s = a.map((l) => { var c; return (c = i[l]) != null ? c : null; }); - for (; uk(s) === null; ) + for (; mk(s) === null; ) s.pop(); return s; }, @@ -7204,7 +7246,7 @@ function pk(e) { } }; } -var Ct = { +var _t = { hover: (e, t) => `${e}:hover ${t}, ${e}[data-hover] ${t}`, focus: (e, t) => `${e}:focus ${t}, ${e}[data-focus] ${t}`, focusVisible: (e, t) => `${e}:focus-visible ${t}`, @@ -7217,7 +7259,7 @@ var Ct = { readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`, expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`, placeholderShown: (e, t) => `${e}:placeholder-shown ${t}` -}, an = (e) => lv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Lr = (e) => lv((t) => e(t, "~ &"), "[data-peer]", ".peer"), lv = (e, ...t) => t.map(e).join(", "), js = { +}, ln = (e) => uv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Ur = (e) => uv((t) => e(t, "~ &"), "[data-peer]", ".peer"), uv = (e, ...t) => t.map(e).join(", "), zs = { _hover: "&:hover, &[data-hover]", _active: "&:active, &[data-active]", _focus: "&:focus, &[data-focus]", @@ -7250,23 +7292,23 @@ var Ct = { _activeLink: "&[aria-current=page]", _activeStep: "&[aria-current=step]", _indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]", - _groupHover: an(Ct.hover), - _peerHover: Lr(Ct.hover), - _groupFocus: an(Ct.focus), - _peerFocus: Lr(Ct.focus), - _groupFocusVisible: an(Ct.focusVisible), - _peerFocusVisible: Lr(Ct.focusVisible), - _groupActive: an(Ct.active), - _peerActive: Lr(Ct.active), - _groupDisabled: an(Ct.disabled), - _peerDisabled: Lr(Ct.disabled), - _groupInvalid: an(Ct.invalid), - _peerInvalid: Lr(Ct.invalid), - _groupChecked: an(Ct.checked), - _peerChecked: Lr(Ct.checked), - _groupFocusWithin: an(Ct.focusWithin), - _peerFocusWithin: Lr(Ct.focusWithin), - _peerPlaceholderShown: Lr(Ct.placeholderShown), + _groupHover: ln(_t.hover), + _peerHover: Ur(_t.hover), + _groupFocus: ln(_t.focus), + _peerFocus: Ur(_t.focus), + _groupFocusVisible: ln(_t.focusVisible), + _peerFocusVisible: Ur(_t.focusVisible), + _groupActive: ln(_t.active), + _peerActive: Ur(_t.active), + _groupDisabled: ln(_t.disabled), + _peerDisabled: Ur(_t.disabled), + _groupInvalid: ln(_t.invalid), + _peerInvalid: Ur(_t.invalid), + _groupChecked: ln(_t.checked), + _peerChecked: Ur(_t.checked), + _groupFocusWithin: ln(_t.focusWithin), + _peerFocusWithin: Ur(_t.focusWithin), + _peerPlaceholderShown: Ur(_t.placeholderShown), _placeholder: "&::placeholder", _placeholderShown: "&:placeholder-shown", _fullScreen: "&:fullscreen", @@ -7279,20 +7321,20 @@ var Ct = { _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]", _horizontal: "&[data-orientation=horizontal]", _vertical: "&[data-orientation=vertical]" -}, cv = Object.keys( - js +}, dv = Object.keys( + zs ); -function Bf(e, t) { +function zf(e, t) { return me(String(e).replace(/\./g, "-"), void 0, t); } -function hk(e, t) { +function yk(e, t) { let r = {}; const n = {}; for (const [o, a] of Object.entries(e)) { - const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Bf(o, t == null ? void 0 : t.cssVarPrefix); + const { isSemantic: i, value: s } = a, { variable: l, reference: c } = zf(o, t == null ? void 0 : t.cssVarPrefix); if (!i) { if (o.startsWith("space")) { - const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = An.negate(s), b = An.negate(c); + const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = $n.negate(s), b = $n.negate(c); n[h] = { value: v, var: l, @@ -7310,10 +7352,10 @@ function hk(e, t) { const m = [String(o).split(".")[0], f].join("."); if (!e[m]) return f; - const { reference: v } = Bf(m, t == null ? void 0 : t.cssVarPrefix); + const { reference: v } = zf(m, t == null ? void 0 : t.cssVarPrefix); return v; - }, d = zt(s) ? s : { default: s }; - r = ar( + }, d = Vt(s) ? s : { default: s }; + r = ir( r, Object.entries(d).reduce( (f, [p, m]) => { @@ -7323,7 +7365,7 @@ function hk(e, t) { const b = u(`${m}`); if (p === "default") return f[l] = b, f; - const y = (v = (h = js) == null ? void 0 : h[p]) != null ? v : p; + const y = (v = (h = zs) == null ? void 0 : h[p]) != null ? v : p; return f[y] = { [l]: b }, f; }, {} @@ -7339,26 +7381,26 @@ function hk(e, t) { cssMap: n }; } -function mk(e, t = []) { +function xk(e, t = []) { const r = Object.assign({}, e); for (const n of t) n in r && delete r[n]; return r; } -function vk(e, t) { +function Sk(e, t) { const r = {}; for (const n of t) n in e && (r[n] = e[n]); return r; } -function gk(e) { +function wk(e) { return typeof e == "object" && e != null && !Array.isArray(e); } -function zf(e, t, r = {}) { +function Vf(e, t, r = {}) { const { stop: n, getKey: o } = r; function a(i, s = []) { var l; - if (gk(i) || Array.isArray(i)) { + if (wk(i) || Array.isArray(i)) { const c = {}; for (const [u, d] of Object.entries(i)) { const f = (l = o == null ? void 0 : o(u)) != null ? l : u, p = [...s, f]; @@ -7372,7 +7414,7 @@ function zf(e, t, r = {}) { } return a(e); } -var bk = [ +var Ck = [ "colors", "borders", "borderWidths", @@ -7392,40 +7434,40 @@ var bk = [ "blur", "breakpoints" ]; -function yk(e) { - return vk(e, bk); +function _k(e) { + return Sk(e, Ck); } -function xk(e) { +function kk(e) { return e.semanticTokens; } -function Sk(e) { +function Ek(e) { const { __cssMap: t, __cssVars: r, __breakpoints: n, ...o } = e; return o; } -var wk = (e) => cv.includes(e) || e === "default"; -function Ck({ +var Pk = (e) => dv.includes(e) || e === "default"; +function Tk({ tokens: e, semanticTokens: t }) { const r = {}; - return zf(e, (n, o) => { + return Vf(e, (n, o) => { n != null && (r[o.join(".")] = { isSemantic: !1, value: n }); - }), zf( + }), Vf( t, (n, o) => { n != null && (r[o.join(".")] = { isSemantic: !0, value: n }); }, { - stop: (n) => Object.keys(n).every(wk) + stop: (n) => Object.keys(n).every(Pk) } ), r; } -function SV(e) { +function PV(e) { var t; - const r = Sk(e), n = yk(r), o = xk(r), a = Ck({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, { + const r = Ek(e), n = _k(r), o = kk(r), a = Tk({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, { cssMap: s, cssVars: l - } = hk(a, { cssVarPrefix: i }); + } = yk(a, { cssVarPrefix: i }); return Object.assign(r, { __cssVars: { ...{ "--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)", @@ -7438,41 +7480,41 @@ function SV(e) { "--chakra-space-y-reverse": "0" }, ...l }, __cssMap: s, - __breakpoints: pk(r.breakpoints) + __breakpoints: bk(r.breakpoints) }), r; } -var zu = ar( +var zu = ir( {}, - Fi, + ji, je, - z_, - as, - rr, - V_, - K_, - L_, - av, - X_, - aa, - Mc, - Je, + H_, + ss, + nr, + Y_, tk, + G_, + sv, ek, - Z_, - J_, - W_, - Q_ -), _k = Object.assign({}, Je, rr, as, av, aa), wV = Object.keys( - _k -), kk = [...Object.keys(zu), ...cv], Ek = { ...zu, ...js }, Pk = (e) => e in Ek, Tk = (e) => (t) => { + sa, + Mc, + Je, + ik, + ak, + rk, + nk, + q_, + ok +), Ak = Object.assign({}, Je, nr, ss, sv, sa), TV = Object.keys( + Ak +), Ok = [...Object.keys(zu), ...dv], Rk = { ...zu, ...zs }, $k = (e) => e in Rk, Dk = (e) => (t) => { if (!t.__breakpoints) return e; const { isResponsive: r, toArrayValue: n, media: o } = t.__breakpoints, a = {}; for (const i in e) { - let s = fn(e[i], t); + let s = hn(e[i], t); if (s == null) continue; - if (s = zt(s) && r(s) ? n(s) : s, !Array.isArray(s)) { + if (s = Vt(s) && r(s) ? n(s) : s, !Array.isArray(s)) { a[i] = s; continue; } @@ -7488,7 +7530,7 @@ var zu = ar( } return a; }; -function Ak(e) { +function Mk(e) { const t = []; let r = "", n = !1; for (let o = 0; o < e.length; o++) { @@ -7497,10 +7539,10 @@ function Ak(e) { } return r = r.trim(), r && t.push(r), t; } -function Ok(e) { +function Ik(e) { return /^var\(--.+\)$/.test(e); } -var Rk = (e, t) => e.startsWith("--") && typeof t == "string" && !Ok(t), $k = (e, t) => { +var Fk = (e, t) => e.startsWith("--") && typeof t == "string" && !Ik(t), Nk = (e, t) => { var r, n; if (t == null) return t; @@ -7510,21 +7552,21 @@ var Rk = (e, t) => e.startsWith("--") && typeof t == "string" && !Ok(t), $k = (e }, a = (l) => { var c; return (c = o(l)) != null ? c : l; - }, [i, s] = Ak(t); + }, [i, s] = Mk(t); return t = (n = (r = o(i)) != null ? r : a(s)) != null ? n : a(t), t; }; -function Dk(e) { +function jk(e) { const { configs: t = {}, pseudos: r = {}, theme: n } = e, o = (a, i = !1) => { var s, l, c; - const u = fn(a, n), d = Tk(u)(n); + const u = hn(a, n), d = Dk(u)(n); let f = {}; for (let p in d) { const m = d[p]; - let h = fn(m, n); - p in r && (p = r[p]), Rk(p, h) && (h = $k(n, h)); + let h = hn(m, n); + p in r && (p = r[p]), Fk(p, h) && (h = Nk(n, h)); let v = t[p]; - if (v === !0 && (v = { property: p }), zt(h)) { - f[p] = (s = f[p]) != null ? s : {}, f[p] = ar( + if (v === !0 && (v = { property: p }), Vt(h)) { + f[p] = (s = f[p]) != null ? s : {}, f[p] = ir( {}, f[p], o(h, !0) @@ -7533,10 +7575,10 @@ function Dk(e) { } let b = (c = (l = v == null ? void 0 : v.transform) == null ? void 0 : l.call(v, h, n, u)) != null ? c : h; b = v != null && v.processResult ? o(b, !0) : b; - const y = fn(v == null ? void 0 : v.property, n); + const y = hn(v == null ? void 0 : v.property, n); if (!i && (v != null && v.static)) { - const S = fn(v.static, n); - f = ar({}, f, S); + const S = hn(v.static, n); + f = ir({}, f, S); } if (y && Array.isArray(y)) { for (const S of y) @@ -7544,11 +7586,11 @@ function Dk(e) { continue; } if (y) { - y === "&" && zt(b) ? f = ar({}, f, b) : f[y] = b; + y === "&" && Vt(b) ? f = ir({}, f, b) : f[y] = b; continue; } - if (zt(b)) { - f = ar({}, f, b); + if (Vt(b)) { + f = ir({}, f, b); continue; } f[p] = b; @@ -7557,15 +7599,15 @@ function Dk(e) { }; return o; } -var Mk = (e) => (t) => Dk({ +var Bk = (e) => (t) => jk({ theme: t, - pseudos: js, + pseudos: zs, configs: zu })(e); -function CV(e) { +function AV(e) { return e; } -function _V(e) { +function OV(e) { return e; } function Ke(e) { @@ -7578,43 +7620,43 @@ function Ke(e) { } }; } -function Ik(e, t) { +function zk(e, t) { if (Array.isArray(e)) return e; - if (zt(e)) + if (Vt(e)) return t(e); if (e != null) return [e]; } -function Fk(e, t) { +function Vk(e, t) { for (let r = t + 1; r < e.length; r++) if (e[r] != null) return r; return -1; } -function Nk(e) { +function Lk(e) { const t = e.__breakpoints; return function(n, o, a, i) { var s, l; if (!t) return; - const c = {}, u = Ik(a, t.toArrayValue); + const c = {}, u = zk(a, t.toArrayValue); if (!u) return c; const d = u.length, f = d === 1, p = !!n.parts; for (let m = 0; m < d; m++) { - const h = t.details[m], v = t.details[Fk(u, m)], b = Ko(h.minW, v == null ? void 0 : v._minW), y = fn((s = n[o]) == null ? void 0 : s[u[m]], i); + const h = t.details[m], v = t.details[Vk(u, m)], b = Jo(h.minW, v == null ? void 0 : v._minW), y = hn((s = n[o]) == null ? void 0 : s[u[m]], i); if (y) { if (p) { (l = n.parts) == null || l.forEach((S) => { - ar(c, { + ir(c, { [S]: f ? y[S] : { [b]: y[S] } }); }); continue; } if (!p) { - f ? ar(c, y) : c[b] = y; + f ? ir(c, y) : c[b] = y; continue; } c[b] = y; @@ -7623,26 +7665,26 @@ function Nk(e) { return c; }; } -function jk(e) { +function Wk(e) { return (t) => { var r; - const { variant: n, size: o, theme: a } = t, i = Nk(a); - return ar( + const { variant: n, size: o, theme: a } = t, i = Lk(a); + return ir( {}, - fn((r = e.baseStyle) != null ? r : {}, t), + hn((r = e.baseStyle) != null ? r : {}, t), i(e, "sizes", o, t), i(e, "variants", n, t) ); }; } -function uv(e, t, r) { +function fv(e, t, r) { var n, o, a; return (a = (o = (n = e.__cssMap) == null ? void 0 : n[`${t}.${r}`]) == null ? void 0 : o.varRef) != null ? a : r; } -function Fr(e) { - return mk(e, ["styleConfig", "size", "variant", "colorScheme"]); +function jr(e) { + return xk(e, ["styleConfig", "size", "variant", "colorScheme"]); } -var Bk = [ +var Uk = [ "borders", "breakpoints", "colors", @@ -7662,22 +7704,22 @@ var Bk = [ "transition", "zIndices" ]; -function zk(e) { - return zt(e) ? Bk.every( +function Hk(e) { + return Vt(e) ? Uk.every( (t) => Object.prototype.hasOwnProperty.call(e, t) ) : !1; } -var Vk = { +var Yk = { common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform", colors: "background-color, border-color, color, fill, stroke", dimensions: "width, height", position: "left, right, top, bottom", background: "background-color, background-image, background-position" -}, Lk = { +}, Gk = { "ease-in": "cubic-bezier(0.4, 0, 1, 1)", "ease-out": "cubic-bezier(0, 0, 0.2, 1)", "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)" -}, Wk = { +}, qk = { "ultra-fast": "50ms", faster: "100ms", fast: "150ms", @@ -7685,11 +7727,11 @@ var Vk = { slow: "300ms", slower: "400ms", "ultra-slow": "500ms" -}, Uk = { - property: Vk, - easing: Lk, - duration: Wk -}, Hk = Uk, Yk = { +}, Xk = { + property: Yk, + easing: Gk, + duration: qk +}, Kk = Xk, Zk = { hide: -1, auto: "auto", base: 0, @@ -7703,20 +7745,20 @@ var Vk = { skipLink: 1600, toast: 1700, tooltip: 1800 -}, qk = Yk, Gk = { +}, Jk = Zk, Qk = { none: 0, "1px": "1px solid", "2px": "2px solid", "4px": "4px solid", "8px": "8px solid" -}, Xk = Gk, Kk = { +}, eE = Qk, tE = { base: "0em", sm: "30em", md: "48em", lg: "62em", xl: "80em", "2xl": "96em" -}, Zk = Kk, Jk = { +}, rE = tE, nE = { transparent: "transparent", current: "currentColor", black: "#000000", @@ -7937,7 +7979,7 @@ var Vk = { 800: "#005885", 900: "#003F5E" } -}, Qk = Jk, eE = { +}, oE = nE, aE = { none: "0", sm: "0.125rem", base: "0.25rem", @@ -7947,7 +7989,7 @@ var Vk = { "2xl": "1rem", "3xl": "1.5rem", full: "9999px" -}, tE = eE, rE = { +}, iE = aE, sE = { xs: "0 0 0 1px rgba(0, 0, 0, 0.05)", sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", @@ -7959,7 +8001,7 @@ var Vk = { inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)", none: "none", "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px" -}, nE = rE, oE = { +}, lE = sE, cE = { none: 0, sm: "4px", base: "8px", @@ -7968,7 +8010,7 @@ var Vk = { xl: "24px", "2xl": "40px", "3xl": "64px" -}, aE = oE, iE = { +}, uE = cE, dE = { letterSpacings: { tighter: "-0.05em", tight: "-0.025em", @@ -8027,7 +8069,7 @@ var Vk = { "8xl": "6rem", "9xl": "8rem" } -}, dv = iE, fv = { +}, pv = dE, hv = { px: "1px", 0.5: "0.125rem", 1: "0.25rem", @@ -8061,7 +8103,7 @@ var Vk = { 72: "18rem", 80: "20rem", 96: "24rem" -}, sE = { +}, fE = { max: "max-content", min: "min-content", full: "100%", @@ -8080,28 +8122,28 @@ var Vk = { "7xl": "80rem", "8xl": "90rem", prose: "60ch" -}, lE = { +}, pE = { sm: "640px", md: "768px", lg: "1024px", xl: "1280px" -}, cE = { - ...fv, - ...sE, - container: lE -}, pv = cE, hv = { - breakpoints: Zk, - zIndices: qk, - radii: tE, - blur: aE, - colors: Qk, - ...dv, - sizes: pv, - shadows: nE, - space: fv, - borders: Xk, - transition: Hk -}, { defineMultiStyleConfig: uE, definePartsStyle: Zo } = Ke([ +}, hE = { + ...hv, + ...fE, + container: pE +}, mv = hE, vv = { + breakpoints: rE, + zIndices: Jk, + radii: iE, + blur: uE, + colors: oE, + ...pv, + sizes: mv, + shadows: lE, + space: hv, + borders: eE, + transition: Kk +}, { defineMultiStyleConfig: mE, definePartsStyle: Qo } = Ke([ "stepper", "step", "title", @@ -8110,7 +8152,7 @@ var Vk = { "separator", "icon", "number" -]), Wr = me("stepper-indicator-size"), to = me("stepper-icon-size"), ro = me("stepper-title-font-size"), Jo = me("stepper-description-font-size"), Wo = me("stepper-accent-color"), dE = Zo(({ colorScheme: e }) => ({ +]), Hr = me("stepper-indicator-size"), no = me("stepper-icon-size"), oo = me("stepper-title-font-size"), ea = me("stepper-description-font-size"), Ho = me("stepper-accent-color"), vE = Qo(({ colorScheme: e }) => ({ stepper: { display: "flex", justifyContent: "space-between", @@ -8123,21 +8165,21 @@ var Vk = { flexDirection: "row", alignItems: "center" }, - [Wo.variable]: `colors.${e}.500`, + [Ho.variable]: `colors.${e}.500`, _dark: { - [Wo.variable]: `colors.${e}.200` + [Ho.variable]: `colors.${e}.200` } }, title: { - fontSize: ro.reference, + fontSize: oo.reference, fontWeight: "medium" }, description: { - fontSize: Jo.reference, + fontSize: ea.reference, color: "chakra-subtle-text" }, number: { - fontSize: ro.reference + fontSize: oo.reference }, step: { flexShrink: 0, @@ -8154,23 +8196,23 @@ var Vk = { }, icon: { flexShrink: 0, - width: to.reference, - height: to.reference + width: no.reference, + height: no.reference }, indicator: { flexShrink: 0, borderRadius: "full", - width: Wr.reference, - height: Wr.reference, + width: Hr.reference, + height: Hr.reference, display: "flex", justifyContent: "center", alignItems: "center", "&[data-status=active]": { borderWidth: "2px", - borderColor: Wo.reference + borderColor: Ho.reference }, "&[data-status=complete]": { - bg: Wo.reference, + bg: Ho.reference, color: "chakra-inverse-text" }, "&[data-status=incomplete]": { @@ -8181,7 +8223,7 @@ var Vk = { bg: "chakra-border-color", flex: "1", "&[data-status=complete]": { - bg: Wo.reference + bg: Ho.reference }, "&[data-orientation=horizontal]": { width: "100%", @@ -8192,44 +8234,44 @@ var Vk = { width: "2px", position: "absolute", height: "100%", - maxHeight: `calc(100% - ${Wr.reference} - 8px)`, - top: `calc(${Wr.reference} + 4px)`, - insetStart: `calc(${Wr.reference} / 2 - 1px)` + maxHeight: `calc(100% - ${Hr.reference} - 8px)`, + top: `calc(${Hr.reference} + 4px)`, + insetStart: `calc(${Hr.reference} / 2 - 1px)` } } -})), fE = uE({ - baseStyle: dE, +})), gE = mE({ + baseStyle: vE, sizes: { - xs: Zo({ + xs: Qo({ stepper: { - [Wr.variable]: "sizes.4", - [to.variable]: "sizes.3", - [ro.variable]: "fontSizes.xs", - [Jo.variable]: "fontSizes.xs" + [Hr.variable]: "sizes.4", + [no.variable]: "sizes.3", + [oo.variable]: "fontSizes.xs", + [ea.variable]: "fontSizes.xs" } }), - sm: Zo({ + sm: Qo({ stepper: { - [Wr.variable]: "sizes.6", - [to.variable]: "sizes.4", - [ro.variable]: "fontSizes.sm", - [Jo.variable]: "fontSizes.xs" + [Hr.variable]: "sizes.6", + [no.variable]: "sizes.4", + [oo.variable]: "fontSizes.sm", + [ea.variable]: "fontSizes.xs" } }), - md: Zo({ + md: Qo({ stepper: { - [Wr.variable]: "sizes.8", - [to.variable]: "sizes.5", - [ro.variable]: "fontSizes.md", - [Jo.variable]: "fontSizes.sm" + [Hr.variable]: "sizes.8", + [no.variable]: "sizes.5", + [oo.variable]: "fontSizes.md", + [ea.variable]: "fontSizes.sm" } }), - lg: Zo({ + lg: Qo({ stepper: { - [Wr.variable]: "sizes.10", - [to.variable]: "sizes.6", - [ro.variable]: "fontSizes.lg", - [Jo.variable]: "fontSizes.md" + [Hr.variable]: "sizes.10", + [no.variable]: "sizes.6", + [oo.variable]: "fontSizes.lg", + [ea.variable]: "fontSizes.md" } }) }, @@ -8290,50 +8332,50 @@ function Ue(e, t = {}) { __type: {} }; } -var pE = Ue("accordion").parts("root", "container", "button", "panel").extend("icon"), hE = Ue("alert").parts("title", "description", "container").extend("icon", "spinner"), mE = Ue("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), vE = Ue("breadcrumb").parts("link", "item", "container").extend("separator"); +var bE = Ue("accordion").parts("root", "container", "button", "panel").extend("icon"), yE = Ue("alert").parts("title", "description", "container").extend("icon", "spinner"), xE = Ue("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), SE = Ue("breadcrumb").parts("link", "item", "container").extend("separator"); Ue("button").parts(); -var gE = Ue("checkbox").parts("control", "icon", "container").extend("label"); +var wE = Ue("checkbox").parts("control", "icon", "container").extend("label"); Ue("progress").parts("track", "filledTrack").extend("label"); -var bE = Ue("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), yE = Ue("editable").parts( +var CE = Ue("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), _E = Ue("editable").parts( "preview", "input", "textarea" -), xE = Ue("form").parts( +), kE = Ue("form").parts( "container", "requiredIndicator", "helperText" -), SE = Ue("formError").parts("text", "icon"), wE = Ue("input").parts("addon", "field", "element"), CE = Ue("list").parts("container", "item", "icon"), _E = Ue("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"), kE = Ue("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), EE = Ue("numberinput").parts( +), EE = Ue("formError").parts("text", "icon"), PE = Ue("input").parts("addon", "field", "element"), TE = Ue("list").parts("container", "item", "icon"), AE = Ue("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"), OE = Ue("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), RE = Ue("numberinput").parts( "root", "field", "stepperGroup", "stepper" ); Ue("pininput").parts("field"); -var PE = Ue("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), TE = Ue("progress").parts( +var $E = Ue("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), DE = Ue("progress").parts( "label", "filledTrack", "track" -), AE = Ue("radio").parts( +), ME = Ue("radio").parts( "container", "control", "label" -), OE = Ue("select").parts("field", "icon"), RE = Ue("slider").parts( +), IE = Ue("select").parts("field", "icon"), FE = Ue("slider").parts( "container", "track", "thumb", "filledTrack", "mark" -), $E = Ue("stat").parts( +), NE = Ue("stat").parts( "container", "label", "helpText", "number", "icon" -), DE = Ue("switch").parts( +), jE = Ue("switch").parts( "container", "track", "thumb" -), ME = Ue("table").parts( +), BE = Ue("table").parts( "table", "thead", "tbody", @@ -8342,135 +8384,135 @@ var PE = Ue("popover").parts("content", "header", "body", "footer").extend("popp "td", "tfoot", "caption" -), IE = Ue("tabs").parts( +), zE = Ue("tabs").parts( "root", "tab", "tablist", "tabpanel", "tabpanels", "indicator" -), FE = Ue("tag").parts( +), VE = Ue("tag").parts( "container", "label", "closeButton" -), NE = Ue("card").parts( +), LE = Ue("card").parts( "container", "header", "body", "footer" ); -function Rn(e, t, r) { +function In(e, t, r) { return Math.min(Math.max(e, r), t); } -class jE extends Error { +class WE extends Error { constructor(t) { super(`Failed to parse color: "${t}"`); } } -var Qo = jE; +var ta = WE; function Vu(e) { if (typeof e != "string") - throw new Qo(e); + throw new ta(e); if (e.trim().toLowerCase() === "transparent") return [0, 0, 0, 0]; let t = e.trim(); - t = YE.test(e) ? VE(e) : e; - const r = LE.exec(t); + t = ZE.test(e) ? YE(e) : e; + const r = GE.exec(t); if (r) { const i = Array.from(r).slice(1); - return [...i.slice(0, 3).map((s) => parseInt(Aa(s, 2), 16)), parseInt(Aa(i[3] || "f", 2), 16) / 255]; + return [...i.slice(0, 3).map((s) => parseInt(Ra(s, 2), 16)), parseInt(Ra(i[3] || "f", 2), 16) / 255]; } - const n = WE.exec(t); + const n = qE.exec(t); if (n) { const i = Array.from(n).slice(1); return [...i.slice(0, 3).map((s) => parseInt(s, 16)), parseInt(i[3] || "ff", 16) / 255]; } - const o = UE.exec(t); + const o = XE.exec(t); if (o) { const i = Array.from(o).slice(1); return [...i.slice(0, 3).map((s) => parseInt(s, 10)), parseFloat(i[3] || "1")]; } - const a = HE.exec(t); + const a = KE.exec(t); if (a) { const [i, s, l, c] = Array.from(a).slice(1).map(parseFloat); - if (Rn(0, 100, s) !== s) - throw new Qo(e); - if (Rn(0, 100, l) !== l) - throw new Qo(e); - return [...qE(i, s, l), Number.isNaN(c) ? 1 : c]; + if (In(0, 100, s) !== s) + throw new ta(e); + if (In(0, 100, l) !== l) + throw new ta(e); + return [...JE(i, s, l), Number.isNaN(c) ? 1 : c]; } - throw new Qo(e); + throw new ta(e); } -function BE(e) { +function UE(e) { let t = 5381, r = e.length; for (; r; ) t = t * 33 ^ e.charCodeAt(--r); return (t >>> 0) % 2341; } -const Vf = (e) => parseInt(e.replace(/_/g, ""), 36), zE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => { - const r = Vf(t.substring(0, 3)), n = Vf(t.substring(3)).toString(16); +const Lf = (e) => parseInt(e.replace(/_/g, ""), 36), HE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => { + const r = Lf(t.substring(0, 3)), n = Lf(t.substring(3)).toString(16); let o = ""; for (let a = 0; a < 6 - n.length; a++) o += "0"; return e[r] = `${o}${n}`, e; }, {}); -function VE(e) { - const t = e.toLowerCase().trim(), r = zE[BE(t)]; +function YE(e) { + const t = e.toLowerCase().trim(), r = HE[UE(t)]; if (!r) - throw new Qo(e); + throw new ta(e); return `#${r}`; } -const Aa = (e, t) => Array.from(Array(t)).map(() => e).join(""), LE = new RegExp(`^#${Aa("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), WE = new RegExp(`^#${Aa("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), UE = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Aa(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), HE = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, YE = /^[a-z]+$/i, Lf = (e) => Math.round(e * 255), qE = (e, t, r) => { +const Ra = (e, t) => Array.from(Array(t)).map(() => e).join(""), GE = new RegExp(`^#${Ra("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), qE = new RegExp(`^#${Ra("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), XE = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ra(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), KE = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, ZE = /^[a-z]+$/i, Wf = (e) => Math.round(e * 255), JE = (e, t, r) => { let n = r / 100; if (t === 0) - return [n, n, n].map(Lf); + return [n, n, n].map(Wf); const o = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * (t / 100), i = a * (1 - Math.abs(o % 2 - 1)); let s = 0, l = 0, c = 0; o >= 0 && o < 1 ? (s = a, l = i) : o >= 1 && o < 2 ? (s = i, l = a) : o >= 2 && o < 3 ? (l = a, c = i) : o >= 3 && o < 4 ? (l = i, c = a) : o >= 4 && o < 5 ? (s = i, c = a) : o >= 5 && o < 6 && (s = a, c = i); const u = n - a / 2, d = s + u, f = l + u, p = c + u; - return [d, f, p].map(Lf); + return [d, f, p].map(Wf); }; -function GE(e, t, r, n) { - return `rgba(${Rn(0, 255, e).toFixed()}, ${Rn(0, 255, t).toFixed()}, ${Rn(0, 255, r).toFixed()}, ${parseFloat(Rn(0, 1, n).toFixed(3))})`; +function QE(e, t, r, n) { + return `rgba(${In(0, 255, e).toFixed()}, ${In(0, 255, t).toFixed()}, ${In(0, 255, r).toFixed()}, ${parseFloat(In(0, 1, n).toFixed(3))})`; } -function XE(e, t) { +function eP(e, t) { const [r, n, o, a] = Vu(e); - return GE(r, n, o, a - t); + return QE(r, n, o, a - t); } -function KE(e) { +function tP(e) { const [t, r, n, o] = Vu(e); let a = (i) => { - const s = Rn(0, 255, i).toString(16); + const s = In(0, 255, i).toString(16); return s.length === 1 ? `0${s}` : s; }; return `#${a(t)}${a(r)}${a(n)}${o < 1 ? a(Math.round(o * 255)) : ""}`; } -function ZE(e, t, r, n, o) { +function rP(e, t, r, n, o) { for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++) e = e ? e[t[n]] : o; return e === o ? r : e; } -var JE = (e) => Object.keys(e).length === 0, is = (e, t, r) => { - const n = ZE(e, `colors.${t}`, t); +var nP = (e) => Object.keys(e).length === 0, ls = (e, t, r) => { + const n = rP(e, `colors.${t}`, t); try { - return KE(n), n; + return tP(n), n; } catch { return r ?? "#000000"; } -}, gr = (e, t, r) => { +}, yr = (e, t, r) => { var n; - return (n = uv(e, "colors", t)) != null ? n : r; -}, QE = (e) => { + return (n = fv(e, "colors", t)) != null ? n : r; +}, oP = (e) => { const [t, r, n] = Vu(e); return (t * 299 + r * 587 + n * 114) / 1e3; -}, eP = (e) => (t) => { - const r = is(t, e); - return QE(r) < 128 ? "dark" : "light"; -}, tP = (e) => (t) => eP(e)(t) === "dark", Co = (e, t) => (r) => { - const n = is(r, e); - return XE(n, 1 - t); +}, aP = (e) => (t) => { + const r = ls(t, e); + return oP(r) < 128 ? "dark" : "light"; +}, iP = (e) => (t) => aP(e)(t) === "dark", ko = (e, t) => (r) => { + const n = ls(r, e); + return eP(n, 1 - t); }; -function Wf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { +function Uf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { return { backgroundImage: `linear-gradient( 45deg, @@ -8485,12 +8527,12 @@ function Wf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { backgroundSize: `${e} ${e}` }; } -var rP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`; -function nP(e) { - const t = rP(); - return !e || JE(e) ? t : e.string && e.colors ? aP(e.string, e.colors) : e.string && !e.colors ? oP(e.string) : e.colors && !e.string ? iP(e.colors) : t; +var sP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`; +function lP(e) { + const t = sP(); + return !e || nP(e) ? t : e.string && e.colors ? uP(e.string, e.colors) : e.string && !e.colors ? cP(e.string) : e.colors && !e.string ? dP(e.colors) : t; } -function oP(e) { +function cP(e) { let t = 0; if (e.length === 0) return t.toString(); @@ -8503,7 +8545,7 @@ function oP(e) { } return r; } -function aP(e, t) { +function uP(e, t) { let r = 0; if (e.length === 0) return t[0]; @@ -8511,7 +8553,7 @@ function aP(e, t) { r = e.charCodeAt(n) + ((r << 5) - r), r = r & r; return r = (r % t.length + t.length) % t.length, t[r]; } -function iP(e) { +function dP(e) { return e[Math.floor(Math.random() * e.length)]; } function ue(e, t) { @@ -8521,70 +8563,70 @@ function Lu(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t ? t === "vertical" ? r : n : {}; } -function mv(e) { - return zt(e) && e.reference ? e.reference : String(e); +function gv(e) { + return Vt(e) && e.reference ? e.reference : String(e); } -var Bs = (e, ...t) => t.map(mv).join(` ${e} `).replace(/calc/g, ""), Uf = (...e) => `calc(${Bs("+", ...e)})`, Hf = (...e) => `calc(${Bs("-", ...e)})`, Nc = (...e) => `calc(${Bs("*", ...e)})`, Yf = (...e) => `calc(${Bs("/", ...e)})`, qf = (e) => { - const t = mv(e); +var Vs = (e, ...t) => t.map(gv).join(` ${e} `).replace(/calc/g, ""), Hf = (...e) => `calc(${Vs("+", ...e)})`, Yf = (...e) => `calc(${Vs("-", ...e)})`, Nc = (...e) => `calc(${Vs("*", ...e)})`, Gf = (...e) => `calc(${Vs("/", ...e)})`, qf = (e) => { + const t = gv(e); return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Nc(t, -1); -}, Ur = Object.assign( +}, Yr = Object.assign( (e) => ({ - add: (...t) => Ur(Uf(e, ...t)), - subtract: (...t) => Ur(Hf(e, ...t)), - multiply: (...t) => Ur(Nc(e, ...t)), - divide: (...t) => Ur(Yf(e, ...t)), - negate: () => Ur(qf(e)), + add: (...t) => Yr(Hf(e, ...t)), + subtract: (...t) => Yr(Yf(e, ...t)), + multiply: (...t) => Yr(Nc(e, ...t)), + divide: (...t) => Yr(Gf(e, ...t)), + negate: () => Yr(qf(e)), toString: () => e.toString() }), { - add: Uf, - subtract: Hf, + add: Hf, + subtract: Yf, multiply: Nc, - divide: Yf, + divide: Gf, negate: qf } ); -function sP(e) { +function fP(e) { return !Number.isInteger(parseFloat(e.toString())); } -function lP(e, t = "-") { +function pP(e, t = "-") { return e.replace(/\s+/g, t); } -function vv(e) { - const t = lP(e.toString()); - return t.includes("\\.") ? e : sP(e) ? t.replace(".", "\\.") : e; +function bv(e) { + const t = pP(e.toString()); + return t.includes("\\.") ? e : fP(e) ? t.replace(".", "\\.") : e; } -function cP(e, t = "") { - return [t, vv(e)].filter(Boolean).join("-"); +function hP(e, t = "") { + return [t, bv(e)].filter(Boolean).join("-"); } -function uP(e, t) { - return `var(${vv(e)}${t ? `, ${t}` : ""})`; +function mP(e, t) { + return `var(${bv(e)}${t ? `, ${t}` : ""})`; } -function dP(e, t = "") { - return `--${cP(e, t)}`; +function vP(e, t = "") { + return `--${hP(e, t)}`; } -function bt(e, t) { - const r = dP(e, t == null ? void 0 : t.prefix); +function yt(e, t) { + const r = vP(e, t == null ? void 0 : t.prefix); return { variable: r, - reference: uP(r, fP(t == null ? void 0 : t.fallback)) + reference: mP(r, gP(t == null ? void 0 : t.fallback)) }; } -function fP(e) { +function gP(e) { return typeof e == "string" ? e : e == null ? void 0 : e.reference; } -var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt("switch-track-width"), Mn = bt("switch-track-height"), kl = bt("switch-track-diff"), hP = Ur.subtract(ia, Mn), jc = bt("switch-thumb-x"), Uo = bt("switch-bg"), mP = (e) => { +var { defineMultiStyleConfig: bP, definePartsStyle: Bi } = Ke(jE.keys), la = yt("switch-track-width"), Nn = yt("switch-track-height"), El = yt("switch-track-diff"), yP = Yr.subtract(la, Nn), jc = yt("switch-thumb-x"), Yo = yt("switch-bg"), xP = (e) => { const { colorScheme: t } = e; return { borderRadius: "full", p: "0.5", - width: [ia.reference], - height: [Mn.reference], + width: [la.reference], + height: [Nn.reference], transitionProperty: "common", transitionDuration: "fast", - [Uo.variable]: "colors.gray.300", + [Yo.variable]: "colors.gray.300", _dark: { - [Uo.variable]: "colors.whiteAlpha.400" + [Yo.variable]: "colors.whiteAlpha.400" }, _focusVisible: { boxShadow: "outline" @@ -8594,60 +8636,60 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( cursor: "not-allowed" }, _checked: { - [Uo.variable]: `colors.${t}.500`, + [Yo.variable]: `colors.${t}.500`, _dark: { - [Uo.variable]: `colors.${t}.200` + [Yo.variable]: `colors.${t}.200` } }, - bg: Uo.reference + bg: Yo.reference }; -}, vP = { +}, SP = { bg: "white", transitionProperty: "transform", transitionDuration: "normal", borderRadius: "inherit", - width: [Mn.reference], - height: [Mn.reference], + width: [Nn.reference], + height: [Nn.reference], _checked: { transform: `translateX(${jc.reference})` } -}, gP = Ni((e) => ({ +}, wP = Bi((e) => ({ container: { - [kl.variable]: hP, - [jc.variable]: kl.reference, + [El.variable]: yP, + [jc.variable]: El.reference, _rtl: { - [jc.variable]: Ur(kl).negate().toString() + [jc.variable]: Yr(El).negate().toString() } }, - track: mP(e), - thumb: vP -})), bP = { - sm: Ni({ + track: xP(e), + thumb: SP +})), CP = { + sm: Bi({ container: { - [ia.variable]: "1.375rem", - [Mn.variable]: "sizes.3" + [la.variable]: "1.375rem", + [Nn.variable]: "sizes.3" } }), - md: Ni({ + md: Bi({ container: { - [ia.variable]: "1.875rem", - [Mn.variable]: "sizes.4" + [la.variable]: "1.875rem", + [Nn.variable]: "sizes.4" } }), - lg: Ni({ + lg: Bi({ container: { - [ia.variable]: "2.875rem", - [Mn.variable]: "sizes.6" + [la.variable]: "2.875rem", + [Nn.variable]: "sizes.6" } }) -}, yP = pP({ - baseStyle: gP, - sizes: bP, +}, _P = bP({ + baseStyle: wP, + sizes: CP, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: xP, definePartsStyle: co } = Ke(ME.keys), SP = co({ +}), { defineMultiStyleConfig: kP, definePartsStyle: fo } = Ke(BE.keys), EP = fo({ table: { fontVariantNumeric: "lining-nums tabular-nums", borderCollapse: "collapse", @@ -8669,23 +8711,23 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( textAlign: "center", fontWeight: "medium" } -}), ss = { +}), cs = { "&[data-is-numeric=true]": { textAlign: "end" } -}, wP = co((e) => { +}, PP = fo((e) => { const { colorScheme: t } = e; return { th: { color: ue("gray.600", "gray.400")(e), borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ss + ...cs }, td: { borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ss + ...cs }, caption: { color: ue("gray.600", "gray.100")(e) @@ -8698,19 +8740,19 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( } } }; -}), CP = co((e) => { +}), TP = fo((e) => { const { colorScheme: t } = e; return { th: { color: ue("gray.600", "gray.400")(e), borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ss + ...cs }, td: { borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ss + ...cs }, caption: { color: ue("gray.600", "gray.100")(e) @@ -8736,12 +8778,12 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( } } }; -}), _P = { - simple: wP, - striped: CP, +}), AP = { + simple: PP, + striped: TP, unstyled: {} -}, kP = { - sm: co({ +}, OP = { + sm: fo({ th: { px: "4", py: "1", @@ -8760,7 +8802,7 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( fontSize: "xs" } }), - md: co({ + md: fo({ th: { px: "6", py: "3", @@ -8778,7 +8820,7 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( fontSize: "sm" } }), - lg: co({ + lg: fo({ th: { px: "8", py: "4", @@ -8796,21 +8838,21 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( fontSize: "md" } }) -}, EP = xP({ - baseStyle: SP, - variants: _P, - sizes: kP, +}, RP = kP({ + baseStyle: EP, + variants: AP, + sizes: OP, defaultProps: { variant: "simple", size: "md", colorScheme: "gray" } -}), Bt = me("tabs-color"), vr = me("tabs-bg"), mi = me("tabs-border-color"), { defineMultiStyleConfig: PP, definePartsStyle: $r } = Ke(IE.keys), TP = (e) => { +}), zt = me("tabs-color"), gr = me("tabs-bg"), bi = me("tabs-border-color"), { defineMultiStyleConfig: $P, definePartsStyle: Mr } = Ke(zE.keys), DP = (e) => { const { orientation: t } = e; return { display: t === "vertical" ? "flex" : "block" }; -}, AP = (e) => { +}, MP = (e) => { const { isFitted: t } = e; return { flex: t ? 1 : void 0, @@ -8825,7 +8867,7 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( opacity: 0.4 } }; -}, OP = (e) => { +}, IP = (e) => { const { align: t = "start", orientation: r } = e; return { justifyContent: { @@ -8835,36 +8877,36 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( }[t], flexDirection: r === "vertical" ? "column" : "row" }; -}, RP = { +}, FP = { p: 4 -}, $P = $r((e) => ({ - root: TP(e), - tab: AP(e), - tablist: OP(e), - tabpanel: RP -})), DP = { - sm: $r({ +}, NP = Mr((e) => ({ + root: DP(e), + tab: MP(e), + tablist: IP(e), + tabpanel: FP +})), jP = { + sm: Mr({ tab: { py: 1, px: 4, fontSize: "sm" } }), - md: $r({ + md: Mr({ tab: { fontSize: "md", py: 2, px: 4 } }), - lg: $r({ + lg: Mr({ tab: { fontSize: "lg", py: 3, px: 4 } }) -}, MP = $r((e) => { +}, BP = Mr((e) => { const { colorScheme: t, orientation: r } = e, n = r === "vertical", o = n ? "borderStart" : "borderBottom", a = n ? "marginStart" : "marginBottom"; return { tablist: { @@ -8876,26 +8918,26 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( borderColor: "transparent", [a]: "-2px", _selected: { - [Bt.variable]: `colors.${t}.600`, + [zt.variable]: `colors.${t}.600`, _dark: { - [Bt.variable]: `colors.${t}.300` + [zt.variable]: `colors.${t}.300` }, borderColor: "currentColor" }, _active: { - [vr.variable]: "colors.gray.200", + [gr.variable]: "colors.gray.200", _dark: { - [vr.variable]: "colors.whiteAlpha.300" + [gr.variable]: "colors.whiteAlpha.300" } }, _disabled: { _active: { bg: "none" } }, - color: Bt.reference, - bg: vr.reference + color: zt.reference, + bg: gr.reference } }; -}), IP = $r((e) => { +}), zP = Mr((e) => { const { colorScheme: t } = e; return { tab: { @@ -8903,18 +8945,18 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( border: "1px solid", borderColor: "transparent", mb: "-1px", - [mi.variable]: "transparent", + [bi.variable]: "transparent", _selected: { - [Bt.variable]: `colors.${t}.600`, - [mi.variable]: "colors.white", + [zt.variable]: `colors.${t}.600`, + [bi.variable]: "colors.white", _dark: { - [Bt.variable]: `colors.${t}.300`, - [mi.variable]: "colors.gray.800" + [zt.variable]: `colors.${t}.300`, + [bi.variable]: "colors.gray.800" }, borderColor: "inherit", - borderBottomColor: mi.reference + borderBottomColor: bi.reference }, - color: Bt.reference + color: zt.reference }, tablist: { mb: "-1px", @@ -8922,33 +8964,33 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( borderColor: "inherit" } }; -}), FP = $r((e) => { +}), VP = Mr((e) => { const { colorScheme: t } = e; return { tab: { border: "1px solid", borderColor: "inherit", - [vr.variable]: "colors.gray.50", + [gr.variable]: "colors.gray.50", _dark: { - [vr.variable]: "colors.whiteAlpha.50" + [gr.variable]: "colors.whiteAlpha.50" }, mb: "-1px", _notLast: { marginEnd: "-1px" }, _selected: { - [vr.variable]: "colors.white", - [Bt.variable]: `colors.${t}.600`, + [gr.variable]: "colors.white", + [zt.variable]: `colors.${t}.600`, _dark: { - [vr.variable]: "colors.gray.800", - [Bt.variable]: `colors.${t}.300` + [gr.variable]: "colors.gray.800", + [zt.variable]: `colors.${t}.300` }, borderColor: "inherit", borderTopColor: "currentColor", borderBottomColor: "transparent" }, - color: Bt.reference, - bg: vr.reference + color: zt.reference, + bg: gr.reference }, tablist: { mb: "-1px", @@ -8956,7 +8998,7 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( borderColor: "inherit" } }; -}), NP = $r((e) => { +}), LP = Mr((e) => { const { colorScheme: t, theme: r } = e; return { tab: { @@ -8964,120 +9006,120 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( fontWeight: "semibold", color: "gray.600", _selected: { - color: is(r, `${t}.700`), - bg: is(r, `${t}.100`) + color: ls(r, `${t}.700`), + bg: ls(r, `${t}.100`) } } }; -}), jP = $r((e) => { +}), WP = Mr((e) => { const { colorScheme: t } = e; return { tab: { borderRadius: "full", fontWeight: "semibold", - [Bt.variable]: "colors.gray.600", + [zt.variable]: "colors.gray.600", _dark: { - [Bt.variable]: "inherit" + [zt.variable]: "inherit" }, _selected: { - [Bt.variable]: "colors.white", - [vr.variable]: `colors.${t}.600`, + [zt.variable]: "colors.white", + [gr.variable]: `colors.${t}.600`, _dark: { - [Bt.variable]: "colors.gray.800", - [vr.variable]: `colors.${t}.300` + [zt.variable]: "colors.gray.800", + [gr.variable]: `colors.${t}.300` } }, - color: Bt.reference, - bg: vr.reference + color: zt.reference, + bg: gr.reference } }; -}), BP = $r({}), zP = { - line: MP, - enclosed: IP, - "enclosed-colored": FP, - "soft-rounded": NP, - "solid-rounded": jP, - unstyled: BP -}, VP = PP({ - baseStyle: $P, - sizes: DP, - variants: zP, +}), UP = Mr({}), HP = { + line: BP, + enclosed: zP, + "enclosed-colored": VP, + "soft-rounded": LP, + "solid-rounded": WP, + unstyled: UP +}, YP = $P({ + baseStyle: NP, + sizes: jP, + variants: HP, defaultProps: { size: "md", variant: "line", colorScheme: "blue" } -}), ft = ck("badge", ["bg", "color", "shadow"]), LP = { +}), pt = hk("badge", ["bg", "color", "shadow"]), GP = { px: 1, textTransform: "uppercase", fontSize: "xs", borderRadius: "sm", fontWeight: "bold", - bg: ft.bg.reference, - color: ft.color.reference, - boxShadow: ft.shadow.reference -}, WP = (e) => { - const { colorScheme: t, theme: r } = e, n = Co(`${t}.500`, 0.6)(r); + bg: pt.bg.reference, + color: pt.color.reference, + boxShadow: pt.shadow.reference +}, qP = (e) => { + const { colorScheme: t, theme: r } = e, n = ko(`${t}.500`, 0.6)(r); return { - [ft.bg.variable]: `colors.${t}.500`, - [ft.color.variable]: "colors.white", + [pt.bg.variable]: `colors.${t}.500`, + [pt.color.variable]: "colors.white", _dark: { - [ft.bg.variable]: n, - [ft.color.variable]: "colors.whiteAlpha.800" + [pt.bg.variable]: n, + [pt.color.variable]: "colors.whiteAlpha.800" } }; -}, UP = (e) => { - const { colorScheme: t, theme: r } = e, n = Co(`${t}.200`, 0.16)(r); +}, XP = (e) => { + const { colorScheme: t, theme: r } = e, n = ko(`${t}.200`, 0.16)(r); return { - [ft.bg.variable]: `colors.${t}.100`, - [ft.color.variable]: `colors.${t}.800`, + [pt.bg.variable]: `colors.${t}.100`, + [pt.color.variable]: `colors.${t}.800`, _dark: { - [ft.bg.variable]: n, - [ft.color.variable]: `colors.${t}.200` + [pt.bg.variable]: n, + [pt.color.variable]: `colors.${t}.200` } }; -}, HP = (e) => { - const { colorScheme: t, theme: r } = e, n = Co(`${t}.200`, 0.8)(r); +}, KP = (e) => { + const { colorScheme: t, theme: r } = e, n = ko(`${t}.200`, 0.8)(r); return { - [ft.color.variable]: `colors.${t}.500`, + [pt.color.variable]: `colors.${t}.500`, _dark: { - [ft.color.variable]: n + [pt.color.variable]: n }, - [ft.shadow.variable]: `inset 0 0 0px 1px ${ft.color.reference}` + [pt.shadow.variable]: `inset 0 0 0px 1px ${pt.color.reference}` }; -}, YP = { - solid: WP, - subtle: UP, - outline: HP -}, sa = { - baseStyle: LP, - variants: YP, +}, ZP = { + solid: qP, + subtle: XP, + outline: KP +}, ca = { + baseStyle: GP, + variants: ZP, defaultProps: { variant: "subtle", colorScheme: "gray" } -}, { defineMultiStyleConfig: qP, definePartsStyle: In } = Ke(FE.keys), Gf = me("tag-bg"), Xf = me("tag-color"), El = me("tag-shadow"), ji = me("tag-min-height"), Bi = me("tag-min-width"), zi = me("tag-font-size"), Vi = me("tag-padding-inline"), GP = { +}, { defineMultiStyleConfig: JP, definePartsStyle: jn } = Ke(VE.keys), Xf = me("tag-bg"), Kf = me("tag-color"), Pl = me("tag-shadow"), zi = me("tag-min-height"), Vi = me("tag-min-width"), Li = me("tag-font-size"), Wi = me("tag-padding-inline"), QP = { fontWeight: "medium", lineHeight: 1.2, outline: 0, - [Xf.variable]: ft.color.reference, - [Gf.variable]: ft.bg.reference, - [El.variable]: ft.shadow.reference, - color: Xf.reference, - bg: Gf.reference, - boxShadow: El.reference, + [Kf.variable]: pt.color.reference, + [Xf.variable]: pt.bg.reference, + [Pl.variable]: pt.shadow.reference, + color: Kf.reference, + bg: Xf.reference, + boxShadow: Pl.reference, borderRadius: "md", - minH: ji.reference, - minW: Bi.reference, - fontSize: zi.reference, - px: Vi.reference, + minH: zi.reference, + minW: Vi.reference, + fontSize: Li.reference, + px: Wi.reference, _focusVisible: { - [El.variable]: "shadows.outline" + [Pl.variable]: "shadows.outline" } -}, XP = { +}, eT = { lineHeight: 1.2, overflow: "visible" -}, KP = { +}, tT = { fontSize: "lg", w: "5", h: "5", @@ -9100,68 +9142,68 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( _active: { opacity: 1 } -}, ZP = In({ - container: GP, - label: XP, - closeButton: KP -}), JP = { - sm: In({ +}, rT = jn({ + container: QP, + label: eT, + closeButton: tT +}), nT = { + sm: jn({ container: { - [ji.variable]: "sizes.5", - [Bi.variable]: "sizes.5", - [zi.variable]: "fontSizes.xs", - [Vi.variable]: "space.2" + [zi.variable]: "sizes.5", + [Vi.variable]: "sizes.5", + [Li.variable]: "fontSizes.xs", + [Wi.variable]: "space.2" }, closeButton: { marginEnd: "-2px", marginStart: "0.35rem" } }), - md: In({ + md: jn({ container: { - [ji.variable]: "sizes.6", - [Bi.variable]: "sizes.6", - [zi.variable]: "fontSizes.sm", - [Vi.variable]: "space.2" + [zi.variable]: "sizes.6", + [Vi.variable]: "sizes.6", + [Li.variable]: "fontSizes.sm", + [Wi.variable]: "space.2" } }), - lg: In({ + lg: jn({ container: { - [ji.variable]: "sizes.8", - [Bi.variable]: "sizes.8", - [zi.variable]: "fontSizes.md", - [Vi.variable]: "space.3" + [zi.variable]: "sizes.8", + [Vi.variable]: "sizes.8", + [Li.variable]: "fontSizes.md", + [Wi.variable]: "space.3" } }) -}, QP = { - subtle: In((e) => { +}, oT = { + subtle: jn((e) => { var t; return { - container: (t = sa.variants) == null ? void 0 : t.subtle(e) + container: (t = ca.variants) == null ? void 0 : t.subtle(e) }; }), - solid: In((e) => { + solid: jn((e) => { var t; return { - container: (t = sa.variants) == null ? void 0 : t.solid(e) + container: (t = ca.variants) == null ? void 0 : t.solid(e) }; }), - outline: In((e) => { + outline: jn((e) => { var t; return { - container: (t = sa.variants) == null ? void 0 : t.outline(e) + container: (t = ca.variants) == null ? void 0 : t.outline(e) }; }) -}, eT = qP({ - variants: QP, - baseStyle: ZP, - sizes: JP, +}, aT = JP({ + variants: oT, + baseStyle: rT, + sizes: nT, defaultProps: { size: "md", variant: "subtle", colorScheme: "gray" } -}), { definePartsStyle: Hr, defineMultiStyleConfig: tT } = Ke(wE.keys), rT = Hr({ +}), { definePartsStyle: Gr, defineMultiStyleConfig: iT } = Ke(PE.keys), sT = Gr({ field: { width: "100%", minWidth: 0, @@ -9175,7 +9217,7 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( cursor: "not-allowed" } } -}), sn = { +}), cn = { lg: { fontSize: "lg", px: "4", @@ -9200,22 +9242,22 @@ var { defineMultiStyleConfig: pP, definePartsStyle: Ni } = Ke(DE.keys), ia = bt( h: "6", borderRadius: "sm" } -}, nT = { - lg: Hr({ - field: sn.lg, - addon: sn.lg +}, lT = { + lg: Gr({ + field: cn.lg, + addon: cn.lg }), - md: Hr({ - field: sn.md, - addon: sn.md + md: Gr({ + field: cn.md, + addon: cn.md }), - sm: Hr({ - field: sn.sm, - addon: sn.sm + sm: Gr({ + field: cn.sm, + addon: cn.sm }), - xs: Hr({ - field: sn.xs, - addon: sn.xs + xs: Gr({ + field: cn.xs, + addon: cn.xs }) }; function Wu(e) { @@ -9225,7 +9267,7 @@ function Wu(e) { errorBorderColor: r || ue("red.500", "red.300")(e) }; } -var oT = Hr((e) => { +var cT = Gr((e) => { const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Wu(e); return { field: { @@ -9240,13 +9282,13 @@ var oT = Hr((e) => { userSelect: "all" }, _invalid: { - borderColor: gr(t, n), - boxShadow: `0 0 0 1px ${gr(t, n)}` + borderColor: yr(t, n), + boxShadow: `0 0 0 1px ${yr(t, n)}` }, _focusVisible: { zIndex: 1, - borderColor: gr(t, r), - boxShadow: `0 0 0 1px ${gr(t, r)}` + borderColor: yr(t, r), + boxShadow: `0 0 0 1px ${yr(t, r)}` } }, addon: { @@ -9255,7 +9297,7 @@ var oT = Hr((e) => { bg: ue("gray.100", "whiteAlpha.300")(e) } }; -}), aT = Hr((e) => { +}), uT = Gr((e) => { const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Wu(e); return { field: { @@ -9270,11 +9312,11 @@ var oT = Hr((e) => { userSelect: "all" }, _invalid: { - borderColor: gr(t, n) + borderColor: yr(t, n) }, _focusVisible: { bg: "transparent", - borderColor: gr(t, r) + borderColor: yr(t, r) } }, addon: { @@ -9283,7 +9325,7 @@ var oT = Hr((e) => { bg: ue("gray.100", "whiteAlpha.50")(e) } }; -}), iT = Hr((e) => { +}), dT = Gr((e) => { const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Wu(e); return { field: { @@ -9297,12 +9339,12 @@ var oT = Hr((e) => { userSelect: "all" }, _invalid: { - borderColor: gr(t, n), - boxShadow: `0px 1px 0px 0px ${gr(t, n)}` + borderColor: yr(t, n), + boxShadow: `0px 1px 0px 0px ${yr(t, n)}` }, _focusVisible: { - borderColor: gr(t, r), - boxShadow: `0px 1px 0px 0px ${gr(t, r)}` + borderColor: yr(t, r), + boxShadow: `0px 1px 0px 0px ${yr(t, r)}` } }, addon: { @@ -9313,7 +9355,7 @@ var oT = Hr((e) => { bg: "transparent" } }; -}), sT = Hr({ +}), fT = Gr({ field: { bg: "transparent", px: "0", @@ -9324,26 +9366,26 @@ var oT = Hr((e) => { px: "0", height: "auto" } -}), lT = { - outline: oT, - filled: aT, - flushed: iT, - unstyled: sT -}, Ve = tT({ - baseStyle: rT, - sizes: nT, - variants: lT, +}), pT = { + outline: cT, + filled: uT, + flushed: dT, + unstyled: fT +}, Ve = iT({ + baseStyle: sT, + sizes: lT, + variants: pT, defaultProps: { size: "md", variant: "outline" } -}), Kf, cT = { - ...(Kf = Ve.baseStyle) == null ? void 0 : Kf.field, +}), Zf, hT = { + ...(Zf = Ve.baseStyle) == null ? void 0 : Zf.field, paddingY: "2", minHeight: "20", lineHeight: "short", verticalAlign: "top" -}, Zf, Jf, uT = { +}, Jf, Qf, mT = { outline: (e) => { var t, r; return (r = (t = Ve.variants) == null ? void 0 : t.outline(e).field) != null ? r : {}; @@ -9356,30 +9398,30 @@ var oT = Hr((e) => { var t, r; return (r = (t = Ve.variants) == null ? void 0 : t.filled(e).field) != null ? r : {}; }, - unstyled: (Jf = (Zf = Ve.variants) == null ? void 0 : Zf.unstyled.field) != null ? Jf : {} -}, Qf, ep, tp, rp, np, op, ap, ip, dT = { - xs: (ep = (Qf = Ve.sizes) == null ? void 0 : Qf.xs.field) != null ? ep : {}, - sm: (rp = (tp = Ve.sizes) == null ? void 0 : tp.sm.field) != null ? rp : {}, - md: (op = (np = Ve.sizes) == null ? void 0 : np.md.field) != null ? op : {}, - lg: (ip = (ap = Ve.sizes) == null ? void 0 : ap.lg.field) != null ? ip : {} -}, fT = { - baseStyle: cT, - sizes: dT, - variants: uT, + unstyled: (Qf = (Jf = Ve.variants) == null ? void 0 : Jf.unstyled.field) != null ? Qf : {} +}, ep, tp, rp, np, op, ap, ip, sp, vT = { + xs: (tp = (ep = Ve.sizes) == null ? void 0 : ep.xs.field) != null ? tp : {}, + sm: (np = (rp = Ve.sizes) == null ? void 0 : rp.sm.field) != null ? np : {}, + md: (ap = (op = Ve.sizes) == null ? void 0 : op.md.field) != null ? ap : {}, + lg: (sp = (ip = Ve.sizes) == null ? void 0 : ip.lg.field) != null ? sp : {} +}, gT = { + baseStyle: hT, + sizes: vT, + variants: mT, defaultProps: { size: "md", variant: "outline" } -}, gi = bt("tooltip-bg"), Pl = bt("tooltip-fg"), pT = bt("popper-arrow-bg"), hT = { - bg: gi.reference, - color: Pl.reference, - [gi.variable]: "colors.gray.700", - [Pl.variable]: "colors.whiteAlpha.900", +}, yi = yt("tooltip-bg"), Tl = yt("tooltip-fg"), bT = yt("popper-arrow-bg"), yT = { + bg: yi.reference, + color: Tl.reference, + [yi.variable]: "colors.gray.700", + [Tl.variable]: "colors.whiteAlpha.900", _dark: { - [gi.variable]: "colors.gray.300", - [Pl.variable]: "colors.gray.900" + [yi.variable]: "colors.gray.300", + [Tl.variable]: "colors.gray.900" }, - [pT.variable]: gi.reference, + [bT.variable]: yi.reference, px: "2", py: "0.5", borderRadius: "sm", @@ -9388,66 +9430,66 @@ var oT = Hr((e) => { boxShadow: "md", maxW: "xs", zIndex: "tooltip" -}, mT = { - baseStyle: hT -}, { defineMultiStyleConfig: vT, definePartsStyle: ea } = Ke(TE.keys), gT = (e) => { +}, xT = { + baseStyle: yT +}, { defineMultiStyleConfig: ST, definePartsStyle: ra } = Ke(DE.keys), wT = (e) => { const { colorScheme: t, theme: r, isIndeterminate: n, hasStripe: o } = e, a = ue( - Wf(), - Wf("1rem", "rgba(0,0,0,0.1)") + Uf(), + Uf("1rem", "rgba(0,0,0,0.1)") )(e), i = ue(`${t}.500`, `${t}.200`)(e), s = `linear-gradient( to right, transparent 0%, - ${gr(r, i)} 50%, + ${yr(r, i)} 50%, transparent 100% )`; return { ...!n && o && a, ...n ? { bgImage: s } : { bgColor: i } }; -}, bT = { +}, CT = { lineHeight: "1", fontSize: "0.25em", fontWeight: "bold", color: "white" -}, yT = (e) => ({ +}, _T = (e) => ({ bg: ue("gray.100", "whiteAlpha.300")(e) -}), xT = (e) => ({ +}), kT = (e) => ({ transitionProperty: "common", transitionDuration: "slow", - ...gT(e) -}), ST = ea((e) => ({ - label: bT, - filledTrack: xT(e), - track: yT(e) -})), wT = { - xs: ea({ + ...wT(e) +}), ET = ra((e) => ({ + label: CT, + filledTrack: kT(e), + track: _T(e) +})), PT = { + xs: ra({ track: { h: "1" } }), - sm: ea({ + sm: ra({ track: { h: "2" } }), - md: ea({ + md: ra({ track: { h: "3" } }), - lg: ea({ + lg: ra({ track: { h: "4" } }) -}, CT = vT({ - sizes: wT, - baseStyle: ST, +}, TT = ST({ + sizes: PT, + baseStyle: ET, defaultProps: { size: "md", colorScheme: "blue" } -}), _T = (e) => typeof e == "function"; -function $t(e, ...t) { - return _T(e) ? e(...t) : e; +}), AT = (e) => typeof e == "function"; +function Dt(e, ...t) { + return AT(e) ? e(...t) : e; } -var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me("checkbox-size"), ET = (e) => { +var { definePartsStyle: Ui, defineMultiStyleConfig: OT } = Ke(wE.keys), ua = me("checkbox-size"), RT = (e) => { const { colorScheme: t } = e; return { - w: la.reference, - h: la.reference, + w: ua.reference, + h: ua.reference, transitionProperty: "box-shadow", transitionDuration: "normal", border: "2px solid", @@ -9484,45 +9526,45 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( borderColor: ue("red.500", "red.300")(e) } }; -}, PT = { +}, $T = { _disabled: { cursor: "not-allowed" } -}, TT = { +}, DT = { userSelect: "none", _disabled: { opacity: 0.4 } -}, AT = { +}, MT = { transitionProperty: "transform", transitionDuration: "normal" -}, OT = Li((e) => ({ - icon: AT, - container: PT, - control: $t(ET, e), - label: TT -})), RT = { - sm: Li({ - control: { [la.variable]: "sizes.3" }, +}, IT = Ui((e) => ({ + icon: MT, + container: $T, + control: Dt(RT, e), + label: DT +})), FT = { + sm: Ui({ + control: { [ua.variable]: "sizes.3" }, label: { fontSize: "sm" }, icon: { fontSize: "3xs" } }), - md: Li({ - control: { [la.variable]: "sizes.4" }, + md: Ui({ + control: { [ua.variable]: "sizes.4" }, label: { fontSize: "md" }, icon: { fontSize: "2xs" } }), - lg: Li({ - control: { [la.variable]: "sizes.5" }, + lg: Ui({ + control: { [ua.variable]: "sizes.5" }, label: { fontSize: "lg" }, icon: { fontSize: "2xs" } }) -}, ls = kT({ - baseStyle: OT, - sizes: RT, +}, us = OT({ + baseStyle: IT, + sizes: FT, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: $T, definePartsStyle: Wi } = Ke(AE.keys), DT = (e) => { +}), { defineMultiStyleConfig: NT, definePartsStyle: Hi } = Ke(ME.keys), jT = (e) => { var t; - const r = (t = $t(ls.baseStyle, e)) == null ? void 0 : t.control; + const r = (t = Dt(us.baseStyle, e)) == null ? void 0 : t.control; return { ...r, borderRadius: "full", @@ -9539,47 +9581,47 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( } } }; -}, MT = Wi((e) => { +}, BT = Hi((e) => { var t, r, n, o; return { - label: (r = (t = ls).baseStyle) == null ? void 0 : r.call(t, e).label, - container: (o = (n = ls).baseStyle) == null ? void 0 : o.call(n, e).container, - control: DT(e) + label: (r = (t = us).baseStyle) == null ? void 0 : r.call(t, e).label, + container: (o = (n = us).baseStyle) == null ? void 0 : o.call(n, e).container, + control: jT(e) }; -}), IT = { - md: Wi({ +}), zT = { + md: Hi({ control: { w: "4", h: "4" }, label: { fontSize: "md" } }), - lg: Wi({ + lg: Hi({ control: { w: "5", h: "5" }, label: { fontSize: "lg" } }), - sm: Wi({ + sm: Hi({ control: { width: "3", height: "3" }, label: { fontSize: "sm" } }) -}, FT = $T({ - baseStyle: MT, - sizes: IT, +}, VT = NT({ + baseStyle: BT, + sizes: zT, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: NT, definePartsStyle: jT } = Ke(OE.keys), bi = me("select-bg"), sp, BT = { - ...(sp = Ve.baseStyle) == null ? void 0 : sp.field, +}), { defineMultiStyleConfig: LT, definePartsStyle: WT } = Ke(IE.keys), xi = me("select-bg"), lp, UT = { + ...(lp = Ve.baseStyle) == null ? void 0 : lp.field, appearance: "none", paddingBottom: "1px", lineHeight: "normal", - bg: bi.reference, - [bi.variable]: "colors.white", + bg: xi.reference, + [xi.variable]: "colors.white", _dark: { - [bi.variable]: "colors.gray.700" + [xi.variable]: "colors.gray.700" }, "> option, > optgroup": { - bg: bi.reference + bg: xi.reference } -}, zT = { +}, HT = { width: "6", height: "100%", insetEnd: "2", @@ -9589,62 +9631,62 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( _disabled: { opacity: 0.5 } -}, VT = jT({ - field: BT, - icon: zT -}), yi = { +}, YT = WT({ + field: UT, + icon: HT +}), Si = { paddingInlineEnd: "8" -}, lp, cp, up, dp, fp, pp, hp, mp, LT = { +}, cp, up, dp, fp, pp, hp, mp, vp, GT = { lg: { - ...(lp = Ve.sizes) == null ? void 0 : lp.lg, + ...(cp = Ve.sizes) == null ? void 0 : cp.lg, field: { - ...(cp = Ve.sizes) == null ? void 0 : cp.lg.field, - ...yi + ...(up = Ve.sizes) == null ? void 0 : up.lg.field, + ...Si } }, md: { - ...(up = Ve.sizes) == null ? void 0 : up.md, + ...(dp = Ve.sizes) == null ? void 0 : dp.md, field: { - ...(dp = Ve.sizes) == null ? void 0 : dp.md.field, - ...yi + ...(fp = Ve.sizes) == null ? void 0 : fp.md.field, + ...Si } }, sm: { - ...(fp = Ve.sizes) == null ? void 0 : fp.sm, + ...(pp = Ve.sizes) == null ? void 0 : pp.sm, field: { - ...(pp = Ve.sizes) == null ? void 0 : pp.sm.field, - ...yi + ...(hp = Ve.sizes) == null ? void 0 : hp.sm.field, + ...Si } }, xs: { - ...(hp = Ve.sizes) == null ? void 0 : hp.xs, + ...(mp = Ve.sizes) == null ? void 0 : mp.xs, field: { - ...(mp = Ve.sizes) == null ? void 0 : mp.xs.field, - ...yi + ...(vp = Ve.sizes) == null ? void 0 : vp.xs.field, + ...Si }, icon: { insetEnd: "1" } } -}, WT = NT({ - baseStyle: VT, - sizes: LT, +}, qT = LT({ + baseStyle: YT, + sizes: GT, variants: Ve.variants, defaultProps: Ve.defaultProps -}), Tl = me("skeleton-start-color"), Al = me("skeleton-end-color"), UT = { - [Tl.variable]: "colors.gray.100", - [Al.variable]: "colors.gray.400", +}), Al = me("skeleton-start-color"), Ol = me("skeleton-end-color"), XT = { + [Al.variable]: "colors.gray.100", + [Ol.variable]: "colors.gray.400", _dark: { - [Tl.variable]: "colors.gray.800", - [Al.variable]: "colors.gray.600" + [Al.variable]: "colors.gray.800", + [Ol.variable]: "colors.gray.600" }, - background: Tl.reference, - borderColor: Al.reference, + background: Al.reference, + borderColor: Ol.reference, opacity: 0.7, borderRadius: "sm" -}, HT = { - baseStyle: UT -}, Ol = me("skip-link-bg"), YT = { +}, KT = { + baseStyle: XT +}, Rl = me("skip-link-bg"), ZT = { borderRadius: "md", fontWeight: "semibold", _focusVisible: { @@ -9653,15 +9695,15 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( position: "fixed", top: "6", insetStart: "6", - [Ol.variable]: "colors.white", + [Rl.variable]: "colors.white", _dark: { - [Ol.variable]: "colors.gray.700" + [Rl.variable]: "colors.gray.700" }, - bg: Ol.reference + bg: Rl.reference } -}, qT = { - baseStyle: YT -}, { defineMultiStyleConfig: GT, definePartsStyle: zs } = Ke(RE.keys), Oa = me("slider-thumb-size"), Ra = me("slider-track-size"), dn = me("slider-bg"), XT = (e) => { +}, JT = { + baseStyle: ZT +}, { defineMultiStyleConfig: QT, definePartsStyle: Ls } = Ke(FE.keys), $a = me("slider-thumb-size"), Da = me("slider-track-size"), pn = me("slider-bg"), eA = (e) => { const { orientation: t } = e; return { display: "inline-block", @@ -9678,26 +9720,26 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( horizontal: { w: "100%" } }) }; -}, KT = (e) => ({ +}, tA = (e) => ({ ...Lu({ orientation: e.orientation, - horizontal: { h: Ra.reference }, - vertical: { w: Ra.reference } + horizontal: { h: Da.reference }, + vertical: { w: Da.reference } }), overflow: "hidden", borderRadius: "sm", - [dn.variable]: "colors.gray.200", + [pn.variable]: "colors.gray.200", _dark: { - [dn.variable]: "colors.whiteAlpha.200" + [pn.variable]: "colors.whiteAlpha.200" }, _disabled: { - [dn.variable]: "colors.gray.300", + [pn.variable]: "colors.gray.300", _dark: { - [dn.variable]: "colors.whiteAlpha.300" + [pn.variable]: "colors.whiteAlpha.300" } }, - bg: dn.reference -}), ZT = (e) => { + bg: pn.reference +}), rA = (e) => { const { orientation: t } = e; return { ...Lu({ @@ -9717,8 +9759,8 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( } } }), - w: Oa.reference, - h: Oa.reference, + w: $a.reference, + h: $a.reference, display: "flex", alignItems: "center", justifyContent: "center", @@ -9739,110 +9781,110 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( bg: "gray.300" } }; -}, JT = (e) => { +}, nA = (e) => { const { colorScheme: t } = e; return { width: "inherit", height: "inherit", - [dn.variable]: `colors.${t}.500`, + [pn.variable]: `colors.${t}.500`, _dark: { - [dn.variable]: `colors.${t}.200` + [pn.variable]: `colors.${t}.200` }, - bg: dn.reference + bg: pn.reference }; -}, QT = zs((e) => ({ - container: XT(e), - track: KT(e), - thumb: ZT(e), - filledTrack: JT(e) -})), eA = zs({ +}, oA = Ls((e) => ({ + container: eA(e), + track: tA(e), + thumb: rA(e), + filledTrack: nA(e) +})), aA = Ls({ container: { - [Oa.variable]: "sizes.4", - [Ra.variable]: "sizes.1" + [$a.variable]: "sizes.4", + [Da.variable]: "sizes.1" } -}), tA = zs({ +}), iA = Ls({ container: { - [Oa.variable]: "sizes.3.5", - [Ra.variable]: "sizes.1" + [$a.variable]: "sizes.3.5", + [Da.variable]: "sizes.1" } -}), rA = zs({ +}), sA = Ls({ container: { - [Oa.variable]: "sizes.2.5", - [Ra.variable]: "sizes.0.5" - } -}), nA = { - lg: eA, - md: tA, - sm: rA -}, oA = GT({ - baseStyle: QT, - sizes: nA, + [$a.variable]: "sizes.2.5", + [Da.variable]: "sizes.0.5" + } +}), lA = { + lg: aA, + md: iA, + sm: sA +}, cA = QT({ + baseStyle: oA, + sizes: lA, defaultProps: { size: "md", colorScheme: "blue" } -}), On = bt("spinner-size"), aA = { - width: [On.reference], - height: [On.reference] -}, iA = { +}), Dn = yt("spinner-size"), uA = { + width: [Dn.reference], + height: [Dn.reference] +}, dA = { xs: { - [On.variable]: "sizes.3" + [Dn.variable]: "sizes.3" }, sm: { - [On.variable]: "sizes.4" + [Dn.variable]: "sizes.4" }, md: { - [On.variable]: "sizes.6" + [Dn.variable]: "sizes.6" }, lg: { - [On.variable]: "sizes.8" + [Dn.variable]: "sizes.8" }, xl: { - [On.variable]: "sizes.12" + [Dn.variable]: "sizes.12" } -}, sA = { - baseStyle: aA, - sizes: iA, +}, fA = { + baseStyle: uA, + sizes: dA, defaultProps: { size: "md" } -}, { defineMultiStyleConfig: lA, definePartsStyle: gv } = Ke($E.keys), cA = { +}, { defineMultiStyleConfig: pA, definePartsStyle: yv } = Ke(NE.keys), hA = { fontWeight: "medium" -}, uA = { +}, mA = { opacity: 0.8, marginBottom: "2" -}, dA = { +}, vA = { verticalAlign: "baseline", fontWeight: "semibold" -}, fA = { +}, gA = { marginEnd: 1, w: "3.5", h: "3.5", verticalAlign: "middle" -}, pA = gv({ +}, bA = yv({ container: {}, - label: cA, - helpText: uA, - number: dA, - icon: fA -}), hA = { - md: gv({ + label: hA, + helpText: mA, + number: vA, + icon: gA +}), yA = { + md: yv({ label: { fontSize: "sm" }, helpText: { fontSize: "sm" }, number: { fontSize: "2xl" } }) -}, mA = lA({ - baseStyle: pA, - sizes: hA, +}, xA = pA({ + baseStyle: bA, + sizes: yA, defaultProps: { size: "md" } -}), Rl = me("kbd-bg"), vA = { - [Rl.variable]: "colors.gray.100", +}), $l = me("kbd-bg"), SA = { + [$l.variable]: "colors.gray.100", _dark: { - [Rl.variable]: "colors.whiteAlpha.100" + [$l.variable]: "colors.whiteAlpha.100" }, - bg: Rl.reference, + bg: $l.reference, borderRadius: "md", borderWidth: "1px", borderBottomWidth: "3px", @@ -9851,9 +9893,9 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( lineHeight: "normal", px: "0.4em", whiteSpace: "nowrap" -}, gA = { - baseStyle: vA -}, bA = { +}, wA = { + baseStyle: SA +}, CA = { transitionProperty: "common", transitionDuration: "fast", transitionTimingFunction: "ease-out", @@ -9867,22 +9909,22 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( _focusVisible: { boxShadow: "outline" } -}, yA = { - baseStyle: bA -}, { defineMultiStyleConfig: xA, definePartsStyle: SA } = Ke(CE.keys), wA = { +}, _A = { + baseStyle: CA +}, { defineMultiStyleConfig: kA, definePartsStyle: EA } = Ke(TE.keys), PA = { marginEnd: "2", display: "inline", verticalAlign: "text-bottom" -}, CA = SA({ - icon: wA -}), _A = xA({ - baseStyle: CA -}), { defineMultiStyleConfig: kA, definePartsStyle: EA } = Ke(_E.keys), Tr = me("menu-bg"), $l = me("menu-shadow"), PA = { - [Tr.variable]: "#fff", - [$l.variable]: "shadows.sm", +}, TA = EA({ + icon: PA +}), AA = kA({ + baseStyle: TA +}), { defineMultiStyleConfig: OA, definePartsStyle: RA } = Ke(AE.keys), Or = me("menu-bg"), Dl = me("menu-shadow"), $A = { + [Or.variable]: "#fff", + [Dl.variable]: "shadows.sm", _dark: { - [Tr.variable]: "colors.gray.700", - [$l.variable]: "shadows.dark-lg" + [Or.variable]: "colors.gray.700", + [Dl.variable]: "shadows.dark-lg" }, color: "inherit", minW: "3xs", @@ -9890,66 +9932,66 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( zIndex: 1, borderRadius: "md", borderWidth: "1px", - bg: Tr.reference, - boxShadow: $l.reference -}, TA = { + bg: Or.reference, + boxShadow: Dl.reference +}, DA = { py: "1.5", px: "3", transitionProperty: "background", transitionDuration: "ultra-fast", transitionTimingFunction: "ease-in", _focus: { - [Tr.variable]: "colors.gray.100", + [Or.variable]: "colors.gray.100", _dark: { - [Tr.variable]: "colors.whiteAlpha.100" + [Or.variable]: "colors.whiteAlpha.100" } }, _active: { - [Tr.variable]: "colors.gray.200", + [Or.variable]: "colors.gray.200", _dark: { - [Tr.variable]: "colors.whiteAlpha.200" + [Or.variable]: "colors.whiteAlpha.200" } }, _expanded: { - [Tr.variable]: "colors.gray.100", + [Or.variable]: "colors.gray.100", _dark: { - [Tr.variable]: "colors.whiteAlpha.100" + [Or.variable]: "colors.whiteAlpha.100" } }, _disabled: { opacity: 0.4, cursor: "not-allowed" }, - bg: Tr.reference -}, AA = { + bg: Or.reference +}, MA = { mx: 4, my: 2, fontWeight: "semibold", fontSize: "sm" -}, OA = { +}, IA = { opacity: 0.6 -}, RA = { +}, FA = { border: 0, borderBottom: "1px solid", borderColor: "inherit", my: "2", opacity: 0.6 -}, $A = { +}, NA = { transitionProperty: "common", transitionDuration: "normal" -}, DA = EA({ - button: $A, - list: PA, - item: TA, - groupTitle: AA, - command: OA, - divider: RA -}), MA = kA({ - baseStyle: DA -}), { defineMultiStyleConfig: IA, definePartsStyle: Bc } = Ke(kE.keys), Dl = me("modal-bg"), Ml = me("modal-shadow"), FA = { +}, jA = RA({ + button: NA, + list: $A, + item: DA, + groupTitle: MA, + command: IA, + divider: FA +}), BA = OA({ + baseStyle: jA +}), { defineMultiStyleConfig: zA, definePartsStyle: Bc } = Ke(OE.keys), Ml = me("modal-bg"), Il = me("modal-shadow"), VA = { bg: "blackAlpha.600", zIndex: "modal" -}, NA = (e) => { +}, LA = (e) => { const { isCentered: t, scrollBehavior: r } = e; return { display: "flex", @@ -9959,7 +10001,7 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( overflow: r === "inside" ? "hidden" : "auto", overscrollBehaviorY: "none" }; -}, jA = (e) => { +}, WA = (e) => { const { isCentered: t, scrollBehavior: r } = e; return { borderRadius: "md", @@ -9968,25 +10010,25 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( mx: t ? "auto" : void 0, zIndex: "modal", maxH: r === "inside" ? "calc(100% - 7.5rem)" : void 0, - [Dl.variable]: "colors.white", - [Ml.variable]: "shadows.lg", + [Ml.variable]: "colors.white", + [Il.variable]: "shadows.lg", _dark: { - [Dl.variable]: "colors.gray.700", - [Ml.variable]: "shadows.dark-lg" + [Ml.variable]: "colors.gray.700", + [Il.variable]: "shadows.dark-lg" }, - bg: Dl.reference, - boxShadow: Ml.reference + bg: Ml.reference, + boxShadow: Il.reference }; -}, BA = { +}, UA = { px: "6", py: "4", fontSize: "xl", fontWeight: "semibold" -}, zA = { +}, HA = { position: "absolute", top: "2", insetEnd: "3" -}, VA = (e) => { +}, YA = (e) => { const { scrollBehavior: t } = e; return { px: "6", @@ -9994,19 +10036,19 @@ var { definePartsStyle: Li, defineMultiStyleConfig: kT } = Ke(gE.keys), la = me( flex: "1", overflow: t === "inside" ? "auto" : void 0 }; -}, LA = { +}, GA = { px: "6", py: "4" -}, WA = Bc((e) => ({ - overlay: FA, - dialogContainer: $t(NA, e), - dialog: $t(jA, e), - header: BA, - closeButton: zA, - body: $t(VA, e), - footer: LA +}, qA = Bc((e) => ({ + overlay: VA, + dialogContainer: Dt(LA, e), + dialog: Dt(WA, e), + header: UA, + closeButton: HA, + body: Dt(YA, e), + footer: GA })); -function dr(e) { +function fr(e) { return Bc(e === "full" ? { dialog: { maxW: "100vw", @@ -10018,76 +10060,76 @@ function dr(e) { dialog: { maxW: e } }); } -var UA = { - xs: dr("xs"), - sm: dr("sm"), - md: dr("md"), - lg: dr("lg"), - xl: dr("xl"), - "2xl": dr("2xl"), - "3xl": dr("3xl"), - "4xl": dr("4xl"), - "5xl": dr("5xl"), - "6xl": dr("6xl"), - full: dr("full") -}, HA = IA({ - baseStyle: WA, - sizes: UA, +var XA = { + xs: fr("xs"), + sm: fr("sm"), + md: fr("md"), + lg: fr("lg"), + xl: fr("xl"), + "2xl": fr("2xl"), + "3xl": fr("3xl"), + "4xl": fr("4xl"), + "5xl": fr("5xl"), + "6xl": fr("6xl"), + full: fr("full") +}, KA = zA({ + baseStyle: qA, + sizes: XA, defaultProps: { size: "md" } -}), { defineMultiStyleConfig: YA, definePartsStyle: bv } = Ke(EE.keys), Uu = bt("number-input-stepper-width"), yv = bt("number-input-input-padding"), qA = Ur(Uu).add("0.5rem").toString(), Il = bt("number-input-bg"), Fl = bt("number-input-color"), Nl = bt("number-input-border-color"), GA = { +}), { defineMultiStyleConfig: ZA, definePartsStyle: xv } = Ke(RE.keys), Uu = yt("number-input-stepper-width"), Sv = yt("number-input-input-padding"), JA = Yr(Uu).add("0.5rem").toString(), Fl = yt("number-input-bg"), Nl = yt("number-input-color"), jl = yt("number-input-border-color"), QA = { [Uu.variable]: "sizes.6", - [yv.variable]: qA -}, XA = (e) => { + [Sv.variable]: JA +}, eO = (e) => { var t, r; - return (r = (t = $t(Ve.baseStyle, e)) == null ? void 0 : t.field) != null ? r : {}; -}, KA = { + return (r = (t = Dt(Ve.baseStyle, e)) == null ? void 0 : t.field) != null ? r : {}; +}, tO = { width: Uu.reference -}, ZA = { +}, rO = { borderStart: "1px solid", - borderStartColor: Nl.reference, - color: Fl.reference, - bg: Il.reference, - [Fl.variable]: "colors.chakra-body-text", - [Nl.variable]: "colors.chakra-border-color", + borderStartColor: jl.reference, + color: Nl.reference, + bg: Fl.reference, + [Nl.variable]: "colors.chakra-body-text", + [jl.variable]: "colors.chakra-border-color", _dark: { - [Fl.variable]: "colors.whiteAlpha.800", - [Nl.variable]: "colors.whiteAlpha.300" + [Nl.variable]: "colors.whiteAlpha.800", + [jl.variable]: "colors.whiteAlpha.300" }, _active: { - [Il.variable]: "colors.gray.200", + [Fl.variable]: "colors.gray.200", _dark: { - [Il.variable]: "colors.whiteAlpha.300" + [Fl.variable]: "colors.whiteAlpha.300" } }, _disabled: { opacity: 0.4, cursor: "not-allowed" } -}, JA = bv((e) => { +}, nO = xv((e) => { var t; return { - root: GA, - field: (t = $t(XA, e)) != null ? t : {}, - stepperGroup: KA, - stepper: ZA + root: QA, + field: (t = Dt(eO, e)) != null ? t : {}, + stepperGroup: tO, + stepper: rO }; }); -function xi(e) { +function wi(e) { var t, r, n; const o = (t = Ve.sizes) == null ? void 0 : t[e], a = { lg: "md", md: "md", sm: "sm", xs: "sm" - }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = dv.fontSizes[i]; - return bv({ + }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = pv.fontSizes[i]; + return xv({ field: { ...o.field, - paddingInlineEnd: yv.reference, + paddingInlineEnd: Sv.reference, verticalAlign: "top" }, stepper: { - fontSize: Ur(s).multiply(0.75).toString(), + fontSize: Yr(s).multiply(0.75).toString(), _first: { borderTopEndRadius: a[e] }, @@ -10099,20 +10141,20 @@ function xi(e) { } }); } -var QA = { - xs: xi("xs"), - sm: xi("sm"), - md: xi("md"), - lg: xi("lg") -}, eO = YA({ - baseStyle: JA, - sizes: QA, +var oO = { + xs: wi("xs"), + sm: wi("sm"), + md: wi("md"), + lg: wi("lg") +}, aO = ZA({ + baseStyle: nO, + sizes: oO, variants: Ve.variants, defaultProps: Ve.defaultProps -}), vp, tO = { - ...(vp = Ve.baseStyle) == null ? void 0 : vp.field, +}), gp, iO = { + ...(gp = Ve.baseStyle) == null ? void 0 : gp.field, textAlign: "center" -}, rO = { +}, sO = { lg: { fontSize: "lg", w: 12, @@ -10137,33 +10179,33 @@ var QA = { h: 6, borderRadius: "sm" } -}, gp, bp, nO = { +}, bp, yp, lO = { outline: (e) => { var t, r, n; - return (n = (r = $t((t = Ve.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : r.field) != null ? n : {}; + return (n = (r = Dt((t = Ve.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : r.field) != null ? n : {}; }, flushed: (e) => { var t, r, n; - return (n = (r = $t((t = Ve.variants) == null ? void 0 : t.flushed, e)) == null ? void 0 : r.field) != null ? n : {}; + return (n = (r = Dt((t = Ve.variants) == null ? void 0 : t.flushed, e)) == null ? void 0 : r.field) != null ? n : {}; }, filled: (e) => { var t, r, n; - return (n = (r = $t((t = Ve.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : r.field) != null ? n : {}; + return (n = (r = Dt((t = Ve.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : r.field) != null ? n : {}; }, - unstyled: (bp = (gp = Ve.variants) == null ? void 0 : gp.unstyled.field) != null ? bp : {} -}, oO = { - baseStyle: tO, - sizes: rO, - variants: nO, + unstyled: (yp = (bp = Ve.variants) == null ? void 0 : bp.unstyled.field) != null ? yp : {} +}, cO = { + baseStyle: iO, + sizes: sO, + variants: lO, defaultProps: Ve.defaultProps -}, { defineMultiStyleConfig: aO, definePartsStyle: iO } = Ke(PE.keys), Si = bt("popper-bg"), sO = bt("popper-arrow-bg"), yp = bt("popper-arrow-shadow-color"), lO = { zIndex: 10 }, cO = { - [Si.variable]: "colors.white", - bg: Si.reference, - [sO.variable]: Si.reference, - [yp.variable]: "colors.gray.200", +}, { defineMultiStyleConfig: uO, definePartsStyle: dO } = Ke($E.keys), Ci = yt("popper-bg"), fO = yt("popper-arrow-bg"), xp = yt("popper-arrow-shadow-color"), pO = { zIndex: 10 }, hO = { + [Ci.variable]: "colors.white", + bg: Ci.reference, + [fO.variable]: Ci.reference, + [xp.variable]: "colors.gray.200", _dark: { - [Si.variable]: "colors.gray.700", - [yp.variable]: "colors.whiteAlpha.300" + [Ci.variable]: "colors.gray.700", + [xp.variable]: "colors.whiteAlpha.300" }, width: "xs", border: "1px solid", @@ -10175,107 +10217,107 @@ var QA = { outline: 0, boxShadow: "outline" } -}, uO = { +}, mO = { px: 3, py: 2, borderBottomWidth: "1px" -}, dO = { +}, vO = { px: 3, py: 2 -}, fO = { +}, gO = { px: 3, py: 2, borderTopWidth: "1px" -}, pO = { +}, bO = { position: "absolute", borderRadius: "md", top: 1, insetEnd: 2, padding: 2 -}, hO = iO({ - popper: lO, - content: cO, - header: uO, - body: dO, - footer: fO, - closeButton: pO -}), mO = aO({ - baseStyle: hO -}), { definePartsStyle: zc, defineMultiStyleConfig: vO } = Ke(bE.keys), jl = me("drawer-bg"), Bl = me("drawer-box-shadow"); -function qn(e) { +}, yO = dO({ + popper: pO, + content: hO, + header: mO, + body: vO, + footer: gO, + closeButton: bO +}), xO = uO({ + baseStyle: yO +}), { definePartsStyle: zc, defineMultiStyleConfig: SO } = Ke(CE.keys), Bl = me("drawer-bg"), zl = me("drawer-box-shadow"); +function Kn(e) { return zc(e === "full" ? { dialog: { maxW: "100vw", h: "100vh" } } : { dialog: { maxW: e } }); } -var gO = { +var wO = { bg: "blackAlpha.600", zIndex: "overlay" -}, bO = { +}, CO = { display: "flex", zIndex: "modal", justifyContent: "center" -}, yO = (e) => { +}, _O = (e) => { const { isFullHeight: t } = e; return { ...t && { height: "100vh" }, zIndex: "modal", maxH: "100vh", color: "inherit", - [jl.variable]: "colors.white", - [Bl.variable]: "shadows.lg", + [Bl.variable]: "colors.white", + [zl.variable]: "shadows.lg", _dark: { - [jl.variable]: "colors.gray.700", - [Bl.variable]: "shadows.dark-lg" + [Bl.variable]: "colors.gray.700", + [zl.variable]: "shadows.dark-lg" }, - bg: jl.reference, - boxShadow: Bl.reference + bg: Bl.reference, + boxShadow: zl.reference }; -}, xO = { +}, kO = { px: "6", py: "4", fontSize: "xl", fontWeight: "semibold" -}, SO = { +}, EO = { position: "absolute", top: "2", insetEnd: "3" -}, wO = { +}, PO = { px: "6", py: "2", flex: "1", overflow: "auto" -}, CO = { +}, TO = { px: "6", py: "4" -}, _O = zc((e) => ({ - overlay: gO, - dialogContainer: bO, - dialog: $t(yO, e), - header: xO, - closeButton: SO, - body: wO, - footer: CO -})), kO = { - xs: qn("xs"), - sm: qn("md"), - md: qn("lg"), - lg: qn("2xl"), - xl: qn("4xl"), - full: qn("full") -}, EO = vO({ - baseStyle: _O, - sizes: kO, +}, AO = zc((e) => ({ + overlay: wO, + dialogContainer: CO, + dialog: Dt(_O, e), + header: kO, + closeButton: EO, + body: PO, + footer: TO +})), OO = { + xs: Kn("xs"), + sm: Kn("md"), + md: Kn("lg"), + lg: Kn("2xl"), + xl: Kn("4xl"), + full: Kn("full") +}, RO = SO({ + baseStyle: AO, + sizes: OO, defaultProps: { size: "xs" } -}), { definePartsStyle: PO, defineMultiStyleConfig: TO } = Ke(yE.keys), AO = { +}), { definePartsStyle: $O, defineMultiStyleConfig: DO } = Ke(_E.keys), MO = { borderRadius: "md", py: "1", transitionProperty: "common", transitionDuration: "normal" -}, OO = { +}, IO = { borderRadius: "md", py: "1", transitionProperty: "common", @@ -10283,7 +10325,7 @@ var gO = { width: "full", _focusVisible: { boxShadow: "outline" }, _placeholder: { opacity: 0.6 } -}, RO = { +}, FO = { borderRadius: "md", py: "1", transitionProperty: "common", @@ -10291,59 +10333,59 @@ var gO = { width: "full", _focusVisible: { boxShadow: "outline" }, _placeholder: { opacity: 0.6 } -}, $O = PO({ - preview: AO, - input: OO, - textarea: RO -}), DO = TO({ - baseStyle: $O -}), { definePartsStyle: MO, defineMultiStyleConfig: IO } = Ke(xE.keys), uo = me("form-control-color"), FO = { +}, NO = $O({ + preview: MO, + input: IO, + textarea: FO +}), jO = DO({ + baseStyle: NO +}), { definePartsStyle: BO, defineMultiStyleConfig: zO } = Ke(kE.keys), po = me("form-control-color"), VO = { marginStart: "1", - [uo.variable]: "colors.red.500", + [po.variable]: "colors.red.500", _dark: { - [uo.variable]: "colors.red.300" + [po.variable]: "colors.red.300" }, - color: uo.reference -}, NO = { + color: po.reference +}, LO = { mt: "2", - [uo.variable]: "colors.gray.600", + [po.variable]: "colors.gray.600", _dark: { - [uo.variable]: "colors.whiteAlpha.600" + [po.variable]: "colors.whiteAlpha.600" }, - color: uo.reference, + color: po.reference, lineHeight: "normal", fontSize: "sm" -}, jO = MO({ +}, WO = BO({ container: { width: "100%", position: "relative" }, - requiredIndicator: FO, - helperText: NO -}), BO = IO({ - baseStyle: jO -}), { definePartsStyle: zO, defineMultiStyleConfig: VO } = Ke(SE.keys), fo = me("form-error-color"), LO = { - [fo.variable]: "colors.red.500", + requiredIndicator: VO, + helperText: LO +}), UO = zO({ + baseStyle: WO +}), { definePartsStyle: HO, defineMultiStyleConfig: YO } = Ke(EE.keys), ho = me("form-error-color"), GO = { + [ho.variable]: "colors.red.500", _dark: { - [fo.variable]: "colors.red.300" + [ho.variable]: "colors.red.300" }, - color: fo.reference, + color: ho.reference, mt: "2", fontSize: "sm", lineHeight: "normal" -}, WO = { +}, qO = { marginEnd: "0.5em", - [fo.variable]: "colors.red.500", + [ho.variable]: "colors.red.500", _dark: { - [fo.variable]: "colors.red.300" - }, - color: fo.reference -}, UO = zO({ - text: LO, - icon: WO -}), HO = VO({ - baseStyle: UO -}), YO = { + [ho.variable]: "colors.red.300" + }, + color: ho.reference +}, XO = HO({ + text: GO, + icon: qO +}), KO = YO({ + baseStyle: XO +}), ZO = { fontSize: "md", marginEnd: "3", mb: "2", @@ -10354,12 +10396,12 @@ var gO = { _disabled: { opacity: 0.4 } -}, qO = { - baseStyle: YO -}, GO = { +}, JO = { + baseStyle: ZO +}, QO = { fontFamily: "heading", fontWeight: "bold" -}, XO = { +}, eR = { "4xl": { fontSize: ["6xl", null, "7xl"], lineHeight: 1 @@ -10392,34 +10434,34 @@ var gO = { fontSize: "sm", lineHeight: 1.2 } -}, KO = { - baseStyle: GO, - sizes: XO, +}, tR = { + baseStyle: QO, + sizes: eR, defaultProps: { size: "xl" } -}, { defineMultiStyleConfig: ZO, definePartsStyle: JO } = Ke(vE.keys), zl = me("breadcrumb-link-decor"), QO = { +}, { defineMultiStyleConfig: rR, definePartsStyle: nR } = Ke(SE.keys), Vl = me("breadcrumb-link-decor"), oR = { transitionProperty: "common", transitionDuration: "fast", transitionTimingFunction: "ease-out", outline: "none", color: "inherit", - textDecoration: zl.reference, - [zl.variable]: "none", + textDecoration: Vl.reference, + [Vl.variable]: "none", "&:not([aria-current=page])": { cursor: "pointer", _hover: { - [zl.variable]: "underline" + [Vl.variable]: "underline" }, _focusVisible: { boxShadow: "outline" } } -}, eR = JO({ - link: QO -}), tR = ZO({ - baseStyle: eR -}), rR = { +}, aR = nR({ + link: oR +}), iR = rR({ + baseStyle: aR +}), sR = { lineHeight: "1.2", borderRadius: "md", fontWeight: "semibold", @@ -10438,7 +10480,7 @@ var gO = { bg: "initial" } } -}, xv = (e) => { +}, wv = (e) => { const { colorScheme: t, theme: r } = e; if (t === "gray") return { @@ -10448,7 +10490,7 @@ var gO = { }, _active: { bg: ue("gray.200", "whiteAlpha.300")(e) } }; - const n = Co(`${t}.200`, 0.12)(r), o = Co(`${t}.200`, 0.24)(r); + const n = ko(`${t}.200`, 0.12)(r), o = ko(`${t}.200`, 0.24)(r); return { color: ue(`${t}.600`, `${t}.200`)(e), bg: "transparent", @@ -10459,16 +10501,16 @@ var gO = { bg: ue(`${t}.100`, o)(e) } }; -}, nR = (e) => { +}, lR = (e) => { const { colorScheme: t } = e, r = ue("gray.200", "whiteAlpha.300")(e); return { border: "1px solid", borderColor: t === "gray" ? r : "currentColor", ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" }, ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" }, - ...$t(xv, e) + ...Dt(wv, e) }; -}, oR = { +}, cR = { yellow: { bg: "yellow.400", color: "black", @@ -10481,7 +10523,7 @@ var gO = { hoverBg: "cyan.500", activeBg: "cyan.600" } -}, aR = (e) => { +}, uR = (e) => { var t; const { colorScheme: r } = e; if (r === "gray") { @@ -10503,7 +10545,7 @@ var gO = { color: o = "white", hoverBg: a = `${r}.600`, activeBg: i = `${r}.700` - } = (t = oR[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e); + } = (t = cR[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e); return { bg: s, color: ue(o, "gray.800")(e), @@ -10515,7 +10557,7 @@ var gO = { }, _active: { bg: ue(i, `${r}.400`)(e) } }; -}, iR = (e) => { +}, dR = (e) => { const { colorScheme: t } = e; return { padding: 0, @@ -10533,20 +10575,20 @@ var gO = { color: ue(`${t}.700`, `${t}.500`)(e) } }; -}, sR = { +}, fR = { bg: "none", color: "inherit", display: "inline", lineHeight: "inherit", m: "0", p: "0" -}, lR = { - ghost: xv, - outline: nR, - solid: aR, - link: iR, - unstyled: sR -}, cR = { +}, pR = { + ghost: wv, + outline: lR, + solid: uR, + link: dR, + unstyled: fR +}, hR = { lg: { h: "12", minW: "12", @@ -10571,96 +10613,96 @@ var gO = { fontSize: "xs", px: "2" } -}, uR = { - baseStyle: rR, - variants: lR, - sizes: cR, +}, mR = { + baseStyle: sR, + variants: pR, + sizes: hR, defaultProps: { variant: "solid", size: "md", colorScheme: "gray" } -}, { definePartsStyle: Fn, defineMultiStyleConfig: dR } = Ke(NE.keys), cs = me("card-bg"), qr = me("card-padding"), Sv = me("card-shadow"), Ui = me("card-radius"), wv = me("card-border-width", "0"), Cv = me("card-border-color"), fR = Fn({ +}, { definePartsStyle: Bn, defineMultiStyleConfig: vR } = Ke(LE.keys), ds = me("card-bg"), Xr = me("card-padding"), Cv = me("card-shadow"), Yi = me("card-radius"), _v = me("card-border-width", "0"), kv = me("card-border-color"), gR = Bn({ container: { - [cs.variable]: "colors.chakra-body-bg", - backgroundColor: cs.reference, - boxShadow: Sv.reference, - borderRadius: Ui.reference, + [ds.variable]: "colors.chakra-body-bg", + backgroundColor: ds.reference, + boxShadow: Cv.reference, + borderRadius: Yi.reference, color: "chakra-body-text", - borderWidth: wv.reference, - borderColor: Cv.reference + borderWidth: _v.reference, + borderColor: kv.reference }, body: { - padding: qr.reference, + padding: Xr.reference, flex: "1 1 0%" }, header: { - padding: qr.reference + padding: Xr.reference }, footer: { - padding: qr.reference + padding: Xr.reference } -}), pR = { - sm: Fn({ +}), bR = { + sm: Bn({ container: { - [Ui.variable]: "radii.base", - [qr.variable]: "space.3" + [Yi.variable]: "radii.base", + [Xr.variable]: "space.3" } }), - md: Fn({ + md: Bn({ container: { - [Ui.variable]: "radii.md", - [qr.variable]: "space.5" + [Yi.variable]: "radii.md", + [Xr.variable]: "space.5" } }), - lg: Fn({ + lg: Bn({ container: { - [Ui.variable]: "radii.xl", - [qr.variable]: "space.7" + [Yi.variable]: "radii.xl", + [Xr.variable]: "space.7" } }) -}, hR = { - elevated: Fn({ +}, yR = { + elevated: Bn({ container: { - [Sv.variable]: "shadows.base", + [Cv.variable]: "shadows.base", _dark: { - [cs.variable]: "colors.gray.700" + [ds.variable]: "colors.gray.700" } } }), - outline: Fn({ + outline: Bn({ container: { - [wv.variable]: "1px", - [Cv.variable]: "colors.chakra-border-color" + [_v.variable]: "1px", + [kv.variable]: "colors.chakra-border-color" } }), - filled: Fn({ + filled: Bn({ container: { - [cs.variable]: "colors.chakra-subtle-bg" + [ds.variable]: "colors.chakra-subtle-bg" } }), unstyled: { body: { - [qr.variable]: 0 + [Xr.variable]: 0 }, header: { - [qr.variable]: 0 + [Xr.variable]: 0 }, footer: { - [qr.variable]: 0 + [Xr.variable]: 0 } } -}, mR = dR({ - baseStyle: fR, - variants: hR, - sizes: pR, +}, xR = vR({ + baseStyle: gR, + variants: yR, + sizes: bR, defaultProps: { variant: "elevated", size: "md" } -}), ca = bt("close-button-size"), Ho = bt("close-button-bg"), vR = { - w: [ca.reference], - h: [ca.reference], +}), da = yt("close-button-size"), Go = yt("close-button-bg"), SR = { + w: [da.reference], + h: [da.reference], borderRadius: "md", transitionProperty: "common", transitionDuration: "normal", @@ -10670,82 +10712,82 @@ var gO = { boxShadow: "none" }, _hover: { - [Ho.variable]: "colors.blackAlpha.100", + [Go.variable]: "colors.blackAlpha.100", _dark: { - [Ho.variable]: "colors.whiteAlpha.100" + [Go.variable]: "colors.whiteAlpha.100" } }, _active: { - [Ho.variable]: "colors.blackAlpha.200", + [Go.variable]: "colors.blackAlpha.200", _dark: { - [Ho.variable]: "colors.whiteAlpha.200" + [Go.variable]: "colors.whiteAlpha.200" } }, _focusVisible: { boxShadow: "outline" }, - bg: Ho.reference -}, gR = { + bg: Go.reference +}, wR = { lg: { - [ca.variable]: "sizes.10", + [da.variable]: "sizes.10", fontSize: "md" }, md: { - [ca.variable]: "sizes.8", + [da.variable]: "sizes.8", fontSize: "xs" }, sm: { - [ca.variable]: "sizes.6", + [da.variable]: "sizes.6", fontSize: "2xs" } -}, bR = { - baseStyle: vR, - sizes: gR, +}, CR = { + baseStyle: SR, + sizes: wR, defaultProps: { size: "md" } -}, { variants: yR, defaultProps: xR } = sa, SR = { +}, { variants: _R, defaultProps: kR } = ca, ER = { fontFamily: "mono", fontSize: "sm", - px: "0.2em", - borderRadius: "sm", - bg: ft.bg.reference, - color: ft.color.reference, - boxShadow: ft.shadow.reference -}, wR = { - baseStyle: SR, - variants: yR, - defaultProps: xR -}, CR = { + px: "0.2em", + borderRadius: "sm", + bg: pt.bg.reference, + color: pt.color.reference, + boxShadow: pt.shadow.reference +}, PR = { + baseStyle: ER, + variants: _R, + defaultProps: kR +}, TR = { w: "100%", mx: "auto", maxW: "prose", px: "4" -}, _R = { - baseStyle: CR -}, kR = { +}, AR = { + baseStyle: TR +}, OR = { opacity: 0.6, borderColor: "inherit" -}, ER = { +}, RR = { borderStyle: "solid" -}, PR = { +}, $R = { borderStyle: "dashed" -}, TR = { - solid: ER, - dashed: PR -}, AR = { - baseStyle: kR, - variants: TR, +}, DR = { + solid: RR, + dashed: $R +}, MR = { + baseStyle: OR, + variants: DR, defaultProps: { variant: "solid" } -}, { definePartsStyle: OR, defineMultiStyleConfig: RR } = Ke(pE.keys), $R = { +}, { definePartsStyle: IR, defineMultiStyleConfig: FR } = Ke(bE.keys), NR = { borderTopWidth: "1px", borderColor: "inherit", _last: { borderBottomWidth: "1px" } -}, DR = { +}, jR = { transitionProperty: "common", transitionDuration: "normal", fontSize: "md", @@ -10761,20 +10803,20 @@ var gO = { }, px: "4", py: "2" -}, MR = { +}, BR = { pt: "2", px: "4", pb: "5" -}, IR = { +}, zR = { fontSize: "1.25em" -}, FR = OR({ - container: $R, - button: DR, - panel: MR, - icon: IR -}), NR = RR({ baseStyle: FR }), { definePartsStyle: Ya, defineMultiStyleConfig: jR } = Ke(hE.keys), Xt = me("alert-fg"), Qr = me("alert-bg"), BR = Ya({ +}, VR = IR({ + container: NR, + button: jR, + panel: BR, + icon: zR +}), LR = FR({ baseStyle: VR }), { definePartsStyle: qa, defineMultiStyleConfig: WR } = Ke(yE.keys), Kt = me("alert-fg"), tn = me("alert-bg"), UR = qa({ container: { - bg: Qr.reference, + bg: tn.reference, px: "4", py: "3" }, @@ -10787,14 +10829,14 @@ var gO = { lineHeight: "6" }, icon: { - color: Xt.reference, + color: Kt.reference, flexShrink: 0, marginEnd: "3", w: "5", h: "6" }, spinner: { - color: Xt.reference, + color: Kt.reference, flexShrink: 0, marginEnd: "3", w: "5", @@ -10802,197 +10844,197 @@ var gO = { } }); function Hu(e) { - const { theme: t, colorScheme: r } = e, n = Co(`${r}.200`, 0.16)(t); + const { theme: t, colorScheme: r } = e, n = ko(`${r}.200`, 0.16)(t); return { light: `colors.${r}.100`, dark: n }; } -var zR = Ya((e) => { +var HR = qa((e) => { const { colorScheme: t } = e, r = Hu(e); return { container: { - [Xt.variable]: `colors.${t}.500`, - [Qr.variable]: r.light, + [Kt.variable]: `colors.${t}.500`, + [tn.variable]: r.light, _dark: { - [Xt.variable]: `colors.${t}.200`, - [Qr.variable]: r.dark + [Kt.variable]: `colors.${t}.200`, + [tn.variable]: r.dark } } }; -}), VR = Ya((e) => { +}), YR = qa((e) => { const { colorScheme: t } = e, r = Hu(e); return { container: { - [Xt.variable]: `colors.${t}.500`, - [Qr.variable]: r.light, + [Kt.variable]: `colors.${t}.500`, + [tn.variable]: r.light, _dark: { - [Xt.variable]: `colors.${t}.200`, - [Qr.variable]: r.dark + [Kt.variable]: `colors.${t}.200`, + [tn.variable]: r.dark }, paddingStart: "3", borderStartWidth: "4px", - borderStartColor: Xt.reference + borderStartColor: Kt.reference } }; -}), LR = Ya((e) => { +}), GR = qa((e) => { const { colorScheme: t } = e, r = Hu(e); return { container: { - [Xt.variable]: `colors.${t}.500`, - [Qr.variable]: r.light, + [Kt.variable]: `colors.${t}.500`, + [tn.variable]: r.light, _dark: { - [Xt.variable]: `colors.${t}.200`, - [Qr.variable]: r.dark + [Kt.variable]: `colors.${t}.200`, + [tn.variable]: r.dark }, pt: "2", borderTopWidth: "4px", - borderTopColor: Xt.reference + borderTopColor: Kt.reference } }; -}), WR = Ya((e) => { +}), qR = qa((e) => { const { colorScheme: t } = e; return { container: { - [Xt.variable]: "colors.white", - [Qr.variable]: `colors.${t}.500`, + [Kt.variable]: "colors.white", + [tn.variable]: `colors.${t}.500`, _dark: { - [Xt.variable]: "colors.gray.900", - [Qr.variable]: `colors.${t}.200` + [Kt.variable]: "colors.gray.900", + [tn.variable]: `colors.${t}.200` }, - color: Xt.reference + color: Kt.reference } }; -}), UR = { - subtle: zR, - "left-accent": VR, - "top-accent": LR, - solid: WR -}, HR = jR({ - baseStyle: BR, - variants: UR, +}), XR = { + subtle: HR, + "left-accent": YR, + "top-accent": GR, + solid: qR +}, KR = WR({ + baseStyle: UR, + variants: XR, defaultProps: { variant: "subtle", colorScheme: "blue" } -}), { definePartsStyle: _v, defineMultiStyleConfig: YR } = Ke(mE.keys), po = me("avatar-border-color"), ua = me("avatar-bg"), $a = me("avatar-font-size"), _o = me("avatar-size"), qR = { +}), { definePartsStyle: Ev, defineMultiStyleConfig: ZR } = Ke(xE.keys), mo = me("avatar-border-color"), fa = me("avatar-bg"), Ma = me("avatar-font-size"), Eo = me("avatar-size"), JR = { borderRadius: "full", border: "0.2em solid", - borderColor: po.reference, - [po.variable]: "white", + borderColor: mo.reference, + [mo.variable]: "white", _dark: { - [po.variable]: "colors.gray.800" + [mo.variable]: "colors.gray.800" } -}, GR = { - bg: ua.reference, - fontSize: $a.reference, - width: _o.reference, - height: _o.reference, +}, QR = { + bg: fa.reference, + fontSize: Ma.reference, + width: Eo.reference, + height: Eo.reference, lineHeight: "1", - [ua.variable]: "colors.gray.200", + [fa.variable]: "colors.gray.200", _dark: { - [ua.variable]: "colors.whiteAlpha.400" + [fa.variable]: "colors.whiteAlpha.400" } -}, XR = (e) => { - const { name: t, theme: r } = e, n = t ? nP({ string: t }) : "colors.gray.400", o = tP(n)(r); +}, e$ = (e) => { + const { name: t, theme: r } = e, n = t ? lP({ string: t }) : "colors.gray.400", o = iP(n)(r); let a = "white"; return o || (a = "gray.800"), { - bg: ua.reference, - fontSize: $a.reference, + bg: fa.reference, + fontSize: Ma.reference, color: a, - borderColor: po.reference, + borderColor: mo.reference, verticalAlign: "top", - width: _o.reference, - height: _o.reference, + width: Eo.reference, + height: Eo.reference, "&:not([data-loaded])": { - [ua.variable]: n + [fa.variable]: n }, - [po.variable]: "colors.white", + [mo.variable]: "colors.white", _dark: { - [po.variable]: "colors.gray.800" + [mo.variable]: "colors.gray.800" } }; -}, KR = { - fontSize: $a.reference, +}, t$ = { + fontSize: Ma.reference, lineHeight: "1" -}, ZR = _v((e) => ({ - badge: $t(qR, e), - excessLabel: $t(GR, e), - container: $t(XR, e), - label: KR +}, r$ = Ev((e) => ({ + badge: Dt(JR, e), + excessLabel: Dt(QR, e), + container: Dt(e$, e), + label: t$ })); -function ln(e) { - const t = e !== "100%" ? pv[e] : void 0; - return _v({ +function un(e) { + const t = e !== "100%" ? mv[e] : void 0; + return Ev({ container: { - [_o.variable]: t ?? e, - [$a.variable]: `calc(${t ?? e} / 2.5)` + [Eo.variable]: t ?? e, + [Ma.variable]: `calc(${t ?? e} / 2.5)` }, excessLabel: { - [_o.variable]: t ?? e, - [$a.variable]: `calc(${t ?? e} / 2.5)` + [Eo.variable]: t ?? e, + [Ma.variable]: `calc(${t ?? e} / 2.5)` } }); } -var JR = { - "2xs": ln(4), - xs: ln(6), - sm: ln(8), - md: ln(12), - lg: ln(16), - xl: ln(24), - "2xl": ln(32), - full: ln("100%") -}, QR = YR({ - baseStyle: ZR, - sizes: JR, +var n$ = { + "2xs": un(4), + xs: un(6), + sm: un(8), + md: un(12), + lg: un(16), + xl: un(24), + "2xl": un(32), + full: un("100%") +}, o$ = ZR({ + baseStyle: r$, + sizes: n$, defaultProps: { size: "md" } -}), e$ = { - Accordion: NR, - Alert: HR, - Avatar: QR, - Badge: sa, - Breadcrumb: tR, - Button: uR, - Checkbox: ls, - CloseButton: bR, - Code: wR, - Container: _R, - Divider: AR, - Drawer: EO, - Editable: DO, - Form: BO, - FormError: HO, - FormLabel: qO, - Heading: KO, +}), a$ = { + Accordion: LR, + Alert: KR, + Avatar: o$, + Badge: ca, + Breadcrumb: iR, + Button: mR, + Checkbox: us, + CloseButton: CR, + Code: PR, + Container: AR, + Divider: MR, + Drawer: RO, + Editable: jO, + Form: UO, + FormError: KO, + FormLabel: JO, + Heading: tR, Input: Ve, - Kbd: gA, - Link: yA, - List: _A, - Menu: MA, - Modal: HA, - NumberInput: eO, - PinInput: oO, - Popover: mO, - Progress: CT, - Radio: FT, - Select: WT, - Skeleton: HT, - SkipLink: qT, - Slider: oA, - Spinner: sA, - Stat: mA, - Switch: yP, - Table: EP, - Tabs: VP, - Tag: eT, - Textarea: fT, - Tooltip: mT, - Card: mR, - Stepper: fE -}, kv = { + Kbd: wA, + Link: _A, + List: AA, + Menu: BA, + Modal: KA, + NumberInput: aO, + PinInput: cO, + Popover: xO, + Progress: TT, + Radio: VT, + Select: qT, + Skeleton: KT, + SkipLink: JT, + Slider: cA, + Spinner: fA, + Stat: xA, + Switch: _P, + Table: RP, + Tabs: YP, + Tag: aT, + Textarea: gT, + Tooltip: xT, + Card: xR, + Stepper: gE +}, Pv = { colors: { "chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" }, "chakra-body-bg": { _light: "white", _dark: "gray.800" }, @@ -11002,7 +11044,7 @@ var JR = { "chakra-subtle-text": { _light: "gray.600", _dark: "gray.400" }, "chakra-placeholder-color": { _light: "gray.500", _dark: "whiteAlpha.400" } } -}, Ev = { +}, Tv = { global: { body: { fontFamily: "body", @@ -11019,62 +11061,62 @@ var JR = { borderColor: "chakra-border-color" } } -}, Pv = "ltr", Tv = { +}, Av = "ltr", Ov = { useSystemColorMode: !1, initialColorMode: "light", cssVarPrefix: "chakra" -}, Av = { - semanticTokens: kv, - direction: Pv, - ...hv, - components: e$, - styles: Ev, - config: Tv -}, kV = Av, t$ = { - semanticTokens: kv, - direction: Pv, +}, Rv = { + semanticTokens: Pv, + direction: Av, + ...vv, + components: a$, + styles: Tv, + config: Ov +}, RV = Rv, i$ = { + semanticTokens: Pv, + direction: Av, components: {}, - ...hv, - styles: Ev, - config: Tv + ...vv, + styles: Tv, + config: Ov }; -function ta(e) { +function na(e) { return typeof e == "function"; } -function r$(...e) { +function s$(...e) { return (t) => e.reduce((r, n) => n(r), t); } -var Ov = (e) => function(...r) { +var $v = (e) => function(...r) { let n = [...r], o = r[r.length - 1]; - return zk(o) && n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, r$( + return Hk(o) && n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, s$( ...n.map( - (a) => (i) => ta(a) ? a(i) : Rv(i, a) + (a) => (i) => na(a) ? a(i) : Dv(i, a) ) )(o); -}, EV = Ov(Av), PV = Ov(t$); -function Rv(...e) { - return ar({}, ...e, $v); +}, $V = $v(Rv), DV = $v(i$); +function Dv(...e) { + return ir({}, ...e, Mv); } -function $v(e, t, r, n) { - if ((ta(e) || ta(t)) && Object.prototype.hasOwnProperty.call(n, r)) +function Mv(e, t, r, n) { + if ((na(e) || na(t)) && Object.prototype.hasOwnProperty.call(n, r)) return (...o) => { - const a = ta(e) ? e(...o) : e, i = ta(t) ? t(...o) : t; - return ar({}, a, i, $v); + const a = na(e) ? e(...o) : e, i = na(t) ? t(...o) : t; + return ir({}, a, i, Mv); }; } -function n$(e, t) { +function l$(e, t) { const r = {}; return Object.keys(e).forEach((n) => { t.includes(n) || (r[n] = e[n]); }), r; } -function o$(e, t, r, n) { +function c$(e, t, r, n) { const o = typeof t == "string" ? t.split(".") : [t]; for (n = 0; n < o.length && e; n += 1) e = e[o[n]]; return e === void 0 ? r : e; } -var a$ = (e) => { +var u$ = (e) => { const t = /* @__PURE__ */ new WeakMap(); return (n, o, a, i) => { if (typeof n > "u") @@ -11086,56 +11128,56 @@ var a$ = (e) => { const l = e(n, o, a, i); return s.set(o, l), l; }; -}, i$ = a$(o$); -function Dv(e, t) { +}, d$ = u$(c$); +function Iv(e, t) { const r = {}; return Object.keys(e).forEach((n) => { const o = e[n]; t(o, n, e) && (r[n] = o); }), r; } -var Mv = (e) => Dv(e, (t) => t != null); -function xp(e) { +var Fv = (e) => Iv(e, (t) => t != null); +function Sp(e) { return typeof e == "number"; } -function s$(e) { +function f$(e) { return typeof e == "function"; } -var l$ = process.env.NODE_ENV !== "production"; +var p$ = process.env.NODE_ENV !== "production"; process.env.NODE_ENV; -function TV(e) { +function MV(e) { return "current" in e; } -function c$(e, ...t) { - return s$(e) ? e(...t) : e; +function h$(e, ...t) { + return f$(e) ? e(...t) : e; } -function AV(...e) { +function IV(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function u$(e) { +function m$(e) { let t; return function(...n) { return e && (t = e.apply(this, n), e = null), t; }; } -var OV = () => { -}, RV = /* @__PURE__ */ u$((e) => () => { +var FV = () => { +}, NV = /* @__PURE__ */ m$((e) => () => { const { condition: t, message: r } = e; - t && l$ && console.warn(r); -}), $V = (...e) => (t) => e.reduce((r, n) => n(r), t), Vl = (e, t) => Math.abs(e - t), Sp = (e) => "x" in e && "y" in e; -function DV(e, t) { - if (xp(e) && xp(t)) - return Vl(e, t); - if (Sp(e) && Sp(t)) { - const r = Vl(e.x, t.x), n = Vl(e.y, t.y); + t && p$ && console.warn(r); +}), jV = (...e) => (t) => e.reduce((r, n) => n(r), t), Ll = (e, t) => Math.abs(e - t), wp = (e) => "x" in e && "y" in e; +function BV(e, t) { + if (Sp(e) && Sp(t)) + return Ll(e, t); + if (wp(e) && wp(t)) { + const r = Ll(e.x, t.x), n = Ll(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } return 0; } -const Iv = 1 / 60 * 1e3, d$ = typeof performance < "u" ? () => performance.now() : () => Date.now(), Fv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(d$()), Iv); -function f$(e) { +const Nv = 1 / 60 * 1e3, v$ = typeof performance < "u" ? () => performance.now() : () => Date.now(), jv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(v$()), Nv); +function g$(e) { let t = [], r = [], n = 0, o = !1, a = !1; const i = /* @__PURE__ */ new WeakSet(), s = { schedule: (l, c = !1, u = !1) => { @@ -11161,29 +11203,29 @@ function f$(e) { }; return s; } -const p$ = 40; -let Vc = !0, Da = !1, Lc = !1; -const ho = { +const b$ = 40; +let Vc = !0, Ia = !1, Lc = !1; +const vo = { delta: 0, timestamp: 0 -}, qa = [ +}, Xa = [ "read", "update", "preRender", "render", "postRender" -], Vs = qa.reduce((e, t) => (e[t] = f$(() => Da = !0), e), {}), h$ = qa.reduce((e, t) => { - const r = Vs[t]; - return e[t] = (n, o = !1, a = !1) => (Da || g$(), r.schedule(n, o, a)), e; -}, {}), m$ = qa.reduce((e, t) => (e[t] = Vs[t].cancel, e), {}); -qa.reduce((e, t) => (e[t] = () => Vs[t].process(ho), e), {}); -const v$ = (e) => Vs[e].process(ho), Nv = (e) => { - Da = !1, ho.delta = Vc ? Iv : Math.max(Math.min(e - ho.timestamp, p$), 1), ho.timestamp = e, Lc = !0, qa.forEach(v$), Lc = !1, Da && (Vc = !1, Fv(Nv)); -}, g$ = () => { - Da = !0, Vc = !0, Lc || Fv(Nv); -}, wp = () => ho; -var b$ = typeof Element < "u", y$ = typeof Map == "function", x$ = typeof Set == "function", S$ = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; -function Hi(e, t) { +], Ws = Xa.reduce((e, t) => (e[t] = g$(() => Ia = !0), e), {}), y$ = Xa.reduce((e, t) => { + const r = Ws[t]; + return e[t] = (n, o = !1, a = !1) => (Ia || w$(), r.schedule(n, o, a)), e; +}, {}), x$ = Xa.reduce((e, t) => (e[t] = Ws[t].cancel, e), {}); +Xa.reduce((e, t) => (e[t] = () => Ws[t].process(vo), e), {}); +const S$ = (e) => Ws[e].process(vo), Bv = (e) => { + Ia = !1, vo.delta = Vc ? Nv : Math.max(Math.min(e - vo.timestamp, b$), 1), vo.timestamp = e, Lc = !0, Xa.forEach(S$), Lc = !1, Ia && (Vc = !1, jv(Bv)); +}, w$ = () => { + Ia = !0, Vc = !0, Lc || jv(Bv); +}, Cp = () => vo; +var C$ = typeof Element < "u", _$ = typeof Map == "function", k$ = typeof Set == "function", E$ = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; +function Gi(e, t) { if (e === t) return !0; if (e && t && typeof e == "object" && typeof t == "object") { @@ -11194,23 +11236,23 @@ function Hi(e, t) { if (r = e.length, r != t.length) return !1; for (n = r; n-- !== 0; ) - if (!Hi(e[n], t[n])) + if (!Gi(e[n], t[n])) return !1; return !0; } var a; - if (y$ && e instanceof Map && t instanceof Map) { + if (_$ && e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1; for (a = e.entries(); !(n = a.next()).done; ) if (!t.has(n.value[0])) return !1; for (a = e.entries(); !(n = a.next()).done; ) - if (!Hi(n.value[1], t.get(n.value[0]))) + if (!Gi(n.value[1], t.get(n.value[0]))) return !1; return !0; } - if (x$ && e instanceof Set && t instanceof Set) { + if (k$ && e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (a = e.entries(); !(n = a.next()).done; ) @@ -11218,7 +11260,7 @@ function Hi(e, t) { return !1; return !0; } - if (S$ && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { + if (E$ && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { if (r = e.length, r != t.length) return !1; for (n = r; n-- !== 0; ) @@ -11237,54 +11279,54 @@ function Hi(e, t) { for (n = r; n-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, o[n])) return !1; - if (b$ && e instanceof Element) + if (C$ && e instanceof Element) return !1; for (n = r; n-- !== 0; ) - if (!((o[n] === "_owner" || o[n] === "__v" || o[n] === "__o") && e.$$typeof) && !Hi(e[o[n]], t[o[n]])) + if (!((o[n] === "_owner" || o[n] === "__v" || o[n] === "__o") && e.$$typeof) && !Gi(e[o[n]], t[o[n]])) return !1; return !0; } return e !== e && t !== t; } -var w$ = function(t, r) { +var P$ = function(t, r) { try { - return Hi(t, r); + return Gi(t, r); } catch (n) { if ((n.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1; throw n; } }; -const C$ = /* @__PURE__ */ Ts(w$); +const T$ = /* @__PURE__ */ Os(P$); function Yu(e, t = {}) { var r; - const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = nv(), s = e ? i$(a, `components.${e}`) : void 0, l = n || s, c = ar( + const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = av(), s = e ? d$(a, `components.${e}`) : void 0, l = n || s, c = ir( { theme: a, colorMode: i }, (r = l == null ? void 0 : l.defaultProps) != null ? r : {}, - Mv(n$(o, ["children"])) + Fv(l$(o, ["children"])) ), u = be({}); if (l) { - const f = jk(l)(c); - C$(u.current, f) || (u.current = f); + const f = Wk(l)(c); + T$(u.current, f) || (u.current = f); } return u.current; } -function $o(e, t = {}) { +function Mo(e, t = {}) { return Yu(e, t); } -function Do(e, t = {}) { +function Io(e, t = {}) { return Yu(e, t); } -function MV(e, t) { +function zV(e, t) { var r; - const { baseConfig: n, ...o } = t, { theme: a } = nv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? Rv(i, n) : n; + const { baseConfig: n, ...o } = t, { theme: a } = av(), i = (r = a.components) == null ? void 0 : r[e], s = i ? Dv(i, n) : n; return Yu(null, { ...o, styleConfig: s }); } -var _$ = /* @__PURE__ */ new Set([ - ...kk, +var A$ = /* @__PURE__ */ new Set([ + ...Ok, "textStyle", "layerStyle", "apply", @@ -11295,16 +11337,16 @@ var _$ = /* @__PURE__ */ new Set([ "__css", "css", "sx" -]), k$ = /* @__PURE__ */ new Set([ +]), O$ = /* @__PURE__ */ new Set([ "htmlWidth", "htmlHeight", "htmlSize", "htmlTranslate" ]); -function E$(e) { - return k$.has(e) || !_$.has(e); +function R$(e) { + return O$.has(e) || !A$.has(e); } -function P$(e, ...t) { +function $$(e, ...t) { if (e == null) throw new TypeError("Cannot convert undefined or null to object"); const r = { ...e }; @@ -11314,19 +11356,19 @@ function P$(e, ...t) { Object.prototype.hasOwnProperty.call(n, o) && (o in r && delete r[o], r[o] = n[o]); return r; } -var T$ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, A$ = /* @__PURE__ */ qm( +var D$ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, M$ = /* @__PURE__ */ Xm( function(e) { - return T$.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; + return D$.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ -), O$ = A$, R$ = function(t) { +), I$ = M$, F$ = function(t) { return t !== "theme"; -}, Cp = function(t) { +}, _p = function(t) { return typeof t == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character - t.charCodeAt(0) > 96 ? O$ : R$; -}, _p = function(t, r, n) { + t.charCodeAt(0) > 96 ? I$ : F$; +}, kp = function(t, r, n) { var o; if (r) { var a = r.shouldForwardProp; @@ -11335,46 +11377,46 @@ var T$ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def } : a; } return typeof o != "function" && n && (o = t.__emotion_forwardProp), o; -}, kp = `You have illegal escape sequence in your template literal, most likely inside content's property value. +}, Ep = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, $$ = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, N$ = function(t) { var r = t.cache, n = t.serialized, o = t.isStringTag; - return Ms(r, n, o), Du(function() { - return Is(r, n, o); + return Fs(r, n, o), Du(function() { + return Ns(r, n, o); }), null; -}, D$ = function e(t, r) { +}, j$ = function e(t, r) { if (process.env.NODE_ENV !== "production" && t === void 0) throw new Error(`You are trying to create a styled element with an undefined component. You may have forgotten to import it.`); var n = t.__emotion_real === t, o = n && t.__emotion_base || t, a, i; r !== void 0 && (a = r.label, i = r.target); - var s = _p(t, r, n), l = s || Cp(o), c = !l("as"); + var s = kp(t, r, n), l = s || _p(o), c = !l("as"); return function() { var u = arguments, d = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; if (a !== void 0 && d.push("label:" + a + ";"), u[0] == null || u[0].raw === void 0) d.push.apply(d, u); else { - process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(kp), d.push(u[0][0]); + process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(Ep), d.push(u[0][0]); for (var f = u.length, p = 1; p < f; p++) - process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(kp), d.push(u[p], u[0][p]); + process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(Ep), d.push(u[p], u[0][p]); } - var m = Fs(function(h, v, b) { + var m = js(function(h, v, b) { var y = c && h.as || o, S = "", k = [], w = h; if (h.theme == null) { w = {}; for (var M in h) w[M] = h[M]; - w.theme = U.useContext(vn); + w.theme = U.useContext(bn); } typeof h.className == "string" ? S = Ru(v.registered, k, h.className) : h.className != null && (S = h.className + " "); - var P = wo(d.concat(k), v.registered, w); + var P = _o(d.concat(k), v.registered, w); S += v.key + "-" + P.name, i !== void 0 && (S += " " + i); - var I = c && s === void 0 ? Cp(y) : l, z = {}; + var I = c && s === void 0 ? _p(y) : l, z = {}; for (var j in h) c && j === "as" || // $FlowFixMe I(j) && (z[j] = h[j]); - return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement($$, { + return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(N$, { cache: v, serialized: P, isStringTag: typeof y == "string" @@ -11385,12 +11427,12 @@ You may have forgotten to import it.`); return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i; } }), m.withComponent = function(h, v) { - return e(h, Bn({}, r, v, { - shouldForwardProp: _p(m, v, !0) + return e(h, Ln({}, r, v, { + shouldForwardProp: kp(m, v, !0) })).apply(void 0, d); }, m; }; -}, M$ = [ +}, B$ = [ "a", "abbr", "address", @@ -11526,52 +11568,52 @@ You may have forgotten to import it.`); "svg", "text", "tspan" -], us = D$.bind(); -M$.forEach(function(e) { - us[e] = us(e); +], fs = j$.bind(); +B$.forEach(function(e) { + fs[e] = fs(e); }); -var Ep, I$ = (Ep = us.default) != null ? Ep : us, F$ = ({ baseStyle: e }) => (t) => { - const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = Dv(i, (d, f) => Pk(f)), l = c$(e, t), c = P$( +var Pp, z$ = (Pp = fs.default) != null ? Pp : fs, V$ = ({ baseStyle: e }) => (t) => { + const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = Iv(i, (d, f) => $k(f)), l = h$(e, t), c = $$( {}, o, l, - Mv(s), + Fv(s), a - ), u = Mk(c)(t.theme); + ), u = Bk(c)(t.theme); return n ? [u, n] : u; }; -function Ll(e, t) { +function Wl(e, t) { const { baseStyle: r, ...n } = t ?? {}; - n.shouldForwardProp || (n.shouldForwardProp = E$); - const o = F$({ baseStyle: r }), a = I$( + n.shouldForwardProp || (n.shouldForwardProp = R$); + const o = V$({ baseStyle: r }), a = z$( e, n )(o); - return Dt.forwardRef(function(l, c) { + return Mt.forwardRef(function(l, c) { const { colorMode: u, forced: d } = Nu(); - return Dt.createElement(a, { + return Mt.createElement(a, { ref: c, "data-theme": d ? u : void 0, ...l }); }); } -function N$() { +function L$() { const e = /* @__PURE__ */ new Map(); - return new Proxy(Ll, { + return new Proxy(Wl, { apply(t, r, n) { - return Ll(...n); + return Wl(...n); }, get(t, r) { - return e.has(r) || e.set(r, Ll(r)), e.get(r); + return e.has(r) || e.set(r, Wl(r)), e.get(r); } }); } -var ge = N$(); +var ge = L$(); function _e(e) { - return Tt(e); + return At(e); } -var qu = Sr({ +var Gu = Cr({ getDocument() { return document; }, @@ -11579,15 +11621,15 @@ var qu = Sr({ return window; } }); -qu.displayName = "EnvironmentContext"; -function j$({ defer: e } = {}) { - const [, t] = g0((r) => r + 1, 0); - return Ta(() => { +Gu.displayName = "EnvironmentContext"; +function W$({ defer: e } = {}) { + const [, t] = y0((r) => r + 1, 0); + return Oa(() => { e && t(); - }, [e]), dt(qu); + }, [e]), ft(Gu); } -function B$(e) { - const { children: t, environment: r, disabled: n } = e, o = be(null), a = vt(() => r || { +function U$(e) { + const { children: t, environment: r, disabled: n } = e, o = be(null), a = gt(() => r || { getDocument: () => { var s, l; return (l = (s = o.current) == null ? void 0 : s.ownerDocument) != null ? l : document; @@ -11597,22 +11639,22 @@ function B$(e) { return (l = (s = o.current) == null ? void 0 : s.ownerDocument.defaultView) != null ? l : window; } }, [r]), i = !n || !r; - return /* @__PURE__ */ L.jsxs(qu.Provider, { value: a, children: [ + return /* @__PURE__ */ L.jsxs(Gu.Provider, { value: a, children: [ t, i && /* @__PURE__ */ L.jsx("span", { id: "__chakra_env", hidden: !0, ref: o }) ] }); } -B$.displayName = "EnvironmentProvider"; -function Kt(e, t = []) { +U$.displayName = "EnvironmentProvider"; +function Zt(e, t = []) { const r = be(e); return Fe(() => { r.current = e; - }), q((...n) => { + }), G((...n) => { var o; return (o = r.current) == null ? void 0 : o.call(r, ...n); }, t); } -function Mo(e, t) { +function Fo(e, t) { const r = be(!1), n = be(!1); Fe(() => { if (r.current && n.current) @@ -11622,13 +11664,13 @@ function Mo(e, t) { r.current = !1; }), []); } -const jv = Sr({ +const zv = Cr({ transformPagePoint: (e) => e, isStatic: !1, reducedMotion: "never" -}), Ls = Sr({}), Ga = Sr(null), Ws = typeof document < "u", ds = Ws ? Es : Fe, Bv = Sr({ strict: !1 }); -function z$(e, t, r, n) { - const { visualElement: o } = dt(Ls), a = dt(Bv), i = dt(Ga), s = dt(jv).reducedMotion, l = be(); +}), Us = Cr({}), Ka = Cr(null), Hs = typeof document < "u", ps = Hs ? Ts : Fe, Vv = Cr({ strict: !1 }); +function H$(e, t, r, n) { + const { visualElement: o } = ft(Us), a = ft(Vv), i = ft(Ka), s = ft(zv).reducedMotion, l = be(); n = n || a.renderer, !l.current && n && (l.current = n(e, { visualState: t, parent: o, @@ -11638,23 +11680,23 @@ function z$(e, t, r, n) { reducedMotionConfig: s })); const c = l.current; - return pm(() => { + return hm(() => { c && c.update(r, i); - }), ds(() => { + }), ps(() => { c && c.render(); }), Fe(() => { c && c.updateFeatures(); - }), (window.HandoffAppearAnimations ? ds : Fe)(() => { + }), (window.HandoffAppearAnimations ? ps : Fe)(() => { c && c.animationState && c.animationState.animateChanges(); }), c; } -function no(e) { +function ao(e) { return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current"); } -function V$(e, t, r) { - return q( +function Y$(e, t, r) { + return G( (n) => { - n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : no(r) && (r.current = n)); + n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : ao(r) && (r.current = n)); }, /** * Only pass a new ref callback to React if we've received a visual element @@ -11664,13 +11706,13 @@ function V$(e, t, r) { [t] ); } -function Ma(e) { +function Fa(e) { return typeof e == "string" || Array.isArray(e); } -function Us(e) { +function Ys(e) { return typeof e == "object" && typeof e.start == "function"; } -const Gu = [ +const qu = [ "animate", "whileInView", "whileFocus", @@ -11678,31 +11720,31 @@ const Gu = [ "whileTap", "whileDrag", "exit" -], Xu = ["initial", ...Gu]; -function Hs(e) { - return Us(e.animate) || Xu.some((t) => Ma(e[t])); +], Xu = ["initial", ...qu]; +function Gs(e) { + return Ys(e.animate) || Xu.some((t) => Fa(e[t])); } -function zv(e) { - return !!(Hs(e) || e.variants); +function Lv(e) { + return !!(Gs(e) || e.variants); } -function L$(e, t) { - if (Hs(e)) { +function G$(e, t) { + if (Gs(e)) { const { initial: r, animate: n } = e; return { - initial: r === !1 || Ma(r) ? r : void 0, - animate: Ma(n) ? n : void 0 + initial: r === !1 || Fa(r) ? r : void 0, + animate: Fa(n) ? n : void 0 }; } return e.inherit !== !1 ? t : {}; } -function W$(e) { - const { initial: t, animate: r } = L$(e, dt(Ls)); - return vt(() => ({ initial: t, animate: r }), [Pp(t), Pp(r)]); +function q$(e) { + const { initial: t, animate: r } = G$(e, ft(Us)); + return gt(() => ({ initial: t, animate: r }), [Tp(t), Tp(r)]); } -function Pp(e) { +function Tp(e) { return Array.isArray(e) ? e.join(" ") : e; } -const Tp = { +const Ap = { animation: [ "animate", "variants", @@ -11721,31 +11763,31 @@ const Tp = { pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], inView: ["whileInView", "onViewportEnter", "onViewportLeave"], layout: ["layout", "layoutId"] -}, Ia = {}; -for (const e in Tp) - Ia[e] = { - isEnabled: (t) => Tp[e].some((r) => !!t[r]) +}, Na = {}; +for (const e in Ap) + Na[e] = { + isEnabled: (t) => Ap[e].some((r) => !!t[r]) }; -function U$(e) { +function X$(e) { for (const t in e) - Ia[t] = { - ...Ia[t], + Na[t] = { + ...Na[t], ...e[t] }; } -const Ku = Sr({}), Vv = Sr({}), H$ = Symbol.for("motionComponentSymbol"); -function Y$({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) { - e && U$(e); +const Ku = Cr({}), Wv = Cr({}), K$ = Symbol.for("motionComponentSymbol"); +function Z$({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) { + e && X$(e); function a(s, l) { let c; const u = { - ...dt(jv), + ...ft(zv), ...s, - layoutId: q$(s) - }, { isStatic: d } = u, f = W$(s), p = n(s, d); - if (!d && Ws) { - f.visualElement = z$(o, p, u, t); - const m = dt(Vv), h = dt(Bv).strict; + layoutId: J$(s) + }, { isStatic: d } = u, f = q$(s), p = n(s, d); + if (!d && Hs) { + f.visualElement = H$(o, p, u, t); + const m = ft(Wv), h = ft(Vv).strict; f.visualElement && (c = f.visualElement.loadFeatures( // Note: Pass the full new combined props to correctly re-render dynamic feature components. u, @@ -11755,22 +11797,22 @@ function Y$({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVis )); } return U.createElement( - Ls.Provider, + Us.Provider, { value: f }, c && f.visualElement ? U.createElement(c, { visualElement: f.visualElement, ...u }) : null, - r(o, s, V$(p, f.visualElement, l), p, d, f.visualElement) + r(o, s, Y$(p, f.visualElement, l), p, d, f.visualElement) ); } - const i = Tt(a); - return i[H$] = o, i; + const i = At(a); + return i[K$] = o, i; } -function q$({ layoutId: e }) { - const t = dt(Ku).id; +function J$({ layoutId: e }) { + const t = ft(Ku).id; return t && e !== void 0 ? t + "-" + e : e; } -function G$(e) { +function Q$(e) { function t(n, o = {}) { - return Y$(e(n, o)); + return Z$(e(n, o)); } if (typeof Proxy > "u") return t; @@ -11784,7 +11826,7 @@ function G$(e) { get: (n, o) => (r.has(o) || r.set(o, t(o)), r.get(o)) }); } -const X$ = [ +const e2 = [ "animate", "circle", "defs", @@ -11824,18 +11866,18 @@ function Zu(e) { /** * If it's in our list of lowercase SVG tags, it's an SVG component */ - !!(X$.indexOf(e) > -1 || /** + !!(e2.indexOf(e) > -1 || /** * If it contains a capital letter, it's an SVG component */ /[A-Z]/.test(e)) ) ); } -const fs = {}; -function K$(e) { - Object.assign(fs, e); +const hs = {}; +function t2(e) { + Object.assign(hs, e); } -const Xa = [ +const Za = [ "transformPerspective", "x", "y", @@ -11853,53 +11895,53 @@ const Xa = [ "skew", "skewX", "skewY" -], Wn = new Set(Xa); -function Lv(e, { layout: t, layoutId: r }) { - return Wn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!fs[e] || e === "opacity"); +], Yn = new Set(Za); +function Uv(e, { layout: t, layoutId: r }) { + return Yn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!hs[e] || e === "opacity"); } -const Ut = (e) => !!(e && e.getVelocity), Z$ = { +const Ht = (e) => !!(e && e.getVelocity), r2 = { x: "translateX", y: "translateY", z: "translateZ", transformPerspective: "perspective" -}, J$ = Xa.length; -function Q$(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) { +}, n2 = Za.length; +function o2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) { let a = ""; - for (let i = 0; i < J$; i++) { - const s = Xa[i]; + for (let i = 0; i < n2; i++) { + const s = Za[i]; if (e[s] !== void 0) { - const l = Z$[s] || s; + const l = r2[s] || s; a += `${l}(${e[s]}) `; } } return t && !e.z && (a += "translateZ(0)"), a = a.trim(), o ? a = o(e, n ? "" : a) : r && n && (a = "none"), a; } -const Wv = (e) => (t) => typeof t == "string" && t.startsWith(e), Uv = Wv("--"), Wc = Wv("var(--"), e2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, t2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, gn = (e, t, r) => Math.min(Math.max(r, e), t), Un = { +const Hv = (e) => (t) => typeof t == "string" && t.startsWith(e), Yv = Hv("--"), Wc = Hv("var(--"), a2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, i2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, yn = (e, t, r) => Math.min(Math.max(r, e), t), Gn = { test: (e) => typeof e == "number", parse: parseFloat, transform: (e) => e -}, da = { - ...Un, - transform: (e) => gn(0, 1, e) -}, wi = { - ...Un, +}, pa = { + ...Gn, + transform: (e) => yn(0, 1, e) +}, _i = { + ...Gn, default: 1 -}, fa = (e) => Math.round(e * 1e5) / 1e5, Ys = /(-)?([\d]*\.?[\d])+/g, Hv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, r2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i; -function Ka(e) { +}, ha = (e) => Math.round(e * 1e5) / 1e5, qs = /(-)?([\d]*\.?[\d])+/g, Gv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, s2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i; +function Ja(e) { return typeof e == "string"; } -const Za = (e) => ({ - test: (t) => Ka(t) && t.endsWith(e) && t.split(" ").length === 1, +const Qa = (e) => ({ + test: (t) => Ja(t) && t.endsWith(e) && t.split(" ").length === 1, parse: parseFloat, transform: (t) => `${t}${e}` -}), cn = Za("deg"), Dr = Za("%"), fe = Za("px"), n2 = Za("vh"), o2 = Za("vw"), Ap = { - ...Dr, - parse: (e) => Dr.parse(e) / 100, - transform: (e) => Dr.transform(e * 100) -}, Op = { - ...Un, +}), dn = Qa("deg"), Ir = Qa("%"), fe = Qa("px"), l2 = Qa("vh"), c2 = Qa("vw"), Op = { + ...Ir, + parse: (e) => Ir.parse(e) / 100, + transform: (e) => Ir.transform(e * 100) +}, Rp = { + ...Gn, transform: Math.round -}, Yv = { +}, qv = { // Border props borderWidth: fe, borderTopWidth: fe, @@ -11934,17 +11976,17 @@ const Za = (e) => ({ marginBottom: fe, marginLeft: fe, // Transform props - rotate: cn, - rotateX: cn, - rotateY: cn, - rotateZ: cn, - scale: wi, - scaleX: wi, - scaleY: wi, - scaleZ: wi, - skew: cn, - skewX: cn, - skewY: cn, + rotate: dn, + rotateX: dn, + rotateY: dn, + rotateZ: dn, + scale: _i, + scaleX: _i, + scaleY: _i, + scaleZ: _i, + skew: dn, + skewX: dn, + skewY: dn, distance: fe, translateX: fe, translateY: fe, @@ -11954,35 +11996,35 @@ const Za = (e) => ({ z: fe, perspective: fe, transformPerspective: fe, - opacity: da, - originX: Ap, - originY: Ap, + opacity: pa, + originX: Op, + originY: Op, originZ: fe, // Misc - zIndex: Op, + zIndex: Rp, // SVG - fillOpacity: da, - strokeOpacity: da, - numOctaves: Op + fillOpacity: pa, + strokeOpacity: pa, + numOctaves: Rp }; function Ju(e, t, r, n) { const { style: o, vars: a, transform: i, transformOrigin: s } = e; let l = !1, c = !1, u = !0; for (const d in t) { const f = t[d]; - if (Uv(d)) { + if (Yv(d)) { a[d] = f; continue; } - const p = Yv[d], m = t2(f, p); - if (Wn.has(d)) { + const p = qv[d], m = i2(f, p); + if (Yn.has(d)) { if (l = !0, i[d] = m, !u) continue; f !== (p.default || 0) && (u = !1); } else d.startsWith("origin") ? (c = !0, s[d] = m) : o[d] = m; } - if (t.transform || (l || n ? o.transform = Q$(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) { + if (t.transform || (l || n ? o.transform = o2(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) { const { originX: d = "50%", originY: f = "50%", originZ: p = 0 } = s; o.transformOrigin = `${d} ${f} ${p}`; } @@ -11993,25 +12035,25 @@ const Qu = () => ({ transformOrigin: {}, vars: {} }); -function qv(e, t, r) { +function Xv(e, t, r) { for (const n in t) - !Ut(t[n]) && !Lv(n, r) && (e[n] = t[n]); + !Ht(t[n]) && !Uv(n, r) && (e[n] = t[n]); } -function a2({ transformTemplate: e }, t, r) { - return vt(() => { +function u2({ transformTemplate: e }, t, r) { + return gt(() => { const n = Qu(); return Ju(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style); }, [t]); } -function i2(e, t, r) { +function d2(e, t, r) { const n = e.style || {}, o = {}; - return qv(o, n, e), Object.assign(o, a2(e, t, r)), e.transformValues ? e.transformValues(o) : o; + return Xv(o, n, e), Object.assign(o, u2(e, t, r)), e.transformValues ? e.transformValues(o) : o; } -function s2(e, t, r) { - const n = {}, o = i2(e, t, r); +function f2(e, t, r) { + const n = {}, o = d2(e, t, r); return e.drag && e.dragListener !== !1 && (n.draggable = !1, o.userSelect = o.WebkitUserSelect = o.WebkitTouchCallout = "none", o.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = o, n; } -const l2 = /* @__PURE__ */ new Set([ +const p2 = /* @__PURE__ */ new Set([ "animate", "exit", "variants", @@ -12046,41 +12088,41 @@ const l2 = /* @__PURE__ */ new Set([ "ignoreStrict", "viewport" ]); -function ps(e) { - return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || l2.has(e); +function ms(e) { + return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || p2.has(e); } -let Gv = (e) => !ps(e); -function c2(e) { - e && (Gv = (t) => t.startsWith("on") ? !ps(t) : e(t)); +let Kv = (e) => !ms(e); +function h2(e) { + e && (Kv = (t) => t.startsWith("on") ? !ms(t) : e(t)); } try { - c2(require("@emotion/is-prop-valid").default); + h2(require("@emotion/is-prop-valid").default); } catch { } -function u2(e, t, r) { +function m2(e, t, r) { const n = {}; for (const o in e) - o === "values" && typeof e.values == "object" || (Gv(o) || r === !0 && ps(o) || !t && !ps(o) || // If trying to use native HTML drag events, forward drag listeners + o === "values" && typeof e.values == "object" || (Kv(o) || r === !0 && ms(o) || !t && !ms(o) || // If trying to use native HTML drag events, forward drag listeners e.draggable && o.startsWith("onDrag")) && (n[o] = e[o]); return n; } -function Rp(e, t, r) { +function $p(e, t, r) { return typeof e == "string" ? e : fe.transform(t + r * e); } -function d2(e, t, r) { - const n = Rp(t, e.x, e.width), o = Rp(r, e.y, e.height); +function v2(e, t, r) { + const n = $p(t, e.x, e.width), o = $p(r, e.y, e.height); return `${n} ${o}`; } -const f2 = { +const g2 = { offset: "stroke-dashoffset", array: "stroke-dasharray" -}, p2 = { +}, b2 = { offset: "strokeDashoffset", array: "strokeDasharray" }; -function h2(e, t, r = 1, n = 0, o = !0) { +function y2(e, t, r = 1, n = 0, o = !0) { e.pathLength = 1; - const a = o ? f2 : p2; + const a = o ? g2 : b2; e[a.offset] = fe.transform(-n); const i = fe.transform(t), s = fe.transform(r); e[a.array] = `${i} ${s}`; @@ -12103,15 +12145,15 @@ function ed(e, { } e.attrs = e.style, e.style = {}; const { attrs: p, style: m, dimensions: h } = e; - p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = d2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && h2(p, i, s, l, !1); + p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = v2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && y2(p, i, s, l, !1); } -const Xv = () => ({ +const Zv = () => ({ ...Qu(), attrs: {} }), td = (e) => typeof e == "string" && e.toLowerCase() === "svg"; -function m2(e, t, r, n) { - const o = vt(() => { - const a = Xv(); +function x2(e, t, r, n) { + const o = gt(() => { + const a = Zv(); return ed(a, t, { enableHardwareAcceleration: !1 }, td(n), e.transformTemplate), { ...a.attrs, style: { ...a.style } @@ -12119,30 +12161,30 @@ function m2(e, t, r, n) { }, [t]); if (e.style) { const a = {}; - qv(a, e.style, e), o.style = { ...a, ...o.style }; + Xv(a, e.style, e), o.style = { ...a, ...o.style }; } return o; } -function v2(e = !1) { +function S2(e = !1) { return (r, n, o, { latestValues: a }, i) => { - const l = (Zu(r) ? m2 : s2)(n, a, i, r), u = { - ...u2(n, typeof r == "string", e), + const l = (Zu(r) ? x2 : f2)(n, a, i, r), u = { + ...m2(n, typeof r == "string", e), ...l, ref: o - }, { children: d } = n, f = vt(() => Ut(d) ? d.get() : d, [d]); - return or(r, { + }, { children: d } = n, f = gt(() => Ht(d) ? d.get() : d, [d]); + return ar(r, { ...u, children: f }); }; } const rd = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); -function Kv(e, { style: t, vars: r }, n, o) { +function Jv(e, { style: t, vars: r }, n, o) { Object.assign(e.style, t, o && o.getProjectionStyles(n)); for (const a in r) e.style.setProperty(a, r[a]); } -const Zv = /* @__PURE__ */ new Set([ +const Qv = /* @__PURE__ */ new Set([ "baseFrequency", "diffuseConstant", "kernelMatrix", @@ -12167,22 +12209,22 @@ const Zv = /* @__PURE__ */ new Set([ "textLength", "lengthAdjust" ]); -function Jv(e, t, r, n) { - Kv(e, t, void 0, n); +function eg(e, t, r, n) { + Jv(e, t, void 0, n); for (const o in t.attrs) - e.setAttribute(Zv.has(o) ? o : rd(o), t.attrs[o]); + e.setAttribute(Qv.has(o) ? o : rd(o), t.attrs[o]); } function nd(e, t) { const { style: r } = e, n = {}; for (const o in r) - (Ut(r[o]) || t.style && Ut(t.style[o]) || Lv(o, e)) && (n[o] = r[o]); + (Ht(r[o]) || t.style && Ht(t.style[o]) || Uv(o, e)) && (n[o] = r[o]); return n; } -function Qv(e, t) { +function tg(e, t) { const r = nd(e, t); for (const n in e) - if (Ut(e[n]) || Ut(t[n])) { - const o = Xa.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n; + if (Ht(e[n]) || Ht(t[n])) { + const o = Za.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n; r[o] = e[n]; } return r; @@ -12190,37 +12232,37 @@ function Qv(e, t) { function od(e, t, r, n = {}, o = {}) { return typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), t; } -function eg(e) { +function rg(e) { const t = be(null); return t.current === null && (t.current = e()), t.current; } -const hs = (e) => Array.isArray(e), g2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), b2 = (e) => hs(e) ? e[e.length - 1] || 0 : e; -function Yi(e) { - const t = Ut(e) ? e.get() : e; - return g2(t) ? t.toValue() : t; +const vs = (e) => Array.isArray(e), w2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), C2 = (e) => vs(e) ? e[e.length - 1] || 0 : e; +function qi(e) { + const t = Ht(e) ? e.get() : e; + return w2(t) ? t.toValue() : t; } -function y2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) { +function _2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) { const i = { - latestValues: x2(n, o, a, e), + latestValues: k2(n, o, a, e), renderState: t() }; return r && (i.mount = (s) => r(n, s, i)), i; } -const tg = (e) => (t, r) => { - const n = dt(Ls), o = dt(Ga), a = () => y2(e, t, n, o); - return r ? a() : eg(a); +const ng = (e) => (t, r) => { + const n = ft(Us), o = ft(Ka), a = () => _2(e, t, n, o); + return r ? a() : rg(a); }; -function x2(e, t, r, n) { +function k2(e, t, r, n) { const o = {}, a = n(e, {}); for (const f in a) - o[f] = Yi(a[f]); + o[f] = qi(a[f]); let { initial: i, animate: s } = e; - const l = Hs(e), c = zv(e); + const l = Gs(e), c = Lv(e); t && c && !l && e.inherit !== !1 && (i === void 0 && (i = t.initial), s === void 0 && (s = t.animate)); let u = r ? r.initial === !1 : !1; u = u || i === !1; const d = u ? s : i; - return d && typeof d != "boolean" && !Us(d) && (Array.isArray(d) ? d : [d]).forEach((p) => { + return d && typeof d != "boolean" && !Ys(d) && (Array.isArray(d) ? d : [d]).forEach((p) => { const m = od(e, p); if (!m) return; @@ -12237,10 +12279,10 @@ function x2(e, t, r, n) { o[y] = h[y]; }), o; } -const S2 = { - useVisualState: tg({ - scrapeMotionValuesFromProps: Qv, - createRenderState: Xv, +const E2 = { + useVisualState: ng({ + scrapeMotionValuesFromProps: tg, + createRenderState: Zv, onMount: (e, t, { renderState: r, latestValues: n }) => { try { r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); @@ -12252,29 +12294,29 @@ const S2 = { height: 0 }; } - ed(r, n, { enableHardwareAcceleration: !1 }, td(t.tagName), e.transformTemplate), Jv(t, r); + ed(r, n, { enableHardwareAcceleration: !1 }, td(t.tagName), e.transformTemplate), eg(t, r); } }) -}, w2 = { - useVisualState: tg({ +}, P2 = { + useVisualState: ng({ scrapeMotionValuesFromProps: nd, createRenderState: Qu }) }; -function C2(e, { forwardMotionProps: t = !1 }, r, n) { +function T2(e, { forwardMotionProps: t = !1 }, r, n) { return { - ...Zu(e) ? S2 : w2, + ...Zu(e) ? E2 : P2, preloadedFeatures: r, - useRender: v2(t), + useRender: S2(t), createVisualElement: n, Component: e }; } -function Yr(e, t, r, n = { passive: !0 }) { +function qr(e, t, r, n = { passive: !0 }) { return e.addEventListener(t, r, n), () => e.removeEventListener(t, r); } -const rg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; -function qs(e, t = "page") { +const og = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; +function Xs(e, t = "page") { return { point: { x: e[t + "X"], @@ -12282,12 +12324,12 @@ function qs(e, t = "page") { } }; } -const _2 = (e) => (t) => rg(t) && e(t, qs(t)); -function Gr(e, t, r, n) { - return Yr(e, t, _2(r), n); +const A2 = (e) => (t) => og(t) && e(t, Xs(t)); +function Kr(e, t, r, n) { + return qr(e, t, A2(r), n); } -const k2 = (e, t) => (r) => t(e(r)), pn = (...e) => e.reduce(k2); -function ng(e) { +const O2 = (e, t) => (r) => t(e(r)), mn = (...e) => e.reduce(O2); +function ag(e) { let t = null; return () => { const r = () => { @@ -12296,33 +12338,33 @@ function ng(e) { return t === null ? (t = e, r) : !1; }; } -const $p = ng("dragHorizontal"), Dp = ng("dragVertical"); -function og(e) { +const Dp = ag("dragHorizontal"), Mp = ag("dragVertical"); +function ig(e) { let t = !1; if (e === "y") - t = Dp(); + t = Mp(); else if (e === "x") - t = $p(); + t = Dp(); else { - const r = $p(), n = Dp(); + const r = Dp(), n = Mp(); r && n ? t = () => { r(), n(); } : (r && r(), n && n()); } return t; } -function ag() { - const e = og(!0); +function sg() { + const e = ig(!0); return e ? (e(), !1) : !0; } -class xn { +class wn { constructor(t) { this.isMounted = !1, this.node = t; } update() { } } -function E2(e) { +function R2(e) { let t = [], r = [], n = 0, o = !1, a = !1; const i = /* @__PURE__ */ new WeakSet(), s = { /** @@ -12357,48 +12399,48 @@ function E2(e) { }; return s; } -const at = { +const it = { delta: 0, timestamp: 0, isProcessing: !1 -}, P2 = 40; -let Uc = !0, Fa = !1; -const Gs = [ +}, $2 = 40; +let Uc = !0, ja = !1; +const Ks = [ "read", "update", "preRender", "render", "postRender" -], mo = Gs.reduce((e, t) => (e[t] = E2(() => Fa = !0), e), {}), T2 = (e) => mo[e].process(at), ig = (e) => { - Fa = !1, at.delta = Uc ? 1e3 / 60 : Math.max(Math.min(e - at.timestamp, P2), 1), at.timestamp = e, at.isProcessing = !0, Gs.forEach(T2), at.isProcessing = !1, Fa && (Uc = !1, requestAnimationFrame(ig)); -}, A2 = () => { - Fa = !0, Uc = !0, at.isProcessing || requestAnimationFrame(ig); -}, tt = Gs.reduce((e, t) => { - const r = mo[t]; - return e[t] = (n, o = !1, a = !1) => (Fa || A2(), r.schedule(n, o, a)), e; +], go = Ks.reduce((e, t) => (e[t] = R2(() => ja = !0), e), {}), D2 = (e) => go[e].process(it), lg = (e) => { + ja = !1, it.delta = Uc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, $2), 1), it.timestamp = e, it.isProcessing = !0, Ks.forEach(D2), it.isProcessing = !1, ja && (Uc = !1, requestAnimationFrame(lg)); +}, M2 = () => { + ja = !0, Uc = !0, it.isProcessing || requestAnimationFrame(lg); +}, tt = Ks.reduce((e, t) => { + const r = go[t]; + return e[t] = (n, o = !1, a = !1) => (ja || M2(), r.schedule(n, o, a)), e; }, {}); -function en(e) { - Gs.forEach((t) => mo[t].cancel(e)); +function rn(e) { + Ks.forEach((t) => go[t].cancel(e)); } -function Mp(e, t) { +function Ip(e, t) { const r = "pointer" + (t ? "enter" : "leave"), n = "onHover" + (t ? "Start" : "End"), o = (a, i) => { - if (a.type === "touch" || ag()) + if (a.type === "touch" || sg()) return; const s = e.getProps(); e.animationState && s.whileHover && e.animationState.setActive("whileHover", t), s[n] && tt.update(() => s[n](a, i)); }; - return Gr(e.current, r, o, { + return Kr(e.current, r, o, { passive: !e.getProps()[n] }); } -class O2 extends xn { +class I2 extends wn { mount() { - this.unmount = pn(Mp(this.node, !0), Mp(this.node, !1)); + this.unmount = mn(Ip(this.node, !0), Ip(this.node, !1)); } unmount() { } } -class R2 extends xn { +class F2 extends wn { constructor() { super(...arguments), this.isActive = !1; } @@ -12415,49 +12457,49 @@ class R2 extends xn { !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1); } mount() { - this.unmount = pn(Yr(this.node.current, "focus", () => this.onFocus()), Yr(this.node.current, "blur", () => this.onBlur())); + this.unmount = mn(qr(this.node.current, "focus", () => this.onFocus()), qr(this.node.current, "blur", () => this.onBlur())); } unmount() { } } -const sg = (e, t) => t ? e === t ? !0 : sg(e, t.parentElement) : !1, gt = (e) => e; -function Wl(e, t) { +const cg = (e, t) => t ? e === t ? !0 : cg(e, t.parentElement) : !1, bt = (e) => e; +function Ul(e, t) { if (!t) return; const r = new PointerEvent("pointer" + e); - t(r, qs(r)); + t(r, Xs(r)); } -class $2 extends xn { +class N2 extends wn { constructor() { - super(...arguments), this.removeStartListeners = gt, this.removeEndListeners = gt, this.removeAccessibleListeners = gt, this.startPointerPress = (t, r) => { + super(...arguments), this.removeStartListeners = bt, this.removeEndListeners = bt, this.removeAccessibleListeners = bt, this.startPointerPress = (t, r) => { if (this.removeEndListeners(), this.isPressing) return; - const n = this.node.getProps(), a = Gr(window, "pointerup", (s, l) => { + const n = this.node.getProps(), a = Kr(window, "pointerup", (s, l) => { if (!this.checkPressEnd()) return; const { onTap: c, onTapCancel: u } = this.node.getProps(); tt.update(() => { - sg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l); + cg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l); }); - }, { passive: !(n.onTap || n.onPointerUp) }), i = Gr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) }); - this.removeEndListeners = pn(a, i), this.startPress(t, r); + }, { passive: !(n.onTap || n.onPointerUp) }), i = Kr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) }); + this.removeEndListeners = mn(a, i), this.startPress(t, r); }, this.startAccessiblePress = () => { const t = (a) => { if (a.key !== "Enter" || this.isPressing) return; const i = (s) => { - s.key !== "Enter" || !this.checkPressEnd() || Wl("up", (l, c) => { + s.key !== "Enter" || !this.checkPressEnd() || Ul("up", (l, c) => { const { onTap: u } = this.node.getProps(); u && tt.update(() => u(l, c)); }); }; - this.removeEndListeners(), this.removeEndListeners = Yr(this.node.current, "keyup", i), Wl("down", (s, l) => { + this.removeEndListeners(), this.removeEndListeners = qr(this.node.current, "keyup", i), Ul("down", (s, l) => { this.startPress(s, l); }); - }, r = Yr(this.node.current, "keydown", t), n = () => { - this.isPressing && Wl("cancel", (a, i) => this.cancelPress(a, i)); - }, o = Yr(this.node.current, "blur", n); - this.removeAccessibleListeners = pn(r, o); + }, r = qr(this.node.current, "keydown", t), n = () => { + this.isPressing && Ul("cancel", (a, i) => this.cancelPress(a, i)); + }, o = qr(this.node.current, "blur", n); + this.removeAccessibleListeners = mn(r, o); }; } startPress(t, r) { @@ -12466,7 +12508,7 @@ class $2 extends xn { o && this.node.animationState && this.node.animationState.setActive("whileTap", !0), n && tt.update(() => n(t, r)); } checkPressEnd() { - return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !ag(); + return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !sg(); } cancelPress(t, r) { if (!this.checkPressEnd()) @@ -12475,36 +12517,36 @@ class $2 extends xn { n && tt.update(() => n(t, r)); } mount() { - const t = this.node.getProps(), r = Gr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = Yr(this.node.current, "focus", this.startAccessiblePress); - this.removeStartListeners = pn(r, n); + const t = this.node.getProps(), r = Kr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = qr(this.node.current, "focus", this.startAccessiblePress); + this.removeStartListeners = mn(r, n); } unmount() { this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners(); } } -const Hc = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), D2 = (e) => { +const Hc = /* @__PURE__ */ new WeakMap(), Hl = /* @__PURE__ */ new WeakMap(), j2 = (e) => { const t = Hc.get(e.target); t && t(e); -}, M2 = (e) => { - e.forEach(D2); +}, B2 = (e) => { + e.forEach(j2); }; -function I2({ root: e, ...t }) { +function z2({ root: e, ...t }) { const r = e || document; - Ul.has(r) || Ul.set(r, {}); - const n = Ul.get(r), o = JSON.stringify(t); - return n[o] || (n[o] = new IntersectionObserver(M2, { root: e, ...t })), n[o]; + Hl.has(r) || Hl.set(r, {}); + const n = Hl.get(r), o = JSON.stringify(t); + return n[o] || (n[o] = new IntersectionObserver(B2, { root: e, ...t })), n[o]; } -function F2(e, t, r) { - const n = I2(t); +function V2(e, t, r) { + const n = z2(t); return Hc.set(e, r), n.observe(e), () => { Hc.delete(e), n.unobserve(e); }; } -const N2 = { +const L2 = { some: 0, all: 1 }; -class j2 extends xn { +class W2 extends wn { constructor() { super(...arguments), this.hasEnteredView = !1, this.isInView = !1; } @@ -12513,7 +12555,7 @@ class j2 extends xn { const { viewport: t = {} } = this.node.getProps(), { root: r, margin: n, amount: o = "some", once: a } = t, i = { root: r ? r.current : void 0, rootMargin: n, - threshold: typeof o == "number" ? o : N2[o] + threshold: typeof o == "number" ? o : L2[o] }, s = (l) => { const { isIntersecting: c } = l; if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView)) @@ -12522,7 +12564,7 @@ class j2 extends xn { const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d; f && f(l); }; - return F2(this.node.current, i, s); + return V2(this.node.current, i, s); } mount() { this.startObserver(); @@ -12531,29 +12573,29 @@ class j2 extends xn { if (typeof IntersectionObserver > "u") return; const { props: t, prevProps: r } = this.node; - ["amount", "margin", "root"].some(B2(t, r)) && this.startObserver(); + ["amount", "margin", "root"].some(U2(t, r)) && this.startObserver(); } unmount() { } } -function B2({ viewport: e = {} }, { viewport: t = {} } = {}) { +function U2({ viewport: e = {} }, { viewport: t = {} } = {}) { return (r) => e[r] !== t[r]; } -const z2 = { +const H2 = { inView: { - Feature: j2 + Feature: W2 }, tap: { - Feature: $2 + Feature: N2 }, focus: { - Feature: R2 + Feature: F2 }, hover: { - Feature: O2 + Feature: I2 } }; -function lg(e, t) { +function ug(e, t) { if (!Array.isArray(t)) return !1; const r = t.length; @@ -12564,51 +12606,51 @@ function lg(e, t) { return !1; return !0; } -function V2(e) { +function Y2(e) { const t = {}; return e.values.forEach((r, n) => t[n] = r.get()), t; } -function L2(e) { +function G2(e) { const t = {}; return e.values.forEach((r, n) => t[n] = r.getVelocity()), t; } -function Xs(e, t, r) { +function Zs(e, t, r) { const n = e.getProps(); - return od(n, t, r !== void 0 ? r : n.custom, V2(e), L2(e)); + return od(n, t, r !== void 0 ? r : n.custom, Y2(e), G2(e)); } -const W2 = "framerAppearId", U2 = "data-" + rd(W2); -let Ja = gt, xr = gt; -process.env.NODE_ENV !== "production" && (Ja = (e, t) => { +const q2 = "framerAppearId", X2 = "data-" + rd(q2); +let ei = bt, wr = bt; +process.env.NODE_ENV !== "production" && (ei = (e, t) => { !e && typeof console < "u" && console.warn(t); -}, xr = (e, t) => { +}, wr = (e, t) => { if (!e) throw new Error(t); }); -const hn = (e) => e * 1e3, Xr = (e) => e / 1e3, H2 = { +const vn = (e) => e * 1e3, Zr = (e) => e / 1e3, K2 = { current: !1 -}, cg = (e) => Array.isArray(e) && typeof e[0] == "number"; -function ug(e) { - return !!(!e || typeof e == "string" && dg[e] || cg(e) || Array.isArray(e) && e.every(ug)); +}, dg = (e) => Array.isArray(e) && typeof e[0] == "number"; +function fg(e) { + return !!(!e || typeof e == "string" && pg[e] || dg(e) || Array.isArray(e) && e.every(fg)); } -const ra = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, dg = { +const oa = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, pg = { linear: "linear", ease: "ease", easeIn: "ease-in", easeOut: "ease-out", easeInOut: "ease-in-out", - circIn: ra([0, 0.65, 0.55, 1]), - circOut: ra([0.55, 0, 1, 0.45]), - backIn: ra([0.31, 0.01, 0.66, -0.59]), - backOut: ra([0.33, 1.53, 0.69, 0.99]) + circIn: oa([0, 0.65, 0.55, 1]), + circOut: oa([0.55, 0, 1, 0.45]), + backIn: oa([0.31, 0.01, 0.66, -0.59]), + backOut: oa([0.33, 1.53, 0.69, 0.99]) }; -function fg(e) { +function hg(e) { if (e) - return cg(e) ? ra(e) : Array.isArray(e) ? e.map(fg) : dg[e]; + return dg(e) ? oa(e) : Array.isArray(e) ? e.map(hg) : pg[e]; } -function Y2(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) { +function Z2(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) { const c = { [t]: r }; l && (c.offset = l); - const u = fg(s); + const u = hg(s); return Array.isArray(u) && (c.easing = u), e.animate(c, { delay: n, duration: o, @@ -12618,68 +12660,68 @@ function Y2(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = direction: i === "reverse" ? "alternate" : "normal" }); } -const Ip = { +const Fp = { waapi: () => Object.hasOwnProperty.call(Element.prototype, "animate") -}, Hl = {}, pg = {}; -for (const e in Ip) - pg[e] = () => (Hl[e] === void 0 && (Hl[e] = Ip[e]()), Hl[e]); -function q2(e, { repeat: t, repeatType: r = "loop" }) { +}, Yl = {}, mg = {}; +for (const e in Fp) + mg[e] = () => (Yl[e] === void 0 && (Yl[e] = Fp[e]()), Yl[e]); +function J2(e, { repeat: t, repeatType: r = "loop" }) { const n = t && r !== "loop" && t % 2 === 1 ? 0 : e.length - 1; return e[n]; } -const hg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, G2 = 1e-7, X2 = 12; -function K2(e, t, r, n, o) { +const vg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, Q2 = 1e-7, eD = 12; +function tD(e, t, r, n, o) { let a, i, s = 0; do - i = t + (r - t) / 2, a = hg(i, n, o) - e, a > 0 ? r = i : t = i; - while (Math.abs(a) > G2 && ++s < X2); + i = t + (r - t) / 2, a = vg(i, n, o) - e, a > 0 ? r = i : t = i; + while (Math.abs(a) > Q2 && ++s < eD); return i; } -function Qa(e, t, r, n) { +function ti(e, t, r, n) { if (e === t && r === n) - return gt; - const o = (a) => K2(a, 0, 1, e, r); - return (a) => a === 0 || a === 1 ? a : hg(o(a), t, n); -} -const Z2 = Qa(0.42, 0, 1, 1), J2 = Qa(0, 0, 0.58, 1), mg = Qa(0.42, 0, 0.58, 1), Q2 = (e) => Array.isArray(e) && typeof e[0] != "number", vg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, gg = (e) => (t) => 1 - e(1 - t), bg = (e) => 1 - Math.sin(Math.acos(e)), ad = gg(bg), eD = vg(ad), yg = Qa(0.33, 1.53, 0.69, 0.99), id = gg(yg), tD = vg(id), rD = (e) => (e *= 2) < 1 ? 0.5 * id(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Fp = { - linear: gt, - easeIn: Z2, - easeInOut: mg, - easeOut: J2, - circIn: bg, - circInOut: eD, + return bt; + const o = (a) => tD(a, 0, 1, e, r); + return (a) => a === 0 || a === 1 ? a : vg(o(a), t, n); +} +const rD = ti(0.42, 0, 1, 1), nD = ti(0, 0, 0.58, 1), gg = ti(0.42, 0, 0.58, 1), oD = (e) => Array.isArray(e) && typeof e[0] != "number", bg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, yg = (e) => (t) => 1 - e(1 - t), xg = (e) => 1 - Math.sin(Math.acos(e)), ad = yg(xg), aD = bg(ad), Sg = ti(0.33, 1.53, 0.69, 0.99), id = yg(Sg), iD = bg(id), sD = (e) => (e *= 2) < 1 ? 0.5 * id(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Np = { + linear: bt, + easeIn: rD, + easeInOut: gg, + easeOut: nD, + circIn: xg, + circInOut: aD, circOut: ad, backIn: id, - backInOut: tD, - backOut: yg, - anticipate: rD -}, Np = (e) => { + backInOut: iD, + backOut: Sg, + anticipate: sD +}, jp = (e) => { if (Array.isArray(e)) { - xr(e.length === 4, "Cubic bezier arrays must contain four numerical values."); + wr(e.length === 4, "Cubic bezier arrays must contain four numerical values."); const [t, r, n, o] = e; - return Qa(t, r, n, o); + return ti(t, r, n, o); } else if (typeof e == "string") - return xr(Fp[e] !== void 0, `Invalid easing type '${e}'`), Fp[e]; + return wr(Np[e] !== void 0, `Invalid easing type '${e}'`), Np[e]; return e; -}, sd = (e, t) => (r) => !!(Ka(r) && r2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), xg = (e, t, r) => (n) => { - if (!Ka(n)) +}, sd = (e, t) => (r) => !!(Ja(r) && s2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), wg = (e, t, r) => (n) => { + if (!Ja(n)) return n; - const [o, a, i, s] = n.match(Ys); + const [o, a, i, s] = n.match(qs); return { [e]: parseFloat(o), [t]: parseFloat(a), [r]: parseFloat(i), alpha: s !== void 0 ? parseFloat(s) : 1 }; -}, nD = (e) => gn(0, 255, e), Yl = { - ...Un, - transform: (e) => Math.round(nD(e)) -}, $n = { +}, lD = (e) => yn(0, 255, e), Gl = { + ...Gn, + transform: (e) => Math.round(lD(e)) +}, Fn = { test: sd("rgb", "red"), - parse: xg("red", "green", "blue"), - transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Yl.transform(e) + ", " + Yl.transform(t) + ", " + Yl.transform(r) + ", " + fa(da.transform(n)) + ")" + parse: wg("red", "green", "blue"), + transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Gl.transform(e) + ", " + Gl.transform(t) + ", " + Gl.transform(r) + ", " + ha(pa.transform(n)) + ")" }; -function oD(e) { +function cD(e) { let t = "", r = "", n = "", o = ""; return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), o = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), o = e.substring(4, 5), t += t, r += r, n += n, o += o), { red: parseInt(t, 16), @@ -12690,21 +12732,21 @@ function oD(e) { } const Yc = { test: sd("#"), - parse: oD, - transform: $n.transform -}, oo = { + parse: cD, + transform: Fn.transform +}, io = { test: sd("hsl", "hue"), - parse: xg("hue", "saturation", "lightness"), - transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Dr.transform(fa(t)) + ", " + Dr.transform(fa(r)) + ", " + fa(da.transform(n)) + ")" -}, Ot = { - test: (e) => $n.test(e) || Yc.test(e) || oo.test(e), - parse: (e) => $n.test(e) ? $n.parse(e) : oo.test(e) ? oo.parse(e) : Yc.parse(e), - transform: (e) => Ka(e) ? e : e.hasOwnProperty("red") ? $n.transform(e) : oo.transform(e) -}, it = (e, t, r) => -r * e + r * t + e; + parse: wg("hue", "saturation", "lightness"), + transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Ir.transform(ha(t)) + ", " + Ir.transform(ha(r)) + ", " + ha(pa.transform(n)) + ")" +}, Rt = { + test: (e) => Fn.test(e) || Yc.test(e) || io.test(e), + parse: (e) => Fn.test(e) ? Fn.parse(e) : io.test(e) ? io.parse(e) : Yc.parse(e), + transform: (e) => Ja(e) ? e : e.hasOwnProperty("red") ? Fn.transform(e) : io.transform(e) +}, st = (e, t, r) => -r * e + r * t + e; function ql(e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; } -function aD({ hue: e, saturation: t, lightness: r, alpha: n }) { +function uD({ hue: e, saturation: t, lightness: r, alpha: n }) { e /= 360, t /= 100, r /= 100; let o = 0, a = 0, i = 0; if (!t) @@ -12720,45 +12762,45 @@ function aD({ hue: e, saturation: t, lightness: r, alpha: n }) { alpha: n }; } -const Gl = (e, t, r) => { +const Xl = (e, t, r) => { const n = e * e; return Math.sqrt(Math.max(0, r * (t * t - n) + n)); -}, iD = [Yc, $n, oo], sD = (e) => iD.find((t) => t.test(e)); -function jp(e) { - const t = sD(e); - xr(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`); +}, dD = [Yc, Fn, io], fD = (e) => dD.find((t) => t.test(e)); +function Bp(e) { + const t = fD(e); + wr(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`); let r = t.parse(e); - return t === oo && (r = aD(r)), r; + return t === io && (r = uD(r)), r; } -const Sg = (e, t) => { - const r = jp(e), n = jp(t), o = { ...r }; - return (a) => (o.red = Gl(r.red, n.red, a), o.green = Gl(r.green, n.green, a), o.blue = Gl(r.blue, n.blue, a), o.alpha = it(r.alpha, n.alpha, a), $n.transform(o)); +const Cg = (e, t) => { + const r = Bp(e), n = Bp(t), o = { ...r }; + return (a) => (o.red = Xl(r.red, n.red, a), o.green = Xl(r.green, n.green, a), o.blue = Xl(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Fn.transform(o)); }; -function lD(e) { +function pD(e) { var t, r; - return isNaN(e) && Ka(e) && (((t = e.match(Ys)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Hv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0; + return isNaN(e) && Ja(e) && (((t = e.match(qs)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Gv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0; } -const wg = { - regex: e2, +const _g = { + regex: a2, countKey: "Vars", token: "${v}", - parse: gt -}, Cg = { - regex: Hv, + parse: bt +}, kg = { + regex: Gv, countKey: "Colors", token: "${c}", - parse: Ot.parse -}, _g = { - regex: Ys, + parse: Rt.parse +}, Eg = { + regex: qs, countKey: "Numbers", token: "${n}", - parse: Un.parse + parse: Gn.parse }; -function Xl(e, { regex: t, countKey: r, token: n, parse: o }) { +function Kl(e, { regex: t, countKey: r, token: n, parse: o }) { const a = e.tokenised.match(t); a && (e["num" + r] = a.length, e.tokenised = e.tokenised.replace(t, n), e.values.push(...a.map(o))); } -function ms(e) { +function gs(e) { const t = e.toString(), r = { value: t, tokenised: t, @@ -12767,149 +12809,149 @@ function ms(e) { numColors: 0, numNumbers: 0 }; - return r.value.includes("var(--") && Xl(r, wg), Xl(r, Cg), Xl(r, _g), r; + return r.value.includes("var(--") && Kl(r, _g), Kl(r, kg), Kl(r, Eg), r; } -function kg(e) { - return ms(e).values; +function Pg(e) { + return gs(e).values; } -function Eg(e) { - const { values: t, numColors: r, numVars: n, tokenised: o } = ms(e), a = t.length; +function Tg(e) { + const { values: t, numColors: r, numVars: n, tokenised: o } = gs(e), a = t.length; return (i) => { let s = o; for (let l = 0; l < a; l++) - l < n ? s = s.replace(wg.token, i[l]) : l < n + r ? s = s.replace(Cg.token, Ot.transform(i[l])) : s = s.replace(_g.token, fa(i[l])); + l < n ? s = s.replace(_g.token, i[l]) : l < n + r ? s = s.replace(kg.token, Rt.transform(i[l])) : s = s.replace(Eg.token, ha(i[l])); return s; }; } -const cD = (e) => typeof e == "number" ? 0 : e; -function uD(e) { - const t = kg(e); - return Eg(e)(t.map(cD)); -} -const bn = { - test: lD, - parse: kg, - createTransformer: Eg, - getAnimatableNone: uD -}, Pg = (e, t) => (r) => `${r > 0 ? t : e}`; -function Tg(e, t) { - return typeof e == "number" ? (r) => it(e, t, r) : Ot.test(e) ? Sg(e, t) : e.startsWith("var(") ? Pg(e, t) : Og(e, t); -} -const Ag = (e, t) => { - const r = [...e], n = r.length, o = e.map((a, i) => Tg(a, t[i])); +const hD = (e) => typeof e == "number" ? 0 : e; +function mD(e) { + const t = Pg(e); + return Tg(e)(t.map(hD)); +} +const xn = { + test: pD, + parse: Pg, + createTransformer: Tg, + getAnimatableNone: mD +}, Ag = (e, t) => (r) => `${r > 0 ? t : e}`; +function Og(e, t) { + return typeof e == "number" ? (r) => st(e, t, r) : Rt.test(e) ? Cg(e, t) : e.startsWith("var(") ? Ag(e, t) : $g(e, t); +} +const Rg = (e, t) => { + const r = [...e], n = r.length, o = e.map((a, i) => Og(a, t[i])); return (a) => { for (let i = 0; i < n; i++) r[i] = o[i](a); return r; }; -}, dD = (e, t) => { +}, vD = (e, t) => { const r = { ...e, ...t }, n = {}; for (const o in r) - e[o] !== void 0 && t[o] !== void 0 && (n[o] = Tg(e[o], t[o])); + e[o] !== void 0 && t[o] !== void 0 && (n[o] = Og(e[o], t[o])); return (o) => { for (const a in n) r[a] = n[a](o); return r; }; -}, Og = (e, t) => { - const r = bn.createTransformer(t), n = ms(e), o = ms(t); - return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? pn(Ag(n.values, o.values), r) : (Ja(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Pg(e, t)); -}, Na = (e, t, r) => { +}, $g = (e, t) => { + const r = xn.createTransformer(t), n = gs(e), o = gs(t); + return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? mn(Rg(n.values, o.values), r) : (ei(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ag(e, t)); +}, Ba = (e, t, r) => { const n = t - e; return n === 0 ? 1 : (r - e) / n; -}, Bp = (e, t) => (r) => it(e, t, r); -function fD(e) { - return typeof e == "number" ? Bp : typeof e == "string" ? Ot.test(e) ? Sg : Og : Array.isArray(e) ? Ag : typeof e == "object" ? dD : Bp; +}, zp = (e, t) => (r) => st(e, t, r); +function gD(e) { + return typeof e == "number" ? zp : typeof e == "string" ? Rt.test(e) ? Cg : $g : Array.isArray(e) ? Rg : typeof e == "object" ? vD : zp; } -function pD(e, t, r) { - const n = [], o = r || fD(e[0]), a = e.length - 1; +function bD(e, t, r) { + const n = [], o = r || gD(e[0]), a = e.length - 1; for (let i = 0; i < a; i++) { let s = o(e[i], e[i + 1]); if (t) { - const l = Array.isArray(t) ? t[i] || gt : t; - s = pn(l, s); + const l = Array.isArray(t) ? t[i] || bt : t; + s = mn(l, s); } n.push(s); } return n; } -function Rg(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) { +function Dg(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) { const a = e.length; - if (xr(a === t.length, "Both input and output ranges must be the same length"), a === 1) + if (wr(a === t.length, "Both input and output ranges must be the same length"), a === 1) return () => t[0]; e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse()); - const i = pD(t, n, o), s = i.length, l = (c) => { + const i = bD(t, n, o), s = i.length, l = (c) => { let u = 0; if (s > 1) for (; u < e.length - 2 && !(c < e[u + 1]); u++) ; - const d = Na(e[u], e[u + 1], c); + const d = Ba(e[u], e[u + 1], c); return i[u](d); }; - return r ? (c) => l(gn(e[0], e[a - 1], c)) : l; + return r ? (c) => l(yn(e[0], e[a - 1], c)) : l; } -function hD(e, t) { +function yD(e, t) { const r = e[e.length - 1]; for (let n = 1; n <= t; n++) { - const o = Na(0, t, n); - e.push(it(r, 1, o)); + const o = Ba(0, t, n); + e.push(st(r, 1, o)); } } -function mD(e) { +function xD(e) { const t = [0]; - return hD(t, e.length - 1), t; + return yD(t, e.length - 1), t; } -function vD(e, t) { +function SD(e, t) { return e.map((r) => r * t); } -function gD(e, t) { - return e.map(() => t || mg).splice(0, e.length - 1); +function wD(e, t) { + return e.map(() => t || gg).splice(0, e.length - 1); } -function vs({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) { - const o = Q2(n) ? n.map(Np) : Np(n), a = { +function bs({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) { + const o = oD(n) ? n.map(jp) : jp(n), a = { done: !1, value: t[0] - }, i = vD( + }, i = SD( // Only use the provided offsets if they're the correct length // TODO Maybe we should warn here if there's a length mismatch - r && r.length === t.length ? r : mD(t), + r && r.length === t.length ? r : xD(t), e - ), s = Rg(i, t, { - ease: Array.isArray(o) ? o : gD(t, o) + ), s = Dg(i, t, { + ease: Array.isArray(o) ? o : wD(t, o) }); return { calculatedDuration: e, next: (l) => (a.value = s(l), a.done = l >= e, a) }; } -function $g(e, t) { +function Mg(e, t) { return t ? e * (1e3 / t) : 0; } -const bD = 5; -function Dg(e, t, r) { - const n = Math.max(t - bD, 0); - return $g(r - e(n), t - n); +const CD = 5; +function Ig(e, t, r) { + const n = Math.max(t - CD, 0); + return Mg(r - e(n), t - n); } -const Kl = 1e-3, yD = 0.01, zp = 10, xD = 0.05, SD = 1; -function wD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) { +const Zl = 1e-3, _D = 0.01, Vp = 10, kD = 0.05, ED = 1; +function PD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) { let o, a; - Ja(e <= hn(zp), "Spring duration must be 10 seconds or less"); + ei(e <= vn(Vp), "Spring duration must be 10 seconds or less"); let i = 1 - t; - i = gn(xD, SD, i), e = gn(yD, zp, Xr(e)), i < 1 ? (o = (c) => { - const u = c * i, d = u * e, f = u - r, p = qc(c, i), m = Math.exp(-d); - return Kl - f / p * m; + i = yn(kD, ED, i), e = yn(_D, Vp, Zr(e)), i < 1 ? (o = (c) => { + const u = c * i, d = u * e, f = u - r, p = Gc(c, i), m = Math.exp(-d); + return Zl - f / p * m; }, a = (c) => { - const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = qc(Math.pow(c, 2), i); - return (-o(c) + Kl > 0 ? -1 : 1) * ((f - p) * m) / h; + const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = Gc(Math.pow(c, 2), i); + return (-o(c) + Zl > 0 ? -1 : 1) * ((f - p) * m) / h; }) : (o = (c) => { const u = Math.exp(-c * e), d = (c - r) * e + 1; - return -Kl + u * d; + return -Zl + u * d; }, a = (c) => { const u = Math.exp(-c * e), d = (r - c) * (e * e); return u * d; }); - const s = 5 / e, l = _D(o, a, s); - if (e = hn(e), isNaN(l)) + const s = 5 / e, l = AD(o, a, s); + if (e = vn(e), isNaN(l)) return { stiffness: 100, damping: 10, @@ -12924,21 +12966,21 @@ function wD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }; } } -const CD = 12; -function _D(e, t, r) { +const TD = 12; +function AD(e, t, r) { let n = r; - for (let o = 1; o < CD; o++) + for (let o = 1; o < TD; o++) n = n - e(n) / t(n); return n; } -function qc(e, t) { +function Gc(e, t) { return e * Math.sqrt(1 - t * t); } -const kD = ["duration", "bounce"], ED = ["stiffness", "damping", "mass"]; -function Vp(e, t) { +const OD = ["duration", "bounce"], RD = ["stiffness", "damping", "mass"]; +function Lp(e, t) { return t.some((r) => e[r] !== void 0); } -function PD(e) { +function $D(e) { let t = { velocity: 0, stiffness: 100, @@ -12947,8 +12989,8 @@ function PD(e) { isResolvedFromDuration: !1, ...e }; - if (!Vp(e, ED) && Vp(e, kD)) { - const r = wD(e); + if (!Lp(e, RD) && Lp(e, OD)) { + const r = PD(e); t = { ...t, ...r, @@ -12958,12 +13000,12 @@ function PD(e) { } return t; } -function Mg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { - const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = PD(n), p = u ? -Xr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Xr(Math.sqrt(s / c)), b = Math.abs(h) < 5; +function Fg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { + const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = $D(n), p = u ? -Zr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Zr(Math.sqrt(s / c)), b = Math.abs(h) < 5; r || (r = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5); let y; if (m < 1) { - const S = qc(v, m); + const S = Gc(v, m); y = (k) => { const w = Math.exp(-m * v * k); return a - w * ((p + m * v * h) / S * Math.sin(S * k) + h * Math.cos(S * k)); @@ -12985,7 +13027,7 @@ function Mg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { i.done = S >= d; else { let w = p; - S !== 0 && (m < 1 ? w = Dg(y, S, k) : w = 0); + S !== 0 && (m < 1 ? w = Ig(y, S, k) : w = 0); const M = Math.abs(w) <= r, P = Math.abs(a - k) <= t; i.done = M && P; } @@ -12993,7 +13035,7 @@ function Mg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { } }; } -function Lp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) { +function Wp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) { const d = e[0], f = { done: !1, value: d @@ -13007,9 +13049,9 @@ function Lp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3 }; let w, M; const P = (I) => { - p(f.value) && (w = I, M = Mg({ + p(f.value) && (w = I, M = Fg({ keyframes: [f.value, m(f.value)], - velocity: Dg(S, I, f.value), + velocity: Ig(S, I, f.value), damping: o, stiffness: a, restDelta: c, @@ -13024,34 +13066,34 @@ function Lp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3 } }; } -const TD = (e) => { +const DD = (e) => { const t = ({ timestamp: r }) => e(r); return { start: () => tt.update(t, !0), - stop: () => en(t), + stop: () => rn(t), /** * If we're processing this frame we can use the * framelocked timestamp to keep things in sync. */ - now: () => at.isProcessing ? at.timestamp : performance.now() + now: () => it.isProcessing ? it.timestamp : performance.now() }; -}, Wp = 2e4; -function Up(e) { +}, Up = 2e4; +function Hp(e) { let t = 0; const r = 50; let n = e.next(t); - for (; !n.done && t < Wp; ) + for (; !n.done && t < Up; ) t += r, n = e.next(t); - return t >= Wp ? 1 / 0 : t; -} -const AD = { - decay: Lp, - inertia: Lp, - tween: vs, - keyframes: vs, - spring: Mg + return t >= Up ? 1 / 0 : t; +} +const MD = { + decay: Wp, + inertia: Wp, + tween: bs, + keyframes: bs, + spring: Fg }; -function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) { +function ys({ autoplay: e = !0, delay: t = 0, driver: r = DD, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) { let p = 1, m = !1, h, v; const b = () => { h && h(), v = new Promise((N) => { @@ -13060,9 +13102,9 @@ function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type }; b(); let y; - const S = AD[o] || vs; + const S = MD[o] || bs; let k; - S !== vs && typeof n[0] != "number" && (k = Rg([0, 100], n, { + S !== bs && typeof n[0] != "number" && (k = Dg([0, 100], n, { clamp: !1 }), n = [0, 100]); const w = S({ ...f, keyframes: n }); @@ -13073,7 +13115,7 @@ function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type velocity: -(f.velocity || 0) })); let P = "idle", I = null, z = null, j = null; - w.calculatedDuration === null && a && (w.calculatedDuration = Up(w)); + w.calculatedDuration === null && a && (w.calculatedDuration = Hp(w)); const { calculatedDuration: X } = w; let ne = 1 / 0, J = 1 / 0; X !== null && (ne = X + i, J = ne * (a + 1) - i); @@ -13091,7 +13133,7 @@ function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type !ae && Z >= 1 && (ae = 1), ae === 1 && Y--, Y = Math.min(Y, a + 1); const R = !!(Y % 2); R && (s === "reverse" ? (ae = 1 - ae, i && (ae -= i / ne)) : s === "mirror" && (B = M)); - let Se = gn(0, 1, ae); + let Se = yn(0, 1, ae); Q > J && (Se = s === "reverse" && R ? 1 : 0), O = Se * ne; } const C = T ? { done: !1, value: n[0] } : B.next(O); @@ -13119,20 +13161,20 @@ function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type return v.then(N, V); }, get time() { - return Xr(Q); + return Zr(Q); }, set time(N) { - N = hn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p; + N = vn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p; }, get duration() { - const N = w.calculatedDuration === null ? Up(w) : w.calculatedDuration; - return Xr(N); + const N = w.calculatedDuration === null ? Hp(w) : w.calculatedDuration; + return Zr(N); }, get speed() { return p; }, set speed(N) { - N === p || !y || (p = N, F.time = Xr(Q)); + N === p || !y || (p = N, F.time = Zr(Q)); }, get state() { return P; @@ -13154,15 +13196,15 @@ function gs({ autoplay: e = !0, delay: t = 0, driver: r = TD, keyframes: n, type }; return F; } -const OD = /* @__PURE__ */ new Set([ +const ID = /* @__PURE__ */ new Set([ "opacity", "clipPath", "filter", "transform", "backgroundColor" -]), Ci = 10, RD = 2e4, $D = (e, t) => t.type === "spring" || e === "backgroundColor" || !ug(t.ease); -function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { - if (!(pg.waapi() && OD.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia")) +]), ki = 10, FD = 2e4, ND = (e, t) => t.type === "spring" || e === "backgroundColor" || !fg(t.ease); +function jD(e, t, { onUpdate: r, onComplete: n, ...o }) { + if (!(mg.waapi() && ID.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia")) return !1; let i = !1, s, l; const c = () => { @@ -13172,8 +13214,8 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { }; c(); let { keyframes: u, duration: d = 300, ease: f, times: p } = o; - if ($D(t, o)) { - const b = gs({ + if (ND(t, o)) { + const b = ys({ ...o, repeat: 0, delay: 0 @@ -13181,11 +13223,11 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { let y = { done: !1, value: u[0] }; const S = []; let k = 0; - for (; !y.done && k < RD; ) - y = b.sample(k), S.push(y.value), k += Ci; - p = void 0, u = S, d = k - Ci, f = "linear"; + for (; !y.done && k < FD; ) + y = b.sample(k), S.push(y.value), k += ki; + p = void 0, u = S, d = k - ki, f = "linear"; } - const m = Y2(e.owner.current, t, u, { + const m = Z2(e.owner.current, t, u, { ...o, duration: d, /** @@ -13202,16 +13244,16 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { tt.update(h), s(), c(); }; return m.onfinish = () => { - e.set(q2(u, o)), n && n(), v(); + e.set(J2(u, o)), n && n(), v(); }, { then(b, y) { return l.then(b, y); }, get time() { - return Xr(m.currentTime || 0); + return Zr(m.currentTime || 0); }, set time(b) { - m.currentTime = hn(b); + m.currentTime = vn(b); }, get speed() { return m.playbackRate; @@ -13220,10 +13262,10 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { m.playbackRate = b; }, get duration() { - return Xr(d); + return Zr(d); }, play: () => { - i || (m.play(), en(h)); + i || (m.play(), rn(h)); }, pause: () => m.pause(), stop: () => { @@ -13231,11 +13273,11 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { return; const { currentTime: b } = m; if (b) { - const y = gs({ + const y = ys({ ...o, autoplay: !1 }); - e.setWithVelocity(y.sample(b - Ci).value, y.sample(b).value, Ci); + e.setWithVelocity(y.sample(b - ki).value, y.sample(b).value, ki); } v(); }, @@ -13243,118 +13285,118 @@ function DD(e, t, { onUpdate: r, onComplete: n, ...o }) { cancel: v }; } -function MD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { +function BD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { const o = () => (r && r(e[e.length - 1]), n && n(), { time: 0, speed: 1, duration: 0, - play: gt, - pause: gt, - stop: gt, + play: bt, + pause: bt, + stop: bt, then: (a) => (a(), Promise.resolve()), - cancel: gt, - complete: gt + cancel: bt, + complete: bt }); - return t ? gs({ + return t ? ys({ keyframes: [0, 1], duration: 0, delay: t, onComplete: o }) : o(); } -const ID = { +const zD = { type: "spring", stiffness: 500, damping: 25, restSpeed: 10 -}, FD = (e) => ({ +}, VD = (e) => ({ type: "spring", stiffness: 550, damping: e === 0 ? 2 * Math.sqrt(550) : 30, restSpeed: 10 -}), ND = { +}), LD = { type: "keyframes", duration: 0.8 -}, jD = { +}, WD = { type: "keyframes", ease: [0.25, 0.1, 0.35, 1], duration: 0.3 -}, BD = (e, { keyframes: t }) => t.length > 2 ? ND : Wn.has(e) ? e.startsWith("scale") ? FD(t[1]) : ID : jD, Gc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string -(bn.test(t) || t === "0") && // And it contains numbers and/or colors -!t.startsWith("url(")), zD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); -function VD(e) { +}, UD = (e, { keyframes: t }) => t.length > 2 ? LD : Yn.has(e) ? e.startsWith("scale") ? VD(t[1]) : zD : WD, qc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string +(xn.test(t) || t === "0") && // And it contains numbers and/or colors +!t.startsWith("url(")), HD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); +function YD(e) { const [t, r] = e.slice(0, -1).split("("); if (t === "drop-shadow") return e; - const [n] = r.match(Ys) || []; + const [n] = r.match(qs) || []; if (!n) return e; const o = r.replace(n, ""); - let a = zD.has(t) ? 1 : 0; + let a = HD.has(t) ? 1 : 0; return n !== r && (a *= 100), t + "(" + a + o + ")"; } -const LD = /([a-z-]*)\(.*?\)/g, Xc = { - ...bn, +const GD = /([a-z-]*)\(.*?\)/g, Xc = { + ...xn, getAnimatableNone: (e) => { - const t = e.match(LD); - return t ? t.map(VD).join(" ") : e; + const t = e.match(GD); + return t ? t.map(YD).join(" ") : e; } -}, WD = { - ...Yv, +}, qD = { + ...qv, // Color props - color: Ot, - backgroundColor: Ot, - outlineColor: Ot, - fill: Ot, - stroke: Ot, + color: Rt, + backgroundColor: Rt, + outlineColor: Rt, + fill: Rt, + stroke: Rt, // Border props - borderColor: Ot, - borderTopColor: Ot, - borderRightColor: Ot, - borderBottomColor: Ot, - borderLeftColor: Ot, + borderColor: Rt, + borderTopColor: Rt, + borderRightColor: Rt, + borderBottomColor: Rt, + borderLeftColor: Rt, filter: Xc, WebkitFilter: Xc -}, ld = (e) => WD[e]; -function Ig(e, t) { +}, ld = (e) => qD[e]; +function Ng(e, t) { let r = ld(e); - return r !== Xc && (r = bn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0; + return r !== Xc && (r = xn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0; } -const Fg = (e) => /^0[^.\s]+$/.test(e); -function UD(e) { +const jg = (e) => /^0[^.\s]+$/.test(e); +function XD(e) { if (typeof e == "number") return e === 0; if (e !== null) - return e === "none" || e === "0" || Fg(e); + return e === "none" || e === "0" || jg(e); } -function HD(e, t, r, n) { - const o = Gc(t, r); +function KD(e, t, r, n) { + const o = qc(t, r); let a; Array.isArray(r) ? a = [...r] : a = [null, r]; const i = n.from !== void 0 ? n.from : e.get(); let s; const l = []; for (let c = 0; c < a.length; c++) - a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), UD(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]); + a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), XD(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]); if (o && l.length && s) for (let c = 0; c < l.length; c++) { const u = l[c]; - a[u] = Ig(t, s); + a[u] = Ng(t, s); } return a; } -function YD({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) { +function ZD({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) { return !!Object.keys(u).length; } -function Ng(e, t) { +function Bg(e, t) { return e[t] || e.default || e; } const cd = (e, t, r, n = {}) => (o) => { - const a = Ng(n, e) || {}, i = a.delay || n.delay || 0; + const a = Bg(n, e) || {}, i = a.delay || n.delay || 0; let { elapsed: s = 0 } = n; - s = s - hn(i); - const l = HD(t, e, r, a), c = l[0], u = l[l.length - 1], d = Gc(e, c), f = Gc(e, u); - Ja(d === f, `You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`); + s = s - vn(i); + const l = KD(t, e, r, a), c = l[0], u = l[l.length - 1], d = qc(e, c), f = qc(e, u); + ei(d === f, `You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`); let p = { keyframes: l, velocity: t.getVelocity(), @@ -13368,22 +13410,22 @@ const cd = (e, t, r, n = {}) => (o) => { o(), a.onComplete && a.onComplete(); } }; - if (YD(a) || (p = { + if (ZD(a) || (p = { ...p, - ...BD(e, p) - }), p.duration && (p.duration = hn(p.duration)), p.repeatDelay && (p.repeatDelay = hn(p.repeatDelay)), !d || !f || H2.current || a.type === !1) - return MD(p); + ...UD(e, p) + }), p.duration && (p.duration = vn(p.duration)), p.repeatDelay && (p.repeatDelay = vn(p.repeatDelay)), !d || !f || K2.current || a.type === !1) + return BD(p); if (t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate) { - const m = DD(t, e, p); + const m = jD(t, e, p); if (m) return m; } - return gs(p); + return ys(p); }; -function bs(e) { - return !!(Ut(e) && e.add); +function xs(e) { + return !!(Ht(e) && e.add); } -const qD = (e) => /^\-?\d*\.?\d+$/.test(e); +const JD = (e) => /^\-?\d*\.?\d+$/.test(e); function ud(e, t) { e.indexOf(t) === -1 && e.push(t); } @@ -13416,12 +13458,12 @@ class fd { this.subscriptions.length = 0; } } -const Hp = /* @__PURE__ */ new Set(); +const Yp = /* @__PURE__ */ new Set(); function pd(e, t, r) { - e || Hp.has(t) || (console.warn(t), r && console.warn(r), Hp.add(t)); + e || Yp.has(t) || (console.warn(t), r && console.warn(r), Yp.add(t)); } -const GD = (e) => !isNaN(parseFloat(e)); -class XD { +const QD = (e) => !isNaN(parseFloat(e)); +class eM { /** * @param init - The initiating value * @param config - Optional configuration options @@ -13433,11 +13475,11 @@ class XD { constructor(t, r = {}) { this.version = "10.12.18", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (n, o = !0) => { this.prev = this.current, this.current = n; - const { delta: a, timestamp: i } = at; + const { delta: a, timestamp: i } = it; this.lastUpdated !== i && (this.timeDelta = a, this.lastUpdated = i, tt.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), o && this.events.renderRequest && this.events.renderRequest.notify(this.current); }, this.scheduleVelocityCheck = () => tt.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: n }) => { n !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity())); - }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = GD(this.current), this.owner = r.owner; + }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = QD(this.current), this.owner = r.owner; } /** * Adds a function that will be notified when the `MotionValue` is updated. @@ -13557,7 +13599,7 @@ class XD { getVelocity() { return this.canTrackVelocity ? ( // These casts could be avoided if parseFloat would be typed better - $g(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta) + Mg(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta) ) : 0; } /** @@ -13611,42 +13653,42 @@ class XD { this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } } -function ko(e, t) { - return new XD(e, t); +function Po(e, t) { + return new eM(e, t); } -const jg = (e) => (t) => t.test(e), KD = { +const zg = (e) => (t) => t.test(e), tM = { test: (e) => e === "auto", parse: (e) => e -}, Bg = [Un, fe, Dr, cn, o2, n2, KD], Yo = (e) => Bg.find(jg(e)), ZD = [...Bg, Ot, bn], JD = (e) => ZD.find(jg(e)); -function QD(e, t, r) { - e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, ko(r)); +}, Vg = [Gn, fe, Ir, dn, c2, l2, tM], qo = (e) => Vg.find(zg(e)), rM = [...Vg, Rt, xn], nM = (e) => rM.find(zg(e)); +function oM(e, t, r) { + e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Po(r)); } -function eM(e, t) { - const r = Xs(e, t); +function aM(e, t) { + const r = Zs(e, t); let { transitionEnd: n = {}, transition: o = {}, ...a } = r ? e.makeTargetAnimatable(r, !1) : {}; a = { ...a, ...n }; for (const i in a) { - const s = b2(a[i]); - QD(e, i, s); + const s = C2(a[i]); + oM(e, i, s); } } -function tM(e, t, r) { +function iM(e, t, r) { var n, o; const a = Object.keys(t).filter((s) => !e.hasValue(s)), i = a.length; if (i) for (let s = 0; s < i; s++) { const l = a[s], c = t[l]; let u = null; - Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (qD(u) || Fg(u)) ? u = parseFloat(u) : !JD(u) && bn.test(c) && (u = Ig(l, c)), e.addValue(l, ko(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u)); + Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (JD(u) || jg(u)) ? u = parseFloat(u) : !nM(u) && xn.test(c) && (u = Ng(l, c)), e.addValue(l, Po(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u)); } } -function rM(e, t) { +function sM(e, t) { return t ? (t[e] || t.default || t).from : void 0; } -function nM(e, t, r) { +function lM(e, t, r) { const n = {}; for (const o in e) { - const a = rM(o, t); + const a = sM(o, t); if (a !== void 0) n[o] = a; else { @@ -13656,39 +13698,39 @@ function nM(e, t, r) { } return n; } -function oM({ protectedKeys: e, needsAnimating: t }, r) { +function cM({ protectedKeys: e, needsAnimating: t }, r) { const n = e.hasOwnProperty(r) && t[r] !== !0; return t[r] = !1, n; } -function zg(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) { +function Lg(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) { let { transition: a = e.getDefaultTransition(), transitionEnd: i, ...s } = e.makeTargetAnimatable(t); const l = e.getValue("willChange"); n && (a = n); const c = [], u = o && e.animationState && e.animationState.getState()[o]; for (const d in s) { const f = e.getValue(d), p = s[d]; - if (!f || p === void 0 || u && oM(u, d)) + if (!f || p === void 0 || u && cM(u, d)) continue; const m = { delay: r, elapsed: 0, ...a }; if (window.HandoffAppearAnimations && !f.hasAnimated) { - const v = e.getProps()[U2]; + const v = e.getProps()[X2]; v && (m.elapsed = window.HandoffAppearAnimations(v, d, f, tt)); } - f.start(cd(d, f, p, e.shouldReduceMotion && Wn.has(d) ? { type: !1 } : m)); + f.start(cd(d, f, p, e.shouldReduceMotion && Yn.has(d) ? { type: !1 } : m)); const h = f.animation; - bs(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h); + xs(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h); } return i && Promise.all(c).then(() => { - i && eM(e, i); + i && aM(e, i); }), c; } function Kc(e, t, r = {}) { - const n = Xs(e, t, r.custom); + const n = Zs(e, t, r.custom); let { transition: o = e.getDefaultTransition() || {} } = n || {}; r.transitionOverride && (o = r.transitionOverride); - const a = n ? () => Promise.all(zg(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => { + const a = n ? () => Promise.all(Lg(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => { const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = o; - return aM(e, t, c + l, u, d, r); + return uM(e, t, c + l, u, d, r); } : () => Promise.resolve(), { when: s } = o; if (s) { const [l, c] = s === "beforeChildren" ? [a, i] : [i, a]; @@ -13696,19 +13738,19 @@ function Kc(e, t, r = {}) { } else return Promise.all([a(), i(r.delay)]); } -function aM(e, t, r = 0, n = 0, o = 1, a) { +function uM(e, t, r = 0, n = 0, o = 1, a) { const i = [], s = (e.variantChildren.size - 1) * n, l = o === 1 ? (c = 0) => c * n : (c = 0) => s - c * n; - return Array.from(e.variantChildren).sort(iM).forEach((c, u) => { + return Array.from(e.variantChildren).sort(dM).forEach((c, u) => { c.notify("AnimationStart", t), i.push(Kc(c, t, { ...a, delay: r + l(u) }).then(() => c.notify("AnimationComplete", t))); }), Promise.all(i); } -function iM(e, t) { +function dM(e, t) { return e.sortNodePosition(t); } -function sM(e, t, r = {}) { +function fM(e, t, r = {}) { e.notify("AnimationStart", t); let n; if (Array.isArray(t)) { @@ -13717,21 +13759,21 @@ function sM(e, t, r = {}) { } else if (typeof t == "string") n = Kc(e, t, r); else { - const o = typeof t == "function" ? Xs(e, t, r.custom) : t; - n = Promise.all(zg(e, o, r)); + const o = typeof t == "function" ? Zs(e, t, r.custom) : t; + n = Promise.all(Lg(e, o, r)); } return n.then(() => e.notify("AnimationComplete", t)); } -const lM = [...Gu].reverse(), cM = Gu.length; -function uM(e) { - return (t) => Promise.all(t.map(({ animation: r, options: n }) => sM(e, r, n))); +const pM = [...qu].reverse(), hM = qu.length; +function mM(e) { + return (t) => Promise.all(t.map(({ animation: r, options: n }) => fM(e, r, n))); } -function dM(e) { - let t = uM(e); - const r = pM(); +function vM(e) { + let t = mM(e); + const r = bM(); let n = !0; const o = (l, c) => { - const u = Xs(e, c); + const u = Zs(e, c); if (u) { const { transition: d, transitionEnd: f, ...p } = u; l = { ...l, ...p, ...f }; @@ -13744,16 +13786,16 @@ function dM(e) { function i(l, c) { const u = e.getProps(), d = e.getVariantContext(!0) || {}, f = [], p = /* @__PURE__ */ new Set(); let m = {}, h = 1 / 0; - for (let b = 0; b < cM; b++) { - const y = lM[b], S = r[y], k = u[y] !== void 0 ? u[y] : d[y], w = Ma(k), M = y === c ? S.isActive : null; + for (let b = 0; b < hM; b++) { + const y = pM[b], S = r[y], k = u[y] !== void 0 ? u[y] : d[y], w = Fa(k), M = y === c ? S.isActive : null; M === !1 && (h = b); let P = k === d[y] && k !== u[y] && w; if (P && n && e.manuallyAnimateOnMount && (P = !1), S.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive !S.isActive && M === null || // If we didn't and don't have any defined prop for this animation type !k && !S.prevProp || // Or if the prop doesn't define an animation - Us(k) || typeof k == "boolean") + Ys(k) || typeof k == "boolean") continue; - const I = fM(S.prevProp, k); + const I = gM(S.prevProp, k); let z = I || // If we're making this variant active, we want to always make it active y === c && S.isActive && !P && w || // If we removed a higher-priority variant (i is in reverse order) b > h && w; @@ -13768,7 +13810,7 @@ function dM(e) { }; for (const ee in J) { const oe = X[ee], D = ne[ee]; - m.hasOwnProperty(ee) || (oe !== D ? hs(oe) && hs(D) ? !lg(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0); + m.hasOwnProperty(ee) || (oe !== D ? vs(oe) && vs(D) ? !ug(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0); } S.prevProp = k, S.prevResolvedValues = X, S.isActive && (m = { ...m, ...X }), n && e.blockInitialAnimation && (z = !1), z && !P && f.push(...j.map((ee) => ({ animation: ee, @@ -13805,10 +13847,10 @@ function dM(e) { getState: () => r }; } -function fM(e, t) { - return typeof t == "string" ? t !== e : Array.isArray(t) ? !lg(t, e) : !1; +function gM(e, t) { + return typeof t == "string" ? t !== e : Array.isArray(t) ? !ug(t, e) : !1; } -function En(e = !1) { +function Tn(e = !1) { return { isActive: e, protectedKeys: {}, @@ -13816,29 +13858,29 @@ function En(e = !1) { prevResolvedValues: {} }; } -function pM() { +function bM() { return { - animate: En(!0), - whileInView: En(), - whileHover: En(), - whileTap: En(), - whileDrag: En(), - whileFocus: En(), - exit: En() + animate: Tn(!0), + whileInView: Tn(), + whileHover: Tn(), + whileTap: Tn(), + whileDrag: Tn(), + whileFocus: Tn(), + exit: Tn() }; } -class hM extends xn { +class yM extends wn { /** * We dynamically generate the AnimationState manager as it contains a reference * to the underlying animation library. We only want to load that if we load this, * so people can optionally code split it out using the `m` component. */ constructor(t) { - super(t), t.animationState || (t.animationState = dM(t)); + super(t), t.animationState || (t.animationState = vM(t)); } updateAnimationControlsSubscription() { const { animate: t } = this.node.getProps(); - this.unmount(), Us(t) && (this.unmount = t.subscribe(this.node)); + this.unmount(), Ys(t) && (this.unmount = t.subscribe(this.node)); } /** * Subscribe any provided AnimationControls to the component's VisualElement @@ -13853,10 +13895,10 @@ class hM extends xn { unmount() { } } -let mM = 0; -class vM extends xn { +let xM = 0; +class SM extends wn { constructor() { - super(...arguments), this.id = mM++; + super(...arguments), this.id = xM++; } update() { if (!this.node.presenceContext) @@ -13874,82 +13916,82 @@ class vM extends xn { unmount() { } } -const gM = { +const wM = { animation: { - Feature: hM + Feature: yM }, exit: { - Feature: vM + Feature: SM } -}, Yp = (e, t) => Math.abs(e - t); -function bM(e, t) { - const r = Yp(e.x, t.x), n = Yp(e.y, t.y); +}, Gp = (e, t) => Math.abs(e - t); +function CM(e, t) { + const r = Gp(e.x, t.x), n = Gp(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } -class Vg { +class Wg { constructor(t, r, { transformPagePoint: n } = {}) { if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => { if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return; - const c = Jl(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = bM(c.offset, { x: 0, y: 0 }) >= 3; + const c = Ql(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = CM(c.offset, { x: 0, y: 0 }) >= 3; if (!u && !d) return; - const { point: f } = c, { timestamp: p } = at; + const { point: f } = c, { timestamp: p } = it; this.history.push({ ...f, timestamp: p }); const { onStart: m, onMove: h } = this.handlers; u || (m && m(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), h && h(this.lastMoveEvent, c); }, this.handlePointerMove = (c, u) => { - this.lastMoveEvent = c, this.lastMoveEventInfo = Zl(u, this.transformPagePoint), tt.update(this.updatePoint, !0); + this.lastMoveEvent = c, this.lastMoveEventInfo = Jl(u, this.transformPagePoint), tt.update(this.updatePoint, !0); }, this.handlePointerUp = (c, u) => { if (this.end(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return; - const { onEnd: d, onSessionEnd: f } = this.handlers, p = Jl(c.type === "pointercancel" ? this.lastMoveEventInfo : Zl(u, this.transformPagePoint), this.history); + const { onEnd: d, onSessionEnd: f } = this.handlers, p = Ql(c.type === "pointercancel" ? this.lastMoveEventInfo : Jl(u, this.transformPagePoint), this.history); this.startEvent && d && d(c, p), f && f(c, p); - }, !rg(t)) + }, !og(t)) return; this.handlers = r, this.transformPagePoint = n; - const o = qs(t), a = Zl(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = at; + const o = Xs(t), a = Jl(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it; this.history = [{ ...i, timestamp: s }]; const { onSessionStart: l } = r; - l && l(t, Jl(a, this.history)), this.removeListeners = pn(Gr(window, "pointermove", this.handlePointerMove), Gr(window, "pointerup", this.handlePointerUp), Gr(window, "pointercancel", this.handlePointerUp)); + l && l(t, Ql(a, this.history)), this.removeListeners = mn(Kr(window, "pointermove", this.handlePointerMove), Kr(window, "pointerup", this.handlePointerUp), Kr(window, "pointercancel", this.handlePointerUp)); } updateHandlers(t) { this.handlers = t; } end() { - this.removeListeners && this.removeListeners(), en(this.updatePoint); + this.removeListeners && this.removeListeners(), rn(this.updatePoint); } } -function Zl(e, t) { +function Jl(e, t) { return t ? { point: t(e.point) } : e; } function qp(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } -function Jl({ point: e }, t) { +function Ql({ point: e }, t) { return { point: e, - delta: qp(e, Lg(t)), - offset: qp(e, yM(t)), - velocity: xM(t, 0.1) + delta: qp(e, Ug(t)), + offset: qp(e, _M(t)), + velocity: kM(t, 0.1) }; } -function yM(e) { +function _M(e) { return e[0]; } -function Lg(e) { +function Ug(e) { return e[e.length - 1]; } -function xM(e, t) { +function kM(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let r = e.length - 1, n = null; - const o = Lg(e); - for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > hn(t))); ) + const o = Ug(e); + for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > vn(t))); ) r--; if (!n) return { x: 0, y: 0 }; - const a = Xr(o.timestamp - n.timestamp); + const a = Zr(o.timestamp - n.timestamp); if (a === 0) return { x: 0, y: 0 }; const i = { @@ -13958,105 +14000,105 @@ function xM(e, t) { }; return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i; } -function Zt(e) { +function Jt(e) { return e.max - e.min; } function Zc(e, t = 0, r = 0.01) { return Math.abs(e - t) <= r; } -function Gp(e, t, r, n = 0.5) { - e.origin = n, e.originPoint = it(t.min, t.max, e.origin), e.scale = Zt(r) / Zt(t), (Zc(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = it(r.min, r.max, e.origin) - e.originPoint, (Zc(e.translate) || isNaN(e.translate)) && (e.translate = 0); -} -function pa(e, t, r, n) { - Gp(e.x, t.x, r.x, n ? n.originX : void 0), Gp(e.y, t.y, r.y, n ? n.originY : void 0); +function Xp(e, t, r, n = 0.5) { + e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Jt(r) / Jt(t), (Zc(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (Zc(e.translate) || isNaN(e.translate)) && (e.translate = 0); } -function Xp(e, t, r) { - e.min = r.min + t.min, e.max = e.min + Zt(t); -} -function SM(e, t, r) { - Xp(e.x, t.x, r.x), Xp(e.y, t.y, r.y); +function ma(e, t, r, n) { + Xp(e.x, t.x, r.x, n ? n.originX : void 0), Xp(e.y, t.y, r.y, n ? n.originY : void 0); } function Kp(e, t, r) { - e.min = t.min - r.min, e.max = e.min + Zt(t); + e.min = r.min + t.min, e.max = e.min + Jt(t); } -function ha(e, t, r) { +function EM(e, t, r) { Kp(e.x, t.x, r.x), Kp(e.y, t.y, r.y); } -function wM(e, { min: t, max: r }, n) { - return t !== void 0 && e < t ? e = n ? it(t, e, n.min) : Math.max(e, t) : r !== void 0 && e > r && (e = n ? it(r, e, n.max) : Math.min(e, r)), e; -} function Zp(e, t, r) { + e.min = t.min - r.min, e.max = e.min + Jt(t); +} +function va(e, t, r) { + Zp(e.x, t.x, r.x), Zp(e.y, t.y, r.y); +} +function PM(e, { min: t, max: r }, n) { + return t !== void 0 && e < t ? e = n ? st(t, e, n.min) : Math.max(e, t) : r !== void 0 && e > r && (e = n ? st(r, e, n.max) : Math.min(e, r)), e; +} +function Jp(e, t, r) { return { min: t !== void 0 ? e.min + t : void 0, max: r !== void 0 ? e.max + r - (e.max - e.min) : void 0 }; } -function CM(e, { top: t, left: r, bottom: n, right: o }) { +function TM(e, { top: t, left: r, bottom: n, right: o }) { return { - x: Zp(e.x, r, o), - y: Zp(e.y, t, n) + x: Jp(e.x, r, o), + y: Jp(e.y, t, n) }; } -function Jp(e, t) { +function Qp(e, t) { let r = t.min - e.min, n = t.max - e.max; return t.max - t.min < e.max - e.min && ([r, n] = [n, r]), { min: r, max: n }; } -function _M(e, t) { +function AM(e, t) { return { - x: Jp(e.x, t.x), - y: Jp(e.y, t.y) + x: Qp(e.x, t.x), + y: Qp(e.y, t.y) }; } -function kM(e, t) { +function OM(e, t) { let r = 0.5; - const n = Zt(e), o = Zt(t); - return o > n ? r = Na(t.min, t.max - n, e.min) : n > o && (r = Na(e.min, e.max - o, t.min)), gn(0, 1, r); + const n = Jt(e), o = Jt(t); + return o > n ? r = Ba(t.min, t.max - n, e.min) : n > o && (r = Ba(e.min, e.max - o, t.min)), yn(0, 1, r); } -function EM(e, t) { +function RM(e, t) { const r = {}; return t.min !== void 0 && (r.min = t.min - e.min), t.max !== void 0 && (r.max = t.max - e.min), r; } const Jc = 0.35; -function PM(e = Jc) { +function $M(e = Jc) { return e === !1 ? e = 0 : e === !0 && (e = Jc), { - x: Qp(e, "left", "right"), - y: Qp(e, "top", "bottom") + x: eh(e, "left", "right"), + y: eh(e, "top", "bottom") }; } -function Qp(e, t, r) { +function eh(e, t, r) { return { - min: eh(e, t), - max: eh(e, r) + min: th(e, t), + max: th(e, r) }; } -function eh(e, t) { +function th(e, t) { return typeof e == "number" ? e : e[t] || 0; } -const th = () => ({ +const rh = () => ({ translate: 0, scale: 1, origin: 0, originPoint: 0 -}), ao = () => ({ - x: th(), - y: th() -}), rh = () => ({ min: 0, max: 0 }), ht = () => ({ +}), so = () => ({ x: rh(), y: rh() +}), nh = () => ({ min: 0, max: 0 }), mt = () => ({ + x: nh(), + y: nh() }); -function Pr(e) { +function Ar(e) { return [e("x"), e("y")]; } -function Wg({ top: e, left: t, right: r, bottom: n }) { +function Hg({ top: e, left: t, right: r, bottom: n }) { return { x: { min: t, max: r }, y: { min: e, max: n } }; } -function TM({ x: e, y: t }) { +function DM({ x: e, y: t }) { return { top: t.min, right: e.max, bottom: t.max, left: e.min }; } -function AM(e, t) { +function MM(e, t) { if (!t) return e; const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom }); @@ -14067,35 +14109,35 @@ function AM(e, t) { right: n.x }; } -function Ql(e) { +function ec(e) { return e === void 0 || e === 1; } function Qc({ scale: e, scaleX: t, scaleY: r }) { - return !Ql(e) || !Ql(t) || !Ql(r); + return !ec(e) || !ec(t) || !ec(r); } -function Pn(e) { - return Qc(e) || Ug(e) || e.z || e.rotate || e.rotateX || e.rotateY; +function On(e) { + return Qc(e) || Yg(e) || e.z || e.rotate || e.rotateX || e.rotateY; } -function Ug(e) { - return nh(e.x) || nh(e.y); +function Yg(e) { + return oh(e.x) || oh(e.y); } -function nh(e) { +function oh(e) { return e && e !== "0%"; } -function ys(e, t, r) { +function Ss(e, t, r) { const n = e - r, o = t * n; return r + o; } -function oh(e, t, r, n, o) { - return o !== void 0 && (e = ys(e, o, n)), ys(e, r, n) + t; +function ah(e, t, r, n, o) { + return o !== void 0 && (e = Ss(e, o, n)), Ss(e, r, n) + t; } function eu(e, t = 0, r = 1, n, o) { - e.min = oh(e.min, t, r, n, o), e.max = oh(e.max, t, r, n, o); + e.min = ah(e.min, t, r, n, o), e.max = ah(e.max, t, r, n, o); } -function Hg(e, { x: t, y: r }) { +function Gg(e, { x: t, y: r }) { eu(e.x, t.translate, t.scale, t.originPoint), eu(e.y, r.translate, r.scale, r.originPoint); } -function OM(e, t, r, n = !1) { +function IM(e, t, r, n = !1) { const o = r.length; if (!o) return; @@ -14104,56 +14146,56 @@ function OM(e, t, r, n = !1) { for (let s = 0; s < o; s++) { a = r[s], i = a.projectionDelta; const l = a.instance; - l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && io(e, { + l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && lo(e, { x: -a.scroll.offset.x, y: -a.scroll.offset.y - }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Hg(e, i)), n && Pn(a.latestValues) && io(e, a.latestValues)); + }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Gg(e, i)), n && On(a.latestValues) && lo(e, a.latestValues)); } - t.x = ah(t.x), t.y = ah(t.y); + t.x = ih(t.x), t.y = ih(t.y); } -function ah(e) { +function ih(e) { return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1; } -function un(e, t) { +function fn(e, t) { e.min = e.min + t, e.max = e.max + t; } -function ih(e, t, [r, n, o]) { - const a = t[o] !== void 0 ? t[o] : 0.5, i = it(e.min, e.max, a); +function sh(e, t, [r, n, o]) { + const a = t[o] !== void 0 ? t[o] : 0.5, i = st(e.min, e.max, a); eu(e, t[r], t[n], i, t.scale); } -const RM = ["x", "scaleX", "originX"], $M = ["y", "scaleY", "originY"]; -function io(e, t) { - ih(e.x, t, RM), ih(e.y, t, $M); +const FM = ["x", "scaleX", "originX"], NM = ["y", "scaleY", "originY"]; +function lo(e, t) { + sh(e.x, t, FM), sh(e.y, t, NM); } -function Yg(e, t) { - return Wg(AM(e.getBoundingClientRect(), t)); +function qg(e, t) { + return Hg(MM(e.getBoundingClientRect(), t)); } -function DM(e, t, r) { - const n = Yg(e, r), { scroll: o } = t; - return o && (un(n.x, o.offset.x), un(n.y, o.offset.y)), n; +function jM(e, t, r) { + const n = qg(e, r), { scroll: o } = t; + return o && (fn(n.x, o.offset.x), fn(n.y, o.offset.y)), n; } -const MM = /* @__PURE__ */ new WeakMap(); -class IM { +const BM = /* @__PURE__ */ new WeakMap(); +class zM { constructor(t) { - this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ht(), this.visualElement = t; + this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = mt(), this.visualElement = t; } start(t, { snapToCursor: r = !1 } = {}) { const { presenceContext: n } = this.visualElement; if (n && n.isPresent === !1) return; const o = (l) => { - this.stopAnimation(), r && this.snapToCursor(qs(l, "page").point); + this.stopAnimation(), r && this.snapToCursor(Xs(l, "page").point); }, a = (l, c) => { const { drag: u, dragPropagation: d, onDragStart: f } = this.getProps(); - if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = og(u), !this.openGlobalLock)) + if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = ig(u), !this.openGlobalLock)) return; - this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Pr((m) => { + this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ar((m) => { let h = this.getAxisMotionValue(m).get() || 0; - if (Dr.test(h)) { + if (Ir.test(h)) { const { projection: v } = this.visualElement; if (v && v.layout) { const b = v.layout.layoutBox[m]; - b && (h = Zt(b) * (parseFloat(h) / 100)); + b && (h = Jt(b) * (parseFloat(h) / 100)); } } this.originPoint[m] = h; @@ -14166,12 +14208,12 @@ class IM { return; const { offset: m } = c; if (d && this.currentDirection === null) { - this.currentDirection = FM(m), this.currentDirection !== null && f && f(this.currentDirection); + this.currentDirection = VM(m), this.currentDirection !== null && f && f(this.currentDirection); return; } this.updateAxis("x", c.point, m), this.updateAxis("y", c.point, m), this.visualElement.render(), p && p(l, c); }, s = (l, c) => this.stop(l, c); - this.panSession = new Vg(t, { + this.panSession = new Wg(t, { onSessionStart: o, onStart: a, onMove: i, @@ -14196,38 +14238,38 @@ class IM { } updateAxis(t, r, n) { const { drag: o } = this.getProps(); - if (!n || !_i(t, o, this.currentDirection)) + if (!n || !Ei(t, o, this.currentDirection)) return; const a = this.getAxisMotionValue(t); let i = this.originPoint[t] + n[t]; - this.constraints && this.constraints[t] && (i = wM(i, this.constraints[t], this.elastic[t])), a.set(i); + this.constraints && this.constraints[t] && (i = PM(i, this.constraints[t], this.elastic[t])), a.set(i); } resolveConstraints() { const { dragConstraints: t, dragElastic: r } = this.getProps(), { layout: n } = this.visualElement.projection || {}, o = this.constraints; - t && no(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = CM(n.layoutBox, t) : this.constraints = !1, this.elastic = PM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Pr((a) => { - this.getAxisMotionValue(a) && (this.constraints[a] = EM(n.layoutBox[a], this.constraints[a])); + t && ao(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = TM(n.layoutBox, t) : this.constraints = !1, this.elastic = $M(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Ar((a) => { + this.getAxisMotionValue(a) && (this.constraints[a] = RM(n.layoutBox[a], this.constraints[a])); }); } resolveRefConstraints() { const { dragConstraints: t, onMeasureDragConstraints: r } = this.getProps(); - if (!t || !no(t)) + if (!t || !ao(t)) return !1; const n = t.current; - xr(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."); + wr(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."); const { projection: o } = this.visualElement; if (!o || !o.layout) return !1; - const a = DM(n, o.root, this.visualElement.getTransformPagePoint()); - let i = _M(o.layout.layoutBox, a); + const a = jM(n, o.root, this.visualElement.getTransformPagePoint()); + let i = AM(o.layout.layoutBox, a); if (r) { - const s = r(TM(i)); - this.hasMutatedConstraints = !!s, s && (i = Wg(s)); + const s = r(DM(i)); + this.hasMutatedConstraints = !!s, s && (i = Hg(s)); } return i; } startAnimation(t) { - const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Pr((u) => { - if (!_i(u, r, this.currentDirection)) + const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Ar((u) => { + if (!Ei(u, r, this.currentDirection)) return; let d = l && l[u] || {}; i && (d = { min: 0, max: 0 }); @@ -14251,7 +14293,7 @@ class IM { return n.start(cd(t, n, 0, r)); } stopAnimation() { - Pr((t) => this.getAxisMotionValue(t).stop()); + Ar((t) => this.getAxisMotionValue(t).stop()); } /** * Drag works differently depending on which props are provided. @@ -14264,14 +14306,14 @@ class IM { return o || this.visualElement.getValue(t, (n.initial ? n.initial[t] : void 0) || 0); } snapToCursor(t) { - Pr((r) => { + Ar((r) => { const { drag: n } = this.getProps(); - if (!_i(r, n, this.currentDirection)) + if (!Ei(r, n, this.currentDirection)) return; const { projection: o } = this.visualElement, a = this.getAxisMotionValue(r); if (o && o.layout) { const { min: i, max: s } = o.layout.layoutBox[r]; - a.set(t[r] - it(i, s, 0.5)); + a.set(t[r] - st(i, s, 0.5)); } }); } @@ -14284,39 +14326,39 @@ class IM { if (!this.visualElement.current) return; const { drag: t, dragConstraints: r } = this.getProps(), { projection: n } = this.visualElement; - if (!no(r) || !n || !this.constraints) + if (!ao(r) || !n || !this.constraints) return; this.stopAnimation(); const o = { x: 0, y: 0 }; - Pr((i) => { + Ar((i) => { const s = this.getAxisMotionValue(i); if (s) { const l = s.get(); - o[i] = kM({ min: l, max: l }, this.constraints[i]); + o[i] = OM({ min: l, max: l }, this.constraints[i]); } }); const { transformTemplate: a } = this.visualElement.getProps(); - this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Pr((i) => { - if (!_i(i, t, null)) + this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Ar((i) => { + if (!Ei(i, t, null)) return; const s = this.getAxisMotionValue(i), { min: l, max: c } = this.constraints[i]; - s.set(it(l, c, o[i])); + s.set(st(l, c, o[i])); }); } addListeners() { if (!this.visualElement.current) return; - MM.set(this.visualElement, this); - const t = this.visualElement.current, r = Gr(t, "pointerdown", (l) => { + BM.set(this.visualElement, this); + const t = this.visualElement.current, r = Kr(t, "pointerdown", (l) => { const { drag: c, dragListener: u = !0 } = this.getProps(); c && u && this.start(l); }), n = () => { const { dragConstraints: l } = this.getProps(); - no(l) && (this.constraints = this.resolveRefConstraints()); + ao(l) && (this.constraints = this.resolveRefConstraints()); }, { projection: o } = this.visualElement, a = o.addEventListener("measure", n); o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), n(); - const i = Yr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => { - this.isDragging && c && (Pr((u) => { + const i = qr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => { + this.isDragging && c && (Ar((u) => { const d = this.getAxisMotionValue(u); d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate)); }), this.visualElement.render()); @@ -14338,40 +14380,40 @@ class IM { }; } } -function _i(e, t, r) { +function Ei(e, t, r) { return (t === !0 || t === e) && (r === null || r === e); } -function FM(e, t = 10) { +function VM(e, t = 10) { let r = null; return Math.abs(e.y) > t ? r = "y" : Math.abs(e.x) > t && (r = "x"), r; } -class NM extends xn { +class LM extends wn { constructor(t) { - super(t), this.removeGroupControls = gt, this.removeListeners = gt, this.controls = new IM(t); + super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new zM(t); } mount() { const { dragControls: t } = this.node.getProps(); - t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || gt; + t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || bt; } unmount() { this.removeGroupControls(), this.removeListeners(); } } -const sh = (e) => (t, r) => { +const lh = (e) => (t, r) => { e && tt.update(() => e(t, r)); }; -class jM extends xn { +class WM extends wn { constructor() { - super(...arguments), this.removePointerDownListener = gt; + super(...arguments), this.removePointerDownListener = bt; } onPointerDown(t) { - this.session = new Vg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() }); + this.session = new Wg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() }); } createPanHandlers() { const { onPanSessionStart: t, onPanStart: r, onPan: n, onPanEnd: o } = this.node.getProps(); return { - onSessionStart: sh(t), - onStart: sh(r), + onSessionStart: lh(t), + onStart: lh(r), onMove: n, onEnd: (a, i) => { delete this.session, o && tt.update(() => o(a, i)); @@ -14379,7 +14421,7 @@ class jM extends xn { }; } mount() { - this.removePointerDownListener = Gr(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); + this.removePointerDownListener = Kr(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); } update() { this.session && this.session.updateHandlers(this.createPanHandlers()); @@ -14388,20 +14430,20 @@ class jM extends xn { this.removePointerDownListener(), this.session && this.session.end(); } } -function qg() { - const e = dt(Ga); +function Xg() { + const e = ft(Ka); if (e === null) return [!0, null]; - const { isPresent: t, onExitComplete: r, register: n } = e, o = wr(); + const { isPresent: t, onExitComplete: r, register: n } = e, o = _r(); return Fe(() => n(o), []), !t && r ? [!1, () => r && r(o)] : [!0]; } -function IV() { - return BM(dt(Ga)); +function VV() { + return UM(ft(Ka)); } -function BM(e) { +function UM(e) { return e === null ? !0 : e.isPresent; } -const qi = { +const Xi = { /** * Global flag as to whether the tree has animated since the last time * we resized the window @@ -14413,10 +14455,10 @@ const qi = { */ hasEverUpdated: !1 }; -function lh(e, t) { +function ch(e, t) { return t.max === t.min ? 0 : e / (t.max - t.min) * 100; } -const qo = { +const Xo = { correct: (e, t) => { if (!t.target) return e; @@ -14425,21 +14467,21 @@ const qo = { e = parseFloat(e); else return e; - const r = lh(e, t.target.x), n = lh(e, t.target.y); + const r = ch(e, t.target.x), n = ch(e, t.target.y); return `${r}% ${n}%`; } -}, zM = { +}, HM = { correct: (e, { treeScale: t, projectionDelta: r }) => { - const n = e, o = bn.parse(e); + const n = e, o = xn.parse(e); if (o.length > 5) return n; - const a = bn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y; + const a = xn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y; o[0 + i] /= s, o[1 + i] /= l; - const c = it(s, l, 0.5); + const c = st(s, l, 0.5); return typeof o[2 + i] == "number" && (o[2 + i] /= c), typeof o[3 + i] == "number" && (o[3 + i] /= c), a(o); } }; -class VM extends Dt.Component { +class YM extends Mt.Component { /** * This only mounts projection nodes for components that * need measuring, we might want to do it for all components @@ -14447,12 +14489,12 @@ class VM extends Dt.Component { */ componentDidMount() { const { visualElement: t, layoutGroup: r, switchLayoutGroup: n, layoutId: o } = this.props, { projection: a } = t; - K$(LM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => { + t2(GM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => { this.safeToRemove(); }), a.setOptions({ ...a.options, onExitComplete: () => this.safeToRemove() - })), qi.hasEverUpdated = !0; + })), Xi.hasEverUpdated = !0; } getSnapshotBeforeUpdate(t) { const { layoutDependency: r, visualElement: n, drag: o, isPresent: a } = this.props, i = n.projection; @@ -14479,13 +14521,13 @@ class VM extends Dt.Component { return null; } } -function Gg(e) { - const [t, r] = qg(), n = dt(Ku); - return Dt.createElement(VM, { ...e, layoutGroup: n, switchLayoutGroup: dt(Vv), isPresent: t, safeToRemove: r }); +function Kg(e) { + const [t, r] = Xg(), n = ft(Ku); + return Mt.createElement(YM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Wv), isPresent: t, safeToRemove: r }); } -const LM = { +const GM = { borderRadius: { - ...qo, + ...Xo, applyTo: [ "borderTopLeftRadius", "borderTopRightRadius", @@ -14493,70 +14535,70 @@ const LM = { "borderBottomRightRadius" ] }, - borderTopLeftRadius: qo, - borderTopRightRadius: qo, - borderBottomLeftRadius: qo, - borderBottomRightRadius: qo, - boxShadow: zM -}, Xg = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], WM = Xg.length, ch = (e) => typeof e == "string" ? parseFloat(e) : e, uh = (e) => typeof e == "number" || fe.test(e); -function UM(e, t, r, n, o, a) { - o ? (e.opacity = it( + borderTopLeftRadius: Xo, + borderTopRightRadius: Xo, + borderBottomLeftRadius: Xo, + borderBottomRightRadius: Xo, + boxShadow: HM +}, Zg = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], qM = Zg.length, uh = (e) => typeof e == "string" ? parseFloat(e) : e, dh = (e) => typeof e == "number" || fe.test(e); +function XM(e, t, r, n, o, a) { + o ? (e.opacity = st( 0, // TODO Reinstate this if only child r.opacity !== void 0 ? r.opacity : 1, - HM(n) - ), e.opacityExit = it(t.opacity !== void 0 ? t.opacity : 1, 0, YM(n))) : a && (e.opacity = it(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n)); - for (let i = 0; i < WM; i++) { - const s = `border${Xg[i]}Radius`; - let l = dh(t, s), c = dh(r, s); + KM(n) + ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, ZM(n))) : a && (e.opacity = st(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n)); + for (let i = 0; i < qM; i++) { + const s = `border${Zg[i]}Radius`; + let l = fh(t, s), c = fh(r, s); if (l === void 0 && c === void 0) continue; - l || (l = 0), c || (c = 0), l === 0 || c === 0 || uh(l) === uh(c) ? (e[s] = Math.max(it(ch(l), ch(c), n), 0), (Dr.test(c) || Dr.test(l)) && (e[s] += "%")) : e[s] = c; + l || (l = 0), c || (c = 0), l === 0 || c === 0 || dh(l) === dh(c) ? (e[s] = Math.max(st(uh(l), uh(c), n), 0), (Ir.test(c) || Ir.test(l)) && (e[s] += "%")) : e[s] = c; } - (t.rotate || r.rotate) && (e.rotate = it(t.rotate || 0, r.rotate || 0, n)); + (t.rotate || r.rotate) && (e.rotate = st(t.rotate || 0, r.rotate || 0, n)); } -function dh(e, t) { +function fh(e, t) { return e[t] !== void 0 ? e[t] : e.borderRadius; } -const HM = Kg(0, 0.5, ad), YM = Kg(0.5, 0.95, gt); -function Kg(e, t, r) { - return (n) => n < e ? 0 : n > t ? 1 : r(Na(e, t, n)); +const KM = Jg(0, 0.5, ad), ZM = Jg(0.5, 0.95, bt); +function Jg(e, t, r) { + return (n) => n < e ? 0 : n > t ? 1 : r(Ba(e, t, n)); } -function fh(e, t) { +function ph(e, t) { e.min = t.min, e.max = t.max; } -function tr(e, t) { - fh(e.x, t.x), fh(e.y, t.y); +function rr(e, t) { + ph(e.x, t.x), ph(e.y, t.y); } -function ph(e, t, r, n, o) { - return e -= t, e = ys(e, 1 / r, n), o !== void 0 && (e = ys(e, 1 / o, n)), e; +function hh(e, t, r, n, o) { + return e -= t, e = Ss(e, 1 / r, n), o !== void 0 && (e = Ss(e, 1 / o, n)), e; } -function qM(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) { - if (Dr.test(t) && (t = parseFloat(t), t = it(i.min, i.max, t / 100) - i.min), typeof t != "number") +function JM(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) { + if (Ir.test(t) && (t = parseFloat(t), t = st(i.min, i.max, t / 100) - i.min), typeof t != "number") return; - let s = it(a.min, a.max, n); - e === a && (s -= t), e.min = ph(e.min, t, r, s, o), e.max = ph(e.max, t, r, s, o); + let s = st(a.min, a.max, n); + e === a && (s -= t), e.min = hh(e.min, t, r, s, o), e.max = hh(e.max, t, r, s, o); } -function hh(e, t, [r, n, o], a, i) { - qM(e, t[r], t[n], t[o], t.scale, a, i); +function mh(e, t, [r, n, o], a, i) { + JM(e, t[r], t[n], t[o], t.scale, a, i); } -const GM = ["x", "scaleX", "originX"], XM = ["y", "scaleY", "originY"]; -function mh(e, t, r, n) { - hh(e.x, t, GM, r ? r.x : void 0, n ? n.x : void 0), hh(e.y, t, XM, r ? r.y : void 0, n ? n.y : void 0); +const QM = ["x", "scaleX", "originX"], eI = ["y", "scaleY", "originY"]; +function vh(e, t, r, n) { + mh(e.x, t, QM, r ? r.x : void 0, n ? n.x : void 0), mh(e.y, t, eI, r ? r.y : void 0, n ? n.y : void 0); } -function vh(e) { +function gh(e) { return e.translate === 0 && e.scale === 1; } -function Zg(e) { - return vh(e.x) && vh(e.y); +function Qg(e) { + return gh(e.x) && gh(e.y); } function tu(e, t) { return e.x.min === t.x.min && e.x.max === t.x.max && e.y.min === t.y.min && e.y.max === t.y.max; } -function gh(e) { - return Zt(e.x) / Zt(e.y); +function bh(e) { + return Jt(e.x) / Jt(e.y); } -class KM { +class tI { constructor() { this.members = []; } @@ -14610,7 +14652,7 @@ class KM { this.lead && this.lead.snapshot && (this.lead.snapshot = void 0); } } -function bh(e, t, r) { +function yh(e, t, r) { let n = ""; const o = e.x.translate / t.x, a = e.y.translate / t.y; if ((o || a) && (n = `translate3d(${o}px, ${a}px, 0) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), r) { @@ -14620,8 +14662,8 @@ function bh(e, t, r) { const i = e.x.scale * t.x, s = e.y.scale * t.y; return (i !== 1 || s !== 1) && (n += `scale(${i}, ${s})`), n || "none"; } -const ZM = (e, t) => e.depth - t.depth; -class JM { +const rI = (e, t) => e.depth - t.depth; +class nI { constructor() { this.children = [], this.isDirty = !1; } @@ -14632,45 +14674,45 @@ class JM { dd(this.children, t), this.isDirty = !0; } forEach(t) { - this.isDirty && this.children.sort(ZM), this.isDirty = !1, this.children.forEach(t); + this.isDirty && this.children.sort(rI), this.isDirty = !1, this.children.forEach(t); } } -function QM(e, t) { +function oI(e, t) { const r = performance.now(), n = ({ timestamp: o }) => { const a = o - r; - a >= t && (en(n), e(a - t)); + a >= t && (rn(n), e(a - t)); }; - return tt.read(n, !0), () => en(n); + return tt.read(n, !0), () => rn(n); } -function eI(e) { +function aI(e) { window.MotionDebug && window.MotionDebug.record(e); } -function tI(e) { +function iI(e) { return e instanceof SVGElement && e.tagName !== "svg"; } -function rI(e, t, r) { - const n = Ut(e) ? e : ko(e); +function sI(e, t, r) { + const n = Ht(e) ? e : Po(e); return n.start(cd("", n, t, r)), n.animation; } -const yh = ["", "X", "Y", "Z"], xh = 1e3; -let nI = 0; -const Tn = { +const xh = ["", "X", "Y", "Z"], Sh = 1e3; +let lI = 0; +const Rn = { type: "projectionFrame", totalNodes: 0, resolvedTargetDeltas: 0, recalculatedProjection: 0 }; -function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) { +function eb({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) { return class { constructor(i = {}, s = t == null ? void 0 : t()) { - this.id = nI++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => { + this.id = lI++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => { this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots()); }, this.updateProjection = () => { - Tn.totalNodes = Tn.resolvedTargetDeltas = Tn.recalculatedProjection = 0, this.nodes.forEach(iI), this.nodes.forEach(dI), this.nodes.forEach(fI), this.nodes.forEach(sI), eI(Tn); + Rn.totalNodes = Rn.resolvedTargetDeltas = Rn.recalculatedProjection = 0, this.nodes.forEach(dI), this.nodes.forEach(vI), this.nodes.forEach(gI), this.nodes.forEach(fI), aI(Rn); }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = i, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0; for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0; - this.root === this && (this.nodes = new JM()); + this.root === this && (this.nodes = new nI()); } addEventListener(i, s) { return this.eventHandlers.has(i) || this.eventHandlers.set(i, new fd()), this.eventHandlers.get(i).add(s); @@ -14688,13 +14730,13 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check mount(i, s = this.root.hasTreeAnimated) { if (this.instance) return; - this.isSVG = tI(i), this.instance = i; + this.isSVG = iI(i), this.instance = i; const { layoutId: l, layout: c, visualElement: u } = this.options; if (u && !u.current && u.mount(i), this.root.nodes.add(this), this.parent && this.parent.children.add(this), s && (c || l) && (this.isLayoutDirty = !0), e) { let d; const f = () => this.root.updateBlockedByResize = !1; e(i, () => { - this.root.updateBlockedByResize = !0, d && d(), d = QM(f, 250), qi.hasAnimatedSinceResize && (qi.hasAnimatedSinceResize = !1, this.nodes.forEach(wh)); + this.root.updateBlockedByResize = !0, d && d(), d = oI(f, 250), Xi.hasAnimatedSinceResize && (Xi.hasAnimatedSinceResize = !1, this.nodes.forEach(Ch)); }); } l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: m }) => { @@ -14702,24 +14744,24 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.target = void 0, this.relativeTarget = void 0; return; } - const h = this.options.transition || u.getDefaultTransition() || gI, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !tu(this.targetLayout, m) || p, S = !f && p; + const h = this.options.transition || u.getDefaultTransition() || wI, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !tu(this.targetLayout, m) || p, S = !f && p; if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || S || f && (y || !this.currentAnimation)) { this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S); const k = { - ...Ng(h, "layout"), + ...Bg(h, "layout"), onPlay: v, onComplete: b }; (u.shouldReduceMotion || this.options.layoutRoot) && (k.delay = 0, k.type = !1), this.startAnimation(k); } else - f || wh(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); + f || Ch(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); this.targetLayout = m; }); } unmount() { this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this); const i = this.getStack(); - i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, en(this.updateProjection); + i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, rn(this.updateProjection); } // only on the root blockUpdate() { @@ -14736,7 +14778,7 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check } // Note: currently only running on root node startUpdate() { - this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(pI), this.animationId++); + this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(bI), this.animationId++); } getTransformTemplate() { const { visualElement: i } = this.options; @@ -14762,18 +14804,18 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check } update() { if (this.updateScheduled = !1, this.isUpdateBlocked()) { - this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Sh); + this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(wh); return; } - this.isUpdating || this.nodes.forEach(cI), this.isUpdating = !1, this.nodes.forEach(uI), this.nodes.forEach(oI), this.nodes.forEach(aI), this.clearAllSnapshots(); + this.isUpdating || this.nodes.forEach(hI), this.isUpdating = !1, this.nodes.forEach(mI), this.nodes.forEach(cI), this.nodes.forEach(uI), this.clearAllSnapshots(); const s = performance.now(); - at.delta = gn(0, 1e3 / 60, s - at.timestamp), at.timestamp = s, at.isProcessing = !0, mo.update.process(at), mo.preRender.process(at), mo.render.process(at), at.isProcessing = !1; + it.delta = yn(0, 1e3 / 60, s - it.timestamp), it.timestamp = s, it.isProcessing = !0, go.update.process(it), go.preRender.process(it), go.render.process(it), it.isProcessing = !1; } didUpdate() { this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update())); } clearAllSnapshots() { - this.nodes.forEach(lI), this.sharedNodes.forEach(hI); + this.nodes.forEach(pI), this.sharedNodes.forEach(yI); } scheduleUpdateProjection() { tt.preRender(this.updateProjection, !1, !0); @@ -14796,7 +14838,7 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll(); const i = this.layout; - this.layout = this.measure(!1), this.layoutCorrected = ht(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox); + this.layout = this.measure(!1), this.layoutCorrected = mt(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox); const { visualElement: s } = this.options; s && s.notify("LayoutMeasure", this.layout.layoutBox, i ? i.layoutBox : void 0); } @@ -14812,13 +14854,13 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check resetTransform() { if (!o) return; - const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !Zg(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue; - i && (s || Pn(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender()); + const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !Qg(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue; + i && (s || On(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender()); } measure(i = !0) { const s = this.measurePageBox(); let l = this.removeElementScroll(s); - return i && (l = this.removeTransform(l)), bI(l), { + return i && (l = this.removeTransform(l)), CI(l), { animationId: this.root.animationId, measuredBox: s, layoutBox: l, @@ -14829,50 +14871,50 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check measurePageBox() { const { visualElement: i } = this.options; if (!i) - return ht(); + return mt(); const s = i.measureViewportBox(), { scroll: l } = this.root; - return l && (un(s.x, l.offset.x), un(s.y, l.offset.y)), s; + return l && (fn(s.x, l.offset.x), fn(s.y, l.offset.y)), s; } removeElementScroll(i) { - const s = ht(); - tr(s, i); + const s = mt(); + rr(s, i); for (let l = 0; l < this.path.length; l++) { const c = this.path[l], { scroll: u, options: d } = c; if (c !== this.root && u && d.layoutScroll) { if (u.isRoot) { - tr(s, i); + rr(s, i); const { scroll: f } = this.root; - f && (un(s.x, -f.offset.x), un(s.y, -f.offset.y)); + f && (fn(s.x, -f.offset.x), fn(s.y, -f.offset.y)); } - un(s.x, u.offset.x), un(s.y, u.offset.y); + fn(s.x, u.offset.x), fn(s.y, u.offset.y); } } return s; } applyTransform(i, s = !1) { - const l = ht(); - tr(l, i); + const l = mt(); + rr(l, i); for (let c = 0; c < this.path.length; c++) { const u = this.path[c]; - !s && u.options.layoutScroll && u.scroll && u !== u.root && io(l, { + !s && u.options.layoutScroll && u.scroll && u !== u.root && lo(l, { x: -u.scroll.offset.x, y: -u.scroll.offset.y - }), Pn(u.latestValues) && io(l, u.latestValues); + }), On(u.latestValues) && lo(l, u.latestValues); } - return Pn(this.latestValues) && io(l, this.latestValues), l; + return On(this.latestValues) && lo(l, this.latestValues), l; } removeTransform(i) { - const s = ht(); - tr(s, i); + const s = mt(); + rr(s, i); for (let l = 0; l < this.path.length; l++) { const c = this.path[l]; - if (!c.instance || !Pn(c.latestValues)) + if (!c.instance || !On(c.latestValues)) continue; Qc(c.latestValues) && c.updateSnapshot(); - const u = ht(), d = c.measurePageBox(); - tr(u, d), mh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); + const u = mt(), d = c.measurePageBox(); + rr(u, d), vh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); } - return Pn(this.latestValues) && mh(s, this.latestValues), s; + return On(this.latestValues) && vh(s, this.latestValues), s; } setTargetDelta(i) { this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0; @@ -14888,7 +14930,7 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1; } forceRelativeParentToResolveTarget() { - this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== at.timestamp && this.relativeParent.resolveTargetDelta(!0); + this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== it.timestamp && this.relativeParent.resolveTargetDelta(!0); } resolveTargetDelta(i = !1) { var s; @@ -14899,22 +14941,22 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check return; const { layout: d, layoutId: f } = this.options; if (!(!this.layout || !(d || f))) { - if (this.resolvedRelativeTargetAt = at.timestamp, !this.targetDelta && !this.relativeTarget) { + if (this.resolvedRelativeTargetAt = it.timestamp, !this.targetDelta && !this.relativeTarget) { const p = this.getClosestProjectingParent(); - p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ht(), this.relativeTargetOrigin = ht(), ha(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), tr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; + p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), va(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), rr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } if (!(!this.relativeTarget && !this.targetDelta)) { - if (this.target || (this.target = ht(), this.targetWithTransforms = ht()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), SM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tr(this.target, this.layout.layoutBox), Hg(this.target, this.targetDelta)) : tr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) { + if (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), EM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : rr(this.target, this.layout.layoutBox), Gg(this.target, this.targetDelta)) : rr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) { this.attemptToResolveRelativeTarget = !1; const p = this.getClosestProjectingParent(); - p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ht(), this.relativeTargetOrigin = ht(), ha(this.relativeTargetOrigin, this.target, p.target), tr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; + p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), va(this.relativeTargetOrigin, this.target, p.target), rr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } - Tn.resolvedTargetDeltas++; + Rn.resolvedTargetDeltas++; } } } getClosestProjectingParent() { - if (!(!this.parent || Qc(this.parent.latestValues) || Ug(this.parent.latestValues))) + if (!(!this.parent || Qc(this.parent.latestValues) || Yg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent(); } isProjecting() { @@ -14924,22 +14966,22 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check var i; const s = this.getLead(), l = !!this.resumingFrom || this !== s; let c = !0; - if ((this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === at.timestamp && (c = !1), c) + if ((this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === it.timestamp && (c = !1), c) return; const { layout: u, layoutId: d } = this.options; if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d)) return; - tr(this.layoutCorrected, this.layout.layoutBox); + rr(this.layoutCorrected, this.layout.layoutBox); const f = this.treeScale.x, p = this.treeScale.y; - OM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox); + IM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox); const { target: m } = s; if (!m) { - this.projectionTransform && (this.projectionDelta = ao(), this.projectionTransform = "none", this.scheduleRender()); + this.projectionTransform && (this.projectionDelta = so(), this.projectionTransform = "none", this.scheduleRender()); return; } - this.projectionDelta || (this.projectionDelta = ao(), this.projectionDeltaWithTransform = ao()); + this.projectionDelta || (this.projectionDelta = so(), this.projectionDeltaWithTransform = so()); const h = this.projectionTransform; - pa(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = bh(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), Tn.recalculatedProjection++; + ma(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = yh(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), Rn.recalculatedProjection++; } hide() { this.isVisible = !1; @@ -14955,19 +14997,19 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0); } setAnimationOrigin(i, s = !1) { - const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = ao(); + const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = so(); (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s; - const f = ht(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(vI)); + const f = mt(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(SI)); this.animationProgress = 0; let S; this.mixTargetDelta = (k) => { const w = k / 1e3; - Ch(d.x, i.x, w), Ch(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ha(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), mI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && tu(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ht()), tr(S, this.relativeTarget)), h && (this.animationValues = u, UM(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w; + _h(d.x, i.x, w), _h(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (va(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), xI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && tu(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), rr(S, this.relativeTarget)), h && (this.animationValues = u, XM(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w; }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0); } startAnimation(i) { - this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (en(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => { - qi.hasAnimatedSinceResize = !0, this.currentAnimation = rI(0, xh, { + this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (rn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => { + Xi.hasAnimatedSinceResize = !0, this.currentAnimation = sI(0, Sh, { ...i, onUpdate: (s) => { this.mixTargetDelta(s), i.onUpdate && i.onUpdate(s); @@ -14984,24 +15026,24 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete"); } finishAnimation() { - this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(xh), this.currentAnimation.stop()), this.completeAnimation(); + this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Sh), this.currentAnimation.stop()), this.completeAnimation(); } applyTransformsToTarget() { const i = this.getLead(); let { targetWithTransforms: s, target: l, layout: c, latestValues: u } = i; if (!(!s || !l || !c)) { - if (this !== i && this.layout && c && Qg(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { - l = this.target || ht(); - const d = Zt(this.layout.layoutBox.x); + if (this !== i && this.layout && c && tb(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { + l = this.target || mt(); + const d = Jt(this.layout.layoutBox.x); l.x.min = i.target.x.min, l.x.max = l.x.min + d; - const f = Zt(this.layout.layoutBox.y); + const f = Jt(this.layout.layoutBox.y); l.y.min = i.target.y.min, l.y.max = l.y.min + f; } - tr(s, l), io(s, u), pa(this.projectionDeltaWithTransform, this.layoutCorrected, s, u); + rr(s, l), lo(s, u), ma(this.projectionDeltaWithTransform, this.layoutCorrected, s, u); } } registerSharedNode(i, s) { - this.sharedNodes.has(i) || this.sharedNodes.set(i, new KM()), this.sharedNodes.get(i).add(s); + this.sharedNodes.has(i) || this.sharedNodes.set(i, new tI()), this.sharedNodes.get(i).add(s); const c = s.options.initialPromotionConfig; s.promote({ transition: c ? c.transition : void 0, @@ -15044,8 +15086,8 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (s = !0), !s) return; const c = {}; - for (let u = 0; u < yh.length; u++) { - const d = "rotate" + yh[u]; + for (let u = 0; u < xh.length; u++) { + const d = "rotate" + xh[u]; l[d] && (c[d] = l[d], i.setStaticValue(d, 0)); } i.render(); @@ -15064,20 +15106,20 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check return { visibility: "hidden" }; const u = this.getTransformTemplate(); if (this.needsReset) - return this.needsReset = !1, c.opacity = "", c.pointerEvents = Yi(i.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c; + return this.needsReset = !1, c.opacity = "", c.pointerEvents = qi(i.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c; const d = this.getLead(); if (!this.projectionDelta || !this.layout || !d.target) { const h = {}; - return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = Yi(i.pointerEvents) || ""), this.hasProjected && !Pn(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h; + return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = qi(i.pointerEvents) || ""), this.hasProjected && !On(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h; } const f = d.animationValues || d.latestValues; - this.applyTransformsToTarget(), c.transform = bh(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform)); + this.applyTransformsToTarget(), c.transform = yh(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform)); const { x: p, y: m } = this.projectionDelta; c.transformOrigin = `${p.origin * 100}% ${m.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (s = f.opacity) !== null && s !== void 0 ? s : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0; - for (const h in fs) { + for (const h in hs) { if (f[h] === void 0) continue; - const { correct: v, applyTo: b } = fs[h], y = c.transform === "none" ? f[h] : v(f[h], d); + const { correct: v, applyTo: b } = hs[h], y = c.transform === "none" ? f[h] : v(f[h], d); if (b) { const S = b.length; for (let k = 0; k < S; k++) @@ -15085,7 +15127,7 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check } else c[h] = y; } - return this.options.layoutId && (c.pointerEvents = d === this ? Yi(i.pointerEvents) || "" : "none"), c; + return this.options.layoutId && (c.pointerEvents = d === this ? qi(i.pointerEvents) || "" : "none"), c; } clearSnapshot() { this.resumeFrom = this.snapshot = void 0; @@ -15095,40 +15137,40 @@ function Jg({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.root.nodes.forEach((i) => { var s; return (s = i.currentAnimation) === null || s === void 0 ? void 0 : s.stop(); - }), this.root.nodes.forEach(Sh), this.root.sharedNodes.clear(); + }), this.root.nodes.forEach(wh), this.root.sharedNodes.clear(); } }; } -function oI(e) { +function cI(e) { e.updateLayout(); } -function aI(e) { +function uI(e) { var t; const r = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot; if (e.isLead() && e.layout && r && e.hasListeners("didUpdate")) { const { layoutBox: n, measuredBox: o } = e.layout, { animationType: a } = e.options, i = r.source !== e.layout.source; - a === "size" ? Pr((d) => { - const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Zt(f); + a === "size" ? Ar((d) => { + const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Jt(f); f.min = n[d].min, f.max = f.min + p; - }) : Qg(a, r.layoutBox, n) && Pr((d) => { - const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Zt(n[d]); + }) : tb(a, r.layoutBox, n) && Ar((d) => { + const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Jt(n[d]); f.max = f.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p); }); - const s = ao(); - pa(s, n, r.layoutBox); - const l = ao(); - i ? pa(l, e.applyTransform(o, !0), r.measuredBox) : pa(l, n, r.layoutBox); - const c = !Zg(s); + const s = so(); + ma(s, n, r.layoutBox); + const l = so(); + i ? ma(l, e.applyTransform(o, !0), r.measuredBox) : ma(l, n, r.layoutBox); + const c = !Qg(s); let u = !1; if (!e.resumeFrom) { const d = e.getClosestProjectingParent(); if (d && !d.resumeFrom) { const { snapshot: f, layout: p } = d; if (f && p) { - const m = ht(); - ha(m, r.layoutBox, f.layoutBox); - const h = ht(); - ha(h, n, p.layoutBox), tu(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d); + const m = mt(); + va(m, r.layoutBox, f.layoutBox); + const h = mt(); + va(h, n, p.layoutBox), tu(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d); } } } @@ -15146,117 +15188,117 @@ function aI(e) { } e.options.transition = void 0; } -function iI(e) { - Tn.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)); +function dI(e) { + Rn.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)); } -function sI(e) { +function fI(e) { e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1; } -function lI(e) { +function pI(e) { e.clearSnapshot(); } -function Sh(e) { +function wh(e) { e.clearMeasurements(); } -function cI(e) { +function hI(e) { e.isLayoutDirty = !1; } -function uI(e) { +function mI(e) { const { visualElement: t } = e.options; t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform(); } -function wh(e) { +function Ch(e) { e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0; } -function dI(e) { +function vI(e) { e.resolveTargetDelta(); } -function fI(e) { +function gI(e) { e.calcProjection(); } -function pI(e) { +function bI(e) { e.resetRotation(); } -function hI(e) { +function yI(e) { e.removeLeadSnapshot(); } -function Ch(e, t, r) { - e.translate = it(t.translate, 0, r), e.scale = it(t.scale, 1, r), e.origin = t.origin, e.originPoint = t.originPoint; +function _h(e, t, r) { + e.translate = st(t.translate, 0, r), e.scale = st(t.scale, 1, r), e.origin = t.origin, e.originPoint = t.originPoint; } -function _h(e, t, r, n) { - e.min = it(t.min, r.min, n), e.max = it(t.max, r.max, n); +function kh(e, t, r, n) { + e.min = st(t.min, r.min, n), e.max = st(t.max, r.max, n); } -function mI(e, t, r, n) { - _h(e.x, t.x, r.x, n), _h(e.y, t.y, r.y, n); +function xI(e, t, r, n) { + kh(e.x, t.x, r.x, n), kh(e.y, t.y, r.y, n); } -function vI(e) { +function SI(e) { return e.animationValues && e.animationValues.opacityExit !== void 0; } -const gI = { +const wI = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }; -function kh(e) { +function Eh(e) { e.min = Math.round(e.min), e.max = Math.round(e.max); } -function bI(e) { - kh(e.x), kh(e.y); +function CI(e) { + Eh(e.x), Eh(e.y); } -function Qg(e, t, r) { - return e === "position" || e === "preserve-aspect" && !Zc(gh(t), gh(r), 0.2); +function tb(e, t, r) { + return e === "position" || e === "preserve-aspect" && !Zc(bh(t), bh(r), 0.2); } -const yI = Jg({ - attachResizeListener: (e, t) => Yr(e, "resize", t), +const _I = eb({ + attachResizeListener: (e, t) => qr(e, "resize", t), measureScroll: () => ({ x: document.documentElement.scrollLeft || document.body.scrollLeft, y: document.documentElement.scrollTop || document.body.scrollTop }), checkIsScrollRoot: () => !0 -}), ec = { +}), tc = { current: void 0 -}, eb = Jg({ +}, rb = eb({ measureScroll: (e) => ({ x: e.scrollLeft, y: e.scrollTop }), defaultParent: () => { - if (!ec.current) { - const e = new yI({}); - e.mount(window), e.setOptions({ layoutScroll: !0 }), ec.current = e; + if (!tc.current) { + const e = new _I({}); + e.mount(window), e.setOptions({ layoutScroll: !0 }), tc.current = e; } - return ec.current; + return tc.current; }, resetTransform: (e, t) => { e.style.transform = t !== void 0 ? t : "none"; }, checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed" -}), xI = { +}), kI = { pan: { - Feature: jM + Feature: WM }, drag: { - Feature: NM, - ProjectionNode: eb, - MeasureLayout: Gg + Feature: LM, + ProjectionNode: rb, + MeasureLayout: Kg } -}, SI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/; -function wI(e) { - const t = SI.exec(e); +}, EI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/; +function PI(e) { + const t = EI.exec(e); if (!t) return [,]; const [, r, n] = t; return [r, n]; } -const CI = 4; +const TI = 4; function ru(e, t, r = 1) { - xr(r <= CI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); - const [n, o] = wI(e); + wr(r <= TI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); + const [n, o] = PI(e); if (!n) return; const a = window.getComputedStyle(t).getPropertyValue(n); return a ? a.trim() : Wc(o) ? ru(o, t, r + 1) : o; } -function _I(e, { ...t }, r) { +function AI(e, { ...t }, r) { const n = e.current; if (!(n instanceof Element)) return { target: t, transitionEnd: r }; @@ -15276,7 +15318,7 @@ function _I(e, { ...t }, r) { } return { target: t, transitionEnd: r }; } -const kI = /* @__PURE__ */ new Set([ +const OI = /* @__PURE__ */ new Set([ "width", "height", "top", @@ -15287,25 +15329,25 @@ const kI = /* @__PURE__ */ new Set([ "y", "translateX", "translateY" -]), tb = (e) => kI.has(e), EI = (e) => Object.keys(e).some(tb), ki = (e) => e === Un || e === fe, Eh = (e, t) => parseFloat(e.split(", ")[t]), Ph = (e, t) => (r, { transform: n }) => { +]), nb = (e) => OI.has(e), RI = (e) => Object.keys(e).some(nb), Pi = (e) => e === Gn || e === fe, Ph = (e, t) => parseFloat(e.split(", ")[t]), Th = (e, t) => (r, { transform: n }) => { if (n === "none" || !n) return 0; const o = n.match(/^matrix3d\((.+)\)$/); if (o) - return Eh(o[1], t); + return Ph(o[1], t); { const a = n.match(/^matrix\((.+)\)$/); - return a ? Eh(a[1], e) : 0; + return a ? Ph(a[1], e) : 0; } -}, PI = /* @__PURE__ */ new Set(["x", "y", "z"]), TI = Xa.filter((e) => !PI.has(e)); -function AI(e) { +}, $I = /* @__PURE__ */ new Set(["x", "y", "z"]), DI = Za.filter((e) => !$I.has(e)); +function MI(e) { const t = []; - return TI.forEach((r) => { + return DI.forEach((r) => { const n = e.getValue(r); n !== void 0 && (t.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0)); }), t.length && e.render(), t; } -const Th = { +const Ah = { // Dimensions width: ({ x: e }, { paddingLeft: t = "0", paddingRight: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r), height: ({ y: e }, { paddingTop: t = "0", paddingBottom: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r), @@ -15314,88 +15356,88 @@ const Th = { bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min), right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min), // Transform - x: Ph(4, 13), - y: Ph(5, 14) -}, OI = (e, t, r) => { + x: Th(4, 13), + y: Th(5, 14) +}, II = (e, t, r) => { const n = t.measureViewportBox(), o = t.current, a = getComputedStyle(o), { display: i } = a, s = {}; i === "none" && t.setStaticValue("display", e.display || "block"), r.forEach((c) => { - s[c] = Th[c](n, a); + s[c] = Ah[c](n, a); }), t.render(); const l = t.measureViewportBox(); return r.forEach((c) => { const u = t.getValue(c); - u && u.jump(s[c]), e[c] = Th[c](l, a); + u && u.jump(s[c]), e[c] = Ah[c](l, a); }), e; -}, RI = (e, t, r = {}, n = {}) => { +}, FI = (e, t, r = {}, n = {}) => { t = { ...t }, n = { ...n }; - const o = Object.keys(t).filter(tb); + const o = Object.keys(t).filter(nb); let a = [], i = !1; const s = []; if (o.forEach((l) => { const c = e.getValue(l); if (!e.hasValue(l)) return; - let u = r[l], d = Yo(u); + let u = r[l], d = qo(u); const f = t[l]; let p; - if (hs(f)) { + if (vs(f)) { const m = f.length, h = f[0] === null ? 1 : 0; - u = f[h], d = Yo(u); + u = f[h], d = qo(u); for (let v = h; v < m && f[v] !== null; v++) - p ? xr(Yo(f[v]) === p, "All keyframes must be of the same type") : (p = Yo(f[v]), xr(p === d || ki(d) && ki(p), "Keyframes must be of the same dimension as the current value")); + p ? wr(qo(f[v]) === p, "All keyframes must be of the same type") : (p = qo(f[v]), wr(p === d || Pi(d) && Pi(p), "Keyframes must be of the same dimension as the current value")); } else - p = Yo(f); + p = qo(f); if (d !== p) - if (ki(d) && ki(p)) { + if (Pi(d) && Pi(p)) { const m = c.get(); typeof m == "string" && c.set(parseFloat(m)), typeof f == "string" ? t[l] = parseFloat(f) : Array.isArray(f) && p === fe && (t[l] = f.map(parseFloat)); } else - d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = AI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f)); + d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = MI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f)); }), s.length) { - const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = OI(t, e, s); + const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = II(t, e, s); return a.length && a.forEach(([u, d]) => { e.getValue(u).set(d); - }), e.render(), Ws && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n }; + }), e.render(), Hs && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n }; } else return { target: t, transitionEnd: n }; }; -function $I(e, t, r, n) { - return EI(t) ? RI(e, t, r, n) : { target: t, transitionEnd: n }; -} -const DI = (e, t, r, n) => { - const o = _I(e, t, n); - return t = o.target, n = o.transitionEnd, $I(e, t, r, n); -}, nu = { current: null }, rb = { current: !1 }; -function MI() { - if (rb.current = !0, !!Ws) +function NI(e, t, r, n) { + return RI(t) ? FI(e, t, r, n) : { target: t, transitionEnd: n }; +} +const jI = (e, t, r, n) => { + const o = AI(e, t, n); + return t = o.target, n = o.transitionEnd, NI(e, t, r, n); +}, nu = { current: null }, ob = { current: !1 }; +function BI() { + if (ob.current = !0, !!Hs) if (window.matchMedia) { const e = window.matchMedia("(prefers-reduced-motion)"), t = () => nu.current = e.matches; e.addListener(t), t(); } else nu.current = !1; } -function II(e, t, r) { +function zI(e, t, r) { const { willChange: n } = t; for (const o in t) { const a = t[o], i = r[o]; - if (Ut(a)) - e.addValue(o, a), bs(n) && n.add(o), process.env.NODE_ENV === "development" && pd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`); - else if (Ut(i)) - e.addValue(o, ko(a, { owner: e })), bs(n) && n.remove(o); + if (Ht(a)) + e.addValue(o, a), xs(n) && n.add(o), process.env.NODE_ENV === "development" && pd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`); + else if (Ht(i)) + e.addValue(o, Po(a, { owner: e })), xs(n) && n.remove(o); else if (i !== a) if (e.hasValue(o)) { const s = e.getValue(o); !s.hasAnimated && s.set(a); } else { const s = e.getStaticValue(o); - e.addValue(o, ko(s !== void 0 ? s : a, { owner: e })); + e.addValue(o, Po(s !== void 0 ? s : a, { owner: e })); } } for (const o in r) t[o] === void 0 && e.removeValue(o); return t; } -const Ah = /* @__PURE__ */ new WeakMap(), nb = Object.keys(Ia), FI = nb.length, Oh = [ +const Oh = /* @__PURE__ */ new WeakMap(), ab = Object.keys(Na), VI = ab.length, Rh = [ "AnimationStart", "AnimationComplete", "Update", @@ -15403,18 +15445,18 @@ const Ah = /* @__PURE__ */ new WeakMap(), nb = Object.keys(Ia), FI = nb.length, "LayoutMeasure", "LayoutAnimationStart", "LayoutAnimationComplete" -], NI = Xu.length; -class jI { +], LI = Xu.length; +class WI { constructor({ parent: t, props: r, presenceContext: n, reducedMotionConfig: o, visualState: a }, i = {}) { this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => { this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection)); }, this.scheduleRender = () => tt.render(this.render, !1, !0); const { latestValues: s, renderState: l } = a; - this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Hs(r), this.isVariantNode = zv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current); + this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Gs(r), this.isVariantNode = Lv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current); const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(r, {}); for (const d in u) { const f = u[d]; - s[d] !== void 0 && Ut(f) && (f.set(s[d], !1), bs(c) && c.add(d)); + s[d] !== void 0 && Ht(f) && (f.set(s[d], !1), xs(c) && c.add(d)); } } /** @@ -15428,10 +15470,10 @@ class jI { return {}; } mount(t) { - this.current = t, Ah.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), rb.current || MI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : nu.current, process.env.NODE_ENV !== "production" && pd(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); + this.current = t, Oh.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), ob.current || BI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : nu.current, process.env.NODE_ENV !== "production" && pd(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); } unmount() { - Ah.delete(this.current), this.projection && this.projection.unmount(), en(this.notifyUpdate), en(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); + Oh.delete(this.current), this.projection && this.projection.unmount(), rn(this.notifyUpdate), rn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); for (const t in this.events) this.events[t].clear(); for (const t in this.features) @@ -15439,7 +15481,7 @@ class jI { this.current = null; } bindToMotionValue(t, r) { - const n = Wn.has(t), o = r.on("change", (i) => { + const n = Yn.has(t), o = r.on("change", (i) => { this.latestValues[t] = i, this.props.onUpdate && tt.update(this.notifyUpdate, !1, !0), n && this.projection && (this.projection.isTransformDirty = !0); }), a = r.on("renderRequest", this.scheduleRender); this.valueSubscriptions.set(t, () => { @@ -15453,10 +15495,10 @@ class jI { let i, s; if (process.env.NODE_ENV !== "production" && o && n) { const l = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead."; - r.ignoreStrict ? Ja(!1, l) : xr(!1, l); + r.ignoreStrict ? ei(!1, l) : wr(!1, l); } - for (let l = 0; l < FI; l++) { - const c = nb[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = Ia[c]; + for (let l = 0; l < VI; l++) { + const c = ab[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = Na[c]; f && (i = f), u(r) && (!this.features[c] && d && (this.features[c] = new d(this)), p && (s = p)); } if (!this.projection && i) { @@ -15465,7 +15507,7 @@ class jI { this.projection.setOptions({ layoutId: l, layout: c, - alwaysMeasureLayout: !!u || d && no(d), + alwaysMeasureLayout: !!u || d && ao(d), visualElement: this, scheduleRender: () => this.scheduleRender(), /** @@ -15498,7 +15540,7 @@ class jI { * removed with a re-render to work. */ measureViewportBox() { - return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ht(); + return this.current ? this.measureInstanceViewportBox(this.current, this.props) : mt(); } getStaticValue(t) { return this.latestValues[t]; @@ -15522,13 +15564,13 @@ class jI { */ update(t, r) { (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = r; - for (let n = 0; n < Oh.length; n++) { - const o = Oh[n]; + for (let n = 0; n < Rh.length; n++) { + const o = Rh[n]; this.propEventSubscriptions[o] && (this.propEventSubscriptions[o](), delete this.propEventSubscriptions[o]); const a = t["on" + o]; a && (this.propEventSubscriptions[o] = this.on(o, a)); } - this.prevMotionValues = II(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); + this.prevMotionValues = zI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); } getProps() { return this.props; @@ -15559,9 +15601,9 @@ class jI { return this.props.initial !== void 0 && (n.initial = this.props.initial), n; } const r = {}; - for (let n = 0; n < NI; n++) { + for (let n = 0; n < LI; n++) { const o = Xu[n], a = this.props[o]; - (Ma(a) || a === !1) && (r[o] = a); + (Fa(a) || a === !1) && (r[o] = a); } return r; } @@ -15597,7 +15639,7 @@ class jI { if (this.props.values && this.props.values[t]) return this.props.values[t]; let n = this.values.get(t); - return n === void 0 && r !== void 0 && (n = ko(r, { owner: this }), this.addValue(t, n)), n; + return n === void 0 && r !== void 0 && (n = Po(r, { owner: this }), this.addValue(t, n)), n; } /** * If we're trying to animate to a previously unencountered value, @@ -15624,7 +15666,7 @@ class jI { if (n && o !== void 0) return o; const a = this.getBaseTargetFromProps(this.props, t); - return a !== void 0 && !Ut(a) ? a : this.initialValues[t] !== void 0 && o === void 0 ? void 0 : this.baseTarget[t]; + return a !== void 0 && !Ht(a) ? a : this.initialValues[t] !== void 0 && o === void 0 ? void 0 : this.baseTarget[t]; } on(t, r) { return this.events[t] || (this.events[t] = new fd()), this.events[t].add(r); @@ -15633,7 +15675,7 @@ class jI { this.events[t] && this.events[t].notify(...r); } } -class ob extends jI { +class ib extends WI { sortInstanceNodePosition(t, r) { return t.compareDocumentPosition(r) & 2 ? 1 : -1; } @@ -15644,10 +15686,10 @@ class ob extends jI { delete r[t], delete n[t]; } makeTargetAnimatableFromInstance({ transition: t, transitionEnd: r, ...n }, { transformValues: o }, a) { - let i = nM(n, t || {}, this); + let i = lM(n, t || {}, this); if (o && (r && (r = o(r)), n && (n = o(n)), i && (i = o(i))), a) { - tM(this, n, i); - const s = DI(this, n, i, r); + iM(this, n, i); + const s = jI(this, n, i, r); r = s.transitionEnd, n = s.target; } return { @@ -15657,21 +15699,21 @@ class ob extends jI { }; } } -function BI(e) { +function UI(e) { return window.getComputedStyle(e); } -class zI extends ob { +class HI extends ib { readValueFromInstance(t, r) { - if (Wn.has(r)) { + if (Yn.has(r)) { const n = ld(r); return n && n.default || 0; } else { - const n = BI(t), o = (Uv(r) ? n.getPropertyValue(r) : n[r]) || 0; + const n = UI(t), o = (Yv(r) ? n.getPropertyValue(r) : n[r]) || 0; return typeof o == "string" ? o.trim() : o; } } measureInstanceViewportBox(t, { transformPagePoint: r }) { - return Yg(t, r); + return qg(t, r); } build(t, r, n, o) { Ju(t, r, n, o.transformTemplate); @@ -15682,15 +15724,15 @@ class zI extends ob { handleChildMotionValue() { this.childSubscription && (this.childSubscription(), delete this.childSubscription); const { children: t } = this.props; - Ut(t) && (this.childSubscription = t.on("change", (r) => { + Ht(t) && (this.childSubscription = t.on("change", (r) => { this.current && (this.current.textContent = `${r}`); })); } renderInstance(t, r, n, o) { - Kv(t, r, n, o); + Jv(t, r, n, o); } } -class VI extends ob { +class YI extends ib { constructor() { super(...arguments), this.isSVGTag = !1; } @@ -15698,52 +15740,52 @@ class VI extends ob { return t[r]; } readValueFromInstance(t, r) { - if (Wn.has(r)) { + if (Yn.has(r)) { const n = ld(r); return n && n.default || 0; } - return r = Zv.has(r) ? r : rd(r), t.getAttribute(r); + return r = Qv.has(r) ? r : rd(r), t.getAttribute(r); } measureInstanceViewportBox() { - return ht(); + return mt(); } scrapeMotionValuesFromProps(t, r) { - return Qv(t, r); + return tg(t, r); } build(t, r, n, o) { ed(t, r, n, this.isSVGTag, o.transformTemplate); } renderInstance(t, r, n, o) { - Jv(t, r, n, o); + eg(t, r, n, o); } mount(t) { this.isSVGTag = td(t.tagName), super.mount(t); } } -const LI = (e, t) => Zu(e) ? new VI(t, { enableHardwareAcceleration: !1 }) : new zI(t, { enableHardwareAcceleration: !0 }), WI = { +const GI = (e, t) => Zu(e) ? new YI(t, { enableHardwareAcceleration: !1 }) : new HI(t, { enableHardwareAcceleration: !0 }), qI = { layout: { - ProjectionNode: eb, - MeasureLayout: Gg - } -}, UI = { - ...gM, - ...z2, - ...xI, - ...WI -}, Sn = /* @__PURE__ */ G$((e, t) => C2(e, t, UI, LI)); -function ab() { + ProjectionNode: rb, + MeasureLayout: Kg + } +}, XI = { + ...wM, + ...H2, + ...kI, + ...qI +}, Cn = /* @__PURE__ */ Q$((e, t) => T2(e, t, XI, GI)); +function sb() { const e = be(!1); - return ds(() => (e.current = !0, () => { + return ps(() => (e.current = !0, () => { e.current = !1; }), []), e; } -function HI() { - const e = ab(), [t, r] = Ye(0), n = q(() => { +function KI() { + const e = sb(), [t, r] = Ye(0), n = G(() => { e.current && r(t + 1); }, [t]); - return [q(() => tt.postRender(n), [n]), t]; + return [G(() => tt.postRender(n), [n]), t]; } -class YI extends U.Component { +class ZI extends U.Component { getSnapshotBeforeUpdate(t) { const r = this.props.childRef.current; if (r && t.isPresent && !this.props.isPresent) { @@ -15761,14 +15803,14 @@ class YI extends U.Component { return this.props.children; } } -function qI({ children: e, isPresent: t }) { - const r = wr(), n = be(null), o = be({ +function JI({ children: e, isPresent: t }) { + const r = _r(), n = be(null), o = be({ width: 0, height: 0, top: 0, left: 0 }); - return pm(() => { + return hm(() => { const { width: a, height: i, top: s, left: l } = o.current; if (t || !n.current || !a || !i) return; @@ -15785,10 +15827,10 @@ function qI({ children: e, isPresent: t }) { `), () => { document.head.removeChild(c); }; - }, [t]), U.createElement(YI, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n })); + }, [t]), U.createElement(ZI, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n })); } -const tc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => { - const s = eg(GI), l = wr(), c = vt( +const rc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => { + const s = rg(QI), l = _r(), c = gt( () => ({ id: l, initial: t, @@ -15810,44 +15852,44 @@ const tc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: */ a ? void 0 : [r] ); - return vt(() => { + return gt(() => { s.forEach((u, d) => s.set(d, !1)); }, [r]), U.useEffect(() => { !r && !s.size && n && n(); - }, [r]), i === "popLayout" && (e = U.createElement(qI, { isPresent: r }, e)), U.createElement(Ga.Provider, { value: c }, e); + }, [r]), i === "popLayout" && (e = U.createElement(JI, { isPresent: r }, e)), U.createElement(Ka.Provider, { value: c }, e); }; -function GI() { +function QI() { return /* @__PURE__ */ new Map(); } -function XI(e) { +function eF(e) { return Fe(() => () => e(), []); } -const Qn = (e) => e.key || ""; -function KI(e, t) { +const to = (e) => e.key || ""; +function tF(e, t) { e.forEach((r) => { - const n = Qn(r); + const n = to(r); t.set(n, r); }); } -function ZI(e) { +function rF(e) { const t = []; - return Ps.forEach(e, (r) => { + return As.forEach(e, (r) => { xu(r) && t.push(r); }), t; } -const Io = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => { - xr(!o, "Replace exitBeforeEnter with mode='wait'"); - const s = dt(Ku).forceRender || HI()[0], l = ab(), c = ZI(e); +const No = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => { + wr(!o, "Replace exitBeforeEnter with mode='wait'"); + const s = ft(Ku).forceRender || KI()[0], l = sb(), c = rF(e); let u = c; const d = be(/* @__PURE__ */ new Map()).current, f = be(u), p = be(/* @__PURE__ */ new Map()).current, m = be(!0); - if (ds(() => { - m.current = !1, KI(c, p), f.current = u; - }), XI(() => { + if (ps(() => { + m.current = !1, tF(c, p), f.current = u; + }), eF(() => { m.current = !0, p.clear(), d.clear(); }), m.current) - return U.createElement(U.Fragment, null, u.map((y) => U.createElement(tc, { key: Qn(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y))); + return U.createElement(U.Fragment, null, u.map((y) => U.createElement(rc, { key: to(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y))); u = [...u]; - const h = f.current.map(Qn), v = c.map(Qn), b = h.length; + const h = f.current.map(to), v = c.map(to), b = h.length; for (let y = 0; y < b; y++) { const S = h[y]; v.indexOf(S) === -1 && !d.has(S) && d.set(S, void 0); @@ -15870,15 +15912,15 @@ const Io = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBe s(), n && n(); } }; - M = U.createElement(tc, { key: Qn(k), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, k), d.set(S, M); + M = U.createElement(rc, { key: to(k), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, k), d.set(S, M); } u.splice(w, 0, M); }), u = u.map((y) => { const S = y.key; - return d.has(S) ? y : U.createElement(tc, { key: Qn(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y); - }), process.env.NODE_ENV !== "production" && i === "wait" && u.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), U.createElement(U.Fragment, null, d.size ? u : u.map((y) => La(y))); + return d.has(S) ? y : U.createElement(rc, { key: to(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y); + }), process.env.NODE_ENV !== "production" && i === "wait" && u.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), U.createElement(U.Fragment, null, d.size ? u : u.map((y) => Ua(y))); }; -var Rh = { +var $h = { path: /* @__PURE__ */ L.jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ L.jsx( "path", @@ -15899,7 +15941,7 @@ var Rh = { /* @__PURE__ */ L.jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" }) ] }), viewBox: "0 0 24 24" -}, Ks = _e((e, t) => { +}, Js = _e((e, t) => { const { as: r, viewBox: n, @@ -15909,7 +15951,7 @@ var Rh = { className: s, __css: l, ...c - } = e, u = Xe("chakra-icon", s), d = $o("Icon", e), f = { + } = e, u = Xe("chakra-icon", s), d = Mo("Icon", e), f = { w: "1em", h: "1em", display: "inline-block", @@ -15923,29 +15965,29 @@ var Rh = { focusable: a, className: u, __css: f - }, m = n ?? Rh.viewBox; + }, m = n ?? $h.viewBox; if (r && typeof r != "string") return /* @__PURE__ */ L.jsx(ge.svg, { as: r, ...p, ...c }); - const h = i ?? Rh.path; + const h = i ?? $h.path; return /* @__PURE__ */ L.jsx(ge.svg, { verticalAlign: "middle", viewBox: m, ...p, ...c, children: h }); }); -Ks.displayName = "Icon"; -var NV = Ks, JI = r_({ +Js.displayName = "Icon"; +var WV = Js, nF = s_({ "0%": { transform: "rotate(0deg)" }, "100%": { transform: "rotate(360deg)" } -}), QI = _e((e, t) => { - const r = $o("Spinner", e), { +}), oF = _e((e, t) => { + const r = Mo("Spinner", e), { label: n = "Loading...", thickness: o = "2px", speed: a = "0.45s", emptyColor: i = "transparent", className: s, ...l - } = Fr(e), c = Xe("chakra-spinner", s), u = { + } = jr(e), c = Xe("chakra-spinner", s), u = { display: "inline-block", borderColor: "currentColor", borderStyle: "solid", @@ -15953,7 +15995,7 @@ var NV = Ks, JI = r_({ borderWidth: o, borderBottomColor: i, borderLeftColor: i, - animation: `${JI} ${a} linear infinite`, + animation: `${nF} ${a} linear infinite`, ...r }; return /* @__PURE__ */ L.jsx( @@ -15967,9 +16009,9 @@ var NV = Ks, JI = r_({ } ); }); -QI.displayName = "Spinner"; -function eF(e) { - return /* @__PURE__ */ L.jsx(Ks, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx( +oF.displayName = "Spinner"; +function aF(e) { + return /* @__PURE__ */ L.jsx(Js, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx( "path", { fill: "currentColor", @@ -15977,9 +16019,9 @@ function eF(e) { } ) }); } -var ib = _e( +var lb = _e( function(t, r) { - const n = $o("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = Fr(t), l = { + const n = Mo("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = jr(t), l = { outline: 0, display: "flex", alignItems: "center", @@ -15999,14 +16041,14 @@ var ib = _e( ...i }, ...s, - children: o || /* @__PURE__ */ L.jsx(eF, { width: "1em", height: "1em" }) + children: o || /* @__PURE__ */ L.jsx(aF, { width: "1em", height: "1em" }) } ); } ); -ib.displayName = "CloseButton"; -var tF = Object.defineProperty, rF = (e, t, r) => t in e ? tF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t, r) => (rF(e, typeof t != "symbol" ? t + "" : t, r), r); -function $h(e) { +lb.displayName = "CloseButton"; +var iF = Object.defineProperty, sF = (e, t, r) => t in e ? iF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (sF(e, typeof t != "symbol" ? t + "" : t, r), r); +function Dh(e) { return e.sort((t, r) => { const n = t.compareDocumentPosition(r); if (n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY) @@ -16018,82 +16060,82 @@ function $h(e) { return 0; }); } -var nF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; -function Dh(e, t, r) { +var lF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; +function Mh(e, t, r) { let n = e + 1; return r && n >= t && (n = 0), n; } -function Mh(e, t, r) { +function Ih(e, t, r) { let n = e - 1; return r && n < 0 && (n = t), n; } -var ou = typeof window < "u" ? Es : Fe, xs = (e) => e, oF = class { +var ou = typeof window < "u" ? Ts : Fe, ws = (e) => e, cF = class { constructor() { - ct(this, "descendants", /* @__PURE__ */ new Map()), ct(this, "register", (e) => { + ut(this, "descendants", /* @__PURE__ */ new Map()), ut(this, "register", (e) => { if (e != null) - return nF(e) ? this.registerNode(e) : (t) => { + return lF(e) ? this.registerNode(e) : (t) => { this.registerNode(t, e); }; - }), ct(this, "unregister", (e) => { + }), ut(this, "unregister", (e) => { this.descendants.delete(e); - const t = $h(Array.from(this.descendants.keys())); + const t = Dh(Array.from(this.descendants.keys())); this.assignIndex(t); - }), ct(this, "destroy", () => { + }), ut(this, "destroy", () => { this.descendants.clear(); - }), ct(this, "assignIndex", (e) => { + }), ut(this, "assignIndex", (e) => { this.descendants.forEach((t) => { const r = e.indexOf(t.node); t.index = r, t.node.dataset.index = t.index.toString(); }); - }), ct(this, "count", () => this.descendants.size), ct(this, "enabledCount", () => this.enabledValues().length), ct(this, "values", () => Array.from(this.descendants.values()).sort((t, r) => t.index - r.index)), ct(this, "enabledValues", () => this.values().filter((e) => !e.disabled)), ct(this, "item", (e) => { + }), ut(this, "count", () => this.descendants.size), ut(this, "enabledCount", () => this.enabledValues().length), ut(this, "values", () => Array.from(this.descendants.values()).sort((t, r) => t.index - r.index)), ut(this, "enabledValues", () => this.values().filter((e) => !e.disabled)), ut(this, "item", (e) => { if (this.count() !== 0) return this.values()[e]; - }), ct(this, "enabledItem", (e) => { + }), ut(this, "enabledItem", (e) => { if (this.enabledCount() !== 0) return this.enabledValues()[e]; - }), ct(this, "first", () => this.item(0)), ct(this, "firstEnabled", () => this.enabledItem(0)), ct(this, "last", () => this.item(this.descendants.size - 1)), ct(this, "lastEnabled", () => { + }), ut(this, "first", () => this.item(0)), ut(this, "firstEnabled", () => this.enabledItem(0)), ut(this, "last", () => this.item(this.descendants.size - 1)), ut(this, "lastEnabled", () => { const e = this.enabledValues().length - 1; return this.enabledItem(e); - }), ct(this, "indexOf", (e) => { + }), ut(this, "indexOf", (e) => { var t, r; return e && (r = (t = this.descendants.get(e)) == null ? void 0 : t.index) != null ? r : -1; - }), ct(this, "enabledIndexOf", (e) => e == null ? -1 : this.enabledValues().findIndex((t) => t.node.isSameNode(e))), ct(this, "next", (e, t = !0) => { - const r = Dh(e, this.count(), t); + }), ut(this, "enabledIndexOf", (e) => e == null ? -1 : this.enabledValues().findIndex((t) => t.node.isSameNode(e))), ut(this, "next", (e, t = !0) => { + const r = Mh(e, this.count(), t); return this.item(r); - }), ct(this, "nextEnabled", (e, t = !0) => { + }), ut(this, "nextEnabled", (e, t = !0) => { const r = this.item(e); if (!r) return; - const n = this.enabledIndexOf(r.node), o = Dh( + const n = this.enabledIndexOf(r.node), o = Mh( n, this.enabledCount(), t ); return this.enabledItem(o); - }), ct(this, "prev", (e, t = !0) => { - const r = Mh(e, this.count() - 1, t); + }), ut(this, "prev", (e, t = !0) => { + const r = Ih(e, this.count() - 1, t); return this.item(r); - }), ct(this, "prevEnabled", (e, t = !0) => { + }), ut(this, "prevEnabled", (e, t = !0) => { const r = this.item(e); if (!r) return; - const n = this.enabledIndexOf(r.node), o = Mh( + const n = this.enabledIndexOf(r.node), o = Ih( n, this.enabledCount() - 1, t ); return this.enabledItem(o); - }), ct(this, "registerNode", (e, t) => { + }), ut(this, "registerNode", (e, t) => { if (!e || this.descendants.has(e)) return; - const r = Array.from(this.descendants.keys()).concat(e), n = $h(r); + const r = Array.from(this.descendants.keys()).concat(e), n = Dh(r); t != null && t.disabled && (t.disabled = !!t.disabled); const o = { node: e, index: -1, ...t }; this.descendants.set(e, o), this.assignIndex(n); }); } }; -function aF(e, t) { +function uF(e, t) { if (e != null) { if (typeof e == "function") { e(t); @@ -16106,26 +16148,26 @@ function aF(e, t) { } } } -function xt(...e) { +function St(...e) { return (t) => { e.forEach((r) => { - aF(r, t); + uF(r, t); }); }; } -function jV(...e) { - return vt(() => xt(...e), e); +function UV(...e) { + return gt(() => St(...e), e); } -function iF() { - const e = be(new oF()); +function dF() { + const e = be(new cF()); return ou(() => () => e.current.destroy()), e.current; } -var [sF, sb] = It({ +var [fF, cb] = Ft({ name: "DescendantsProvider", errorMessage: "useDescendantsContext must be used within DescendantsProvider" }); -function lF(e) { - const t = sb(), [r, n] = Ye(-1), o = be(null); +function pF(e) { + const t = cb(), [r, n] = Ye(-1), o = be(null); ou(() => () => { o.current && t.unregister(o.current); }, []), ou(() => { @@ -16134,20 +16176,20 @@ function lF(e) { const i = Number(o.current.dataset.index); r != i && !Number.isNaN(i) && n(i); }); - const a = xs(e ? t.register(e) : t.register); + const a = ws(e ? t.register(e) : t.register); return { descendants: t, index: r, enabledIndex: t.enabledIndexOf(o.current), - register: xt(a, o) + register: St(a, o) }; } -function cF() { +function hF() { return [ - xs(sF), - () => xs(sb()), - () => iF(), - (o) => lF(o) + ws(fF), + () => ws(cb()), + () => dF(), + (o) => pF(o) ]; } function hd(e) { @@ -16156,7 +16198,7 @@ function hd(e) { defaultValue: r, onChange: n, shouldUpdate: o = (f, p) => f !== p - } = e, a = Kt(n), i = Kt(o), [s, l] = Ye(r), c = t !== void 0, u = c ? t : s, d = Kt( + } = e, a = Zt(n), i = Zt(o), [s, l] = Ye(r), c = t !== void 0, u = c ? t : s, d = Zt( (f) => { const m = typeof f == "function" ? f(u) : f; i(u, m) && (c || l(m), a(m)); @@ -16170,7 +16212,7 @@ var au = { easeIn: [0.4, 0, 1, 1], easeOut: [0, 0, 0.2, 1], easeInOut: [0.4, 0, 0.2, 1] -}, Go = { +}, Ko = { scale: { enter: { scale: 1 }, exit: { scale: 0.95 } @@ -16220,18 +16262,18 @@ function iu(e) { var t; switch ((t = e == null ? void 0 : e.direction) != null ? t : "right") { case "right": - return Go.slideRight; + return Ko.slideRight; case "left": - return Go.slideLeft; + return Ko.slideLeft; case "bottom": - return Go.slideDown; + return Ko.slideDown; case "top": - return Go.slideUp; + return Ko.slideUp; default: - return Go.slideRight; + return Ko.slideRight; } } -var Nn = { +var zn = { enter: { duration: 0.2, ease: au.easeOut @@ -16240,7 +16282,7 @@ var Nn = { duration: 0.1, ease: au.easeIn } -}, Kr = { +}, Jr = { enter: (e, t) => ({ ...e, delay: typeof t == "number" ? t : t == null ? void 0 : t.enter @@ -16249,12 +16291,12 @@ var Nn = { ...e, delay: typeof t == "number" ? t : t == null ? void 0 : t.exit }) -}, uF = { +}, mF = { enter: ({ transition: e, transitionEnd: t, delay: r } = {}) => { var n; return { opacity: 1, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Kr.enter(Nn.enter, r), + transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r), transitionEnd: t == null ? void 0 : t.enter }; }, @@ -16262,16 +16304,16 @@ var Nn = { var n; return { opacity: 0, - transition: (n = e == null ? void 0 : e.exit) != null ? n : Kr.exit(Nn.exit, r), + transition: (n = e == null ? void 0 : e.exit) != null ? n : Jr.exit(zn.exit, r), transitionEnd: t == null ? void 0 : t.exit }; } -}, lb = { +}, ub = { initial: "exit", animate: "enter", exit: "exit", - variants: uF -}, dF = Tt(function(t, r) { + variants: mF +}, vF = At(function(t, r) { const { unmountOnExit: n, in: o, @@ -16281,26 +16323,26 @@ var Nn = { delay: l, ...c } = t, u = o || n ? "enter" : "exit", d = n ? o && n : !0, f = { transition: i, transitionEnd: s, delay: l }; - return /* @__PURE__ */ L.jsx(Io, { custom: f, children: d && /* @__PURE__ */ L.jsx( - Sn.div, + return /* @__PURE__ */ L.jsx(No, { custom: f, children: d && /* @__PURE__ */ L.jsx( + Cn.div, { ref: r, className: Xe("chakra-fade", a), custom: f, - ...lb, + ...ub, animate: u, ...c } ) }); }); -dF.displayName = "Fade"; -var fF = { +vF.displayName = "Fade"; +var gF = { exit: ({ reverse: e, initialScale: t, transition: r, transitionEnd: n, delay: o }) => { var a; return { opacity: 0, ...e ? { scale: t, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { scale: t, ...n == null ? void 0 : n.exit } }, - transition: (a = r == null ? void 0 : r.exit) != null ? a : Kr.exit(Nn.exit, o) + transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o) }; }, enter: ({ transitionEnd: e, transition: t, delay: r }) => { @@ -16308,16 +16350,16 @@ var fF = { return { opacity: 1, scale: 1, - transition: (n = t == null ? void 0 : t.enter) != null ? n : Kr.enter(Nn.enter, r), + transition: (n = t == null ? void 0 : t.enter) != null ? n : Jr.enter(zn.enter, r), transitionEnd: e == null ? void 0 : e.enter }; } -}, cb = { +}, db = { initial: "exit", animate: "enter", exit: "exit", - variants: fF -}, pF = Tt( + variants: gF +}, bF = At( function(t, r) { const { unmountOnExit: n, @@ -16330,12 +16372,12 @@ var fF = { delay: u, ...d } = t, f = n ? o && n : !0, p = o || n ? "enter" : "exit", m = { initialScale: i, reverse: a, transition: l, transitionEnd: c, delay: u }; - return /* @__PURE__ */ L.jsx(Io, { custom: m, children: f && /* @__PURE__ */ L.jsx( - Sn.div, + return /* @__PURE__ */ L.jsx(No, { custom: m, children: f && /* @__PURE__ */ L.jsx( + Cn.div, { ref: r, className: Xe("chakra-offset-slide", s), - ...cb, + ...db, animate: p, custom: m, ...d @@ -16343,15 +16385,15 @@ var fF = { ) }); } ); -pF.displayName = "ScaleFade"; -var hF = { +bF.displayName = "ScaleFade"; +var yF = { initial: ({ offsetX: e, offsetY: t, transition: r, transitionEnd: n, delay: o }) => { var a; return { opacity: 0, x: e, y: t, - transition: (a = r == null ? void 0 : r.exit) != null ? a : Kr.exit(Nn.exit, o), + transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o), transitionEnd: n == null ? void 0 : n.exit }; }, @@ -16361,7 +16403,7 @@ var hF = { opacity: 1, x: 0, y: 0, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Kr.enter(Nn.enter, r), + transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r), transitionEnd: t == null ? void 0 : t.enter }; }, @@ -16370,7 +16412,7 @@ var hF = { const s = { x: t, y: e }; return { opacity: 0, - transition: (i = r == null ? void 0 : r.exit) != null ? i : Kr.exit(Nn.exit, a), + transition: (i = r == null ? void 0 : r.exit) != null ? i : Jr.exit(zn.exit, a), ...o ? { ...s, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { ...s, ...n == null ? void 0 : n.exit } } }; } @@ -16378,8 +16420,8 @@ var hF = { initial: "initial", animate: "enter", exit: "exit", - variants: hF -}, mF = Tt( + variants: yF +}, xF = At( function(t, r) { const { unmountOnExit: n, @@ -16400,8 +16442,8 @@ var hF = { transitionEnd: u, delay: d }; - return /* @__PURE__ */ L.jsx(Io, { custom: h, children: p && /* @__PURE__ */ L.jsx( - Sn.div, + return /* @__PURE__ */ L.jsx(No, { custom: h, children: p && /* @__PURE__ */ L.jsx( + Cn.div, { ref: r, className: Xe("chakra-offset-slide", i), @@ -16413,8 +16455,8 @@ var hF = { ) }); } ); -mF.displayName = "SlideFade"; -var Ih = { +xF.displayName = "SlideFade"; +var Fh = { exit: { duration: 0.15, ease: au.easeInOut @@ -16424,13 +16466,13 @@ var Ih = { damping: 25, stiffness: 180 } -}, vF = { +}, SF = { exit: ({ direction: e, transition: t, transitionEnd: r, delay: n }) => { var o; const { exit: a } = iu({ direction: e }); return { ...a, - transition: (o = t == null ? void 0 : t.exit) != null ? o : Kr.exit(Ih.exit, n), + transition: (o = t == null ? void 0 : t.exit) != null ? o : Jr.exit(Fh.exit, n), transitionEnd: r == null ? void 0 : r.exit }; }, @@ -16439,11 +16481,11 @@ var Ih = { const { enter: a } = iu({ direction: e }); return { ...a, - transition: (o = r == null ? void 0 : r.enter) != null ? o : Kr.enter(Ih.enter, n), + transition: (o = r == null ? void 0 : r.enter) != null ? o : Jr.enter(Fh.enter, n), transitionEnd: t == null ? void 0 : t.enter }; } -}, ub = Tt(function(t, r) { +}, fb = At(function(t, r) { const { direction: n = "right", style: o, @@ -16460,8 +16502,8 @@ var Ih = { p.position, o ), h = a ? i && a : !0, v = i || a ? "enter" : "exit", b = { transitionEnd: c, transition: l, direction: n, delay: u }; - return /* @__PURE__ */ L.jsx(Io, { custom: b, children: h && /* @__PURE__ */ L.jsx( - Sn.div, + return /* @__PURE__ */ L.jsx(No, { custom: b, children: h && /* @__PURE__ */ L.jsx( + Cn.div, { ...f, ref: r, @@ -16470,26 +16512,26 @@ var Ih = { animate: v, exit: "exit", custom: b, - variants: vF, + variants: SF, style: m, ...d } ) }); }); -ub.displayName = "Slide"; -function db(e) { - return Ps.toArray(e).filter( +fb.displayName = "Slide"; +function pb(e) { + return As.toArray(e).filter( (t) => xu(t) ); } -var [gF, fb] = It({ +var [wF, hb] = Ft({ name: "FormControlStylesContext", errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [bF, Fo] = It({ +}), [CF, jo] = Ft({ strict: !1, name: "FormControlContext" }); -function yF(e) { +function _F(e) { const { id: t, isRequired: r, @@ -16497,38 +16539,38 @@ function yF(e) { isDisabled: o, isReadOnly: a, ...i - } = e, s = wr(), l = t || `field-${s}`, c = `${l}-label`, u = `${l}-feedback`, d = `${l}-helptext`, [f, p] = Ye(!1), [m, h] = Ye(!1), [v, b] = Ye(!1), y = q( + } = e, s = _r(), l = t || `field-${s}`, c = `${l}-label`, u = `${l}-feedback`, d = `${l}-helptext`, [f, p] = Ye(!1), [m, h] = Ye(!1), [v, b] = Ye(!1), y = G( (P = {}, I = null) => ({ id: d, ...P, - ref: xt(I, (z) => { + ref: St(I, (z) => { z && h(!0); }) }), [d] - ), S = q( + ), S = G( (P = {}, I = null) => ({ ...P, ref: I, - "data-focus": eo(v), - "data-disabled": eo(o), - "data-invalid": eo(n), - "data-readonly": eo(a), + "data-focus": ro(v), + "data-disabled": ro(o), + "data-invalid": ro(n), + "data-readonly": ro(a), id: P.id !== void 0 ? P.id : c, htmlFor: P.htmlFor !== void 0 ? P.htmlFor : l }), [l, o, v, n, a, c] - ), k = q( + ), k = G( (P = {}, I = null) => ({ id: u, ...P, - ref: xt(I, (z) => { + ref: St(I, (z) => { z && p(!0); }), "aria-live": "polite" }), [u] - ), w = q( + ), w = G( (P = {}, I = null) => ({ ...P, ...i, @@ -16536,7 +16578,7 @@ function yF(e) { role: "group" }), [i] - ), M = q( + ), M = G( (P = {}, I = null) => ({ ...P, ref: I, @@ -16570,14 +16612,14 @@ function yF(e) { getRequiredIndicatorProps: M }; } -var xF = _e( +var kF = _e( function(t, r) { - const n = Do("Form", t), o = Fr(t), { + const n = Io("Form", t), o = jr(t), { getRootProps: a, htmlProps: i, ...s - } = yF(o), l = Xe("chakra-form-control", t.className); - return /* @__PURE__ */ L.jsx(bF, { value: s, children: /* @__PURE__ */ L.jsx(gF, { value: n, children: /* @__PURE__ */ L.jsx( + } = _F(o), l = Xe("chakra-form-control", t.className); + return /* @__PURE__ */ L.jsx(CF, { value: s, children: /* @__PURE__ */ L.jsx(wF, { value: n, children: /* @__PURE__ */ L.jsx( ge.div, { ...a({}, r), @@ -16587,10 +16629,10 @@ var xF = _e( ) }) }); } ); -xF.displayName = "FormControl"; -var SF = _e( +kF.displayName = "FormControl"; +var EF = _e( function(t, r) { - const n = Fo(), o = fb(), a = Xe("chakra-form__helper-text", t.className); + const n = jo(), o = hb(), a = Xe("chakra-form__helper-text", t.className); return /* @__PURE__ */ L.jsx( ge.div, { @@ -16601,14 +16643,14 @@ var SF = _e( ); } ); -SF.displayName = "FormHelperText"; -var [wF, CF] = It({ +EF.displayName = "FormHelperText"; +var [PF, TF] = Ft({ name: "FormErrorStylesContext", errorMessage: `useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), _F = _e( +}), AF = _e( (e, t) => { - const r = Do("FormError", e), n = Fr(e), o = Fo(); - return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(wF, { value: r, children: /* @__PURE__ */ L.jsx( + const r = Io("FormError", e), n = jr(e), o = jo(); + return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(PF, { value: r, children: /* @__PURE__ */ L.jsx( ge.div, { ...o == null ? void 0 : o.getErrorMessageProps(n, t), @@ -16622,14 +16664,14 @@ var [wF, CF] = It({ ) }) : null; } ); -_F.displayName = "FormErrorMessage"; -var kF = _e((e, t) => { - const r = CF(), n = Fo(); +AF.displayName = "FormErrorMessage"; +var OF = _e((e, t) => { + const r = TF(), n = jo(); if (!(n != null && n.isInvalid)) return null; const o = Xe("chakra-form__error-icon", e.className); return /* @__PURE__ */ L.jsx( - Ks, + Js, { ref: t, "aria-hidden": !0, @@ -16646,16 +16688,16 @@ var kF = _e((e, t) => { } ); }); -kF.displayName = "FormErrorIcon"; -var EF = _e(function(t, r) { +OF.displayName = "FormErrorIcon"; +var RF = _e(function(t, r) { var n; - const o = $o("FormLabel", t), a = Fr(t), { + const o = Mo("FormLabel", t), a = jr(t), { className: i, children: s, - requiredIndicator: l = /* @__PURE__ */ L.jsx(pb, {}), + requiredIndicator: l = /* @__PURE__ */ L.jsx(mb, {}), optionalIndicator: c = null, ...u - } = a, d = Fo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u }; + } = a, d = jo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u }; return /* @__PURE__ */ L.jsxs( ge.label, { @@ -16673,10 +16715,10 @@ var EF = _e(function(t, r) { } ); }); -EF.displayName = "FormLabel"; -var pb = _e( +RF.displayName = "FormLabel"; +var mb = _e( function(t, r) { - const n = Fo(), o = fb(); + const n = jo(), o = hb(); if (!(n != null && n.isRequired)) return null; const a = Xe("chakra-form__required-indicator", t.className); @@ -16690,22 +16732,22 @@ var pb = _e( ); } ); -pb.displayName = "RequiredIndicator"; -function BV(e) { - const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = PF(e); +mb.displayName = "RequiredIndicator"; +function HV(e) { + const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = $F(e); return { ...a, disabled: t, readOnly: n, required: o, - "aria-invalid": Cl(r), - "aria-required": Cl(o), - "aria-readonly": Cl(n) + "aria-invalid": _l(r), + "aria-required": _l(o), + "aria-readonly": _l(n) }; } -function PF(e) { +function $F(e) { var t, r, n; - const o = Fo(), { + const o = jo(), { id: a, disabled: i, readOnly: s, @@ -16726,20 +16768,20 @@ function PF(e) { isReadOnly: (r = s ?? d) != null ? r : o == null ? void 0 : o.isReadOnly, isRequired: (n = l ?? c) != null ? n : o == null ? void 0 : o.isRequired, isInvalid: u ?? (o == null ? void 0 : o.isInvalid), - onFocus: Rt(o == null ? void 0 : o.onFocus, p), - onBlur: Rt(o == null ? void 0 : o.onBlur, m) + onFocus: $t(o == null ? void 0 : o.onFocus, p), + onBlur: $t(o == null ? void 0 : o.onBlur, m) }; } -function TF(e) { +function DF(e) { const t = parseFloat(e); return typeof t != "number" || Number.isNaN(t) ? 0 : t; } -function AF(e, t) { - let r = TF(e); +function MF(e, t) { + let r = DF(e); const n = 10 ** (t ?? 10); return r = Math.round(r * n) / n, t ? r.toFixed(t) : r.toString(); } -function OF(e) { +function IF(e) { if (!Number.isFinite(e)) return 0; let t = 1, r = 0; @@ -16747,21 +16789,21 @@ function OF(e) { t *= 10, r += 1; return r; } -function Ss(e, t, r) { +function Cs(e, t, r) { return (e - t) * 100 / (r - t); } -function hb(e, t, r) { +function vb(e, t, r) { return (r - t) * e + t; } function lu(e, t, r) { - const n = Math.round((e - t) / r) * r + t, o = OF(r); - return AF(n, o); + const n = Math.round((e - t) / r) * r + t, o = IF(r); + return MF(n, o); } -function ma(e, t, r) { +function ga(e, t, r) { return e == null ? e : (r < t && console.warn("clamp: max cannot be less than min"), Math.min(Math.max(e, t), r)); } -function va(e, t, r, n) { - const o = Kt(r); +function ba(e, t, r, n) { + const o = Zt(r); return Fe(() => { const a = typeof e == "function" ? e() : e ?? document; if (!(!r || !a)) @@ -16773,7 +16815,7 @@ function va(e, t, r, n) { a == null || a.removeEventListener(t, o, n); }; } -function RF(e, t) { +function FF(e, t) { if (e == null) return {}; var r = {}, n = Object.keys(e), o, a; @@ -16781,27 +16823,27 @@ function RF(e, t) { o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]); return r; } -var cu = { exports: {} }, rc, Fh; +var cu = { exports: {} }, nc, Nh; function md() { - if (Fh) - return rc; - Fh = 1; + if (Nh) + return nc; + Nh = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return rc = e, rc; -} -var nc, Nh; -function mb() { - return Nh || (Nh = 1, nc = Function.call.bind(Object.prototype.hasOwnProperty)), nc; + return nc = e, nc; } var oc, jh; -function $F() { - if (jh) - return oc; - jh = 1; +function gb() { + return jh || (jh = 1, oc = Function.call.bind(Object.prototype.hasOwnProperty)), oc; +} +var ac, Bh; +function NF() { + if (Bh) + return ac; + Bh = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { - var t = md(), r = {}, n = mb(); + var t = md(), r = {}, n = gb(); e = function(a) { var i = "Warning: " + a; typeof console < "u" && console.error(i); @@ -16841,14 +16883,14 @@ function $F() { } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); - }, oc = o, oc; + }, ac = o, ac; } -var ac, Bh; -function DF() { - if (Bh) - return ac; - Bh = 1; - var e = Eu, t = Cm(), r = md(), n = mb(), o = $F(), a = function() { +var ic, zh; +function jF() { + if (zh) + return ic; + zh = 1; + var e = Eu, t = _m, r = md(), n = gb(), o = NF(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(s) { var l = "Warning: " + s; @@ -16861,7 +16903,7 @@ function DF() { function i() { return null; } - return ac = function(s, l) { + return ic = function(s, l) { var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator"; function d(F) { var N = F && (c && F[c] || F[u]); @@ -17163,19 +17205,19 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ") return !F.constructor || !F.constructor.name ? f : F.constructor.name; } return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p; - }, ac; + }, ic; } -var ic, zh; -function MF() { - if (zh) - return ic; - zh = 1; +var sc, Vh; +function BF() { + if (Vh) + return sc; + Vh = 1; var e = md(); function t() { } function r() { } - return r.resetWarningCache = t, ic = function() { + return r.resetWarningCache = t, sc = function() { function n(i, s, l, c, u, d) { if (d !== e) { var f = new Error( @@ -17212,20 +17254,20 @@ function MF() { resetWarningCache: t }; return a.PropTypes = a, a; - }, ic; + }, sc; } if (process.env.NODE_ENV !== "production") { - var IF = Eu, FF = !0; - cu.exports = DF()(IF.isElement, FF); + var zF = Eu, VF = !0; + cu.exports = jF()(zF.isElement, VF); } else - cu.exports = MF()(); -var Ge = cu.exports; -const vb = /* @__PURE__ */ Ts(Ge); -var uu = "data-focus-lock", gb = "data-focus-lock-disabled", NF = "data-no-focus-lock", jF = "data-autofocus-inside", BF = "data-no-autofocus"; -function zF(e, t) { + cu.exports = BF()(); +var qe = cu.exports; +const bb = /* @__PURE__ */ Os(qe); +var uu = "data-focus-lock", yb = "data-focus-lock-disabled", LF = "data-no-focus-lock", WF = "data-autofocus-inside", UF = "data-no-autofocus"; +function HF(e, t) { return typeof e == "function" ? e(t) : e && (e.current = t), e; } -function VF(e, t) { +function YF(e, t) { var r = Ye(function() { return { // value @@ -17246,14 +17288,14 @@ function VF(e, t) { })[0]; return r.callback = t, r.facade; } -function bb(e, t) { - return VF(t || null, function(r) { +function xb(e, t) { + return YF(t || null, function(r) { return e.forEach(function(n) { - return zF(n, r); + return HF(n, r); }); }); } -var sc = { +var lc = { width: "1px", height: "0px", padding: 0, @@ -17262,18 +17304,18 @@ var sc = { top: "1px", left: "1px" }; -process.env.NODE_ENV !== "production" && vb.node; -var Or = function() { - return Or = Object.assign || function(t) { +process.env.NODE_ENV !== "production" && bb.node; +var $r = function() { + return $r = Object.assign || function(t) { for (var r, n = 1, o = arguments.length; n < o; n++) { r = arguments[n]; for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]); } return t; - }, Or.apply(this, arguments); + }, $r.apply(this, arguments); }; -function yb(e, t) { +function Sb(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); @@ -17282,17 +17324,17 @@ function yb(e, t) { t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]); return r; } -function LF(e, t, r) { +function GF(e, t, r) { if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++) (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]); return e.concat(a || Array.prototype.slice.call(t)); } -function xb(e) { +function wb(e) { return e; } -function Sb(e, t) { - t === void 0 && (t = xb); +function Cb(e, t) { + t === void 0 && (t = wb); var r = [], n = !1, o = { read: function() { if (n) @@ -17347,39 +17389,39 @@ function Sb(e, t) { return o; } function vd(e, t) { - return t === void 0 && (t = xb), Sb(e, t); + return t === void 0 && (t = wb), Cb(e, t); } -function wb(e) { +function _b(e) { e === void 0 && (e = {}); - var t = Sb(null); - return t.options = Or({ async: !0, ssr: !1 }, e), t; + var t = Cb(null); + return t.options = $r({ async: !0, ssr: !1 }, e), t; } -var Cb = function(e) { - var t = e.sideCar, r = yb(e, ["sideCar"]); +var kb = function(e) { + var t = e.sideCar, r = Sb(e, ["sideCar"]); if (!t) throw new Error("Sidecar: please provide `sideCar` property to import the right car"); var n = t.read(); if (!n) throw new Error("Sidecar medium not found"); - return U.createElement(n, Or({}, r)); + return U.createElement(n, $r({}, r)); }; -Cb.isSideCarExport = !0; -function WF(e, t) { - return e.useMedium(t), Cb; +kb.isSideCarExport = !0; +function qF(e, t) { + return e.useMedium(t), kb; } -var _b = vd({}, function(e) { +var Eb = vd({}, function(e) { var t = e.target, r = e.currentTarget; return { target: t, currentTarget: r }; -}), kb = vd(), UF = vd(), HF = wb({ +}), Pb = vd(), XF = vd(), KF = _b({ async: !0 // focus-lock sidecar is not required on the server // however, it might be required for JSDOM tests // ssr: true, -}), YF = [], gd = /* @__PURE__ */ U.forwardRef(function(t, r) { - var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, k = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? YF : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() { +}), ZF = [], gd = /* @__PURE__ */ U.forwardRef(function(t, r) { + var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, k = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? ZF : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() { c.current = c.current || document && document.activeElement, s.current && Q && Q(s.current), l.current = !0; }, [Q]), de = U.useCallback(function() { l.current = !1, ee && ee(s.current); @@ -17399,32 +17441,32 @@ var _b = vd({}, function(e) { } } }, [ne]), N = U.useCallback(function(A) { - l.current && _b.useMedium(A); - }, []), V = kb.useMedium, T = U.useCallback(function(A) { + l.current && Eb.useMedium(A); + }, []), V = Pb.useMedium, T = U.useCallback(function(A) { s.current !== A && (s.current = A, i(A)); }, []); process.env.NODE_ENV !== "production" && (typeof v < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), U.useEffect(function() { !s.current && typeof I != "string" && console.error("FocusLock: could not obtain ref to internal node"); }, [])); - var O = Bn((n = {}, n[gb] = d && "disabled", n[uu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = bb([r, T]); + var O = Ln((n = {}, n[yb] = d && "disabled", n[uu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = xb([r, T]); return /* @__PURE__ */ U.createElement(U.Fragment, null, B && [ // nearest focus guard /* @__PURE__ */ U.createElement("div", { key: "guard-first", "data-focus-guard": !0, tabIndex: d ? -1 : 0, - style: sc + style: lc }), // first tabbed element guard k ? /* @__PURE__ */ U.createElement("div", { key: "guard-nearest", "data-focus-guard": !0, tabIndex: d ? -1 : 1, - style: sc + style: lc }) : null ], !d && /* @__PURE__ */ U.createElement(X, { id: D, - sideCar: HF, + sideCar: KF, observed: a, disabled: d, persistentFocus: p, @@ -17436,7 +17478,7 @@ var _b = vd({}, function(e) { onDeactivation: de, returnFocus: F, focusOptions: J - }), /* @__PURE__ */ U.createElement(I, Bn({ + }), /* @__PURE__ */ U.createElement(I, Ln({ ref: H }, O, { className: y, @@ -17445,29 +17487,29 @@ var _b = vd({}, function(e) { }), u), C && /* @__PURE__ */ U.createElement("div", { "data-focus-guard": !0, tabIndex: d ? -1 : 0, - style: sc + style: lc })); }); gd.propTypes = process.env.NODE_ENV !== "production" ? { - children: Ge.node, - disabled: Ge.bool, - returnFocus: Ge.oneOfType([Ge.bool, Ge.object, Ge.func]), - focusOptions: Ge.object, - noFocusGuards: Ge.bool, - hasPositiveIndices: Ge.bool, - allowTextSelection: Ge.bool, - autoFocus: Ge.bool, - persistentFocus: Ge.bool, - crossFrame: Ge.bool, - group: Ge.string, - className: Ge.string, - whiteList: Ge.func, - shards: Ge.arrayOf(Ge.any), - as: Ge.oneOfType([Ge.string, Ge.func, Ge.object]), - lockProps: Ge.object, - onActivation: Ge.func, - onDeactivation: Ge.func, - sideCar: Ge.any.isRequired + children: qe.node, + disabled: qe.bool, + returnFocus: qe.oneOfType([qe.bool, qe.object, qe.func]), + focusOptions: qe.object, + noFocusGuards: qe.bool, + hasPositiveIndices: qe.bool, + allowTextSelection: qe.bool, + autoFocus: qe.bool, + persistentFocus: qe.bool, + crossFrame: qe.bool, + group: qe.string, + className: qe.string, + whiteList: qe.func, + shards: qe.arrayOf(qe.any), + as: qe.oneOfType([qe.string, qe.func, qe.object]), + lockProps: qe.object, + onActivation: qe.func, + onDeactivation: qe.func, + sideCar: qe.any.isRequired } : {}; gd.defaultProps = { children: void 0, @@ -17489,8 +17531,8 @@ gd.defaultProps = { onActivation: void 0, onDeactivation: void 0 }; -const Eb = gd; -function qF(e, t) { +const Tb = gd; +function JF(e, t) { if (process.env.NODE_ENV !== "production") { if (typeof e != "function") throw new Error("Expected reducePropsToState to be a function."); @@ -17510,7 +17552,7 @@ function qF(e, t) { })), t(i); } var l = /* @__PURE__ */ function(c) { - _0(u, c); + E0(u, c); function u() { return c.apply(this, arguments) || this; } @@ -17526,69 +17568,69 @@ function qF(e, t) { var p = a.indexOf(this); a.splice(p, 1), s(); }, d.render = function() { - return /* @__PURE__ */ Dt.createElement(o, this.props); + return /* @__PURE__ */ Mt.createElement(o, this.props); }, u; - }(b0); + }(x0); return Su(l, "displayName", "SideEffect(" + r(o) + ")"), l; }; } -var Nr = function(e) { +var Br = function(e) { for (var t = Array(e.length), r = 0; r < e.length; ++r) t[r] = e[r]; return t; -}, ws = function(e) { +}, _s = function(e) { return Array.isArray(e) ? e : [e]; -}, Pb = function(e) { +}, Ab = function(e) { return Array.isArray(e) ? e[0] : e; -}, GF = function(e) { +}, QF = function(e) { if (e.nodeType !== Node.ELEMENT_NODE) return !1; var t = window.getComputedStyle(e, null); return !t || !t.getPropertyValue ? !1 : t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden"; -}, Tb = function(e) { +}, Ob = function(e) { return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? ( // eslint-disable-next-line @typescript-eslint/no-explicit-any e.parentNode.host ) : e.parentNode; -}, Ab = function(e) { +}, Rb = function(e) { return e === document || e && e.nodeType === Node.DOCUMENT_NODE; -}, XF = function(e, t) { - return !e || Ab(e) || !GF(e) && t(Tb(e)); -}, Ob = function(e, t) { +}, e5 = function(e, t) { + return !e || Rb(e) || !QF(e) && t(Ob(e)); +}, $b = function(e, t) { var r = e.get(t); if (r !== void 0) return r; - var n = XF(t, Ob.bind(void 0, e)); + var n = e5(t, $b.bind(void 0, e)); return e.set(t, n), n; -}, KF = function(e, t) { - return e && !Ab(e) ? QF(e) ? t(Tb(e)) : !1 : !0; -}, Rb = function(e, t) { +}, t5 = function(e, t) { + return e && !Rb(e) ? o5(e) ? t(Ob(e)) : !1 : !0; +}, Db = function(e, t) { var r = e.get(t); if (r !== void 0) return r; - var n = KF(t, Rb.bind(void 0, e)); + var n = t5(t, Db.bind(void 0, e)); return e.set(t, n), n; -}, $b = function(e) { +}, Mb = function(e) { return e.dataset; -}, ZF = function(e) { +}, r5 = function(e) { return e.tagName === "BUTTON"; -}, Db = function(e) { +}, Ib = function(e) { return e.tagName === "INPUT"; -}, Mb = function(e) { - return Db(e) && e.type === "radio"; -}, JF = function(e) { - return !((Db(e) || ZF(e)) && (e.type === "hidden" || e.disabled)); -}, QF = function(e) { - var t = e.getAttribute(BF); +}, Fb = function(e) { + return Ib(e) && e.type === "radio"; +}, n5 = function(e) { + return !((Ib(e) || r5(e)) && (e.type === "hidden" || e.disabled)); +}, o5 = function(e) { + var t = e.getAttribute(UF); return ![!0, "true", ""].includes(t); }, bd = function(e) { var t; - return !!(e && (!((t = $b(e)) === null || t === void 0) && t.focusGuard)); -}, Cs = function(e) { + return !!(e && (!((t = Mb(e)) === null || t === void 0) && t.focusGuard)); +}, ks = function(e) { return !bd(e); -}, e5 = function(e) { +}, a5 = function(e) { return !!e; -}, t5 = function(e, t) { +}, i5 = function(e, t) { var r = e.tabIndex - t.tabIndex, n = e.index - t.index; if (r) { if (!e.tabIndex) @@ -17597,8 +17639,8 @@ var Nr = function(e) { return -1; } return r || n; -}, Ib = function(e, t, r) { - return Nr(e).map(function(n, o) { +}, Nb = function(e, t, r) { + return Br(e).map(function(n, o) { return { node: n, index: o, @@ -17606,8 +17648,8 @@ var Nr = function(e) { }; }).filter(function(n) { return !t || n.tabIndex >= 0; - }).sort(t5); -}, r5 = [ + }).sort(i5); +}, s5 = [ "button:enabled", "select:enabled", "textarea:enabled", @@ -17625,60 +17667,60 @@ var Nr = function(e) { "[tabindex]", "[contenteditable]", "[autofocus]" -], yd = r5.join(","), n5 = "".concat(yd, ", [data-focus-guard]"), Fb = function(e, t) { - return Nr((e.shadowRoot || e).children).reduce(function(r, n) { - return r.concat(n.matches(t ? n5 : yd) ? [n] : [], Fb(n)); +], yd = s5.join(","), l5 = "".concat(yd, ", [data-focus-guard]"), jb = function(e, t) { + return Br((e.shadowRoot || e).children).reduce(function(r, n) { + return r.concat(n.matches(t ? l5 : yd) ? [n] : [], jb(n)); }, []); -}, o5 = function(e, t) { +}, c5 = function(e, t) { var r; - return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? Zs([e.contentDocument.body], t) : [e]; -}, Zs = function(e, t) { + return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? Qs([e.contentDocument.body], t) : [e]; +}, Qs = function(e, t) { return e.reduce(function(r, n) { - var o, a = Fb(n, t), i = (o = []).concat.apply(o, a.map(function(s) { - return o5(s, t); + var o, a = jb(n, t), i = (o = []).concat.apply(o, a.map(function(s) { + return c5(s, t); })); return r.concat( // add all tabbables inside and within shadow DOMs in DOM order i, // add if node is tabbable itself - n.parentNode ? Nr(n.parentNode.querySelectorAll(yd)).filter(function(s) { + n.parentNode ? Br(n.parentNode.querySelectorAll(yd)).filter(function(s) { return s === n; }) : [] ); }, []); -}, a5 = function(e) { - var t = e.querySelectorAll("[".concat(jF, "]")); - return Nr(t).map(function(r) { - return Zs([r]); +}, u5 = function(e) { + var t = e.querySelectorAll("[".concat(WF, "]")); + return Br(t).map(function(r) { + return Qs([r]); }).reduce(function(r, n) { return r.concat(n); }, []); }, xd = function(e, t) { - return Nr(e).filter(function(r) { - return Ob(t, r); + return Br(e).filter(function(r) { + return $b(t, r); }).filter(function(r) { - return JF(r); + return n5(r); }); -}, Vh = function(e, t) { - return t === void 0 && (t = /* @__PURE__ */ new Map()), Nr(e).filter(function(r) { - return Rb(t, r); +}, Lh = function(e, t) { + return t === void 0 && (t = /* @__PURE__ */ new Map()), Br(e).filter(function(r) { + return Db(t, r); }); }, du = function(e, t, r) { - return Ib(xd(Zs(e, r), t), !0, r); -}, Lh = function(e, t) { - return Ib(xd(Zs(e), t), !1); -}, i5 = function(e, t) { - return xd(a5(e), t); -}, vo = function(e, t) { - return e.shadowRoot ? vo(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : Nr(e.children).some(function(r) { + return Nb(xd(Qs(e, r), t), !0, r); +}, Wh = function(e, t) { + return Nb(xd(Qs(e), t), !1); +}, d5 = function(e, t) { + return xd(u5(e), t); +}, bo = function(e, t) { + return e.shadowRoot ? bo(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : Br(e.children).some(function(r) { var n; if (r instanceof HTMLIFrameElement) { var o = (n = r.contentDocument) === null || n === void 0 ? void 0 : n.body; - return o ? vo(o, t) : !1; + return o ? bo(o, t) : !1; } - return vo(r, t); + return bo(r, t); }); -}, s5 = function(e) { +}, f5 = function(e) { for (var t = /* @__PURE__ */ new Set(), r = e.length, n = 0; n < r; n += 1) for (var o = n + 1; o < r; o += 1) { var a = e[n].compareDocumentPosition(e[o]); @@ -17687,68 +17729,68 @@ var Nr = function(e) { return e.filter(function(i, s) { return !t.has(s); }); -}, Nb = function(e) { - return e.parentNode ? Nb(e.parentNode) : e; +}, Bb = function(e) { + return e.parentNode ? Bb(e.parentNode) : e; }, Sd = function(e) { - var t = ws(e); + var t = _s(e); return t.filter(Boolean).reduce(function(r, n) { var o = n.getAttribute(uu); - return r.push.apply(r, o ? s5(Nr(Nb(n).querySelectorAll("[".concat(uu, '="').concat(o, '"]:not([').concat(gb, '="disabled"])')))) : [n]), r; + return r.push.apply(r, o ? f5(Br(Bb(n).querySelectorAll("[".concat(uu, '="').concat(o, '"]:not([').concat(yb, '="disabled"])')))) : [n]), r; }, []); -}, l5 = function(e) { +}, p5 = function(e) { try { return e(); } catch { return; } -}, ja = function(e) { +}, za = function(e) { if (e === void 0 && (e = document), !(!e || !e.activeElement)) { var t = e.activeElement; - return t.shadowRoot ? ja(t.shadowRoot) : t instanceof HTMLIFrameElement && l5(function() { + return t.shadowRoot ? za(t.shadowRoot) : t instanceof HTMLIFrameElement && p5(function() { return t.contentWindow.document; - }) ? ja(t.contentWindow.document) : t; + }) ? za(t.contentWindow.document) : t; } -}, c5 = function(e, t) { +}, h5 = function(e, t) { return e === t; -}, u5 = function(e, t) { - return !!Nr(e.querySelectorAll("iframe")).some(function(r) { - return c5(r, t); +}, m5 = function(e, t) { + return !!Br(e.querySelectorAll("iframe")).some(function(r) { + return h5(r, t); }); -}, jb = function(e, t) { - return t === void 0 && (t = ja(Pb(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : Sd(e).some(function(r) { - return vo(r, t) || u5(r, t); +}, zb = function(e, t) { + return t === void 0 && (t = za(Ab(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : Sd(e).some(function(r) { + return bo(r, t) || m5(r, t); }); -}, d5 = function(e) { +}, v5 = function(e) { e === void 0 && (e = document); - var t = ja(e); - return t ? Nr(e.querySelectorAll("[".concat(NF, "]"))).some(function(r) { - return vo(r, t); + var t = za(e); + return t ? Br(e.querySelectorAll("[".concat(LF, "]"))).some(function(r) { + return bo(r, t); }) : !1; -}, f5 = function(e, t) { - return t.filter(Mb).filter(function(r) { +}, g5 = function(e, t) { + return t.filter(Fb).filter(function(r) { return r.name === e.name; }).filter(function(r) { return r.checked; })[0] || e; }, wd = function(e, t) { - return Mb(e) && e.name ? f5(e, t) : e; -}, p5 = function(e) { + return Fb(e) && e.name ? g5(e, t) : e; +}, b5 = function(e) { var t = /* @__PURE__ */ new Set(); return e.forEach(function(r) { return t.add(wd(r, e)); }), e.filter(function(r) { return t.has(r); }); -}, Wh = function(e) { +}, Uh = function(e) { return e[0] && e.length > 1 ? wd(e[0], e) : e[0]; -}, Uh = function(e, t) { +}, Hh = function(e, t) { return e.length > 1 ? e.indexOf(wd(e[t], e)) : t; -}, Bb = "NEW_FOCUS", h5 = function(e, t, r, n) { +}, Vb = "NEW_FOCUS", y5 = function(e, t, r, n) { var o = e.length, a = e[0], i = e[o - 1], s = bd(r); if (!(r && e.indexOf(r) >= 0)) { - var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = p5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Uh(e, 0), y = Uh(e, o - 1); + var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = b5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Hh(e, 0), y = Hh(e, o - 1); if (l === -1 || u === -1) - return Bb; + return Vb; if (!d && u >= 0) return u; if (l <= f && s && Math.abs(d) > 1) @@ -17764,9 +17806,9 @@ var Nr = function(e) { if (d) return Math.abs(d) > 1 ? u : (o + u + d) % o; } -}, m5 = function(e) { +}, x5 = function(e) { return function(t) { - var r, n = (r = $b(t)) === null || r === void 0 ? void 0 : r.autofocus; + var r, n = (r = Mb(t)) === null || r === void 0 ? void 0 : r.autofocus; return ( // @ts-expect-error t.autofocus || // @@ -17774,55 +17816,55 @@ var Nr = function(e) { e.indexOf(t) >= 0 ); }; -}, v5 = function(e, t, r) { +}, S5 = function(e, t, r) { var n = e.map(function(a) { var i = a.node; return i; - }), o = Vh(n.filter(m5(r))); - return o && o.length ? Wh(o) : Wh(Vh(t)); + }), o = Lh(n.filter(x5(r))); + return o && o.length ? Uh(o) : Uh(Lh(t)); }, fu = function(e, t) { return t === void 0 && (t = []), t.push(e), e.parentNode && fu(e.parentNode.host || e.parentNode, t), t; -}, lc = function(e, t) { +}, cc = function(e, t) { for (var r = fu(e), n = fu(t), o = 0; o < r.length; o += 1) { var a = r[o]; if (n.indexOf(a) >= 0) return a; } return !1; -}, zb = function(e, t, r) { - var n = ws(e), o = ws(t), a = n[0], i = !1; +}, Lb = function(e, t, r) { + var n = _s(e), o = _s(t), a = n[0], i = !1; return o.filter(Boolean).forEach(function(s) { - i = lc(i || s, s) || i, r.filter(Boolean).forEach(function(l) { - var c = lc(a, l); - c && (!i || vo(c, i) ? i = c : i = lc(c, i)); + i = cc(i || s, s) || i, r.filter(Boolean).forEach(function(l) { + var c = cc(a, l); + c && (!i || bo(c, i) ? i = c : i = cc(c, i)); }); }), i; -}, g5 = function(e, t) { +}, w5 = function(e, t) { return e.reduce(function(r, n) { - return r.concat(i5(n, t)); + return r.concat(d5(n, t)); }, []); -}, b5 = function(e, t) { +}, C5 = function(e, t) { var r = /* @__PURE__ */ new Map(); return t.forEach(function(n) { return r.set(n.node, n); }), e.map(function(n) { return r.get(n); - }).filter(e5); -}, y5 = function(e, t) { - var r = ja(ws(e).length > 0 ? document : Pb(e).ownerDocument), n = Sd(e).filter(Cs), o = zb(r || e, e, n), a = /* @__PURE__ */ new Map(), i = Lh(n, a), s = du(n, a).filter(function(p) { + }).filter(a5); +}, _5 = function(e, t) { + var r = za(_s(e).length > 0 ? document : Ab(e).ownerDocument), n = Sd(e).filter(ks), o = Lb(r || e, e, n), a = /* @__PURE__ */ new Map(), i = Wh(n, a), s = du(n, a).filter(function(p) { var m = p.node; - return Cs(m); + return ks(m); }); if (!(!s[0] && (s = i, !s[0]))) { - var l = Lh([o], a).map(function(p) { + var l = Wh([o], a).map(function(p) { var m = p.node; return m; - }), c = b5(l, s), u = c.map(function(p) { + }), c = C5(l, s), u = c.map(function(p) { var m = p.node; return m; - }), d = h5(u, l, r, t); - if (d === Bb) { - var f = v5(i, u, g5(n, a)); + }), d = y5(u, l, r, t); + if (d === Vb) { + var f = S5(i, u, w5(n, a)); if (f) return { node: f }; console.warn("focus-lock: cannot find any node to move focus into"); @@ -17830,10 +17872,10 @@ var Nr = function(e) { } return d === void 0 ? d : c[d]; } -}, x5 = function(e) { - var t = Sd(e).filter(Cs), r = zb(e, e, t), n = /* @__PURE__ */ new Map(), o = du([r], n, !0), a = du(t, n).filter(function(i) { +}, k5 = function(e) { + var t = Sd(e).filter(ks), r = Lb(e, e, t), n = /* @__PURE__ */ new Map(), o = du([r], n, !0), a = du(t, n).filter(function(i) { var s = i.node; - return Cs(s); + return ks(s); }).map(function(i) { var s = i.node; return s; @@ -17847,42 +17889,42 @@ var Nr = function(e) { guard: bd(s) }; }); -}, S5 = function(e, t) { +}, E5 = function(e, t) { "focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus(); -}, cc = 0, uc = !1, Vb = function(e, t, r) { +}, uc = 0, dc = !1, Wb = function(e, t, r) { r === void 0 && (r = {}); - var n = y5(e, t); - if (!uc && n) { - if (cc > 2) { - console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), uc = !0, setTimeout(function() { - uc = !1; + var n = _5(e, t); + if (!dc && n) { + if (uc > 2) { + console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), dc = !0, setTimeout(function() { + dc = !1; }, 1); return; } - cc++, S5(n.node, r.focusOptions), cc--; + uc++, E5(n.node, r.focusOptions), uc--; } }; -function Lb(e) { +function Ub(e) { var t = window, r = t.setImmediate; typeof r < "u" ? r(e) : setTimeout(e, 1); } -var w5 = function() { +var P5 = function() { return document && document.activeElement === document.body; -}, C5 = function() { - return w5() || d5(); -}, go = null, so = null, bo = null, Ba = !1, _5 = function() { +}, T5 = function() { + return P5() || v5(); +}, yo = null, co = null, xo = null, Va = !1, A5 = function() { return !0; -}, k5 = function(t) { - return (go.whiteList || _5)(t); -}, E5 = function(t, r) { - bo = { +}, O5 = function(t) { + return (yo.whiteList || A5)(t); +}, R5 = function(t, r) { + xo = { observerNode: t, portaledElement: r }; -}, P5 = function(t) { - return bo && bo.portaledElement === t; +}, $5 = function(t) { + return xo && xo.portaledElement === t; }; -function Hh(e, t, r, n) { +function Yh(e, t, r, n) { var o = null, a = e; do { var i = n[a]; @@ -17897,29 +17939,29 @@ function Hh(e, t, r, n) { } while ((a += r) !== t); o && (o.node.tabIndex = 0); } -var T5 = function(t) { +var D5 = function(t) { return t && "current" in t ? t.current : t; -}, A5 = function(t) { - return t ? !!Ba : Ba === "meanwhile"; -}, O5 = function e(t, r, n) { +}, M5 = function(t) { + return t ? !!Va : Va === "meanwhile"; +}, I5 = function e(t, r, n) { return r && // find host equal to active element and check nested active element (r.host === t && (!r.activeElement || n.contains(r.activeElement)) || r.parentNode && e(t, r.parentNode, n)); -}, R5 = function(t, r) { +}, F5 = function(t, r) { return r.some(function(n) { - return O5(t, n, n); + return I5(t, n, n); }); -}, _s = function() { +}, Es = function() { var t = !1; - if (go) { - var r = go, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || bo && bo.portaledElement, u = document && document.activeElement; + if (yo) { + var r = yo, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || xo && xo.portaledElement, u = document && document.activeElement; if (c) { - var d = [c].concat(i.map(T5).filter(Boolean)); - if ((!u || k5(u)) && (o || A5(s) || !C5() || !so && a) && (c && !// active element is "inside" working area - (jb(d) || // check for shadow-dom contained elements - u && R5(u, d) || P5(u)) && (document && !so && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Vb(d, so, { + var d = [c].concat(i.map(D5).filter(Boolean)); + if ((!u || O5(u)) && (o || M5(s) || !T5() || !co && a) && (c && !// active element is "inside" working area + (zb(d) || // check for shadow-dom contained elements + u && F5(u, d) || $5(u)) && (document && !co && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Wb(d, co, { focusOptions: l - }), bo = {})), Ba = !1, so = document && document.activeElement), document) { - var f = document && document.activeElement, p = x5(d), m = p.map(function(h) { + }), xo = {})), Va = !1, co = document && document.activeElement), document) { + var f = document && document.activeElement, p = k5(d), m = p.map(function(h) { var v = h.node; return v; }).indexOf(f); @@ -17929,108 +17971,108 @@ var T5 = function(t) { }).forEach(function(h) { var v = h.node; return v.removeAttribute("tabIndex"); - }), Hh(m, p.length, 1, p), Hh(m, -1, -1, p)); + }), Yh(m, p.length, 1, p), Yh(m, -1, -1, p)); } } } return t; -}, Wb = function(t) { - _s() && t && (t.stopPropagation(), t.preventDefault()); +}, Hb = function(t) { + Es() && t && (t.stopPropagation(), t.preventDefault()); }, Cd = function() { - return Lb(_s); -}, $5 = function(t) { + return Ub(Es); +}, N5 = function(t) { var r = t.target, n = t.currentTarget; - n.contains(r) || E5(n, r); -}, D5 = function() { + n.contains(r) || R5(n, r); +}, j5 = function() { return null; }; -process.env.NODE_ENV !== "production" && vb.node.isRequired; -var Ub = function() { - Ba = "just", setTimeout(function() { - Ba = "meanwhile"; +process.env.NODE_ENV !== "production" && bb.node.isRequired; +var Yb = function() { + Va = "just", setTimeout(function() { + Va = "meanwhile"; }, 0); -}, M5 = function() { - document.addEventListener("focusin", Wb), document.addEventListener("focusout", Cd), window.addEventListener("blur", Ub); -}, I5 = function() { - document.removeEventListener("focusin", Wb), document.removeEventListener("focusout", Cd), window.removeEventListener("blur", Ub); +}, B5 = function() { + document.addEventListener("focusin", Hb), document.addEventListener("focusout", Cd), window.addEventListener("blur", Yb); +}, z5 = function() { + document.removeEventListener("focusin", Hb), document.removeEventListener("focusout", Cd), window.removeEventListener("blur", Yb); }; -function F5(e) { +function V5(e) { return e.filter(function(t) { var r = t.disabled; return !r; }); } -function N5(e) { +function L5(e) { var t = e.slice(-1)[0]; - t && !go && M5(); - var r = go, n = r && t && t.id === r.id; - go = t, r && !n && (r.onDeactivation(), e.filter(function(o) { + t && !yo && B5(); + var r = yo, n = r && t && t.id === r.id; + yo = t, r && !n && (r.onDeactivation(), e.filter(function(o) { var a = o.id; return a === r.id; - }).length || r.returnFocus(!t)), t ? (so = null, (!n || r.observed !== t.observed) && t.onActivation(), _s(), Lb(_s)) : (I5(), so = null); + }).length || r.returnFocus(!t)), t ? (co = null, (!n || r.observed !== t.observed) && t.onActivation(), Es(), Ub(Es)) : (z5(), co = null); } -_b.assignSyncMedium($5); -kb.assignMedium(Cd); -UF.assignMedium(function(e) { +Eb.assignSyncMedium(N5); +Pb.assignMedium(Cd); +XF.assignMedium(function(e) { return e({ - moveFocusInside: Vb, - focusInside: jb + moveFocusInside: Wb, + focusInside: zb }); }); -const j5 = qF(F5, N5)(D5); -var Hb = /* @__PURE__ */ U.forwardRef(function(t, r) { - return /* @__PURE__ */ U.createElement(Eb, Bn({ - sideCar: j5, +const W5 = JF(V5, L5)(j5); +var Gb = /* @__PURE__ */ U.forwardRef(function(t, r) { + return /* @__PURE__ */ U.createElement(Tb, Ln({ + sideCar: W5, ref: r }, t)); -}), Yb = Eb.propTypes || {}; -Yb.sideCar; -var B5 = RF(Yb, ["sideCar"]); -Hb.propTypes = process.env.NODE_ENV !== "production" ? B5 : {}; -const Yh = Hb; -function qb(e) { +}), qb = Tb.propTypes || {}; +qb.sideCar; +var U5 = FF(qb, ["sideCar"]); +Gb.propTypes = process.env.NODE_ENV !== "production" ? U5 : {}; +const Gh = Gb; +function Xb(e) { return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; } function _d(e) { var t; - if (!qb(e)) + if (!Xb(e)) return !1; const r = (t = e.ownerDocument.defaultView) != null ? t : window; return e instanceof r.HTMLElement; } -function z5(e) { +function H5(e) { var t, r; - return (r = (t = Gb(e)) == null ? void 0 : t.defaultView) != null ? r : window; + return (r = (t = Kb(e)) == null ? void 0 : t.defaultView) != null ? r : window; } -function Gb(e) { - return qb(e) ? e.ownerDocument : document; +function Kb(e) { + return Xb(e) ? e.ownerDocument : document; } -function V5(e) { - return Gb(e).activeElement; +function Y5(e) { + return Kb(e).activeElement; } -function L5(e) { +function G5(e) { const t = e.ownerDocument.defaultView || window, { overflow: r, overflowX: n, overflowY: o } = t.getComputedStyle(e); return /auto|scroll|overlay|hidden/.test(r + o + n); } -function W5(e) { +function q5(e) { return e.localName === "html" ? e : e.assignedSlot || e.parentElement || e.ownerDocument.documentElement; } -function Xb(e) { - return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : _d(e) && L5(e) ? e : Xb(W5(e)); +function Zb(e) { + return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : _d(e) && G5(e) ? e : Zb(q5(e)); } -var Kb = (e) => e.hasAttribute("tabindex"), U5 = (e) => Kb(e) && e.tabIndex === -1; -function H5(e) { +var Jb = (e) => e.hasAttribute("tabindex"), X5 = (e) => Jb(e) && e.tabIndex === -1; +function K5(e) { return !!e.getAttribute("disabled") || !!e.getAttribute("aria-disabled"); } -function Zb(e) { - return e.parentElement && Zb(e.parentElement) ? !0 : e.hidden; +function Qb(e) { + return e.parentElement && Qb(e.parentElement) ? !0 : e.hidden; } -function Y5(e) { +function Z5(e) { const t = e.getAttribute("contenteditable"); return t !== "false" && t != null; } -function Jb(e) { - if (!_d(e) || Zb(e) || H5(e)) +function ey(e) { + if (!_d(e) || Qb(e) || K5(e)) return !1; const { localName: t } = e; if (["input", "select", "textarea", "button"].indexOf(t) >= 0) @@ -18040,12 +18082,12 @@ function Jb(e) { audio: () => e.hasAttribute("controls"), video: () => e.hasAttribute("controls") }; - return t in n ? n[t]() : Y5(e) ? !0 : Kb(e); + return t in n ? n[t]() : Z5(e) ? !0 : Jb(e); } -function q5(e) { - return e ? _d(e) && Jb(e) && !U5(e) : !1; +function J5(e) { + return e ? _d(e) && ey(e) && !X5(e) : !1; } -var G5 = [ +var Q5 = [ "input:not(:disabled):not([disabled])", "select:not(:disabled):not([disabled])", "textarea:not(:disabled):not([disabled])", @@ -18060,14 +18102,14 @@ var G5 = [ "video[controls]", "*[tabindex]:not([aria-disabled])", "*[contenteditable]" -], X5 = G5.join(), K5 = (e) => e.offsetWidth > 0 && e.offsetHeight > 0; -function Qb(e) { +], eN = Q5.join(), tN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0; +function ty(e) { const t = Array.from( - e.querySelectorAll(X5) + e.querySelectorAll(eN) ); - return t.unshift(e), t.filter((r) => Jb(r) && K5(r)); + return t.unshift(e), t.filter((r) => ey(r) && tN(r)); } -var qh, Z5 = (qh = Yh.default) != null ? qh : Yh, ey = (e) => { +var qh, rN = (qh = Gh.default) != null ? qh : Gh, ry = (e) => { const { initialFocusRef: t, finalFocusRef: r, @@ -18078,17 +18120,17 @@ var qh, Z5 = (qh = Yh.default) != null ? qh : Yh, ey = (e) => { autoFocus: s, persistentFocus: l, lockFocusAcrossFrames: c - } = e, u = q(() => { - t != null && t.current ? t.current.focus() : n != null && n.current && Qb(n.current).length === 0 && requestAnimationFrame(() => { + } = e, u = G(() => { + t != null && t.current ? t.current.focus() : n != null && n.current && ty(n.current).length === 0 && requestAnimationFrame(() => { var m; (m = n.current) == null || m.focus(); }); - }, [t, n]), d = q(() => { + }, [t, n]), d = G(() => { var p; (p = r == null ? void 0 : r.current) == null || p.focus(); }, [r]), f = o && !r; return /* @__PURE__ */ L.jsx( - Z5, + rN, { crossFrame: c, persistentFocus: l, @@ -18101,8 +18143,8 @@ var qh, Z5 = (qh = Yh.default) != null ? qh : Yh, ey = (e) => { } ); }; -ey.displayName = "FocusLock"; -var ty = Object.freeze([ +ry.displayName = "FocusLock"; +var ny = Object.freeze([ "base", "sm", "md", @@ -18110,17 +18152,17 @@ var ty = Object.freeze([ "xl", "2xl" ]); -function J5(e, t) { - return Array.isArray(e) ? e.map((r) => r === null ? null : t(r)) : zt(e) ? Object.keys(e).reduce((r, n) => (r[n] = t(e[n]), r), {}) : e != null ? t(e) : null; +function nN(e, t) { + return Array.isArray(e) ? e.map((r) => r === null ? null : t(r)) : Vt(e) ? Object.keys(e).reduce((r, n) => (r[n] = t(e[n]), r), {}) : e != null ? t(e) : null; } -function Q5(e, t = ty) { +function oN(e, t = ny) { const r = {}; return e.forEach((n, o) => { const a = t[o]; n != null && (r[a] = n); }), r; } -var ry = (e) => /* @__PURE__ */ L.jsx( +var oy = (e) => /* @__PURE__ */ L.jsx( ge.div, { className: "chakra-stack__item", @@ -18133,8 +18175,8 @@ var ry = (e) => /* @__PURE__ */ L.jsx( } } ); -ry.displayName = "StackItem"; -function eN(e) { +oy.displayName = "StackItem"; +function aN(e) { const { spacing: t, direction: r } = e, n = { column: { my: t, @@ -18162,13 +18204,13 @@ function eN(e) { } }; return { - "&": J5( + "&": nN( r, (o) => n[o] ) }; } -var ny = _e((e, t) => { +var ay = _e((e, t) => { const { isInline: r, direction: n, @@ -18181,16 +18223,16 @@ var ny = _e((e, t) => { className: u, shouldWrapChildren: d, ...f - } = e, p = r ? "row" : n ?? "column", m = vt( - () => eN({ spacing: i, direction: p }), + } = e, p = r ? "row" : n ?? "column", m = gt( + () => aN({ spacing: i, direction: p }), [i, p] - ), h = !!c, v = !d && !h, b = vt(() => { - const S = db(l); + ), h = !!c, v = !d && !h, b = gt(() => { + const S = pb(l); return v ? S : S.map((k, w) => { - const M = typeof k.key < "u" ? k.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(ry, { children: k }, M) : k; + const M = typeof k.key < "u" ? k.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(oy, { children: k }, M) : k; if (!h) return z; - const j = La( + const j = Ua( c, { __css: m @@ -18225,15 +18267,15 @@ var ny = _e((e, t) => { } ); }); -ny.displayName = "Stack"; -var tN = _e((e, t) => /* @__PURE__ */ L.jsx(ny, { align: "center", ...e, direction: "row", ref: t })); -tN.displayName = "HStack"; -var oy = ge("div"); -oy.displayName = "Box"; -var ay = _e(function(t, r) { +ay.displayName = "Stack"; +var iN = _e((e, t) => /* @__PURE__ */ L.jsx(ay, { align: "center", ...e, direction: "row", ref: t })); +iN.displayName = "HStack"; +var iy = ge("div"); +iy.displayName = "Box"; +var sy = _e(function(t, r) { const { size: n, centerContent: o = !0, ...a } = t, i = o ? { display: "flex", alignItems: "center", justifyContent: "center" } : {}; return /* @__PURE__ */ L.jsx( - oy, + iy, { ref: r, boxSize: n, @@ -18246,13 +18288,13 @@ var ay = _e(function(t, r) { } ); }); -ay.displayName = "Square"; -var rN = _e(function(t, r) { +sy.displayName = "Square"; +var sN = _e(function(t, r) { const { size: n, ...o } = t; - return /* @__PURE__ */ L.jsx(ay, { size: n, ref: r, borderRadius: "9999px", ...o }); + return /* @__PURE__ */ L.jsx(sy, { size: n, ref: r, borderRadius: "9999px", ...o }); }); -rN.displayName = "Circle"; -var nN = _e(function(t, r) { +sN.displayName = "Circle"; +var lN = _e(function(t, r) { const { borderLeftWidth: n, borderBottomWidth: o, @@ -18262,12 +18304,12 @@ var nN = _e(function(t, r) { borderStyle: l, borderColor: c, ...u - } = $o("Divider", t), { + } = Mo("Divider", t), { className: d, orientation: f = "horizontal", __css: p, ...m - } = Fr(t), h = { + } = jr(t), h = { vertical: { borderLeftWidth: n || i || s || "1px", height: "100%" @@ -18295,8 +18337,8 @@ var nN = _e(function(t, r) { } ); }); -nN.displayName = "Divider"; -var oN = _e(function(t, r) { +lN.displayName = "Divider"; +var cN = _e(function(t, r) { const { direction: n, align: o, justify: a, wrap: i, basis: s, grow: l, shrink: c, ...u } = t, d = { display: "flex", flexDirection: n, @@ -18309,9 +18351,9 @@ var oN = _e(function(t, r) { }; return /* @__PURE__ */ L.jsx(ge.div, { ref: r, __css: d, ...u }); }); -oN.displayName = "Flex"; -function aN(e, t = {}) { - const { ssr: r = !0, fallback: n } = t, { getWindow: o } = j$(), a = Array.isArray(e) ? e : [e]; +cN.displayName = "Flex"; +function uN(e, t = {}) { + const { ssr: r = !0, fallback: n } = t, { getWindow: o } = W$(), a = Array.isArray(e) ? e : [e]; let i = Array.isArray(n) ? n : [n]; i = i.filter((c) => c != null); const [s, l] = Ye(() => a.map((c, u) => ({ @@ -18338,7 +18380,7 @@ function aN(e, t = {}) { }; }, [o]), s.map((c) => c.matches); } -function iN(e, t, r = ty) { +function dN(e, t, r = ny) { let n = Object.keys(e).indexOf(t); if (n !== -1) return e[t]; @@ -18356,36 +18398,36 @@ function iN(e, t, r = ty) { return e[a]; } } -function sN(e) { +function fN(e) { var t, r; - const n = zt(e) ? e : { fallback: e ?? "base" }, a = nn().__breakpoints.details.map( + const n = Vt(e) ? e : { fallback: e ?? "base" }, a = an().__breakpoints.details.map( ({ minMaxQuery: c, breakpoint: u }) => ({ breakpoint: u, query: c.replace("@media screen and ", "") }) - ), i = a.map((c) => c.breakpoint === n.fallback), l = aN( + ), i = a.map((c) => c.breakpoint === n.fallback), l = uN( a.map((c) => c.query), { fallback: i, ssr: n.ssr } ).findIndex((c) => c == !0); return (r = (t = a[l]) == null ? void 0 : t.breakpoint) != null ? r : n.fallback; } -function zV(e, t) { +function YV(e, t) { var r; - const n = zt(t) ? t : { fallback: t ?? "base" }, o = sN(n), a = nn(); + const n = Vt(t) ? t : { fallback: t ?? "base" }, o = fN(n), a = an(); if (!o) return; const i = Array.from(((r = a.__breakpoints) == null ? void 0 : r.keys) || []), s = Array.isArray(e) ? Object.fromEntries( - Object.entries(Q5(e, i)).map( + Object.entries(oN(e, i)).map( ([l, c]) => [l, c] ) ) : e; - return iN(s, o, i); + return dN(s, o, i); } -function lN(e) { +function pN(e) { const { key: t } = e; return t.length === 1 || t.length > 1 && /[^a-zA-Z0-9]/.test(t); } -function cN(e = {}) { +function hN(e = {}) { const { timeout: t = 300, preventDefault: r = () => !0 } = e, [n, o] = Ye([]), a = be(), i = () => { a.current && (clearTimeout(a.current), a.current = null); }, s = () => { @@ -18401,7 +18443,7 @@ function cN(e = {}) { d.pop(), o(d); return; } - if (lN(u)) { + if (pN(u)) { const d = n.concat(u.key); r(u) && (u.preventDefault(), u.stopPropagation()), o(d), c(d.join("")), s(); } @@ -18409,7 +18451,7 @@ function cN(e = {}) { } return l; } -function uN(e, t, r, n) { +function mN(e, t, r, n) { if (t == null) return n; if (!n) @@ -18425,10 +18467,10 @@ function uN(e, t, r, n) { } return n; } -function dN() { - const e = be(/* @__PURE__ */ new Map()), t = e.current, r = q((o, a, i, s) => { +function vN() { + const e = be(/* @__PURE__ */ new Map()), t = e.current, r = G((o, a, i, s) => { e.current.set(i, { type: a, el: o, options: s }), o.addEventListener(a, i, s); - }, []), n = q( + }, []), n = G( (o, a, i, s) => { o.removeEventListener(a, i, s), e.current.delete(i); }, @@ -18443,11 +18485,11 @@ function dN() { [n, t] ), { add: r, remove: n }; } -function dc(e) { +function fc(e) { const t = e.target, { tagName: r, isContentEditable: n } = t; return r !== "INPUT" && r !== "TEXTAREA" && n !== !0; } -function fN(e = {}) { +function gN(e = {}) { const { ref: t, isDisabled: r, @@ -18463,9 +18505,9 @@ function fN(e = {}) { onMouseOver: f, onMouseLeave: p, ...m - } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = dN(), k = (D) => { + } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = vN(), k = (D) => { D && D.tagName !== "BUTTON" && v(!1); - }, w = h ? d : d || 0, M = r && !n, P = q( + }, w = h ? d : d || 0, M = r && !n, P = G( (D) => { if (r) { D.stopPropagation(), D.preventDefault(); @@ -18474,14 +18516,14 @@ function fN(e = {}) { D.currentTarget.focus(), l == null || l(D); }, [r, l] - ), I = q( + ), I = G( (D) => { - b && dc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1)); + b && fc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1)); }, [b, S] - ), z = q( + ), z = G( (D) => { - if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !dc(D.nativeEvent) || h) + if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !fc(D.nativeEvent) || h) return; const ce = o && D.key === "Enter"; a && D.key === " " && (D.preventDefault(), y(!0)), ce && (D.preventDefault(), D.currentTarget.click()), S.add(document, "keyup", I, !1); @@ -18495,19 +18537,19 @@ function fN(e = {}) { S, I ] - ), j = q( + ), j = G( (D) => { - if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !dc(D.nativeEvent) || h) + if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !fc(D.nativeEvent) || h) return; a && D.key === " " && (D.preventDefault(), y(!1), D.currentTarget.click()); }, [a, h, r, u] - ), X = q( + ), X = G( (D) => { D.button === 0 && (y(!1), S.remove(document, "mouseup", X, !1)); }, [S] - ), ne = q( + ), ne = G( (D) => { if (D.button !== 0) return; @@ -18518,12 +18560,12 @@ function fN(e = {}) { h || y(!0), D.currentTarget.focus({ preventScroll: !0 }), S.add(document, "mouseup", X, !1), i == null || i(D); }, [r, h, i, S, X] - ), J = q( + ), J = G( (D) => { D.button === 0 && (h || y(!1), s == null || s(D)); }, [s, h] - ), Q = q( + ), Q = G( (D) => { if (r) { D.preventDefault(); @@ -18532,12 +18574,12 @@ function fN(e = {}) { f == null || f(D); }, [r, f] - ), ee = q( + ), ee = G( (D) => { b && (D.preventDefault(), y(!1)), p == null || p(D); }, [b, p] - ), oe = xt(t, k); + ), oe = St(t, k); return h ? { ...m, ref: oe, @@ -18555,7 +18597,7 @@ function fN(e = {}) { ...m, ref: oe, role: "button", - "data-active": eo(b), + "data-active": ro(b), "aria-disabled": r ? "true" : void 0, tabIndex: M ? void 0 : w, onClick: P, @@ -18567,17 +18609,17 @@ function fN(e = {}) { onMouseLeave: ee }; } -function pN(e) { +function bN(e) { const t = e.current; if (!t) return !1; - const r = V5(t); - return !r || t.contains(r) ? !1 : !!q5(r); + const r = Y5(t); + return !r || t.contains(r) ? !1 : !!J5(r); } -function hN(e, t) { +function yN(e, t) { const { shouldFocus: r, visible: n, focusRef: o } = t, a = r && !n; - Mo(() => { - if (!a || pN(e)) + Fo(() => { + if (!a || bN(e)) return; const i = (o == null ? void 0 : o.current) || e.current; let s; @@ -18589,16 +18631,16 @@ function hN(e, t) { }; }, [a, e, o]); } -var mN = { +var xN = { preventScroll: !0, shouldFocus: !1 }; -function VV(e, t = mN) { - const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = vN(e) ? e.current : e, s = o && a, l = be(s), c = be(a); - Ta(() => { +function GV(e, t = xN) { + const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = SN(e) ? e.current : e, s = o && a, l = be(s), c = be(a); + Oa(() => { !c.current && a && (l.current = s), c.current = a; }, [a, s]); - const u = q(() => { + const u = G(() => { if (!(!a || !i || !l.current) && (l.current = !1, !i.contains(document.activeElement))) if (r != null && r.current) requestAnimationFrame(() => { @@ -18606,31 +18648,31 @@ function VV(e, t = mN) { (d = r.current) == null || d.focus({ preventScroll: n }); }); else { - const d = Qb(i); + const d = ty(i); d.length > 0 && requestAnimationFrame(() => { d[0].focus({ preventScroll: n }); }); } }, [a, n, i, r]); - Mo(() => { + Fo(() => { u(); - }, [u]), va(i, "transitionend", u); + }, [u]), ba(i, "transitionend", u); } -function vN(e) { +function SN(e) { return "current" in e; } -var Gn = (e, t) => ({ +var Zn = (e, t) => ({ var: e, varRef: t ? `var(${e}, ${t})` : `var(${e})` -}), kt = { - arrowShadowColor: Gn("--popper-arrow-shadow-color"), - arrowSize: Gn("--popper-arrow-size", "8px"), - arrowSizeHalf: Gn("--popper-arrow-size-half"), - arrowBg: Gn("--popper-arrow-bg"), - transformOrigin: Gn("--popper-transform-origin"), - arrowOffset: Gn("--popper-arrow-offset") +}), Et = { + arrowShadowColor: Zn("--popper-arrow-shadow-color"), + arrowSize: Zn("--popper-arrow-size", "8px"), + arrowSizeHalf: Zn("--popper-arrow-size-half"), + arrowBg: Zn("--popper-arrow-bg"), + transformOrigin: Zn("--popper-transform-origin"), + arrowOffset: Zn("--popper-arrow-offset") }; -function gN(e) { +function wN(e) { if (e.includes("top")) return "1px 1px 0px 0 var(--popper-arrow-shadow-color)"; if (e.includes("bottom")) @@ -18640,7 +18682,7 @@ function gN(e) { if (e.includes("left")) return "1px -1px 0px 0 var(--popper-arrow-shadow-color)"; } -var bN = { +var CN = { top: "bottom center", "top-start": "bottom left", "top-end": "bottom right", @@ -18653,21 +18695,21 @@ var bN = { right: "left center", "right-start": "left top", "right-end": "left bottom" -}, yN = (e) => bN[e], Gh = { +}, _N = (e) => CN[e], Xh = { scroll: !0, resize: !0 }; -function xN(e) { +function kN(e) { let t; return typeof e == "object" ? t = { enabled: !0, - options: { ...Gh, ...e } + options: { ...Xh, ...e } } : t = { enabled: e, - options: Gh + options: Xh }, t; } -var SN = { +var EN = { name: "matchWidth", enabled: !0, phase: "beforeWrite", @@ -18679,68 +18721,68 @@ var SN = { const t = e.elements.reference; e.elements.popper.style.width = `${t.offsetWidth}px`; } -}, wN = { +}, PN = { name: "transformOrigin", enabled: !0, phase: "write", fn: ({ state: e }) => { - Xh(e); + Kh(e); }, effect: ({ state: e }) => () => { - Xh(e); + Kh(e); } -}, Xh = (e) => { +}, Kh = (e) => { e.elements.popper.style.setProperty( - kt.transformOrigin.var, - yN(e.placement) + Et.transformOrigin.var, + _N(e.placement) ); -}, CN = { +}, TN = { name: "positionArrow", enabled: !0, phase: "afterWrite", fn: ({ state: e }) => { - _N(e); + AN(e); } -}, _N = (e) => { +}, AN = (e) => { var t; if (!e.placement) return; - const r = kN(e.placement); + const r = ON(e.placement); if ((t = e.elements) != null && t.arrow && r) { Object.assign(e.elements.arrow.style, { [r.property]: r.value, - width: kt.arrowSize.varRef, - height: kt.arrowSize.varRef, + width: Et.arrowSize.varRef, + height: Et.arrowSize.varRef, zIndex: -1 }); const n = { - [kt.arrowSizeHalf.var]: `calc(${kt.arrowSize.varRef} / 2 - 1px)`, - [kt.arrowOffset.var]: `calc(${kt.arrowSizeHalf.varRef} * -1)` + [Et.arrowSizeHalf.var]: `calc(${Et.arrowSize.varRef} / 2 - 1px)`, + [Et.arrowOffset.var]: `calc(${Et.arrowSizeHalf.varRef} * -1)` }; for (const o in n) e.elements.arrow.style.setProperty(o, n[o]); } -}, kN = (e) => { +}, ON = (e) => { if (e.startsWith("top")) - return { property: "bottom", value: kt.arrowOffset.varRef }; + return { property: "bottom", value: Et.arrowOffset.varRef }; if (e.startsWith("bottom")) - return { property: "top", value: kt.arrowOffset.varRef }; + return { property: "top", value: Et.arrowOffset.varRef }; if (e.startsWith("left")) - return { property: "right", value: kt.arrowOffset.varRef }; + return { property: "right", value: Et.arrowOffset.varRef }; if (e.startsWith("right")) - return { property: "left", value: kt.arrowOffset.varRef }; -}, EN = { + return { property: "left", value: Et.arrowOffset.varRef }; +}, RN = { name: "innerArrow", enabled: !0, phase: "main", requires: ["arrow"], fn: ({ state: e }) => { - Kh(e); + Zh(e); }, effect: ({ state: e }) => () => { - Kh(e); + Zh(e); } -}, Kh = (e) => { +}, Zh = (e) => { if (!e.elements.arrow) return; const t = e.elements.arrow.querySelector( @@ -18748,10 +18790,10 @@ var SN = { ); if (!t) return; - const r = gN(e.placement); + const r = wN(e.placement); r && t.style.setProperty("--popper-arrow-default-shadow", r), Object.assign(t.style, { transform: "rotate(45deg)", - background: kt.arrowBg.varRef, + background: Et.arrowBg.varRef, top: 0, left: 0, width: "100%", @@ -18760,14 +18802,14 @@ var SN = { zIndex: "inherit", boxShadow: "var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))" }); -}, PN = { +}, $N = { "start-start": { ltr: "left-start", rtl: "right-start" }, "start-end": { ltr: "left-end", rtl: "right-end" }, "end-start": { ltr: "right-start", rtl: "left-start" }, "end-end": { ltr: "right-end", rtl: "left-end" }, start: { ltr: "left", rtl: "right" }, end: { ltr: "right", rtl: "left" } -}, TN = { +}, DN = { "auto-start": "auto-end", "auto-end": "auto-start", "top-start": "top-end", @@ -18775,20 +18817,20 @@ var SN = { "bottom-start": "bottom-end", "bottom-end": "bottom-start" }; -function AN(e, t = "ltr") { +function MN(e, t = "ltr") { var r, n; - const o = ((r = PN[e]) == null ? void 0 : r[t]) || e; - return t === "ltr" ? o : (n = TN[e]) != null ? n : o; -} -var Vt = "top", sr = "bottom", lr = "right", Lt = "left", kd = "auto", ei = [Vt, sr, lr, Lt], Eo = "start", za = "end", ON = "clippingParents", iy = "viewport", Xo = "popper", RN = "reference", Zh = /* @__PURE__ */ ei.reduce(function(e, t) { - return e.concat([t + "-" + Eo, t + "-" + za]); -}, []), sy = /* @__PURE__ */ [].concat(ei, [kd]).reduce(function(e, t) { - return e.concat([t, t + "-" + Eo, t + "-" + za]); -}, []), $N = "beforeRead", DN = "read", MN = "afterRead", IN = "beforeMain", FN = "main", NN = "afterMain", jN = "beforeWrite", BN = "write", zN = "afterWrite", VN = [$N, DN, MN, IN, FN, NN, jN, BN, zN]; -function Ir(e) { + const o = ((r = $N[e]) == null ? void 0 : r[t]) || e; + return t === "ltr" ? o : (n = DN[e]) != null ? n : o; +} +var Lt = "top", lr = "bottom", cr = "right", Wt = "left", kd = "auto", ri = [Lt, lr, cr, Wt], To = "start", La = "end", IN = "clippingParents", ly = "viewport", Zo = "popper", FN = "reference", Jh = /* @__PURE__ */ ri.reduce(function(e, t) { + return e.concat([t + "-" + To, t + "-" + La]); +}, []), cy = /* @__PURE__ */ [].concat(ri, [kd]).reduce(function(e, t) { + return e.concat([t, t + "-" + To, t + "-" + La]); +}, []), NN = "beforeRead", jN = "read", BN = "afterRead", zN = "beforeMain", VN = "main", LN = "afterMain", WN = "beforeWrite", UN = "write", HN = "afterWrite", YN = [NN, jN, BN, zN, VN, LN, WN, UN, HN]; +function Nr(e) { return e ? (e.nodeName || "").toLowerCase() : null; } -function Jt(e) { +function Qt(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { @@ -18797,31 +18839,31 @@ function Jt(e) { } return e; } -function zn(e) { - var t = Jt(e).Element; +function Wn(e) { + var t = Qt(e).Element; return e instanceof t || e instanceof Element; } -function ir(e) { - var t = Jt(e).HTMLElement; +function sr(e) { + var t = Qt(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } function Ed(e) { if (typeof ShadowRoot > "u") return !1; - var t = Jt(e).ShadowRoot; + var t = Qt(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } -function LN(e) { +function GN(e) { var t = e.state; Object.keys(t.elements).forEach(function(r) { var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r]; - !ir(a) || !Ir(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) { + !sr(a) || !Nr(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) { var s = o[i]; s === !1 ? a.removeAttribute(i) : a.setAttribute(i, s === !0 ? "" : s); })); }); } -function WN(e) { +function qN(e) { var t = e.state, r = { popper: { position: t.options.strategy, @@ -18839,38 +18881,38 @@ function WN(e) { var o = t.elements[n], a = t.attributes[n] || {}, i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = i.reduce(function(l, c) { return l[c] = "", l; }, {}); - !ir(o) || !Ir(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) { + !sr(o) || !Nr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) { o.removeAttribute(l); })); }); }; } -const UN = { +const XN = { name: "applyStyles", enabled: !0, phase: "write", - fn: LN, - effect: WN, + fn: GN, + effect: qN, requires: ["computeStyles"] }; -function Mr(e) { +function Fr(e) { return e.split("-")[0]; } -var jn = Math.max, ks = Math.min, Po = Math.round; +var Vn = Math.max, Ps = Math.min, Ao = Math.round; function pu() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) { return t.brand + "/" + t.version; }).join(" ") : navigator.userAgent; } -function ly() { +function uy() { return !/^((?!chrome|android).)*safari/i.test(pu()); } -function To(e, t, r) { +function Oo(e, t, r) { t === void 0 && (t = !1), r === void 0 && (r = !1); var n = e.getBoundingClientRect(), o = 1, a = 1; - t && ir(e) && (o = e.offsetWidth > 0 && Po(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Po(n.height) / e.offsetHeight || 1); - var i = zn(e) ? Jt(e) : window, s = i.visualViewport, l = !ly() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a; + t && sr(e) && (o = e.offsetWidth > 0 && Ao(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ao(n.height) / e.offsetHeight || 1); + var i = Wn(e) ? Qt(e) : window, s = i.visualViewport, l = !uy() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a; return { width: d, height: f, @@ -18883,7 +18925,7 @@ function To(e, t, r) { }; } function Pd(e) { - var t = To(e), r = e.offsetWidth, n = e.offsetHeight; + var t = Oo(e), r = e.offsetWidth, n = e.offsetHeight; return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e.offsetLeft, y: e.offsetTop, @@ -18891,7 +18933,7 @@ function Pd(e) { height: n }; } -function cy(e, t) { +function dy(e, t) { var r = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; @@ -18905,20 +18947,20 @@ function cy(e, t) { } return !1; } -function tn(e) { - return Jt(e).getComputedStyle(e); +function nn(e) { + return Qt(e).getComputedStyle(e); } -function HN(e) { - return ["table", "td", "th"].indexOf(Ir(e)) >= 0; +function KN(e) { + return ["table", "td", "th"].indexOf(Nr(e)) >= 0; } -function wn(e) { - return ((zn(e) ? e.ownerDocument : ( +function _n(e) { + return ((Wn(e) ? e.ownerDocument : ( // $FlowFixMe[prop-missing] e.document )) || window.document).documentElement; } -function Js(e) { - return Ir(e) === "html" ? e : ( +function el(e) { + return Nr(e) === "html" ? e : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] @@ -18926,45 +18968,45 @@ function Js(e) { e.parentNode || // DOM Element detected (Ed(e) ? e.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node - wn(e) + _n(e) ); } -function Jh(e) { - return !ir(e) || // https://github.com/popperjs/popper-core/issues/837 - tn(e).position === "fixed" ? null : e.offsetParent; +function Qh(e) { + return !sr(e) || // https://github.com/popperjs/popper-core/issues/837 + nn(e).position === "fixed" ? null : e.offsetParent; } -function YN(e) { +function ZN(e) { var t = /firefox/i.test(pu()), r = /Trident/i.test(pu()); - if (r && ir(e)) { - var n = tn(e); + if (r && sr(e)) { + var n = nn(e); if (n.position === "fixed") return null; } - var o = Js(e); - for (Ed(o) && (o = o.host); ir(o) && ["html", "body"].indexOf(Ir(o)) < 0; ) { - var a = tn(o); + var o = el(e); + for (Ed(o) && (o = o.host); sr(o) && ["html", "body"].indexOf(Nr(o)) < 0; ) { + var a = nn(o); if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return o; o = o.parentNode; } return null; } -function ti(e) { - for (var t = Jt(e), r = Jh(e); r && HN(r) && tn(r).position === "static"; ) - r = Jh(r); - return r && (Ir(r) === "html" || Ir(r) === "body" && tn(r).position === "static") ? t : r || YN(e) || t; +function ni(e) { + for (var t = Qt(e), r = Qh(e); r && KN(r) && nn(r).position === "static"; ) + r = Qh(r); + return r && (Nr(r) === "html" || Nr(r) === "body" && nn(r).position === "static") ? t : r || ZN(e) || t; } function Td(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } -function ga(e, t, r) { - return jn(e, ks(t, r)); +function ya(e, t, r) { + return Vn(e, Ps(t, r)); } -function qN(e, t, r) { - var n = ga(e, t, r); +function JN(e, t, r) { + var n = ya(e, t, r); return n > r ? r : n; } -function uy() { +function fy() { return { top: 0, right: 0, @@ -18972,56 +19014,56 @@ function uy() { left: 0 }; } -function dy(e) { - return Object.assign({}, uy(), e); +function py(e) { + return Object.assign({}, fy(), e); } -function fy(e, t) { +function hy(e, t) { return t.reduce(function(r, n) { return r[n] = e, r; }, {}); } -var GN = function(t, r) { +var QN = function(t, r) { return t = typeof t == "function" ? t(Object.assign({}, r.rects, { placement: r.placement - })) : t, dy(typeof t != "number" ? t : fy(t, ei)); + })) : t, py(typeof t != "number" ? t : hy(t, ri)); }; -function XN(e) { - var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Mr(r.placement), l = Td(s), c = [Lt, lr].indexOf(s) >= 0, u = c ? "height" : "width"; +function ej(e) { + var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Fr(r.placement), l = Td(s), c = [Wt, cr].indexOf(s) >= 0, u = c ? "height" : "width"; if (!(!a || !i)) { - var d = GN(o.padding, r), f = Pd(a), p = l === "y" ? Vt : Lt, m = l === "y" ? sr : lr, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ti(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, k = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = ga(k, M, w), I = l; + var d = QN(o.padding, r), f = Pd(a), p = l === "y" ? Lt : Wt, m = l === "y" ? lr : cr, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ni(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, k = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = ya(k, M, w), I = l; r.modifiersData[n] = (t = {}, t[I] = P, t.centerOffset = P - M, t); } } -function KN(e) { +function tj(e) { var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n; - o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || cy(t.elements.popper, o) && (t.elements.arrow = o)); + o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || dy(t.elements.popper, o) && (t.elements.arrow = o)); } -const ZN = { +const rj = { name: "arrow", enabled: !0, phase: "main", - fn: XN, - effect: KN, + fn: ej, + effect: tj, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; -function Ao(e) { +function Ro(e) { return e.split("-")[1]; } -var JN = { +var nj = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; -function QN(e, t) { +function oj(e, t) { var r = e.x, n = e.y, o = t.devicePixelRatio || 1; return { - x: Po(r * o) / o || 0, - y: Po(n * o) / o || 0 + x: Ao(r * o) / o || 0, + y: Ao(n * o) / o || 0 }; } -function Qh(e) { +function em(e) { var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, c = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = i.x, p = f === void 0 ? 0 : f, m = i.y, h = m === void 0 ? 0 : m, v = typeof u == "function" ? u({ x: p, y: h @@ -19030,19 +19072,19 @@ function Qh(e) { y: h }; p = v.x, h = v.y; - var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Lt, k = Vt, w = window; + var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Wt, k = Lt, w = window; if (c) { - var M = ti(r), P = "clientHeight", I = "clientWidth"; - if (M === Jt(r) && (M = wn(r), tn(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Vt || (o === Lt || o === lr) && a === za) { - k = sr; + var M = ni(r), P = "clientHeight", I = "clientWidth"; + if (M === Qt(r) && (M = _n(r), nn(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Lt || (o === Wt || o === cr) && a === La) { + k = lr; var z = d && M === w && w.visualViewport ? w.visualViewport.height : ( // $FlowFixMe[prop-missing] M[P] ); h -= z - n.height, h *= l ? 1 : -1; } - if (o === Lt || (o === Vt || o === sr) && a === za) { - S = lr; + if (o === Wt || (o === Lt || o === lr) && a === La) { + S = cr; var j = d && M === w && w.visualViewport ? w.visualViewport.width : ( // $FlowFixMe[prop-missing] M[I] @@ -19052,10 +19094,10 @@ function Qh(e) { } var X = Object.assign({ position: s - }, c && JN), ne = u === !0 ? QN({ + }, c && nj), ne = u === !0 ? oj({ x: p, y: h - }, Jt(r)) : { + }, Qt(r)) : { x: p, y: h }; @@ -19065,21 +19107,21 @@ function Qh(e) { } return Object.assign({}, X, (t = {}, t[k] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t)); } -function ej(e) { +function aj(e) { var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, i = a === void 0 ? !0 : a, s = r.roundOffsets, l = s === void 0 ? !0 : s, c = { - placement: Mr(t.placement), - variation: Ao(t.placement), + placement: Fr(t.placement), + variation: Ro(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed" }; - t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Qh(Object.assign({}, c, { + t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, em(Object.assign({}, c, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: l - })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Qh(Object.assign({}, c, { + })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, em(Object.assign({}, c, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, @@ -19088,70 +19130,70 @@ function ej(e) { "data-popper-placement": t.placement }); } -const tj = { +const ij = { name: "computeStyles", enabled: !0, phase: "beforeWrite", - fn: ej, + fn: aj, data: {} }; -var Ei = { +var Ti = { passive: !0 }; -function rj(e) { - var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, s = i === void 0 ? !0 : i, l = Jt(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper); +function sj(e) { + var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, s = i === void 0 ? !0 : i, l = Qt(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper); return a && c.forEach(function(u) { - u.addEventListener("scroll", r.update, Ei); - }), s && l.addEventListener("resize", r.update, Ei), function() { + u.addEventListener("scroll", r.update, Ti); + }), s && l.addEventListener("resize", r.update, Ti), function() { a && c.forEach(function(u) { - u.removeEventListener("scroll", r.update, Ei); - }), s && l.removeEventListener("resize", r.update, Ei); + u.removeEventListener("scroll", r.update, Ti); + }), s && l.removeEventListener("resize", r.update, Ti); }; } -const nj = { +const lj = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, - effect: rj, + effect: sj, data: {} }; -var oj = { +var cj = { left: "right", right: "left", bottom: "top", top: "bottom" }; -function Gi(e) { +function Ki(e) { return e.replace(/left|right|bottom|top/g, function(t) { - return oj[t]; + return cj[t]; }); } -var aj = { +var uj = { start: "end", end: "start" }; -function em(e) { +function tm(e) { return e.replace(/start|end/g, function(t) { - return aj[t]; + return uj[t]; }); } function Ad(e) { - var t = Jt(e), r = t.pageXOffset, n = t.pageYOffset; + var t = Qt(e), r = t.pageXOffset, n = t.pageYOffset; return { scrollLeft: r, scrollTop: n }; } function Od(e) { - return To(wn(e)).left + Ad(e).scrollLeft; + return Oo(_n(e)).left + Ad(e).scrollLeft; } -function ij(e, t) { - var r = Jt(e), n = wn(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0; +function dj(e, t) { + var r = Qt(e), n = _n(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0; if (o) { a = o.width, i = o.height; - var c = ly(); + var c = uy(); (c || !c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop); } return { @@ -19161,9 +19203,9 @@ function ij(e, t) { y: l }; } -function sj(e) { - var t, r = wn(e), n = Ad(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = jn(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = jn(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Od(e), l = -n.scrollTop; - return tn(o || r).direction === "rtl" && (s += jn(r.clientWidth, o ? o.clientWidth : 0) - a), { +function fj(e) { + var t, r = _n(e), n = Ad(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Vn(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = Vn(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Od(e), l = -n.scrollTop; + return nn(o || r).direction === "rtl" && (s += Vn(r.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: i, x: s, @@ -19171,19 +19213,19 @@ function sj(e) { }; } function Rd(e) { - var t = tn(e), r = t.overflow, n = t.overflowX, o = t.overflowY; + var t = nn(e), r = t.overflow, n = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(r + o + n); } -function py(e) { - return ["html", "body", "#document"].indexOf(Ir(e)) >= 0 ? e.ownerDocument.body : ir(e) && Rd(e) ? e : py(Js(e)); +function my(e) { + return ["html", "body", "#document"].indexOf(Nr(e)) >= 0 ? e.ownerDocument.body : sr(e) && Rd(e) ? e : my(el(e)); } -function ba(e, t) { +function xa(e, t) { var r; t === void 0 && (t = []); - var n = py(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Jt(n), i = o ? [a].concat(a.visualViewport || [], Rd(n) ? n : []) : n, s = t.concat(i); + var n = my(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Qt(n), i = o ? [a].concat(a.visualViewport || [], Rd(n) ? n : []) : n, s = t.concat(i); return o ? s : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - s.concat(ba(Js(i))) + s.concat(xa(el(i))) ); } function hu(e) { @@ -19194,48 +19236,48 @@ function hu(e) { bottom: e.y + e.height }); } -function lj(e, t) { - var r = To(e, !1, t === "fixed"); +function pj(e, t) { + var r = Oo(e, !1, t === "fixed"); return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r; } -function tm(e, t, r) { - return t === iy ? hu(ij(e, r)) : zn(t) ? lj(t, r) : hu(sj(wn(e))); +function rm(e, t, r) { + return t === ly ? hu(dj(e, r)) : Wn(t) ? pj(t, r) : hu(fj(_n(e))); } -function cj(e) { - var t = ba(Js(e)), r = ["absolute", "fixed"].indexOf(tn(e).position) >= 0, n = r && ir(e) ? ti(e) : e; - return zn(n) ? t.filter(function(o) { - return zn(o) && cy(o, n) && Ir(o) !== "body"; +function hj(e) { + var t = xa(el(e)), r = ["absolute", "fixed"].indexOf(nn(e).position) >= 0, n = r && sr(e) ? ni(e) : e; + return Wn(n) ? t.filter(function(o) { + return Wn(o) && dy(o, n) && Nr(o) !== "body"; }) : []; } -function uj(e, t, r, n) { - var o = t === "clippingParents" ? cj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) { - var u = tm(e, c, n); - return l.top = jn(u.top, l.top), l.right = ks(u.right, l.right), l.bottom = ks(u.bottom, l.bottom), l.left = jn(u.left, l.left), l; - }, tm(e, i, n)); +function mj(e, t, r, n) { + var o = t === "clippingParents" ? hj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) { + var u = rm(e, c, n); + return l.top = Vn(u.top, l.top), l.right = Ps(u.right, l.right), l.bottom = Ps(u.bottom, l.bottom), l.left = Vn(u.left, l.left), l; + }, rm(e, i, n)); return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s; } -function hy(e) { - var t = e.reference, r = e.element, n = e.placement, o = n ? Mr(n) : null, a = n ? Ao(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l; +function vy(e) { + var t = e.reference, r = e.element, n = e.placement, o = n ? Fr(n) : null, a = n ? Ro(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l; switch (o) { - case Vt: + case Lt: l = { x: i, y: t.y - r.height }; break; - case sr: + case lr: l = { x: i, y: t.y + t.height }; break; - case lr: + case cr: l = { x: t.x + t.width, y: s }; break; - case Lt: + case Wt: l = { x: t.x - r.width, y: s @@ -19251,69 +19293,69 @@ function hy(e) { if (c != null) { var u = c === "y" ? "height" : "width"; switch (a) { - case Eo: + case To: l[c] = l[c] - (t[u] / 2 - r[u] / 2); break; - case za: + case La: l[c] = l[c] + (t[u] / 2 - r[u] / 2); break; } } return l; } -function Va(e, t) { +function Wa(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? ON : s, c = r.rootBoundary, u = c === void 0 ? iy : c, d = r.elementContext, f = d === void 0 ? Xo : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = dy(typeof v != "number" ? v : fy(v, ei)), y = f === Xo ? RN : Xo, S = e.rects.popper, k = e.elements[m ? y : f], w = uj(zn(k) ? k : k.contextElement || wn(e.elements.popper), l, u, i), M = To(e.elements.reference), P = hy({ + var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? IN : s, c = r.rootBoundary, u = c === void 0 ? ly : c, d = r.elementContext, f = d === void 0 ? Zo : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = py(typeof v != "number" ? v : hy(v, ri)), y = f === Zo ? FN : Zo, S = e.rects.popper, k = e.elements[m ? y : f], w = mj(Wn(k) ? k : k.contextElement || _n(e.elements.popper), l, u, i), M = Oo(e.elements.reference), P = vy({ reference: M, element: S, strategy: "absolute", placement: o - }), I = hu(Object.assign({}, S, P)), z = f === Xo ? I : M, j = { + }), I = hu(Object.assign({}, S, P)), z = f === Zo ? I : M, j = { top: w.top - z.top + b.top, bottom: z.bottom - w.bottom + b.bottom, left: w.left - z.left + b.left, right: z.right - w.right + b.right }, X = e.modifiersData.offset; - if (f === Xo && X) { + if (f === Zo && X) { var ne = X[o]; Object.keys(j).forEach(function(J) { - var Q = [lr, sr].indexOf(J) >= 0 ? 1 : -1, ee = [Vt, sr].indexOf(J) >= 0 ? "y" : "x"; + var Q = [cr, lr].indexOf(J) >= 0 ? 1 : -1, ee = [Lt, lr].indexOf(J) >= 0 ? "y" : "x"; j[J] += ne[ee] * Q; }); } return j; } -function dj(e, t) { +function vj(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? sy : l, u = Ao(n), d = u ? s ? Zh : Zh.filter(function(m) { - return Ao(m) === u; - }) : ei, f = d.filter(function(m) { + var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? cy : l, u = Ro(n), d = u ? s ? Jh : Jh.filter(function(m) { + return Ro(m) === u; + }) : ri, f = d.filter(function(m) { return c.indexOf(m) >= 0; }); f.length === 0 && (f = d); var p = f.reduce(function(m, h) { - return m[h] = Va(e, { + return m[h] = Wa(e, { placement: h, boundary: o, rootBoundary: a, padding: i - })[Mr(h)], m; + })[Fr(h)], m; }, {}); return Object.keys(p).sort(function(m, h) { return p[m] - p[h]; }); } -function fj(e) { - if (Mr(e) === kd) +function gj(e) { + if (Fr(e) === kd) return []; - var t = Gi(e); - return [em(e), t, em(t)]; + var t = Ki(e); + return [tm(e), t, tm(t)]; } -function pj(e) { +function bj(e) { var t = e.state, r = e.options, n = e.name; if (!t.modifiersData[n]._skip) { - for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Mr(v), y = b === v, S = l || (y || !m ? [Gi(v)] : fj(v)), k = [v].concat(S).reduce(function(O, B) { - return O.concat(Mr(B) === kd ? dj(t, { + for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Fr(v), y = b === v, S = l || (y || !m ? [Ki(v)] : gj(v)), k = [v].concat(S).reduce(function(O, B) { + return O.concat(Fr(B) === kd ? vj(t, { placement: B, boundary: u, rootBoundary: d, @@ -19322,15 +19364,15 @@ function pj(e) { allowedAutoPlacements: h }) : B); }, []), w = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), I = !0, z = k[0], j = 0; j < k.length; j++) { - var X = k[j], ne = Mr(X), J = Ao(X) === Eo, Q = [Vt, sr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Va(t, { + var X = k[j], ne = Fr(X), J = Ro(X) === To, Q = [Lt, lr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Wa(t, { placement: X, boundary: u, rootBoundary: d, altBoundary: f, padding: c - }), D = Q ? J ? lr : Lt : J ? sr : Vt; - w[ee] > M[ee] && (D = Gi(D)); - var ce = Gi(D), de = []; + }), D = Q ? J ? cr : Wt : J ? lr : Lt; + w[ee] > M[ee] && (D = Ki(D)); + var ce = Ki(D), de = []; if (a && de.push(oe[ne] <= 0), s && de.push(oe[D] <= 0, oe[ce] <= 0), de.every(function(O) { return O; })) { @@ -19358,17 +19400,17 @@ function pj(e) { t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0); } } -const hj = { +const yj = { name: "flip", enabled: !0, phase: "main", - fn: pj, + fn: bj, requiresIfExists: ["offset"], data: { _skip: !1 } }; -function rm(e, t, r) { +function nm(e, t, r) { return r === void 0 && (r = { x: 0, y: 0 @@ -19379,17 +19421,17 @@ function rm(e, t, r) { left: e.left - t.width - r.x }; } -function nm(e) { - return [Vt, lr, sr, Lt].some(function(t) { +function om(e) { + return [Lt, cr, lr, Wt].some(function(t) { return e[t] >= 0; }); } -function mj(e) { - var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Va(t, { +function xj(e) { + var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Wa(t, { elementContext: "reference" - }), s = Va(t, { + }), s = Wa(t, { altBoundary: !0 - }), l = rm(i, n), c = rm(s, o, a), u = nm(l), d = nm(c); + }), l = nm(i, n), c = nm(s, o, a), u = om(l), d = om(c); t.modifiersData[r] = { referenceClippingOffsets: l, popperEscapeOffsets: c, @@ -19400,18 +19442,18 @@ function mj(e) { "data-popper-escaped": d }); } -const vj = { +const Sj = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], - fn: mj + fn: xj }; -function gj(e, t, r) { - var n = Mr(e), o = [Lt, Vt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { +function wj(e, t, r) { + var n = Fr(e), o = [Wt, Lt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : r, i = a[0], s = a[1]; - return i = i || 0, s = (s || 0) * o, [Lt, lr].indexOf(n) >= 0 ? { + return i = i || 0, s = (s || 0) * o, [Wt, cr].indexOf(n) >= 0 ? { x: s, y: i } : { @@ -19419,45 +19461,45 @@ function gj(e, t, r) { y: s }; } -function bj(e) { - var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = sy.reduce(function(u, d) { - return u[d] = gj(d, t.rects, a), u; +function Cj(e) { + var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = cy.reduce(function(u, d) { + return u[d] = wj(d, t.rects, a), u; }, {}), s = i[t.placement], l = s.x, c = s.y; t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = i; } -const yj = { +const _j = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], - fn: bj + fn: Cj }; -function xj(e) { +function kj(e) { var t = e.state, r = e.name; - t.modifiersData[r] = hy({ + t.modifiersData[r] = vy({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }); } -const Sj = { +const Ej = { name: "popperOffsets", enabled: !0, phase: "read", - fn: xj, + fn: kj, data: {} }; -function wj(e) { +function Pj(e) { return e === "x" ? "y" : "x"; } -function Cj(e) { - var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !1 : i, l = r.boundary, c = r.rootBoundary, u = r.altBoundary, d = r.padding, f = r.tether, p = f === void 0 ? !0 : f, m = r.tetherOffset, h = m === void 0 ? 0 : m, v = Va(t, { +function Tj(e) { + var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !1 : i, l = r.boundary, c = r.rootBoundary, u = r.altBoundary, d = r.padding, f = r.tether, p = f === void 0 ? !0 : f, m = r.tetherOffset, h = m === void 0 ? 0 : m, v = Wa(t, { boundary: l, rootBoundary: c, padding: d, altBoundary: u - }), b = Mr(t.placement), y = Ao(t.placement), S = !y, k = Td(b), w = wj(k), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, { + }), b = Fr(t.placement), y = Ro(t.placement), S = !y, k = Td(b), w = Pj(k), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, j = typeof z == "number" ? { mainAxis: z, @@ -19471,57 +19513,57 @@ function Cj(e) { }; if (M) { if (a) { - var J, Q = k === "y" ? Vt : Lt, ee = k === "y" ? sr : lr, oe = k === "y" ? "height" : "width", D = M[k], ce = D + v[Q], de = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === Eo ? P[oe] : I[oe], V = y === Eo ? -I[oe] : -P[oe], T = t.elements.arrow, O = p && T ? Pd(T) : { + var J, Q = k === "y" ? Lt : Wt, ee = k === "y" ? lr : cr, oe = k === "y" ? "height" : "width", D = M[k], ce = D + v[Q], de = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === To ? P[oe] : I[oe], V = y === To ? -I[oe] : -P[oe], T = t.elements.arrow, O = p && T ? Pd(T) : { width: 0, height: 0 - }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : uy(), C = B[Q], H = B[ee], A = ga(0, P[oe], O[oe]), Z = S ? P[oe] / 2 - F - A - C - j.mainAxis : N - A - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + A + H + j.mainAxis : V + A + H + j.mainAxis, ae = t.elements.arrow && ti(t.elements.arrow), R = ae ? k === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[k]) != null ? J : 0, pe = D + Z - Se - R, le = D + Y - Se, $e = ga(p ? ks(ce, pe) : ce, D, p ? jn(de, le) : de); + }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : fy(), C = B[Q], H = B[ee], A = ya(0, P[oe], O[oe]), Z = S ? P[oe] / 2 - F - A - C - j.mainAxis : N - A - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + A + H + j.mainAxis : V + A + H + j.mainAxis, ae = t.elements.arrow && ni(t.elements.arrow), R = ae ? k === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[k]) != null ? J : 0, pe = D + Z - Se - R, le = D + Y - Se, $e = ya(p ? Ps(ce, pe) : ce, D, p ? Vn(de, le) : de); M[k] = $e, ne[k] = $e - D; } if (s) { - var ye, we = k === "x" ? Vt : Lt, pt = k === "x" ? sr : lr, ke = M[w], ut = w === "y" ? "height" : "width", rt = ke + v[we], Me = ke - v[pt], se = [Vt, Lt].indexOf(b) !== -1, Ae = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, At = se ? rt : ke - P[ut] - I[ut] - Ae + j.altAxis, yt = se ? ke + P[ut] + I[ut] - Ae - j.altAxis : Me, st = p && se ? qN(At, ke, yt) : ga(p ? At : rt, ke, p ? yt : Me); - M[w] = st, ne[w] = st - ke; + var ye, we = k === "x" ? Lt : Wt, ht = k === "x" ? lr : cr, ke = M[w], dt = w === "y" ? "height" : "width", rt = ke + v[we], Me = ke - v[ht], se = [Lt, Wt].indexOf(b) !== -1, Ae = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, Ot = se ? rt : ke - P[dt] - I[dt] - Ae + j.altAxis, xt = se ? ke + P[dt] + I[dt] - Ae - j.altAxis : Me, lt = p && se ? JN(Ot, ke, xt) : ya(p ? Ot : rt, ke, p ? xt : Me); + M[w] = lt, ne[w] = lt - ke; } t.modifiersData[n] = ne; } } -const _j = { +const Aj = { name: "preventOverflow", enabled: !0, phase: "main", - fn: Cj, + fn: Tj, requiresIfExists: ["offset"] }; -function kj(e) { +function Oj(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } -function Ej(e) { - return e === Jt(e) || !ir(e) ? Ad(e) : kj(e); +function Rj(e) { + return e === Qt(e) || !sr(e) ? Ad(e) : Oj(e); } -function Pj(e) { - var t = e.getBoundingClientRect(), r = Po(t.width) / e.offsetWidth || 1, n = Po(t.height) / e.offsetHeight || 1; +function $j(e) { + var t = e.getBoundingClientRect(), r = Ao(t.width) / e.offsetWidth || 1, n = Ao(t.height) / e.offsetHeight || 1; return r !== 1 || n !== 1; } -function Tj(e, t, r) { +function Dj(e, t, r) { r === void 0 && (r = !1); - var n = ir(t), o = ir(t) && Pj(t), a = wn(t), i = To(e, o, r), s = { + var n = sr(t), o = sr(t) && $j(t), a = _n(t), i = Oo(e, o, r), s = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 }; - return (n || !n && !r) && ((Ir(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - Rd(a)) && (s = Ej(t)), ir(t) ? (l = To(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Od(a))), { + return (n || !n && !r) && ((Nr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 + Rd(a)) && (s = Rj(t)), sr(t) ? (l = Oo(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Od(a))), { x: i.left + s.scrollLeft - l.x, y: i.top + s.scrollTop - l.y, width: i.width, height: i.height }; } -function Aj(e) { +function Mj(e) { var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; e.forEach(function(a) { t.set(a.name, a); @@ -19540,15 +19582,15 @@ function Aj(e) { r.has(a.name) || o(a); }), n; } -function Oj(e) { - var t = Aj(e); - return VN.reduce(function(r, n) { +function Ij(e) { + var t = Mj(e); + return YN.reduce(function(r, n) { return r.concat(t.filter(function(o) { return o.phase === n; })); }, []); } -function Rj(e) { +function Fj(e) { var t; return function() { return t || (t = new Promise(function(r) { @@ -19558,7 +19600,7 @@ function Rj(e) { })), t; }; } -function $j(e) { +function Nj(e) { var t = e.reduce(function(r, n) { var o = r[n.name]; return r[n.name] = o ? Object.assign({}, o, n, { @@ -19570,27 +19612,27 @@ function $j(e) { return t[r]; }); } -var om = { +var am = { placement: "bottom", modifiers: [], strategy: "absolute" }; -function am() { +function im() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return !t.some(function(n) { return !(n && typeof n.getBoundingClientRect == "function"); }); } -function Dj(e) { +function jj(e) { e === void 0 && (e = {}); - var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? om : o; + var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? am : o; return function(s, l, c) { c === void 0 && (c = a); var u = { placement: "bottom", orderedModifiers: [], - options: Object.assign({}, om, a), + options: Object.assign({}, am, a), modifiersData: {}, elements: { reference: s, @@ -19603,10 +19645,10 @@ function Dj(e) { setOptions: function(b) { var y = typeof b == "function" ? b(u.options) : b; h(), u.options = Object.assign({}, a, u.options, y), u.scrollParents = { - reference: zn(s) ? ba(s) : s.contextElement ? ba(s.contextElement) : [], - popper: ba(l) + reference: Wn(s) ? xa(s) : s.contextElement ? xa(s.contextElement) : [], + popper: xa(l) }; - var S = Oj($j([].concat(n, u.options.modifiers))); + var S = Ij(Nj([].concat(n, u.options.modifiers))); return u.orderedModifiers = S.filter(function(k) { return k.enabled; }), m(), p.update(); @@ -19619,9 +19661,9 @@ function Dj(e) { forceUpdate: function() { if (!f) { var b = u.elements, y = b.reference, S = b.popper; - if (am(y, S)) { + if (im(y, S)) { u.rects = { - reference: Tj(y, ti(S), u.options.strategy === "fixed"), + reference: Dj(y, ni(S), u.options.strategy === "fixed"), popper: Pd(S) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(j) { return u.modifiersData[j.name] = Object.assign({}, j.data); @@ -19644,7 +19686,7 @@ function Dj(e) { }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) - update: Rj(function() { + update: Fj(function() { return new Promise(function(v) { p.forceUpdate(), v(u); }); @@ -19653,7 +19695,7 @@ function Dj(e) { h(), f = !0; } }; - if (!am(s, l)) + if (!im(s, l)) return p; p.setOptions(c).then(function(v) { !f && c.onFirstUpdate && c.onFirstUpdate(v); @@ -19681,10 +19723,10 @@ function Dj(e) { return p; }; } -var Mj = [nj, Sj, tj, UN, yj, hj, _j, ZN, vj], Ij = /* @__PURE__ */ Dj({ - defaultModifiers: Mj +var Bj = [lj, Ej, ij, XN, _j, yj, Aj, rj, Sj], zj = /* @__PURE__ */ jj({ + defaultModifiers: Bj }); -function my(e = {}) { +function gy(e = {}) { const { enabled: t = !0, modifiers: r, @@ -19699,22 +19741,22 @@ function my(e = {}) { preventOverflow: d = !0, matchWidth: f, direction: p = "ltr" - } = e, m = be(null), h = be(null), v = be(null), b = AN(n, p), y = be(() => { - }), S = q(() => { + } = e, m = be(null), h = be(null), v = be(null), b = MN(n, p), y = be(() => { + }), S = G(() => { var j; - !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = Ij(m.current, h.current, { + !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = zj(m.current, h.current, { placement: b, modifiers: [ - EN, - CN, - wN, + RN, + TN, + PN, { - ...SN, + ...EN, enabled: !!f }, { name: "eventListeners", - ...xN(i) + ...kN(i) }, { name: "arrow", @@ -19758,26 +19800,26 @@ function my(e = {}) { var j; !m.current && !h.current && ((j = v.current) == null || j.destroy(), v.current = null); }, []); - const k = q( + const k = G( (j) => { m.current = j, S(); }, [S] - ), w = q( + ), w = G( (j = {}, X = null) => ({ ...j, - ref: xt(k, X) + ref: St(k, X) }), [k] - ), M = q( + ), M = G( (j) => { h.current = j, S(); }, [S] - ), P = q( + ), P = G( (j = {}, X = null) => ({ ...j, - ref: xt(M, X), + ref: St(M, X), style: { ...j.style, position: o, @@ -19786,15 +19828,15 @@ function my(e = {}) { } }), [o, M, f] - ), I = q((j = {}, X = null) => { + ), I = G((j = {}, X = null) => { const { size: ne, shadowColor: J, bg: Q, style: ee, ...oe } = j; return { ...oe, ref: X, "data-popper-arrow": "", - style: Fj(j) + style: Vj(j) }; - }, []), z = q( + }, []), z = G( (j = {}, X = null) => ({ ...j, ref: X, @@ -19811,7 +19853,7 @@ function my(e = {}) { var j; (j = v.current) == null || j.forceUpdate(); }, - transformOrigin: kt.transformOrigin.varRef, + transformOrigin: Et.transformOrigin.varRef, referenceRef: k, popperRef: M, getPopperProps: P, @@ -19820,21 +19862,21 @@ function my(e = {}) { getReferenceProps: w }; } -function Fj(e) { +function Vj(e) { const { size: t, shadowColor: r, bg: n, style: o } = e, a = { ...o, position: "absolute" }; return t && (a["--popper-arrow-size"] = t), r && (a["--popper-arrow-shadow-color"] = r), n && (a["--popper-arrow-bg"] = n), a; } -function vy(e = {}) { +function by(e = {}) { const { onClose: t, onOpen: r, isOpen: n, id: o - } = e, a = Kt(r), i = Kt(t), [s, l] = Ye(e.defaultIsOpen || !1), c = n !== void 0 ? n : s, u = n !== void 0, d = wr(), f = o ?? `disclosure-${d}`, p = q(() => { + } = e, a = Zt(r), i = Zt(t), [s, l] = Ye(e.defaultIsOpen || !1), c = n !== void 0 ? n : s, u = n !== void 0, d = _r(), f = o ?? `disclosure-${d}`, p = G(() => { u || l(!1), i == null || i(); - }, [u, i]), m = q(() => { + }, [u, i]), m = G(() => { u || l(!0), a == null || a(); - }, [u, a]), h = q(() => { + }, [u, a]), h = G(() => { c ? p() : m(); }, [c, m, p]); function v(y = {}) { @@ -19865,8 +19907,8 @@ function vy(e = {}) { getDisclosureProps: b }; } -function Nj(e) { - const { ref: t, handler: r, enabled: n = !0 } = e, o = Kt(r), i = be({ +function Lj(e) { + const { ref: t, handler: r, enabled: n = !0 } = e, o = Zt(r), i = be({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 }).current; @@ -19874,35 +19916,35 @@ function Nj(e) { if (!n) return; const s = (d) => { - fc(d, t) && (i.isPointerDown = !0); + pc(d, t) && (i.isPointerDown = !0); }, l = (d) => { if (i.ignoreEmulatedMouseEvents) { i.ignoreEmulatedMouseEvents = !1; return; } - i.isPointerDown && r && fc(d, t) && (i.isPointerDown = !1, o(d)); + i.isPointerDown && r && pc(d, t) && (i.isPointerDown = !1, o(d)); }, c = (d) => { - i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && fc(d, t) && (i.isPointerDown = !1, o(d)); - }, u = gy(t.current); + i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && pc(d, t) && (i.isPointerDown = !1, o(d)); + }, u = yy(t.current); return u.addEventListener("mousedown", s, !0), u.addEventListener("mouseup", l, !0), u.addEventListener("touchstart", s, !0), u.addEventListener("touchend", c, !0), () => { u.removeEventListener("mousedown", s, !0), u.removeEventListener("mouseup", l, !0), u.removeEventListener("touchstart", s, !0), u.removeEventListener("touchend", c, !0); }; }, [r, t, o, i, n]); } -function fc(e, t) { +function pc(e, t) { var r; const n = e.target; - return n && !gy(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n)); + return n && !yy(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n)); } -function gy(e) { +function yy(e) { var t; return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; } -function jj(e) { +function Wj(e) { const { isOpen: t, ref: r } = e, [n, o] = Ye(t), [a, i] = Ye(!1); return Fe(() => { a || (o(t), i(!0)); - }, [t, a, n]), va( + }, [t, a, n]), ba( () => r.current, "animationend", () => { @@ -19912,36 +19954,36 @@ function jj(e) { present: !(t ? !1 : !n), onComplete() { var l; - const c = z5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 }); + const c = H5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 }); (l = r.current) == null || l.dispatchEvent(u); } }; } -function Bj(e) { +function Uj(e) { const { wasSelected: t, enabled: r, isSelected: n, mode: o = "unmount" } = e; return !!(!r || n || o === "keepMounted" && t); } var [ - zj, - Vj, - Lj, - Wj -] = cF(), [Uj, No] = It({ + Hj, + Yj, + Gj, + qj +] = hF(), [Xj, Bo] = Ft({ strict: !1, name: "MenuContext" }); -function Hj(e, ...t) { - const r = wr(), n = e || r; - return vt(() => t.map((o) => `${o}-${n}`), [n, t]); +function Kj(e, ...t) { + const r = _r(), n = e || r; + return gt(() => t.map((o) => `${o}-${n}`), [n, t]); } -function by(e) { +function xy(e) { var t; return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; } -function im(e) { - return by(e).activeElement === e; +function sm(e) { + return xy(e).activeElement === e; } -function Yj(e = {}) { +function Zj(e = {}) { const { id: t, closeOnSelect: r = !0, @@ -19958,12 +20000,12 @@ function Yj(e = {}) { direction: p, computePositionOnMount: m = !1, ...h - } = e, v = be(null), b = be(null), y = Lj(), S = q(() => { + } = e, v = be(null), b = be(null), y = Gj(), S = G(() => { requestAnimationFrame(() => { var T; (T = v.current) == null || T.focus({ preventScroll: !1 }); }); - }, []), k = q(() => { + }, []), k = G(() => { const T = setTimeout(() => { var O; if (o) @@ -19974,21 +20016,21 @@ function Yj(e = {}) { } }); ce.current.add(T); - }, [y, o]), w = q(() => { + }, [y, o]), w = G(() => { const T = setTimeout(() => { const O = y.lastEnabled(); O && J(O.index); }); ce.current.add(T); - }, [y]), M = q(() => { + }, [y]), M = G(() => { u == null || u(), a ? k() : S(); - }, [a, k, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = vy({ + }, [a, k, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = by({ isOpen: s, defaultIsOpen: l, onClose: c, onOpen: M }); - Nj({ + Lj({ enabled: P && n, ref: v, handler: (T) => { @@ -19996,32 +20038,32 @@ function Yj(e = {}) { (O = b.current) != null && O.contains(T.target) || z(); } }); - const X = my({ + const X = gy({ ...h, enabled: P || m, placement: d, direction: p }), [ne, J] = Ye(-1); - Mo(() => { + Fo(() => { P || J(-1); - }, [P]), hN(v, { + }, [P]), yN(v, { focusRef: b, visible: P, shouldFocus: !0 }); - const Q = jj({ isOpen: P, ref: v }), [ee, oe] = Hj(t, "menu-button", "menu-list"), D = q(() => { + const Q = Wj({ isOpen: P, ref: v }), [ee, oe] = Kj(t, "menu-button", "menu-list"), D = G(() => { I(), S(); }, [I, S]), ce = be(/* @__PURE__ */ new Set([])); - Jj(() => { + nB(() => { ce.current.forEach((T) => clearTimeout(T)), ce.current.clear(); }); - const de = q(() => { + const de = G(() => { I(), k(); - }, [k, I]), F = q(() => { + }, [k, I]), F = G(() => { I(), w(); - }, [I, w]), N = q(() => { + }, [I, w]), N = G(() => { var T, O; - const B = by(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement); + const B = xy(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement); if (!(P && !C)) return; const A = (O = y.item(ne)) == null ? void 0 : O.node; @@ -20056,8 +20098,8 @@ function Yj(e = {}) { rafId: V }; } -function qj(e = {}, t = null) { - const r = No(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = q( +function Jj(e = {}, t = null) { + const r = Bo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = G( (l) => { const c = l.key, d = { Enter: a, @@ -20070,22 +20112,22 @@ function qj(e = {}, t = null) { ); return { ...e, - ref: xt(r.buttonRef, t, o.referenceRef), + ref: St(r.buttonRef, t, o.referenceRef), id: r.buttonId, - "data-active": eo(r.isOpen), + "data-active": ro(r.isOpen), "aria-expanded": r.isOpen, "aria-haspopup": "menu", "aria-controls": r.menuId, - onClick: Rt(e.onClick, n), - onKeyDown: Rt(e.onKeyDown, s) + onClick: $t(e.onClick, n), + onKeyDown: $t(e.onKeyDown, s) }; } function mu(e) { var t; - return Kj(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")); + return tB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")); } -function Gj(e = {}, t = null) { - const r = No(); +function Qj(e = {}, t = null) { + const r = Bo(); if (!r) throw new Error( "useMenuContext: context is undefined. Seems you forgot to wrap component within " @@ -20100,9 +20142,9 @@ function Gj(e = {}, t = null) { isLazy: c, lazyBehavior: u, unstable__animationState: d - } = r, f = Vj(), p = cN({ + } = r, f = Yj(), p = hN({ preventDefault: (b) => b.key !== " " && mu(b.target) - }), m = q( + }), m = G( (b) => { if (!b.currentTarget.contains(b.target)) return; @@ -20123,7 +20165,7 @@ function Gj(e = {}, t = null) { return; } const w = p((M) => { - const P = uN( + const P = mN( f.values(), M, (I) => { @@ -20148,7 +20190,7 @@ function Gj(e = {}, t = null) { ] ), h = be(!1); i && (h.current = !0); - const v = Bj({ + const v = Uj({ wasSelected: h.current, enabled: c, mode: u, @@ -20156,7 +20198,7 @@ function Gj(e = {}, t = null) { }); return { ...e, - ref: xt(a, t), + ref: St(a, t), children: v ? e.children : null, tabIndex: -1, role: "menu", @@ -20166,11 +20208,11 @@ function Gj(e = {}, t = null) { transformOrigin: "var(--popper-transform-origin)" }, "aria-orientation": "vertical", - onKeyDown: Rt(e.onKeyDown, m) + onKeyDown: $t(e.onKeyDown, m) }; } -function Xj(e = {}) { - const { popper: t, isOpen: r } = No(); +function eB(e = {}) { + const { popper: t, isOpen: r } = Bo(); return t.getPopperProps({ ...e, style: { @@ -20179,7 +20221,7 @@ function Xj(e = {}) { } }); } -function yy(e = {}, t = null) { +function Sy(e = {}, t = null) { const { onMouseEnter: r, onMouseMove: n, @@ -20191,7 +20233,7 @@ function yy(e = {}, t = null) { closeOnSelect: c, type: u, ...d - } = e, f = No(), { + } = e, f = Bo(), { setFocusedIndex: p, focusedIndex: m, closeOnSelect: h, @@ -20200,47 +20242,47 @@ function yy(e = {}, t = null) { isOpen: y, menuId: S, rafId: k - } = f, w = be(null), M = `${S}-menuitem-${wr()}`, { index: P, register: I } = Wj({ + } = f, w = be(null), M = `${S}-menuitem-${_r()}`, { index: P, register: I } = qj({ disabled: s && !l - }), z = q( + }), z = G( (D) => { r == null || r(D), !s && p(P); }, [p, P, s, r] - ), j = q( + ), j = G( (D) => { - n == null || n(D), w.current && !im(w.current) && z(D); + n == null || n(D), w.current && !sm(w.current) && z(D); }, [z, n] - ), X = q( + ), X = G( (D) => { o == null || o(D), !s && p(-1); }, [p, s, o] - ), ne = q( + ), ne = G( (D) => { a == null || a(D), mu(D.currentTarget) && (c ?? h) && v(); }, [v, a, h, c] - ), J = q( + ), J = G( (D) => { i == null || i(D), p(P); }, [p, i, P] ), Q = P === m, ee = s && !l; - Mo(() => { + Fo(() => { y && (Q && !ee && w.current ? (k.current && cancelAnimationFrame(k.current), k.current = requestAnimationFrame(() => { var D; (D = w.current) == null || D.focus(), k.current = null; - })) : b.current && !im(b.current) && b.current.focus({ preventScroll: !0 })); + })) : b.current && !sm(b.current) && b.current.focus({ preventScroll: !0 })); }, [Q, ee, b, y]); - const oe = fN({ + const oe = gN({ onClick: ne, onFocus: J, onMouseEnter: z, onMouseMove: j, onMouseLeave: X, - ref: xt(I, w, t), + ref: St(I, w, t), isDisabled: s, isFocusable: l }); @@ -20253,15 +20295,15 @@ function yy(e = {}, t = null) { tabIndex: Q ? 0 : -1 }; } -function LV(e = {}, t = null) { +function qV(e = {}, t = null) { const { type: r = "radio", isChecked: n, ...o } = e; return { - ...yy(o, t), + ...Sy(o, t), role: `menuitem${r}`, "aria-checked": n }; } -function WV(e = {}) { +function XV(e = {}) { const { children: t, type: r = "radio", @@ -20273,7 +20315,7 @@ function WV(e = {}) { defaultValue: o ?? l, value: n, onChange: a - }), d = q( + }), d = G( (m) => { if (r === "radio" && typeof c == "string" && u(m), r === "checkbox" && Array.isArray(c)) { const h = c.includes(m) ? c.filter((v) => v !== m) : c.concat(m); @@ -20281,14 +20323,14 @@ function WV(e = {}) { } }, [c, u, r] - ), p = db(t).map((m) => { + ), p = pb(t).map((m) => { if (m.type.id !== "MenuItemOption") return m; const h = (b) => { var y, S; d(m.props.value), (S = (y = m.props).onClick) == null || S.call(y, b); }, v = r === "radio" ? m.props.value === c : c.includes(m.props.value); - return La(m, { + return Ua(m, { type: r, onClick: h, isChecked: v @@ -20299,37 +20341,37 @@ function WV(e = {}) { children: p }; } -function UV() { - const { isOpen: e, onClose: t } = No(); +function KV() { + const { isOpen: e, onClose: t } = Bo(); return { isOpen: e, onClose: t }; } -function Kj(e) { +function tB(e) { var t; - if (!Zj(e)) + if (!rB(e)) return !1; const r = (t = e.ownerDocument.defaultView) != null ? t : window; return e instanceof r.HTMLElement; } -function Zj(e) { +function rB(e) { return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; } -function Jj(e, t = []) { +function nB(e, t = []) { return Fe( () => () => e(), t ); } -var [Qj, ri] = It({ +var [oB, oi] = Ft({ name: "MenuStylesContext", errorMessage: `useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), eB = (e) => { - const { children: t } = e, r = Do("Menu", e), n = Fr(e), { direction: o } = nn(), { descendants: a, ...i } = Yj({ ...n, direction: o }), s = vt(() => i, [i]), { isOpen: l, onClose: c, forceUpdate: u } = s; - return /* @__PURE__ */ L.jsx(zj, { value: a, children: /* @__PURE__ */ L.jsx(Uj, { value: s, children: /* @__PURE__ */ L.jsx(Qj, { value: r, children: fn(t, { isOpen: l, onClose: c, forceUpdate: u }) }) }) }); +}), aB = (e) => { + const { children: t } = e, r = Io("Menu", e), n = jr(e), { direction: o } = an(), { descendants: a, ...i } = Zj({ ...n, direction: o }), s = gt(() => i, [i]), { isOpen: l, onClose: c, forceUpdate: u } = s; + return /* @__PURE__ */ L.jsx(Hj, { value: a, children: /* @__PURE__ */ L.jsx(Xj, { value: s, children: /* @__PURE__ */ L.jsx(oB, { value: r, children: hn(t, { isOpen: l, onClose: c, forceUpdate: u }) }) }) }); }; -eB.displayName = "Menu"; -var xy = _e( +aB.displayName = "Menu"; +var wy = _e( (e, t) => { - const r = ri(); + const r = oi(); return /* @__PURE__ */ L.jsx( ge.span, { @@ -20341,10 +20383,10 @@ var xy = _e( ); } ); -xy.displayName = "MenuCommand"; -var tB = _e( +wy.displayName = "MenuCommand"; +var iB = _e( (e, t) => { - const { type: r, ...n } = e, o = ri(), a = n.as || r ? r ?? void 0 : "button", i = vt( + const { type: r, ...n } = e, o = oi(), a = n.as || r ? r ?? void 0 : "button", i = gt( () => ({ textDecoration: "none", color: "inherit", @@ -20361,8 +20403,8 @@ var tB = _e( ); return /* @__PURE__ */ L.jsx(ge.button, { ref: t, type: a, ...n, __css: i }); } -), Sy = (e) => { - const { className: t, children: r, ...n } = e, o = Ps.only(r), a = xu(o) ? La(o, { +), Cy = (e) => { + const { className: t, children: r, ...n } = e, o = As.only(r), a = xu(o) ? Ua(o, { focusable: "false", "aria-hidden": !0, className: Xe("chakra-menu__icon", o.props.className) @@ -20382,8 +20424,8 @@ var tB = _e( } ); }; -Sy.displayName = "MenuIcon"; -var rB = _e((e, t) => { +Cy.displayName = "MenuIcon"; +var sB = _e((e, t) => { const { icon: r, iconSpacing: n = "0.75rem", @@ -20391,22 +20433,22 @@ var rB = _e((e, t) => { commandSpacing: a = "0.75rem", children: i, ...s - } = e, l = yy(s, t), u = r || o ? /* @__PURE__ */ L.jsx("span", { style: { pointerEvents: "none", flex: 1 }, children: i }) : i; + } = e, l = Sy(s, t), u = r || o ? /* @__PURE__ */ L.jsx("span", { style: { pointerEvents: "none", flex: 1 }, children: i }) : i; return /* @__PURE__ */ L.jsxs( - tB, + iB, { ...l, className: Xe("chakra-menu__menuitem", l.className), children: [ - r && /* @__PURE__ */ L.jsx(Sy, { fontSize: "0.8em", marginEnd: n, children: r }), + r && /* @__PURE__ */ L.jsx(Cy, { fontSize: "0.8em", marginEnd: n, children: r }), u, - o && /* @__PURE__ */ L.jsx(xy, { marginStart: a, children: o }) + o && /* @__PURE__ */ L.jsx(wy, { marginStart: a, children: o }) ] } ); }); -rB.displayName = "MenuItem"; -var nB = { +sB.displayName = "MenuItem"; +var lB = { enter: { visibility: "visible", opacity: 1, @@ -20427,22 +20469,22 @@ var nB = { easings: "easeOut" } } -}, oB = ge(Sn.div), aB = _e(function(t, r) { +}, cB = ge(Cn.div), uB = _e(function(t, r) { var n, o; const { rootProps: a, motionProps: i, ...s } = t, { isOpen: l, onTransitionEnd: c, unstable__animationState: u - } = No(), d = Gj(s, r), f = Xj(a), p = ri(); + } = Bo(), d = Qj(s, r), f = eB(a), p = oi(); return /* @__PURE__ */ L.jsx( ge.div, { ...f, __css: { zIndex: (o = t.zIndex) != null ? o : (n = p.list) == null ? void 0 : n.zIndex }, children: /* @__PURE__ */ L.jsx( - oB, + cB, { - variants: nB, + variants: lB, initial: !1, animate: l ? "enter" : "exit", __css: { outline: 0, ...p.list }, @@ -20450,7 +20492,7 @@ var nB = { className: Xe("chakra-menu__menu-list", d.className), ...d, onUpdate: c, - onAnimationComplete: w_( + onAnimationComplete: P_( u.onComplete, d.onAnimationComplete ) @@ -20459,9 +20501,9 @@ var nB = { } ); }); -aB.displayName = "MenuList"; -var iB = _e((e, t) => { - const r = ri(); +uB.displayName = "MenuList"; +var dB = _e((e, t) => { + const r = oi(); return /* @__PURE__ */ L.jsx( ge.button, { @@ -20476,9 +20518,9 @@ var iB = _e((e, t) => { } } ); -}), sB = _e( +}), fB = _e( (e, t) => { - const { children: r, as: n, ...o } = e, a = qj(o, t), i = n || iB; + const { children: r, as: n, ...o } = e, a = Jj(o, t), i = n || dB; return /* @__PURE__ */ L.jsx( i, { @@ -20495,9 +20537,9 @@ var iB = _e((e, t) => { ); } ); -sB.displayName = "MenuButton"; -var lB = (e) => { - const { className: t, ...r } = e, n = ri(); +fB.displayName = "MenuButton"; +var pB = (e) => { + const { className: t, ...r } = e, n = oi(); return /* @__PURE__ */ L.jsx( ge.hr, { @@ -20508,8 +20550,8 @@ var lB = (e) => { } ); }; -lB.displayName = "MenuDivider"; -var cB = { +pB.displayName = "MenuDivider"; +var hB = { slideInBottom: { ...su, custom: { offsetY: 16, reverse: !0 } @@ -20519,20 +20561,20 @@ var cB = { custom: { offsetX: 16, reverse: !0 } }, scale: { - ...cb, + ...db, custom: { initialScale: 0.95, reverse: !0 } }, none: {} -}, uB = ge(Sn.section), dB = (e) => cB[e || "none"], wy = Tt( +}, mB = ge(Cn.section), vB = (e) => hB[e || "none"], _y = At( (e, t) => { - const { preset: r, motionProps: n = dB(r), ...o } = e; - return /* @__PURE__ */ L.jsx(uB, { ref: t, ...n, ...o }); + const { preset: r, motionProps: n = vB(r), ...o } = e; + return /* @__PURE__ */ L.jsx(mB, { ref: t, ...n, ...o }); } ); -wy.displayName = "ModalTransition"; -var fB = Object.defineProperty, pB = (e, t, r) => t in e ? fB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hB = (e, t, r) => (pB(e, typeof t != "symbol" ? t + "" : t, r), r), mB = class { +_y.displayName = "ModalTransition"; +var gB = Object.defineProperty, bB = (e, t, r) => t in e ? gB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yB = (e, t, r) => (bB(e, typeof t != "symbol" ? t + "" : t, r), r), xB = class { constructor() { - hB(this, "modals"), this.modals = /* @__PURE__ */ new Map(); + yB(this, "modals"), this.modals = /* @__PURE__ */ new Map(); } add(e) { return this.modals.set(e, this.modals.size + 1), this.modals.size; @@ -20543,8 +20585,8 @@ var fB = Object.defineProperty, pB = (e, t, r) => t in e ? fB(e, t, { enumerable isTopModal(e) { return e ? this.modals.get(e) === this.modals.size : !1; } -}, vu = new mB(); -function Cy(e, t) { +}, vu = new xB(); +function ky(e, t) { const [r, n] = Ye(0); return Fe(() => { const o = e.current; @@ -20559,26 +20601,26 @@ function Cy(e, t) { } }, [t, e]), r; } -var vB = function(e) { +var SB = function(e) { if (typeof document > "u") return null; var t = Array.isArray(e) ? e[0] : e; return t.ownerDocument.body; -}, Xn = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Ti = {}, pc = 0, _y = function(e) { - return e && (e.host || _y(e.parentNode)); -}, gB = function(e, t) { +}, Jn = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Oi = {}, hc = 0, Ey = function(e) { + return e && (e.host || Ey(e.parentNode)); +}, wB = function(e, t) { return t.map(function(r) { if (e.contains(r)) return r; - var n = _y(r); + var n = Ey(r); return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null); }).filter(function(r) { return !!r; }); -}, bB = function(e, t, r, n) { - var o = gB(t, Array.isArray(e) ? e : [e]); - Ti[r] || (Ti[r] = /* @__PURE__ */ new WeakMap()); - var a = Ti[r], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(d) { +}, CB = function(e, t, r, n) { + var o = wB(t, Array.isArray(e) ? e : [e]); + Oi[r] || (Oi[r] = /* @__PURE__ */ new WeakMap()); + var a = Oi[r], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(d) { !d || s.has(d) || (s.add(d), c(d.parentNode)); }; o.forEach(c); @@ -20587,25 +20629,25 @@ var vB = function(e) { if (s.has(f)) u(f); else { - var p = f.getAttribute(n), m = p !== null && p !== "false", h = (Xn.get(f) || 0) + 1, v = (a.get(f) || 0) + 1; - Xn.set(f, h), a.set(f, v), i.push(f), h === 1 && m && Pi.set(f, !0), v === 1 && f.setAttribute(r, "true"), m || f.setAttribute(n, "true"); + var p = f.getAttribute(n), m = p !== null && p !== "false", h = (Jn.get(f) || 0) + 1, v = (a.get(f) || 0) + 1; + Jn.set(f, h), a.set(f, v), i.push(f), h === 1 && m && Ai.set(f, !0), v === 1 && f.setAttribute(r, "true"), m || f.setAttribute(n, "true"); } }); }; - return u(t), s.clear(), pc++, function() { + return u(t), s.clear(), hc++, function() { i.forEach(function(d) { - var f = Xn.get(d) - 1, p = a.get(d) - 1; - Xn.set(d, f), a.set(d, p), f || (Pi.has(d) || d.removeAttribute(n), Pi.delete(d)), p || d.removeAttribute(r); - }), pc--, pc || (Xn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Ti = {}); + var f = Jn.get(d) - 1, p = a.get(d) - 1; + Jn.set(d, f), a.set(d, p), f || (Ai.has(d) || d.removeAttribute(n), Ai.delete(d)), p || d.removeAttribute(r); + }), hc--, hc || (Jn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Oi = {}); }; -}, yB = function(e, t, r) { +}, _B = function(e, t, r) { r === void 0 && (r = "data-aria-hidden"); - var n = Array.from(Array.isArray(e) ? e : [e]), o = t || vB(e); - return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), bB(n, o, r, "aria-hidden")) : function() { + var n = Array.from(Array.isArray(e) ? e : [e]), o = t || SB(e); + return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), CB(n, o, r, "aria-hidden")) : function() { return null; }; }; -function xB(e) { +function kB(e) { const { isOpen: t, onClose: r, @@ -20615,48 +20657,48 @@ function xB(e) { useInert: i = !0, onOverlayClick: s, onEsc: l - } = e, c = be(null), u = be(null), [d, f, p] = wB( + } = e, c = be(null), u = be(null), [d, f, p] = PB( n, "chakra-modal", "chakra-modal--header", "chakra-modal--body" ); - SB(c, t && i); - const m = Cy(c, t), h = be(null), v = q((z) => { + EB(c, t && i); + const m = ky(c, t), h = be(null), v = G((z) => { h.current = z.target; - }, []), b = q( + }, []), b = G( (z) => { z.key === "Escape" && (z.stopPropagation(), a && (r == null || r()), l == null || l()); }, [a, r, l] - ), [y, S] = Ye(!1), [k, w] = Ye(!1), M = q( + ), [y, S] = Ye(!1), [k, w] = Ye(!1), M = G( (z = {}, j = null) => ({ role: "dialog", ...z, - ref: xt(j, c), + ref: St(j, c), id: d, tabIndex: -1, "aria-modal": !0, "aria-labelledby": y ? f : void 0, "aria-describedby": k ? p : void 0, - onClick: Rt( + onClick: $t( z.onClick, (X) => X.stopPropagation() ) }), [p, k, d, f, y] - ), P = q( + ), P = G( (z) => { z.stopPropagation(), h.current === z.target && vu.isTopModal(c.current) && (o && (r == null || r()), s == null || s()); }, [r, o, s] - ), I = q( + ), I = G( (z = {}, j = null) => ({ ...z, - ref: xt(j, u), - onClick: Rt(z.onClick, P), - onKeyDown: Rt(z.onKeyDown, b), - onMouseDown: Rt(z.onMouseDown, v) + ref: St(j, u), + onClick: $t(z.onClick, P), + onKeyDown: $t(z.onKeyDown, b), + onMouseDown: $t(z.onMouseDown, v) }), [b, v, P] ); @@ -20674,25 +20716,25 @@ function xB(e) { index: m }; } -function SB(e, t) { +function EB(e, t) { const r = e.current; Fe(() => { if (!(!e.current || !t)) - return yB(e.current); + return _B(e.current); }, [t, e, r]); } -function wB(e, ...t) { - const r = wr(), n = e || r; - return vt(() => t.map((o) => `${o}-${n}`), [n, t]); +function PB(e, ...t) { + const r = _r(), n = e || r; + return gt(() => t.map((o) => `${o}-${n}`), [n, t]); } -var [CB, Hn] = It({ +var [TB, qn] = Ft({ name: "ModalStylesContext", errorMessage: `useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [_B, yn] = It({ +}), [AB, Sn] = Ft({ strict: !0, name: "ModalContext", errorMessage: "useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``" -}), ky = (e) => { +}), Py = (e) => { const t = { scrollBehavior: "outside", autoFocus: !0, @@ -20717,8 +20759,8 @@ var [CB, Hn] = It({ motionPreset: f, lockFocusAcrossFrames: p, onCloseComplete: m - } = t, h = Do("Modal", t), b = { - ...xB(t), + } = t, h = Io("Modal", t), b = { + ...kB(t), autoFocus: o, trapFocus: a, initialFocusRef: i, @@ -20730,65 +20772,65 @@ var [CB, Hn] = It({ motionPreset: f, lockFocusAcrossFrames: p }; - return /* @__PURE__ */ L.jsx(_B, { value: b, children: /* @__PURE__ */ L.jsx(CB, { value: h, children: /* @__PURE__ */ L.jsx(Io, { onExitComplete: m, children: b.isOpen && /* @__PURE__ */ L.jsx(Ha, { ...r, children: n }) }) }) }); + return /* @__PURE__ */ L.jsx(AB, { value: b, children: /* @__PURE__ */ L.jsx(TB, { value: h, children: /* @__PURE__ */ L.jsx(No, { onExitComplete: m, children: b.isOpen && /* @__PURE__ */ L.jsx(Ga, { ...r, children: n }) }) }) }); }; -ky.displayName = "Modal"; -var Xi = "right-scroll-bar-position", Ki = "width-before-scroll-bar", kB = "with-scroll-bars-hidden", EB = "--removed-body-scroll-bar-size", Ey = wb(), hc = function() { -}, Qs = U.forwardRef(function(e, t) { +Py.displayName = "Modal"; +var Zi = "right-scroll-bar-position", Ji = "width-before-scroll-bar", OB = "with-scroll-bars-hidden", RB = "--removed-body-scroll-bar-size", Ty = _b(), mc = function() { +}, tl = U.forwardRef(function(e, t) { var r = U.useRef(null), n = U.useState({ - onScrollCapture: hc, - onWheelCapture: hc, - onTouchMoveCapture: hc - }), o = n[0], a = n[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, m = e.inert, h = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, y = e.gapMode, S = yb(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, w = bb([r, t]), M = Or(Or({}, S), o); + onScrollCapture: mc, + onWheelCapture: mc, + onTouchMoveCapture: mc + }), o = n[0], a = n[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, m = e.inert, h = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, y = e.gapMode, S = Sb(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, w = xb([r, t]), M = $r($r({}, S), o); return U.createElement( U.Fragment, null, - u && U.createElement(k, { sideCar: Ey, removeScrollBar: c, shards: d, noIsolation: p, inert: m, setCallbacks: a, allowPinchZoom: !!h, lockRef: r, gapMode: y }), - i ? U.cloneElement(U.Children.only(s), Or(Or({}, M), { ref: w })) : U.createElement(b, Or({}, M, { className: l, ref: w }), s) + u && U.createElement(k, { sideCar: Ty, removeScrollBar: c, shards: d, noIsolation: p, inert: m, setCallbacks: a, allowPinchZoom: !!h, lockRef: r, gapMode: y }), + i ? U.cloneElement(U.Children.only(s), $r($r({}, M), { ref: w })) : U.createElement(b, $r({}, M, { className: l, ref: w }), s) ); }); -Qs.defaultProps = { +tl.defaultProps = { enabled: !0, removeScrollBar: !0, inert: !1 }; -Qs.classNames = { - fullWidth: Ki, - zeroRight: Xi +tl.classNames = { + fullWidth: Ji, + zeroRight: Zi }; -var sm, PB = function() { - if (sm) - return sm; +var lm, $B = function() { + if (lm) + return lm; if (typeof __webpack_nonce__ < "u") return __webpack_nonce__; }; -function TB() { +function DB() { if (!document) return null; var e = document.createElement("style"); e.type = "text/css"; - var t = PB(); + var t = $B(); return t && e.setAttribute("nonce", t), e; } -function AB(e, t) { +function MB(e, t) { e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t)); } -function OB(e) { +function IB(e) { var t = document.head || document.getElementsByTagName("head")[0]; t.appendChild(e); } -var RB = function() { +var FB = function() { var e = 0, t = null; return { add: function(r) { - e == 0 && (t = TB()) && (AB(t, r), OB(t)), e++; + e == 0 && (t = DB()) && (MB(t, r), IB(t)), e++; }, remove: function() { e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null); } }; -}, $B = function() { - var e = RB(); +}, NB = function() { + var e = FB(); return function(t, r) { U.useEffect(function() { return e.add(t), function() { @@ -20796,36 +20838,36 @@ var RB = function() { }; }, [t && r]); }; -}, Py = function() { - var e = $B(), t = function(r) { +}, Ay = function() { + var e = NB(), t = function(r) { var n = r.styles, o = r.dynamic; return e(n, o), null; }; return t; -}, DB = { +}, jB = { left: 0, top: 0, right: 0, gap: 0 -}, mc = function(e) { +}, vc = function(e) { return parseInt(e || "", 10) || 0; -}, MB = function(e) { +}, BB = function(e) { var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"]; - return [mc(r), mc(n), mc(o)]; -}, IB = function(e) { + return [vc(r), vc(n), vc(o)]; +}, zB = function(e) { if (e === void 0 && (e = "margin"), typeof window > "u") - return DB; - var t = MB(e), r = document.documentElement.clientWidth, n = window.innerWidth; + return jB; + var t = BB(e), r = document.documentElement.clientWidth, n = window.innerWidth; return { left: t[0], top: t[1], right: t[2], gap: Math.max(0, n - r + t[2] - t[0]) }; -}, FB = Py(), NB = function(e, t, r, n) { +}, VB = Ay(), LB = function(e, t, r, n) { var o = e.left, a = e.top, i = e.right, s = e.gap; return r === void 0 && (r = "margin"), ` - .`.concat(kB, ` { + .`.concat(OB, ` { overflow: hidden `).concat(n, `; padding-right: `).concat(s, "px ").concat(n, `; } @@ -20846,122 +20888,122 @@ var RB = function() { ].filter(Boolean).join(""), ` } - .`).concat(Xi, ` { + .`).concat(Zi, ` { right: `).concat(s, "px ").concat(n, `; } - .`).concat(Ki, ` { + .`).concat(Ji, ` { margin-right: `).concat(s, "px ").concat(n, `; } - .`).concat(Xi, " .").concat(Xi, ` { + .`).concat(Zi, " .").concat(Zi, ` { right: 0 `).concat(n, `; } - .`).concat(Ki, " .").concat(Ki, ` { + .`).concat(Ji, " .").concat(Ji, ` { margin-right: 0 `).concat(n, `; } body { - `).concat(EB, ": ").concat(s, `px; + `).concat(RB, ": ").concat(s, `px; } `); -}, jB = function(e) { +}, WB = function(e) { var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n, a = U.useMemo(function() { - return IB(o); + return zB(o); }, [o]); - return U.createElement(FB, { styles: NB(a, !t, o, r ? "" : "!important") }); + return U.createElement(VB, { styles: LB(a, !t, o, r ? "" : "!important") }); }, gu = !1; if (typeof window < "u") try { - var Ai = Object.defineProperty({}, "passive", { + var Ri = Object.defineProperty({}, "passive", { get: function() { return gu = !0, !0; } }); - window.addEventListener("test", Ai, Ai), window.removeEventListener("test", Ai, Ai); + window.addEventListener("test", Ri, Ri), window.removeEventListener("test", Ri, Ri); } catch { gu = !1; } -var Kn = gu ? { passive: !1 } : !1, BB = function(e) { +var Qn = gu ? { passive: !1 } : !1, UB = function(e) { return e.tagName === "TEXTAREA"; -}, Ty = function(e, t) { +}, Oy = function(e, t) { var r = window.getComputedStyle(e); return ( // not-not-scrollable r[t] !== "hidden" && // contains scroll inside self - !(r.overflowY === r.overflowX && !BB(e) && r[t] === "visible") + !(r.overflowY === r.overflowX && !UB(e) && r[t] === "visible") ); -}, zB = function(e) { - return Ty(e, "overflowY"); -}, VB = function(e) { - return Ty(e, "overflowX"); -}, lm = function(e, t) { +}, HB = function(e) { + return Oy(e, "overflowY"); +}, YB = function(e) { + return Oy(e, "overflowX"); +}, cm = function(e, t) { var r = t.ownerDocument, n = t; do { typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host); - var o = Ay(e, n); + var o = Ry(e, n); if (o) { - var a = Oy(e, n), i = a[1], s = a[2]; + var a = $y(e, n), i = a[1], s = a[2]; if (i > s) return !0; } n = n.parentNode; } while (n && n !== r.body); return !1; -}, LB = function(e) { +}, GB = function(e) { var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight; return [ t, r, n ]; -}, WB = function(e) { +}, qB = function(e) { var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth; return [ t, r, n ]; -}, Ay = function(e, t) { - return e === "v" ? zB(t) : VB(t); -}, Oy = function(e, t) { - return e === "v" ? LB(t) : WB(t); -}, UB = function(e, t) { +}, Ry = function(e, t) { + return e === "v" ? HB(t) : YB(t); +}, $y = function(e, t) { + return e === "v" ? GB(t) : qB(t); +}, XB = function(e, t) { return e === "h" && t === "rtl" ? -1 : 1; -}, HB = function(e, t, r, n, o) { - var a = UB(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, l = t.contains(s), c = !1, u = i > 0, d = 0, f = 0; +}, KB = function(e, t, r, n, o) { + var a = XB(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, l = t.contains(s), c = !1, u = i > 0, d = 0, f = 0; do { - var p = Oy(e, s), m = p[0], h = p[1], v = p[2], b = h - v - a * m; - (m || b) && Ay(e, s) && (d += b, f += m), s = s.parentNode; + var p = $y(e, s), m = p[0], h = p[1], v = p[2], b = h - v - a * m; + (m || b) && Ry(e, s) && (d += b, f += m), s = s.parentNode; } while ( // portaled content !l && s !== document.body || // self content l && (t.contains(s) || t === s) ); return (u && (o && d === 0 || !o && i > d) || !u && (o && f === 0 || !o && -i > f)) && (c = !0), c; -}, Oi = function(e) { +}, $i = function(e) { return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0]; -}, cm = function(e) { - return [e.deltaX, e.deltaY]; }, um = function(e) { + return [e.deltaX, e.deltaY]; +}, dm = function(e) { return e && "current" in e ? e.current : e; -}, YB = function(e, t) { +}, ZB = function(e, t) { return e[0] === t[0] && e[1] === t[1]; -}, qB = function(e) { +}, JB = function(e) { return ` .block-interactivity-`.concat(e, ` {pointer-events: none;} .allow-interactivity-`).concat(e, ` {pointer-events: all;} `); -}, GB = 0, Zn = []; -function XB(e) { - var t = U.useRef([]), r = U.useRef([0, 0]), n = U.useRef(), o = U.useState(GB++)[0], a = U.useState(Py)[0], i = U.useRef(e); +}, QB = 0, eo = []; +function ez(e) { + var t = U.useRef([]), r = U.useRef([0, 0]), n = U.useRef(), o = U.useState(QB++)[0], a = U.useState(Ay)[0], i = U.useRef(e); U.useEffect(function() { i.current = e; }, [e]), U.useEffect(function() { if (e.inert) { document.body.classList.add("block-interactivity-".concat(o)); - var h = LF([e.lockRef.current], (e.shards || []).map(um), !0).filter(Boolean); + var h = GF([e.lockRef.current], (e.shards || []).map(dm), !0).filter(Boolean); return h.forEach(function(v) { return v.classList.add("allow-interactivity-".concat(o)); }), function() { @@ -20974,30 +21016,30 @@ function XB(e) { var s = U.useCallback(function(h, v) { if ("touches" in h && h.touches.length === 2) return !i.current.allowPinchZoom; - var b = Oi(h), y = r.current, S = "deltaX" in h ? h.deltaX : y[0] - b[0], k = "deltaY" in h ? h.deltaY : y[1] - b[1], w, M = h.target, P = Math.abs(S) > Math.abs(k) ? "h" : "v"; + var b = $i(h), y = r.current, S = "deltaX" in h ? h.deltaX : y[0] - b[0], k = "deltaY" in h ? h.deltaY : y[1] - b[1], w, M = h.target, P = Math.abs(S) > Math.abs(k) ? "h" : "v"; if ("touches" in h && P === "h" && M.type === "range") return !1; - var I = lm(P, M); + var I = cm(P, M); if (!I) return !0; - if (I ? w = P : (w = P === "v" ? "h" : "v", I = lm(P, M)), !I) + if (I ? w = P : (w = P === "v" ? "h" : "v", I = cm(P, M)), !I) return !1; if (!n.current && "changedTouches" in h && (S || k) && (n.current = w), !w) return !0; var z = n.current || w; - return HB(z, v, h, z === "h" ? S : k, !0); + return KB(z, v, h, z === "h" ? S : k, !0); }, []), l = U.useCallback(function(h) { var v = h; - if (!(!Zn.length || Zn[Zn.length - 1] !== a)) { - var b = "deltaY" in v ? cm(v) : Oi(v), y = t.current.filter(function(w) { - return w.name === v.type && w.target === v.target && YB(w.delta, b); + if (!(!eo.length || eo[eo.length - 1] !== a)) { + var b = "deltaY" in v ? um(v) : $i(v), y = t.current.filter(function(w) { + return w.name === v.type && w.target === v.target && ZB(w.delta, b); })[0]; if (y && y.should) { v.cancelable && v.preventDefault(); return; } if (!y) { - var S = (i.current.shards || []).map(um).filter(Boolean).filter(function(w) { + var S = (i.current.shards || []).map(dm).filter(Boolean).filter(function(w) { return w.contains(v.target); }), k = S.length > 0 ? s(v, S[0]) : !i.current.noIsolation; k && v.cancelable && v.preventDefault(); @@ -21011,38 +21053,38 @@ function XB(e) { }); }, 1); }, []), u = U.useCallback(function(h) { - r.current = Oi(h), n.current = void 0; + r.current = $i(h), n.current = void 0; }, []), d = U.useCallback(function(h) { - c(h.type, cm(h), h.target, s(h, e.lockRef.current)); + c(h.type, um(h), h.target, s(h, e.lockRef.current)); }, []), f = U.useCallback(function(h) { - c(h.type, Oi(h), h.target, s(h, e.lockRef.current)); + c(h.type, $i(h), h.target, s(h, e.lockRef.current)); }, []); U.useEffect(function() { - return Zn.push(a), e.setCallbacks({ + return eo.push(a), e.setCallbacks({ onScrollCapture: d, onWheelCapture: d, onTouchMoveCapture: f - }), document.addEventListener("wheel", l, Kn), document.addEventListener("touchmove", l, Kn), document.addEventListener("touchstart", u, Kn), function() { - Zn = Zn.filter(function(h) { + }), document.addEventListener("wheel", l, Qn), document.addEventListener("touchmove", l, Qn), document.addEventListener("touchstart", u, Qn), function() { + eo = eo.filter(function(h) { return h !== a; - }), document.removeEventListener("wheel", l, Kn), document.removeEventListener("touchmove", l, Kn), document.removeEventListener("touchstart", u, Kn); + }), document.removeEventListener("wheel", l, Qn), document.removeEventListener("touchmove", l, Qn), document.removeEventListener("touchstart", u, Qn); }; }, []); var p = e.removeScrollBar, m = e.inert; return U.createElement( U.Fragment, null, - m ? U.createElement(a, { styles: qB(o) }) : null, - p ? U.createElement(jB, { gapMode: e.gapMode }) : null + m ? U.createElement(a, { styles: JB(o) }) : null, + p ? U.createElement(WB, { gapMode: e.gapMode }) : null ); } -const KB = WF(Ey, XB); -var Ry = U.forwardRef(function(e, t) { - return U.createElement(Qs, Or({}, e, { ref: t, sideCar: KB })); +const tz = qF(Ty, ez); +var Dy = U.forwardRef(function(e, t) { + return U.createElement(tl, $r({}, e, { ref: t, sideCar: tz })); }); -Ry.classNames = Qs.classNames; -const ZB = Ry; -function $y(e) { +Dy.classNames = tl.classNames; +const rz = Dy; +function My(e) { const { autoFocus: t, trapFocus: r, @@ -21055,13 +21097,13 @@ function $y(e) { preserveScrollBarGap: c, lockFocusAcrossFrames: u, isOpen: d - } = yn(), [f, p] = qg(); + } = Sn(), [f, p] = Xg(); Fe(() => { !f && p && setTimeout(p); }, [f, p]); - const m = Cy(n, d); + const m = ky(n, d); return /* @__PURE__ */ L.jsx( - ey, + ry, { autoFocus: t, isDisabled: !r, @@ -21071,7 +21113,7 @@ function $y(e) { contentRef: n, lockFocusAcrossFrames: u, children: /* @__PURE__ */ L.jsx( - ZB, + rz, { removeScrollBar: !c, allowPinchZoom: i, @@ -21083,7 +21125,7 @@ function $y(e) { } ); } -var JB = _e( +var nz = _e( (e, t) => { const { className: r, @@ -21091,7 +21133,7 @@ var JB = _e( containerProps: o, motionProps: a, ...i - } = e, { getDialogProps: s, getDialogContainerProps: l } = yn(), c = s(i, t), u = l(o), d = Xe("chakra-modal__content", r), f = Hn(), p = { + } = e, { getDialogProps: s, getDialogContainerProps: l } = Sn(), c = s(i, t), u = l(o), d = Xe("chakra-modal__content", r), f = qn(), p = { display: "flex", flexDirection: "column", position: "relative", @@ -21106,8 +21148,8 @@ var JB = _e( left: 0, top: 0, ...f.dialogContainer - }, { motionPreset: h } = yn(); - return /* @__PURE__ */ L.jsx($y, { children: /* @__PURE__ */ L.jsx( + }, { motionPreset: h } = Sn(); + return /* @__PURE__ */ L.jsx(My, { children: /* @__PURE__ */ L.jsx( ge.div, { ...u, @@ -21115,7 +21157,7 @@ var JB = _e( tabIndex: -1, __css: m, children: /* @__PURE__ */ L.jsx( - wy, + _y, { preset: h, motionProps: a, @@ -21129,17 +21171,17 @@ var JB = _e( ) }); } ); -JB.displayName = "ModalContent"; -var [QB, ez] = It(), tz = { +nz.displayName = "ModalContent"; +var [oz, az] = Ft(), iz = { start: { ltr: "left", rtl: "right" }, end: { ltr: "right", rtl: "left" } }; -function rz(e, t) { +function sz(e, t) { var r, n; if (e) - return (n = (r = tz[e]) == null ? void 0 : r[t]) != null ? n : e; + return (n = (r = iz[e]) == null ? void 0 : r[t]) != null ? n : e; } -function HV(e) { +function ZV(e) { var t; const { isOpen: r, @@ -21147,9 +21189,9 @@ function HV(e) { placement: o = "right", children: a, ...i - } = e, s = nn(), l = (t = s.components) == null ? void 0 : t.Drawer, c = rz(o, s.direction); - return /* @__PURE__ */ L.jsx(QB, { value: { placement: c }, children: /* @__PURE__ */ L.jsx( - ky, + } = e, s = an(), l = (t = s.components) == null ? void 0 : t.Drawer, c = sz(o, s.direction); + return /* @__PURE__ */ L.jsx(oz, { value: { placement: c }, children: /* @__PURE__ */ L.jsx( + Py, { isOpen: r, onClose: n, @@ -21159,7 +21201,7 @@ function HV(e) { } ) }); } -var nz = ge(ub), oz = _e( +var lz = ge(fb), cz = _e( (e, t) => { const { className: r, @@ -21167,7 +21209,7 @@ var nz = ge(ub), oz = _e( motionProps: o, containerProps: a, ...i - } = e, { getDialogProps: s, getDialogContainerProps: l, isOpen: c } = yn(), u = s(i, t), d = l(a), f = Xe("chakra-modal__content", r), p = Hn(), m = { + } = e, { getDialogProps: s, getDialogContainerProps: l, isOpen: c } = Sn(), u = s(i, t), d = l(a), f = Xe("chakra-modal__content", r), p = qn(), m = { display: "flex", flexDirection: "column", position: "relative", @@ -21182,15 +21224,15 @@ var nz = ge(ub), oz = _e( left: 0, top: 0, ...p.dialogContainer - }, { placement: v } = ez(); - return /* @__PURE__ */ L.jsx($y, { children: /* @__PURE__ */ L.jsx( + }, { placement: v } = az(); + return /* @__PURE__ */ L.jsx(My, { children: /* @__PURE__ */ L.jsx( ge.div, { ...d, className: "chakra-modal__content-container", __css: h, children: /* @__PURE__ */ L.jsx( - nz, + lz, { motionProps: o, direction: v, @@ -21205,14 +21247,14 @@ var nz = ge(ub), oz = _e( ) }); } ); -oz.displayName = "DrawerContent"; -var az = _e( +cz.displayName = "DrawerContent"; +var uz = _e( (e, t) => { const { className: r, ...n } = e, o = Xe("chakra-modal__footer", r), i = { display: "flex", alignItems: "center", justifyContent: "flex-end", - ...Hn().footer + ...qn().footer }; return /* @__PURE__ */ L.jsx( ge.footer, @@ -21225,14 +21267,14 @@ var az = _e( ); } ); -az.displayName = "ModalFooter"; -var iz = _e( +uz.displayName = "ModalFooter"; +var dz = _e( (e, t) => { - const { className: r, ...n } = e, { headerId: o, setHeaderMounted: a } = yn(); + const { className: r, ...n } = e, { headerId: o, setHeaderMounted: a } = Sn(); Fe(() => (a(!0), () => a(!1)), [a]); const i = Xe("chakra-modal__header", r), l = { flex: 0, - ...Hn().header + ...qn().header }; return /* @__PURE__ */ L.jsx( ge.header, @@ -21246,8 +21288,8 @@ var iz = _e( ); } ); -iz.displayName = "ModalHeader"; -var sz = ge(Sn.div), lz = _e( +dz.displayName = "ModalHeader"; +var fz = ge(Cn.div), pz = _e( (e, t) => { const { className: r, transition: n, motionProps: o, ...a } = e, i = Xe("chakra-modal__overlay", r), l = { pos: "fixed", @@ -21255,10 +21297,10 @@ var sz = ge(Sn.div), lz = _e( top: "0", w: "100vw", h: "100vh", - ...Hn().overlay - }, { motionPreset: c } = yn(), d = o || (c === "none" ? {} : lb); + ...qn().overlay + }, { motionPreset: c } = Sn(), d = o || (c === "none" ? {} : ub); return /* @__PURE__ */ L.jsx( - sz, + fz, { ...d, __css: l, @@ -21269,11 +21311,11 @@ var sz = ge(Sn.div), lz = _e( ); } ); -lz.displayName = "ModalOverlay"; -var cz = _e((e, t) => { - const { className: r, ...n } = e, { bodyId: o, setBodyMounted: a } = yn(); +pz.displayName = "ModalOverlay"; +var hz = _e((e, t) => { + const { className: r, ...n } = e, { bodyId: o, setBodyMounted: a } = Sn(); Fe(() => (a(!0), () => a(!1)), [a]); - const i = Xe("chakra-modal__body", r), s = Hn(); + const i = Xe("chakra-modal__body", r), s = qn(); return /* @__PURE__ */ L.jsx( ge.div, { @@ -21285,17 +21327,17 @@ var cz = _e((e, t) => { } ); }); -cz.displayName = "ModalBody"; -var uz = _e( +hz.displayName = "ModalBody"; +var mz = _e( (e, t) => { - const { onClick: r, className: n, ...o } = e, { onClose: a } = yn(), i = Xe("chakra-modal__close-btn", n), s = Hn(); + const { onClick: r, className: n, ...o } = e, { onClose: a } = Sn(), i = Xe("chakra-modal__close-btn", n), s = qn(); return /* @__PURE__ */ L.jsx( - ib, + lb, { ref: t, __css: s.closeButton, className: i, - onClick: Rt(r, (l) => { + onClick: $t(r, (l) => { l.stopPropagation(), a(); }), ...o @@ -21303,14 +21345,14 @@ var uz = _e( ); } ); -uz.displayName = "ModalCloseButton"; -var nr = (e) => e ? "" : void 0, yo = (e) => e ? !0 : void 0, Cn = (...e) => e.filter(Boolean).join(" "); -function xo(...e) { +mz.displayName = "ModalCloseButton"; +var or = (e) => e ? "" : void 0, So = (e) => e ? !0 : void 0, kn = (...e) => e.filter(Boolean).join(" "); +function wo(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function dz(e) { +function vz(e) { return { root: `slider-root-${e}`, getThumb: (t) => `slider-thumb-${e}-${t}`, @@ -21321,15 +21363,15 @@ function dz(e) { output: `slider-output-${e}` }; } -function na(e) { +function aa(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t === "vertical" ? r : n; } -var Zi = { width: 0, height: 0 }, Ri = (e) => e || Zi; -function Dy(e) { +var Qi = { width: 0, height: 0 }, Di = (e) => e || Qi; +function Iy(e) { const { orientation: t, thumbPercents: r, thumbRects: n, isReversed: o } = e, a = (h) => { var v; - const b = (v = n[h]) != null ? v : Zi; + const b = (v = n[h]) != null ? v : Qi; return { position: "absolute", userSelect: "none", @@ -21337,7 +21379,7 @@ function Dy(e) { MozUserSelect: "none", msUserSelect: "none", touchAction: "none", - ...na({ + ...aa({ orientation: t, vertical: { bottom: `calc(${r[h]}% - ${b.height / 2}px)` @@ -21348,18 +21390,18 @@ function Dy(e) { }) }; }, i = t === "vertical" ? n.reduce( - (h, v) => Ri(h).height > Ri(v).height ? h : v, - Zi + (h, v) => Di(h).height > Di(v).height ? h : v, + Qi ) : n.reduce( - (h, v) => Ri(h).width > Ri(v).width ? h : v, - Zi + (h, v) => Di(h).width > Di(v).width ? h : v, + Qi ), s = { position: "relative", touchAction: "none", WebkitTapHighlightColor: "rgba(0,0,0,0)", userSelect: "none", outline: 0, - ...na({ + ...aa({ orientation: t, vertical: i ? { paddingLeft: i.width / 2, @@ -21372,7 +21414,7 @@ function Dy(e) { }) }, l = { position: "absolute", - ...na({ + ...aa({ orientation: t, vertical: { left: "50%", @@ -21390,7 +21432,7 @@ function Dy(e) { !c && o && (f = 100 - f); const p = Math.abs(d[d.length - 1] - d[0]), m = { ...l, - ...na({ + ...aa({ orientation: t, vertical: o ? { height: `${p}%`, top: `${f}%` } : { height: `${p}%`, bottom: `${f}%` }, horizontal: o ? { width: `${p}%`, right: `${f}%` } : { width: `${p}%`, left: `${f}%` } @@ -21398,87 +21440,87 @@ function Dy(e) { }; return { trackStyle: l, innerTrackStyle: m, rootStyle: s, getThumbStyle: a }; } -function My(e) { +function Fy(e) { const { isReversed: t, direction: r, orientation: n } = e; return r === "ltr" || n === "vertical" ? t : !t; } -function fz(e, t, r, n) { +function gz(e, t, r, n) { return e.addEventListener(t, r, n), () => { e.removeEventListener(t, r, n); }; } -function pz(e) { - const t = mz(e); +function bz(e) { + const t = xz(e); return typeof t.PointerEvent < "u" && e instanceof t.PointerEvent ? e.pointerType === "mouse" : e instanceof t.MouseEvent; } -function Iy(e) { +function Ny(e) { return !!e.touches; } -function hz(e) { - return Iy(e) && e.touches.length > 1; +function yz(e) { + return Ny(e) && e.touches.length > 1; } -function mz(e) { +function xz(e) { var t; return (t = e.view) != null ? t : window; } -function vz(e, t = "page") { +function Sz(e, t = "page") { const r = e.touches[0] || e.changedTouches[0]; return { x: r[`${t}X`], y: r[`${t}Y`] }; } -function gz(e, t = "page") { +function wz(e, t = "page") { return { x: e[`${t}X`], y: e[`${t}Y`] }; } -function Fy(e, t = "page") { - return Iy(e) ? vz(e, t) : gz(e, t); +function jy(e, t = "page") { + return Ny(e) ? Sz(e, t) : wz(e, t); } -function bz(e) { +function Cz(e) { return (t) => { - const r = pz(t); + const r = bz(t); (!r || r && t.button === 0) && e(t); }; } -function yz(e, t = !1) { +function _z(e, t = !1) { function r(o) { - e(o, { point: Fy(o) }); + e(o, { point: jy(o) }); } - return t ? bz(r) : r; + return t ? Cz(r) : r; } -function Ji(e, t, r, n) { - return fz(e, t, yz(r, t === "pointerdown"), n); +function es(e, t, r, n) { + return gz(e, t, _z(r, t === "pointerdown"), n); } -var xz = Object.defineProperty, Sz = (e, t, r) => t in e ? xz(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fr = (e, t, r) => (Sz(e, typeof t != "symbol" ? t + "" : t, r), r), wz = class { +var kz = Object.defineProperty, Ez = (e, t, r) => t in e ? kz(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pr = (e, t, r) => (Ez(e, typeof t != "symbol" ? t + "" : t, r), r), Pz = class { constructor(e, t, r) { - fr(this, "history", []), fr(this, "startEvent", null), fr(this, "lastEvent", null), fr(this, "lastEventInfo", null), fr(this, "handlers", {}), fr(this, "removeListeners", () => { - }), fr(this, "threshold", 3), fr(this, "win"), fr(this, "updatePoint", () => { + pr(this, "history", []), pr(this, "startEvent", null), pr(this, "lastEvent", null), pr(this, "lastEventInfo", null), pr(this, "handlers", {}), pr(this, "removeListeners", () => { + }), pr(this, "threshold", 3), pr(this, "win"), pr(this, "updatePoint", () => { if (!(this.lastEvent && this.lastEventInfo)) return; - const s = vc(this.lastEventInfo, this.history), l = this.startEvent !== null, c = Ez(s.offset, { x: 0, y: 0 }) >= this.threshold; + const s = gc(this.lastEventInfo, this.history), l = this.startEvent !== null, c = Rz(s.offset, { x: 0, y: 0 }) >= this.threshold; if (!l && !c) return; - const { timestamp: u } = wp(); + const { timestamp: u } = Cp(); this.history.push({ ...s.point, timestamp: u }); const { onStart: d, onMove: f } = this.handlers; l || (d == null || d(this.lastEvent, s), this.startEvent = this.lastEvent), f == null || f(this.lastEvent, s); - }), fr(this, "onPointerMove", (s, l) => { - this.lastEvent = s, this.lastEventInfo = l, h$.update(this.updatePoint, !0); - }), fr(this, "onPointerUp", (s, l) => { - const c = vc(l, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; + }), pr(this, "onPointerMove", (s, l) => { + this.lastEvent = s, this.lastEventInfo = l, y$.update(this.updatePoint, !0); + }), pr(this, "onPointerUp", (s, l) => { + const c = gc(l, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; d == null || d(s, c), this.end(), !(!u || !this.startEvent) && (u == null || u(s, c)); }); var n; - if (this.win = (n = e.view) != null ? n : window, hz(e)) + if (this.win = (n = e.view) != null ? n : window, yz(e)) return; this.handlers = t, r && (this.threshold = r), e.stopPropagation(), e.preventDefault(); - const o = { point: Fy(e) }, { timestamp: a } = wp(); + const o = { point: jy(e) }, { timestamp: a } = Cp(); this.history = [{ ...o.point, timestamp: a }]; const { onSessionStart: i } = t; - i == null || i(e, vc(o, this.history)), this.removeListeners = kz( - Ji(this.win, "pointermove", this.onPointerMove), - Ji(this.win, "pointerup", this.onPointerUp), - Ji(this.win, "pointercancel", this.onPointerUp) + i == null || i(e, gc(o, this.history)), this.removeListeners = Oz( + es(this.win, "pointermove", this.onPointerMove), + es(this.win, "pointerup", this.onPointerUp), + es(this.win, "pointercancel", this.onPointerUp) ); } updateHandlers(e) { @@ -21486,27 +21528,27 @@ var xz = Object.defineProperty, Sz = (e, t, r) => t in e ? xz(e, t, { enumerable } end() { var e; - (e = this.removeListeners) == null || e.call(this), m$.update(this.updatePoint); + (e = this.removeListeners) == null || e.call(this), x$.update(this.updatePoint); } }; -function dm(e, t) { +function fm(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } -function vc(e, t) { +function gc(e, t) { return { point: e.point, - delta: dm(e.point, t[t.length - 1]), - offset: dm(e.point, t[0]), - velocity: _z(t, 0.1) + delta: fm(e.point, t[t.length - 1]), + offset: fm(e.point, t[0]), + velocity: Az(t, 0.1) }; } -var Cz = (e) => e * 1e3; -function _z(e, t) { +var Tz = (e) => e * 1e3; +function Az(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let r = e.length - 1, n = null; const o = e[e.length - 1]; - for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > Cz(t))); ) + for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > Tz(t))); ) r--; if (!n) return { x: 0, y: 0 }; @@ -21519,29 +21561,29 @@ function _z(e, t) { }; return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i; } -function kz(...e) { +function Oz(...e) { return (t) => e.reduce((r, n) => n(r), t); } -function gc(e, t) { +function bc(e, t) { return Math.abs(e - t); } -function fm(e) { +function pm(e) { return "x" in e && "y" in e; } -function Ez(e, t) { +function Rz(e, t) { if (typeof e == "number" && typeof t == "number") - return gc(e, t); - if (fm(e) && fm(t)) { - const r = gc(e.x, t.x), n = gc(e.y, t.y); + return bc(e, t); + if (pm(e) && pm(t)) { + const r = bc(e.x, t.x), n = bc(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } return 0; } -function Ny(e) { +function By(e) { const t = be(null); return t.current = e, t; } -function jy(e, t) { +function zy(e, t) { const { onPan: r, onPanStart: n, @@ -21549,7 +21591,7 @@ function jy(e, t) { onPanSessionStart: a, onPanSessionEnd: i, threshold: s - } = t, l = !!(r || n || o || a || i), c = be(null), u = Ny({ + } = t, l = !!(r || n || o || a || i), c = be(null), u = By({ onSessionStart: a, onSessionEnd: i, onStart: n, @@ -21566,15 +21608,15 @@ function jy(e, t) { if (!d || !l) return; function f(p) { - c.current = new wz(p, u.current, s); + c.current = new Pz(p, u.current, s); } - return Ji(d, "pointerdown", f); + return es(d, "pointerdown", f); }, [e, l, u, s]), Fe(() => () => { var d; (d = c.current) == null || d.end(), c.current = null; }, []); } -function Pz(e, t) { +function $z(e, t) { if (!e) { t(void 0); return; @@ -21594,8 +21636,8 @@ function Pz(e, t) { }); return n.observe(e, { box: "border-box" }), () => n.unobserve(e); } -var Tz = globalThis != null && globalThis.document ? Es : Fe; -function Az(e, t) { +var Dz = globalThis != null && globalThis.document ? Ts : Fe; +function Mz(e, t) { var r, n; if (!e || !e.parentElement) return; @@ -21606,14 +21648,14 @@ function Az(e, t) { a.disconnect(); }; } -function By({ +function Vy({ getNodes: e, observeMutation: t = !0 }) { const [r, n] = Ye([]), [o, a] = Ye(0); - return Tz(() => { + return Dz(() => { const i = e(), s = i.map( - (l, c) => Pz(l, (u) => { + (l, c) => $z(l, (u) => { n((d) => [ ...d.slice(0, c), u, @@ -21624,7 +21666,7 @@ function By({ if (t) { const l = i[0]; s.push( - Az(l, () => { + Mz(l, () => { a((c) => c + 1); }) ); @@ -21636,19 +21678,19 @@ function By({ }; }, [o]), r; } -function Oz(e) { +function Iz(e) { return typeof e == "object" && e !== null && "current" in e; } -function Rz(e) { - const [t] = By({ +function Fz(e) { + const [t] = Vy({ observeMutation: !1, getNodes() { - return [Oz(e) ? e.current : e]; + return [Iz(e) ? e.current : e]; } }); return t; } -function $z(e) { +function Nz(e) { const { min: t = 0, max: r = 100, @@ -21672,7 +21714,7 @@ function $z(e) { focusThumbOnChange: k = !0, minStepsBetweenThumbs: w = 0, ...M - } = e, P = Kt(f), I = Kt(p), z = Kt(h), j = My({ + } = e, P = Zt(f), I = Zt(p), z = Zt(h), j = Fy({ isReversed: i, direction: s, orientation: l @@ -21685,55 +21727,55 @@ function $z(e) { throw new TypeError( `[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof X}\`` ); - const [J, Q] = Ye(!1), [ee, oe] = Ye(!1), [D, ce] = Ye(-1), de = !(u || d), F = be(X), N = X.map((G) => ma(G, t, r)), V = w * m, T = Dz(N, t, r, V), O = be({ + const [J, Q] = Ye(!1), [ee, oe] = Ye(!1), [D, ce] = Ye(-1), de = !(u || d), F = be(X), N = X.map((q) => ga(q, t, r)), V = w * m, T = jz(N, t, r, V), O = be({ eventSource: null, value: [], valueBounds: [] }); O.current.value = N, O.current.valueBounds = T; - const B = N.map((G) => r - G + t), H = (j ? B : N).map((G) => Ss(G, t, r)), A = l === "vertical", Z = be(null), Y = be(null), ae = By({ + const B = N.map((q) => r - q + t), H = (j ? B : N).map((q) => Cs(q, t, r)), A = l === "vertical", Z = be(null), Y = be(null), ae = Vy({ getNodes() { - const G = Y.current, ie = G == null ? void 0 : G.querySelectorAll("[role=slider]"); + const q = Y.current, ie = q == null ? void 0 : q.querySelectorAll("[role=slider]"); return ie ? Array.from(ie) : []; } - }), R = wr(), pe = dz(c ?? R), le = q( - (G) => { + }), R = _r(), pe = vz(c ?? R), le = G( + (q) => { var ie, xe; if (!Z.current) return; O.current.eventSource = "pointer"; - const Ce = Z.current.getBoundingClientRect(), { clientX: He, clientY: St } = (xe = (ie = G.touches) == null ? void 0 : ie[0]) != null ? xe : G, Ze = A ? Ce.bottom - St : He - Ce.left, nt = A ? Ce.height : Ce.width; - let Vr = Ze / nt; - return j && (Vr = 1 - Vr), hb(Vr, t, r); + const Ce = Z.current.getBoundingClientRect(), { clientX: He, clientY: wt } = (xe = (ie = q.touches) == null ? void 0 : ie[0]) != null ? xe : q, Ze = A ? Ce.bottom - wt : He - Ce.left, nt = A ? Ce.height : Ce.width; + let Wr = Ze / nt; + return j && (Wr = 1 - Wr), vb(Wr, t, r); }, [A, j, r, t] - ), $e = (r - t) / 10, ye = m || (r - t) / 100, we = vt( + ), $e = (r - t) / 10, ye = m || (r - t) / 100, we = gt( () => ({ - setValueAtIndex(G, ie) { + setValueAtIndex(q, ie) { if (!de) return; - const xe = O.current.valueBounds[G]; - ie = parseFloat(lu(ie, xe.min, ye)), ie = ma(ie, xe.min, xe.max); + const xe = O.current.valueBounds[q]; + ie = parseFloat(lu(ie, xe.min, ye)), ie = ga(ie, xe.min, xe.max); const Ce = [...O.current.value]; - Ce[G] = ie, ne(Ce); + Ce[q] = ie, ne(Ce); }, setActiveIndex: ce, - stepUp(G, ie = ye) { - const xe = O.current.value[G], Ce = j ? xe - ie : xe + ie; - we.setValueAtIndex(G, Ce); + stepUp(q, ie = ye) { + const xe = O.current.value[q], Ce = j ? xe - ie : xe + ie; + we.setValueAtIndex(q, Ce); }, - stepDown(G, ie = ye) { - const xe = O.current.value[G], Ce = j ? xe + ie : xe - ie; - we.setValueAtIndex(G, Ce); + stepDown(q, ie = ye) { + const xe = O.current.value[q], Ce = j ? xe + ie : xe - ie; + we.setValueAtIndex(q, Ce); }, reset() { ne(F.current); } }), [ye, j, ne, de] - ), pt = q( - (G) => { - const ie = G.key, Ce = { + ), ht = G( + (q) => { + const ie = q.key, Ce = { ArrowRight: () => we.stepUp(D), ArrowUp: () => we.stepUp(D), ArrowLeft: () => we.stepDown(D), @@ -21749,21 +21791,21 @@ function $z(e) { we.setValueAtIndex(D, He); } }[ie]; - Ce && (G.preventDefault(), G.stopPropagation(), Ce(G), O.current.eventSource = "keyboard"); + Ce && (q.preventDefault(), q.stopPropagation(), Ce(q), O.current.eventSource = "keyboard"); }, [we, D, $e, T] - ), { getThumbStyle: ke, rootStyle: ut, trackStyle: rt, innerTrackStyle: Me } = vt( - () => Dy({ + ), { getThumbStyle: ke, rootStyle: dt, trackStyle: rt, innerTrackStyle: Me } = gt( + () => Iy({ isReversed: j, orientation: l, thumbRects: ae, thumbPercents: H }), [j, l, H, ae] - ), se = q( - (G) => { + ), se = G( + (q) => { var ie; - const xe = G ?? D; + const xe = q ?? D; if (xe !== -1 && k) { const Ce = pe.getThumb(xe), He = (ie = Y.current) == null ? void 0 : ie.ownerDocument.getElementById(Ce); He && setTimeout(() => He.focus()); @@ -21771,72 +21813,72 @@ function $z(e) { }, [k, D, pe] ); - Mo(() => { + Fo(() => { O.current.eventSource === "keyboard" && (I == null || I(O.current.value)); }, [N, I]); - const Ae = (G) => { - const ie = le(G) || 0, xe = O.current.value.map( + const Ae = (q) => { + const ie = le(q) || 0, xe = O.current.value.map( (nt) => Math.abs(nt - ie) ), Ce = Math.min(...xe); let He = xe.indexOf(Ce); - const St = xe.filter( + const wt = xe.filter( (nt) => nt === Ce ); - St.length > 1 && ie > O.current.value[He] && (He = He + St.length - 1), ce(He), we.setValueAtIndex(He, ie), se(He); - }, At = (G) => { + wt.length > 1 && ie > O.current.value[He] && (He = He + wt.length - 1), ce(He), we.setValueAtIndex(He, ie), se(He); + }, Ot = (q) => { if (D == -1) return; - const ie = le(G) || 0; + const ie = le(q) || 0; ce(D), we.setValueAtIndex(D, ie), se(D); }; - jy(Y, { - onPanSessionStart(G) { - de && (Q(!0), Ae(G), P == null || P(O.current.value)); + zy(Y, { + onPanSessionStart(q) { + de && (Q(!0), Ae(q), P == null || P(O.current.value)); }, onPanSessionEnd() { de && (Q(!1), I == null || I(O.current.value)); }, - onPan(G) { - de && At(G); + onPan(q) { + de && Ot(q); } }); - const yt = q( - (G = {}, ie = null) => ({ - ...G, + const xt = G( + (q = {}, ie = null) => ({ + ...q, ...M, id: pe.root, - ref: xt(ie, Y), + ref: St(ie, Y), tabIndex: -1, - "aria-disabled": yo(u), - "data-focused": nr(ee), - style: { ...G.style, ...ut } + "aria-disabled": So(u), + "data-focused": or(ee), + style: { ...q.style, ...dt } }), - [M, u, ee, ut, pe] - ), st = q( - (G = {}, ie = null) => ({ - ...G, - ref: xt(ie, Z), + [M, u, ee, dt, pe] + ), lt = G( + (q = {}, ie = null) => ({ + ...q, + ref: St(ie, Z), id: pe.track, - "data-disabled": nr(u), - style: { ...G.style, ...rt } + "data-disabled": or(u), + style: { ...q.style, ...rt } }), [u, rt, pe] - ), jr = q( - (G = {}, ie = null) => ({ - ...G, + ), zr = G( + (q = {}, ie = null) => ({ + ...q, ref: ie, id: pe.innerTrack, style: { - ...G.style, + ...q.style, ...Me } }), [Me, pe] - ), Br = q( - (G, ie = null) => { + ), Vr = G( + (q, ie = null) => { var xe; - const { index: Ce, ...He } = G, St = N[Ce]; - if (St == null) + const { index: Ce, ...He } = q, wt = N[Ce]; + if (wt == null) throw new TypeError( `[range-slider > thumb] Cannot find value at index \`${Ce}\`. The \`value\` or \`defaultValue\` length is : ${N.length}` ); @@ -21847,22 +21889,22 @@ function $z(e) { role: "slider", tabIndex: de ? 0 : void 0, id: pe.getThumb(Ce), - "data-active": nr(J && D === Ce), - "aria-valuetext": (xe = z == null ? void 0 : z(St)) != null ? xe : v == null ? void 0 : v[Ce], + "data-active": or(J && D === Ce), + "aria-valuetext": (xe = z == null ? void 0 : z(wt)) != null ? xe : v == null ? void 0 : v[Ce], "aria-valuemin": Ze.min, "aria-valuemax": Ze.max, - "aria-valuenow": St, + "aria-valuenow": wt, "aria-orientation": l, - "aria-disabled": yo(u), - "aria-readonly": yo(d), + "aria-disabled": So(u), + "aria-readonly": So(d), "aria-label": b == null ? void 0 : b[Ce], "aria-labelledby": b != null && b[Ce] || y == null ? void 0 : y[Ce], - style: { ...G.style, ...ke(Ce) }, - onKeyDown: xo(G.onKeyDown, pt), - onFocus: xo(G.onFocus, () => { + style: { ...q.style, ...ke(Ce) }, + onKeyDown: wo(q.onKeyDown, ht), + onFocus: wo(q.onFocus, () => { oe(!0), ce(Ce); }), - onBlur: xo(G.onBlur, () => { + onBlur: wo(q.onBlur, () => { oe(!1), ce(-1); }) }; @@ -21882,27 +21924,27 @@ function $z(e) { b, y, ke, - pt, + ht, oe ] - ), zr = q( - (G = {}, ie = null) => ({ - ...G, + ), Lr = G( + (q = {}, ie = null) => ({ + ...q, ref: ie, id: pe.output, htmlFor: N.map((xe, Ce) => pe.getThumb(Ce)).join(" "), "aria-live": "off" }), [pe, N] - ), te = q( - (G, ie = null) => { - const { value: xe, ...Ce } = G, He = !(xe < t || xe > r), St = xe >= N[0] && xe <= N[N.length - 1]; - let Ze = Ss(xe, t, r); + ), te = G( + (q, ie = null) => { + const { value: xe, ...Ce } = q, He = !(xe < t || xe > r), wt = xe >= N[0] && xe <= N[N.length - 1]; + let Ze = Cs(xe, t, r); Ze = j ? 100 - Ze : Ze; const nt = { position: "absolute", pointerEvents: "none", - ...na({ + ...aa({ orientation: l, vertical: { bottom: `${Ze}%` }, horizontal: { left: `${Ze}%` } @@ -21911,22 +21953,22 @@ function $z(e) { return { ...Ce, ref: ie, - id: pe.getMarker(G.value), + id: pe.getMarker(q.value), role: "presentation", "aria-hidden": !0, - "data-disabled": nr(u), - "data-invalid": nr(!He), - "data-highlighted": nr(St), + "data-disabled": or(u), + "data-invalid": or(!He), + "data-highlighted": or(wt), style: { - ...G.style, + ...q.style, ...nt } }; }, [u, j, r, t, l, N, pe] - ), ve = q( - (G, ie = null) => { - const { index: xe, ...Ce } = G; + ), ve = G( + (q, ie = null) => { + const { index: xe, ...Ce } = q; return { ...Ce, ref: ie, @@ -21943,44 +21985,44 @@ function $z(e) { value: N, isFocused: ee, isDragging: J, - getThumbPercent: (G) => H[G], - getThumbMinValue: (G) => T[G].min, - getThumbMaxValue: (G) => T[G].max + getThumbPercent: (q) => H[q], + getThumbMinValue: (q) => T[q].min, + getThumbMaxValue: (q) => T[q].max }, actions: we, - getRootProps: yt, - getTrackProps: st, - getInnerTrackProps: jr, - getThumbProps: Br, + getRootProps: xt, + getTrackProps: lt, + getInnerTrackProps: zr, + getThumbProps: Vr, getMarkerProps: te, getInputProps: ve, - getOutputProps: zr + getOutputProps: Lr }; } -function Dz(e, t, r, n) { +function jz(e, t, r, n) { return e.map((o, a) => { const i = a === 0 ? t : e[a - 1] + n, s = a === e.length - 1 ? r : e[a + 1] - n; return { min: i, max: s }; }); } -var [Mz, el] = It({ +var [Bz, rl] = Ft({ name: "SliderContext", errorMessage: "useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within " -}), [Iz, tl] = It({ +}), [zz, nl] = Ft({ name: "RangeSliderStylesContext", errorMessage: `useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Fz = _e( +}), Vz = _e( function(t, r) { const n = { orientation: "horizontal", ...t - }, o = Do("Slider", n), a = Fr(n), { direction: i } = nn(); + }, o = Io("Slider", n), a = jr(n), { direction: i } = an(); a.direction = i; - const { getRootProps: s, ...l } = $z(a), c = vt( + const { getRootProps: s, ...l } = Nz(a), c = gt( () => ({ ...l, name: n.name }), [l, n.name] ); - return /* @__PURE__ */ L.jsx(Mz, { value: c, children: /* @__PURE__ */ L.jsx(Iz, { value: o, children: /* @__PURE__ */ L.jsx( + return /* @__PURE__ */ L.jsx(Bz, { value: c, children: /* @__PURE__ */ L.jsx(zz, { value: o, children: /* @__PURE__ */ L.jsx( ge.div, { ...s({}, r), @@ -21991,15 +22033,15 @@ var [Mz, el] = It({ ) }) }); } ); -Fz.displayName = "RangeSlider"; -var Nz = _e( +Vz.displayName = "RangeSlider"; +var Lz = _e( function(t, r) { - const { getThumbProps: n, getInputProps: o, name: a } = el(), i = tl(), s = n(t, r); + const { getThumbProps: n, getInputProps: o, name: a } = rl(), i = nl(), s = n(t, r); return /* @__PURE__ */ L.jsxs( ge.div, { ...s, - className: Cn("chakra-slider__thumb", t.className), + className: kn("chakra-slider__thumb", t.className), __css: i.thumb, children: [ s.children, @@ -22009,24 +22051,24 @@ var Nz = _e( ); } ); -Nz.displayName = "RangeSliderThumb"; -var jz = _e( +Lz.displayName = "RangeSliderThumb"; +var Wz = _e( function(t, r) { - const { getTrackProps: n } = el(), o = tl(), a = n(t, r); + const { getTrackProps: n } = rl(), o = nl(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { ...a, - className: Cn("chakra-slider__track", t.className), + className: kn("chakra-slider__track", t.className), __css: o.track, "data-testid": "chakra-range-slider-track" } ); } ); -jz.displayName = "RangeSliderTrack"; -var Bz = _e(function(t, r) { - const { getInnerTrackProps: n } = el(), o = tl(), a = n(t, r); +Wz.displayName = "RangeSliderTrack"; +var Uz = _e(function(t, r) { + const { getInnerTrackProps: n } = rl(), o = nl(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { @@ -22036,22 +22078,22 @@ var Bz = _e(function(t, r) { } ); }); -Bz.displayName = "RangeSliderFilledTrack"; -var zz = _e( +Uz.displayName = "RangeSliderFilledTrack"; +var Hz = _e( function(t, r) { - const { getMarkerProps: n } = el(), o = tl(), a = n(t, r); + const { getMarkerProps: n } = rl(), o = nl(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { ...a, - className: Cn("chakra-slider__marker", t.className), + className: kn("chakra-slider__marker", t.className), __css: o.mark } ); } ); -zz.displayName = "RangeSliderMark"; -function Vz(e) { +Hz.displayName = "RangeSliderMark"; +function Yz(e) { var t; const { min: r = 0, @@ -22075,15 +22117,15 @@ function Vz(e) { name: k, focusThumbOnChange: w = !0, ...M - } = e, P = Kt(p), I = Kt(m), z = Kt(v), j = My({ + } = e, P = Zt(p), I = Zt(m), z = Zt(v), j = Fy({ isReversed: s, direction: l, orientation: c }), [X, ne] = hd({ value: a, - defaultValue: i ?? Wz(r, n), + defaultValue: i ?? qz(r, n), onChange: o - }), [J, Q] = Ye(!1), [ee, oe] = Ye(!1), D = !(d || f), ce = (n - r) / 10, de = h || (n - r) / 100, F = ma(X, r, n), N = n - F + r, T = Ss(j ? N : F, r, n), O = c === "vertical", B = Ny({ + }), [J, Q] = Ye(!1), [ee, oe] = Ye(!1), D = !(d || f), ce = (n - r) / 10, de = h || (n - r) / 100, F = ga(X, r, n), N = n - F + r, T = Cs(j ? N : F, r, n), O = c === "vertical", B = By({ min: r, max: n, step: h, @@ -22095,29 +22137,29 @@ function Vz(e) { eventSource: null, focusThumbOnChange: w, orientation: c - }), C = be(null), H = be(null), A = be(null), Z = wr(), Y = u ?? Z, [ae, R] = [`slider-thumb-${Y}`, `slider-track-${Y}`], Se = q( + }), C = be(null), H = be(null), A = be(null), Z = _r(), Y = u ?? Z, [ae, R] = [`slider-thumb-${Y}`, `slider-track-${Y}`], Se = G( (te) => { - var ve, Cr; + var ve, kr; if (!C.current) return; - const G = B.current; - G.eventSource = "pointer"; - const ie = C.current.getBoundingClientRect(), { clientX: xe, clientY: Ce } = (Cr = (ve = te.touches) == null ? void 0 : ve[0]) != null ? Cr : te, He = O ? ie.bottom - Ce : xe - ie.left, St = O ? ie.height : ie.width; - let Ze = He / St; + const q = B.current; + q.eventSource = "pointer"; + const ie = C.current.getBoundingClientRect(), { clientX: xe, clientY: Ce } = (kr = (ve = te.touches) == null ? void 0 : ve[0]) != null ? kr : te, He = O ? ie.bottom - Ce : xe - ie.left, wt = O ? ie.height : ie.width; + let Ze = He / wt; j && (Ze = 1 - Ze); - let nt = hb(Ze, G.min, G.max); - return G.step && (nt = parseFloat( - lu(nt, G.min, G.step) - )), nt = ma(nt, G.min, G.max), nt; + let nt = vb(Ze, q.min, q.max); + return q.step && (nt = parseFloat( + lu(nt, q.min, q.step) + )), nt = ga(nt, q.min, q.max), nt; }, [O, j, B] - ), pe = q( + ), pe = G( (te) => { const ve = B.current; - ve.isInteractive && (te = parseFloat(lu(te, ve.min, de)), te = ma(te, ve.min, ve.max), ne(te)); + ve.isInteractive && (te = parseFloat(lu(te, ve.min, de)), te = ga(te, ve.min, ve.max), ne(te)); }, [de, ne, B] - ), le = vt( + ), le = gt( () => ({ stepUp(te = de) { const ve = j ? F - te : F + te; @@ -22135,9 +22177,9 @@ function Vz(e) { } }), [pe, j, F, de, i] - ), $e = q( + ), $e = G( (te) => { - const ve = B.current, G = { + const ve = B.current, q = { ArrowRight: () => le.stepUp(), ArrowUp: () => le.stepUp(), ArrowLeft: () => le.stepDown(), @@ -22147,24 +22189,24 @@ function Vz(e) { Home: () => pe(ve.min), End: () => pe(ve.max) }[te.key]; - G && (te.preventDefault(), te.stopPropagation(), G(te), ve.eventSource = "keyboard"); + q && (te.preventDefault(), te.stopPropagation(), q(te), ve.eventSource = "keyboard"); }, [le, pe, ce, B] - ), ye = (t = z == null ? void 0 : z(F)) != null ? t : b, we = Rz(H), { getThumbStyle: pt, rootStyle: ke, trackStyle: ut, innerTrackStyle: rt } = vt(() => { + ), ye = (t = z == null ? void 0 : z(F)) != null ? t : b, we = Fz(H), { getThumbStyle: ht, rootStyle: ke, trackStyle: dt, innerTrackStyle: rt } = gt(() => { const te = B.current, ve = we ?? { width: 0, height: 0 }; - return Dy({ + return Iy({ isReversed: j, orientation: te.orientation, thumbRects: [ve], thumbPercents: [T] }); - }, [j, we, T, B]), Me = q(() => { + }, [j, we, T, B]), Me = G(() => { B.current.focusThumbOnChange && setTimeout(() => { var ve; return (ve = H.current) == null ? void 0 : ve.focus(); }); }, [B]); - Mo(() => { + Fo(() => { const te = B.current; Me(), te.eventSource === "keyboard" && (I == null || I(te.value)); }, [F, I]); @@ -22172,7 +22214,7 @@ function Vz(e) { const ve = Se(te); ve != null && ve !== B.current.value && ne(ve); } - jy(A, { + zy(A, { onPanSessionStart(te) { const ve = B.current; ve.isInteractive && (Q(!0), Me(), se(te), P == null || P(ve.value)); @@ -22185,33 +22227,33 @@ function Vz(e) { B.current.isInteractive && se(te); } }); - const Ae = q( + const Ae = G( (te = {}, ve = null) => ({ ...te, ...M, - ref: xt(ve, A), + ref: St(ve, A), tabIndex: -1, - "aria-disabled": yo(d), - "data-focused": nr(ee), + "aria-disabled": So(d), + "data-focused": or(ee), style: { ...te.style, ...ke } }), [M, d, ee, ke] - ), At = q( + ), Ot = G( (te = {}, ve = null) => ({ ...te, - ref: xt(ve, C), + ref: St(ve, C), id: R, - "data-disabled": nr(d), + "data-disabled": or(d), style: { ...te.style, - ...ut + ...dt } }), - [d, R, ut] - ), yt = q( + [d, R, dt] + ), xt = G( (te = {}, ve = null) => ({ ...te, ref: ve, @@ -22221,30 +22263,30 @@ function Vz(e) { } }), [rt] - ), st = q( + ), lt = G( (te = {}, ve = null) => ({ ...te, - ref: xt(ve, H), + ref: St(ve, H), role: "slider", tabIndex: D ? 0 : void 0, id: ae, - "data-active": nr(J), + "data-active": or(J), "aria-valuetext": ye, "aria-valuemin": r, "aria-valuemax": n, "aria-valuenow": F, "aria-orientation": c, - "aria-disabled": yo(d), - "aria-readonly": yo(f), + "aria-disabled": So(d), + "aria-readonly": So(f), "aria-label": y, "aria-labelledby": y ? void 0 : S, style: { ...te.style, - ...pt(0) + ...ht(0) }, - onKeyDown: xo(te.onKeyDown, $e), - onFocus: xo(te.onFocus, () => oe(!0)), - onBlur: xo(te.onBlur, () => oe(!1)) + onKeyDown: wo(te.onKeyDown, $e), + onFocus: wo(te.onFocus, () => oe(!0)), + onBlur: wo(te.onBlur, () => oe(!1)) }), [ D, @@ -22259,15 +22301,15 @@ function Vz(e) { f, y, S, - pt, + ht, $e ] - ), jr = q( + ), zr = G( (te, ve = null) => { - const Cr = !(te.value < r || te.value > n), G = F >= te.value, ie = Ss(te.value, r, n), xe = { + const kr = !(te.value < r || te.value > n), q = F >= te.value, ie = Cs(te.value, r, n), xe = { position: "absolute", pointerEvents: "none", - ...Lz({ + ...Gz({ orientation: c, vertical: { bottom: j ? `${100 - ie}%` : `${ie}%` @@ -22282,9 +22324,9 @@ function Vz(e) { ref: ve, role: "presentation", "aria-hidden": !0, - "data-disabled": nr(d), - "data-invalid": nr(!Cr), - "data-highlighted": nr(G), + "data-disabled": or(d), + "data-invalid": or(!kr), + "data-highlighted": or(q), style: { ...te.style, ...xe @@ -22292,7 +22334,7 @@ function Vz(e) { }; }, [d, j, n, r, c, F] - ), Br = q( + ), Vr = G( (te = {}, ve = null) => ({ ...te, ref: ve, @@ -22306,41 +22348,41 @@ function Vz(e) { state: { value: F, isFocused: ee, isDragging: J }, actions: le, getRootProps: Ae, - getTrackProps: At, - getInnerTrackProps: yt, - getThumbProps: st, - getMarkerProps: jr, - getInputProps: Br + getTrackProps: Ot, + getInnerTrackProps: xt, + getThumbProps: lt, + getMarkerProps: zr, + getInputProps: Vr }; } -function Lz(e) { +function Gz(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t === "vertical" ? r : n; } -function Wz(e, t) { +function qz(e, t) { return t < e ? e : e + (t - e) / 2; } -var [Uz, rl] = It({ +var [Xz, ol] = Ft({ name: "SliderContext", hookName: "useSliderContext", providerName: "" -}), [Hz, nl] = It({ +}), [Kz, al] = Ft({ name: "SliderStylesContext", hookName: "useSliderStyles", providerName: "" -}), Yz = _e((e, t) => { +}), Zz = _e((e, t) => { var r; const n = { ...e, orientation: (r = e == null ? void 0 : e.orientation) != null ? r : "horizontal" - }, o = Do("Slider", n), a = Fr(n), { direction: i } = nn(); + }, o = Io("Slider", n), a = jr(n), { direction: i } = an(); a.direction = i; - const { getInputProps: s, getRootProps: l, ...c } = Vz(a), u = l(), d = s({}, t); - return /* @__PURE__ */ L.jsx(Uz, { value: c, children: /* @__PURE__ */ L.jsx(Hz, { value: o, children: /* @__PURE__ */ L.jsxs( + const { getInputProps: s, getRootProps: l, ...c } = Yz(a), u = l(), d = s({}, t); + return /* @__PURE__ */ L.jsx(Xz, { value: c, children: /* @__PURE__ */ L.jsx(Kz, { value: o, children: /* @__PURE__ */ L.jsxs( ge.div, { ...u, - className: Cn("chakra-slider", n.className), + className: kn("chakra-slider", n.className), __css: o.container, children: [ n.children, @@ -22349,58 +22391,58 @@ var [Uz, rl] = It({ } ) }) }); }); -Yz.displayName = "Slider"; -var qz = _e((e, t) => { - const { getThumbProps: r } = rl(), n = nl(), o = r(e, t); +Zz.displayName = "Slider"; +var Jz = _e((e, t) => { + const { getThumbProps: r } = ol(), n = al(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: Cn("chakra-slider__thumb", e.className), + className: kn("chakra-slider__thumb", e.className), __css: n.thumb } ); }); -qz.displayName = "SliderThumb"; -var Gz = _e((e, t) => { - const { getTrackProps: r } = rl(), n = nl(), o = r(e, t); +Jz.displayName = "SliderThumb"; +var Qz = _e((e, t) => { + const { getTrackProps: r } = ol(), n = al(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: Cn("chakra-slider__track", e.className), + className: kn("chakra-slider__track", e.className), __css: n.track } ); }); -Gz.displayName = "SliderTrack"; -var Xz = _e( +Qz.displayName = "SliderTrack"; +var eV = _e( (e, t) => { - const { getInnerTrackProps: r } = rl(), n = nl(), o = r(e, t); + const { getInnerTrackProps: r } = ol(), n = al(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: Cn("chakra-slider__filled-track", e.className), + className: kn("chakra-slider__filled-track", e.className), __css: n.filledTrack } ); } ); -Xz.displayName = "SliderFilledTrack"; -var Kz = _e((e, t) => { - const { getMarkerProps: r } = rl(), n = nl(), o = r(e, t); +eV.displayName = "SliderFilledTrack"; +var tV = _e((e, t) => { + const { getMarkerProps: r } = ol(), n = al(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: Cn("chakra-slider__marker", e.className), + className: kn("chakra-slider__marker", e.className), __css: n.mark } ); }); -Kz.displayName = "SliderMark"; -var Zz = { +tV.displayName = "SliderMark"; +var rV = { exit: { scale: 0.85, opacity: 0, @@ -22420,11 +22462,11 @@ var Zz = { }, bu = (e) => { var t; return ((t = e.current) == null ? void 0 : t.ownerDocument) || document; -}, Qi = (e) => { +}, ts = (e) => { var t, r; return ((r = (t = e.current) == null ? void 0 : t.ownerDocument) == null ? void 0 : r.defaultView) || window; }; -function Jz(e = {}) { +function nV(e = {}) { const { openDelay: t = 0, closeDelay: r = 0, @@ -22448,12 +22490,12 @@ function Jz(e = {}) { offset: k, direction: w, ...M - } = e, { isOpen: P, onOpen: I, onClose: z } = vy({ + } = e, { isOpen: P, onOpen: I, onClose: z } = by({ isOpen: f, defaultIsOpen: p, onOpen: l, onClose: c - }), { referenceRef: j, getPopperProps: X, getArrowInnerProps: ne, getArrowProps: J } = my({ + }), { referenceRef: j, getPopperProps: X, getArrowInnerProps: ne, getArrowProps: J } = gy({ enabled: P, placement: u, arrowPadding: v, @@ -22461,43 +22503,43 @@ function Jz(e = {}) { gutter: S, offset: k, direction: w - }), Q = wr(), oe = `tooltip-${d ?? Q}`, D = be(null), ce = be(), de = q(() => { + }), Q = _r(), oe = `tooltip-${d ?? Q}`, D = be(null), ce = be(), de = G(() => { ce.current && (clearTimeout(ce.current), ce.current = void 0); - }, []), F = be(), N = q(() => { + }, []), F = be(), N = G(() => { F.current && (clearTimeout(F.current), F.current = void 0); - }, []), V = q(() => { + }, []), V = G(() => { N(), z(); - }, [z, N]), T = Qz(D, V), O = q(() => { + }, [z, N]), T = oV(D, V), O = G(() => { if (!y && !ce.current) { T(); - const R = Qi(D); + const R = ts(D); ce.current = R.setTimeout(I, t); } - }, [T, y, I, t]), B = q(() => { + }, [T, y, I, t]), B = G(() => { de(); - const R = Qi(D); + const R = ts(D); F.current = R.setTimeout(V, r); - }, [r, V, de]), C = q(() => { + }, [r, V, de]), C = G(() => { P && n && B(); - }, [n, B, P]), H = q(() => { + }, [n, B, P]), H = G(() => { P && i && B(); - }, [i, B, P]), A = q( + }, [i, B, P]), A = G( (R) => { P && R.key === "Escape" && B(); }, [P, B] ); - va( + ba( () => bu(D), "keydown", s ? A : void 0 - ), va( + ), ba( () => { const R = D.current; if (!R) return null; - const Se = Xb(R); - return Se.localName === "body" ? Qi(D) : Se; + const Se = Zb(R); + return Se.localName === "body" ? ts(D) : Se; }, "scroll", () => { @@ -22508,18 +22550,18 @@ function Jz(e = {}) { y && (de(), P && z()); }, [y, P, z, de]), Fe(() => () => { de(), N(); - }, [de, N]), va(() => D.current, "pointerleave", B); - const Z = q( + }, [de, N]), ba(() => D.current, "pointerleave", B); + const Z = G( (R = {}, Se = null) => ({ ...R, - ref: xt(D, Se, j), - onPointerEnter: Rt(R.onPointerEnter, (le) => { + ref: St(D, Se, j), + onPointerEnter: $t(R.onPointerEnter, (le) => { le.pointerType !== "touch" && O(); }), - onClick: Rt(R.onClick, C), - onPointerDown: Rt(R.onPointerDown, H), - onFocus: Rt(R.onFocus, O), - onBlur: Rt(R.onBlur, B), + onClick: $t(R.onClick, C), + onPointerDown: $t(R.onPointerDown, H), + onFocus: $t(R.onFocus, O), + onBlur: $t(R.onBlur, B), "aria-describedby": P ? oe : void 0 }), [ @@ -22531,25 +22573,25 @@ function Jz(e = {}) { C, j ] - ), Y = q( + ), Y = G( (R = {}, Se = null) => X( { ...R, style: { ...R.style, - [kt.arrowSize.var]: m ? `${m}px` : void 0, - [kt.arrowShadowColor.var]: h + [Et.arrowSize.var]: m ? `${m}px` : void 0, + [Et.arrowShadowColor.var]: h } }, Se ), [X, m, h] - ), ae = q( + ), ae = G( (R = {}, Se = null) => { const pe = { ...R.style, position: "relative", - transformOrigin: kt.transformOrigin.varRef + transformOrigin: Et.transformOrigin.varRef }; return { ref: Se, @@ -22573,31 +22615,31 @@ function Jz(e = {}) { getArrowInnerProps: ne }; } -var bc = "chakra-ui:close-tooltip"; -function Qz(e, t) { +var yc = "chakra-ui:close-tooltip"; +function oV(e, t) { return Fe(() => { const r = bu(e); - return r.addEventListener(bc, t), () => r.removeEventListener(bc, t); + return r.addEventListener(yc, t), () => r.removeEventListener(yc, t); }, [t, e]), () => { - const r = bu(e), n = Qi(e); - r.dispatchEvent(new n.CustomEvent(bc)); + const r = bu(e), n = ts(e); + r.dispatchEvent(new n.CustomEvent(yc)); }; } -function eV(e, t = []) { +function aV(e, t = []) { const r = Object.assign({}, e); for (const n of t) n in r && delete r[n]; return r; } -function tV(e, t) { +function iV(e, t) { const r = {}; for (const n of t) n in e && (r[n] = e[n]); return r; } -var rV = ge(Sn.div), nV = _e((e, t) => { +var sV = ge(Cn.div), lV = _e((e, t) => { var r, n; - const o = $o("Tooltip", e), a = Fr(e), i = nn(), { + const o = Mo("Tooltip", e), a = jr(e), i = an(), { children: s, label: l, shouldWrapChildren: c, @@ -22613,10 +22655,10 @@ var rV = ge(Sn.div), nV = _e((e, t) => { } = a, S = (n = (r = m ?? h) != null ? r : f) != null ? n : v; if (S) { o.bg = S; - const X = uv(i, "colors", S); - o[kt.arrowBg.var] = X; + const X = fv(i, "colors", S); + o[Et.arrowBg.var] = X; } - const k = Jz({ ...y, direction: i.direction }), w = typeof s == "string" || c; + const k = nV({ ...y, direction: i.direction }), w = typeof s == "string" || c; let M; if (w) M = /* @__PURE__ */ L.jsx( @@ -22629,16 +22671,16 @@ var rV = ge(Sn.div), nV = _e((e, t) => { } ); else { - const X = Ps.only(s); - M = La( + const X = As.only(s); + M = Ua( X, k.getTriggerProps(X.props, X.ref) ); } - const P = !!u, I = k.getTooltipProps({}, t), z = P ? eV(I, ["role", "id"]) : I, j = tV(I, ["role", "id"]); + const P = !!u, I = k.getTooltipProps({}, t), z = P ? aV(I, ["role", "id"]) : I, j = iV(I, ["role", "id"]); return l ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [ M, - /* @__PURE__ */ L.jsx(Io, { children: k.isOpen && /* @__PURE__ */ L.jsx(Ha, { ...p, children: /* @__PURE__ */ L.jsx( + /* @__PURE__ */ L.jsx(No, { children: k.isOpen && /* @__PURE__ */ L.jsx(Ga, { ...p, children: /* @__PURE__ */ L.jsx( ge.div, { ...k.getTooltipPositionerProps(), @@ -22647,9 +22689,9 @@ var rV = ge(Sn.div), nV = _e((e, t) => { pointerEvents: "none" }, children: /* @__PURE__ */ L.jsxs( - rV, + sV, { - variants: Zz, + variants: rV, initial: "exit", animate: "enter", exit: "exit", @@ -22681,268 +22723,271 @@ var rV = ge(Sn.div), nV = _e((e, t) => { ) }) }) ] }) : /* @__PURE__ */ L.jsx(L.Fragment, { children: s }); }); -nV.displayName = "Tooltip"; -const YV = Tt(({ children: e, gap: t, sx: r, ...n }, o) => /* @__PURE__ */ L.jsx(Fm, { ref: o, sx: { gap: t, ...r }, ...n, children: e })); +lV.displayName = "Tooltip"; +const JV = At(({ children: e, gap: t, sx: r, ...n }, o) => /* @__PURE__ */ L.jsx(Nm, { ref: o, sx: { gap: t, ...r }, ...n, children: e })); export { - zV as $, - YV as A, - lV as B, - cV as C, - Bn as D, - RF as E, - Fm as F, - lz as G, - JB as H, - iz as I, - uz as J, - cz as K, - az as L, - ky as M, - Vw as N, - eB as O, - oN as P, - sB as Q, + CV as $, + Sc as A, + pV as B, + _0 as C, + Su as D, + hV as E, + Nm as F, + JV as G, + Ln as H, + FF as I, + pz as J, + nz as K, + dz as L, + Py as M, + mz as N, + hz as O, + uz as P, + Yw as Q, aB as R, - P0 as S, - Ca as T, - rB as U, - lB as V, - r_ as W, - gV as X, - t_ as Y, - nn as Z, - _0 as _, - HS as a, - Av as a$, - Do as a0, - nN as a1, - $o as a2, - QI as a3, - Ks as a4, - ge as a5, - bV as a6, - Sy as a7, - NV as a8, - BV as a9, - m$ as aA, - OV as aB, - DV as aC, - h$ as aD, - wp as aE, - RV as aF, - SV as aG, - vV as aH, - i$ as aI, - c$ as aJ, - Mk as aK, - d_ as aL, - B$ as aM, - Kt as aN, - IV as aO, - Mo as aP, - Sn as aQ, - fn as aR, - _e as aS, - It as aT, - Xe as aU, - Fr as aV, - ib as aW, - Io as aX, - Ha as aY, - nv as aZ, - kV as a_, - xF as aa, - EF as ab, - _F as ac, - tN as ad, - Ts as ae, - Ij as af, - Yz as ag, - Gz as ah, - Xz as ai, - qz as aj, - Fz as ak, - jz as al, - Bz as am, - Nz as an, - HV as ao, - oz as ap, - sV as aq, - Nu as ar, - pV as as, - mV as at, - e_ as au, - Ta as av, - rv as aw, - Rv as ax, - zt as ay, - $V as az, - Jn as b, - Yj as b$, - t$ as b0, - cF as b1, - hd as b2, - xt as b3, - Rt as b4, - xV as b5, - au as b6, - Kr as b7, - eo as b8, - db as b9, - wV as bA, - me as bB, - yV as bC, - fN as bD, - Ke as bE, - kE as bF, - _E as bG, - CV as bH, - RE as bI, - wE as bJ, - FE as bK, - EV as bL, - Gw as bM, - Kw as bN, - ey as bO, - kF as bP, - SF as bQ, - pb as bR, - fb as bS, - CF as bT, - rN as bU, - ay as bV, - ry as bW, + A0 as S, + ka as T, + cN as U, + fB as V, + uB as W, + sB as X, + pB as Y, + s_ as Z, + E0 as _, + An as a, + Ga as a$, + i_ as a0, + an as a1, + YV as a2, + Io as a3, + lN as a4, + Mo as a5, + oF as a6, + Js as a7, + ge as a8, + _V as a9, + Dv as aA, + Vt as aB, + jV as aC, + x$ as aD, + FV as aE, + BV as aF, + y$ as aG, + Cp as aH, + NV as aI, + PV as aJ, + wV as aK, + d$ as aL, + h$ as aM, + Bk as aN, + v_ as aO, + U$ as aP, + Zt as aQ, + VV as aR, + Fo as aS, + Cn as aT, + hn as aU, + _e as aV, + Ft as aW, + Xe as aX, + jr as aY, + lb as aZ, + No as a_, + Cy as aa, + WV as ab, + HV as ac, + kF as ad, + RF as ae, + AF as af, + iN as ag, + Os as ah, + zj as ai, + Zz as aj, + Qz as ak, + eV as al, + Jz as am, + Vz as an, + Wz as ao, + Uz as ap, + Lz as aq, + ZV as ar, + cz as as, + fV as at, + Nu as au, + yV as av, + SV as aw, + a_ as ax, + Oa as ay, + ov as az, + at as b, + wy as b$, + av as b0, + RV as b1, + Rv as b2, + i$ as b3, + hF as b4, + hd as b5, + St as b6, + $t as b7, + EV as b8, + au as b9, + Uj as bA, + Et as bB, + jo as bC, + TV as bD, + me as bE, + kV as bF, + gN as bG, + Ke as bH, + OE as bI, + AE as bJ, + AV as bK, + FE as bL, + PE as bM, + VE as bN, + $V as bO, + Qw as bP, + tC as bQ, + ry as bR, + OF as bS, + EF as bT, + mb as bU, + hb as bV, + TF as bW, sN as bX, - xy as bY, - zj as bZ, - Uj as b_, - jV as ba, - PF as bb, - w_ as bc, - ma as bd, - AF as be, - OF as bf, - va as bg, - Cl as bh, - AV as bi, - TV as bj, - J5 as bk, - y_ as bl, - ny as bm, - aN as bn, - ri as bo, - WV as bp, - LV as bq, - tB as br, - vy as bs, - my as bt, - jj as bu, - hN as bv, - VV as bw, - Bj as bx, - kt as by, - Fo as bz, - YS as c, - k_ as c$, - qj as c0, - No as c1, - Wj as c2, - Lj as c3, - Vj as c4, - yy as c5, + sy as bY, + oy as bZ, + fN as b_, + Jr as ba, + ro as bb, + pb as bc, + UV as bd, + $F as be, + P_ as bf, + ga as bg, + MF as bh, + IF as bi, + ba as bj, + _l as bk, + IV as bl, + MV as bm, + nN as bn, + __ as bo, + ay as bp, + uN as bq, + oi as br, + XV as bs, + qV as bt, + iB as bu, + by as bv, + gy as bw, + Wj as bx, + yN as by, + GV as bz, + KS as c, + rk as c$, + Hj as c0, + Xj as c1, + Zj as c2, + Jj as c3, + Bo as c4, + qj as c5, Gj as c6, - Xj as c7, - UV as c8, - _B as c9, - z_ as cA, - ck as cB, - _V as cC, - Mc as cD, - V_ as cE, - Ck as cF, - as as cG, - uv as cH, - Dk as cI, - av as cJ, - L_ as cK, - Pk as cL, - rr as cM, - W_ as cN, - X_ as cO, - aa as cP, - kk as cQ, - cv as cR, - js as cS, - jk as cT, - K_ as cU, - tk as cV, - Je as cW, - zu as cX, - Z_ as cY, - lk as cZ, - sk as c_, - $y as ca, - ez as cb, - xB as cc, - yn as cd, - Cy as ce, - Hn as cf, - u_ as cg, - j$ as ch, - zz as ci, - Mz as cj, - Kz as ck, - Uz as cl, - $z as cm, - el as cn, - tl as co, - Vz as cp, + Yj as c7, + Sy as c8, + Qj as c9, + ji as cA, + je as cB, + $n as cC, + H_ as cD, + hk as cE, + OV as cF, + Mc as cG, + Y_ as cH, + Tk as cI, + ss as cJ, + fv as cK, + jk as cL, + sv as cM, + G_ as cN, + $k as cO, + nr as cP, + q_ as cQ, + ek as cR, + sa as cS, + Ok as cT, + dv as cU, + zs as cV, + Wk as cW, + tk as cX, + ik as cY, + Je as cZ, + zu as c_, + eB as ca, + KV as cb, + AB as cc, + My as cd, + az as ce, + kB as cf, + Sn as cg, + ky as ch, + qn as ci, + m_ as cj, + W$ as ck, + Hz as cl, + Bz as cm, + tV as cn, + Xz as co, + Nz as cp, rl as cq, nl as cr, - E$ as cs, - Ll as ct, - F$ as cu, - MV as cv, - ik as cw, - Fi as cx, - je as cy, - An as cz, - Dn as d, - J_ as d0, - Q_ as d1, - ek as d2, - zk as d3, - Bk as d4, - PV as d5, - Jz as d6, - dF as d7, - pF as d8, - ub as d9, - mF as da, - lb as db, - iu as dc, - cb as dd, - su as de, - qS as e, - uV as f, - GS as g, - kc as h, - bm as i, - e1 as j, - dV as k, - L as l, - Xw as m, - Ln as n, - iV as o, - nV as p, - oy as q, - xa as r, - wc as s, - fV as t, - hV as u, - v1 as v, - wm as w, - xc as x, - w0 as y, - Su as z + Yz as cs, + ol as ct, + al as cu, + R$ as cv, + Wl as cw, + V$ as cx, + zV as cy, + dk as cz, + br as d, + pk as d0, + fk as d1, + O_ as d2, + nk as d3, + ok as d4, + ak as d5, + Hk as d6, + Uk as d7, + DV as d8, + nV as d9, + vF as da, + bF as db, + fb as dc, + xF as dd, + ub as de, + iu as df, + db as dg, + su as dh, + Vm as e, + ZS as f, + mV as g, + JS as h, + ym as i, + Mn as j, + vV as k, + pf as l, + o1 as m, + bV as n, + L as o, + eC as p, + Hn as q, + dV as r, + Cc as s, + gV as t, + xV as u, + S1 as v, + Cm as w, + lV as x, + iy as y, + wa as z }; diff --git a/dist/chakra.mjs b/dist/chakra.mjs index 1de475ee2..49d6438a0 100644 --- a/dist/chakra.mjs +++ b/dist/chakra.mjs @@ -1,15 +1,21 @@ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.link-button:focus-visible{outline:none}.link-button:focus-visible>span{box-shadow:0 0 0 2px #21b18299;text-decoration:none}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid rgba(0,0,0,0);height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:#0000;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -import { a as Rr, f as $r, k as Or, l, au as gt, av as Ae, aw as bt, ax as yt, ay as Re, az as Vr, aA as zr, aB as ro, aC as Hr, aD as Gr, aE as En, aF as Wr, aG as Kr, aH as Ur, ar as qr, aI as Xr, aJ as ht, aK as Yr, aL as Zr, aM as Jr, aN as xe, aO as Qr, aP as tt, aQ as Gt, a5 as h, aR as Te, aS as g, a4 as ge, aT as ne, a3 as so, aU as k, aV as W, a0 as le, aW as Wt, aX as ao, aY as es, aZ as ts, a_ as ns, a$ as os, b0 as rs, b1 as Kt, b2 as ot, b3 as ue, b4 as j, b5 as rt, b6 as dt, b7 as jn, b8 as z, b9 as Oe, a2 as Se, ba as ss, bb as io, W as Ee, bc as Ut, bd as as, be as lo, bf as An, bg as co, bh as Ne, bi as is, bj as uo, ae as ls, a9 as qt, Z as Xt, bk as Ie, bl as cs, bm as us, q as ds, bn as Yt, bo as fs, bp as ms, bq as ps, br as hs, a7 as vs, M as gs, H as bs, bs as ys, bt as xs, bu as Ss, bv as _s, bw as ks, bx as fo, by as Nt, bz as Cs, bA as mo, bB as po, bC as ws, $ as Ps, bD as Ns, bE as Ye, bF as ho, bG as Is, bH as Es, bI as js, bJ as As, bK as Ts, bL as Ms, t as Ds, bM as vo, bN as Fs, A as Ls } from "./Flex-ddd5f349.mjs"; -import { K as Qm, J as ep, L as tp, I as np, G as op, bU as rp, a1 as sp, ao as ap, K as ip, J as lp, ap as cp, L as up, I as dp, G as fp, d7 as mp, P as pp, bO as hp, aa as vp, bP as gp, ac as bp, bQ as yp, ab as xp, ad as Sp, O as _p, Q as kp, bY as Cp, bZ as wp, V as Pp, U as Np, R as Ip, b_ as Ep, K as jp, J as Ap, c9 as Tp, ca as Mp, L as Dp, I as Fp, G as Lp, ak as Bp, am as Rp, ci as $p, cj as Op, an as Vp, al as zp, bR as Hp, d8 as Gp, d9 as Wp, da as Kp, ag as Up, ai as qp, ck as Xp, cl as Yp, aj as Zp, ah as Jp, bV as Qp, bW as eh, p as th, cw as nh, cx as oh, cy as rh, cz as sh, cA as ah, cB as ih, cC as lh, cD as ch, d5 as uh, db as dh, cE as fh, cF as mh, cG as ph, cH as hh, cI as vh, dc as gh, cJ as bh, cK as yh, d3 as xh, cL as Sh, cM as _h, cN as kh, cO as Ch, cP as wh, cQ as Ph, cR as Nh, cS as Ih, d4 as Eh, cT as jh, cU as Ah, dd as Th, cV as Mh, cs as Dh, de as Fh, cW as Lh, ct as Bh, cX as Rh, cY as $h, cu as Oh, cZ as Vh, c_ as zh, c$ as Hh, d0 as Gh, d1 as Wh, d2 as Kh, bX as Uh, a6 as qh, cv as Xh, cb as Yh, ch as Zh, bS as Jh, bT as Qh, b$ as ev, c0 as tv, c1 as nv, c2 as ov, c3 as rv, c4 as sv, c5 as av, c6 as iv, c7 as lv, c8 as cv, cc as uv, cd as dv, ce as fv, cf as mv, cg as pv, cm as hv, cn as vv, co as gv, cp as bv, cq as yv, cr as xv, d6 as Sv } from "./Flex-ddd5f349.mjs"; -import Tn, { useState as F, useMemo as J, useCallback as x, useEffect as U, createContext as Bs, useContext as Rs, memo as $s, Children as Ze, useSyncExternalStore as Os, useRef as V, useId as Ve, forwardRef as Vs, cloneElement as ve, isValidElement as Zt, useLayoutEffect as zs, Fragment as Hs, createElement as Gs } from "react"; +import { a as ro, g as $r, k as Or, n as Vr, o as l, ax as gt, ay as Ae, az as bt, aA as yt, aB as Re, aC as zr, aD as Hr, aE as so, aF as Gr, aG as Wr, aH as En, aI as Kr, aJ as Ur, aK as qr, au as Xr, aL as Yr, aM as ht, aN as Zr, aO as Jr, aP as Qr, aQ as xe, aR as es, aS as tt, aT as Gt, a8 as h, aU as Te, aV as g, a7 as ge, aW as ne, a6 as ao, aX as k, aY as W, a3 as le, aZ as Wt, a_ as io, a$ as ts, b0 as ns, b1 as os, b2 as rs, b3 as ss, b4 as Kt, b5 as ot, b6 as ue, b7 as j, b8 as rt, b9 as dt, ba as jn, bb as z, bc as Oe, a5 as Se, bd as as, be as lo, Z as Ee, bf as Ut, bg as is, bh as co, bi as An, bj as uo, bk as Ne, bl as ls, bm as fo, ah as cs, ac as qt, a1 as Xt, bn as Ie, bo as us, bp as ds, y as fs, bq as Yt, br as ms, bs as ps, bt as hs, bu as vs, aa as gs, M as bs, K as ys, bv as xs, bw as Ss, bx as _s, by as ks, bz as Cs, bA as mo, bB as Nt, bC as ws, bD as po, bE as ho, bF as Ps, a2 as Ns, bG as Is, bH as Ye, bI as vo, bJ as Es, bK as js, bL as As, bM as Ts, bN as Ms, bO as Ds, t as Fs, bP as go, bQ as Ls, G as Bs } from "./Flex-41e0872e.mjs"; +import { O as np, N as op, P as rp, L as sp, J as ap, bX as ip, a4 as lp, ar as cp, O as up, N as dp, as as fp, P as mp, L as pp, J as hp, da as vp, U as gp, bR as bp, ad as yp, bS as xp, af as Sp, bT as _p, ae as kp, ag as Cp, R as wp, V as Pp, b$ as Np, c0 as Ip, Y as Ep, X as jp, W as Ap, c1 as Tp, O as Mp, N as Dp, cc as Fp, cd as Lp, P as Bp, L as Rp, J as $p, an as Op, ap as Vp, cl as zp, cm as Hp, aq as Gp, ao as Wp, bU as Kp, db as Up, dc as qp, dd as Xp, aj as Yp, al as Zp, cn as Jp, co as Qp, am as eh, ak as th, bY as nh, bZ as oh, x as rh, cz as sh, cA as ah, cB as ih, cC as lh, cD as ch, cE as uh, cF as dh, cG as fh, d8 as mh, de as ph, cH as hh, cI as vh, cJ as gh, cK as bh, cL as yh, df as xh, cM as Sh, cN as _h, d6 as kh, cO as Ch, cP as wh, cQ as Ph, cR as Nh, cS as Ih, cT as Eh, cU as jh, cV as Ah, d7 as Th, cW as Mh, cX as Dh, dg as Fh, cY as Lh, cv as Bh, dh as Rh, cZ as $h, cw as Oh, c_ as Vh, c$ as zh, cx as Hh, d0 as Gh, d1 as Wh, d2 as Kh, d3 as Uh, d4 as qh, d5 as Xh, b_ as Yh, a9 as Zh, cy as Jh, ce as Qh, ck as ev, bV as tv, bW as nv, c2 as ov, c3 as rv, c4 as sv, c5 as av, c6 as iv, c7 as lv, c8 as cv, c9 as uv, ca as dv, cb as fv, cf as mv, cg as pv, ch as hv, ci as vv, cj as gv, cp as bv, cq as yv, cr as xv, cs as Sv, ct as _v, cu as kv, d9 as Cv } from "./Flex-41e0872e.mjs"; +import Tn, { useState as F, useMemo as J, useCallback as x, useEffect as U, createContext as Rs, useContext as $s, memo as Os, Children as Ze, useSyncExternalStore as Vs, useRef as V, useId as Ve, forwardRef as zs, cloneElement as ve, isValidElement as Zt, useLayoutEffect as Hs, Fragment as Gs, createElement as Ws } from "react"; import "react-dom"; -var Ws = /* @__PURE__ */ Rr(function(e, n) { +var Ks = /* @__PURE__ */ ro(function(e, n) { return $r(function(o, r) { return o[r] = e(n[r], r, n), o; }, {}, Or(n)); }); -const Ks = Ws; -var go = String.raw, bo = go` +const Us = Ks; +var qs = /* @__PURE__ */ ro(function(e, n) { + return Vr(function(o, r, s) { + return r; + }, e, n); +}); +const Xs = qs; +var bo = String.raw, yo = bo` :root, :host { --chakra-vh: 100vh; @@ -35,10 +41,10 @@ var go = String.raw, bo = go` --chakra-vh: 100dvh; } } -`, Us = () => /* @__PURE__ */ l.jsx(gt, { styles: bo }), qs = ({ scope: t = "" }) => /* @__PURE__ */ l.jsx( +`, Ys = () => /* @__PURE__ */ l.jsx(gt, { styles: yo }), Zs = ({ scope: t = "" }) => /* @__PURE__ */ l.jsx( gt, { - styles: go` + styles: bo` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -290,14 +296,14 @@ var go = String.raw, bo = go` display: none; } - ${bo} + ${yo} ` } ), ft = { light: "chakra-ui-light", dark: "chakra-ui-dark" }; -function Xs(t = {}) { +function Js(t = {}) { const { preventTransition: e = !0 } = t, n = { setDataset: (o) => { const r = e ? n.preventTransition() : void 0; @@ -339,7 +345,7 @@ function Xs(t = {}) { return n; } var Jt = "chakra-ui-color-mode"; -function Ys(t) { +function Qs(t) { return { ssr: !1, type: "localStorage", @@ -361,12 +367,12 @@ function Ys(t) { } }; } -var Zs = Ys(Jt); +var ea = Qs(Jt); function Mn(t, e) { const n = t.match(new RegExp(`(^| )${e}=([^;]+)`)); return n == null ? void 0 : n[2]; } -function yo(t, e) { +function xo(t, e) { return { ssr: !!e, type: "cookie", @@ -378,12 +384,12 @@ function yo(t, e) { } }; } -var Df = yo(Jt), Ff = (t) => yo(Jt, t), Xe = () => { +var Bf = xo(Jt), Rf = (t) => xo(Jt, t), Xe = () => { }; function Dn(t, e) { return t.type === "cookie" && t.ssr ? t.get(e) : e; } -function xo(t) { +function So(t) { const { value: e, children: n, @@ -392,13 +398,13 @@ function xo(t) { initialColorMode: r, disableTransitionOnChange: s } = {}, - colorModeManager: a = Zs + colorModeManager: a = ea } = t, i = r === "dark" ? "dark" : "light", [c, u] = F( () => Dn(a, i) ), [d, f] = F( () => Dn(a) ), { getSystemTheme: m, setClassName: p, setDataset: b, addListener: y } = J( - () => Xs({ preventTransition: s }), + () => Js({ preventTransition: s }), [s] ), v = r === "system" && !c ? d : c, _ = x( (P) => { @@ -439,8 +445,8 @@ function xo(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: N, children: n }); } -xo.displayName = "ColorModeProvider"; -function Js(t) { +So.displayName = "ColorModeProvider"; +function ta(t) { const e = J( () => ({ colorMode: "dark", @@ -452,8 +458,8 @@ function Js(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); } -Js.displayName = "DarkMode"; -function Qs(t) { +ta.displayName = "DarkMode"; +function na(t) { const e = J( () => ({ colorMode: "light", @@ -465,34 +471,34 @@ function Qs(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); } -Qs.displayName = "LightMode"; -var ea = /* @__PURE__ */ new Set(["dark", "light", "system"]); -function ta(t) { +na.displayName = "LightMode"; +var oa = /* @__PURE__ */ new Set(["dark", "light", "system"]); +function ra(t) { let e = t; - return ea.has(e) || (e = "light"), e; + return oa.has(e) || (e = "light"), e; } -function na(t = {}) { +function sa(t = {}) { const { initialColorMode: e = "light", type: n = "localStorage", storageKey: o = "chakra-ui-color-mode" - } = t, r = ta(e), s = n === "cookie", a = `(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${r}",r="${o}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + } = t, r = ra(e), s = n === "cookie", a = `(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${r}",r="${o}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); `, i = `(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${r}",e="${o}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); `; return `!${s ? a : i}`.trim(); } -function Lf(t = {}) { +function $f(t = {}) { const { nonce: e } = t; return /* @__PURE__ */ l.jsx( "script", { id: "chakra-script", nonce: e, - dangerouslySetInnerHTML: { __html: na(t) } + dangerouslySetInnerHTML: { __html: sa(t) } } ); } -function oa({ +function aa({ colorScheme: t, components: e }) { @@ -509,7 +515,7 @@ function oa({ }); }; } -function ra({ +function ia({ size: t, components: e }) { @@ -526,7 +532,7 @@ function ra({ }); }; } -function sa({ +function la({ variant: t, components: e }) { @@ -543,19 +549,19 @@ function sa({ }); }; } -function aa(...t) { +function ca(...t) { return (e) => t.reduce((n, o) => o(n), e); } -function Bf({ +function Of({ defaultProps: { colorScheme: t, variant: e, size: n }, components: o }) { const r = (a) => a, s = [ - t ? oa({ colorScheme: t, components: o }) : r, - n ? ra({ size: n, components: o }) : r, - e ? sa({ variant: e, components: o }) : r + t ? aa({ colorScheme: t, components: o }) : r, + n ? ia({ size: n, components: o }) : r, + e ? la({ variant: e, components: o }) : r ]; - return (a) => yt(aa(...s)(a)); + return (a) => yt(ca(...s)(a)); } function Qt(t) { return t != null && typeof t == "object" && "nodeType" in t && t.nodeType === Node.ELEMENT_NODE; @@ -567,7 +573,7 @@ function xt(t) { const n = (e = t.ownerDocument.defaultView) != null ? e : window; return t instanceof n.HTMLElement; } -function ia(t) { +function ua(t) { var e, n; return Qt(t) && (n = (e = ze(t)) == null ? void 0 : e.defaultView) != null ? n : window; } @@ -579,23 +585,23 @@ function en(t) { var e; return (e = t.view) != null ? e : window; } -function la() { +function da() { return !!(typeof window < "u" && window.document && window.document.createElement); } -var st = /* @__PURE__ */ la(); -function ca(t) { +var st = /* @__PURE__ */ da(); +function fa(t) { const e = ze(t); return e == null ? void 0 : e.activeElement; } function tn(t, e) { return t ? t === e || t.contains(e) : !1; } -function ua(t, e, n, o) { +function ma(t, e, n, o) { return t.addEventListener(e, n, o), () => { t.removeEventListener(e, n, o); }; } -function da(t) { +function pa(t) { const { userAgent: e, vendor: n } = t, o = /(android)/i.test(e); switch (!0) { case /CriOS/.test(e): @@ -620,45 +626,45 @@ function da(t) { return null; } } -function fa(t) { - return st ? da(window.navigator) === t : !1; +function ha(t) { + return st ? pa(window.navigator) === t : !1; } -function ma(t) { +function va(t) { const e = en(t); return typeof e.PointerEvent < "u" && t instanceof e.PointerEvent ? t.pointerType === "mouse" : t instanceof e.MouseEvent; } -function So(t) { +function _o(t) { return !!t.touches; } -function pa(t) { +function ga(t) { return (e) => { const n = en(e), o = e instanceof n.MouseEvent; (!o || o && e.button === 0) && t(e); }; } -var ha = { pageX: 0, pageY: 0 }; -function va(t, e = "page") { - const o = t.touches[0] || t.changedTouches[0] || ha; +var ba = { pageX: 0, pageY: 0 }; +function ya(t, e = "page") { + const o = t.touches[0] || t.changedTouches[0] || ba; return { x: o[`${e}X`], y: o[`${e}Y`] }; } -function ga(t, e = "page") { +function xa(t, e = "page") { return { x: t[`${e}X`], y: t[`${e}Y`] }; } -function _o(t, e = "page") { +function ko(t, e = "page") { return { - point: So(t) ? va(t, e) : ga(t, e) + point: _o(t) ? ya(t, e) : xa(t, e) }; } var nn = (t, e = !1) => { - const n = (o) => t(o, _o(o)); - return e ? pa(n) : n; -}, ba = () => st && window.onpointerdown === null, ya = () => st && window.ontouchstart === null, xa = () => st && window.onmousedown === null, Sa = { + const n = (o) => t(o, ko(o)); + return e ? ga(n) : n; +}, Sa = () => st && window.onpointerdown === null, _a = () => st && window.ontouchstart === null, ka = () => st && window.onmousedown === null, Ca = { pointerdown: "mousedown", pointermove: "mousemove", pointerup: "mouseup", @@ -667,32 +673,32 @@ var nn = (t, e = !1) => { pointerout: "mouseout", pointerenter: "mouseenter", pointerleave: "mouseleave" -}, _a = { +}, wa = { pointerdown: "touchstart", pointermove: "touchmove", pointerup: "touchend", pointercancel: "touchcancel" }; function on(t) { - return ba() ? t : ya() ? _a[t] : xa() ? Sa[t] : t; + return Sa() ? t : _a() ? wa[t] : ka() ? Ca[t] : t; } function It(t, e, n, o) { - return ua( + return ma( t, on(e), nn(n, e === "pointerdown"), o ); } -function ka(t) { - return So(t) && t.touches.length > 1; +function Pa(t) { + return _o(t) && t.touches.length > 1; } -var Ca = Object.defineProperty, wa = (t, e, n) => e in t ? Ca(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ce = (t, e, n) => (wa(t, typeof e != "symbol" ? e + "" : e, n), n), Pa = class { +var Na = Object.defineProperty, Ia = (t, e, n) => e in t ? Na(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ce = (t, e, n) => (Ia(t, typeof e != "symbol" ? e + "" : e, n), n), Ea = class { constructor(t, e, n) { - if (Ce(this, "history", []), Ce(this, "startEvent", null), Ce(this, "lastEvent", null), Ce(this, "lastEventInfo", null), Ce(this, "handlers", {}), Ce(this, "removeListeners", ro), Ce(this, "threshold", 3), Ce(this, "win"), Ce(this, "updatePoint", () => { + if (Ce(this, "history", []), Ce(this, "startEvent", null), Ce(this, "lastEvent", null), Ce(this, "lastEventInfo", null), Ce(this, "handlers", {}), Ce(this, "removeListeners", so), Ce(this, "threshold", 3), Ce(this, "win"), Ce(this, "updatePoint", () => { if (!(this.lastEvent && this.lastEventInfo)) return; - const a = Et(this.lastEventInfo, this.history), i = this.startEvent !== null, c = Hr(a.offset, { x: 0, y: 0 }) >= this.threshold; + const a = Et(this.lastEventInfo, this.history), i = this.startEvent !== null, c = Gr(a.offset, { x: 0, y: 0 }) >= this.threshold; if (!i && !c) return; const { timestamp: u } = En(); @@ -700,21 +706,21 @@ var Ca = Object.defineProperty, wa = (t, e, n) => e in t ? Ca(t, e, { enumerable const { onStart: d, onMove: f } = this.handlers; i || (d == null || d(this.lastEvent, a), this.startEvent = this.lastEvent), f == null || f(this.lastEvent, a); }), Ce(this, "onPointerMove", (a, i) => { - if (this.lastEvent = a, this.lastEventInfo = i, ma(a) && a.buttons === 0) { + if (this.lastEvent = a, this.lastEventInfo = i, va(a) && a.buttons === 0) { this.onPointerUp(a, i); return; } - Gr.update(this.updatePoint, !0); + Wr.update(this.updatePoint, !0); }), Ce(this, "onPointerUp", (a, i) => { const c = Et(i, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; d == null || d(a, c), this.end(), !(!u || !this.startEvent) && (u == null || u(a, c)); - }), this.win = en(t), ka(t)) + }), this.win = en(t), Pa(t)) return; this.handlers = e, n && (this.threshold = n), t.stopPropagation(), t.preventDefault(); - const o = _o(t), { timestamp: r } = En(); + const o = ko(t), { timestamp: r } = En(); this.history = [{ ...o.point, timestamp: r }]; const { onSessionStart: s } = e; - s == null || s(t, Et(o, this.history)), this.removeListeners = Vr( + s == null || s(t, Et(o, this.history)), this.removeListeners = zr( It(this.win, "pointermove", this.onPointerMove), It(this.win, "pointerup", this.onPointerUp), It(this.win, "pointercancel", this.onPointerUp) @@ -725,36 +731,36 @@ var Ca = Object.defineProperty, wa = (t, e, n) => e in t ? Ca(t, e, { enumerable } end() { var t; - (t = this.removeListeners) == null || t.call(this), zr.update(this.updatePoint); + (t = this.removeListeners) == null || t.call(this), Hr.update(this.updatePoint); } }; function Fn(t, e) { return { x: t.x - e.x, y: t.y - e.y }; } -function Na(t) { +function ja(t) { return t[0]; } -function Ia(t) { +function Aa(t) { return t[t.length - 1]; } function Et(t, e) { return { point: t.point, - delta: Fn(t.point, Ia(e)), - offset: Fn(t.point, Na(e)), - velocity: Aa(e, 0.1) + delta: Fn(t.point, Aa(e)), + offset: Fn(t.point, ja(e)), + velocity: Da(e, 0.1) }; } -function Ea(t) { +function Ta(t) { return t[t.length - 1]; } -var ja = (t) => t * 1e3; -function Aa(t, e) { +var Ma = (t) => t * 1e3; +function Da(t, e) { if (t.length < 2) return { x: 0, y: 0 }; let n = t.length - 1, o = null; - const r = Ea(t); - for (; n >= 0 && (o = t[n], !(r.timestamp - o.timestamp > ja(e))); ) + const r = Ta(t); + for (; n >= 0 && (o = t[n], !(r.timestamp - o.timestamp > Ma(e))); ) n--; if (!o) return { x: 0, y: 0 }; @@ -767,28 +773,28 @@ function Aa(t, e) { }; return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a; } -var ko = (t) => t.hasAttribute("tabindex"), Ta = (t) => ko(t) && t.tabIndex === -1; -function Ma(t) { +var Co = (t) => t.hasAttribute("tabindex"), Fa = (t) => Co(t) && t.tabIndex === -1; +function La(t) { return !!t.getAttribute("disabled") || !!t.getAttribute("aria-disabled"); } -function Da(t) { +function Ba(t) { return xt(t) && t.localName === "input" && "select" in t; } -function Co(t) { +function wo(t) { return (xt(t) ? ze(t) : document).activeElement === t; } -function Fa(t) { +function Ra(t) { return document.activeElement ? t.contains(document.activeElement) : !1; } -function wo(t) { - return t.parentElement && wo(t.parentElement) ? !0 : t.hidden; +function Po(t) { + return t.parentElement && Po(t.parentElement) ? !0 : t.hidden; } -function La(t) { +function $a(t) { const e = t.getAttribute("contenteditable"); return e !== "false" && e != null; } -function Po(t) { - if (!xt(t) || wo(t) || Ma(t)) +function No(t) { + if (!xt(t) || Po(t) || La(t)) return !1; const { localName: e } = t; if (["input", "select", "textarea", "button"].indexOf(e) >= 0) @@ -798,12 +804,12 @@ function Po(t) { audio: () => t.hasAttribute("controls"), video: () => t.hasAttribute("controls") }; - return e in o ? o[e]() : La(t) ? !0 : ko(t); + return e in o ? o[e]() : $a(t) ? !0 : Co(t); } -function Ba(t) { - return t ? xt(t) && Po(t) && !Ta(t) : !1; +function Oa(t) { + return t ? xt(t) && No(t) && !Fa(t) : !1; } -var Ra = [ +var Va = [ "input:not(:disabled):not([disabled])", "select:not(:disabled):not([disabled])", "textarea:not(:disabled):not([disabled])", @@ -818,16 +824,16 @@ var Ra = [ "video[controls]", "*[tabindex]:not([aria-disabled])", "*[contenteditable]" -], $a = Ra.join(), Oa = (t) => t.offsetWidth > 0 && t.offsetHeight > 0; -function Va(t) { +], za = Va.join(), Ha = (t) => t.offsetWidth > 0 && t.offsetHeight > 0; +function Ga(t) { const e = Array.from( - t.querySelectorAll($a) + t.querySelectorAll(za) ); - return e.unshift(t), e.filter((n) => Po(n) && Oa(n)); + return e.unshift(t), e.filter((n) => No(n) && Ha(n)); } function nt(t, e = {}) { const { - isActive: n = Co, + isActive: n = wo, nextTick: o, preventScroll: r = !0, selectTextIfInput: s = !0 @@ -836,20 +842,20 @@ function nt(t, e = {}) { return -1; function a() { if (!t) { - Wr({ + Kr({ condition: !0, message: "[chakra-ui]: can't call focus() on `null` or `undefined` element" }); return; } - if (za()) + if (Wa()) t.focus({ preventScroll: r }); else if (t.focus(), r) { - const i = Ha(t); - Ga(i); + const i = Ka(t); + Ua(i); } if (s) { - if (Da(t)) + if (Ba(t)) t.select(); else if ("setSelectionRange" in t) { const i = t; @@ -860,7 +866,7 @@ function nt(t, e = {}) { return o ? requestAnimationFrame(a) : (a(), -1); } var mt = null; -function za() { +function Wa() { if (mt == null) { mt = !1; try { @@ -874,7 +880,7 @@ function za() { } return mt; } -function Ha(t) { +function Ka(t) { var e; const n = ze(t), o = (e = n.defaultView) != null ? e : window; let r = t.parentNode; @@ -891,14 +897,14 @@ function Ha(t) { scrollLeft: a.scrollLeft }), s; } -function Ga(t) { +function Ua(t) { for (const { element: e, scrollTop: n, scrollLeft: o } of t) e.scrollTop = n, e.scrollLeft = o; } -var Wa = process.env.NODE_ENV === "production", jt = "Invariant failed"; +var qa = process.env.NODE_ENV === "production", jt = "Invariant failed"; function Ln(t, e) { if (!t) { - if (Wa) + if (qa) throw new Error(jt); var n = typeof e == "function" ? e() : e, o = n ? "".concat(jt, ": ").concat(n) : jt; throw new Error(o); @@ -920,7 +926,7 @@ var pt = function(e) { } }; return c; -}, Ka = function(e, n) { +}, Xa = function(e, n) { return { top: e.top - n.top, left: e.left - n.left, @@ -939,8 +945,8 @@ var pt = function(e) { right: 0, bottom: 0, left: 0 -}, Ua = function(e) { - var n = e.borderBox, o = e.margin, r = o === void 0 ? At : o, s = e.border, a = s === void 0 ? At : s, i = e.padding, c = i === void 0 ? At : i, u = pt(Ka(n, r)), d = pt(Bn(n, a)), f = pt(Bn(d, c)); +}, Ya = function(e) { + var n = e.borderBox, o = e.margin, r = o === void 0 ? At : o, s = e.border, a = s === void 0 ? At : s, i = e.padding, c = i === void 0 ? At : i, u = pt(Xa(n, r)), d = pt(Bn(n, a)), f = pt(Bn(d, c)); return { marginBox: u, borderBox: pt(n), @@ -956,7 +962,7 @@ var pt = function(e) { return 0; var r = Number(n); return isNaN(r) && (process.env.NODE_ENV !== "production" ? Ln(!1, "Could not parse value [raw: " + e + ", without suffix: " + n + "]") : Ln(!1)), r; -}, qa = function(e, n) { +}, Za = function(e, n) { var o = { top: ke(n.marginTop), right: ke(n.marginRight), @@ -973,15 +979,15 @@ var pt = function(e) { bottom: ke(n.borderBottomWidth), left: ke(n.borderLeftWidth) }; - return Ua({ + return Ya({ borderBox: e, margin: o, padding: r, border: s }); -}, Xa = function(e) { +}, Ja = function(e) { var n = e.getBoundingClientRect(), o = window.getComputedStyle(e); - return qa(n, o); + return Za(n, o); }; function rn(t) { const e = Object.assign({}, t); @@ -989,16 +995,16 @@ function rn(t) { e[n] === void 0 && delete e[n]; return e; } -function No(t = {}) { +function Io(t = {}) { const { strict: e = !0, errorMessage: n = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider", name: o - } = t, r = Bs(void 0); + } = t, r = Rs(void 0); r.displayName = o; function s() { var a; - const i = Rs(r); + const i = $s(r); if (!i && e) { const c = new Error(n); throw c.name = "ContextError", (a = Error.captureStackTrace) == null || a.call(Error, c, s), c; @@ -1011,40 +1017,40 @@ function No(t = {}) { r ]; } -function Io(t) { - const { cssVarsRoot: e, theme: n, children: o } = t, r = J(() => Kr(n), [n]); - return /* @__PURE__ */ l.jsxs(Ur, { theme: r, children: [ - /* @__PURE__ */ l.jsx(Ya, { root: e }), +function Eo(t) { + const { cssVarsRoot: e, theme: n, children: o } = t, r = J(() => Ur(n), [n]); + return /* @__PURE__ */ l.jsxs(qr, { theme: r, children: [ + /* @__PURE__ */ l.jsx(Qa, { root: e }), o ] }); } -function Ya({ root: t = ":host, :root" }) { +function Qa({ root: t = ":host, :root" }) { const e = [t, "[data-theme]"].join(","); return /* @__PURE__ */ l.jsx(gt, { styles: (n) => ({ [e]: n.__cssVars }) }); } -var [Rf, $f] = No({ +var [Vf, zf] = Io({ name: "StylesContext", errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` " }); -function Eo(t) { - return No({ +function jo(t) { + return Io({ name: `${t}StylesContext`, errorMessage: `useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${t} />" ` }); } -function Za() { - const { colorMode: t } = qr(); +function ei() { + const { colorMode: t } = Xr(); return /* @__PURE__ */ l.jsx( gt, { styles: (e) => { - const n = Xr(e, "styles.global"), o = ht(n, { theme: e, colorMode: t }); - return o ? Yr(o)(e) : void 0; + const n = Yr(e, "styles.global"), o = ht(n, { theme: e, colorMode: t }); + return o ? Zr(o)(e) : void 0; } } ); } -var Ja = (t) => { +var ti = (t) => { const { children: e, colorModeManager: n, @@ -1057,39 +1063,39 @@ var Ja = (t) => { disableEnvironment: u, disableGlobalStyle: d } = t, f = /* @__PURE__ */ l.jsx( - Jr, + Qr, { environment: i, disabled: u, children: e } ); - return /* @__PURE__ */ l.jsx(Io, { theme: a, cssVarsRoot: c, children: /* @__PURE__ */ l.jsxs( - xo, + return /* @__PURE__ */ l.jsx(Eo, { theme: a, cssVarsRoot: c, children: /* @__PURE__ */ l.jsxs( + So, { colorModeManager: n, options: a.config, children: [ - s ? /* @__PURE__ */ l.jsx(qs, { scope: r }) : /* @__PURE__ */ l.jsx(Us, {}), - !d && /* @__PURE__ */ l.jsx(Za, {}), - o ? /* @__PURE__ */ l.jsx(Zr, { zIndex: o, children: f }) : f + s ? /* @__PURE__ */ l.jsx(Zs, { scope: r }) : /* @__PURE__ */ l.jsx(Ys, {}), + !d && /* @__PURE__ */ l.jsx(ei, {}), + o ? /* @__PURE__ */ l.jsx(Jr, { zIndex: o, children: f }) : f ] } ) }); -}, Qa = (t, e) => t.find((n) => n.id === e); +}, ni = (t, e) => t.find((n) => n.id === e); function Rn(t, e) { - const n = jo(t, e), o = n ? t[n].findIndex((r) => r.id === e) : -1; + const n = Ao(t, e), o = n ? t[n].findIndex((r) => r.id === e) : -1; return { position: n, index: o }; } -function jo(t, e) { +function Ao(t, e) { for (const [n, o] of Object.entries(t)) - if (Qa(o, e)) + if (ni(o, e)) return n; } -function ei(t) { +function oi(t) { const e = t.includes("right"), n = t.includes("left"); let o = "center"; return e && (o = "flex-end"), n && (o = "flex-start"), { @@ -1098,7 +1104,7 @@ function ei(t) { alignItems: o }; } -function ti(t) { +function ri(t) { const n = t === "top" || t === "bottom" ? "0 auto" : void 0, o = t.includes("top") ? "env(safe-area-inset-top, 0px)" : void 0, r = t.includes("bottom") ? "env(safe-area-inset-bottom, 0px)" : void 0, s = t.includes("left") ? void 0 : "env(safe-area-inset-right, 0px)", a = t.includes("right") ? void 0 : "env(safe-area-inset-left, 0px)"; return { position: "fixed", @@ -1113,7 +1119,7 @@ function ti(t) { left: a }; } -function ni(t, e) { +function si(t, e) { const n = xe(t); U(() => { if (e == null) @@ -1126,7 +1132,7 @@ function ni(t, e) { }; }, [e, n]); } -var oi = { +var ai = { initial: (t) => { const { position: e } = t, n = ["top", "bottom"].includes(e) ? "y" : "x"; let o = ["top-right", "bottom-right"].includes(e) ? 1 : -1; @@ -1153,7 +1159,7 @@ var oi = { ease: [0.4, 0, 1, 1] } } -}, Ao = $s((t) => { +}, To = Os((t) => { const { id: e, message: n, @@ -1163,9 +1169,9 @@ var oi = { position: a = "bottom", duration: i = 5e3, containerStyle: c, - motionVariants: u = oi, + motionVariants: u = ai, toastSpacing: d = "0.5rem" - } = t, [f, m] = F(i), p = Qr(); + } = t, [f, m] = F(i), p = es(); tt(() => { p || o == null || o(); }, [p]), tt(() => { @@ -1176,7 +1182,7 @@ var oi = { }; U(() => { p && s && r(); - }, [p, s, r]), ni(v, f); + }, [p, s, r]), si(v, f); const _ = J( () => ({ pointerEvents: "auto", @@ -1186,7 +1192,7 @@ var oi = { ...c }), [c, d] - ), S = J(() => ei(a), [a]); + ), S = J(() => oi(a), [a]); return /* @__PURE__ */ l.jsx( Gt.div, { @@ -1213,8 +1219,8 @@ var oi = { } ); }); -Ao.displayName = "ToastComponent"; -function ri(t, e) { +To.displayName = "ToastComponent"; +function ii(t, e) { var n; const o = t ?? "bottom", s = { "top-start": { ltr: "top-left", rtl: "top-right" }, @@ -1224,7 +1230,7 @@ function ri(t, e) { }[o]; return (n = s == null ? void 0 : s[e]) != null ? n : o; } -function Of(t) { +function Hf(t) { const { viewBox: e = "0 0 24 24", d: n, @@ -1233,7 +1239,7 @@ function Of(t) { } = t, s = Ze.toArray(t.path), a = g((i, c) => /* @__PURE__ */ l.jsx(ge, { ref: c, viewBox: e, ...r, ...i, children: s.length ? s : /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: n }) })); return a.displayName = o, a; } -function si(t) { +function li(t) { return /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -1242,7 +1248,7 @@ function si(t) { } ) }); } -function ai(t) { +function ci(t) { return /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -1260,26 +1266,26 @@ function $n(t) { } ) }); } -var [ii, sn] = ne({ +var [ui, sn] = ne({ name: "AlertContext", hookName: "useAlertContext", providerName: "" -}), [li, an] = ne({ +}), [di, an] = ne({ name: "AlertStylesContext", hookName: "useAlertStyles", providerName: "" -}), To = { - info: { icon: ai, colorScheme: "blue" }, +}), Mo = { + info: { icon: ci, colorScheme: "blue" }, warning: { icon: $n, colorScheme: "orange" }, - success: { icon: si, colorScheme: "green" }, + success: { icon: li, colorScheme: "green" }, error: { icon: $n, colorScheme: "red" }, - loading: { icon: so, colorScheme: "blue" } + loading: { icon: ao, colorScheme: "blue" } }; -function ci(t) { - return To[t].colorScheme; +function fi(t) { + return Mo[t].colorScheme; } -function ui(t) { - return To[t].icon; +function mi(t) { + return Mo[t].icon; } var ln = g( function(e, n) { @@ -1300,8 +1306,8 @@ var ln = g( } ); ln.displayName = "AlertDescription"; -function Mo(t) { - const { status: e } = sn(), n = ui(e), o = an(), r = e === "loading" ? o.spinner : o.icon; +function Do(t) { + const { status: e } = sn(), n = mi(e), o = an(), r = e === "loading" ? o.spinner : o.icon; return /* @__PURE__ */ l.jsx( h.span, { @@ -1314,7 +1320,7 @@ function Mo(t) { } ); } -Mo.displayName = "AlertIcon"; +Do.displayName = "AlertIcon"; var cn = g( function(e, n) { const o = an(), { status: r } = sn(); @@ -1333,7 +1339,7 @@ var cn = g( cn.displayName = "AlertTitle"; var un = g(function(e, n) { var o; - const { status: r = "info", addRole: s = !0, ...a } = W(e), i = (o = e.colorScheme) != null ? o : ci(r), c = le("Alert", { ...e, colorScheme: i }), u = { + const { status: r = "info", addRole: s = !0, ...a } = W(e), i = (o = e.colorScheme) != null ? o : fi(r), c = le("Alert", { ...e, colorScheme: i }), u = { width: "100%", display: "flex", alignItems: "center", @@ -1341,7 +1347,7 @@ var un = g(function(e, n) { overflow: "hidden", ...c.container }; - return /* @__PURE__ */ l.jsx(ii, { value: { status: r }, children: /* @__PURE__ */ l.jsx(li, { value: c, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(ui, { value: { status: r }, children: /* @__PURE__ */ l.jsx(di, { value: c, children: /* @__PURE__ */ l.jsx( h.div, { "data-status": r, @@ -1354,15 +1360,15 @@ var un = g(function(e, n) { ) }) }); }); un.displayName = "Alert"; -var di = { +var pi = { top: [], "top-left": [], "top-right": [], "bottom-left": [], bottom: [], "bottom-right": [] -}, Pe = fi(di); -function fi(t) { +}, Pe = hi(pi); +function hi(t) { let e = t; const n = /* @__PURE__ */ new Set(), o = (r) => { e = r(e), n.forEach((s) => s()); @@ -1379,7 +1385,7 @@ function fi(t) { })); }, notify: (r, s) => { - const a = mi(r, s), { position: i, id: c } = a; + const a = vi(r, s), { position: i, id: c } = a; return o((u) => { var d, f; const p = i.includes("top") ? [a, ...(d = u[i]) != null ? d : []] : [...(f = u[i]) != null ? f : [], a]; @@ -1395,7 +1401,7 @@ function fi(t) { return c && u !== -1 && (i[c][u] = { ...i[c][u], ...s, - message: Do(s) + message: Fo(s) }), i; }); }, @@ -1417,7 +1423,7 @@ function fi(t) { }, close: (r) => { o((s) => { - const a = jo(s, r); + const a = Ao(s, r); return a ? { ...s, [a]: s[a].map((i) => i.id == r ? { @@ -1431,7 +1437,7 @@ function fi(t) { }; } var On = 0; -function mi(t, e = {}) { +function vi(t, e = {}) { var n, o; On += 1; const r = (n = e.id) != null ? n : On, s = (o = e.position) != null ? o : "bottom"; @@ -1447,7 +1453,7 @@ function mi(t, e = {}) { containerStyle: e.containerStyle }; } -var pi = (t) => { +var gi = (t) => { const { status: e, variant: n = "solid", @@ -1478,7 +1484,7 @@ var pi = (t) => { width: "auto", colorScheme: c, children: [ - /* @__PURE__ */ l.jsx(Mo, { children: u }), + /* @__PURE__ */ l.jsx(Do, { children: u }), /* @__PURE__ */ l.jsxs(h.div, { flex: "1", maxWidth: "100%", children: [ r && /* @__PURE__ */ l.jsx(cn, { id: d == null ? void 0 : d.title, children: r }), i && /* @__PURE__ */ l.jsx(ln, { id: d == null ? void 0 : d.description, display: "block", children: i }) @@ -1497,23 +1503,23 @@ var pi = (t) => { } ); }; -function Do(t = {}) { - const { render: e, toastComponent: n = pi } = t; +function Fo(t = {}) { + const { render: e, toastComponent: n = gi } = t; return (r) => typeof e == "function" ? e({ ...r, ...t }) : /* @__PURE__ */ l.jsx(n, { ...r, ...t }); } -function Fo(t, e) { +function Lo(t, e) { const n = (r) => { var s; return { ...e, ...r, - position: ri( + position: ii( (s = r == null ? void 0 : r.position) != null ? s : e == null ? void 0 : e.position, t ) }; }, o = (r) => { - const s = n(r), a = Do(s); + const s = n(r), a = Fo(s); return Pe.notify(a, s); }; return o.update = (r, s) => { @@ -1539,17 +1545,17 @@ function Fo(t, e) { ); }, o.closeAll = Pe.closeAll, o.close = Pe.close, o.isActive = Pe.isActive, o; } -var [hi, vi] = ne({ +var [bi, yi] = ne({ name: "ToastOptionsContext", strict: !1 -}), Lo = (t) => { - const e = Os( +}), Bo = (t) => { + const e = Vs( Pe.subscribe, Pe.getState, Pe.getState ), { motionVariants: n, - component: o = Ao, + component: o = To, portalProps: r } = t, a = Object.keys(e).map((i) => { const c = e[i]; @@ -1559,8 +1565,8 @@ var [hi, vi] = ne({ role: "region", "aria-live": "polite", id: `chakra-toast-manager-${i}`, - style: ti(i), - children: /* @__PURE__ */ l.jsx(ao, { initial: !1, children: c.map((u) => /* @__PURE__ */ l.jsx( + style: ri(i), + children: /* @__PURE__ */ l.jsx(io, { initial: !1, children: c.map((u) => /* @__PURE__ */ l.jsx( o, { motionVariants: n, @@ -1572,32 +1578,32 @@ var [hi, vi] = ne({ i ); }); - return /* @__PURE__ */ l.jsx(es, { ...r, children: a }); + return /* @__PURE__ */ l.jsx(ts, { ...r, children: a }); }; -function gi(t) { - const { theme: e } = ts(), n = vi(); +function xi(t) { + const { theme: e } = ns(), n = yi(); return J( - () => Fo(e.direction, { + () => Lo(e.direction, { ...n, ...t }), [t, e.direction, n] ); } -var bi = { +var Si = { duration: 5e3, variant: "solid" }, Ke = { - theme: ns, + theme: os, colorMode: "light", toggleColorMode: () => { }, setColorMode: () => { }, - defaultOptions: bi, + defaultOptions: Si, forced: !1 }; -function Vf({ +function Gf({ theme: t = Ke.theme, colorMode: e = Ke.colorMode, toggleColorMode: n = Ke.toggleColorMode, @@ -1615,8 +1621,8 @@ function Vf({ forced: c }; return { - ToastContainer: () => /* @__PURE__ */ l.jsx(Io, { theme: t, children: /* @__PURE__ */ l.jsx(bt.Provider, { value: u, children: /* @__PURE__ */ l.jsx( - Lo, + ToastContainer: () => /* @__PURE__ */ l.jsx(Eo, { theme: t, children: /* @__PURE__ */ l.jsx(bt.Provider, { value: u, children: /* @__PURE__ */ l.jsx( + Bo, { defaultOptions: r, motionVariants: s, @@ -1624,33 +1630,33 @@ function Vf({ component: i } ) }) }), - toast: Fo(t.direction, r) + toast: Lo(t.direction, r) }; } -var Bo = (t) => function({ +var Ro = (t) => function({ children: n, theme: o = t, toastOptions: r, ...s }) { - return /* @__PURE__ */ l.jsxs(Ja, { theme: o, ...s, children: [ - /* @__PURE__ */ l.jsx(hi, { value: r == null ? void 0 : r.defaultOptions, children: n }), - /* @__PURE__ */ l.jsx(Lo, { ...r }) + return /* @__PURE__ */ l.jsxs(ti, { theme: o, ...s, children: [ + /* @__PURE__ */ l.jsx(bi, { value: r == null ? void 0 : r.defaultOptions, children: n }), + /* @__PURE__ */ l.jsx(Bo, { ...r }) ] }); -}, yi = Bo(os), zf = Bo(rs), [xi, St] = ne({ +}, _i = Ro(rs), Wf = Ro(ss), [ki, St] = ne({ name: "AccordionStylesContext", hookName: "useAccordionStyles", providerName: "" -}), [Si, _t] = ne({ +}), [Ci, _t] = ne({ name: "AccordionItemContext", hookName: "useAccordionItemContext", providerName: "" }), [ - _i, - Hf, - ki, - Ci -] = Kt(), wi = g( + wi, + Kf, + Pi, + Ni +] = Kt(), Ii = g( function(e, n) { const { getButtonProps: o } = _t(), r = o(e, n), a = { display: "flex", @@ -1669,8 +1675,8 @@ var Bo = (t) => function({ ); } ); -wi.displayName = "AccordionButton"; -function Pi(t) { +Ii.displayName = "AccordionButton"; +function Ei(t) { const { onChange: e, defaultIndex: n, @@ -1679,8 +1685,8 @@ function Pi(t) { allowToggle: s, ...a } = t; - Ei(t), ji(t); - const i = ki(), [c, u] = F(-1); + Ti(t), Mi(t); + const i = Pi(), [c, u] = F(-1); U(() => () => { u(-1); }, []); @@ -1711,20 +1717,20 @@ function Pi(t) { descendants: i }; } -var [Ni, dn] = ne({ +var [ji, dn] = ne({ name: "AccordionContext", hookName: "useAccordionContext", providerName: "Accordion" }); -function Ii(t) { +function Ai(t) { const { isDisabled: e, isFocusable: n, id: o, ...r } = t, { getAccordionItemProps: s, setFocusedIndex: a } = dn(), i = V(null), c = Ve(), u = o ?? c, d = `accordion-button-${u}`, f = `accordion-panel-${u}`; - Ai(t); - const { register: m, index: p, descendants: b } = Ci({ + Di(t); + const { register: m, index: p, descendants: b } = Ni({ disabled: e && !n }), { isOpen: y, onChange: v } = s( p === -1 ? null : p ); - Ti({ isOpen: y, isDisabled: e }); + Fi({ isOpen: y, isDisabled: e }); const _ = () => { v == null || v(!0); }, S = () => { @@ -1805,33 +1811,33 @@ function Ii(t) { htmlProps: r }; } -function Ei(t) { +function Ti(t) { const e = t.index || t.defaultIndex, n = e != null && !Array.isArray(e) && t.allowMultiple; rt({ condition: !!n, message: `If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof e},` }); } -function ji(t) { +function Mi(t) { rt({ condition: !!(t.allowMultiple && t.allowToggle), message: "If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not" }); } -function Ai(t) { +function Di(t) { rt({ condition: !!(t.isFocusable && !t.isDisabled), message: `Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. ` }); } -function Ti(t) { +function Fi(t) { rt({ condition: t.isOpen && !!t.isDisabled, message: "Cannot open a disabled accordion item" }); } -function Mi(t) { +function Li(t) { const { isOpen: e, isDisabled: n } = _t(), { reduceMotion: o } = dn(), r = k("chakra-accordion__icon", t.className), s = St(), a = { opacity: n ? 0.4 : 1, transform: e ? "rotate(-180deg)" : void 0, @@ -1857,14 +1863,14 @@ function Mi(t) { } ); } -Mi.displayName = "AccordionIcon"; -var Di = g( +Li.displayName = "AccordionIcon"; +var Bi = g( function(e, n) { - const { children: o, className: r } = e, { htmlProps: s, ...a } = Ii(e), c = { + const { children: o, className: r } = e, { htmlProps: s, ...a } = Ai(e), c = { ...St().container, overflowAnchor: "none" }, u = J(() => a, [a]); - return /* @__PURE__ */ l.jsx(Si, { value: u, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Ci, { value: u, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -1879,8 +1885,8 @@ var Di = g( ) }); } ); -Di.displayName = "AccordionItem"; -var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { +Bi.displayName = "AccordionItem"; +var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { exit: { height: { duration: 0.2, ease: dt.ease }, opacity: { duration: 0.3, ease: dt.ease } @@ -1889,7 +1895,7 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { height: { duration: 0.3, ease: dt.ease }, opacity: { duration: 0.4, ease: dt.ease } } -}, Li = { +}, $i = { exit: ({ animateOpacity: t, startingHeight: e, @@ -1899,7 +1905,7 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { }) => { var s; return { - ...t && { opacity: Fi(e) ? 1 : 0 }, + ...t && { opacity: Ri(e) ? 1 : 0 }, height: e, transitionEnd: o == null ? void 0 : o.exit, transition: (s = n == null ? void 0 : n.exit) != null ? s : jn.exit(Vn.exit, r) @@ -1920,7 +1926,7 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { transition: (s = n == null ? void 0 : n.enter) != null ? s : jn.enter(Vn.enter, r) }; } -}, Ro = Vs( +}, $o = zs( (t, e) => { const { in: n, @@ -1956,7 +1962,7 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { } } }, v = o ? n : !0, _ = n || o ? "enter" : "exit"; - return /* @__PURE__ */ l.jsx(ao, { initial: !1, custom: y, children: v && /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(io, { initial: !1, custom: y, children: v && /* @__PURE__ */ l.jsx( Gt.div, { ref: e, @@ -1968,7 +1974,7 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { ...i }, custom: y, - variants: Li, + variants: $i, initial: o ? "exit" : !1, animate: _, exit: "exit" @@ -1976,22 +1982,22 @@ var Fi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { ) }); } ); -Ro.displayName = "Collapse"; -var Bi = g( +$o.displayName = "Collapse"; +var Oi = g( function(e, n) { const { className: o, motionProps: r, ...s } = e, { reduceMotion: a } = dn(), { getPanelProps: i, isOpen: c } = _t(), u = i(s, n), d = k("chakra-accordion__panel", o), f = St(); a || delete u.hidden; const m = /* @__PURE__ */ l.jsx(h.div, { ...u, __css: f.panel, className: d }); - return a ? m : /* @__PURE__ */ l.jsx(Ro, { in: c, ...r, children: m }); + return a ? m : /* @__PURE__ */ l.jsx($o, { in: c, ...r, children: m }); } ); -Bi.displayName = "AccordionPanel"; -var Ri = g(function({ children: e, reduceMotion: n, ...o }, r) { - const s = le("Accordion", o), a = W(o), { htmlProps: i, descendants: c, ...u } = Pi(a), d = J( +Oi.displayName = "AccordionPanel"; +var Vi = g(function({ children: e, reduceMotion: n, ...o }, r) { + const s = le("Accordion", o), a = W(o), { htmlProps: i, descendants: c, ...u } = Ei(a), d = J( () => ({ ...u, reduceMotion: !!n }), [u, n] ); - return /* @__PURE__ */ l.jsx(_i, { value: c, children: /* @__PURE__ */ l.jsx(Ni, { value: d, children: /* @__PURE__ */ l.jsx(xi, { value: s, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(wi, { value: c, children: /* @__PURE__ */ l.jsx(ji, { value: d, children: /* @__PURE__ */ l.jsx(ki, { value: s, children: /* @__PURE__ */ l.jsx( h.div, { ref: r, @@ -2002,16 +2008,16 @@ var Ri = g(function({ children: e, reduceMotion: n, ...o }, r) { } ) }) }) }); }); -Ri.displayName = "Accordion"; -function Gf() { +Vi.displayName = "Accordion"; +function Uf() { const { isOpen: t, isDisabled: e, onClose: n, onOpen: o } = _t(); return { isOpen: t, onClose: n, isDisabled: e, onOpen: o }; } -var [$i, $o] = ne({ +var [zi, Oo] = ne({ name: "AvatarStylesContext", hookName: "useAvatarStyles", providerName: "" -}), Oi = { +}), Hi = { "top-start": { top: "0", insetStart: "0", @@ -2032,14 +2038,14 @@ var [$i, $o] = ne({ insetEnd: "0", transform: "translate(25%, 25%)" } -}, Vi = g( +}, Gi = g( function(e, n) { - const { placement: o = "bottom-end", className: r, ...s } = e, a = $o(), c = { + const { placement: o = "bottom-end", className: r, ...s } = e, a = Oo(), c = { position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", - ...Oi[o], + ...Hi[o], ...a.badge }; return /* @__PURE__ */ l.jsx( @@ -2053,18 +2059,18 @@ var [$i, $o] = ne({ ); } ); -Vi.displayName = "AvatarBadge"; -function zi(t) { +Gi.displayName = "AvatarBadge"; +function Wi(t) { var e; const n = t.split(" "), o = (e = n[0]) != null ? e : "", r = n.length > 1 ? n[n.length - 1] : ""; return o && r ? `${o.charAt(0)}${r.charAt(0)}` : o.charAt(0); } -function Oo(t) { - const { name: e, getInitials: n, ...o } = t, r = $o(); +function Vo(t) { + const { name: e, getInitials: n, ...o } = t, r = Oo(); return /* @__PURE__ */ l.jsx(h.div, { role: "img", "aria-label": e, ...o, __css: r.label, children: e ? n == null ? void 0 : n(e) : null }); } -Oo.displayName = "AvatarName"; -var Vo = (t) => /* @__PURE__ */ l.jsxs( +Vo.displayName = "AvatarName"; +var zo = (t) => /* @__PURE__ */ l.jsxs( h.svg, { viewBox: "0 0 128 128", @@ -2095,7 +2101,7 @@ var Vo = (t) => /* @__PURE__ */ l.jsxs( return /* @__PURE__ */ l.jsx("img", { width: o, height: r, ref: n, alt: s, ...a }); }); vt.displayName = "NativeImage"; -function zo(t) { +function Ho(t) { const { loading: e, src: n, @@ -2129,14 +2135,14 @@ function zo(t) { }; }, [u, m, c]), c ? "loaded" : u; } -var Hi = (t, e) => t !== "loaded" && e === "beforeLoadOrError" || t === "failed" && e === "onError"; -function Gi(t, e = []) { +var Ki = (t, e) => t !== "loaded" && e === "beforeLoadOrError" || t === "failed" && e === "onError"; +function Ui(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -var Wi = g(function(e, n) { +var qi = g(function(e, n) { const { fallbackSrc: o, fallback: r, @@ -2150,15 +2156,15 @@ var Wi = g(function(e, n) { fallbackStrategy: m = "beforeLoadOrError", referrerPolicy: p, ...b - } = e, y = o !== void 0 || r !== void 0, v = u != null || d || !y, _ = zo({ + } = e, y = o !== void 0 || r !== void 0, v = u != null || d || !y, _ = Ho({ ...e, crossOrigin: f, ignoreFallback: v - }), S = Hi(_, m), N = { + }), S = Ki(_, m), N = { ref: n, objectFit: c, objectPosition: i, - ...v ? b : Gi(b, ["onError", "onLoad"]) + ...v ? b : Ui(b, ["onError", "onLoad"]) }; return S ? r || /* @__PURE__ */ l.jsx( h.img, @@ -2182,9 +2188,9 @@ var Wi = g(function(e, n) { } ); }); -Wi.displayName = "Image"; -var Wf = g((t, e) => /* @__PURE__ */ l.jsx(h.img, { ref: e, as: vt, className: "chakra-image", ...t })); -function Ho(t) { +qi.displayName = "Image"; +var qf = g((t, e) => /* @__PURE__ */ l.jsx(h.img, { ref: e, as: vt, className: "chakra-image", ...t })); +function Go(t) { const { src: e, srcSet: n, @@ -2195,13 +2201,13 @@ function Ho(t) { borderRadius: i, loading: c, iconLabel: u, - icon: d = /* @__PURE__ */ l.jsx(Vo, {}), + icon: d = /* @__PURE__ */ l.jsx(zo, {}), ignoreFallback: f, referrerPolicy: m, crossOrigin: p - } = t, y = zo({ src: e, onError: o, crossOrigin: p, ignoreFallback: f }) === "loaded"; + } = t, y = Ho({ src: e, onError: o, crossOrigin: p, ignoreFallback: f }) === "loaded"; return !e || !y ? a ? /* @__PURE__ */ l.jsx( - Oo, + Vo, { className: "chakra-avatar__initials", getInitials: s, @@ -2230,8 +2236,8 @@ function Ho(t) { } ); } -Ho.displayName = "AvatarImage"; -var Go = { +Go.displayName = "AvatarImage"; +var Wo = { display: "inline-flex", alignItems: "center", justifyContent: "center", @@ -2240,7 +2246,7 @@ var Go = { fontWeight: "medium", position: "relative", flexShrink: 0 -}, Ki = g((t, e) => { +}, Xi = g((t, e) => { const n = le("Avatar", t), [o, r] = F(!1), { src: s, srcSet: a, @@ -2249,8 +2255,8 @@ var Go = { borderRadius: u = "full", onError: d, onLoad: f, - getInitials: m = zi, - icon: p = /* @__PURE__ */ l.jsx(Vo, {}), + getInitials: m = Wi, + icon: p = /* @__PURE__ */ l.jsx(zo, {}), iconLabel: b = " avatar", loading: y, children: v, @@ -2261,7 +2267,7 @@ var Go = { } = W(t), w = { borderRadius: u, borderWidth: c ? "2px" : void 0, - ...Go, + ...Wo, ...n.container }; return _ && (w.borderColor = _), /* @__PURE__ */ l.jsx( @@ -2272,9 +2278,9 @@ var Go = { className: k("chakra-avatar", t.className), "data-loaded": z(o), __css: w, - children: /* @__PURE__ */ l.jsxs($i, { value: n, children: [ + children: /* @__PURE__ */ l.jsxs(zi, { value: n, children: [ /* @__PURE__ */ l.jsx( - Ho, + Go, { src: s, srcSet: a, @@ -2297,14 +2303,14 @@ var Go = { } ); }); -Ki.displayName = "Avatar"; -function Ui(t) { +Xi.displayName = "Avatar"; +function Yi(t) { const e = Object.assign({}, t); for (let n in e) e[n] === void 0 && delete e[n]; return e; } -var qi = g( +var Zi = g( function(e, n) { const o = le("Avatar", e), { children: r, @@ -2321,7 +2327,7 @@ var qi = g( borderColor: (N = _.props.borderColor) != null ? N : s, showBorder: !0 }; - return ve(_, Ui(w)); + return ve(_, Yi(w)); }), y = { display: "flex", alignItems: "center", @@ -2331,7 +2337,7 @@ var qi = g( }, v = { borderRadius: c, marginStart: i, - ...Go, + ...Wo, ...o.excessLabel }; return /* @__PURE__ */ l.jsxs( @@ -2350,11 +2356,11 @@ var qi = g( ); } ); -qi.displayName = "AvatarGroup"; -var [Xi, fn] = ne({ +Zi.displayName = "AvatarGroup"; +var [Ji, fn] = ne({ name: "BreadcrumbStylesContext", errorMessage: `useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Wo = g( +}), Ko = g( function(e, n) { const { isCurrentPage: o, as: r, className: s, href: a, ...i } = e, c = fn(), u = { ref: n, @@ -2365,7 +2371,7 @@ var [Xi, fn] = ne({ return o ? /* @__PURE__ */ l.jsx(h.span, { "aria-current": "page", __css: c.link, ...u }) : /* @__PURE__ */ l.jsx(h.a, { __css: c.link, href: a, ...u }); } ); -Wo.displayName = "BreadcrumbLink"; +Ko.displayName = "BreadcrumbLink"; var Lt = g( function(e, n) { const { spacing: o, ...r } = e, s = fn(), a = { @@ -2384,7 +2390,7 @@ var Lt = g( } ); Lt.displayName = "BreadcrumbSeparator"; -var Yi = g( +var Qi = g( function(e, n) { const { isCurrentPage: o, @@ -2394,7 +2400,7 @@ var Yi = g( children: i, className: c, ...u - } = e, f = Oe(i).map((y) => y.type === Wo ? ve(y, { + } = e, f = Oe(i).map((y) => y.type === Ko ? ve(y, { isCurrentPage: o }) : y.type === Lt ? ve(y, { spacing: a, @@ -2410,8 +2416,8 @@ var Yi = g( ] }); } ); -Yi.displayName = "BreadcrumbItem"; -var Zi = g( +Qi.displayName = "BreadcrumbItem"; +var el = g( function(e, n) { const o = le("Breadcrumb", e), r = W(e), { children: s, @@ -2435,7 +2441,7 @@ var Zi = g( className: b, __css: o.container, ...d, - children: /* @__PURE__ */ l.jsx(Xi, { value: o, children: /* @__PURE__ */ l.jsx( + children: /* @__PURE__ */ l.jsx(Ji, { value: o, children: /* @__PURE__ */ l.jsx( h.ol, { className: "chakra-breadcrumb__list", @@ -2452,11 +2458,11 @@ var Zi = g( ); } ); -Zi.displayName = "Breadcrumb"; -var [Ji, Qi] = ne({ +el.displayName = "Breadcrumb"; +var [tl, nl] = ne({ strict: !1, name: "ButtonGroupContext" -}), el = { +}), ol = { horizontal: { "> *:first-of-type:not(:last-of-type)": { borderEndRadius: 0 }, "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, @@ -2467,14 +2473,14 @@ var [Ji, Qi] = ne({ "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, "> *:not(:first-of-type):last-of-type": { borderTopRadius: 0 } } -}, tl = { +}, rl = { horizontal: (t) => ({ "& > *:not(style) ~ *:not(style)": { marginStart: t } }), vertical: (t) => ({ "& > *:not(style) ~ *:not(style)": { marginTop: t } }) -}, nl = g( +}, sl = g( function(e, n) { const { size: o, @@ -2492,10 +2498,10 @@ var [Ji, Qi] = ne({ ); let b = { display: "inline-flex", - ...c ? el[d] : tl[d](i) + ...c ? ol[d] : rl[d](i) }; const y = d === "vertical"; - return /* @__PURE__ */ l.jsx(Ji, { value: p, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(tl, { value: p, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -2510,8 +2516,8 @@ var [Ji, Qi] = ne({ ) }); } ); -nl.displayName = "ButtonGroup"; -function ol(t) { +sl.displayName = "ButtonGroup"; +function al(t) { const [e, n] = F(!t); return { ref: x((s) => { s && n(s.tagName === "BUTTON"); @@ -2540,7 +2546,7 @@ function Rt(t) { label: e, placement: n, spacing: o = "0.5rem", - children: r = /* @__PURE__ */ l.jsx(so, { color: "currentColor", width: "1em", height: "1em" }), + children: r = /* @__PURE__ */ l.jsx(ao, { color: "currentColor", width: "1em", height: "1em" }), className: s, __css: a, ...i @@ -2559,8 +2565,8 @@ function Rt(t) { return /* @__PURE__ */ l.jsx(h.div, { className: c, ...i, __css: d, children: r }); } Rt.displayName = "ButtonSpinner"; -var Ko = g((t, e) => { - const n = Qi(), o = Se("Button", { ...n, ...t }), { +var Uo = g((t, e) => { + const n = nl(), o = Se("Button", { ...n, ...t }), { isDisabled: r = n == null ? void 0 : n.isDisabled, isLoading: s, isActive: a, @@ -2590,11 +2596,11 @@ var Ko = g((t, e) => { ...o, ...!!n && { _focus: I } }; - }, [o, n]), { ref: N, type: P } = ol(v), w = { rightIcon: u, leftIcon: c, iconSpacing: f, children: i }; + }, [o, n]), { ref: N, type: P } = al(v), w = { rightIcon: u, leftIcon: c, iconSpacing: f, children: i }; return /* @__PURE__ */ l.jsxs( h.button, { - ref: ss(e, N), + ref: as(e, N), as: v, type: m ?? P, "data-active": z(a), @@ -2629,7 +2635,7 @@ var Ko = g((t, e) => { } ); }); -Ko.displayName = "Button"; +Uo.displayName = "Button"; function zn(t) { const { leftIcon: e, rightIcon: n, children: o, iconSpacing: r } = t; return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [ @@ -2638,14 +2644,14 @@ function zn(t) { n && /* @__PURE__ */ l.jsx(Bt, { marginStart: r, children: n }) ] }); } -var rl = g( +var il = g( (t, e) => { const { icon: n, children: o, isRound: r, "aria-label": s, ...a } = t, i = n || o, c = Zt(i) ? ve(i, { "aria-hidden": !0, focusable: !1 }) : null; return /* @__PURE__ */ l.jsx( - Ko, + Uo, { padding: "0", borderRadius: r ? "full" : void 0, @@ -2657,8 +2663,8 @@ var rl = g( ); } ); -rl.displayName = "IconButton"; -var [sl, mn] = Eo("Card"), Kf = g(function(e, n) { +il.displayName = "IconButton"; +var [ll, mn] = jo("Card"), Xf = g(function(e, n) { const { className: o, ...r } = e, s = mn(); return /* @__PURE__ */ l.jsx( h.div, @@ -2669,7 +2675,7 @@ var [sl, mn] = Eo("Card"), Kf = g(function(e, n) { ...r } ); -}), Uf = g( +}), Yf = g( function(e, n) { const { className: o, justify: r, ...s } = e, a = mn(); return /* @__PURE__ */ l.jsx( @@ -2686,7 +2692,7 @@ var [sl, mn] = Eo("Card"), Kf = g(function(e, n) { } ); } -), qf = g( +), Zf = g( function(e, n) { const { className: o, ...r } = e, s = mn(); return /* @__PURE__ */ l.jsx( @@ -2699,7 +2705,7 @@ var [sl, mn] = Eo("Card"), Kf = g(function(e, n) { } ); } -), Xf = g(function(e, n) { +), Jf = g(function(e, n) { const { className: o, children: r, @@ -2724,17 +2730,17 @@ var [sl, mn] = Eo("Card"), Kf = g(function(e, n) { ...u.container }, ...c, - children: /* @__PURE__ */ l.jsx(sl, { value: u, children: r }) + children: /* @__PURE__ */ l.jsx(ll, { value: u, children: r }) } ); -}), [al, il] = ne({ +}), [cl, ul] = ne({ name: "CheckboxGroupContext", strict: !1 }); function Hn(t) { return t && Re(t) && Re(t.target); } -function ll(t = {}) { +function dl(t = {}) { const { defaultValue: e, value: n, @@ -2769,8 +2775,8 @@ function ll(t = {}) { getCheckboxProps: d }; } -function cl(t) { - const { colorScheme: e, size: n, variant: o, children: r, isDisabled: s } = t, { value: a, onChange: i } = ll(t), c = J( +function fl(t) { + const { colorScheme: e, size: n, variant: o, children: r, isDisabled: s } = t, { value: a, onChange: i } = dl(t), c = J( () => ({ size: n, onChange: i, @@ -2781,14 +2787,14 @@ function cl(t) { }), [n, i, e, a, o, s] ); - return /* @__PURE__ */ l.jsx(al, { value: c, children: r }); + return /* @__PURE__ */ l.jsx(cl, { value: c, children: r }); } -cl.displayName = "CheckboxGroup"; -function ul(t) { +fl.displayName = "CheckboxGroup"; +function ml(t) { const [e, n] = F(t), [o, r] = F(!1); return t !== e && (r(!0), n(t)), o; } -function dl(t) { +function pl(t) { return /* @__PURE__ */ l.jsx( h.svg, { @@ -2805,7 +2811,7 @@ function dl(t) { } ); } -function fl(t) { +function hl(t) { return /* @__PURE__ */ l.jsx( h.svg, { @@ -2817,8 +2823,8 @@ function fl(t) { } ); } -function ml(t) { - const { isIndeterminate: e, isChecked: n, ...o } = t, r = e ? fl : dl; +function vl(t) { + const { isIndeterminate: e, isChecked: n, ...o } = t, r = e ? hl : pl; return n || e ? /* @__PURE__ */ l.jsx( h.div, { @@ -2842,24 +2848,24 @@ var pn = { overflow: "hidden", whiteSpace: "nowrap", position: "absolute" -}, pl = h("span", { +}, gl = h("span", { baseStyle: pn }); -pl.displayName = "VisuallyHidden"; -var hl = h("input", { +gl.displayName = "VisuallyHidden"; +var bl = h("input", { baseStyle: pn }); -hl.displayName = "VisuallyHiddenInput"; +bl.displayName = "VisuallyHiddenInput"; var Gn = !1, at = null, $e = !1, $t = !1, Ot = /* @__PURE__ */ new Set(); function hn(t, e) { Ot.forEach((n) => n(t, e)); } -var vl = typeof window < "u" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : !1; -function gl(t) { - return !(t.metaKey || !vl && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta"); +var yl = typeof window < "u" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : !1; +function xl(t) { + return !(t.metaKey || !yl && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta"); } function Wn(t) { - $e = !0, gl(t) && (at = "keyboard", hn("keyboard", t)); + $e = !0, xl(t) && (at = "keyboard", hn("keyboard", t)); } function Ue(t) { if (at = "pointer", t.type === "mousedown" || t.type === "pointerdown") { @@ -2875,44 +2881,44 @@ function Ue(t) { hn("pointer", t); } } -function bl(t) { +function Sl(t) { return t.mozInputSource === 0 && t.isTrusted ? !0 : t.detail === 0 && !t.pointerType; } -function yl(t) { - bl(t) && ($e = !0, at = "virtual"); +function _l(t) { + Sl(t) && ($e = !0, at = "virtual"); } -function xl(t) { +function kl(t) { t.target === window || t.target === document || (!$e && !$t && (at = "virtual", hn("virtual", t)), $e = !1, $t = !1); } -function Sl() { +function Cl() { $e = !1, $t = !0; } function Kn() { return at !== "pointer"; } -function _l() { +function wl() { if (typeof window > "u" || Gn) return; const { focus: t } = HTMLElement.prototype; HTMLElement.prototype.focus = function(...n) { $e = !0, t.apply(this, n); - }, document.addEventListener("keydown", Wn, !0), document.addEventListener("keyup", Wn, !0), document.addEventListener("click", yl, !0), window.addEventListener("focus", xl, !0), window.addEventListener("blur", Sl, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Ue, !0), document.addEventListener("pointermove", Ue, !0), document.addEventListener("pointerup", Ue, !0)) : (document.addEventListener("mousedown", Ue, !0), document.addEventListener("mousemove", Ue, !0), document.addEventListener("mouseup", Ue, !0)), Gn = !0; + }, document.addEventListener("keydown", Wn, !0), document.addEventListener("keyup", Wn, !0), document.addEventListener("click", _l, !0), window.addEventListener("focus", kl, !0), window.addEventListener("blur", Cl, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Ue, !0), document.addEventListener("pointermove", Ue, !0), document.addEventListener("pointerup", Ue, !0)) : (document.addEventListener("mousedown", Ue, !0), document.addEventListener("mousemove", Ue, !0), document.addEventListener("mouseup", Ue, !0)), Gn = !0; } -function Uo(t) { - _l(), t(Kn()); +function qo(t) { + wl(), t(Kn()); const e = () => t(Kn()); return Ot.add(e), () => { Ot.delete(e); }; } -function kl(t, e = []) { +function Pl(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -function qo(t = {}) { - const e = io(t), { +function Xo(t = {}) { + const e = lo(t), { isDisabled: n, isReadOnly: o, isRequired: r, @@ -2934,7 +2940,7 @@ function qo(t = {}) { "aria-labelledby": N, "aria-invalid": P, ...w - } = t, I = kl(w, [ + } = t, I = Pl(w, [ "isDisabled", "isReadOnly", "isRequired", @@ -2944,7 +2950,7 @@ function qo(t = {}) { "onFocus", "aria-describedby" ]), G = xe(p), L = xe(i), Q = xe(c), [D, T] = F(!1), [$, R] = F(!1), [K, Y] = F(!1), [q, Z] = F(!1); - U(() => Uo(T), []); + U(() => qo(T), []); const A = V(null), [ae, me] = F(!0), [de, oe] = F(!!d), fe = f !== void 0, ee = fe ? f : de, se = x( (M) => { if (o || n) { @@ -3106,7 +3112,7 @@ function qo(t = {}) { (M = {}, O = null) => ({ ...M, ref: O, - onMouseDown: j(M.onMouseDown, Cl), + onMouseDown: j(M.onMouseDown, Nl), "data-disabled": z(n), "data-checked": z(ee), "data-invalid": z(s) @@ -3132,23 +3138,23 @@ function qo(t = {}) { htmlProps: I }; } -function Cl(t) { +function Nl(t) { t.preventDefault(), t.stopPropagation(); } -var wl = { +var Il = { display: "inline-flex", alignItems: "center", justifyContent: "center", verticalAlign: "top", userSelect: "none", flexShrink: 0 -}, Pl = { +}, El = { cursor: "pointer", display: "inline-flex", alignItems: "center", verticalAlign: "top", position: "relative" -}, Nl = Ee({ +}, jl = Ee({ from: { opacity: 0, strokeDashoffset: 16, @@ -3159,28 +3165,28 @@ var wl = { strokeDashoffset: 0, transform: "scale(1)" } -}), Il = Ee({ +}), Al = Ee({ from: { opacity: 0 }, to: { opacity: 1 } -}), El = Ee({ +}), Tl = Ee({ from: { transform: "scaleX(0.65)" }, to: { transform: "scaleX(1)" } -}), jl = g(function(e, n) { - const o = il(), r = { ...o, ...e }, s = le("Checkbox", r), a = W(e), { +}), Ml = g(function(e, n) { + const o = ul(), r = { ...o, ...e }, s = le("Checkbox", r), a = W(e), { spacing: i = "0.5rem", className: c, children: u, iconColor: d, iconSize: f, - icon: m = /* @__PURE__ */ l.jsx(ml, {}), + icon: m = /* @__PURE__ */ l.jsx(vl, {}), isChecked: p, isDisabled: b = o == null ? void 0 : o.isDisabled, onChange: y, @@ -3197,14 +3203,14 @@ var wl = { getCheckboxProps: I, getLabelProps: G, getRootProps: L - } = qo({ + } = Xo({ ..._, isDisabled: b, isChecked: S, onChange: N - }), Q = ul(P.isChecked), D = J( + }), Q = ml(P.isChecked), D = J( () => ({ - animation: Q ? P.isIndeterminate ? `${Il} 20ms linear, ${El} 200ms linear` : `${Nl} 200ms linear` : void 0, + animation: Q ? P.isIndeterminate ? `${Al} 20ms linear, ${Tl} 200ms linear` : `${jl} 200ms linear` : void 0, fontSize: f, color: d, ...s.icon @@ -3218,7 +3224,7 @@ var wl = { return /* @__PURE__ */ l.jsxs( h.label, { - __css: { ...Pl, ...s.container }, + __css: { ...El, ...s.container }, className: k("chakra-checkbox", c), ...L(), children: [ @@ -3232,7 +3238,7 @@ var wl = { /* @__PURE__ */ l.jsx( h.span, { - __css: { ...wl, ...s.control }, + __css: { ...Il, ...s.control }, className: "chakra-checkbox__control", ...I(), children: T @@ -3254,8 +3260,8 @@ var wl = { } ); }); -jl.displayName = "Checkbox"; -var Al = (t) => { +Ml.displayName = "Checkbox"; +var Dl = (t) => { const { type: e = "checkbox", _hover: n, @@ -3300,8 +3306,8 @@ var Al = (t) => { } ); }; -Al.displayName = "ControlBox"; -function Tl(t = {}) { +Dl.displayName = "ControlBox"; +function Fl(t = {}) { const { onChange: e, precision: n, @@ -3314,7 +3320,7 @@ function Tl(t = {}) { } = t, u = xe(e), [d, f] = F(() => { var D; return o == null ? "" : (D = Tt(o, s, n)) != null ? D : ""; - }), m = typeof r < "u", p = m ? r : d, b = Xo(je(p), s), y = n ?? b, v = x( + }), m = typeof r < "u", p = m ? r : d, b = Yo(je(p), s), y = n ?? b, v = x( (D) => { D !== p && (m || f(D.toString()), u == null || u(D.toString(), je(D))); }, @@ -3322,7 +3328,7 @@ function Tl(t = {}) { ), _ = x( (D) => { let T = D; - return c && (T = as(T, a, i)), lo(T, y); + return c && (T = is(T, a, i)), co(T, y); }, [y, c, i, a] ), S = x( @@ -3368,24 +3374,24 @@ function Tl(t = {}) { function je(t) { return parseFloat(t.toString().replace(/[^\w.-]+/g, "")); } -function Xo(t, e) { +function Yo(t, e) { return Math.max(An(e), An(t)); } function Tt(t, e, n) { const o = je(t); if (Number.isNaN(o)) return; - const r = Xo(o, e); - return lo(o, n ?? r); + const r = Yo(o, e); + return co(o, n ?? r); } -var [Ml, vn] = ne({ +var [Ll, vn] = ne({ name: "EditableStylesContext", errorMessage: `useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [Dl, it] = ne({ +}), [Bl, it] = ne({ name: "EditableContext", errorMessage: "useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``" }); -function Yf() { +function Qf() { const { isEditing: t, onSubmit: e, onCancel: n, onEdit: o, isDisabled: r } = it(); return { isEditing: t, @@ -3400,7 +3406,7 @@ var gn = { fontWeight: "inherit", textAlign: "inherit", bg: "transparent" -}, Fl = g( +}, Rl = g( function(e, n) { const { getInputProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__input", e.className); return /* @__PURE__ */ l.jsx( @@ -3417,8 +3423,8 @@ var gn = { ); } ); -Fl.displayName = "EditableInput"; -var Ll = g( +Rl.displayName = "EditableInput"; +var $l = g( function(e, n) { const { getPreviewProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__preview", e.className); return /* @__PURE__ */ l.jsx( @@ -3436,8 +3442,8 @@ var Ll = g( ); } ); -Ll.displayName = "EditablePreview"; -var Bl = g( +$l.displayName = "EditablePreview"; +var Ol = g( function(e, n) { const { getTextareaProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__textarea", e.className); return /* @__PURE__ */ l.jsx( @@ -3454,27 +3460,27 @@ var Bl = g( ); } ); -Bl.displayName = "EditableTextarea"; -function Rl(t) { +Ol.displayName = "EditableTextarea"; +function Vl(t) { return "current" in t; } -var Yo = () => typeof window < "u"; -function $l() { +var Zo = () => typeof window < "u"; +function zl() { var t; const e = navigator.userAgentData; return (t = e == null ? void 0 : e.platform) != null ? t : navigator.platform; } -var Ol = (t) => Yo() && t.test(navigator.vendor), Vl = (t) => Yo() && t.test($l()), zl = () => Vl(/mac|iphone|ipad|ipod/i), Hl = () => zl() && Ol(/apple/i); -function Zo(t) { +var Hl = (t) => Zo() && t.test(navigator.vendor), Gl = (t) => Zo() && t.test(zl()), Wl = () => Gl(/mac|iphone|ipad|ipod/i), Kl = () => Wl() && Hl(/apple/i); +function Jo(t) { const { ref: e, elements: n, enabled: o } = t, r = () => { var s, a; return (a = (s = e.current) == null ? void 0 : s.ownerDocument) != null ? a : document; }; - co(r, "pointerdown", (s) => { - if (!Hl() || !o) + uo(r, "pointerdown", (s) => { + if (!Kl() || !o) return; const a = s.target, c = (n ?? [e]).some((u) => { - const d = Rl(u) ? u.current : u; + const d = Vl(u) ? u.current : u; return (d == null ? void 0 : d.contains(a)) || d === a; }); r().activeElement !== a && c && (s.preventDefault(), a.focus()); @@ -3483,7 +3489,7 @@ function Zo(t) { function Un(t, e) { return t ? t === e || t.contains(e) : !1; } -function Gl(t = {}) { +function Ul(t = {}) { const { onChange: e, onCancel: n, @@ -3505,7 +3511,7 @@ function Gl(t = {}) { value: s, onChange: e }), [I, G] = F(P), L = V(null), Q = V(null), D = V(null), T = V(null), $ = V(null); - Zo({ + Jo({ ref: L, enabled: S, elements: [T, $] @@ -3691,14 +3697,14 @@ function Gl(t = {}) { htmlProps: y }; } -var Wl = g(function(e, n) { - const o = le("Editable", e), r = W(e), { htmlProps: s, ...a } = Gl(r), { isEditing: i, onSubmit: c, onCancel: u, onEdit: d } = a, f = k("chakra-editable", e.className), m = Te(e.children, { +var ql = g(function(e, n) { + const o = le("Editable", e), r = W(e), { htmlProps: s, ...a } = Ul(r), { isEditing: i, onSubmit: c, onCancel: u, onEdit: d } = a, f = k("chakra-editable", e.className), m = Te(e.children, { isEditing: i, onSubmit: c, onCancel: u, onEdit: d }); - return /* @__PURE__ */ l.jsx(Dl, { value: a, children: /* @__PURE__ */ l.jsx(Ml, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Bl, { value: a, children: /* @__PURE__ */ l.jsx(Ll, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -3708,8 +3714,8 @@ var Wl = g(function(e, n) { } ) }) }); }); -Wl.displayName = "Editable"; -function Zf() { +ql.displayName = "Editable"; +function em() { const { isEditing: t, getEditButtonProps: e, @@ -3723,17 +3729,17 @@ function Zf() { getSubmitButtonProps: o }; } -function Jf(t) { +function tm(t) { const e = V(); return U(() => { e.current = t; }, [t]), e.current; } -function Kl(t) { +function Xl(t) { const { key: e } = t; return e.length === 1 || e.length > 1 && /[^a-zA-Z0-9]/.test(e); } -function Qf(t = {}) { +function nm(t = {}) { const { timeout: e = 300, preventDefault: n = () => !0 } = t, [o, r] = F([]), s = V(), a = () => { s.current && (clearTimeout(s.current), s.current = null); }, i = () => { @@ -3749,7 +3755,7 @@ function Qf(t = {}) { f.pop(), r(f); return; } - if (Kl(d)) { + if (Xl(d)) { const f = o.concat(d.key); n(d) && (d.preventDefault(), d.stopPropagation()), r(f), u(f.join("")), i(); } @@ -3757,7 +3763,7 @@ function Qf(t = {}) { } return c; } -var bn = st ? zs : U; +var bn = st ? Hs : U; function Me(t, e = []) { const n = V(t); return bn(() => { @@ -3767,7 +3773,7 @@ function Me(t, e = []) { return (r = n.current) == null ? void 0 : r.call(n, ...o); }, e); } -function em(t, e) { +function om(t, e) { const n = Me(t); U(() => { if (e == null) @@ -3780,7 +3786,7 @@ function em(t, e) { }; }, [e, n]); } -function tm(t, e) { +function rm(t, e) { const n = V(); U(() => { if (n.current) { @@ -3795,7 +3801,7 @@ function tm(t, e) { n.current = e; }); } -function nm(t, e) { +function sm(t, e) { const n = Me(t); U(() => { let o = null; @@ -3805,11 +3811,11 @@ function nm(t, e) { }; }, [e, n]); } -function om(t) { +function am(t) { const e = V(null); return e.current = t, e; } -function Ul(t, e) { +function Yl(t, e) { if (t != null) { if (typeof t == "function") { t(e); @@ -3822,10 +3828,10 @@ function Ul(t, e) { } } } -function rm(...t) { +function im(...t) { return J(() => t.every((e) => e == null) ? null : (e) => { t.forEach((n) => { - n && Ul(n, e); + n && Yl(n, e); }); }, t); } @@ -3843,13 +3849,13 @@ function kt(t, e, n, o) { ((s = ht(n)) != null ? s : document).removeEventListener(t, r, o); }; } -function sm(t = !0) { +function lm(t = !0) { const e = V(); return kt("mousedown", (n) => { t && (e.current = n.target); }), e; } -function am(t) { +function cm(t) { const { ref: e, handler: n, enabled: o = !0 } = t, r = Me(n), a = V({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 @@ -3878,7 +3884,7 @@ function Mt(t, e) { const o = t.target; return o && !ze(o).contains(o) ? !1 : !((n = e.current) != null && n.contains(o)); } -function Jo(t, e, n, o) { +function Qo(t, e, n, o) { return kt( on(e), nn(n, e === "pointerdown"), @@ -3886,13 +3892,13 @@ function Jo(t, e, n, o) { o ); } -function Qo(t, e = []) { +function er(t, e = []) { return U( () => () => t(), e ); } -function im(t, e) { +function um(t, e) { const { onPan: n, onPanStart: o, @@ -3914,29 +3920,29 @@ function im(t, e) { (m = u.current) == null || m.updateHandlers(d); }); function f(m) { - u.current = new Pa(m, d, i); + u.current = new Ea(m, d, i); } - Jo( + Qo( () => t.current, "pointerdown", - c ? f : ro - ), Qo(() => { + c ? f : so + ), er(() => { var m; (m = u.current) == null || m.end(), u.current = null; }); } -function er(t, e) { +function tr(t, e) { const n = Ve(); return J( () => t || [e, n].filter(Boolean).join("-"), [t, e, n] ); } -function lm(t, ...e) { - const n = er(t); +function dm(t, ...e) { + const n = tr(t); return J(() => e.map((o) => `${o}-${n}`), [n, e]); } -function cm(t) { +function fm(t) { const [e, n] = F(null); return { ref: x( (r) => { @@ -3945,11 +3951,11 @@ function cm(t) { [t] ), id: e, isRendered: !!e }; } -function ql(t, e) { +function Zl(t, e) { const n = t !== void 0; return [n, n && typeof t < "u" ? t : e]; } -function um(t) { +function mm(t) { const { value: e, defaultValue: n, @@ -3964,13 +3970,13 @@ function um(t) { ); return [d, f]; } -function dm(t = {}) { +function pm(t = {}) { const { onClose: e, onOpen: n, isOpen: o, id: r - } = t, s = Me(n), a = Me(e), [i, c] = F(t.defaultIsOpen || !1), [u, d] = ql(o, i), f = er(r, "disclosure"), m = x(() => { + } = t, s = Me(n), a = Me(e), [i, c] = F(t.defaultIsOpen || !1), [u, d] = Zl(o, i), f = tr(r, "disclosure"), m = x(() => { u || c(!1), a == null || a(); }, [u, a]), p = x(() => { u || c(!0), s == null || s(); @@ -3987,7 +3993,7 @@ function dm(t = {}) { ...y, "aria-expanded": d, "aria-controls": f, - onClick: is(y.onClick, b) + onClick: ls(y.onClick, b) }), getDisclosureProps: (y = {}) => ({ ...y, @@ -3996,7 +4002,7 @@ function dm(t = {}) { }) }; } -function fm() { +function hm() { const t = V(/* @__PURE__ */ new Map()), e = t.current, n = x((r, s, a, i) => { const c = nn( a, @@ -4034,47 +4040,47 @@ var yn = (t, e) => { n.current = !1; }), []); }; -function mm(t, e) { +function vm(t, e) { const { shouldFocus: n, preventScroll: o } = e; yn(() => { const r = t.current; - !r || !n || Fa(r) || nt(r, { preventScroll: o, nextTick: !0 }); + !r || !n || Ra(r) || nt(r, { preventScroll: o, nextTick: !0 }); }, [n, t, o]); } -function Xl(t) { +function Jl(t) { const e = t.current; if (!e) return !1; - const n = ca(e); - return !n || tn(e, n) ? !1 : !!Ba(n); + const n = fa(e); + return !n || tn(e, n) ? !1 : !!Oa(n); } -function pm(t, e) { +function gm(t, e) { const { shouldFocus: n, visible: o, focusRef: r } = e, s = n && !o; yn(() => { - if (!s || Xl(t)) + if (!s || Jl(t)) return; const a = (r == null ? void 0 : r.current) || t.current; a && nt(a, { nextTick: !0 }); }, [s, t, r]); } -function hm(t) { - const { ref: e, elements: n, enabled: o } = t, r = fa("Safari"); - Jo(() => ze(e.current), "pointerdown", (a) => { +function bm(t) { + const { ref: e, elements: n, enabled: o } = t, r = ha("Safari"); + Qo(() => ze(e.current), "pointerdown", (a) => { if (!r || !o) return; const i = a.target, u = (n ?? [e]).some((d) => { - const f = uo(d) ? d.current : d; + const f = fo(d) ? d.current : d; return tn(f, i); }); - !Co(i) && u && (a.preventDefault(), nt(i)); + !wo(i) && u && (a.preventDefault(), nt(i)); }); } -var Yl = { +var Ql = { preventScroll: !0, shouldFocus: !1 }; -function vm(t, e = Yl) { - const { focusRef: n, preventScroll: o, shouldFocus: r, visible: s } = e, a = uo(t) ? t.current : t, i = r && s, c = V(i), u = V(s); +function ym(t, e = Ql) { + const { focusRef: n, preventScroll: o, shouldFocus: r, visible: s } = e, a = fo(t) ? t.current : t, i = r && s, c = V(i), u = V(s); bn(() => { !u.current && s && (c.current = i), u.current = s; }, [s, i]); @@ -4083,7 +4089,7 @@ function vm(t, e = Yl) { if (n != null && n.current) nt(n.current, { preventScroll: o, nextTick: !0 }); else { - const f = Va(a); + const f = Ga(a); f.length > 0 && nt(f[0], { preventScroll: o, nextTick: !0 }); } }, [s, o, a, n]); @@ -4091,15 +4097,15 @@ function vm(t, e = Yl) { d(); }, [d]), kt("transitionend", d, a); } -function gm() { +function xm() { const t = V(!1), [e, n] = F(0); - return Qo(() => { + return er(() => { t.current = !0; }), x(() => { t.current || n(e + 1); }, [e]); } -function bm(t) { +function Sm(t) { const { isOpen: e, ref: n } = t, [o, r] = F(e), [s, a] = F(!1); return U(() => { s || (r(e), a(!0)); @@ -4113,12 +4119,12 @@ function bm(t) { present: !(e ? !1 : !o), onComplete() { var c; - const u = ia(n.current), d = new u.CustomEvent("animationend", { bubbles: !0 }); + const u = ua(n.current), d = new u.CustomEvent("animationend", { bubbles: !0 }); (c = n.current) == null || c.dispatchEvent(d); } }; } -function ym(t = !1) { +function _m(t = !1) { const [e, n] = F(t), o = J( () => ({ on: () => n(!0), @@ -4129,7 +4135,7 @@ function ym(t = !1) { ); return [e, o]; } -var Zl = function() { +var ec = function() { var t = document.getSelection(); if (!t.rangeCount) return function() { @@ -4150,20 +4156,20 @@ var Zl = function() { t.addRange(r); }), e && e.focus(); }; -}, Jl = Zl, qn = { +}, tc = ec, qn = { "text/plain": "Text", "text/html": "Url", default: "Text" -}, Ql = "Copy to clipboard: #{key}, Enter"; -function ec(t) { +}, nc = "Copy to clipboard: #{key}, Enter"; +function oc(t) { var e = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return t.replace(/#{\s*key\s*}/g, e); } -function tc(t, e) { +function rc(t, e) { var n, o, r, s, a, i, c = !1; e || (e = {}), n = e.debug || !1; try { - r = Jl(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = t, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(d) { + r = tc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = t, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(d) { if (d.stopPropagation(), e.format) if (d.preventDefault(), typeof d.clipboardData > "u") { n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); @@ -4182,20 +4188,20 @@ function tc(t, e) { try { window.clipboardData.setData(e.format || "text", t), e.onCopy && e.onCopy(window.clipboardData), c = !0; } catch (f) { - n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), o = ec("message" in e ? e.message : Ql), window.prompt(o, t); + n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), o = oc("message" in e ? e.message : nc), window.prompt(o, t); } } finally { a && (typeof a.removeRange == "function" ? a.removeRange(s) : a.removeAllRanges()), i && document.body.removeChild(i), r(); } return c; } -var nc = tc; -const oc = /* @__PURE__ */ ls(nc); -function xm(t, e = {}) { +var sc = rc; +const ac = /* @__PURE__ */ cs(sc); +function km(t, e = {}) { const [n, o] = F(!1), [r, s] = F(t); U(() => s(t), [t]); const { timeout: a = 1500, ...i } = typeof e == "number" ? { timeout: e } : e, c = x(() => { - const u = oc(r, i); + const u = ac(r, i); o(u); }, [r, i]); return U(() => { @@ -4212,17 +4218,17 @@ function xm(t, e = {}) { hasCopied: n }; } -function Sm(t) { +function Cm(t) { const e = V(null); return e.current === null && (e.current = typeof t == "function" ? t() : t), e.current; } -function _m(t, e) { +function wm(t, e) { const [n, o] = F(null), r = V(); return bn(() => { function s() { const a = t.current; a && (r.current = requestAnimationFrame(() => { - const i = Xa(a); + const i = Ja(a); o(i); })); } @@ -4231,10 +4237,10 @@ function _m(t, e) { }; }, [e]), n; } -var [rc, tr] = ne({ +var [ic, nr] = ne({ name: "InputGroupStylesContext", errorMessage: `useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), sc = g( +}), lc = g( function(e, n) { const o = le("Input", e), { children: r, className: s, ...a } = W(e), i = k("chakra-input__group", s), c = {}, u = Oe(r), d = o.field; u.forEach((m) => { @@ -4262,13 +4268,13 @@ var [rc, tr] = ne({ }, "data-group": !0, ...a, - children: /* @__PURE__ */ l.jsx(rc, { value: o, children: f }) + children: /* @__PURE__ */ l.jsx(ic, { value: o, children: f }) } ); } ); -sc.displayName = "InputGroup"; -var ac = { +lc.displayName = "InputGroup"; +var cc = { left: { marginEnd: "-1px", borderEndRadius: 0, @@ -4279,7 +4285,7 @@ var ac = { borderStartRadius: 0, borderStartColor: "transparent" } -}, ic = h("div", { +}, uc = h("div", { baseStyle: { flex: "0 0 auto", width: "auto", @@ -4290,9 +4296,9 @@ var ac = { }), xn = g( function(e, n) { var o; - const { placement: r = "left", ...s } = e, a = (o = ac[r]) != null ? o : {}, i = tr(); + const { placement: r = "left", ...s } = e, a = (o = cc[r]) != null ? o : {}, i = nr(); return /* @__PURE__ */ l.jsx( - ic, + uc, { ref: n, ...s, @@ -4305,7 +4311,7 @@ var ac = { } ); xn.displayName = "InputAddon"; -var nr = g( +var or = g( function(e, n) { return /* @__PURE__ */ l.jsx( xn, @@ -4318,9 +4324,9 @@ var nr = g( ); } ); -nr.displayName = "InputLeftAddon"; -nr.id = "InputLeftAddon"; -var or = g( +or.displayName = "InputLeftAddon"; +or.id = "InputLeftAddon"; +var rr = g( function(e, n) { return /* @__PURE__ */ l.jsx( xn, @@ -4333,9 +4339,9 @@ var or = g( ); } ); -or.displayName = "InputRightAddon"; -or.id = "InputRightAddon"; -var lc = h("div", { +rr.displayName = "InputRightAddon"; +rr.id = "InputRightAddon"; +var dc = h("div", { baseStyle: { display: "flex", alignItems: "center", @@ -4346,18 +4352,18 @@ var lc = h("div", { } }), Ct = g(function(e, n) { var o, r; - const { placement: s = "left", ...a } = e, i = tr(), c = i.field, d = { + const { placement: s = "left", ...a } = e, i = nr(), c = i.field, d = { [s === "left" ? "insetStart" : "insetEnd"]: "0", width: (o = c == null ? void 0 : c.height) != null ? o : c == null ? void 0 : c.h, height: (r = c == null ? void 0 : c.height) != null ? r : c == null ? void 0 : c.h, fontSize: c == null ? void 0 : c.fontSize, ...i.element }; - return /* @__PURE__ */ l.jsx(lc, { ref: n, __css: d, ...a }); + return /* @__PURE__ */ l.jsx(dc, { ref: n, __css: d, ...a }); }); Ct.id = "InputElement"; Ct.displayName = "InputElement"; -var rr = g( +var sr = g( function(e, n) { const { className: o, ...r } = e, s = k("chakra-input__left-element", o); return /* @__PURE__ */ l.jsx( @@ -4371,9 +4377,9 @@ var rr = g( ); } ); -rr.id = "InputLeftElement"; -rr.displayName = "InputLeftElement"; -var sr = g( +sr.id = "InputLeftElement"; +sr.displayName = "InputLeftElement"; +var ar = g( function(e, n) { const { className: o, ...r } = e, s = k("chakra-input__right-element", o); return /* @__PURE__ */ l.jsx( @@ -4387,9 +4393,9 @@ var sr = g( ); } ); -sr.id = "InputRightElement"; -sr.displayName = "InputRightElement"; -var ar = g(function(e, n) { +ar.id = "InputRightElement"; +ar.displayName = "InputRightElement"; +var ir = g(function(e, n) { const { htmlSize: o, ...r } = e, s = le("Input", r), a = W(r), i = qt(a), c = k("chakra-input", e.className); return /* @__PURE__ */ l.jsx( h.input, @@ -4402,9 +4408,9 @@ var ar = g(function(e, n) { } ); }); -ar.displayName = "Input"; -ar.id = "Input"; -var cc = g(function(e, n) { +ir.displayName = "Input"; +ir.id = "Input"; +var fc = g(function(e, n) { const o = Se("Link", e), { className: r, isExternal: s, ...a } = W(e); return /* @__PURE__ */ l.jsx( h.a, @@ -4418,8 +4424,8 @@ var cc = g(function(e, n) { } ); }); -cc.displayName = "Link"; -var [uc, ir] = ne({ +fc.displayName = "Link"; +var [mc, lr] = ne({ name: "ListStylesContext", errorMessage: `useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` }), Sn = g(function(e, n) { @@ -4430,7 +4436,7 @@ var [uc, ir] = ne({ spacing: i, ...c } = W(e), u = Oe(r), f = i ? { ["& > *:not(style) ~ *:not(style)"]: { mt: i } } : {}; - return /* @__PURE__ */ l.jsx(uc, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(mc, { value: o, children: /* @__PURE__ */ l.jsx( h.ul, { ref: n, @@ -4444,27 +4450,27 @@ var [uc, ir] = ne({ ) }); }); Sn.displayName = "List"; -var dc = g((t, e) => { +var pc = g((t, e) => { const { as: n, ...o } = t; return /* @__PURE__ */ l.jsx(Sn, { ref: e, as: "ol", styleType: "decimal", marginStart: "1em", ...o }); }); -dc.displayName = "OrderedList"; -var fc = g(function(e, n) { +pc.displayName = "OrderedList"; +var hc = g(function(e, n) { const { as: o, ...r } = e; return /* @__PURE__ */ l.jsx(Sn, { ref: n, as: "ul", styleType: "initial", marginStart: "1em", ...r }); }); -fc.displayName = "UnorderedList"; -var mc = g(function(e, n) { - const o = ir(); +hc.displayName = "UnorderedList"; +var vc = g(function(e, n) { + const o = lr(); return /* @__PURE__ */ l.jsx(h.li, { ref: n, ...e, __css: o.item }); }); -mc.displayName = "ListItem"; -var pc = g(function(e, n) { - const o = ir(); +vc.displayName = "ListItem"; +var gc = g(function(e, n) { + const o = lr(); return /* @__PURE__ */ l.jsx(ge, { ref: n, role: "presentation", ...e, __css: o.icon }); }); -pc.displayName = "ListIcon"; -var lr = g(function(e, n) { +gc.displayName = "ListIcon"; +var cr = g(function(e, n) { const { templateAreas: o, gap: r, @@ -4494,12 +4500,12 @@ var lr = g(function(e, n) { }; return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: y, ...b }); }); -lr.displayName = "Grid"; -var hc = g( +cr.displayName = "Grid"; +var bc = g( function(e, n) { - const { columns: o, spacingX: r, spacingY: s, spacing: a, minChildWidth: i, ...c } = e, u = Xt(), d = i ? gc(i, u) : bc(o); + const { columns: o, spacingX: r, spacingY: s, spacing: a, minChildWidth: i, ...c } = e, u = Xt(), d = i ? xc(i, u) : Sc(o); return /* @__PURE__ */ l.jsx( - lr, + cr, { ref: n, gap: a, @@ -4511,31 +4517,31 @@ var hc = g( ); } ); -hc.displayName = "SimpleGrid"; -function vc(t) { +bc.displayName = "SimpleGrid"; +function yc(t) { return typeof t == "number" ? `${t}px` : t; } -function gc(t, e) { +function xc(t, e) { return Ie(t, (n) => { - const o = cs("sizes", n, vc(n))(e); + const o = us("sizes", n, yc(n))(e); return n === null ? null : `repeat(auto-fit, minmax(${o}, 1fr))`; }); } -function bc(t) { +function Sc(t) { return Ie( t, (e) => e === null ? null : `repeat(${e}, minmax(0, 1fr))` ); } -var yc = h("div", { +var _c = h("div", { baseStyle: { flex: 1, justifySelf: "stretch", alignSelf: "stretch" } }); -yc.displayName = "Spacer"; -var xc = g(function(e, n) { +_c.displayName = "Spacer"; +var kc = g(function(e, n) { const o = Se("Text", e), { className: r, align: s, decoration: a, casing: i, ...c } = W(e), u = rn({ textAlign: e.align, textDecoration: e.decoration, @@ -4552,8 +4558,8 @@ var xc = g(function(e, n) { } ); }); -xc.displayName = "Text"; -var Sc = g(function(e, n) { +kc.displayName = "Text"; +var Cc = g(function(e, n) { const { spacing: o = "0.5rem", spacingX: r, @@ -4566,7 +4572,7 @@ var Sc = g(function(e, n) { shouldWrapChildren: f, ...m } = e, p = J( - () => f ? Ze.map(a, (b, y) => /* @__PURE__ */ l.jsx(cr, { children: b }, y)) : a, + () => f ? Ze.map(a, (b, y) => /* @__PURE__ */ l.jsx(ur, { children: b }, y)) : a, [a, f] ); return /* @__PURE__ */ l.jsx(h.div, { ref: n, className: k("chakra-wrap", d), ...m, children: /* @__PURE__ */ l.jsx( @@ -4589,8 +4595,8 @@ var Sc = g(function(e, n) { } ) }); }); -Sc.displayName = "Wrap"; -var cr = g(function(e, n) { +Cc.displayName = "Wrap"; +var ur = g(function(e, n) { const { className: o, ...r } = e; return /* @__PURE__ */ l.jsx( h.li, @@ -4602,8 +4608,8 @@ var cr = g(function(e, n) { } ); }); -cr.displayName = "WrapItem"; -var _c = (t) => /* @__PURE__ */ l.jsx( +ur.displayName = "WrapItem"; +var wc = (t) => /* @__PURE__ */ l.jsx( h.div, { className: "chakra-stack__divider", @@ -4618,16 +4624,16 @@ var _c = (t) => /* @__PURE__ */ l.jsx( } } ); -_c.displayName = "StackDivider"; -var kc = g((t, e) => /* @__PURE__ */ l.jsx(us, { align: "center", ...t, direction: "column", ref: e })); -kc.displayName = "VStack"; +wc.displayName = "StackDivider"; +var Pc = g((t, e) => /* @__PURE__ */ l.jsx(ds, { align: "center", ...t, direction: "column", ref: e })); +Pc.displayName = "VStack"; function Xn(t) { return Ie( t, (e) => e === "auto" ? "auto" : `span ${e}/span ${e}` ); } -var Cc = g(function(e, n) { +var Nc = g(function(e, n) { const { area: o, colSpan: r, @@ -4648,8 +4654,8 @@ var Cc = g(function(e, n) { }); return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: f, ...d }); }); -Cc.displayName = "GridItem"; -var wc = g(function(e, n) { +Nc.displayName = "GridItem"; +var Ic = g(function(e, n) { const o = Se("Heading", e), { className: r, ...s } = W(e); return /* @__PURE__ */ l.jsx( h.h2, @@ -4661,24 +4667,24 @@ var wc = g(function(e, n) { } ); }); -wc.displayName = "Heading"; -var Pc = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`); -function Nc(t) { - const e = t.filter((n) => n.length !== 0).map((n) => Pc(n.trim())); +Ic.displayName = "Heading"; +var Ec = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`); +function jc(t) { + const e = t.filter((n) => n.length !== 0).map((n) => Ec(n.trim())); return e.length ? new RegExp(`(${e.join("|")})`, "ig") : null; } -function Ic({ text: t, query: e }) { - const n = Nc(Array.isArray(e) ? e : [e]); +function Ac({ text: t, query: e }) { + const n = jc(Array.isArray(e) ? e : [e]); return n ? t.split(n).filter(Boolean).map((r) => ({ text: r, match: n.test(r) })) : [{ text: t, match: !1 }]; } -function Ec(t) { +function Tc(t) { const { text: e, query: n } = t; - return J(() => Ic({ text: e, query: n }), [e, n]); + return J(() => Ac({ text: e, query: n }), [e, n]); } -var jc = g(function(e, n) { +var Mc = g(function(e, n) { const o = Se("Mark", e), r = W(e); return /* @__PURE__ */ l.jsx( - ds, + fs, { ref: n, ...r, @@ -4687,14 +4693,14 @@ var jc = g(function(e, n) { } ); }); -function km(t) { +function Pm(t) { const { children: e, query: n, styles: o } = t; if (typeof e != "string") throw new Error("The children prop of Highlight must be a string"); - const r = Ec({ query: n, text: e }); - return /* @__PURE__ */ l.jsx(l.Fragment, { children: r.map((s, a) => s.match ? /* @__PURE__ */ l.jsx(jc, { sx: o, children: s.text }, a) : /* @__PURE__ */ l.jsx(Hs, { children: s.text }, a)) }); + const r = Tc({ query: n, text: e }); + return /* @__PURE__ */ l.jsx(l.Fragment, { children: r.map((s, a) => s.match ? /* @__PURE__ */ l.jsx(Mc, { sx: o, children: s.text }, a) : /* @__PURE__ */ l.jsx(Gs, { children: s.text }, a)) }); } -var Cm = g(function(e, n) { +var Nm = g(function(e, n) { const { offsetX: o, offsetY: r, @@ -4747,7 +4753,7 @@ var Cm = g(function(e, n) { [s, o, r, a] ); return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: c, ...i }); -}), Ac = g(function(e, n) { +}), Dc = g(function(e, n) { const o = Se("Kbd", e), { className: r, ...s } = W(e); return /* @__PURE__ */ l.jsx( h.kbd, @@ -4762,8 +4768,8 @@ var Cm = g(function(e, n) { } ); }); -Ac.displayName = "Kbd"; -var wm = g( +Dc.displayName = "Kbd"; +var Im = g( function(e, n) { const { isExternal: o, target: r, rel: s, className: a, ...i } = e; return /* @__PURE__ */ l.jsx( @@ -4791,7 +4797,7 @@ var wm = g( } ); } -), Pm = g(function(e, n) { +), Em = g(function(e, n) { const { className: o, ...r } = e; return /* @__PURE__ */ l.jsx( h.div, @@ -4808,7 +4814,7 @@ var wm = g( } } ); -}), Tc = g(function(t, e) { +}), Fc = g(function(t, e) { const { ratio: n = 4 / 3, children: o, className: r, ...s } = t, a = Ze.only(o), i = k("chakra-aspect-ratio", r); return /* @__PURE__ */ l.jsx( h.div, @@ -4845,8 +4851,8 @@ var wm = g( } ); }); -Tc.displayName = "AspectRatio"; -var Mc = g(function(e, n) { +Fc.displayName = "AspectRatio"; +var Lc = g(function(e, n) { const o = Se("Badge", e), { className: r, ...s } = W(e); return /* @__PURE__ */ l.jsx( h.span, @@ -4863,16 +4869,16 @@ var Mc = g(function(e, n) { } ); }); -Mc.displayName = "Badge"; -var Dc = h("div", { +Lc.displayName = "Badge"; +var Bc = h("div", { baseStyle: { display: "flex", alignItems: "center", justifyContent: "center" } }); -Dc.displayName = "Center"; -var Fc = { +Bc.displayName = "Center"; +var Rc = { horizontal: { insetStart: "50%", transform: "translateX(-50%)" @@ -4886,20 +4892,20 @@ var Fc = { top: "50%", transform: "translate(-50%, -50%)" } -}, Nm = g( +}, jm = g( function(e, n) { const { axis: o = "both", ...r } = e; return /* @__PURE__ */ l.jsx( h.div, { ref: n, - __css: Fc[o], + __css: Rc[o], ...r, position: "absolute" } ); } -), Lc = g(function(e, n) { +), $c = g(function(e, n) { const o = Se("Code", e), { className: r, ...s } = W(e); return /* @__PURE__ */ l.jsx( h.code, @@ -4914,8 +4920,8 @@ var Fc = { } ); }); -Lc.displayName = "Code"; -var Bc = g(function(e, n) { +$c.displayName = "Code"; +var Oc = g(function(e, n) { const { className: o, centerContent: r, ...s } = W(e), a = Se("Container", e); return /* @__PURE__ */ l.jsx( h.div, @@ -4934,8 +4940,8 @@ var Bc = g(function(e, n) { } ); }); -Bc.displayName = "Container"; -function ur(t) { +Oc.displayName = "Container"; +function dr(t) { const { breakpoint: e, hide: n, children: o, ssr: r } = t, [s] = Yt(e, { ssr: r }); return (n ? !s : s) ? o : null; } @@ -4943,24 +4949,24 @@ var Yn = (t, e) => { var n, o; return (o = (n = t == null ? void 0 : t.breakpoints) == null ? void 0 : n[e]) != null ? o : e; }; -function dr(t) { +function fr(t) { const { breakpoint: e = "", below: n, above: o } = t, r = Xt(), s = Yn(r, n), a = Yn(r, o); let i = e; return s ? i = `(max-width: ${s})` : a && (i = `(min-width: ${a})`), i; } -function Rc(t) { - const { children: e, ssr: n } = t, o = dr(t); - return /* @__PURE__ */ l.jsx(ur, { breakpoint: o, hide: !0, ssr: n, children: e }); +function Vc(t) { + const { children: e, ssr: n } = t, o = fr(t); + return /* @__PURE__ */ l.jsx(dr, { breakpoint: o, hide: !0, ssr: n, children: e }); } -Rc.displayName = "Hide"; -function Im(t) { +Vc.displayName = "Hide"; +function Am(t) { const [e] = Yt( "(prefers-reduced-motion: reduce)", t ); return e; } -function Em(t) { +function Tm(t) { const [e, n] = Yt( ["(prefers-color-scheme: light)", "(prefers-color-scheme: dark)"], t @@ -4970,23 +4976,23 @@ function Em(t) { if (n) return "dark"; } -function $c(t) { - const { children: e, ssr: n } = t, o = dr(t); - return /* @__PURE__ */ l.jsx(ur, { breakpoint: o, ssr: n, children: e }); +function zc(t) { + const { children: e, ssr: n } = t, o = fr(t); + return /* @__PURE__ */ l.jsx(dr, { breakpoint: o, ssr: n, children: e }); } -$c.displayName = "Show"; -var fr = g((t, e) => { - const { title: n, children: o, className: r, ...s } = t, a = k("chakra-menu__group__title", r), i = fs(); +zc.displayName = "Show"; +var mr = g((t, e) => { + const { title: n, children: o, className: r, ...s } = t, a = k("chakra-menu__group__title", r), i = ms(); return /* @__PURE__ */ l.jsxs("div", { ref: e, className: "chakra-menu__group", role: "group", children: [ n && /* @__PURE__ */ l.jsx(h.p, { className: a, ...s, __css: i.groupTitle, children: n }), o ] }); }); -fr.displayName = "MenuGroup"; -var Oc = (t) => { - const { className: e, title: n, ...o } = t, r = ms(o); +mr.displayName = "MenuGroup"; +var Hc = (t) => { + const { className: e, title: n, ...o } = t, r = ps(o); return /* @__PURE__ */ l.jsx( - fr, + mr, { title: n, className: k("chakra-menu__option-group", e), @@ -4994,29 +5000,29 @@ var Oc = (t) => { } ); }; -Oc.displayName = "MenuOptionGroup"; -var Vc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", ...t, children: /* @__PURE__ */ l.jsx( +Hc.displayName = "MenuOptionGroup"; +var Gc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", ...t, children: /* @__PURE__ */ l.jsx( "polygon", { fill: "currentColor", points: "5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039" } -) }), mr = g( +) }), pr = g( (t, e) => { - const { icon: n, iconSpacing: o = "0.75rem", ...r } = t, s = ps(r, e); + const { icon: n, iconSpacing: o = "0.75rem", ...r } = t, s = hs(r, e); return /* @__PURE__ */ l.jsxs( - hs, + vs, { ...s, className: k("chakra-menu__menuitem-option", r.className), children: [ n !== null && /* @__PURE__ */ l.jsx( - vs, + gs, { fontSize: "0.8em", marginEnd: o, opacity: t.isChecked ? 1 : 0, - children: n || /* @__PURE__ */ l.jsx(Vc, {}) + children: n || /* @__PURE__ */ l.jsx(Gc, {}) } ), /* @__PURE__ */ l.jsx("span", { style: { flex: 1 }, children: s.children }) @@ -5025,21 +5031,21 @@ var Vc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em ); } ); -mr.id = "MenuItemOption"; -mr.displayName = "MenuItemOption"; -function jm(t) { +pr.id = "MenuItemOption"; +pr.displayName = "MenuItemOption"; +function Mm(t) { const { leastDestructiveRef: e, ...n } = t; - return /* @__PURE__ */ l.jsx(gs, { ...n, initialFocusRef: e }); + return /* @__PURE__ */ l.jsx(bs, { ...n, initialFocusRef: e }); } -var Am = g( - (t, e) => /* @__PURE__ */ l.jsx(bs, { ref: e, role: "alertdialog", ...t }) -), zc = (t) => /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +var Dm = g( + (t, e) => /* @__PURE__ */ l.jsx(ys, { ref: e, role: "alertdialog", ...t }) +), Wc = (t) => /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z" } -) }), Hc = (t) => /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +) }), Kc = (t) => /* @__PURE__ */ l.jsx(ge, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", @@ -5058,7 +5064,7 @@ function Zn(t, e, n, o) { return i.observe(t.current, { attributes: !0, attributeFilter: a }), () => i.disconnect(); }); } -function Gc(t, e) { +function Uc(t, e) { const n = xe(t); U(() => { let o = null; @@ -5068,14 +5074,14 @@ function Gc(t, e) { }; }, [e, n]); } -var Wc = 50, Jn = 300; -function Kc(t, e) { +var qc = 50, Jn = 300; +function Xc(t, e) { const [n, o] = F(!1), [r, s] = F(null), [a, i] = F(!0), c = V(null), u = () => clearTimeout(c.current); - Gc( + Uc( () => { r === "increment" && t(), r === "decrement" && e(); }, - n ? Wc : null + n ? qc : null ); const d = x(() => { a && t(), c.current = setTimeout(() => { @@ -5090,17 +5096,17 @@ function Kc(t, e) { }, []); return U(() => () => u(), []), { up: d, down: f, stop: m, isSpinning: n }; } -var Uc = /^[Ee0-9+\-.]$/; -function qc(t) { - return Uc.test(t); +var Yc = /^[Ee0-9+\-.]$/; +function Zc(t) { + return Yc.test(t); } -function Xc(t, e) { +function Jc(t, e) { if (t.key == null) return !0; const n = t.ctrlKey || t.altKey || t.metaKey; return !(t.key.length === 1) || n ? !0 : e(t.key); } -function Yc(t = {}) { +function Qc(t = {}) { const { focusInputOnChange: e = !0, clampValueOnBlur: n = !0, @@ -5131,8 +5137,8 @@ function Yc(t = {}) { parse: T, ...$ } = t, R = xe(w), K = xe(I), Y = xe(G), q = xe( - Q ?? qc - ), Z = xe(L), A = Tl(t), { + Q ?? Zc + ), Z = xe(L), A = Fl(t), { update: ae, increment: me, decrement: de @@ -5172,7 +5178,7 @@ function Yc(t = {}) { ee && de(C); }, [de, ee, a] - ), M = Kc(te, he); + ), M = Xc(te, he); Zn( be, "disabled", @@ -5205,7 +5211,7 @@ function Yc(t = {}) { (C) => { if (C.nativeEvent.isComposing) return; - Xc(C, q) || C.preventDefault(); + Jc(C, q) || C.preventDefault(); const X = _e(C) * a, ce = C.key, Be = { ArrowUp: () => te(X), ArrowDown: () => he(X), @@ -5247,7 +5253,7 @@ function Yc(t = {}) { }, [Qe, M] ); - co( + uo( () => se.current, "wheel", (C) => { @@ -5261,7 +5267,7 @@ function Yc(t = {}) { }, { passive: !1 } ); - const Fr = x( + const Lr = x( (C = {}, X = null) => { const ce = c || o && A.isAtMax; return { @@ -5279,7 +5285,7 @@ function Yc(t = {}) { }; }, [A.isAtMax, o, Pn, M.stop, c] - ), Lr = x( + ), Br = x( (C = {}, X = null) => { const ce = c || o && A.isAtMin; return { @@ -5297,7 +5303,7 @@ function Yc(t = {}) { }; }, [A.isAtMin, o, Nn, M.stop, c] - ), Br = x( + ), Rr = x( (C = {}, X = null) => { var ce, ye, Be, et; return { @@ -5367,22 +5373,22 @@ function Yc(t = {}) { isFocused: oe, isDisabled: c, isReadOnly: i, - getIncrementButtonProps: Fr, - getDecrementButtonProps: Lr, - getInputProps: Br, + getIncrementButtonProps: Lr, + getDecrementButtonProps: Br, + getInputProps: Rr, htmlProps: $ }; } -var [Zc, wt] = ne({ +var [eu, wt] = ne({ name: "NumberInputStylesContext", errorMessage: `useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [Jc, _n] = ne({ +}), [tu, _n] = ne({ name: "NumberInputContext", errorMessage: "useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within " -}), Qc = g( +}), nu = g( function(e, n) { - const o = le("NumberInput", e), r = W(e), s = io(r), { htmlProps: a, ...i } = Yc(s), c = J(() => i, [i]); - return /* @__PURE__ */ l.jsx(Jc, { value: c, children: /* @__PURE__ */ l.jsx(Zc, { value: o, children: /* @__PURE__ */ l.jsx( + const o = le("NumberInput", e), r = W(e), s = lo(r), { htmlProps: a, ...i } = Qc(s), c = J(() => i, [i]); + return /* @__PURE__ */ l.jsx(tu, { value: c, children: /* @__PURE__ */ l.jsx(eu, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ...a, @@ -5397,8 +5403,8 @@ var [Zc, wt] = ne({ ) }) }); } ); -Qc.displayName = "NumberInput"; -var eu = g( +nu.displayName = "NumberInput"; +var ou = g( function(e, n) { const o = wt(); return /* @__PURE__ */ l.jsx( @@ -5422,8 +5428,8 @@ var eu = g( ); } ); -eu.displayName = "NumberInputStepper"; -var tu = g( +ou.displayName = "NumberInputStepper"; +var ru = g( function(e, n) { const { getInputProps: o } = _n(), r = o(e, n), s = wt(); return /* @__PURE__ */ l.jsx( @@ -5439,8 +5445,8 @@ var tu = g( ); } ); -tu.displayName = "NumberInputField"; -var pr = h("div", { +ru.displayName = "NumberInputField"; +var hr = h("div", { baseStyle: { display: "flex", justifyContent: "center", @@ -5452,31 +5458,31 @@ var pr = h("div", { cursor: "pointer", lineHeight: "normal" } -}), nu = g(function(e, n) { +}), su = g(function(e, n) { var o; const r = wt(), { getDecrementButtonProps: s } = _n(), a = s(e, n); - return /* @__PURE__ */ l.jsx(pr, { ...a, __css: r.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(zc, {}) }); + return /* @__PURE__ */ l.jsx(hr, { ...a, __css: r.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Wc, {}) }); }); -nu.displayName = "NumberDecrementStepper"; -var ou = g(function(e, n) { +su.displayName = "NumberDecrementStepper"; +var au = g(function(e, n) { var o; const { getIncrementButtonProps: r } = _n(), s = r(e, n), a = wt(); - return /* @__PURE__ */ l.jsx(pr, { ...s, __css: a.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Hc, {}) }); + return /* @__PURE__ */ l.jsx(hr, { ...s, __css: a.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Kc, {}) }); }); -ou.displayName = "NumberIncrementStepper"; +au.displayName = "NumberIncrementStepper"; var [ - ru, - Tm, - su, - au -] = Kt(), [iu, lu] = ne({ + iu, + Fm, + lu, + cu +] = Kt(), [uu, du] = ne({ name: "PinInputContext", errorMessage: "usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within ``" }), Qn = (t) => t == null ? void 0 : t.split(""); function eo(t, e) { return (e === "alphanumeric" ? /^[a-zA-Z0-9]+$/i : /^[0-9]+$/).test(t); } -function cu(t = {}) { +function fu(t = {}) { const { autoFocus: e, value: n, @@ -5491,7 +5497,7 @@ function cu(t = {}) { isInvalid: f, type: m = "number", mask: p - } = t, b = Ve(), y = u ?? `pin-input-${b}`, v = su(), [_, S] = F(!0), [N, P] = F(-1), [w, I] = ot({ + } = t, b = Ve(), y = u ?? `pin-input-${b}`, v = lu(), [_, S] = F(!0), [N, P] = F(-1), [w, I] = ot({ defaultValue: Qn(o) || [], value: Qn(n), onChange: ($) => r == null ? void 0 : r($.join("")) @@ -5604,24 +5610,24 @@ function cu(t = {}) { clear: Q }; } -function uu(t = {}, e = null) { - const { getInputProps: n } = lu(), { index: o, register: r } = au(); +function mu(t = {}, e = null) { + const { getInputProps: n } = du(), { index: o, register: r } = cu(); return n({ ...t, ref: ue(r, e), index: o }); } -function du(t) { - const e = Se("PinInput", t), { children: n, ...o } = W(t), { descendants: r, ...s } = cu(o), a = Oe(n).map( +function pu(t) { + const e = Se("PinInput", t), { children: n, ...o } = W(t), { descendants: r, ...s } = fu(o), a = Oe(n).map( (i) => ve(i, { __css: e }) ); - return /* @__PURE__ */ l.jsx(ru, { value: r, children: /* @__PURE__ */ l.jsx(iu, { value: s, children: a }) }); + return /* @__PURE__ */ l.jsx(iu, { value: r, children: /* @__PURE__ */ l.jsx(uu, { value: s, children: a }) }); } -du.displayName = "PinInput"; -var fu = g( +pu.displayName = "PinInput"; +var hu = g( function(e, n) { - const o = uu(e, n); + const o = mu(e, n); return /* @__PURE__ */ l.jsx( h.input, { @@ -5631,14 +5637,14 @@ var fu = g( ); } ); -fu.displayName = "PinInputField"; -var [mu, De] = ne({ +hu.displayName = "PinInputField"; +var [vu, De] = ne({ name: "PopoverContext", errorMessage: "usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``" -}), [pu, Je] = ne({ +}), [gu, Je] = ne({ name: "PopoverStylesContext", errorMessage: `usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), hu = g( +}), bu = g( function(e, n) { const { getHeaderProps: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( @@ -5651,17 +5657,17 @@ var [mu, De] = ne({ ); } ); -hu.displayName = "PopoverHeader"; -function vu(t) { +bu.displayName = "PopoverHeader"; +function yu(t) { const e = Ze.only(t.children), { getTriggerProps: n } = De(); return ve(e, n(e.props, e.ref)); } -vu.displayName = "PopoverTrigger"; +yu.displayName = "PopoverTrigger"; var qe = { click: "click", hover: "hover" }; -function gu(t = {}) { +function xu(t = {}) { const { closeOnBlur: e = !0, closeOnEsc: n = !0, @@ -5678,7 +5684,7 @@ function gu(t = {}) { lazyBehavior: p = "unmount", computePositionOnMount: b, ...y - } = t, { isOpen: v, onClose: _, onOpen: S, onToggle: N } = ys(t), P = V(null), w = V(null), I = V(null), G = V(!1), L = V(!1); + } = t, { isOpen: v, onClose: _, onOpen: S, onToggle: N } = xs(t), P = V(null), w = V(null), I = V(null), G = V(!1), L = V(!1); v && (L.current = !0); const [Q, D] = F(!1), [T, $] = F(!1), R = Ve(), K = r ?? R, [Y, q, Z, A] = [ "popover-trigger", @@ -5691,23 +5697,23 @@ function gu(t = {}) { getPopperProps: de, getArrowInnerProps: oe, forceUpdate: fe - } = xs({ + } = Ss({ ...y, enabled: v || !!b - }), ee = Ss({ isOpen: v, ref: I }); - Zo({ + }), ee = _s({ isOpen: v, ref: I }); + Jo({ enabled: v, ref: w - }), _s(I, { + }), ks(I, { focusRef: w, visible: v, shouldFocus: s && u === qe.click - }), ks(I, { + }), Cs(I, { focusRef: o, visible: v, shouldFocus: a && u === qe.click }); - const se = fo({ + const se = mo({ wasSelected: L.current, enabled: m, mode: p, @@ -5869,22 +5875,22 @@ function to(t) { const n = t.currentTarget.ownerDocument.activeElement; return (e = t.relatedTarget) != null ? e : n; } -function bu(t) { - const e = le("Popover", t), { children: n, ...o } = W(t), r = Xt(), s = gu({ ...o, direction: r.direction }); - return /* @__PURE__ */ l.jsx(mu, { value: s, children: /* @__PURE__ */ l.jsx(pu, { value: e, children: Te(n, { +function Su(t) { + const e = le("Popover", t), { children: n, ...o } = W(t), r = Xt(), s = xu({ ...o, direction: r.direction }); + return /* @__PURE__ */ l.jsx(vu, { value: s, children: /* @__PURE__ */ l.jsx(gu, { value: e, children: Te(n, { isOpen: s.isOpen, onClose: s.onClose, forceUpdate: s.forceUpdate }) }) }); } -bu.displayName = "Popover"; -function yu(t) { +Su.displayName = "Popover"; +function _u(t) { const e = Ze.only(t.children), { getAnchorProps: n } = De(); return ve(e, n(e.props, e.ref)); } -yu.displayName = "PopoverAnchor"; +_u.displayName = "PopoverAnchor"; var Ft = (t, e) => e ? `${t}.${e}, ${e}` : void 0; -function xu(t) { +function ku(t) { var e; const { bg: n, bgColor: o, backgroundColor: r, shadow: s, boxShadow: a, shadowColor: i } = t, { getArrowProps: c, getArrowInnerProps: u } = De(), d = Je(), f = (e = n ?? o) != null ? e : r, m = s ?? a; return /* @__PURE__ */ l.jsx( @@ -5908,8 +5914,8 @@ function xu(t) { } ); } -xu.displayName = "PopoverArrow"; -var Su = g( +ku.displayName = "PopoverArrow"; +var Cu = g( function(e, n) { const { getBodyProps: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( @@ -5922,8 +5928,8 @@ var Su = g( ); } ); -Su.displayName = "PopoverBody"; -var _u = g( +Cu.displayName = "PopoverBody"; +var wu = g( function(e, n) { const { onClose: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( @@ -5939,8 +5945,8 @@ var _u = g( ); } ); -_u.displayName = "PopoverCloseButton"; -function ku(t) { +wu.displayName = "PopoverCloseButton"; +function Pu(t) { if (t) return { enter: { @@ -5955,7 +5961,7 @@ function ku(t) { } }; } -var Cu = { +var Nu = { exit: { opacity: 0, scale: 0.95, @@ -5972,21 +5978,21 @@ var Cu = { ease: [0, 0, 0.2, 1] } } -}, wu = h(Gt.section), hr = g(function(e, n) { - const { variants: o = Cu, ...r } = e, { isOpen: s } = De(); +}, Iu = h(Gt.section), vr = g(function(e, n) { + const { variants: o = Nu, ...r } = e, { isOpen: s } = De(); return /* @__PURE__ */ l.jsx( - wu, + Iu, { ref: n, - variants: ku(o), + variants: Pu(o), initial: !1, animate: s ? "enter" : "exit", ...r } ); }); -hr.displayName = "PopoverTransition"; -var Pu = g( +vr.displayName = "PopoverTransition"; +var Eu = g( function(e, n) { const { rootProps: o, motionProps: r, ...s } = e, { getPopoverProps: a, getPopoverPositionerProps: i, onAnimationComplete: c } = De(), u = Je(), d = { position: "relative", @@ -6001,7 +6007,7 @@ var Pu = g( __css: u.popper, className: "chakra-popover__popper", children: /* @__PURE__ */ l.jsx( - hr, + vr, { ...r, ...a(s, n), @@ -6017,8 +6023,8 @@ var Pu = g( ); } ); -Pu.displayName = "PopoverContent"; -function Nu(t) { +Eu.displayName = "PopoverContent"; +function ju(t) { const e = Je(); return /* @__PURE__ */ l.jsx( h.footer, @@ -6029,8 +6035,8 @@ function Nu(t) { } ); } -Nu.displayName = "PopoverFooter"; -var Iu = h("div", { +ju.displayName = "PopoverFooter"; +var Au = h("div", { baseStyle: { fontSize: "0.24em", top: "50%", @@ -6041,13 +6047,13 @@ var Iu = h("div", { transform: "translate(-50%, -50%)" } }); -Iu.displayName = "CircularProgressLabel"; +Au.displayName = "CircularProgressLabel"; var Vt = (t) => /* @__PURE__ */ l.jsx(h.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...t }); Vt.displayName = "Circle"; -function Eu(t, e, n) { +function Tu(t, e, n) { return (t - e) * 100 / (n - e); } -var ju = Ee({ +var Mu = Ee({ "0%": { strokeDasharray: "1, 400", strokeDashoffset: "0" @@ -6060,21 +6066,21 @@ var ju = Ee({ strokeDasharray: "400, 400", strokeDashoffset: "-260" } -}), Au = Ee({ +}), Du = Ee({ "0%": { transform: "rotate(0deg)" }, "100%": { transform: "rotate(360deg)" } -}), Tu = Ee({ +}), Fu = Ee({ "0%": { left: "-40%" }, "100%": { left: "100%" } -}), Mu = Ee({ +}), Lu = Ee({ from: { backgroundPosition: "1rem 0" }, to: { backgroundPosition: "0 0" } }); -function vr(t) { +function gr(t) { const { value: e = 0, min: n, @@ -6083,7 +6089,7 @@ function vr(t) { getValueText: s, isIndeterminate: a, role: i = "progressbar" - } = t, c = Eu(e, n, o); + } = t, c = Tu(e, n, o); return { bind: { "data-indeterminate": a ? "" : void 0, @@ -6100,7 +6106,7 @@ function vr(t) { value: e }; } -var gr = (t) => { +var br = (t) => { const { size: e, isIndeterminate: n, ...o } = t; return /* @__PURE__ */ l.jsx( h.svg, @@ -6109,14 +6115,14 @@ var gr = (t) => { __css: { width: e, height: e, - animation: n ? `${Au} 2s linear infinite` : void 0 + animation: n ? `${Du} 2s linear infinite` : void 0 }, ...o } ); }; -gr.displayName = "Shape"; -var Du = g( +br.displayName = "Shape"; +var Bu = g( (t, e) => { var n; const { @@ -6133,7 +6139,7 @@ var Du = g( trackColor: p = "#edebe9", isIndeterminate: b, ...y - } = t, v = vr({ + } = t, v = gr({ min: s, max: r, value: c, @@ -6141,7 +6147,7 @@ var Du = g( getValueText: i, isIndeterminate: b }), _ = b ? void 0 : ((n = v.percent) != null ? n : 0) * 2.64, S = _ == null ? void 0 : `${_} ${264 - _}`, N = b ? { - css: { animation: `${ju} 1.5s linear infinite` } + css: { animation: `${Mu} 1.5s linear infinite` } } : { strokeDashoffset: 66, strokeDasharray: S, @@ -6163,7 +6169,7 @@ var Du = g( ...y, __css: P, children: [ - /* @__PURE__ */ l.jsxs(gr, { size: o, isIndeterminate: b, children: [ + /* @__PURE__ */ l.jsxs(br, { size: o, isIndeterminate: b, children: [ /* @__PURE__ */ l.jsx( Vt, { @@ -6190,13 +6196,13 @@ var Du = g( ); } ); -Du.displayName = "CircularProgress"; -var [Fu, br] = ne({ +Bu.displayName = "CircularProgress"; +var [Ru, yr] = ne({ name: "ProgressStylesContext", errorMessage: `useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Lu = g( +}), $u = g( (t, e) => { - const { min: n, max: o, value: r, isIndeterminate: s, role: a, ...i } = t, c = vr({ + const { min: n, max: o, value: r, isIndeterminate: s, role: a, ...i } = t, c = gr({ value: r, min: n, max: o, @@ -6204,7 +6210,7 @@ var [Fu, br] = ne({ role: a }), d = { height: "100%", - ...br().filledTrack + ...yr().filledTrack }; return /* @__PURE__ */ l.jsx( h.div, @@ -6217,7 +6223,7 @@ var [Fu, br] = ne({ } ); } -), Bu = g((t, e) => { +), Ou = g((t, e) => { var n; const { value: o, @@ -6234,13 +6240,13 @@ var [Fu, br] = ne({ title: b, role: y, ...v - } = W(t), _ = le("Progress", t), S = u ?? ((n = _.track) == null ? void 0 : n.borderRadius), N = { animation: `${Mu} 1s linear infinite` }, I = { + } = W(t), _ = le("Progress", t), S = u ?? ((n = _.track) == null ? void 0 : n.borderRadius), N = { animation: `${Lu} 1s linear infinite` }, I = { ...!d && a && i && N, ...d && { position: "absolute", willChange: "left", minWidth: "50%", - animation: `${Tu} 1s ease infinite normal none running` + animation: `${Fu} 1s ease infinite normal none running` } }, G = { overflow: "hidden", @@ -6254,9 +6260,9 @@ var [Fu, br] = ne({ borderRadius: S, __css: G, ...v, - children: /* @__PURE__ */ l.jsxs(Fu, { value: _, children: [ + children: /* @__PURE__ */ l.jsxs(Ru, { value: _, children: [ /* @__PURE__ */ l.jsx( - Lu, + $u, { "aria-label": f, "aria-labelledby": m, @@ -6276,8 +6282,8 @@ var [Fu, br] = ne({ } ); }); -Bu.displayName = "Progress"; -var Ru = (t) => { +Ou.displayName = "Progress"; +var Vu = (t) => { const n = { top: "50%", left: "50%", @@ -6285,15 +6291,15 @@ var Ru = (t) => { textAlign: "center", position: "absolute", transform: "translate(-50%, -50%)", - ...br().label + ...yr().label }; return /* @__PURE__ */ l.jsx(h.div, { ...t, __css: n }); }; -Ru.displayName = "ProgressLabel"; -function $u(t) { +Vu.displayName = "ProgressLabel"; +function zu(t) { return t && Re(t) && Re(t.target); } -function Ou(t = {}) { +function Hu(t = {}) { const { onChange: e, value: n, @@ -6320,7 +6326,7 @@ function Ou(t = {}) { L == null || L.focus(); }, []), v = `radio-${Ve()}`, _ = r || v, S = x( (w) => { - const I = $u(w) ? w.target.value : w; + const I = zu(w) ? w.target.value : w; f || d(I), e == null || e(String(I)); }, [e, f] @@ -6358,10 +6364,10 @@ function Ou(t = {}) { htmlProps: c }; } -var [Vu, yr] = ne({ +var [Gu, xr] = ne({ name: "RadioGroupContext", strict: !1 -}), zu = g((t, e) => { +}), Wu = g((t, e) => { const { colorScheme: n, size: o, @@ -6371,7 +6377,7 @@ var [Vu, yr] = ne({ isDisabled: i, isFocusable: c, ...u - } = t, { value: d, onChange: f, getRootProps: m, name: p, htmlProps: b } = Ou(u), y = J( + } = t, { value: d, onChange: f, getRootProps: m, name: p, htmlProps: b } = Hu(u), y = J( () => ({ name: p, size: o, @@ -6393,7 +6399,7 @@ var [Vu, yr] = ne({ c ] ); - return /* @__PURE__ */ l.jsx(Vu, { value: y, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Gu, { value: y, children: /* @__PURE__ */ l.jsx( h.div, { ...m(b, e), @@ -6402,8 +6408,8 @@ var [Vu, yr] = ne({ } ) }); }); -zu.displayName = "RadioGroup"; -var Hu = { +Wu.displayName = "RadioGroup"; +var Ku = { border: "0", clip: "rect(0, 0, 0, 0)", height: "1px", @@ -6414,7 +6420,7 @@ var Hu = { whiteSpace: "nowrap", position: "absolute" }; -function Gu(t = {}) { +function Uu(t = {}) { const { defaultChecked: e, isChecked: n, @@ -6430,11 +6436,11 @@ function Gu(t = {}) { "data-radiogroup": m, "aria-describedby": p, ...b - } = t, y = `radio-${Ve()}`, v = Cs(), S = !!yr() || !!m; + } = t, y = `radio-${Ve()}`, v = ws(), S = !!xr() || !!m; let P = !!v && !S ? v.id : y; P = f ?? P; const w = r ?? (v == null ? void 0 : v.isDisabled), I = s ?? (v == null ? void 0 : v.isReadOnly), G = a ?? (v == null ? void 0 : v.isRequired), L = c ?? (v == null ? void 0 : v.isInvalid), [Q, D] = F(!1), [T, $] = F(!1), [R, K] = F(!1), [Y, q] = F(!1), [Z, A] = F(!!e), ae = typeof n < "u", me = ae ? n : Z; - U(() => Uo(D), []); + U(() => qo(D), []); const de = x( (B) => { if (I || w) { @@ -6520,7 +6526,7 @@ function Gu(t = {}) { "aria-required": Ne(G), "data-readonly": z(I), "aria-describedby": p, - style: Hu + style: Ku }; }, [ @@ -6558,7 +6564,7 @@ function Gu(t = {}) { getLabelProps: (B = {}, te = null) => ({ ...B, ref: te, - onMouseDown: j(B.onMouseDown, Wu), + onMouseDown: j(B.onMouseDown, qu), "data-disabled": z(w), "data-checked": z(me), "data-invalid": z(L) @@ -6573,18 +6579,18 @@ function Gu(t = {}) { htmlProps: b }; } -function Wu(t) { +function qu(t) { t.preventDefault(), t.stopPropagation(); } -function Ku(t, e) { +function Xu(t, e) { const n = {}, o = {}; for (const [r, s] of Object.entries(t)) e.includes(r) ? n[r] = s : o[r] = s; return [n, o]; } -var Uu = g((t, e) => { +var Yu = g((t, e) => { var n; - const o = yr(), { onChange: r, value: s } = t, a = le("Radio", { ...o, ...t }), i = W(t), { + const o = xr(), { onChange: r, value: s } = t, a = le("Radio", { ...o, ...t }), i = W(t), { spacing: c = "0.5rem", children: u, isDisabled: d = o == null ? void 0 : o.isDisabled, @@ -6602,14 +6608,14 @@ var Uu = g((t, e) => { getLabelProps: N, getRootProps: P, htmlProps: w - } = Gu({ + } = Uu({ ...p, isChecked: b, isFocusable: f, isDisabled: d, onChange: y, name: v - }), [I, G] = Ku(w, mo), L = S(G), Q = _(m, e), D = N(), T = Object.assign({}, I, P()), $ = { + }), [I, G] = Xu(w, po), L = S(G), Q = _(m, e), D = N(), T = Object.assign({}, I, P()), $ = { display: "inline-flex", alignItems: "center", verticalAlign: "top", @@ -6648,8 +6654,8 @@ var Uu = g((t, e) => { ) ] }); }); -Uu.displayName = "Radio"; -var xr = g( +Yu.displayName = "Radio"; +var Sr = g( function(e, n) { const { children: o, placeholder: r, className: s, ...a } = e; return /* @__PURE__ */ l.jsxs( @@ -6666,14 +6672,14 @@ var xr = g( ); } ); -xr.displayName = "SelectField"; -function qu(t, e) { +Sr.displayName = "SelectField"; +function Zu(t, e) { const n = {}, o = {}; for (const [r, s] of Object.entries(t)) e.includes(r) ? n[r] = s : o[r] = s; return [n, o]; } -var Xu = g((t, e) => { +var Ju = g((t, e) => { var n; const o = le("Select", t), { rootProps: r, @@ -6687,7 +6693,7 @@ var Xu = g((t, e) => { iconColor: m, iconSize: p, ...b - } = W(t), [y, v] = qu(b, mo), _ = qt(v), S = { + } = W(t), [y, v] = Zu(b, po), _ = qt(v), S = { width: "100%", height: "fit-content", position: "relative", @@ -6709,7 +6715,7 @@ var Xu = g((t, e) => { ...r, children: [ /* @__PURE__ */ l.jsx( - xr, + Sr, { ref: e, height: u ?? c, @@ -6721,7 +6727,7 @@ var Xu = g((t, e) => { } ), /* @__PURE__ */ l.jsx( - Sr, + _r, { "data-disabled": z(_.disabled), ...(m || i) && { color: m || i }, @@ -6734,14 +6740,14 @@ var Xu = g((t, e) => { } ); }); -Xu.displayName = "Select"; -var Yu = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +Ju.displayName = "Select"; +var Qu = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" } -) }), Zu = h("div", { +) }), ed = h("div", { baseStyle: { position: "absolute", display: "inline-flex", @@ -6751,8 +6757,8 @@ var Yu = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, child top: "50%", transform: "translateY(-50%)" } -}), Sr = (t) => { - const { children: e = /* @__PURE__ */ l.jsx(Yu, {}), ...n } = t, o = ve(e, { +}), _r = (t) => { + const { children: e = /* @__PURE__ */ l.jsx(Qu, {}), ...n } = t, o = ve(e, { role: "presentation", className: "chakra-select__icon", focusable: !1, @@ -6763,22 +6769,22 @@ var Yu = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, child color: "currentColor" } }); - return /* @__PURE__ */ l.jsx(Zu, { ...n, className: "chakra-select__icon-wrapper", children: Zt(e) ? o : null }); + return /* @__PURE__ */ l.jsx(ed, { ...n, className: "chakra-select__icon-wrapper", children: Zt(e) ? o : null }); }; -Sr.displayName = "SelectIcon"; -function Ju() { +_r.displayName = "SelectIcon"; +function td() { const t = V(!0); return U(() => { t.current = !1; }, []), t.current; } -function Qu(t) { +function nd(t) { const e = V(); return U(() => { e.current = t; }, [t]), e.current; } -var ed = h("div", { +var od = h("div", { baseStyle: { boxShadow: "none", backgroundClip: "padding-box", @@ -6790,10 +6796,10 @@ var ed = h("div", { visibility: "hidden" } } -}), zt = po("skeleton-start-color"), Ht = po("skeleton-end-color"), td = Ee({ +}), zt = ho("skeleton-start-color"), Ht = ho("skeleton-end-color"), rd = Ee({ from: { opacity: 0 }, to: { opacity: 1 } -}), nd = Ee({ +}), sd = Ee({ from: { borderColor: zt.reference, background: zt.reference @@ -6807,7 +6813,7 @@ var ed = h("div", { ...t, fadeDuration: typeof t.fadeDuration == "number" ? t.fadeDuration : 0.4, speed: typeof t.speed == "number" ? t.speed : 0.8 - }, o = Se("Skeleton", n), r = Ju(), { + }, o = Se("Skeleton", n), r = td(), { startColor: s = "", endColor: a = "", isLoaded: i, @@ -6816,15 +6822,15 @@ var ed = h("div", { className: d, fitContent: f, ...m - } = W(n), [p, b] = ws("colors", [ + } = W(n), [p, b] = Ps("colors", [ s, a - ]), y = Qu(i), v = k("chakra-skeleton", d), _ = { + ]), y = nd(i), v = k("chakra-skeleton", d), _ = { ...p && { [zt.variable]: p }, ...b && { [Ht.variable]: b } }; if (i) { - const S = r || y ? "none" : `${td} ${c}s`; + const S = r || y ? "none" : `${rd} ${c}s`; return /* @__PURE__ */ l.jsx( h.div, { @@ -6836,7 +6842,7 @@ var ed = h("div", { ); } return /* @__PURE__ */ l.jsx( - ed, + od, { ref: e, className: v, @@ -6846,21 +6852,21 @@ var ed = h("div", { ...o, ..._, _dark: { ...o._dark, ..._ }, - animation: `${u}s linear infinite alternate ${nd}` + animation: `${u}s linear infinite alternate ${sd}` } } ); }); kn.displayName = "Skeleton"; -var od = ({ +var ad = ({ size: t = "2rem", ...e }) => /* @__PURE__ */ l.jsx(kn, { borderRadius: "full", boxSize: t, ...e }); -od.displayName = "SkeletonCircle"; -function rd(t) { +ad.displayName = "SkeletonCircle"; +function id(t) { return Array(t).fill(1).map((e, n) => n + 1); } -var no = 3, sd = (t) => { +var no = 3, ld = (t) => { const { noOfLines: e = no, spacing: n = "0.5rem", @@ -6876,9 +6882,9 @@ var no = 3, sd = (t) => { colorScheme: m, children: p, ...b - } = t, y = Ps( + } = t, y = Ns( typeof e == "number" ? [e] : e - ) || no, v = rd(y), _ = (N) => y > 1 && N === v.length ? "80%" : "100%", S = k("chakra-skeleton__group", r); + ) || no, v = id(y), _ = (N) => y > 1 && N === v.length ? "80%" : "100%", S = k("chakra-skeleton__group", r); return /* @__PURE__ */ l.jsx(h.div, { className: S, ...b, children: v.map((N, P) => { if (i && P > 0) return null; @@ -6905,9 +6911,9 @@ var no = 3, sd = (t) => { ); }) }); }; -sd.displayName = "SkeletonText"; -var _r = "chakra-skip-nav"; -function ad(t) { +ld.displayName = "SkeletonText"; +var kr = "chakra-skip-nav"; +function cd(t) { return { userSelect: "none", border: "0", @@ -6928,16 +6934,16 @@ function ad(t) { } }; } -var id = g( +var ud = g( function(e, n) { - const o = Se("SkipLink", e), { id: r = _r, ...s } = W(e); - return /* @__PURE__ */ l.jsx(h.a, { ...s, ref: n, href: `#${r}`, __css: ad(o) }); + const o = Se("SkipLink", e), { id: r = kr, ...s } = W(e); + return /* @__PURE__ */ l.jsx(h.a, { ...s, ref: n, href: `#${r}`, __css: cd(o) }); } ); -id.displayName = "SkipNavLink"; -var ld = g( +ud.displayName = "SkipNavLink"; +var dd = g( function(e, n) { - const { id: o = _r, ...r } = e; + const { id: o = kr, ...r } = e; return /* @__PURE__ */ l.jsx( h.div, { @@ -6950,17 +6956,17 @@ var ld = g( ); } ); -ld.displayName = "SkipNavContent"; -var [cd, Pt] = ne({ +dd.displayName = "SkipNavContent"; +var [fd, Pt] = ne({ name: "StatStylesContext", errorMessage: `useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), ud = g(function(e, n) { +}), md = g(function(e, n) { const o = le("Stat", e), r = { position: "relative", flex: "1 1 0%", ...o.container }, { className: s, children: a, ...i } = W(e); - return /* @__PURE__ */ l.jsx(cd, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(fd, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -6971,16 +6977,16 @@ var [cd, Pt] = ne({ } ) }); }); -ud.displayName = "Stat"; -var kr = (t) => /* @__PURE__ */ l.jsx(ge, { color: "red.400", ...t, children: /* @__PURE__ */ l.jsx( +md.displayName = "Stat"; +var Cr = (t) => /* @__PURE__ */ l.jsx(ge, { color: "red.400", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z" } ) }); -kr.displayName = "StatDownArrow"; -function Cr(t) { +Cr.displayName = "StatDownArrow"; +function wr(t) { return /* @__PURE__ */ l.jsx(ge, { color: "green.400", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -6989,16 +6995,16 @@ function Cr(t) { } ) }); } -Cr.displayName = "StatUpArrow"; -function dd(t) { - const { type: e, "aria-label": n, ...o } = t, r = Pt(), s = e === "increase" ? Cr : kr, i = n || (e === "increase" ? "increased by" : "decreased by"); +wr.displayName = "StatUpArrow"; +function pd(t) { + const { type: e, "aria-label": n, ...o } = t, r = Pt(), s = e === "increase" ? wr : Cr, i = n || (e === "increase" ? "increased by" : "decreased by"); return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [ /* @__PURE__ */ l.jsx(h.span, { srOnly: !0, children: i }), /* @__PURE__ */ l.jsx(s, { "aria-hidden": !0, ...o, __css: r.icon }) ] }); } -dd.displayName = "StatArrow"; -var fd = g(function(e, n) { +pd.displayName = "StatArrow"; +var hd = g(function(e, n) { return /* @__PURE__ */ l.jsx( h.div, { @@ -7015,8 +7021,8 @@ var fd = g(function(e, n) { } ); }); -fd.displayName = "StatGroup"; -var md = g( +hd.displayName = "StatGroup"; +var vd = g( function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( @@ -7030,8 +7036,8 @@ var md = g( ); } ); -md.displayName = "StatHelpText"; -var pd = g(function(e, n) { +vd.displayName = "StatHelpText"; +var gd = g(function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( h.dt, @@ -7043,8 +7049,8 @@ var pd = g(function(e, n) { } ); }); -pd.displayName = "StatLabel"; -var hd = g(function(e, n) { +gd.displayName = "StatLabel"; +var bd = g(function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( h.dd, @@ -7060,10 +7066,10 @@ var hd = g(function(e, n) { } ); }); -hd.displayName = "StatNumber"; -var [vd, Fe] = ne( +bd.displayName = "StatNumber"; +var [yd, Fe] = ne( { name: "StepContext" } -), [gd, He] = Eo("Stepper"), Mm = g(function(e, n) { +), [xd, He] = jo("Stepper"), Lm = g(function(e, n) { const { status: o } = Fe(), r = He(); return /* @__PURE__ */ l.jsx( h.h3, @@ -7075,7 +7081,7 @@ var [vd, Fe] = ne( className: k("chakra-step__title", e.className) } ); -}), Dm = g(function(e, n) { +}), Bm = g(function(e, n) { const { orientation: o, status: r, showLastSeparator: s } = Fe(), a = He(); return /* @__PURE__ */ l.jsx( h.div, @@ -7089,7 +7095,7 @@ var [vd, Fe] = ne( className: k("chakra-step", e.className) } ); -}), Fm = g(function(e, n) { +}), Rm = g(function(e, n) { const o = le("Stepper", e), { children: r, index: s, @@ -7109,8 +7115,8 @@ var [vd, Fe] = ne( ...c, __css: o.stepper, className: k("chakra-stepper", e.className), - children: /* @__PURE__ */ l.jsx(gd, { value: o, children: u.map((m, p) => /* @__PURE__ */ l.jsx( - vd, + children: /* @__PURE__ */ l.jsx(xd, { value: o, children: u.map((m, p) => /* @__PURE__ */ l.jsx( + yd, { value: { index: p, @@ -7128,7 +7134,7 @@ var [vd, Fe] = ne( } ); }); -function Lm(t = {}) { +function $m(t = {}) { const { index: e = 0, count: n } = t, [o, r] = F(e), s = typeof n == "number" ? n - 1 : 0, a = o / s; return { activeStep: o, @@ -7154,7 +7160,7 @@ function Lm(t = {}) { } }; } -var Bm = g(function(e, n) { +var Om = g(function(e, n) { const { status: o } = Fe(), r = He(); return /* @__PURE__ */ l.jsx( h.p, @@ -7167,7 +7173,7 @@ var Bm = g(function(e, n) { } ); }); -function bd(t) { +function Sd(t) { const { complete: e, incomplete: n, active: o } = t, r = Fe(); let s = null; switch (r.status) { @@ -7183,7 +7189,7 @@ function bd(t) { } return s ? /* @__PURE__ */ l.jsx(l.Fragment, { children: s }) : null; } -function yd(t) { +function _d(t) { return /* @__PURE__ */ l.jsx( "svg", { @@ -7206,8 +7212,8 @@ function yd(t) { } ); } -function xd(t) { - const { status: e } = Fe(), n = He(), o = e === "complete" ? yd : void 0; +function kd(t) { + const { status: e } = Fe(), n = He(), o = e === "complete" ? _d : void 0; return /* @__PURE__ */ l.jsx( ge, { @@ -7232,7 +7238,7 @@ var oo = g(function(e, n) { } ); }); -function Rm(t) { +function Vm(t) { const { status: e } = Fe(), n = He(); return /* @__PURE__ */ l.jsx( h.div, @@ -7244,17 +7250,17 @@ function Rm(t) { } ); } -function $m() { +function zm() { return /* @__PURE__ */ l.jsx( - bd, + Sd, { - complete: /* @__PURE__ */ l.jsx(xd, {}), + complete: /* @__PURE__ */ l.jsx(kd, {}), incomplete: /* @__PURE__ */ l.jsx(oo, {}), active: /* @__PURE__ */ l.jsx(oo, {}) } ); } -var Om = g(function(e, n) { +var Hm = g(function(e, n) { const { orientation: o, status: r, isLast: s, showLastSeparator: a } = Fe(), i = He(); return s && !a ? null : /* @__PURE__ */ l.jsx( h.div, @@ -7268,14 +7274,14 @@ var Om = g(function(e, n) { className: k("chakra-step__separator", e.className) } ); -}), Sd = g(function(e, n) { +}), Cd = g(function(e, n) { const o = le("Switch", e), { spacing: r = "0.5rem", children: s, ...a } = W(e), { state: i, getInputProps: c, getCheckboxProps: u, getRootProps: d, getLabelProps: f - } = qo(a), m = J( + } = Xo(a), m = J( () => ({ display: "inline-block", position: "relative", @@ -7340,13 +7346,13 @@ var Om = g(function(e, n) { } ); }); -Sd.displayName = "Switch"; -var [_d, Ge] = ne({ +Cd.displayName = "Switch"; +var [wd, Ge] = ne({ name: "TableStylesContext", errorMessage: `useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), kd = g((t, e) => { +}), Pd = g((t, e) => { const n = le("Table", t), { className: o, layout: r, ...s } = W(t); - return /* @__PURE__ */ l.jsx(_d, { value: n, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(wd, { value: n, children: /* @__PURE__ */ l.jsx( h.table, { ref: e, @@ -7356,14 +7362,14 @@ var [_d, Ge] = ne({ } ) }); }); -kd.displayName = "Table"; -var Vm = g((t, e) => { +Pd.displayName = "Table"; +var Gm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.thead, { ...t, ref: e, __css: n.thead }); -}), zm = g((t, e) => { +}), Wm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tr, { ...t, ref: e, __css: n.tr }); -}), Cd = g( +}), Nd = g( (t, e) => { const { placement: n = "bottom", ...o } = t, r = Ge(); return /* @__PURE__ */ l.jsx( @@ -7379,8 +7385,8 @@ var Vm = g((t, e) => { ); } ); -Cd.displayName = "TableCaption"; -var Hm = g( +Nd.displayName = "TableCaption"; +var Km = g( (t, e) => { var n; const { overflow: o, overflowX: r, className: s, ...a } = t; @@ -7401,10 +7407,10 @@ var Hm = g( } ); } -), Gm = g((t, e) => { +), Um = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tbody, { ...t, ref: e, __css: n.tbody }); -}), Wm = g( +}), qm = g( ({ isNumeric: t, ...e }, n) => { const o = Ge(); return /* @__PURE__ */ l.jsx( @@ -7417,10 +7423,10 @@ var Hm = g( } ); } -), Km = g((t, e) => { +), Xm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tfoot, { ...t, ref: e, __css: n.tfoot }); -}), Um = g( +}), Ym = g( ({ isNumeric: t, ...e }, n) => { const o = Ge(); return /* @__PURE__ */ l.jsx( @@ -7434,12 +7440,12 @@ var Hm = g( ); } ), [ - wd, - wr, - Pd, - Nd + Id, + Pr, + Ed, + jd ] = Kt(); -function Id(t) { +function Ad(t) { var e; const { defaultIndex: n, @@ -7459,7 +7465,7 @@ function Id(t) { U(() => { r != null && m(r); }, [r]); - const y = Pd(), v = Ve(); + const y = Ed(), v = Ve(); return { id: `tabs-${(e = t.id) != null ? e : v}`, selectedIndex: p, @@ -7475,12 +7481,12 @@ function Id(t) { htmlProps: d }; } -var [Ed, lt] = ne({ +var [Td, lt] = ne({ name: "TabsContext", errorMessage: "useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within " }); -function jd(t) { - const { focusedIndex: e, orientation: n, direction: o } = lt(), r = wr(), s = x( +function Md(t) { + const { focusedIndex: e, orientation: n, direction: o } = lt(), r = Pr(), s = x( (a) => { const i = () => { var S; @@ -7517,14 +7523,14 @@ function jd(t) { onKeyDown: j(t.onKeyDown, s) }; } -function Ad(t) { - const { isDisabled: e, isFocusable: n, ...o } = t, { setSelectedIndex: r, isManual: s, id: a, setFocusedIndex: i, selectedIndex: c } = lt(), { index: u, register: d } = Nd({ +function Dd(t) { + const { isDisabled: e, isFocusable: n, ...o } = t, { setSelectedIndex: r, isManual: s, id: a, setFocusedIndex: i, selectedIndex: c } = lt(), { index: u, register: d } = jd({ disabled: e && !n }), f = u === c, m = () => { r(u); }, p = () => { i(u), !s && !(e && n) && r(u); - }, b = Ns({ + }, b = Is({ ...o, ref: ue(d, t.ref), isDisabled: e, @@ -7533,26 +7539,26 @@ function Ad(t) { }), y = "button"; return { ...b, - id: Pr(a, u), + id: Nr(a, u), role: "tab", tabIndex: f ? 0 : -1, type: y, "aria-selected": f, - "aria-controls": Nr(a, u), + "aria-controls": Ir(a, u), onFocus: e ? void 0 : j(t.onFocus, p) }; } -var [Td, Md] = ne({}); -function Dd(t) { +var [Fd, Ld] = ne({}); +function Bd(t) { const e = lt(), { id: n, selectedIndex: o } = e, s = Oe(t.children).map( - (a, i) => Gs( - Td, + (a, i) => Ws( + Fd, { key: i, value: { isSelected: i === o, - id: Nr(n, i), - tabId: Pr(n, i), + id: Ir(n, i), + tabId: Nr(n, i), selectedIndex: o } }, @@ -7561,10 +7567,10 @@ function Dd(t) { ); return { ...t, children: s }; } -function Fd(t) { - const { children: e, ...n } = t, { isLazy: o, lazyBehavior: r } = lt(), { isSelected: s, id: a, tabId: i } = Md(), c = V(!1); +function Rd(t) { + const { children: e, ...n } = t, { isLazy: o, lazyBehavior: r } = lt(), { isSelected: s, id: a, tabId: i } = Ld(), c = V(!1); s && (c.current = !0); - const u = fo({ + const u = mo({ wasSelected: c.current, isSelected: s, enabled: o, @@ -7580,8 +7586,8 @@ function Fd(t) { id: a }; } -function Ld() { - const t = lt(), e = wr(), { selectedIndex: n, orientation: o } = t, r = o === "horizontal", s = o === "vertical", [a, i] = F(() => { +function $d() { + const t = lt(), e = Pr(), { selectedIndex: n, orientation: o } = t, r = o === "horizontal", s = o === "vertical", [a, i] = F(() => { if (r) return { left: 0, width: 0 }; if (s) @@ -7608,18 +7614,18 @@ function Ld() { ...a }; } -function Pr(t, e) { +function Nr(t, e) { return `${t}--tab-${e}`; } -function Nr(t, e) { +function Ir(t, e) { return `${t}--tabpanel-${e}`; } -var [Bd, ct] = ne({ +var [Od, ct] = ne({ name: "TabsStylesContext", errorMessage: `useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Rd = g(function(e, n) { - const o = le("Tabs", e), { children: r, className: s, ...a } = W(e), { htmlProps: i, descendants: c, ...u } = Id(a), d = J(() => u, [u]), { isFitted: f, ...m } = i; - return /* @__PURE__ */ l.jsx(wd, { value: c, children: /* @__PURE__ */ l.jsx(Ed, { value: d, children: /* @__PURE__ */ l.jsx(Bd, { value: o, children: /* @__PURE__ */ l.jsx( +}), Vd = g(function(e, n) { + const o = le("Tabs", e), { children: r, className: s, ...a } = W(e), { htmlProps: i, descendants: c, ...u } = Ad(a), d = J(() => u, [u]), { isFitted: f, ...m } = i; + return /* @__PURE__ */ l.jsx(Id, { value: c, children: /* @__PURE__ */ l.jsx(Td, { value: d, children: /* @__PURE__ */ l.jsx(Od, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { className: k("chakra-tabs", s), @@ -7630,10 +7636,10 @@ var [Bd, ct] = ne({ } ) }) }) }); }); -Rd.displayName = "Tabs"; -var $d = g( +Vd.displayName = "Tabs"; +var zd = g( function(e, n) { - const o = Ld(), r = { + const o = $d(), r = { ...e.style, ...o }, s = ct(); @@ -7649,9 +7655,9 @@ var $d = g( ); } ); -$d.displayName = "TabIndicator"; -var Od = g(function(e, n) { - const o = jd({ ...e, ref: n }), s = { +zd.displayName = "TabIndicator"; +var Hd = g(function(e, n) { + const o = Md({ ...e, ref: n }), s = { display: "flex", ...ct().tablist }; @@ -7664,9 +7670,9 @@ var Od = g(function(e, n) { } ); }); -Od.displayName = "TabList"; -var Vd = g(function(e, n) { - const o = Fd({ ...e, ref: n }), r = ct(); +Hd.displayName = "TabList"; +var Gd = g(function(e, n) { + const o = Rd({ ...e, ref: n }), r = ct(); return /* @__PURE__ */ l.jsx( h.div, { @@ -7677,9 +7683,9 @@ var Vd = g(function(e, n) { } ); }); -Vd.displayName = "TabPanel"; -var zd = g(function(e, n) { - const o = Dd(e), r = ct(); +Gd.displayName = "TabPanel"; +var Wd = g(function(e, n) { + const o = Bd(e), r = ct(); return /* @__PURE__ */ l.jsx( h.div, { @@ -7691,9 +7697,9 @@ var zd = g(function(e, n) { } ); }); -zd.displayName = "TabPanels"; -var Hd = g(function(e, n) { - const o = ct(), r = Ad({ ...e, ref: n }), s = { +Wd.displayName = "TabPanels"; +var Kd = g(function(e, n) { + const o = ct(), r = Dd({ ...e, ref: n }), s = { outline: "0", display: "flex", alignItems: "center", @@ -7709,11 +7715,11 @@ var Hd = g(function(e, n) { } ); }); -Hd.displayName = "Tab"; -var [Gd, Ir] = ne({ +Kd.displayName = "Tab"; +var [Ud, Er] = ne({ name: "TagStylesContext", errorMessage: `useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Wd = g((t, e) => { +}), qd = g((t, e) => { const n = le("Tag", t), o = W(t), r = { display: "inline-flex", verticalAlign: "top", @@ -7721,34 +7727,34 @@ var [Gd, Ir] = ne({ maxWidth: "100%", ...n.container }; - return /* @__PURE__ */ l.jsx(Gd, { value: n, children: /* @__PURE__ */ l.jsx(h.span, { ref: e, ...o, __css: r }) }); + return /* @__PURE__ */ l.jsx(Ud, { value: n, children: /* @__PURE__ */ l.jsx(h.span, { ref: e, ...o, __css: r }) }); }); -Wd.displayName = "Tag"; -var Kd = g((t, e) => { - const n = Ir(); +qd.displayName = "Tag"; +var Xd = g((t, e) => { + const n = Er(); return /* @__PURE__ */ l.jsx(h.span, { ref: e, noOfLines: 1, ...t, __css: n.label }); }); -Kd.displayName = "TagLabel"; -var Ud = g((t, e) => /* @__PURE__ */ l.jsx(ge, { ref: e, verticalAlign: "top", marginEnd: "0.5rem", ...t })); -Ud.displayName = "TagLeftIcon"; -var qd = g((t, e) => /* @__PURE__ */ l.jsx(ge, { ref: e, verticalAlign: "top", marginStart: "0.5rem", ...t })); -qd.displayName = "TagRightIcon"; -var Er = (t) => /* @__PURE__ */ l.jsx(ge, { verticalAlign: "inherit", viewBox: "0 0 512 512", ...t, children: /* @__PURE__ */ l.jsx( +Xd.displayName = "TagLabel"; +var Yd = g((t, e) => /* @__PURE__ */ l.jsx(ge, { ref: e, verticalAlign: "top", marginEnd: "0.5rem", ...t })); +Yd.displayName = "TagLeftIcon"; +var Zd = g((t, e) => /* @__PURE__ */ l.jsx(ge, { ref: e, verticalAlign: "top", marginStart: "0.5rem", ...t })); +Zd.displayName = "TagRightIcon"; +var jr = (t) => /* @__PURE__ */ l.jsx(ge, { verticalAlign: "inherit", viewBox: "0 0 512 512", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z" } ) }); -Er.displayName = "TagCloseIcon"; -var Xd = g( +jr.displayName = "TagCloseIcon"; +var Jd = g( (t, e) => { const { isDisabled: n, children: o, ...r } = t, a = { display: "flex", alignItems: "center", justifyContent: "center", outline: "0", - ...Ir().closeButton + ...Er().closeButton }; return /* @__PURE__ */ l.jsx( h.button, @@ -7759,20 +7765,20 @@ var Xd = g( type: "button", disabled: n, __css: a, - children: o || /* @__PURE__ */ l.jsx(Er, {}) + children: o || /* @__PURE__ */ l.jsx(jr, {}) } ); } ); -Xd.displayName = "TagCloseButton"; -function Yd(t, e = []) { +Jd.displayName = "TagCloseButton"; +function Qd(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -var Zd = ["h", "minH", "height", "minHeight"], Jd = g((t, e) => { - const n = Se("Textarea", t), { className: o, rows: r, ...s } = W(t), a = qt(s), i = r ? Yd(n, Zd) : n; +var ef = ["h", "minH", "height", "minHeight"], tf = g((t, e) => { + const n = Se("Textarea", t), { className: o, rows: r, ...s } = W(t), a = qt(s), i = r ? Qd(n, ef) : n; return /* @__PURE__ */ l.jsx( h.textarea, { @@ -7784,8 +7790,8 @@ var Zd = ["h", "minH", "height", "minHeight"], Jd = g((t, e) => { } ); }); -Jd.displayName = "Textarea"; -const jr = { +tf.displayName = "Textarea"; +const Ar = { borderRadius: "0.7px", ":focus-visible": { boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)", @@ -7793,13 +7799,13 @@ const jr = { boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)" } } -}, Ar = { +}, Tr = { bg: "rgba(39, 39, 39, 0.2)", _dark: { bg: "rgba(39, 39, 39, 0.6)" } -}, { definePartsStyle: Qd, defineMultiStyleConfig: ef } = Ye(ho.keys), tf = Qd({ - overlay: Ar, +}, { definePartsStyle: nf, defineMultiStyleConfig: of } = Ye(vo.keys), rf = nf({ + overlay: Tr, dialog: { top: "77px !important", right: "20px !important", @@ -7824,10 +7830,10 @@ const jr = { footer: { p: 0 }, - closeButton: jr -}), nf = ef({ - baseStyle: tf -}), { definePartsStyle: of, defineMultiStyleConfig: rf } = Ye(Is.keys), sf = of({ + closeButton: Ar +}), sf = of({ + baseStyle: rf +}), { definePartsStyle: af, defineMultiStyleConfig: lf } = Ye(Es.keys), cf = af({ list: { // this will style the MenuList component py: "2", @@ -7855,12 +7861,12 @@ const jr = { } } } -}), af = rf({ baseStyle: sf }), { definePartsStyle: Cn, defineMultiStyleConfig: lf } = Ye(ho.keys), cf = Es({ +}), uf = lf({ baseStyle: cf }), { definePartsStyle: Cn, defineMultiStyleConfig: df } = Ye(vo.keys), ff = js({ width: "calc(100vw - 80px)", height: "calc(100vh - 80px)", maxWidth: "calc(100vw - 80px)", maxHeight: "calc(100vh - 80px)" -}), uf = Cn({ +}), mf = Cn({ dialogContainer: { width: "0px !important" }, @@ -7873,10 +7879,10 @@ const jr = { body: { p: 0 } -}), df = { - "7xl": Cn({ dialog: cf }) -}, ff = Cn({ - overlay: Ar, +}), pf = { + "7xl": Cn({ dialog: ff }) +}, hf = Cn({ + overlay: Tr, header: { fontWeight: "bold", pb: "0px" @@ -7901,12 +7907,12 @@ const jr = { bgColor: "grayShade3._light", _dark: { bgColor: "grayShade3._dark" } }, - closeButton: jr -}), mf = lf({ - baseStyle: ff, - sizes: df, - variants: { drawer: uf } -}), { definePartsStyle: pf, defineMultiStyleConfig: hf } = Ye(js.keys), vf = pf({ + closeButton: Ar +}), vf = df({ + baseStyle: hf, + sizes: pf, + variants: { drawer: mf } +}), { definePartsStyle: gf, defineMultiStyleConfig: bf } = Ye(As.keys), yf = gf({ thumb: { bg: "white", opacity: 0.8, @@ -7929,7 +7935,7 @@ const jr = { bg: "grayShade2._dark" } } -}), gf = hf({ baseStyle: vf }), { definePartsStyle: wn, defineMultiStyleConfig: bf } = Ye(As.keys), yf = wn({ +}), xf = bf({ baseStyle: yf }), { definePartsStyle: wn, defineMultiStyleConfig: Sf } = Ye(Ts.keys), _f = wn({ field: { color: "text", outline: "none", @@ -7954,7 +7960,7 @@ const jr = { borderColor: "grayShade2" } } -}), xf = wn({ +}), kf = wn({ field: { background: "grayShade3", _hover: { @@ -7964,7 +7970,7 @@ const jr = { bg: "grayShade3" } } -}), Sf = wn({ +}), Cf = wn({ field: { background: "background", _hover: { @@ -7977,16 +7983,16 @@ const jr = { borderColor: "grayShade2" } } -}), _f = bf({ - baseStyle: yf, +}), wf = Sf({ + baseStyle: _f, variants: { - primary: xf, - white: Sf + primary: kf, + white: Cf }, defaultProps: { variant: "primary" } -}), kf = { +}), Pf = { colors: { text: { default: "#272727", @@ -8071,7 +8077,7 @@ const jr = { } } } -}, { definePartsStyle: Cf, defineMultiStyleConfig: wf } = Ye(Ts.keys), Pf = Cf({ +}, { definePartsStyle: Nf, defineMultiStyleConfig: If } = Ye(Ms.keys), Ef = Nf({ container: { bg: "background", borderRadius: "1px", @@ -8086,12 +8092,12 @@ const jr = { height: "14px" } } -}), Nf = wf({ - baseStyle: Pf, +}), jf = If({ + baseStyle: Ef, defaultProps: { size: "sm" } -}), Tr = (t, e) => Ks((n, o) => Ds(n) === "String" ? { _light: n, _dark: e[o] } : Tr(vo.labels, e.labels), t), If = Tr(vo, Fs), Ef = Ms({ +}), Mr = (t, e) => Us((n, o) => Fs(n) === "String" ? { _light: n, _dark: e[o] } : Mr(go.labels, e.labels), t), Af = Mr(go, Ls), Tf = Ds({ config: { cssVarPrefix: "quartz", initialColorMode: "system", @@ -8115,24 +8121,31 @@ const jr = { } } }, - colors: If, + colors: Af, components: { - Drawer: nf, - Menu: af, - Modal: mf, - Slider: gf, - Input: _f, - Tag: Nf + Drawer: sf, + Menu: uf, + Modal: vf, + Slider: xf, + Input: wf, + Tag: jf }, - semanticTokens: kf -}), qm = ({ children: t }) => /* @__PURE__ */ l.jsx( - yi, + semanticTokens: Pf +}), Zm = ({ + children: t, + toastOptions: e = {}, + ...n +}) => /* @__PURE__ */ l.jsx( + _i, { - toastOptions: { defaultOptions: { position: "top-right" } }, - theme: Ef, + toastOptions: Xs(e, { + defaultOptions: { position: "top-right" } + }), + theme: Tf, + ...n, children: t } -), jf = ({ +), Mf = ({ onClose: t, content: e, title: n, @@ -8156,14 +8169,14 @@ const jr = { pl: 6, ...r, children: [ - /* @__PURE__ */ l.jsxs(Ls, { width: "100%", justifyContent: "space-between", alignItems: "flex-start", children: [ + /* @__PURE__ */ l.jsxs(Bs, { width: "100%", justifyContent: "space-between", alignItems: "flex-start", children: [ Tn.isValidElement(n) ? n : /* @__PURE__ */ l.jsx(cn, { fontSize: "md", children: n }), /* @__PURE__ */ l.jsx(Wt, { onClick: t }) ] }), Tn.isValidElement(e) ? e : /* @__PURE__ */ l.jsx(ln, { fontSize: "xs", children: e }) ] } -), Mr = (t, e) => (n) => { +), Dr = (t, e) => (n) => { const o = n.duration ?? 5e3, r = ({ onClose: s, id: a }) => { const i = n.duration ?? 5e3, c = () => t.update(a, { duration: 1e6, @@ -8173,7 +8186,7 @@ const jr = { render: r }); return /* @__PURE__ */ l.jsx( - jf, + Mf, { title: n.title, content: n.content, @@ -8192,477 +8205,477 @@ const jr = { render: r, id: n.uniqueId }); -}, Dr = (t, e) => ({ +}, Fr = (t, e) => ({ success: e("success"), error: e("error"), info: e("info"), warning: e("warning"), closeAll: t.closeAll, close: t.close -}), Xm = () => { - const t = gi(), e = x( - (n) => Mr(t, n), +}), Jm = () => { + const t = xi(), e = x( + (n) => Dr(t, n), [t] ); return J( - () => Dr(t, e), + () => Fr(t, e), [e, t] ); -}, Ym = (t) => Dr(t, (n) => Mr(t, n)); +}, Qm = (t) => Fr(t, (n) => Dr(t, n)); export { - Nm as AbsoluteCenter, - Ri as Accordion, - wi as AccordionButton, - Mi as AccordionIcon, - Di as AccordionItem, - Bi as AccordionPanel, - Ni as AccordionProvider, + jm as AbsoluteCenter, + Vi as Accordion, + Ii as AccordionButton, + Li as AccordionIcon, + Bi as AccordionItem, + Oi as AccordionPanel, + ji as AccordionProvider, un as Alert, ln as AlertDescription, - jm as AlertDialog, - Qm as AlertDialogBody, - ep as AlertDialogCloseButton, - Am as AlertDialogContent, - tp as AlertDialogFooter, - np as AlertDialogHeader, - op as AlertDialogOverlay, - Mo as AlertIcon, + Mm as AlertDialog, + np as AlertDialogBody, + op as AlertDialogCloseButton, + Dm as AlertDialogContent, + rp as AlertDialogFooter, + sp as AlertDialogHeader, + ap as AlertDialogOverlay, + Do as AlertIcon, cn as AlertTitle, - Tc as AspectRatio, - Ki as Avatar, - Vi as AvatarBadge, - qi as AvatarGroup, - Mc as Badge, - ds as Box, - Zi as Breadcrumb, - Yi as BreadcrumbItem, - Wo as BreadcrumbLink, + Fc as AspectRatio, + Xi as Avatar, + Gi as AvatarBadge, + Zi as AvatarGroup, + Lc as Badge, + fs as Box, + el as Breadcrumb, + Qi as BreadcrumbItem, + Ko as BreadcrumbLink, Lt as BreadcrumbSeparator, - Ko as Button, - nl as ButtonGroup, + Uo as Button, + sl as ButtonGroup, Rt as ButtonSpinner, - Us as CSSPolyfill, - qs as CSSReset, - Ya as CSSVars, - Xf as Card, - Kf as CardBody, - Uf as CardFooter, - qf as CardHeader, - Dc as Center, - zf as ChakraBaseProvider, - yi as ChakraProvider, - qm as ChakraThemeProvider, - jl as Checkbox, - cl as CheckboxGroup, - ml as CheckboxIcon, - rp as Circle, - Du as CircularProgress, - Iu as CircularProgressLabel, + Ys as CSSPolyfill, + Zs as CSSReset, + Qa as CSSVars, + Jf as Card, + Xf as CardBody, + Yf as CardFooter, + Zf as CardHeader, + Bc as Center, + Wf as ChakraBaseProvider, + _i as ChakraProvider, + Zm as ChakraThemeProvider, + Ml as Checkbox, + fl as CheckboxGroup, + vl as CheckboxIcon, + ip as Circle, + Bu as CircularProgress, + Au as CircularProgressLabel, Wt as CloseButton, - Lc as Code, - Ro as Collapse, + $c as Code, + $o as Collapse, bt as ColorModeContext, - xo as ColorModeProvider, - Lf as ColorModeScript, - Bc as Container, - Al as ControlBox, - Js as DarkMode, - sp as Divider, - ap as Drawer, - ip as DrawerBody, - lp as DrawerCloseButton, - cp as DrawerContent, - up as DrawerFooter, - dp as DrawerHeader, - fp as DrawerOverlay, + So as ColorModeProvider, + $f as ColorModeScript, + Oc as Container, + Dl as ControlBox, + ta as DarkMode, + lp as Divider, + cp as Drawer, + up as DrawerBody, + dp as DrawerCloseButton, + fp as DrawerContent, + mp as DrawerFooter, + pp as DrawerHeader, + hp as DrawerOverlay, dt as EASINGS, - Wl as Editable, - Fl as EditableInput, - Ll as EditablePreview, - Bl as EditableTextarea, - Jr as EnvironmentProvider, - mp as Fade, - pp as Flex, - hp as FocusLock, - vp as FormControl, - gp as FormErrorIcon, - bp as FormErrorMessage, - yp as FormHelperText, - xp as FormLabel, - Vo as GenericAvatarIcon, - Za as GlobalStyle, - lr as Grid, - Cc as GridItem, - Sp as HStack, - wc as Heading, - Rc as Hide, - km as Highlight, + ql as Editable, + Rl as EditableInput, + $l as EditablePreview, + Ol as EditableTextarea, + Qr as EnvironmentProvider, + vp as Fade, + gp as Flex, + bp as FocusLock, + yp as FormControl, + xp as FormErrorIcon, + Sp as FormErrorMessage, + _p as FormHelperText, + kp as FormLabel, + zo as GenericAvatarIcon, + ei as GlobalStyle, + cr as Grid, + Nc as GridItem, + Cp as HStack, + Ic as Heading, + Vc as Hide, + Pm as Highlight, ge as Icon, - rl as IconButton, - Wi as Image, - Wf as Img, - Cm as Indicator, - ar as Input, + il as IconButton, + qi as Image, + qf as Img, + Nm as Indicator, + ir as Input, xn as InputAddon, - sc as InputGroup, - nr as InputLeftAddon, - rr as InputLeftElement, - or as InputRightAddon, - sr as InputRightElement, - Ac as Kbd, - Qs as LightMode, - cc as Link, - Pm as LinkBox, - wm as LinkOverlay, + lc as InputGroup, + or as InputLeftAddon, + sr as InputLeftElement, + rr as InputRightAddon, + ar as InputRightElement, + Dc as Kbd, + na as LightMode, + fc as Link, + Em as LinkBox, + Im as LinkOverlay, Sn as List, - pc as ListIcon, - mc as ListItem, - jc as Mark, - _p as Menu, - kp as MenuButton, - Cp as MenuCommand, - wp as MenuDescendantsProvider, - Pp as MenuDivider, - fr as MenuGroup, - vs as MenuIcon, - Np as MenuItem, - mr as MenuItemOption, - Ip as MenuList, - Oc as MenuOptionGroup, - Ep as MenuProvider, - gs as Modal, - jp as ModalBody, - Ap as ModalCloseButton, - bs as ModalContent, - Tp as ModalContextProvider, - Mp as ModalFocusScope, - Dp as ModalFooter, - Fp as ModalHeader, - Lp as ModalOverlay, - nu as NumberDecrementStepper, - ou as NumberIncrementStepper, - Qc as NumberInput, - tu as NumberInputField, - eu as NumberInputStepper, - dc as OrderedList, - du as PinInput, - ru as PinInputDescendantsProvider, - fu as PinInputField, - iu as PinInputProvider, - bu as Popover, - yu as PopoverAnchor, - xu as PopoverArrow, - Su as PopoverBody, - _u as PopoverCloseButton, - Pu as PopoverContent, - Nu as PopoverFooter, - hu as PopoverHeader, - vu as PopoverTrigger, - es as Portal, - Zr as PortalManager, - Bu as Progress, - Ru as ProgressLabel, - Uu as Radio, - zu as RadioGroup, - Bp as RangeSlider, - Rp as RangeSliderFilledTrack, - $p as RangeSliderMark, - Op as RangeSliderProvider, - Vp as RangeSliderThumb, - zp as RangeSliderTrack, - Hp as RequiredIndicator, - Gp as ScaleFade, - Xu as Select, - xr as SelectField, - $c as Show, - hc as SimpleGrid, + gc as ListIcon, + vc as ListItem, + Mc as Mark, + wp as Menu, + Pp as MenuButton, + Np as MenuCommand, + Ip as MenuDescendantsProvider, + Ep as MenuDivider, + mr as MenuGroup, + gs as MenuIcon, + jp as MenuItem, + pr as MenuItemOption, + Ap as MenuList, + Hc as MenuOptionGroup, + Tp as MenuProvider, + bs as Modal, + Mp as ModalBody, + Dp as ModalCloseButton, + ys as ModalContent, + Fp as ModalContextProvider, + Lp as ModalFocusScope, + Bp as ModalFooter, + Rp as ModalHeader, + $p as ModalOverlay, + su as NumberDecrementStepper, + au as NumberIncrementStepper, + nu as NumberInput, + ru as NumberInputField, + ou as NumberInputStepper, + pc as OrderedList, + pu as PinInput, + iu as PinInputDescendantsProvider, + hu as PinInputField, + uu as PinInputProvider, + Su as Popover, + _u as PopoverAnchor, + ku as PopoverArrow, + Cu as PopoverBody, + wu as PopoverCloseButton, + Eu as PopoverContent, + ju as PopoverFooter, + bu as PopoverHeader, + yu as PopoverTrigger, + ts as Portal, + Jr as PortalManager, + Ou as Progress, + Vu as ProgressLabel, + Yu as Radio, + Wu as RadioGroup, + Op as RangeSlider, + Vp as RangeSliderFilledTrack, + zp as RangeSliderMark, + Hp as RangeSliderProvider, + Gp as RangeSliderThumb, + Wp as RangeSliderTrack, + Kp as RequiredIndicator, + Up as ScaleFade, + Ju as Select, + Sr as SelectField, + zc as Show, + bc as SimpleGrid, kn as Skeleton, - od as SkeletonCircle, - sd as SkeletonText, - ld as SkipNavContent, - id as SkipNavLink, - Wp as Slide, - Kp as SlideFade, - Up as Slider, - qp as SliderFilledTrack, - Xp as SliderMark, - Yp as SliderProvider, - Zp as SliderThumb, - Jp as SliderTrack, - yc as Spacer, - so as Spinner, - Qp as Square, - us as Stack, - _c as StackDivider, - eh as StackItem, - ud as Stat, - dd as StatArrow, - kr as StatDownArrow, - fd as StatGroup, - md as StatHelpText, - pd as StatLabel, - hd as StatNumber, - Cr as StatUpArrow, - Dm as Step, - Bm as StepDescription, - xd as StepIcon, - Rm as StepIndicator, - $m as StepIndicatorContent, + ad as SkeletonCircle, + ld as SkeletonText, + dd as SkipNavContent, + ud as SkipNavLink, + qp as Slide, + Xp as SlideFade, + Yp as Slider, + Zp as SliderFilledTrack, + Jp as SliderMark, + Qp as SliderProvider, + eh as SliderThumb, + th as SliderTrack, + _c as Spacer, + ao as Spinner, + nh as Square, + ds as Stack, + wc as StackDivider, + oh as StackItem, + md as Stat, + pd as StatArrow, + Cr as StatDownArrow, + hd as StatGroup, + vd as StatHelpText, + gd as StatLabel, + bd as StatNumber, + wr as StatUpArrow, + Bm as Step, + Om as StepDescription, + kd as StepIcon, + Vm as StepIndicator, + zm as StepIndicatorContent, oo as StepNumber, - Om as StepSeparator, - bd as StepStatus, - Mm as StepTitle, - Fm as Stepper, - Rf as StylesProvider, - Sd as Switch, - Hd as Tab, - $d as TabIndicator, - Od as TabList, - Vd as TabPanel, - zd as TabPanels, - kd as Table, - Cd as TableCaption, - Hm as TableContainer, - Rd as Tabs, - wd as TabsDescendantsProvider, - Ed as TabsProvider, - Wd as Tag, - Xd as TagCloseButton, - Kd as TagLabel, - Ud as TagLeftIcon, - qd as TagRightIcon, - Gm as Tbody, - Wm as Td, - xc as Text, - Jd as Textarea, - Km as Tfoot, - Um as Th, - Vm as Thead, - Io as ThemeProvider, - pi as Toast, - hi as ToastOptionProvider, - Lo as ToastProvider, - th as Tooltip, - zm as Tr, - fc as UnorderedList, - kc as VStack, - pl as VisuallyHidden, - hl as VisuallyHiddenInput, - Sc as Wrap, - cr as WrapItem, - nh as addPrefix, - Ul as assignRef, - oh as background, - rs as baseTheme, - rh as border, - sh as calc, + Hm as StepSeparator, + Sd as StepStatus, + Lm as StepTitle, + Rm as Stepper, + Vf as StylesProvider, + Cd as Switch, + Kd as Tab, + zd as TabIndicator, + Hd as TabList, + Gd as TabPanel, + Wd as TabPanels, + Pd as Table, + Nd as TableCaption, + Km as TableContainer, + Vd as Tabs, + Id as TabsDescendantsProvider, + Td as TabsProvider, + qd as Tag, + Jd as TagCloseButton, + Xd as TagLabel, + Yd as TagLeftIcon, + Zd as TagRightIcon, + Um as Tbody, + qm as Td, + kc as Text, + tf as Textarea, + Xm as Tfoot, + Ym as Th, + Gm as Thead, + Eo as ThemeProvider, + gi as Toast, + bi as ToastOptionProvider, + Bo as ToastProvider, + rh as Tooltip, + Wm as Tr, + hc as UnorderedList, + Pc as VStack, + gl as VisuallyHidden, + bl as VisuallyHiddenInput, + Cc as Wrap, + ur as WrapItem, + sh as addPrefix, + Yl as assignRef, + ah as background, + ss as baseTheme, + ih as border, + lh as calc, h as chakra, - ah as color, - Df as cookieStorageManager, - Ff as cookieStorageManagerSSR, - yo as createCookieStorageManager, - Of as createIcon, - Ys as createLocalStorageManager, + ch as color, + Bf as cookieStorageManager, + Rf as cookieStorageManagerSSR, + xo as createCookieStorageManager, + Hf as createIcon, + Qs as createLocalStorageManager, Ye as createMultiStyleConfigHelpers, - Ym as createNotifier, - Do as createRenderToast, - Vf as createStandaloneToast, - Eo as createStylesContext, - Fo as createToastFn, - Yr as css, - po as cssVar, - ih as defineCssVars, - Es as defineStyle, - lh as defineStyleConfig, - ch as effect, - uh as extendBaseTheme, - Ms as extendTheme, - dh as fadeConfig, - fh as filter, - mh as flattenTokens, - ph as flexbox, + Qm as createNotifier, + Fo as createRenderToast, + Gf as createStandaloneToast, + jo as createStylesContext, + Lo as createToastFn, + Zr as css, + ho as cssVar, + uh as defineCssVars, + js as defineStyle, + dh as defineStyleConfig, + fh as effect, + mh as extendBaseTheme, + Ds as extendTheme, + ph as fadeConfig, + hh as filter, + vh as flattenTokens, + gh as flexbox, g as forwardRef, - hh as getCSSVar, - vh as getCss, - na as getScriptSrc, - gh as getSlideTransition, - ri as getToastPlacement, - cs as getToken, - bh as grid, - yh as interactivity, - xh as isChakraTheme, - Sh as isStyleProp, + bh as getCSSVar, + yh as getCss, + sa as getScriptSrc, + xh as getSlideTransition, + ii as getToastPlacement, + us as getToken, + Sh as grid, + _h as interactivity, + kh as isChakraTheme, + Ch as isStyleProp, Ee as keyframes, - _h as layout, - mo as layoutPropNames, - kh as list, - Zs as localStorageManager, + wh as layout, + po as layoutPropNames, + Ph as list, + ea as localStorageManager, yt as mergeThemeOverride, W as omitThemingProps, - Ch as others, + Nh as others, Nt as popperCSSVars, - wh as position, - Ph as propNames, - Nh as pseudoPropNames, - Ih as pseudoSelectors, - Eh as requiredChakraThemeKeys, - jh as resolveStyleConfig, - Ah as ring, - Th as scaleFadeConfig, - Mh as scroll, - Dh as shouldForwardProp, - Fh as slideFadeConfig, - Lh as space, - Bh as styled, - Rh as systemProps, - $h as textDecoration, - os as theme, - Oh as toCSSObject, - Kr as toCSSVar, - Vh as toVarDefinition, - zh as toVarReference, - Hh as tokenToCSSVar, - Gh as transform, - Wh as transition, - Kh as typography, - Pi as useAccordion, + Ih as position, + Eh as propNames, + jh as pseudoPropNames, + Ah as pseudoSelectors, + Th as requiredChakraThemeKeys, + Mh as resolveStyleConfig, + Dh as ring, + Fh as scaleFadeConfig, + Lh as scroll, + Bh as shouldForwardProp, + Rh as slideFadeConfig, + $h as space, + Oh as styled, + Vh as systemProps, + zh as textDecoration, + rs as theme, + Hh as toCSSObject, + Ur as toCSSVar, + Gh as toVarDefinition, + Wh as toVarReference, + Kh as tokenToCSSVar, + Uh as transform, + qh as transition, + Xh as typography, + Ei as useAccordion, dn as useAccordionContext, - Ii as useAccordionItem, - Gf as useAccordionItemState, + Ai as useAccordionItem, + Uf as useAccordionItemState, St as useAccordionStyles, an as useAlertStyles, - bm as useAnimationState, - $o as useAvatarStyles, - ym as useBoolean, + Sm as useAnimationState, + Oo as useAvatarStyles, + _m as useBoolean, fn as useBreadcrumbStyles, - Uh as useBreakpoint, - Ps as useBreakpointValue, - Qi as useButtonGroup, + Yh as useBreakpoint, + Ns as useBreakpointValue, + nl as useButtonGroup, Me as useCallbackRef, mn as useCardStyles, - ts as useChakra, - qo as useCheckbox, - ll as useCheckboxGroup, - xm as useClipboard, - qr as useColorMode, - Em as useColorModePreference, - qh as useColorModeValue, - Xh as useComponentStyles__unstable, - Sm as useConst, - ql as useControllableProp, - um as useControllableState, - Tl as useCounter, - _m as useDimensions, - dm as useDisclosure, - Yh as useDrawerContext, - Gl as useEditable, + ns as useChakra, + Xo as useCheckbox, + dl as useCheckboxGroup, + km as useClipboard, + Xr as useColorMode, + Tm as useColorModePreference, + Zh as useColorModeValue, + Jh as useComponentStyles__unstable, + Cm as useConst, + Zl as useControllableProp, + mm as useControllableState, + Fl as useCounter, + wm as useDimensions, + pm as useDisclosure, + Qh as useDrawerContext, + Ul as useEditable, it as useEditableContext, - Zf as useEditableControls, - Yf as useEditableState, + em as useEditableControls, + Qf as useEditableState, vn as useEditableStyles, - Zh as useEnvironment, + ev as useEnvironment, kt as useEventListener, - fm as useEventListenerMap, - mm as useFocusEffect, - pm as useFocusOnHide, - hm as useFocusOnPointerDown, - vm as useFocusOnShow, - gm as useForceUpdate, + hm as useEventListenerMap, + vm as useFocusEffect, + gm as useFocusOnHide, + bm as useFocusOnPointerDown, + ym as useFocusOnShow, + xm as useForceUpdate, qt as useFormControl, - Cs as useFormControlContext, - io as useFormControlProps, - Jh as useFormControlStyles, - Qh as useFormErrorStyles, - Ec as useHighlight, - er as useId, - lm as useIds, - zo as useImage, - tr as useInputGroupStyles, - nm as useInterval, - om as useLatestRef, - ir as useListStyles, + ws as useFormControlContext, + lo as useFormControlProps, + tv as useFormControlStyles, + nv as useFormErrorStyles, + Tc as useHighlight, + tr as useId, + dm as useIds, + Ho as useImage, + nr as useInputGroupStyles, + sm as useInterval, + am as useLatestRef, + lr as useListStyles, Yt as useMediaQuery, - ev as useMenu, - tv as useMenuButton, - nv as useMenuContext, - ov as useMenuDescendant, - rv as useMenuDescendants, - sv as useMenuDescendantsContext, - av as useMenuItem, - iv as useMenuList, - ps as useMenuOption, - ms as useMenuOptionGroup, - lv as useMenuPositioner, - cv as useMenuState, - fs as useMenuStyles, - rm as useMergeRefs, - uv as useModal, - dv as useModalContext, - fv as useModalManager, - mv as useModalStyles, - sm as useMouseDownRef, + ov as useMenu, + rv as useMenuButton, + sv as useMenuContext, + av as useMenuDescendant, + iv as useMenuDescendants, + lv as useMenuDescendantsContext, + cv as useMenuItem, + uv as useMenuList, + hs as useMenuOption, + ps as useMenuOptionGroup, + dv as useMenuPositioner, + fv as useMenuState, + ms as useMenuStyles, + im as useMergeRefs, + mv as useModal, + pv as useModalContext, + hv as useModalManager, + vv as useModalStyles, + lm as useMouseDownRef, le as useMultiStyleConfig, - Xm as useNotifier, - Yc as useNumberInput, + Jm as useNotifier, + Qc as useNumberInput, wt as useNumberInputStyles, - cm as useOptionalPart, - am as useOutsideClick, - im as usePanGesture, - cu as usePinInput, - lu as usePinInputContext, - uu as usePinInputField, - Jo as usePointerEvent, - gu as usePopover, + fm as useOptionalPart, + cm as useOutsideClick, + um as usePanGesture, + fu as usePinInput, + du as usePinInputContext, + mu as usePinInputField, + Qo as usePointerEvent, + xu as usePopover, De as usePopoverContext, Je as usePopoverStyles, - xs as usePopper, - pv as usePortalManager, - Im as usePrefersReducedMotion, - Jf as usePrevious, - br as useProgressStyles, - dr as useQuery, - Gu as useRadio, - Ou as useRadioGroup, - yr as useRadioGroupContext, - hv as useRangeSlider, - vv as useRangeSliderContext, - gv as useRangeSliderStyles, + Ss as usePopper, + gv as usePortalManager, + Am as usePrefersReducedMotion, + tm as usePrevious, + yr as useProgressStyles, + fr as useQuery, + Uu as useRadio, + Hu as useRadioGroup, + xr as useRadioGroupContext, + bv as useRangeSlider, + yv as useRangeSliderContext, + xv as useRangeSliderStyles, bn as useSafeLayoutEffect, - Qf as useShortcut, - bv as useSlider, - yv as useSliderContext, - xv as useSliderStyles, + nm as useShortcut, + Sv as useSlider, + _v as useSliderContext, + kv as useSliderStyles, Pt as useStatStyles, Fe as useStepContext, He as useStepperStyles, - Lm as useSteps, + $m as useSteps, Se as useStyleConfig, - $f as useStyles, - Ad as useTab, - Ld as useTabIndicator, - jd as useTabList, - Fd as useTabPanel, - Dd as useTabPanels, + zf as useStyles, + Dd as useTab, + $d as useTabIndicator, + Md as useTabList, + Rd as useTabPanel, + Bd as useTabPanels, Ge as useTableStyles, - Id as useTabs, + Ad as useTabs, lt as useTabsContext, - Nd as useTabsDescendant, - Pd as useTabsDescendants, - wr as useTabsDescendantsContext, + jd as useTabsDescendant, + Ed as useTabsDescendants, + Pr as useTabsDescendantsContext, ct as useTabsStyles, - Ir as useTagStyles, + Er as useTagStyles, Xt as useTheme, - em as useTimeout, - gi as useToast, - ws as useToken, - Sv as useTooltip, - Qo as useUnmountEffect, + om as useTimeout, + xi as useToast, + Ps as useToken, + Cv as useTooltip, + er as useUnmountEffect, yn as useUpdateEffect, - tm as useWhyDidYouUpdate, + rm as useWhyDidYouUpdate, pn as visuallyHiddenStyle, - oa as withDefaultColorScheme, - Bf as withDefaultProps, - ra as withDefaultSize, - sa as withDefaultVariant, + aa as withDefaultColorScheme, + Of as withDefaultProps, + ia as withDefaultSize, + la as withDefaultVariant, jn as withDelay }; diff --git a/dist/index.mjs b/dist/index.mjs index ac5f7f10f..ac214c0b6 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,36 +1,36 @@ -import { s as xg, w as AW, T as IW, _ as DW, S as LW, i as MW, a as ze, b as Nt, c as Jf, d as jn, e as DO, f as Nl, k as gO, g as rX, h as ra, t as $d, j as FW, l as h, m as vg, u as Bl, F as G, B as LO, n as Y, o as _n, v as NW, p as BW, q as kt, r as Yo, x as HW, y as JW, z as H, C as Kf, A as md, D as fe, E as oX, M as KW, G as aX, H as eV, I as OX, J as sX, K as lX, L as cX, N as LS, O as tV, P as Qd, Q as nV, R as iV, U as rV, V as oV, W as aV, X as me, Y as uX, Z as dX, $ as OV, a0 as ko, a1 as sV, a2 as lV, a3 as cV, a4 as yQ, a5 as bQ, a6 as $l, a7 as uV, a8 as dV, a9 as fV, aa as hV, ab as pV, ac as gV, ad as $V, ae as wQ, af as mV, ag as QV, ah as SV, ai as yV, aj as bV, ak as wV, al as xV, am as vV, an as MS, ao as PV, ap as XV, aq as TV, ar as fX, as as kV, at as CV } from "./Flex-ddd5f349.mjs"; -import { au as ixe } from "./Flex-ddd5f349.mjs"; +import { s as yg, w as AW, T as IW, _ as DW, S as LW, i as MW, a as rt, b as IS, c as Nf, d as vr, e as Zo, f as AO, g as Ml, k as hO, h as iX, j as mQ, t as pd, l as rX, m as FW, n as NW, o as h, p as bg, u as Fl, F as G, B as IO, q as Y, r as Cn, v as BW, x as HW, y as kt, z as Uo, A as JW, C as KW, D as H, E as Bf, G as gd, H as fe, I as oX, M as eV, J as aX, K as tV, L as OX, N as sX, O as lX, P as cX, Q as DS, R as nV, U as $d, V as iV, W as rV, X as oV, Y as aV, Z as OV, $ as me, a0 as uX, a1 as dX, a2 as sV, a3 as Xo, a4 as lV, a5 as cV, a6 as uV, a7 as QQ, a8 as SQ, a9 as pl, aa as dV, ab as fV, ac as hV, ad as pV, ae as gV, af as $V, ag as mV, ah as yQ, ai as QV, aj as SV, ak as yV, al as bV, am as wV, an as xV, ao as vV, ap as PV, aq as LS, ar as XV, as as TV, at as kV, au as fX, av as CV, aw as _V } from "./Flex-41e0872e.mjs"; +import { ax as nxe } from "./Flex-41e0872e.mjs"; import * as ce from "react"; -import X, { createElement as xo, Component as xQ, memo as Fn, useState as Qe, forwardRef as Nn, useRef as it, useEffect as et, useCallback as ie, useImperativeHandle as _V, useMemo as De, useLayoutEffect as RV, useContext as MO, createContext as vQ, Fragment as Pg, createRef as qV } from "react"; -import { Link as eh } from "react-router-dom"; -import * as WV from "react-dom"; -import VV, { createPortal as hX, findDOMNode as ZV } from "react-dom"; +import X, { createElement as bo, Component as bQ, memo as Ln, useState as Qe, forwardRef as Mn, useRef as nt, useEffect as Ke, useCallback as ie, useImperativeHandle as RV, useMemo as Ie, useLayoutEffect as qV, useContext as DO, createContext as wQ, Fragment as wg, createRef as WV } from "react"; +import { Link as Hf } from "react-router-dom"; +import * as VV from "react-dom"; +import ZV, { createPortal as hX, findDOMNode as UV } from "react-dom"; function pX() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; - return xg(e); + return yg(e); } -var FS = !1, UV = /* @__PURE__ */ AW(function(t, e) { - process.env.NODE_ENV !== "production" && !FS && // check for className as well since the user is +var MS = !1, YV = /* @__PURE__ */ AW(function(t, e) { + process.env.NODE_ENV !== "production" && !MS && // check for className as well since the user is // probably using the custom createElement which // means it will be turned into a className prop // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), FS = !0); + (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), MS = !0); var n = t.styles; if (typeof n == "function") - return /* @__PURE__ */ xo(IW.Consumer, null, function(r) { - var o = xg([n(r)]); - return /* @__PURE__ */ xo(NS, { + return /* @__PURE__ */ bo(IW.Consumer, null, function(r) { + var o = yg([n(r)]); + return /* @__PURE__ */ bo(FS, { serialized: o, cache: e }); }); - var i = xg([n]); - return /* @__PURE__ */ xo(NS, { + var i = yg([n]); + return /* @__PURE__ */ bo(FS, { serialized: i, cache: e }); -}), NS = /* @__PURE__ */ function(t) { +}), FS = /* @__PURE__ */ function(t) { DW(e, t); function e(i, r, o) { return t.call(this, i, r, o) || this; @@ -57,7 +57,7 @@ var FS = !1, UV = /* @__PURE__ */ AW(function(t, e) { }, n.render = function() { return null; }, e; -}(xQ), gX = function() { +}(bQ), gX = function() { var e = pX.apply(void 0, arguments), n = "animation-" + e.name; return { name: n, @@ -67,15 +67,15 @@ var FS = !1, UV = /* @__PURE__ */ AW(function(t, e) { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; -}, YV = function() { +}, zV = function() { return !0; }; -const Sd = YV; -var zV = /* @__PURE__ */ ze(function(e, n) { +const md = zV; +var GV = /* @__PURE__ */ rt(function(e, n) { return Number(e) + Number(n); }); -const $X = zV; -function PQ(t, e) { +const $X = GV; +function xQ(t, e) { t = t || [], e = e || []; var n, i = t.length, r = e.length, o = []; for (n = 0; n < i; ) @@ -88,57 +88,22 @@ function mX(t, e, n) { return function() { for (var i = [], r = 0, o = t, a = 0; a < e.length || r < arguments.length; ) { var O; - a < e.length && (!Nt(e[a]) || r >= arguments.length) ? O = e[a] : (O = arguments[r], r += 1), i[a] = O, Nt(O) || (o -= 1), a += 1; + a < e.length && (!IS(e[a]) || r >= arguments.length) ? O = e[a] : (O = arguments[r], r += 1), i[a] = O, IS(O) || (o -= 1), a += 1; } - return o <= 0 ? n.apply(this, i) : Jf(o, mX(t, i, n)); + return o <= 0 ? n.apply(this, i) : Nf(o, mX(t, i, n)); }; } -var yd = /* @__PURE__ */ ze(function(e, n) { - return e === 1 ? jn(n) : Jf(e, mX(e, [], n)); -}); -function Xr(t) { - return function e(n, i, r) { - switch (arguments.length) { - case 0: - return e; - case 1: - return Nt(n) ? e : ze(function(o, a) { - return t(n, o, a); - }); - case 2: - return Nt(n) && Nt(i) ? e : Nt(n) ? ze(function(o, a) { - return t(o, i, a); - }) : Nt(i) ? ze(function(o, a) { - return t(n, o, a); - }) : jn(function(o) { - return t(n, i, o); - }); - default: - return Nt(n) && Nt(i) && Nt(r) ? e : Nt(n) && Nt(i) ? ze(function(o, a) { - return t(o, a, r); - }) : Nt(n) && Nt(r) ? ze(function(o, a) { - return t(o, i, a); - }) : Nt(i) && Nt(r) ? ze(function(o, a) { - return t(n, o, a); - }) : Nt(n) ? jn(function(o) { - return t(o, i, r); - }) : Nt(i) ? jn(function(o) { - return t(n, o, r); - }) : Nt(r) ? jn(function(o) { - return t(n, i, o); - }) : t(n, i, r); - } - }; -} -var GV = /* @__PURE__ */ Xr(function(e, n, i) { +var Qd = /* @__PURE__ */ rt(function(e, n) { + return e === 1 ? vr(n) : Nf(e, mX(e, [], n)); +}), EV = /* @__PURE__ */ Zo(function(e, n, i) { var r = i.length; if (e >= r || e < -r) return i; - var o = (r + e) % r, a = PQ(i); + var o = (r + e) % r, a = xQ(i); return a[o] = n(i[o]), a; }); -const Ws = GV; -function EV(t) { +const Rs = EV; +function jV(t) { return t != null && typeof t["@@transducer/step"] == "function"; } function QX(t, e, n) { @@ -146,13 +111,13 @@ function QX(t, e, n) { if (arguments.length === 0) return n(); var i = arguments[arguments.length - 1]; - if (!DO(i)) { + if (!AO(i)) { for (var r = 0; r < t.length; ) { if (typeof i[t[r]] == "function") return i[t[r]].apply(i, Array.prototype.slice.call(arguments, 0, -1)); r += 1; } - if (EV(i)) { + if (jV(i)) { var o = e.apply(null, Array.prototype.slice.call(arguments, 0, -1)); return o(i); } @@ -160,7 +125,7 @@ function QX(t, e, n) { return n.apply(this, arguments); }; } -const bd = { +const Sd = { init: function() { return this.xf["@@transducer/init"](); }, @@ -168,74 +133,74 @@ const bd = { return this.xf["@@transducer/result"](t); } }; -var jV = /* @__PURE__ */ ze(function(e, n) { +var AV = /* @__PURE__ */ rt(function(e, n) { return n > e ? n : e; }); -function zu(t, e) { +function Uu(t, e) { for (var n = 0, i = e.length, r = Array(i); n < i; ) r[n] = t(e[n]), n += 1; return r; } -var AV = /* @__PURE__ */ function() { +var IV = /* @__PURE__ */ function() { function t(e, n) { this.xf = n, this.f = e; } - return t.prototype["@@transducer/init"] = bd.init, t.prototype["@@transducer/result"] = bd.result, t.prototype["@@transducer/step"] = function(e, n) { + return t.prototype["@@transducer/init"] = Sd.init, t.prototype["@@transducer/result"] = Sd.result, t.prototype["@@transducer/step"] = function(e, n) { return this.xf["@@transducer/step"](e, this.f(n)); }, t; -}(), IV = /* @__PURE__ */ ze(function(e, n) { - return new AV(e, n); -}), th = /* @__PURE__ */ ze( - /* @__PURE__ */ QX(["fantasy-land/map", "map"], IV, function(e, n) { +}(), DV = /* @__PURE__ */ rt(function(e, n) { + return new IV(e, n); +}), Jf = /* @__PURE__ */ rt( + /* @__PURE__ */ QX(["fantasy-land/map", "map"], DV, function(e, n) { switch (Object.prototype.toString.call(n)) { case "[object Function]": - return yd(n.length, function() { + return Qd(n.length, function() { return e.call(this, n.apply(this, arguments)); }); case "[object Object]": - return Nl(function(i, r) { + return Ml(function(i, r) { return i[r] = e(n[r]), i; - }, {}, gO(n)); + }, {}, hO(n)); default: - return zu(e, n); + return Uu(e, n); } }) ); -const FO = Number.isInteger || function(e) { +const LO = Number.isInteger || function(e) { return e << 0 === e; }; -var DV = /* @__PURE__ */ ze(function(e, n) { +var LV = /* @__PURE__ */ rt(function(e, n) { var i = e < 0 ? n.length + e : e; - return rX(n) ? n.charAt(i) : n[i]; + return iX(n) ? n.charAt(i) : n[i]; }); -const XQ = DV; -var LV = /* @__PURE__ */ ze(function(e, n) { +const vQ = LV; +var MV = /* @__PURE__ */ rt(function(e, n) { if (n != null) - return FO(e) ? XQ(e, n) : n[e]; + return LO(e) ? vQ(e, n) : n[e]; }); -const SX = LV; -var MV = /* @__PURE__ */ Xr(Nl); -const yX = MV; -var FV = /* @__PURE__ */ jn(function(e) { +const SX = MV; +var FV = /* @__PURE__ */ Zo(Ml); +const yX = FV; +var NV = /* @__PURE__ */ vr(function(e) { return function() { return e; }; }); -const Hs = FV; -var NV = /* @__PURE__ */ ze(function(e, n) { +const Ns = NV; +var BV = /* @__PURE__ */ rt(function(e, n) { return e && n; -}), BV = /* @__PURE__ */ ze(function(e, n) { +}), HV = /* @__PURE__ */ rt(function(e, n) { return typeof n["fantasy-land/ap"] == "function" ? n["fantasy-land/ap"](e) : typeof e.ap == "function" ? e.ap(n) : typeof e == "function" ? function(i) { return e(i)(n(i)); - } : Nl(function(i, r) { - return PQ(i, th(r, n)); + } : Ml(function(i, r) { + return xQ(i, Jf(r, n)); }, [], e); -}), HV = /* @__PURE__ */ ze(function(e, n) { - return PQ(n, [e]); +}), JV = /* @__PURE__ */ rt(function(e, n) { + return xQ(n, [e]); }); -const BS = HV; -function JV(t, e, n) { - if (FO(t) && DO(n)) { +const NS = JV; +function KV(t, e, n) { + if (LO(t) && AO(n)) { var i = [].concat(n); return i[t] = e, i; } @@ -244,52 +209,52 @@ function JV(t, e, n) { r[o] = n[o]; return r[t] = e, r; } -var KV = /* @__PURE__ */ jn(function(e) { +var eZ = /* @__PURE__ */ vr(function(e) { return e == null; }); -const wd = KV; -var eZ = /* @__PURE__ */ Xr(function t(e, n, i) { +const yd = eZ; +var tZ = /* @__PURE__ */ Zo(function t(e, n, i) { if (e.length === 0) return n; var r = e[0]; if (e.length > 1) { - var o = !wd(i) && ra(r, i) ? i[r] : FO(e[1]) ? [] : {}; + var o = !yd(i) && mQ(r, i) ? i[r] : LO(e[1]) ? [] : {}; n = t(Array.prototype.slice.call(e, 1), n, o); } - return JV(r, n, i); -}), Vs = /* @__PURE__ */ Xr(function(e, n, i) { - return eZ([e], n, i); + return KV(r, n, i); +}), qs = /* @__PURE__ */ Zo(function(e, n, i) { + return tZ([e], n, i); }); -function TQ(t) { +function PQ(t) { var e = Object.prototype.toString.call(t); return e === "[object Function]" || e === "[object AsyncFunction]" || e === "[object GeneratorFunction]" || e === "[object AsyncGeneratorFunction]"; } -var tZ = /* @__PURE__ */ ze(function(e, n) { - var i = yd(e, n); - return yd(e, function() { - return Nl(BV, th(i, arguments[0]), Array.prototype.slice.call(arguments, 1)); +var nZ = /* @__PURE__ */ rt(function(e, n) { + var i = Qd(e, n); + return Qd(e, function() { + return Ml(HV, Jf(i, arguments[0]), Array.prototype.slice.call(arguments, 1)); }); -}), nZ = /* @__PURE__ */ jn(function(e) { - return tZ(e.length, e); +}), iZ = /* @__PURE__ */ vr(function(e) { + return nZ(e.length, e); }); -const kQ = nZ; -var iZ = /* @__PURE__ */ ze(function(e, n) { - return TQ(e) ? function() { +const XQ = iZ; +var rZ = /* @__PURE__ */ rt(function(e, n) { + return PQ(e) ? function() { return e.apply(this, arguments) && n.apply(this, arguments); - } : kQ(NV)(e, n); + } : XQ(BV)(e, n); }); -const rZ = iZ; -var oZ = /* @__PURE__ */ Xr(function(e, n, i) { +const oZ = rZ; +var aZ = /* @__PURE__ */ Zo(function(e, n, i) { if (e > n) throw new Error("min must not be greater than max in clamp(min, max, value)"); return i < e ? e : i > n ? n : i; }); -const bX = oZ; -var aZ = /* @__PURE__ */ jn(function(e) { +const bX = aZ; +var OZ = /* @__PURE__ */ vr(function(e) { return !e; -}), OZ = /* @__PURE__ */ kQ(aZ); -const HS = OZ; -function sZ(t, e) { +}), sZ = /* @__PURE__ */ XQ(OZ); +const BS = sZ; +function lZ(t, e) { return function() { return e.call(this, t.apply(this, arguments)); }; @@ -300,33 +265,33 @@ function wX(t, e) { if (n === 0) return e(); var i = arguments[n - 1]; - return DO(i) || typeof i[t] != "function" ? e.apply(this, arguments) : i[t].apply(i, Array.prototype.slice.call(arguments, 0, n - 1)); + return AO(i) || typeof i[t] != "function" ? e.apply(this, arguments) : i[t].apply(i, Array.prototype.slice.call(arguments, 0, n - 1)); }; } -var lZ = /* @__PURE__ */ Xr( +var cZ = /* @__PURE__ */ Zo( /* @__PURE__ */ wX("slice", function(e, n, i) { return Array.prototype.slice.call(i, e, n); }) -), cZ = /* @__PURE__ */ jn( +), uZ = /* @__PURE__ */ vr( /* @__PURE__ */ wX( "tail", - /* @__PURE__ */ lZ(1, 1 / 0) + /* @__PURE__ */ cZ(1, 1 / 0) ) ); -const uZ = cZ; -function dZ() { +const dZ = uZ; +function fZ() { if (arguments.length === 0) throw new Error("pipe requires at least one argument"); - return Jf(arguments[0].length, yX(sZ, arguments[0], uZ(arguments))); + return Nf(arguments[0].length, yX(lZ, arguments[0], dZ(arguments))); } -var fZ = /* @__PURE__ */ XQ(0); -const Xg = fZ; -function JS(t) { +var hZ = /* @__PURE__ */ vQ(0); +const xg = hZ; +function HS(t) { for (var e = [], n; !(n = t.next()).done; ) e.push(n.value); return e; } -function KS(t, e, n) { +function JS(t, e, n) { for (var i = 0, r = n.length; i < r; ) { if (t(e, n[i])) return !0; @@ -334,28 +299,28 @@ function KS(t, e, n) { } return !1; } -function hZ(t) { +function pZ(t) { var e = String(t).match(/^function (\w*)/); return e == null ? "" : e[1]; } -function pZ(t, e) { +function gZ(t, e) { return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e; } -const l1 = typeof Object.is == "function" ? Object.is : pZ; -function e2(t, e, n, i) { - var r = JS(t), o = JS(e); +const a1 = typeof Object.is == "function" ? Object.is : gZ; +function KS(t, e, n, i) { + var r = HS(t), o = HS(e); function a(O, s) { - return CQ(O, s, n.slice(), i.slice()); + return TQ(O, s, n.slice(), i.slice()); } - return !KS(function(O, s) { - return !KS(a, s, O); + return !JS(function(O, s) { + return !JS(a, s, O); }, o, r); } -function CQ(t, e, n, i) { - if (l1(t, e)) +function TQ(t, e, n, i) { + if (a1(t, e)) return !0; - var r = $d(t); - if (r !== $d(e)) + var r = pd(t); + if (r !== pd(e)) return !1; if (typeof t["fantasy-land/equals"] == "function" || typeof e["fantasy-land/equals"] == "function") return typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e) && typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t); @@ -365,17 +330,17 @@ function CQ(t, e, n, i) { case "Arguments": case "Array": case "Object": - if (typeof t.constructor == "function" && hZ(t.constructor) === "Promise") + if (typeof t.constructor == "function" && pZ(t.constructor) === "Promise") return t === e; break; case "Boolean": case "Number": case "String": - if (!(typeof t == typeof e && l1(t.valueOf(), e.valueOf()))) + if (!(typeof t == typeof e && a1(t.valueOf(), e.valueOf()))) return !1; break; case "Date": - if (!l1(t.valueOf(), e.valueOf())) + if (!a1(t.valueOf(), e.valueOf())) return !1; break; case "Error": @@ -392,9 +357,9 @@ function CQ(t, e, n, i) { } switch (r) { case "Map": - return t.size !== e.size ? !1 : e2(t.entries(), e.entries(), n.concat([t]), i.concat([e])); + return t.size !== e.size ? !1 : KS(t.entries(), e.entries(), n.concat([t]), i.concat([e])); case "Set": - return t.size !== e.size ? !1 : e2(t.values(), e.values(), n.concat([t]), i.concat([e])); + return t.size !== e.size ? !1 : KS(t.values(), e.values(), n.concat([t]), i.concat([e])); case "Arguments": case "Array": case "Object": @@ -418,22 +383,22 @@ function CQ(t, e, n, i) { default: return !1; } - var a = gO(t); - if (a.length !== gO(e).length) + var a = hO(t); + if (a.length !== hO(e).length) return !1; var O = n.concat([t]), s = i.concat([e]); for (o = a.length - 1; o >= 0; ) { var l = a[o]; - if (!(ra(l, e) && CQ(e[l], t[l], O, s))) + if (!(mQ(l, e) && TQ(e[l], t[l], O, s))) return !1; o -= 1; } return !0; } -var sa = /* @__PURE__ */ ze(function(e, n) { - return CQ(e, n, [], []); +var aa = /* @__PURE__ */ rt(function(e, n) { + return TQ(e, n, [], []); }); -function gZ(t, e, n) { +function $Z(t, e, n) { var i, r; if (typeof t.indexOf == "function") switch (typeof e) { @@ -464,86 +429,83 @@ function gZ(t, e, n) { return t.indexOf(e, n); } for (; n < t.length; ) { - if (sa(t[n], e)) + if (aa(t[n], e)) return n; n += 1; } return -1; } -function $Z(t, e) { - return gZ(e, t, 0) >= 0; +function mZ(t, e) { + return $Z(e, t, 0) >= 0; } -function c1(t) { +function O1(t) { var e = t.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0"); return '"' + e.replace(/"/g, '\\"') + '"'; } -var Os = function(e) { +var os = function(e) { return (e < 10 ? "0" : "") + e; -}, mZ = typeof Date.prototype.toISOString == "function" ? function(e) { +}, QZ = typeof Date.prototype.toISOString == "function" ? function(e) { return e.toISOString(); } : function(e) { - return e.getUTCFullYear() + "-" + Os(e.getUTCMonth() + 1) + "-" + Os(e.getUTCDate()) + "T" + Os(e.getUTCHours()) + ":" + Os(e.getUTCMinutes()) + ":" + Os(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z"; + return e.getUTCFullYear() + "-" + os(e.getUTCMonth() + 1) + "-" + os(e.getUTCDate()) + "T" + os(e.getUTCHours()) + ":" + os(e.getUTCMinutes()) + ":" + os(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z"; }; -function QZ(t) { +function SZ(t) { return function() { return !t.apply(this, arguments); }; } -function SZ(t, e) { +function yZ(t, e) { for (var n = 0, i = e.length, r = []; n < i; ) t(e[n]) && (r[r.length] = e[n]), n += 1; return r; } -function xd(t) { - return Object.prototype.toString.call(t) === "[object Object]"; -} -var yZ = /* @__PURE__ */ function() { +var bZ = /* @__PURE__ */ function() { function t(e, n) { this.xf = n, this.f = e; } - return t.prototype["@@transducer/init"] = bd.init, t.prototype["@@transducer/result"] = bd.result, t.prototype["@@transducer/step"] = function(e, n) { + return t.prototype["@@transducer/init"] = Sd.init, t.prototype["@@transducer/result"] = Sd.result, t.prototype["@@transducer/step"] = function(e, n) { return this.f(n) ? this.xf["@@transducer/step"](e, n) : e; }, t; -}(), bZ = /* @__PURE__ */ ze(function(e, n) { - return new yZ(e, n); -}), wZ = /* @__PURE__ */ ze( - /* @__PURE__ */ QX(["fantasy-land/filter", "filter"], bZ, function(t, e) { - return xd(e) ? Nl(function(n, i) { +}(), wZ = /* @__PURE__ */ rt(function(e, n) { + return new bZ(e, n); +}), xZ = /* @__PURE__ */ rt( + /* @__PURE__ */ QX(["fantasy-land/filter", "filter"], wZ, function(t, e) { + return rX(e) ? Ml(function(n, i) { return t(e[i]) && (n[i] = e[i]), n; - }, {}, gO(e)) : ( + }, {}, hO(e)) : ( // else - SZ(t, e) + yZ(t, e) ); }) -), xZ = /* @__PURE__ */ ze(function(e, n) { - return wZ(QZ(e), n); +), vZ = /* @__PURE__ */ rt(function(e, n) { + return xZ(SZ(e), n); }); function xX(t, e) { var n = function(a) { var O = e.concat([t]); - return $Z(a, O) ? "" : xX(a, O); + return mZ(a, O) ? "" : xX(a, O); }, i = function(o, a) { - return zu(function(O) { - return c1(O) + ": " + n(o[O]); + return Uu(function(O) { + return O1(O) + ": " + n(o[O]); }, a.slice().sort()); }; switch (Object.prototype.toString.call(t)) { case "[object Arguments]": - return "(function() { return arguments; }(" + zu(n, t).join(", ") + "))"; + return "(function() { return arguments; }(" + Uu(n, t).join(", ") + "))"; case "[object Array]": - return "[" + zu(n, t).concat(i(t, xZ(function(o) { + return "[" + Uu(n, t).concat(i(t, vZ(function(o) { return /^\d+$/.test(o); - }, gO(t)))).join(", ") + "]"; + }, hO(t)))).join(", ") + "]"; case "[object Boolean]": return typeof t == "object" ? "new Boolean(" + n(t.valueOf()) + ")" : t.toString(); case "[object Date]": - return "new Date(" + (isNaN(t.valueOf()) ? n(NaN) : c1(mZ(t))) + ")"; + return "new Date(" + (isNaN(t.valueOf()) ? n(NaN) : O1(QZ(t))) + ")"; case "[object Null]": return "null"; case "[object Number]": return typeof t == "object" ? "new Number(" + n(t.valueOf()) + ")" : 1 / t === -1 / 0 ? "-0" : t.toString(10); case "[object String]": - return typeof t == "object" ? "new String(" + n(t.valueOf()) + ")" : c1(t); + return typeof t == "object" ? "new String(" + n(t.valueOf()) + ")" : O1(t); case "[object Undefined]": return "undefined"; default: @@ -552,16 +514,16 @@ function xX(t, e) { if (r !== "[object Object]") return r; } - return "{" + i(t, gO(t)).join(", ") + "}"; + return "{" + i(t, hO(t)).join(", ") + "}"; } } -var vZ = /* @__PURE__ */ jn(function(e) { +var PZ = /* @__PURE__ */ vr(function(e) { return xX(e, []); -}), PZ = /* @__PURE__ */ jn(function(e) { - var n = yX(jV, 0, th(function(i) { +}), XZ = /* @__PURE__ */ vr(function(e) { + var n = yX(AV, 0, Jf(function(i) { return i[0].length; }, e)); - return Jf(n, function() { + return Nf(n, function() { for (var i = 0; i < e.length; ) { if (e[i][0].apply(this, arguments)) return e[i][1].apply(this, arguments); @@ -569,147 +531,136 @@ var vZ = /* @__PURE__ */ jn(function(e) { } }); }); -const vd = PZ; -var XZ = /* @__PURE__ */ $X(-1); -const TZ = XZ; -var kZ = /* @__PURE__ */ ze(function(e, n) { +const bd = XZ; +var TZ = /* @__PURE__ */ $X(-1); +const kZ = TZ; +var CZ = /* @__PURE__ */ rt(function(e, n) { return n == null || n !== n ? e : n; -}), CZ = /* @__PURE__ */ Xr(function(e, n, i) { +}), _Z = /* @__PURE__ */ Zo(function(e, n, i) { var r = Array.prototype.slice.call(i, 0); return r.splice(e, n), r; }); -function _Z(t, e) { +function RZ(t, e) { if (e == null) return e; - if (FO(t) && DO(e)) - return CZ(t, 1, e); + if (LO(t) && AO(e)) + return _Z(t, 1, e); var n = {}; for (var i in e) n[i] = e[i]; return delete n[t], n; } -function RZ(t, e) { - if (FO(t) && DO(e)) +function qZ(t, e) { + if (LO(t) && AO(e)) return [].concat(e); var n = {}; for (var i in e) n[i] = e[i]; return n; } -var qZ = /* @__PURE__ */ ze(function t(e, n) { +var WZ = /* @__PURE__ */ rt(function t(e, n) { if (n == null) return n; switch (e.length) { case 0: return n; case 1: - return _Z(e[0], n); + return RZ(e[0], n); default: var i = e[0], r = Array.prototype.slice.call(e, 1); - return n[i] == null ? RZ(i, n) : Vs(i, t(r, n[i]), n); + return n[i] == null ? qZ(i, n) : qs(i, t(r, n[i]), n); } -}), WZ = /* @__PURE__ */ ze(function(e, n) { - return qZ([e], n); +}), VZ = /* @__PURE__ */ rt(function(e, n) { + return WZ([e], n); }); -const VZ = WZ; -var ZZ = /* @__PURE__ */ ze(function(e, n) { +const ZZ = VZ; +var UZ = /* @__PURE__ */ rt(function(e, n) { return e || n; -}), UZ = /* @__PURE__ */ ze(function(e, n) { - return TQ(e) ? function() { +}), YZ = /* @__PURE__ */ rt(function(e, n) { + return PQ(e) ? function() { return e.apply(this, arguments) || n.apply(this, arguments); - } : kQ(ZZ)(e, n); + } : XQ(UZ)(e, n); }); -const Tg = UZ; -function YZ(t) { +const vg = YZ; +function zZ(t) { var e = Object.prototype.toString.call(t); return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]"; } -var zZ = /* @__PURE__ */ jn(function(e) { - return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : DO(e) ? [] : rX(e) ? "" : xd(e) ? {} : FW(e) ? function() { +var GZ = /* @__PURE__ */ vr(function(e) { + return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : AO(e) ? [] : iX(e) ? "" : rX(e) ? {} : FW(e) ? function() { return arguments; - }() : YZ(e) ? e.constructor.from("") : void 0; -}), GZ = /* @__PURE__ */ $X(1); -const EZ = GZ; -function jZ(t) { + }() : zZ(e) ? e.constructor.from("") : void 0; +}), EZ = /* @__PURE__ */ $X(1); +const jZ = EZ; +function AZ(t) { if (t == null) throw new TypeError("Cannot convert undefined or null to object"); for (var e = Object(t), n = 1, i = arguments.length; n < i; ) { var r = arguments[n]; if (r != null) for (var o in r) - ra(o, r) && (e[o] = r[o]); + mQ(o, r) && (e[o] = r[o]); n += 1; } return e; } -const AZ = typeof Object.assign == "function" ? Object.assign : jZ; -var IZ = /* @__PURE__ */ ze(function(e, n) { - return yd(e + 1, function() { +const IZ = typeof Object.assign == "function" ? Object.assign : AZ; +var DZ = /* @__PURE__ */ rt(function(e, n) { + return Qd(e + 1, function() { var i = arguments[e]; - if (i != null && TQ(i[n])) + if (i != null && PQ(i[n])) return i[n].apply(i, Array.prototype.slice.call(arguments, 0, e)); - throw new TypeError(vZ(i) + ' does not have a method named "' + n + '"'); + throw new TypeError(PZ(i) + ' does not have a method named "' + n + '"'); }); }); -const vX = IZ; -var DZ = /* @__PURE__ */ jn(function(e) { - return e != null && sa(e, zZ(e)); +const vX = DZ; +var LZ = /* @__PURE__ */ vr(function(e) { + return e != null && aa(e, GZ(e)); }); -const PX = DZ; -var LZ = /* @__PURE__ */ ze(function(e, n) { +const PX = LZ; +var MZ = /* @__PURE__ */ rt(function(e, n) { return e.map(function(i) { for (var r = n, o = 0, a; o < i.length; ) { if (r == null) return; - a = i[o], r = FO(a) ? XQ(a, r) : r[a], o += 1; + a = i[o], r = LO(a) ? vQ(a, r) : r[a], o += 1; } return r; }); -}), MZ = /* @__PURE__ */ ze(function(e, n) { - return LZ([e], n)[0]; +}), FZ = /* @__PURE__ */ rt(function(e, n) { + return MZ([e], n)[0]; }); -const FZ = MZ; -var NZ = /* @__PURE__ */ ze(function(e, n) { +const NZ = FZ; +var BZ = /* @__PURE__ */ rt(function(e, n) { return e < n; }); -const BZ = NZ; -var HZ = /* @__PURE__ */ Xr(function(e, n, i) { - var r = {}, o; - for (o in n) - ra(o, n) && (r[o] = ra(o, i) ? e(o, n[o], i[o]) : n[o]); - for (o in i) - ra(o, i) && !ra(o, r) && (r[o] = i[o]); - return r; -}), JZ = /* @__PURE__ */ Xr(function t(e, n, i) { - return HZ(function(r, o, a) { - return xd(o) && xd(a) ? t(e, o, a) : e(r, o, a); - }, n, i); -}), KZ = /* @__PURE__ */ ze(function(e, n) { - return JZ(function(i, r, o) { +const HZ = BZ; +var JZ = /* @__PURE__ */ rt(function(e, n) { + return NW(function(i, r, o) { return o; }, e, n); }); -const ml = KZ; -var eU = /* @__PURE__ */ ze(function(e, n) { - return AZ({}, n, e); +const gl = JZ; +var KZ = /* @__PURE__ */ rt(function(e, n) { + return IZ({}, n, e); }); -const Jr = eU; -var tU = /* @__PURE__ */ ze(function(e, n) { +const Br = KZ; +var eU = /* @__PURE__ */ rt(function(e, n) { for (var i = {}, r = 0; r < e.length; ) e[r] in n && (i[e[r]] = n[e[r]]), r += 1; return i; }); -const nU = tU; -var iU = /* @__PURE__ */ Xr(function(e, n, i) { - return kZ(e, SX(n, i)); +const tU = eU; +var nU = /* @__PURE__ */ Zo(function(e, n, i) { + return CZ(e, SX(n, i)); }); -const rU = iU; -var oU = /* @__PURE__ */ vX(1, "split"); -const aU = oU; -var OU = /* @__PURE__ */ vX(0, "toUpperCase"); -const sU = OU; -var Ge = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t[t.airflow = 94] = "airflow", t))(Ge || {}); -function _Q(t, e = vg.colors.black, n = vg.iconSizes.lg) { +const iU = nU; +var rU = /* @__PURE__ */ vX(1, "split"); +const oU = rU; +var aU = /* @__PURE__ */ vX(0, "toUpperCase"); +const OU = aU; +var ze = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t[t.airflow = 94] = "airflow", t))(ze || {}); +function kQ(t, e = bg.colors.black, n = bg.iconSizes.lg) { switch (t) { case 71: return /* @__PURE__ */ h.jsxs( @@ -2994,13 +2945,13 @@ function _Q(t, e = vg.colors.black, n = vg.iconSizes.lg) { return /* @__PURE__ */ h.jsx("svg", {}); } } -const Le = ({ +const De = ({ icon: t, color: e = "black", size: n = "lg", ...i }) => { - const r = Bl(), o = FZ(aU(".", e), r.colors), a = SX(n, r.iconSizes); + const r = Fl(), o = NZ(oU(".", e), r.colors), a = SX(n, r.iconSizes); return /* @__PURE__ */ h.jsx( G, { @@ -3014,10 +2965,10 @@ const Le = ({ }, ...i.sx }, - children: _Q(t, o, a) + children: kQ(t, o, a) } ); -}, u1 = { +}, s1 = { default: { border: "1px solid", borderColor: "grayShade3", @@ -3057,15 +3008,15 @@ const Le = ({ flex: { gap: "4px" } -}, lU = { +}, sU = { horizontal: "row", vertical: "column-reverse" -}, cU = ({ href: t, newTab: e }) => t ? { +}, lU = ({ href: t, newTab: e }) => t ? { href: t, as: "a", rel: "noreferrer", target: e ? "_blank" : "_self" -} : {}, uU = ({ +} : {}, cU = ({ icon: t, href: e, children: n, @@ -3076,27 +3027,27 @@ const Le = ({ mode: O = "default", ...s }) => /* @__PURE__ */ h.jsx( - LO, + IO, { ...s, - ...cU({ newTab: a, href: e }), - sx: { ...u1.default, ...u1[O], ...o }, + ...lU({ newTab: a, href: e }), + sx: { ...s1.default, ...s1[O], ...o }, children: /* @__PURE__ */ h.jsxs( G, { alignItems: "center", justifyContent: "center", - sx: u1.flex, - flexDirection: lU[r ?? "horizontal"], + sx: s1.flex, + flexDirection: sU[r ?? "horizontal"], children: [ - !!t && /* @__PURE__ */ h.jsx(Le, { icon: t, size: "xs" }), + !!t && /* @__PURE__ */ h.jsx(De, { icon: t, size: "xs" }), r && !t && /* @__PURE__ */ h.jsx("span", { "data-active": i }), /* @__PURE__ */ h.jsx(Y, { children: n }) ] } ) } -), hbe = Fn(uU), dU = { +), fbe = Ln(cU), uU = { display: "flex", position: "relative", flexDirection: "row", @@ -3113,7 +3064,7 @@ const Le = ({ ":disabled": { cursor: "default" } -}, fU = { +}, dU = { position: "absolute", display: "none", width: "100%", @@ -3121,7 +3072,7 @@ const Le = ({ left: 0, top: 0, opacity: 0 -}, hU = { +}, fU = { height: "15px", overflow: "hidden", display: "inline-block", @@ -3131,7 +3082,7 @@ const Le = ({ fill: "primary" } } -}, pbe = ({ +}, hbe = ({ children: t, href: e, modeNFiles: n, @@ -3144,22 +3095,22 @@ const Le = ({ isDisabledUploadButton: l, ...c }) => /* @__PURE__ */ h.jsx(G, { flexDirection: "column", children: /* @__PURE__ */ h.jsxs( - LO, + IO, { disabled: l, - sx: { ...dU }, + sx: { ...uU }, variant: "secondary", ...c, onClick: O, children: [ - /* @__PURE__ */ h.jsx(Y, { sx: { ...hU }, children: /* @__PURE__ */ h.jsx(Le, { color: "primary", size: "sm", icon: Ge.upload }) }), + /* @__PURE__ */ h.jsx(Y, { sx: { ...fU }, children: /* @__PURE__ */ h.jsx(De, { color: "primary", size: "sm", icon: ze.upload }) }), /* @__PURE__ */ h.jsx( "input", { type: "file", name: r, style: { - ...fU + ...dU }, ref: i, multiple: n, @@ -3170,7 +3121,7 @@ const Le = ({ t ] } -) }), pU = { +) }), hU = { display: "flex", justifyContent: "space-between", alignItems: "center", @@ -3192,14 +3143,14 @@ const Le = ({ "> div:last-child:after": { display: "none" } -}, gU = { +}, pU = { display: "flex", justifyContent: "space-between", alignItems: "center", button: { ml: "20px" } -}, $U = { +}, gU = { width: "100%", minWidth: "700px", borderStyle: "solid", @@ -3213,7 +3164,7 @@ const Le = ({ zIndex: 1, backgroundColor: "grayShade3" }, xe = ({ children: t, bold: e, gray: n, sx: i, ...r }) => /* @__PURE__ */ h.jsx( - _n, + Cn, { variant: `labeling${n ? "Gray" : ""}`, fontWeight: e ? "label" : void 0, @@ -3222,13 +3173,13 @@ const Le = ({ children: t } ); -var RQ = /* @__PURE__ */ ((t) => (t.oneFile = "oneFile", t.nFiles = "nFiles", t.oneFolder = "oneFolder", t))(RQ || {}); -const mU = gX`from { +var CQ = /* @__PURE__ */ ((t) => (t.oneFile = "oneFile", t.nFiles = "nFiles", t.oneFolder = "oneFolder", t))(CQ || {}); +const $U = gX`from { transform: rotate(50deg) } to { transform: rotate(410deg) - }`, QU = (t, e) => ({ + }`, mU = (t, e) => ({ display: "inline-block", position: "relative", width: `${t}px`, @@ -3242,7 +3193,7 @@ const mU = gX`from { borderStyle: "solid", borderWidth: "3px", borderRadius: "50%", - animation: `${mU} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite`, + animation: `${$U} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite`, borderLeftColor: e, borderRightColor: "transparent", borderTopColor: "transparent", @@ -3257,12 +3208,12 @@ const mU = gX`from { animationDelay: "-0.15s" } } -}), Hl = ({ size: t = 20, color: e = "primary", ...n }) => /* @__PURE__ */ h.jsxs(Y, { sx: { ...QU(t, e) }, ...n, children: [ +}), Nl = ({ size: t = 20, color: e = "primary", ...n }) => /* @__PURE__ */ h.jsxs(Y, { sx: { ...mU(t, e) }, ...n, children: [ /* @__PURE__ */ h.jsx("div", {}), /* @__PURE__ */ h.jsx("div", {}), /* @__PURE__ */ h.jsx("div", {}), /* @__PURE__ */ h.jsx("div", {}) -] }), SU = { +] }), QU = { display: "flex", flexDirection: "row", alignItems: "center", @@ -3285,8 +3236,8 @@ const mU = gX`from { justifyContent: "center", alignItems: "center" } -}, yU = (t) => NW[t][":disabled"].color; -const Rn = ({ +}, SU = (t) => BW[t][":disabled"].color; +const _n = ({ icon: t, children: e, href: n, @@ -3301,21 +3252,21 @@ const Rn = ({ ...u }) => { const d = /* @__PURE__ */ h.jsxs( - LO, + IO, { variant: O, as: n && !a ? "span" : "button", disabled: a || l, - sx: { ...SU, ...r }, + sx: { ...QU, ...r }, type: c, ...u, children: [ - t && (!s || !l) && /* @__PURE__ */ h.jsx(Le, { icon: t, size: "md", color: wU(O) }), + t && (!s || !l) && /* @__PURE__ */ h.jsx(De, { icon: t, size: "md", color: bU(O) }), (!s || !l) && e, l && /* @__PURE__ */ h.jsx( - Hl, + Nl, { - color: yU(O), + color: SU(O), ml: s ? "0px" : "15px" } ) @@ -3331,15 +3282,15 @@ const Rn = ({ ...i === "_blank" ? { rel: "noopener noreferrer" } : {}, children: d } - ) : /* @__PURE__ */ h.jsx(eh, { className: "link-button", to: n, target: i, children: d }) : d; -}, bU = { + ) : /* @__PURE__ */ h.jsx(Hf, { className: "link-button", to: n, target: i, children: d }) : d; +}, yU = { primary: "white", alert: "labels.red" /* [others]: 'primary' */ -}, wU = (t) => rU(t, "primary")(bU), xU = ({ +}, bU = (t) => iU(t, "primary")(yU), wU = ({ value: t, activeFile: e, - mode: n = RQ.oneFile, + mode: n = CQ.oneFile, onClose: i, handleSelectFile: r, fileListValue: o, @@ -3363,8 +3314,8 @@ const Rn = ({ handleSelect: () => r(t || a, !1) } }, { exploreMode: l, color: c, handleSelect: u } = s[n]; - return /* @__PURE__ */ h.jsxs(G, { sx: $U, ...O, children: [ - /* @__PURE__ */ h.jsx(Y, { sx: pU, children: n && /* @__PURE__ */ h.jsx( + return /* @__PURE__ */ h.jsxs(G, { sx: gU, ...O, children: [ + /* @__PURE__ */ h.jsx(Y, { sx: hU, children: n && /* @__PURE__ */ h.jsx( xe, { bold: !0, @@ -3376,10 +3327,10 @@ const Rn = ({ children: l } ) }), - /* @__PURE__ */ h.jsxs(Y, { sx: gU, children: [ - /* @__PURE__ */ h.jsx(Rn, { variant: "file-secondary", onClick: () => i(!1), children: "Back" }), + /* @__PURE__ */ h.jsxs(Y, { sx: pU, children: [ + /* @__PURE__ */ h.jsx(_n, { variant: "file-secondary", onClick: () => i(!1), children: "Back" }), /* @__PURE__ */ h.jsx( - Rn, + _n, { intent: "primary", disabled: !e && n !== "oneFolder", @@ -3389,7 +3340,7 @@ const Rn = ({ ) ] }) ] }); -}, vU = { +}, xU = { display: "flex", flexDirection: "column", alignItems: "start", @@ -3409,10 +3360,10 @@ const Rn = ({ "> div": { marginLeft: 0 } -}, PU = ({ +}, vU = ({ title: t, shortcutActions: e -}) => /* @__PURE__ */ h.jsxs(Y, { sx: { ...vU }, children: [ +}) => /* @__PURE__ */ h.jsxs(Y, { sx: { ...xU }, children: [ t && /* @__PURE__ */ h.jsx(G, { as: "h4", children: t }), e && /* @__PURE__ */ h.jsx( "div", @@ -3423,7 +3374,7 @@ const Rn = ({ children: e } ) -] }), XU = 500, tn = ({ +] }), PU = 500, en = ({ children: t, mainText: e, secondaryText: n, @@ -3435,7 +3386,7 @@ const Rn = ({ containerProps: s, ...l }) => /* @__PURE__ */ h.jsx( - BW, + HW, { label: /* @__PURE__ */ h.jsxs(kt, { fontSize: "xs", fontWeight: "bold", children: [ e, @@ -3443,13 +3394,13 @@ const Rn = ({ ] }), defaultIsOpen: r, placement: o, - openDelay: a ? XU : 0, + openDelay: a ? PU : 0, isDisabled: i || !e, hasArrow: O, ...l, children: /* @__PURE__ */ h.jsx(kt, { ...s, children: t }) } -), TU = (t, e) => ({ +), XU = (t, e) => ({ display: "flex", position: "relative", flexDirection: "row", @@ -3477,7 +3428,7 @@ const Rn = ({ fontFamily: "text", fontWeight: "text", fontSize: "text" -}), kU = ({ +}), TU = ({ setActiveFile: t, selectPathListValue: e, mode: n, @@ -3497,7 +3448,7 @@ const Rn = ({ return /* @__PURE__ */ h.jsxs( G, { - sx: { ...TU(O, u) }, + sx: { ...XU(O, u) }, onClick: $, tabIndex: 0, children: [ @@ -3514,14 +3465,14 @@ const Rn = ({ } } }, - children: /* @__PURE__ */ h.jsx(Le, { color: "primary", size: "sm", icon: Ge.folder }) + children: /* @__PURE__ */ h.jsx(De, { color: "primary", size: "sm", icon: ze.folder }) } ), - /* @__PURE__ */ h.jsx(tn, { mainText: l, children: /* @__PURE__ */ h.jsx(Y, { children: l }) }) + /* @__PURE__ */ h.jsx(en, { mainText: l, children: /* @__PURE__ */ h.jsx(Y, { children: l }) }) ] } ); -}, t2 = (t, e, n, i = !0) => ({ +}, e2 = (t, e, n, i = !0) => ({ position: "relative", // eslint-disable-next-line no-nested-ternary backgroundColor: t && e ? "grayShade2" : "white", @@ -3566,7 +3517,7 @@ const Rn = ({ fontWeight: "text", fontSize: "text", ...!i && { color: "gray" } -}), CU = { +}), kU = { span: { display: "flex", alignItems: "center", @@ -3601,7 +3552,7 @@ const Rn = ({ borderStyle: "solid", cursor: "default" } -}, nh = Nn( +}, Kf = Mn( ({ label: t, name: e, @@ -3612,7 +3563,7 @@ const Rn = ({ tooltipProps: a = { mainText: "" }, ...O }, s) => /* @__PURE__ */ h.jsx( - tn, + en, { disabled: !i, ...a, @@ -3625,7 +3576,7 @@ const Rn = ({ ...O, tx: "variants.checkbox", variant: "primary", - sx: CU, + sx: kU, children: [ /* @__PURE__ */ h.jsx( Y, @@ -3647,7 +3598,7 @@ const Rn = ({ ) } ) -), _U = ({ +), CU = ({ isActive: t, setActiveFolder: e, setActiveFile: n, @@ -3665,16 +3616,16 @@ const Rn = ({ }, $ = () => { n(i); }; - return /* @__PURE__ */ h.jsx(tn, { mainText: i.attributes.name, children: a === "nFiles" ? /* @__PURE__ */ h.jsx( + return /* @__PURE__ */ h.jsx(en, { mainText: i.attributes.name, children: a === "nFiles" ? /* @__PURE__ */ h.jsx( Y, { sx: { - ...t2(u, f, a, l) + ...e2(u, f, a, l) }, tabIndex: 0, onClick: () => l && $(), children: /* @__PURE__ */ h.jsx( - nh, + Kf, { m: "10px", disabled: !l, @@ -3689,14 +3640,14 @@ const Rn = ({ Y, { sx: { - ...t2(u, f, a, l) + ...e2(u, f, a, l) }, onClick: () => l && m(a), tabIndex: 0, children: i.attributes.name } ) }); -}, RU = ({ +}, _U = ({ items: t, mode: e, index: n, @@ -3731,7 +3682,7 @@ const Rn = ({ return l.includes(`.${$}`); }; return f ? f.attributes.dir ? /* @__PURE__ */ h.jsx( - kU, + TU, { index: n, id: f.attributes.id, @@ -3749,7 +3700,7 @@ const Rn = ({ }, f.attributes.id ) : /* @__PURE__ */ h.jsx( - _U, + CU, { index: n, mode: e, @@ -3782,14 +3733,14 @@ function J(t, e) { function ee(t) { J(1, arguments); var e = Object.prototype.toString.call(t); - return t instanceof Date || Yo(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN)); + return t instanceof Date || Uo(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN)); } -function NO(t, e) { +function MO(t, e) { J(2, arguments); var n = ee(t), i = Re(e); return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && n.setDate(n.getDate() + i), n); } -function Fi(t, e) { +function Li(t, e) { J(2, arguments); var n = ee(t), i = Re(e); if (isNaN(i)) @@ -3801,93 +3752,93 @@ function Fi(t, e) { var a = o.getDate(); return r >= a ? o : (n.setFullYear(o.getFullYear(), o.getMonth(), r), n); } -function qQ(t, e) { +function _Q(t, e) { J(2, arguments); var n = ee(t).getTime(), i = Re(e); return new Date(n + i); } -var qU = 36e5; -function WU(t, e) { +var RU = 36e5; +function qU(t, e) { J(2, arguments); var n = Re(e); - return qQ(t, n * qU); + return _Q(t, n * RU); } -var VU = {}; -function va() { - return VU; +var WU = {}; +function wa() { + return WU; } function XX(t, e) { var n, i, r, o, a, O, s, l; J(1, arguments); - var c = va(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); + var c = wa(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(u >= 0 && u <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var d = ee(t), f = d.getDay(), g = (f < u ? 7 : 0) + f - u; return d.setDate(d.getDate() - g), d.setHours(0, 0, 0, 0), d; } -function Pd(t) { +function wd(t) { return J(1, arguments), XX(t, { weekStartsOn: 1 }); } -function ZU(t) { +function VU(t) { J(1, arguments); var e = ee(t), n = e.getFullYear(), i = /* @__PURE__ */ new Date(0); i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0); - var r = Pd(i), o = /* @__PURE__ */ new Date(0); + var r = wd(i), o = /* @__PURE__ */ new Date(0); o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0); - var a = Pd(o); + var a = wd(o); return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= a.getTime() ? n : n - 1; } -function UU(t) { +function ZU(t) { J(1, arguments); - var e = ZU(t), n = /* @__PURE__ */ new Date(0); + var e = VU(t), n = /* @__PURE__ */ new Date(0); n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0); - var i = Pd(n); + var i = wd(n); return i; } -function Xd(t) { +function xd(t) { var e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds())); return e.setUTCFullYear(t.getFullYear()), t.getTime() - e.getTime(); } -function br(t) { +function Sr(t) { J(1, arguments); var e = ee(t); return e.setHours(0, 0, 0, 0), e; } -var YU = 864e5; -function Td(t, e) { +var UU = 864e5; +function vd(t, e) { J(2, arguments); - var n = br(t), i = br(e), r = n.getTime() - Xd(n), o = i.getTime() - Xd(i); - return Math.round((r - o) / YU); + var n = Sr(t), i = Sr(e), r = n.getTime() - xd(n), o = i.getTime() - xd(i); + return Math.round((r - o) / UU); } -var zU = 6e4; -function kg(t, e) { +var YU = 6e4; +function Pg(t, e) { J(2, arguments); var n = Re(e); - return qQ(t, n * zU); + return _Q(t, n * YU); } function TX(t, e) { J(2, arguments); var n = Re(e), i = n * 3; - return Fi(t, i); + return Li(t, i); } -function WQ(t, e) { +function RQ(t, e) { J(2, arguments); var n = Re(e), i = n * 7; - return NO(t, i); + return MO(t, i); } -function $O(t, e) { +function pO(t, e) { J(2, arguments); var n = Re(e); - return Fi(t, n * 12); + return Li(t, n * 12); } -function n2(t) { +function t2(t) { J(1, arguments); var e; if (t && typeof t.forEach == "function") e = t; - else if (Yo(t) === "object" && t !== null) + else if (Uo(t) === "object" && t !== null) e = Array.prototype.slice.call(t); else return /* @__PURE__ */ new Date(NaN); @@ -3897,12 +3848,12 @@ function n2(t) { (n === void 0 || n < r || isNaN(Number(r))) && (n = r); }), n || /* @__PURE__ */ new Date(NaN); } -function i2(t) { +function n2(t) { J(1, arguments); var e; if (t && typeof t.forEach == "function") e = t; - else if (Yo(t) === "object" && t !== null) + else if (Uo(t) === "object" && t !== null) e = Array.prototype.slice.call(t); else return /* @__PURE__ */ new Date(NaN); @@ -3912,50 +3863,50 @@ function i2(t) { (n === void 0 || n > r || isNaN(r.getDate())) && (n = r); }), n || /* @__PURE__ */ new Date(NaN); } -var VQ = 6e4, ZQ = 36e5, GU = 1e3; -function EU(t, e) { +var qQ = 6e4, WQ = 36e5, zU = 1e3; +function GU(t, e) { J(2, arguments); - var n = br(t), i = br(e); + var n = Sr(t), i = Sr(e); return n.getTime() === i.getTime(); } -function UQ(t) { - return J(1, arguments), t instanceof Date || Yo(t) === "object" && Object.prototype.toString.call(t) === "[object Date]"; +function VQ(t) { + return J(1, arguments), t instanceof Date || Uo(t) === "object" && Object.prototype.toString.call(t) === "[object Date]"; } -function kd(t) { - if (J(1, arguments), !UQ(t) && typeof t != "number") +function Pd(t) { + if (J(1, arguments), !VQ(t) && typeof t != "number") return !1; var e = ee(t); return !isNaN(Number(e)); } -function Cd(t, e) { +function Xd(t, e) { J(2, arguments); var n = ee(t), i = ee(e), r = n.getFullYear() - i.getFullYear(), o = n.getMonth() - i.getMonth(); return r * 12 + o; } -function Ba(t) { +function Fa(t) { J(1, arguments); var e = ee(t), n = Math.floor(e.getMonth() / 3) + 1; return n; } -function _d(t, e) { +function Td(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getFullYear() - i.getFullYear(); } -function jU(t, e) { +function EU(t, e) { return J(2, arguments), ee(t).getTime() - ee(e).getTime(); } -function Cg(t) { +function Xg(t) { J(1, arguments); var e = ee(t); return e.setHours(23, 59, 59, 999), e; } -function AU(t) { +function jU(t) { J(1, arguments); var e = ee(t), n = e.getMonth(); return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e; } -function _g(t) { +function Tg(t) { J(1, arguments); var e = ee(t), n = e.getMonth(), i = n - n % 3; return e.setMonth(i, 1), e.setHours(0, 0, 0, 0), e; @@ -3965,7 +3916,7 @@ function kX(t) { var e = ee(t); return e.setDate(1), e.setHours(0, 0, 0, 0), e; } -function IU(t) { +function AU(t) { J(1, arguments); var e = ee(t), n = e.getFullYear(); return e.setFullYear(n + 1, 0, 0), e.setHours(23, 59, 59, 999), e; @@ -3978,17 +3929,17 @@ function CX(t) { function _X(t, e) { J(2, arguments); var n = Re(e); - return qQ(t, -n); + return _Q(t, -n); } -var DU = 864e5; -function LU(t) { +var IU = 864e5; +function DU(t) { J(1, arguments); var e = ee(t), n = e.getTime(); e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); var i = e.getTime(), r = n - i; - return Math.floor(r / DU) + 1; + return Math.floor(r / IU) + 1; } -function mO(t) { +function gO(t) { J(1, arguments); var e = 1, n = ee(t), i = n.getUTCDay(), r = (i < e ? 7 : 0) + i - e; return n.setUTCDate(n.getUTCDate() - r), n.setUTCHours(0, 0, 0, 0), n; @@ -3997,79 +3948,79 @@ function RX(t) { J(1, arguments); var e = ee(t), n = e.getUTCFullYear(), i = /* @__PURE__ */ new Date(0); i.setUTCFullYear(n + 1, 0, 4), i.setUTCHours(0, 0, 0, 0); - var r = mO(i), o = /* @__PURE__ */ new Date(0); + var r = gO(i), o = /* @__PURE__ */ new Date(0); o.setUTCFullYear(n, 0, 4), o.setUTCHours(0, 0, 0, 0); - var a = mO(o); + var a = gO(o); return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= a.getTime() ? n : n - 1; } -function MU(t) { +function LU(t) { J(1, arguments); var e = RX(t), n = /* @__PURE__ */ new Date(0); n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0); - var i = mO(n); + var i = gO(n); return i; } -var FU = 6048e5; +var MU = 6048e5; function qX(t) { J(1, arguments); - var e = ee(t), n = mO(e).getTime() - MU(e).getTime(); - return Math.round(n / FU) + 1; + var e = ee(t), n = gO(e).getTime() - LU(e).getTime(); + return Math.round(n / MU) + 1; } -function ha(t, e) { +function da(t, e) { var n, i, r, o, a, O, s, l; J(1, arguments); - var c = va(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); + var c = wa(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(u >= 0 && u <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var d = ee(t), f = d.getUTCDay(), g = (f < u ? 7 : 0) + f - u; return d.setUTCDate(d.getUTCDate() - g), d.setUTCHours(0, 0, 0, 0), d; } -function YQ(t, e) { +function ZQ(t, e) { var n, i, r, o, a, O, s, l; J(1, arguments); - var c = ee(t), u = c.getUTCFullYear(), d = va(), f = Re((n = (i = (r = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && r !== void 0 ? r : d.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1); + var c = ee(t), u = c.getUTCFullYear(), d = wa(), f = Re((n = (i = (r = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && r !== void 0 ? r : d.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1); if (!(f >= 1 && f <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var g = /* @__PURE__ */ new Date(0); g.setUTCFullYear(u + 1, 0, f), g.setUTCHours(0, 0, 0, 0); - var m = ha(g, e), $ = /* @__PURE__ */ new Date(0); + var m = da(g, e), $ = /* @__PURE__ */ new Date(0); $.setUTCFullYear(u, 0, f), $.setUTCHours(0, 0, 0, 0); - var Q = ha($, e); + var Q = da($, e); return c.getTime() >= m.getTime() ? u + 1 : c.getTime() >= Q.getTime() ? u : u - 1; } -function NU(t, e) { +function FU(t, e) { var n, i, r, o, a, O, s, l; J(1, arguments); - var c = va(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && r !== void 0 ? r : c.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), d = YQ(t, e), f = /* @__PURE__ */ new Date(0); + var c = wa(), u = Re((n = (i = (r = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (O = a.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && r !== void 0 ? r : c.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), d = ZQ(t, e), f = /* @__PURE__ */ new Date(0); f.setUTCFullYear(d, 0, u), f.setUTCHours(0, 0, 0, 0); - var g = ha(f, e); + var g = da(f, e); return g; } -var BU = 6048e5; +var NU = 6048e5; function WX(t, e) { J(1, arguments); - var n = ee(t), i = ha(n, e).getTime() - NU(n, e).getTime(); - return Math.round(i / BU) + 1; + var n = ee(t), i = da(n, e).getTime() - FU(n, e).getTime(); + return Math.round(i / NU) + 1; } -function tt(t, e) { +function et(t, e) { for (var n = t < 0 ? "-" : "", i = Math.abs(t).toString(); i.length < e; ) i = "0" + i; return n + i; } -var HU = { +var BU = { // Year y: function(e, n) { var i = e.getUTCFullYear(), r = i > 0 ? i : 1 - i; - return tt(n === "yy" ? r % 100 : r, n.length); + return et(n === "yy" ? r % 100 : r, n.length); }, // Month M: function(e, n) { var i = e.getUTCMonth(); - return n === "M" ? String(i + 1) : tt(i + 1, 2); + return n === "M" ? String(i + 1) : et(i + 1, 2); }, // Day of the month d: function(e, n) { - return tt(e.getUTCDate(), n.length); + return et(e.getUTCDate(), n.length); }, // AM or PM a: function(e, n) { @@ -4089,28 +4040,28 @@ var HU = { }, // Hour [1-12] h: function(e, n) { - return tt(e.getUTCHours() % 12 || 12, n.length); + return et(e.getUTCHours() % 12 || 12, n.length); }, // Hour [0-23] H: function(e, n) { - return tt(e.getUTCHours(), n.length); + return et(e.getUTCHours(), n.length); }, // Minute m: function(e, n) { - return tt(e.getUTCMinutes(), n.length); + return et(e.getUTCMinutes(), n.length); }, // Second s: function(e, n) { - return tt(e.getUTCSeconds(), n.length); + return et(e.getUTCSeconds(), n.length); }, // Fraction of second S: function(e, n) { var i = n.length, r = e.getUTCMilliseconds(), o = Math.floor(r * Math.pow(10, i - 3)); - return tt(o, n.length); + return et(o, n.length); } }; -const Kr = HU; -var Va = { +const Hr = BU; +var qa = { am: "am", pm: "pm", midnight: "midnight", @@ -4119,7 +4070,7 @@ var Va = { afternoon: "afternoon", evening: "evening", night: "night" -}, JU = { +}, HU = { // Era G: function(e, n, i) { var r = e.getUTCFullYear() > 0 ? 1 : 0; @@ -4149,23 +4100,23 @@ var Va = { unit: "year" }); } - return Kr.y(e, n); + return Hr.y(e, n); }, // Local week-numbering year Y: function(e, n, i, r) { - var o = YQ(e, r), a = o > 0 ? o : 1 - o; + var o = ZQ(e, r), a = o > 0 ? o : 1 - o; if (n === "YY") { var O = a % 100; - return tt(O, 2); + return et(O, 2); } return n === "Yo" ? i.ordinalNumber(a, { unit: "year" - }) : tt(a, n.length); + }) : et(a, n.length); }, // ISO week-numbering year R: function(e, n) { var i = RX(e); - return tt(i, n.length); + return et(i, n.length); }, // Extended year. This is a single number designating the year of this calendar system. // The main difference between `y` and `u` localizers are B.C. years: @@ -4178,7 +4129,7 @@ var Va = { // while `uu` pads single digit years to 2 characters and returns other years unchanged. u: function(e, n) { var i = e.getUTCFullYear(); - return tt(i, n.length); + return et(i, n.length); }, // Quarter Q: function(e, n, i) { @@ -4187,7 +4138,7 @@ var Va = { case "Q": return String(r); case "QQ": - return tt(r, 2); + return et(r, 2); case "Qo": return i.ordinalNumber(r, { unit: "quarter" @@ -4217,7 +4168,7 @@ var Va = { case "q": return String(r); case "qq": - return tt(r, 2); + return et(r, 2); case "qo": return i.ordinalNumber(r, { unit: "quarter" @@ -4246,7 +4197,7 @@ var Va = { switch (n) { case "M": case "MM": - return Kr.M(e, n); + return Hr.M(e, n); case "Mo": return i.ordinalNumber(r + 1, { unit: "month" @@ -4276,7 +4227,7 @@ var Va = { case "L": return String(r + 1); case "LL": - return tt(r + 1, 2); + return et(r + 1, 2); case "Lo": return i.ordinalNumber(r + 1, { unit: "month" @@ -4304,27 +4255,27 @@ var Va = { var o = WX(e, r); return n === "wo" ? i.ordinalNumber(o, { unit: "week" - }) : tt(o, n.length); + }) : et(o, n.length); }, // ISO week of year I: function(e, n, i) { var r = qX(e); return n === "Io" ? i.ordinalNumber(r, { unit: "week" - }) : tt(r, n.length); + }) : et(r, n.length); }, // Day of the month d: function(e, n, i) { return n === "do" ? i.ordinalNumber(e.getUTCDate(), { unit: "date" - }) : Kr.d(e, n); + }) : Hr.d(e, n); }, // Day of year D: function(e, n, i) { - var r = LU(e); + var r = DU(e); return n === "Do" ? i.ordinalNumber(r, { unit: "dayOfYear" - }) : tt(r, n.length); + }) : et(r, n.length); }, // Day of week E: function(e, n, i) { @@ -4362,7 +4313,7 @@ var Va = { case "e": return String(a); case "ee": - return tt(a, 2); + return et(a, 2); case "eo": return i.ordinalNumber(a, { unit: "day" @@ -4397,7 +4348,7 @@ var Va = { case "c": return String(a); case "cc": - return tt(a, n.length); + return et(a, n.length); case "co": return i.ordinalNumber(a, { unit: "day" @@ -4432,7 +4383,7 @@ var Va = { case "i": return String(o); case "ii": - return tt(o, n.length); + return et(o, n.length); case "io": return i.ordinalNumber(o, { unit: "day" @@ -4491,7 +4442,7 @@ var Va = { // AM, PM, midnight, noon b: function(e, n, i) { var r = e.getUTCHours(), o; - switch (r === 12 ? o = Va.noon : r === 0 ? o = Va.midnight : o = r / 12 >= 1 ? "pm" : "am", n) { + switch (r === 12 ? o = qa.noon : r === 0 ? o = qa.midnight : o = r / 12 >= 1 ? "pm" : "am", n) { case "b": case "bb": return i.dayPeriod(o, { @@ -4519,7 +4470,7 @@ var Va = { // in the morning, in the afternoon, in the evening, at night B: function(e, n, i) { var r = e.getUTCHours(), o; - switch (r >= 17 ? o = Va.evening : r >= 12 ? o = Va.afternoon : r >= 4 ? o = Va.morning : o = Va.night, n) { + switch (r >= 17 ? o = qa.evening : r >= 12 ? o = qa.afternoon : r >= 4 ? o = qa.morning : o = qa.night, n) { case "B": case "BB": case "BBB": @@ -4548,43 +4499,43 @@ var Va = { unit: "hour" }); } - return Kr.h(e, n); + return Hr.h(e, n); }, // Hour [0-23] H: function(e, n, i) { return n === "Ho" ? i.ordinalNumber(e.getUTCHours(), { unit: "hour" - }) : Kr.H(e, n); + }) : Hr.H(e, n); }, // Hour [0-11] K: function(e, n, i) { var r = e.getUTCHours() % 12; return n === "Ko" ? i.ordinalNumber(r, { unit: "hour" - }) : tt(r, n.length); + }) : et(r, n.length); }, // Hour [1-24] k: function(e, n, i) { var r = e.getUTCHours(); return r === 0 && (r = 24), n === "ko" ? i.ordinalNumber(r, { unit: "hour" - }) : tt(r, n.length); + }) : et(r, n.length); }, // Minute m: function(e, n, i) { return n === "mo" ? i.ordinalNumber(e.getUTCMinutes(), { unit: "minute" - }) : Kr.m(e, n); + }) : Hr.m(e, n); }, // Second s: function(e, n, i) { return n === "so" ? i.ordinalNumber(e.getUTCSeconds(), { unit: "second" - }) : Kr.s(e, n); + }) : Hr.s(e, n); }, // Fraction of second S: function(e, n) { - return Kr.S(e, n); + return Hr.S(e, n); }, // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) X: function(e, n, i, r) { @@ -4593,14 +4544,14 @@ var Va = { return "Z"; switch (n) { case "X": - return o2(a); + return r2(a); case "XXXX": case "XX": - return Ho(a); + return Bo(a); case "XXXXX": case "XXX": default: - return Ho(a, ":"); + return Bo(a, ":"); } }, // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) @@ -4608,14 +4559,14 @@ var Va = { var o = r._originalDate || e, a = o.getTimezoneOffset(); switch (n) { case "x": - return o2(a); + return r2(a); case "xxxx": case "xx": - return Ho(a); + return Bo(a); case "xxxxx": case "xxx": default: - return Ho(a, ":"); + return Bo(a, ":"); } }, // Timezone (GMT) @@ -4625,10 +4576,10 @@ var Va = { case "O": case "OO": case "OOO": - return "GMT" + r2(a, ":"); + return "GMT" + i2(a, ":"); case "OOOO": default: - return "GMT" + Ho(a, ":"); + return "GMT" + Bo(a, ":"); } }, // Timezone (specific non-location) @@ -4638,43 +4589,43 @@ var Va = { case "z": case "zz": case "zzz": - return "GMT" + r2(a, ":"); + return "GMT" + i2(a, ":"); case "zzzz": default: - return "GMT" + Ho(a, ":"); + return "GMT" + Bo(a, ":"); } }, // Seconds timestamp t: function(e, n, i, r) { var o = r._originalDate || e, a = Math.floor(o.getTime() / 1e3); - return tt(a, n.length); + return et(a, n.length); }, // Milliseconds timestamp T: function(e, n, i, r) { var o = r._originalDate || e, a = o.getTime(); - return tt(a, n.length); + return et(a, n.length); } }; -function r2(t, e) { +function i2(t, e) { var n = t > 0 ? "-" : "+", i = Math.abs(t), r = Math.floor(i / 60), o = i % 60; if (o === 0) return n + String(r); var a = e || ""; - return n + String(r) + a + tt(o, 2); + return n + String(r) + a + et(o, 2); } -function o2(t, e) { +function r2(t, e) { if (t % 60 === 0) { var n = t > 0 ? "-" : "+"; - return n + tt(Math.abs(t) / 60, 2); + return n + et(Math.abs(t) / 60, 2); } - return Ho(t, e); + return Bo(t, e); } -function Ho(t, e) { - var n = e || "", i = t > 0 ? "-" : "+", r = Math.abs(t), o = tt(Math.floor(r / 60), 2), a = tt(r % 60, 2); +function Bo(t, e) { + var n = e || "", i = t > 0 ? "-" : "+", r = Math.abs(t), o = et(Math.floor(r / 60), 2), a = et(r % 60, 2); return i + o + n + a; } -const KU = JU; -var a2 = function(e, n) { +const JU = HU; +var o2 = function(e, n) { switch (e) { case "P": return n.date({ @@ -4714,10 +4665,10 @@ var a2 = function(e, n) { width: "full" }); } -}, eY = function(e, n) { +}, KU = function(e, n) { var i = e.match(/(P+)(p+)?/) || [], r = i[1], o = i[2]; if (!o) - return a2(e, n); + return o2(e, n); var a; switch (r) { case "P": @@ -4742,20 +4693,20 @@ var a2 = function(e, n) { }); break; } - return a.replace("{{date}}", a2(r, n)).replace("{{time}}", VX(o, n)); -}, tY = { + return a.replace("{{date}}", o2(r, n)).replace("{{time}}", VX(o, n)); +}, eY = { p: VX, - P: eY + P: KU }; -const Rg = tY; -var nY = ["D", "DD"], iY = ["YY", "YYYY"]; +const kg = eY; +var tY = ["D", "DD"], nY = ["YY", "YYYY"]; function ZX(t) { - return nY.indexOf(t) !== -1; + return tY.indexOf(t) !== -1; } function UX(t) { - return iY.indexOf(t) !== -1; + return nY.indexOf(t) !== -1; } -function Rd(t, e, n) { +function kd(t, e, n) { if (t === "YYYY") throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); if (t === "YY") @@ -4765,7 +4716,7 @@ function Rd(t, e, n) { if (t === "DD") throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); } -var rY = { +var iY = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" @@ -4827,59 +4778,59 @@ var rY = { one: "almost 1 year", other: "almost {{count}} years" } -}, oY = function(e, n, i) { - var r, o = rY[e]; +}, rY = function(e, n, i) { + var r, o = iY[e]; return typeof o == "string" ? r = o : n === 1 ? r = o.one : r = o.other.replace("{{count}}", n.toString()), i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? "in " + r : r + " ago" : r; }; -const aY = oY; -function d1(t) { +const oY = rY; +function l1(t) { return function() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.width ? String(e.width) : t.defaultWidth, i = t.formats[n] || t.formats[t.defaultWidth]; return i; }; } -var OY = { +var aY = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" -}, sY = { +}, OY = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" -}, lY = { +}, sY = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" -}, cY = { - date: d1({ - formats: OY, +}, lY = { + date: l1({ + formats: aY, defaultWidth: "full" }), - time: d1({ - formats: sY, + time: l1({ + formats: OY, defaultWidth: "full" }), - dateTime: d1({ - formats: lY, + dateTime: l1({ + formats: sY, defaultWidth: "full" }) }; -const uY = cY; -var dY = { +const cY = lY; +var uY = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" -}, fY = function(e, n, i, r) { - return dY[e]; +}, dY = function(e, n, i, r) { + return uY[e]; }; -const hY = fY; -function ss(t) { +const fY = dY; +function as(t) { return function(e, n) { var i = n != null && n.context ? String(n.context) : "standalone", r; if (i === "formatting" && t.formattingValues) { @@ -4893,24 +4844,24 @@ function ss(t) { return r[l]; }; } -var pY = { +var hY = { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] -}, gY = { +}, pY = { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] -}, $Y = { +}, gY = { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] -}, mY = { +}, $Y = { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] -}, QY = { +}, mY = { narrow: { am: "a", pm: "p", @@ -4941,7 +4892,7 @@ var pY = { evening: "evening", night: "night" } -}, SY = { +}, QY = { narrow: { am: "a", pm: "p", @@ -4972,7 +4923,7 @@ var pY = { evening: "in the evening", night: "at night" } -}, yY = function(e, n) { +}, SY = function(e, n) { var i = Number(e), r = i % 100; if (r > 20 || r < 10) switch (r % 10) { @@ -4984,43 +4935,43 @@ var pY = { return i + "rd"; } return i + "th"; -}, bY = { - ordinalNumber: yY, - era: ss({ - values: pY, +}, yY = { + ordinalNumber: SY, + era: as({ + values: hY, defaultWidth: "wide" }), - quarter: ss({ - values: gY, + quarter: as({ + values: pY, defaultWidth: "wide", argumentCallback: function(e) { return e - 1; } }), - month: ss({ - values: $Y, + month: as({ + values: gY, defaultWidth: "wide" }), - day: ss({ - values: mY, + day: as({ + values: $Y, defaultWidth: "wide" }), - dayPeriod: ss({ - values: QY, + dayPeriod: as({ + values: mY, defaultWidth: "wide", - formattingValues: SY, + formattingValues: QY, defaultFormattingWidth: "wide" }) }; -const wY = bY; -function ls(t) { +const bY = yY; +function Os(t) { return function(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.width, r = i && t.matchPatterns[i] || t.matchPatterns[t.defaultMatchWidth], o = e.match(r); if (!o) return null; - var a = o[0], O = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(O) ? vY(O, function(u) { + var a = o[0], O = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(O) ? xY(O, function(u) { return u.test(a); - }) : xY(O, function(u) { + }) : wY(O, function(u) { return u.test(a); }), l; l = t.valueCallback ? t.valueCallback(s) : s, l = n.valueCallback ? n.valueCallback(l) : l; @@ -5031,17 +4982,17 @@ function ls(t) { }; }; } -function xY(t, e) { +function wY(t, e) { for (var n in t) if (t.hasOwnProperty(n) && e(t[n])) return n; } -function vY(t, e) { +function xY(t, e) { for (var n = 0; n < t.length; n++) if (e(t[n])) return n; } -function PY(t) { +function vY(t) { return function(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.match(t.matchPattern); if (!i) @@ -5058,37 +5009,37 @@ function PY(t) { }; }; } -var XY = /^(\d+)(th|st|nd|rd)?/i, TY = /\d+/i, kY = { +var PY = /^(\d+)(th|st|nd|rd)?/i, XY = /\d+/i, TY = { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i -}, CY = { +}, kY = { any: [/^b/i, /^(a|c)/i] -}, _Y = { +}, CY = { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i -}, RY = { +}, _Y = { any: [/1/i, /2/i, /3/i, /4/i] -}, qY = { +}, RY = { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i -}, WY = { +}, qY = { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] -}, VY = { +}, WY = { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i -}, ZY = { +}, VY = { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] -}, UY = { +}, ZY = { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i -}, YY = { +}, UY = { any: { am: /^a/i, pm: /^p/i, @@ -5099,67 +5050,67 @@ var XY = /^(\d+)(th|st|nd|rd)?/i, TY = /\d+/i, kY = { evening: /evening/i, night: /night/i } -}, zY = { - ordinalNumber: PY({ - matchPattern: XY, - parsePattern: TY, +}, YY = { + ordinalNumber: vY({ + matchPattern: PY, + parsePattern: XY, valueCallback: function(e) { return parseInt(e, 10); } }), - era: ls({ - matchPatterns: kY, + era: Os({ + matchPatterns: TY, defaultMatchWidth: "wide", - parsePatterns: CY, + parsePatterns: kY, defaultParseWidth: "any" }), - quarter: ls({ - matchPatterns: _Y, + quarter: Os({ + matchPatterns: CY, defaultMatchWidth: "wide", - parsePatterns: RY, + parsePatterns: _Y, defaultParseWidth: "any", valueCallback: function(e) { return e + 1; } }), - month: ls({ - matchPatterns: qY, + month: Os({ + matchPatterns: RY, defaultMatchWidth: "wide", - parsePatterns: WY, + parsePatterns: qY, defaultParseWidth: "any" }), - day: ls({ - matchPatterns: VY, + day: Os({ + matchPatterns: WY, defaultMatchWidth: "wide", - parsePatterns: ZY, + parsePatterns: VY, defaultParseWidth: "any" }), - dayPeriod: ls({ - matchPatterns: UY, + dayPeriod: Os({ + matchPatterns: ZY, defaultMatchWidth: "any", - parsePatterns: YY, + parsePatterns: UY, defaultParseWidth: "any" }) }; -const GY = zY; -var EY = { +const zY = YY; +var GY = { code: "en-US", - formatDistance: aY, - formatLong: uY, - formatRelative: hY, - localize: wY, - match: GY, + formatDistance: oY, + formatLong: cY, + formatRelative: fY, + localize: bY, + match: zY, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }; -const YX = EY; -var jY = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, AY = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, IY = /^'([^]*?)'?$/, DY = /''/g, LY = /[a-zA-Z]/; -function qd(t, e, n) { +const YX = GY; +var EY = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jY = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, AY = /^'([^]*?)'?$/, IY = /''/g, DY = /[a-zA-Z]/; +function Cd(t, e, n) { var i, r, o, a, O, s, l, c, u, d, f, g, m, $, Q, S, b, y; J(2, arguments); - var P = String(e), v = va(), k = (i = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : v.locale) !== null && i !== void 0 ? i : YX, U = Re((o = (a = (O = (s = n == null ? void 0 : n.firstWeekContainsDate) !== null && s !== void 0 ? s : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && O !== void 0 ? O : v.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = v.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1); + var P = String(e), v = wa(), k = (i = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : v.locale) !== null && i !== void 0 ? i : YX, U = Re((o = (a = (O = (s = n == null ? void 0 : n.firstWeekContainsDate) !== null && s !== void 0 ? s : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && O !== void 0 ? O : v.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = v.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1); if (!(U >= 1 && U <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var W = Re((f = (g = (m = ($ = n == null ? void 0 : n.weekStartsOn) !== null && $ !== void 0 ? $ : n == null || (Q = n.locale) === null || Q === void 0 || (S = Q.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && m !== void 0 ? m : v.weekStartsOn) !== null && g !== void 0 ? g : (b = v.locale) === null || b === void 0 || (y = b.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && f !== void 0 ? f : 0); @@ -5170,88 +5121,88 @@ function qd(t, e, n) { if (!k.formatLong) throw new RangeError("locale must contain formatLong property"); var C = ee(t); - if (!kd(C)) + if (!Pd(C)) throw new RangeError("Invalid time value"); - var V = Xd(C), Z = _X(C, V), q = { + var V = xd(C), Z = _X(C, V), q = { firstWeekContainsDate: U, weekStartsOn: W, locale: k, _originalDate: C - }, D = P.match(AY).map(function(I) { + }, D = P.match(jY).map(function(I) { var K = I[0]; if (K === "p" || K === "P") { - var R = Rg[K]; + var R = kg[K]; return R(I, k.formatLong); } return I; - }).join("").match(jY).map(function(I) { + }).join("").match(EY).map(function(I) { if (I === "''") return "'"; var K = I[0]; if (K === "'") - return MY(I); - var R = KU[K]; + return LY(I); + var R = JU[K]; if (R) - return !(n != null && n.useAdditionalWeekYearTokens) && UX(I) && Rd(I, e, String(t)), !(n != null && n.useAdditionalDayOfYearTokens) && ZX(I) && Rd(I, e, String(t)), R(Z, I, k.localize, q); - if (K.match(LY)) + return !(n != null && n.useAdditionalWeekYearTokens) && UX(I) && kd(I, e, String(t)), !(n != null && n.useAdditionalDayOfYearTokens) && ZX(I) && kd(I, e, String(t)), R(Z, I, k.localize, q); + if (K.match(DY)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + K + "`"); return I; }).join(""); return D; } -function MY(t) { - var e = t.match(IY); - return e ? e[1].replace(DY, "'") : t; +function LY(t) { + var e = t.match(AY); + return e ? e[1].replace(IY, "'") : t; } -function FY(t, e) { +function MY(t, e) { if (t == null) throw new TypeError("assign requires that input parameter not be null or undefined"); for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return t; } -function O2(t) { +function a2(t) { J(1, arguments); var e = ee(t), n = e.getDate(); return n; } -function NY(t) { +function FY(t) { J(1, arguments); var e = ee(t), n = e.getDay(); return n; } -function BY(t) { +function NY(t) { J(1, arguments); var e = ee(t), n = e.getFullYear(), i = e.getMonth(), r = /* @__PURE__ */ new Date(0); return r.setFullYear(n, i + 1, 0), r.setHours(0, 0, 0, 0), r.getDate(); } -function ci(t) { +function si(t) { J(1, arguments); var e = ee(t), n = e.getHours(); return n; } -var HY = 6048e5; -function JY(t) { +var BY = 6048e5; +function HY(t) { J(1, arguments); - var e = ee(t), n = Pd(e).getTime() - UU(e).getTime(); - return Math.round(n / HY) + 1; + var e = ee(t), n = wd(e).getTime() - ZU(e).getTime(); + return Math.round(n / BY) + 1; } -function ui(t) { +function li(t) { J(1, arguments); var e = ee(t), n = e.getMinutes(); return n; } -function yn(t) { +function Sn(t) { J(1, arguments); var e = ee(t), n = e.getMonth(); return n; } -function f1(t) { +function c1(t) { J(1, arguments); var e = ee(t), n = e.getSeconds(); return n; } -function qg(t) { +function Cg(t) { J(1, arguments); var e = ee(t), n = e.getTime(); return n; @@ -5259,42 +5210,42 @@ function qg(t) { function qe(t) { return J(1, arguments), ee(t).getFullYear(); } -function Co(t, e) { +function To(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getTime() > i.getTime(); } -function zr(t, e) { +function Ur(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getTime() < i.getTime(); } -function KY(t, e) { +function JY(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getTime() === i.getTime(); } -function Wg(t, e) { +function _g(t, e) { (e == null || e > t.length) && (e = t.length); for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n]; return i; } -function zQ(t, e) { +function UQ(t, e) { if (t) { if (typeof t == "string") - return Wg(t, e); + return _g(t, e); var n = Object.prototype.toString.call(t).slice(8, -1); if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return Wg(t, e); + return _g(t, e); } } -function s2(t, e) { +function O2(t, e) { var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!n) { - if (Array.isArray(t) || (n = zQ(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (n = UQ(t)) || e && t && typeof t.length == "number") { n && (t = n); var i = 0, r = function() { }; @@ -5344,7 +5295,7 @@ function te(t) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t; } -function Ee(t, e) { +function Ge(t, e) { if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { @@ -5355,14 +5306,14 @@ function Ee(t, e) { } }), Object.defineProperty(t, "prototype", { writable: !1 - }), e && HW(t, e); + }), e && JW(t, e); } -function Wd(t) { - return Wd = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { +function _d(t) { + return _d = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); - }, Wd(t); + }, _d(t); } -function ez() { +function KY() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -5374,41 +5325,41 @@ function ez() { return !1; } } -function tz(t, e) { - if (e && (Yo(e) === "object" || typeof e == "function")) +function ez(t, e) { + if (e && (Uo(e) === "object" || typeof e == "function")) return e; if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return te(t); } -function je(t) { - var e = ez(); +function Ee(t) { + var e = KY(); return function() { - var i = Wd(t), r; + var i = _d(t), r; if (e) { - var o = Wd(this).constructor; + var o = _d(this).constructor; r = Reflect.construct(i, arguments, o); } else r = i.apply(this, arguments); - return tz(this, r); + return ez(this, r); }; } function Ue(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function l2(t, e) { +function s2(t, e) { for (var n = 0; n < e.length; n++) { var i = e[n]; - i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, JW(i.key), i); + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, KW(i.key), i); } } function Ye(t, e, n) { - return e && l2(t.prototype, e), n && l2(t, n), Object.defineProperty(t, "prototype", { + return e && s2(t.prototype, e), n && s2(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t; } -var nz = 10, zX = /* @__PURE__ */ function() { +var tz = 10, zX = /* @__PURE__ */ function() { function t() { Ue(this, t), H(this, "priority", void 0), H(this, "subPriority", 0); } @@ -5418,9 +5369,9 @@ var nz = 10, zX = /* @__PURE__ */ function() { return !0; } }]), t; -}(), iz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(), nz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n(i, r, o, a, O) { var s; return Ue(this, n), s = e.call(this), s.value = i, s.validateValue = r, s.setValue = o, s.priority = a, O && (s.subPriority = O), s; @@ -5436,15 +5387,15 @@ var nz = 10, zX = /* @__PURE__ */ function() { return this.setValue(r, o, this.value, a); } }]), n; -}(zX), rz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(zX), iz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) o[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(o)), H(te(i), "priority", nz), H(te(i), "subPriority", -1), i; + return i = e.call.apply(e, [this].concat(o)), H(te(i), "priority", tz), H(te(i), "subPriority", -1), i; } return Ye(n, [{ key: "set", @@ -5455,7 +5406,7 @@ var nz = 10, zX = /* @__PURE__ */ function() { return a.setFullYear(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()), a.setHours(r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds()), a; } }]), n; -}(zX), Je = /* @__PURE__ */ function() { +}(zX), He = /* @__PURE__ */ function() { function t() { Ue(this, t), H(this, "incompatibleTokens", void 0), H(this, "priority", void 0), H(this, "subPriority", void 0); } @@ -5464,7 +5415,7 @@ var nz = 10, zX = /* @__PURE__ */ function() { value: function(n, i, r, o) { var a = this.parse(n, i, r, o); return a ? { - setter: new iz(a.value, this.validate, this.set, this.priority, this.subPriority), + setter: new nz(a.value, this.validate, this.set, this.priority, this.subPriority), rest: a.rest } : null; } @@ -5474,9 +5425,9 @@ var nz = 10, zX = /* @__PURE__ */ function() { return !0; } }]), t; -}(), oz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(), rz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5517,7 +5468,7 @@ var nz = 10, zX = /* @__PURE__ */ function() { return o.era = a, r.setUTCFullYear(a, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), Ut = { +}(He), Ut = { month: /^(1[0-2]|0?\d)/, // 0 to 12 date: /^(3[0-1]|[0-2]?\d)/, @@ -5555,7 +5506,7 @@ var nz = 10, zX = /* @__PURE__ */ function() { // 0 to 999, -0 to -999 fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 -}, fr = { +}, ur = { basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, basic: /^([+-])(\d{2})(\d{2})|Z/, basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, @@ -5575,7 +5526,7 @@ function bt(t, e) { rest: e.slice(n[0].length) } : null; } -function hr(t, e) { +function dr(t, e) { var n = e.match(t); if (!n) return null; @@ -5586,7 +5537,7 @@ function hr(t, e) { }; var i = n[1] === "+" ? 1 : -1, r = n[2] ? parseInt(n[2], 10) : 0, o = n[3] ? parseInt(n[3], 10) : 0, a = n[5] ? parseInt(n[5], 10) : 0; return { - value: i * (r * ZQ + o * VQ + a * GU), + value: i * (r * WQ + o * qQ + a * zU), rest: e.slice(n[0].length) }; } @@ -5607,7 +5558,7 @@ function Rt(t, e) { return bt(new RegExp("^\\d{1," + t + "}"), e); } } -function Vd(t, e) { +function Rd(t, e) { switch (t) { case 1: return bt(Ut.singleDigitSigned, e); @@ -5621,7 +5572,7 @@ function Vd(t, e) { return bt(new RegExp("^-?\\d{1," + t + "}"), e); } } -function GQ(t) { +function YQ(t) { switch (t) { case "morning": return 4; @@ -5651,9 +5602,9 @@ function EX(t, e) { function jX(t) { return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; } -var az = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +var oz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5698,9 +5649,9 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCFullYear(l, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), Oz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), az = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5736,18 +5687,18 @@ var az = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a, O) { - var s = YQ(r, O); + var s = ZQ(r, O); if (a.isTwoDigitYear) { var l = EX(a.year, s); - return r.setUTCFullYear(l, 0, O.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), ha(r, O); + return r.setUTCFullYear(l, 0, O.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), da(r, O); } var c = !("era" in o) || o.era === 1 ? a.year : 1 - a.year; - return r.setUTCFullYear(c, 0, O.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), ha(r, O); + return r.setUTCFullYear(c, 0, O.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), da(r, O); } }]), n; -}(Je), sz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Oz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5758,18 +5709,18 @@ var az = /* @__PURE__ */ function(t) { return Ye(n, [{ key: "parse", value: function(r, o) { - return Vd(o === "R" ? 4 : o.length, r); + return Rd(o === "R" ? 4 : o.length, r); } }, { key: "set", value: function(r, o, a) { var O = /* @__PURE__ */ new Date(0); - return O.setUTCFullYear(a, 0, 4), O.setUTCHours(0, 0, 0, 0), mO(O); + return O.setUTCFullYear(a, 0, 4), O.setUTCHours(0, 0, 0, 0), gO(O); } }]), n; -}(Je), lz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), sz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5780,7 +5731,7 @@ var az = /* @__PURE__ */ function(t) { return Ye(n, [{ key: "parse", value: function(r, o) { - return Vd(o === "u" ? 4 : o.length, r); + return Rd(o === "u" ? 4 : o.length, r); } }, { key: "set", @@ -5788,9 +5739,9 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCFullYear(a, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), cz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), lz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5847,9 +5798,9 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCMonth((a - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), uz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), cz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5906,9 +5857,9 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCMonth((a - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), dz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), uz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -5969,9 +5920,9 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCMonth(a, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), fz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), dz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6032,15 +5983,15 @@ var az = /* @__PURE__ */ function(t) { return r.setUTCMonth(a, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je); -function hz(t, e, n) { +}(He); +function fz(t, e, n) { J(2, arguments); var i = ee(t), r = Re(e), o = WX(i, n) - r; return i.setUTCDate(i.getUTCDate() - o * 7), i; } -var pz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +var hz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6070,18 +6021,18 @@ var pz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a, O) { - return ha(hz(r, a, O), O); + return da(fz(r, a, O), O); } }]), n; -}(Je); -function gz(t, e) { +}(He); +function pz(t, e) { J(2, arguments); var n = ee(t), i = Re(e), r = qX(n) - i; return n.setUTCDate(n.getUTCDate() - r * 7), n; } -var $z = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +var gz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6111,12 +6062,12 @@ var $z = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a) { - return mO(gz(r, a)); + return gO(pz(r, a)); } }]), n; -}(Je), mz = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qz = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), $z = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], mz = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6142,7 +6093,7 @@ var $z = /* @__PURE__ */ function(t) { key: "validate", value: function(r, o) { var a = r.getUTCFullYear(), O = jX(a), s = r.getUTCMonth(); - return O ? o >= 1 && o <= Qz[s] : o >= 1 && o <= mz[s]; + return O ? o >= 1 && o <= mz[s] : o >= 1 && o <= $z[s]; } }, { key: "set", @@ -6150,9 +6101,9 @@ var $z = /* @__PURE__ */ function(t) { return r.setUTCDate(a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), yz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Sz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6187,19 +6138,19 @@ var $z = /* @__PURE__ */ function(t) { return r.setUTCMonth(0, a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je); -function EQ(t, e, n) { +}(He); +function zQ(t, e, n) { var i, r, o, a, O, s, l, c; J(2, arguments); - var u = va(), d = Re((i = (r = (o = (a = n == null ? void 0 : n.weekStartsOn) !== null && a !== void 0 ? a : n == null || (O = n.locale) === null || O === void 0 || (s = O.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && o !== void 0 ? o : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && i !== void 0 ? i : 0); + var u = wa(), d = Re((i = (r = (o = (a = n == null ? void 0 : n.weekStartsOn) !== null && a !== void 0 ? a : n == null || (O = n.locale) === null || O === void 0 || (s = O.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && o !== void 0 ? o : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && i !== void 0 ? i : 0); if (!(d >= 0 && d <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var f = ee(t), g = Re(e), m = f.getUTCDay(), $ = g % 7, Q = ($ + 7) % 7, S = (Q < d ? 7 : 0) + g - m; return f.setUTCDate(f.getUTCDate() + S), f; } -var bz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +var yz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6262,12 +6213,12 @@ var bz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a, O) { - return r = EQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; + return r = zQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), wz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), bz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6339,12 +6290,12 @@ var bz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a, O) { - return r = EQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; + return r = zQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), xz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), wz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6416,20 +6367,20 @@ var bz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a, O) { - return r = EQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; + return r = zQ(r, a, O), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je); -function vz(t, e) { +}(He); +function xz(t, e) { J(2, arguments); var n = Re(e); n % 7 === 0 && (n = n - 7); var i = 1, r = ee(t), o = r.getUTCDay(), a = n % 7, O = (a + 7) % 7, s = (O < i ? 7 : 0) + n - o; return r.setUTCDate(r.getUTCDate() + s), r; } -var Pz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +var vz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6500,12 +6451,12 @@ var Pz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a) { - return r = vz(r, a), r.setUTCHours(0, 0, 0, 0), r; + return r = xz(r, a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Je), Xz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Pz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6549,12 +6500,12 @@ var Pz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a) { - return r.setUTCHours(GQ(a), 0, 0, 0), r; + return r.setUTCHours(YQ(a), 0, 0, 0), r; } }]), n; -}(Je), Tz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Xz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6598,12 +6549,12 @@ var Pz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a) { - return r.setUTCHours(GQ(a), 0, 0, 0), r; + return r.setUTCHours(YQ(a), 0, 0, 0), r; } }]), n; -}(Je), kz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Tz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6647,12 +6598,12 @@ var Pz = /* @__PURE__ */ function(t) { }, { key: "set", value: function(r, o, a) { - return r.setUTCHours(GQ(a), 0, 0, 0), r; + return r.setUTCHours(YQ(a), 0, 0, 0), r; } }]), n; -}(Je), Cz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), kz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6686,9 +6637,9 @@ var Pz = /* @__PURE__ */ function(t) { return O && a < 12 ? r.setUTCHours(a + 12, 0, 0, 0) : !O && a === 12 ? r.setUTCHours(0, 0, 0, 0) : r.setUTCHours(a, 0, 0, 0), r; } }]), n; -}(Je), _z = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Cz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6721,9 +6672,9 @@ var Pz = /* @__PURE__ */ function(t) { return r.setUTCHours(a, 0, 0, 0), r; } }]), n; -}(Je), Rz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), _z = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6757,9 +6708,9 @@ var Pz = /* @__PURE__ */ function(t) { return O && a < 12 ? r.setUTCHours(a + 12, 0, 0, 0) : r.setUTCHours(a, 0, 0, 0), r; } }]), n; -}(Je), qz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Rz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6793,9 +6744,9 @@ var Pz = /* @__PURE__ */ function(t) { return r.setUTCHours(O, 0, 0, 0), r; } }]), n; -}(Je), Wz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), qz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6828,9 +6779,9 @@ var Pz = /* @__PURE__ */ function(t) { return r.setUTCMinutes(a, 0, 0), r; } }]), n; -}(Je), Vz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Wz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6863,9 +6814,9 @@ var Pz = /* @__PURE__ */ function(t) { return r.setUTCSeconds(a, 0), r; } }]), n; -}(Je), Zz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Vz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6887,9 +6838,9 @@ var Pz = /* @__PURE__ */ function(t) { return r.setUTCMilliseconds(a), r; } }]), n; -}(Je), Uz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Zz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6902,16 +6853,16 @@ var Pz = /* @__PURE__ */ function(t) { value: function(r, o) { switch (o) { case "X": - return hr(fr.basicOptionalMinutes, r); + return dr(ur.basicOptionalMinutes, r); case "XX": - return hr(fr.basic, r); + return dr(ur.basic, r); case "XXXX": - return hr(fr.basicOptionalSeconds, r); + return dr(ur.basicOptionalSeconds, r); case "XXXXX": - return hr(fr.extendedOptionalSeconds, r); + return dr(ur.extendedOptionalSeconds, r); case "XXX": default: - return hr(fr.extended, r); + return dr(ur.extended, r); } } }, { @@ -6920,9 +6871,9 @@ var Pz = /* @__PURE__ */ function(t) { return o.timestampIsSet ? r : new Date(r.getTime() - a); } }]), n; -}(Je), Yz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Uz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6935,16 +6886,16 @@ var Pz = /* @__PURE__ */ function(t) { value: function(r, o) { switch (o) { case "x": - return hr(fr.basicOptionalMinutes, r); + return dr(ur.basicOptionalMinutes, r); case "xx": - return hr(fr.basic, r); + return dr(ur.basic, r); case "xxxx": - return hr(fr.basicOptionalSeconds, r); + return dr(ur.basicOptionalSeconds, r); case "xxxxx": - return hr(fr.extendedOptionalSeconds, r); + return dr(ur.extendedOptionalSeconds, r); case "xxx": default: - return hr(fr.extended, r); + return dr(ur.extended, r); } } }, { @@ -6953,9 +6904,9 @@ var Pz = /* @__PURE__ */ function(t) { return o.timestampIsSet ? r : new Date(r.getTime() - a); } }]), n; -}(Je), zz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), Yz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6976,9 +6927,9 @@ var Pz = /* @__PURE__ */ function(t) { }]; } }]), n; -}(Je), Gz = /* @__PURE__ */ function(t) { - Ee(n, t); - var e = je(n); +}(He), zz = /* @__PURE__ */ function(t) { + Ge(n, t); + var e = Ee(n); function n() { var i; Ue(this, n); @@ -6999,43 +6950,43 @@ var Pz = /* @__PURE__ */ function(t) { }]; } }]), n; -}(Je), Ez = { - G: new oz(), - y: new az(), - Y: new Oz(), - R: new sz(), - u: new lz(), - Q: new cz(), - q: new uz(), - M: new dz(), - L: new fz(), - w: new pz(), - I: new $z(), - d: new Sz(), - D: new yz(), - E: new bz(), - e: new wz(), - c: new xz(), - i: new Pz(), - a: new Xz(), - b: new Tz(), - B: new kz(), - h: new Cz(), - H: new _z(), - K: new Rz(), - k: new qz(), - m: new Wz(), - s: new Vz(), - S: new Zz(), - X: new Uz(), - x: new Yz(), - t: new zz(), - T: new Gz() -}, jz = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Az = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Iz = /^'([^]*?)'?$/, Dz = /''/g, Lz = /\S/, Mz = /[a-zA-Z]/; -function h1(t, e, n, i) { +}(He), Gz = { + G: new rz(), + y: new oz(), + Y: new az(), + R: new Oz(), + u: new sz(), + Q: new lz(), + q: new cz(), + M: new uz(), + L: new dz(), + w: new hz(), + I: new gz(), + d: new Qz(), + D: new Sz(), + E: new yz(), + e: new bz(), + c: new wz(), + i: new vz(), + a: new Pz(), + b: new Xz(), + B: new Tz(), + h: new kz(), + H: new Cz(), + K: new _z(), + k: new Rz(), + m: new qz(), + s: new Wz(), + S: new Vz(), + X: new Zz(), + x: new Uz(), + t: new Yz(), + T: new zz() +}, Ez = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jz = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Az = /^'([^]*?)'?$/, Iz = /''/g, Dz = /\S/, Lz = /[a-zA-Z]/; +function u1(t, e, n, i) { var r, o, a, O, s, l, c, u, d, f, g, m, $, Q, S, b, y, P; J(3, arguments); - var v = String(t), k = String(e), U = va(), W = (r = (o = i == null ? void 0 : i.locale) !== null && o !== void 0 ? o : U.locale) !== null && r !== void 0 ? r : YX; + var v = String(t), k = String(e), U = wa(), W = (r = (o = i == null ? void 0 : i.locale) !== null && o !== void 0 ? o : U.locale) !== null && r !== void 0 ? r : YX; if (!W.match) throw new RangeError("locale must contain match property"); var C = Re((a = (O = (s = (l = i == null ? void 0 : i.firstWeekContainsDate) !== null && l !== void 0 ? l : i == null || (c = i.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : U.firstWeekContainsDate) !== null && O !== void 0 ? O : (d = U.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : 1); @@ -7050,43 +7001,43 @@ function h1(t, e, n, i) { firstWeekContainsDate: C, weekStartsOn: V, locale: W - }, q = [new rz()], D = k.match(Az).map(function(ge) { + }, q = [new iz()], D = k.match(jz).map(function(ge) { var Pe = ge[0]; - if (Pe in Rg) { - var ln = Rg[Pe]; - return ln(ge, W.formatLong); + if (Pe in kg) { + var sn = kg[Pe]; + return sn(ge, W.formatLong); } return ge; - }).join("").match(jz), I = [], K = s2(D), R; + }).join("").match(Ez), I = [], K = O2(D), R; try { var j = function() { var Pe = R.value; - !(i != null && i.useAdditionalWeekYearTokens) && UX(Pe) && Rd(Pe, k, t), !(i != null && i.useAdditionalDayOfYearTokens) && ZX(Pe) && Rd(Pe, k, t); - var ln = Pe[0], nr = Ez[ln]; - if (nr) { - var Hr = nr.incompatibleTokens; - if (Array.isArray(Hr)) { - var Ao = I.find(function(gc) { - return Hr.includes(gc.token) || gc.token === ln; + !(i != null && i.useAdditionalWeekYearTokens) && UX(Pe) && kd(Pe, k, t), !(i != null && i.useAdditionalDayOfYearTokens) && ZX(Pe) && kd(Pe, k, t); + var sn = Pe[0], er = Gz[sn]; + if (er) { + var Nr = er.incompatibleTokens; + if (Array.isArray(Nr)) { + var jo = I.find(function(hc) { + return Nr.includes(hc.token) || hc.token === sn; }); - if (Ao) - throw new RangeError("The format string mustn't contain `".concat(Ao.fullToken, "` and `").concat(Pe, "` at the same time")); - } else if (nr.incompatibleTokens === "*" && I.length > 0) + if (jo) + throw new RangeError("The format string mustn't contain `".concat(jo.fullToken, "` and `").concat(Pe, "` at the same time")); + } else if (er.incompatibleTokens === "*" && I.length > 0) throw new RangeError("The format string mustn't contain `".concat(Pe, "` and any other token at the same time")); I.push({ - token: ln, + token: sn, fullToken: Pe }); - var Wa = nr.run(v, Pe, W.match, Z); - if (!Wa) + var Ra = er.run(v, Pe, W.match, Z); + if (!Ra) return { v: /* @__PURE__ */ new Date(NaN) }; - q.push(Wa.setter), v = Wa.rest; + q.push(Ra.setter), v = Ra.rest; } else { - if (ln.match(Mz)) - throw new RangeError("Format string contains an unescaped latin alphabet character `" + ln + "`"); - if (Pe === "''" ? Pe = "'" : ln === "'" && (Pe = Fz(Pe)), v.indexOf(Pe) === 0) + if (sn.match(Lz)) + throw new RangeError("Format string contains an unescaped latin alphabet character `" + sn + "`"); + if (Pe === "''" ? Pe = "'" : sn === "'" && (Pe = Mz(Pe)), v.indexOf(Pe) === 0) v = v.slice(Pe.length); else return { @@ -7096,7 +7047,7 @@ function h1(t, e, n, i) { }; for (K.s(); !(R = K.n()).done; ) { var A = j(); - if (Yo(A) === "object") + if (Uo(A) === "object") return A.v; } } catch (ge) { @@ -7104,33 +7055,33 @@ function h1(t, e, n, i) { } finally { K.f(); } - if (v.length > 0 && Lz.test(v)) + if (v.length > 0 && Dz.test(v)) return /* @__PURE__ */ new Date(NaN); var N = q.map(function(ge) { return ge.priority; }).sort(function(ge, Pe) { return Pe - ge; - }).filter(function(ge, Pe, ln) { - return ln.indexOf(ge) === Pe; + }).filter(function(ge, Pe, sn) { + return sn.indexOf(ge) === Pe; }).map(function(ge) { return q.filter(function(Pe) { return Pe.priority === ge; - }).sort(function(Pe, ln) { - return ln.subPriority - Pe.subPriority; + }).sort(function(Pe, sn) { + return sn.subPriority - Pe.subPriority; }); }).map(function(ge) { return ge[0]; }), de = ee(n); if (isNaN(de.getTime())) return /* @__PURE__ */ new Date(NaN); - var ve = _X(de, Xd(de)), Ae = {}, lt = s2(N), F; + var ve = _X(de, xd(de)), je = {}, lt = O2(N), F; try { for (lt.s(); !(F = lt.n()).done; ) { var re = F.value; if (!re.validate(ve, Z)) return /* @__PURE__ */ new Date(NaN); - var ue = re.set(ve, Ae, Z); - Array.isArray(ue) ? (ve = ue[0], FY(Ae, ue[1])) : ve = ue; + var ue = re.set(ve, je, Z); + Array.isArray(ue) ? (ve = ue[0], MY(je, ue[1])) : ve = ue; } } catch (ge) { lt.e(ge); @@ -7139,37 +7090,37 @@ function h1(t, e, n, i) { } return ve; } -function Fz(t) { - return t.match(Iz)[1].replace(Dz, "'"); +function Mz(t) { + return t.match(Az)[1].replace(Iz, "'"); } -function Nz(t, e) { +function Fz(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getFullYear() === i.getFullYear() && n.getMonth() === i.getMonth(); } -function Bz(t, e) { +function Nz(t, e) { J(2, arguments); - var n = _g(t), i = _g(e); + var n = Tg(t), i = Tg(e); return n.getTime() === i.getTime(); } -function Hz(t, e) { +function Bz(t, e) { J(2, arguments); var n = ee(t), i = ee(e); return n.getFullYear() === i.getFullYear(); } -function Ql(t, e) { +function $l(t, e) { J(2, arguments); var n = ee(t).getTime(), i = ee(e.start).getTime(), r = ee(e.end).getTime(); if (!(i <= r)) throw new RangeError("Invalid interval"); return n >= i && n <= r; } -function Jz(t, e) { +function Hz(t, e) { J(2, arguments); var n = Re(e); - return NO(t, -n); + return MO(t, -n); } -function Kz(t, e) { +function Jz(t, e) { var n; J(1, arguments); var i = Re((n = e == null ? void 0 : e.additionalDigits) !== null && n !== void 0 ? n : 2); @@ -7177,18 +7128,18 @@ function Kz(t, e) { throw new RangeError("additionalDigits must be 0, 1 or 2"); if (!(typeof t == "string" || Object.prototype.toString.call(t) === "[object String]")) return /* @__PURE__ */ new Date(NaN); - var r = iG(t), o; + var r = nG(t), o; if (r.date) { - var a = rG(r.date, i); - o = oG(a.restDateString, a.year); + var a = iG(r.date, i); + o = rG(a.restDateString, a.year); } if (!o || isNaN(o.getTime())) return /* @__PURE__ */ new Date(NaN); var O = o.getTime(), s = 0, l; - if (r.time && (s = aG(r.time), isNaN(s))) + if (r.time && (s = oG(r.time), isNaN(s))) return /* @__PURE__ */ new Date(NaN); if (r.timezone) { - if (l = OG(r.timezone), isNaN(l)) + if (l = aG(r.timezone), isNaN(l)) return /* @__PURE__ */ new Date(NaN); } else { var c = new Date(O + s), u = /* @__PURE__ */ new Date(0); @@ -7196,22 +7147,22 @@ function Kz(t, e) { } return new Date(O + s + l); } -var $c = { +var pc = { dateTimeDelimiter: /[T ]/, timeZoneDelimiter: /[Z ]/i, timezone: /([Z+-].*)$/ -}, eG = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, tG = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, nG = /^([+-])(\d{2})(?::?(\d{2}))?$/; -function iG(t) { - var e = {}, n = t.split($c.dateTimeDelimiter), i; +}, Kz = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, eG = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, tG = /^([+-])(\d{2})(?::?(\d{2}))?$/; +function nG(t) { + var e = {}, n = t.split(pc.dateTimeDelimiter), i; if (n.length > 2) return e; - if (/:/.test(n[0]) ? i = n[0] : (e.date = n[0], i = n[1], $c.timeZoneDelimiter.test(e.date) && (e.date = t.split($c.timeZoneDelimiter)[0], i = t.substr(e.date.length, t.length))), i) { - var r = $c.timezone.exec(i); + if (/:/.test(n[0]) ? i = n[0] : (e.date = n[0], i = n[1], pc.timeZoneDelimiter.test(e.date) && (e.date = t.split(pc.timeZoneDelimiter)[0], i = t.substr(e.date.length, t.length))), i) { + var r = pc.timezone.exec(i); r ? (e.time = i.replace(r[1], ""), e.timezone = r[1]) : e.time = i; } return e; } -function rG(t, e) { +function iG(t, e) { var n = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"), i = t.match(n); if (!i) return { @@ -7224,125 +7175,125 @@ function rG(t, e) { restDateString: t.slice((i[1] || i[2]).length) }; } -function oG(t, e) { +function rG(t, e) { if (e === null) return /* @__PURE__ */ new Date(NaN); - var n = t.match(eG); + var n = t.match(Kz); if (!n) return /* @__PURE__ */ new Date(NaN); - var i = !!n[4], r = cs(n[1]), o = cs(n[2]) - 1, a = cs(n[3]), O = cs(n[4]), s = cs(n[5]) - 1; + var i = !!n[4], r = ss(n[1]), o = ss(n[2]) - 1, a = ss(n[3]), O = ss(n[4]), s = ss(n[5]) - 1; if (i) - return dG(e, O, s) ? sG(e, O, s) : /* @__PURE__ */ new Date(NaN); + return uG(e, O, s) ? OG(e, O, s) : /* @__PURE__ */ new Date(NaN); var l = /* @__PURE__ */ new Date(0); - return !cG(e, o, a) || !uG(e, r) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, o, Math.max(r, a)), l); + return !lG(e, o, a) || !cG(e, r) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, o, Math.max(r, a)), l); } -function cs(t) { +function ss(t) { return t ? parseInt(t) : 1; } -function aG(t) { - var e = t.match(tG); +function oG(t) { + var e = t.match(eG); if (!e) return NaN; - var n = p1(e[1]), i = p1(e[2]), r = p1(e[3]); - return fG(n, i, r) ? n * ZQ + i * VQ + r * 1e3 : NaN; + var n = d1(e[1]), i = d1(e[2]), r = d1(e[3]); + return dG(n, i, r) ? n * WQ + i * qQ + r * 1e3 : NaN; } -function p1(t) { +function d1(t) { return t && parseFloat(t.replace(",", ".")) || 0; } -function OG(t) { +function aG(t) { if (t === "Z") return 0; - var e = t.match(nG); + var e = t.match(tG); if (!e) return 0; var n = e[1] === "+" ? -1 : 1, i = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0; - return hG(i, r) ? n * (i * ZQ + r * VQ) : NaN; + return fG(i, r) ? n * (i * WQ + r * qQ) : NaN; } -function sG(t, e, n) { +function OG(t, e, n) { var i = /* @__PURE__ */ new Date(0); i.setUTCFullYear(t, 0, 4); var r = i.getUTCDay() || 7, o = (e - 1) * 7 + n + 1 - r; return i.setUTCDate(i.getUTCDate() + o), i; } -var lG = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var sG = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; function AX(t) { return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; } -function cG(t, e, n) { - return e >= 0 && e <= 11 && n >= 1 && n <= (lG[e] || (AX(t) ? 29 : 28)); +function lG(t, e, n) { + return e >= 0 && e <= 11 && n >= 1 && n <= (sG[e] || (AX(t) ? 29 : 28)); } -function uG(t, e) { +function cG(t, e) { return e >= 1 && e <= (AX(t) ? 366 : 365); } -function dG(t, e, n) { +function uG(t, e, n) { return e >= 1 && e <= 53 && n >= 0 && n <= 6; } -function fG(t, e, n) { +function dG(t, e, n) { return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25; } -function hG(t, e) { +function fG(t, e) { return e >= 0 && e <= 59; } -function Xn(t, e) { +function Pn(t, e) { J(2, arguments); var n = ee(t), i = Re(e), r = n.getFullYear(), o = n.getDate(), a = /* @__PURE__ */ new Date(0); a.setFullYear(r, i, 15), a.setHours(0, 0, 0, 0); - var O = BY(a); + var O = NY(a); return n.setMonth(i, Math.min(o, O)), n; } -function pG(t, e) { - if (J(2, arguments), Yo(e) !== "object" || e === null) +function hG(t, e) { + if (J(2, arguments), Uo(e) !== "object" || e === null) throw new RangeError("values parameter must be an object"); var n = ee(t); - return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (e.year != null && n.setFullYear(e.year), e.month != null && (n = Xn(n, e.month)), e.date != null && n.setDate(Re(e.date)), e.hours != null && n.setHours(Re(e.hours)), e.minutes != null && n.setMinutes(Re(e.minutes)), e.seconds != null && n.setSeconds(Re(e.seconds)), e.milliseconds != null && n.setMilliseconds(Re(e.milliseconds)), n); + return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (e.year != null && n.setFullYear(e.year), e.month != null && (n = Pn(n, e.month)), e.date != null && n.setDate(Re(e.date)), e.hours != null && n.setHours(Re(e.hours)), e.minutes != null && n.setMinutes(Re(e.minutes)), e.seconds != null && n.setSeconds(Re(e.seconds)), e.milliseconds != null && n.setMilliseconds(Re(e.milliseconds)), n); } -function Js(t, e) { +function Bs(t, e) { J(2, arguments); var n = ee(t), i = Re(e); return n.setHours(i), n; } -function Ks(t, e) { +function Hs(t, e) { J(2, arguments); var n = ee(t), i = Re(e); return n.setMinutes(i), n; } -function Ma(t, e) { +function Da(t, e) { J(2, arguments); var n = ee(t), i = Re(e), r = Math.floor(n.getMonth() / 3) + 1, o = i - r; - return Xn(n, n.getMonth() + o * 3); + return Pn(n, n.getMonth() + o * 3); } -function gG(t, e) { +function pG(t, e) { J(2, arguments); var n = ee(t), i = Re(e); return n.setSeconds(i), n; } -function Ur(t, e) { +function Vr(t, e) { J(2, arguments); var n = ee(t), i = Re(e); return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (n.setFullYear(i), n); } -function QO(t, e) { +function $O(t, e) { J(2, arguments); var n = Re(e); - return Fi(t, -n); + return Li(t, -n); } -function $G(t, e) { +function gG(t, e) { J(2, arguments); var n = Re(e); return TX(t, -n); } -function mG(t, e) { +function $G(t, e) { J(2, arguments); var n = Re(e); - return WQ(t, -n); + return RQ(t, -n); } -function Sl(t, e) { +function ml(t, e) { J(2, arguments); var n = Re(e); - return $O(t, -n); + return pO(t, -n); } -const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( - _n, +const yn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( + Cn, { fontFamily: "Inter", sx: { @@ -7352,7 +7303,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ...n, variant: `value${t ? "Primary" : ""}` } -), QG = { +), mG = { display: "flex", flexDirection: "column", alignItems: "center", @@ -7363,7 +7314,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( minWidth: "230px", p: "20px", boxSizing: "border-box" -}, SG = { +}, QG = { display: "flex", flexDirection: "column", "div:first-of-type": { justifyContent: "center" }, @@ -7376,7 +7327,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( fontWeight: "subtitle", fontSize: "subtitle" } -}, c2 = (t) => ({ +}, l2 = (t) => ({ display: "flex", flexDirection: "column", maxWidth: t ? "80px" : "180px", @@ -7404,28 +7355,28 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( "div:first-of-typed": { height: "auto" } -}), yG = (t) => t >= 1073741824 ? `${(t / 1073741824).toFixed(2)} Gb` : t >= 1048576 ? `${(t / 1048576).toFixed(2)} mb` : t >= 1024 ? `${(t / 1024).toFixed(2)} kb` : t > 1 ? `${t} bytes` : t === 1 ? `${t} byte` : "0 byte", bG = ({ +}), SG = (t) => t >= 1073741824 ? `${(t / 1073741824).toFixed(2)} Gb` : t >= 1048576 ? `${(t / 1048576).toFixed(2)} mb` : t >= 1024 ? `${(t / 1024).toFixed(2)} kb` : t > 1 ? `${t} bytes` : t === 1 ? `${t} byte` : "0 byte", yG = ({ children: t, activeFile: e, disableDownload: n, handleDownloadFile: i }) => { - const r = (o) => qd(new Date(o), "yyyy-MM-dd - HH:mm:ss"); + const r = (o) => Cd(new Date(o), "yyyy-MM-dd - HH:mm:ss"); return /* @__PURE__ */ h.jsxs( Y, { sx: { - ...QG + ...mG }, children: [ /* @__PURE__ */ h.jsxs( Y, { sx: { - ...SG + ...QG }, children: [ - /* @__PURE__ */ h.jsx(bn, { as: "h2", marginBottom: "32px", textAlign: "center", children: e == null ? void 0 : e.attributes.name }), + /* @__PURE__ */ h.jsx(yn, { as: "h2", marginBottom: "32px", textAlign: "center", children: e == null ? void 0 : e.attributes.name }), /* @__PURE__ */ h.jsxs( G, { @@ -7439,7 +7390,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( Y, { sx: { - ...c2(!0) + ...l2(!0) }, children: [ /* @__PURE__ */ h.jsx(xe, { gray: !0, children: "size" }), @@ -7453,10 +7404,10 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( Y, { sx: { - ...c2(!1) + ...l2(!1) }, children: [ - /* @__PURE__ */ h.jsx(xe, { children: yG(e == null ? void 0 : e.attributes.size) }), + /* @__PURE__ */ h.jsx(xe, { children: SG(e == null ? void 0 : e.attributes.size) }), /* @__PURE__ */ h.jsx(xe, { children: r(e == null ? void 0 : e.attributes.accessTime) }), /* @__PURE__ */ h.jsx(xe, { children: r(e == null ? void 0 : e.attributes.modificationTime) }), /* @__PURE__ */ h.jsx(xe, { children: e == null ? void 0 : e.attributes.owner }) @@ -7470,7 +7421,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( } ), !n && /* @__PURE__ */ h.jsx( - Rn, + _n, { intent: "secondary", onClick: () => { @@ -7485,7 +7436,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( height: "15px", alignItems: "center" }, - children: /* @__PURE__ */ h.jsx(Le, { size: "sm", icon: Ge.folder }) + children: /* @__PURE__ */ h.jsx(De, { size: "sm", icon: ze.folder }) } ), /* @__PURE__ */ h.jsx(G, { alignItems: "center", children: "Download File" }) @@ -7496,7 +7447,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ] } ); -}, wG = { +}, bG = { display: "flex", flexDirection: "column", alignItems: "center", @@ -7513,7 +7464,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( fontSize: "subtitle", color: "gray" } -}, xG = () => /* @__PURE__ */ h.jsx(Y, { sx: wG, children: /* @__PURE__ */ h.jsx(bn, { as: "h2", textAlign: "center", children: "Empty folder" }) }), vG = { +}, wG = () => /* @__PURE__ */ h.jsx(Y, { sx: bG, children: /* @__PURE__ */ h.jsx(yn, { as: "h2", textAlign: "center", children: "Empty folder" }) }), xG = { display: "flex", flexDirection: "column", height: "100%", @@ -7522,12 +7473,12 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( borderBottomWidth: "0px", borderStyle: "solid", boxSizing: "border-box" -}, PG = ({ +}, vG = ({ title: t = "Select a file", onClose: e = () => console.log("Close"), shortcutActions: n, handleDownloadFile: i, - mode: r = RQ.oneFile, + mode: r = CQ.oneFile, rootDir: o = "/", contentProps: a, handleLoadMore: O = () => console.log("load more in quartz"), @@ -7537,14 +7488,14 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( data: u, ...d }) => { - const f = it(), [g, m] = Qe(u), [$, Q] = Qe(!1); - et(() => { + const f = nt(), [g, m] = Qe(u), [$, Q] = Qe(!1); + Ke(() => { if (Array.isArray(u)) { const Z = u[u.length - 1]; Array.isArray(Z) && Z.length === 0 ? (Q(!0), m(u.slice(0, -1))) : (Q(!1), m(u)); } }, [u]); - const [S, b] = Qe(), [y, P] = Qe([]), [v, k] = Qe(""), U = it(), W = () => { + const [S, b] = Qe(), [y, P] = Qe([]), [v, k] = Qe(""), U = nt(), W = () => { U && U.current.scrollIntoView(); }, C = (Z, q) => { P(q ? (D) => [...D, Z] : (D) => [ @@ -7553,10 +7504,10 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( }, V = (Z, q) => { q || k(Z), k(Z); }; - return et(() => { + return Ke(() => { W(); - }, [g]), /* @__PURE__ */ h.jsxs(Kf, { ...d, sx: vG, children: [ - /* @__PURE__ */ h.jsx(PU, { shortcutActions: n, title: t }), + }, [g]), /* @__PURE__ */ h.jsxs(Bf, { ...d, sx: xG, children: [ + /* @__PURE__ */ h.jsx(vU, { shortcutActions: n, title: t }), /* @__PURE__ */ h.jsxs( G, { @@ -7575,7 +7526,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ...a, children: [ g.map((Z, q) => /* @__PURE__ */ h.jsx( - RU, + _U, { items: Z, validExtensions: c, @@ -7590,9 +7541,9 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( setIsEmptyFolder: Q } )), - $ && /* @__PURE__ */ h.jsx(xG, {}), + $ && /* @__PURE__ */ h.jsx(wG, {}), S && /* @__PURE__ */ h.jsx( - bG, + yG, { activeFile: S, disableDownload: l, @@ -7604,7 +7555,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( } ), /* @__PURE__ */ h.jsx( - xU, + wU, { onClose: e, fileListValue: y, @@ -7616,7 +7567,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( } ) ] }); -}, gbe = Fn(PG), XG = (t) => ({ +}, pbe = Ln(vG), PG = (t) => ({ borderWidth: "1px", borderStyle: "solid", borderColor: "transparent", @@ -7639,20 +7590,20 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( } } } -}), TG = (t) => ({ +}), XG = (t) => ({ color: t ? "primaryShade1" : "primary" -}), kG = (t) => ({ +}), TG = (t) => ({ color: t ? "gray" : "black", display: "inline", wordBreak: "break-all" -}), CG = (t) => ({ +}), kG = (t) => ({ overflow: "hidden", color: t ? "gray" : "black", fontFamily: "label", fontWeight: "label", fontSize: "label", alignItems: "center" -}), $be = ({ +}), gbe = ({ id: t, fileName: e, isLoading: n, @@ -7662,23 +7613,23 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( children: a, removeHandler: O, ...s -}) => /* @__PURE__ */ xo(G, { ...s, sx: CG(n), key: t }, n && /* @__PURE__ */ h.jsxs(G, { sx: { alignItems: "center" }, children: [ - /* @__PURE__ */ h.jsx(Hl, { marginRight: "10px" }), - /* @__PURE__ */ h.jsx(_n, { color: "primary", children: `${r ? Math.floor(r) : 0}%` }), - /* @__PURE__ */ h.jsx(_n, { color: "primary", marginX: "8px", children: "•" }) -] }), /* @__PURE__ */ h.jsxs(_n, { sx: { ...TG(n) }, children: [ +}) => /* @__PURE__ */ bo(G, { ...s, sx: kG(n), key: t }, n && /* @__PURE__ */ h.jsxs(G, { sx: { alignItems: "center" }, children: [ + /* @__PURE__ */ h.jsx(Nl, { marginRight: "10px" }), + /* @__PURE__ */ h.jsx(Cn, { color: "primary", children: `${r ? Math.floor(r) : 0}%` }), + /* @__PURE__ */ h.jsx(Cn, { color: "primary", marginX: "8px", children: "•" }) +] }), /* @__PURE__ */ h.jsxs(Cn, { sx: { ...XG(n) }, children: [ `${e} `, - /* @__PURE__ */ h.jsx(Y, { sx: { ...kG(n) }, children: `${n ? "uploading to" : "located in"} ${i} ` }) + /* @__PURE__ */ h.jsx(Y, { sx: { ...TG(n) }, children: `${n ? "uploading to" : "located in"} ${i} ` }) ] }), !o && /* @__PURE__ */ h.jsx( Y, { - sx: { ...XG(n) }, + sx: { ...PG(n) }, onClick: () => { O(t); }, - children: /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(Le, { size: "sm", icon: Ge.cross }) }) + children: /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(De, { size: "sm", icon: ze.cross }) }) } -)), mc = { +)), gc = { display: "flex", flexDirection: "column", position: "relative", @@ -7686,7 +7637,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( borderWidth: "1px", borderStyle: "solid", boxSizing: "border-box" -}, _G = (t, e) => ({ +}, CG = (t, e) => ({ display: "flex", flexDirection: "row", alignItems: "center", @@ -7714,27 +7665,27 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( "> div": { ml: "auto" } -}), RG = ({ +}), _G = ({ title: t, actions: e, withShadow: n = !1, withBorderBottom: i = !1, ...r -}) => /* @__PURE__ */ h.jsxs(Y, { ...r, sx: { ..._G(n, i), ...r.sx }, children: [ +}) => /* @__PURE__ */ h.jsxs(Y, { ...r, sx: { ...CG(n, i), ...r.sx }, children: [ t && /* @__PURE__ */ h.jsx(G, { alignItems: "center", as: "h4", children: t }), e && /* @__PURE__ */ h.jsx("div", { children: e }) -] }), qG = (t = !1) => { +] }), RG = (t = !1) => { const [e, n] = Qe(t), i = ie(() => { n((r) => !r); }, [n]); return [e, i, n]; -}, u2 = { +}, c2 = { display: "flex", alignItems: "center", justifyContent: "center", height: "32px", width: "32px" -}, yl = ({ +}, Ql = ({ intent: t, // TODO remove this tooltip: e, @@ -7748,26 +7699,26 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ...l }) => { let c; - return e ? c = /* @__PURE__ */ h.jsx(tn, { ...r, disabled: i, mainText: e, children: /* @__PURE__ */ h.jsx( - Rn, + return e ? c = /* @__PURE__ */ h.jsx(en, { ...r, disabled: i, mainText: e, children: /* @__PURE__ */ h.jsx( + _n, { - sx: { ...u2, ...s }, + sx: { ...c2, ...s }, variant: "secondary", disabled: i, ...l, - children: /* @__PURE__ */ h.jsx(Le, { disabled: i, icon: n, size: "sm" }) + children: /* @__PURE__ */ h.jsx(De, { disabled: i, icon: n, size: "sm" }) } ) }) : c = /* @__PURE__ */ h.jsx( - Rn, + _n, { - sx: { ...u2, ...s }, + sx: { ...c2, ...s }, variant: "secondary", disabled: i, ...l, - children: /* @__PURE__ */ h.jsx(Le, { disabled: i, icon: n, size: "sm" }) + children: /* @__PURE__ */ h.jsx(De, { disabled: i, icon: n, size: "sm" }) } ), o ? /* @__PURE__ */ h.jsx( - eh, + Hf, { style: { textDecoration: "none" @@ -7779,7 +7730,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( children: c } ) : c; -}, WG = ({ +}, qG = ({ title: t, actions: e, children: n, @@ -7791,18 +7742,18 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ...s }) => { var m, $; - const l = t || e, [c, u] = qG(), d = c ? "1000px" : i, f = it(), g = ((m = f.current) == null ? void 0 : m.scrollHeight) && i && (($ = f.current) == null ? void 0 : $.scrollHeight) > +i.slice(0, i.indexOf("px")) - 64; + const l = t || e, [c, u] = RG(), d = c ? "1000px" : i, f = nt(), g = ((m = f.current) == null ? void 0 : m.scrollHeight) && i && (($ = f.current) == null ? void 0 : $.scrollHeight) > +i.slice(0, i.indexOf("px")) - 64; return /* @__PURE__ */ h.jsxs( - Kf, + Bf, { ...s, tx: "variants", variant: r ? "readOnly" : "card", maxHeight: d, - sx: mc, + sx: gc, children: [ l && /* @__PURE__ */ h.jsx( - RG, + _G, { title: t, actions: e, @@ -7815,7 +7766,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( { sx: { boxShadow: g && !c ? "cardInsetShadow" : "none", - transition: mc == null ? void 0 : mc.transition + transition: gc == null ? void 0 : gc.transition }, ref: f, width: "100%", @@ -7829,7 +7780,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( } ), O && /* @__PURE__ */ h.jsx( - md, + gd, { sx: { position: "absolute", @@ -7839,9 +7790,9 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( justifyContent: "flex-end" }, children: /* @__PURE__ */ h.jsx( - yl, + Ql, { - icon: c ? Ge.arrow_up : Ge.arrow_down, + icon: c ? ze.arrow_up : ze.arrow_down, onClick: u, sx: { cursor: "pointer", mr: "-31px" } } @@ -7851,7 +7802,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ] } ); -}, mbe = Fn(WG), VG = { +}, $be = Ln(qG), WG = { display: "flex", flexDirection: "row", alignItems: "center", @@ -7870,13 +7821,13 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( "> div": { ml: "auto" } -}, ZG = { +}, VG = { display: "flex", flexDirection: "column", borderWidth: "1px", borderStyle: "solid", boxSizing: "border-box" -}, UG = ({ +}, ZG = ({ title: t, children: e, maxHeight: n, @@ -7885,22 +7836,22 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( readOnly: o, ...a }) => { - const O = !!t, [s, l] = Qe(), c = it(); - et(() => { + const O = !!t, [s, l] = Qe(), c = nt(); + Ke(() => { var d; l((d = c.current) == null ? void 0 : d.scrollHeight); }, []); const u = s && n && s > +n.slice(0, n.indexOf("px")) - 64; return /* @__PURE__ */ h.jsxs( - Kf, + Bf, { ...a, maxHeight: n, tx: "variants", variant: o ? "readOnly" : "card", - sx: { ...ZG, ...a.sx }, + sx: { ...VG, ...a.sx }, children: [ - O && /* @__PURE__ */ h.jsx(Y, { sx: VG, children: t && /* @__PURE__ */ h.jsx(G, { fontSize: "18px", color: "gray", alignItems: "center", as: "h4", children: t }) }), + O && /* @__PURE__ */ h.jsx(Y, { sx: WG, children: t && /* @__PURE__ */ h.jsx(G, { fontSize: "18px", color: "gray", alignItems: "center", as: "h4", children: t }) }), /* @__PURE__ */ h.jsx( Y, { @@ -7920,7 +7871,7 @@ const bn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( ] } ); -}, Qbe = Fn(UG); +}, mbe = Ln(ZG); let _e = class IX { /** Get the line description around the given position. @@ -7961,7 +7912,7 @@ let _e = class IX { r, 1 /* Open.From */ - ), pr.from(r, this.length - (n - e) + i.length); + ), fr.from(r, this.length - (n - e) + i.length); } /** Append another document to this one. @@ -7974,7 +7925,7 @@ let _e = class IX { */ slice(e, n = this.length) { let i = []; - return this.decompose(e, n, i, 0), pr.from(i, n - e); + return this.decompose(e, n, i, 0), fr.from(i, n - e); } /** Test whether this text is equal to another instance. @@ -7984,7 +7935,7 @@ let _e = class IX { return !0; if (e.length != this.length || e.lines != this.lines) return !1; - let n = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new el(this), o = new el(e); + let n = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new Js(this), o = new Js(e); for (let a = n, O = n; ; ) { if (r.next(a), o.next(a), a = 0, r.lineBreak != o.lineBreak || r.done != o.done || r.value != o.value) return !1; @@ -7998,7 +7949,7 @@ let _e = class IX { them as separate strings. */ iter(e = 1) { - return new el(this, e); + return new Js(this, e); } /** Iterate over a range of the text. When `from` > `to`, the @@ -8051,11 +8002,11 @@ let _e = class IX { static of(e) { if (e.length == 0) throw new RangeError("A document must have at least one line"); - return e.length == 1 && !e[0] ? IX.empty : e.length <= 32 ? new Vt(e) : pr.from(Vt.split(e, [])); + return e.length == 1 && !e[0] ? IX.empty : e.length <= 32 ? new Vt(e) : fr.from(Vt.split(e, [])); } }; class Vt extends _e { - constructor(e, n = YG(e)) { + constructor(e, n = UG(e)) { super(), this.text = e, this.length = n; } get lines() { @@ -8068,14 +8019,14 @@ class Vt extends _e { for (let o = 0; ; o++) { let a = this.text[o], O = r + a.length; if ((n ? i : O) >= e) - return new zG(r, O, i, a); + return new YG(r, O, i, a); r = O + 1, i++; } } decompose(e, n, i, r) { - let o = e <= 0 && n >= this.length ? this : new Vt(d2(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); + let o = e <= 0 && n >= this.length ? this : new Vt(u2(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); if (r & 1) { - let a = i.pop(), O = Gu(o.text, a.text.slice(), 0, o.length); + let a = i.pop(), O = Yu(o.text, a.text.slice(), 0, o.length); if (O.length <= 32) i.push(new Vt(O, a.length + o.length)); else { @@ -8088,8 +8039,8 @@ class Vt extends _e { replace(e, n, i) { if (!(i instanceof Vt)) return super.replace(e, n, i); - let r = Gu(this.text, Gu(i.text, d2(this.text, 0, e)), n), o = this.length + i.length - (n - e); - return r.length <= 32 ? new Vt(r, o) : pr.from(Vt.split(r, []), o); + let r = Yu(this.text, Yu(i.text, u2(this.text, 0, e)), n), o = this.length + i.length - (n - e); + return r.length <= 32 ? new Vt(r, o) : fr.from(Vt.split(r, []), o); } sliceString(e, n = this.length, i = ` `) { @@ -8114,7 +8065,7 @@ class Vt extends _e { return r > -1 && n.push(new Vt(i, r)), n; } } -class pr extends _e { +class fr extends _e { constructor(e, n) { super(), this.children = e, this.length = n, this.lines = 0; for (let i of e) @@ -8146,7 +8097,7 @@ class pr extends _e { let s = a.replace(e - o, n - o, i), l = this.lines - a.lines + s.lines; if (s.lines < l >> 5 - 1 && s.lines > l >> 5 + 1) { let c = this.children.slice(); - return c[r] = s, new pr(c, this.length - (n - e) + i.length); + return c[r] = s, new fr(c, this.length - (n - e) + i.length); } return super.replace(o, O, s); } @@ -8168,7 +8119,7 @@ class pr extends _e { n.flatten(e); } scanIdentical(e, n) { - if (!(e instanceof pr)) + if (!(e instanceof fr)) return 0; let i = 0, [r, o, a, O] = n > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1]; for (; ; r += n, o += n) { @@ -8197,38 +8148,38 @@ class pr extends _e { ), o = r << 1, a = r >> 1, O = [], s = 0, l = -1, c = []; function u(f) { let g; - if (f.lines > o && f instanceof pr) + if (f.lines > o && f instanceof fr) for (let m of f.children) u(m); else f.lines > a && (s > a || !s) ? (d(), O.push(f)) : f instanceof Vt && s && (g = c[c.length - 1]) instanceof Vt && f.lines + g.lines <= 32 ? (s += f.lines, l += f.length + 1, c[c.length - 1] = new Vt(g.text.concat(f.text), g.length + 1 + f.length)) : (s + f.lines > r && d(), s += f.lines, l += f.length + 1, c.push(f)); } function d() { - s != 0 && (O.push(c.length == 1 ? c[0] : pr.from(c, l)), l = -1, s = c.length = 0); + s != 0 && (O.push(c.length == 1 ? c[0] : fr.from(c, l)), l = -1, s = c.length = 0); } for (let f of e) u(f); - return d(), O.length == 1 ? O[0] : new pr(O, n); + return d(), O.length == 1 ? O[0] : new fr(O, n); } } _e.empty = /* @__PURE__ */ new Vt([""], 0); -function YG(t) { +function UG(t) { let e = -1; for (let n of t) e += n.length + 1; return e; } -function Gu(t, e, n = 0, i = 1e9) { +function Yu(t, e, n = 0, i = 1e9) { for (let r = 0, o = 0, a = !0; o < t.length && r <= i; o++) { let O = t[o], s = r + O.length; s >= n && (s > i && (O = O.slice(0, i - r)), r < n && (O = O.slice(n - r)), a ? (e[e.length - 1] += O, a = !1) : e.push(O)), r = s + 1; } return e; } -function d2(t, e, n) { - return Gu(t, [""], e, n); +function u2(t, e, n) { + return Yu(t, [""], e, n); } -class el { +class Js { constructor(e, n = 1) { this.dir = n, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [n > 0 ? 1 : (e instanceof Vt ? e.text.length : e.children.length) << 1]; } @@ -8261,7 +8212,7 @@ class el { } class DX { constructor(e, n, i) { - this.value = "", this.done = !1, this.cursor = new el(e, n > i ? -1 : 1), this.pos = n > i ? e.length : 0, this.from = Math.min(n, i), this.to = Math.max(n, i); + this.value = "", this.done = !1, this.cursor = new Js(e, n > i ? -1 : 1), this.pos = n > i ? e.length : 0, this.from = Math.min(n, i), this.to = Math.max(n, i); } nextInner(e, n) { if (n < 0 ? this.pos <= this.from : this.pos >= this.to) @@ -8293,10 +8244,10 @@ class LX { } typeof Symbol < "u" && (_e.prototype[Symbol.iterator] = function() { return this.iter(); -}, el.prototype[Symbol.iterator] = DX.prototype[Symbol.iterator] = LX.prototype[Symbol.iterator] = function() { +}, Js.prototype[Symbol.iterator] = DX.prototype[Symbol.iterator] = LX.prototype[Symbol.iterator] = function() { return this; }); -let zG = class { +let YG = class { /** @internal */ @@ -8309,34 +8260,34 @@ let zG = class { get length() { return this.to - this.from; } -}, iO = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); -for (let t = 1; t < iO.length; t++) - iO[t] += iO[t - 1]; -function GG(t) { - for (let e = 1; e < iO.length; e += 2) - if (iO[e] > t) - return iO[e - 1] <= t; +}, tO = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); +for (let t = 1; t < tO.length; t++) + tO[t] += tO[t - 1]; +function zG(t) { + for (let e = 1; e < tO.length; e += 2) + if (tO[e] > t) + return tO[e - 1] <= t; return !1; } -function f2(t) { +function d2(t) { return t >= 127462 && t <= 127487; } -const h2 = 8205; +const f2 = 8205; function At(t, e, n = !0, i = !0) { - return (n ? MX : EG)(t, e, i); + return (n ? MX : GG)(t, e, i); } function MX(t, e, n) { if (e == t.length) return e; e && FX(t.charCodeAt(e)) && NX(t.charCodeAt(e - 1)) && e--; - let i = en(t, e); - for (e += oi(i); e < t.length; ) { - let r = en(t, e); - if (i == h2 || r == h2 || n && GG(r)) - e += oi(r), i = r; - else if (f2(r)) { + let i = Kt(t, e); + for (e += ii(i); e < t.length; ) { + let r = Kt(t, e); + if (i == f2 || r == f2 || n && zG(r)) + e += ii(r), i = r; + else if (d2(r)) { let o = 0, a = e - 2; - for (; a >= 0 && f2(en(t, a)); ) + for (; a >= 0 && d2(Kt(t, a)); ) o++, a -= 2; if (o % 2 == 0) break; @@ -8346,7 +8297,7 @@ function MX(t, e, n) { } return e; } -function EG(t, e, n) { +function GG(t, e, n) { for (; e > 0; ) { let i = MX(t, e - 2, n); if (i < e) @@ -8361,24 +8312,24 @@ function FX(t) { function NX(t) { return t >= 55296 && t < 56320; } -function en(t, e) { +function Kt(t, e) { let n = t.charCodeAt(e); if (!NX(n) || e + 1 == t.length) return n; let i = t.charCodeAt(e + 1); return FX(i) ? (n - 55296 << 10) + (i - 56320) + 65536 : n; } -function jQ(t) { +function GQ(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); } -function oi(t) { +function ii(t) { return t < 65536 ? 1 : 2; } -const Vg = /\r\n?|\n/; +const Rg = /\r\n?|\n/; var Tt = /* @__PURE__ */ function(t) { return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t; }(Tt || (Tt = {})); -class wr { +class yr { // Sections are encoded as pairs of integers. The first is the // length in the current document, and the second is -1 for // unaffected sections, and the length of the replacement content @@ -8440,7 +8391,7 @@ class wr { reported separately. */ iterChangedRanges(e, n = !1) { - Zg(this, e, n); + qg(this, e, n); } /** Get a description of the inverted form of these changes. @@ -8451,7 +8402,7 @@ class wr { let i = this.sections[n++], r = this.sections[n++]; r < 0 ? e.push(i, r) : e.push(r, i); } - return new wr(e); + return new yr(e); } /** Compute the combined effect of applying another set of changes @@ -8468,7 +8419,7 @@ class wr { in `other` happened before the ones in `this`. */ mapDesc(e, n = !1) { - return e.empty ? this : Ug(this, e, n); + return e.empty ? this : Wg(this, e, n); } mapPos(e, n = -1, i = Tt.Simple) { let r = 0, o = 0; @@ -8529,16 +8480,16 @@ class wr { static fromJSON(e) { if (!Array.isArray(e) || e.length % 2 || e.some((n) => typeof n != "number")) throw new RangeError("Invalid JSON representation of ChangeDesc"); - return new wr(e); + return new yr(e); } /** @internal */ static create(e) { - return new wr(e); + return new yr(e); } } -class Zt extends wr { +class Zt extends yr { constructor(e, n) { super(e), this.inserted = n; } @@ -8549,10 +8500,10 @@ class Zt extends wr { apply(e) { if (this.length != e.length) throw new RangeError("Applying change set to a document with the wrong length"); - return Zg(this, (n, i, r, o, a) => e = e.replace(r, r + (i - n), a), !1), e; + return qg(this, (n, i, r, o, a) => e = e.replace(r, r + (i - n), a), !1), e; } mapDesc(e, n = !1) { - return Ug(this, e, n, !0); + return Wg(this, e, n, !0); } /** Given the document as it existed _before_ the changes, return a @@ -8598,7 +8549,7 @@ class Zt extends wr { and can be used for collaborative editing. */ map(e, n = !1) { - return e.empty ? this : Ug(this, e, n, !0); + return e.empty ? this : Wg(this, e, n, !0); } /** Iterate over the changed ranges in the document, calling `f` for @@ -8610,20 +8561,20 @@ class Zt extends wr { separately. */ iterChanges(e, n = !1) { - Zg(this, e, n); + qg(this, e, n); } /** Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change set. */ get desc() { - return wr.create(this.sections); + return yr.create(this.sections); } /** @internal */ filter(e) { - let n = [], i = [], r = [], o = new bl(this); + let n = [], i = [], r = [], o = new Sl(this); e: for (let a = 0, O = 0; ; ) { let s = a == e.length ? 1e9 : e[a++]; @@ -8631,21 +8582,21 @@ class Zt extends wr { if (o.done) break e; let c = Math.min(o.len, s - O); - Qn(r, c, -1); + mn(r, c, -1); let u = o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0; - Qn(n, c, u), u > 0 && go(i, n, o.text), o.forward(c), O += c; + mn(n, c, u), u > 0 && ho(i, n, o.text), o.forward(c), O += c; } let l = e[a++]; for (; O < l; ) { if (o.done) break e; let c = Math.min(o.len, l - O); - Qn(n, c, -1), Qn(r, c, o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0), o.forward(c), O += c; + mn(n, c, -1), mn(r, c, o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0), o.forward(c), O += c; } } return { changes: new Zt(n, i), - filtered: wr.create(r) + filtered: yr.create(r) }; } /** @@ -8668,7 +8619,7 @@ class Zt extends wr { function s(c = !1) { if (!c && !r.length) return; - a < n && Qn(r, n - a, -1); + a < n && mn(r, n - a, -1); let u = new Zt(r, o); O = O ? O.compose(u.map(O)) : u, r = [], o = [], a = 0; } @@ -8684,10 +8635,10 @@ class Zt extends wr { let { from: u, to: d = u, insert: f } = c; if (u > d || u < 0 || d > n) throw new RangeError(`Invalid change range ${u} to ${d} (in doc of length ${n})`); - let g = f ? typeof f == "string" ? _e.of(f.split(i || Vg)) : f : _e.empty, m = g.length; + let g = f ? typeof f == "string" ? _e.of(f.split(i || Rg)) : f : _e.empty, m = g.length; if (u == d && m == 0) return; - u < a && s(), u > a && Qn(r, u - a, -1), Qn(r, d - u, m), go(o, r, g), a = d; + u < a && s(), u > a && mn(r, u - a, -1), mn(r, d - u, m), ho(o, r, g), a = d; } } return l(e), s(!O), O; @@ -8731,13 +8682,13 @@ class Zt extends wr { return new Zt(e, n); } } -function Qn(t, e, n, i = !1) { +function mn(t, e, n, i = !1) { if (e == 0 && n <= 0) return; let r = t.length - 2; r >= 0 && n <= 0 && n == t[r + 1] ? t[r] += e : e == 0 && t[r] == 0 ? t[r + 1] += n : i ? (t[r] += e, t[r + 1] += n) : t.push(e, n); } -function go(t, e, n) { +function ho(t, e, n) { if (n.length == 0) return; let i = e.length - 2 >> 1; @@ -8749,7 +8700,7 @@ function go(t, e, n) { t.push(n); } } -function Zg(t, e, n) { +function qg(t, e, n) { let i = t.inserted; for (let r = 0, o = 0, a = 0; a < t.sections.length; ) { let O = t.sections[a++], s = t.sections[a++]; @@ -8763,17 +8714,17 @@ function Zg(t, e, n) { } } } -function Ug(t, e, n, i = !1) { - let r = [], o = i ? [] : null, a = new bl(t), O = new bl(e); +function Wg(t, e, n, i = !1) { + let r = [], o = i ? [] : null, a = new Sl(t), O = new Sl(e); for (let s = -1; ; ) if (a.ins == -1 && O.ins == -1) { let l = Math.min(a.len, O.len); - Qn(r, l, -1), a.forward(l), O.forward(l); + mn(r, l, -1), a.forward(l), O.forward(l); } else if (O.ins >= 0 && (a.ins < 0 || s == a.i || a.off == 0 && (O.len < a.len || O.len == a.len && !n))) { let l = O.len; - for (Qn(r, O.ins, -1); l; ) { + for (mn(r, O.ins, -1); l; ) { let c = Math.min(a.len, l); - a.ins >= 0 && s < a.i && a.len <= c && (Qn(r, 0, a.ins), o && go(o, r, a.text), s = a.i), a.forward(c), l -= c; + a.ins >= 0 && s < a.i && a.len <= c && (mn(r, 0, a.ins), o && ho(o, r, a.text), s = a.i), a.forward(c), l -= c; } O.next(); } else if (a.ins >= 0) { @@ -8786,22 +8737,22 @@ function Ug(t, e, n, i = !1) { c -= O.len, O.next(); else break; - Qn(r, l, s < a.i ? a.ins : 0), o && s < a.i && go(o, r, a.text), s = a.i, a.forward(a.len - c); + mn(r, l, s < a.i ? a.ins : 0), o && s < a.i && ho(o, r, a.text), s = a.i, a.forward(a.len - c); } else { if (a.done && O.done) - return o ? Zt.createSet(r, o) : wr.create(r); + return o ? Zt.createSet(r, o) : yr.create(r); throw new Error("Mismatched change set lengths"); } } function BX(t, e, n = !1) { - let i = [], r = n ? [] : null, o = new bl(t), a = new bl(e); + let i = [], r = n ? [] : null, o = new Sl(t), a = new Sl(e); for (let O = !1; ; ) { if (o.done && a.done) - return r ? Zt.createSet(i, r) : wr.create(i); + return r ? Zt.createSet(i, r) : yr.create(i); if (o.ins == 0) - Qn(i, o.len, 0, O), o.next(); + mn(i, o.len, 0, O), o.next(); else if (a.len == 0 && !a.done) - Qn(i, 0, a.ins, O), r && go(r, i, a.text), a.next(); + mn(i, 0, a.ins, O), r && ho(r, i, a.text), a.next(); else { if (o.done || a.done) throw new Error("Mismatched change set lengths"); @@ -8809,15 +8760,15 @@ function BX(t, e, n = !1) { let s = Math.min(o.len2, a.len), l = i.length; if (o.ins == -1) { let c = a.ins == -1 ? -1 : a.off ? 0 : a.ins; - Qn(i, s, c, O), r && c && go(r, i, a.text); + mn(i, s, c, O), r && c && ho(r, i, a.text); } else - a.ins == -1 ? (Qn(i, o.off ? 0 : o.len, s, O), r && go(r, i, o.textBit(s))) : (Qn(i, o.off ? 0 : o.len, a.off ? 0 : a.ins, O), r && !a.off && go(r, i, a.text)); + a.ins == -1 ? (mn(i, o.off ? 0 : o.len, s, O), r && ho(r, i, o.textBit(s))) : (mn(i, o.off ? 0 : o.len, a.off ? 0 : a.ins, O), r && !a.off && ho(r, i, a.text)); O = (o.ins > s || a.ins >= 0 && a.len > s) && (O || i.length > l), o.forward2(s), a.forward(s); } } } } -class bl { +class Sl { constructor(e) { this.set = e, this.i = 0, this.next(); } @@ -8846,7 +8797,7 @@ class bl { this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e); } } -class oa { +class ia { constructor(e, n, i) { this.from = e, this.to = n, this.flags = i; } @@ -8903,7 +8854,7 @@ class oa { */ map(e, n = -1) { let i, r; - return this.empty ? i = r = e.mapPos(this.from, n) : (i = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), i == this.from && r == this.to ? this : new oa(i, r, this.flags); + return this.empty ? i = r = e.mapPos(this.from, n) : (i = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), i == this.from && r == this.to ? this : new ia(i, r, this.flags); } /** Extend this range to cover at least `from` to `to`. @@ -8939,7 +8890,7 @@ class oa { @internal */ static create(e, n, i) { - return new oa(e, n, i); + return new ia(e, n, i); } } class T { @@ -9006,7 +8957,7 @@ class T { static fromJSON(e) { if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length) throw new RangeError("Invalid JSON representation for EditorSelection"); - return new T(e.ranges.map((n) => oa.fromJSON(n)), e.main); + return new T(e.ranges.map((n) => ia.fromJSON(n)), e.main); } /** Create a selection holding a single range. @@ -9034,14 +8985,14 @@ class T { safely ignore the optional arguments in most situations. */ static cursor(e, n = 0, i, r) { - return oa.create(e, e, (n == 0 ? 0 : n < 0 ? 4 : 8) | (i == null ? 3 : Math.min(2, i)) | (r ?? 33554431) << 5); + return ia.create(e, e, (n == 0 ? 0 : n < 0 ? 4 : 8) | (i == null ? 3 : Math.min(2, i)) | (r ?? 33554431) << 5); } /** Create a selection range. */ static range(e, n, i, r) { let o = (i ?? 33554431) << 5 | (r == null ? 3 : Math.min(2, r)); - return n < e ? oa.create(n, e, 24 | o) : oa.create(e, n, (n > e ? 4 : 0) | o); + return n < e ? ia.create(n, e, 24 | o) : ia.create(e, n, (n > e ? 4 : 0) | o); } /** @internal @@ -9064,22 +9015,22 @@ function HX(t, e) { if (n.to > e) throw new RangeError("Selection points outside of document"); } -let AQ = 0; +let EQ = 0; class M { constructor(e, n, i, r, o) { - this.combine = e, this.compareInput = n, this.compare = i, this.isStatic = r, this.id = AQ++, this.default = e([]), this.extensions = typeof o == "function" ? o(this) : o; + this.combine = e, this.compareInput = n, this.compare = i, this.isStatic = r, this.id = EQ++, this.default = e([]), this.extensions = typeof o == "function" ? o(this) : o; } /** Define a new facet. */ static define(e = {}) { - return new M(e.combine || ((n) => n), e.compareInput || ((n, i) => n === i), e.compare || (e.combine ? (n, i) => n === i : IQ), !!e.static, e.enables); + return new M(e.combine || ((n) => n), e.compareInput || ((n, i) => n === i), e.compare || (e.combine ? (n, i) => n === i : jQ), !!e.static, e.enables); } /** Returns an extension that adds the given value to this facet. */ of(e) { - return new Eu([], this, 0, e); + return new zu([], this, 0, e); } /** Create an extension that computes a value for the facet from a @@ -9093,7 +9044,7 @@ class M { compute(e, n) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new Eu(e, this, 1, n); + return new zu(e, this, 1, n); } /** Create an extension that computes zero or more values for this @@ -9102,18 +9053,18 @@ class M { computeN(e, n) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new Eu(e, this, 2, n); + return new zu(e, this, 2, n); } from(e, n) { return n || (n = (i) => i), this.compute([e], (i) => n(i.field(e))); } } -function IQ(t, e) { +function jQ(t, e) { return t == e || t.length == e.length && t.every((n, i) => n === e[i]); } -class Eu { +class zu { constructor(e, n, i, r) { - this.dependencies = e, this.facet = n, this.type = i, this.value = r, this.id = AQ++; + this.dependencies = e, this.facet = n, this.type = i, this.value = r, this.id = EQ++; } dynamicSlot(e) { var n; @@ -9125,9 +9076,9 @@ class Eu { return u.values[a] = i(u), 1; }, update(u, d) { - if (s && d.docChanged || l && (d.docChanged || d.selection) || Yg(u, c)) { + if (s && d.docChanged || l && (d.docChanged || d.selection) || Vg(u, c)) { let f = i(u); - if (O ? !p2(f, u.values[a], r) : !r(f, u.values[a])) + if (O ? !h2(f, u.values[a], r) : !r(f, u.values[a])) return u.values[a] = f, 1; } return 0; @@ -9135,8 +9086,8 @@ class Eu { reconfigure: (u, d) => { let f, g = d.config.address[o]; if (g != null) { - let m = Ud(d, g); - if (this.dependencies.every(($) => $ instanceof M ? d.facet($) === u.facet($) : $ instanceof nn ? d.field($, !1) == u.field($, !1) : !0) || (O ? p2(f = i(u), m, r) : r(f = i(u), m))) + let m = Wd(d, g); + if (this.dependencies.every(($) => $ instanceof M ? d.facet($) === u.facet($) : $ instanceof tn ? d.field($, !1) == u.field($, !1) : !0) || (O ? h2(f = i(u), m, r) : r(f = i(u), m))) return u.values[a] = m, 0; } else f = i(u); @@ -9145,7 +9096,7 @@ class Eu { }; } } -function p2(t, e, n) { +function h2(t, e, n) { if (t.length != e.length) return !1; for (let i = 0; i < t.length; i++) @@ -9153,18 +9104,18 @@ function p2(t, e, n) { return !1; return !0; } -function Yg(t, e) { +function Vg(t, e) { let n = !1; for (let i of e) - tl(t, i) & 1 && (n = !0); + Ks(t, i) & 1 && (n = !0); return n; } -function jG(t, e, n) { +function EG(t, e, n) { let i = n.map((s) => t[s.id]), r = n.map((s) => s.type), o = i.filter((s) => !(s & 1)), a = t[e.id] >> 1; function O(s) { let l = []; for (let c = 0; c < i.length; c++) { - let u = Ud(s, i[c]); + let u = Wd(s, i[c]); if (r[c] == 2) for (let d of u) l.push(d); @@ -9176,26 +9127,26 @@ function jG(t, e, n) { return { create(s) { for (let l of i) - tl(s, l); + Ks(s, l); return s.values[a] = O(s), 1; }, update(s, l) { - if (!Yg(s, o)) + if (!Vg(s, o)) return 0; let c = O(s); return e.compare(c, s.values[a]) ? 0 : (s.values[a] = c, 1); }, reconfigure(s, l) { - let c = Yg(s, i), u = l.config.facets[e.id], d = l.facet(e); - if (u && !c && IQ(n, u)) + let c = Vg(s, i), u = l.config.facets[e.id], d = l.facet(e); + if (u && !c && jQ(n, u)) return s.values[a] = d, 0; let f = O(s); return e.compare(f, d) ? (s.values[a] = d, 0) : (s.values[a] = f, 1); } }; } -const g2 = /* @__PURE__ */ M.define({ static: !0 }); -class nn { +const p2 = /* @__PURE__ */ M.define({ static: !0 }); +class tn { constructor(e, n, i, r, o) { this.id = e, this.createF = n, this.updateF = i, this.compareF = r, this.spec = o, this.provides = void 0; } @@ -9203,11 +9154,11 @@ class nn { Define a state field. */ static define(e) { - let n = new nn(AQ++, e.create, e.update, e.compare || ((i, r) => i === r), e); + let n = new tn(EQ++, e.create, e.update, e.compare || ((i, r) => i === r), e); return e.provide && (n.provides = e.provide(n)), n; } create(e) { - let n = e.facet(g2).find((i) => i.field == this); + let n = e.facet(p2).find((i) => i.field == this); return ((n == null ? void 0 : n.create) || this.createF)(e); } /** @@ -9230,7 +9181,7 @@ class nn { non-default starting value for the field. */ init(e) { - return [this, g2.of({ field: this, create: e })]; + return [this, p2.of({ field: this, create: e })]; } /** State field instances can be used as @@ -9241,55 +9192,55 @@ class nn { return this; } } -const ta = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; -function us(t) { +const ea = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; +function ls(t) { return (e) => new JX(e, t); } -const Tr = { +const Pr = { /** The highest precedence level, for extensions that should end up near the start of the precedence ordering. */ - highest: /* @__PURE__ */ us(ta.highest), + highest: /* @__PURE__ */ ls(ea.highest), /** A higher-than-default precedence, for extensions that should come before those with default precedence. */ - high: /* @__PURE__ */ us(ta.high), + high: /* @__PURE__ */ ls(ea.high), /** The default precedence, which is also used for extensions without an explicit precedence. */ - default: /* @__PURE__ */ us(ta.default), + default: /* @__PURE__ */ ls(ea.default), /** A lower-than-default precedence. */ - low: /* @__PURE__ */ us(ta.low), + low: /* @__PURE__ */ ls(ea.low), /** The lowest precedence level. Meant for things that should end up near the end of the extension order. */ - lowest: /* @__PURE__ */ us(ta.lowest) + lowest: /* @__PURE__ */ ls(ea.lowest) }; class JX { constructor(e, n) { this.inner = e, this.prec = n; } } -class ih { +class eh { /** Create an instance of this compartment to add to your [state configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions). */ of(e) { - return new zg(this, e); + return new Zg(this, e); } /** Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that reconfigures this compartment. */ reconfigure(e) { - return ih.reconfigure.of({ compartment: this, extension: e }); + return eh.reconfigure.of({ compartment: this, extension: e }); } /** Get the current content of the compartment in the state, or @@ -9299,12 +9250,12 @@ class ih { return e.config.compartments.get(this); } } -class zg { +class Zg { constructor(e, n) { this.compartment = e, this.inner = n; } } -class Zd { +class qd { constructor(e, n, i, r, o, a) { for (this.base = e, this.compartments = n, this.dynamicSlots = i, this.address = r, this.staticValues = o, this.facets = a, this.statusTemplate = []; this.statusTemplate.length < i.length; ) this.statusTemplate.push( @@ -9318,8 +9269,8 @@ class Zd { } static resolve(e, n, i) { let r = [], o = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of AG(e, n, a)) - d instanceof nn ? r.push(d) : (o[d.facet.id] || (o[d.facet.id] = [])).push(d); + for (let d of jG(e, n, a)) + d instanceof tn ? r.push(d) : (o[d.facet.id] || (o[d.facet.id] = [])).push(d); let O = /* @__PURE__ */ Object.create(null), s = [], l = []; for (let d of r) O[d.id] = l.length << 1, l.push((f) => d.slot(f)); @@ -9330,7 +9281,7 @@ class Zd { ($) => $.type == 0 /* Provider.Static */ )) - if (O[g.id] = s.length << 1 | 1, IQ(m, f)) + if (O[g.id] = s.length << 1 | 1, jQ(m, f)) s.push(i.facet(g)); else { let $ = g.combine(f.map((Q) => Q.value)); @@ -9339,14 +9290,14 @@ class Zd { else { for (let $ of f) $.type == 0 ? (O[$.id] = s.length << 1 | 1, s.push($.value)) : (O[$.id] = l.length << 1, l.push((Q) => $.dynamicSlot(Q))); - O[g.id] = l.length << 1, l.push(($) => jG($, g, f)); + O[g.id] = l.length << 1, l.push(($) => EG($, g, f)); } } let u = l.map((d) => d(O)); - return new Zd(e, a, u, O, s, o); + return new qd(e, a, u, O, s, o); } } -function AG(t, e, n) { +function jG(t, e, n) { let i = [[], [], [], [], []], r = /* @__PURE__ */ new Map(); function o(a, O) { let s = r.get(a); @@ -9354,22 +9305,22 @@ function AG(t, e, n) { if (s <= O) return; let l = i[s].indexOf(a); - l > -1 && i[s].splice(l, 1), a instanceof zg && n.delete(a.compartment); + l > -1 && i[s].splice(l, 1), a instanceof Zg && n.delete(a.compartment); } if (r.set(a, O), Array.isArray(a)) for (let l of a) o(l, O); - else if (a instanceof zg) { + else if (a instanceof Zg) { if (n.has(a.compartment)) throw new RangeError("Duplicate use of compartment in extensions"); let l = e.get(a.compartment) || a.inner; n.set(a.compartment, l), o(l, O); } else if (a instanceof JX) o(a.inner, a.prec); - else if (a instanceof nn) + else if (a instanceof tn) i[O].push(a), a.provides && o(a.provides, O); - else if (a instanceof Eu) - i[O].push(a), a.facet.extensions && o(a.facet.extensions, ta.default); + else if (a instanceof zu) + i[O].push(a), a.facet.extensions && o(a.facet.extensions, ea.default); else { let l = a.extension; if (!l) @@ -9377,9 +9328,9 @@ function AG(t, e, n) { o(l, O); } } - return o(t, ta.default), i.reduce((a, O) => a.concat(O)); + return o(t, ea.default), i.reduce((a, O) => a.concat(O)); } -function tl(t, e) { +function Ks(t, e) { if (e & 1) return 2; let n = e >> 1, i = t.status[n]; @@ -9391,7 +9342,7 @@ function tl(t, e) { let r = t.computeSlot(t, t.config.dynamicSlots[n]); return t.status[n] = 2 | r; } -function Ud(t, e) { +function Wd(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } const KX = /* @__PURE__ */ M.define(), e4 = /* @__PURE__ */ M.define({ @@ -9403,7 +9354,7 @@ const KX = /* @__PURE__ */ M.define(), e4 = /* @__PURE__ */ M.define({ }), n4 = /* @__PURE__ */ M.define(), i4 = /* @__PURE__ */ M.define(), r4 = /* @__PURE__ */ M.define(), o4 = /* @__PURE__ */ M.define({ combine: (t) => t.length ? t[0] : !1 }); -class Bi { +class Fi { /** @internal */ @@ -9414,18 +9365,18 @@ class Bi { Define a new type of annotation. */ static define() { - return new IG(); + return new AG(); } } -class IG { +class AG { /** Create an instance of this annotation. */ of(e) { - return new Bi(this, e); + return new Fi(this, e); } } -class DG { +class IG { /** @internal */ @@ -9470,7 +9421,7 @@ class we { removed. */ static define(e = {}) { - return new DG(e.map || ((n) => n)); + return new IG(e.map || ((n) => n)); } /** Map an array of effects through a change set. @@ -9562,11 +9513,11 @@ class It { return !!(n && (n == e || n.length > e.length && n.slice(0, e.length) == e && n[e.length] == ".")); } } -It.time = /* @__PURE__ */ Bi.define(); -It.userEvent = /* @__PURE__ */ Bi.define(); -It.addToHistory = /* @__PURE__ */ Bi.define(); -It.remote = /* @__PURE__ */ Bi.define(); -function LG(t, e) { +It.time = /* @__PURE__ */ Fi.define(); +It.userEvent = /* @__PURE__ */ Fi.define(); +It.addToHistory = /* @__PURE__ */ Fi.define(); +It.remote = /* @__PURE__ */ Fi.define(); +function DG(t, e) { let n = []; for (let i = 0, r = 0; ; ) { let o, a; @@ -9590,28 +9541,28 @@ function a4(t, e, n) { scrollIntoView: t.scrollIntoView || e.scrollIntoView }; } -function Gg(t, e, n) { - let i = e.selection, r = rO(e.annotations); +function Ug(t, e, n) { + let i = e.selection, r = nO(e.annotations); return e.userEvent && (r = r.concat(It.userEvent.of(e.userEvent))), { changes: e.changes instanceof Zt ? e.changes : Zt.of(e.changes || [], n, t.facet(t4)), selection: i && (i instanceof T ? i : T.single(i.anchor, i.head)), - effects: rO(e.effects), + effects: nO(e.effects), annotations: r, scrollIntoView: !!e.scrollIntoView }; } function O4(t, e, n) { - let i = Gg(t, e.length ? e[0] : {}, t.doc.length); + let i = Ug(t, e.length ? e[0] : {}, t.doc.length); e.length && e[0].filter === !1 && (n = !1); for (let o = 1; o < e.length; o++) { e[o].filter === !1 && (n = !1); let a = !!e[o].sequential; - i = a4(i, Gg(t, e[o], a ? i.changes.newLength : t.doc.length), a); + i = a4(i, Ug(t, e[o], a ? i.changes.newLength : t.doc.length), a); } let r = It.create(t, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView); - return FG(n ? MG(r) : r); + return MG(n ? LG(r) : r); } -function MG(t) { +function LG(t) { let e = t.startState, n = !0; for (let r of e.facet(n4)) { let o = r(t); @@ -9619,7 +9570,7 @@ function MG(t) { n = !1; break; } - Array.isArray(o) && (n = n === !0 ? o : LG(n, o)); + Array.isArray(o) && (n = n === !0 ? o : DG(n, o)); } if (n !== !0) { let r, o; @@ -9634,46 +9585,46 @@ function MG(t) { let i = e.facet(i4); for (let r = i.length - 1; r >= 0; r--) { let o = i[r](t); - o instanceof It ? t = o : Array.isArray(o) && o.length == 1 && o[0] instanceof It ? t = o[0] : t = O4(e, rO(o), !1); + o instanceof It ? t = o : Array.isArray(o) && o.length == 1 && o[0] instanceof It ? t = o[0] : t = O4(e, nO(o), !1); } return t; } -function FG(t) { +function MG(t) { let e = t.startState, n = e.facet(r4), i = t; for (let r = n.length - 1; r >= 0; r--) { let o = n[r](t); - o && Object.keys(o).length && (i = a4(i, Gg(e, o, t.changes.newLength), !0)); + o && Object.keys(o).length && (i = a4(i, Ug(e, o, t.changes.newLength), !0)); } return i == t ? t : It.create(e, t.changes, t.selection, i.effects, i.annotations, i.scrollIntoView); } -const NG = []; -function rO(t) { - return t == null ? NG : Array.isArray(t) ? t : [t]; +const FG = []; +function nO(t) { + return t == null ? FG : Array.isArray(t) ? t : [t]; } var gt = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(gt || (gt = {})); -const BG = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let Eg; +const NG = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +let Yg; try { - Eg = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); + Yg = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function HG(t) { - if (Eg) - return Eg.test(t); +function BG(t) { + if (Yg) + return Yg.test(t); for (let e = 0; e < t.length; e++) { let n = t[e]; - if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || BG.test(n))) + if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || NG.test(n))) return !0; } return !1; } -function JG(t) { +function HG(t) { return (e) => { if (!/\S/.test(e)) return gt.Space; - if (HG(e)) + if (BG(e)) return gt.Word; for (let n = 0; n < t.length; n++) if (e.indexOf(t[n]) > -1) @@ -9685,7 +9636,7 @@ class ke { constructor(e, n, i, r, o, a) { this.config = e, this.doc = n, this.selection = i, this.values = r, this.status = e.statusTemplate.slice(), this.computeSlot = o, a && (a._state = this); for (let O = 0; O < this.config.dynamicSlots.length; O++) - tl(this, O << 1); + Ks(this, O << 1); this.computeSlot = null; } field(e, n = !0) { @@ -9695,7 +9646,7 @@ class ke { throw new RangeError("Field is not present in this state"); return; } - return tl(this, i), Ud(this, i); + return Ks(this, i), Wd(this, i); } /** Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this @@ -9721,9 +9672,9 @@ class ke { applyTransaction(e) { let n = this.config, { base: i, compartments: r } = n; for (let a of e.effects) - a.is(ih.reconfigure) ? (n && (r = /* @__PURE__ */ new Map(), n.compartments.forEach((O, s) => r.set(s, O)), n = null), r.set(a.value.compartment, a.value.extension)) : a.is(we.reconfigure) ? (n = null, i = a.value) : a.is(we.appendConfig) && (n = null, i = rO(i).concat(a.value)); + a.is(eh.reconfigure) ? (n && (r = /* @__PURE__ */ new Map(), n.compartments.forEach((O, s) => r.set(s, O)), n = null), r.set(a.value.compartment, a.value.extension)) : a.is(we.reconfigure) ? (n = null, i = a.value) : a.is(we.appendConfig) && (n = null, i = nO(i).concat(a.value)); let o; - n ? o = e.startState.values.slice() : (n = Zd.resolve(i, r, this), o = new ke(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (O, s) => s.reconfigure(O, this), null).values), new ke(n, e.newDoc, e.newSelection, o, (a, O) => O.update(a, e), e); + n ? o = e.startState.values.slice() : (n = qd.resolve(i, r, this), o = new ke(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (O, s) => s.reconfigure(O, this), null).values), new ke(n, e.newDoc, e.newSelection, o, (a, O) => O.update(a, e), e); } /** Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that @@ -9747,13 +9698,13 @@ class ke { [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update). */ changeByRange(e) { - let n = this.selection, i = e(n.ranges[0]), r = this.changes(i.changes), o = [i.range], a = rO(i.effects); + let n = this.selection, i = e(n.ranges[0]), r = this.changes(i.changes), o = [i.range], a = nO(i.effects); for (let O = 1; O < n.ranges.length; O++) { let s = e(n.ranges[O]), l = this.changes(s.changes), c = l.map(r); for (let d = 0; d < O; d++) o[d] = o[d].map(c); let u = r.mapDesc(l, !0); - o.push(s.range.map(u)), r = r.compose(c), a = we.mapEffects(a, c).concat(we.mapEffects(rO(s.effects), u)); + o.push(s.range.map(u)), r = r.compose(c), a = we.mapEffects(a, c).concat(we.mapEffects(nO(s.effects), u)); } return { changes: r, @@ -9775,7 +9726,7 @@ class ke { [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string. */ toText(e) { - return _e.of(e.split(this.facet(ke.lineSeparator) || Vg)); + return _e.of(e.split(this.facet(ke.lineSeparator) || Rg)); } /** Return the given range of the document as a string. @@ -9788,7 +9739,7 @@ class ke { */ facet(e) { let n = this.config.address[e.id]; - return n == null ? e.default : (tl(this, n), Ud(this, n)); + return n == null ? e.default : (Ks(this, n), Wd(this, n)); } /** Convert this state to a JSON-serializable object. When custom @@ -9804,7 +9755,7 @@ class ke { if (e) for (let i in e) { let r = e[i]; - r instanceof nn && this.config.address[r.id] != null && (n[i] = r.spec.toJSON(this.field(e[i]), this)); + r instanceof tn && this.config.address[r.id] != null && (n[i] = r.spec.toJSON(this.field(e[i]), this)); } return n; } @@ -9837,7 +9788,7 @@ class ke { transactions. */ static create(e = {}) { - let n = Zd.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof _e ? e.doc : _e.of((e.doc || "").split(n.staticFacet(ke.lineSeparator) || Vg)), r = e.selection ? e.selection instanceof T ? e.selection : T.single(e.selection.anchor, e.selection.head) : T.single(0); + let n = qd.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof _e ? e.doc : _e.of((e.doc || "").split(n.staticFacet(ke.lineSeparator) || Rg)), r = e.selection ? e.selection instanceof T ? e.selection : T.single(e.selection.anchor, e.selection.head) : T.single(0); return HX(r, i.length), n.staticFacet(e4) || (r = r.asSingle()), new ke(n, i, r, n.dynamicSlots.map(() => null), (o, a) => a.create(o), null); } /** @@ -9920,7 +9871,7 @@ class ke { - Other (anything else) */ charCategorizer(e) { - return JG(this.languageDataAt("wordChars", e).join("")); + return HG(this.languageDataAt("wordChars", e).join("")); } /** Find the word at the given position, meaning the range @@ -9961,8 +9912,8 @@ ke.languageData = KX; ke.changeFilter = n4; ke.transactionFilter = i4; ke.transactionExtender = r4; -ih.reconfigure = /* @__PURE__ */ we.define(); -function kr(t, e, n = {}) { +eh.reconfigure = /* @__PURE__ */ we.define(); +function Xr(t, e, n = {}) { let i = {}; for (let r of t) for (let o of Object.keys(r)) { @@ -9979,7 +9930,7 @@ function kr(t, e, n = {}) { i[r] === void 0 && (i[r] = e[r]); return i; } -class Ir { +class jr { /** Compare this value with another value. Used when comparing rangesets. The default implementation compares by identity. @@ -9994,13 +9945,13 @@ class Ir { Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value. */ range(e, n = e) { - return jg.create(e, n, this); + return zg.create(e, n, this); } } -Ir.prototype.startSide = Ir.prototype.endSide = 0; -Ir.prototype.point = !1; -Ir.prototype.mapMode = Tt.TrackDel; -let jg = class s4 { +jr.prototype.startSide = jr.prototype.endSide = 0; +jr.prototype.point = !1; +jr.prototype.mapMode = Tt.TrackDel; +let zg = class s4 { constructor(e, n, i) { this.from = e, this.to = n, this.value = i; } @@ -10011,10 +9962,10 @@ let jg = class s4 { return new s4(e, n, i); } }; -function Ag(t, e) { +function Gg(t, e) { return t.from - e.from || t.value.startSide - e.value.startSide; } -class DQ { +class AQ { constructor(e, n, i, r) { this.from = e, this.to = n, this.value = i, this.maxPoint = r; } @@ -10051,7 +10002,7 @@ class DQ { continue; (f - d || l.endSide - l.startSide) < 0 || (a < 0 && (a = d), l.point && (O = Math.max(O, f - d)), i.push(l), r.push(d - a), o.push(f - a)); } - return { mapped: i.length ? new DQ(r, o, i, O) : null, pos: a }; + return { mapped: i.length ? new AQ(r, o, i, O) : null, pos: a }; } } class Ve { @@ -10101,15 +10052,15 @@ class Ve { let { add: n = [], sort: i = !1, filterFrom: r = 0, filterTo: o = this.length } = e, a = e.filter; if (n.length == 0 && !a) return this; - if (i && (n = n.slice().sort(Ag)), this.isEmpty) + if (i && (n = n.slice().sort(Gg)), this.isEmpty) return n.length ? Ve.of(n) : this; - let O = new l4(this, null, -1).goto(0), s = 0, l = [], c = new _o(); + let O = new l4(this, null, -1).goto(0), s = 0, l = [], c = new ko(); for (; O.value || s < n.length; ) if (s < n.length && (O.from - n[s].from || O.startSide - n[s].value.startSide) >= 0) { let u = n[s++]; c.addInner(u.from, u.to, u.value) || l.push(u); } else - O.rangeIndex == 1 && O.chunkIndex < this.chunk.length && (s == n.length || this.chunkEnd(O.chunkIndex) < n[s].from) && (!a || r > this.chunkEnd(O.chunkIndex) || o < this.chunkPos[O.chunkIndex]) && c.addChunk(this.chunkPos[O.chunkIndex], this.chunk[O.chunkIndex]) ? O.nextChunk() : ((!a || r > O.to || o < O.from || a(O.from, O.to, O.value)) && (c.addInner(O.from, O.to, O.value) || l.push(jg.create(O.from, O.to, O.value))), O.next()); + O.rangeIndex == 1 && O.chunkIndex < this.chunk.length && (s == n.length || this.chunkEnd(O.chunkIndex) < n[s].from) && (!a || r > this.chunkEnd(O.chunkIndex) || o < this.chunkPos[O.chunkIndex]) && c.addChunk(this.chunkPos[O.chunkIndex], this.chunk[O.chunkIndex]) ? O.nextChunk() : ((!a || r > O.to || o < O.from || a(O.from, O.to, O.value)) && (c.addInner(O.from, O.to, O.value) || l.push(zg.create(O.from, O.to, O.value))), O.next()); return c.finishInner(this.nextLayer.isEmpty && !l.length ? Ve.empty : this.nextLayer.update({ add: l, filter: a, filterFrom: r, filterTo: o })); } /** @@ -10152,7 +10103,7 @@ class Ve { ranges that end at or after `from`. */ iter(e = 0) { - return wl.from([this]).goto(e); + return yl.from([this]).goto(e); } /** @internal @@ -10165,15 +10116,15 @@ class Ve { starting from `from`. */ static iter(e, n = 0) { - return wl.from(e).goto(n); + return yl.from(e).goto(n); } /** Iterate over two groups of sets, calling methods on `comparator` to notify it of possible differences. */ static compare(e, n, i, r, o = -1) { - let a = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= o), O = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= o), s = $2(a, O, i), l = new ds(a, s, o), c = new ds(O, s, o); - i.iterGaps((u, d, f) => m2(l, u, c, d, f, r)), i.empty && i.length == 0 && m2(l, 0, c, 0, 0, r); + let a = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= o), O = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= o), s = g2(a, O, i), l = new cs(a, s, o), c = new cs(O, s, o); + i.iterGaps((u, d, f) => $2(l, u, c, d, f, r)), i.empty && i.length == 0 && $2(l, 0, c, 0, 0, r); } /** Compare the contents of two groups of range sets, returning true @@ -10186,9 +10137,9 @@ class Ve { return !1; if (!o.length) return !0; - let O = $2(o, a), s = new ds(o, O, 0).goto(i), l = new ds(a, O, 0).goto(i); + let O = g2(o, a), s = new cs(o, O, 0).goto(i), l = new cs(a, O, 0).goto(i); for (; ; ) { - if (s.to != l.to || !Ig(s.active, l.active) || s.point && (!l.point || !s.point.eq(l.point))) + if (s.to != l.to || !Eg(s.active, l.active) || s.point && (!l.point || !s.point.eq(l.point))) return !1; if (s.to > r) return !0; @@ -10203,7 +10154,7 @@ class Ve { of the iteration. */ static spans(e, n, i, r, o = -1) { - let a = new ds(e, null, o).goto(n), O = n, s = a.openStart; + let a = new cs(e, null, o).goto(n), O = n, s = a.openStart; for (; ; ) { let l = Math.min(a.to, i); if (a.point) { @@ -10224,27 +10175,27 @@ class Ve { cause the method to sort them. */ static of(e, n = !1) { - let i = new _o(); - for (let r of e instanceof jg ? [e] : n ? KG(e) : e) + let i = new ko(); + for (let r of e instanceof zg ? [e] : n ? JG(e) : e) i.add(r.from, r.to, r.value); return i.finish(); } } Ve.empty = /* @__PURE__ */ new Ve([], [], null, -1); -function KG(t) { +function JG(t) { if (t.length > 1) for (let e = t[0], n = 1; n < t.length; n++) { let i = t[n]; - if (Ag(e, i) > 0) - return t.slice().sort(Ag); + if (Gg(e, i) > 0) + return t.slice().sort(Gg); e = i; } return t; } Ve.empty.nextLayer = Ve.empty; -class _o { +class ko { finishChunk(e) { - this.chunks.push(new DQ(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); + this.chunks.push(new AQ(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); } /** Create an empty builder. @@ -10257,7 +10208,7 @@ class _o { `value.startSide`) order. */ add(e, n, i) { - this.addInner(e, n, i) || (this.nextLayer || (this.nextLayer = new _o())).add(e, n, i); + this.addInner(e, n, i) || (this.nextLayer || (this.nextLayer = new ko())).add(e, n, i); } /** @internal @@ -10295,7 +10246,7 @@ class _o { return this.from = null, n; } } -function $2(t, e, n) { +function g2(t, e, n) { let i = /* @__PURE__ */ new Map(); for (let o of t) for (let a = 0; a < o.chunk.length; a++) @@ -10364,7 +10315,7 @@ class l4 { return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide; } } -class wl { +class yl { constructor(e) { this.heap = e; } @@ -10373,7 +10324,7 @@ class wl { for (let o = 0; o < e.length; o++) for (let a = e[o]; !a.isEmpty; a = a.nextLayer) a.maxPoint >= i && r.push(new l4(a, n, i, o)); - return r.length == 1 ? r[0] : new wl(r); + return r.length == 1 ? r[0] : new yl(r); } get startSide() { return this.value ? this.value.startSide : 0; @@ -10382,14 +10333,14 @@ class wl { for (let i of this.heap) i.goto(e, n); for (let i = this.heap.length >> 1; i >= 0; i--) - g1(this.heap, i); + f1(this.heap, i); return this.next(), this; } forward(e, n) { for (let i of this.heap) i.forward(e, n); for (let i = this.heap.length >> 1; i >= 0; i--) - g1(this.heap, i); + f1(this.heap, i); (this.to - e || this.value.endSide - n) < 0 && this.next(); } next() { @@ -10397,11 +10348,11 @@ class wl { this.from = this.to = 1e9, this.value = null, this.rank = -1; else { let e = this.heap[0]; - this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), g1(this.heap, 0); + this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), f1(this.heap, 0); } } } -function g1(t, e) { +function f1(t, e) { for (let n = t[e]; ; ) { let i = (e << 1) + 1; if (i >= t.length) @@ -10412,9 +10363,9 @@ function g1(t, e) { t[i] = n, t[e] = r, e = i; } } -class ds { +class cs { constructor(e, n, i) { - this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = wl.from(e, n, i); + this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = yl.from(e, n, i); } goto(e, n = -1e9) { return this.cursor.goto(e, n), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = n, this.openStart = -1, this.next(), this; @@ -10425,13 +10376,13 @@ class ds { this.cursor.forward(e, n); } removeActive(e) { - Qc(this.active, e), Qc(this.activeTo, e), Qc(this.activeRank, e), this.minActive = Q2(this.active, this.activeTo); + $c(this.active, e), $c(this.activeTo, e), $c(this.activeRank, e), this.minActive = m2(this.active, this.activeTo); } addActive(e) { let n = 0, { value: i, to: r, rank: o } = this.cursor; for (; n < this.activeRank.length && this.activeRank[n] <= o; ) n++; - Sc(this.active, n, i), Sc(this.activeTo, n, r), Sc(this.activeRank, n, o), e && Sc(e, n, this.cursor.from), this.minActive = Q2(this.active, this.activeTo); + mc(this.active, n, i), mc(this.activeTo, n, r), mc(this.activeRank, n, o), e && mc(e, n, this.cursor.from), this.minActive = m2(this.active, this.activeTo); } // After calling this, if `this.point` != null, the next range is a // point. Otherwise, it's a regular range, covered by `this.active`. @@ -10446,7 +10397,7 @@ class ds { this.to = this.activeTo[r], this.endSide = this.active[r].endSide; break; } - this.removeActive(r), i && Qc(i, r); + this.removeActive(r), i && $c(i, r); } else if (this.cursor.value) if (this.cursor.from > e) { this.to = this.cursor.from, this.endSide = this.cursor.startSide; @@ -10488,17 +10439,17 @@ class ds { return n; } } -function m2(t, e, n, i, r, o) { +function $2(t, e, n, i, r, o) { t.goto(e), n.goto(i); let a = i + r, O = i, s = i - e; for (; ; ) { let l = t.to + s - n.to || t.endSide - n.endSide, c = l < 0 ? t.to + s : n.to, u = Math.min(c, a); - if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Ig(t.activeForPoint(t.to), n.activeForPoint(n.to)) || o.comparePoint(O, u, t.point, n.point) : u > O && !Ig(t.active, n.active) && o.compareRange(O, u, t.active, n.active), c > a) + if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Eg(t.activeForPoint(t.to), n.activeForPoint(n.to)) || o.comparePoint(O, u, t.point, n.point) : u > O && !Eg(t.active, n.active) && o.compareRange(O, u, t.active, n.active), c > a) break; O = c, l <= 0 && t.next(), l >= 0 && n.next(); } } -function Ig(t, e) { +function Eg(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -10506,29 +10457,29 @@ function Ig(t, e) { return !1; return !0; } -function Qc(t, e) { +function $c(t, e) { for (let n = e, i = t.length - 1; n < i; n++) t[n] = t[n + 1]; t.pop(); } -function Sc(t, e, n) { +function mc(t, e, n) { for (let i = t.length - 1; i >= e; i--) t[i + 1] = t[i]; t[e] = n; } -function Q2(t, e) { +function m2(t, e) { let n = -1, i = 1e9; for (let r = 0; r < e.length; r++) (e[r] - i || t[r].endSide - t[n].endSide) < 0 && (n = r, i = e[r]); return n; } -function Jl(t, e, n = t.length) { +function Bl(t, e, n = t.length) { let i = 0; for (let r = 0; r < n; ) t.charCodeAt(r) == 9 ? (i += e - i % e, r++) : (i++, r = At(t, r)); return i; } -function Yd(t, e, n, i) { +function Vd(t, e, n, i) { for (let r = 0, o = 0; ; ) { if (o >= e) return r; @@ -10538,8 +10489,8 @@ function Yd(t, e, n, i) { } return i === !0 ? -1 : t.length; } -const Dg = "ͼ", S2 = typeof Symbol > "u" ? "__" + Dg : Symbol.for(Dg), Lg = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), y2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; -class Mn { +const jg = "ͼ", Q2 = typeof Symbol > "u" ? "__" + jg : Symbol.for(jg), Ag = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), S2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; +class Dn { // :: (Object