diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a64726..708b263 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project are documented here. +## 2.2.1a0 (2026-01-07) + +### Fix + +- **funcnodes-react-flow**: clean up queued fnw_url import callback +- enhance worker lifecycle management by refining conditions for worker creation + ## 2.2.0 (2026-01-07) ### Feat diff --git a/pyproject.toml b/pyproject.toml index c474243..403d358 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "funcnodes-react-flow" -version = "2.2.0" +version = "2.2.1a0" description = "funcnodes frontend for react flow" readme = "README.md" classifiers = [ "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",] diff --git a/src/funcnodes_react_flow/static/funcnodes_react_flow.es.js b/src/funcnodes_react_flow/static/funcnodes_react_flow.es.js index 31628ec..ab3585d 100755 --- a/src/funcnodes_react_flow/static/funcnodes_react_flow.es.js +++ b/src/funcnodes_react_flow/static/funcnodes_react_flow.es.js @@ -49,7 +49,7 @@ var hze = BG((ao, so) => { return Pq; }, get FuncNodesWorker() { - return f9; + return d9; }, get JSONStructure() { return Ks; @@ -120,10 +120,10 @@ var hze = BG((ao, so) => { function Xi(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } - var Jw = { exports: {} }, Vf = {}; + var Jw = { exports: {} }, Vd = {}; var gP; function HG() { - if (gP) return Vf; + if (gP) return Vd; gP = 1; var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment"); function n(r, o, i) { @@ -141,13 +141,13 @@ var hze = BG((ao, so) => { props: i }; } - return Vf.Fragment = t, Vf.jsx = n, Vf.jsxs = n, Vf; + return Vd.Fragment = t, Vd.jsx = n, Vd.jsxs = n, Vd; } var yP; function qG() { return yP || (yP = 1, Jw.exports = HG()), Jw.exports; } - var S = qG(), eS = { exports: {} }, Hf = {}, tS = { exports: {} }, nS = {}; + var S = qG(), eS = { exports: {} }, Hd = {}, tS = { exports: {} }, nS = {}; var vP; function WG() { return vP || (vP = 1, (function(e) { @@ -195,7 +195,7 @@ var hze = BG((ao, so) => { return a.now() - s; }; } - var c = [], u = [], f = 1, p = null, m = 3, g = !1, y = !1, b = !1, v = !1, x = typeof setTimeout == "function" ? setTimeout : null, E = typeof clearTimeout == "function" ? clearTimeout : null, _ = typeof setImmediate < "u" ? setImmediate : null; + var c = [], u = [], d = 1, p = null, m = 3, g = !1, y = !1, b = !1, v = !1, x = typeof setTimeout == "function" ? setTimeout : null, E = typeof clearTimeout == "function" ? clearTimeout : null, _ = typeof setImmediate < "u" ? setImmediate : null; function C(F) { for (var K = n(u); K !== null; ) { if (K.callback === null) r(u); @@ -347,7 +347,7 @@ var hze = BG((ao, so) => { B = 5e3; } return B = W + B, F = { - id: f++, + id: d++, callback: K, priorityLevel: F, startTime: W, @@ -377,7 +377,7 @@ var hze = BG((ao, so) => { function KG() { if (xP) return at; xP = 1; - var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), p = /* @__PURE__ */ Symbol.for("react.activity"), m = Symbol.iterator; + var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.memo"), d = /* @__PURE__ */ Symbol.for("react.lazy"), p = /* @__PURE__ */ Symbol.for("react.activity"), m = Symbol.iterator; function g(D) { return D === null || typeof D != "object" ? null : (D = m && D[m] || D["@@iterator"], typeof D == "function" ? D : null); } @@ -483,7 +483,7 @@ var hze = BG((ao, so) => { case t: ne = !0; break; - case f: + case d: return ne = D._init, F( ne(D._payload), G, @@ -666,7 +666,7 @@ var hze = BG((ao, so) => { return { $$typeof: s, render: D }; }, at.isValidElement = L, at.lazy = function(D) { return { - $$typeof: f, + $$typeof: d, _payload: { _status: -1, _result: D }, _init: W }; @@ -746,8 +746,8 @@ var hze = BG((ao, so) => { var u = "https://react.dev/errors/" + c; if (1 < arguments.length) { u += "?args[]=" + encodeURIComponent(arguments[1]); - for (var f = 2; f < arguments.length; f++) - u += "&args[]=" + encodeURIComponent(arguments[f]); + for (var d = 2; d < arguments.length; d++) + u += "&args[]=" + encodeURIComponent(arguments[d]); } return "Minified React error #" + c + "; visit " + u + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } @@ -770,14 +770,14 @@ var hze = BG((ao, so) => { p: 0, findDOMNode: null }, o = /* @__PURE__ */ Symbol.for("react.portal"); - function i(c, u, f) { + function i(c, u, d) { var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: o, key: p == null ? null : "" + p, children: c, containerInfo: u, - implementation: f + implementation: d }; } var a = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; @@ -787,16 +787,16 @@ var hze = BG((ao, so) => { return u === "use-credentials" ? u : ""; } return hr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, hr.createPortal = function(c, u) { - var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; + var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!u || u.nodeType !== 1 && u.nodeType !== 9 && u.nodeType !== 11) throw Error(t(299)); - return i(c, u, null, f); + return i(c, u, null, d); }, hr.flushSync = function(c) { - var u = a.T, f = r.p; + var u = a.T, d = r.p; try { if (a.T = null, r.p = 2, c) return c(); } finally { - a.T = u, r.p = f, r.d.f(); + a.T = u, r.p = d, r.d.f(); } }, hr.preconnect = function(c, u) { typeof c == "string" && (u ? (u = u.crossOrigin, u = typeof u == "string" ? u === "use-credentials" ? u : "" : void 0) : u = null, r.d.C(c, u)); @@ -804,8 +804,8 @@ var hze = BG((ao, so) => { typeof c == "string" && r.d.D(c); }, hr.preinit = function(c, u) { if (typeof c == "string" && u && typeof u.as == "string") { - var f = u.as, p = s(f, u.crossOrigin), m = typeof u.integrity == "string" ? u.integrity : void 0, g = typeof u.fetchPriority == "string" ? u.fetchPriority : void 0; - f === "style" ? r.d.S( + var d = u.as, p = s(d, u.crossOrigin), m = typeof u.integrity == "string" ? u.integrity : void 0, g = typeof u.fetchPriority == "string" ? u.fetchPriority : void 0; + d === "style" ? r.d.S( c, typeof u.precedence == "string" ? u.precedence : void 0, { @@ -813,7 +813,7 @@ var hze = BG((ao, so) => { integrity: m, fetchPriority: g } - ) : f === "script" && r.d.X(c, { + ) : d === "script" && r.d.X(c, { crossOrigin: p, integrity: m, fetchPriority: g, @@ -824,12 +824,12 @@ var hze = BG((ao, so) => { if (typeof c == "string") if (typeof u == "object" && u !== null) { if (u.as == null || u.as === "script") { - var f = s( + var d = s( u.as, u.crossOrigin ); r.d.M(c, { - crossOrigin: f, + crossOrigin: d, integrity: typeof u.integrity == "string" ? u.integrity : void 0, nonce: typeof u.nonce == "string" ? u.nonce : void 0 }); @@ -837,8 +837,8 @@ var hze = BG((ao, so) => { } else u == null && r.d.M(c); }, hr.preload = function(c, u) { if (typeof c == "string" && typeof u == "object" && u !== null && typeof u.as == "string") { - var f = u.as, p = s(f, u.crossOrigin); - r.d.L(c, f, { + var d = u.as, p = s(d, u.crossOrigin); + r.d.L(c, d, { crossOrigin: p, integrity: typeof u.integrity == "string" ? u.integrity : void 0, nonce: typeof u.nonce == "string" ? u.nonce : void 0, @@ -853,10 +853,10 @@ var hze = BG((ao, so) => { }, hr.preloadModule = function(c, u) { if (typeof c == "string") if (u) { - var f = s(u.as, u.crossOrigin); + var d = s(u.as, u.crossOrigin); r.d.m(c, { as: typeof u.as == "string" && u.as !== "script" ? u.as : void 0, - crossOrigin: f, + crossOrigin: d, integrity: typeof u.integrity == "string" ? u.integrity : void 0 }); } else r.d.m(c); @@ -864,8 +864,8 @@ var hze = BG((ao, so) => { r.d.r(c); }, hr.unstable_batchedUpdates = function(c, u) { return c(u); - }, hr.useFormState = function(c, u, f) { - return a.H.useFormState(c, u, f); + }, hr.useFormState = function(c, u, d) { + return a.H.useFormState(c, u, d); }, hr.useFormStatus = function() { return a.H.useHostTransitionStatus(); }, hr.version = "19.2.3", hr; @@ -886,43 +886,43 @@ var hze = BG((ao, so) => { } var EP; function XG() { - if (EP) return Hf; + if (EP) return Hd; EP = 1; var e = GG(), t = Oh(), n = B4(); function r(l) { - var d = "https://react.dev/errors/" + l; + var f = "https://react.dev/errors/" + l; if (1 < arguments.length) { - d += "?args[]=" + encodeURIComponent(arguments[1]); + f += "?args[]=" + encodeURIComponent(arguments[1]); for (var h = 2; h < arguments.length; h++) - d += "&args[]=" + encodeURIComponent(arguments[h]); + f += "&args[]=" + encodeURIComponent(arguments[h]); } - return "Minified React error #" + l + "; visit " + d + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + return "Minified React error #" + l + "; visit " + f + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function o(l) { return !(!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11); } function i(l) { - var d = l, h = l; - if (l.alternate) for (; d.return; ) d = d.return; + var f = l, h = l; + if (l.alternate) for (; f.return; ) f = f.return; else { - l = d; + l = f; do - d = l, (d.flags & 4098) !== 0 && (h = d.return), l = d.return; + f = l, (f.flags & 4098) !== 0 && (h = f.return), l = f.return; while (l); } - return d.tag === 3 ? h : null; + return f.tag === 3 ? h : null; } function a(l) { if (l.tag === 13) { - var d = l.memoizedState; - if (d === null && (l = l.alternate, l !== null && (d = l.memoizedState)), d !== null) return d.dehydrated; + var f = l.memoizedState; + if (f === null && (l = l.alternate, l !== null && (f = l.memoizedState)), f !== null) return f.dehydrated; } return null; } function s(l) { if (l.tag === 31) { - var d = l.memoizedState; - if (d === null && (l = l.alternate, l !== null && (d = l.memoizedState)), d !== null) return d.dehydrated; + var f = l.memoizedState; + if (f === null && (l = l.alternate, l !== null && (f = l.memoizedState)), f !== null) return f.dehydrated; } return null; } @@ -931,12 +931,12 @@ var hze = BG((ao, so) => { throw Error(r(188)); } function u(l) { - var d = l.alternate; - if (!d) { - if (d = i(l), d === null) throw Error(r(188)); - return d !== l ? null : l; + var f = l.alternate; + if (!f) { + if (f = i(l), f === null) throw Error(r(188)); + return f !== l ? null : l; } - for (var h = l, w = d; ; ) { + for (var h = l, w = f; ; ) { var R = h.return; if (R === null) break; var M = R.alternate; @@ -950,7 +950,7 @@ var hze = BG((ao, so) => { if (R.child === M.child) { for (M = R.child; M; ) { if (M === h) return c(R), l; - if (M === w) return c(R), d; + if (M === w) return c(R), f; M = M.sibling; } throw Error(r(188)); @@ -986,13 +986,13 @@ var hze = BG((ao, so) => { if (h.alternate !== w) throw Error(r(190)); } if (h.tag !== 3) throw Error(r(188)); - return h.stateNode.current === h ? l : d; + return h.stateNode.current === h ? l : f; } - function f(l) { - var d = l.tag; - if (d === 5 || d === 26 || d === 27 || d === 6) return l; + function d(l) { + var f = l.tag; + if (f === 5 || f === 26 || f === 27 || f === 6) return l; for (l = l.child; l !== null; ) { - if (d = f(l), d !== null) return d; + if (f = d(l), f !== null) return f; l = l.sibling; } return null; @@ -1030,14 +1030,14 @@ var hze = BG((ao, so) => { case E: return (l._context.displayName || "Context") + ".Consumer"; case C: - var d = l.render; - return l = l.displayName, l || (l = d.displayName || d.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l; + var f = l.render; + return l = l.displayName, l || (l = f.displayName || f.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l; case O: - return d = l.displayName || null, d !== null ? d : j(l.type) || "Memo"; + return f = l.displayName || null, f !== null ? f : j(l.type) || "Memo"; case P: - d = l._payload, l = l._init; + f = l._payload, l = l._init; try { - return j(l(d)); + return j(l(f)); } catch { } } @@ -1055,19 +1055,19 @@ var hze = BG((ao, so) => { function G(l) { 0 > B || (l.current = Y[B], Y[B] = null, B--); } - function z(l, d) { - B++, Y[B] = l.current, l.current = d; + function z(l, f) { + B++, Y[B] = l.current, l.current = f; } var H = D(null), X = D(null), Q = D(null), ne = D(null); - function te(l, d) { - switch (z(Q, d), z(X, l), z(H, null), d.nodeType) { + function te(l, f) { + switch (z(Q, f), z(X, l), z(H, null), f.nodeType) { case 9: case 11: - l = (l = d.documentElement) && (l = l.namespaceURI) ? LN(l) : 0; + l = (l = f.documentElement) && (l = l.namespaceURI) ? LN(l) : 0; break; default: - if (l = d.tagName, d = d.namespaceURI) - d = LN(d), l = zN(d, l); + if (l = f.tagName, f = f.namespaceURI) + f = LN(f), l = zN(f, l); else switch (l) { case "svg": @@ -1087,11 +1087,11 @@ var hze = BG((ao, so) => { } function ue(l) { l.memoizedState !== null && z(ne, l); - var d = H.current, h = zN(d, l.type); - d !== h && (z(X, l), z(H, h)); + var f = H.current, h = zN(f, l.type); + f !== h && (z(X, l), z(H, h)); } function J(l) { - X.current === l && (G(H), G(X)), ne.current === l && (G(ne), Lf._currentValue = W); + X.current === l && (G(H), G(X)), ne.current === l && (G(ne), Ld._currentValue = W); } var ee, ie; function le(l) { @@ -1099,15 +1099,15 @@ var hze = BG((ao, so) => { try { throw Error(); } catch (h) { - var d = h.stack.trim().match(/\n( *(at )?)/); - ee = d && d[1] || "", ie = -1 < h.stack.indexOf(` + var f = h.stack.trim().match(/\n( *(at )?)/); + ee = f && f[1] || "", ie = -1 < h.stack.indexOf(` at`) ? " ()" : -1 < h.stack.indexOf("@") ? "@unknown:0:0" : ""; } return ` ` + ee + l + ie; } var ge = !1; - function Se(l, d) { + function Se(l, f) { if (!l || ge) return ""; ge = !0; var h = Error.prepareStackTrace; @@ -1116,7 +1116,7 @@ var hze = BG((ao, so) => { var w = { DetermineComponentFrameRoot: function() { try { - if (d) { + if (f) { var we = function() { throw Error(); }; @@ -1197,7 +1197,7 @@ var hze = BG((ao, so) => { } return (h = l ? l.displayName || l.name : "") ? le(h) : ""; } - function Me(l, d) { + function Me(l, f) { switch (l.tag) { case 26: case 27: @@ -1206,7 +1206,7 @@ var hze = BG((ao, so) => { case 16: return le("Lazy"); case 13: - return l.child !== d && d !== null ? le("Suspense Fallback") : le("Suspense"); + return l.child !== f && f !== null ? le("Suspense Fallback") : le("Suspense"); case 19: return le("SuspenseList"); case 0: @@ -1224,18 +1224,18 @@ var hze = BG((ao, so) => { } function je(l) { try { - var d = "", h = null; + var f = "", h = null; do - d += Me(l, h), h = l, l = l.return; + f += Me(l, h), h = l, l = l.return; while (l); - return d; + return f; } catch (w) { return ` Error generating stack: ` + w.message + ` ` + w.stack; } } - var ze = Object.prototype.hasOwnProperty, Ye = e.unstable_scheduleCallback, Ue = e.unstable_cancelCallback, Ne = e.unstable_shouldYield, mt = e.unstable_requestPaint, Je = e.unstable_now, Ae = e.unstable_getCurrentPriorityLevel, oe = e.unstable_ImmediatePriority, de = e.unstable_UserBlockingPriority, _e = e.unstable_NormalPriority, Ce = e.unstable_LowPriority, Oe = e.unstable_IdlePriority, He = e.log, Ot = e.unstable_setDisableYieldValue, it = null, Et = null; + var ze = Object.prototype.hasOwnProperty, Ye = e.unstable_scheduleCallback, Ue = e.unstable_cancelCallback, Ne = e.unstable_shouldYield, mt = e.unstable_requestPaint, Je = e.unstable_now, Ae = e.unstable_getCurrentPriorityLevel, oe = e.unstable_ImmediatePriority, fe = e.unstable_UserBlockingPriority, _e = e.unstable_NormalPriority, Ce = e.unstable_LowPriority, Oe = e.unstable_IdlePriority, He = e.log, Ot = e.unstable_setDisableYieldValue, it = null, Et = null; function xn(l) { if (typeof He == "function" && Ot(l), Et && typeof Et.setStrictMode == "function") try { @@ -1243,14 +1243,14 @@ Error generating stack: ` + w.message + ` } catch { } } - var Mt = Math.clz32 ? Math.clz32 : hn, De = Math.log, dt = Math.LN2; + var Mt = Math.clz32 ? Math.clz32 : hn, De = Math.log, ft = Math.LN2; function hn(l) { - return l >>>= 0, l === 0 ? 32 : 31 - (De(l) / dt | 0) | 0; + return l >>>= 0, l === 0 ? 32 : 31 - (De(l) / ft | 0) | 0; } var nr = 256, Lo = 262144, on = 4194304; function an(l) { - var d = l & 42; - if (d !== 0) return d; + var f = l & 42; + if (f !== 0) return f; switch (l & -l) { case 1: return 1; @@ -1303,25 +1303,25 @@ Error generating stack: ` + w.message + ` return l; } } - function ui(l, d, h) { + function ui(l, f, h) { var w = l.pendingLanes; if (w === 0) return 0; var R = 0, M = l.suspendedLanes, q = l.pingedLanes; l = l.warmLanes; var Z = w & 134217727; - return Z !== 0 ? (w = Z & ~M, w !== 0 ? R = an(w) : (q &= Z, q !== 0 ? R = an(q) : h || (h = Z & ~l, h !== 0 && (R = an(h))))) : (Z = w & ~M, Z !== 0 ? R = an(Z) : q !== 0 ? R = an(q) : h || (h = w & ~l, h !== 0 && (R = an(h)))), R === 0 ? 0 : d !== 0 && d !== R && (d & M) === 0 && (M = R & -R, h = d & -d, M >= h || M === 32 && (h & 4194048) !== 0) ? d : R; + return Z !== 0 ? (w = Z & ~M, w !== 0 ? R = an(w) : (q &= Z, q !== 0 ? R = an(q) : h || (h = Z & ~l, h !== 0 && (R = an(h))))) : (Z = w & ~M, Z !== 0 ? R = an(Z) : q !== 0 ? R = an(q) : h || (h = w & ~l, h !== 0 && (R = an(h)))), R === 0 ? 0 : f !== 0 && f !== R && (f & M) === 0 && (M = R & -R, h = f & -f, M >= h || M === 32 && (h & 4194048) !== 0) ? f : R; } - function yo(l, d) { - return (l.pendingLanes & ~(l.suspendedLanes & ~l.pingedLanes) & d) === 0; + function yo(l, f) { + return (l.pendingLanes & ~(l.suspendedLanes & ~l.pingedLanes) & f) === 0; } - function Gr(l, d) { + function Gr(l, f) { switch (l) { case 1: case 2: case 4: case 8: case 64: - return d + 250; + return f + 250; case 16: case 32: case 128: @@ -1339,7 +1339,7 @@ Error generating stack: ` + w.message + ` case 524288: case 1048576: case 2097152: - return d + 5e3; + return f + 5e3; case 4194304: case 8388608: case 16777216: @@ -1359,14 +1359,14 @@ Error generating stack: ` + w.message + ` var l = on; return on <<= 1, (on & 62914560) === 0 && (on = 4194304), l; } - function Yd(l) { - for (var d = [], h = 0; 31 > h; h++) d.push(l); - return d; + function Xf(l) { + for (var f = [], h = 0; 31 > h; h++) f.push(l); + return f; } - function bl(l, d) { - l.pendingLanes |= d, d !== 268435456 && (l.suspendedLanes = 0, l.pingedLanes = 0, l.warmLanes = 0); + function bl(l, f) { + l.pendingLanes |= f, f !== 268435456 && (l.suspendedLanes = 0, l.pingedLanes = 0, l.warmLanes = 0); } - function V1(l, d, h, w, R, M) { + function V1(l, f, h, w, R, M) { var q = l.pendingLanes; l.pendingLanes = h, l.suspendedLanes = 0, l.pingedLanes = 0, l.warmLanes = 0, l.expiredLanes &= h, l.entangledLanes &= h, l.errorRecoveryDisabledLanes &= h, l.shellSuspendCounter = 0; var Z = l.entanglements, re = l.expirationTimes, pe = l.hiddenUpdates; @@ -1381,25 +1381,25 @@ Error generating stack: ` + w.message + ` } h &= ~we; } - w !== 0 && Cm(l, w, 0), M !== 0 && R === 0 && l.tag !== 0 && (l.suspendedLanes |= M & ~(q & ~d)); + w !== 0 && Cm(l, w, 0), M !== 0 && R === 0 && l.tag !== 0 && (l.suspendedLanes |= M & ~(q & ~f)); } - function Cm(l, d, h) { - l.pendingLanes |= d, l.suspendedLanes &= ~d; - var w = 31 - Mt(d); - l.entangledLanes |= d, l.entanglements[w] = l.entanglements[w] | 1073741824 | h & 261930; + function Cm(l, f, h) { + l.pendingLanes |= f, l.suspendedLanes &= ~f; + var w = 31 - Mt(f); + l.entangledLanes |= f, l.entanglements[w] = l.entanglements[w] | 1073741824 | h & 261930; } - function km(l, d) { - var h = l.entangledLanes |= d; + function km(l, f) { + var h = l.entangledLanes |= f; for (l = l.entanglements; h; ) { var w = 31 - Mt(h), R = 1 << w; - R & d | l[w] & d && (l[w] |= d), h &= ~R; + R & f | l[w] & f && (l[w] |= f), h &= ~R; } } - function Tm(l, d) { - var h = d & -d; - return h = (h & 42) !== 0 ? 1 : Xd(h), (h & (l.suspendedLanes | d)) !== 0 ? 0 : h; + function Tm(l, f) { + var h = f & -f; + return h = (h & 42) !== 0 ? 1 : Zf(h), (h & (l.suspendedLanes | f)) !== 0 ? 0 : h; } - function Xd(l) { + function Zf(l) { switch (l) { case 2: l = 1; @@ -1438,36 +1438,36 @@ Error generating stack: ` + w.message + ` } return l; } - function Zd(l) { + function Qf(l) { return l &= -l, 2 < l ? 8 < l ? (l & 134217727) !== 0 ? 32 : 268435456 : 8 : 2; } function Am() { var l = K.p; return l !== 0 ? l : (l = window.event, l === void 0 ? 32 : cP(l.type)); } - function Rm(l, d) { + function Rm(l, f) { var h = K.p; try { - return K.p = l, d(); + return K.p = l, f(); } finally { K.p = h; } } - var di = Math.random().toString(36).slice(2), Wn = "__reactFiber$" + di, pr = "__reactProps$" + di, ia = "__reactContainer$" + di, Fc = "__reactEvents$" + di, Om = "__reactListeners$" + di, H1 = "__reactHandles$" + di, Mm = "__reactResources$" + di, xl = "__reactMarker$" + di; - function Qd(l) { + var fi = Math.random().toString(36).slice(2), Wn = "__reactFiber$" + fi, pr = "__reactProps$" + fi, ia = "__reactContainer$" + fi, Fc = "__reactEvents$" + fi, Om = "__reactListeners$" + fi, H1 = "__reactHandles$" + fi, Mm = "__reactResources$" + fi, xl = "__reactMarker$" + fi; + function Jf(l) { delete l[Wn], delete l[pr], delete l[Fc], delete l[Om], delete l[H1]; } function ls(l) { - var d = l[Wn]; - if (d) return d; + var f = l[Wn]; + if (f) return f; for (var h = l.parentNode; h; ) { - if (d = h[ia] || h[Wn]) { - if (h = d.alternate, d.child !== null || h !== null && h.child !== null) + if (f = h[ia] || h[Wn]) { + if (h = f.alternate, f.child !== null || h !== null && h.child !== null) for (l = GN(l); l !== null; ) { if (h = l[Wn]) return h; l = GN(l); } - return d; + return f; } l = h, h = l.parentNode; } @@ -1475,73 +1475,73 @@ Error generating stack: ` + w.message + ` } function cs(l) { if (l = l[Wn] || l[ia]) { - var d = l.tag; - if (d === 5 || d === 6 || d === 13 || d === 31 || d === 26 || d === 27 || d === 3) + var f = l.tag; + if (f === 5 || f === 6 || f === 13 || f === 31 || f === 26 || f === 27 || f === 3) return l; } return null; } function us(l) { - var d = l.tag; - if (d === 5 || d === 26 || d === 27 || d === 6) return l.stateNode; + var f = l.tag; + if (f === 5 || f === 26 || f === 27 || f === 6) return l.stateNode; throw Error(r(33)); } - function ds(l) { - var d = l[Mm]; - return d || (d = l[Mm] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), d; + function fs(l) { + var f = l[Mm]; + return f || (f = l[Mm] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), f; } function jn(l) { l[xl] = !0; } var Nm = /* @__PURE__ */ new Set(), Pm = {}; - function aa(l, d) { - fs(l, d), fs(l + "Capture", d); + function aa(l, f) { + ds(l, f), ds(l + "Capture", f); } - function fs(l, d) { - for (Pm[l] = d, l = 0; l < d.length; l++) - Nm.add(d[l]); + function ds(l, f) { + for (Pm[l] = f, l = 0; l < f.length; l++) + Nm.add(f[l]); } var q1 = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" - ), Jd = {}, Im = {}; + ), ed = {}, Im = {}; function W1(l) { - return ze.call(Im, l) ? !0 : ze.call(Jd, l) ? !1 : q1.test(l) ? Im[l] = !0 : (Jd[l] = !0, !1); + return ze.call(Im, l) ? !0 : ze.call(ed, l) ? !1 : q1.test(l) ? Im[l] = !0 : (ed[l] = !0, !1); } - function Lc(l, d, h) { - if (W1(d)) - if (h === null) l.removeAttribute(d); + function Lc(l, f, h) { + if (W1(f)) + if (h === null) l.removeAttribute(f); else { switch (typeof h) { case "undefined": case "function": case "symbol": - l.removeAttribute(d); + l.removeAttribute(f); return; case "boolean": - var w = d.toLowerCase().slice(0, 5); + var w = f.toLowerCase().slice(0, 5); if (w !== "data-" && w !== "aria-") { - l.removeAttribute(d); + l.removeAttribute(f); return; } } - l.setAttribute(d, "" + h); + l.setAttribute(f, "" + h); } } - function zc(l, d, h) { - if (h === null) l.removeAttribute(d); + function zc(l, f, h) { + if (h === null) l.removeAttribute(f); else { switch (typeof h) { case "undefined": case "function": case "symbol": case "boolean": - l.removeAttribute(d); + l.removeAttribute(f); return; } - l.setAttribute(d, "" + h); + l.setAttribute(f, "" + h); } } - function zo(l, d, h, w) { + function zo(l, f, h, w) { if (w === null) l.removeAttribute(h); else { switch (typeof w) { @@ -1552,7 +1552,7 @@ Error generating stack: ` + w.message + ` l.removeAttribute(h); return; } - l.setAttributeNS(d, h, "" + w); + l.setAttributeNS(f, h, "" + w); } } function Mr(l) { @@ -1570,17 +1570,17 @@ Error generating stack: ` + w.message + ` } } function $m(l) { - var d = l.type; - return (l = l.nodeName) && l.toLowerCase() === "input" && (d === "checkbox" || d === "radio"); + var f = l.type; + return (l = l.nodeName) && l.toLowerCase() === "input" && (f === "checkbox" || f === "radio"); } - function G1(l, d, h) { + function G1(l, f, h) { var w = Object.getOwnPropertyDescriptor( l.constructor.prototype, - d + f ); - if (!l.hasOwnProperty(d) && typeof w < "u" && typeof w.get == "function" && typeof w.set == "function") { + if (!l.hasOwnProperty(f) && typeof w < "u" && typeof w.get == "function" && typeof w.set == "function") { var R = w.get, M = w.set; - return Object.defineProperty(l, d, { + return Object.defineProperty(l, f, { configurable: !0, get: function() { return R.call(this); @@ -1588,7 +1588,7 @@ Error generating stack: ` + w.message + ` set: function(q) { h = "" + q, M.call(this, q); } - }), Object.defineProperty(l, d, { + }), Object.defineProperty(l, f, { enumerable: w.enumerable }), { getValue: function() { @@ -1598,27 +1598,27 @@ Error generating stack: ` + w.message + ` h = "" + q; }, stopTracking: function() { - l._valueTracker = null, delete l[d]; + l._valueTracker = null, delete l[f]; } }; } } function Bc(l) { if (!l._valueTracker) { - var d = $m(l) ? "checked" : "value"; + var f = $m(l) ? "checked" : "value"; l._valueTracker = G1( l, - d, - "" + l[d] + f, + "" + l[f] ); } } function jm(l) { if (!l) return !1; - var d = l._valueTracker; - if (!d) return !0; - var h = d.getValue(), w = ""; - return l && (w = $m(l) ? l.checked ? "true" : "false" : l.value), l = w, l !== h ? (d.setValue(l), !0) : !1; + var f = l._valueTracker; + if (!f) return !0; + var h = f.getValue(), w = ""; + return l && (w = $m(l) ? l.checked ? "true" : "false" : l.value), l = w, l !== h ? (f.setValue(l), !0) : !1; } function wl(l) { if (l = l || (typeof document < "u" ? document : void 0), typeof l > "u") return null; @@ -1632,54 +1632,54 @@ Error generating stack: ` + w.message + ` function Nr(l) { return l.replace( K1, - function(d) { - return "\\" + d.charCodeAt(0).toString(16) + " "; + function(f) { + return "\\" + f.charCodeAt(0).toString(16) + " "; } ); } - function Sl(l, d, h, w, R, M, q, Z) { - l.name = "", q != null && typeof q != "function" && typeof q != "symbol" && typeof q != "boolean" ? l.type = q : l.removeAttribute("type"), d != null ? q === "number" ? (d === 0 && l.value === "" || l.value != d) && (l.value = "" + Mr(d)) : l.value !== "" + Mr(d) && (l.value = "" + Mr(d)) : q !== "submit" && q !== "reset" || l.removeAttribute("value"), d != null ? ef(l, q, Mr(d)) : h != null ? ef(l, q, Mr(h)) : w != null && l.removeAttribute("value"), R == null && M != null && (l.defaultChecked = !!M), R != null && (l.checked = R && typeof R != "function" && typeof R != "symbol"), Z != null && typeof Z != "function" && typeof Z != "symbol" && typeof Z != "boolean" ? l.name = "" + Mr(Z) : l.removeAttribute("name"); + function Sl(l, f, h, w, R, M, q, Z) { + l.name = "", q != null && typeof q != "function" && typeof q != "symbol" && typeof q != "boolean" ? l.type = q : l.removeAttribute("type"), f != null ? q === "number" ? (f === 0 && l.value === "" || l.value != f) && (l.value = "" + Mr(f)) : l.value !== "" + Mr(f) && (l.value = "" + Mr(f)) : q !== "submit" && q !== "reset" || l.removeAttribute("value"), f != null ? td(l, q, Mr(f)) : h != null ? td(l, q, Mr(h)) : w != null && l.removeAttribute("value"), R == null && M != null && (l.defaultChecked = !!M), R != null && (l.checked = R && typeof R != "function" && typeof R != "symbol"), Z != null && typeof Z != "function" && typeof Z != "symbol" && typeof Z != "boolean" ? l.name = "" + Mr(Z) : l.removeAttribute("name"); } - function Dm(l, d, h, w, R, M, q, Z) { - if (M != null && typeof M != "function" && typeof M != "symbol" && typeof M != "boolean" && (l.type = M), d != null || h != null) { - if (!(M !== "submit" && M !== "reset" || d != null)) { + function Dm(l, f, h, w, R, M, q, Z) { + if (M != null && typeof M != "function" && typeof M != "symbol" && typeof M != "boolean" && (l.type = M), f != null || h != null) { + if (!(M !== "submit" && M !== "reset" || f != null)) { Bc(l); return; } - h = h != null ? "" + Mr(h) : "", d = d != null ? "" + Mr(d) : h, Z || d === l.value || (l.value = d), l.defaultValue = d; + h = h != null ? "" + Mr(h) : "", f = f != null ? "" + Mr(f) : h, Z || f === l.value || (l.value = f), l.defaultValue = f; } w = w ?? R, w = typeof w != "function" && typeof w != "symbol" && !!w, l.checked = Z ? l.checked : !!w, l.defaultChecked = !!w, q != null && typeof q != "function" && typeof q != "symbol" && typeof q != "boolean" && (l.name = q), Bc(l); } - function ef(l, d, h) { - d === "number" && wl(l.ownerDocument) === l || l.defaultValue === "" + h || (l.defaultValue = "" + h); + function td(l, f, h) { + f === "number" && wl(l.ownerDocument) === l || l.defaultValue === "" + h || (l.defaultValue = "" + h); } - function sa(l, d, h, w) { - if (l = l.options, d) { - d = {}; + function sa(l, f, h, w) { + if (l = l.options, f) { + f = {}; for (var R = 0; R < h.length; R++) - d["$" + h[R]] = !0; + f["$" + h[R]] = !0; for (h = 0; h < l.length; h++) - R = d.hasOwnProperty("$" + l[h].value), l[h].selected !== R && (l[h].selected = R), R && w && (l[h].defaultSelected = !0); + R = f.hasOwnProperty("$" + l[h].value), l[h].selected !== R && (l[h].selected = R), R && w && (l[h].defaultSelected = !0); } else { - for (h = "" + Mr(h), d = null, R = 0; R < l.length; R++) { + for (h = "" + Mr(h), f = null, R = 0; R < l.length; R++) { if (l[R].value === h) { l[R].selected = !0, w && (l[R].defaultSelected = !0); return; } - d !== null || l[R].disabled || (d = l[R]); + f !== null || l[R].disabled || (f = l[R]); } - d !== null && (d.selected = !0); + f !== null && (f.selected = !0); } } - function IR(l, d, h) { - if (d != null && (d = "" + Mr(d), d !== l.value && (l.value = d), h == null)) { - l.defaultValue !== d && (l.defaultValue = d); + function IR(l, f, h) { + if (f != null && (f = "" + Mr(f), f !== l.value && (l.value = f), h == null)) { + l.defaultValue !== f && (l.defaultValue = f); return; } l.defaultValue = h != null ? "" + Mr(h) : ""; } - function $R(l, d, h, w) { - if (d == null) { + function $R(l, f, h, w) { + if (f == null) { if (w != null) { if (h != null) throw Error(r(92)); if (V(w)) { @@ -1688,40 +1688,40 @@ Error generating stack: ` + w.message + ` } h = w; } - h == null && (h = ""), d = h; + h == null && (h = ""), f = h; } - h = Mr(d), l.defaultValue = h, w = l.textContent, w === h && w !== "" && w !== null && (l.value = w), Bc(l); + h = Mr(f), l.defaultValue = h, w = l.textContent, w === h && w !== "" && w !== null && (l.value = w), Bc(l); } - function Uc(l, d) { - if (d) { + function Uc(l, f) { + if (f) { var h = l.firstChild; if (h && h === l.lastChild && h.nodeType === 3) { - h.nodeValue = d; + h.nodeValue = f; return; } } - l.textContent = d; + l.textContent = f; } var Iq = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( " " ) ); - function jR(l, d, h) { - var w = d.indexOf("--") === 0; - h == null || typeof h == "boolean" || h === "" ? w ? l.setProperty(d, "") : d === "float" ? l.cssFloat = "" : l[d] = "" : w ? l.setProperty(d, h) : typeof h != "number" || h === 0 || Iq.has(d) ? d === "float" ? l.cssFloat = h : l[d] = ("" + h).trim() : l[d] = h + "px"; + function jR(l, f, h) { + var w = f.indexOf("--") === 0; + h == null || typeof h == "boolean" || h === "" ? w ? l.setProperty(f, "") : f === "float" ? l.cssFloat = "" : l[f] = "" : w ? l.setProperty(f, h) : typeof h != "number" || h === 0 || Iq.has(f) ? f === "float" ? l.cssFloat = h : l[f] = ("" + h).trim() : l[f] = h + "px"; } - function DR(l, d, h) { - if (d != null && typeof d != "object") + function DR(l, f, h) { + if (f != null && typeof f != "object") throw Error(r(62)); if (l = l.style, h != null) { for (var w in h) - !h.hasOwnProperty(w) || d != null && d.hasOwnProperty(w) || (w.indexOf("--") === 0 ? l.setProperty(w, "") : w === "float" ? l.cssFloat = "" : l[w] = ""); - for (var R in d) - w = d[R], d.hasOwnProperty(R) && h[R] !== w && jR(l, R, w); + !h.hasOwnProperty(w) || f != null && f.hasOwnProperty(w) || (w.indexOf("--") === 0 ? l.setProperty(w, "") : w === "float" ? l.cssFloat = "" : l[w] = ""); + for (var R in f) + w = f[R], f.hasOwnProperty(R) && h[R] !== w && jR(l, R, w); } else - for (var M in d) - d.hasOwnProperty(M) && jR(l, M, d[M]); + for (var M in f) + f.hasOwnProperty(M) && jR(l, M, f[M]); } function Y1(l) { if (l.indexOf("-") === -1) return !1; @@ -1830,10 +1830,10 @@ Error generating stack: ` + w.message + ` } var Vc = null, Hc = null; function FR(l) { - var d = cs(l); - if (d && (l = d.stateNode)) { + var f = cs(l); + if (f && (l = f.stateNode)) { var h = l[pr] || null; - e: switch (l = d.stateNode, d.type) { + e: switch (l = f.stateNode, f.type) { case "input": if (Sl( l, @@ -1844,14 +1844,14 @@ Error generating stack: ` + w.message + ` h.defaultChecked, h.type, h.name - ), d = h.name, h.type === "radio" && d != null) { + ), f = h.name, h.type === "radio" && f != null) { for (h = l; h.parentNode; ) h = h.parentNode; for (h = h.querySelectorAll( 'input[name="' + Nr( - "" + d + "" + f ) + '"][type="radio"]' - ), d = 0; d < h.length; d++) { - var w = h[d]; + ), f = 0; f < h.length; f++) { + var w = h[f]; if (w !== l && w.form === l.form) { var R = w[pr] || null; if (!R) throw Error(r(90)); @@ -1867,37 +1867,37 @@ Error generating stack: ` + w.message + ` ); } } - for (d = 0; d < h.length; d++) - w = h[d], w.form === l.form && jm(w); + for (f = 0; f < h.length; f++) + w = h[f], w.form === l.form && jm(w); } break e; case "textarea": IR(l, h.value, h.defaultValue); break e; case "select": - d = h.value, d != null && sa(l, !!h.multiple, d, !1); + f = h.value, f != null && sa(l, !!h.multiple, f, !1); } } } var Q1 = !1; - function LR(l, d, h) { - if (Q1) return l(d, h); + function LR(l, f, h) { + if (Q1) return l(f, h); Q1 = !0; try { - var w = l(d); + var w = l(f); return w; } finally { - if (Q1 = !1, (Vc !== null || Hc !== null) && (Cg(), Vc && (d = Vc, l = Hc, Hc = Vc = null, FR(d), l))) - for (d = 0; d < l.length; d++) FR(l[d]); + if (Q1 = !1, (Vc !== null || Hc !== null) && (Cg(), Vc && (f = Vc, l = Hc, Hc = Vc = null, FR(f), l))) + for (f = 0; f < l.length; f++) FR(l[f]); } } - function tf(l, d) { + function nd(l, f) { var h = l.stateNode; if (h === null) return null; var w = h[pr] || null; if (w === null) return null; - h = w[d]; - e: switch (d) { + h = w[f]; + e: switch (f) { case "onClick": case "onClickCapture": case "onDoubleClick": @@ -1917,34 +1917,34 @@ Error generating stack: ` + w.message + ` if (l) return null; if (h && typeof h != "function") throw Error( - r(231, d, typeof h) + r(231, f, typeof h) ); return h; } var ca = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), J1 = !1; if (ca) try { - var nf = {}; - Object.defineProperty(nf, "passive", { + var rd = {}; + Object.defineProperty(rd, "passive", { get: function() { J1 = !0; } - }), window.addEventListener("test", nf, nf), window.removeEventListener("test", nf, nf); + }), window.addEventListener("test", rd, rd), window.removeEventListener("test", rd, rd); } catch { J1 = !1; } var ps = null, ex = null, Lm = null; function zR() { if (Lm) return Lm; - var l, d = ex, h = d.length, w, R = "value" in ps ? ps.value : ps.textContent, M = R.length; - for (l = 0; l < h && d[l] === R[l]; l++) ; + var l, f = ex, h = f.length, w, R = "value" in ps ? ps.value : ps.textContent, M = R.length; + for (l = 0; l < h && f[l] === R[l]; l++) ; var q = h - l; - for (w = 1; w <= q && d[h - w] === R[M - w]; w++) ; + for (w = 1; w <= q && f[h - w] === R[M - w]; w++) ; return Lm = R.slice(l, 1 < w ? 1 - w : void 0); } function zm(l) { - var d = l.keyCode; - return "charCode" in l ? (l = l.charCode, l === 0 && d === 13 && (l = 13)) : l = d, l === 10 && (l = 13), 32 <= l || l === 13 ? l : 0; + var f = l.keyCode; + return "charCode" in l ? (l = l.charCode, l === 0 && f === 13 && (l = 13)) : l = f, l === 10 && (l = 13), 32 <= l || l === 13 ? l : 0; } function Bm() { return !0; @@ -1953,13 +1953,13 @@ Error generating stack: ` + w.message + ` return !1; } function Pr(l) { - function d(h, w, R, M, q) { + function f(h, w, R, M, q) { this._reactName = h, this._targetInst = R, this.type = w, this.nativeEvent = M, this.target = q, this.currentTarget = null; for (var Z in l) l.hasOwnProperty(Z) && (h = l[Z], this[Z] = h ? h(M) : M[Z]); return this.isDefaultPrevented = (M.defaultPrevented != null ? M.defaultPrevented : M.returnValue === !1) ? Bm : BR, this.isPropagationStopped = BR, this; } - return p(d.prototype, { + return p(f.prototype, { preventDefault: function() { this.defaultPrevented = !0; var h = this.nativeEvent; @@ -1972,7 +1972,7 @@ Error generating stack: ` + w.message + ` persist: function() { }, isPersistent: Bm - }), d; + }), f; } var _l = { eventPhase: 0, @@ -1983,7 +1983,7 @@ Error generating stack: ` + w.message + ` }, defaultPrevented: 0, isTrusted: 0 - }, Um = Pr(_l), rf = p({}, _l, { view: 0, detail: 0 }), Dq = Pr(rf), tx, nx, of, Vm = p({}, rf, { + }, Um = Pr(_l), od = p({}, _l, { view: 0, detail: 0 }), Dq = Pr(od), tx, nx, id, Vm = p({}, od, { screenX: 0, screenY: 0, clientX: 0, @@ -2001,12 +2001,12 @@ Error generating stack: ` + w.message + ` return l.relatedTarget === void 0 ? l.fromElement === l.srcElement ? l.toElement : l.fromElement : l.relatedTarget; }, movementX: function(l) { - return "movementX" in l ? l.movementX : (l !== of && (of && l.type === "mousemove" ? (tx = l.screenX - of.screenX, nx = l.screenY - of.screenY) : nx = tx = 0, of = l), tx); + return "movementX" in l ? l.movementX : (l !== id && (id && l.type === "mousemove" ? (tx = l.screenX - id.screenX, nx = l.screenY - id.screenY) : nx = tx = 0, id = l), tx); }, movementY: function(l) { return "movementY" in l ? l.movementY : nx; } - }), UR = Pr(Vm), Fq = p({}, Vm, { dataTransfer: 0 }), Lq = Pr(Fq), zq = p({}, rf, { relatedTarget: 0 }), rx = Pr(zq), Bq = p({}, _l, { + }), UR = Pr(Vm), Fq = p({}, Vm, { dataTransfer: 0 }), Lq = Pr(Fq), zq = p({}, od, { relatedTarget: 0 }), rx = Pr(zq), Bq = p({}, _l, { animationName: 0, elapsedTime: 0, pseudoElement: 0 @@ -2071,17 +2071,17 @@ Error generating stack: ` + w.message + ` Shift: "shiftKey" }; function Yq(l) { - var d = this.nativeEvent; - return d.getModifierState ? d.getModifierState(l) : (l = Kq[l]) ? !!d[l] : !1; + var f = this.nativeEvent; + return f.getModifierState ? f.getModifierState(l) : (l = Kq[l]) ? !!f[l] : !1; } function ox() { return Yq; } - var Xq = p({}, rf, { + var Xq = p({}, od, { key: function(l) { if (l.key) { - var d = Wq[l.key] || l.key; - if (d !== "Unidentified") return d; + var f = Wq[l.key] || l.key; + if (f !== "Unidentified") return f; } return l.type === "keypress" ? (l = zm(l), l === 13 ? "Enter" : String.fromCharCode(l)) : l.type === "keydown" || l.type === "keyup" ? Gq[l.keyCode] || "Unidentified" : ""; }, @@ -2114,7 +2114,7 @@ Error generating stack: ` + w.message + ` twist: 0, pointerType: 0, isPrimary: 0 - }), HR = Pr(Qq), Jq = p({}, rf, { + }), HR = Pr(Qq), Jq = p({}, od, { touches: 0, targetTouches: 0, changedTouches: 0, @@ -2139,15 +2139,15 @@ Error generating stack: ` + w.message + ` }), oW = Pr(rW), iW = p({}, _l, { newState: 0, oldState: 0 - }), aW = Pr(iW), sW = [9, 13, 27, 32], ix = ca && "CompositionEvent" in window, af = null; - ca && "documentMode" in document && (af = document.documentMode); - var lW = ca && "TextEvent" in window && !af, qR = ca && (!ix || af && 8 < af && 11 >= af), WR = " ", GR = !1; - function KR(l, d) { + }), aW = Pr(iW), sW = [9, 13, 27, 32], ix = ca && "CompositionEvent" in window, ad = null; + ca && "documentMode" in document && (ad = document.documentMode); + var lW = ca && "TextEvent" in window && !ad, qR = ca && (!ix || ad && 8 < ad && 11 >= ad), WR = " ", GR = !1; + function KR(l, f) { switch (l) { case "keyup": - return sW.indexOf(d.keyCode) !== -1; + return sW.indexOf(f.keyCode) !== -1; case "keydown": - return d.keyCode !== 229; + return f.keyCode !== 229; case "keypress": case "mousedown": case "focusout": @@ -2160,38 +2160,38 @@ Error generating stack: ` + w.message + ` return l = l.detail, typeof l == "object" && "data" in l ? l.data : null; } var qc = !1; - function cW(l, d) { + function cW(l, f) { switch (l) { case "compositionend": - return YR(d); + return YR(f); case "keypress": - return d.which !== 32 ? null : (GR = !0, WR); + return f.which !== 32 ? null : (GR = !0, WR); case "textInput": - return l = d.data, l === WR && GR ? null : l; + return l = f.data, l === WR && GR ? null : l; default: return null; } } - function uW(l, d) { + function uW(l, f) { if (qc) - return l === "compositionend" || !ix && KR(l, d) ? (l = zR(), Lm = ex = ps = null, qc = !1, l) : null; + return l === "compositionend" || !ix && KR(l, f) ? (l = zR(), Lm = ex = ps = null, qc = !1, l) : null; switch (l) { case "paste": return null; case "keypress": - if (!(d.ctrlKey || d.altKey || d.metaKey) || d.ctrlKey && d.altKey) { - if (d.char && 1 < d.char.length) - return d.char; - if (d.which) return String.fromCharCode(d.which); + if (!(f.ctrlKey || f.altKey || f.metaKey) || f.ctrlKey && f.altKey) { + if (f.char && 1 < f.char.length) + return f.char; + if (f.which) return String.fromCharCode(f.which); } return null; case "compositionend": - return qR && d.locale !== "ko" ? null : d.data; + return qR && f.locale !== "ko" ? null : f.data; default: return null; } } - var dW = { + var fW = { color: !0, date: !0, datetime: !0, @@ -2209,28 +2209,28 @@ Error generating stack: ` + w.message + ` week: !0 }; function XR(l) { - var d = l && l.nodeName && l.nodeName.toLowerCase(); - return d === "input" ? !!dW[l.type] : d === "textarea"; + var f = l && l.nodeName && l.nodeName.toLowerCase(); + return f === "input" ? !!fW[l.type] : f === "textarea"; } - function ZR(l, d, h, w) { - Vc ? Hc ? Hc.push(w) : Hc = [w] : Vc = w, d = Ng(d, "onChange"), 0 < d.length && (h = new Um( + function ZR(l, f, h, w) { + Vc ? Hc ? Hc.push(w) : Hc = [w] : Vc = w, f = Ng(f, "onChange"), 0 < f.length && (h = new Um( "onChange", "change", null, h, w - ), l.push({ event: h, listeners: d })); + ), l.push({ event: h, listeners: f })); } - var sf = null, lf = null; - function fW(l) { + var sd = null, ld = null; + function dW(l) { PN(l, 0); } function Hm(l) { - var d = us(l); - if (jm(d)) return l; + var f = us(l); + if (jm(f)) return l; } - function QR(l, d) { - if (l === "change") return d; + function QR(l, f) { + if (l === "change") return f; } var JR = !1; if (ca) { @@ -2246,46 +2246,46 @@ Error generating stack: ` + w.message + ` JR = ax && (!document.documentMode || 9 < document.documentMode); } function tO() { - sf && (sf.detachEvent("onpropertychange", nO), lf = sf = null); + sd && (sd.detachEvent("onpropertychange", nO), ld = sd = null); } function nO(l) { - if (l.propertyName === "value" && Hm(lf)) { - var d = []; + if (l.propertyName === "value" && Hm(ld)) { + var f = []; ZR( - d, - lf, + f, + ld, l, Z1(l) - ), LR(fW, d); + ), LR(dW, f); } } - function pW(l, d, h) { - l === "focusin" ? (tO(), sf = d, lf = h, sf.attachEvent("onpropertychange", nO)) : l === "focusout" && tO(); + function pW(l, f, h) { + l === "focusin" ? (tO(), sd = f, ld = h, sd.attachEvent("onpropertychange", nO)) : l === "focusout" && tO(); } function hW(l) { if (l === "selectionchange" || l === "keyup" || l === "keydown") - return Hm(lf); + return Hm(ld); } - function mW(l, d) { - if (l === "click") return Hm(d); + function mW(l, f) { + if (l === "click") return Hm(f); } - function gW(l, d) { + function gW(l, f) { if (l === "input" || l === "change") - return Hm(d); + return Hm(f); } - function yW(l, d) { - return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d; + function yW(l, f) { + return l === f && (l !== 0 || 1 / l === 1 / f) || l !== l && f !== f; } var Kr = typeof Object.is == "function" ? Object.is : yW; - function cf(l, d) { - if (Kr(l, d)) return !0; - if (typeof l != "object" || l === null || typeof d != "object" || d === null) + function cd(l, f) { + if (Kr(l, f)) return !0; + if (typeof l != "object" || l === null || typeof f != "object" || f === null) return !1; - var h = Object.keys(l), w = Object.keys(d); + var h = Object.keys(l), w = Object.keys(f); if (h.length !== w.length) return !1; for (w = 0; w < h.length; w++) { var R = h[w]; - if (!ze.call(d, R) || !Kr(l[R], d[R])) + if (!ze.call(f, R) || !Kr(l[R], f[R])) return !1; } return !0; @@ -2294,13 +2294,13 @@ Error generating stack: ` + w.message + ` for (; l && l.firstChild; ) l = l.firstChild; return l; } - function oO(l, d) { + function oO(l, f) { var h = rO(l); l = 0; for (var w; h; ) { if (h.nodeType === 3) { - if (w = l + h.textContent.length, l <= d && w >= d) - return { node: h, offset: d - l }; + if (w = l + h.textContent.length, l <= f && w >= f) + return { node: h, offset: f - l }; l = w; } e: { @@ -2316,46 +2316,46 @@ Error generating stack: ` + w.message + ` h = rO(h); } } - function iO(l, d) { - return l && d ? l === d ? !0 : l && l.nodeType === 3 ? !1 : d && d.nodeType === 3 ? iO(l, d.parentNode) : "contains" in l ? l.contains(d) : l.compareDocumentPosition ? !!(l.compareDocumentPosition(d) & 16) : !1 : !1; + function iO(l, f) { + return l && f ? l === f ? !0 : l && l.nodeType === 3 ? !1 : f && f.nodeType === 3 ? iO(l, f.parentNode) : "contains" in l ? l.contains(f) : l.compareDocumentPosition ? !!(l.compareDocumentPosition(f) & 16) : !1 : !1; } function aO(l) { l = l != null && l.ownerDocument != null && l.ownerDocument.defaultView != null ? l.ownerDocument.defaultView : window; - for (var d = wl(l.document); d instanceof l.HTMLIFrameElement; ) { + for (var f = wl(l.document); f instanceof l.HTMLIFrameElement; ) { try { - var h = typeof d.contentWindow.location.href == "string"; + var h = typeof f.contentWindow.location.href == "string"; } catch { h = !1; } - if (h) l = d.contentWindow; + if (h) l = f.contentWindow; else break; - d = wl(l.document); + f = wl(l.document); } - return d; + return f; } function lx(l) { - var d = l && l.nodeName && l.nodeName.toLowerCase(); - return d && (d === "input" && (l.type === "text" || l.type === "search" || l.type === "tel" || l.type === "url" || l.type === "password") || d === "textarea" || l.contentEditable === "true"); + var f = l && l.nodeName && l.nodeName.toLowerCase(); + return f && (f === "input" && (l.type === "text" || l.type === "search" || l.type === "tel" || l.type === "url" || l.type === "password") || f === "textarea" || l.contentEditable === "true"); } - var vW = ca && "documentMode" in document && 11 >= document.documentMode, Wc = null, cx = null, uf = null, ux = !1; - function sO(l, d, h) { + var vW = ca && "documentMode" in document && 11 >= document.documentMode, Wc = null, cx = null, ud = null, ux = !1; + function sO(l, f, h) { var w = h.window === h ? h.document : h.nodeType === 9 ? h : h.ownerDocument; ux || Wc == null || Wc !== wl(w) || (w = Wc, "selectionStart" in w && lx(w) ? w = { start: w.selectionStart, end: w.selectionEnd } : (w = (w.ownerDocument && w.ownerDocument.defaultView || window).getSelection(), w = { anchorNode: w.anchorNode, anchorOffset: w.anchorOffset, focusNode: w.focusNode, focusOffset: w.focusOffset - }), uf && cf(uf, w) || (uf = w, w = Ng(cx, "onSelect"), 0 < w.length && (d = new Um( + }), ud && cd(ud, w) || (ud = w, w = Ng(cx, "onSelect"), 0 < w.length && (f = new Um( "onSelect", "select", null, - d, + f, h - ), l.push({ event: d, listeners: w }), d.target = Wc))); + ), l.push({ event: f, listeners: w }), f.target = Wc))); } - function El(l, d) { + function El(l, f) { var h = {}; - return h[l.toLowerCase()] = d.toLowerCase(), h["Webkit" + l] = "webkit" + d, h["Moz" + l] = "moz" + d, h; + return h[l.toLowerCase()] = f.toLowerCase(), h["Webkit" + l] = "webkit" + f, h["Moz" + l] = "moz" + f, h; } var Gc = { animationend: El("Animation", "AnimationEnd"), @@ -2365,33 +2365,33 @@ Error generating stack: ` + w.message + ` transitionstart: El("Transition", "TransitionStart"), transitioncancel: El("Transition", "TransitionCancel"), transitionend: El("Transition", "TransitionEnd") - }, dx = {}, lO = {}; + }, fx = {}, lO = {}; ca && (lO = document.createElement("div").style, "AnimationEvent" in window || (delete Gc.animationend.animation, delete Gc.animationiteration.animation, delete Gc.animationstart.animation), "TransitionEvent" in window || delete Gc.transitionend.transition); function Cl(l) { - if (dx[l]) return dx[l]; + if (fx[l]) return fx[l]; if (!Gc[l]) return l; - var d = Gc[l], h; - for (h in d) - if (d.hasOwnProperty(h) && h in lO) - return dx[l] = d[h]; + var f = Gc[l], h; + for (h in f) + if (f.hasOwnProperty(h) && h in lO) + return fx[l] = f[h]; return l; } - var cO = Cl("animationend"), uO = Cl("animationiteration"), dO = Cl("animationstart"), bW = Cl("transitionrun"), xW = Cl("transitionstart"), wW = Cl("transitioncancel"), fO = Cl("transitionend"), pO = /* @__PURE__ */ new Map(), fx = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split( + var cO = Cl("animationend"), uO = Cl("animationiteration"), fO = Cl("animationstart"), bW = Cl("transitionrun"), xW = Cl("transitionstart"), wW = Cl("transitioncancel"), dO = Cl("transitionend"), pO = /* @__PURE__ */ new Map(), dx = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split( " " ); - fx.push("scrollEnd"); - function Bo(l, d) { - pO.set(l, d), aa(d, [l]); + dx.push("scrollEnd"); + function Bo(l, f) { + pO.set(l, f), aa(f, [l]); } var qm = typeof reportError == "function" ? reportError : function(l) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { - var d = new window.ErrorEvent("error", { + var f = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof l == "object" && l !== null && typeof l.message == "string" ? String(l.message) : String(l), error: l }); - if (!window.dispatchEvent(d)) return; + if (!window.dispatchEvent(f)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", l); return; @@ -2399,73 +2399,73 @@ Error generating stack: ` + w.message + ` console.error(l); }, vo = [], Kc = 0, px = 0; function Wm() { - for (var l = Kc, d = px = Kc = 0; d < l; ) { - var h = vo[d]; - vo[d++] = null; - var w = vo[d]; - vo[d++] = null; - var R = vo[d]; - vo[d++] = null; - var M = vo[d]; - if (vo[d++] = null, w !== null && R !== null) { + for (var l = Kc, f = px = Kc = 0; f < l; ) { + var h = vo[f]; + vo[f++] = null; + var w = vo[f]; + vo[f++] = null; + var R = vo[f]; + vo[f++] = null; + var M = vo[f]; + if (vo[f++] = null, w !== null && R !== null) { var q = w.pending; q === null ? R.next = R : (R.next = q.next, q.next = R), w.pending = R; } M !== 0 && hO(h, R, M); } } - function Gm(l, d, h, w) { - vo[Kc++] = l, vo[Kc++] = d, vo[Kc++] = h, vo[Kc++] = w, px |= w, l.lanes |= w, l = l.alternate, l !== null && (l.lanes |= w); + function Gm(l, f, h, w) { + vo[Kc++] = l, vo[Kc++] = f, vo[Kc++] = h, vo[Kc++] = w, px |= w, l.lanes |= w, l = l.alternate, l !== null && (l.lanes |= w); } - function hx(l, d, h, w) { - return Gm(l, d, h, w), Km(l); + function hx(l, f, h, w) { + return Gm(l, f, h, w), Km(l); } - function kl(l, d) { - return Gm(l, null, null, d), Km(l); + function kl(l, f) { + return Gm(l, null, null, f), Km(l); } - function hO(l, d, h) { + function hO(l, f, h) { l.lanes |= h; var w = l.alternate; w !== null && (w.lanes |= h); for (var R = !1, M = l.return; M !== null; ) M.childLanes |= h, w = M.alternate, w !== null && (w.childLanes |= h), M.tag === 22 && (l = M.stateNode, l === null || l._visibility & 1 || (R = !0)), l = M, M = M.return; - return l.tag === 3 ? (M = l.stateNode, R && d !== null && (R = 31 - Mt(h), l = M.hiddenUpdates, w = l[R], w === null ? l[R] = [d] : w.push(d), d.lane = h | 536870912), M) : null; + return l.tag === 3 ? (M = l.stateNode, R && f !== null && (R = 31 - Mt(h), l = M.hiddenUpdates, w = l[R], w === null ? l[R] = [f] : w.push(f), f.lane = h | 536870912), M) : null; } function Km(l) { - if (50 < Nf) - throw Nf = 0, _w = null, Error(r(185)); - for (var d = l.return; d !== null; ) - l = d, d = l.return; + if (50 < Nd) + throw Nd = 0, _w = null, Error(r(185)); + for (var f = l.return; f !== null; ) + l = f, f = l.return; return l.tag === 3 ? l.stateNode : null; } var Yc = {}; - function SW(l, d, h, w) { - this.tag = l, this.key = h, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = d, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = w, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; + function SW(l, f, h, w) { + this.tag = l, this.key = h, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = f, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = w, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } - function Yr(l, d, h, w) { - return new SW(l, d, h, w); + function Yr(l, f, h, w) { + return new SW(l, f, h, w); } function mx(l) { return l = l.prototype, !(!l || !l.isReactComponent); } - function ua(l, d) { + function ua(l, f) { var h = l.alternate; return h === null ? (h = Yr( l.tag, - d, + f, l.key, l.mode - ), h.elementType = l.elementType, h.type = l.type, h.stateNode = l.stateNode, h.alternate = l, l.alternate = h) : (h.pendingProps = d, h.type = l.type, h.flags = 0, h.subtreeFlags = 0, h.deletions = null), h.flags = l.flags & 65011712, h.childLanes = l.childLanes, h.lanes = l.lanes, h.child = l.child, h.memoizedProps = l.memoizedProps, h.memoizedState = l.memoizedState, h.updateQueue = l.updateQueue, d = l.dependencies, h.dependencies = d === null ? null : { lanes: d.lanes, firstContext: d.firstContext }, h.sibling = l.sibling, h.index = l.index, h.ref = l.ref, h.refCleanup = l.refCleanup, h; + ), h.elementType = l.elementType, h.type = l.type, h.stateNode = l.stateNode, h.alternate = l, l.alternate = h) : (h.pendingProps = f, h.type = l.type, h.flags = 0, h.subtreeFlags = 0, h.deletions = null), h.flags = l.flags & 65011712, h.childLanes = l.childLanes, h.lanes = l.lanes, h.child = l.child, h.memoizedProps = l.memoizedProps, h.memoizedState = l.memoizedState, h.updateQueue = l.updateQueue, f = l.dependencies, h.dependencies = f === null ? null : { lanes: f.lanes, firstContext: f.firstContext }, h.sibling = l.sibling, h.index = l.index, h.ref = l.ref, h.refCleanup = l.refCleanup, h; } - function mO(l, d) { + function mO(l, f) { l.flags &= 65011714; var h = l.alternate; - return h === null ? (l.childLanes = 0, l.lanes = d, l.child = null, l.subtreeFlags = 0, l.memoizedProps = null, l.memoizedState = null, l.updateQueue = null, l.dependencies = null, l.stateNode = null) : (l.childLanes = h.childLanes, l.lanes = h.lanes, l.child = h.child, l.subtreeFlags = 0, l.deletions = null, l.memoizedProps = h.memoizedProps, l.memoizedState = h.memoizedState, l.updateQueue = h.updateQueue, l.type = h.type, d = h.dependencies, l.dependencies = d === null ? null : { - lanes: d.lanes, - firstContext: d.firstContext + return h === null ? (l.childLanes = 0, l.lanes = f, l.child = null, l.subtreeFlags = 0, l.memoizedProps = null, l.memoizedState = null, l.updateQueue = null, l.dependencies = null, l.stateNode = null) : (l.childLanes = h.childLanes, l.lanes = h.lanes, l.child = h.child, l.subtreeFlags = 0, l.deletions = null, l.memoizedProps = h.memoizedProps, l.memoizedState = h.memoizedState, l.updateQueue = h.updateQueue, l.type = h.type, f = h.dependencies, l.dependencies = f === null ? null : { + lanes: f.lanes, + firstContext: f.firstContext }), l; } - function Ym(l, d, h, w, R, M) { + function Ym(l, f, h, w, R, M) { var q = 0; if (w = l, typeof l == "function") mx(l) && (q = 1); else if (typeof l == "string") @@ -2477,18 +2477,18 @@ Error generating stack: ` + w.message + ` else e: switch (l) { case I: - return l = Yr(31, h, d, R), l.elementType = I, l.lanes = M, l; + return l = Yr(31, h, f, R), l.elementType = I, l.lanes = M, l; case b: - return Tl(h.children, R, M, d); + return Tl(h.children, R, M, f); case v: q = 8, R |= 24; break; case x: - return l = Yr(12, h, d, R | 2), l.elementType = x, l.lanes = M, l; + return l = Yr(12, h, f, R | 2), l.elementType = x, l.lanes = M, l; case k: - return l = Yr(13, h, d, R), l.elementType = k, l.lanes = M, l; + return l = Yr(13, h, f, R), l.elementType = k, l.lanes = M, l; case A: - return l = Yr(19, h, d, R), l.elementType = A, l.lanes = M, l; + return l = Yr(19, h, f, R), l.elementType = A, l.lanes = M, l; default: if (typeof l == "object" && l !== null) switch (l.$$typeof) { @@ -2512,116 +2512,116 @@ Error generating stack: ` + w.message + ` r(130, l === null ? "null" : typeof l, "") ), w = null; } - return d = Yr(q, h, d, R), d.elementType = l, d.type = w, d.lanes = M, d; + return f = Yr(q, h, f, R), f.elementType = l, f.type = w, f.lanes = M, f; } - function Tl(l, d, h, w) { - return l = Yr(7, l, w, d), l.lanes = h, l; + function Tl(l, f, h, w) { + return l = Yr(7, l, w, f), l.lanes = h, l; } - function gx(l, d, h) { - return l = Yr(6, l, null, d), l.lanes = h, l; + function gx(l, f, h) { + return l = Yr(6, l, null, f), l.lanes = h, l; } function gO(l) { - var d = Yr(18, null, null, 0); - return d.stateNode = l, d; + var f = Yr(18, null, null, 0); + return f.stateNode = l, f; } - function yx(l, d, h) { - return d = Yr( + function yx(l, f, h) { + return f = Yr( 4, l.children !== null ? l.children : [], l.key, - d - ), d.lanes = h, d.stateNode = { + f + ), f.lanes = h, f.stateNode = { containerInfo: l.containerInfo, pendingChildren: null, implementation: l.implementation - }, d; + }, f; } var yO = /* @__PURE__ */ new WeakMap(); - function bo(l, d) { + function bo(l, f) { if (typeof l == "object" && l !== null) { var h = yO.get(l); - return h !== void 0 ? h : (d = { + return h !== void 0 ? h : (f = { value: l, - source: d, - stack: je(d) - }, yO.set(l, d), d); + source: f, + stack: je(f) + }, yO.set(l, f), f); } return { value: l, - source: d, - stack: je(d) + source: f, + stack: je(f) }; } - var Xc = [], Zc = 0, Xm = null, df = 0, xo = [], wo = 0, hs = null, fi = 1, pi = ""; - function da(l, d) { - Xc[Zc++] = df, Xc[Zc++] = Xm, Xm = l, df = d; + var Xc = [], Zc = 0, Xm = null, fd = 0, xo = [], wo = 0, hs = null, di = 1, pi = ""; + function fa(l, f) { + Xc[Zc++] = fd, Xc[Zc++] = Xm, Xm = l, fd = f; } - function vO(l, d, h) { - xo[wo++] = fi, xo[wo++] = pi, xo[wo++] = hs, hs = l; - var w = fi; + function vO(l, f, h) { + xo[wo++] = di, xo[wo++] = pi, xo[wo++] = hs, hs = l; + var w = di; l = pi; var R = 32 - Mt(w) - 1; w &= ~(1 << R), h += 1; - var M = 32 - Mt(d) + R; + var M = 32 - Mt(f) + R; if (30 < M) { var q = R - R % 5; - M = (w & (1 << q) - 1).toString(32), w >>= q, R -= q, fi = 1 << 32 - Mt(d) + R | h << R | w, pi = M + l; + M = (w & (1 << q) - 1).toString(32), w >>= q, R -= q, di = 1 << 32 - Mt(f) + R | h << R | w, pi = M + l; } else - fi = 1 << M | h << R | w, pi = l; + di = 1 << M | h << R | w, pi = l; } function vx(l) { - l.return !== null && (da(l, 1), vO(l, 1, 0)); + l.return !== null && (fa(l, 1), vO(l, 1, 0)); } function bx(l) { for (; l === Xm; ) - Xm = Xc[--Zc], Xc[Zc] = null, df = Xc[--Zc], Xc[Zc] = null; + Xm = Xc[--Zc], Xc[Zc] = null, fd = Xc[--Zc], Xc[Zc] = null; for (; l === hs; ) - hs = xo[--wo], xo[wo] = null, pi = xo[--wo], xo[wo] = null, fi = xo[--wo], xo[wo] = null; + hs = xo[--wo], xo[wo] = null, pi = xo[--wo], xo[wo] = null, di = xo[--wo], xo[wo] = null; } - function bO(l, d) { - xo[wo++] = fi, xo[wo++] = pi, xo[wo++] = hs, fi = d.id, pi = d.overflow, hs = l; + function bO(l, f) { + xo[wo++] = di, xo[wo++] = pi, xo[wo++] = hs, di = f.id, pi = f.overflow, hs = l; } var rr = null, mn = null, At = !1, ms = null, So = !1, xx = Error(r(519)); function gs(l) { - var d = Error( + var f = Error( r( 418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "" ) ); - throw ff(bo(d, l)), xx; + throw dd(bo(f, l)), xx; } function xO(l) { - var d = l.stateNode, h = l.type, w = l.memoizedProps; - switch (d[Wn] = l, d[pr] = w, h) { + var f = l.stateNode, h = l.type, w = l.memoizedProps; + switch (f[Wn] = l, f[pr] = w, h) { case "dialog": - St("cancel", d), St("close", d); + St("cancel", f), St("close", f); break; case "iframe": case "object": case "embed": - St("load", d); + St("load", f); break; case "video": case "audio": - for (h = 0; h < If.length; h++) - St(If[h], d); + for (h = 0; h < Id.length; h++) + St(Id[h], f); break; case "source": - St("error", d); + St("error", f); break; case "img": case "image": case "link": - St("error", d), St("load", d); + St("error", f), St("load", f); break; case "details": - St("toggle", d); + St("toggle", f); break; case "input": - St("invalid", d), Dm( - d, + St("invalid", f), Dm( + f, w.value, w.defaultValue, w.checked, @@ -2632,12 +2632,12 @@ Error generating stack: ` + w.message + ` ); break; case "select": - St("invalid", d); + St("invalid", f); break; case "textarea": - St("invalid", d), $R(d, w.value, w.defaultValue, w.children); + St("invalid", f), $R(f, w.value, w.defaultValue, w.children); } - h = w.children, typeof h != "string" && typeof h != "number" && typeof h != "bigint" || d.textContent === "" + h || w.suppressHydrationWarning === !0 || DN(d.textContent, h) ? (w.popover != null && (St("beforetoggle", d), St("toggle", d)), w.onScroll != null && St("scroll", d), w.onScrollEnd != null && St("scrollend", d), w.onClick != null && (d.onclick = la), d = !0) : d = !1, d || gs(l, !0); + h = w.children, typeof h != "string" && typeof h != "number" && typeof h != "bigint" || f.textContent === "" + h || w.suppressHydrationWarning === !0 || DN(f.textContent, h) ? (w.popover != null && (St("beforetoggle", f), St("toggle", f)), w.onScroll != null && St("scroll", f), w.onScrollEnd != null && St("scrollend", f), w.onClick != null && (f.onclick = la), f = !0) : f = !1, f || gs(l, !0); } function wO(l) { for (rr = l.return; rr; ) @@ -2658,15 +2658,15 @@ Error generating stack: ` + w.message + ` function Qc(l) { if (l !== rr) return !1; if (!At) return wO(l), At = !0, !1; - var d = l.tag, h; - if ((h = d !== 3 && d !== 27) && ((h = d === 5) && (h = l.type, h = !(h !== "form" && h !== "button") || Fw(l.type, l.memoizedProps)), h = !h), h && mn && gs(l), wO(l), d === 13) { + var f = l.tag, h; + if ((h = f !== 3 && f !== 27) && ((h = f === 5) && (h = l.type, h = !(h !== "form" && h !== "button") || Fw(l.type, l.memoizedProps)), h = !h), h && mn && gs(l), wO(l), f === 13) { if (l = l.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(r(317)); mn = WN(l); - } else if (d === 31) { + } else if (f === 31) { if (l = l.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(r(317)); mn = WN(l); } else - d === 27 ? (d = mn, Os(l.type) ? (l = Vw, Vw = null, mn = l) : mn = d) : mn = rr ? Eo(l.stateNode.nextSibling) : null; + f === 27 ? (f = mn, Os(l.type) ? (l = Vw, Vw = null, mn = l) : mn = f) : mn = rr ? Eo(l.stateNode.nextSibling) : null; return !0; } function Al() { @@ -2679,24 +2679,24 @@ Error generating stack: ` + w.message + ` l ), ms = null), l; } - function ff(l) { + function dd(l) { ms === null ? ms = [l] : ms.push(l); } - var Sx = D(null), Rl = null, fa = null; - function ys(l, d, h) { - z(Sx, d._currentValue), d._currentValue = h; + var Sx = D(null), Rl = null, da = null; + function ys(l, f, h) { + z(Sx, f._currentValue), f._currentValue = h; } function pa(l) { l._currentValue = Sx.current, G(Sx); } - function _x(l, d, h) { + function _x(l, f, h) { for (; l !== null; ) { var w = l.alternate; - if ((l.childLanes & d) !== d ? (l.childLanes |= d, w !== null && (w.childLanes |= d)) : w !== null && (w.childLanes & d) !== d && (w.childLanes |= d), l === h) break; + if ((l.childLanes & f) !== f ? (l.childLanes |= f, w !== null && (w.childLanes |= f)) : w !== null && (w.childLanes & f) !== f && (w.childLanes |= f), l === h) break; l = l.return; } } - function Ex(l, d, h, w) { + function Ex(l, f, h, w) { var R = l.child; for (R !== null && (R.return = l); R !== null; ) { var M = R.dependencies; @@ -2706,8 +2706,8 @@ Error generating stack: ` + w.message + ` e: for (; M !== null; ) { var Z = M; M = R; - for (var re = 0; re < d.length; re++) - if (Z.context === d[re]) { + for (var re = 0; re < f.length; re++) + if (Z.context === f[re]) { M.lanes |= h, Z = M.alternate, Z !== null && (Z.lanes |= h), _x( M.return, h, @@ -2737,9 +2737,9 @@ Error generating stack: ` + w.message + ` R = q; } } - function Jc(l, d, h, w) { + function Jc(l, f, h, w) { l = null; - for (var R = d, M = !1; R !== null; ) { + for (var R = f, M = !1; R !== null; ) { if (!M) { if ((R.flags & 524288) !== 0) M = !0; else if ((R.flags & 262144) !== 0) break; @@ -2753,16 +2753,16 @@ Error generating stack: ` + w.message + ` } } else if (R === ne.current) { if (q = R.alternate, q === null) throw Error(r(387)); - q.memoizedState.memoizedState !== R.memoizedState.memoizedState && (l !== null ? l.push(Lf) : l = [Lf]); + q.memoizedState.memoizedState !== R.memoizedState.memoizedState && (l !== null ? l.push(Ld) : l = [Ld]); } R = R.return; } l !== null && Ex( - d, + f, l, h, w - ), d.flags |= 262144; + ), f.flags |= 262144; } function Zm(l) { for (l = l.firstContext; l !== null; ) { @@ -2776,31 +2776,31 @@ Error generating stack: ` + w.message + ` return !1; } function Ol(l) { - Rl = l, fa = null, l = l.dependencies, l !== null && (l.firstContext = null); + Rl = l, da = null, l = l.dependencies, l !== null && (l.firstContext = null); } function or(l) { return SO(Rl, l); } - function Qm(l, d) { - return Rl === null && Ol(l), SO(l, d); + function Qm(l, f) { + return Rl === null && Ol(l), SO(l, f); } - function SO(l, d) { - var h = d._currentValue; - if (d = { context: d, memoizedValue: h, next: null }, fa === null) { + function SO(l, f) { + var h = f._currentValue; + if (f = { context: f, memoizedValue: h, next: null }, da === null) { if (l === null) throw Error(r(308)); - fa = d, l.dependencies = { lanes: 0, firstContext: d }, l.flags |= 524288; - } else fa = fa.next = d; + da = f, l.dependencies = { lanes: 0, firstContext: f }, l.flags |= 524288; + } else da = da.next = f; return h; } var _W = typeof AbortController < "u" ? AbortController : function() { - var l = [], d = this.signal = { + var l = [], f = this.signal = { aborted: !1, addEventListener: function(h, w) { l.push(w); } }; this.abort = function() { - d.aborted = !0, l.forEach(function(h) { + f.aborted = !0, l.forEach(function(h) { return h(); }); }; @@ -2819,15 +2819,15 @@ Error generating stack: ` + w.message + ` refCount: 0 }; } - function pf(l) { + function pd(l) { l.refCount--, l.refCount === 0 && EW(CW, function() { l.controller.abort(); }); } - var hf = null, kx = 0, eu = 0, tu = null; - function kW(l, d) { - if (hf === null) { - var h = hf = []; + var hd = null, kx = 0, eu = 0, tu = null; + function kW(l, f) { + if (hd === null) { + var h = hd = []; kx = 0, eu = Rw(), tu = { status: "pending", value: void 0, @@ -2836,17 +2836,17 @@ Error generating stack: ` + w.message + ` } }; } - return kx++, d.then(_O, _O), d; + return kx++, f.then(_O, _O), f; } function _O() { - if (--kx === 0 && hf !== null) { + if (--kx === 0 && hd !== null) { tu !== null && (tu.status = "fulfilled"); - var l = hf; - hf = null, eu = 0, tu = null; - for (var d = 0; d < l.length; d++) (0, l[d])(); + var l = hd; + hd = null, eu = 0, tu = null; + for (var f = 0; f < l.length; f++) (0, l[f])(); } } - function TW(l, d) { + function TW(l, f) { var h = [], w = { status: "pending", value: null, @@ -2857,8 +2857,8 @@ Error generating stack: ` + w.message + ` }; return l.then( function() { - w.status = "fulfilled", w.value = d; - for (var R = 0; R < h.length; R++) (0, h[R])(d); + w.status = "fulfilled", w.value = f; + for (var R = 0; R < h.length; R++) (0, h[R])(f); }, function(R) { for (w.status = "rejected", w.reason = R, R = 0; R < h.length; R++) @@ -2867,16 +2867,16 @@ Error generating stack: ` + w.message + ` ), w; } var EO = F.S; - F.S = function(l, d) { - sN = Je(), typeof d == "object" && d !== null && typeof d.then == "function" && kW(l, d), EO !== null && EO(l, d); + F.S = function(l, f) { + sN = Je(), typeof f == "object" && f !== null && typeof f.then == "function" && kW(l, f), EO !== null && EO(l, f); }; var Ml = D(null); function Tx() { var l = Ml.current; return l !== null ? l : sn.pooledCache; } - function Jm(l, d) { - d === null ? z(Ml, Ml.current) : z(Ml, d.pool); + function Jm(l, f) { + f === null ? z(Ml, Ml.current) : z(Ml, f.pool); } function CO() { var l = Tx(); @@ -2887,45 +2887,45 @@ Error generating stack: ` + w.message + ` function kO(l) { return l = l.status, l === "fulfilled" || l === "rejected"; } - function TO(l, d, h) { - switch (h = l[h], h === void 0 ? l.push(d) : h !== d && (d.then(la, la), d = h), d.status) { + function TO(l, f, h) { + switch (h = l[h], h === void 0 ? l.push(f) : h !== f && (f.then(la, la), f = h), f.status) { case "fulfilled": - return d.value; + return f.value; case "rejected": - throw l = d.reason, RO(l), l; + throw l = f.reason, RO(l), l; default: - if (typeof d.status == "string") d.then(la, la); + if (typeof f.status == "string") f.then(la, la); else { if (l = sn, l !== null && 100 < l.shellSuspendCounter) throw Error(r(482)); - l = d, l.status = "pending", l.then( + l = f, l.status = "pending", l.then( function(w) { - if (d.status === "pending") { - var R = d; + if (f.status === "pending") { + var R = f; R.status = "fulfilled", R.value = w; } }, function(w) { - if (d.status === "pending") { - var R = d; + if (f.status === "pending") { + var R = f; R.status = "rejected", R.reason = w; } } ); } - switch (d.status) { + switch (f.status) { case "fulfilled": - return d.value; + return f.value; case "rejected": - throw l = d.reason, RO(l), l; + throw l = f.reason, RO(l), l; } - throw Pl = d, nu; + throw Pl = f, nu; } } function Nl(l) { try { - var d = l._init; - return d(l._payload); + var f = l._init; + return f(l._payload); } catch (h) { throw h !== null && typeof h == "object" && typeof h.then == "function" ? (Pl = h, nu) : h; } @@ -2940,33 +2940,33 @@ Error generating stack: ` + w.message + ` if (l === nu || l === eg) throw Error(r(483)); } - var ru = null, mf = 0; + var ru = null, md = 0; function ng(l) { - var d = mf; - return mf += 1, ru === null && (ru = []), TO(ru, l, d); + var f = md; + return md += 1, ru === null && (ru = []), TO(ru, l, f); } - function gf(l, d) { - d = d.props.ref, l.ref = d !== void 0 ? d : null; + function gd(l, f) { + f = f.props.ref, l.ref = f !== void 0 ? f : null; } - function rg(l, d) { - throw d.$$typeof === m ? Error(r(525)) : (l = Object.prototype.toString.call(d), Error( + function rg(l, f) { + throw f.$$typeof === m ? Error(r(525)) : (l = Object.prototype.toString.call(f), Error( r( 31, - l === "[object Object]" ? "object with keys {" + Object.keys(d).join(", ") + "}" : l + l === "[object Object]" ? "object with keys {" + Object.keys(f).join(", ") + "}" : l ) )); } function OO(l) { - function d(ce, ae) { + function f(ce, ae) { if (l) { - var fe = ce.deletions; - fe === null ? (ce.deletions = [ae], ce.flags |= 16) : fe.push(ae); + var de = ce.deletions; + de === null ? (ce.deletions = [ae], ce.flags |= 16) : de.push(ae); } } function h(ce, ae) { if (!l) return null; for (; ae !== null; ) - d(ce, ae), ae = ae.sibling; + f(ce, ae), ae = ae.sibling; return null; } function w(ce) { @@ -2977,151 +2977,151 @@ Error generating stack: ` + w.message + ` function R(ce, ae) { return ce = ua(ce, ae), ce.index = 0, ce.sibling = null, ce; } - function M(ce, ae, fe) { - return ce.index = fe, l ? (fe = ce.alternate, fe !== null ? (fe = fe.index, fe < ae ? (ce.flags |= 67108866, ae) : fe) : (ce.flags |= 67108866, ae)) : (ce.flags |= 1048576, ae); + function M(ce, ae, de) { + return ce.index = de, l ? (de = ce.alternate, de !== null ? (de = de.index, de < ae ? (ce.flags |= 67108866, ae) : de) : (ce.flags |= 67108866, ae)) : (ce.flags |= 1048576, ae); } function q(ce) { return l && ce.alternate === null && (ce.flags |= 67108866), ce; } - function Z(ce, ae, fe, xe) { - return ae === null || ae.tag !== 6 ? (ae = gx(fe, ce.mode, xe), ae.return = ce, ae) : (ae = R(ae, fe), ae.return = ce, ae); + function Z(ce, ae, de, xe) { + return ae === null || ae.tag !== 6 ? (ae = gx(de, ce.mode, xe), ae.return = ce, ae) : (ae = R(ae, de), ae.return = ce, ae); } - function re(ce, ae, fe, xe) { - var qe = fe.type; + function re(ce, ae, de, xe) { + var qe = de.type; return qe === b ? ve( ce, ae, - fe.props.children, + de.props.children, xe, - fe.key - ) : ae !== null && (ae.elementType === qe || typeof qe == "object" && qe !== null && qe.$$typeof === P && Nl(qe) === ae.type) ? (ae = R(ae, fe.props), gf(ae, fe), ae.return = ce, ae) : (ae = Ym( - fe.type, - fe.key, - fe.props, + de.key + ) : ae !== null && (ae.elementType === qe || typeof qe == "object" && qe !== null && qe.$$typeof === P && Nl(qe) === ae.type) ? (ae = R(ae, de.props), gd(ae, de), ae.return = ce, ae) : (ae = Ym( + de.type, + de.key, + de.props, null, ce.mode, xe - ), gf(ae, fe), ae.return = ce, ae); + ), gd(ae, de), ae.return = ce, ae); } - function pe(ce, ae, fe, xe) { - return ae === null || ae.tag !== 4 || ae.stateNode.containerInfo !== fe.containerInfo || ae.stateNode.implementation !== fe.implementation ? (ae = yx(fe, ce.mode, xe), ae.return = ce, ae) : (ae = R(ae, fe.children || []), ae.return = ce, ae); + function pe(ce, ae, de, xe) { + return ae === null || ae.tag !== 4 || ae.stateNode.containerInfo !== de.containerInfo || ae.stateNode.implementation !== de.implementation ? (ae = yx(de, ce.mode, xe), ae.return = ce, ae) : (ae = R(ae, de.children || []), ae.return = ce, ae); } - function ve(ce, ae, fe, xe, qe) { + function ve(ce, ae, de, xe, qe) { return ae === null || ae.tag !== 7 ? (ae = Tl( - fe, + de, ce.mode, xe, qe - ), ae.return = ce, ae) : (ae = R(ae, fe), ae.return = ce, ae); + ), ae.return = ce, ae) : (ae = R(ae, de), ae.return = ce, ae); } - function we(ce, ae, fe) { + function we(ce, ae, de) { if (typeof ae == "string" && ae !== "" || typeof ae == "number" || typeof ae == "bigint") return ae = gx( "" + ae, ce.mode, - fe + de ), ae.return = ce, ae; if (typeof ae == "object" && ae !== null) { switch (ae.$$typeof) { case g: - return fe = Ym( + return de = Ym( ae.type, ae.key, ae.props, null, ce.mode, - fe - ), gf(fe, ae), fe.return = ce, fe; + de + ), gd(de, ae), de.return = ce, de; case y: return ae = yx( ae, ce.mode, - fe + de ), ae.return = ce, ae; case P: - return ae = Nl(ae), we(ce, ae, fe); + return ae = Nl(ae), we(ce, ae, de); } if (V(ae) || N(ae)) return ae = Tl( ae, ce.mode, - fe, + de, null ), ae.return = ce, ae; if (typeof ae.then == "function") - return we(ce, ng(ae), fe); + return we(ce, ng(ae), de); if (ae.$$typeof === _) return we( ce, Qm(ce, ae), - fe + de ); rg(ce, ae); } return null; } - function he(ce, ae, fe, xe) { + function he(ce, ae, de, xe) { var qe = ae !== null ? ae.key : null; - if (typeof fe == "string" && fe !== "" || typeof fe == "number" || typeof fe == "bigint") - return qe !== null ? null : Z(ce, ae, "" + fe, xe); - if (typeof fe == "object" && fe !== null) { - switch (fe.$$typeof) { + if (typeof de == "string" && de !== "" || typeof de == "number" || typeof de == "bigint") + return qe !== null ? null : Z(ce, ae, "" + de, xe); + if (typeof de == "object" && de !== null) { + switch (de.$$typeof) { case g: - return fe.key === qe ? re(ce, ae, fe, xe) : null; + return de.key === qe ? re(ce, ae, de, xe) : null; case y: - return fe.key === qe ? pe(ce, ae, fe, xe) : null; + return de.key === qe ? pe(ce, ae, de, xe) : null; case P: - return fe = Nl(fe), he(ce, ae, fe, xe); + return de = Nl(de), he(ce, ae, de, xe); } - if (V(fe) || N(fe)) - return qe !== null ? null : ve(ce, ae, fe, xe, null); - if (typeof fe.then == "function") + if (V(de) || N(de)) + return qe !== null ? null : ve(ce, ae, de, xe, null); + if (typeof de.then == "function") return he( ce, ae, - ng(fe), + ng(de), xe ); - if (fe.$$typeof === _) + if (de.$$typeof === _) return he( ce, ae, - Qm(ce, fe), + Qm(ce, de), xe ); - rg(ce, fe); + rg(ce, de); } return null; } - function ye(ce, ae, fe, xe, qe) { + function ye(ce, ae, de, xe, qe) { if (typeof xe == "string" && xe !== "" || typeof xe == "number" || typeof xe == "bigint") - return ce = ce.get(fe) || null, Z(ae, ce, "" + xe, qe); + return ce = ce.get(de) || null, Z(ae, ce, "" + xe, qe); if (typeof xe == "object" && xe !== null) { switch (xe.$$typeof) { case g: return ce = ce.get( - xe.key === null ? fe : xe.key + xe.key === null ? de : xe.key ) || null, re(ae, ce, xe, qe); case y: return ce = ce.get( - xe.key === null ? fe : xe.key + xe.key === null ? de : xe.key ) || null, pe(ae, ce, xe, qe); case P: return xe = Nl(xe), ye( ce, ae, - fe, + de, xe, qe ); } if (V(xe) || N(xe)) - return ce = ce.get(fe) || null, ve(ae, ce, xe, qe, null); + return ce = ce.get(de) || null, ve(ae, ce, xe, qe, null); if (typeof xe.then == "function") return ye( ce, ae, - fe, + de, ng(xe), qe ); @@ -3129,7 +3129,7 @@ Error generating stack: ` + w.message + ` return ye( ce, ae, - fe, + de, Qm(ae, xe), qe ); @@ -3137,89 +3137,89 @@ Error generating stack: ` + w.message + ` } return null; } - function Fe(ce, ae, fe, xe) { - for (var qe = null, jt = null, Be = ae, ft = ae = 0, kt = null; Be !== null && ft < fe.length; ft++) { - Be.index > ft ? (kt = Be, Be = null) : kt = Be.sibling; + function Fe(ce, ae, de, xe) { + for (var qe = null, jt = null, Be = ae, dt = ae = 0, kt = null; Be !== null && dt < de.length; dt++) { + Be.index > dt ? (kt = Be, Be = null) : kt = Be.sibling; var Dt = he( ce, Be, - fe[ft], + de[dt], xe ); if (Dt === null) { Be === null && (Be = kt); break; } - l && Be && Dt.alternate === null && d(ce, Be), ae = M(Dt, ae, ft), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt, Be = kt; + l && Be && Dt.alternate === null && f(ce, Be), ae = M(Dt, ae, dt), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt, Be = kt; } - if (ft === fe.length) - return h(ce, Be), At && da(ce, ft), qe; + if (dt === de.length) + return h(ce, Be), At && fa(ce, dt), qe; if (Be === null) { - for (; ft < fe.length; ft++) - Be = we(ce, fe[ft], xe), Be !== null && (ae = M( + for (; dt < de.length; dt++) + Be = we(ce, de[dt], xe), Be !== null && (ae = M( Be, ae, - ft + dt ), jt === null ? qe = Be : jt.sibling = Be, jt = Be); - return At && da(ce, ft), qe; + return At && fa(ce, dt), qe; } - for (Be = w(Be); ft < fe.length; ft++) + for (Be = w(Be); dt < de.length; dt++) kt = ye( Be, ce, - ft, - fe[ft], + dt, + de[dt], xe ), kt !== null && (l && kt.alternate !== null && Be.delete( - kt.key === null ? ft : kt.key + kt.key === null ? dt : kt.key ), ae = M( kt, ae, - ft + dt ), jt === null ? qe = kt : jt.sibling = kt, jt = kt); return l && Be.forEach(function($s) { - return d(ce, $s); - }), At && da(ce, ft), qe; + return f(ce, $s); + }), At && fa(ce, dt), qe; } - function et(ce, ae, fe, xe) { - if (fe == null) throw Error(r(151)); - for (var qe = null, jt = null, Be = ae, ft = ae = 0, kt = null, Dt = fe.next(); Be !== null && !Dt.done; ft++, Dt = fe.next()) { - Be.index > ft ? (kt = Be, Be = null) : kt = Be.sibling; + function et(ce, ae, de, xe) { + if (de == null) throw Error(r(151)); + for (var qe = null, jt = null, Be = ae, dt = ae = 0, kt = null, Dt = de.next(); Be !== null && !Dt.done; dt++, Dt = de.next()) { + Be.index > dt ? (kt = Be, Be = null) : kt = Be.sibling; var $s = he(ce, Be, Dt.value, xe); if ($s === null) { Be === null && (Be = kt); break; } - l && Be && $s.alternate === null && d(ce, Be), ae = M($s, ae, ft), jt === null ? qe = $s : jt.sibling = $s, jt = $s, Be = kt; + l && Be && $s.alternate === null && f(ce, Be), ae = M($s, ae, dt), jt === null ? qe = $s : jt.sibling = $s, jt = $s, Be = kt; } if (Dt.done) - return h(ce, Be), At && da(ce, ft), qe; + return h(ce, Be), At && fa(ce, dt), qe; if (Be === null) { - for (; !Dt.done; ft++, Dt = fe.next()) - Dt = we(ce, Dt.value, xe), Dt !== null && (ae = M(Dt, ae, ft), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt); - return At && da(ce, ft), qe; + for (; !Dt.done; dt++, Dt = de.next()) + Dt = we(ce, Dt.value, xe), Dt !== null && (ae = M(Dt, ae, dt), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt); + return At && fa(ce, dt), qe; } - for (Be = w(Be); !Dt.done; ft++, Dt = fe.next()) - Dt = ye(Be, ce, ft, Dt.value, xe), Dt !== null && (l && Dt.alternate !== null && Be.delete(Dt.key === null ? ft : Dt.key), ae = M(Dt, ae, ft), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt); + for (Be = w(Be); !Dt.done; dt++, Dt = de.next()) + Dt = ye(Be, ce, dt, Dt.value, xe), Dt !== null && (l && Dt.alternate !== null && Be.delete(Dt.key === null ? dt : Dt.key), ae = M(Dt, ae, dt), jt === null ? qe = Dt : jt.sibling = Dt, jt = Dt); return l && Be.forEach(function(FG) { - return d(ce, FG); - }), At && da(ce, ft), qe; + return f(ce, FG); + }), At && fa(ce, dt), qe; } - function tn(ce, ae, fe, xe) { - if (typeof fe == "object" && fe !== null && fe.type === b && fe.key === null && (fe = fe.props.children), typeof fe == "object" && fe !== null) { - switch (fe.$$typeof) { + function tn(ce, ae, de, xe) { + if (typeof de == "object" && de !== null && de.type === b && de.key === null && (de = de.props.children), typeof de == "object" && de !== null) { + switch (de.$$typeof) { case g: e: { - for (var qe = fe.key; ae !== null; ) { + for (var qe = de.key; ae !== null; ) { if (ae.key === qe) { - if (qe = fe.type, qe === b) { + if (qe = de.type, qe === b) { if (ae.tag === 7) { h( ce, ae.sibling ), xe = R( ae, - fe.props.children + de.props.children ), xe.return = ce, ce = xe; break e; } @@ -3227,98 +3227,98 @@ Error generating stack: ` + w.message + ` h( ce, ae.sibling - ), xe = R(ae, fe.props), gf(xe, fe), xe.return = ce, ce = xe; + ), xe = R(ae, de.props), gd(xe, de), xe.return = ce, ce = xe; break e; } h(ce, ae); break; - } else d(ce, ae); + } else f(ce, ae); ae = ae.sibling; } - fe.type === b ? (xe = Tl( - fe.props.children, + de.type === b ? (xe = Tl( + de.props.children, ce.mode, xe, - fe.key + de.key ), xe.return = ce, ce = xe) : (xe = Ym( - fe.type, - fe.key, - fe.props, + de.type, + de.key, + de.props, null, ce.mode, xe - ), gf(xe, fe), xe.return = ce, ce = xe); + ), gd(xe, de), xe.return = ce, ce = xe); } return q(ce); case y: e: { - for (qe = fe.key; ae !== null; ) { + for (qe = de.key; ae !== null; ) { if (ae.key === qe) - if (ae.tag === 4 && ae.stateNode.containerInfo === fe.containerInfo && ae.stateNode.implementation === fe.implementation) { + if (ae.tag === 4 && ae.stateNode.containerInfo === de.containerInfo && ae.stateNode.implementation === de.implementation) { h( ce, ae.sibling - ), xe = R(ae, fe.children || []), xe.return = ce, ce = xe; + ), xe = R(ae, de.children || []), xe.return = ce, ce = xe; break e; } else { h(ce, ae); break; } - else d(ce, ae); + else f(ce, ae); ae = ae.sibling; } - xe = yx(fe, ce.mode, xe), xe.return = ce, ce = xe; + xe = yx(de, ce.mode, xe), xe.return = ce, ce = xe; } return q(ce); case P: - return fe = Nl(fe), tn( + return de = Nl(de), tn( ce, ae, - fe, + de, xe ); } - if (V(fe)) + if (V(de)) return Fe( ce, ae, - fe, + de, xe ); - if (N(fe)) { - if (qe = N(fe), typeof qe != "function") throw Error(r(150)); - return fe = qe.call(fe), et( + if (N(de)) { + if (qe = N(de), typeof qe != "function") throw Error(r(150)); + return de = qe.call(de), et( ce, ae, - fe, + de, xe ); } - if (typeof fe.then == "function") + if (typeof de.then == "function") return tn( ce, ae, - ng(fe), + ng(de), xe ); - if (fe.$$typeof === _) + if (de.$$typeof === _) return tn( ce, ae, - Qm(ce, fe), + Qm(ce, de), xe ); - rg(ce, fe); + rg(ce, de); } - return typeof fe == "string" && fe !== "" || typeof fe == "number" || typeof fe == "bigint" ? (fe = "" + fe, ae !== null && ae.tag === 6 ? (h(ce, ae.sibling), xe = R(ae, fe), xe.return = ce, ce = xe) : (h(ce, ae), xe = gx(fe, ce.mode, xe), xe.return = ce, ce = xe), q(ce)) : h(ce, ae); + return typeof de == "string" && de !== "" || typeof de == "number" || typeof de == "bigint" ? (de = "" + de, ae !== null && ae.tag === 6 ? (h(ce, ae.sibling), xe = R(ae, de), xe.return = ce, ce = xe) : (h(ce, ae), xe = gx(de, ce.mode, xe), xe.return = ce, ce = xe), q(ce)) : h(ce, ae); } - return function(ce, ae, fe, xe) { + return function(ce, ae, de, xe) { try { - mf = 0; + md = 0; var qe = tn( ce, ae, - fe, + de, xe ); return ru = null, qe; @@ -3339,8 +3339,8 @@ Error generating stack: ` + w.message + ` callbacks: null }; } - function Ox(l, d) { - l = l.updateQueue, d.updateQueue === l && (d.updateQueue = { + function Ox(l, f) { + l = l.updateQueue, f.updateQueue === l && (f.updateQueue = { baseState: l.baseState, firstBaseUpdate: l.firstBaseUpdate, lastBaseUpdate: l.lastBaseUpdate, @@ -3351,22 +3351,22 @@ Error generating stack: ` + w.message + ` function bs(l) { return { lane: l, tag: 0, payload: null, callback: null, next: null }; } - function xs(l, d, h) { + function xs(l, f, h) { var w = l.updateQueue; if (w === null) return null; if (w = w.shared, (zt & 2) !== 0) { var R = w.pending; - return R === null ? d.next = d : (d.next = R.next, R.next = d), w.pending = d, d = Km(l), hO(l, null, h), d; + return R === null ? f.next = f : (f.next = R.next, R.next = f), w.pending = f, f = Km(l), hO(l, null, h), f; } - return Gm(l, w, d, h), Km(l); + return Gm(l, w, f, h), Km(l); } - function yf(l, d, h) { - if (d = d.updateQueue, d !== null && (d = d.shared, (h & 4194048) !== 0)) { - var w = d.lanes; - w &= l.pendingLanes, h |= w, d.lanes = h, km(l, h); + function yd(l, f, h) { + if (f = f.updateQueue, f !== null && (f = f.shared, (h & 4194048) !== 0)) { + var w = f.lanes; + w &= l.pendingLanes, h |= w, f.lanes = h, km(l, h); } } - function Mx(l, d) { + function Mx(l, f) { var h = l.updateQueue, w = l.alternate; if (w !== null && (w = w.updateQueue, h === w)) { var R = null, M = null; @@ -3381,8 +3381,8 @@ Error generating stack: ` + w.message + ` }; M === null ? R = M = q : M = M.next = q, h = h.next; } while (h !== null); - M === null ? R = M = d : M = M.next = d; - } else R = M = d; + M === null ? R = M = f : M = M.next = f; + } else R = M = f; h = { baseState: w.baseState, firstBaseUpdate: R, @@ -3392,16 +3392,16 @@ Error generating stack: ` + w.message + ` }, l.updateQueue = h; return; } - l = h.lastBaseUpdate, l === null ? h.firstBaseUpdate = d : l.next = d, h.lastBaseUpdate = d; + l = h.lastBaseUpdate, l === null ? h.firstBaseUpdate = f : l.next = f, h.lastBaseUpdate = f; } var Nx = !1; - function vf() { + function vd() { if (Nx) { var l = tu; if (l !== null) throw l; } } - function bf(l, d, h, w) { + function bd(l, f, h, w) { Nx = !1; var R = l.updateQueue; vs = !1; @@ -3428,7 +3428,7 @@ Error generating stack: ` + w.message + ` }); e: { var Fe = l, et = Z; - he = d; + he = f; var tn = h; switch (et.tag) { case 1: @@ -3466,20 +3466,20 @@ Error generating stack: ` + w.message + ` ve === null && (re = we), R.baseState = re, R.firstBaseUpdate = pe, R.lastBaseUpdate = ve, M === null && (R.shared.lanes = 0), Cs |= q, l.lanes = q, l.memoizedState = we; } } - function NO(l, d) { + function NO(l, f) { if (typeof l != "function") throw Error(r(191, l)); - l.call(d); + l.call(f); } - function PO(l, d) { + function PO(l, f) { var h = l.callbacks; if (h !== null) for (l.callbacks = null, l = 0; l < h.length; l++) - NO(h[l], d); + NO(h[l], f); } var ou = D(null), og = D(0); - function IO(l, d) { - l = Sa, z(og, l), z(ou, d), Sa = l | d.baseLanes; + function IO(l, f) { + l = Sa, z(og, l), z(ou, f), Sa = l | f.baseLanes; } function Px() { z(og, Sa), z(ou, ou.current); @@ -3489,8 +3489,8 @@ Error generating stack: ` + w.message + ` } var Xr = D(null), _o = null; function ws(l) { - var d = l.alternate; - z(Nn, Nn.current & 1), z(Xr, l), _o === null && (d === null || ou.current !== null || d.memoizedState !== null) && (_o = l); + var f = l.alternate; + z(Nn, Nn.current & 1), z(Xr, l), _o === null && (f === null || ou.current !== null || f.memoizedState !== null) && (_o = l); } function $x(l) { z(Nn, Nn.current), z(Xr, l), _o === null && (_o = l); @@ -3506,83 +3506,83 @@ Error generating stack: ` + w.message + ` } var Nn = D(0); function ig(l) { - for (var d = l; d !== null; ) { - if (d.tag === 13) { - var h = d.memoizedState; + for (var f = l; f !== null; ) { + if (f.tag === 13) { + var h = f.memoizedState; if (h !== null && (h = h.dehydrated, h === null || Bw(h) || Uw(h))) - return d; - } else if (d.tag === 19 && (d.memoizedProps.revealOrder === "forwards" || d.memoizedProps.revealOrder === "backwards" || d.memoizedProps.revealOrder === "unstable_legacy-backwards" || d.memoizedProps.revealOrder === "together")) { - if ((d.flags & 128) !== 0) return d; - } else if (d.child !== null) { - d.child.return = d, d = d.child; + return f; + } else if (f.tag === 19 && (f.memoizedProps.revealOrder === "forwards" || f.memoizedProps.revealOrder === "backwards" || f.memoizedProps.revealOrder === "unstable_legacy-backwards" || f.memoizedProps.revealOrder === "together")) { + if ((f.flags & 128) !== 0) return f; + } else if (f.child !== null) { + f.child.return = f, f = f.child; continue; } - if (d === l) break; - for (; d.sibling === null; ) { - if (d.return === null || d.return === l) return null; - d = d.return; + if (f === l) break; + for (; f.sibling === null; ) { + if (f.return === null || f.return === l) return null; + f = f.return; } - d.sibling.return = d.return, d = d.sibling; + f.sibling.return = f.return, f = f.sibling; } return null; } - var ha = 0, lt = null, Jt = null, Fn = null, ag = !1, iu = !1, $l = !1, sg = 0, xf = 0, au = null, AW = 0; + var ha = 0, lt = null, Jt = null, Fn = null, ag = !1, iu = !1, $l = !1, sg = 0, xd = 0, au = null, AW = 0; function kn() { throw Error(r(321)); } - function jx(l, d) { - if (d === null) return !1; - for (var h = 0; h < d.length && h < l.length; h++) - if (!Kr(l[h], d[h])) return !1; + function jx(l, f) { + if (f === null) return !1; + for (var h = 0; h < f.length && h < l.length; h++) + if (!Kr(l[h], f[h])) return !1; return !0; } - function Dx(l, d, h, w, R, M) { - return ha = M, lt = d, d.memoizedState = null, d.updateQueue = null, d.lanes = 0, F.H = l === null || l.memoizedState === null ? vM : Qx, $l = !1, M = h(w, R), $l = !1, iu && (M = DO( - d, + function Dx(l, f, h, w, R, M) { + return ha = M, lt = f, f.memoizedState = null, f.updateQueue = null, f.lanes = 0, F.H = l === null || l.memoizedState === null ? vM : Qx, $l = !1, M = h(w, R), $l = !1, iu && (M = DO( + f, h, w, R )), jO(l), M; } function jO(l) { - F.H = _f; - var d = Jt !== null && Jt.next !== null; - if (ha = 0, Fn = Jt = lt = null, ag = !1, xf = 0, au = null, d) throw Error(r(300)); + F.H = _d; + var f = Jt !== null && Jt.next !== null; + if (ha = 0, Fn = Jt = lt = null, ag = !1, xd = 0, au = null, f) throw Error(r(300)); l === null || Ln || (l = l.dependencies, l !== null && Zm(l) && (Ln = !0)); } - function DO(l, d, h, w) { + function DO(l, f, h, w) { lt = l; var R = 0; do { - if (iu && (au = null), xf = 0, iu = !1, 25 <= R) throw Error(r(301)); + if (iu && (au = null), xd = 0, iu = !1, 25 <= R) throw Error(r(301)); if (R += 1, Fn = Jt = null, l.updateQueue != null) { var M = l.updateQueue; M.lastEffect = null, M.events = null, M.stores = null, M.memoCache != null && (M.memoCache.index = 0); } - F.H = bM, M = d(h, w); + F.H = bM, M = f(h, w); } while (iu); return M; } function RW() { - var l = F.H, d = l.useState()[0]; - return d = typeof d.then == "function" ? wf(d) : d, l = l.useState()[0], (Jt !== null ? Jt.memoizedState : null) !== l && (lt.flags |= 1024), d; + var l = F.H, f = l.useState()[0]; + return f = typeof f.then == "function" ? wd(f) : f, l = l.useState()[0], (Jt !== null ? Jt.memoizedState : null) !== l && (lt.flags |= 1024), f; } function Fx() { var l = sg !== 0; return sg = 0, l; } - function Lx(l, d, h) { - d.updateQueue = l.updateQueue, d.flags &= -2053, l.lanes &= ~h; + function Lx(l, f, h) { + f.updateQueue = l.updateQueue, f.flags &= -2053, l.lanes &= ~h; } function zx(l) { if (ag) { for (l = l.memoizedState; l !== null; ) { - var d = l.queue; - d !== null && (d.pending = null), l = l.next; + var f = l.queue; + f !== null && (f.pending = null), l = l.next; } ag = !1; } - ha = 0, Fn = Jt = lt = null, iu = !1, xf = sg = 0, au = null; + ha = 0, Fn = Jt = lt = null, iu = !1, xd = sg = 0, au = null; } function Er() { var l = { @@ -3599,9 +3599,9 @@ Error generating stack: ` + w.message + ` var l = lt.alternate; l = l !== null ? l.memoizedState : null; } else l = Jt.next; - var d = Fn === null ? lt.memoizedState : Fn.next; - if (d !== null) - Fn = d, Jt = l; + var f = Fn === null ? lt.memoizedState : Fn.next; + if (f !== null) + Fn = f, Jt = l; else { if (l === null) throw lt.alternate === null ? Error(r(467)) : Error(r(310)); @@ -3618,41 +3618,41 @@ Error generating stack: ` + w.message + ` function lg() { return { lastEffect: null, events: null, stores: null, memoCache: null }; } - function wf(l) { - var d = xf; - return xf += 1, au === null && (au = []), l = TO(au, l, d), d = lt, (Fn === null ? d.memoizedState : Fn.next) === null && (d = d.alternate, F.H = d === null || d.memoizedState === null ? vM : Qx), l; + function wd(l) { + var f = xd; + return xd += 1, au === null && (au = []), l = TO(au, l, f), f = lt, (Fn === null ? f.memoizedState : Fn.next) === null && (f = f.alternate, F.H = f === null || f.memoizedState === null ? vM : Qx), l; } function cg(l) { if (l !== null && typeof l == "object") { - if (typeof l.then == "function") return wf(l); + if (typeof l.then == "function") return wd(l); if (l.$$typeof === _) return or(l); } throw Error(r(438, String(l))); } function Bx(l) { - var d = null, h = lt.updateQueue; - if (h !== null && (d = h.memoCache), d == null) { + var f = null, h = lt.updateQueue; + if (h !== null && (f = h.memoCache), f == null) { var w = lt.alternate; - w !== null && (w = w.updateQueue, w !== null && (w = w.memoCache, w != null && (d = { + w !== null && (w = w.updateQueue, w !== null && (w = w.memoCache, w != null && (f = { data: w.data.map(function(R) { return R.slice(); }), index: 0 }))); } - if (d == null && (d = { data: [], index: 0 }), h === null && (h = lg(), lt.updateQueue = h), h.memoCache = d, h = d.data[d.index], h === void 0) - for (h = d.data[d.index] = Array(l), w = 0; w < l; w++) + if (f == null && (f = { data: [], index: 0 }), h === null && (h = lg(), lt.updateQueue = h), h.memoCache = f, h = f.data[f.index], h === void 0) + for (h = f.data[f.index] = Array(l), w = 0; w < l; w++) h[w] = $; - return d.index++, h; + return f.index++, h; } - function ma(l, d) { - return typeof d == "function" ? d(l) : d; + function ma(l, f) { + return typeof f == "function" ? f(l) : f; } function ug(l) { - var d = Pn(); - return Ux(d, Jt, l); + var f = Pn(); + return Ux(f, Jt, l); } - function Ux(l, d, h) { + function Ux(l, f, h) { var w = l.queue; if (w === null) throw Error(r(311)); w.lastRenderedReducer = h; @@ -3662,12 +3662,12 @@ Error generating stack: ` + w.message + ` var q = R.next; R.next = M.next, M.next = q; } - d.baseQueue = R = M, w.pending = null; + f.baseQueue = R = M, w.pending = null; } if (M = l.baseState, R === null) l.memoizedState = M; else { - d = R.next; - var Z = q = null, re = null, pe = d, ve = !1; + f = R.next; + var Z = q = null, re = null, pe = f, ve = !1; do { var we = pe.lane & -536870913; if (we !== pe.lane ? (Ct & we) === we : (ha & we) === we) { @@ -3707,7 +3707,7 @@ Error generating stack: ` + w.message + ` next: null }, re === null ? (Z = re = he, q = M) : re = re.next = he, lt.lanes |= we, Cs |= we; pe = pe.next; - } while (pe !== null && pe !== d); + } while (pe !== null && pe !== f); if (re === null ? q = M : re.next = Z, !Kr(M, l.memoizedState) && (Ln = !0, ve && (h = tu, h !== null))) throw h; l.memoizedState = M, l.baseState = q, l.baseQueue = re, w.lastRenderedState = M; @@ -3715,33 +3715,33 @@ Error generating stack: ` + w.message + ` return R === null && (w.lanes = 0), [l.memoizedState, w.dispatch]; } function Vx(l) { - var d = Pn(), h = d.queue; + var f = Pn(), h = f.queue; if (h === null) throw Error(r(311)); h.lastRenderedReducer = l; - var w = h.dispatch, R = h.pending, M = d.memoizedState; + var w = h.dispatch, R = h.pending, M = f.memoizedState; if (R !== null) { h.pending = null; var q = R = R.next; do M = l(M, q.action), q = q.next; while (q !== R); - Kr(M, d.memoizedState) || (Ln = !0), d.memoizedState = M, d.baseQueue === null && (d.baseState = M), h.lastRenderedState = M; + Kr(M, f.memoizedState) || (Ln = !0), f.memoizedState = M, f.baseQueue === null && (f.baseState = M), h.lastRenderedState = M; } return [M, w]; } - function FO(l, d, h) { + function FO(l, f, h) { var w = lt, R = Pn(), M = At; if (M) { if (h === void 0) throw Error(r(407)); h = h(); - } else h = d(); + } else h = f(); var q = !Kr( (Jt || R).memoizedState, h ); if (q && (R.memoizedState = h, Ln = !0), R = R.queue, Wx(BO.bind(null, w, R, l), [ l - ]), R.getSnapshot !== d || q || Fn !== null && Fn.memoizedState.tag & 1) { + ]), R.getSnapshot !== f || q || Fn !== null && Fn.memoizedState.tag & 1) { if (w.flags |= 2048, su( 9, { destroy: void 0 }, @@ -3750,41 +3750,41 @@ Error generating stack: ` + w.message + ` w, R, h, - d + f ), null ), sn === null) throw Error(r(349)); - M || (ha & 127) !== 0 || LO(w, d, h); + M || (ha & 127) !== 0 || LO(w, f, h); } return h; } - function LO(l, d, h) { - l.flags |= 16384, l = { getSnapshot: d, value: h }, d = lt.updateQueue, d === null ? (d = lg(), lt.updateQueue = d, d.stores = [l]) : (h = d.stores, h === null ? d.stores = [l] : h.push(l)); + function LO(l, f, h) { + l.flags |= 16384, l = { getSnapshot: f, value: h }, f = lt.updateQueue, f === null ? (f = lg(), lt.updateQueue = f, f.stores = [l]) : (h = f.stores, h === null ? f.stores = [l] : h.push(l)); } - function zO(l, d, h, w) { - d.value = h, d.getSnapshot = w, UO(d) && VO(l); + function zO(l, f, h, w) { + f.value = h, f.getSnapshot = w, UO(f) && VO(l); } - function BO(l, d, h) { + function BO(l, f, h) { return h(function() { - UO(d) && VO(l); + UO(f) && VO(l); }); } function UO(l) { - var d = l.getSnapshot; + var f = l.getSnapshot; l = l.value; try { - var h = d(); + var h = f(); return !Kr(l, h); } catch { return !0; } } function VO(l) { - var d = kl(l, 2); - d !== null && Fr(d, l, 2); + var f = kl(l, 2); + f !== null && Fr(f, l, 2); } function Hx(l) { - var d = Er(); + var f = Er(); if (typeof l == "function") { var h = l; if (l = h(), $l) { @@ -3796,24 +3796,24 @@ Error generating stack: ` + w.message + ` } } } - return d.memoizedState = d.baseState = l, d.queue = { + return f.memoizedState = f.baseState = l, f.queue = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: ma, lastRenderedState: l - }, d; + }, f; } - function HO(l, d, h, w) { + function HO(l, f, h, w) { return l.baseState = h, Ux( l, Jt, typeof w == "function" ? w : ma ); } - function OW(l, d, h, w, R) { + function OW(l, f, h, w, R) { if (pg(l)) throw Error(r(485)); - if (l = d.action, l !== null) { + if (l = f.action, l !== null) { var M = { payload: R, action: l, @@ -3827,60 +3827,60 @@ Error generating stack: ` + w.message + ` M.listeners.push(q); } }; - F.T !== null ? h(!0) : M.isTransition = !1, w(M), h = d.pending, h === null ? (M.next = d.pending = M, qO(d, M)) : (M.next = h.next, d.pending = h.next = M); + F.T !== null ? h(!0) : M.isTransition = !1, w(M), h = f.pending, h === null ? (M.next = f.pending = M, qO(f, M)) : (M.next = h.next, f.pending = h.next = M); } } - function qO(l, d) { - var h = d.action, w = d.payload, R = l.state; - if (d.isTransition) { + function qO(l, f) { + var h = f.action, w = f.payload, R = l.state; + if (f.isTransition) { var M = F.T, q = {}; F.T = q; try { var Z = h(R, w), re = F.S; - re !== null && re(q, Z), WO(l, d, Z); + re !== null && re(q, Z), WO(l, f, Z); } catch (pe) { - qx(l, d, pe); + qx(l, f, pe); } finally { M !== null && q.types !== null && (M.types = q.types), F.T = M; } } else try { - M = h(R, w), WO(l, d, M); + M = h(R, w), WO(l, f, M); } catch (pe) { - qx(l, d, pe); + qx(l, f, pe); } } - function WO(l, d, h) { + function WO(l, f, h) { h !== null && typeof h == "object" && typeof h.then == "function" ? h.then( function(w) { - GO(l, d, w); + GO(l, f, w); }, function(w) { - return qx(l, d, w); + return qx(l, f, w); } - ) : GO(l, d, h); + ) : GO(l, f, h); } - function GO(l, d, h) { - d.status = "fulfilled", d.value = h, KO(d), l.state = h, d = l.pending, d !== null && (h = d.next, h === d ? l.pending = null : (h = h.next, d.next = h, qO(l, h))); + function GO(l, f, h) { + f.status = "fulfilled", f.value = h, KO(f), l.state = h, f = l.pending, f !== null && (h = f.next, h === f ? l.pending = null : (h = h.next, f.next = h, qO(l, h))); } - function qx(l, d, h) { + function qx(l, f, h) { var w = l.pending; if (l.pending = null, w !== null) { w = w.next; do - d.status = "rejected", d.reason = h, KO(d), d = d.next; - while (d !== w); + f.status = "rejected", f.reason = h, KO(f), f = f.next; + while (f !== w); } l.action = null; } function KO(l) { l = l.listeners; - for (var d = 0; d < l.length; d++) (0, l[d])(); + for (var f = 0; f < l.length; f++) (0, l[f])(); } - function YO(l, d) { - return d; + function YO(l, f) { + return f; } - function XO(l, d) { + function XO(l, f) { if (At) { var h = sn.formState; if (h !== null) { @@ -3914,15 +3914,15 @@ Error generating stack: ` + w.message + ` } w = !1; } - w && (d = h[0]); + w && (f = h[0]); } } - return h = Er(), h.memoizedState = h.baseState = d, w = { + return h = Er(), h.memoizedState = h.baseState = f, w = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: YO, - lastRenderedState: d + lastRenderedState: f }, h.queue = w, h = mM.bind( null, lt, @@ -3933,7 +3933,7 @@ Error generating stack: ` + w.message + ` !1, w.queue ), w = Er(), R = { - state: d, + state: f, dispatch: null, action: l, pending: null @@ -3943,128 +3943,128 @@ Error generating stack: ` + w.message + ` R, M, h - ), R.dispatch = h, w.memoizedState = l, [d, h, !1]; + ), R.dispatch = h, w.memoizedState = l, [f, h, !1]; } function ZO(l) { - var d = Pn(); - return QO(d, Jt, l); + var f = Pn(); + return QO(f, Jt, l); } - function QO(l, d, h) { - if (d = Ux( + function QO(l, f, h) { + if (f = Ux( l, - d, + f, YO - )[0], l = ug(ma)[0], typeof d == "object" && d !== null && typeof d.then == "function") + )[0], l = ug(ma)[0], typeof f == "object" && f !== null && typeof f.then == "function") try { - var w = wf(d); + var w = wd(f); } catch (q) { throw q === nu ? eg : q; } - else w = d; - d = Pn(); - var R = d.queue, M = R.dispatch; - return h !== d.memoizedState && (lt.flags |= 2048, su( + else w = f; + f = Pn(); + var R = f.queue, M = R.dispatch; + return h !== f.memoizedState && (lt.flags |= 2048, su( 9, { destroy: void 0 }, MW.bind(null, R, h), null )), [w, M, l]; } - function MW(l, d) { - l.action = d; + function MW(l, f) { + l.action = f; } function JO(l) { - var d = Pn(), h = Jt; + var f = Pn(), h = Jt; if (h !== null) - return QO(d, h, l); - Pn(), d = d.memoizedState, h = Pn(); + return QO(f, h, l); + Pn(), f = f.memoizedState, h = Pn(); var w = h.queue.dispatch; - return h.memoizedState = l, [d, w, !1]; + return h.memoizedState = l, [f, w, !1]; } - function su(l, d, h, w) { - return l = { tag: l, create: h, deps: w, inst: d, next: null }, d = lt.updateQueue, d === null && (d = lg(), lt.updateQueue = d), h = d.lastEffect, h === null ? d.lastEffect = l.next = l : (w = h.next, h.next = l, l.next = w, d.lastEffect = l), l; + function su(l, f, h, w) { + return l = { tag: l, create: h, deps: w, inst: f, next: null }, f = lt.updateQueue, f === null && (f = lg(), lt.updateQueue = f), h = f.lastEffect, h === null ? f.lastEffect = l.next = l : (w = h.next, h.next = l, l.next = w, f.lastEffect = l), l; } function eM() { return Pn().memoizedState; } - function dg(l, d, h, w) { + function fg(l, f, h, w) { var R = Er(); lt.flags |= l, R.memoizedState = su( - 1 | d, + 1 | f, { destroy: void 0 }, h, w === void 0 ? null : w ); } - function fg(l, d, h, w) { + function dg(l, f, h, w) { var R = Pn(); w = w === void 0 ? null : w; var M = R.memoizedState.inst; - Jt !== null && w !== null && jx(w, Jt.memoizedState.deps) ? R.memoizedState = su(d, M, h, w) : (lt.flags |= l, R.memoizedState = su( - 1 | d, + Jt !== null && w !== null && jx(w, Jt.memoizedState.deps) ? R.memoizedState = su(f, M, h, w) : (lt.flags |= l, R.memoizedState = su( + 1 | f, M, h, w )); } - function tM(l, d) { - dg(8390656, 8, l, d); + function tM(l, f) { + fg(8390656, 8, l, f); } - function Wx(l, d) { - fg(2048, 8, l, d); + function Wx(l, f) { + dg(2048, 8, l, f); } function NW(l) { lt.flags |= 4; - var d = lt.updateQueue; - if (d === null) - d = lg(), lt.updateQueue = d, d.events = [l]; + var f = lt.updateQueue; + if (f === null) + f = lg(), lt.updateQueue = f, f.events = [l]; else { - var h = d.events; - h === null ? d.events = [l] : h.push(l); + var h = f.events; + h === null ? f.events = [l] : h.push(l); } } function nM(l) { - var d = Pn().memoizedState; - return NW({ ref: d, nextImpl: l }), function() { + var f = Pn().memoizedState; + return NW({ ref: f, nextImpl: l }), function() { if ((zt & 2) !== 0) throw Error(r(440)); - return d.impl.apply(void 0, arguments); + return f.impl.apply(void 0, arguments); }; } - function rM(l, d) { - return fg(4, 2, l, d); + function rM(l, f) { + return dg(4, 2, l, f); } - function oM(l, d) { - return fg(4, 4, l, d); + function oM(l, f) { + return dg(4, 4, l, f); } - function iM(l, d) { - if (typeof d == "function") { + function iM(l, f) { + if (typeof f == "function") { l = l(); - var h = d(l); + var h = f(l); return function() { - typeof h == "function" ? h() : d(null); + typeof h == "function" ? h() : f(null); }; } - if (d != null) - return l = l(), d.current = l, function() { - d.current = null; + if (f != null) + return l = l(), f.current = l, function() { + f.current = null; }; } - function aM(l, d, h) { - h = h != null ? h.concat([l]) : null, fg(4, 4, iM.bind(null, d, l), h); + function aM(l, f, h) { + h = h != null ? h.concat([l]) : null, dg(4, 4, iM.bind(null, f, l), h); } function Gx() { } - function sM(l, d) { + function sM(l, f) { var h = Pn(); - d = d === void 0 ? null : d; + f = f === void 0 ? null : f; var w = h.memoizedState; - return d !== null && jx(d, w[1]) ? w[0] : (h.memoizedState = [l, d], l); + return f !== null && jx(f, w[1]) ? w[0] : (h.memoizedState = [l, f], l); } - function lM(l, d) { + function lM(l, f) { var h = Pn(); - d = d === void 0 ? null : d; + f = f === void 0 ? null : f; var w = h.memoizedState; - if (d !== null && jx(d, w[1])) + if (f !== null && jx(f, w[1])) return w[0]; if (w = l(), $l) { xn(!0); @@ -4074,19 +4074,19 @@ Error generating stack: ` + w.message + ` xn(!1); } } - return h.memoizedState = [w, d], w; + return h.memoizedState = [w, f], w; } - function Kx(l, d, h) { - return h === void 0 || (ha & 1073741824) !== 0 && (Ct & 261930) === 0 ? l.memoizedState = d : (l.memoizedState = h, l = cN(), lt.lanes |= l, Cs |= l, h); + function Kx(l, f, h) { + return h === void 0 || (ha & 1073741824) !== 0 && (Ct & 261930) === 0 ? l.memoizedState = f : (l.memoizedState = h, l = cN(), lt.lanes |= l, Cs |= l, h); } - function cM(l, d, h, w) { - return Kr(h, d) ? h : ou.current !== null ? (l = Kx(l, h, w), Kr(l, d) || (Ln = !0), l) : (ha & 42) === 0 || (ha & 1073741824) !== 0 && (Ct & 261930) === 0 ? (Ln = !0, l.memoizedState = h) : (l = cN(), lt.lanes |= l, Cs |= l, d); + function cM(l, f, h, w) { + return Kr(h, f) ? h : ou.current !== null ? (l = Kx(l, h, w), Kr(l, f) || (Ln = !0), l) : (ha & 42) === 0 || (ha & 1073741824) !== 0 && (Ct & 261930) === 0 ? (Ln = !0, l.memoizedState = h) : (l = cN(), lt.lanes |= l, Cs |= l, f); } - function uM(l, d, h, w, R) { + function uM(l, f, h, w, R) { var M = K.p; K.p = M !== 0 && 8 > M ? M : 8; var q = F.T, Z = {}; - F.T = Z, Zx(l, !1, d, h); + F.T = Z, Zx(l, !1, f, h); try { var re = R(), pe = F.S; if (pe !== null && pe(Z, re), re !== null && typeof re == "object" && typeof re.then == "function") { @@ -4094,23 +4094,23 @@ Error generating stack: ` + w.message + ` re, w ); - Sf( + Sd( l, - d, + f, ve, eo(l) ); } else - Sf( + Sd( l, - d, + f, w, eo(l) ); } catch (we) { - Sf( + Sd( l, - d, + f, { then: function() { }, status: "rejected", reason: we }, eo() @@ -4121,23 +4121,23 @@ Error generating stack: ` + w.message + ` } function PW() { } - function Yx(l, d, h, w) { + function Yx(l, f, h, w) { if (l.tag !== 5) throw Error(r(476)); - var R = dM(l).queue; + var R = fM(l).queue; uM( l, R, - d, + f, W, h === null ? PW : function() { - return fM(l), h(w); + return dM(l), h(w); } ); } - function dM(l) { - var d = l.memoizedState; - if (d !== null) return d; - d = { + function fM(l) { + var f = l.memoizedState; + if (f !== null) return f; + f = { memoizedState: W, baseState: W, baseQueue: null, @@ -4151,7 +4151,7 @@ Error generating stack: ` + w.message + ` next: null }; var h = {}; - return d.next = { + return f.next = { memoizedState: h, baseState: h, baseQueue: null, @@ -4163,19 +4163,19 @@ Error generating stack: ` + w.message + ` lastRenderedState: h }, next: null - }, l.memoizedState = d, l = l.alternate, l !== null && (l.memoizedState = d), d; + }, l.memoizedState = f, l = l.alternate, l !== null && (l.memoizedState = f), f; } - function fM(l) { - var d = dM(l); - d.next === null && (d = l.alternate.memoizedState), Sf( + function dM(l) { + var f = fM(l); + f.next === null && (f = l.alternate.memoizedState), Sd( l, - d.next.queue, + f.next.queue, {}, eo() ); } function Xx() { - return or(Lf); + return or(Ld); } function pM() { return Pn().memoizedState; @@ -4184,20 +4184,20 @@ Error generating stack: ` + w.message + ` return Pn().memoizedState; } function IW(l) { - for (var d = l.return; d !== null; ) { - switch (d.tag) { + for (var f = l.return; f !== null; ) { + switch (f.tag) { case 24: case 3: var h = eo(); l = bs(h); - var w = xs(d, l, h); - w !== null && (Fr(w, d, h), yf(w, d, h)), d = { cache: Cx() }, l.payload = d; + var w = xs(f, l, h); + w !== null && (Fr(w, f, h), yd(w, f, h)), f = { cache: Cx() }, l.payload = f; return; } - d = d.return; + f = f.return; } } - function $W(l, d, h) { + function $W(l, f, h) { var w = eo(); h = { lane: w, @@ -4207,13 +4207,13 @@ Error generating stack: ` + w.message + ` hasEagerState: !1, eagerState: null, next: null - }, pg(l) ? gM(d, h) : (h = hx(l, d, h, w), h !== null && (Fr(h, l, w), yM(h, d, w))); + }, pg(l) ? gM(f, h) : (h = hx(l, f, h, w), h !== null && (Fr(h, l, w), yM(h, f, w))); } - function mM(l, d, h) { + function mM(l, f, h) { var w = eo(); - Sf(l, d, h, w); + Sd(l, f, h, w); } - function Sf(l, d, h, w) { + function Sd(l, f, h, w) { var R = { lane: w, revertLane: 0, @@ -4223,22 +4223,22 @@ Error generating stack: ` + w.message + ` eagerState: null, next: null }; - if (pg(l)) gM(d, R); + if (pg(l)) gM(f, R); else { var M = l.alternate; - if (l.lanes === 0 && (M === null || M.lanes === 0) && (M = d.lastRenderedReducer, M !== null)) + if (l.lanes === 0 && (M === null || M.lanes === 0) && (M = f.lastRenderedReducer, M !== null)) try { - var q = d.lastRenderedState, Z = M(q, h); + var q = f.lastRenderedState, Z = M(q, h); if (R.hasEagerState = !0, R.eagerState = Z, Kr(Z, q)) - return Gm(l, d, R, 0), sn === null && Wm(), !1; + return Gm(l, f, R, 0), sn === null && Wm(), !1; } catch { } - if (h = hx(l, d, R, w), h !== null) - return Fr(h, l, w), yM(h, d, w), !0; + if (h = hx(l, f, R, w), h !== null) + return Fr(h, l, w), yM(h, f, w), !0; } return !1; } - function Zx(l, d, h, w) { + function Zx(l, f, h, w) { if (w = { lane: 2, revertLane: Rw(), @@ -4248,31 +4248,31 @@ Error generating stack: ` + w.message + ` eagerState: null, next: null }, pg(l)) { - if (d) throw Error(r(479)); + if (f) throw Error(r(479)); } else - d = hx( + f = hx( l, h, w, 2 - ), d !== null && Fr(d, l, 2); + ), f !== null && Fr(f, l, 2); } function pg(l) { - var d = l.alternate; - return l === lt || d !== null && d === lt; + var f = l.alternate; + return l === lt || f !== null && f === lt; } - function gM(l, d) { + function gM(l, f) { iu = ag = !0; var h = l.pending; - h === null ? d.next = d : (d.next = h.next, h.next = d), l.pending = d; + h === null ? f.next = f : (f.next = h.next, h.next = f), l.pending = f; } - function yM(l, d, h) { + function yM(l, f, h) { if ((h & 4194048) !== 0) { - var w = d.lanes; - w &= l.pendingLanes, h |= w, d.lanes = h, km(l, h); + var w = f.lanes; + w &= l.pendingLanes, h |= w, f.lanes = h, km(l, h); } } - var _f = { + var _d = { readContext: or, use: cg, useCallback: kn, @@ -4297,35 +4297,35 @@ Error generating stack: ` + w.message + ` useMemoCache: kn, useCacheRefresh: kn }; - _f.useEffectEvent = kn; + _d.useEffectEvent = kn; var vM = { readContext: or, use: cg, - useCallback: function(l, d) { + useCallback: function(l, f) { return Er().memoizedState = [ l, - d === void 0 ? null : d + f === void 0 ? null : f ], l; }, useContext: or, useEffect: tM, - useImperativeHandle: function(l, d, h) { - h = h != null ? h.concat([l]) : null, dg( + useImperativeHandle: function(l, f, h) { + h = h != null ? h.concat([l]) : null, fg( 4194308, 4, - iM.bind(null, d, l), + iM.bind(null, f, l), h ); }, - useLayoutEffect: function(l, d) { - return dg(4194308, 4, l, d); + useLayoutEffect: function(l, f) { + return fg(4194308, 4, l, f); }, - useInsertionEffect: function(l, d) { - dg(4, 2, l, d); + useInsertionEffect: function(l, f) { + fg(4, 2, l, f); }, - useMemo: function(l, d) { + useMemo: function(l, f) { var h = Er(); - d = d === void 0 ? null : d; + f = f === void 0 ? null : f; var w = l(); if ($l) { xn(!0); @@ -4335,21 +4335,21 @@ Error generating stack: ` + w.message + ` xn(!1); } } - return h.memoizedState = [w, d], w; + return h.memoizedState = [w, f], w; }, - useReducer: function(l, d, h) { + useReducer: function(l, f, h) { var w = Er(); if (h !== void 0) { - var R = h(d); + var R = h(f); if ($l) { xn(!0); try { - h(d); + h(f); } finally { xn(!1); } } - } else R = d; + } else R = f; return w.memoizedState = w.baseState = R, l = { pending: null, lanes: 0, @@ -4363,18 +4363,18 @@ Error generating stack: ` + w.message + ` ), [w.memoizedState, l]; }, useRef: function(l) { - var d = Er(); - return l = { current: l }, d.memoizedState = l; + var f = Er(); + return l = { current: l }, f.memoizedState = l; }, useState: function(l) { l = Hx(l); - var d = l.queue, h = mM.bind(null, lt, d); - return d.dispatch = h, [l.memoizedState, h]; + var f = l.queue, h = mM.bind(null, lt, f); + return f.dispatch = h, [l.memoizedState, h]; }, useDebugValue: Gx, - useDeferredValue: function(l, d) { + useDeferredValue: function(l, f) { var h = Er(); - return Kx(h, l, d); + return Kx(h, l, f); }, useTransition: function() { var l = Hx(!1); @@ -4386,19 +4386,19 @@ Error generating stack: ` + w.message + ` !1 ), Er().memoizedState = l, [!1, l]; }, - useSyncExternalStore: function(l, d, h) { + useSyncExternalStore: function(l, f, h) { var w = lt, R = Er(); if (At) { if (h === void 0) throw Error(r(407)); h = h(); } else { - if (h = d(), sn === null) + if (h = f(), sn === null) throw Error(r(349)); - (Ct & 127) !== 0 || LO(w, d, h); + (Ct & 127) !== 0 || LO(w, f, h); } R.memoizedState = h; - var M = { value: h, getSnapshot: d }; + var M = { value: h, getSnapshot: f }; return R.queue = M, tM(BO.bind(null, w, M, l), [ l ]), w.flags |= 2048, su( @@ -4409,26 +4409,26 @@ Error generating stack: ` + w.message + ` w, M, h, - d + f ), null ), h; }, useId: function() { - var l = Er(), d = sn.identifierPrefix; + var l = Er(), f = sn.identifierPrefix; if (At) { - var h = pi, w = fi; - h = (w & ~(1 << 32 - Mt(w) - 1)).toString(32) + h, d = "_" + d + "R_" + h, h = sg++, 0 < h && (d += "H" + h.toString(32)), d += "_"; + var h = pi, w = di; + h = (w & ~(1 << 32 - Mt(w) - 1)).toString(32) + h, f = "_" + f + "R_" + h, h = sg++, 0 < h && (f += "H" + h.toString(32)), f += "_"; } else - h = AW++, d = "_" + d + "r_" + h.toString(32) + "_"; - return l.memoizedState = d; + h = AW++, f = "_" + f + "r_" + h.toString(32) + "_"; + return l.memoizedState = f; }, useHostTransitionStatus: Xx, useFormState: XO, useActionState: XO, useOptimistic: function(l) { - var d = Er(); - d.memoizedState = d.baseState = l; + var f = Er(); + f.memoizedState = f.baseState = l; var h = { pending: null, lanes: 0, @@ -4436,12 +4436,12 @@ Error generating stack: ` + w.message + ` lastRenderedReducer: null, lastRenderedState: null }; - return d.queue = h, d = Zx.bind( + return f.queue = h, f = Zx.bind( null, lt, !0, h - ), h.dispatch = d, [l, d]; + ), h.dispatch = f, [l, f]; }, useMemoCache: Bx, useCacheRefresh: function() { @@ -4451,8 +4451,8 @@ Error generating stack: ` + w.message + ` ); }, useEffectEvent: function(l) { - var d = Er(), h = { impl: l }; - return d.memoizedState = h, function() { + var f = Er(), h = { impl: l }; + return f.memoizedState = h, function() { if ((zt & 2) !== 0) throw Error(r(440)); return h.impl.apply(void 0, arguments); @@ -4474,20 +4474,20 @@ Error generating stack: ` + w.message + ` return ug(ma); }, useDebugValue: Gx, - useDeferredValue: function(l, d) { + useDeferredValue: function(l, f) { var h = Pn(); return cM( h, Jt.memoizedState, l, - d + f ); }, useTransition: function() { - var l = ug(ma)[0], d = Pn().memoizedState; + var l = ug(ma)[0], f = Pn().memoizedState; return [ - typeof l == "boolean" ? l : wf(l), - d + typeof l == "boolean" ? l : wd(l), + f ]; }, useSyncExternalStore: FO, @@ -4495,9 +4495,9 @@ Error generating stack: ` + w.message + ` useHostTransitionStatus: Xx, useFormState: ZO, useActionState: ZO, - useOptimistic: function(l, d) { + useOptimistic: function(l, f) { var h = Pn(); - return HO(h, Jt, l, d); + return HO(h, Jt, l, f); }, useMemoCache: Bx, useCacheRefresh: hM @@ -4519,20 +4519,20 @@ Error generating stack: ` + w.message + ` return Vx(ma); }, useDebugValue: Gx, - useDeferredValue: function(l, d) { + useDeferredValue: function(l, f) { var h = Pn(); - return Jt === null ? Kx(h, l, d) : cM( + return Jt === null ? Kx(h, l, f) : cM( h, Jt.memoizedState, l, - d + f ); }, useTransition: function() { - var l = Vx(ma)[0], d = Pn().memoizedState; + var l = Vx(ma)[0], f = Pn().memoizedState; return [ - typeof l == "boolean" ? l : wf(l), - d + typeof l == "boolean" ? l : wd(l), + f ]; }, useSyncExternalStore: FO, @@ -4540,49 +4540,49 @@ Error generating stack: ` + w.message + ` useHostTransitionStatus: Xx, useFormState: JO, useActionState: JO, - useOptimistic: function(l, d) { + useOptimistic: function(l, f) { var h = Pn(); - return Jt !== null ? HO(h, Jt, l, d) : (h.baseState = l, [l, h.queue.dispatch]); + return Jt !== null ? HO(h, Jt, l, f) : (h.baseState = l, [l, h.queue.dispatch]); }, useMemoCache: Bx, useCacheRefresh: hM }; bM.useEffectEvent = nM; - function Jx(l, d, h, w) { - d = l.memoizedState, h = h(w, d), h = h == null ? d : p({}, d, h), l.memoizedState = h, l.lanes === 0 && (l.updateQueue.baseState = h); + function Jx(l, f, h, w) { + f = l.memoizedState, h = h(w, f), h = h == null ? f : p({}, f, h), l.memoizedState = h, l.lanes === 0 && (l.updateQueue.baseState = h); } var ew = { - enqueueSetState: function(l, d, h) { + enqueueSetState: function(l, f, h) { l = l._reactInternals; var w = eo(), R = bs(w); - R.payload = d, h != null && (R.callback = h), d = xs(l, R, w), d !== null && (Fr(d, l, w), yf(d, l, w)); + R.payload = f, h != null && (R.callback = h), f = xs(l, R, w), f !== null && (Fr(f, l, w), yd(f, l, w)); }, - enqueueReplaceState: function(l, d, h) { + enqueueReplaceState: function(l, f, h) { l = l._reactInternals; var w = eo(), R = bs(w); - R.tag = 1, R.payload = d, h != null && (R.callback = h), d = xs(l, R, w), d !== null && (Fr(d, l, w), yf(d, l, w)); + R.tag = 1, R.payload = f, h != null && (R.callback = h), f = xs(l, R, w), f !== null && (Fr(f, l, w), yd(f, l, w)); }, - enqueueForceUpdate: function(l, d) { + enqueueForceUpdate: function(l, f) { l = l._reactInternals; var h = eo(), w = bs(h); - w.tag = 2, d != null && (w.callback = d), d = xs(l, w, h), d !== null && (Fr(d, l, h), yf(d, l, h)); + w.tag = 2, f != null && (w.callback = f), f = xs(l, w, h), f !== null && (Fr(f, l, h), yd(f, l, h)); } }; - function xM(l, d, h, w, R, M, q) { - return l = l.stateNode, typeof l.shouldComponentUpdate == "function" ? l.shouldComponentUpdate(w, M, q) : d.prototype && d.prototype.isPureReactComponent ? !cf(h, w) || !cf(R, M) : !0; + function xM(l, f, h, w, R, M, q) { + return l = l.stateNode, typeof l.shouldComponentUpdate == "function" ? l.shouldComponentUpdate(w, M, q) : f.prototype && f.prototype.isPureReactComponent ? !cd(h, w) || !cd(R, M) : !0; } - function wM(l, d, h, w) { - l = d.state, typeof d.componentWillReceiveProps == "function" && d.componentWillReceiveProps(h, w), typeof d.UNSAFE_componentWillReceiveProps == "function" && d.UNSAFE_componentWillReceiveProps(h, w), d.state !== l && ew.enqueueReplaceState(d, d.state, null); + function wM(l, f, h, w) { + l = f.state, typeof f.componentWillReceiveProps == "function" && f.componentWillReceiveProps(h, w), typeof f.UNSAFE_componentWillReceiveProps == "function" && f.UNSAFE_componentWillReceiveProps(h, w), f.state !== l && ew.enqueueReplaceState(f, f.state, null); } - function jl(l, d) { - var h = d; - if ("ref" in d) { + function jl(l, f) { + var h = f; + if ("ref" in f) { h = {}; - for (var w in d) - w !== "ref" && (h[w] = d[w]); + for (var w in f) + w !== "ref" && (h[w] = f[w]); } if (l = l.defaultProps) { - h === d && (h = p({}, h)); + h === f && (h = p({}, h)); for (var R in l) h[R] === void 0 && (h[R] = l[R]); } @@ -4597,22 +4597,22 @@ Error generating stack: ` + w.message + ` function EM(l) { qm(l); } - function hg(l, d) { + function hg(l, f) { try { var h = l.onUncaughtError; - h(d.value, { componentStack: d.stack }); + h(f.value, { componentStack: f.stack }); } catch (w) { setTimeout(function() { throw w; }); } } - function CM(l, d, h) { + function CM(l, f, h) { try { var w = l.onCaughtError; w(h.value, { componentStack: h.stack, - errorBoundary: d.tag === 1 ? d.stateNode : null + errorBoundary: f.tag === 1 ? f.stateNode : null }); } catch (R) { setTimeout(function() { @@ -4620,37 +4620,37 @@ Error generating stack: ` + w.message + ` }); } } - function tw(l, d, h) { + function tw(l, f, h) { return h = bs(h), h.tag = 3, h.payload = { element: null }, h.callback = function() { - hg(l, d); + hg(l, f); }, h; } function kM(l) { return l = bs(l), l.tag = 3, l; } - function TM(l, d, h, w) { + function TM(l, f, h, w) { var R = h.type.getDerivedStateFromError; if (typeof R == "function") { var M = w.value; l.payload = function() { return R(M); }, l.callback = function() { - CM(d, h, w); + CM(f, h, w); }; } var q = h.stateNode; q !== null && typeof q.componentDidCatch == "function" && (l.callback = function() { - CM(d, h, w), typeof R != "function" && (ks === null ? ks = /* @__PURE__ */ new Set([this]) : ks.add(this)); + CM(f, h, w), typeof R != "function" && (ks === null ? ks = /* @__PURE__ */ new Set([this]) : ks.add(this)); var Z = w.stack; this.componentDidCatch(w.value, { componentStack: Z !== null ? Z : "" }); }); } - function jW(l, d, h, w, R) { + function jW(l, f, h, w, R) { if (h.flags |= 32768, w !== null && typeof w == "object" && typeof w.then == "function") { - if (d = h.alternate, d !== null && Jc( - d, + if (f = h.alternate, f !== null && Jc( + f, h, R, !0 @@ -4658,37 +4658,37 @@ Error generating stack: ` + w.message + ` switch (h.tag) { case 31: case 13: - return _o === null ? kg() : h.alternate === null && Tn === 0 && (Tn = 3), h.flags &= -257, h.flags |= 65536, h.lanes = R, w === tg ? h.flags |= 16384 : (d = h.updateQueue, d === null ? h.updateQueue = /* @__PURE__ */ new Set([w]) : d.add(w), kw(l, w, R)), !1; + return _o === null ? kg() : h.alternate === null && Tn === 0 && (Tn = 3), h.flags &= -257, h.flags |= 65536, h.lanes = R, w === tg ? h.flags |= 16384 : (f = h.updateQueue, f === null ? h.updateQueue = /* @__PURE__ */ new Set([w]) : f.add(w), kw(l, w, R)), !1; case 22: - return h.flags |= 65536, w === tg ? h.flags |= 16384 : (d = h.updateQueue, d === null ? (d = { + return h.flags |= 65536, w === tg ? h.flags |= 16384 : (f = h.updateQueue, f === null ? (f = { transitions: null, markerInstances: null, retryQueue: /* @__PURE__ */ new Set([w]) - }, h.updateQueue = d) : (h = d.retryQueue, h === null ? d.retryQueue = /* @__PURE__ */ new Set([w]) : h.add(w)), kw(l, w, R)), !1; + }, h.updateQueue = f) : (h = f.retryQueue, h === null ? f.retryQueue = /* @__PURE__ */ new Set([w]) : h.add(w)), kw(l, w, R)), !1; } throw Error(r(435, h.tag)); } return kw(l, w, R), kg(), !1; } if (At) - return d = Xr.current, d !== null ? ((d.flags & 65536) === 0 && (d.flags |= 256), d.flags |= 65536, d.lanes = R, w !== xx && (l = Error(r(422), { cause: w }), ff(bo(l, h)))) : (w !== xx && (d = Error(r(423), { + return f = Xr.current, f !== null ? ((f.flags & 65536) === 0 && (f.flags |= 256), f.flags |= 65536, f.lanes = R, w !== xx && (l = Error(r(422), { cause: w }), dd(bo(l, h)))) : (w !== xx && (f = Error(r(423), { cause: w - }), ff( - bo(d, h) + }), dd( + bo(f, h) )), l = l.current.alternate, l.flags |= 65536, R &= -R, l.lanes |= R, w = bo(w, h), R = tw( l.stateNode, w, R ), Mx(l, R), Tn !== 4 && (Tn = 2)), !1; var M = Error(r(520), { cause: w }); - if (M = bo(M, h), Mf === null ? Mf = [M] : Mf.push(M), Tn !== 4 && (Tn = 2), d === null) return !0; - w = bo(w, h), h = d; + if (M = bo(M, h), Md === null ? Md = [M] : Md.push(M), Tn !== 4 && (Tn = 2), f === null) return !0; + w = bo(w, h), h = f; do { switch (h.tag) { case 3: return h.flags |= 65536, l = R & -R, h.lanes |= l, l = tw(h.stateNode, w, l), Mx(h, l), !1; case 1: - if (d = h.type, M = h.stateNode, (h.flags & 128) === 0 && (typeof d.getDerivedStateFromError == "function" || M !== null && typeof M.componentDidCatch == "function" && (ks === null || !ks.has(M)))) + if (f = h.type, M = h.stateNode, (h.flags & 128) === 0 && (typeof f.getDerivedStateFromError == "function" || M !== null && typeof M.componentDidCatch == "function" && (ks === null || !ks.has(M)))) return h.flags |= 65536, R &= -R, h.lanes |= R, R = kM(R), TM( R, l, @@ -4701,37 +4701,37 @@ Error generating stack: ` + w.message + ` return !1; } var nw = Error(r(461)), Ln = !1; - function ir(l, d, h, w) { - d.child = l === null ? MO(d, null, h, w) : Il( - d, + function ir(l, f, h, w) { + f.child = l === null ? MO(f, null, h, w) : Il( + f, l.child, h, w ); } - function AM(l, d, h, w, R) { + function AM(l, f, h, w, R) { h = h.render; - var M = d.ref; + var M = f.ref; if ("ref" in w) { var q = {}; for (var Z in w) Z !== "ref" && (q[Z] = w[Z]); } else q = w; - return Ol(d), w = Dx( + return Ol(f), w = Dx( l, - d, + f, h, q, M, R - ), Z = Fx(), l !== null && !Ln ? (Lx(l, d, R), ga(l, d, R)) : (At && Z && vx(d), d.flags |= 1, ir(l, d, w, R), d.child); + ), Z = Fx(), l !== null && !Ln ? (Lx(l, f, R), ga(l, f, R)) : (At && Z && vx(f), f.flags |= 1, ir(l, f, w, R), f.child); } - function RM(l, d, h, w, R) { + function RM(l, f, h, w, R) { if (l === null) { var M = h.type; - return typeof M == "function" && !mx(M) && M.defaultProps === void 0 && h.compare === null ? (d.tag = 15, d.type = M, OM( + return typeof M == "function" && !mx(M) && M.defaultProps === void 0 && h.compare === null ? (f.tag = 15, f.type = M, OM( l, - d, + f, M, w, R @@ -4739,227 +4739,227 @@ Error generating stack: ` + w.message + ` h.type, null, w, - d, - d.mode, + f, + f.mode, R - ), l.ref = d.ref, l.return = d, d.child = l); + ), l.ref = f.ref, l.return = f, f.child = l); } if (M = l.child, !uw(l, R)) { var q = M.memoizedProps; - if (h = h.compare, h = h !== null ? h : cf, h(q, w) && l.ref === d.ref) - return ga(l, d, R); + if (h = h.compare, h = h !== null ? h : cd, h(q, w) && l.ref === f.ref) + return ga(l, f, R); } - return d.flags |= 1, l = ua(M, w), l.ref = d.ref, l.return = d, d.child = l; + return f.flags |= 1, l = ua(M, w), l.ref = f.ref, l.return = f, f.child = l; } - function OM(l, d, h, w, R) { + function OM(l, f, h, w, R) { if (l !== null) { var M = l.memoizedProps; - if (cf(M, w) && l.ref === d.ref) - if (Ln = !1, d.pendingProps = w = M, uw(l, R)) + if (cd(M, w) && l.ref === f.ref) + if (Ln = !1, f.pendingProps = w = M, uw(l, R)) (l.flags & 131072) !== 0 && (Ln = !0); else - return d.lanes = l.lanes, ga(l, d, R); + return f.lanes = l.lanes, ga(l, f, R); } return rw( l, - d, + f, h, w, R ); } - function MM(l, d, h, w) { + function MM(l, f, h, w) { var R = w.children, M = l !== null ? l.memoizedState : null; - if (l === null && d.stateNode === null && (d.stateNode = { + if (l === null && f.stateNode === null && (f.stateNode = { _visibility: 1, _pendingMarkers: null, _retryCache: null, _transitions: null }), w.mode === "hidden") { - if ((d.flags & 128) !== 0) { + if ((f.flags & 128) !== 0) { if (M = M !== null ? M.baseLanes | h : h, l !== null) { - for (w = d.child = l.child, R = 0; w !== null; ) + for (w = f.child = l.child, R = 0; w !== null; ) R = R | w.lanes | w.childLanes, w = w.sibling; w = R & ~M; - } else w = 0, d.child = null; + } else w = 0, f.child = null; return NM( l, - d, + f, M, h, w ); } if ((h & 536870912) !== 0) - d.memoizedState = { baseLanes: 0, cachePool: null }, l !== null && Jm( - d, + f.memoizedState = { baseLanes: 0, cachePool: null }, l !== null && Jm( + f, M !== null ? M.cachePool : null - ), M !== null ? IO(d, M) : Px(), $O(d); + ), M !== null ? IO(f, M) : Px(), $O(f); else - return w = d.lanes = 536870912, NM( + return w = f.lanes = 536870912, NM( l, - d, + f, M !== null ? M.baseLanes | h : h, h, w ); } else - M !== null ? (Jm(d, M.cachePool), IO(d, M), Ss(), d.memoizedState = null) : (l !== null && Jm(d, null), Px(), Ss()); - return ir(l, d, R, h), d.child; + M !== null ? (Jm(f, M.cachePool), IO(f, M), Ss(), f.memoizedState = null) : (l !== null && Jm(f, null), Px(), Ss()); + return ir(l, f, R, h), f.child; } - function Ef(l, d) { - return l !== null && l.tag === 22 || d.stateNode !== null || (d.stateNode = { + function Ed(l, f) { + return l !== null && l.tag === 22 || f.stateNode !== null || (f.stateNode = { _visibility: 1, _pendingMarkers: null, _retryCache: null, _transitions: null - }), d.sibling; + }), f.sibling; } - function NM(l, d, h, w, R) { + function NM(l, f, h, w, R) { var M = Tx(); - return M = M === null ? null : { parent: Dn._currentValue, pool: M }, d.memoizedState = { + return M = M === null ? null : { parent: Dn._currentValue, pool: M }, f.memoizedState = { baseLanes: h, cachePool: M - }, l !== null && Jm(d, null), Px(), $O(d), l !== null && Jc(l, d, w, !0), d.childLanes = R, null; + }, l !== null && Jm(f, null), Px(), $O(f), l !== null && Jc(l, f, w, !0), f.childLanes = R, null; } - function mg(l, d) { - return d = yg( - { mode: d.mode, children: d.children }, + function mg(l, f) { + return f = yg( + { mode: f.mode, children: f.children }, l.mode - ), d.ref = l.ref, l.child = d, d.return = l, d; + ), f.ref = l.ref, l.child = f, f.return = l, f; } - function PM(l, d, h) { - return Il(d, l.child, null, h), l = mg(d, d.pendingProps), l.flags |= 2, Zr(d), d.memoizedState = null, l; + function PM(l, f, h) { + return Il(f, l.child, null, h), l = mg(f, f.pendingProps), l.flags |= 2, Zr(f), f.memoizedState = null, l; } - function DW(l, d, h) { - var w = d.pendingProps, R = (d.flags & 128) !== 0; - if (d.flags &= -129, l === null) { + function DW(l, f, h) { + var w = f.pendingProps, R = (f.flags & 128) !== 0; + if (f.flags &= -129, l === null) { if (At) { if (w.mode === "hidden") - return l = mg(d, w), d.lanes = 536870912, Ef(null, l); - if ($x(d), (l = mn) ? (l = qN( + return l = mg(f, w), f.lanes = 536870912, Ed(null, l); + if ($x(f), (l = mn) ? (l = qN( l, So - ), l = l !== null && l.data === "&" ? l : null, l !== null && (d.memoizedState = { + ), l = l !== null && l.data === "&" ? l : null, l !== null && (f.memoizedState = { dehydrated: l, - treeContext: hs !== null ? { id: fi, overflow: pi } : null, + treeContext: hs !== null ? { id: di, overflow: pi } : null, retryLane: 536870912, hydrationErrors: null - }, h = gO(l), h.return = d, d.child = h, rr = d, mn = null)) : l = null, l === null) throw gs(d); - return d.lanes = 536870912, null; + }, h = gO(l), h.return = f, f.child = h, rr = f, mn = null)) : l = null, l === null) throw gs(f); + return f.lanes = 536870912, null; } - return mg(d, w); + return mg(f, w); } var M = l.memoizedState; if (M !== null) { var q = M.dehydrated; - if ($x(d), R) - if (d.flags & 256) - d.flags &= -257, d = PM( + if ($x(f), R) + if (f.flags & 256) + f.flags &= -257, f = PM( l, - d, + f, h ); - else if (d.memoizedState !== null) - d.child = l.child, d.flags |= 128, d = null; + else if (f.memoizedState !== null) + f.child = l.child, f.flags |= 128, f = null; else throw Error(r(558)); - else if (Ln || Jc(l, d, h, !1), R = (h & l.childLanes) !== 0, Ln || R) { + else if (Ln || Jc(l, f, h, !1), R = (h & l.childLanes) !== 0, Ln || R) { if (w = sn, w !== null && (q = Tm(w, h), q !== 0 && q !== M.retryLane)) throw M.retryLane = q, kl(l, q), Fr(w, l, q), nw; - kg(), d = PM( + kg(), f = PM( l, - d, + f, h ); } else - l = M.treeContext, mn = Eo(q.nextSibling), rr = d, At = !0, ms = null, So = !1, l !== null && bO(d, l), d = mg(d, w), d.flags |= 4096; - return d; + l = M.treeContext, mn = Eo(q.nextSibling), rr = f, At = !0, ms = null, So = !1, l !== null && bO(f, l), f = mg(f, w), f.flags |= 4096; + return f; } return l = ua(l.child, { mode: w.mode, children: w.children - }), l.ref = d.ref, d.child = l, l.return = d, l; + }), l.ref = f.ref, f.child = l, l.return = f, l; } - function gg(l, d) { - var h = d.ref; + function gg(l, f) { + var h = f.ref; if (h === null) - l !== null && l.ref !== null && (d.flags |= 4194816); + l !== null && l.ref !== null && (f.flags |= 4194816); else { if (typeof h != "function" && typeof h != "object") throw Error(r(284)); - (l === null || l.ref !== h) && (d.flags |= 4194816); + (l === null || l.ref !== h) && (f.flags |= 4194816); } } - function rw(l, d, h, w, R) { - return Ol(d), h = Dx( + function rw(l, f, h, w, R) { + return Ol(f), h = Dx( l, - d, + f, h, w, void 0, R - ), w = Fx(), l !== null && !Ln ? (Lx(l, d, R), ga(l, d, R)) : (At && w && vx(d), d.flags |= 1, ir(l, d, h, R), d.child); + ), w = Fx(), l !== null && !Ln ? (Lx(l, f, R), ga(l, f, R)) : (At && w && vx(f), f.flags |= 1, ir(l, f, h, R), f.child); } - function IM(l, d, h, w, R, M) { - return Ol(d), d.updateQueue = null, h = DO( - d, + function IM(l, f, h, w, R, M) { + return Ol(f), f.updateQueue = null, h = DO( + f, w, h, R - ), jO(l), w = Fx(), l !== null && !Ln ? (Lx(l, d, M), ga(l, d, M)) : (At && w && vx(d), d.flags |= 1, ir(l, d, h, M), d.child); + ), jO(l), w = Fx(), l !== null && !Ln ? (Lx(l, f, M), ga(l, f, M)) : (At && w && vx(f), f.flags |= 1, ir(l, f, h, M), f.child); } - function $M(l, d, h, w, R) { - if (Ol(d), d.stateNode === null) { + function $M(l, f, h, w, R) { + if (Ol(f), f.stateNode === null) { var M = Yc, q = h.contextType; - typeof q == "object" && q !== null && (M = or(q)), M = new h(w, M), d.memoizedState = M.state !== null && M.state !== void 0 ? M.state : null, M.updater = ew, d.stateNode = M, M._reactInternals = d, M = d.stateNode, M.props = w, M.state = d.memoizedState, M.refs = {}, Rx(d), q = h.contextType, M.context = typeof q == "object" && q !== null ? or(q) : Yc, M.state = d.memoizedState, q = h.getDerivedStateFromProps, typeof q == "function" && (Jx( - d, + typeof q == "object" && q !== null && (M = or(q)), M = new h(w, M), f.memoizedState = M.state !== null && M.state !== void 0 ? M.state : null, M.updater = ew, f.stateNode = M, M._reactInternals = f, M = f.stateNode, M.props = w, M.state = f.memoizedState, M.refs = {}, Rx(f), q = h.contextType, M.context = typeof q == "object" && q !== null ? or(q) : Yc, M.state = f.memoizedState, q = h.getDerivedStateFromProps, typeof q == "function" && (Jx( + f, h, q, w - ), M.state = d.memoizedState), typeof h.getDerivedStateFromProps == "function" || typeof M.getSnapshotBeforeUpdate == "function" || typeof M.UNSAFE_componentWillMount != "function" && typeof M.componentWillMount != "function" || (q = M.state, typeof M.componentWillMount == "function" && M.componentWillMount(), typeof M.UNSAFE_componentWillMount == "function" && M.UNSAFE_componentWillMount(), q !== M.state && ew.enqueueReplaceState(M, M.state, null), bf(d, w, M, R), vf(), M.state = d.memoizedState), typeof M.componentDidMount == "function" && (d.flags |= 4194308), w = !0; + ), M.state = f.memoizedState), typeof h.getDerivedStateFromProps == "function" || typeof M.getSnapshotBeforeUpdate == "function" || typeof M.UNSAFE_componentWillMount != "function" && typeof M.componentWillMount != "function" || (q = M.state, typeof M.componentWillMount == "function" && M.componentWillMount(), typeof M.UNSAFE_componentWillMount == "function" && M.UNSAFE_componentWillMount(), q !== M.state && ew.enqueueReplaceState(M, M.state, null), bd(f, w, M, R), vd(), M.state = f.memoizedState), typeof M.componentDidMount == "function" && (f.flags |= 4194308), w = !0; } else if (l === null) { - M = d.stateNode; - var Z = d.memoizedProps, re = jl(h, Z); + M = f.stateNode; + var Z = f.memoizedProps, re = jl(h, Z); M.props = re; var pe = M.context, ve = h.contextType; q = Yc, typeof ve == "object" && ve !== null && (q = or(ve)); var we = h.getDerivedStateFromProps; - ve = typeof we == "function" || typeof M.getSnapshotBeforeUpdate == "function", Z = d.pendingProps !== Z, ve || typeof M.UNSAFE_componentWillReceiveProps != "function" && typeof M.componentWillReceiveProps != "function" || (Z || pe !== q) && wM( - d, + ve = typeof we == "function" || typeof M.getSnapshotBeforeUpdate == "function", Z = f.pendingProps !== Z, ve || typeof M.UNSAFE_componentWillReceiveProps != "function" && typeof M.componentWillReceiveProps != "function" || (Z || pe !== q) && wM( + f, M, w, q ), vs = !1; - var he = d.memoizedState; - M.state = he, bf(d, w, M, R), vf(), pe = d.memoizedState, Z || he !== pe || vs ? (typeof we == "function" && (Jx( - d, + var he = f.memoizedState; + M.state = he, bd(f, w, M, R), vd(), pe = f.memoizedState, Z || he !== pe || vs ? (typeof we == "function" && (Jx( + f, h, we, w - ), pe = d.memoizedState), (re = vs || xM( - d, + ), pe = f.memoizedState), (re = vs || xM( + f, h, re, w, he, pe, q - )) ? (ve || typeof M.UNSAFE_componentWillMount != "function" && typeof M.componentWillMount != "function" || (typeof M.componentWillMount == "function" && M.componentWillMount(), typeof M.UNSAFE_componentWillMount == "function" && M.UNSAFE_componentWillMount()), typeof M.componentDidMount == "function" && (d.flags |= 4194308)) : (typeof M.componentDidMount == "function" && (d.flags |= 4194308), d.memoizedProps = w, d.memoizedState = pe), M.props = w, M.state = pe, M.context = q, w = re) : (typeof M.componentDidMount == "function" && (d.flags |= 4194308), w = !1); + )) ? (ve || typeof M.UNSAFE_componentWillMount != "function" && typeof M.componentWillMount != "function" || (typeof M.componentWillMount == "function" && M.componentWillMount(), typeof M.UNSAFE_componentWillMount == "function" && M.UNSAFE_componentWillMount()), typeof M.componentDidMount == "function" && (f.flags |= 4194308)) : (typeof M.componentDidMount == "function" && (f.flags |= 4194308), f.memoizedProps = w, f.memoizedState = pe), M.props = w, M.state = pe, M.context = q, w = re) : (typeof M.componentDidMount == "function" && (f.flags |= 4194308), w = !1); } else { - M = d.stateNode, Ox(l, d), q = d.memoizedProps, ve = jl(h, q), M.props = ve, we = d.pendingProps, he = M.context, pe = h.contextType, re = Yc, typeof pe == "object" && pe !== null && (re = or(pe)), Z = h.getDerivedStateFromProps, (pe = typeof Z == "function" || typeof M.getSnapshotBeforeUpdate == "function") || typeof M.UNSAFE_componentWillReceiveProps != "function" && typeof M.componentWillReceiveProps != "function" || (q !== we || he !== re) && wM( - d, + M = f.stateNode, Ox(l, f), q = f.memoizedProps, ve = jl(h, q), M.props = ve, we = f.pendingProps, he = M.context, pe = h.contextType, re = Yc, typeof pe == "object" && pe !== null && (re = or(pe)), Z = h.getDerivedStateFromProps, (pe = typeof Z == "function" || typeof M.getSnapshotBeforeUpdate == "function") || typeof M.UNSAFE_componentWillReceiveProps != "function" && typeof M.componentWillReceiveProps != "function" || (q !== we || he !== re) && wM( + f, M, w, re - ), vs = !1, he = d.memoizedState, M.state = he, bf(d, w, M, R), vf(); - var ye = d.memoizedState; + ), vs = !1, he = f.memoizedState, M.state = he, bd(f, w, M, R), vd(); + var ye = f.memoizedState; q !== we || he !== ye || vs || l !== null && l.dependencies !== null && Zm(l.dependencies) ? (typeof Z == "function" && (Jx( - d, + f, h, Z, w - ), ye = d.memoizedState), (ve = vs || xM( - d, + ), ye = f.memoizedState), (ve = vs || xM( + f, h, ve, w, @@ -4970,26 +4970,26 @@ Error generating stack: ` + w.message + ` w, ye, re - )), typeof M.componentDidUpdate == "function" && (d.flags |= 4), typeof M.getSnapshotBeforeUpdate == "function" && (d.flags |= 1024)) : (typeof M.componentDidUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (d.flags |= 4), typeof M.getSnapshotBeforeUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (d.flags |= 1024), d.memoizedProps = w, d.memoizedState = ye), M.props = w, M.state = ye, M.context = re, w = ve) : (typeof M.componentDidUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (d.flags |= 4), typeof M.getSnapshotBeforeUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (d.flags |= 1024), w = !1); + )), typeof M.componentDidUpdate == "function" && (f.flags |= 4), typeof M.getSnapshotBeforeUpdate == "function" && (f.flags |= 1024)) : (typeof M.componentDidUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (f.flags |= 4), typeof M.getSnapshotBeforeUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (f.flags |= 1024), f.memoizedProps = w, f.memoizedState = ye), M.props = w, M.state = ye, M.context = re, w = ve) : (typeof M.componentDidUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (f.flags |= 4), typeof M.getSnapshotBeforeUpdate != "function" || q === l.memoizedProps && he === l.memoizedState || (f.flags |= 1024), w = !1); } - return M = w, gg(l, d), w = (d.flags & 128) !== 0, M || w ? (M = d.stateNode, h = w && typeof h.getDerivedStateFromError != "function" ? null : M.render(), d.flags |= 1, l !== null && w ? (d.child = Il( - d, + return M = w, gg(l, f), w = (f.flags & 128) !== 0, M || w ? (M = f.stateNode, h = w && typeof h.getDerivedStateFromError != "function" ? null : M.render(), f.flags |= 1, l !== null && w ? (f.child = Il( + f, l.child, null, R - ), d.child = Il( - d, + ), f.child = Il( + f, null, h, R - )) : ir(l, d, h, R), d.memoizedState = M.state, l = d.child) : l = ga( + )) : ir(l, f, h, R), f.memoizedState = M.state, l = f.child) : l = ga( l, - d, + f, R ), l; } - function jM(l, d, h, w) { - return Al(), d.flags |= 256, ir(l, d, h, w), d.child; + function jM(l, f, h, w) { + return Al(), f.flags |= 256, ir(l, f, h, w), f.child; } var ow = { dehydrated: null, @@ -5000,26 +5000,26 @@ Error generating stack: ` + w.message + ` function iw(l) { return { baseLanes: l, cachePool: CO() }; } - function aw(l, d, h) { - return l = l !== null ? l.childLanes & ~h : 0, d && (l |= Jr), l; + function aw(l, f, h) { + return l = l !== null ? l.childLanes & ~h : 0, f && (l |= Jr), l; } - function DM(l, d, h) { - var w = d.pendingProps, R = !1, M = (d.flags & 128) !== 0, q; - if ((q = M) || (q = l !== null && l.memoizedState === null ? !1 : (Nn.current & 2) !== 0), q && (R = !0, d.flags &= -129), q = (d.flags & 32) !== 0, d.flags &= -33, l === null) { + function DM(l, f, h) { + var w = f.pendingProps, R = !1, M = (f.flags & 128) !== 0, q; + if ((q = M) || (q = l !== null && l.memoizedState === null ? !1 : (Nn.current & 2) !== 0), q && (R = !0, f.flags &= -129), q = (f.flags & 32) !== 0, f.flags &= -33, l === null) { if (At) { - if (R ? ws(d) : Ss(), (l = mn) ? (l = qN( + if (R ? ws(f) : Ss(), (l = mn) ? (l = qN( l, So - ), l = l !== null && l.data !== "&" ? l : null, l !== null && (d.memoizedState = { + ), l = l !== null && l.data !== "&" ? l : null, l !== null && (f.memoizedState = { dehydrated: l, - treeContext: hs !== null ? { id: fi, overflow: pi } : null, + treeContext: hs !== null ? { id: di, overflow: pi } : null, retryLane: 536870912, hydrationErrors: null - }, h = gO(l), h.return = d, d.child = h, rr = d, mn = null)) : l = null, l === null) throw gs(d); - return Uw(l) ? d.lanes = 32 : d.lanes = 536870912, null; + }, h = gO(l), h.return = f, f.child = h, rr = f, mn = null)) : l = null, l === null) throw gs(f); + return Uw(l) ? f.lanes = 32 : f.lanes = 536870912, null; } var Z = w.children; - return w = w.fallback, R ? (Ss(), R = d.mode, Z = yg( + return w = w.fallback, R ? (Ss(), R = f.mode, Z = yg( { mode: "hidden", children: Z }, R ), w = Tl( @@ -5027,20 +5027,20 @@ Error generating stack: ` + w.message + ` R, h, null - ), Z.return = d, w.return = d, Z.sibling = w, d.child = Z, w = d.child, w.memoizedState = iw(h), w.childLanes = aw( + ), Z.return = f, w.return = f, Z.sibling = w, f.child = Z, w = f.child, w.memoizedState = iw(h), w.childLanes = aw( l, q, h - ), d.memoizedState = ow, Ef(null, w)) : (ws(d), sw(d, Z)); + ), f.memoizedState = ow, Ed(null, w)) : (ws(f), sw(f, Z)); } var re = l.memoizedState; if (re !== null && (Z = re.dehydrated, Z !== null)) { if (M) - d.flags & 256 ? (ws(d), d.flags &= -257, d = lw( + f.flags & 256 ? (ws(f), f.flags &= -257, f = lw( l, - d, + f, h - )) : d.memoizedState !== null ? (Ss(), d.child = l.child, d.flags |= 128, d = null) : (Ss(), Z = w.fallback, R = d.mode, w = yg( + )) : f.memoizedState !== null ? (Ss(), f.child = l.child, f.flags |= 128, f = null) : (Ss(), Z = w.fallback, R = f.mode, w = yg( { mode: "visible", children: w.children }, R ), Z = Tl( @@ -5048,41 +5048,41 @@ Error generating stack: ` + w.message + ` R, h, null - ), Z.flags |= 2, w.return = d, Z.return = d, w.sibling = Z, d.child = w, Il( - d, + ), Z.flags |= 2, w.return = f, Z.return = f, w.sibling = Z, f.child = w, Il( + f, l.child, null, h - ), w = d.child, w.memoizedState = iw(h), w.childLanes = aw( + ), w = f.child, w.memoizedState = iw(h), w.childLanes = aw( l, q, h - ), d.memoizedState = ow, d = Ef(null, w)); - else if (ws(d), Uw(Z)) { + ), f.memoizedState = ow, f = Ed(null, w)); + else if (ws(f), Uw(Z)) { if (q = Z.nextSibling && Z.nextSibling.dataset, q) var pe = q.dgst; - q = pe, w = Error(r(419)), w.stack = "", w.digest = q, ff({ value: w, source: null, stack: null }), d = lw( + q = pe, w = Error(r(419)), w.stack = "", w.digest = q, dd({ value: w, source: null, stack: null }), f = lw( l, - d, + f, h ); - } else if (Ln || Jc(l, d, h, !1), q = (h & l.childLanes) !== 0, Ln || q) { + } else if (Ln || Jc(l, f, h, !1), q = (h & l.childLanes) !== 0, Ln || q) { if (q = sn, q !== null && (w = Tm(q, h), w !== 0 && w !== re.retryLane)) throw re.retryLane = w, kl(l, w), Fr(q, l, w), nw; - Bw(Z) || kg(), d = lw( + Bw(Z) || kg(), f = lw( l, - d, + f, h ); } else - Bw(Z) ? (d.flags |= 192, d.child = l.child, d = null) : (l = re.treeContext, mn = Eo( + Bw(Z) ? (f.flags |= 192, f.child = l.child, f = null) : (l = re.treeContext, mn = Eo( Z.nextSibling - ), rr = d, At = !0, ms = null, So = !1, l !== null && bO(d, l), d = sw( - d, + ), rr = f, At = !0, ms = null, So = !1, l !== null && bO(f, l), f = sw( + f, w.children - ), d.flags |= 4096); - return d; + ), f.flags |= 4096); + return f; } - return R ? (Ss(), Z = w.fallback, R = d.mode, re = l.child, pe = re.sibling, w = ua(re, { + return R ? (Ss(), Z = w.fallback, R = f.mode, re = l.child, pe = re.sibling, w = ua(re, { mode: "hidden", children: w.children }), w.subtreeFlags = re.subtreeFlags & 65011712, pe !== null ? Z = ua( @@ -5093,67 +5093,67 @@ Error generating stack: ` + w.message + ` R, h, null - ), Z.flags |= 2), Z.return = d, w.return = d, w.sibling = Z, d.child = w, Ef(null, w), w = d.child, Z = l.child.memoizedState, Z === null ? Z = iw(h) : (R = Z.cachePool, R !== null ? (re = Dn._currentValue, R = R.parent !== re ? { parent: re, pool: re } : R) : R = CO(), Z = { + ), Z.flags |= 2), Z.return = f, w.return = f, w.sibling = Z, f.child = w, Ed(null, w), w = f.child, Z = l.child.memoizedState, Z === null ? Z = iw(h) : (R = Z.cachePool, R !== null ? (re = Dn._currentValue, R = R.parent !== re ? { parent: re, pool: re } : R) : R = CO(), Z = { baseLanes: Z.baseLanes | h, cachePool: R }), w.memoizedState = Z, w.childLanes = aw( l, q, h - ), d.memoizedState = ow, Ef(l.child, w)) : (ws(d), h = l.child, l = h.sibling, h = ua(h, { + ), f.memoizedState = ow, Ed(l.child, w)) : (ws(f), h = l.child, l = h.sibling, h = ua(h, { mode: "visible", children: w.children - }), h.return = d, h.sibling = null, l !== null && (q = d.deletions, q === null ? (d.deletions = [l], d.flags |= 16) : q.push(l)), d.child = h, d.memoizedState = null, h); + }), h.return = f, h.sibling = null, l !== null && (q = f.deletions, q === null ? (f.deletions = [l], f.flags |= 16) : q.push(l)), f.child = h, f.memoizedState = null, h); } - function sw(l, d) { - return d = yg( - { mode: "visible", children: d }, + function sw(l, f) { + return f = yg( + { mode: "visible", children: f }, l.mode - ), d.return = l, l.child = d; + ), f.return = l, l.child = f; } - function yg(l, d) { - return l = Yr(22, l, null, d), l.lanes = 0, l; + function yg(l, f) { + return l = Yr(22, l, null, f), l.lanes = 0, l; } - function lw(l, d, h) { - return Il(d, l.child, null, h), l = sw( - d, - d.pendingProps.children - ), l.flags |= 2, d.memoizedState = null, l; + function lw(l, f, h) { + return Il(f, l.child, null, h), l = sw( + f, + f.pendingProps.children + ), l.flags |= 2, f.memoizedState = null, l; } - function FM(l, d, h) { - l.lanes |= d; + function FM(l, f, h) { + l.lanes |= f; var w = l.alternate; - w !== null && (w.lanes |= d), _x(l.return, d, h); + w !== null && (w.lanes |= f), _x(l.return, f, h); } - function cw(l, d, h, w, R, M) { + function cw(l, f, h, w, R, M) { var q = l.memoizedState; q === null ? l.memoizedState = { - isBackwards: d, + isBackwards: f, rendering: null, renderingStartTime: 0, last: w, tail: h, tailMode: R, treeForkCount: M - } : (q.isBackwards = d, q.rendering = null, q.renderingStartTime = 0, q.last = w, q.tail = h, q.tailMode = R, q.treeForkCount = M); + } : (q.isBackwards = f, q.rendering = null, q.renderingStartTime = 0, q.last = w, q.tail = h, q.tailMode = R, q.treeForkCount = M); } - function LM(l, d, h) { - var w = d.pendingProps, R = w.revealOrder, M = w.tail; + function LM(l, f, h) { + var w = f.pendingProps, R = w.revealOrder, M = w.tail; w = w.children; var q = Nn.current, Z = (q & 2) !== 0; - if (Z ? (q = q & 1 | 2, d.flags |= 128) : q &= 1, z(Nn, q), ir(l, d, w, h), w = At ? df : 0, !Z && l !== null && (l.flags & 128) !== 0) - e: for (l = d.child; l !== null; ) { + if (Z ? (q = q & 1 | 2, f.flags |= 128) : q &= 1, z(Nn, q), ir(l, f, w, h), w = At ? fd : 0, !Z && l !== null && (l.flags & 128) !== 0) + e: for (l = f.child; l !== null; ) { if (l.tag === 13) - l.memoizedState !== null && FM(l, h, d); + l.memoizedState !== null && FM(l, h, f); else if (l.tag === 19) - FM(l, h, d); + FM(l, h, f); else if (l.child !== null) { l.child.return = l, l = l.child; continue; } - if (l === d) break e; + if (l === f) break e; for (; l.sibling === null; ) { - if (l.return === null || l.return === d) + if (l.return === null || l.return === f) break e; l = l.return; } @@ -5161,10 +5161,10 @@ Error generating stack: ` + w.message + ` } switch (R) { case "forwards": - for (h = d.child, R = null; h !== null; ) + for (h = f.child, R = null; h !== null; ) l = h.alternate, l !== null && ig(l) === null && (R = h), h = h.sibling; - h = R, h === null ? (R = d.child, d.child = null) : (R = h.sibling, h.sibling = null), cw( - d, + h = R, h === null ? (R = f.child, f.child = null) : (R = h.sibling, h.sibling = null), cw( + f, !1, R, h, @@ -5174,15 +5174,15 @@ Error generating stack: ` + w.message + ` break; case "backwards": case "unstable_legacy-backwards": - for (h = null, R = d.child, d.child = null; R !== null; ) { + for (h = null, R = f.child, f.child = null; R !== null; ) { if (l = R.alternate, l !== null && ig(l) === null) { - d.child = R; + f.child = R; break; } l = R.sibling, R.sibling = h, h = R, R = l; } cw( - d, + f, !0, h, null, @@ -5192,7 +5192,7 @@ Error generating stack: ` + w.message + ` break; case "together": cw( - d, + f, !1, null, null, @@ -5201,125 +5201,125 @@ Error generating stack: ` + w.message + ` ); break; default: - d.memoizedState = null; + f.memoizedState = null; } - return d.child; + return f.child; } - function ga(l, d, h) { - if (l !== null && (d.dependencies = l.dependencies), Cs |= d.lanes, (h & d.childLanes) === 0) + function ga(l, f, h) { + if (l !== null && (f.dependencies = l.dependencies), Cs |= f.lanes, (h & f.childLanes) === 0) if (l !== null) { if (Jc( l, - d, + f, h, !1 - ), (h & d.childLanes) === 0) + ), (h & f.childLanes) === 0) return null; } else return null; - if (l !== null && d.child !== l.child) + if (l !== null && f.child !== l.child) throw Error(r(153)); - if (d.child !== null) { - for (l = d.child, h = ua(l, l.pendingProps), d.child = h, h.return = d; l.sibling !== null; ) - l = l.sibling, h = h.sibling = ua(l, l.pendingProps), h.return = d; + if (f.child !== null) { + for (l = f.child, h = ua(l, l.pendingProps), f.child = h, h.return = f; l.sibling !== null; ) + l = l.sibling, h = h.sibling = ua(l, l.pendingProps), h.return = f; h.sibling = null; } - return d.child; + return f.child; } - function uw(l, d) { - return (l.lanes & d) !== 0 ? !0 : (l = l.dependencies, !!(l !== null && Zm(l))); + function uw(l, f) { + return (l.lanes & f) !== 0 ? !0 : (l = l.dependencies, !!(l !== null && Zm(l))); } - function FW(l, d, h) { - switch (d.tag) { + function FW(l, f, h) { + switch (f.tag) { case 3: - te(d, d.stateNode.containerInfo), ys(d, Dn, l.memoizedState.cache), Al(); + te(f, f.stateNode.containerInfo), ys(f, Dn, l.memoizedState.cache), Al(); break; case 27: case 5: - ue(d); + ue(f); break; case 4: - te(d, d.stateNode.containerInfo); + te(f, f.stateNode.containerInfo); break; case 10: ys( - d, - d.type, - d.memoizedProps.value + f, + f.type, + f.memoizedProps.value ); break; case 31: - if (d.memoizedState !== null) - return d.flags |= 128, $x(d), null; + if (f.memoizedState !== null) + return f.flags |= 128, $x(f), null; break; case 13: - var w = d.memoizedState; + var w = f.memoizedState; if (w !== null) - return w.dehydrated !== null ? (ws(d), d.flags |= 128, null) : (h & d.child.childLanes) !== 0 ? DM(l, d, h) : (ws(d), l = ga( + return w.dehydrated !== null ? (ws(f), f.flags |= 128, null) : (h & f.child.childLanes) !== 0 ? DM(l, f, h) : (ws(f), l = ga( l, - d, + f, h ), l !== null ? l.sibling : null); - ws(d); + ws(f); break; case 19: var R = (l.flags & 128) !== 0; - if (w = (h & d.childLanes) !== 0, w || (Jc( + if (w = (h & f.childLanes) !== 0, w || (Jc( l, - d, + f, h, !1 - ), w = (h & d.childLanes) !== 0), R) { + ), w = (h & f.childLanes) !== 0), R) { if (w) return LM( l, - d, + f, h ); - d.flags |= 128; + f.flags |= 128; } - if (R = d.memoizedState, R !== null && (R.rendering = null, R.tail = null, R.lastEffect = null), z(Nn, Nn.current), w) break; + if (R = f.memoizedState, R !== null && (R.rendering = null, R.tail = null, R.lastEffect = null), z(Nn, Nn.current), w) break; return null; case 22: - return d.lanes = 0, MM( + return f.lanes = 0, MM( l, - d, + f, h, - d.pendingProps + f.pendingProps ); case 24: - ys(d, Dn, l.memoizedState.cache); + ys(f, Dn, l.memoizedState.cache); } - return ga(l, d, h); + return ga(l, f, h); } - function zM(l, d, h) { + function zM(l, f, h) { if (l !== null) - if (l.memoizedProps !== d.pendingProps) + if (l.memoizedProps !== f.pendingProps) Ln = !0; else { - if (!uw(l, h) && (d.flags & 128) === 0) + if (!uw(l, h) && (f.flags & 128) === 0) return Ln = !1, FW( l, - d, + f, h ); Ln = (l.flags & 131072) !== 0; } else - Ln = !1, At && (d.flags & 1048576) !== 0 && vO(d, df, d.index); - switch (d.lanes = 0, d.tag) { + Ln = !1, At && (f.flags & 1048576) !== 0 && vO(f, fd, f.index); + switch (f.lanes = 0, f.tag) { case 16: e: { - var w = d.pendingProps; - if (l = Nl(d.elementType), d.type = l, typeof l == "function") - mx(l) ? (w = jl(l, w), d.tag = 1, d = $M( + var w = f.pendingProps; + if (l = Nl(f.elementType), f.type = l, typeof l == "function") + mx(l) ? (w = jl(l, w), f.tag = 1, f = $M( null, - d, + f, l, w, h - )) : (d.tag = 0, d = rw( + )) : (f.tag = 0, f = rw( null, - d, + f, l, w, h @@ -5328,18 +5328,18 @@ Error generating stack: ` + w.message + ` if (l != null) { var R = l.$$typeof; if (R === C) { - d.tag = 11, d = AM( + f.tag = 11, f = AM( null, - d, + f, l, w, h ); break e; } else if (R === O) { - d.tag = 14, d = RM( + f.tag = 14, f = RM( null, - d, + f, l, w, h @@ -5347,25 +5347,25 @@ Error generating stack: ` + w.message + ` break e; } } - throw d = j(l) || l, Error(r(306, d, "")); + throw f = j(l) || l, Error(r(306, f, "")); } } - return d; + return f; case 0: return rw( l, - d, - d.type, - d.pendingProps, + f, + f.type, + f.pendingProps, h ); case 1: - return w = d.type, R = jl( + return w = f.type, R = jl( w, - d.pendingProps + f.pendingProps ), $M( l, - d, + f, w, R, h @@ -5373,27 +5373,27 @@ Error generating stack: ` + w.message + ` case 3: e: { if (te( - d, - d.stateNode.containerInfo + f, + f.stateNode.containerInfo ), l === null) throw Error(r(387)); - w = d.pendingProps; - var M = d.memoizedState; - R = M.element, Ox(l, d), bf(d, w, null, h); - var q = d.memoizedState; - if (w = q.cache, ys(d, Dn, w), w !== M.cache && Ex( - d, + w = f.pendingProps; + var M = f.memoizedState; + R = M.element, Ox(l, f), bd(f, w, null, h); + var q = f.memoizedState; + if (w = q.cache, ys(f, Dn, w), w !== M.cache && Ex( + f, [Dn], h, !0 - ), vf(), w = q.element, M.isDehydrated) + ), vd(), w = q.element, M.isDehydrated) if (M = { element: w, isDehydrated: !1, cache: q.cache - }, d.updateQueue.baseState = M, d.memoizedState = M, d.flags & 256) { - d = jM( + }, f.updateQueue.baseState = M, f.memoizedState = M, f.flags & 256) { + f = jM( l, - d, + f, w, h ); @@ -5401,175 +5401,175 @@ Error generating stack: ` + w.message + ` } else if (w !== R) { R = bo( Error(r(424)), - d - ), ff(R), d = jM( + f + ), dd(R), f = jM( l, - d, + f, w, h ); break e; } else - for (l = d.stateNode.containerInfo, l.nodeType === 9 ? l = l.body : l = l.nodeName === "HTML" ? l.ownerDocument.body : l, mn = Eo(l.firstChild), rr = d, At = !0, ms = null, So = !0, h = MO( - d, + for (l = f.stateNode.containerInfo, l.nodeType === 9 ? l = l.body : l = l.nodeName === "HTML" ? l.ownerDocument.body : l, mn = Eo(l.firstChild), rr = f, At = !0, ms = null, So = !0, h = MO( + f, null, w, h - ), d.child = h; h; ) + ), f.child = h; h; ) h.flags = h.flags & -3 | 4096, h = h.sibling; else { if (Al(), w === R) { - d = ga( + f = ga( l, - d, + f, h ); break e; } - ir(l, d, w, h); + ir(l, f, w, h); } - d = d.child; + f = f.child; } - return d; + return f; case 26: - return gg(l, d), l === null ? (h = ZN( - d.type, + return gg(l, f), l === null ? (h = ZN( + f.type, null, - d.pendingProps, + f.pendingProps, null - )) ? d.memoizedState = h : At || (h = d.type, l = d.pendingProps, w = Pg( + )) ? f.memoizedState = h : At || (h = f.type, l = f.pendingProps, w = Pg( Q.current - ).createElement(h), w[Wn] = d, w[pr] = l, ar(w, h, l), jn(w), d.stateNode = w) : d.memoizedState = ZN( - d.type, + ).createElement(h), w[Wn] = f, w[pr] = l, ar(w, h, l), jn(w), f.stateNode = w) : f.memoizedState = ZN( + f.type, l.memoizedProps, - d.pendingProps, + f.pendingProps, l.memoizedState ), null; case 27: - return ue(d), l === null && At && (w = d.stateNode = KN( - d.type, - d.pendingProps, + return ue(f), l === null && At && (w = f.stateNode = KN( + f.type, + f.pendingProps, Q.current - ), rr = d, So = !0, R = mn, Os(d.type) ? (Vw = R, mn = Eo(w.firstChild)) : mn = R), ir( + ), rr = f, So = !0, R = mn, Os(f.type) ? (Vw = R, mn = Eo(w.firstChild)) : mn = R), ir( l, - d, - d.pendingProps.children, + f, + f.pendingProps.children, h - ), gg(l, d), l === null && (d.flags |= 4194304), d.child; + ), gg(l, f), l === null && (f.flags |= 4194304), f.child; case 5: return l === null && At && ((R = w = mn) && (w = hG( w, - d.type, - d.pendingProps, + f.type, + f.pendingProps, So - ), w !== null ? (d.stateNode = w, rr = d, mn = Eo(w.firstChild), So = !1, R = !0) : R = !1), R || gs(d)), ue(d), R = d.type, M = d.pendingProps, q = l !== null ? l.memoizedProps : null, w = M.children, Fw(R, M) ? w = null : q !== null && Fw(R, q) && (d.flags |= 32), d.memoizedState !== null && (R = Dx( + ), w !== null ? (f.stateNode = w, rr = f, mn = Eo(w.firstChild), So = !1, R = !0) : R = !1), R || gs(f)), ue(f), R = f.type, M = f.pendingProps, q = l !== null ? l.memoizedProps : null, w = M.children, Fw(R, M) ? w = null : q !== null && Fw(R, q) && (f.flags |= 32), f.memoizedState !== null && (R = Dx( l, - d, + f, RW, null, null, h - ), Lf._currentValue = R), gg(l, d), ir(l, d, w, h), d.child; + ), Ld._currentValue = R), gg(l, f), ir(l, f, w, h), f.child; case 6: return l === null && At && ((l = h = mn) && (h = mG( h, - d.pendingProps, + f.pendingProps, So - ), h !== null ? (d.stateNode = h, rr = d, mn = null, l = !0) : l = !1), l || gs(d)), null; + ), h !== null ? (f.stateNode = h, rr = f, mn = null, l = !0) : l = !1), l || gs(f)), null; case 13: - return DM(l, d, h); + return DM(l, f, h); case 4: return te( - d, - d.stateNode.containerInfo - ), w = d.pendingProps, l === null ? d.child = Il( - d, + f, + f.stateNode.containerInfo + ), w = f.pendingProps, l === null ? f.child = Il( + f, null, w, h - ) : ir(l, d, w, h), d.child; + ) : ir(l, f, w, h), f.child; case 11: return AM( l, - d, - d.type, - d.pendingProps, + f, + f.type, + f.pendingProps, h ); case 7: return ir( l, - d, - d.pendingProps, + f, + f.pendingProps, h - ), d.child; + ), f.child; case 8: return ir( l, - d, - d.pendingProps.children, + f, + f.pendingProps.children, h - ), d.child; + ), f.child; case 12: return ir( l, - d, - d.pendingProps.children, + f, + f.pendingProps.children, h - ), d.child; + ), f.child; case 10: - return w = d.pendingProps, ys(d, d.type, w.value), ir(l, d, w.children, h), d.child; + return w = f.pendingProps, ys(f, f.type, w.value), ir(l, f, w.children, h), f.child; case 9: - return R = d.type._context, w = d.pendingProps.children, Ol(d), R = or(R), w = w(R), d.flags |= 1, ir(l, d, w, h), d.child; + return R = f.type._context, w = f.pendingProps.children, Ol(f), R = or(R), w = w(R), f.flags |= 1, ir(l, f, w, h), f.child; case 14: return RM( l, - d, - d.type, - d.pendingProps, + f, + f.type, + f.pendingProps, h ); case 15: return OM( l, - d, - d.type, - d.pendingProps, + f, + f.type, + f.pendingProps, h ); case 19: - return LM(l, d, h); + return LM(l, f, h); case 31: - return DW(l, d, h); + return DW(l, f, h); case 22: return MM( l, - d, + f, h, - d.pendingProps + f.pendingProps ); case 24: - return Ol(d), w = or(Dn), l === null ? (R = Tx(), R === null && (R = sn, M = Cx(), R.pooledCache = M, M.refCount++, M !== null && (R.pooledCacheLanes |= h), R = M), d.memoizedState = { parent: w, cache: R }, Rx(d), ys(d, Dn, R)) : ((l.lanes & h) !== 0 && (Ox(l, d), bf(d, null, null, h), vf()), R = l.memoizedState, M = d.memoizedState, R.parent !== w ? (R = { parent: w, cache: w }, d.memoizedState = R, d.lanes === 0 && (d.memoizedState = d.updateQueue.baseState = R), ys(d, Dn, w)) : (w = M.cache, ys(d, Dn, w), w !== R.cache && Ex( - d, + return Ol(f), w = or(Dn), l === null ? (R = Tx(), R === null && (R = sn, M = Cx(), R.pooledCache = M, M.refCount++, M !== null && (R.pooledCacheLanes |= h), R = M), f.memoizedState = { parent: w, cache: R }, Rx(f), ys(f, Dn, R)) : ((l.lanes & h) !== 0 && (Ox(l, f), bd(f, null, null, h), vd()), R = l.memoizedState, M = f.memoizedState, R.parent !== w ? (R = { parent: w, cache: w }, f.memoizedState = R, f.lanes === 0 && (f.memoizedState = f.updateQueue.baseState = R), ys(f, Dn, w)) : (w = M.cache, ys(f, Dn, w), w !== R.cache && Ex( + f, [Dn], h, !0 ))), ir( l, - d, - d.pendingProps.children, + f, + f.pendingProps.children, h - ), d.child; + ), f.child; case 29: - throw d.pendingProps; + throw f.pendingProps; } - throw Error(r(156, d.tag)); + throw Error(r(156, f.tag)); } function ya(l) { l.flags |= 4; } - function dw(l, d, h, w, R) { - if ((d = (l.mode & 32) !== 0) && (d = !1), d) { + function fw(l, f, h, w, R) { + if ((f = (l.mode & 32) !== 0) && (f = !1), f) { if (l.flags |= 16777216, (R & 335544128) === R) if (l.stateNode.complete) l.flags |= 8192; else if (pN()) l.flags |= 8192; @@ -5577,46 +5577,46 @@ Error generating stack: ` + w.message + ` throw Pl = tg, Ax; } else l.flags &= -16777217; } - function BM(l, d) { - if (d.type !== "stylesheet" || (d.state.loading & 4) !== 0) + function BM(l, f) { + if (f.type !== "stylesheet" || (f.state.loading & 4) !== 0) l.flags &= -16777217; - else if (l.flags |= 16777216, !nP(d)) + else if (l.flags |= 16777216, !nP(f)) if (pN()) l.flags |= 8192; else throw Pl = tg, Ax; } - function vg(l, d) { - d !== null && (l.flags |= 4), l.flags & 16384 && (d = l.tag !== 22 ? Em() : 536870912, l.lanes |= d, du |= d); + function vg(l, f) { + f !== null && (l.flags |= 4), l.flags & 16384 && (f = l.tag !== 22 ? Em() : 536870912, l.lanes |= f, fu |= f); } - function Cf(l, d) { + function Cd(l, f) { if (!At) switch (l.tailMode) { case "hidden": - d = l.tail; - for (var h = null; d !== null; ) - d.alternate !== null && (h = d), d = d.sibling; + f = l.tail; + for (var h = null; f !== null; ) + f.alternate !== null && (h = f), f = f.sibling; h === null ? l.tail = null : h.sibling = null; break; case "collapsed": h = l.tail; for (var w = null; h !== null; ) h.alternate !== null && (w = h), h = h.sibling; - w === null ? d || l.tail === null ? l.tail = null : l.tail.sibling = null : w.sibling = null; + w === null ? f || l.tail === null ? l.tail = null : l.tail.sibling = null : w.sibling = null; } } function gn(l) { - var d = l.alternate !== null && l.alternate.child === l.child, h = 0, w = 0; - if (d) + var f = l.alternate !== null && l.alternate.child === l.child, h = 0, w = 0; + if (f) for (var R = l.child; R !== null; ) h |= R.lanes | R.childLanes, w |= R.subtreeFlags & 65011712, w |= R.flags & 65011712, R.return = l, R = R.sibling; else for (R = l.child; R !== null; ) h |= R.lanes | R.childLanes, w |= R.subtreeFlags, w |= R.flags, R.return = l, R = R.sibling; - return l.subtreeFlags |= w, l.childLanes = h, d; + return l.subtreeFlags |= w, l.childLanes = h, f; } - function LW(l, d, h) { - var w = d.pendingProps; - switch (bx(d), d.tag) { + function LW(l, f, h) { + var w = f.pendingProps; + switch (bx(f), f.tag) { case 16: case 15: case 0: @@ -5626,49 +5626,49 @@ Error generating stack: ` + w.message + ` case 12: case 9: case 14: - return gn(d), null; + return gn(f), null; case 1: - return gn(d), null; + return gn(f), null; case 3: - return h = d.stateNode, w = null, l !== null && (w = l.memoizedState.cache), d.memoizedState.cache !== w && (d.flags |= 2048), pa(Dn), se(), h.pendingContext && (h.context = h.pendingContext, h.pendingContext = null), (l === null || l.child === null) && (Qc(d) ? ya(d) : l === null || l.memoizedState.isDehydrated && (d.flags & 256) === 0 || (d.flags |= 1024, wx())), gn(d), null; + return h = f.stateNode, w = null, l !== null && (w = l.memoizedState.cache), f.memoizedState.cache !== w && (f.flags |= 2048), pa(Dn), se(), h.pendingContext && (h.context = h.pendingContext, h.pendingContext = null), (l === null || l.child === null) && (Qc(f) ? ya(f) : l === null || l.memoizedState.isDehydrated && (f.flags & 256) === 0 || (f.flags |= 1024, wx())), gn(f), null; case 26: - var R = d.type, M = d.memoizedState; - return l === null ? (ya(d), M !== null ? (gn(d), BM(d, M)) : (gn(d), dw( - d, + var R = f.type, M = f.memoizedState; + return l === null ? (ya(f), M !== null ? (gn(f), BM(f, M)) : (gn(f), fw( + f, R, null, w, h - ))) : M ? M !== l.memoizedState ? (ya(d), gn(d), BM(d, M)) : (gn(d), d.flags &= -16777217) : (l = l.memoizedProps, l !== w && ya(d), gn(d), dw( - d, + ))) : M ? M !== l.memoizedState ? (ya(f), gn(f), BM(f, M)) : (gn(f), f.flags &= -16777217) : (l = l.memoizedProps, l !== w && ya(f), gn(f), fw( + f, R, l, w, h )), null; case 27: - if (J(d), h = Q.current, R = d.type, l !== null && d.stateNode != null) - l.memoizedProps !== w && ya(d); + if (J(f), h = Q.current, R = f.type, l !== null && f.stateNode != null) + l.memoizedProps !== w && ya(f); else { if (!w) { - if (d.stateNode === null) + if (f.stateNode === null) throw Error(r(166)); - return gn(d), null; + return gn(f), null; } - l = H.current, Qc(d) ? xO(d) : (l = KN(R, w, h), d.stateNode = l, ya(d)); + l = H.current, Qc(f) ? xO(f) : (l = KN(R, w, h), f.stateNode = l, ya(f)); } - return gn(d), null; + return gn(f), null; case 5: - if (J(d), R = d.type, l !== null && d.stateNode != null) - l.memoizedProps !== w && ya(d); + if (J(f), R = f.type, l !== null && f.stateNode != null) + l.memoizedProps !== w && ya(f); else { if (!w) { - if (d.stateNode === null) + if (f.stateNode === null) throw Error(r(166)); - return gn(d), null; + return gn(f), null; } - if (M = H.current, Qc(d)) - xO(d); + if (M = H.current, Qc(f)) + xO(f); else { var q = Pg( Q.current @@ -5714,23 +5714,23 @@ Error generating stack: ` + w.message + ` M = typeof w.is == "string" ? q.createElement(R, { is: w.is }) : q.createElement(R); } } - M[Wn] = d, M[pr] = w; - e: for (q = d.child; q !== null; ) { + M[Wn] = f, M[pr] = w; + e: for (q = f.child; q !== null; ) { if (q.tag === 5 || q.tag === 6) M.appendChild(q.stateNode); else if (q.tag !== 4 && q.tag !== 27 && q.child !== null) { q.child.return = q, q = q.child; continue; } - if (q === d) break e; + if (q === f) break e; for (; q.sibling === null; ) { - if (q.return === null || q.return === d) + if (q.return === null || q.return === f) break e; q = q.return; } q.sibling.return = q.return, q = q.sibling; } - d.stateNode = M; + f.stateNode = M; e: switch (ar(M, R, w), R) { case "button": case "input": @@ -5744,151 +5744,151 @@ Error generating stack: ` + w.message + ` default: w = !1; } - w && ya(d); + w && ya(f); } } - return gn(d), dw( - d, - d.type, + return gn(f), fw( + f, + f.type, l === null ? null : l.memoizedProps, - d.pendingProps, + f.pendingProps, h ), null; case 6: - if (l && d.stateNode != null) - l.memoizedProps !== w && ya(d); + if (l && f.stateNode != null) + l.memoizedProps !== w && ya(f); else { - if (typeof w != "string" && d.stateNode === null) + if (typeof w != "string" && f.stateNode === null) throw Error(r(166)); - if (l = Q.current, Qc(d)) { - if (l = d.stateNode, h = d.memoizedProps, w = null, R = rr, R !== null) + if (l = Q.current, Qc(f)) { + if (l = f.stateNode, h = f.memoizedProps, w = null, R = rr, R !== null) switch (R.tag) { case 27: case 5: w = R.memoizedProps; } - l[Wn] = d, l = !!(l.nodeValue === h || w !== null && w.suppressHydrationWarning === !0 || DN(l.nodeValue, h)), l || gs(d, !0); + l[Wn] = f, l = !!(l.nodeValue === h || w !== null && w.suppressHydrationWarning === !0 || DN(l.nodeValue, h)), l || gs(f, !0); } else l = Pg(l).createTextNode( w - ), l[Wn] = d, d.stateNode = l; + ), l[Wn] = f, f.stateNode = l; } - return gn(d), null; + return gn(f), null; case 31: - if (h = d.memoizedState, l === null || l.memoizedState !== null) { - if (w = Qc(d), h !== null) { + if (h = f.memoizedState, l === null || l.memoizedState !== null) { + if (w = Qc(f), h !== null) { if (l === null) { if (!w) throw Error(r(318)); - if (l = d.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(r(557)); - l[Wn] = d; + if (l = f.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(r(557)); + l[Wn] = f; } else - Al(), (d.flags & 128) === 0 && (d.memoizedState = null), d.flags |= 4; - gn(d), l = !1; + Al(), (f.flags & 128) === 0 && (f.memoizedState = null), f.flags |= 4; + gn(f), l = !1; } else h = wx(), l !== null && l.memoizedState !== null && (l.memoizedState.hydrationErrors = h), l = !0; if (!l) - return d.flags & 256 ? (Zr(d), d) : (Zr(d), null); - if ((d.flags & 128) !== 0) + return f.flags & 256 ? (Zr(f), f) : (Zr(f), null); + if ((f.flags & 128) !== 0) throw Error(r(558)); } - return gn(d), null; + return gn(f), null; case 13: - if (w = d.memoizedState, l === null || l.memoizedState !== null && l.memoizedState.dehydrated !== null) { - if (R = Qc(d), w !== null && w.dehydrated !== null) { + if (w = f.memoizedState, l === null || l.memoizedState !== null && l.memoizedState.dehydrated !== null) { + if (R = Qc(f), w !== null && w.dehydrated !== null) { if (l === null) { if (!R) throw Error(r(318)); - if (R = d.memoizedState, R = R !== null ? R.dehydrated : null, !R) throw Error(r(317)); - R[Wn] = d; + if (R = f.memoizedState, R = R !== null ? R.dehydrated : null, !R) throw Error(r(317)); + R[Wn] = f; } else - Al(), (d.flags & 128) === 0 && (d.memoizedState = null), d.flags |= 4; - gn(d), R = !1; + Al(), (f.flags & 128) === 0 && (f.memoizedState = null), f.flags |= 4; + gn(f), R = !1; } else R = wx(), l !== null && l.memoizedState !== null && (l.memoizedState.hydrationErrors = R), R = !0; if (!R) - return d.flags & 256 ? (Zr(d), d) : (Zr(d), null); + return f.flags & 256 ? (Zr(f), f) : (Zr(f), null); } - return Zr(d), (d.flags & 128) !== 0 ? (d.lanes = h, d) : (h = w !== null, l = l !== null && l.memoizedState !== null, h && (w = d.child, R = null, w.alternate !== null && w.alternate.memoizedState !== null && w.alternate.memoizedState.cachePool !== null && (R = w.alternate.memoizedState.cachePool.pool), M = null, w.memoizedState !== null && w.memoizedState.cachePool !== null && (M = w.memoizedState.cachePool.pool), M !== R && (w.flags |= 2048)), h !== l && h && (d.child.flags |= 8192), vg(d, d.updateQueue), gn(d), null); + return Zr(f), (f.flags & 128) !== 0 ? (f.lanes = h, f) : (h = w !== null, l = l !== null && l.memoizedState !== null, h && (w = f.child, R = null, w.alternate !== null && w.alternate.memoizedState !== null && w.alternate.memoizedState.cachePool !== null && (R = w.alternate.memoizedState.cachePool.pool), M = null, w.memoizedState !== null && w.memoizedState.cachePool !== null && (M = w.memoizedState.cachePool.pool), M !== R && (w.flags |= 2048)), h !== l && h && (f.child.flags |= 8192), vg(f, f.updateQueue), gn(f), null); case 4: - return se(), l === null && Pw(d.stateNode.containerInfo), gn(d), null; + return se(), l === null && Pw(f.stateNode.containerInfo), gn(f), null; case 10: - return pa(d.type), gn(d), null; + return pa(f.type), gn(f), null; case 19: - if (G(Nn), w = d.memoizedState, w === null) return gn(d), null; - if (R = (d.flags & 128) !== 0, M = w.rendering, M === null) - if (R) Cf(w, !1); + if (G(Nn), w = f.memoizedState, w === null) return gn(f), null; + if (R = (f.flags & 128) !== 0, M = w.rendering, M === null) + if (R) Cd(w, !1); else { if (Tn !== 0 || l !== null && (l.flags & 128) !== 0) - for (l = d.child; l !== null; ) { + for (l = f.child; l !== null; ) { if (M = ig(l), M !== null) { - for (d.flags |= 128, Cf(w, !1), l = M.updateQueue, d.updateQueue = l, vg(d, l), d.subtreeFlags = 0, l = h, h = d.child; h !== null; ) + for (f.flags |= 128, Cd(w, !1), l = M.updateQueue, f.updateQueue = l, vg(f, l), f.subtreeFlags = 0, l = h, h = f.child; h !== null; ) mO(h, l), h = h.sibling; return z( Nn, Nn.current & 1 | 2 - ), At && da(d, w.treeForkCount), d.child; + ), At && fa(f, w.treeForkCount), f.child; } l = l.sibling; } - w.tail !== null && Je() > _g && (d.flags |= 128, R = !0, Cf(w, !1), d.lanes = 4194304); + w.tail !== null && Je() > _g && (f.flags |= 128, R = !0, Cd(w, !1), f.lanes = 4194304); } else { if (!R) if (l = ig(M), l !== null) { - if (d.flags |= 128, R = !0, l = l.updateQueue, d.updateQueue = l, vg(d, l), Cf(w, !0), w.tail === null && w.tailMode === "hidden" && !M.alternate && !At) - return gn(d), null; + if (f.flags |= 128, R = !0, l = l.updateQueue, f.updateQueue = l, vg(f, l), Cd(w, !0), w.tail === null && w.tailMode === "hidden" && !M.alternate && !At) + return gn(f), null; } else - 2 * Je() - w.renderingStartTime > _g && h !== 536870912 && (d.flags |= 128, R = !0, Cf(w, !1), d.lanes = 4194304); - w.isBackwards ? (M.sibling = d.child, d.child = M) : (l = w.last, l !== null ? l.sibling = M : d.child = M, w.last = M); + 2 * Je() - w.renderingStartTime > _g && h !== 536870912 && (f.flags |= 128, R = !0, Cd(w, !1), f.lanes = 4194304); + w.isBackwards ? (M.sibling = f.child, f.child = M) : (l = w.last, l !== null ? l.sibling = M : f.child = M, w.last = M); } return w.tail !== null ? (l = w.tail, w.rendering = l, w.tail = l.sibling, w.renderingStartTime = Je(), l.sibling = null, h = Nn.current, z( Nn, R ? h & 1 | 2 : h & 1 - ), At && da(d, w.treeForkCount), l) : (gn(d), null); + ), At && fa(f, w.treeForkCount), l) : (gn(f), null); case 22: case 23: - return Zr(d), Ix(), w = d.memoizedState !== null, l !== null ? l.memoizedState !== null !== w && (d.flags |= 8192) : w && (d.flags |= 8192), w ? (h & 536870912) !== 0 && (d.flags & 128) === 0 && (gn(d), d.subtreeFlags & 6 && (d.flags |= 8192)) : gn(d), h = d.updateQueue, h !== null && vg(d, h.retryQueue), h = null, l !== null && l.memoizedState !== null && l.memoizedState.cachePool !== null && (h = l.memoizedState.cachePool.pool), w = null, d.memoizedState !== null && d.memoizedState.cachePool !== null && (w = d.memoizedState.cachePool.pool), w !== h && (d.flags |= 2048), l !== null && G(Ml), null; + return Zr(f), Ix(), w = f.memoizedState !== null, l !== null ? l.memoizedState !== null !== w && (f.flags |= 8192) : w && (f.flags |= 8192), w ? (h & 536870912) !== 0 && (f.flags & 128) === 0 && (gn(f), f.subtreeFlags & 6 && (f.flags |= 8192)) : gn(f), h = f.updateQueue, h !== null && vg(f, h.retryQueue), h = null, l !== null && l.memoizedState !== null && l.memoizedState.cachePool !== null && (h = l.memoizedState.cachePool.pool), w = null, f.memoizedState !== null && f.memoizedState.cachePool !== null && (w = f.memoizedState.cachePool.pool), w !== h && (f.flags |= 2048), l !== null && G(Ml), null; case 24: - return h = null, l !== null && (h = l.memoizedState.cache), d.memoizedState.cache !== h && (d.flags |= 2048), pa(Dn), gn(d), null; + return h = null, l !== null && (h = l.memoizedState.cache), f.memoizedState.cache !== h && (f.flags |= 2048), pa(Dn), gn(f), null; case 25: return null; case 30: return null; } - throw Error(r(156, d.tag)); + throw Error(r(156, f.tag)); } - function zW(l, d) { - switch (bx(d), d.tag) { + function zW(l, f) { + switch (bx(f), f.tag) { case 1: - return l = d.flags, l & 65536 ? (d.flags = l & -65537 | 128, d) : null; + return l = f.flags, l & 65536 ? (f.flags = l & -65537 | 128, f) : null; case 3: - return pa(Dn), se(), l = d.flags, (l & 65536) !== 0 && (l & 128) === 0 ? (d.flags = l & -65537 | 128, d) : null; + return pa(Dn), se(), l = f.flags, (l & 65536) !== 0 && (l & 128) === 0 ? (f.flags = l & -65537 | 128, f) : null; case 26: case 27: case 5: - return J(d), null; + return J(f), null; case 31: - if (d.memoizedState !== null) { - if (Zr(d), d.alternate === null) + if (f.memoizedState !== null) { + if (Zr(f), f.alternate === null) throw Error(r(340)); Al(); } - return l = d.flags, l & 65536 ? (d.flags = l & -65537 | 128, d) : null; + return l = f.flags, l & 65536 ? (f.flags = l & -65537 | 128, f) : null; case 13: - if (Zr(d), l = d.memoizedState, l !== null && l.dehydrated !== null) { - if (d.alternate === null) + if (Zr(f), l = f.memoizedState, l !== null && l.dehydrated !== null) { + if (f.alternate === null) throw Error(r(340)); Al(); } - return l = d.flags, l & 65536 ? (d.flags = l & -65537 | 128, d) : null; + return l = f.flags, l & 65536 ? (f.flags = l & -65537 | 128, f) : null; case 19: return G(Nn), null; case 4: return se(), null; case 10: - return pa(d.type), null; + return pa(f.type), null; case 22: case 23: - return Zr(d), Ix(), l !== null && G(Ml), l = d.flags, l & 65536 ? (d.flags = l & -65537 | 128, d) : null; + return Zr(f), Ix(), l !== null && G(Ml), l = f.flags, l & 65536 ? (f.flags = l & -65537 | 128, f) : null; case 24: return pa(Dn), null; case 25: @@ -5897,42 +5897,42 @@ Error generating stack: ` + w.message + ` return null; } } - function UM(l, d) { - switch (bx(d), d.tag) { + function UM(l, f) { + switch (bx(f), f.tag) { case 3: pa(Dn), se(); break; case 26: case 27: case 5: - J(d); + J(f); break; case 4: se(); break; case 31: - d.memoizedState !== null && Zr(d); + f.memoizedState !== null && Zr(f); break; case 13: - Zr(d); + Zr(f); break; case 19: G(Nn); break; case 10: - pa(d.type); + pa(f.type); break; case 22: case 23: - Zr(d), Ix(), l !== null && G(Ml); + Zr(f), Ix(), l !== null && G(Ml); break; case 24: pa(Dn); } } - function kf(l, d) { + function kd(l, f) { try { - var h = d.updateQueue, w = h !== null ? h.lastEffect : null; + var h = f.updateQueue, w = h !== null ? h.lastEffect : null; if (w !== null) { var R = w.next; h = R; @@ -5946,12 +5946,12 @@ Error generating stack: ` + w.message + ` } while (h !== R); } } catch (Z) { - Kt(d, d.return, Z); + Kt(f, f.return, Z); } } - function _s(l, d, h) { + function _s(l, f, h) { try { - var w = d.updateQueue, R = w !== null ? w.lastEffect : null; + var w = f.updateQueue, R = w !== null ? w.lastEffect : null; if (R !== null) { var M = R.next; w = M; @@ -5959,7 +5959,7 @@ Error generating stack: ` + w.message + ` if ((w.tag & l) === l) { var q = w.inst, Z = q.destroy; if (Z !== void 0) { - q.destroy = void 0, R = d; + q.destroy = void 0, R = f; var re = h, pe = Z; try { pe(); @@ -5976,21 +5976,21 @@ Error generating stack: ` + w.message + ` } while (w !== M); } } catch (ve) { - Kt(d, d.return, ve); + Kt(f, f.return, ve); } } function VM(l) { - var d = l.updateQueue; - if (d !== null) { + var f = l.updateQueue; + if (f !== null) { var h = l.stateNode; try { - PO(d, h); + PO(f, h); } catch (w) { Kt(l, l.return, w); } } } - function HM(l, d, h) { + function HM(l, f, h) { h.props = jl( l.type, l.memoizedProps @@ -5998,10 +5998,10 @@ Error generating stack: ` + w.message + ` try { h.componentWillUnmount(); } catch (w) { - Kt(l, d, w); + Kt(l, f, w); } } - function Tf(l, d) { + function Td(l, f) { try { var h = l.ref; if (h !== null) { @@ -6020,17 +6020,17 @@ Error generating stack: ` + w.message + ` typeof h == "function" ? l.refCleanup = h(w) : h.current = w; } } catch (R) { - Kt(l, d, R); + Kt(l, f, R); } } - function hi(l, d) { + function hi(l, f) { var h = l.ref, w = l.refCleanup; if (h !== null) if (typeof w == "function") try { w(); } catch (R) { - Kt(l, d, R); + Kt(l, f, R); } finally { l.refCleanup = null, l = l.alternate, l != null && (l.refCleanup = null); } @@ -6038,14 +6038,14 @@ Error generating stack: ` + w.message + ` try { h(null); } catch (R) { - Kt(l, d, R); + Kt(l, f, R); } else h.current = null; } function qM(l) { - var d = l.type, h = l.memoizedProps, w = l.stateNode; + var f = l.type, h = l.memoizedProps, w = l.stateNode; try { - e: switch (d) { + e: switch (f) { case "button": case "input": case "select": @@ -6059,10 +6059,10 @@ Error generating stack: ` + w.message + ` Kt(l, l.return, R); } } - function fw(l, d, h) { + function dw(l, f, h) { try { var w = l.stateNode; - lG(w, l.type, h, d), w[pr] = d; + lG(w, l.type, h, f), w[pr] = f; } catch (R) { Kt(l, l.return, R); } @@ -6083,34 +6083,34 @@ Error generating stack: ` + w.message + ` if (!(l.flags & 2)) return l.stateNode; } } - function hw(l, d, h) { + function hw(l, f, h) { var w = l.tag; if (w === 5 || w === 6) - l = l.stateNode, d ? (h.nodeType === 9 ? h.body : h.nodeName === "HTML" ? h.ownerDocument.body : h).insertBefore(l, d) : (d = h.nodeType === 9 ? h.body : h.nodeName === "HTML" ? h.ownerDocument.body : h, d.appendChild(l), h = h._reactRootContainer, h != null || d.onclick !== null || (d.onclick = la)); - else if (w !== 4 && (w === 27 && Os(l.type) && (h = l.stateNode, d = null), l = l.child, l !== null)) - for (hw(l, d, h), l = l.sibling; l !== null; ) - hw(l, d, h), l = l.sibling; + l = l.stateNode, f ? (h.nodeType === 9 ? h.body : h.nodeName === "HTML" ? h.ownerDocument.body : h).insertBefore(l, f) : (f = h.nodeType === 9 ? h.body : h.nodeName === "HTML" ? h.ownerDocument.body : h, f.appendChild(l), h = h._reactRootContainer, h != null || f.onclick !== null || (f.onclick = la)); + else if (w !== 4 && (w === 27 && Os(l.type) && (h = l.stateNode, f = null), l = l.child, l !== null)) + for (hw(l, f, h), l = l.sibling; l !== null; ) + hw(l, f, h), l = l.sibling; } - function bg(l, d, h) { + function bg(l, f, h) { var w = l.tag; if (w === 5 || w === 6) - l = l.stateNode, d ? h.insertBefore(l, d) : h.appendChild(l); + l = l.stateNode, f ? h.insertBefore(l, f) : h.appendChild(l); else if (w !== 4 && (w === 27 && Os(l.type) && (h = l.stateNode), l = l.child, l !== null)) - for (bg(l, d, h), l = l.sibling; l !== null; ) - bg(l, d, h), l = l.sibling; + for (bg(l, f, h), l = l.sibling; l !== null; ) + bg(l, f, h), l = l.sibling; } function GM(l) { - var d = l.stateNode, h = l.memoizedProps; + var f = l.stateNode, h = l.memoizedProps; try { - for (var w = l.type, R = d.attributes; R.length; ) - d.removeAttributeNode(R[0]); - ar(d, w, h), d[Wn] = l, d[pr] = h; + for (var w = l.type, R = f.attributes; R.length; ) + f.removeAttributeNode(R[0]); + ar(f, w, h), f[Wn] = l, f[pr] = h; } catch (M) { Kt(l, l.return, M); } } var va = !1, zn = !1, mw = !1, KM = typeof WeakSet == "function" ? WeakSet : Set, Qn = null; - function BW(l, d) { + function BW(l, f) { if (l = l.containerInfo, jw = zg, l = aO(l), lx(l)) { if ("selectionStart" in l) var h = { @@ -6147,14 +6147,14 @@ Error generating stack: ` + w.message + ` } h = h || { start: 0, end: 0 }; } else h = null; - for (Dw = { focusedElem: l, selectionRange: h }, zg = !1, Qn = d; Qn !== null; ) - if (d = Qn, l = d.child, (d.subtreeFlags & 1028) !== 0 && l !== null) - l.return = d, Qn = l; + for (Dw = { focusedElem: l, selectionRange: h }, zg = !1, Qn = f; Qn !== null; ) + if (f = Qn, l = f.child, (f.subtreeFlags & 1028) !== 0 && l !== null) + l.return = f, Qn = l; else for (; Qn !== null; ) { - switch (d = Qn, M = d.alternate, l = d.flags, d.tag) { + switch (f = Qn, M = f.alternate, l = f.flags, f.tag) { case 0: - if ((l & 4) !== 0 && (l = d.updateQueue, l = l !== null ? l.events : null, l !== null)) + if ((l & 4) !== 0 && (l = f.updateQueue, l = l !== null ? l.events : null, l !== null)) for (h = 0; h < l.length; h++) R = l[h], R.ref.impl = R.nextImpl; break; @@ -6163,7 +6163,7 @@ Error generating stack: ` + w.message + ` break; case 1: if ((l & 1024) !== 0 && M !== null) { - l = void 0, h = d, R = M.memoizedProps, M = M.memoizedState, w = h.stateNode; + l = void 0, h = f, R = M.memoizedProps, M = M.memoizedState, w = h.stateNode; try { var Fe = jl( h.type, @@ -6184,7 +6184,7 @@ Error generating stack: ` + w.message + ` break; case 3: if ((l & 1024) !== 0) { - if (l = d.stateNode.containerInfo, h = l.nodeType, h === 9) + if (l = f.stateNode.containerInfo, h = l.nodeType, h === 9) zw(l); else if (h === 1) switch (l.nodeName) { @@ -6208,24 +6208,24 @@ Error generating stack: ` + w.message + ` default: if ((l & 1024) !== 0) throw Error(r(163)); } - if (l = d.sibling, l !== null) { - l.return = d.return, Qn = l; + if (l = f.sibling, l !== null) { + l.return = f.return, Qn = l; break; } - Qn = d.return; + Qn = f.return; } } - function YM(l, d, h) { + function YM(l, f, h) { var w = h.flags; switch (h.tag) { case 0: case 11: case 15: - xa(l, h), w & 4 && kf(5, h); + xa(l, h), w & 4 && kd(5, h); break; case 1: if (xa(l, h), w & 4) - if (l = h.stateNode, d === null) + if (l = h.stateNode, f === null) try { l.componentDidMount(); } catch (q) { @@ -6234,13 +6234,13 @@ Error generating stack: ` + w.message + ` else { var R = jl( h.type, - d.memoizedProps + f.memoizedProps ); - d = d.memoizedState; + f = f.memoizedState; try { l.componentDidUpdate( R, - d, + f, l.__reactInternalSnapshotBeforeUpdate ); } catch (q) { @@ -6251,31 +6251,31 @@ Error generating stack: ` + w.message + ` ); } } - w & 64 && VM(h), w & 512 && Tf(h, h.return); + w & 64 && VM(h), w & 512 && Td(h, h.return); break; case 3: if (xa(l, h), w & 64 && (l = h.updateQueue, l !== null)) { - if (d = null, h.child !== null) + if (f = null, h.child !== null) switch (h.child.tag) { case 27: case 5: - d = h.child.stateNode; + f = h.child.stateNode; break; case 1: - d = h.child.stateNode; + f = h.child.stateNode; } try { - PO(l, d); + PO(l, f); } catch (q) { Kt(h, h.return, q); } } break; case 27: - d === null && w & 4 && GM(h); + f === null && w & 4 && GM(h); case 26: case 5: - xa(l, h), d === null && w & 4 && qM(h), w & 512 && Tf(h, h.return); + xa(l, h), f === null && w & 4 && qM(h), w & 512 && Td(h, h.return); break; case 12: xa(l, h); @@ -6291,9 +6291,9 @@ Error generating stack: ` + w.message + ` break; case 22: if (w = h.memoizedState !== null || va, !w) { - d = d !== null && d.memoizedState !== null || zn, R = va; + f = f !== null && f.memoizedState !== null || zn, R = va; var M = zn; - va = w, (zn = d) && !M ? wa( + va = w, (zn = f) && !M ? wa( l, h, (h.subtreeFlags & 8772) !== 0 @@ -6307,15 +6307,15 @@ Error generating stack: ` + w.message + ` } } function XM(l) { - var d = l.alternate; - d !== null && (l.alternate = null, XM(d)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (d = l.stateNode, d !== null && Qd(d)), l.stateNode = null, l.return = null, l.dependencies = null, l.memoizedProps = null, l.memoizedState = null, l.pendingProps = null, l.stateNode = null, l.updateQueue = null; + var f = l.alternate; + f !== null && (l.alternate = null, XM(f)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (f = l.stateNode, f !== null && Jf(f)), l.stateNode = null, l.return = null, l.dependencies = null, l.memoizedProps = null, l.memoizedState = null, l.pendingProps = null, l.stateNode = null, l.updateQueue = null; } var wn = null, Ir = !1; - function ba(l, d, h) { + function ba(l, f, h) { for (h = h.child; h !== null; ) - ZM(l, d, h), h = h.sibling; + ZM(l, f, h), h = h.sibling; } - function ZM(l, d, h) { + function ZM(l, f, h) { if (Et && typeof Et.onCommitFiberUnmount == "function") try { Et.onCommitFiberUnmount(it, h); @@ -6323,27 +6323,27 @@ Error generating stack: ` + w.message + ` } switch (h.tag) { case 26: - zn || hi(h, d), ba( + zn || hi(h, f), ba( l, - d, + f, h ), h.memoizedState ? h.memoizedState.count-- : h.stateNode && (h = h.stateNode, h.parentNode.removeChild(h)); break; case 27: - zn || hi(h, d); + zn || hi(h, f); var w = wn, R = Ir; Os(h.type) && (wn = h.stateNode, Ir = !1), ba( l, - d, + f, h - ), jf(h.stateNode), wn = w, Ir = R; + ), jd(h.stateNode), wn = w, Ir = R; break; case 5: - zn || hi(h, d); + zn || hi(h, f); case 6: if (w = wn, R = Ir, wn = null, ba( l, - d, + f, h ), wn = w, Ir = R, wn !== null) if (Ir) @@ -6352,7 +6352,7 @@ Error generating stack: ` + w.message + ` } catch (M) { Kt( h, - d, + f, M ); } @@ -6362,7 +6362,7 @@ Error generating stack: ` + w.message + ` } catch (M) { Kt( h, - d, + f, M ); } @@ -6376,7 +6376,7 @@ Error generating stack: ` + w.message + ` case 4: w = wn, R = Ir, wn = h.stateNode.containerInfo, Ir = !0, ba( l, - d, + f, h ), wn = w, Ir = R; break; @@ -6384,61 +6384,61 @@ Error generating stack: ` + w.message + ` case 11: case 14: case 15: - _s(2, h, d), zn || _s(4, h, d), ba( + _s(2, h, f), zn || _s(4, h, f), ba( l, - d, + f, h ); break; case 1: - zn || (hi(h, d), w = h.stateNode, typeof w.componentWillUnmount == "function" && HM( + zn || (hi(h, f), w = h.stateNode, typeof w.componentWillUnmount == "function" && HM( h, - d, + f, w )), ba( l, - d, + f, h ); break; case 21: ba( l, - d, + f, h ); break; case 22: zn = (w = zn) || h.memoizedState !== null, ba( l, - d, + f, h ), zn = w; break; default: ba( l, - d, + f, h ); } } - function QM(l, d) { - if (d.memoizedState === null && (l = d.alternate, l !== null && (l = l.memoizedState, l !== null))) { + function QM(l, f) { + if (f.memoizedState === null && (l = f.alternate, l !== null && (l = l.memoizedState, l !== null))) { l = l.dehydrated; try { bu(l); } catch (h) { - Kt(d, d.return, h); + Kt(f, f.return, h); } } } - function JM(l, d) { - if (d.memoizedState === null && (l = d.alternate, l !== null && (l = l.memoizedState, l !== null && (l = l.dehydrated, l !== null)))) + function JM(l, f) { + if (f.memoizedState === null && (l = f.alternate, l !== null && (l = l.memoizedState, l !== null && (l = l.dehydrated, l !== null)))) try { bu(l); } catch (h) { - Kt(d, d.return, h); + Kt(f, f.return, h); } } function UW(l) { @@ -6446,17 +6446,17 @@ Error generating stack: ` + w.message + ` case 31: case 13: case 19: - var d = l.stateNode; - return d === null && (d = l.stateNode = new KM()), d; + var f = l.stateNode; + return f === null && (f = l.stateNode = new KM()), f; case 22: - return l = l.stateNode, d = l._retryCache, d === null && (d = l._retryCache = new KM()), d; + return l = l.stateNode, f = l._retryCache, f === null && (f = l._retryCache = new KM()), f; default: throw Error(r(435, l.tag)); } } - function xg(l, d) { + function xg(l, f) { var h = UW(l); - d.forEach(function(w) { + f.forEach(function(w) { if (!h.has(w)) { h.add(w); var R = ZW.bind(null, l, w); @@ -6464,11 +6464,11 @@ Error generating stack: ` + w.message + ` } }); } - function $r(l, d) { - var h = d.deletions; + function $r(l, f) { + var h = f.deletions; if (h !== null) for (var w = 0; w < h.length; w++) { - var R = h[w], M = l, q = d, Z = q; + var R = h[w], M = l, q = f, Z = q; e: for (; Z !== null; ) { switch (Z.tag) { case 27: @@ -6490,26 +6490,26 @@ Error generating stack: ` + w.message + ` if (wn === null) throw Error(r(160)); ZM(M, q, R), wn = null, Ir = !1, M = R.alternate, M !== null && (M.return = null), R.return = null; } - if (d.subtreeFlags & 13886) - for (d = d.child; d !== null; ) - eN(d, l), d = d.sibling; + if (f.subtreeFlags & 13886) + for (f = f.child; f !== null; ) + eN(f, l), f = f.sibling; } var Uo = null; - function eN(l, d) { + function eN(l, f) { var h = l.alternate, w = l.flags; switch (l.tag) { case 0: case 11: case 14: case 15: - $r(d, l), jr(l), w & 4 && (_s(3, l, l.return), kf(3, l), _s(5, l, l.return)); + $r(f, l), jr(l), w & 4 && (_s(3, l, l.return), kd(3, l), _s(5, l, l.return)); break; case 1: - $r(d, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), w & 64 && va && (l = l.updateQueue, l !== null && (w = l.callbacks, w !== null && (h = l.shared.hiddenCallbacks, l.shared.hiddenCallbacks = h === null ? w : h.concat(w)))); + $r(f, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), w & 64 && va && (l = l.updateQueue, l !== null && (w = l.callbacks, w !== null && (h = l.shared.hiddenCallbacks, l.shared.hiddenCallbacks = h === null ? w : h.concat(w)))); break; case 26: var R = Uo; - if ($r(d, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), w & 4) { + if ($r(f, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), w & 4) { var M = h !== null ? h.memoizedState : null; if (w = l.memoizedState, h === null) if (w === null) @@ -6579,7 +6579,7 @@ Error generating stack: ` + w.message + ` R, w, l.memoizedProps - )) : w === null && l.stateNode !== null && fw( + )) : w === null && l.stateNode !== null && dw( l, l.memoizedProps, h.memoizedProps @@ -6587,14 +6587,14 @@ Error generating stack: ` + w.message + ` } break; case 27: - $r(d, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), h !== null && w & 4 && fw( + $r(f, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), h !== null && w & 4 && dw( l, l.memoizedProps, h.memoizedProps ); break; case 5: - if ($r(d, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), l.flags & 32) { + if ($r(f, l), jr(l), w & 512 && (zn || h === null || hi(h, h.return)), l.flags & 32) { R = l.stateNode; try { Uc(R, ""); @@ -6602,14 +6602,14 @@ Error generating stack: ` + w.message + ` Kt(l, l.return, Fe); } } - w & 4 && l.stateNode != null && (R = l.memoizedProps, fw( + w & 4 && l.stateNode != null && (R = l.memoizedProps, dw( l, R, h !== null ? h.memoizedProps : R )), w & 1024 && (mw = !0); break; case 6: - if ($r(d, l), jr(l), w & 4) { + if ($r(f, l), jr(l), w & 4) { if (l.stateNode === null) throw Error(r(162)); w = l.memoizedProps, h = l.stateNode; @@ -6621,9 +6621,9 @@ Error generating stack: ` + w.message + ` } break; case 3: - if (jg = null, R = Uo, Uo = Ig(d.containerInfo), $r(d, l), Uo = R, jr(l), w & 4 && h !== null && h.memoizedState.isDehydrated) + if (jg = null, R = Uo, Uo = Ig(f.containerInfo), $r(f, l), Uo = R, jr(l), w & 4 && h !== null && h.memoizedState.isDehydrated) try { - bu(d.containerInfo); + bu(f.containerInfo); } catch (Fe) { Kt(l, l.return, Fe); } @@ -6632,25 +6632,25 @@ Error generating stack: ` + w.message + ` case 4: w = Uo, Uo = Ig( l.stateNode.containerInfo - ), $r(d, l), jr(l), Uo = w; + ), $r(f, l), jr(l), Uo = w; break; case 12: - $r(d, l), jr(l); + $r(f, l), jr(l); break; case 31: - $r(d, l), jr(l), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); + $r(f, l), jr(l), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); break; case 13: - $r(d, l), jr(l), l.child.flags & 8192 && l.memoizedState !== null != (h !== null && h.memoizedState !== null) && (Sg = Je()), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); + $r(f, l), jr(l), l.child.flags & 8192 && l.memoizedState !== null != (h !== null && h.memoizedState !== null) && (Sg = Je()), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); break; case 22: R = l.memoizedState !== null; var re = h !== null && h.memoizedState !== null, pe = va, ve = zn; - if (va = pe || R, zn = ve || re, $r(d, l), zn = ve, va = pe, jr(l), w & 8192) - e: for (d = l.stateNode, d._visibility = R ? d._visibility & -2 : d._visibility | 1, R && (h === null || re || va || zn || Dl(l)), h = null, d = l; ; ) { - if (d.tag === 5 || d.tag === 26) { + if (va = pe || R, zn = ve || re, $r(f, l), zn = ve, va = pe, jr(l), w & 8192) + e: for (f = l.stateNode, f._visibility = R ? f._visibility & -2 : f._visibility | 1, R && (h === null || re || va || zn || Dl(l)), h = null, f = l; ; ) { + if (f.tag === 5 || f.tag === 26) { if (h === null) { - re = h = d; + re = h = f; try { if (M = re.stateNode, R) q = M.style, typeof q.setProperty == "function" ? q.setProperty("display", "none", "important") : q.display = "none"; @@ -6663,18 +6663,18 @@ Error generating stack: ` + w.message + ` Kt(re, re.return, Fe); } } - } else if (d.tag === 6) { + } else if (f.tag === 6) { if (h === null) { - re = d; + re = f; try { re.stateNode.nodeValue = R ? "" : re.memoizedProps; } catch (Fe) { Kt(re, re.return, Fe); } } - } else if (d.tag === 18) { + } else if (f.tag === 18) { if (h === null) { - re = d; + re = f; try { var ye = re.stateNode; R ? HN(ye, !0) : HN(re.stateNode, !1); @@ -6682,33 +6682,33 @@ Error generating stack: ` + w.message + ` Kt(re, re.return, Fe); } } - } else if ((d.tag !== 22 && d.tag !== 23 || d.memoizedState === null || d === l) && d.child !== null) { - d.child.return = d, d = d.child; + } else if ((f.tag !== 22 && f.tag !== 23 || f.memoizedState === null || f === l) && f.child !== null) { + f.child.return = f, f = f.child; continue; } - if (d === l) break e; - for (; d.sibling === null; ) { - if (d.return === null || d.return === l) break e; - h === d && (h = null), d = d.return; + if (f === l) break e; + for (; f.sibling === null; ) { + if (f.return === null || f.return === l) break e; + h === f && (h = null), f = f.return; } - h === d && (h = null), d.sibling.return = d.return, d = d.sibling; + h === f && (h = null), f.sibling.return = f.return, f = f.sibling; } w & 4 && (w = l.updateQueue, w !== null && (h = w.retryQueue, h !== null && (w.retryQueue = null, xg(l, h)))); break; case 19: - $r(d, l), jr(l), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); + $r(f, l), jr(l), w & 4 && (w = l.updateQueue, w !== null && (l.updateQueue = null, xg(l, w))); break; case 30: break; case 21: break; default: - $r(d, l), jr(l); + $r(f, l), jr(l); } } function jr(l) { - var d = l.flags; - if (d & 2) { + var f = l.flags; + if (f & 2) { try { for (var h, w = l.return; w !== null; ) { if (WM(w)) { @@ -6746,60 +6746,60 @@ Error generating stack: ` + w.message + ` } l.flags &= -3; } - d & 4096 && (l.flags &= -4097); + f & 4096 && (l.flags &= -4097); } function tN(l) { if (l.subtreeFlags & 1024) for (l = l.child; l !== null; ) { - var d = l; - tN(d), d.tag === 5 && d.flags & 1024 && d.stateNode.reset(), l = l.sibling; + var f = l; + tN(f), f.tag === 5 && f.flags & 1024 && f.stateNode.reset(), l = l.sibling; } } - function xa(l, d) { - if (d.subtreeFlags & 8772) - for (d = d.child; d !== null; ) - YM(l, d.alternate, d), d = d.sibling; + function xa(l, f) { + if (f.subtreeFlags & 8772) + for (f = f.child; f !== null; ) + YM(l, f.alternate, f), f = f.sibling; } function Dl(l) { for (l = l.child; l !== null; ) { - var d = l; - switch (d.tag) { + var f = l; + switch (f.tag) { case 0: case 11: case 14: case 15: - _s(4, d, d.return), Dl(d); + _s(4, f, f.return), Dl(f); break; case 1: - hi(d, d.return); - var h = d.stateNode; + hi(f, f.return); + var h = f.stateNode; typeof h.componentWillUnmount == "function" && HM( - d, - d.return, + f, + f.return, h - ), Dl(d); + ), Dl(f); break; case 27: - jf(d.stateNode); + jd(f.stateNode); case 26: case 5: - hi(d, d.return), Dl(d); + hi(f, f.return), Dl(f); break; case 22: - d.memoizedState === null && Dl(d); + f.memoizedState === null && Dl(f); break; case 30: - Dl(d); + Dl(f); break; default: - Dl(d); + Dl(f); } l = l.sibling; } } - function wa(l, d, h) { - for (h = h && (d.subtreeFlags & 8772) !== 0, d = d.child; d !== null; ) { - var w = d.alternate, R = l, M = d, q = M.flags; + function wa(l, f, h) { + for (h = h && (f.subtreeFlags & 8772) !== 0, f = f.child; f !== null; ) { + var w = f.alternate, R = l, M = f, q = M.flags; switch (M.tag) { case 0: case 11: @@ -6808,7 +6808,7 @@ Error generating stack: ` + w.message + ` R, M, h - ), kf(4, M); + ), kd(4, M); break; case 1: if (wa( @@ -6832,7 +6832,7 @@ Error generating stack: ` + w.message + ` Kt(w, w.return, pe); } } - h && q & 64 && VM(M), Tf(M, M.return); + h && q & 64 && VM(M), Td(M, M.return); break; case 27: GM(M); @@ -6842,7 +6842,7 @@ Error generating stack: ` + w.message + ` R, M, h - ), h && w === null && q & 4 && qM(M), Tf(M, M.return); + ), h && w === null && q & 4 && qM(M), Td(M, M.return); break; case 12: wa( @@ -6870,7 +6870,7 @@ Error generating stack: ` + w.message + ` R, M, h - ), Tf(M, M.return); + ), Td(M, M.return); break; case 30: break; @@ -6881,43 +6881,43 @@ Error generating stack: ` + w.message + ` h ); } - d = d.sibling; + f = f.sibling; } } - function gw(l, d) { + function gw(l, f) { var h = null; - l !== null && l.memoizedState !== null && l.memoizedState.cachePool !== null && (h = l.memoizedState.cachePool.pool), l = null, d.memoizedState !== null && d.memoizedState.cachePool !== null && (l = d.memoizedState.cachePool.pool), l !== h && (l != null && l.refCount++, h != null && pf(h)); + l !== null && l.memoizedState !== null && l.memoizedState.cachePool !== null && (h = l.memoizedState.cachePool.pool), l = null, f.memoizedState !== null && f.memoizedState.cachePool !== null && (l = f.memoizedState.cachePool.pool), l !== h && (l != null && l.refCount++, h != null && pd(h)); } - function yw(l, d) { - l = null, d.alternate !== null && (l = d.alternate.memoizedState.cache), d = d.memoizedState.cache, d !== l && (d.refCount++, l != null && pf(l)); + function yw(l, f) { + l = null, f.alternate !== null && (l = f.alternate.memoizedState.cache), f = f.memoizedState.cache, f !== l && (f.refCount++, l != null && pd(l)); } - function Vo(l, d, h, w) { - if (d.subtreeFlags & 10256) - for (d = d.child; d !== null; ) + function Vo(l, f, h, w) { + if (f.subtreeFlags & 10256) + for (f = f.child; f !== null; ) nN( l, - d, + f, h, w - ), d = d.sibling; + ), f = f.sibling; } - function nN(l, d, h, w) { - var R = d.flags; - switch (d.tag) { + function nN(l, f, h, w) { + var R = f.flags; + switch (f.tag) { case 0: case 11: case 15: Vo( l, - d, + f, h, w - ), R & 2048 && kf(9, d); + ), R & 2048 && kd(9, f); break; case 1: Vo( l, - d, + f, h, w ); @@ -6925,34 +6925,34 @@ Error generating stack: ` + w.message + ` case 3: Vo( l, - d, + f, h, w - ), R & 2048 && (l = null, d.alternate !== null && (l = d.alternate.memoizedState.cache), d = d.memoizedState.cache, d !== l && (d.refCount++, l != null && pf(l))); + ), R & 2048 && (l = null, f.alternate !== null && (l = f.alternate.memoizedState.cache), f = f.memoizedState.cache, f !== l && (f.refCount++, l != null && pd(l))); break; case 12: if (R & 2048) { Vo( l, - d, + f, h, w - ), l = d.stateNode; + ), l = f.stateNode; try { - var M = d.memoizedProps, q = M.id, Z = M.onPostCommit; + var M = f.memoizedProps, q = M.id, Z = M.onPostCommit; typeof Z == "function" && Z( q, - d.alternate === null ? "mount" : "update", + f.alternate === null ? "mount" : "update", l.passiveEffectDuration, -0 ); } catch (re) { - Kt(d, d.return, re); + Kt(f, f.return, re); } } else Vo( l, - d, + f, h, w ); @@ -6960,7 +6960,7 @@ Error generating stack: ` + w.message + ` case 31: Vo( l, - d, + f, h, w ); @@ -6968,7 +6968,7 @@ Error generating stack: ` + w.message + ` case 13: Vo( l, - d, + f, h, w ); @@ -6976,44 +6976,44 @@ Error generating stack: ` + w.message + ` case 23: break; case 22: - M = d.stateNode, q = d.alternate, d.memoizedState !== null ? M._visibility & 2 ? Vo( + M = f.stateNode, q = f.alternate, f.memoizedState !== null ? M._visibility & 2 ? Vo( l, - d, + f, h, w - ) : Af(l, d) : M._visibility & 2 ? Vo( + ) : Ad(l, f) : M._visibility & 2 ? Vo( l, - d, + f, h, w ) : (M._visibility |= 2, lu( l, - d, + f, h, w, - (d.subtreeFlags & 10256) !== 0 || !1 - )), R & 2048 && gw(q, d); + (f.subtreeFlags & 10256) !== 0 || !1 + )), R & 2048 && gw(q, f); break; case 24: Vo( l, - d, + f, h, w - ), R & 2048 && yw(d.alternate, d); + ), R & 2048 && yw(f.alternate, f); break; default: Vo( l, - d, + f, h, w ); } } - function lu(l, d, h, w, R) { - for (R = R && ((d.subtreeFlags & 10256) !== 0 || !1), d = d.child; d !== null; ) { - var M = l, q = d, Z = h, re = w, pe = q.flags; + function lu(l, f, h, w, R) { + for (R = R && ((f.subtreeFlags & 10256) !== 0 || !1), f = f.child; f !== null; ) { + var M = l, q = f, Z = h, re = w, pe = q.flags; switch (q.tag) { case 0: case 11: @@ -7024,7 +7024,7 @@ Error generating stack: ` + w.message + ` Z, re, R - ), kf(8, q); + ), kd(8, q); break; case 23: break; @@ -7036,7 +7036,7 @@ Error generating stack: ` + w.message + ` Z, re, R - ) : Af( + ) : Ad( M, q ) : (ve._visibility |= 2, lu( @@ -7068,47 +7068,47 @@ Error generating stack: ` + w.message + ` R ); } - d = d.sibling; + f = f.sibling; } } - function Af(l, d) { - if (d.subtreeFlags & 10256) - for (d = d.child; d !== null; ) { - var h = l, w = d, R = w.flags; + function Ad(l, f) { + if (f.subtreeFlags & 10256) + for (f = f.child; f !== null; ) { + var h = l, w = f, R = w.flags; switch (w.tag) { case 22: - Af(h, w), R & 2048 && gw( + Ad(h, w), R & 2048 && gw( w.alternate, w ); break; case 24: - Af(h, w), R & 2048 && yw(w.alternate, w); + Ad(h, w), R & 2048 && yw(w.alternate, w); break; default: - Af(h, w); + Ad(h, w); } - d = d.sibling; + f = f.sibling; } } - var Rf = 8192; - function cu(l, d, h) { - if (l.subtreeFlags & Rf) + var Rd = 8192; + function cu(l, f, h) { + if (l.subtreeFlags & Rd) for (l = l.child; l !== null; ) rN( l, - d, + f, h ), l = l.sibling; } - function rN(l, d, h) { + function rN(l, f, h) { switch (l.tag) { case 26: cu( l, - d, + f, h - ), l.flags & Rf && l.memoizedState !== null && AG( + ), l.flags & Rd && l.memoizedState !== null && AG( h, Uo, l.memoizedState, @@ -7118,7 +7118,7 @@ Error generating stack: ` + w.message + ` case 5: cu( l, - d, + f, h ); break; @@ -7127,44 +7127,44 @@ Error generating stack: ` + w.message + ` var w = Uo; Uo = Ig(l.stateNode.containerInfo), cu( l, - d, + f, h ), Uo = w; break; case 22: - l.memoizedState === null && (w = l.alternate, w !== null && w.memoizedState !== null ? (w = Rf, Rf = 16777216, cu( + l.memoizedState === null && (w = l.alternate, w !== null && w.memoizedState !== null ? (w = Rd, Rd = 16777216, cu( l, - d, + f, h - ), Rf = w) : cu( + ), Rd = w) : cu( l, - d, + f, h )); break; default: cu( l, - d, + f, h ); } } function oN(l) { - var d = l.alternate; - if (d !== null && (l = d.child, l !== null)) { - d.child = null; + var f = l.alternate; + if (f !== null && (l = f.child, l !== null)) { + f.child = null; do - d = l.sibling, l.sibling = null, l = d; + f = l.sibling, l.sibling = null, l = f; while (l !== null); } } - function Of(l) { - var d = l.deletions; + function Od(l) { + var f = l.deletions; if ((l.flags & 16) !== 0) { - if (d !== null) - for (var h = 0; h < d.length; h++) { - var w = d[h]; + if (f !== null) + for (var h = 0; h < f.length; h++) { + var w = f[h]; Qn = w, aN( w, l @@ -7181,28 +7181,28 @@ Error generating stack: ` + w.message + ` case 0: case 11: case 15: - Of(l), l.flags & 2048 && _s(9, l, l.return); + Od(l), l.flags & 2048 && _s(9, l, l.return); break; case 3: - Of(l); + Od(l); break; case 12: - Of(l); + Od(l); break; case 22: - var d = l.stateNode; - l.memoizedState !== null && d._visibility & 2 && (l.return === null || l.return.tag !== 13) ? (d._visibility &= -3, wg(l)) : Of(l); + var f = l.stateNode; + l.memoizedState !== null && f._visibility & 2 && (l.return === null || l.return.tag !== 13) ? (f._visibility &= -3, wg(l)) : Od(l); break; default: - Of(l); + Od(l); } } function wg(l) { - var d = l.deletions; + var f = l.deletions; if ((l.flags & 16) !== 0) { - if (d !== null) - for (var h = 0; h < d.length; h++) { - var w = d[h]; + if (f !== null) + for (var h = 0; h < f.length; h++) { + var w = f[h]; Qn = w, aN( w, l @@ -7211,29 +7211,29 @@ Error generating stack: ` + w.message + ` oN(l); } for (l = l.child; l !== null; ) { - switch (d = l, d.tag) { + switch (f = l, f.tag) { case 0: case 11: case 15: - _s(8, d, d.return), wg(d); + _s(8, f, f.return), wg(f); break; case 22: - h = d.stateNode, h._visibility & 2 && (h._visibility &= -3, wg(d)); + h = f.stateNode, h._visibility & 2 && (h._visibility &= -3, wg(f)); break; default: - wg(d); + wg(f); } l = l.sibling; } } - function aN(l, d) { + function aN(l, f) { for (; Qn !== null; ) { var h = Qn; switch (h.tag) { case 0: case 11: case 15: - _s(8, h, d); + _s(8, h, f); break; case 23: case 22: @@ -7243,7 +7243,7 @@ Error generating stack: ` + w.message + ` } break; case 24: - pf(h.memoizedState.cache); + pd(h.memoizedState.cache); } if (w = h.child, w !== null) w.return = h, Qn = w; else @@ -7264,13 +7264,13 @@ Error generating stack: ` + w.message + ` } var VW = { getCacheForType: function(l) { - var d = or(Dn), h = d.data.get(l); - return h === void 0 && (h = l(), d.data.set(l, h)), h; + var f = or(Dn), h = f.data.get(l); + return h === void 0 && (h = l(), f.data.set(l, h)), h; }, cacheSignal: function() { return or(Dn).controller.signal; } - }, HW = typeof WeakMap == "function" ? WeakMap : Map, zt = 0, sn = null, wt = null, Ct = 0, Gt = 0, Qr = null, Es = !1, uu = !1, vw = !1, Sa = 0, Tn = 0, Cs = 0, Fl = 0, bw = 0, Jr = 0, du = 0, Mf = null, Dr = null, xw = !1, Sg = 0, sN = 0, _g = 1 / 0, Eg = null, ks = null, Gn = 0, Ts = null, fu = null, _a = 0, ww = 0, Sw = null, lN = null, Nf = 0, _w = null; + }, HW = typeof WeakMap == "function" ? WeakMap : Map, zt = 0, sn = null, wt = null, Ct = 0, Gt = 0, Qr = null, Es = !1, uu = !1, vw = !1, Sa = 0, Tn = 0, Cs = 0, Fl = 0, bw = 0, Jr = 0, fu = 0, Md = null, Dr = null, xw = !1, Sg = 0, sN = 0, _g = 1 / 0, Eg = null, ks = null, Gn = 0, Ts = null, du = null, _a = 0, ww = 0, Sw = null, lN = null, Nd = 0, _w = null; function eo() { return (zt & 2) !== 0 && Ct !== 0 ? Ct & -Ct : F.T !== null ? Rw() : Am(); } @@ -7282,7 +7282,7 @@ Error generating stack: ` + w.message + ` } else Jr = 536870912; return l = Xr.current, l !== null && (l.flags |= 32), Jr; } - function Fr(l, d, h) { + function Fr(l, f, h) { (l === sn && (Gt === 2 || Gt === 9) || l.cancelPendingCommit !== null) && (pu(l, 0), As( l, Ct, @@ -7295,28 +7295,28 @@ Error generating stack: ` + w.message + ` !1 )), mi(l)); } - function uN(l, d, h) { + function uN(l, f, h) { if ((zt & 6) !== 0) throw Error(r(327)); - var w = !h && (d & 127) === 0 && (d & l.expiredLanes) === 0 || yo(l, d), R = w ? GW(l, d) : Cw(l, d, !0), M = w; + var w = !h && (f & 127) === 0 && (f & l.expiredLanes) === 0 || yo(l, f), R = w ? GW(l, f) : Cw(l, f, !0), M = w; do { if (R === 0) { - uu && !w && As(l, d, 0, !1); + uu && !w && As(l, f, 0, !1); break; } else { if (h = l.current.alternate, M && !qW(h)) { - R = Cw(l, d, !1), M = !1; + R = Cw(l, f, !1), M = !1; continue; } if (R === 2) { - if (M = d, l.errorRecoveryDisabledLanes & M) + if (M = f, l.errorRecoveryDisabledLanes & M) var q = 0; else q = l.pendingLanes & -536870913, q = q !== 0 ? q : q & 536870912 ? 536870912 : 0; if (q !== 0) { - d = q; + f = q; e: { var Z = l; - R = Mf; + R = Md; var re = Z.current.memoizedState.isDehydrated; if (re && (pu(Z, q).flags |= 256), q = Cw( Z, @@ -7338,7 +7338,7 @@ Error generating stack: ` + w.message + ` } } if (R === 1) { - pu(l, 0), As(l, d, 0, !0); + pu(l, 0), As(l, f, 0, !0); break; } e: { @@ -7347,11 +7347,11 @@ Error generating stack: ` + w.message + ` case 1: throw Error(r(345)); case 4: - if ((d & 4194048) !== d) break; + if ((f & 4194048) !== f) break; case 6: As( w, - d, + f, Jr, !Es ); @@ -7365,25 +7365,25 @@ Error generating stack: ` + w.message + ` default: throw Error(r(329)); } - if ((d & 62914560) === d && (R = Sg + 300 - Je(), 10 < R)) { + if ((f & 62914560) === f && (R = Sg + 300 - Je(), 10 < R)) { if (As( w, - d, + f, Jr, !Es ), ui(w, 0, !0) !== 0) break e; - _a = d, w.timeoutHandle = BN( - dN.bind( + _a = f, w.timeoutHandle = BN( + fN.bind( null, w, h, Dr, Eg, xw, - d, + f, Jr, Fl, - du, + fu, Es, M, "Throttled", @@ -7394,16 +7394,16 @@ Error generating stack: ` + w.message + ` ); break e; } - dN( + fN( w, h, Dr, Eg, xw, - d, + f, Jr, Fl, - du, + fu, Es, M, null, @@ -7416,8 +7416,8 @@ Error generating stack: ` + w.message + ` } while (!0); mi(l); } - function dN(l, d, h, w, R, M, q, Z, re, pe, ve, we, he, ye) { - if (l.timeoutHandle = -1, we = d.subtreeFlags, we & 8192 || (we & 16785408) === 16785408) { + function fN(l, f, h, w, R, M, q, Z, re, pe, ve, we, he, ye) { + if (l.timeoutHandle = -1, we = f.subtreeFlags, we & 8192 || (we & 16785408) === 16785408) { we = { stylesheets: null, count: 0, @@ -7428,7 +7428,7 @@ Error generating stack: ` + w.message + ` waitingForViewTransition: !1, unsuspend: la }, rN( - d, + f, M, we ); @@ -7441,7 +7441,7 @@ Error generating stack: ` + w.message + ` bN.bind( null, l, - d, + f, M, h, w, @@ -7461,7 +7461,7 @@ Error generating stack: ` + w.message + ` } bN( l, - d, + f, M, h, w, @@ -7472,9 +7472,9 @@ Error generating stack: ` + w.message + ` ); } function qW(l) { - for (var d = l; ; ) { - var h = d.tag; - if ((h === 0 || h === 11 || h === 15) && d.flags & 16384 && (h = d.updateQueue, h !== null && (h = h.stores, h !== null))) + for (var f = l; ; ) { + var h = f.tag; + if ((h === 0 || h === 11 || h === 15) && f.flags & 16384 && (h = f.updateQueue, h !== null && (h = h.stores, h !== null))) for (var w = 0; w < h.length; w++) { var R = h[w], M = R.getSnapshot; R = R.value; @@ -7484,56 +7484,56 @@ Error generating stack: ` + w.message + ` return !1; } } - if (h = d.child, d.subtreeFlags & 16384 && h !== null) - h.return = d, d = h; + if (h = f.child, f.subtreeFlags & 16384 && h !== null) + h.return = f, f = h; else { - if (d === l) break; - for (; d.sibling === null; ) { - if (d.return === null || d.return === l) return !0; - d = d.return; + if (f === l) break; + for (; f.sibling === null; ) { + if (f.return === null || f.return === l) return !0; + f = f.return; } - d.sibling.return = d.return, d = d.sibling; + f.sibling.return = f.return, f = f.sibling; } } return !0; } - function As(l, d, h, w) { - d &= ~bw, d &= ~Fl, l.suspendedLanes |= d, l.pingedLanes &= ~d, w && (l.warmLanes |= d), w = l.expirationTimes; - for (var R = d; 0 < R; ) { + function As(l, f, h, w) { + f &= ~bw, f &= ~Fl, l.suspendedLanes |= f, l.pingedLanes &= ~f, w && (l.warmLanes |= f), w = l.expirationTimes; + for (var R = f; 0 < R; ) { var M = 31 - Mt(R), q = 1 << M; w[M] = -1, R &= ~q; } - h !== 0 && Cm(l, h, d); + h !== 0 && Cm(l, h, f); } function Cg() { - return (zt & 6) === 0 ? (Pf(0), !1) : !0; + return (zt & 6) === 0 ? (Pd(0), !1) : !0; } function Ew() { if (wt !== null) { if (Gt === 0) var l = wt.return; else - l = wt, fa = Rl = null, zx(l), ru = null, mf = 0, l = wt; + l = wt, da = Rl = null, zx(l), ru = null, md = 0, l = wt; for (; l !== null; ) UM(l.alternate, l), l = l.return; wt = null; } } - function pu(l, d) { + function pu(l, f) { var h = l.timeoutHandle; - h !== -1 && (l.timeoutHandle = -1, dG(h)), h = l.cancelPendingCommit, h !== null && (l.cancelPendingCommit = null, h()), _a = 0, Ew(), sn = l, wt = h = ua(l.current, null), Ct = d, Gt = 0, Qr = null, Es = !1, uu = yo(l, d), vw = !1, du = Jr = bw = Fl = Cs = Tn = 0, Dr = Mf = null, xw = !1, (d & 8) !== 0 && (d |= d & 32); + h !== -1 && (l.timeoutHandle = -1, fG(h)), h = l.cancelPendingCommit, h !== null && (l.cancelPendingCommit = null, h()), _a = 0, Ew(), sn = l, wt = h = ua(l.current, null), Ct = f, Gt = 0, Qr = null, Es = !1, uu = yo(l, f), vw = !1, fu = Jr = bw = Fl = Cs = Tn = 0, Dr = Md = null, xw = !1, (f & 8) !== 0 && (f |= f & 32); var w = l.entangledLanes; if (w !== 0) - for (l = l.entanglements, w &= d; 0 < w; ) { + for (l = l.entanglements, w &= f; 0 < w; ) { var R = 31 - Mt(w), M = 1 << R; - d |= l[R], w &= ~M; + f |= l[R], w &= ~M; } - return Sa = d, Wm(), h; + return Sa = f, Wm(), h; } - function fN(l, d) { - lt = null, F.H = _f, d === nu || d === eg ? (d = AO(), Gt = 3) : d === Ax ? (d = AO(), Gt = 4) : Gt = d === nw ? 8 : d !== null && typeof d == "object" && typeof d.then == "function" ? 6 : 1, Qr = d, wt === null && (Tn = 1, hg( + function dN(l, f) { + lt = null, F.H = _d, f === nu || f === eg ? (f = AO(), Gt = 3) : f === Ax ? (f = AO(), Gt = 4) : Gt = f === nw ? 8 : f !== null && typeof f == "object" && typeof f.then == "function" ? 6 : 1, Qr = f, wt === null && (Tn = 1, hg( l, - bo(d, l.current) + bo(f, l.current) )); } function pN() { @@ -7542,7 +7542,7 @@ Error generating stack: ` + w.message + ` } function hN() { var l = F.H; - return F.H = _f, l === null ? _f : l; + return F.H = _d, l === null ? _d : l; } function mN() { var l = F.A; @@ -7556,11 +7556,11 @@ Error generating stack: ` + w.message + ` !1 ); } - function Cw(l, d, h) { + function Cw(l, f, h) { var w = zt; zt |= 2; var R = hN(), M = mN(); - (sn !== l || Ct !== d) && (Eg = null, pu(l, d)), d = !1; + (sn !== l || Ct !== f) && (Eg = null, pu(l, f)), f = !1; var q = Tn; e: do try { @@ -7574,7 +7574,7 @@ Error generating stack: ` + w.message + ` case 2: case 9: case 6: - Xr.current === null && (d = !0); + Xr.current === null && (f = !0); var pe = Gt; if (Gt = 0, Qr = null, hu(l, Z, re, pe), h && uu) { q = 0; @@ -7588,40 +7588,40 @@ Error generating stack: ` + w.message + ` WW(), q = Tn; break; } catch (ve) { - fN(l, ve); + dN(l, ve); } while (!0); - return d && l.shellSuspendCounter++, fa = Rl = null, zt = w, F.H = R, F.A = M, wt === null && (sn = null, Ct = 0, Wm()), q; + return f && l.shellSuspendCounter++, da = Rl = null, zt = w, F.H = R, F.A = M, wt === null && (sn = null, Ct = 0, Wm()), q; } function WW() { for (; wt !== null; ) gN(wt); } - function GW(l, d) { + function GW(l, f) { var h = zt; zt |= 2; var w = hN(), R = mN(); - sn !== l || Ct !== d ? (Eg = null, _g = Je() + 500, pu(l, d)) : uu = yo( + sn !== l || Ct !== f ? (Eg = null, _g = Je() + 500, pu(l, f)) : uu = yo( l, - d + f ); e: do try { if (Gt !== 0 && wt !== null) { - d = wt; + f = wt; var M = Qr; t: switch (Gt) { case 1: - Gt = 0, Qr = null, hu(l, d, M, 1); + Gt = 0, Qr = null, hu(l, f, M, 1); break; case 2: case 9: if (kO(M)) { - Gt = 0, Qr = null, yN(d); + Gt = 0, Qr = null, yN(f); break; } - d = function() { + f = function() { Gt !== 2 && Gt !== 9 || sn !== l || (Gt = 7), mi(l); - }, M.then(d, d); + }, M.then(f, f); break e; case 3: Gt = 7; @@ -7630,7 +7630,7 @@ Error generating stack: ` + w.message + ` Gt = 5; break e; case 7: - kO(M) ? (Gt = 0, Qr = null, yN(d)) : (Gt = 0, Qr = null, hu(l, d, M, 7)); + kO(M) ? (Gt = 0, Qr = null, yN(f)) : (Gt = 0, Qr = null, hu(l, f, M, 7)); break; case 5: var q = null; @@ -7651,10 +7651,10 @@ Error generating stack: ` + w.message + ` break t; } } - Gt = 0, Qr = null, hu(l, d, M, 5); + Gt = 0, Qr = null, hu(l, f, M, 5); break; case 6: - Gt = 0, Qr = null, hu(l, d, M, 6); + Gt = 0, Qr = null, hu(l, f, M, 6); break; case 8: Ew(), Tn = 6; @@ -7666,58 +7666,58 @@ Error generating stack: ` + w.message + ` KW(); break; } catch (ve) { - fN(l, ve); + dN(l, ve); } while (!0); - return fa = Rl = null, F.H = w, F.A = R, zt = h, wt !== null ? 0 : (sn = null, Ct = 0, Wm(), Tn); + return da = Rl = null, F.H = w, F.A = R, zt = h, wt !== null ? 0 : (sn = null, Ct = 0, Wm(), Tn); } function KW() { for (; wt !== null && !Ne(); ) gN(wt); } function gN(l) { - var d = zM(l.alternate, l, Sa); - l.memoizedProps = l.pendingProps, d === null ? Tg(l) : wt = d; + var f = zM(l.alternate, l, Sa); + l.memoizedProps = l.pendingProps, f === null ? Tg(l) : wt = f; } function yN(l) { - var d = l, h = d.alternate; - switch (d.tag) { + var f = l, h = f.alternate; + switch (f.tag) { case 15: case 0: - d = IM( + f = IM( h, - d, - d.pendingProps, - d.type, + f, + f.pendingProps, + f.type, void 0, Ct ); break; case 11: - d = IM( + f = IM( h, - d, - d.pendingProps, - d.type.render, - d.ref, + f, + f.pendingProps, + f.type.render, + f.ref, Ct ); break; case 5: - zx(d); + zx(f); default: - UM(h, d), d = wt = mO(d, Sa), d = zM(h, d, Sa); + UM(h, f), f = wt = mO(f, Sa), f = zM(h, f, Sa); } - l.memoizedProps = l.pendingProps, d === null ? Tg(l) : wt = d; + l.memoizedProps = l.pendingProps, f === null ? Tg(l) : wt = f; } - function hu(l, d, h, w) { - fa = Rl = null, zx(d), ru = null, mf = 0; - var R = d.return; + function hu(l, f, h, w) { + da = Rl = null, zx(f), ru = null, md = 0; + var R = f.return; try { if (jW( l, R, - d, + f, h, Ct )) { @@ -7735,44 +7735,44 @@ Error generating stack: ` + w.message + ` ), wt = null; return; } - d.flags & 32768 ? (At || w === 1 ? l = !0 : uu || (Ct & 536870912) !== 0 ? l = !1 : (Es = l = !0, (w === 2 || w === 9 || w === 3 || w === 6) && (w = Xr.current, w !== null && w.tag === 13 && (w.flags |= 16384))), vN(d, l)) : Tg(d); + f.flags & 32768 ? (At || w === 1 ? l = !0 : uu || (Ct & 536870912) !== 0 ? l = !1 : (Es = l = !0, (w === 2 || w === 9 || w === 3 || w === 6) && (w = Xr.current, w !== null && w.tag === 13 && (w.flags |= 16384))), vN(f, l)) : Tg(f); } function Tg(l) { - var d = l; + var f = l; do { - if ((d.flags & 32768) !== 0) { + if ((f.flags & 32768) !== 0) { vN( - d, + f, Es ); return; } - l = d.return; + l = f.return; var h = LW( - d.alternate, - d, + f.alternate, + f, Sa ); if (h !== null) { wt = h; return; } - if (d = d.sibling, d !== null) { - wt = d; + if (f = f.sibling, f !== null) { + wt = f; return; } - wt = d = l; - } while (d !== null); + wt = f = l; + } while (f !== null); Tn === 0 && (Tn = 5); } - function vN(l, d) { + function vN(l, f) { do { var h = zW(l.alternate, l); if (h !== null) { h.flags &= 32767, wt = h; return; } - if (h = l.return, h !== null && (h.flags |= 32768, h.subtreeFlags = 0, h.deletions = null), !d && (l = l.sibling, l !== null)) { + if (h = l.return, h !== null && (h.flags |= 32768, h.subtreeFlags = 0, h.deletions = null), !f && (l = l.sibling, l !== null)) { wt = l; return; } @@ -7780,27 +7780,27 @@ Error generating stack: ` + w.message + ` } while (l !== null); Tn = 6, wt = null; } - function bN(l, d, h, w, R, M, q, Z, re) { + function bN(l, f, h, w, R, M, q, Z, re) { l.cancelPendingCommit = null; do Ag(); while (Gn !== 0); if ((zt & 6) !== 0) throw Error(r(327)); - if (d !== null) { - if (d === l.current) throw Error(r(177)); - if (M = d.lanes | d.childLanes, M |= px, V1( + if (f !== null) { + if (f === l.current) throw Error(r(177)); + if (M = f.lanes | f.childLanes, M |= px, V1( l, h, M, q, Z, re - ), l === sn && (wt = sn = null, Ct = 0), fu = d, Ts = l, _a = h, ww = M, Sw = R, lN = w, (d.subtreeFlags & 10256) !== 0 || (d.flags & 10256) !== 0 ? (l.callbackNode = null, l.callbackPriority = 0, QW(_e, function() { + ), l === sn && (wt = sn = null, Ct = 0), du = f, Ts = l, _a = h, ww = M, Sw = R, lN = w, (f.subtreeFlags & 10256) !== 0 || (f.flags & 10256) !== 0 ? (l.callbackNode = null, l.callbackPriority = 0, QW(_e, function() { return EN(), null; - })) : (l.callbackNode = null, l.callbackPriority = 0), w = (d.flags & 13878) !== 0, (d.subtreeFlags & 13878) !== 0 || w) { + })) : (l.callbackNode = null, l.callbackPriority = 0), w = (f.flags & 13878) !== 0, (f.subtreeFlags & 13878) !== 0 || w) { w = F.T, F.T = null, R = K.p, K.p = 2, q = zt, zt |= 4; try { - BW(l, d, h); + BW(l, f, h); } finally { zt = q, K.p = R, F.T = w; } @@ -7811,15 +7811,15 @@ Error generating stack: ` + w.message + ` function xN() { if (Gn === 1) { Gn = 0; - var l = Ts, d = fu, h = (d.flags & 13878) !== 0; - if ((d.subtreeFlags & 13878) !== 0 || h) { + var l = Ts, f = du, h = (f.flags & 13878) !== 0; + if ((f.subtreeFlags & 13878) !== 0 || h) { h = F.T, F.T = null; var w = K.p; K.p = 2; var R = zt; zt |= 4; try { - eN(d, l); + eN(f, l); var M = Dw, q = aO(l.containerInfo), Z = M.focusedElem, re = M.selectionRange; if (q !== Z && Z && Z.ownerDocument && iO( Z.ownerDocument.documentElement, @@ -7845,8 +7845,8 @@ Error generating stack: ` + w.message + ` tn ); if (ce && ae && (ye.rangeCount !== 1 || ye.anchorNode !== ce.node || ye.anchorOffset !== ce.offset || ye.focusNode !== ae.node || ye.focusOffset !== ae.offset)) { - var fe = we.createRange(); - fe.setStart(ce.node, ce.offset), ye.removeAllRanges(), et > tn ? (ye.addRange(fe), ye.extend(ae.node, ae.offset)) : (fe.setEnd(ae.node, ae.offset), ye.addRange(fe)); + var de = we.createRange(); + de.setStart(ce.node, ce.offset), ye.removeAllRanges(), et > tn ? (ye.addRange(de), ye.extend(ae.node, ae.offset)) : (de.setEnd(ae.node, ae.offset), ye.addRange(de)); } } } @@ -7867,21 +7867,21 @@ Error generating stack: ` + w.message + ` zt = R, K.p = w, F.T = h; } } - l.current = d, Gn = 2; + l.current = f, Gn = 2; } } function wN() { if (Gn === 2) { Gn = 0; - var l = Ts, d = fu, h = (d.flags & 8772) !== 0; - if ((d.subtreeFlags & 8772) !== 0 || h) { + var l = Ts, f = du, h = (f.flags & 8772) !== 0; + if ((f.subtreeFlags & 8772) !== 0 || h) { h = F.T, F.T = null; var w = K.p; K.p = 2; var R = zt; zt |= 4; try { - YM(l, d.alternate, d); + YM(l, f.alternate, f); } finally { zt = R, K.p = w, F.T = h; } @@ -7892,21 +7892,21 @@ Error generating stack: ` + w.message + ` function SN() { if (Gn === 4 || Gn === 3) { Gn = 0, mt(); - var l = Ts, d = fu, h = _a, w = lN; - (d.subtreeFlags & 10256) !== 0 || (d.flags & 10256) !== 0 ? Gn = 5 : (Gn = 0, fu = Ts = null, _N(l, l.pendingLanes)); + var l = Ts, f = du, h = _a, w = lN; + (f.subtreeFlags & 10256) !== 0 || (f.flags & 10256) !== 0 ? Gn = 5 : (Gn = 0, du = Ts = null, _N(l, l.pendingLanes)); var R = l.pendingLanes; - if (R === 0 && (ks = null), Zd(h), d = d.stateNode, Et && typeof Et.onCommitFiberRoot == "function") + if (R === 0 && (ks = null), Qf(h), f = f.stateNode, Et && typeof Et.onCommitFiberRoot == "function") try { Et.onCommitFiberRoot( it, - d, + f, void 0, - (d.current.flags & 128) === 128 + (f.current.flags & 128) === 128 ); } catch { } if (w !== null) { - d = F.T, R = K.p, K.p = 2, F.T = null; + f = F.T, R = K.p, K.p = 2, F.T = null; try { for (var M = l.onRecoverableError, q = 0; q < w.length; q++) { var Z = w[q]; @@ -7915,95 +7915,95 @@ Error generating stack: ` + w.message + ` }); } } finally { - F.T = d, K.p = R; + F.T = f, K.p = R; } } - (_a & 3) !== 0 && Ag(), mi(l), R = l.pendingLanes, (h & 261930) !== 0 && (R & 42) !== 0 ? l === _w ? Nf++ : (Nf = 0, _w = l) : Nf = 0, Pf(0); + (_a & 3) !== 0 && Ag(), mi(l), R = l.pendingLanes, (h & 261930) !== 0 && (R & 42) !== 0 ? l === _w ? Nd++ : (Nd = 0, _w = l) : Nd = 0, Pd(0); } } - function _N(l, d) { - (l.pooledCacheLanes &= d) === 0 && (d = l.pooledCache, d != null && (l.pooledCache = null, pf(d))); + function _N(l, f) { + (l.pooledCacheLanes &= f) === 0 && (f = l.pooledCache, f != null && (l.pooledCache = null, pd(f))); } function Ag() { return xN(), wN(), SN(), EN(); } function EN() { if (Gn !== 5) return !1; - var l = Ts, d = ww; + var l = Ts, f = ww; ww = 0; - var h = Zd(_a), w = F.T, R = K.p; + var h = Qf(_a), w = F.T, R = K.p; try { K.p = 32 > h ? 32 : h, F.T = null, h = Sw, Sw = null; var M = Ts, q = _a; - if (Gn = 0, fu = Ts = null, _a = 0, (zt & 6) !== 0) throw Error(r(331)); + if (Gn = 0, du = Ts = null, _a = 0, (zt & 6) !== 0) throw Error(r(331)); var Z = zt; if (zt |= 4, iN(M.current), nN( M, M.current, q, h - ), zt = Z, Pf(0, !1), Et && typeof Et.onPostCommitFiberRoot == "function") + ), zt = Z, Pd(0, !1), Et && typeof Et.onPostCommitFiberRoot == "function") try { Et.onPostCommitFiberRoot(it, M); } catch { } return !0; } finally { - K.p = R, F.T = w, _N(l, d); + K.p = R, F.T = w, _N(l, f); } } - function CN(l, d, h) { - d = bo(h, d), d = tw(l.stateNode, d, 2), l = xs(l, d, 2), l !== null && (bl(l, 2), mi(l)); + function CN(l, f, h) { + f = bo(h, f), f = tw(l.stateNode, f, 2), l = xs(l, f, 2), l !== null && (bl(l, 2), mi(l)); } - function Kt(l, d, h) { + function Kt(l, f, h) { if (l.tag === 3) CN(l, l, h); else - for (; d !== null; ) { - if (d.tag === 3) { + for (; f !== null; ) { + if (f.tag === 3) { CN( - d, + f, l, h ); break; - } else if (d.tag === 1) { - var w = d.stateNode; - if (typeof d.type.getDerivedStateFromError == "function" || typeof w.componentDidCatch == "function" && (ks === null || !ks.has(w))) { - l = bo(h, l), h = kM(2), w = xs(d, h, 2), w !== null && (TM( + } else if (f.tag === 1) { + var w = f.stateNode; + if (typeof f.type.getDerivedStateFromError == "function" || typeof w.componentDidCatch == "function" && (ks === null || !ks.has(w))) { + l = bo(h, l), h = kM(2), w = xs(f, h, 2), w !== null && (TM( h, w, - d, + f, l ), bl(w, 2), mi(w)); break; } } - d = d.return; + f = f.return; } } - function kw(l, d, h) { + function kw(l, f, h) { var w = l.pingCache; if (w === null) { w = l.pingCache = new HW(); var R = /* @__PURE__ */ new Set(); - w.set(d, R); + w.set(f, R); } else - R = w.get(d), R === void 0 && (R = /* @__PURE__ */ new Set(), w.set(d, R)); - R.has(h) || (vw = !0, R.add(h), l = YW.bind(null, l, d, h), d.then(l, l)); + R = w.get(f), R === void 0 && (R = /* @__PURE__ */ new Set(), w.set(f, R)); + R.has(h) || (vw = !0, R.add(h), l = YW.bind(null, l, f, h), f.then(l, l)); } - function YW(l, d, h) { + function YW(l, f, h) { var w = l.pingCache; - w !== null && w.delete(d), l.pingedLanes |= l.suspendedLanes & h, l.warmLanes &= ~h, sn === l && (Ct & h) === h && (Tn === 4 || Tn === 3 && (Ct & 62914560) === Ct && 300 > Je() - Sg ? (zt & 2) === 0 && pu(l, 0) : bw |= h, du === Ct && (du = 0)), mi(l); + w !== null && w.delete(f), l.pingedLanes |= l.suspendedLanes & h, l.warmLanes &= ~h, sn === l && (Ct & h) === h && (Tn === 4 || Tn === 3 && (Ct & 62914560) === Ct && 300 > Je() - Sg ? (zt & 2) === 0 && pu(l, 0) : bw |= h, fu === Ct && (fu = 0)), mi(l); } - function kN(l, d) { - d === 0 && (d = Em()), l = kl(l, d), l !== null && (bl(l, d), mi(l)); + function kN(l, f) { + f === 0 && (f = Em()), l = kl(l, f), l !== null && (bl(l, f), mi(l)); } function XW(l) { - var d = l.memoizedState, h = 0; - d !== null && (h = d.retryLane), kN(l, h); + var f = l.memoizedState, h = 0; + f !== null && (h = f.retryLane), kN(l, h); } - function ZW(l, d) { + function ZW(l, f) { var h = 0; switch (l.tag) { case 31: @@ -8020,16 +8020,16 @@ Error generating stack: ` + w.message + ` default: throw Error(r(314)); } - w !== null && w.delete(d), kN(l, h); + w !== null && w.delete(f), kN(l, h); } - function QW(l, d) { - return Ye(l, d); + function QW(l, f) { + return Ye(l, f); } var Rg = null, mu = null, Tw = !1, Og = !1, Aw = !1, Rs = 0; function mi(l) { l !== mu && l.next === null && (mu === null ? Rg = mu = l : mu = mu.next = l), Og = !0, Tw || (Tw = !0, eG()); } - function Pf(l, d) { + function Pd(l, f) { if (!Aw && Og) { Aw = !0; do @@ -8061,29 +8061,29 @@ Error generating stack: ` + w.message + ` Og = Tw = !1; var l = 0; Rs !== 0 && uG() && (l = Rs); - for (var d = Je(), h = null, w = Rg; w !== null; ) { - var R = w.next, M = AN(w, d); + for (var f = Je(), h = null, w = Rg; w !== null; ) { + var R = w.next, M = AN(w, f); M === 0 ? (w.next = null, h === null ? Rg = R : h.next = R, R === null && (mu = h)) : (h = w, (l !== 0 || (M & 3) !== 0) && (Og = !0)), w = R; } - Gn !== 0 && Gn !== 5 || Pf(l), Rs !== 0 && (Rs = 0); + Gn !== 0 && Gn !== 5 || Pd(l), Rs !== 0 && (Rs = 0); } - function AN(l, d) { + function AN(l, f) { for (var h = l.suspendedLanes, w = l.pingedLanes, R = l.expirationTimes, M = l.pendingLanes & -62914561; 0 < M; ) { var q = 31 - Mt(M), Z = 1 << q, re = R[q]; - re === -1 ? ((Z & h) === 0 || (Z & w) !== 0) && (R[q] = Gr(Z, d)) : re <= d && (l.expiredLanes |= Z), M &= ~Z; + re === -1 ? ((Z & h) === 0 || (Z & w) !== 0) && (R[q] = Gr(Z, f)) : re <= f && (l.expiredLanes |= Z), M &= ~Z; } - if (d = sn, h = Ct, h = ui( + if (f = sn, h = Ct, h = ui( l, - l === d ? h : 0, + l === f ? h : 0, l.cancelPendingCommit !== null || l.timeoutHandle !== -1 - ), w = l.callbackNode, h === 0 || l === d && (Gt === 2 || Gt === 9) || l.cancelPendingCommit !== null) + ), w = l.callbackNode, h === 0 || l === f && (Gt === 2 || Gt === 9) || l.cancelPendingCommit !== null) return w !== null && w !== null && Ue(w), l.callbackNode = null, l.callbackPriority = 0; if ((h & 3) === 0 || yo(l, h)) { - if (d = h & -h, d === l.callbackPriority) return d; - switch (w !== null && Ue(w), Zd(h)) { + if (f = h & -h, f === l.callbackPriority) return f; + switch (w !== null && Ue(w), Qf(h)) { case 2: case 8: - h = de; + h = fe; break; case 32: h = _e; @@ -8094,11 +8094,11 @@ Error generating stack: ` + w.message + ` default: h = _e; } - return w = RN.bind(null, l), h = Ye(h, w), l.callbackPriority = d, l.callbackNode = h, d; + return w = RN.bind(null, l), h = Ye(h, w), l.callbackPriority = f, l.callbackNode = h, f; } return w !== null && w !== null && Ue(w), l.callbackPriority = 2, l.callbackNode = null, 2; } - function RN(l, d) { + function RN(l, f) { if (Gn !== 0 && Gn !== 5) return l.callbackNode = null, l.callbackPriority = 0, null; var h = l.callbackNode; @@ -8109,14 +8109,14 @@ Error generating stack: ` + w.message + ` l, l === sn ? w : 0, l.cancelPendingCommit !== null || l.timeoutHandle !== -1 - ), w === 0 ? null : (uN(l, w, d), AN(l, Je()), l.callbackNode != null && l.callbackNode === h ? RN.bind(null, l) : null); + ), w === 0 ? null : (uN(l, w, f), AN(l, Je()), l.callbackNode != null && l.callbackNode === h ? RN.bind(null, l) : null); } - function ON(l, d) { + function ON(l, f) { if (Ag()) return null; - uN(l, d, !0); + uN(l, f, !0); } function eG() { - fG(function() { + dG(function() { (zt & 6) !== 0 ? Ye( oe, JW @@ -8133,16 +8133,16 @@ Error generating stack: ` + w.message + ` function MN(l) { return l == null || typeof l == "symbol" || typeof l == "boolean" ? null : typeof l == "function" ? l : Fm("" + l); } - function NN(l, d) { - var h = d.ownerDocument.createElement("input"); - return h.name = d.name, h.value = d.value, l.id && h.setAttribute("form", l.id), d.parentNode.insertBefore(h, d), l = new FormData(l), h.parentNode.removeChild(h), l; + function NN(l, f) { + var h = f.ownerDocument.createElement("input"); + return h.name = f.name, h.value = f.value, l.id && h.setAttribute("form", l.id), f.parentNode.insertBefore(h, f), l = new FormData(l), h.parentNode.removeChild(h), l; } - function tG(l, d, h, w, R) { - if (d === "submit" && h && h.stateNode === R) { + function tG(l, f, h, w, R) { + if (f === "submit" && h && h.stateNode === R) { var M = MN( (R[pr] || null).action ), q = w.submitter; - q && (d = (d = q[pr] || null) ? MN(d.formAction) : q.getAttribute("formAction"), d !== null && (M = d, q = null)); + q && (f = (f = q[pr] || null) ? MN(f.formAction) : q.getAttribute("formAction"), f !== null && (M = f, q = null)); var Z = new Um( "action", "action", @@ -8190,14 +8190,14 @@ Error generating stack: ` + w.message + ` }); } } - for (var Ow = 0; Ow < fx.length; Ow++) { - var Mw = fx[Ow], nG = Mw.toLowerCase(), rG = Mw[0].toUpperCase() + Mw.slice(1); + for (var Ow = 0; Ow < dx.length; Ow++) { + var Mw = dx[Ow], nG = Mw.toLowerCase(), rG = Mw[0].toUpperCase() + Mw.slice(1); Bo( nG, "on" + rG ); } - Bo(cO, "onAnimationEnd"), Bo(uO, "onAnimationIteration"), Bo(dO, "onAnimationStart"), Bo("dblclick", "onDoubleClick"), Bo("focusin", "onFocus"), Bo("focusout", "onBlur"), Bo(bW, "onTransitionRun"), Bo(xW, "onTransitionStart"), Bo(wW, "onTransitionCancel"), Bo(fO, "onTransitionEnd"), fs("onMouseEnter", ["mouseout", "mouseover"]), fs("onMouseLeave", ["mouseout", "mouseover"]), fs("onPointerEnter", ["pointerout", "pointerover"]), fs("onPointerLeave", ["pointerout", "pointerover"]), aa( + Bo(cO, "onAnimationEnd"), Bo(uO, "onAnimationIteration"), Bo(fO, "onAnimationStart"), Bo("dblclick", "onDoubleClick"), Bo("focusin", "onFocus"), Bo("focusout", "onBlur"), Bo(bW, "onTransitionRun"), Bo(xW, "onTransitionStart"), Bo(wW, "onTransitionCancel"), Bo(dO, "onTransitionEnd"), ds("onMouseEnter", ["mouseout", "mouseover"]), ds("onMouseLeave", ["mouseout", "mouseover"]), ds("onPointerEnter", ["pointerout", "pointerover"]), ds("onPointerLeave", ["pointerout", "pointerover"]), aa( "onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ") ), aa( @@ -8220,19 +8220,19 @@ Error generating stack: ` + w.message + ` "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ") ); - var If = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split( + var Id = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split( " " ), oG = new Set( - "beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(If) + "beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Id) ); - function PN(l, d) { - d = (d & 4) !== 0; + function PN(l, f) { + f = (f & 4) !== 0; for (var h = 0; h < l.length; h++) { var w = l[h], R = w.event; w = w.listeners; e: { var M = void 0; - if (d) + if (f) for (var q = w.length - 1; 0 <= q; q--) { var Z = w[q], re = Z.instance, pe = Z.currentTarget; if (Z = Z.listener, re !== M && R.isPropagationStopped()) @@ -8260,19 +8260,19 @@ Error generating stack: ` + w.message + ` } } } - function St(l, d) { - var h = d[Fc]; - h === void 0 && (h = d[Fc] = /* @__PURE__ */ new Set()); + function St(l, f) { + var h = f[Fc]; + h === void 0 && (h = f[Fc] = /* @__PURE__ */ new Set()); var w = l + "__bubble"; - h.has(w) || (IN(d, l, 2, !1), h.add(w)); + h.has(w) || (IN(f, l, 2, !1), h.add(w)); } - function Nw(l, d, h) { + function Nw(l, f, h) { var w = 0; - d && (w |= 4), IN( + f && (w |= 4), IN( h, l, w, - d + f ); } var Mg = "_reactListening" + Math.random().toString(36).slice(2); @@ -8281,12 +8281,12 @@ Error generating stack: ` + w.message + ` l[Mg] = !0, Nm.forEach(function(h) { h !== "selectionchange" && (oG.has(h) || Nw(h, !1, l), Nw(h, !0, l)); }); - var d = l.nodeType === 9 ? l : l.ownerDocument; - d === null || d[Mg] || (d[Mg] = !0, Nw("selectionchange", !1, d)); + var f = l.nodeType === 9 ? l : l.ownerDocument; + f === null || f[Mg] || (f[Mg] = !0, Nw("selectionchange", !1, f)); } } - function IN(l, d, h, w) { - switch (cP(d)) { + function IN(l, f, h, w) { + switch (cP(f)) { case 2: var R = NG; break; @@ -8298,19 +8298,19 @@ Error generating stack: ` + w.message + ` } h = R.bind( null, - d, + f, h, l - ), R = void 0, !J1 || d !== "touchstart" && d !== "touchmove" && d !== "wheel" || (R = !0), w ? R !== void 0 ? l.addEventListener(d, h, { + ), R = void 0, !J1 || f !== "touchstart" && f !== "touchmove" && f !== "wheel" || (R = !0), w ? R !== void 0 ? l.addEventListener(f, h, { capture: !0, passive: R - }) : l.addEventListener(d, h, !0) : R !== void 0 ? l.addEventListener(d, h, { + }) : l.addEventListener(f, h, !0) : R !== void 0 ? l.addEventListener(f, h, { passive: R - }) : l.addEventListener(d, h, !1); + }) : l.addEventListener(f, h, !1); } - function Iw(l, d, h, w, R) { + function Iw(l, f, h, w, R) { var M = w; - if ((d & 1) === 0 && (d & 2) === 0 && w !== null) + if ((f & 1) === 0 && (f & 2) === 0 && w !== null) e: for (; ; ) { if (w === null) return; var q = w.tag; @@ -8388,10 +8388,10 @@ Error generating stack: ` + w.message + ` break; case cO: case uO: - case dO: + case fO: ye = Uq; break; - case fO: + case dO: ye = nW; break; case "scroll": @@ -8420,12 +8420,12 @@ Error generating stack: ` + w.message + ` case "beforetoggle": ye = aW; } - var et = (d & 4) !== 0, tn = !et && (l === "scroll" || l === "scrollend"), ce = et ? he !== null ? he + "Capture" : null : he; + var et = (f & 4) !== 0, tn = !et && (l === "scroll" || l === "scrollend"), ce = et ? he !== null ? he + "Capture" : null : he; et = []; - for (var ae = pe, fe; ae !== null; ) { + for (var ae = pe, de; ae !== null; ) { var xe = ae; - if (fe = xe.stateNode, xe = xe.tag, xe !== 5 && xe !== 26 && xe !== 27 || fe === null || ce === null || (xe = tf(ae, ce), xe != null && et.push( - $f(ae, xe, fe) + if (de = xe.stateNode, xe = xe.tag, xe !== 5 && xe !== 26 && xe !== 27 || de === null || ce === null || (xe = nd(ae, ce), xe != null && et.push( + $d(ae, xe, de) )), tn) break; ae = ae.return; } @@ -8438,35 +8438,35 @@ Error generating stack: ` + w.message + ` ), we.push({ event: he, listeners: et })); } } - if ((d & 7) === 0) { + if ((f & 7) === 0) { e: { if (he = l === "mouseover" || l === "pointerover", ye = l === "mouseout" || l === "pointerout", he && h !== X1 && (Fe = h.relatedTarget || h.fromElement) && (ls(Fe) || Fe[ia])) break e; if ((ye || he) && (he = ve.window === ve ? ve : (he = ve.ownerDocument) ? he.defaultView || he.parentWindow : window, ye ? (Fe = h.relatedTarget || h.toElement, ye = pe, Fe = Fe ? ls(Fe) : null, Fe !== null && (tn = i(Fe), et = Fe.tag, Fe !== tn || et !== 5 && et !== 27 && et !== 6) && (Fe = null)) : (ye = null, Fe = pe), ye !== Fe)) { - if (et = UR, xe = "onMouseLeave", ce = "onMouseEnter", ae = "mouse", (l === "pointerout" || l === "pointerover") && (et = HR, xe = "onPointerLeave", ce = "onPointerEnter", ae = "pointer"), tn = ye == null ? he : us(ye), fe = Fe == null ? he : us(Fe), he = new et( + if (et = UR, xe = "onMouseLeave", ce = "onMouseEnter", ae = "mouse", (l === "pointerout" || l === "pointerover") && (et = HR, xe = "onPointerLeave", ce = "onPointerEnter", ae = "pointer"), tn = ye == null ? he : us(ye), de = Fe == null ? he : us(Fe), he = new et( xe, ae + "leave", ye, h, ve - ), he.target = tn, he.relatedTarget = fe, xe = null, ls(ve) === pe && (et = new et( + ), he.target = tn, he.relatedTarget = de, xe = null, ls(ve) === pe && (et = new et( ce, ae + "enter", Fe, h, ve - ), et.target = fe, et.relatedTarget = tn, xe = et), tn = xe, ye && Fe) + ), et.target = de, et.relatedTarget = tn, xe = et), tn = xe, ye && Fe) t: { - for (et = iG, ce = ye, ae = Fe, fe = 0, xe = ce; xe; xe = et(xe)) - fe++; + for (et = iG, ce = ye, ae = Fe, de = 0, xe = ce; xe; xe = et(xe)) + de++; xe = 0; for (var qe = ae; qe; qe = et(qe)) xe++; - for (; 0 < fe - xe; ) - ce = et(ce), fe--; - for (; 0 < xe - fe; ) + for (; 0 < de - xe; ) + ce = et(ce), de--; + for (; 0 < xe - de; ) ae = et(ae), xe--; - for (; fe--; ) { + for (; de--; ) { if (ce === ae || ae !== null && ce === ae.alternate) { et = ce; break t; @@ -8512,14 +8512,14 @@ Error generating stack: ` + w.message + ` ); break e; } - Be && Be(l, he, pe), l === "focusout" && pe && he.type === "number" && pe.memoizedProps.value != null && ef(he, "number", he.value); + Be && Be(l, he, pe), l === "focusout" && pe && he.type === "number" && pe.memoizedProps.value != null && td(he, "number", he.value); } switch (Be = pe ? us(pe) : window, l) { case "focusin": - (XR(Be) || Be.contentEditable === "true") && (Wc = Be, cx = pe, uf = null); + (XR(Be) || Be.contentEditable === "true") && (Wc = Be, cx = pe, ud = null); break; case "focusout": - uf = cx = Wc = null; + ud = cx = Wc = null; break; case "mousedown": ux = !0; @@ -8535,7 +8535,7 @@ Error generating stack: ` + w.message + ` case "keyup": sO(we, h, ve); } - var ft; + var dt; if (ix) e: { switch (l) { @@ -8553,13 +8553,13 @@ Error generating stack: ` + w.message + ` } else qc ? KR(l, h) && (kt = "onCompositionEnd") : l === "keydown" && h.keyCode === 229 && (kt = "onCompositionStart"); - kt && (qR && h.locale !== "ko" && (qc || kt !== "onCompositionStart" ? kt === "onCompositionEnd" && qc && (ft = zR()) : (ps = ve, ex = "value" in ps ? ps.value : ps.textContent, qc = !0)), Be = Ng(pe, kt), 0 < Be.length && (kt = new VR( + kt && (qR && h.locale !== "ko" && (qc || kt !== "onCompositionStart" ? kt === "onCompositionEnd" && qc && (dt = zR()) : (ps = ve, ex = "value" in ps ? ps.value : ps.textContent, qc = !0)), Be = Ng(pe, kt), 0 < Be.length && (kt = new VR( kt, l, null, h, ve - ), we.push({ event: kt, listeners: Be }), ft ? kt.data = ft : (ft = YR(h), ft !== null && (kt.data = ft)))), (ft = lW ? cW(l, h) : uW(l, h)) && (kt = Ng(pe, "onBeforeInput"), 0 < kt.length && (Be = new VR( + ), we.push({ event: kt, listeners: Be }), dt ? kt.data = dt : (dt = YR(h), dt !== null && (kt.data = dt)))), (dt = lW ? cW(l, h) : uW(l, h)) && (kt = Ng(pe, "onBeforeInput"), 0 < kt.length && (Be = new VR( "onBeforeInput", "beforeinput", null, @@ -8568,7 +8568,7 @@ Error generating stack: ` + w.message + ` ), we.push({ event: Be, listeners: kt - }), Be.data = ft)), tG( + }), Be.data = dt)), tG( we, l, pe, @@ -8576,23 +8576,23 @@ Error generating stack: ` + w.message + ` ve ); } - PN(we, d); + PN(we, f); }); } - function $f(l, d, h) { + function $d(l, f, h) { return { instance: l, - listener: d, + listener: f, currentTarget: h }; } - function Ng(l, d) { - for (var h = d + "Capture", w = []; l !== null; ) { + function Ng(l, f) { + for (var h = f + "Capture", w = []; l !== null; ) { var R = l, M = R.stateNode; - if (R = R.tag, R !== 5 && R !== 26 && R !== 27 || M === null || (R = tf(l, h), R != null && w.unshift( - $f(l, R, M) - ), R = tf(l, d), R != null && w.push( - $f(l, R, M) + if (R = R.tag, R !== 5 && R !== 26 && R !== 27 || M === null || (R = nd(l, h), R != null && w.unshift( + $d(l, R, M) + ), R = nd(l, f), R != null && w.push( + $d(l, R, M) )), l.tag === 3) return w; l = l.return; } @@ -8605,30 +8605,30 @@ Error generating stack: ` + w.message + ` while (l && l.tag !== 5 && l.tag !== 27); return l || null; } - function $N(l, d, h, w, R) { - for (var M = d._reactName, q = []; h !== null && h !== w; ) { + function $N(l, f, h, w, R) { + for (var M = f._reactName, q = []; h !== null && h !== w; ) { var Z = h, re = Z.alternate, pe = Z.stateNode; if (Z = Z.tag, re !== null && re === w) break; - Z !== 5 && Z !== 26 && Z !== 27 || pe === null || (re = pe, R ? (pe = tf(h, M), pe != null && q.unshift( - $f(h, pe, re) - )) : R || (pe = tf(h, M), pe != null && q.push( - $f(h, pe, re) + Z !== 5 && Z !== 26 && Z !== 27 || pe === null || (re = pe, R ? (pe = nd(h, M), pe != null && q.unshift( + $d(h, pe, re) + )) : R || (pe = nd(h, M), pe != null && q.push( + $d(h, pe, re) ))), h = h.return; } - q.length !== 0 && l.push({ event: d, listeners: q }); + q.length !== 0 && l.push({ event: f, listeners: q }); } var aG = /\r\n?/g, sG = /\u0000|\uFFFD/g; function jN(l) { return (typeof l == "string" ? l : "" + l).replace(aG, ` `).replace(sG, ""); } - function DN(l, d) { - return d = jN(d), jN(l) === d; + function DN(l, f) { + return f = jN(f), jN(l) === f; } - function en(l, d, h, w, R, M) { + function en(l, f, h, w, R, M) { switch (h) { case "children": - typeof w == "string" ? d === "body" || d === "textarea" && w === "" || Uc(l, w) : (typeof w == "number" || typeof w == "bigint") && d !== "body" && Uc(l, "" + w); + typeof w == "string" ? f === "body" || f === "textarea" && w === "" || Uc(l, w) : (typeof w == "number" || typeof w == "bigint") && f !== "body" && Uc(l, "" + w); break; case "className": zc(l, "class", w); @@ -8647,13 +8647,13 @@ Error generating stack: ` + w.message + ` DR(l, w, M); break; case "data": - if (d !== "object") { + if (f !== "object") { zc(l, "data", w); break; } case "src": case "href": - if (w === "" && (d !== "a" || h !== "href")) { + if (w === "" && (f !== "a" || h !== "href")) { l.removeAttribute(h); break; } @@ -8672,28 +8672,28 @@ Error generating stack: ` + w.message + ` ); break; } else - typeof M == "function" && (h === "formAction" ? (d !== "input" && en(l, d, "name", R.name, R, null), en( + typeof M == "function" && (h === "formAction" ? (f !== "input" && en(l, f, "name", R.name, R, null), en( l, - d, + f, "formEncType", R.formEncType, R, null ), en( l, - d, + f, "formMethod", R.formMethod, R, null ), en( l, - d, + f, "formTarget", R.formTarget, R, null - )) : (en(l, d, "encType", R.encType, R, null), en(l, d, "method", R.method, R, null), en(l, d, "target", R.target, R, null))); + )) : (en(l, f, "encType", R.encType, R, null), en(l, f, "method", R.method, R, null), en(l, f, "target", R.target, R, null))); if (w == null || typeof w == "symbol" || typeof w == "boolean") { l.removeAttribute(h); break; @@ -8879,7 +8879,7 @@ Error generating stack: ` + w.message + ` (!(2 < h.length) || h[0] !== "o" && h[0] !== "O" || h[1] !== "n" && h[1] !== "N") && (h = $q.get(h) || h, Lc(l, h, w)); } } - function $w(l, d, h, w, R, M) { + function $w(l, f, h, w, R, M) { switch (h) { case "style": DR(l, w, M); @@ -8917,16 +8917,16 @@ Error generating stack: ` + w.message + ` default: if (!Pm.hasOwnProperty(h)) e: { - if (h[0] === "o" && h[1] === "n" && (R = h.endsWith("Capture"), d = h.slice(2, R ? h.length - 7 : void 0), M = l[pr] || null, M = M != null ? M[h] : null, typeof M == "function" && l.removeEventListener(d, M, R), typeof w == "function")) { - typeof M != "function" && M !== null && (h in l ? l[h] = null : l.hasAttribute(h) && l.removeAttribute(h)), l.addEventListener(d, w, R); + if (h[0] === "o" && h[1] === "n" && (R = h.endsWith("Capture"), f = h.slice(2, R ? h.length - 7 : void 0), M = l[pr] || null, M = M != null ? M[h] : null, typeof M == "function" && l.removeEventListener(f, M, R), typeof w == "function")) { + typeof M != "function" && M !== null && (h in l ? l[h] = null : l.hasAttribute(h) && l.removeAttribute(h)), l.addEventListener(f, w, R); break e; } h in l ? l[h] = w : w === !0 ? l.setAttribute(h, "") : Lc(l, h, w); } } } - function ar(l, d, h) { - switch (d) { + function ar(l, f, h) { + switch (f) { case "div": case "span": case "svg": @@ -8952,12 +8952,12 @@ Error generating stack: ` + w.message + ` break; case "children": case "dangerouslySetInnerHTML": - throw Error(r(137, d)); + throw Error(r(137, f)); default: - en(l, d, M, q, h, null); + en(l, f, M, q, h, null); } } - R && en(l, d, "srcSet", h.srcSet, h, null), w && en(l, d, "src", h.src, h, null); + R && en(l, f, "srcSet", h.srcSet, h, null), w && en(l, f, "src", h.src, h, null); return; case "input": St("invalid", l); @@ -8988,10 +8988,10 @@ Error generating stack: ` + w.message + ` case "children": case "dangerouslySetInnerHTML": if (ve != null) - throw Error(r(137, d)); + throw Error(r(137, f)); break; default: - en(l, d, w, ve, h, null); + en(l, f, w, ve, h, null); } } Dm( @@ -9019,9 +9019,9 @@ Error generating stack: ` + w.message + ` case "multiple": w = Z; default: - en(l, d, R, Z, h, null); + en(l, f, R, Z, h, null); } - d = M, h = q, l.multiple = !!w, d != null ? sa(l, !!w, d, !1) : h != null && sa(l, !!w, h, !0); + f = M, h = q, l.multiple = !!w, f != null ? sa(l, !!w, f, !1) : h != null && sa(l, !!w, h, !0); return; case "textarea": St("invalid", l), M = R = w = null; @@ -9041,13 +9041,13 @@ Error generating stack: ` + w.message + ` if (Z != null) throw Error(r(91)); break; default: - en(l, d, q, Z, h, null); + en(l, f, q, Z, h, null); } $R(l, w, R, M); return; case "option": for (re in h) - h.hasOwnProperty(re) && (w = h[re], w != null) && (re === "selected" ? l.selected = w && typeof w != "function" && typeof w != "symbol" : en(l, d, re, w, h, null)); + h.hasOwnProperty(re) && (w = h[re], w != null) && (re === "selected" ? l.selected = w && typeof w != "function" && typeof w != "symbol" : en(l, f, re, w, h, null)); return; case "dialog": St("beforetoggle", l), St("toggle", l), St("cancel", l), St("close", l); @@ -9058,8 +9058,8 @@ Error generating stack: ` + w.message + ` break; case "video": case "audio": - for (w = 0; w < If.length; w++) - St(If[w], l); + for (w = 0; w < Id.length; w++) + St(Id[w], l); break; case "image": St("error", l), St("load", l); @@ -9087,17 +9087,17 @@ Error generating stack: ` + w.message + ` switch (pe) { case "children": case "dangerouslySetInnerHTML": - throw Error(r(137, d)); + throw Error(r(137, f)); default: - en(l, d, pe, w, h, null); + en(l, f, pe, w, h, null); } return; default: - if (Y1(d)) { + if (Y1(f)) { for (ve in h) h.hasOwnProperty(ve) && (w = h[ve], w !== void 0 && $w( l, - d, + f, ve, w, h, @@ -9107,10 +9107,10 @@ Error generating stack: ` + w.message + ` } } for (Z in h) - h.hasOwnProperty(Z) && (w = h[Z], w != null && en(l, d, Z, w, h, null)); + h.hasOwnProperty(Z) && (w = h[Z], w != null && en(l, f, Z, w, h, null)); } - function lG(l, d, h, w) { - switch (d) { + function lG(l, f, h, w) { + switch (f) { case "div": case "span": case "svg": @@ -9133,7 +9133,7 @@ Error generating stack: ` + w.message + ` case "defaultValue": re = we; default: - w.hasOwnProperty(ye) || en(l, d, ye, null, w, we); + w.hasOwnProperty(ye) || en(l, f, ye, null, w, we); } } for (var he in w) { @@ -9161,12 +9161,12 @@ Error generating stack: ` + w.message + ` case "children": case "dangerouslySetInnerHTML": if (ye != null) - throw Error(r(137, d)); + throw Error(r(137, f)); break; default: ye !== we && en( l, - d, + f, he, ye, w, @@ -9197,7 +9197,7 @@ Error generating stack: ` + w.message + ` default: w.hasOwnProperty(M) || en( l, - d, + f, M, null, w, @@ -9218,14 +9218,14 @@ Error generating stack: ` + w.message + ` default: M !== re && en( l, - d, + f, R, M, w, re ); } - d = Z, h = q, w = ye, he != null ? sa(l, !!h, he, !1) : !!w != !!h && (d != null ? sa(l, !!h, d, !0) : sa(l, !!h, h ? [] : "", !1)); + f = Z, h = q, w = ye, he != null ? sa(l, !!h, he, !1) : !!w != !!h && (f != null ? sa(l, !!h, f, !0) : sa(l, !!h, h ? [] : "", !1)); return; case "textarea": ye = he = null; @@ -9237,7 +9237,7 @@ Error generating stack: ` + w.message + ` case "children": break; default: - en(l, d, Z, null, w, R); + en(l, f, Z, null, w, R); } for (q in w) if (R = w[q], M = h[q], w.hasOwnProperty(q) && (R != null || M != null)) @@ -9254,7 +9254,7 @@ Error generating stack: ` + w.message + ` if (R != null) throw Error(r(91)); break; default: - R !== M && en(l, d, q, R, w, M); + R !== M && en(l, f, q, R, w, M); } IR(l, he, ye); return; @@ -9262,7 +9262,7 @@ Error generating stack: ` + w.message + ` for (var Fe in h) he = h[Fe], h.hasOwnProperty(Fe) && he != null && !w.hasOwnProperty(Fe) && (Fe === "selected" ? l.selected = !1 : en( l, - d, + f, Fe, null, w, @@ -9271,7 +9271,7 @@ Error generating stack: ` + w.message + ` for (re in w) he = w[re], ye = h[re], w.hasOwnProperty(re) && he !== ye && (he != null || ye != null) && (re === "selected" ? l.selected = he && typeof he != "function" && typeof he != "symbol" : en( l, - d, + f, re, he, w, @@ -9294,19 +9294,19 @@ Error generating stack: ` + w.message + ` case "wbr": case "menuitem": for (var et in h) - he = h[et], h.hasOwnProperty(et) && he != null && !w.hasOwnProperty(et) && en(l, d, et, null, w, he); + he = h[et], h.hasOwnProperty(et) && he != null && !w.hasOwnProperty(et) && en(l, f, et, null, w, he); for (pe in w) if (he = w[pe], ye = h[pe], w.hasOwnProperty(pe) && he !== ye && (he != null || ye != null)) switch (pe) { case "children": case "dangerouslySetInnerHTML": if (he != null) - throw Error(r(137, d)); + throw Error(r(137, f)); break; default: en( l, - d, + f, pe, he, w, @@ -9315,11 +9315,11 @@ Error generating stack: ` + w.message + ` } return; default: - if (Y1(d)) { + if (Y1(f)) { for (var tn in h) he = h[tn], h.hasOwnProperty(tn) && he !== void 0 && !w.hasOwnProperty(tn) && $w( l, - d, + f, tn, void 0, w, @@ -9328,7 +9328,7 @@ Error generating stack: ` + w.message + ` for (ve in w) he = w[ve], ye = h[ve], !w.hasOwnProperty(ve) || he === ye || he === void 0 && ye === void 0 || $w( l, - d, + f, ve, he, w, @@ -9338,9 +9338,9 @@ Error generating stack: ` + w.message + ` } } for (var ce in h) - he = h[ce], h.hasOwnProperty(ce) && he != null && !w.hasOwnProperty(ce) && en(l, d, ce, null, w, he); + he = h[ce], h.hasOwnProperty(ce) && he != null && !w.hasOwnProperty(ce) && en(l, f, ce, null, w, he); for (we in w) - he = w[we], ye = h[we], !w.hasOwnProperty(we) || he === ye || he == null && ye == null || en(l, d, we, he, w, ye); + he = w[we], ye = h[we], !w.hasOwnProperty(we) || he === ye || he == null && ye == null || en(l, f, we, he, w, ye); } function FN(l) { switch (l) { @@ -9358,7 +9358,7 @@ Error generating stack: ` + w.message + ` } function cG() { if (typeof performance.getEntriesByType == "function") { - for (var l = 0, d = 0, h = performance.getEntriesByType("resource"), w = 0; w < h.length; w++) { + for (var l = 0, f = 0, h = performance.getEntriesByType("resource"), w = 0; w < h.length; w++) { var R = h[w], M = R.transferSize, q = R.initiatorType, Z = R.duration; if (M && Z && FN(q)) { for (q = 0, Z = R.responseEnd, w += 1; w < h.length; w++) { @@ -9367,10 +9367,10 @@ Error generating stack: ` + w.message + ` var ve = re.transferSize, we = re.initiatorType; ve && FN(we) && (re = re.responseEnd, q += ve * (re < Z ? 1 : (Z - pe) / (re - pe))); } - if (--w, d += 8 * (M + q) / (R.duration / 1e3), l++, 10 < l) break; + if (--w, f += 8 * (M + q) / (R.duration / 1e3), l++, 10 < l) break; } } - if (0 < l) return d / l / 1e6; + if (0 < l) return f / l / 1e6; } return navigator.connection && (l = navigator.connection.downlink, typeof l == "number") ? l : 5; } @@ -9388,9 +9388,9 @@ Error generating stack: ` + w.message + ` return 0; } } - function zN(l, d) { + function zN(l, f) { if (l === 0) - switch (d) { + switch (f) { case "svg": return 1; case "math": @@ -9398,17 +9398,17 @@ Error generating stack: ` + w.message + ` default: return 0; } - return l === 1 && d === "foreignObject" ? 0 : l; + return l === 1 && f === "foreignObject" ? 0 : l; } - function Fw(l, d) { - return l === "textarea" || l === "noscript" || typeof d.children == "string" || typeof d.children == "number" || typeof d.children == "bigint" || typeof d.dangerouslySetInnerHTML == "object" && d.dangerouslySetInnerHTML !== null && d.dangerouslySetInnerHTML.__html != null; + function Fw(l, f) { + return l === "textarea" || l === "noscript" || typeof f.children == "string" || typeof f.children == "number" || typeof f.children == "bigint" || typeof f.dangerouslySetInnerHTML == "object" && f.dangerouslySetInnerHTML !== null && f.dangerouslySetInnerHTML.__html != null; } var Lw = null; function uG() { var l = window.event; return l && l.type === "popstate" ? l === Lw ? !1 : (Lw = l, !0) : (Lw = null, !1); } - var BN = typeof setTimeout == "function" ? setTimeout : void 0, dG = typeof clearTimeout == "function" ? clearTimeout : void 0, UN = typeof Promise == "function" ? Promise : void 0, fG = typeof queueMicrotask == "function" ? queueMicrotask : typeof UN < "u" ? function(l) { + var BN = typeof setTimeout == "function" ? setTimeout : void 0, fG = typeof clearTimeout == "function" ? clearTimeout : void 0, UN = typeof Promise == "function" ? Promise : void 0, dG = typeof queueMicrotask == "function" ? queueMicrotask : typeof UN < "u" ? function(l) { return UN.resolve(null).then(l).catch(pG); } : BN; function pG(l) { @@ -9419,39 +9419,39 @@ Error generating stack: ` + w.message + ` function Os(l) { return l === "head"; } - function VN(l, d) { - var h = d, w = 0; + function VN(l, f) { + var h = f, w = 0; do { var R = h.nextSibling; if (l.removeChild(h), R && R.nodeType === 8) if (h = R.data, h === "/$" || h === "/&") { if (w === 0) { - l.removeChild(R), bu(d); + l.removeChild(R), bu(f); return; } w--; } else if (h === "$" || h === "$?" || h === "$~" || h === "$!" || h === "&") w++; else if (h === "html") - jf(l.ownerDocument.documentElement); + jd(l.ownerDocument.documentElement); else if (h === "head") { - h = l.ownerDocument.head, jf(h); + h = l.ownerDocument.head, jd(h); for (var M = h.firstChild; M; ) { var q = M.nextSibling, Z = M.nodeName; M[xl] || Z === "SCRIPT" || Z === "STYLE" || Z === "LINK" && M.rel.toLowerCase() === "stylesheet" || h.removeChild(M), M = q; } } else - h === "body" && jf(l.ownerDocument.body); + h === "body" && jd(l.ownerDocument.body); h = R; } while (h); - bu(d); + bu(f); } - function HN(l, d) { + function HN(l, f) { var h = l; l = 0; do { var w = h.nextSibling; - if (h.nodeType === 1 ? d ? (h._stashedDisplay = h.style.display, h.style.display = "none") : (h.style.display = h._stashedDisplay || "", h.getAttribute("style") === "" && h.removeAttribute("style")) : h.nodeType === 3 && (d ? (h._stashedText = h.nodeValue, h.nodeValue = "") : h.nodeValue = h._stashedText || ""), w && w.nodeType === 8) + if (h.nodeType === 1 ? f ? (h._stashedDisplay = h.style.display, h.style.display = "none") : (h.style.display = h._stashedDisplay || "", h.getAttribute("style") === "" && h.removeAttribute("style")) : h.nodeType === 3 && (f ? (h._stashedText = h.nodeValue, h.nodeValue = "") : h.nodeValue = h._stashedText || ""), w && w.nodeType === 8) if (h = w.data, h === "/$") { if (l === 0) break; l--; @@ -9461,14 +9461,14 @@ Error generating stack: ` + w.message + ` } while (h); } function zw(l) { - var d = l.firstChild; - for (d && d.nodeType === 10 && (d = d.nextSibling); d; ) { - var h = d; - switch (d = d.nextSibling, h.nodeName) { + var f = l.firstChild; + for (f && f.nodeType === 10 && (f = f.nextSibling); f; ) { + var h = f; + switch (f = f.nextSibling, h.nodeName) { case "HTML": case "HEAD": case "BODY": - zw(h), Qd(h); + zw(h), Jf(h); continue; case "SCRIPT": case "STYLE": @@ -9479,15 +9479,15 @@ Error generating stack: ` + w.message + ` l.removeChild(h); } } - function hG(l, d, h, w) { + function hG(l, f, h, w) { for (; l.nodeType === 1; ) { var R = h; - if (l.nodeName.toLowerCase() !== d.toLowerCase()) { + if (l.nodeName.toLowerCase() !== f.toLowerCase()) { if (!w && (l.nodeName !== "INPUT" || l.type !== "hidden")) break; } else if (w) { if (!l[xl]) - switch (d) { + switch (f) { case "meta": if (!l.hasAttribute("itemprop")) break; return l; @@ -9507,7 +9507,7 @@ Error generating stack: ` + w.message + ` default: return l; } - } else if (d === "input" && l.type === "hidden") { + } else if (f === "input" && l.type === "hidden") { var M = R.name == null ? null : "" + R.name; if (R.type === "hidden" && l.getAttribute("name") === M) return l; @@ -9516,15 +9516,15 @@ Error generating stack: ` + w.message + ` } return null; } - function mG(l, d, h) { - if (d === "") return null; + function mG(l, f, h) { + if (f === "") return null; for (; l.nodeType !== 3; ) if ((l.nodeType !== 1 || l.nodeName !== "INPUT" || l.type !== "hidden") && !h || (l = Eo(l.nextSibling), l === null)) return null; return l; } - function qN(l, d) { + function qN(l, f) { for (; l.nodeType !== 8; ) - if ((l.nodeType !== 1 || l.nodeName !== "INPUT" || l.type !== "hidden") && !d || (l = Eo(l.nextSibling), l === null)) return null; + if ((l.nodeType !== 1 || l.nodeName !== "INPUT" || l.type !== "hidden") && !f || (l = Eo(l.nextSibling), l === null)) return null; return l; } function Bw(l) { @@ -9533,26 +9533,26 @@ Error generating stack: ` + w.message + ` function Uw(l) { return l.data === "$!" || l.data === "$?" && l.ownerDocument.readyState !== "loading"; } - function gG(l, d) { + function gG(l, f) { var h = l.ownerDocument; - if (l.data === "$~") l._reactRetry = d; + if (l.data === "$~") l._reactRetry = f; else if (l.data !== "$?" || h.readyState !== "loading") - d(); + f(); else { var w = function() { - d(), h.removeEventListener("DOMContentLoaded", w); + f(), h.removeEventListener("DOMContentLoaded", w); }; h.addEventListener("DOMContentLoaded", w), l._reactRetry = w; } } function Eo(l) { for (; l != null; l = l.nextSibling) { - var d = l.nodeType; - if (d === 1 || d === 3) break; - if (d === 8) { - if (d = l.data, d === "$" || d === "$!" || d === "$?" || d === "$~" || d === "&" || d === "F!" || d === "F") + var f = l.nodeType; + if (f === 1 || f === 3) break; + if (f === 8) { + if (f = l.data, f === "$" || f === "$!" || f === "$?" || f === "$~" || f === "&" || f === "F!" || f === "F") break; - if (d === "/$" || d === "/&") return null; + if (f === "/$" || f === "/&") return null; } } return l; @@ -9560,15 +9560,15 @@ Error generating stack: ` + w.message + ` var Vw = null; function WN(l) { l = l.nextSibling; - for (var d = 0; l; ) { + for (var f = 0; l; ) { if (l.nodeType === 8) { var h = l.data; if (h === "/$" || h === "/&") { - if (d === 0) + if (f === 0) return Eo(l.nextSibling); - d--; + f--; } else - h !== "$" && h !== "$!" && h !== "$?" && h !== "$~" && h !== "&" || d++; + h !== "$" && h !== "$!" && h !== "$?" && h !== "$~" && h !== "&" || f++; } l = l.nextSibling; } @@ -9576,37 +9576,37 @@ Error generating stack: ` + w.message + ` } function GN(l) { l = l.previousSibling; - for (var d = 0; l; ) { + for (var f = 0; l; ) { if (l.nodeType === 8) { var h = l.data; if (h === "$" || h === "$!" || h === "$?" || h === "$~" || h === "&") { - if (d === 0) return l; - d--; - } else h !== "/$" && h !== "/&" || d++; + if (f === 0) return l; + f--; + } else h !== "/$" && h !== "/&" || f++; } l = l.previousSibling; } return null; } - function KN(l, d, h) { - switch (d = Pg(h), l) { + function KN(l, f, h) { + switch (f = Pg(h), l) { case "html": - if (l = d.documentElement, !l) throw Error(r(452)); + if (l = f.documentElement, !l) throw Error(r(452)); return l; case "head": - if (l = d.head, !l) throw Error(r(453)); + if (l = f.head, !l) throw Error(r(453)); return l; case "body": - if (l = d.body, !l) throw Error(r(454)); + if (l = f.body, !l) throw Error(r(454)); return l; default: throw Error(r(451)); } } - function jf(l) { - for (var d = l.attributes; d.length; ) - l.removeAttributeNode(d[0]); - Qd(l); + function jd(l) { + for (var f = l.attributes; f.length; ) + l.removeAttributeNode(f[0]); + Jf(l); } var Co = /* @__PURE__ */ new Map(), YN = /* @__PURE__ */ new Set(); function Ig(l) { @@ -9625,39 +9625,39 @@ Error generating stack: ` + w.message + ` M: CG }; function yG() { - var l = Ea.f(), d = Cg(); - return l || d; + var l = Ea.f(), f = Cg(); + return l || f; } function vG(l) { - var d = cs(l); - d !== null && d.tag === 5 && d.type === "form" ? fM(d) : Ea.r(l); + var f = cs(l); + f !== null && f.tag === 5 && f.type === "form" ? dM(f) : Ea.r(l); } var gu = typeof document > "u" ? null : document; - function XN(l, d, h) { + function XN(l, f, h) { var w = gu; - if (w && typeof d == "string" && d) { - var R = Nr(d); - R = 'link[rel="' + l + '"][href="' + R + '"]', typeof h == "string" && (R += '[crossorigin="' + h + '"]'), YN.has(R) || (YN.add(R), l = { rel: l, crossOrigin: h, href: d }, w.querySelector(R) === null && (d = w.createElement("link"), ar(d, "link", l), jn(d), w.head.appendChild(d))); + if (w && typeof f == "string" && f) { + var R = Nr(f); + R = 'link[rel="' + l + '"][href="' + R + '"]', typeof h == "string" && (R += '[crossorigin="' + h + '"]'), YN.has(R) || (YN.add(R), l = { rel: l, crossOrigin: h, href: f }, w.querySelector(R) === null && (f = w.createElement("link"), ar(f, "link", l), jn(f), w.head.appendChild(f))); } } function bG(l) { Ea.D(l), XN("dns-prefetch", l, null); } - function xG(l, d) { - Ea.C(l, d), XN("preconnect", l, d); + function xG(l, f) { + Ea.C(l, f), XN("preconnect", l, f); } - function wG(l, d, h) { - Ea.L(l, d, h); + function wG(l, f, h) { + Ea.L(l, f, h); var w = gu; - if (w && l && d) { - var R = 'link[rel="preload"][as="' + Nr(d) + '"]'; - d === "image" && h && h.imageSrcSet ? (R += '[imagesrcset="' + Nr( + if (w && l && f) { + var R = 'link[rel="preload"][as="' + Nr(f) + '"]'; + f === "image" && h && h.imageSrcSet ? (R += '[imagesrcset="' + Nr( h.imageSrcSet ) + '"]', typeof h.imageSizes == "string" && (R += '[imagesizes="' + Nr( h.imageSizes ) + '"]')) : R += '[href="' + Nr(l) + '"]'; var M = R; - switch (d) { + switch (f) { case "style": M = yu(l); break; @@ -9667,18 +9667,18 @@ Error generating stack: ` + w.message + ` Co.has(M) || (l = p( { rel: "preload", - href: d === "image" && h && h.imageSrcSet ? void 0 : l, - as: d + href: f === "image" && h && h.imageSrcSet ? void 0 : l, + as: f }, h - ), Co.set(M, l), w.querySelector(R) !== null || d === "style" && w.querySelector(Df(M)) || d === "script" && w.querySelector(Ff(M)) || (d = w.createElement("link"), ar(d, "link", l), jn(d), w.head.appendChild(d))); + ), Co.set(M, l), w.querySelector(R) !== null || f === "style" && w.querySelector(Dd(M)) || f === "script" && w.querySelector(Fd(M)) || (f = w.createElement("link"), ar(f, "link", l), jn(f), w.head.appendChild(f))); } } - function SG(l, d) { - Ea.m(l, d); + function SG(l, f) { + Ea.m(l, f); var h = gu; if (h && l) { - var w = d && typeof d.as == "string" ? d.as : "script", R = 'link[rel="modulepreload"][as="' + Nr(w) + '"][href="' + Nr(l) + '"]', M = R; + var w = f && typeof f.as == "string" ? f.as : "script", R = 'link[rel="modulepreload"][as="' + Nr(w) + '"][href="' + Nr(l) + '"]', M = R; switch (w) { case "audioworklet": case "paintworklet": @@ -9688,7 +9688,7 @@ Error generating stack: ` + w.message + ` case "script": M = vu(l); } - if (!Co.has(M) && (l = p({ rel: "modulepreload", href: l }, d), Co.set(M, l), h.querySelector(R) === null)) { + if (!Co.has(M) && (l = p({ rel: "modulepreload", href: l }, f), Co.set(M, l), h.querySelector(R) === null)) { switch (w) { case "audioworklet": case "paintworklet": @@ -9696,29 +9696,29 @@ Error generating stack: ` + w.message + ` case "sharedworker": case "worker": case "script": - if (h.querySelector(Ff(M))) + if (h.querySelector(Fd(M))) return; } w = h.createElement("link"), ar(w, "link", l), jn(w), h.head.appendChild(w); } } } - function _G(l, d, h) { - Ea.S(l, d, h); + function _G(l, f, h) { + Ea.S(l, f, h); var w = gu; if (w && l) { - var R = ds(w).hoistableStyles, M = yu(l); - d = d || "default"; + var R = fs(w).hoistableStyles, M = yu(l); + f = f || "default"; var q = R.get(M); if (!q) { var Z = { loading: 0, preload: null }; if (q = w.querySelector( - Df(M) + Dd(M) )) Z.loading = 5; else { l = p( - { rel: "stylesheet", href: l, "data-precedence": d }, + { rel: "stylesheet", href: l, "data-precedence": f }, h ), (h = Co.get(M)) && Hw(l, h); var re = q = w.createElement("link"); @@ -9728,7 +9728,7 @@ Error generating stack: ` + w.message + ` Z.loading |= 1; }), re.addEventListener("error", function() { Z.loading |= 2; - }), Z.loading |= 4, $g(q, d, w); + }), Z.loading |= 4, $g(q, f, w); } q = { type: "stylesheet", @@ -9739,12 +9739,12 @@ Error generating stack: ` + w.message + ` } } } - function EG(l, d) { - Ea.X(l, d); + function EG(l, f) { + Ea.X(l, f); var h = gu; if (h && l) { - var w = ds(h).hoistableScripts, R = vu(l), M = w.get(R); - M || (M = h.querySelector(Ff(R)), M || (l = p({ src: l, async: !0 }, d), (d = Co.get(R)) && qw(l, d), M = h.createElement("script"), jn(M), ar(M, "link", l), h.head.appendChild(M)), M = { + var w = fs(h).hoistableScripts, R = vu(l), M = w.get(R); + M || (M = h.querySelector(Fd(R)), M || (l = p({ src: l, async: !0 }, f), (f = Co.get(R)) && qw(l, f), M = h.createElement("script"), jn(M), ar(M, "link", l), h.head.appendChild(M)), M = { type: "script", instance: M, count: 1, @@ -9752,12 +9752,12 @@ Error generating stack: ` + w.message + ` }, w.set(R, M)); } } - function CG(l, d) { - Ea.M(l, d); + function CG(l, f) { + Ea.M(l, f); var h = gu; if (h && l) { - var w = ds(h).hoistableScripts, R = vu(l), M = w.get(R); - M || (M = h.querySelector(Ff(R)), M || (l = p({ src: l, async: !0, type: "module" }, d), (d = Co.get(R)) && qw(l, d), M = h.createElement("script"), jn(M), ar(M, "link", l), h.head.appendChild(M)), M = { + var w = fs(h).hoistableScripts, R = vu(l), M = w.get(R); + M || (M = h.querySelector(Fd(R)), M || (l = p({ src: l, async: !0, type: "module" }, f), (f = Co.get(R)) && qw(l, f), M = h.createElement("script"), jn(M), ar(M, "link", l), h.head.appendChild(M)), M = { type: "script", instance: M, count: 1, @@ -9765,7 +9765,7 @@ Error generating stack: ` + w.message + ` }, w.set(R, M)); } } - function ZN(l, d, h, w) { + function ZN(l, f, h, w) { var R = (R = Q.current) ? Ig(R) : null; if (!R) throw Error(r(446)); switch (l) { @@ -9773,18 +9773,18 @@ Error generating stack: ` + w.message + ` case "title": return null; case "style": - return typeof h.precedence == "string" && typeof h.href == "string" ? (d = yu(h.href), h = ds( + return typeof h.precedence == "string" && typeof h.href == "string" ? (f = yu(h.href), h = fs( R - ).hoistableStyles, w = h.get(d), w || (w = { + ).hoistableStyles, w = h.get(f), w || (w = { type: "style", instance: null, count: 0, state: null - }, h.set(d, w)), w) : { type: "void", instance: null, count: 0, state: null }; + }, h.set(f, w)), w) : { type: "void", instance: null, count: 0, state: null }; case "link": if (h.rel === "stylesheet" && typeof h.href == "string" && typeof h.precedence == "string") { l = yu(h.href); - var M = ds( + var M = fs( R ).hoistableStyles, q = M.get(l); if (q || (R = R.ownerDocument || R, q = { @@ -9793,7 +9793,7 @@ Error generating stack: ` + w.message + ` count: 0, state: { loading: 0, preload: null } }, M.set(l, q), (M = R.querySelector( - Df(l) + Dd(l) )) && !M._p && (q.instance = M, q.state.loading = 5), Co.has(l) || (h = { rel: "preload", as: "style", @@ -9808,22 +9808,22 @@ Error generating stack: ` + w.message + ` l, h, q.state - ))), d && w === null) + ))), f && w === null) throw Error(r(528, "")); return q; } - if (d && w !== null) + if (f && w !== null) throw Error(r(529, "")); return null; case "script": - return d = h.async, h = h.src, typeof h == "string" && d && typeof d != "function" && typeof d != "symbol" ? (d = vu(h), h = ds( + return f = h.async, h = h.src, typeof h == "string" && f && typeof f != "function" && typeof f != "symbol" ? (f = vu(h), h = fs( R - ).hoistableScripts, w = h.get(d), w || (w = { + ).hoistableScripts, w = h.get(f), w || (w = { type: "script", instance: null, count: 0, state: null - }, h.set(d, w)), w) : { type: "void", instance: null, count: 0, state: null }; + }, h.set(f, w)), w) : { type: "void", instance: null, count: 0, state: null }; default: throw Error(r(444, l)); } @@ -9831,7 +9831,7 @@ Error generating stack: ` + w.message + ` function yu(l) { return 'href="' + Nr(l) + '"'; } - function Df(l) { + function Dd(l) { return 'link[rel="stylesheet"][' + l + "]"; } function QN(l) { @@ -9840,28 +9840,28 @@ Error generating stack: ` + w.message + ` precedence: null }); } - function kG(l, d, h, w) { - l.querySelector('link[rel="preload"][as="style"][' + d + "]") ? w.loading = 1 : (d = l.createElement("link"), w.preload = d, d.addEventListener("load", function() { + function kG(l, f, h, w) { + l.querySelector('link[rel="preload"][as="style"][' + f + "]") ? w.loading = 1 : (f = l.createElement("link"), w.preload = f, f.addEventListener("load", function() { return w.loading |= 1; - }), d.addEventListener("error", function() { + }), f.addEventListener("error", function() { return w.loading |= 2; - }), ar(d, "link", h), jn(d), l.head.appendChild(d)); + }), ar(f, "link", h), jn(f), l.head.appendChild(f)); } function vu(l) { return '[src="' + Nr(l) + '"]'; } - function Ff(l) { + function Fd(l) { return "script[async]" + l; } - function JN(l, d, h) { - if (d.count++, d.instance === null) - switch (d.type) { + function JN(l, f, h) { + if (f.count++, f.instance === null) + switch (f.type) { case "style": var w = l.querySelector( 'style[data-href~="' + Nr(h.href) + '"]' ); if (w) - return d.instance = w, jn(w), w; + return f.instance = w, jn(w), w; var R = p({}, h, { "data-href": h.href, "data-precedence": h.precedence, @@ -9870,50 +9870,50 @@ Error generating stack: ` + w.message + ` }); return w = (l.ownerDocument || l).createElement( "style" - ), jn(w), ar(w, "style", R), $g(w, h.precedence, l), d.instance = w; + ), jn(w), ar(w, "style", R), $g(w, h.precedence, l), f.instance = w; case "stylesheet": R = yu(h.href); var M = l.querySelector( - Df(R) + Dd(R) ); if (M) - return d.state.loading |= 4, d.instance = M, jn(M), M; + return f.state.loading |= 4, f.instance = M, jn(M), M; w = QN(h), (R = Co.get(R)) && Hw(w, R), M = (l.ownerDocument || l).createElement("link"), jn(M); var q = M; return q._p = new Promise(function(Z, re) { q.onload = Z, q.onerror = re; - }), ar(M, "link", w), d.state.loading |= 4, $g(M, h.precedence, l), d.instance = M; + }), ar(M, "link", w), f.state.loading |= 4, $g(M, h.precedence, l), f.instance = M; case "script": return M = vu(h.src), (R = l.querySelector( - Ff(M) - )) ? (d.instance = R, jn(R), R) : (w = h, (R = Co.get(M)) && (w = p({}, h), qw(w, R)), l = l.ownerDocument || l, R = l.createElement("script"), jn(R), ar(R, "link", w), l.head.appendChild(R), d.instance = R); + Fd(M) + )) ? (f.instance = R, jn(R), R) : (w = h, (R = Co.get(M)) && (w = p({}, h), qw(w, R)), l = l.ownerDocument || l, R = l.createElement("script"), jn(R), ar(R, "link", w), l.head.appendChild(R), f.instance = R); case "void": return null; default: - throw Error(r(443, d.type)); + throw Error(r(443, f.type)); } else - d.type === "stylesheet" && (d.state.loading & 4) === 0 && (w = d.instance, d.state.loading |= 4, $g(w, h.precedence, l)); - return d.instance; + f.type === "stylesheet" && (f.state.loading & 4) === 0 && (w = f.instance, f.state.loading |= 4, $g(w, h.precedence, l)); + return f.instance; } - function $g(l, d, h) { + function $g(l, f, h) { for (var w = h.querySelectorAll( 'link[rel="stylesheet"][data-precedence],style[data-precedence]' ), R = w.length ? w[w.length - 1] : null, M = R, q = 0; q < w.length; q++) { var Z = w[q]; - if (Z.dataset.precedence === d) M = Z; + if (Z.dataset.precedence === f) M = Z; else if (M !== R) break; } - M ? M.parentNode.insertBefore(l, M.nextSibling) : (d = h.nodeType === 9 ? h.head : h, d.insertBefore(l, d.firstChild)); + M ? M.parentNode.insertBefore(l, M.nextSibling) : (f = h.nodeType === 9 ? h.head : h, f.insertBefore(l, f.firstChild)); } - function Hw(l, d) { - l.crossOrigin == null && (l.crossOrigin = d.crossOrigin), l.referrerPolicy == null && (l.referrerPolicy = d.referrerPolicy), l.title == null && (l.title = d.title); + function Hw(l, f) { + l.crossOrigin == null && (l.crossOrigin = f.crossOrigin), l.referrerPolicy == null && (l.referrerPolicy = f.referrerPolicy), l.title == null && (l.title = f.title); } - function qw(l, d) { - l.crossOrigin == null && (l.crossOrigin = d.crossOrigin), l.referrerPolicy == null && (l.referrerPolicy = d.referrerPolicy), l.integrity == null && (l.integrity = d.integrity); + function qw(l, f) { + l.crossOrigin == null && (l.crossOrigin = f.crossOrigin), l.referrerPolicy == null && (l.referrerPolicy = f.referrerPolicy), l.integrity == null && (l.integrity = f.integrity); } var jg = null; - function eP(l, d, h) { + function eP(l, f, h) { if (jg === null) { var w = /* @__PURE__ */ new Map(), R = jg = /* @__PURE__ */ new Map(); R.set(h, w); @@ -9923,7 +9923,7 @@ Error generating stack: ` + w.message + ` for (w.set(l, null), h = h.getElementsByTagName(l), R = 0; R < h.length; R++) { var M = h[R]; if (!(M[xl] || M[Wn] || l === "link" && M.getAttribute("rel") === "stylesheet") && M.namespaceURI !== "http://www.w3.org/2000/svg") { - var q = M.getAttribute(d) || ""; + var q = M.getAttribute(f) || ""; q = l + q; var Z = w.get(q); Z ? Z.push(M) : w.set(q, [M]); @@ -9931,28 +9931,28 @@ Error generating stack: ` + w.message + ` } return w; } - function tP(l, d, h) { + function tP(l, f, h) { l = l.ownerDocument || l, l.head.insertBefore( h, - d === "title" ? l.querySelector("head > title") : null + f === "title" ? l.querySelector("head > title") : null ); } - function TG(l, d, h) { - if (h === 1 || d.itemProp != null) return !1; + function TG(l, f, h) { + if (h === 1 || f.itemProp != null) return !1; switch (l) { case "meta": case "title": return !0; case "style": - if (typeof d.precedence != "string" || typeof d.href != "string" || d.href === "") + if (typeof f.precedence != "string" || typeof f.href != "string" || f.href === "") break; return !0; case "link": - if (typeof d.rel != "string" || typeof d.href != "string" || d.href === "" || d.onLoad || d.onError) + if (typeof f.rel != "string" || typeof f.href != "string" || f.href === "" || f.onLoad || f.onError) break; - return d.rel === "stylesheet" ? (l = d.disabled, typeof d.precedence == "string" && l == null) : !0; + return f.rel === "stylesheet" ? (l = f.disabled, typeof f.precedence == "string" && l == null) : !0; case "script": - if (d.async && typeof d.async != "function" && typeof d.async != "symbol" && !d.onLoad && !d.onError && d.src && typeof d.src == "string") + if (f.async && typeof f.async != "function" && typeof f.async != "symbol" && !f.onLoad && !f.onError && f.src && typeof f.src == "string") return !0; } return !1; @@ -9960,34 +9960,34 @@ Error generating stack: ` + w.message + ` function nP(l) { return !(l.type === "stylesheet" && (l.state.loading & 3) === 0); } - function AG(l, d, h, w) { + function AG(l, f, h, w) { if (h.type === "stylesheet" && (typeof w.media != "string" || matchMedia(w.media).matches !== !1) && (h.state.loading & 4) === 0) { if (h.instance === null) { - var R = yu(w.href), M = d.querySelector( - Df(R) + var R = yu(w.href), M = f.querySelector( + Dd(R) ); if (M) { - d = M._p, d !== null && typeof d == "object" && typeof d.then == "function" && (l.count++, l = Dg.bind(l), d.then(l, l)), h.state.loading |= 4, h.instance = M, jn(M); + f = M._p, f !== null && typeof f == "object" && typeof f.then == "function" && (l.count++, l = Dg.bind(l), f.then(l, l)), h.state.loading |= 4, h.instance = M, jn(M); return; } - M = d.ownerDocument || d, w = QN(w), (R = Co.get(R)) && Hw(w, R), M = M.createElement("link"), jn(M); + M = f.ownerDocument || f, w = QN(w), (R = Co.get(R)) && Hw(w, R), M = M.createElement("link"), jn(M); var q = M; q._p = new Promise(function(Z, re) { q.onload = Z, q.onerror = re; }), ar(M, "link", w), h.instance = M; } - l.stylesheets === null && (l.stylesheets = /* @__PURE__ */ new Map()), l.stylesheets.set(h, d), (d = h.state.preload) && (h.state.loading & 3) === 0 && (l.count++, h = Dg.bind(l), d.addEventListener("load", h), d.addEventListener("error", h)); + l.stylesheets === null && (l.stylesheets = /* @__PURE__ */ new Map()), l.stylesheets.set(h, f), (f = h.state.preload) && (h.state.loading & 3) === 0 && (l.count++, h = Dg.bind(l), f.addEventListener("load", h), f.addEventListener("error", h)); } } var Ww = 0; - function RG(l, d) { + function RG(l, f) { return l.stylesheets && l.count === 0 && Lg(l, l.stylesheets), 0 < l.count || 0 < l.imgCount ? function(h) { var w = setTimeout(function() { if (l.stylesheets && Lg(l, l.stylesheets), l.unsuspend) { var M = l.unsuspend; l.unsuspend = null, M(); } - }, 6e4 + d); + }, 6e4 + f); 0 < l.imgBytes && Ww === 0 && (Ww = 62500 * cG()); var R = setTimeout( function() { @@ -9996,7 +9996,7 @@ Error generating stack: ` + w.message + ` l.unsuspend = null, M(); } }, - (l.imgBytes > Ww ? 50 : 800) + d + (l.imgBytes > Ww ? 50 : 800) + f ); return l.unsuspend = h, function() { l.unsuspend = null, clearTimeout(w), clearTimeout(R); @@ -10013,11 +10013,11 @@ Error generating stack: ` + w.message + ` } } var Fg = null; - function Lg(l, d) { - l.stylesheets = null, l.unsuspend !== null && (l.count++, Fg = /* @__PURE__ */ new Map(), d.forEach(OG, l), Fg = null, Dg.call(l)); + function Lg(l, f) { + l.stylesheets = null, l.unsuspend !== null && (l.count++, Fg = /* @__PURE__ */ new Map(), f.forEach(OG, l), Fg = null, Dg.call(l)); } - function OG(l, d) { - if (!(d.state.loading & 4)) { + function OG(l, f) { + if (!(f.state.loading & 4)) { var h = Fg.get(l); if (h) var w = h.get(null); else { @@ -10030,10 +10030,10 @@ Error generating stack: ` + w.message + ` } w && h.set(null, w); } - R = d.instance, q = R.getAttribute("data-precedence"), M = h.get(q) || w, M === w && h.set(null, R), h.set(q, R), this.count++, w = Dg.bind(this), R.addEventListener("load", w), R.addEventListener("error", w), M ? M.parentNode.insertBefore(R, M.nextSibling) : (l = l.nodeType === 9 ? l.head : l, l.insertBefore(R, l.firstChild)), d.state.loading |= 4; + R = f.instance, q = R.getAttribute("data-precedence"), M = h.get(q) || w, M === w && h.set(null, R), h.set(q, R), this.count++, w = Dg.bind(this), R.addEventListener("load", w), R.addEventListener("error", w), M ? M.parentNode.insertBefore(R, M.nextSibling) : (l = l.nodeType === 9 ? l.head : l, l.insertBefore(R, l.firstChild)), f.state.loading |= 4; } } - var Lf = { + var Ld = { $$typeof: _, Provider: null, Consumer: null, @@ -10041,13 +10041,13 @@ Error generating stack: ` + w.message + ` _currentValue2: W, _threadCount: 0 }; - function MG(l, d, h, w, R, M, q, Z, re) { - this.tag = 1, this.containerInfo = l, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Yd(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Yd(0), this.hiddenUpdates = Yd(null), this.identifierPrefix = w, this.onUncaughtError = R, this.onCaughtError = M, this.onRecoverableError = q, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = re, this.incompleteTransitions = /* @__PURE__ */ new Map(); + function MG(l, f, h, w, R, M, q, Z, re) { + this.tag = 1, this.containerInfo = l, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Xf(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Xf(0), this.hiddenUpdates = Xf(null), this.identifierPrefix = w, this.onUncaughtError = R, this.onCaughtError = M, this.onRecoverableError = q, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = re, this.incompleteTransitions = /* @__PURE__ */ new Map(); } - function rP(l, d, h, w, R, M, q, Z, re, pe, ve, we) { + function rP(l, f, h, w, R, M, q, Z, re, pe, ve, we) { return l = new MG( l, - d, + f, h, q, re, @@ -10055,69 +10055,69 @@ Error generating stack: ` + w.message + ` ve, we, Z - ), d = 1, M === !0 && (d |= 24), M = Yr(3, null, null, d), l.current = M, M.stateNode = l, d = Cx(), d.refCount++, l.pooledCache = d, d.refCount++, M.memoizedState = { + ), f = 1, M === !0 && (f |= 24), M = Yr(3, null, null, f), l.current = M, M.stateNode = l, f = Cx(), f.refCount++, l.pooledCache = f, f.refCount++, M.memoizedState = { element: w, isDehydrated: h, - cache: d + cache: f }, Rx(M), l; } function oP(l) { return l ? (l = Yc, l) : Yc; } - function iP(l, d, h, w, R, M) { - R = oP(R), w.context === null ? w.context = R : w.pendingContext = R, w = bs(d), w.payload = { element: h }, M = M === void 0 ? null : M, M !== null && (w.callback = M), h = xs(l, w, d), h !== null && (Fr(h, l, d), yf(h, l, d)); + function iP(l, f, h, w, R, M) { + R = oP(R), w.context === null ? w.context = R : w.pendingContext = R, w = bs(f), w.payload = { element: h }, M = M === void 0 ? null : M, M !== null && (w.callback = M), h = xs(l, w, f), h !== null && (Fr(h, l, f), yd(h, l, f)); } - function aP(l, d) { + function aP(l, f) { if (l = l.memoizedState, l !== null && l.dehydrated !== null) { var h = l.retryLane; - l.retryLane = h !== 0 && h < d ? h : d; + l.retryLane = h !== 0 && h < f ? h : f; } } - function Gw(l, d) { - aP(l, d), (l = l.alternate) && aP(l, d); + function Gw(l, f) { + aP(l, f), (l = l.alternate) && aP(l, f); } function sP(l) { if (l.tag === 13 || l.tag === 31) { - var d = kl(l, 67108864); - d !== null && Fr(d, l, 67108864), Gw(l, 67108864); + var f = kl(l, 67108864); + f !== null && Fr(f, l, 67108864), Gw(l, 67108864); } } function lP(l) { if (l.tag === 13 || l.tag === 31) { - var d = eo(); - d = Xd(d); - var h = kl(l, d); - h !== null && Fr(h, l, d), Gw(l, d); + var f = eo(); + f = Zf(f); + var h = kl(l, f); + h !== null && Fr(h, l, f), Gw(l, f); } } var zg = !0; - function NG(l, d, h, w) { + function NG(l, f, h, w) { var R = F.T; F.T = null; var M = K.p; try { - K.p = 2, Kw(l, d, h, w); + K.p = 2, Kw(l, f, h, w); } finally { K.p = M, F.T = R; } } - function PG(l, d, h, w) { + function PG(l, f, h, w) { var R = F.T; F.T = null; var M = K.p; try { - K.p = 8, Kw(l, d, h, w); + K.p = 8, Kw(l, f, h, w); } finally { K.p = M, F.T = R; } } - function Kw(l, d, h, w) { + function Kw(l, f, h, w) { if (zg) { var R = Yw(w); if (R === null) Iw( l, - d, + f, w, Bg, h @@ -10125,12 +10125,12 @@ Error generating stack: ` + w.message + ` else if ($G( R, l, - d, + f, h, w )) w.stopPropagation(); - else if (uP(l, w), d & 4 && -1 < IG.indexOf(l)) { + else if (uP(l, w), f & 4 && -1 < IG.indexOf(l)) { for (; R !== null; ) { var M = cs(R); if (M !== null) @@ -10144,7 +10144,7 @@ Error generating stack: ` + w.message + ` var re = 1 << 31 - Mt(q); Z.entanglements[1] |= re, q &= ~re; } - mi(M), (zt & 6) === 0 && (_g = Je() + 500, Pf(0)); + mi(M), (zt & 6) === 0 && (_g = Je() + 500, Pd(0)); } } break; @@ -10154,7 +10154,7 @@ Error generating stack: ` + w.message + ` } if (M = Yw(w), M === null && Iw( l, - d, + f, w, Bg, h @@ -10165,7 +10165,7 @@ Error generating stack: ` + w.message + ` } else Iw( l, - d, + f, w, null, h @@ -10178,21 +10178,21 @@ Error generating stack: ` + w.message + ` var Bg = null; function Xw(l) { if (Bg = null, l = ls(l), l !== null) { - var d = i(l); - if (d === null) l = null; + var f = i(l); + if (f === null) l = null; else { - var h = d.tag; + var h = f.tag; if (h === 13) { - if (l = a(d), l !== null) return l; + if (l = a(f), l !== null) return l; l = null; } else if (h === 31) { - if (l = s(d), l !== null) return l; + if (l = s(f), l !== null) return l; l = null; } else if (h === 3) { - if (d.stateNode.current.memoizedState.isDehydrated) - return d.tag === 3 ? d.stateNode.containerInfo : null; + if (f.stateNode.current.memoizedState.isDehydrated) + return f.tag === 3 ? f.stateNode.containerInfo : null; l = null; - } else d !== l && (l = null); + } else f !== l && (l = null); } } return Bg = l, null; @@ -10276,7 +10276,7 @@ Error generating stack: ` + w.message + ` switch (Ae()) { case oe: return 2; - case de: + case fe: return 8; case _e: case Ce: @@ -10290,10 +10290,10 @@ Error generating stack: ` + w.message + ` return 32; } } - var Zw = !1, Ms = null, Ns = null, Ps = null, zf = /* @__PURE__ */ new Map(), Bf = /* @__PURE__ */ new Map(), Is = [], IG = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split( + var Zw = !1, Ms = null, Ns = null, Ps = null, zd = /* @__PURE__ */ new Map(), Bd = /* @__PURE__ */ new Map(), Is = [], IG = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split( " " ); - function uP(l, d) { + function uP(l, f) { switch (l) { case "focusin": case "focusout": @@ -10309,71 +10309,71 @@ Error generating stack: ` + w.message + ` break; case "pointerover": case "pointerout": - zf.delete(d.pointerId); + zd.delete(f.pointerId); break; case "gotpointercapture": case "lostpointercapture": - Bf.delete(d.pointerId); + Bd.delete(f.pointerId); } } - function Uf(l, d, h, w, R, M) { + function Ud(l, f, h, w, R, M) { return l === null || l.nativeEvent !== M ? (l = { - blockedOn: d, + blockedOn: f, domEventName: h, eventSystemFlags: w, nativeEvent: M, targetContainers: [R] - }, d !== null && (d = cs(d), d !== null && sP(d)), l) : (l.eventSystemFlags |= w, d = l.targetContainers, R !== null && d.indexOf(R) === -1 && d.push(R), l); + }, f !== null && (f = cs(f), f !== null && sP(f)), l) : (l.eventSystemFlags |= w, f = l.targetContainers, R !== null && f.indexOf(R) === -1 && f.push(R), l); } - function $G(l, d, h, w, R) { - switch (d) { + function $G(l, f, h, w, R) { + switch (f) { case "focusin": - return Ms = Uf( + return Ms = Ud( Ms, l, - d, + f, h, w, R ), !0; case "dragenter": - return Ns = Uf( + return Ns = Ud( Ns, l, - d, + f, h, w, R ), !0; case "mouseover": - return Ps = Uf( + return Ps = Ud( Ps, l, - d, + f, h, w, R ), !0; case "pointerover": var M = R.pointerId; - return zf.set( + return zd.set( M, - Uf( - zf.get(M) || null, + Ud( + zd.get(M) || null, l, - d, + f, h, w, R ) ), !0; case "gotpointercapture": - return M = R.pointerId, Bf.set( + return M = R.pointerId, Bd.set( M, - Uf( - Bf.get(M) || null, + Ud( + Bd.get(M) || null, l, - d, + f, h, w, R @@ -10382,26 +10382,26 @@ Error generating stack: ` + w.message + ` } return !1; } - function dP(l) { - var d = ls(l.target); - if (d !== null) { - var h = i(d); + function fP(l) { + var f = ls(l.target); + if (f !== null) { + var h = i(f); if (h !== null) { - if (d = h.tag, d === 13) { - if (d = a(h), d !== null) { - l.blockedOn = d, Rm(l.priority, function() { + if (f = h.tag, f === 13) { + if (f = a(h), f !== null) { + l.blockedOn = f, Rm(l.priority, function() { lP(h); }); return; } - } else if (d === 31) { - if (d = s(h), d !== null) { - l.blockedOn = d, Rm(l.priority, function() { + } else if (f === 31) { + if (f = s(h), f !== null) { + l.blockedOn = f, Rm(l.priority, function() { lP(h); }); return; } - } else if (d === 3 && h.stateNode.current.memoizedState.isDehydrated) { + } else if (f === 3 && h.stateNode.current.memoizedState.isDehydrated) { l.blockedOn = h.tag === 3 ? h.stateNode.containerInfo : null; return; } @@ -10411,7 +10411,7 @@ Error generating stack: ` + w.message + ` } function Ug(l) { if (l.blockedOn !== null) return !1; - for (var d = l.targetContainers; 0 < d.length; ) { + for (var f = l.targetContainers; 0 < f.length; ) { var h = Yw(l.nativeEvent); if (h === null) { h = l.nativeEvent; @@ -10421,19 +10421,19 @@ Error generating stack: ` + w.message + ` ); X1 = w, h.target.dispatchEvent(w), X1 = null; } else - return d = cs(h), d !== null && sP(d), l.blockedOn = h, !1; - d.shift(); + return f = cs(h), f !== null && sP(f), l.blockedOn = h, !1; + f.shift(); } return !0; } - function fP(l, d, h) { - Ug(l) && h.delete(d); + function dP(l, f, h) { + Ug(l) && h.delete(f); } function jG() { - Zw = !1, Ms !== null && Ug(Ms) && (Ms = null), Ns !== null && Ug(Ns) && (Ns = null), Ps !== null && Ug(Ps) && (Ps = null), zf.forEach(fP), Bf.forEach(fP); + Zw = !1, Ms !== null && Ug(Ms) && (Ms = null), Ns !== null && Ug(Ns) && (Ns = null), Ps !== null && Ug(Ps) && (Ps = null), zd.forEach(dP), Bd.forEach(dP); } - function Vg(l, d) { - l.blockedOn === d && (l.blockedOn = null, Zw || (Zw = !0, e.unstable_scheduleCallback( + function Vg(l, f) { + l.blockedOn === f && (l.blockedOn = null, Zw || (Zw = !0, e.unstable_scheduleCallback( e.unstable_NormalPriority, jG ))); @@ -10444,15 +10444,15 @@ Error generating stack: ` + w.message + ` e.unstable_NormalPriority, function() { Hg === l && (Hg = null); - for (var d = 0; d < l.length; d += 3) { - var h = l[d], w = l[d + 1], R = l[d + 2]; + for (var f = 0; f < l.length; f += 3) { + var h = l[f], w = l[f + 1], R = l[f + 2]; if (typeof w != "function") { if (Xw(w || h) === null) continue; break; } var M = cs(h); - M !== null && (l.splice(d, 3), d -= 3, Yx( + M !== null && (l.splice(f, 3), f -= 3, Yx( M, { pending: !0, @@ -10468,16 +10468,16 @@ Error generating stack: ` + w.message + ` )); } function bu(l) { - function d(re) { + function f(re) { return Vg(re, l); } - Ms !== null && Vg(Ms, l), Ns !== null && Vg(Ns, l), Ps !== null && Vg(Ps, l), zf.forEach(d), Bf.forEach(d); + Ms !== null && Vg(Ms, l), Ns !== null && Vg(Ns, l), Ps !== null && Vg(Ps, l), zd.forEach(f), Bd.forEach(f); for (var h = 0; h < Is.length; h++) { var w = Is[h]; w.blockedOn === l && (w.blockedOn = null); } for (; 0 < Is.length && (h = Is[0], h.blockedOn === null); ) - dP(h), h.blockedOn === null && Is.shift(); + fP(h), h.blockedOn === null && Is.shift(); if (h = (l.ownerDocument || l).$$reactFormReplay, h != null) for (w = 0; w < h.length; w += 3) { var R = h[w], M = h[w + 1], q = R[pr] || null; @@ -10506,7 +10506,7 @@ Error generating stack: ` + w.message + ` scroll: "manual" }); } - function d() { + function f() { R !== null && (R(), R = null), w || setTimeout(h, 20); } function h() { @@ -10521,8 +10521,8 @@ Error generating stack: ` + w.message + ` } if (typeof navigation == "object") { var w = !1, R = null; - return navigation.addEventListener("navigate", l), navigation.addEventListener("navigatesuccess", d), navigation.addEventListener("navigateerror", d), setTimeout(h, 100), function() { - w = !0, navigation.removeEventListener("navigate", l), navigation.removeEventListener("navigatesuccess", d), navigation.removeEventListener("navigateerror", d), R !== null && (R(), R = null); + return navigation.addEventListener("navigate", l), navigation.addEventListener("navigatesuccess", f), navigation.addEventListener("navigateerror", f), setTimeout(h, 100), function() { + w = !0, navigation.removeEventListener("navigate", l), navigation.removeEventListener("navigatesuccess", f), navigation.removeEventListener("navigateerror", f), R !== null && (R(), R = null); }; } } @@ -10530,16 +10530,16 @@ Error generating stack: ` + w.message + ` this._internalRoot = l; } qg.prototype.render = Qw.prototype.render = function(l) { - var d = this._internalRoot; - if (d === null) throw Error(r(409)); - var h = d.current, w = eo(); - iP(h, w, l, d, null, null); + var f = this._internalRoot; + if (f === null) throw Error(r(409)); + var h = f.current, w = eo(); + iP(h, w, l, f, null, null); }, qg.prototype.unmount = Qw.prototype.unmount = function() { var l = this._internalRoot; if (l !== null) { this._internalRoot = null; - var d = l.containerInfo; - iP(l.current, 2, null, l, null, null), Cg(), d[ia] = null; + var f = l.containerInfo; + iP(l.current, 2, null, l, null, null), Cg(), f[ia] = null; } }; function qg(l) { @@ -10547,10 +10547,10 @@ Error generating stack: ` + w.message + ` } qg.prototype.unstable_scheduleHydration = function(l) { if (l) { - var d = Am(); - l = { blockedOn: null, target: l, priority: d }; - for (var h = 0; h < Is.length && d !== 0 && d < Is[h].priority; h++) ; - Is.splice(h, 0, l), h === 0 && dP(l); + var f = Am(); + l = { blockedOn: null, target: l, priority: f }; + for (var h = 0; h < Is.length && f !== 0 && f < Is[h].priority; h++) ; + Is.splice(h, 0, l), h === 0 && fP(l); } }; var mP = t.version; @@ -10563,10 +10563,10 @@ Error generating stack: ` + w.message + ` ) ); K.findDOMNode = function(l) { - var d = l._reactInternals; - if (d === void 0) + var f = l._reactInternals; + if (f === void 0) throw typeof l.render == "function" ? Error(r(188)) : (l = Object.keys(l).join(","), Error(r(268, l))); - return l = u(d), l = l !== null ? f(l) : null, l = l === null ? null : l.stateNode, l; + return l = u(f), l = l !== null ? d(l) : null, l = l === null ? null : l.stateNode, l; }; var DG = { bundleType: 0, @@ -10585,10 +10585,10 @@ Error generating stack: ` + w.message + ` } catch { } } - return Hf.createRoot = function(l, d) { + return Hd.createRoot = function(l, f) { if (!o(l)) throw Error(r(299)); var h = !1, w = "", R = SM, M = _M, q = EM; - return d != null && (d.unstable_strictMode === !0 && (h = !0), d.identifierPrefix !== void 0 && (w = d.identifierPrefix), d.onUncaughtError !== void 0 && (R = d.onUncaughtError), d.onCaughtError !== void 0 && (M = d.onCaughtError), d.onRecoverableError !== void 0 && (q = d.onRecoverableError)), d = rP( + return f != null && (f.unstable_strictMode === !0 && (h = !0), f.identifierPrefix !== void 0 && (w = f.identifierPrefix), f.onUncaughtError !== void 0 && (R = f.onUncaughtError), f.onCaughtError !== void 0 && (M = f.onCaughtError), f.onRecoverableError !== void 0 && (q = f.onRecoverableError)), f = rP( l, 1, !1, @@ -10601,15 +10601,15 @@ Error generating stack: ` + w.message + ` M, q, hP - ), l[ia] = d.current, Pw(l), new Qw(d); - }, Hf.hydrateRoot = function(l, d, h) { + ), l[ia] = f.current, Pw(l), new Qw(f); + }, Hd.hydrateRoot = function(l, f, h) { if (!o(l)) throw Error(r(299)); var w = !1, R = "", M = SM, q = _M, Z = EM, re = null; - return h != null && (h.unstable_strictMode === !0 && (w = !0), h.identifierPrefix !== void 0 && (R = h.identifierPrefix), h.onUncaughtError !== void 0 && (M = h.onUncaughtError), h.onCaughtError !== void 0 && (q = h.onCaughtError), h.onRecoverableError !== void 0 && (Z = h.onRecoverableError), h.formState !== void 0 && (re = h.formState)), d = rP( + return h != null && (h.unstable_strictMode === !0 && (w = !0), h.identifierPrefix !== void 0 && (R = h.identifierPrefix), h.onUncaughtError !== void 0 && (M = h.onUncaughtError), h.onCaughtError !== void 0 && (q = h.onCaughtError), h.onRecoverableError !== void 0 && (Z = h.onRecoverableError), h.formState !== void 0 && (re = h.formState)), f = rP( l, 1, !0, - d, + f, h ?? null, w, R, @@ -10618,8 +10618,8 @@ Error generating stack: ` + w.message + ` q, Z, hP - ), d.context = oP(null), h = d.current, w = eo(), w = Xd(w), R = bs(w), R.callback = null, xs(h, R, w), h = w, d.current.lanes = h, bl(d, h), mi(d), l[ia] = d.current, Pw(l), new qg(d); - }, Hf.version = "19.2.3", Hf; + ), f.context = oP(null), h = f.current, w = eo(), w = Zf(w), R = bs(w), R.callback = null, xs(h, R, w), h = w, f.current.lanes = h, bl(f, h), mi(f), l[ia] = f.current, Pw(l), new qg(f); + }, Hd.version = "19.2.3", Hd; } var CP; function ZG() { @@ -11028,12 +11028,12 @@ Error generating stack: ` + w.message + ` if (e === void 0) return [t, t !== void 0]; const { new_obj: n, change: r } = tl(e, t); return [n, r]; - }, dK = ({ error: e }) => /* @__PURE__ */ S.jsxs("div", { className: "error-div", children: [ + }, fK = ({ error: e }) => /* @__PURE__ */ S.jsxs("div", { className: "error-div", children: [ /* @__PURE__ */ S.jsx("h1", { children: "Error" }), /* @__PURE__ */ S.jsx("p", { children: e.message }) ] }); var _c = B4(); - const fp = /* @__PURE__ */ Xi(_c), Q0 = T.createContext( + const dp = /* @__PURE__ */ Xi(_c), Q0 = T.createContext( void 0 ), Gs = T.forwardRef((e, t) => { const { @@ -11045,7 +11045,7 @@ Error generating stack: ` + w.message + ` vtime: s = 300, hdelay: c = 0, vdelay: u = 200, - zIndex: f = 9999, + zIndex: d = 9999, ...p } = e, [m, g] = T.useState(!1), [y, b] = T.useState({}), v = T.useRef(null), x = T.useRef(null); T.useImperativeHandle(t, () => v.current, []); @@ -11073,7 +11073,7 @@ Error generating stack: ` + w.message + ` left: `${L.left}px`, width: `${L.width}px`, height: `${L.height}px`, - zIndex: f, + zIndex: d, transition: "none" }), g(!0), v.current.offsetHeight, b((N) => ({ ...N, @@ -11095,7 +11095,7 @@ Error generating stack: ` + w.message + ` } catch (L) { console.warn("Error during expand animation:", L), g(!0); } - }, [E, f, _]), k = T.useCallback(async () => { + }, [E, d, _]), k = T.useCallback(async () => { if (!v.current || !x.current) return; const L = x.current; b((N) => ({ @@ -11188,7 +11188,7 @@ Error generating stack: ` + w.message + ` ), $a = T.forwardRef((e, t) => { const { asChild: n = !1, children: r, className: o, style: i, ...a } = e, [s, c] = T.useState(!1), u = T.useRef(null); T.useImperativeHandle(t, () => u.current, []); - const f = T.useCallback(async (v) => { + const d = T.useCallback(async (v) => { const x = v; if (v.requestFullscreen) await v.requestFullscreen(); @@ -11219,11 +11219,11 @@ Error generating stack: ` + w.message + ` console.warn("FullScreen: No element reference available"); return; } - s ? await p() : await f(v); + s ? await p() : await d(v); } catch (v) { console.error("FullScreen: Error toggling fullscreen mode", v); } - }, [s, f, p]), g = T.useCallback(() => { + }, [s, d, p]), g = T.useCallback(() => { const v = !!(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement); c(v); }, []); @@ -11305,7 +11305,7 @@ Error generating stack: ` + w.message + ` return n.isFullScreen ? null : /* @__PURE__ */ S.jsx(S.Fragment, { children: t }); }; var aS = { exports: {} }, sS, AP; - function fK() { + function dK() { if (AP) return sS; AP = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; @@ -11315,13 +11315,13 @@ Error generating stack: ` + w.message + ` function pK() { if (RP) return lS; RP = 1; - var e = /* @__PURE__ */ fK(); + var e = /* @__PURE__ */ dK(); function t() { } function n() { } return n.resetWarningCache = t, lS = function() { - function r(a, s, c, u, f, p) { + function r(a, s, c, u, d, p) { if (p !== e) { var m = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" @@ -11405,7 +11405,7 @@ Error generating stack: ` + w.message + ` function mK() { if (MP) return nn; MP = 1; - var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), f = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), m = /* @__PURE__ */ Symbol.for("react.view_transition"), g = /* @__PURE__ */ Symbol.for("react.client.reference"); + var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), m = /* @__PURE__ */ Symbol.for("react.view_transition"), g = /* @__PURE__ */ Symbol.for("react.client.reference"); function y(b) { if (typeof b == "object" && b !== null) { var v = b.$$typeof; @@ -11424,7 +11424,7 @@ Error generating stack: ` + w.message + ` case a: case s: case p: - case f: + case d: return b; case i: return b; @@ -11437,7 +11437,7 @@ Error generating stack: ` + w.message + ` } } } - return nn.ContextConsumer = i, nn.ContextProvider = a, nn.Element = e, nn.ForwardRef = s, nn.Fragment = n, nn.Lazy = p, nn.Memo = f, nn.Portal = t, nn.Profiler = o, nn.StrictMode = r, nn.Suspense = c, nn.SuspenseList = u, nn.isContextConsumer = function(b) { + return nn.ContextConsumer = i, nn.ContextProvider = a, nn.Element = e, nn.ForwardRef = s, nn.Fragment = n, nn.Lazy = p, nn.Memo = d, nn.Portal = t, nn.Profiler = o, nn.StrictMode = r, nn.Suspense = c, nn.SuspenseList = u, nn.isContextConsumer = function(b) { return y(b) === i; }, nn.isContextProvider = function(b) { return y(b) === a; @@ -11450,7 +11450,7 @@ Error generating stack: ` + w.message + ` }, nn.isLazy = function(b) { return y(b) === p; }, nn.isMemo = function(b) { - return y(b) === f; + return y(b) === d; }, nn.isPortal = function(b) { return y(b) === t; }, nn.isProfiler = function(b) { @@ -11462,7 +11462,7 @@ Error generating stack: ` + w.message + ` }, nn.isSuspenseList = function(b) { return y(b) === u; }, nn.isValidElementType = function(b) { - return typeof b == "string" || typeof b == "function" || b === n || b === o || b === r || b === c || b === u || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === s || b.$$typeof === g || b.getModuleId !== void 0); + return typeof b == "string" || typeof b == "function" || b === n || b === o || b === r || b === c || b === u || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === d || b.$$typeof === a || b.$$typeof === i || b.$$typeof === s || b.$$typeof === g || b.getModuleId !== void 0); }, nn.typeOf = y, nn; } var NP; @@ -11805,7 +11805,7 @@ Error generating stack: ` + w.message + ` const QK = $n({ prop: "width", transform: oo - }), dk = (e) => { + }), fk = (e) => { if (e.maxWidth !== void 0 && e.maxWidth !== null) { const t = (n) => { const r = e.theme?.breakpoints?.values?.[n] || eb[n]; @@ -11821,7 +11821,7 @@ Error generating stack: ` + w.message + ` } return null; }; - dk.filterProps = ["maxWidth"]; + fk.filterProps = ["maxWidth"]; const JK = $n({ prop: "minWidth", transform: oo @@ -11848,7 +11848,7 @@ Error generating stack: ` + w.message + ` const rY = $n({ prop: "boxSizing" }); - nb(QK, dk, JK, eY, tY, nY, rY); + nb(QK, fk, JK, eY, tY, nY, rY); const Ph = { // borders border: { @@ -12097,7 +12097,7 @@ Error generating stack: ` + w.message + ` transform: oo }, maxWidth: { - style: dk + style: fk }, minWidth: { transform: oo @@ -12157,7 +12157,7 @@ Error generating stack: ` + w.message + ` const { cssProperty: c = n, themeKey: u, - transform: f, + transform: d, style: p } = s; if (r == null) @@ -12168,8 +12168,8 @@ Error generating stack: ` + w.message + ` }; const m = tb(o, u) || {}; return p ? p(a) : Ha(a, r, (y) => { - let b = Zv(m, f, y); - return y === b && typeof y == "string" && (b = Zv(m, f, `${n}${y === "default" ? "" : Ie(y)}`, y)), c === !1 ? b : { + let b = Zv(m, d, y); + return y === b && typeof y == "string" && (b = Zv(m, d, `${n}${y === "default" ? "" : Ie(y)}`, y)), c === !1 ? b : { [c]: b }; }); @@ -12191,8 +12191,8 @@ Error generating stack: ` + w.message + ` return c; if (!u) return null; - const f = wK(o.breakpoints), p = Object.keys(f); - let m = f; + const d = wK(o.breakpoints), p = Object.keys(d); + let m = d; return Object.keys(u).forEach((g) => { const y = iY(u[g], o); if (y != null) @@ -12232,7 +12232,7 @@ Error generating stack: ` + w.message + ` n[r] ? t.systemProps[r] = e[r] : t.otherProps[r] = e[r]; }), t; }; - function fk(e) { + function dk(e) { const { sx: t, ...n @@ -12304,7 +12304,7 @@ Error generating stack: ` + w.message + ` return (o = r.parentNode) == null ? void 0 : o.removeChild(r); }), this.tags = [], this.ctr = 0; }, e; - })(), mr = "-ms-", Qv = "-moz-", Bt = "-webkit-", X4 = "comm", pk = "rule", hk = "decl", dY = "@import", Z4 = "@keyframes", fY = "@layer", pY = Math.abs, sb = String.fromCharCode, hY = Object.assign; + })(), mr = "-ms-", Qv = "-moz-", Bt = "-webkit-", X4 = "comm", pk = "rule", hk = "decl", fY = "@import", Z4 = "@keyframes", dY = "@layer", pY = Math.abs, sb = String.fromCharCode, hY = Object.assign; function mY(e, t) { return cr(e, 0) ^ 45 ? (((t << 2 ^ cr(e, 0)) << 2 ^ cr(e, 1)) << 2 ^ cr(e, 2)) << 2 ^ cr(e, 3) : 0; } @@ -12338,30 +12338,30 @@ Error generating stack: ` + w.message + ` function yY(e, t) { return e.map(t).join(""); } - var lb = 1, ud = 1, J4 = 0, Hr = 0, Vn = 0, Nd = ""; + var lb = 1, ff = 1, J4 = 0, Hr = 0, Vn = 0, Pf = ""; function cb(e, t, n, r, o, i, a) { - return { value: e, root: t, parent: n, type: r, props: o, children: i, line: lb, column: ud, length: a, return: "" }; + return { value: e, root: t, parent: n, type: r, props: o, children: i, line: lb, column: ff, length: a, return: "" }; } - function qf(e, t) { + function qd(e, t) { return hY(cb("", null, null, "", null, null, 0), e, { length: -e.length }, t); } function vY() { return Vn; } function bY() { - return Vn = Hr > 0 ? cr(Nd, --Hr) : 0, ud--, Vn === 10 && (ud = 1, lb--), Vn; + return Vn = Hr > 0 ? cr(Pf, --Hr) : 0, ff--, Vn === 10 && (ff = 1, lb--), Vn; } function lo() { - return Vn = Hr < J4 ? cr(Nd, Hr++) : 0, ud++, Vn === 10 && (ud = 1, lb++), Vn; + return Vn = Hr < J4 ? cr(Pf, Hr++) : 0, ff++, Vn === 10 && (ff = 1, lb++), Vn; } function Li() { - return cr(Nd, Hr); + return cr(Pf, Hr); } function _v() { return Hr; } function Ih(e, t) { - return Wp(Nd, e, t); + return Wp(Pf, e, t); } function Gp(e) { switch (e) { @@ -12402,10 +12402,10 @@ Error generating stack: ` + w.message + ` return 0; } function eF(e) { - return lb = ud = 1, J4 = Ci(Nd = e), Hr = 0, []; + return lb = ff = 1, J4 = Ci(Pf = e), Hr = 0, []; } function tF(e) { - return Nd = "", e; + return Pf = "", e; } function Ev(e) { return Q4(Ih(Hr - 1, mE(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); @@ -12457,7 +12457,7 @@ Error generating stack: ` + w.message + ` return tF(Cv("", null, null, null, [""], e = eF(e), 0, [0], e)); } function Cv(e, t, n, r, o, i, a, s, c) { - for (var u = 0, f = 0, p = a, m = 0, g = 0, y = 0, b = 1, v = 1, x = 1, E = 0, _ = "", C = o, k = i, A = r, O = _; v; ) + for (var u = 0, d = 0, p = a, m = 0, g = 0, y = 0, b = 1, v = 1, x = 1, E = 0, _ = "", C = o, k = i, A = r, O = _; v; ) switch (y = E, E = lo()) { // ( case 40: @@ -12506,7 +12506,7 @@ Error generating stack: ` + w.message + ` case 125: v = 0; // ; - case 59 + f: + case 59 + d: x == -1 && (O = Ut(O, /\f/g, "")), g > 0 && Ci(O) - p && Gg(g > 32 ? FP(O + ";", r, n, p - 1) : FP(Ut(O, " ", "") + ";", r, n, p - 2), c); break; // @ ; @@ -12514,8 +12514,8 @@ Error generating stack: ` + w.message + ` O += ";"; // { rule/at-rule default: - if (Gg(A = DP(O, t, n, u, f, o, s, _, C = [], k = [], p), i), E === 123) - if (f === 0) + if (Gg(A = DP(O, t, n, u, d, o, s, _, C = [], k = [], p), i), E === 123) + if (d === 0) Cv(O, t, A, A, C, i, p, s, k); else switch (m === 99 && cr(O, 3) === 110 ? 100 : m) { @@ -12530,7 +12530,7 @@ Error generating stack: ` + w.message + ` Cv(O, A, A, A, [""], k, 0, s, k); } } - u = f = g = 0, b = x = 1, _ = O = "", p = a; + u = d = g = 0, b = x = 1, _ = O = "", p = a; break; // : case 58: @@ -12545,7 +12545,7 @@ Error generating stack: ` + w.message + ` switch (O += sb(E), E * b) { // & case 38: - x = f > 0 ? 1 : (O += "\f", -1); + x = d > 0 ? 1 : (O += "\f", -1); break; // , case 44: @@ -12553,7 +12553,7 @@ Error generating stack: ` + w.message + ` break; // @ case 64: - Li() === 45 && (O += Ev(lo())), m = Li(), f = p = Ci(_ = O += _Y(_v())), E++; + Li() === 45 && (O += Ev(lo())), m = Li(), d = p = Ci(_ = O += _Y(_v())), E++; break; // - case 45: @@ -12562,11 +12562,11 @@ Error generating stack: ` + w.message + ` } return i; } - function DP(e, t, n, r, o, i, a, s, c, u, f) { + function DP(e, t, n, r, o, i, a, s, c, u, d) { for (var p = o - 1, m = o === 0 ? i : [""], g = mk(m), y = 0, b = 0, v = 0; y < r; ++y) for (var x = 0, E = Wp(e, p + 1, p = pY(b = a[y])), _ = e; x < g; ++x) (_ = Q4(b > 0 ? m[x] + " " + E : Ut(E, /&\f/g, m[x]))) && (c[v++] = _); - return cb(e, t, n, o === 0 ? pk : s, c, u, f); + return cb(e, t, n, o === 0 ? pk : s, c, u, d); } function CY(e, t, n) { return cb(e, t, n, X4, sb(vY()), Wp(e, 2, -2), 0); @@ -12581,9 +12581,9 @@ Error generating stack: ` + w.message + ` } function kY(e, t, n, r) { switch (e.type) { - case fY: - if (e.children.length) break; case dY: + if (e.children.length) break; + case fY: case hk: return e.return = e.return || e.value; case X4: @@ -12650,8 +12650,8 @@ Error generating stack: ` + w.message + ` if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !LP.get(r)) && !o) { LP.set(t, !0); for (var i = [], a = MY(n, i), s = r.props, c = 0, u = 0; c < a.length; c++) - for (var f = 0; f < s.length; f++, u++) - t.props[u] = i[c] ? a[c].replace(/&\f/g, s[f]) : s[f] + " " + a[c]; + for (var d = 0; d < s.length; d++, u++) + t.props[u] = i[c] ? a[c].replace(/&\f/g, s[d]) : s[d] + " " + a[c]; } } }, PY = function(t) { @@ -12810,7 +12810,7 @@ Error generating stack: ` + w.message + ` t.return = rF(t.value, t.length); break; case Z4: - return Qu([qf(t, { + return Qu([qd(t, { value: Ut(t.value, "@", "@" + Bt) })], o); case pk: @@ -12819,16 +12819,16 @@ Error generating stack: ` + w.message + ` // :read-(only|write) case ":read-only": case ":read-write": - return Qu([qf(t, { + return Qu([qd(t, { props: [Ut(i, /:(read-\w+)/, ":" + Qv + "$1")] })], o); // :placeholder case "::placeholder": - return Qu([qf(t, { + return Qu([qd(t, { props: [Ut(i, /:(plac\w+)/, ":" + Bt + "input-$1")] - }), qf(t, { + }), qd(t, { props: [Ut(i, /:(plac\w+)/, ":" + Qv + "$1")] - }), qf(t, { + }), qd(t, { props: [Ut(i, /:(plac\w+)/, mr + "input-$1")] })], o); } @@ -12857,13 +12857,13 @@ Error generating stack: ` + w.message + ` ); var c, u = [NY, PY]; { - var f, p = [kY, AY(function(b) { - f.insert(b); + var d, p = [kY, AY(function(b) { + d.insert(b); })], m = TY(u.concat(o, p)), g = function(v) { return Qu(EY(v), m); }; c = function(v, x, E, _) { - f = E, g(v ? v + "{" + x.styles + "}" : x.styles), _ && (y.inserted[x.name] = !0); + d = E, g(v ? v + "{" + x.styles + "}" : x.styles), _ && (y.inserted[x.name] = !0); }; } var y = { @@ -12887,7 +12887,7 @@ Error generating stack: ` + w.message + ` function DY() { if (zP) return Ht; zP = 1; - var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; + var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; function _(k) { if (typeof k == "object" && k !== null) { var A = k.$$typeof; @@ -12904,7 +12904,7 @@ Error generating stack: ` + w.message + ` default: switch (k = k && k.$$typeof, k) { case s: - case f: + case d: case y: case g: case a: @@ -12921,7 +12921,7 @@ Error generating stack: ` + w.message + ` function C(k) { return _(k) === u; } - return Ht.AsyncMode = c, Ht.ConcurrentMode = u, Ht.ContextConsumer = s, Ht.ContextProvider = a, Ht.Element = t, Ht.ForwardRef = f, Ht.Fragment = r, Ht.Lazy = y, Ht.Memo = g, Ht.Portal = n, Ht.Profiler = i, Ht.StrictMode = o, Ht.Suspense = p, Ht.isAsyncMode = function(k) { + return Ht.AsyncMode = c, Ht.ConcurrentMode = u, Ht.ContextConsumer = s, Ht.ContextProvider = a, Ht.Element = t, Ht.ForwardRef = d, Ht.Fragment = r, Ht.Lazy = y, Ht.Memo = g, Ht.Portal = n, Ht.Profiler = i, Ht.StrictMode = o, Ht.Suspense = p, Ht.isAsyncMode = function(k) { return C(k) || _(k) === c; }, Ht.isConcurrentMode = C, Ht.isContextConsumer = function(k) { return _(k) === s; @@ -12930,7 +12930,7 @@ Error generating stack: ` + w.message + ` }, Ht.isElement = function(k) { return typeof k == "object" && k !== null && k.$$typeof === t; }, Ht.isForwardRef = function(k) { - return _(k) === f; + return _(k) === d; }, Ht.isFragment = function(k) { return _(k) === r; }, Ht.isLazy = function(k) { @@ -12946,16 +12946,16 @@ Error generating stack: ` + w.message + ` }, Ht.isSuspense = function(k) { return _(k) === p; }, Ht.isValidElementType = function(k) { - return typeof k == "string" || typeof k == "function" || k === r || k === u || k === i || k === o || k === p || k === m || typeof k == "object" && k !== null && (k.$$typeof === y || k.$$typeof === g || k.$$typeof === a || k.$$typeof === s || k.$$typeof === f || k.$$typeof === v || k.$$typeof === x || k.$$typeof === E || k.$$typeof === b); + return typeof k == "string" || typeof k == "function" || k === r || k === u || k === i || k === o || k === p || k === m || typeof k == "object" && k !== null && (k.$$typeof === y || k.$$typeof === g || k.$$typeof === a || k.$$typeof === s || k.$$typeof === d || k.$$typeof === v || k.$$typeof === x || k.$$typeof === E || k.$$typeof === b); }, Ht.typeOf = _, Ht; } var BP; function FY() { return BP || (BP = 1, uS.exports = DY()), uS.exports; } - var dS, UP; + var fS, UP; function LY() { - if (UP) return dS; + if (UP) return fS; UP = 1; var e = FY(), t = { childContextTypes: !0, @@ -12995,7 +12995,7 @@ Error generating stack: ` + w.message + ` function a(y) { return e.isMemo(y) ? o : i[y.$$typeof] || t; } - var s = Object.defineProperty, c = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype; + var s = Object.defineProperty, c = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype; function g(y, b, v) { if (typeof b != "string") { if (m) { @@ -13007,7 +13007,7 @@ Error generating stack: ` + w.message + ` for (var _ = a(y), C = a(b), k = 0; k < E.length; ++k) { var A = E[k]; if (!n[A] && !(v && v[A]) && !(C && C[A]) && !(_ && _[A])) { - var O = f(b, A); + var O = d(b, A); try { s(y, A, O); } catch { @@ -13017,7 +13017,7 @@ Error generating stack: ` + w.message + ` } return y; } - return dS = g, dS; + return fS = g, fS; } LY(); var zY = !0; @@ -13121,7 +13121,7 @@ Error generating stack: ` + w.message + ` return t.charCodeAt(1) === 45; }, VP = function(t) { return t != null && typeof t != "boolean"; - }, fS = /* @__PURE__ */ nF(function(e) { + }, dS = /* @__PURE__ */ nF(function(e) { return iF(e) ? e : e.replace(VY, "-$&").toLowerCase(); }), HP = function(t, n) { switch (t) { @@ -13178,11 +13178,11 @@ Error generating stack: ` + w.message + ` break; } } - var f = n; + var d = n; if (t == null) - return f; - var p = t[f]; - return p !== void 0 ? p : f; + return d; + var p = t[d]; + return p !== void 0 ? p : d; } function qY(e, t, n) { var r = ""; @@ -13194,16 +13194,16 @@ Error generating stack: ` + w.message + ` var a = n[i]; if (typeof a != "object") { var s = a; - t != null && t[s] !== void 0 ? r += i + "{" + t[s] + "}" : VP(s) && (r += fS(i) + ":" + HP(i, s) + ";"); + t != null && t[s] !== void 0 ? r += i + "{" + t[s] + "}" : VP(s) && (r += dS(i) + ":" + HP(i, s) + ";"); } else if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0)) for (var c = 0; c < a.length; c++) - VP(a[c]) && (r += fS(i) + ":" + HP(i, a[c]) + ";"); + VP(a[c]) && (r += dS(i) + ":" + HP(i, a[c]) + ";"); else { var u = Kp(e, t, a); switch (i) { case "animation": case "animationName": { - r += fS(i) + ":" + u + ";"; + r += dS(i) + ":" + u + ";"; break; } default: @@ -13232,8 +13232,8 @@ Error generating stack: ` + w.message + ` o += c[s]; } qP.lastIndex = 0; - for (var u = "", f; (f = qP.exec(o)) !== null; ) - u += "-" + f[1]; + for (var u = "", d; (d = qP.exec(o)) !== null; ) + u += "-" + d[1]; var p = BY(o) + u; return { name: p, @@ -13329,7 +13329,7 @@ Error generating stack: ` + w.message + ` t[n] = arguments[n]; return $h(t); } - function Pd() { + function If() { var e = Dh.apply(void 0, arguments), t = "animation-" + e.name; return { name: t, @@ -13371,14 +13371,14 @@ Error generating stack: ` + w.message + ` n !== void 0 && (i = n.label, a = n.target); var s = KP(t, n, r), c = s || GP(o), u = !c("as"); return function() { - var f = arguments, p = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; - if (i !== void 0 && p.push("label:" + i + ";"), f[0] == null || f[0].raw === void 0) - p.push.apply(p, f); + var d = arguments, p = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; + if (i !== void 0 && p.push("label:" + i + ";"), d[0] == null || d[0].raw === void 0) + p.push.apply(p, d); else { - var m = f[0]; + var m = d[0]; p.push(m[0]); - for (var g = f.length, y = 1; y < g; y++) - p.push(f[y], m[y]); + for (var g = d.length, y = 1; y < g; y++) + p.push(d[y], m[y]); } var b = vk(function(v, x, E) { var _ = u && v.as || o, C = "", k = [], A = v; @@ -13613,7 +13613,7 @@ Error generating stack: ` + w.message + ` const y = a.indexOf(g); return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${n}) and (max-width:${(y !== -1 && typeof t[a[y]] == "number" ? t[a[y]] : g) - r / 100}${n})`; } - function f(m) { + function d(m) { return a.indexOf(m) + 1 < a.length ? u(m, a[a.indexOf(m) + 1]) : s(m); } function p(m) { @@ -13626,7 +13626,7 @@ Error generating stack: ` + w.message + ` up: s, down: c, between: u, - only: f, + only: d, not: p, unit: n, ...o @@ -13635,7 +13635,7 @@ Error generating stack: ` + w.message + ` const cX = { borderRadius: 4 }; - function dF(e = 8, t = uk({ + function fF(e = 8, t = uk({ spacing: e })) { if (e.mui) @@ -13665,7 +13665,7 @@ Error generating stack: ` + w.message + ` spacing: o, shape: i = {}, ...a - } = e, s = lX(n), c = dF(o); + } = e, s = lX(n), c = fF(o); let u = xr({ breakpoints: s, direction: "ltr", @@ -13681,7 +13681,7 @@ Error generating stack: ` + w.message + ` ...i } }, a); - return u = bK(u), u.applyStyles = uX, u = t.reduce((f, p) => xr(f, p), u), u.unstable_sxConfig = { + return u = bK(u), u.applyStyles = uX, u = t.reduce((d, p) => xr(d, p), u), u.unstable_sxConfig = { ...Ph, ...a?.unstable_sxConfig }, u.unstable_sx = function(p) { @@ -13691,22 +13691,22 @@ Error generating stack: ` + w.message + ` }); }, u; } - function dX(e) { + function fX(e) { return Object.keys(e).length === 0; } function xk(e = null) { const t = T.useContext(jh); - return !t || dX(t) ? e : t; + return !t || fX(t) ? e : t; } - const fX = ub(); - function Fh(e = fX) { + const dX = ub(); + function Fh(e = dX) { return xk(e); } function pS(e) { const t = Xs(e); return e !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : e; } - function fF({ + function dF({ styles: e, themeId: t, defaultTheme: n = {} @@ -13741,16 +13741,16 @@ Error generating stack: ` + w.message + ` shouldForwardProp: (s) => s !== "theme" && s !== "sx" && s !== "as" })(nl); return /* @__PURE__ */ T.forwardRef(function(c, u) { - const f = Fh(n), { + const d = Fh(n), { className: p, component: m = "div", ...g - } = fk(c); + } = dk(c); return /* @__PURE__ */ S.jsx(i, { as: m, ref: u, className: $e(p, o ? o(r) : r), - theme: t && f[t] || f, + theme: t && d[t] || d, ...g }); }); @@ -13861,20 +13861,20 @@ Error generating stack: ` + w.message + ` aX(s, (A) => A.filter((O) => O !== nl)); const { name: u, - slot: f, + slot: d, skipVariantsResolver: p, skipSx: m, // TODO v6: remove `lowercaseFirstLetter()` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 - overridesResolver: g = yX(SX(f)), + overridesResolver: g = yX(SX(d)), ...y - } = c, b = u && u.startsWith("Mui") || f ? "components" : "custom", v = p !== void 0 ? p : ( + } = c, b = u && u.startsWith("Mui") || d ? "components" : "custom", v = p !== void 0 ? p : ( // TODO v6: remove `Root` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 - f && f !== "Root" && f !== "root" || !1 + d && d !== "Root" && d !== "root" || !1 ), x = m || !1; let E = hS; - f === "Root" || f === "root" ? E = r : f ? E = o : wX(s) && (E = void 0); + d === "Root" || d === "root" ? E = r : d ? E = o : wX(s) && (E = void 0); const _ = uF(s, { shouldForwardProp: E, label: bX(), @@ -14034,7 +14034,7 @@ Error generating stack: ` + w.message + ` return e; } }; - function db(e) { + function fb(e) { const { type: t, colorSpace: n @@ -14048,10 +14048,10 @@ Error generating stack: ` + w.message + ` e = rl(e); const { values: t - } = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u, f = (u + n / 30) % 12) => o - i * Math.max(Math.min(f - 3, 9 - f, 1), -1); + } = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u, d = (u + n / 30) % 12) => o - i * Math.max(Math.min(d - 3, 9 - d, 1), -1); let s = "rgb"; const c = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)]; - return e.type === "hsla" && (s += "a", c.push(t[3])), db({ + return e.type === "hsla" && (s += "a", c.push(t[3])), fb({ type: s, values: c }); @@ -14066,7 +14066,7 @@ Error generating stack: ` + w.message + ` return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05); } function Jv(e, t) { - return e = rl(e), t = wk(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, db(e); + return e = rl(e), t = wk(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, fb(e); } function Ll(e, t, n) { try { @@ -14075,17 +14075,17 @@ Error generating stack: ` + w.message + ` return e; } } - function fb(e, t) { + function db(e, t) { if (e = rl(e), t = wk(t), e.type.includes("hsl")) e.values[2] *= 1 - t; else if (e.type.includes("rgb") || e.type.includes("color")) for (let n = 0; n < 3; n += 1) e.values[n] *= 1 - t; - return db(e); + return fb(e); } function Yt(e, t, n) { try { - return fb(e, t); + return db(e, t); } catch { return e; } @@ -14099,7 +14099,7 @@ Error generating stack: ` + w.message + ` else if (e.type.includes("color")) for (let n = 0; n < 3; n += 1) e.values[n] += (1 - e.values[n]) * t; - return db(e); + return fb(e); } function Xt(e, t, n) { try { @@ -14109,7 +14109,7 @@ Error generating stack: ` + w.message + ` } } function RX(e, t = 0.15) { - return vE(e) > 0.5 ? fb(e, t) : pb(e, t); + return vE(e) > 0.5 ? db(e, t) : pb(e, t); } function Kg(e, t, n) { try { @@ -14198,7 +14198,7 @@ Error generating stack: ` + w.message + ` const LX = { ...sc }, QP = LX.useId; - function Id(e) { + function $f(e) { if (QP !== void 0) { const t = QP(); return e ?? t; @@ -14206,7 +14206,7 @@ Error generating stack: ` + w.message + ` return FX(e); } function zX(e) { - const t = xk(), n = Id() || "", { + const t = xk(), n = $f() || "", { modularCssLayers: r } = e; let o = "mui.global, mui.components, mui.theme, mui.custom, mui.sx"; @@ -14222,7 +14222,7 @@ Error generating stack: ` + w.message + ` s.setAttribute("data-mui-layer-order", n), s.textContent = o, i.prepend(s); } else i.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove(); - }, [o, n]), o ? /* @__PURE__ */ S.jsx(fF, { + }, [o, n]), o ? /* @__PURE__ */ S.jsx(dF, { styles: o }) : null; } @@ -14288,19 +14288,19 @@ Error generating stack: ` + w.message + ` colorSchemeNode: s = "document.documentElement", nonce: c } = e || {}; - let u = "", f = a; - if (a === "class" && (f = ".%s"), a === "data" && (f = "[data-%s]"), f.startsWith(".")) { - const m = f.substring(1); + let u = "", d = a; + if (a === "class" && (d = ".%s"), a === "data" && (d = "[data-%s]"), d.startsWith(".")) { + const m = d.substring(1); u += `${s}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); ${s}.classList.add('${m}'.replace('%s', colorScheme));`; } - const p = f.match(/\[([^[\]]+)\]/); + const p = d.match(/\[([^[\]]+)\]/); if (p) { const [m, g] = p[1].split("="); g || (u += `${s}.removeAttribute('${m}'.replace('%s', light)); ${s}.removeAttribute('${m}'.replace('%s', dark));`), u += ` ${s}.setAttribute('${m}'.replace('%s', colorScheme), ${g ? `${g}.replace('%s', colorScheme)` : '""'});`; - } else f !== ".%s" && (u += `${s}.setAttribute('${f}', colorScheme);`); + } else d !== ".%s" && (u += `${s}.setAttribute('${d}', colorScheme);`); return /* @__PURE__ */ S.jsx("script", { suppressHydrationWarning: !0, nonce: typeof window > "u" ? c : "", @@ -14401,7 +14401,7 @@ try { storageWindow: s = typeof window > "u" ? void 0 : window, storageManager: c = qX, noSsr: u = !1 - } = e, f = o.join(","), p = o.length > 1, m = T.useMemo(() => c?.({ + } = e, d = o.join(","), p = o.length > 1, m = T.useMemo(() => c?.({ key: i, storageWindow: s }), [c, i, s]), g = T.useMemo(() => c?.({ @@ -14434,7 +14434,7 @@ try { }; }); }, [m, t]), k = T.useCallback((P) => { - P ? typeof P == "string" ? P && !f.includes(P) ? console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`) : v((I) => { + P ? typeof P == "string" ? P && !d.includes(P) ? console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`) : v((I) => { const $ = { ...I }; @@ -14445,13 +14445,13 @@ try { const $ = { ...I }, L = P.light === null ? n : P.light, N = P.dark === null ? r : P.dark; - return L && (f.includes(L) ? ($.lightColorScheme = L, g?.set(L)) : console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)), N && (f.includes(N) ? ($.darkColorScheme = N, y?.set(N)) : console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)), $; + return L && (d.includes(L) ? ($.lightColorScheme = L, g?.set(L)) : console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)), N && (d.includes(N) ? ($.darkColorScheme = N, y?.set(N)) : console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)), $; }) : v((I) => (g?.set(n), y?.set(r), { ...I, lightColorScheme: n, darkColorScheme: r })); - }, [f, g, y, n, r]), A = T.useCallback((P) => { + }, [d, g, y, n, r]), A = T.useCallback((P) => { b.mode === "system" && v((I) => { const $ = P?.matches ? "dark" : "light"; return I.systemMode === $ ? I : { @@ -14472,11 +14472,11 @@ try { const P = m?.subscribe((L) => { (!L || ["light", "dark", "system"].includes(L)) && C(L || t); }) || mS, I = g?.subscribe((L) => { - (!L || f.match(L)) && k({ + (!L || d.match(L)) && k({ light: L }); }) || mS, $ = y?.subscribe((L) => { - (!L || f.match(L)) && k({ + (!L || d.match(L)) && k({ dark: L }); }) || mS; @@ -14484,7 +14484,7 @@ try { P(), I(), $(); }; } - }, [k, C, f, t, s, p, m, g, y]), { + }, [k, C, d, t, s, p, m, g, y]), { ...b, mode: x ? b.mode : void 0, systemMode: x ? b.systemMode : void 0, @@ -14520,7 +14520,7 @@ try { setMode: () => { }, systemMode: void 0 - }, u = /* @__PURE__ */ T.createContext(void 0), f = () => T.useContext(u) || c, p = {}, m = {}; + }, u = /* @__PURE__ */ T.createContext(void 0), d = () => T.useContext(u) || c, p = {}, m = {}; function g(x) { const { children: E, @@ -14565,47 +14565,47 @@ try { let Ye = ze || G.defaultColorScheme; G.vars && !j && (Ye = G.defaultColorScheme); const Ue = T.useMemo(() => { - const oe = G.generateThemeVars?.() || G.vars, de = { + const oe = G.generateThemeVars?.() || G.vars, fe = { ...G, components: H, colorSchemes: z, cssVarPrefix: X, vars: oe }; - if (typeof de.generateSpacing == "function" && (de.spacing = de.generateSpacing()), Ye) { + if (typeof fe.generateSpacing == "function" && (fe.spacing = fe.generateSpacing()), Ye) { const _e = z[Ye]; _e && typeof _e == "object" && Object.keys(_e).forEach((Ce) => { - _e[Ce] && typeof _e[Ce] == "object" ? de[Ce] = { - ...de[Ce], + _e[Ce] && typeof _e[Ce] == "object" ? fe[Ce] = { + ...fe[Ce], ..._e[Ce] - } : de[Ce] = _e[Ce]; + } : fe[Ce] = _e[Ce]; }); } - return s ? s(de) : de; + return s ? s(fe) : fe; }, [G, Ye, H, z, X]), Ne = G.colorSchemeSelector; ei(() => { if (ze && $ && Ne && Ne !== "media") { const oe = Ne; - let de = Ne; - if (oe === "class" && (de = ".%s"), oe === "data" && (de = "[data-%s]"), oe?.startsWith("data-") && !oe.includes("%s") && (de = `[${oe}="%s"]`), de.startsWith(".")) - $.classList.remove(...ne.map((_e) => de.substring(1).replace("%s", _e))), $.classList.add(de.substring(1).replace("%s", ze)); + let fe = Ne; + if (oe === "class" && (fe = ".%s"), oe === "data" && (fe = "[data-%s]"), oe?.startsWith("data-") && !oe.includes("%s") && (fe = `[${oe}="%s"]`), fe.startsWith(".")) + $.classList.remove(...ne.map((_e) => fe.substring(1).replace("%s", _e))), $.classList.add(fe.substring(1).replace("%s", ze)); else { - const _e = de.replace("%s", ze).match(/\[([^\]]+)\]/); + const _e = fe.replace("%s", ze).match(/\[([^\]]+)\]/); if (_e) { const [Ce, Oe] = _e[1].split("="); Oe || ne.forEach((He) => { $.removeAttribute(Ce.replace(ze, He)); }), $.setAttribute(Ce, Oe ? Oe.replace(/"|'/g, "") : ""); } else - $.setAttribute(de, ze); + $.setAttribute(fe, ze); } } }, [ze, Ne, $, ne]), T.useEffect(() => { let oe; if (A && F.current && I) { - const de = I.createElement("style"); - de.appendChild(I.createTextNode(KX)), I.head.appendChild(de), window.getComputedStyle(I.body), oe = setTimeout(() => { - I.head.removeChild(de); + const fe = I.createElement("style"); + fe.appendChild(I.createTextNode(KX)), I.head.appendChild(fe), window.getComputedStyle(I.body), oe = setTimeout(() => { + I.head.removeChild(fe); }, 1); } return () => { @@ -14643,7 +14643,7 @@ try { const y = typeof a == "string" ? a : a.light, b = typeof a == "string" ? a : a.dark; return { CssVarsProvider: g, - useColorScheme: f, + useColorScheme: d, getInitColorSchemeScript: (x) => VX({ colorSchemeStorageKey: o, defaultLightColorScheme: y, @@ -14684,10 +14684,10 @@ try { e, (s, c, u) => { if ((typeof c == "string" || typeof c == "number") && (!r || !r(s, c))) { - const f = `--${n ? `${n}-` : ""}${s.join("-")}`, p = QX(s, c); + const d = `--${n ? `${n}-` : ""}${s.join("-")}`, p = QX(s, c); Object.assign(o, { - [f]: p - }), r2(i, s, `var(${f})`, u), r2(a, s, `var(${f}, ${p})`, u); + [d]: p + }), r2(i, s, `var(${d})`, u), r2(a, s, `var(${d}, ${p})`, u); } }, (s) => s[0] === "vars" @@ -14710,7 +14710,7 @@ try { defaultColorScheme: c = "light", ...u } = e, { - vars: f, + vars: d, css: p, varsWithDefaults: m } = gS(u, t); @@ -14758,7 +14758,7 @@ try { vars: g, generateThemeVars: () => { let C = { - ...f + ...d }; return Object.entries(y).forEach(([, { vars: k @@ -14832,7 +14832,7 @@ try { e.type.muiName ?? e.type?._payload?.value?.muiName ) !== -1; } - const tZ = (e, t) => e.filter((n) => t.includes(n)), $d = (e, t, n) => { + const tZ = (e, t) => e.filter((n) => t.includes(n)), jf = (e, t, n) => { const r = e.keys[0]; Array.isArray(t) ? t.forEach((o, i) => { n((a, s) => { @@ -14860,7 +14860,7 @@ try { ownerState: t }) => { const n = {}; - return $d(e.breakpoints, t.size, (r, o) => { + return jf(e.breakpoints, t.size, (r, o) => { let i = {}; o === "grow" && (i = { flexBasis: 0, @@ -14883,7 +14883,7 @@ try { ownerState: t }) => { const n = {}; - return $d(e.breakpoints, t.offset, (r, o) => { + return jf(e.breakpoints, t.offset, (r, o) => { let i = {}; o === "auto" && (i = { marginLeft: "auto" @@ -14900,7 +14900,7 @@ try { const n = { [o2]: 12 }; - return $d(e.breakpoints, t.columns, (r, o) => { + return jf(e.breakpoints, t.columns, (r, o) => { const i = o ?? 12; r(n, { [o2]: i, @@ -14916,7 +14916,7 @@ try { if (!t.container) return {}; const n = {}; - return $d(e.breakpoints, t.rowSpacing, (r, o) => { + return jf(e.breakpoints, t.rowSpacing, (r, o) => { const i = typeof o == "string" ? o : e.spacing?.(o); r(n, { [e0("row")]: i, @@ -14932,7 +14932,7 @@ try { if (!t.container) return {}; const n = {}; - return $d(e.breakpoints, t.columnSpacing, (r, o) => { + return jf(e.breakpoints, t.columnSpacing, (r, o) => { const i = typeof o == "string" ? o : e.spacing?.(o); r(n, { [e0("column")]: i, @@ -14948,7 +14948,7 @@ try { if (!t.container) return {}; const n = {}; - return $d(e.breakpoints, t.direction, (r, o) => { + return jf(e.breakpoints, t.direction, (r, o) => { r(n, { flexDirection: o }); @@ -14984,8 +14984,8 @@ try { }), r; } return []; - }, dZ = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, n]) => `direction-${t}-${n}`) : [`direction-xs-${String(e)}`]; - function fZ(e, t) { + }, fZ = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, n]) => `direction-${t}-${n}`) : [`direction-xs-${String(e)}`]; + function dZ(e, t) { e.item !== void 0 && delete e.item, e.zeroMinWidth !== void 0 && delete e.zeroMinWidth, t.keys.forEach((n) => { e[n] !== void 0 && delete e[n]; }); @@ -15008,7 +15008,7 @@ try { useThemeProps: n = mZ, useTheme: r = Fh, componentName: o = "MuiGrid" - } = e, i = (u, f) => { + } = e, i = (u, d) => { const { container: p, direction: m, @@ -15016,22 +15016,22 @@ try { wrap: y, size: b } = u, v = { - root: ["root", p && "container", y !== "wrap" && `wrap-xs-${String(y)}`, ...dZ(m), ...cZ(b), ...p ? uZ(g, f.breakpoints.keys[0]) : []] + root: ["root", p && "container", y !== "wrap" && `wrap-xs-${String(y)}`, ...fZ(m), ...cZ(b), ...p ? uZ(g, d.breakpoints.keys[0]) : []] }; return rt(v, (x) => ot(o, x), {}); }; - function a(u, f, p = () => !0) { + function a(u, d, p = () => !0) { const m = {}; return u === null || (Array.isArray(u) ? u.forEach((g, y) => { - g !== null && p(g) && f.keys[y] && (m[f.keys[y]] = g); + g !== null && p(g) && d.keys[y] && (m[d.keys[y]] = g); }) : typeof u == "object" ? Object.keys(u).forEach((g) => { const y = u[g]; y != null && p(y) && (m[g] = y); - }) : m[f.keys[0]] = u), m; + }) : m[d.keys[0]] = u), m; } - const s = t(oZ, aZ, iZ, nZ, sZ, lZ, rZ), c = /* @__PURE__ */ T.forwardRef(function(f, p) { - const m = r(), g = n(f), y = fk(g); - fZ(y, m.breakpoints); + const s = t(oZ, aZ, iZ, nZ, sZ, lZ, rZ), c = /* @__PURE__ */ T.forwardRef(function(d, p) { + const m = r(), g = n(d), y = dk(g); + dZ(y, m.breakpoints); const { className: b, children: v, @@ -15047,7 +15047,7 @@ try { columnSpacing: $ = P, unstable_level: L = 0, ...N - } = y, U = a(A, m.breakpoints, (D) => D !== !1), j = a(O, m.breakpoints), V = f.columns ?? (L ? void 0 : x), F = f.spacing ?? (L ? void 0 : P), K = f.rowSpacing ?? f.spacing ?? (L ? void 0 : I), W = f.columnSpacing ?? f.spacing ?? (L ? void 0 : $), Y = { + } = y, U = a(A, m.breakpoints, (D) => D !== !1), j = a(O, m.breakpoints), V = d.columns ?? (L ? void 0 : x), F = d.spacing ?? (L ? void 0 : P), K = d.rowSpacing ?? d.spacing ?? (L ? void 0 : I), W = d.columnSpacing ?? d.spacing ?? (L ? void 0 : $), Y = { ...y, level: L, columns: V, @@ -15104,7 +15104,7 @@ try { 500: "#f44336", 700: "#d32f2f", 800: "#c62828" - }, Wf = { + }, Wd = { 300: "#ffb74d", 400: "#ffa726", 500: "#ff9800", @@ -15202,7 +15202,7 @@ try { const bE = kF(); function i2(e, t, n, r) { const o = r.light || r, i = r.dark || r * 1.5; - e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = pb(e.main, o) : t === "dark" && (e.dark = fb(e.main, i))); + e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = pb(e.main, o) : t === "dark" && (e.dark = db(e.main, i))); } function a2(e, t, n, r, o) { const i = o.light || o, a = o.dark || o * 1.5; @@ -15265,14 +15265,14 @@ try { } function _Z(e = "light") { return e === "dark" ? { - main: Wf[400], - light: Wf[300], - dark: Wf[700] + main: Wd[400], + light: Wd[300], + dark: Wd[700] } : { main: "#ed6c02", // closest to orange[800] that pass 3:1. - light: Wf[500], - dark: Wf[900] + light: Wd[500], + dark: Wd[900] }; } function EZ(e) { @@ -15285,7 +15285,7 @@ try { tonalOffset: r = 0.2, colorSpace: o, ...i - } = e, a = e.primary || vZ(t), s = e.secondary || bZ(t), c = e.error || xZ(t), u = e.info || wZ(t), f = e.success || SZ(t), p = e.warning || _Z(t); + } = e, a = e.primary || vZ(t), s = e.secondary || bZ(t), c = e.error || xZ(t), u = e.info || wZ(t), d = e.success || SZ(t), p = e.warning || _Z(t); function m(v) { return o ? EZ(v) : AX(v, bE.text.primary) >= n ? bE.text.primary : CF.text.primary; } @@ -15343,7 +15343,7 @@ try { }), // The colors used to indicate the successful completion of an action that user triggered. success: g({ - color: f, + color: d, name: "success" }), // The grey colors. @@ -15407,9 +15407,9 @@ try { htmlFontSize: c = 16, // Apply the CSS properties to all the variants. allVariants: u, - pxToRem: f, + pxToRem: d, ...p - } = typeof t == "function" ? t(e) : t, m = r / 14, g = f || ((v) => `${v / c * m}rem`), y = (v, x, E, _, C) => ({ + } = typeof t == "function" ? t(e) : t, m = r / 14, g = d || ((v) => `${v / c * m}rem`), y = (v, x, E, _, C) => ({ fontFamily: n, fontWeight: v, fontSize: g(x), @@ -15513,7 +15513,7 @@ try { delay: c = 0, ...u } = i; - return (Array.isArray(o) ? o : [o]).map((f) => `${f} ${typeof a == "string" ? a : c2(a)} ${s} ${typeof c == "string" ? c : c2(c)}`).join(","); + return (Array.isArray(o) ? o : [o]).map((d) => `${d} ${typeof a == "string" ? a : c2(a)} ${s} ${typeof c == "string" ? c : c2(c)}`).join(","); }, ...e, easing: t, @@ -15581,7 +15581,7 @@ export default theme;`; }, darken(t, n) { const r = this || e; - return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #000 ${u2(n)})` : fb(t, n); + return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #000 ${u2(n)})` : db(t, n); } }); } @@ -15595,7 +15595,7 @@ export default theme;`; typography: s = {}, shape: c, colorSpace: u, - ...f + ...d } = e; if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`. // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider. @@ -15616,9 +15616,9 @@ export default theme;`; ...jZ } }); - return g = xr(g, f), g = t.reduce((y, b) => xr(y, b), g), g.unstable_sxConfig = { + return g = xr(g, d), g = t.reduce((y, b) => xr(y, b), g), g.unstable_sxConfig = { ...Ph, - ...f?.unstable_sxConfig + ...d?.unstable_sxConfig }, g.unstable_sx = function(b) { return nl({ sx: b, @@ -15784,7 +15784,7 @@ export default theme;`; shouldSkipGeneratingVar: s = UZ, colorSchemeSelector: c = n.light && n.dark ? "media" : void 0, rootSelector: u = ":root", - ...f + ...d } = e, p = Object.keys(n)[0], m = r || (n.light && p !== "light" ? "light" : p), g = GZ(i), { [m]: y, light: b, @@ -15798,7 +15798,7 @@ export default theme;`; throw new Error(Va(21, m)); let C; a && (C = "oklch"); - const k = yS(C, E, _, f, m); + const k = yS(C, E, _, d, m); b && !E.light && yS(C, E, b, void 0, "light"), v && !E.dark && yS(C, E, v, void 0, "dark"); let A = { defaultColorScheme: m, @@ -15812,7 +15812,7 @@ export default theme;`; ...CZ(k.typography), ...k.font }, - spacing: WZ(f.spacing) + spacing: WZ(d.spacing) }; Object.keys(A.colorSchemes).forEach((L) => { const N = A.colorSchemes[L].palette, U = (V) => { @@ -15856,10 +15856,10 @@ export default theme;`; return A.vars = P, Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([L, N]) => { A[L] = N; }), A.generateThemeVars = I, A.generateStyleSheets = $, A.generateSpacing = function() { - return dF(f.spacing, uk(this)); + return fF(d.spacing, uk(this)); }, A.getColorSchemeSelector = eZ(c), A.spacing = A.generateSpacing(), A.shouldSkipGeneratingVar = s, A.unstable_sxConfig = { ...Ph, - ...f?.unstable_sxConfig + ...d?.unstable_sxConfig }, A.unstable_sx = function(N) { return nl({ sx: N, @@ -15867,7 +15867,7 @@ export default theme;`; }); }, A.toRuntimeSource = AF, A; } - function d2(e, t, n) { + function f2(e, t, n) { e.colorSchemes && n && (e.colorSchemes[t] = { ...n !== !0 && n, palette: Ck({ @@ -15898,21 +15898,21 @@ export default theme;`; if (r === !1) { if (!("colorSchemes" in e)) return xE(e, ...t); - let f = n; - "palette" in e || u[s] && (u[s] !== !0 ? f = u[s].palette : s === "dark" && (f = { + let d = n; + "palette" in e || u[s] && (u[s] !== !0 ? d = u[s].palette : s === "dark" && (d = { mode: "dark" })); const p = xE({ ...e, - palette: f + palette: d }, ...t); return p.defaultColorScheme = s, p.colorSchemes = u, p.palette.mode === "light" && (p.colorSchemes.light = { ...u.light !== !0 && u.light, palette: p.palette - }, d2(p, "dark", u.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = { + }, f2(p, "dark", u.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = { ...u.dark !== !0 && u.dark, palette: p.palette - }, d2(p, "light", u.light)), p; + }, f2(p, "light", u.light)), p; } return !n && !("light" in u) && s === "light" && (u.light = !0), KZ({ ...a, @@ -15927,7 +15927,7 @@ export default theme;`; return e[zi] || e; } function YZ(e) { - return /* @__PURE__ */ S.jsx(fF, { + return /* @__PURE__ */ S.jsx(dF, { ...e, defaultTheme: kk, themeId: zi @@ -15955,7 +15955,7 @@ export default theme;`; }; } function ZZ() { - return fk; + return dk; } const st = BX; function ut(e) { @@ -16004,24 +16004,24 @@ export default theme;`; borderCollapse: "separate" } }] - }))), f2 = "table", tQ = /* @__PURE__ */ T.forwardRef(function(t, n) { + }))), d2 = "table", tQ = /* @__PURE__ */ T.forwardRef(function(t, n) { const r = ut({ props: t, name: "MuiTable" }), { className: o, - component: i = f2, + component: i = d2, padding: a = "normal", size: s = "medium", stickyHeader: c = !1, ...u - } = r, f = { + } = r, d = { ...r, component: i, padding: a, size: s, stickyHeader: c - }, p = JZ(f), m = T.useMemo(() => ({ + }, p = JZ(d), m = T.useMemo(() => ({ padding: a, size: s, stickyHeader: c @@ -16030,10 +16030,10 @@ export default theme;`; value: m, children: /* @__PURE__ */ S.jsx(eQ, { as: i, - role: i === f2 ? null : "table", + role: i === d2 ? null : "table", ref: n, className: $e(p.root, o), - ownerState: f, + ownerState: d, ...u }) }); @@ -16223,7 +16223,7 @@ export default theme;`; padding: s, scope: c, size: u, - sortDirection: f, + sortDirection: d, variant: p, ...m } = r, g = T.useContext(W4), y = T.useContext(vb), b = y && y.variant === "head"; @@ -16237,12 +16237,12 @@ export default theme;`; component: v, padding: s || (g && g.padding ? g.padding : "normal"), size: u || (g && g.size ? g.size : "medium"), - sortDirection: f, + sortDirection: d, stickyHeader: E === "head" && g && g.stickyHeader, variant: E }, C = cQ(_); let k = null; - return f && (k = f === "asc" ? "ascending" : "descending"), /* @__PURE__ */ S.jsx(uQ, { + return d && (k = d === "asc" ? "ascending" : "descending"), /* @__PURE__ */ S.jsx(uQ, { as: v, ref: n, className: $e(C.root, i), @@ -16252,17 +16252,17 @@ export default theme;`; ...m }); }); - function dQ(e) { + function fQ(e) { return ot("MuiTableContainer", e); } nt("MuiTableContainer", ["root"]); - const fQ = (e) => { + const dQ = (e) => { const { classes: t } = e; return rt({ root: ["root"] - }, dQ, t); + }, fQ, t); }, pQ = Re("div", { name: "MuiTableContainer", slot: "Root" @@ -16280,7 +16280,7 @@ export default theme;`; } = r, s = { ...r, component: i - }, c = fQ(s); + }, c = dQ(s); return /* @__PURE__ */ S.jsx(pQ, { ref: n, as: i, @@ -16381,20 +16381,20 @@ export default theme;`; hover: a = !1, selected: s = !1, ...c - } = r, u = T.useContext(vb), f = { + } = r, u = T.useContext(vb), d = { ...r, component: i, hover: a, selected: s, head: u && u.variant === "head", footer: u && u.variant === "footer" - }, p = wQ(f); + }, p = wQ(d); return /* @__PURE__ */ S.jsx(SQ, { as: i, ref: n, className: $e(p.root, o), role: i === g2 ? null : "row", - ownerState: f, + ownerState: d, ...c }); }); @@ -16548,7 +16548,7 @@ export default theme;`; if (o === void 0 && (o = !1), i !== null) if (this.cancelNextCallback(), i === Yl) { if (this.props.unmountOnExit || this.props.mountOnEnter) { - var a = this.props.nodeRef ? this.props.nodeRef.current : fp.findDOMNode(this); + var a = this.props.nodeRef ? this.props.nodeRef.current : dp.findDOMNode(this); a && CQ(a); } this.performEnter(o); @@ -16558,7 +16558,7 @@ export default theme;`; status: mp }); }, n.performEnter = function(o) { - var i = this, a = this.props.enter, s = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [s] : [fp.findDOMNode(this), s], u = c[0], f = c[1], p = this.getTimeouts(), m = s ? p.appear : p.enter; + var i = this, a = this.props.enter, s = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [s] : [dp.findDOMNode(this), s], u = c[0], d = c[1], p = this.getTimeouts(), m = s ? p.appear : p.enter; if (!o && !a || v2.disabled) { this.safeSetState({ status: Bu @@ -16567,19 +16567,19 @@ export default theme;`; }); return; } - this.props.onEnter(u, f), this.safeSetState({ + this.props.onEnter(u, d), this.safeSetState({ status: Yl }, function() { - i.props.onEntering(u, f), i.onTransitionEnd(m, function() { + i.props.onEntering(u, d), i.onTransitionEnd(m, function() { i.safeSetState({ status: Bu }, function() { - i.props.onEntered(u, f); + i.props.onEntered(u, d); }); }); }); }, n.performExit = function() { - var o = this, i = this.props.exit, a = this.getTimeouts(), s = this.props.nodeRef ? void 0 : fp.findDOMNode(this); + var o = this, i = this.props.exit, a = this.getTimeouts(), s = this.props.nodeRef ? void 0 : dp.findDOMNode(this); if (!i || v2.disabled) { this.safeSetState({ status: Kl @@ -16612,14 +16612,14 @@ export default theme;`; }, this.nextCallback; }, n.onTransitionEnd = function(o, i) { this.setNextCallback(i); - var a = this.props.nodeRef ? this.props.nodeRef.current : fp.findDOMNode(this), s = o == null && !this.props.addEndListener; + var a = this.props.nodeRef ? this.props.nodeRef.current : dp.findDOMNode(this), s = o == null && !this.props.addEndListener; if (!a || s) { setTimeout(this.nextCallback, 0); return; } if (this.props.addEndListener) { - var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], u = c[0], f = c[1]; - this.props.addEndListener(u, f); + var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], u = c[0], d = c[1]; + this.props.addEndListener(u, d); } o != null && setTimeout(this.nextCallback, o); }, n.render = function() { @@ -16676,8 +16676,8 @@ export default theme;`; } function kQ(e, t) { e = e || {}, t = t || {}; - function n(f) { - return f in t ? t[f] : e[f]; + function n(d) { + return d in t ? t[d] : e[d]; } var r = /* @__PURE__ */ Object.create(null), o = []; for (var i in e) @@ -16714,13 +16714,13 @@ export default theme;`; return Object.keys(o).forEach(function(i) { var a = o[i]; if (T.isValidElement(a)) { - var s = i in t, c = i in r, u = t[i], f = T.isValidElement(u) && !u.props.in; - c && (!s || f) ? o[i] = T.cloneElement(a, { + var s = i in t, c = i in r, u = t[i], d = T.isValidElement(u) && !u.props.in; + c && (!s || d) ? o[i] = T.cloneElement(a, { onExited: n.bind(null, a), in: !0, exit: ec(a, "exit", e), enter: ec(a, "enter", e) - }) : !c && s && !f ? o[i] = T.cloneElement(a, { + }) : !c && s && !d ? o[i] = T.cloneElement(a, { in: !1 }) : c && s && T.isValidElement(u) && (o[i] = T.cloneElement(a, { onExited: n.bind(null, a), @@ -16827,13 +16827,13 @@ export default theme;`; in: s, onExited: c, timeout: u - } = e, [f, p] = T.useState(!1), m = $e(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), g = { + } = e, [d, p] = T.useState(!1), m = $e(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), g = { width: a, height: a, top: -(a / 2) + i, left: -(a / 2) + o - }, y = $e(n.child, f && n.childLeaving, r && n.childPulsate); - return !s && !f && p(!0), T.useEffect(() => { + }, y = $e(n.child, d && n.childLeaving, r && n.childPulsate); + return !s && !d && p(!0), T.useEffect(() => { if (!s && c != null) { const b = setTimeout(c, u); return () => { @@ -16848,7 +16848,7 @@ export default theme;`; }) }); } - const ko = nt("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), _E = 550, IQ = 80, $Q = Pd` + const ko = nt("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), _E = 550, IQ = 80, $Q = If` 0% { transform: scale(0); opacity: 0.1; @@ -16858,7 +16858,7 @@ export default theme;`; transform: scale(1); opacity: 0.3; } -`, jQ = Pd` +`, jQ = If` 0% { opacity: 1; } @@ -16866,7 +16866,7 @@ export default theme;`; 100% { opacity: 0; } -`, DQ = Pd` +`, DQ = If` 0% { transform: scale(1); } @@ -16954,7 +16954,7 @@ export default theme;`; classes: i = {}, className: a, ...s - } = r, [c, u] = T.useState([]), f = T.useRef(0), p = T.useRef(null); + } = r, [c, u] = T.useState([]), d = T.useRef(0), p = T.useRef(null); T.useEffect(() => { p.current && (p.current(), p.current = null); }, [c]); @@ -16980,7 +16980,7 @@ export default theme;`; rippleX: A, rippleY: O, rippleSize: P - }, f.current)]), f.current += 1, p.current = I; + }, d.current)]), d.current += 1, p.current = I; }, [i]), x = T.useCallback((C = {}, k = {}, A = () => { }) => { const { @@ -17127,7 +17127,7 @@ export default theme;`; className: s, component: c = "button", disabled: u = !1, - disableRipple: f = !1, + disableRipple: d = !1, disableTouchRipple: p = !1, focusRipple: m = !1, focusVisibleClassName: g, @@ -17157,10 +17157,10 @@ export default theme;`; G(!0), W.current.focus(); } }), []); - const z = Y.shouldMount && !f && !u; + const z = Y.shouldMount && !d && !u; T.useEffect(() => { - D && m && !f && Y.pulsate(); - }, [f, m, D, Y]); + D && m && !d && Y.pulsate(); + }, [d, m, D, Y]); const H = ka(Y, "start", O, p), X = ka(Y, "stop", x, p), Q = ka(Y, "stop", E, p), ne = ka(Y, "stop", I, p), te = ka(Y, "stop", (Ne) => { D && Ne.preventDefault(), P && P(Ne); }, p), se = ka(Y, "start", N, p), ue = ka(Y, "stop", $, p), J = ka(Y, "stop", L, p), ee = ka(Y, "stop", (Ne) => { @@ -17192,7 +17192,7 @@ export default theme;`; centerRipple: i, component: c, disabled: u, - disableRipple: f, + disableRipple: d, disableTouchRipple: p, focusRipple: m, tabIndex: U, @@ -17349,7 +17349,7 @@ export default theme;`; component: s = "svg", fontSize: c = "medium", htmlColor: u, - inheritViewBox: f = !1, + inheritViewBox: d = !1, titleAccess: p, viewBox: m = "0 0 24 24", ...g @@ -17359,11 +17359,11 @@ export default theme;`; component: s, fontSize: c, instanceFontSize: t.fontSize, - inheritViewBox: f, + inheritViewBox: d, viewBox: m, hasSvgAsChild: y }, v = {}; - f || (v.viewBox = m); + d || (v.viewBox = m); const x = WQ(b); return /* @__PURE__ */ S.jsxs(GQ, { as: s, @@ -17458,7 +17458,7 @@ export default theme;`; const a = Ap({ ...o, ...r - }), s = b2(r), c = b2(o), u = t(a), f = $e(u?.className, n?.className, i, o?.className, r?.className), p = { + }), s = b2(r), c = b2(o), u = t(a), d = $e(u?.className, n?.className, i, o?.className, r?.className), p = { ...u?.style, ...n?.style, ...o?.style, @@ -17469,7 +17469,7 @@ export default theme;`; ...c, ...s }; - return f.length > 0 && (m.className = f), Object.keys(p).length > 0 && (m.style = p), { + return d.length > 0 && (m.className = d), Object.keys(p).length > 0 && (m.style = p), { props: m, internalRef: u.ref }; @@ -17485,14 +17485,14 @@ export default theme;`; ...c } = t, { component: u, - slots: f = { + slots: d = { [e]: void 0 }, slotProps: p = { [e]: void 0 }, ...m - } = i, g = f[e] || r, y = $F(p[e], o), { + } = i, g = d[e] || r, y = $F(p[e], o), { props: { component: b, ...v @@ -17504,8 +17504,8 @@ export default theme;`; externalForwardedProps: e === "root" ? m : void 0, externalSlotProps: y }), E = er(x, y?.ref, t.ref), _ = e === "root" ? b || u : b, C = IF(g, { - ...e === "root" && !u && !f[e] && a, - ...e !== "root" && !f[e] && a, + ...e === "root" && !u && !d[e] && a, + ...e !== "root" && !d[e] && a, ...v, ..._ && !s && { as: _ @@ -17606,7 +17606,7 @@ export default theme;`; direction: s = "asc", hideSortIcon: c = !1, IconComponent: u = KQ, - slots: f = {}, + slots: d = {}, slotProps: p = {}, ...m } = r, g = { @@ -17616,7 +17616,7 @@ export default theme;`; hideSortIcon: c, IconComponent: u }, y = XQ(g), b = { - slots: f, + slots: d, slotProps: p }, [v, x] = ln("root", { elementType: ZQ, @@ -17725,8 +17725,8 @@ export default theme;`; index: [], data: [] }); - const f = e.index.length; - f > 1e4 && (c = c === void 0 ? !0 : c), f > 1e3 && (a = a === void 0 ? !0 : a), f > 2 * i && (o = o === void 0 ? !0 : o), c = c === void 0 ? !1 : c, a = a === void 0 ? !1 : a, o = o === void 0 ? !1 : o; + const d = e.index.length; + d > 1e4 && (c = c === void 0 ? !0 : c), d > 1e3 && (a = a === void 0 ? !0 : a), d > 2 * i && (o = o === void 0 ? !0 : o), c = c === void 0 ? !1 : c, a = a === void 0 ? !1 : a, o = o === void 0 ? !1 : o; const p = T.useMemo( () => eJ(e), [e] @@ -17995,13 +17995,13 @@ export default theme;`; return /* @__PURE__ */ S.jsx(b.Provider, { value: v, children: g }); }; u.displayName = i + "Provider"; - function f(p, m) { + function d(p, m) { const g = m?.[e]?.[c] || s, y = T.useContext(g); if (y) return y; if (a !== void 0) return a; throw new Error(`\`${p}\` must be used within \`${i}\``); } - return [u, f]; + return [u, d]; } const o = () => { const i = n.map((a) => T.createContext(a)); @@ -18042,7 +18042,7 @@ export default theme;`; n((r) => r ?? String(uJ++)); }, [e]), e || (t ? `radix-${t}` : ""); } - var dJ = sc[" useInsertionEffect ".trim().toString()] || qa; + var fJ = sc[" useInsertionEffect ".trim().toString()] || qa; function hl({ prop: e, defaultProp: t, @@ -18050,37 +18050,37 @@ export default theme;`; }, caller: r }) { - const [o, i, a] = fJ({ + const [o, i, a] = dJ({ defaultProp: t, onChange: n }), s = e !== void 0, c = s ? e : o; { - const f = T.useRef(e !== void 0); + const d = T.useRef(e !== void 0); T.useEffect(() => { - const p = f.current; + const p = d.current; p !== s && console.warn( `${r} is changing from ${p ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.` - ), f.current = s; + ), d.current = s; }, [s, r]); } const u = T.useCallback( - (f) => { + (d) => { if (s) { - const p = pJ(f) ? f(e) : f; + const p = pJ(d) ? d(e) : d; p !== e && a.current?.(p); } else - i(f); + i(d); }, [s, e, i, a] ); return [c, u]; } - function fJ({ + function dJ({ defaultProp: e, onChange: t }) { const [n, r] = T.useState(e), o = T.useRef(n), i = T.useRef(t); - return dJ(() => { + return fJ(() => { i.current = t; }, [t]), T.useEffect(() => { o.current !== n && (i.current?.(n), o.current = n); @@ -18090,12 +18090,12 @@ export default theme;`; return typeof e == "function"; } // @__NO_SIDE_EFFECTS__ - function dd(e) { + function df(e) { const t = /* @__PURE__ */ hJ(e), n = T.forwardRef((r, o) => { const { children: i, ...a } = r, s = T.Children.toArray(i), c = s.find(gJ); if (c) { - const u = c.props.children, f = s.map((p) => p === c ? T.Children.count(u) > 1 ? T.Children.only(null) : T.isValidElement(u) ? u.props.children : null : p); - return /* @__PURE__ */ S.jsx(t, { ...a, ref: o, children: T.isValidElement(u) ? T.cloneElement(u, void 0, f) : null }); + const u = c.props.children, d = s.map((p) => p === c ? T.Children.count(u) > 1 ? T.Children.only(null) : T.isValidElement(u) ? u.props.children : null : p); + return /* @__PURE__ */ S.jsx(t, { ...a, ref: o, children: T.isValidElement(u) ? T.cloneElement(u, void 0, d) : null }); } return /* @__PURE__ */ S.jsx(t, { ...a, ref: o, children: i }); }); @@ -18151,7 +18151,7 @@ export default theme;`; "svg", "ul" ], xt = bJ.reduce((e, t) => { - const n = /* @__PURE__ */ dd(`Primitive.${t}`), r = T.forwardRef((o, i) => { + const n = /* @__PURE__ */ df(`Primitive.${t}`), r = T.forwardRef((o, i) => { const { asChild: a, ...s } = o, c = a ? n : t; return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ S.jsx(c, { ...s, ref: i }); }); @@ -18189,7 +18189,7 @@ export default theme;`; onInteractOutside: a, onDismiss: s, ...c - } = e, u = T.useContext(FF), [f, p] = T.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, g] = T.useState({}), y = un(t, (O) => p(O)), b = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = b.indexOf(v), E = f ? b.indexOf(f) : -1, _ = u.layersWithOutsidePointerEventsDisabled.size > 0, C = E >= x, k = CJ((O) => { + } = e, u = T.useContext(FF), [d, p] = T.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, g] = T.useState({}), y = un(t, (O) => p(O)), b = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = b.indexOf(v), E = d ? b.indexOf(d) : -1, _ = u.layersWithOutsidePointerEventsDisabled.size > 0, C = E >= x, k = CJ((O) => { const P = O.target, I = [...u.branches].some(($) => $.contains(P)); !C || I || (o?.(O), a?.(O), O.defaultPrevented || s?.()); }, m), A = kJ((O) => { @@ -18199,13 +18199,13 @@ export default theme;`; return xJ((O) => { E === u.layers.size - 1 && (r?.(O), !O.defaultPrevented && s && (O.preventDefault(), s())); }, m), T.useEffect(() => { - if (f) - return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (S2 = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), _2(), () => { + if (d) + return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (S2 = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), _2(), () => { n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = S2); }; - }, [f, m, n, u]), T.useEffect(() => () => { - f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), _2()); - }, [f, u]), T.useEffect(() => { + }, [d, m, n, u]), T.useEffect(() => () => { + d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), _2()); + }, [d, u]), T.useEffect(() => { const O = () => g({}); return document.addEventListener(kE, O), () => document.removeEventListener(kE, O); }, []), /* @__PURE__ */ S.jsx( @@ -18298,7 +18298,7 @@ export default theme;`; onMountAutoFocus: o, onUnmountAutoFocus: i, ...a - } = e, [s, c] = T.useState(null), u = qr(o), f = qr(i), p = T.useRef(null), m = un(t, (b) => c(b)), g = T.useRef({ + } = e, [s, c] = T.useState(null), u = qr(o), d = qr(i), p = T.useRef(null), m = un(t, (b) => c(b)), g = T.useRef({ paused: !1, pause() { this.paused = !0; @@ -18339,11 +18339,11 @@ export default theme;`; return () => { s.removeEventListener(bS, u), setTimeout(() => { const x = new CustomEvent(xS, E2); - s.addEventListener(xS, f), s.dispatchEvent(x), x.defaultPrevented || Bs(b ?? document.body, { select: !0 }), s.removeEventListener(xS, f), k2.remove(g); + s.addEventListener(xS, d), s.dispatchEvent(x), x.defaultPrevented || Bs(b ?? document.body, { select: !0 }), s.removeEventListener(xS, d), k2.remove(g); }, 0); }; } - }, [s, u, f, g]); + }, [s, u, d, g]); const y = T.useCallback( (b) => { if (!n && !r || g.paused) return; @@ -18423,7 +18423,7 @@ export default theme;`; const { container: n, ...r } = e, [o, i] = T.useState(!1); qa(() => i(!0), []); const a = n || o && globalThis?.document?.body; - return a ? fp.createPortal(/* @__PURE__ */ S.jsx(xt.div, { ...r, ref: t }), a) : null; + return a ? dp.createPortal(/* @__PURE__ */ S.jsx(xt.div, { ...r, ref: t }), a) : null; }); Sb.displayName = jJ; function DJ(e, t) { @@ -18452,19 +18452,19 @@ export default theme;`; const u = Zg(r.current); i.current = s === "mounted" ? u : "none"; }, [s]), qa(() => { - const u = r.current, f = o.current; - if (f !== e) { + const u = r.current, d = o.current; + if (d !== e) { const m = i.current, g = Zg(u); - e ? c("MOUNT") : g === "none" || u?.display === "none" ? c("UNMOUNT") : c(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e; + e ? c("MOUNT") : g === "none" || u?.display === "none" ? c("UNMOUNT") : c(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e; } }, [e, c]), qa(() => { if (t) { let u; - const f = t.ownerDocument.defaultView ?? window, p = (g) => { + const d = t.ownerDocument.defaultView ?? window, p = (g) => { const b = Zg(r.current).includes(CSS.escape(g.animationName)); if (g.target === t && b && (c("ANIMATION_END"), !o.current)) { const v = t.style.animationFillMode; - t.style.animationFillMode = "forwards", u = f.setTimeout(() => { + t.style.animationFillMode = "forwards", u = d.setTimeout(() => { t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v); }); } @@ -18472,7 +18472,7 @@ export default theme;`; g.target === t && (i.current = Zg(r.current)); }; return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => { - f.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p); + d.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p); }; } else c("ANIMATION_END"); @@ -18611,17 +18611,17 @@ export default theme;`; n = [], s.forEach(i), a = n; } var c = function() { - var f = a; - a = [], f.forEach(i); + var d = a; + a = [], d.forEach(i); }, u = function() { return Promise.resolve().then(c); }; u(), n = { - push: function(f) { - a.push(f), u(); + push: function(d) { + a.push(d), u(); }, - filter: function(f) { - return a = a.filter(f), n; + filter: function(d) { + return a = a.filter(d), n; } }; } @@ -18652,11 +18652,11 @@ export default theme;`; onScrollCapture: _S, onWheelCapture: _S, onTouchMoveCapture: _S - }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, y = e.noIsolation, b = e.inert, v = e.allowPinchZoom, x = e.as, E = x === void 0 ? "div" : x, _ = e.gapMode, C = UF(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = m, A = HJ([n, t]), O = Oi(Oi({}, C), o); + }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, y = e.noIsolation, b = e.inert, v = e.allowPinchZoom, x = e.as, E = x === void 0 ? "div" : x, _ = e.gapMode, C = UF(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = m, A = HJ([n, t]), O = Oi(Oi({}, C), o); return T.createElement( T.Fragment, null, - f && T.createElement(k, { sideCar: HF, removeScrollBar: u, shards: p, noRelative: g, noIsolation: y, inert: b, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: _ }), + d && T.createElement(k, { sideCar: HF, removeScrollBar: u, shards: p, noRelative: g, noIsolation: y, inert: b, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: _ }), a ? T.cloneElement(T.Children.only(s), Oi(Oi({}, O), { ref: A })) : T.createElement(E, Oi({}, O, { className: c, ref: A }), s) ); }); @@ -18733,14 +18733,14 @@ export default theme;`; right: t[2], gap: Math.max(0, r - n + t[2] - t[0]) }; - }, oee = qF(), ed = "data-scroll-locked", iee = function(e, t, n, r) { + }, oee = qF(), ef = "data-scroll-locked", iee = function(e, t, n, r) { var o = e.left, i = e.top, a = e.right, s = e.gap; return n === void 0 && (n = "margin"), ` .`.concat(zJ, ` { overflow: hidden `).concat(r, `; padding-right: `).concat(s, "px ").concat(r, `; } - body[`).concat(ed, `] { + body[`).concat(ef, `] { overflow: hidden `).concat(r, `; overscroll-behavior: contain; `).concat([ @@ -18773,18 +18773,18 @@ export default theme;`; margin-right: 0 `).concat(r, `; } - body[`).concat(ed, `] { + body[`).concat(ef, `] { `).concat(BJ, ": ").concat(s, `px; } `); }, O2 = function() { - var e = parseInt(document.body.getAttribute(ed) || "0", 10); + var e = parseInt(document.body.getAttribute(ef) || "0", 10); return isFinite(e) ? e : 0; }, aee = function() { T.useEffect(function() { - return document.body.setAttribute(ed, (O2() + 1).toString()), function() { + return document.body.setAttribute(ef, (O2() + 1).toString()), function() { var e = O2() - 1; - e <= 0 ? document.body.removeAttribute(ed) : document.body.setAttribute(ed, e.toString()); + e <= 0 ? document.body.removeAttribute(ef) : document.body.setAttribute(ef, e.toString()); }; }, []); }, see = function(e) { @@ -18834,14 +18834,14 @@ export default theme;`; r = r.parentNode; } while (r && r !== n.body); return !1; - }, dee = function(e) { + }, fee = function(e) { var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight; return [ t, n, r ]; - }, fee = function(e) { + }, dee = function(e) { var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth; return [ t, @@ -18851,11 +18851,11 @@ export default theme;`; }, GF = function(e, t) { return e === "v" ? cee(t) : uee(t); }, KF = function(e, t) { - return e === "v" ? dee(t) : fee(t); + return e === "v" ? fee(t) : dee(t); }, pee = function(e, t) { return e === "h" && t === "rtl" ? -1 : 1; }, hee = function(e, t, n, r, o) { - var i = pee(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, c = t.contains(s), u = !1, f = a > 0, p = 0, m = 0; + var i = pee(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, c = t.contains(s), u = !1, d = a > 0, p = 0, m = 0; do { if (!s) break; @@ -18868,7 +18868,7 @@ export default theme;`; !c && s !== document.body || // self content c && (t.contains(s) || t === s) ); - return (f && Math.abs(p) < 1 || !f && Math.abs(m) < 1) && (u = !0), u; + return (d && Math.abs(p) < 1 || !d && Math.abs(m) < 1) && (u = !0), u; }, Jg = function(e) { return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0]; }, N2 = function(e) { @@ -18939,7 +18939,7 @@ export default theme;`; return C !== _; }); }, 1); - }, []), f = T.useCallback(function(b) { + }, []), d = T.useCallback(function(b) { n.current = Jg(b), r.current = void 0; }, []), p = T.useCallback(function(b) { u(b.type, N2(b), b.target, s(b, e.lockRef.current)); @@ -18951,10 +18951,10 @@ export default theme;`; onScrollCapture: p, onWheelCapture: p, onTouchMoveCapture: m - }), document.addEventListener("wheel", c, ku), document.addEventListener("touchmove", c, ku), document.addEventListener("touchstart", f, ku), function() { + }), document.addEventListener("wheel", c, ku), document.addEventListener("touchmove", c, ku), document.addEventListener("touchstart", d, ku), function() { Tu = Tu.filter(function(b) { return b !== i; - }), document.removeEventListener("wheel", c, ku), document.removeEventListener("touchmove", c, ku), document.removeEventListener("touchstart", f, ku); + }), document.removeEventListener("wheel", c, ku), document.removeEventListener("touchmove", c, ku), document.removeEventListener("touchstart", d, ku); }; }, []); var g = e.removeScrollBar, y = e.inert; @@ -18998,10 +18998,10 @@ export default theme;`; !p || s.has(p) || (s.add(p), u(p.parentNode)); }; o.forEach(u); - var f = function(p) { + var d = function(p) { !p || c.has(p) || Array.prototype.forEach.call(p.children, function(m) { if (s.has(m)) - f(m); + d(m); else try { var g = m.getAttribute(r), y = g !== null && g !== "false", b = (Au.get(m) || 0) + 1, v = (i.get(m) || 0) + 1; @@ -19011,7 +19011,7 @@ export default theme;`; } }); }; - return f(t), s.clear(), CS++, function() { + return d(t), s.clear(), CS++, function() { a.forEach(function(p) { var m = Au.get(p) - 1, g = i.get(p) - 1; Au.set(p, m), i.set(p, g), m || (ey.has(p) || p.removeAttribute(r), ey.delete(p)), g || p.removeAttribute(n); @@ -19031,7 +19031,7 @@ export default theme;`; defaultOpen: o, onOpenChange: i, modal: a = !0 - } = e, s = T.useRef(null), c = T.useRef(null), [u, f] = hl({ + } = e, s = T.useRef(null), c = T.useRef(null), [u, d] = hl({ prop: r, defaultProp: o ?? !1, onChange: i, @@ -19047,8 +19047,8 @@ export default theme;`; titleId: Vi(), descriptionId: Vi(), open: u, - onOpenChange: f, - onOpenToggle: T.useCallback(() => f((p) => !p), [f]), + onOpenChange: d, + onOpenToggle: T.useCallback(() => d((p) => !p), [d]), modal: a, children: n } @@ -19088,7 +19088,7 @@ export default theme;`; } ); nL.displayName = i0; - var kee = /* @__PURE__ */ dd("DialogOverlay.RemoveScroll"), Tee = T.forwardRef( + var kee = /* @__PURE__ */ df("DialogOverlay.RemoveScroll"), Tee = T.forwardRef( (e, t) => { const { __scopeDialog: n, ...r } = e, o = ai(i0, n); return ( @@ -19225,12 +19225,12 @@ export default theme;`; function jk(e) { return e ? "open" : "closed"; } - var uL = "DialogTitleWarning", [gze, dL] = sJ(uL, { + var uL = "DialogTitleWarning", [gze, fL] = sJ(uL, { contentName: lc, titleName: $k, docsSlug: "dialog" }), Oee = ({ titleId: e }) => { - const t = dL(uL), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + const t = fL(uL), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. @@ -19239,12 +19239,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do e && (document.getElementById(e) || console.error(n)); }, [n, e]), null; }, Mee = "DialogDescriptionWarning", Nee = ({ contentRef: e, descriptionId: t }) => { - const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dL(Mee).contentName}}.`; + const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fL(Mee).contentName}}.`; return T.useEffect(() => { const o = e.current?.getAttribute("aria-describedby"); t && o && (document.getElementById(t) || console.warn(r)); }, [r, e, t]), null; - }, Pee = ZF, Iee = JF, $ee = tL, jee = nL, Dee = rL, Fee = iL, Lee = sL, fL = cL; + }, Pee = ZF, Iee = JF, $ee = tL, jee = nL, Dee = rL, Fee = iL, Lee = sL, dL = cL; function AE(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n]; @@ -19337,8 +19337,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (Object(n) !== n) return; c = !1; } else for (; !(c = (r = i.call(n)).done) && (s.push(r.value), s.length !== t); c = !0) ; - } catch (f) { - u = !0, o = f; + } catch (d) { + u = !0, o = d; } finally { try { if (!c && n.return != null && (a = n.return(), Object(a) !== a)) return; @@ -19532,8 +19532,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho GROUP: "duotone-group", PRIMARY: "primary", SECONDARY: "secondary" - }, bL = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], fr = "classic", Bh = "duotone", xL = "sharp", wL = "sharp-duotone", SL = "chisel", _L = "etch", EL = "jelly", CL = "jelly-duo", kL = "jelly-fill", TL = "notdog", AL = "notdog-duo", RL = "slab", OL = "slab-press", ML = "thumbprint", NL = "utility", PL = "utility-duo", IL = "utility-fill", $L = "whiteboard", ete = "Classic", tte = "Duotone", nte = "Sharp", rte = "Sharp Duotone", ote = "Chisel", ite = "Etch", ate = "Jelly", ste = "Jelly Duo", lte = "Jelly Fill", cte = "Notdog", ute = "Notdog Duo", dte = "Slab", fte = "Slab Press", pte = "Thumbprint", hte = "Utility", mte = "Utility Duo", gte = "Utility Fill", yte = "Whiteboard", jL = [fr, Bh, xL, wL, SL, _L, EL, CL, kL, TL, AL, RL, OL, ML, NL, PL, IL, $L]; - kS = {}, ht(ht(ht(ht(ht(ht(ht(ht(ht(ht(kS, fr, ete), Bh, tte), xL, nte), wL, rte), SL, ote), _L, ite), EL, ate), CL, ste), kL, lte), TL, cte), ht(ht(ht(ht(ht(ht(ht(ht(kS, AL, ute), RL, dte), OL, fte), ML, pte), NL, hte), PL, mte), IL, gte), $L, yte); + }, bL = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], dr = "classic", Bh = "duotone", xL = "sharp", wL = "sharp-duotone", SL = "chisel", _L = "etch", EL = "jelly", CL = "jelly-duo", kL = "jelly-fill", TL = "notdog", AL = "notdog-duo", RL = "slab", OL = "slab-press", ML = "thumbprint", NL = "utility", PL = "utility-duo", IL = "utility-fill", $L = "whiteboard", ete = "Classic", tte = "Duotone", nte = "Sharp", rte = "Sharp Duotone", ote = "Chisel", ite = "Etch", ate = "Jelly", ste = "Jelly Duo", lte = "Jelly Fill", cte = "Notdog", ute = "Notdog Duo", fte = "Slab", dte = "Slab Press", pte = "Thumbprint", hte = "Utility", mte = "Utility Duo", gte = "Utility Fill", yte = "Whiteboard", jL = [dr, Bh, xL, wL, SL, _L, EL, CL, kL, TL, AL, RL, OL, ML, NL, PL, IL, $L]; + kS = {}, ht(ht(ht(ht(ht(ht(ht(ht(ht(ht(kS, dr, ete), Bh, tte), xL, nte), wL, rte), SL, ote), _L, ite), EL, ate), CL, ste), kL, lte), TL, cte), ht(ht(ht(ht(ht(ht(ht(ht(kS, AL, ute), RL, fte), OL, dte), ML, pte), NL, hte), PL, mte), IL, gte), $L, yte); var vte = { classic: { 900: "fas", @@ -19911,8 +19911,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho SWAP_OPACITY: "swap-opacity", PRIMARY: "primary", SECONDARY: "secondary" - }, Ote = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], Mte = "classic", Nte = "duotone", Pte = "sharp", Ite = "sharp-duotone", $te = "chisel", jte = "etch", Dte = "jelly", Fte = "jelly-duo", Lte = "jelly-fill", zte = "notdog", Bte = "notdog-duo", Ute = "slab", Vte = "slab-press", Hte = "thumbprint", qte = "utility", Wte = "utility-duo", Gte = "utility-fill", Kte = "whiteboard", Yte = "Classic", Xte = "Duotone", Zte = "Sharp", Qte = "Sharp Duotone", Jte = "Chisel", ene = "Etch", tne = "Jelly", nne = "Jelly Duo", rne = "Jelly Fill", one = "Notdog", ine = "Notdog Duo", ane = "Slab", sne = "Slab Press", lne = "Thumbprint", cne = "Utility", une = "Utility Duo", dne = "Utility Fill", fne = "Whiteboard"; - TS = {}, ht(ht(ht(ht(ht(ht(ht(ht(ht(ht(TS, Mte, Yte), Nte, Xte), Pte, Zte), Ite, Qte), $te, Jte), jte, ene), Dte, tne), Fte, nne), Lte, rne), zte, one), ht(ht(ht(ht(ht(ht(ht(ht(TS, Bte, ine), Ute, ane), Vte, sne), Hte, lne), qte, cne), Wte, une), Gte, dne), Kte, fne); + }, Ote = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], Mte = "classic", Nte = "duotone", Pte = "sharp", Ite = "sharp-duotone", $te = "chisel", jte = "etch", Dte = "jelly", Fte = "jelly-duo", Lte = "jelly-fill", zte = "notdog", Bte = "notdog-duo", Ute = "slab", Vte = "slab-press", Hte = "thumbprint", qte = "utility", Wte = "utility-duo", Gte = "utility-fill", Kte = "whiteboard", Yte = "Classic", Xte = "Duotone", Zte = "Sharp", Qte = "Sharp Duotone", Jte = "Chisel", ene = "Etch", tne = "Jelly", nne = "Jelly Duo", rne = "Jelly Fill", one = "Notdog", ine = "Notdog Duo", ane = "Slab", sne = "Slab Press", lne = "Thumbprint", cne = "Utility", une = "Utility Duo", fne = "Utility Fill", dne = "Whiteboard"; + TS = {}, ht(ht(ht(ht(ht(ht(ht(ht(ht(ht(TS, Mte, Yte), Nte, Xte), Pte, Zte), Ite, Qte), $te, Jte), jte, ene), Dte, tne), Fte, nne), Lte, rne), zte, one), ht(ht(ht(ht(ht(ht(ht(ht(TS, Bte, ine), Ute, ane), Vte, sne), Hte, lne), qte, cne), Wte, une), Gte, fne), Kte, dne); var pne = "kit", hne = "kit-duotone", mne = "Kit", gne = "Kit Duotone"; ht(ht({}, pne, mne), hne, gne); var yne = { @@ -20102,22 +20102,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Uh(e) { return new Proxy(e, { get: function(n, r) { - return r in n ? n[r] : n[fr]; + return r in n ? n[r] : n[dr]; } }); } var HL = Te({}, vL); - HL[fr] = Te(Te(Te(Te({}, { + HL[dr] = Te(Te(Te(Te({}, { "fa-duotone": "duotone" - }), vL[fr]), L2.kit), L2["kit-duotone"]); + }), vL[dr]), L2.kit), L2["kit-duotone"]); var Ane = Uh(HL), NE = Te({}, wte); - NE[fr] = Te(Te(Te(Te({}, { + NE[dr] = Te(Te(Te(Te({}, { duotone: "fad" - }), NE[fr]), z2.kit), z2["kit-duotone"]); + }), NE[dr]), z2.kit), z2["kit-duotone"]); var U2 = Uh(NE), PE = Te({}, RE); - PE[fr] = Te(Te({}, PE[fr]), Rte.kit); + PE[dr] = Te(Te({}, PE[dr]), Rte.kit); var Bk = Uh(PE), IE = Te({}, yne); - IE[fr] = Te(Te({}, IE[fr]), Tte.kit); + IE[dr] = Te(Te({}, IE[dr]), Tte.kit); Uh(IE); var Rne = Zee, qL = "fa-layers-text", One = Qee, Mne = Te({}, vte); Uh(Mne); @@ -20139,7 +20139,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var WL = { styleDefault: "solid", - familyDefault: fr, + familyDefault: dr, cssPrefix: zL, replacementClass: BL, autoReplaceSvg: !0, @@ -20154,31 +20154,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho showMissingIcons: !0 }; Rp.familyPrefix && (Rp.cssPrefix = Rp.familyPrefix); - var fd = Te(Te({}, WL), Rp); - fd.autoReplaceSvg || (fd.observeMutations = !1); + var pf = Te(Te({}, WL), Rp); + pf.autoReplaceSvg || (pf.observeMutations = !1); var Ge = {}; Object.keys(WL).forEach(function(e) { Object.defineProperty(Ge, e, { enumerable: !0, set: function(n) { - fd[e] = n, Op.forEach(function(r) { + pf[e] = n, Op.forEach(function(r) { return r(Ge); }); }, get: function() { - return fd[e]; + return pf[e]; } }); }); Object.defineProperty(Ge, "familyPrefix", { enumerable: !0, set: function(t) { - fd.cssPrefix = t, Op.forEach(function(n) { + pf.cssPrefix = t, Op.forEach(function(n) { return n(Ge); }); }, get: function() { - return fd.cssPrefix; + return pf.cssPrefix; } }); ol.FontAwesomeConfig = Ge; @@ -20213,13 +20213,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t += Lne[Math.random() * 62 | 0]; return t; } - function jd(e) { + function Df(e) { for (var t = [], n = (e || []).length >>> 0; n--; ) t[n] = e[n]; return t; } function Uk(e) { - return e.classList ? jd(e.classList) : (e.getAttribute("class") || "").split(" ").filter(function(t) { + return e.classList ? Df(e.classList) : (e.getAttribute("class") || "").split(" ").filter(function(t) { return t; }); } @@ -20866,10 +20866,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } var OS = function(t, n, r, o) { - var i = Object.keys(t), a = i.length, s = n, c, u, f; - for (r === void 0 ? (c = 1, f = t[i[0]]) : (c = 0, f = r); c < a; c++) - u = i[c], f = s(f, t[u], u, t); - return f; + var i = Object.keys(t), a = i.length, s = n, c, u, d; + for (r === void 0 ? (c = 1, d = t[i[0]]) : (c = 0, d = r); c < a; c++) + u = i[c], d = s(d, t[u], u, t); + return d; }; function ZL(e) { return ti(e).length !== 1 ? null : e.codePointAt(0).toString(16); @@ -20985,7 +20985,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; }; function Qne(e) { - var t = fr, n = QL.reduce(function(r, o) { + var t = dr, n = QL.reduce(function(r, o) { return r[o] = "".concat(Ge.cssPrefix, "-").concat(o), r; }, {}); return jL.forEach(function(r) { @@ -20995,7 +20995,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), t; } function Ab(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.family, r = n === void 0 ? fr : n, o = Ane[r][e]; + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.family, r = n === void 0 ? dr : n, o = Ane[r][e]; if (r === Bh && !e) return "fad"; var i = U2[r][e] || U2[r][o], a = e in Yo.styles ? e : null, s = i || a || null; @@ -21024,8 +21024,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !K2.includes(g); })), s = i.filter(function(g) { return o = g, !bL.includes(g); - }), c = kb(s, 1), u = c[0], f = u === void 0 ? null : u, p = Qne(i), m = Te(Te({}, Jne(a)), {}, { - prefix: Ab(f, { + }), c = kb(s, 1), u = c[0], d = u === void 0 ? null : u, p = Qne(i), m = Te(Te({}, Jne(a)), {}, { + prefix: Ab(d, { family: p }) }); @@ -21052,15 +21052,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } var tre = jL.filter(function(e) { - return e !== fr || e !== Bh; + return e !== dr || e !== Bh; }), nre = Object.keys(RE).filter(function(e) { - return e !== fr; + return e !== dr; }).map(function(e) { return Object.keys(RE[e]); }).flat(); function rre(e) { - var t = e.values, n = e.family, r = e.canonical, o = e.givenPrefix, i = o === void 0 ? "" : o, a = e.styles, s = a === void 0 ? {} : a, c = e.config, u = c === void 0 ? {} : c, f = n === Bh, p = t.includes("fa-duotone") || t.includes("fad"), m = u.familyDefault === "duotone", g = r.prefix === "fad" || r.prefix === "fa-duotone"; - if (!f && (p || m || g) && (r.prefix = "fad"), (t.includes("fa-brands") || t.includes("fab")) && (r.prefix = "fab"), !r.prefix && tre.includes(n)) { + var t = e.values, n = e.family, r = e.canonical, o = e.givenPrefix, i = o === void 0 ? "" : o, a = e.styles, s = a === void 0 ? {} : a, c = e.config, u = c === void 0 ? {} : c, d = n === Bh, p = t.includes("fa-duotone") || t.includes("fad"), m = u.familyDefault === "duotone", g = r.prefix === "fad" || r.prefix === "fa-duotone"; + if (!d && (p || m || g) && (r.prefix = "fad"), (t.includes("fa-brands") || t.includes("fab")) && (r.prefix = "fab"), !r.prefix && tre.includes(n)) { var y = Object.keys(s).find(function(v) { return nre.includes(v); }); @@ -21083,7 +21083,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var a = o.reduce(this._pullDefinitions, {}); Object.keys(a).forEach(function(s) { n.definitions[s] = Te(Te({}, n.definitions[s] || {}), a[s]), $E(s, a[s]); - var c = Bk[fr][s]; + var c = Bk[dr][s]; c && $E(c, a[s]), oz(); }); } @@ -21099,18 +21099,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0: r } : r; return Object.keys(o).map(function(i) { - var a = o[i], s = a.prefix, c = a.iconName, u = a.icon, f = u[2]; - n[s] || (n[s] = {}), f.length > 0 && f.forEach(function(p) { + var a = o[i], s = a.prefix, c = a.iconName, u = a.icon, d = u[2]; + n[s] || (n[s] = {}), d.length > 0 && d.forEach(function(p) { typeof p == "string" && (n[s][p] = u); }), n[s][c] = u; }), n; } }]); - })(), Y2 = [], Wu = {}, td = {}, ire = Object.keys(td); + })(), Y2 = [], Wu = {}, tf = {}, ire = Object.keys(tf); function are(e, t) { var n = t.mixoutsTo; - return Y2 = e, Wu = {}, Object.keys(td).forEach(function(r) { - ire.indexOf(r) === -1 && delete td[r]; + return Y2 = e, Wu = {}, Object.keys(tf).forEach(function(r) { + ire.indexOf(r) === -1 && delete tf[r]; }), Y2.forEach(function(r) { var o = r.mixout ? r.mixout() : {}; if (Object.keys(o).forEach(function(a) { @@ -21123,7 +21123,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Wu[a] || (Wu[a] = []), Wu[a].push(i[a]); }); } - r.provides && r.provides(td); + r.provides && r.provides(tf); }), n; } function jE(e, t) { @@ -21144,7 +21144,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function al() { var e = arguments[0], t = Array.prototype.slice.call(arguments, 1); - return td[e] ? td[e].apply(null, t) : void 0; + return tf[e] ? tf[e].apply(null, t) : void 0; } function DE(e) { e.prefix === "fa" && (e.prefix = "fas"); @@ -21232,7 +21232,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), e; } - function dre(e) { + function fre(e) { var t = e.children, n = e.main, r = e.mask, o = e.attributes, i = e.styles, a = e.transform; if (Vk(a) && n.found && !r.found) { var s = n.width, c = n.height, u = { @@ -21249,7 +21249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: t }]; } - function fre(e) { + function dre(e) { var t = e.prefix, n = e.iconName, r = e.children, o = e.attributes, i = e.symbol, a = i === !0 ? "".concat(t, "-").concat(Ge.cssPrefix, "-").concat(n) : i; return [{ tag: "svg", @@ -21272,7 +21272,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } function Wk(e) { - var t = e.icons, n = t.main, r = t.mask, o = e.prefix, i = e.iconName, a = e.transform, s = e.symbol, c = e.maskId, u = e.extra, f = e.watchable, p = f === void 0 ? !1 : f, m = r.found ? r : n, g = m.width, y = m.height, b = [Ge.replacementClass, i ? "".concat(Ge.cssPrefix, "-").concat(i) : ""].filter(function(k) { + var t = e.icons, n = t.main, r = t.mask, o = e.prefix, i = e.iconName, a = e.transform, s = e.symbol, c = e.maskId, u = e.extra, d = e.watchable, p = d === void 0 ? !1 : d, m = r.found ? r : n, g = m.width, y = m.height, b = [Ge.replacementClass, i ? "".concat(Ge.cssPrefix, "-").concat(i) : ""].filter(function(k) { return u.classes.indexOf(k) === -1; }).filter(function(k) { return k !== "" || !!k; @@ -21303,7 +21303,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: [], attributes: {} }, _ = E.children, C = E.attributes; - return x.children = _, x.attributes = C, s ? fre(x) : dre(x); + return x.children = _, x.attributes = C, s ? dre(x) : fre(x); } function X2(e) { var t = e.content, n = e.width, r = e.height, o = e.transform, i = e.extra, a = e.watchable, s = a === void 0 ? !1 : a, c = Te(Te({}, i.attributes), {}, { @@ -21316,8 +21316,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: n, height: r }), u["-webkit-transform"] = u.transform); - var f = Tb(u); - f.length > 0 && (c.style = f); + var d = Tb(u); + d.length > 0 && (c.style = d); var p = []; return p.push({ tag: "span", @@ -21503,7 +21503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } var Kk = !1; - function dz() { + function fz() { Kk = !0; } function BE() { @@ -21515,12 +21515,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = e.treeCallback, n = t === void 0 ? Mv : t, r = e.nodeCallback, o = r === void 0 ? Mv : r, i = e.pseudoElementsCallback, a = i === void 0 ? Mv : i, s = e.observeMutationsRoot, c = s === void 0 ? vn : s; l0 = new F2(function(u) { if (!Kk) { - var f = il(); - jd(u).forEach(function(p) { + var d = il(); + Df(u).forEach(function(p) { if (p.type === "childList" && p.addedNodes.length > 0 && !Q2(p.addedNodes[0]) && (Ge.searchPseudoElements && a(p.target), n(p.target)), p.type === "attributes" && p.target.parentNode && Ge.searchPseudoElements && a([p.target], !0), p.type === "attributes" && Q2(p.target) && ~Nne.indexOf(p.attributeName)) if (p.attributeName === "class" && vre(p.target)) { var m = Rb(Uk(p.target)), g = m.prefix, y = m.iconName; - p.target.setAttribute(Lk, g || f), y && p.target.setAttribute(zk, y); + p.target.setAttribute(Lk, g || d), y && p.target.setAttribute(zk, y); } else bre(p.target) && o(p.target); }); } @@ -21547,7 +21547,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return o.prefix || (o.prefix = il()), t && n && (o.prefix = t, o.iconName = n), o.iconName && o.prefix || (o.prefix && r.length > 0 && (o.iconName = Xne(o.prefix, e.innerText) || qk(o.prefix, ZL(e.innerText))), !o.iconName && Ge.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (o.iconName = e.firstChild.data)), o; } function Tre(e) { - var t = jd(e.attributes).reduce(function(n, r) { + var t = Df(e.attributes).reduce(function(n, r) { return n.name !== "class" && n.name !== "style" && (n[r.name] = r.value), n; }, {}); return t; @@ -21594,7 +21594,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, s); } var Rre = Yo.styles; - function fz(e) { + function dz(e) { var t = Ge.autoReplaceSvg === "nest" ? tI(e, { styleParser: !1 }) : tI(e); @@ -21612,33 +21612,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n.remove("".concat(B2, "-").concat(p)); }, i = Ge.autoFetchSvg ? Ore() : bL.concat(Object.keys(Rre)); i.includes("fa") || i.push("fa"); - var a = [".".concat(qL, ":not([").concat(cc, "])")].concat(i.map(function(f) { - return ".".concat(f, ":not([").concat(cc, "])"); + var a = [".".concat(qL, ":not([").concat(cc, "])")].concat(i.map(function(d) { + return ".".concat(d, ":not([").concat(cc, "])"); })).join(", "); if (a.length === 0) return Promise.resolve(); var s = []; try { - s = jd(e.querySelectorAll(a)); + s = Df(e.querySelectorAll(a)); } catch { } if (s.length > 0) r("pending"), o("complete"); else return Promise.resolve(); - var c = Gk.begin("onTree"), u = s.reduce(function(f, p) { + var c = Gk.begin("onTree"), u = s.reduce(function(d, p) { try { - var m = fz(p); - m && f.push(m); + var m = dz(p); + m && d.push(m); } catch (g) { VL || g.name === "MissingIcon" && console.error(g); } - return f; + return d; }, []); - return new Promise(function(f, p) { + return new Promise(function(d, p) { Promise.all(u).then(function(m) { uz(m, function() { - r("active"), r("complete"), o("pending"), typeof t == "function" && t(), c(), f(); + r("active"), r("complete"), o("pending"), typeof t == "function" && t(), c(), d(); }); }).catch(function(m) { c(), p(m); @@ -21647,7 +21647,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Mre(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - fz(e).then(function(n) { + dz(e).then(function(n) { n && uz([n], t); }); } @@ -21660,7 +21660,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } var Pre = function(t) { - var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, o = r === void 0 ? Mi : r, i = n.symbol, a = i === void 0 ? !1 : i, s = n.mask, c = s === void 0 ? null : s, u = n.maskId, f = u === void 0 ? null : u, p = n.classes, m = p === void 0 ? [] : p, g = n.attributes, y = g === void 0 ? {} : g, b = n.styles, v = b === void 0 ? {} : b; + var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, o = r === void 0 ? Mi : r, i = n.symbol, a = i === void 0 ? !1 : i, s = n.mask, c = s === void 0 ? null : s, u = n.maskId, d = u === void 0 ? null : u, p = n.classes, m = p === void 0 ? [] : p, g = n.attributes, y = g === void 0 ? {} : g, b = n.styles, v = b === void 0 ? {} : b; if (t) { var x = t.prefix, E = t.iconName, _ = t.icon; return Ob(Te({ @@ -21683,7 +21683,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho iconName: E, transform: Te(Te({}, Mi), o), symbol: a, - maskId: f, + maskId: d, extra: { attributes: y, styles: v, @@ -21711,7 +21711,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } : i; return nI(o, a); }, t.generateSvgReplacementMutation = function(n, r) { - var o = r.iconName, i = r.prefix, a = r.transform, s = r.symbol, c = r.mask, u = r.maskId, f = r.extra; + var o = r.iconName, i = r.prefix, a = r.transform, s = r.symbol, c = r.mask, u = r.maskId, d = r.extra; return new Promise(function(p, m) { Promise.all([LE(o, i), c.iconName ? LE(c.iconName, c.prefix) : Promise.resolve({ found: !1, @@ -21730,7 +21730,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: a, symbol: s, maskId: u, - extra: f, + extra: d, watchable: !0 })]); }).catch(m); @@ -21808,7 +21808,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho mixout: function() { return { text: function(n) { - var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = r.transform, i = o === void 0 ? Mi : o, a = r.classes, s = a === void 0 ? [] : a, c = r.attributes, u = c === void 0 ? {} : c, f = r.styles, p = f === void 0 ? {} : f; + var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = r.transform, i = o === void 0 ? Mi : o, a = r.classes, s = a === void 0 ? [] : a, c = r.attributes, u = c === void 0 ? {} : c, d = r.styles, p = d === void 0 ? {} : d; return Ob({ type: "text", content: n @@ -21874,13 +21874,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return new Promise(function(r, o) { if (e.getAttribute(n) !== null) return r(); - var i = jd(e.children), a = i.filter(function(A) { + var i = Df(e.children), a = i.filter(function(A) { return A.getAttribute(ME) === t; - })[0], s = ol.getComputedStyle(e, t), c = s.getPropertyValue("font-family"), u = c.match(One), f = s.getPropertyValue("font-weight"), p = s.getPropertyValue("content"); + })[0], s = ol.getComputedStyle(e, t), c = s.getPropertyValue("font-family"), u = c.match(One), d = s.getPropertyValue("font-weight"), p = s.getPropertyValue("content"); if (a && !u) return e.removeChild(a), r(); if (u && p !== "none" && p !== "") { - var m = s.getPropertyValue("content"), g = Bre(c, f), y = Lre(m), b = u[0].startsWith("FontAwesome"), v = zre(s), x = qk(g, y), E = x; + var m = s.getPropertyValue("content"), g = Bre(c, d), y = Lre(m), b = u[0].startsWith("FontAwesome"), v = zre(s), x = qk(g, y), E = x; if (b) { var _ = Zne(y); _.iconName && _.prefix && (x = _.iconName, g = _.prefix); @@ -21965,7 +21965,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var s = Ov(a.cssRules), c; try { for (s.s(); !(c = s.n()).done; ) { - var u = c.value, f = qre(u.selectorText), p = Ov(f), m; + var u = c.value, d = qre(u.selectorText), p = Ov(d), m; try { for (p.s(); !(m = p.n()).done; ) { var g = m.value; @@ -22000,8 +22000,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } } return new Promise(function(b, v) { - var x = jd(n).filter(Vre).map(Ure), E = Gk.begin("searchPseudoElements"); - dz(), Promise.all(x).then(function() { + var x = Df(n).filter(Vre).map(Ure), E = Gk.begin("searchPseudoElements"); + fz(), Promise.all(x).then(function() { E(), BE(), b(); }).catch(function() { E(), BE(), v(); @@ -22028,7 +22028,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return { dom: { unwatch: function() { - dz(), sI = !0; + fz(), sI = !0; } } }; @@ -22113,8 +22113,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a t.generateAbstractTransformGrouping = function(n) { var r = n.main, o = n.transform, i = n.containerWidth, a = n.iconWidth, s = { transform: "translate(".concat(i / 2, " 256)") - }, c = "translate(".concat(o.x * 32, ", ").concat(o.y * 32, ") "), u = "scale(".concat(o.size / 16 * (o.flipX ? -1 : 1), ", ").concat(o.size / 16 * (o.flipY ? -1 : 1), ") "), f = "rotate(".concat(o.rotate, " 0 0)"), p = { - transform: "".concat(c, " ").concat(u, " ").concat(f) + }, c = "translate(".concat(o.x * 32, ", ").concat(o.y * 32, ") "), u = "scale(".concat(o.size / 16 * (o.flipX ? -1 : 1), ", ").concat(o.size / 16 * (o.flipY ? -1 : 1), ") "), d = "rotate(".concat(o.rotate, " 0 0)"), p = { + transform: "".concat(c, " ").concat(u, " ").concat(d) }, m = { transform: "translate(".concat(a / 2 * -1, " -256)") }, g = { @@ -22163,7 +22163,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }, provides: function(t) { t.generateAbstractMask = function(n) { - var r = n.children, o = n.attributes, i = n.main, a = n.mask, s = n.maskId, c = n.transform, u = i.width, f = i.icon, p = a.width, m = a.icon, g = Bne({ + var r = n.children, o = n.attributes, i = n.main, a = n.mask, s = n.maskId, c = n.transform, u = i.width, d = i.icon, p = a.width, m = a.icon, g = Bne({ transform: c, containerWidth: p, iconWidth: u @@ -22172,14 +22172,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a attributes: Te(Te({}, NS), {}, { fill: "white" }) - }, b = f.children ? { - children: f.children.map(cI) + }, b = d.children ? { + children: d.children.map(cI) } : {}, v = { tag: "g", attributes: Te({}, g.inner), children: [cI(Te({ - tag: f.tag, - attributes: Te(Te({}, f.attributes), g.path) + tag: d.tag, + attributes: Te(Te({}, d.attributes), g.path) }, b))] }, x = { tag: "g", @@ -22302,7 +22302,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a mixoutsTo: ho }); ho.noAuto; - var pd = ho.config; + var hf = ho.config; ho.library; ho.dom; var hz = ho.parse; @@ -22335,8 +22335,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a if (s > 0) { const c = a.slice(0, s).trim(), u = a.slice(s + 1).trim(); if (c && u) { - const f = mz(c); - t[f.startsWith("webkit") ? noe(f) : f] = u; + const d = mz(c); + t[d.startsWith("webkit") ? noe(d) : d] = u; } } } @@ -22351,24 +22351,24 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function gz(e, t, n = {}) { if (typeof t == "string") return t; - const r = (t.children || []).map((f) => gz(e, f)), o = t.attributes || {}, i = {}; - for (const [f, p] of Object.entries(o)) + const r = (t.children || []).map((d) => gz(e, d)), o = t.attributes || {}, i = {}; + for (const [d, p] of Object.entries(o)) switch (!0) { - case f === "class": { + case d === "class": { i.className = p; break; } - case f === "style": { + case d === "style": { i.style = ooe(String(p)); break; } - case f.startsWith("aria-"): - case f.startsWith("data-"): { - i[f.toLowerCase()] = p; + case d.startsWith("aria-"): + case d.startsWith("data-"): { + i[d.toLowerCase()] = p; break; } default: - i[mz(f)] = p; + i[mz(d)] = p; } const { style: a, @@ -22416,7 +22416,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a // @ts-expect-error TS2872 - Expression is always truthy - This is true when v7 of SVGCore is used, but not when v6 is used. // This is the point of this check - if the property exists on config, we have v7, otherwise we have v6. // TS is checking this against the dev dependencies which uses v7, so it reports a false error here. - "searchPseudoElementsFullScan" in pd ? "7.0.0" : "6.0.0" + "searchPseudoElementsFullScan" in hf ? "7.0.0" : "6.0.0" ), loe = Number.parseInt(soe) >= 7, Mp = "fa", Ta = { beat: "fa-beat", fade: "fa-fade", @@ -22434,7 +22434,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a 90: "fa-rotate-90", 180: "fa-rotate-180", 270: "fa-rotate-270" - }, doe = { + }, foe = { "2xs": "fa-2xs", xs: "fa-xs", sm: "fa-sm", @@ -22463,8 +22463,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a swapOpacity: "fa-swap-opacity", widthAuto: "fa-width-auto" }; - function foe(e) { - const t = pd.cssPrefix || pd.familyPrefix || Mp; + function doe(e) { + const t = hf.cssPrefix || hf.familyPrefix || Mp; return t === Mp ? e : e.replace( new RegExp(String.raw`(?<=^|\s)${Mp}-`, "g"), `${t}-` @@ -22481,7 +22481,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a spinPulse: s, spinReverse: c, pulse: u, - fixedWidth: f, + fixedWidth: d, inverse: p, border: m, flip: g, @@ -22493,21 +22493,21 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a widthAuto: _, className: C } = e, k = []; - return C && k.push(...C.split(" ")), t && k.push(Ta.beat), n && k.push(Ta.fade), r && k.push(Ta.beatFade), o && k.push(Ta.bounce), i && k.push(Ta.shake), a && k.push(Ta.spin), c && k.push(Ta.spinReverse), s && k.push(Ta.spinPulse), u && k.push(Ta.pulse), f && k.push(Aa.fixedWidth), p && k.push(Aa.inverse), m && k.push(Aa.border), g === !0 && k.push(Aa.flip), (g === "horizontal" || g === "both") && k.push(Aa.flipHorizontal), (g === "vertical" || g === "both") && k.push(Aa.flipVertical), y != null && k.push(doe[y]), b != null && b !== 0 && k.push(uoe[b]), v != null && k.push(coe[v]), x && k.push(Aa.swapOpacity), loe ? (E && k.push(Aa.rotateBy), _ && k.push(Aa.widthAuto), (pd.cssPrefix || pd.familyPrefix || Mp) === Mp ? k : ( + return C && k.push(...C.split(" ")), t && k.push(Ta.beat), n && k.push(Ta.fade), r && k.push(Ta.beatFade), o && k.push(Ta.bounce), i && k.push(Ta.shake), a && k.push(Ta.spin), c && k.push(Ta.spinReverse), s && k.push(Ta.spinPulse), u && k.push(Ta.pulse), d && k.push(Aa.fixedWidth), p && k.push(Aa.inverse), m && k.push(Aa.border), g === !0 && k.push(Aa.flip), (g === "horizontal" || g === "both") && k.push(Aa.flipHorizontal), (g === "vertical" || g === "both") && k.push(Aa.flipVertical), y != null && k.push(foe[y]), b != null && b !== 0 && k.push(uoe[b]), v != null && k.push(coe[v]), x && k.push(Aa.swapOpacity), loe ? (E && k.push(Aa.rotateBy), _ && k.push(Aa.widthAuto), (hf.cssPrefix || hf.familyPrefix || Mp) === Mp ? k : ( // TODO: see if we can achieve custom prefix support without iterating // eslint-disable-next-line unicorn/no-array-callback-reference - k.map(foe) + k.map(doe) )) : k; } var hoe = (e) => typeof e == "object" && "icon" in e && !!e.icon; - function dI(e) { + function fI(e) { if (e) return hoe(e) ? e : hz.icon(e); } function moe(e) { return Object.keys(e); } - var fI = new aoe("FontAwesomeIcon"), yz = { + var dI = new aoe("FontAwesomeIcon"), yz = { border: !1, className: "", mask: void 0, @@ -22545,20 +22545,20 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a titleId: s, maskId: c, transform: u - } = n, f = uI(c, !!o), p = uI(s, !!a), m = dI(r); + } = n, d = uI(c, !!o), p = uI(s, !!a), m = fI(r); if (!m) - return fI.error("Icon lookup is undefined", r), null; - const g = poe(n), y = typeof u == "string" ? hz.transform(u) : u, b = dI(o), v = eoe(m, { + return dI.error("Icon lookup is undefined", r), null; + const g = poe(n), y = typeof u == "string" ? hz.transform(u) : u, b = fI(o), v = eoe(m, { ...g.length > 0 && { classes: g }, ...y && { transform: y }, ...b && { mask: b }, symbol: i, title: a, titleId: p, - maskId: f + maskId: d }); if (!v) - return fI.error("Could not find icon", m), null; + return dI.error("Could not find icon", m), null; const { abstract: x } = v, E = { ref: t }; for (const _ of moe(n)) goe.has(_) || (E[_] = n[_]); @@ -22638,7 +22638,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a iconName: "bars", icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"] }; - pd.autoAddCss = !1; + hf.autoAddCss = !1; const tr = (e) => { const { style: t, ...n } = e; return /* @__PURE__ */ S.jsx("span", { style: t, children: /* @__PURE__ */ S.jsx(vz, { ...n }) }); @@ -22671,15 +22671,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a const u = T.useMemo( () => ({ keys: i, - isKeyPressed: (f) => i.has(f), - areKeysPressed: (...f) => f.every((p) => i.has(p)), - isAnyKeyPressed: (...f) => f.some((p) => i.has(p)) + isKeyPressed: (d) => i.has(d), + areKeysPressed: (...d) => d.every((p) => i.has(p)), + isAnyKeyPressed: (...d) => d.some((p) => i.has(p)) }), [i] ); return T.useEffect(() => { - const f = o ?? window; - if (!f) return; + const d = o ?? window; + if (!d) return; const p = (b) => { const v = b.key; s.has(v) || (t && b.preventDefault(), c.current.has(v) || (r && console.log(`[KeyPress] Key down: ${v}`), a((x) => { @@ -22697,8 +22697,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }, y = () => { document.hidden && c.current.size > 0 && (r && console.log("[KeyPress] Tab hidden - clearing all keys"), a(/* @__PURE__ */ new Set())); }; - return f.addEventListener("keydown", p), f.addEventListener("keyup", m), f.addEventListener("blur", g), document.addEventListener("visibilitychange", y), () => { - f.removeEventListener("keydown", p), f.removeEventListener("keyup", m), f.removeEventListener("blur", g), document.removeEventListener("visibilitychange", y); + return d.addEventListener("keydown", p), d.addEventListener("keyup", m), d.addEventListener("blur", g), document.addEventListener("visibilitychange", y), () => { + d.removeEventListener("keydown", p), d.removeEventListener("keyup", m), d.removeEventListener("blur", g), document.removeEventListener("visibilitychange", y); }; }, [t, s, r, o]), /* @__PURE__ */ S.jsx(wz.Provider, { value: u, children: e }); }, Sz = T.createContext({ @@ -22726,11 +22726,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a ).join(", ")}]` ); i(u); - const f = { + const d = { colorTheme: u }; try { - localStorage.setItem("theme", JSON.stringify(f)); + localStorage.setItem("theme", JSON.stringify(d)); } catch (p) { console.warn("Failed to save theme to localStorage:", p); } @@ -22754,8 +22754,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a try { const u = localStorage.getItem("theme"); if (!u) return; - const f = JSON.parse(u); - f.colorTheme && r.has(f.colorTheme) && i(f.colorTheme); + const d = JSON.parse(u); + d.colorTheme && r.has(d.colorTheme) && i(d.colorTheme); } catch (u) { console.warn("Failed to load theme from localStorage:", u); } @@ -22801,7 +22801,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a children: e.text } ); - return e.close !== !1 ? /* @__PURE__ */ S.jsx(fL, { asChild: !0, children: r }, t) : /* @__PURE__ */ S.jsx(T.Fragment, { children: r }, t); + return e.close !== !1 ? /* @__PURE__ */ S.jsx(dL, { asChild: !0, children: r }, t) : /* @__PURE__ */ S.jsx(T.Fragment, { children: r }, t); }); Ez.displayName = "DialogButton"; const Ji = T.memo( @@ -22816,13 +22816,13 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a open: s, setOpen: c, modal: u = !0, - dialogClassName: f = "default-dialog-content", + dialogClassName: d = "default-dialog-content", ariaLabel: p, ariaDescription: m }) => { const y = Vt().local_state((E) => E.funcnodescontainerRef), b = T.useMemo( - () => `dialog-content funcnodescontainer ${f}`, - [f] + () => `dialog-content funcnodescontainer ${d}`, + [d] ), v = T.useCallback( (E) => { try { @@ -22879,7 +22879,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a children: x } ), - o && /* @__PURE__ */ S.jsx(fL, { asChild: !0, children: /* @__PURE__ */ S.jsx( + o && /* @__PURE__ */ S.jsx(dL, { asChild: !0, children: /* @__PURE__ */ S.jsx( "button", { className: "dialog-close-button", @@ -22896,7 +22896,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } ); Ji.displayName = "CustomDialog"; - const Koe = ["top", "right", "bottom", "left"], sl = Math.min, ro = Math.max, d0 = Math.round, oy = Math.floor, Hi = (e) => ({ + const Koe = ["top", "right", "bottom", "left"], sl = Math.min, ro = Math.max, f0 = Math.round, oy = Math.floor, Hi = (e) => ({ x: e, y: e }), Yoe = { @@ -22917,7 +22917,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function Ya(e) { return e.split("-")[0]; } - function Dd(e) { + function Ff(e) { return e.split("-")[1]; } function Zk(e) { @@ -22935,12 +22935,12 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } function Qoe(e, t, n) { n === void 0 && (n = !1); - const r = Dd(e), o = Jk(e), i = Qk(o); + const r = Ff(e), o = Jk(e), i = Qk(o); let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top"; - return t.reference[i] > t.floating[i] && (a = f0(a)), [a, f0(a)]; + return t.reference[i] > t.floating[i] && (a = d0(a)), [a, d0(a)]; } function Joe(e) { - const t = f0(e); + const t = d0(e); return [HE(e), t, HE(t)]; } function HE(e) { @@ -22960,11 +22960,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } } function rie(e, t, n, r) { - const o = Dd(e); + const o = Ff(e); let i = nie(Ya(e), n === "start", r); return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(HE)))), i; } - function f0(e) { + function d0(e) { return e.replace(/left|right|bottom|top/g, (t) => Yoe[t]); } function oie(e) { @@ -23007,18 +23007,18 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a reference: r, floating: o } = e; - const i = Ni(t), a = Jk(t), s = Qk(a), c = Ya(t), u = i === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2; + const i = Ni(t), a = Jk(t), s = Qk(a), c = Ya(t), u = i === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2; let g; switch (c) { case "top": g = { - x: f, + x: d, y: r.y - o.height }; break; case "bottom": g = { - x: f, + x: d, y: r.y + r.height }; break; @@ -23040,7 +23040,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a y: r.y }; } - switch (Dd(t)) { + switch (Ff(t)) { case "start": g[a] -= m * (n && u ? -1 : 1); break; @@ -23062,7 +23062,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a floating: t, strategy: o }), { - x: f, + x: d, y: p } = mI(u, r, c), m = r, g = {}, y = 0; for (let b = 0; b < s.length; b++) { @@ -23075,7 +23075,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a data: C, reset: k } = await x({ - x: f, + x: d, y: p, initialPlacement: r, placement: m, @@ -23088,7 +23088,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a floating: t } }); - f = E ?? f, p = _ ?? p, g = { + d = E ?? d, p = _ ?? p, g = { ...g, [v]: { ...g[v], @@ -23099,12 +23099,12 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a floating: t, strategy: o }) : k.rects), { - x: f, + x: d, y: p } = mI(u, m, c)), b = -1); } return { - x: f, + x: d, y: p, placement: m, strategy: o, @@ -23123,14 +23123,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a strategy: c } = e, { boundary: u = "clippingAncestors", - rootBoundary: f = "viewport", + rootBoundary: d = "viewport", elementContext: p = "floating", altBoundary: m = !1, padding: g = 0 } = Ka(t, e), y = Cz(g), v = s[m ? p === "floating" ? "reference" : "floating" : p], x = p0(await i.getClippingRect({ element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)), boundary: u, - rootBoundary: f, + rootBoundary: d, strategy: c })), E = p === "floating" ? { x: r, @@ -23170,17 +23170,17 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a middlewareData: c } = t, { element: u, - padding: f = 0 + padding: d = 0 } = Ka(e, t) || {}; if (u == null) return {}; - const p = Cz(f), m = { + const p = Cz(d), m = { x: n, y: r }, g = Jk(o), y = Qk(g), b = await a.getDimensions(u), v = g === "y", x = v ? "top" : "left", E = v ? "bottom" : "right", _ = v ? "clientHeight" : "clientWidth", C = i.reference[y] + i.reference[g] - m[g] - i.floating[y], k = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u)); let O = A ? A[_] : 0; (!O || !await (a.isElement == null ? void 0 : a.isElement(A))) && (O = s.floating[_] || i.floating[y]); - const P = C / 2 - k / 2, I = O / 2 - b[y] / 2 - 1, $ = sl(p[x], I), L = sl(p[E], I), N = $, U = O - b[y] - L, j = O / 2 - b[y] / 2 + P, V = VE(N, j, U), F = !c.arrow && Dd(o) != null && j !== V && i.reference[y] / 2 - (j < N ? $ : L) - b[y] / 2 < 0, K = F ? j < N ? j - N : j - U : 0; + const P = C / 2 - k / 2, I = O / 2 - b[y] / 2 - 1, $ = sl(p[x], I), L = sl(p[E], I), N = $, U = O - b[y] - L, j = O / 2 - b[y] / 2 + P, V = VE(N, j, U), F = !c.arrow && Ff(o) != null && j !== V && i.reference[y] / 2 - (j < N ? $ : L) - b[y] / 2 < 0, K = F ? j < N ? j - N : j - U : 0; return { [g]: m[g] + K, data: { @@ -23207,7 +23207,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a platform: c, elements: u } = t, { - mainAxis: f = !0, + mainAxis: d = !0, crossAxis: p = !0, fallbackPlacements: m, fallbackStrategy: g = "bestFit", @@ -23217,11 +23217,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } = Ka(e, t); if ((n = i.arrow) != null && n.alignmentOffset) return {}; - const x = Ya(o), E = Ni(s), _ = Ya(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), k = m || (_ || !b ? [f0(s)] : Joe(s)), A = y !== "none"; + const x = Ya(o), E = Ni(s), _ = Ya(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), k = m || (_ || !b ? [d0(s)] : Joe(s)), A = y !== "none"; !m && A && k.push(...rie(s, b, y, C)); const O = [s, ...k], P = await eh(t, v), I = []; let $ = ((r = i.flip) == null ? void 0 : r.overflows) || []; - if (f && I.push(P[x]), p) { + if (d && I.push(P[x]), p) { const j = Qoe(o, a, C); I.push(P[j[0]], P[j[1]]); } @@ -23333,7 +23333,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a placement: n, platform: r, elements: o - } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Ya(n), s = Dd(n), c = Ni(n) === "y", u = kz.has(a) ? -1 : 1, f = i && c ? -1 : 1, p = Ka(t, e); + } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Ya(n), s = Ff(n), c = Ni(n) === "y", u = kz.has(a) ? -1 : 1, d = i && c ? -1 : 1, p = Ka(t, e); let { mainAxis: m, crossAxis: g, @@ -23348,11 +23348,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a alignmentAxis: p.alignmentAxis }; return s && typeof y == "number" && (g = s === "end" ? y * -1 : y), c ? { - x: g * f, + x: g * d, y: m * u } : { x: m * u, - y: g * f + y: g * d }; } const uie = function(e) { @@ -23377,7 +23377,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; } }; - }, die = function(e) { + }, fie = function(e) { return e === void 0 && (e = {}), { name: "shift", options: e, @@ -23405,14 +23405,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } = Ka(e, t), u = { x: n, y: r - }, f = await eh(t, c), p = Ni(Ya(o)), m = Zk(p); + }, d = await eh(t, c), p = Ni(Ya(o)), m = Zk(p); let g = u[m], y = u[p]; if (i) { - const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", E = g + f[v], _ = g - f[x]; + const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", E = g + d[v], _ = g - d[x]; g = VE(E, g, _); } if (a) { - const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", E = y + f[v], _ = y - f[x]; + const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", E = y + d[v], _ = y - d[x]; y = VE(E, y, _); } const b = s.fn({ @@ -23433,7 +23433,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; } }; - }, fie = function(e) { + }, die = function(e) { return e === void 0 && (e = {}), { options: e, fn(t) { @@ -23447,11 +23447,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a offset: s = 0, mainAxis: c = !0, crossAxis: u = !0 - } = Ka(e, t), f = { + } = Ka(e, t), d = { x: n, y: r }, p = Ni(o), m = Zk(p); - let g = f[m], y = f[p]; + let g = d[m], y = d[p]; const b = Ka(s, t), v = typeof b == "number" ? { mainAxis: b, crossAxis: 0 @@ -23490,17 +23490,17 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a apply: c = () => { }, ...u - } = Ka(e, t), f = await eh(t, u), p = Ya(o), m = Dd(o), g = Ni(o) === "y", { + } = Ka(e, t), d = await eh(t, u), p = Ya(o), m = Ff(o), g = Ni(o) === "y", { width: y, height: b } = i.floating; let v, x; p === "top" || p === "bottom" ? (v = p, x = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = p, v = m === "end" ? "top" : "bottom"); - const E = b - f.top - f.bottom, _ = y - f.left - f.right, C = sl(b - f[v], E), k = sl(y - f[x], _), A = !t.middlewareData.shift; + const E = b - d.top - d.bottom, _ = y - d.left - d.right, C = sl(b - d[v], E), k = sl(y - d[x], _), A = !t.middlewareData.shift; let O = C, P = k; if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = _), (r = t.middlewareData.shift) != null && r.enabled.y && (O = E), A && !m) { - const $ = ro(f.left, 0), L = ro(f.right, 0), N = ro(f.top, 0), U = ro(f.bottom, 0); - g ? P = y - 2 * ($ !== 0 || L !== 0 ? $ + L : ro(f.left, f.right)) : O = b - 2 * (N !== 0 || U !== 0 ? N + U : ro(f.top, f.bottom)); + const $ = ro(d.left, 0), L = ro(d.right, 0), N = ro(d.top, 0), U = ro(d.bottom, 0); + g ? P = y - 2 * ($ !== 0 || L !== 0 ? $ + L : ro(d.left, d.right)) : O = b - 2 * (N !== 0 || U !== 0 ? N + U : ro(d.top, d.bottom)); } await c({ ...t, @@ -23519,7 +23519,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function Nb() { return typeof window < "u"; } - function Fd(e) { + function Lf(e) { return Tz(e) ? (e.nodeName || "").toLowerCase() : "#document"; } function co(e) { @@ -23554,7 +23554,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } const mie = /* @__PURE__ */ new Set(["table", "td", "th"]); function gie(e) { - return mie.has(Fd(e)); + return mie.has(Lf(e)); } const yie = [":popover-open", ":modal"]; function Pb(e) { @@ -23573,7 +23573,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } function wie(e) { let t = ll(e); - for (; Wi(t) && !hd(t); ) { + for (; Wi(t) && !mf(t); ) { if (eT(t)) return t; if (Pb(t)) @@ -23586,8 +23586,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none"); } const Sie = /* @__PURE__ */ new Set(["html", "body", "#document"]); - function hd(e) { - return Sie.has(Fd(e)); + function mf(e) { + return Sie.has(Lf(e)); } function ri(e) { return co(e).getComputedStyle(e); @@ -23602,7 +23602,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; } function ll(e) { - if (Fd(e) === "html") + if (Lf(e) === "html") return e; const t = ( // Step into the shadow DOM of the parent of a slotted node. @@ -23615,7 +23615,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } function Az(e) { const t = ll(e); - return hd(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Wi(t) && qh(t) ? t : Az(t); + return mf(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Wi(t) && qh(t) ? t : Az(t); } function th(e, t, n) { var r; @@ -23633,7 +23633,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function Rz(e) { const t = ri(e); let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0; - const o = Wi(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = d0(n) !== i || d0(r) !== a; + const o = Wi(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = f0(n) !== i || f0(r) !== a; return s && (n = i, r = a), { width: n, height: r, @@ -23643,7 +23643,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function nT(e) { return ni(e) ? e : e.contextElement; } - function nd(e) { + function nf(e) { const t = nT(e); if (!Wi(t)) return Hi(1); @@ -23652,7 +23652,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a height: o, $: i } = Rz(t); - let a = (i ? d0(n.width) : n.width) / r, s = (i ? d0(n.height) : n.height) / o; + let a = (i ? f0(n.width) : n.width) / r, s = (i ? f0(n.height) : n.height) / o; return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), { x: a, y: s @@ -23669,23 +23669,23 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function Eie(e, t, n) { return t === void 0 && (t = !1), !n || t && n !== co(e) ? !1 : t; } - function dc(e, t, n, r) { + function fc(e, t, n, r) { t === void 0 && (t = !1), n === void 0 && (n = !1); const o = e.getBoundingClientRect(), i = nT(e); let a = Hi(1); - t && (r ? ni(r) && (a = nd(r)) : a = nd(e)); + t && (r ? ni(r) && (a = nf(r)) : a = nf(e)); const s = Eie(i, n, r) ? Oz(i) : Hi(0); - let c = (o.left + s.x) / a.x, u = (o.top + s.y) / a.y, f = o.width / a.x, p = o.height / a.y; + let c = (o.left + s.x) / a.x, u = (o.top + s.y) / a.y, d = o.width / a.x, p = o.height / a.y; if (i) { const m = co(i), g = r && ni(r) ? co(r) : r; let y = m, b = qE(y); for (; b && r && g !== y; ) { - const v = nd(b), x = b.getBoundingClientRect(), E = ri(b), _ = x.left + (b.clientLeft + parseFloat(E.paddingLeft)) * v.x, C = x.top + (b.clientTop + parseFloat(E.paddingTop)) * v.y; - c *= v.x, u *= v.y, f *= v.x, p *= v.y, c += _, u += C, y = co(b), b = qE(y); + const v = nf(b), x = b.getBoundingClientRect(), E = ri(b), _ = x.left + (b.clientLeft + parseFloat(E.paddingLeft)) * v.x, C = x.top + (b.clientTop + parseFloat(E.paddingTop)) * v.y; + c *= v.x, u *= v.y, d *= v.x, p *= v.y, c += _, u += C, y = co(b), b = qE(y); } } return p0({ - width: f, + width: d, height: p, x: c, y: u @@ -23693,7 +23693,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } function rT(e, t) { const n = Ib(e).scrollLeft; - return t ? t.left + n : dc(ea(e)).left + n; + return t ? t.left + n : fc(ea(e)).left + n; } function Mz(e, t, n) { n === void 0 && (n = !1); @@ -23720,17 +23720,17 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a scrollLeft: 0, scrollTop: 0 }, u = Hi(1); - const f = Hi(0), p = Wi(r); - if ((p || !p && !i) && ((Fd(r) !== "body" || qh(a)) && (c = Ib(r)), Wi(r))) { - const g = dc(r); - u = nd(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop; + const d = Hi(0), p = Wi(r); + if ((p || !p && !i) && ((Lf(r) !== "body" || qh(a)) && (c = Ib(r)), Wi(r))) { + const g = fc(r); + u = nf(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop; } const m = a && !p && !i ? Mz(a, c, !0) : Hi(0); return { width: n.width * u.x, height: n.height * u.y, - x: n.x * u.x - c.scrollLeft * u.x + f.x + m.x, - y: n.y * u.y - c.scrollTop * u.y + f.y + m.y + x: n.x * u.x - c.scrollLeft * u.x + d.x + m.x, + y: n.y * u.y - c.scrollTop * u.y + d.y + m.y }; } function kie(e) { @@ -23764,7 +23764,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } const Rie = /* @__PURE__ */ new Set(["absolute", "fixed"]); function Oie(e, t) { - const n = dc(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Wi(e) ? nd(e) : Hi(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = o * i.x, u = r * i.y; + const n = fc(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Wi(e) ? nf(e) : Hi(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = o * i.x, u = r * i.y; return { width: a, height: s, @@ -23793,18 +23793,18 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } function Nz(e, t) { const n = ll(e); - return n === t || !ni(n) || hd(n) ? !1 : ri(n).position === "fixed" || Nz(n, t); + return n === t || !ni(n) || mf(n) ? !1 : ri(n).position === "fixed" || Nz(n, t); } function Mie(e, t) { const n = t.get(e); if (n) return n; - let r = th(e, [], !1).filter((s) => ni(s) && Fd(s) !== "body"), o = null; + let r = th(e, [], !1).filter((s) => ni(s) && Lf(s) !== "body"), o = null; const i = ri(e).position === "fixed"; let a = i ? ll(e) : e; - for (; ni(a) && !hd(a); ) { + for (; ni(a) && !mf(a); ) { const s = ri(a), c = eT(a); - !c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && !!o && Rie.has(o.position) || qh(a) && !c && Nz(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = ll(a); + !c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && !!o && Rie.has(o.position) || qh(a) && !c && Nz(e, a)) ? r = r.filter((d) => d !== a) : o = s, a = ll(a); } return t.set(e, r), r; } @@ -23815,8 +23815,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a rootBoundary: r, strategy: o } = e; - const a = [...n === "clippingAncestors" ? Pb(t) ? [] : Mie(t, this._c) : [].concat(n), r], s = a[0], c = a.reduce((u, f) => { - const p = bI(t, f, o); + const a = [...n === "clippingAncestors" ? Pb(t) ? [] : Mie(t, this._c) : [].concat(n), r], s = a[0], c = a.reduce((u, d) => { + const p = bI(t, d, o); return u.top = ro(p.top, u.top), u.right = sl(p.right, u.right), u.bottom = sl(p.bottom, u.bottom), u.left = ro(p.left, u.left), u; }, bI(t, s, o)); return { @@ -23837,7 +23837,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; } function Iie(e, t, n) { - const r = Wi(t), o = ea(t), i = n === "fixed", a = dc(e, !0, i, t); + const r = Wi(t), o = ea(t), i = n === "fixed", a = fc(e, !0, i, t); let s = { scrollLeft: 0, scrollTop: 0 @@ -23847,12 +23847,12 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a c.x = rT(o); } if (r || !r && !i) - if ((Fd(t) !== "body" || qh(o)) && (s = Ib(t)), r) { - const g = dc(t, !0, i, t); + if ((Lf(t) !== "body" || qh(o)) && (s = Ib(t)), r) { + const g = fc(t, !0, i, t); c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop; } else o && u(); i && !r && o && u(); - const f = o && !r && !i ? Mz(o, s) : Hi(0), p = a.left + s.scrollLeft - c.x - f.x, m = a.top + s.scrollTop - c.y - f.y; + const d = o && !r && !i ? Mz(o, s) : Hi(0), p = a.left + s.scrollLeft - c.x - d.x, m = a.top + s.scrollTop - c.y - d.y; return { x: p, y: m, @@ -23877,7 +23877,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return n; if (!Wi(e)) { let o = ll(e); - for (; o && !hd(o); ) { + for (; o && !mf(o); ) { if (ni(o) && !PS(o)) return o; o = ll(o); @@ -23887,7 +23887,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a let r = xI(e, t); for (; r && gie(r) && PS(r); ) r = xI(r, t); - return r && hd(r) && PS(r) && !eT(r) ? n : r || wie(e) || n; + return r && mf(r) && PS(r) && !eT(r) ? n : r || wie(e) || n; } const $ie = async function(e) { const t = this.getOffsetParent || Pz, n = this.getDimensions, r = await n(e.floating); @@ -23912,7 +23912,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a getElementRects: $ie, getClientRects: kie, getDimensions: Pie, - getScale: nd, + getScale: nf, isElement: ni, isRTL: jie }; @@ -23929,14 +23929,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a function a(s, c) { s === void 0 && (s = !1), c === void 0 && (c = 1), i(); const u = e.getBoundingClientRect(), { - left: f, + left: d, top: p, width: m, height: g } = u; if (s || t(), !m || !g) return; - const y = oy(p), b = oy(o.clientWidth - (f + m)), v = oy(o.clientHeight - (p + g)), x = oy(f), _ = { + const y = oy(p), b = oy(o.clientWidth - (d + m)), v = oy(o.clientHeight - (p + g)), x = oy(d), _ = { rootMargin: -y + "px " + -b + "px " + -v + "px " + -x + "px", threshold: ro(0, sl(1, c)) || 1 }; @@ -23973,8 +23973,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a elementResize: a = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 - } = r, u = nT(e), f = o || i ? [...u ? th(u) : [], ...th(t)] : []; - f.forEach((x) => { + } = r, u = nT(e), d = o || i ? [...u ? th(u) : [], ...th(t)] : []; + d.forEach((x) => { o && x.addEventListener("scroll", n, { passive: !0 }), i && x.addEventListener("resize", n); @@ -23988,20 +23988,20 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a (_ = g) == null || _.observe(t); })), n(); }), u && !c && g.observe(u), g.observe(t)); - let y, b = c ? dc(e) : null; + let y, b = c ? fc(e) : null; c && v(); function v() { - const x = dc(e); + const x = fc(e); b && !Iz(b, x) && n(), b = x, y = requestAnimationFrame(v); } return n(), () => { var x; - f.forEach((E) => { + d.forEach((E) => { o && E.removeEventListener("scroll", n), i && E.removeEventListener("resize", n); }), p?.(), (x = g) == null || x.disconnect(), g = null, c && cancelAnimationFrame(y); }; } - const Lie = uie, zie = die, Bie = sie, Uie = pie, Vie = lie, wI = aie, Hie = fie, qie = (e, t, n) => { + const Lie = uie, zie = fie, Bie = sie, Uie = pie, Vie = lie, wI = aie, Hie = die, qie = (e, t, n) => { const r = /* @__PURE__ */ new Map(), o = { platform: Die, ...n @@ -24073,7 +24073,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a transform: s = !0, whileElementsMounted: c, open: u - } = e, [f, p] = T.useState({ + } = e, [d, p] = T.useState({ x: 0, y: 0, strategy: n, @@ -24086,7 +24086,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a W !== A.current && (A.current = W, b(W)); }, []), _ = T.useCallback((W) => { W !== O.current && (O.current = W, x(W)); - }, []), C = i || y, k = a || v, A = T.useRef(null), O = T.useRef(null), P = T.useRef(f), I = c != null, $ = IS(c), L = IS(o), N = IS(u), U = T.useCallback(() => { + }, []), C = i || y, k = a || v, A = T.useRef(null), O = T.useRef(null), P = T.useRef(d), I = c != null, $ = IS(c), L = IS(o), N = IS(u), U = T.useCallback(() => { if (!A.current || !O.current) return; const W = { @@ -24140,7 +24140,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; if (!F.floating) return W; - const Y = SI(F.floating, f.x), B = SI(F.floating, f.y); + const Y = SI(F.floating, d.x), B = SI(F.floating, d.y); return s ? { ...W, transform: "translate(" + Y + "px, " + B + "px)", @@ -24152,14 +24152,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a left: Y, top: B }; - }, [n, s, F.floating, f.x, f.y]); + }, [n, s, F.floating, d.x, d.y]); return T.useMemo(() => ({ - ...f, + ...d, update: U, refs: V, elements: F, floatingStyles: K - }), [f, U, V, F, K]); + }), [d, U, V, F, K]); } const Yie = (e) => { function t(n) { @@ -24269,13 +24269,13 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: u = [], - collisionPadding: f = 0, + collisionPadding: d = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: g = "optimized", onPlaced: y, ...b - } = e, v = zz(iT, n), [x, E] = T.useState(null), _ = un(t, (ne) => E(ne)), [C, k] = T.useState(null), A = Fz(C), O = A?.width ?? 0, P = A?.height ?? 0, I = r + (i !== "center" ? "-" + i : ""), $ = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], N = L.length > 0, U = { + } = e, v = zz(iT, n), [x, E] = T.useState(null), _ = un(t, (ne) => E(ne)), [C, k] = T.useState(null), A = Fz(C), O = A?.width ?? 0, P = A?.height ?? 0, I = r + (i !== "center" ? "-" + i : ""), $ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(u) ? u : [u], N = L.length > 0, U = { padding: $, boundary: L.filter(cae), // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries @@ -24430,7 +24430,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a name: "transformOrigin", options: e, fn(t) { - const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, f] = Gz(n), p = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + s / 2, g = (o.arrow?.y ?? 0) + c / 2; + const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = Gz(n), p = { start: "0%", center: "50%", end: "100%" }[d], m = (o.arrow?.x ?? 0) + s / 2, g = (o.arrow?.y ?? 0) + c / 2; let y = "", b = ""; return u === "bottom" ? (y = a ? p : `${m}px`, b = `${-c}px`) : u === "top" ? (y = a ? p : `${m}px`, b = `${r.floating.height + c}px`) : u === "right" ? (y = `${-c}px`, b = a ? p : `${g}px`) : u === "left" && (y = `${r.floating.width + c}px`, b = a ? p : `${g}px`), { data: { x: y, y: b } }; } @@ -24441,7 +24441,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } var aT = Bz, sT = Vz, Kz = Hz, Yz = Wz, jb = "Popover", [Xz] = Qi(jb, [ $b - ]), Wh = $b(), [dae, ml] = Xz(jb), Zz = (e) => { + ]), Wh = $b(), [fae, ml] = Xz(jb), Zz = (e) => { const { __scopePopover: t, children: n, @@ -24449,14 +24449,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a defaultOpen: o, onOpenChange: i, modal: a = !1 - } = e, s = Wh(t), c = T.useRef(null), [u, f] = T.useState(!1), [p, m] = hl({ + } = e, s = Wh(t), c = T.useRef(null), [u, d] = T.useState(!1), [p, m] = hl({ prop: r, defaultProp: o ?? !1, onChange: i, caller: jb }); return /* @__PURE__ */ S.jsx(aT, { ...s, children: /* @__PURE__ */ S.jsx( - dae, + fae, { scope: t, contentId: Vi(), @@ -24465,21 +24465,21 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a onOpenChange: m, onOpenToggle: T.useCallback(() => m((g) => !g), [m]), hasCustomAnchor: u, - onCustomAnchorAdd: T.useCallback(() => f(!0), []), - onCustomAnchorRemove: T.useCallback(() => f(!1), []), + onCustomAnchorAdd: T.useCallback(() => d(!0), []), + onCustomAnchorRemove: T.useCallback(() => d(!1), []), modal: a, children: n } ) }); }; Zz.displayName = jb; - var Qz = "PopoverAnchor", fae = T.forwardRef( + var Qz = "PopoverAnchor", dae = T.forwardRef( (e, t) => { const { __scopePopover: n, ...r } = e, o = ml(Qz, n), i = Wh(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o; return T.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ S.jsx(sT, { ...i, ...r, ref: t }); } ); - fae.displayName = Qz; + dae.displayName = Qz; var Jz = "PopoverTrigger", e6 = T.forwardRef( (e, t) => { const { __scopePopover: n, ...r } = e, o = ml(Jz, n), i = Wh(n), a = un(t, o.triggerRef), s = /* @__PURE__ */ S.jsx( @@ -24506,16 +24506,16 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return /* @__PURE__ */ S.jsx(pae, { scope: t, forceMount: n, children: /* @__PURE__ */ S.jsx(ii, { present: n || i.open, children: /* @__PURE__ */ S.jsx(Sb, { asChild: !0, container: o, children: r }) }) }); }; t6.displayName = lT; - var md = "PopoverContent", n6 = T.forwardRef( + var gf = "PopoverContent", n6 = T.forwardRef( (e, t) => { - const n = hae(md, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = ml(md, e.__scopePopover); + const n = hae(gf, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = ml(gf, e.__scopePopover); return /* @__PURE__ */ S.jsx(ii, { present: r || i.open, children: i.modal ? /* @__PURE__ */ S.jsx(gae, { ...o, ref: t }) : /* @__PURE__ */ S.jsx(yae, { ...o, ref: t }) }); } ); - n6.displayName = md; - var mae = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), gae = T.forwardRef( + n6.displayName = gf; + var mae = /* @__PURE__ */ df("PopoverContent.RemoveScroll"), gae = T.forwardRef( (e, t) => { - const n = ml(md, e.__scopePopover), r = T.useRef(null), o = un(t, r), i = T.useRef(!1); + const n = ml(gf, e.__scopePopover), r = T.useRef(null), o = un(t, r), i = T.useRef(!1); return T.useEffect(() => { const a = r.current; if (a) return Pk(a); @@ -24547,7 +24547,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a } ), yae = T.forwardRef( (e, t) => { - const n = ml(md, e.__scopePopover), r = T.useRef(!1), o = T.useRef(!1); + const n = ml(gf, e.__scopePopover), r = T.useRef(!1), o = T.useRef(!1); return /* @__PURE__ */ S.jsx( r6, { @@ -24577,9 +24577,9 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: u, - onInteractOutside: f, + onInteractOutside: d, ...p - } = e, m = ml(md, n), g = Wh(n); + } = e, m = ml(gf, n), g = Wh(n); return Nk(), /* @__PURE__ */ S.jsx( wb, { @@ -24593,7 +24593,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a { asChild: !0, disableOutsidePointerEvents: a, - onInteractOutside: f, + onInteractOutside: d, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: u, @@ -24797,9 +24797,9 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] - }, d6 = {}; + }, f6 = {}; for (const e of Object.keys(nh)) - d6[nh[e]] = e; + f6[nh[e]] = e; const Pe = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, @@ -24819,11 +24819,11 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } }, La = (6 / 29) ** 3; - function rd(e) { + function rf(e) { const t = e > 31308e-7 ? 1.055 * e ** 0.4166666666666667 - 0.055 : e * 12.92; return Math.min(Math.max(0, t), 1); } - function od(e) { + function of(e) { return e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92; } for (const e of Object.keys(Pe)) { @@ -24863,13 +24863,13 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }; Pe.rgb.hsv = function(e) { let t, n, r, o, i; - const a = e[0] / 255, s = e[1] / 255, c = e[2] / 255, u = Math.max(a, s, c), f = u - Math.min(a, s, c), p = function(m) { - return (u - m) / 6 / f + 1 / 2; + const a = e[0] / 255, s = e[1] / 255, c = e[2] / 255, u = Math.max(a, s, c), d = u - Math.min(a, s, c), p = function(m) { + return (u - m) / 6 / d + 1 / 2; }; - if (f === 0) + if (d === 0) o = 0, i = 0; else { - switch (i = f / u, t = p(a), n = p(s), r = p(c), u) { + switch (i = d / u, t = p(a), n = p(s), r = p(c), u) { case a: { o = r - n; break; @@ -24898,7 +24898,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return r = 1 - 1 / 255 * Math.max(t, Math.max(n, r)), [o, i * 100, r * 100]; }; Pe.rgb.oklab = function(e) { - const t = od(e[0] / 255), n = od(e[1] / 255), r = od(e[2] / 255), o = Math.cbrt(0.4122214708 * t + 0.5363325363 * n + 0.0514459929 * r), i = Math.cbrt(0.2119034982 * t + 0.6806995451 * n + 0.1073969566 * r), a = Math.cbrt(0.0883024619 * t + 0.2817188376 * n + 0.6299787005 * r), s = 0.2104542553 * o + 0.793617785 * i - 0.0040720468 * a, c = 1.9779984951 * o - 2.428592205 * i + 0.4505937099 * a, u = 0.0259040371 * o + 0.7827717662 * i - 0.808675766 * a; + const t = of(e[0] / 255), n = of(e[1] / 255), r = of(e[2] / 255), o = Math.cbrt(0.4122214708 * t + 0.5363325363 * n + 0.0514459929 * r), i = Math.cbrt(0.2119034982 * t + 0.6806995451 * n + 0.1073969566 * r), a = Math.cbrt(0.0883024619 * t + 0.2817188376 * n + 0.6299787005 * r), s = 0.2104542553 * o + 0.793617785 * i - 0.0040720468 * a, c = 1.9779984951 * o - 2.428592205 * i + 0.4505937099 * a, u = 0.0259040371 * o + 0.7827717662 * i - 0.808675766 * a; return [s * 100, c * 100, u * 100]; }; Pe.rgb.cmyk = function(e) { @@ -24909,7 +24909,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2; } Pe.rgb.keyword = function(e) { - const t = d6[e]; + const t = f6[e]; if (t) return t; let n = Number.POSITIVE_INFINITY, r; @@ -24923,7 +24923,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return [...nh[e]]; }; Pe.rgb.xyz = function(e) { - const t = od(e[0] / 255), n = od(e[1] / 255), r = od(e[2] / 255), o = t * 0.4124564 + n * 0.3575761 + r * 0.1804375, i = t * 0.2126729 + n * 0.7151522 + r * 0.072175, a = t * 0.0193339 + n * 0.119192 + r * 0.9503041; + const t = of(e[0] / 255), n = of(e[1] / 255), r = of(e[2] / 255), o = t * 0.4124564 + n * 0.3575761 + r * 0.1804375, i = t * 0.2126729 + n * 0.7151522 + r * 0.072175, a = t * 0.0193339 + n * 0.119192 + r * 0.9503041; return [o * 100, i * 100, a * 100]; }; Pe.rgb.lab = function(e) { @@ -24986,36 +24986,36 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a const a = Math.floor(6 * t), s = 1 - r; i = 6 * t - a, (a & 1) !== 0 && (i = 1 - i); const c = n + i * (s - n); - let u, f, p; + let u, d, p; switch (a) { default: case 6: case 0: { - u = s, f = c, p = n; + u = s, d = c, p = n; break; } case 1: { - u = c, f = s, p = n; + u = c, d = s, p = n; break; } case 2: { - u = n, f = s, p = c; + u = n, d = s, p = c; break; } case 3: { - u = n, f = c, p = s; + u = n, d = c, p = s; break; } case 4: { - u = c, f = n, p = s; + u = c, d = n, p = s; break; } case 5: { - u = s, f = n, p = c; + u = s, d = n, p = c; break; } } - return [u * 255, f * 255, p * 255]; + return [u * 255, d * 255, p * 255]; }; Pe.cmyk.rgb = function(e) { const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100, o = e[3] / 100, i = 1 - Math.min(1, t * (1 - o) + o), a = 1 - Math.min(1, n * (1 - o) + o), s = 1 - Math.min(1, r * (1 - o) + o); @@ -25024,7 +25024,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a Pe.xyz.rgb = function(e) { const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100; let o, i, a; - return o = t * 3.2404542 + n * -1.5371385 + r * -0.4985314, i = t * -0.969266 + n * 1.8760108 + r * 0.041556, a = t * 0.0556434 + n * -0.2040259 + r * 1.0572252, o = rd(o), i = rd(i), a = rd(a), [o * 255, i * 255, a * 255]; + return o = t * 3.2404542 + n * -1.5371385 + r * -0.4985314, i = t * -0.969266 + n * 1.8760108 + r * 0.041556, a = t * 0.0556434 + n * -0.2040259 + r * 1.0572252, o = rf(o), i = rf(i), a = rf(a), [o * 255, i * 255, a * 255]; }; Pe.xyz.lab = function(e) { let t = e[0], n = e[1], r = e[2]; @@ -25044,7 +25044,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a return [s * 100, c * 100, u * 100]; }; Pe.oklab.rgb = function(e) { - const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100, o = (t + 0.3963377774 * n + 0.2158037573 * r) ** 3, i = (t - 0.1055613458 * n - 0.0638541728 * r) ** 3, a = (t - 0.0894841775 * n - 1.291485548 * r) ** 3, s = rd(4.0767416621 * o - 3.3077115913 * i + 0.2309699292 * a), c = rd(-1.2684380046 * o + 2.6097574011 * i - 0.3413193965 * a), u = rd(-0.0041960863 * o - 0.7034186147 * i + 1.707614701 * a); + const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100, o = (t + 0.3963377774 * n + 0.2158037573 * r) ** 3, i = (t - 0.1055613458 * n - 0.0638541728 * r) ** 3, a = (t - 0.0894841775 * n - 1.291485548 * r) ** 3, s = rf(4.0767416621 * o - 3.3077115913 * i + 0.2309699292 * a), c = rf(-1.2684380046 * o + 2.6097574011 * i - 0.3413193965 * a), u = rf(-0.0041960863 * o - 0.7034186147 * i + 1.707614701 * a); return [s * 255, c * 255, u * 255]; }; Pe.oklch.oklab = function(e) { @@ -25319,14 +25319,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }) => { if (t === null && !n) throw new Error("Color converter is null"); - const [r, o] = T.useState(t), [i, a] = T.useState([0, 0, 0]), [s, c] = T.useState([0, 0, 0]), [u, f] = T.useState([0, 0, 0]), [p, m] = T.useState("000"); + const [r, o] = T.useState(t), [i, a] = T.useState([0, 0, 0]), [s, c] = T.useState([0, 0, 0]), [u, d] = T.useState([0, 0, 0]), [p, m] = T.useState("000"); T.useEffect(() => { if (!r) { if (!n) throw new Error("Color converter is null"); - c([0, 0, 0]), a([0, 0, 0]), f([0, 0, 0]), m(""); + c([0, 0, 0]), a([0, 0, 0]), d([0, 0, 0]), m(""); return; } - a(r.hsl()), c(r.rgb()), f(r.hsv()), m(r.hex()); + a(r.hsl()), c(r.rgb()), d(r.hsv()), m(r.hex()); }, [r]); const g = { backgroundColor: `hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`, @@ -25521,7 +25521,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a const a = e !== void 0 ? e : [0, 0, 0], s = e === void 0 ? "rgb" : t || "hex", c = Array.isArray(a) ? a : [a], u = T.useMemo(() => { let b = gr(s, c); return b.rgb() === void 0 && (b = gr("rgb", [0, 0, 0])), b; - }, [s, c]), [f, p] = T.useState(u); + }, [s, c]), [d, p] = T.useState(u); T.useEffect(() => { const b = e !== void 0 ? e : [0, 0, 0], v = e === void 0 ? "rgb" : t || "hex", x = Array.isArray(b) ? b : [b]; let E = gr(v, x); @@ -25542,12 +25542,12 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a }, []); const y = T.useMemo( () => ({ - background: "#" + f.hex(), + background: "#" + d.hex(), borderRadius: "0.3rem", width: "2rem", height: "1rem" }), - [f] + [d] ); return /* @__PURE__ */ S.jsxs(s6, { children: [ /* @__PURE__ */ S.jsx(l6, { asChild: !0, children: /* @__PURE__ */ S.jsx("button", { style: y }) }), @@ -25555,36 +25555,36 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a Mae, { onChange: g, - colorconverter: f, + colorconverter: d, allow_null: n } ) }) }) ] }); }; - function fc(e) { + function dc(e) { "@babel/helpers - typeof"; - return fc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { + return dc = 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; - }, fc(e); + }, dc(e); } function Pae(e, t) { - if (fc(e) != "object" || !e) return e; + if (dc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t); - if (fc(r) != "object") return r; + if (dc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } - function f6(e) { + function d6(e) { var t = Pae(e, "string"); - return fc(t) == "symbol" ? t : t + ""; + return dc(t) == "symbol" ? t : t + ""; } function yp(e, t, n) { - return (t = f6(t)) in e ? Object.defineProperty(e, t, { + return (t = d6(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, @@ -25624,8 +25624,8 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a if (Object(n) !== n) return; c = !1; } else for (; !(c = (r = i.call(n)).done) && (s.push(r.value), s.length !== t); c = !0) ; - } catch (f) { - u = !0, o = f; + } catch (d) { + u = !0, o = d; } finally { try { if (!c && n.return != null && (a = n.return(), Object(a) !== a)) return; @@ -25666,12 +25666,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var Dae = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"]; function Fae(e) { - var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, a = i === void 0 ? null : i, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, f = e.onInputChange, p = e.onMenuClose, m = e.onMenuOpen, g = e.value, y = es(e, Dae), b = T.useState(s !== void 0 ? s : n), v = za(b, 2), x = v[0], E = v[1], _ = T.useState(c !== void 0 ? c : o), C = za(_, 2), k = C[0], A = C[1], O = T.useState(g !== void 0 ? g : a), P = za(O, 2), I = P[0], $ = P[1], L = T.useCallback(function(W, Y) { + var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, a = i === void 0 ? null : i, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, p = e.onMenuClose, m = e.onMenuOpen, g = e.value, y = es(e, Dae), b = T.useState(s !== void 0 ? s : n), v = za(b, 2), x = v[0], E = v[1], _ = T.useState(c !== void 0 ? c : o), C = za(_, 2), k = C[0], A = C[1], O = T.useState(g !== void 0 ? g : a), P = za(O, 2), I = P[0], $ = P[1], L = T.useCallback(function(W, Y) { typeof u == "function" && u(W, Y), $(W); }, [u]), N = T.useCallback(function(W, Y) { var B; - typeof f == "function" && (B = f(W, Y)), E(B !== void 0 ? B : W); - }, [f]), U = T.useCallback(function() { + typeof d == "function" && (B = d(W, Y)), E(B !== void 0 ? B : W); + }, [d]), U = T.useCallback(function() { typeof m == "function" && m(), A(!0); }, [m]), j = T.useCallback(function() { typeof p == "function" && p(), A(!1); @@ -25692,7 +25692,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function EI(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; - r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, f6(r.key), r); + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, d6(r.key), r); } } function zae(e, t, n) { @@ -25728,7 +25728,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })(); } function Uae(e, t) { - if (t && (fc(t) == "object" || typeof t == "function")) return t; + if (t && (dc(t) == "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return NF(e); } @@ -25782,7 +25782,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }).join(" "); } var CI = function(t) { - return ise(t) ? t.filter(Boolean) : fc(t) === "object" && t !== null ? [t] : []; + return ise(t) ? t.filter(Boolean) : dc(t) === "object" && t !== null ? [t] : []; }, m6 = function(t) { t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme; var n = es(t, Kae); @@ -25883,8 +25883,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !r.includes(c); }); return i.reduce(function(a, s) { - var c = za(s, 2), u = c[0], f = c[1]; - return a[u] = f, a; + var c = za(s, 2), u = c[0], d = c[1]; + return a[u] = d, a; }, {}); }, sse = ["children", "innerProps"], lse = ["children", "innerProps"]; function cse(e) { @@ -25893,7 +25893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho maxHeight: t }; if (!n || !n.offsetParent) return u; - var f = c.getBoundingClientRect(), p = f.height, m = n.getBoundingClientRect(), g = m.bottom, y = m.height, b = m.top, v = n.offsetParent.getBoundingClientRect(), x = v.top, E = a ? window.innerHeight : Zae(c), _ = g6(c), C = parseInt(getComputedStyle(n).marginBottom, 10), k = parseInt(getComputedStyle(n).marginTop, 10), A = x - k, O = E - b, P = A + _, I = p - _ - b, $ = g - E + _ + C, L = _ + b - k, N = 160; + var d = c.getBoundingClientRect(), p = d.height, m = n.getBoundingClientRect(), g = m.bottom, y = m.height, b = m.top, v = n.offsetParent.getBoundingClientRect(), x = v.top, E = a ? window.innerHeight : Zae(c), _ = g6(c), C = parseInt(getComputedStyle(n).marginBottom, 10), k = parseInt(getComputedStyle(n).marginTop, 10), A = x - k, O = E - b, P = A + _, I = p - _ - b, $ = g - E + _ + C, L = _ + b - k, N = 160; switch (o) { case "auto": case "bottom": @@ -25964,7 +25964,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var v6 = function(t) { return t === "auto" ? "bottom" : t; - }, dse = function(t, n) { + }, fse = function(t, n) { var r, o = t.placement, i = t.theme, a = i.borderRadius, s = i.spacing, c = i.colors; return Xe((r = { label: "menu" @@ -25975,8 +25975,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho marginBottom: s.menuGutter, marginTop: s.menuGutter }); - }, b6 = /* @__PURE__ */ T.createContext(null), fse = function(t) { - var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = T.useContext(b6) || {}, f = u.setPortalPlacement, p = T.useRef(null), m = T.useState(o), g = za(m, 2), y = g[0], b = g[1], v = T.useState(null), x = za(v, 2), E = x[0], _ = x[1], C = c.spacing.controlHeight; + }, b6 = /* @__PURE__ */ T.createContext(null), dse = function(t) { + var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = T.useContext(b6) || {}, d = u.setPortalPlacement, p = T.useRef(null), m = T.useState(o), g = za(m, 2), y = g[0], b = g[1], v = T.useState(null), x = za(v, 2), E = x[0], _ = x[1], C = c.spacing.controlHeight; return GE(function() { var k = p.current; if (k) { @@ -25989,9 +25989,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho isFixedPosition: A, controlHeight: C }); - b(P.maxHeight), _(P.placement), f?.(P.placement); + b(P.maxHeight), _(P.placement), d?.(P.placement); } - }, [o, i, a, s, r, f, C]), n({ + }, [o, i, a, s, r, d, C]), n({ ref: p, placerProps: Xe(Xe({}, t), {}, { placement: E || v6(i), @@ -26061,7 +26061,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho zIndex: 1 }; }, Sse = function(t) { - var n = t.appendTo, r = t.children, o = t.controlElement, i = t.innerProps, a = t.menuPlacement, s = t.menuPosition, c = T.useRef(null), u = T.useRef(null), f = T.useState(v6(a)), p = za(f, 2), m = p[0], g = p[1], y = T.useMemo(function() { + var n = t.appendTo, r = t.children, o = t.controlElement, i = t.innerProps, a = t.menuPlacement, s = t.menuPosition, c = T.useRef(null), u = T.useRef(null), d = T.useState(v6(a)), p = za(d, 2), m = p[0], g = p[1], y = T.useMemo(function() { return { setPortalPlacement: g }; @@ -26214,7 +26214,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return We("span", Ke({}, n, Mn(t, "indicatorSeparator", { "indicator-separator": !0 }))); - }, Fse = Pd(AI || (AI = Gae([` + }, Fse = If(AI || (AI = Gae([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))), Lse = function(t, n) { @@ -26309,12 +26309,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho paddingTop: r.baseUnit * 2 }; }, Wse = function(t) { - var n = t.children, r = t.cx, o = t.getStyles, i = t.getClassNames, a = t.Heading, s = t.headingProps, c = t.innerProps, u = t.label, f = t.theme, p = t.selectProps; + var n = t.children, r = t.cx, o = t.getStyles, i = t.getClassNames, a = t.Heading, s = t.headingProps, c = t.innerProps, u = t.label, d = t.theme, p = t.selectProps; return We("div", Ke({}, Mn(t, "group", { group: !0 }), c), We(a, Ke({}, s, { selectProps: p, - theme: f, + theme: d, getStyles: o, getClassNames: i, cx: r @@ -26446,7 +26446,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })); } var lle = function(t) { - var n = t.children, r = t.components, o = t.data, i = t.innerProps, a = t.isDisabled, s = t.removeProps, c = t.selectProps, u = r.Container, f = r.Label, p = r.Remove; + var n = t.children, r = t.components, o = t.data, i = t.innerProps, a = t.isDisabled, s = t.removeProps, c = t.selectProps, u = r.Container, d = r.Label, p = r.Remove; return We(u, { data: o, innerProps: Xe(Xe({}, Mn(t, "multiValue", { @@ -26454,7 +26454,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "multi-value--is-disabled": a })), i), selectProps: c - }, We(f, { + }, We(d, { data: o, innerProps: Xe({}, Mn(t, "multiValueLabel", { "multi-value__label": !0 @@ -26488,7 +26488,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho backgroundColor: r ? void 0 : i ? c.primary : c.primary50 } }); - }, dle = function(t) { + }, fle = function(t) { var n = t.children, r = t.isDisabled, o = t.isFocused, i = t.isSelected, a = t.innerRef, s = t.innerProps; return We("div", Ke({}, Mn(t, "option", { option: !0, @@ -26499,7 +26499,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ref: a, "aria-disabled": r }, s), n); - }, fle = dle, ple = function(t, n) { + }, dle = fle, ple = function(t, n) { var r = t.theme, o = r.spacing, i = r.colors; return Xe({ label: "placeholder", @@ -26555,7 +26555,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho MultiValueContainer: ile, MultiValueLabel: ale, MultiValueRemove: sle, - Option: fle, + Option: dle, Placeholder: mle, SelectContainer: Ese, SingleValue: vle, @@ -26634,12 +26634,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, onFocus: function(t) { - var n = t.context, r = t.focused, o = t.options, i = t.label, a = i === void 0 ? "" : i, s = t.selectValue, c = t.isDisabled, u = t.isSelected, f = t.isAppleDevice, p = function(b, v) { + var n = t.context, r = t.focused, o = t.options, i = t.label, a = i === void 0 ? "" : i, s = t.selectValue, c = t.isDisabled, u = t.isSelected, d = t.isAppleDevice, p = function(b, v) { return b && b.length ? "".concat(b.indexOf(v) + 1, " of ").concat(b.length) : ""; }; if (n === "value" && s) return "value ".concat(a, " focused, ").concat(p(s, r), "."); - if (n === "menu" && f) { + if (n === "menu" && d) { var m = c ? " disabled" : "", g = "".concat(u ? " selected" : "").concat(m); return "".concat(a).concat(g, ", ").concat(p(o, r), "."); } @@ -26650,7 +26650,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return "".concat(r).concat(n ? " for search term " + n : "", "."); } }, Tle = function(t) { - var n = t.ariaSelection, r = t.focusedOption, o = t.focusedValue, i = t.focusableOptions, a = t.isFocused, s = t.selectValue, c = t.selectProps, u = t.id, f = t.isAppleDevice, p = c.ariaLiveMessages, m = c.getOptionLabel, g = c.inputValue, y = c.isMulti, b = c.isOptionDisabled, v = c.isSearchable, x = c.menuIsOpen, E = c.options, _ = c.screenReaderStatus, C = c.tabSelectsValue, k = c.isLoading, A = c["aria-label"], O = c["aria-live"], P = T.useMemo(function() { + var n = t.ariaSelection, r = t.focusedOption, o = t.focusedValue, i = t.focusableOptions, a = t.isFocused, s = t.selectValue, c = t.selectProps, u = t.id, d = t.isAppleDevice, p = c.ariaLiveMessages, m = c.getOptionLabel, g = c.inputValue, y = c.isMulti, b = c.isOptionDisabled, v = c.isSearchable, x = c.menuIsOpen, E = c.options, _ = c.screenReaderStatus, C = c.tabSelectsValue, k = c.isLoading, A = c["aria-label"], O = c["aria-live"], P = T.useMemo(function() { return Xe(Xe({}, kle), p || {}); }, [p]), I = T.useMemo(function() { var V = ""; @@ -26678,12 +26678,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho options: i, context: F === r ? "menu" : "value", selectValue: s, - isAppleDevice: f + isAppleDevice: d }; V = P.onFocus(W); } return V; - }, [r, o, m, b, P, i, s, f]), L = T.useMemo(function() { + }, [r, o, m, b, P, i, s, d]), L = T.useMemo(function() { var V = ""; if (x && E.length && !k && P.onFilter) { var F = _({ @@ -27002,8 +27002,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho stringify: Mle, trim: !0, matchFrom: "any" - }, t), i = o.ignoreCase, a = o.ignoreAccents, s = o.stringify, c = o.trim, u = o.matchFrom, f = c ? MI(r) : r, p = c ? MI(s(n)) : s(n); - return i && (f = f.toLowerCase(), p = p.toLowerCase()), a && (f = Ole(f), p = T6(p)), u === "start" ? p.substr(0, f.length) === f : p.indexOf(f) > -1; + }, t), i = o.ignoreCase, a = o.ignoreAccents, s = o.stringify, c = o.trim, u = o.matchFrom, d = c ? MI(r) : r, p = c ? MI(s(n)) : s(n); + return i && (d = d.toLowerCase(), p = p.toLowerCase()), a && (d = Ole(d), p = T6(p)), u === "start" ? p.substr(0, d.length) === d : p.indexOf(d) > -1; }; }, Ple = ["innerRef"]; function Ile(e) { @@ -27038,19 +27038,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t.cancelable && t.preventDefault(), t.stopPropagation(); }; function jle(e) { - var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, o = e.onTopArrive, i = e.onTopLeave, a = T.useRef(!1), s = T.useRef(!1), c = T.useRef(0), u = T.useRef(null), f = T.useCallback(function(v, x) { + var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, o = e.onTopArrive, i = e.onTopLeave, a = T.useRef(!1), s = T.useRef(!1), c = T.useRef(0), u = T.useRef(null), d = T.useCallback(function(v, x) { if (u.current !== null) { var E = u.current, _ = E.scrollTop, C = E.scrollHeight, k = E.clientHeight, A = u.current, O = x > 0, P = C - k - _, I = !1; P > x && a.current && (r && r(v), a.current = !1), O && s.current && (i && i(v), s.current = !1), O && x > P ? (n && !a.current && n(v), A.scrollTop = C, I = !0, a.current = !0) : !O && -x > _ && (o && !s.current && o(v), A.scrollTop = 0, I = !0, s.current = !0), I && $le(v); } }, [n, r, o, i]), p = T.useCallback(function(v) { - f(v, v.deltaY); - }, [f]), m = T.useCallback(function(v) { + d(v, v.deltaY); + }, [d]), m = T.useCallback(function(v) { c.current = v.changedTouches[0].clientY; }, []), g = T.useCallback(function(v) { var x = c.current - v.changedTouches[0].clientY; - f(v, x); - }, [f]), y = T.useCallback(function(v) { + d(v, x); + }, [d]), y = T.useCallback(function(v) { if (v) { var x = rse ? { passive: !1 @@ -27091,32 +27091,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function DI() { return "ontouchstart" in window || navigator.maxTouchPoints; } - var FI = !!(typeof window < "u" && window.document && window.document.createElement), Gf = 0, Mu = { + var FI = !!(typeof window < "u" && window.document && window.document.createElement), Gd = 0, Mu = { capture: !1, passive: !1 }; function Dle(e) { var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, o = T.useRef({}), i = T.useRef(null), a = T.useCallback(function(c) { if (FI) { - var u = document.body, f = u && u.style; + var u = document.body, d = u && u.style; if (r && NI.forEach(function(y) { - var b = f && f[y]; + var b = d && d[y]; o.current[y] = b; - }), r && Gf < 1) { + }), r && Gd < 1) { var p = parseInt(o.current.paddingRight, 10) || 0, m = document.body ? document.body.clientWidth : 0, g = window.innerWidth - m + p || 0; Object.keys(PI).forEach(function(y) { var b = PI[y]; - f && (f[y] = b); - }), f && (f.paddingRight = "".concat(g, "px")); + d && (d[y] = b); + }), d && (d.paddingRight = "".concat(g, "px")); } - u && DI() && (u.addEventListener("touchmove", II, Mu), c && (c.addEventListener("touchstart", jI, Mu), c.addEventListener("touchmove", $I, Mu))), Gf += 1; + u && DI() && (u.addEventListener("touchmove", II, Mu), c && (c.addEventListener("touchstart", jI, Mu), c.addEventListener("touchmove", $I, Mu))), Gd += 1; } }, [r]), s = T.useCallback(function(c) { if (FI) { - var u = document.body, f = u && u.style; - Gf = Math.max(Gf - 1, 0), r && Gf < 1 && NI.forEach(function(p) { + var u = document.body, d = u && u.style; + Gd = Math.max(Gd - 1, 0), r && Gd < 1 && NI.forEach(function(p) { var m = o.current[p]; - f && (f[p] = m); + d && (d[p] = m); }), u && DI() && (u.removeEventListener("touchmove", II, Mu), c && (c.removeEventListener("touchstart", jI, Mu), c.removeEventListener("touchmove", $I, Mu))); } }, [r]); @@ -27145,10 +27145,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onBottomLeave: a, onTopArrive: s, onTopLeave: c - }), f = Dle({ + }), d = Dle({ isEnabled: n }), p = function(g) { - u(g), f(g); + u(g), d(g); }; return We(T.Fragment, null, n && We("div", { onClick: Fle, @@ -27172,18 +27172,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }); }, Vle = Ule; - function dT(e) { + function fT(e) { var t; return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1; } function Hle() { - return dT(/^iPhone/i); + return fT(/^iPhone/i); } function A6() { - return dT(/^Mac/i); + return fT(/^Mac/i); } function qle() { - return dT(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support. + return fT(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support. A6() && navigator.maxTouchPoints > 1; } function Wle() { @@ -27212,7 +27212,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho input: Zse, loadingIndicator: Lse, loadingMessage: vse, - menu: dse, + menu: fse, menuList: mse, menuPortal: wse, multiValue: nle, @@ -27431,9 +27431,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, o.inputRef = null, o.getInputRef = function(c) { o.inputRef = c; }, o.focus = o.focusInput, o.blur = o.blurInput, o.onChange = function(c, u) { - var f = o.props, p = f.onChange, m = f.name; + var d = o.props, p = d.onChange, m = d.name; u.name = m, o.ariaOnChange(c, u), p(c, u); - }, o.setValue = function(c, u, f) { + }, o.setValue = function(c, u, d) { var p = o.props, m = p.closeMenuOnSelect, g = p.isMulti, y = p.inputValue; o.onInputChange("", { action: "set-value", @@ -27444,10 +27444,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho clearFocusValueOnUpdate: !0 }), o.onChange(c, { action: u, - option: f + option: d }); }, o.selectOption = function(c) { - var u = o.props, f = u.blurInputOnSelect, p = u.isMulti, m = u.name, g = o.state.selectValue, y = p && o.isOptionSelected(c, g), b = o.isOptionDisabled(c, g); + var u = o.props, d = u.blurInputOnSelect, p = u.isMulti, m = u.name, g = o.state.selectValue, y = p && o.isOptionSelected(c, g), b = o.isOptionDisabled(c, g); if (y) { var v = o.getOptionValue(c); o.setValue(g.filter(function(x) { @@ -27463,9 +27463,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); return; } - f && o.blurInput(); + d && o.blurInput(); }, o.removeValue = function(c) { - var u = o.props.isMulti, f = o.state.selectValue, p = o.getOptionValue(c), m = f.filter(function(y) { + var u = o.props.isMulti, d = o.state.selectValue, p = o.getOptionValue(c), m = d.filter(function(y) { return o.getOptionValue(y) !== p; }), g = sy(u, m, m[0] || null); o.onChange(g, { @@ -27479,10 +27479,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho removedValues: c }); }, o.popValue = function() { - var c = o.props.isMulti, u = o.state.selectValue, f = u[u.length - 1], p = u.slice(0, u.length - 1), m = sy(c, p, p[0] || null); - f && o.onChange(m, { + var c = o.props.isMulti, u = o.state.selectValue, d = u[u.length - 1], p = u.slice(0, u.length - 1), m = sy(c, p, p[0] || null); + d && o.onChange(m, { action: "pop-value", - removedValue: f + removedValue: d }); }, o.getFocusedOptionId = function(c) { return zS(o.state.focusableOptionsWithIds, c); @@ -27491,21 +27491,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, o.getValue = function() { return o.state.selectValue; }, o.cx = function() { - for (var c = arguments.length, u = new Array(c), f = 0; f < c; f++) - u[f] = arguments[f]; + for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++) + u[d] = arguments[d]; return Xae.apply(void 0, [o.props.classNamePrefix].concat(u)); }, o.getOptionLabel = function(c) { return M6(o.props, c); }, o.getOptionValue = function(c) { return v0(o.props, c); }, o.getStyles = function(c, u) { - var f = o.props.unstyled, p = Qle[c](u, f); + var d = o.props.unstyled, p = Qle[c](u, d); p.boxSizing = "border-box"; var m = o.props.styles[c]; return m ? m(p, u) : p; }, o.getClassNames = function(c, u) { - var f, p; - return (f = (p = o.props.classNames)[c]) === null || f === void 0 ? void 0 : f.call(p, u); + var d, p; + return (d = (p = o.props.classNames)[c]) === null || d === void 0 ? void 0 : d.call(p, u); }, o.getElementId = function(c) { return "".concat(o.state.instancePrefix, "-").concat(c); }, o.getComponents = function() { @@ -27535,9 +27535,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, o.onDropdownIndicatorMouseDown = function(c) { if (!(c && c.type === "mousedown" && c.button !== 0) && !o.props.isDisabled) { - var u = o.props, f = u.isMulti, p = u.menuIsOpen; + var u = o.props, d = u.isMulti, p = u.menuIsOpen; o.focusInput(), p ? (o.setState({ - inputIsHiddenAfterUpdate: !f + inputIsHiddenAfterUpdate: !d }), o.onMenuClose()) : o.openMenu("first"), c.preventDefault(); } }, o.onClearIndicatorMouseDown = function(c) { @@ -27551,12 +27551,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, o.onCompositionEnd = function() { o.isComposing = !1; }, o.onTouchStart = function(c) { - var u = c.touches, f = u && u.item(0); - f && (o.initialTouchX = f.clientX, o.initialTouchY = f.clientY, o.userIsDragging = !1); + var u = c.touches, d = u && u.item(0); + d && (o.initialTouchX = d.clientX, o.initialTouchY = d.clientY, o.userIsDragging = !1); }, o.onTouchMove = function(c) { - var u = c.touches, f = u && u.item(0); - if (f) { - var p = Math.abs(f.clientX - o.initialTouchX), m = Math.abs(f.clientY - o.initialTouchY), g = 5; + var u = c.touches, d = u && u.item(0); + if (d) { + var p = Math.abs(d.clientX - o.initialTouchX), m = Math.abs(d.clientY - o.initialTouchY), g = 5; o.userIsDragging = p > g || m > g; } }, o.onTouchEnd = function(c) { @@ -27568,10 +27568,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, o.onDropdownIndicatorTouchEnd = function(c) { o.userIsDragging || o.onDropdownIndicatorMouseDown(c); }, o.handleInputChange = function(c) { - var u = o.props.inputValue, f = c.currentTarget.value; + var u = o.props.inputValue, d = c.currentTarget.value; o.setState({ inputIsHiddenAfterUpdate: !1 - }), o.onInputChange(f, { + }), o.onInputChange(d, { action: "input-change", prevInputValue: u }), o.props.menuIsOpen || o.onMenuOpen(); @@ -27595,10 +27595,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }, o.onOptionHover = function(c) { if (!(o.blockOptionHover || o.state.focusedOption === c)) { - var u = o.getFocusableOptions(), f = u.indexOf(c); + var u = o.getFocusableOptions(), d = u.indexOf(c); o.setState({ focusedOption: c, - focusedOptionId: f > -1 ? o.getFocusedOptionId(c) : null + focusedOptionId: d > -1 ? o.getFocusedOptionId(c) : null }); } }, o.shouldHideSelectedOptions = function() { @@ -27606,15 +27606,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, o.onValueInputFocus = function(c) { c.preventDefault(), c.stopPropagation(), o.focus(); }, o.onKeyDown = function(c) { - var u = o.props, f = u.isMulti, p = u.backspaceRemovesValue, m = u.escapeClearsValue, g = u.inputValue, y = u.isClearable, b = u.isDisabled, v = u.menuIsOpen, x = u.onKeyDown, E = u.tabSelectsValue, _ = u.openMenuOnFocus, C = o.state, k = C.focusedOption, A = C.focusedValue, O = C.selectValue; + var u = o.props, d = u.isMulti, p = u.backspaceRemovesValue, m = u.escapeClearsValue, g = u.inputValue, y = u.isClearable, b = u.isDisabled, v = u.menuIsOpen, x = u.onKeyDown, E = u.tabSelectsValue, _ = u.openMenuOnFocus, C = o.state, k = C.focusedOption, A = C.focusedValue, O = C.selectValue; if (!b && !(typeof x == "function" && (x(c), c.defaultPrevented))) { switch (o.blockOptionHover = !0, c.key) { case "ArrowLeft": - if (!f || g) return; + if (!d || g) return; o.focusValue("previous"); break; case "ArrowRight": - if (!f || g) return; + if (!d || g) return; o.focusValue("next"); break; case "Delete": @@ -27624,7 +27624,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o.removeValue(A); else { if (!p) return; - f ? o.popValue() : y && o.clearValue(); + d ? o.popValue() : y && o.clearValue(); } break; case "Tab": @@ -27756,16 +27756,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "openMenu", value: function(o) { - var i = this, a = this.state, s = a.selectValue, c = a.isFocused, u = this.buildFocusableOptions(), f = o === "first" ? 0 : u.length - 1; + var i = this, a = this.state, s = a.selectValue, c = a.isFocused, u = this.buildFocusableOptions(), d = o === "first" ? 0 : u.length - 1; if (!this.props.isMulti) { var p = u.indexOf(s[0]); - p > -1 && (f = p); + p > -1 && (d = p); } this.scrollToFocusedOptionOnUpdate = !(c && this.menuListRef), this.setState({ inputIsHiddenAfterUpdate: !1, focusedValue: null, - focusedOption: u[f], - focusedOptionId: this.getFocusedOptionId(u[f]) + focusedOption: u[d], + focusedOptionId: this.getFocusedOptionId(u[d]) }, function() { return i.onMenuOpen(); }); @@ -27780,19 +27780,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); var c = a.indexOf(s); s || (c = -1); - var u = a.length - 1, f = -1; + var u = a.length - 1, d = -1; if (a.length) { switch (o) { case "previous": - c === 0 ? f = 0 : c === -1 ? f = u : f = c - 1; + c === 0 ? d = 0 : c === -1 ? d = u : d = c - 1; break; case "next": - c > -1 && c < u && (f = c + 1); + c > -1 && c < u && (d = c + 1); break; } this.setState({ - inputIsHidden: f !== -1, - focusedValue: a[f] + inputIsHidden: d !== -1, + focusedValue: a[d] }); } } @@ -27823,7 +27823,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "getCommonProps", value: function() { - var o = this.clearValue, i = this.cx, a = this.getStyles, s = this.getClassNames, c = this.getValue, u = this.selectOption, f = this.setValue, p = this.props, m = p.isMulti, g = p.isRtl, y = p.options, b = this.hasValue(); + var o = this.clearValue, i = this.cx, a = this.getStyles, s = this.getClassNames, c = this.getValue, u = this.selectOption, d = this.setValue, p = this.props, m = p.isMulti, g = p.isRtl, y = p.options, b = this.hasValue(); return { clearValue: o, cx: i, @@ -27836,7 +27836,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho options: y, selectOption: u, selectProps: p, - setValue: f, + setValue: d, theme: this.getTheme() }; } @@ -27930,7 +27930,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // Renderers // ============================== (function() { - var o = this.props, i = o.isDisabled, a = o.isSearchable, s = o.inputId, c = o.inputValue, u = o.tabIndex, f = o.form, p = o.menuIsOpen, m = o.required, g = this.getComponents(), y = g.Input, b = this.state, v = b.inputIsHidden, x = b.ariaSelection, E = this.commonProps, _ = s || this.getElementId("input"), C = Xe(Xe(Xe({ + var o = this.props, i = o.isDisabled, a = o.isSearchable, s = o.inputId, c = o.inputValue, u = o.tabIndex, d = o.form, p = o.menuIsOpen, m = o.required, g = this.getComponents(), y = g.Input, b = this.state, v = b.inputIsHidden, x = b.ariaSelection, E = this.commonProps, _ = s || this.getElementId("input"), C = Xe(Xe(Xe({ "aria-autocomplete": "list", "aria-expanded": p, "aria-haspopup": !0, @@ -27963,7 +27963,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onFocus: this.onInputFocus, spellCheck: "false", tabIndex: u, - form: f, + form: d, type: "text", value: c }, C)) : /* @__PURE__ */ T.createElement(Ile, Ke({ @@ -27975,7 +27975,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: i, tabIndex: u, inputMode: "none", - form: f, + form: d, value: "" }, C)); }) @@ -27983,7 +27983,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "renderPlaceholderOrValue", value: function() { - var o = this, i = this.getComponents(), a = i.MultiValue, s = i.MultiValueContainer, c = i.MultiValueLabel, u = i.MultiValueRemove, f = i.SingleValue, p = i.Placeholder, m = this.commonProps, g = this.props, y = g.controlShouldRenderValue, b = g.isDisabled, v = g.isMulti, x = g.inputValue, E = g.placeholder, _ = this.state, C = _.selectValue, k = _.focusedValue, A = _.isFocused; + var o = this, i = this.getComponents(), a = i.MultiValue, s = i.MultiValueContainer, c = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, m = this.commonProps, g = this.props, y = g.controlShouldRenderValue, b = g.isDisabled, v = g.isMulti, x = g.inputValue, E = g.placeholder, _ = this.state, C = _.selectValue, k = _.focusedValue, A = _.isFocused; if (!this.hasValue() || !y) return x ? null : /* @__PURE__ */ T.createElement(p, Ke({}, m, { key: "placeholder", @@ -28023,7 +28023,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (x) return null; var O = C[0]; - return /* @__PURE__ */ T.createElement(f, Ke({}, m, { + return /* @__PURE__ */ T.createElement(d, Ke({}, m, { data: O, isDisabled: b }), this.formatOptionLabel(O, "value")); @@ -28031,7 +28031,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "renderClearIndicator", value: function() { - var o = this.getComponents(), i = o.ClearIndicator, a = this.commonProps, s = this.props, c = s.isDisabled, u = s.isLoading, f = this.state.isFocused; + var o = this.getComponents(), i = o.ClearIndicator, a = this.commonProps, s = this.props, c = s.isDisabled, u = s.isLoading, d = this.state.isFocused; if (!this.isClearable() || !i || c || !this.hasValue() || u) return null; var p = { @@ -28041,13 +28041,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; return /* @__PURE__ */ T.createElement(i, Ke({}, a, { innerProps: p, - isFocused: f + isFocused: d })); } }, { key: "renderLoadingIndicator", value: function() { - var o = this.getComponents(), i = o.LoadingIndicator, a = this.commonProps, s = this.props, c = s.isDisabled, u = s.isLoading, f = this.state.isFocused; + var o = this.getComponents(), i = o.LoadingIndicator, a = this.commonProps, s = this.props, c = s.isDisabled, u = s.isLoading, d = this.state.isFocused; if (!i || !u) return null; var p = { "aria-hidden": "true" @@ -28055,7 +28055,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return /* @__PURE__ */ T.createElement(i, Ke({}, a, { innerProps: p, isDisabled: c, - isFocused: f + isFocused: d })); } }, { @@ -28088,7 +28088,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "renderMenu", value: function() { - var o = this, i = this.getComponents(), a = i.Group, s = i.GroupHeading, c = i.Menu, u = i.MenuList, f = i.MenuPortal, p = i.LoadingMessage, m = i.NoOptionsMessage, g = i.Option, y = this.commonProps, b = this.state.focusedOption, v = this.props, x = v.captureMenuScroll, E = v.inputValue, _ = v.isLoading, C = v.loadingMessage, k = v.minMenuHeight, A = v.maxMenuHeight, O = v.menuIsOpen, P = v.menuPlacement, I = v.menuPosition, $ = v.menuPortalTarget, L = v.menuShouldBlockScroll, N = v.menuShouldScrollIntoView, U = v.noOptionsMessage, j = v.onMenuScrollToTop, V = v.onMenuScrollToBottom; + var o = this, i = this.getComponents(), a = i.Group, s = i.GroupHeading, c = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, m = i.NoOptionsMessage, g = i.Option, y = this.commonProps, b = this.state.focusedOption, v = this.props, x = v.captureMenuScroll, E = v.inputValue, _ = v.isLoading, C = v.loadingMessage, k = v.minMenuHeight, A = v.maxMenuHeight, O = v.menuIsOpen, P = v.menuPlacement, I = v.menuPosition, $ = v.menuPortalTarget, L = v.menuShouldBlockScroll, N = v.menuShouldScrollIntoView, U = v.noOptionsMessage, j = v.onMenuScrollToTop, V = v.onMenuScrollToBottom; if (!O) return null; var F = function(z, H) { var X = z.type, Q = z.data, ne = z.isDisabled, te = z.isSelected, se = z.label, ue = z.value, J = b === Q, ee = ne ? void 0 : function() { @@ -28157,7 +28157,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho menuPlacement: P, menuPosition: I, menuShouldScrollIntoView: N - }, D = /* @__PURE__ */ T.createElement(fse, Ke({}, y, B), function(G) { + }, D = /* @__PURE__ */ T.createElement(dse, Ke({}, y, B), function(G) { var z = G.ref, H = G.placerProps, X = H.placement, Q = H.maxHeight; return /* @__PURE__ */ T.createElement(c, Ke({}, y, B, { innerRef: z, @@ -28188,7 +28188,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), K); })); }); - return $ || I === "fixed" ? /* @__PURE__ */ T.createElement(f, Ke({}, y, { + return $ || I === "fixed" ? /* @__PURE__ */ T.createElement(d, Ke({}, y, { appendTo: $, controlElement: this.controlRef, menuPlacement: P, @@ -28198,8 +28198,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "renderFormField", value: function() { - var o = this, i = this.props, a = i.delimiter, s = i.isDisabled, c = i.isMulti, u = i.name, f = i.required, p = this.state.selectValue; - if (f && !this.hasValue() && !s) + var o = this, i = this.props, a = i.delimiter, s = i.isDisabled, c = i.isMulti, u = i.name, d = i.required, p = this.state.selectValue; + if (d && !this.hasValue() && !s) return /* @__PURE__ */ T.createElement(Vle, { name: u, onFocus: this.onValueInputFocus @@ -28242,14 +28242,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "renderLiveRegion", value: function() { - var o = this.commonProps, i = this.state, a = i.ariaSelection, s = i.focusedOption, c = i.focusedValue, u = i.isFocused, f = i.selectValue, p = this.getFocusableOptions(); + var o = this.commonProps, i = this.state, a = i.ariaSelection, s = i.focusedOption, c = i.focusedValue, u = i.isFocused, d = i.selectValue, p = this.getFocusableOptions(); return /* @__PURE__ */ T.createElement(Ale, Ke({}, o, { id: this.getElementId("live-region"), ariaSelection: a, focusedOption: s, focusedValue: c, isFocused: u, - selectValue: f, + selectValue: d, focusableOptions: p, isAppleDevice: this.state.isAppleDevice })); @@ -28257,9 +28257,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { key: "render", value: function() { - var o = this.getComponents(), i = o.Control, a = o.IndicatorsContainer, s = o.SelectContainer, c = o.ValueContainer, u = this.props, f = u.className, p = u.id, m = u.isDisabled, g = u.menuIsOpen, y = this.state.isFocused, b = this.commonProps = this.getCommonProps(); + var o = this.getComponents(), i = o.Control, a = o.IndicatorsContainer, s = o.SelectContainer, c = o.ValueContainer, u = this.props, d = u.className, p = u.id, m = u.isDisabled, g = u.menuIsOpen, y = this.state.isFocused, b = this.commonProps = this.getCommonProps(); return /* @__PURE__ */ T.createElement(s, Ke({}, b, { - className: f, + className: d, innerProps: { id: p, onKeyDown: this.onKeyDown @@ -28284,7 +28284,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }], [{ key: "getDerivedStateFromProps", value: function(o, i) { - var a = i.prevProps, s = i.clearFocusValueOnUpdate, c = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, f = i.isFocused, p = i.prevWasFocused, m = i.instancePrefix, g = o.options, y = o.value, b = o.menuIsOpen, v = o.inputValue, x = o.isMulti, E = CI(y), _ = {}; + var a = i.prevProps, s = i.clearFocusValueOnUpdate, c = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, m = i.instancePrefix, g = o.options, y = o.value, b = o.menuIsOpen, v = o.inputValue, x = o.isMulti, E = CI(y), _ = {}; if (a && (y !== a.value || g !== a.options || b !== a.menuIsOpen || v !== a.inputValue)) { var C = b ? ice(o, E) : [], k = b ? zI(Iv(o, E), "".concat(m, "-option")) : [], A = s ? ace(i, E) : null, O = sce(i, C), P = zS(k, O); _ = { @@ -28299,8 +28299,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var I = c != null && o !== a ? { inputIsHidden: c, inputIsHiddenAfterUpdate: void 0 - } : {}, $ = u, L = f && p; - return f && !L && ($ = { + } : {}, $ = u, L = d && p; + return d && !L && ($ = { value: sy(x, E, E[0] || null), options: E, action: "initial-input-focus" @@ -28319,7 +28319,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ref: t }, n)); }), uce = cce; - const dce = ({ + const fce = ({ options: e, items_per_page: t, className: n, @@ -28328,12 +28328,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }) => { const [i, a] = T.useState(""), [s, c] = T.useState(0), u = (g) => { a(g.toLowerCase()), c(0); - }, f = e.filter((g) => g.label.toLowerCase().includes(i) || g.value.toLowerCase().includes(i)); + }, d = e.filter((g) => g.label.toLowerCase().includes(i) || g.value.toLowerCase().includes(i)); var p; - t !== void 0 ? p = f.slice( + t !== void 0 ? p = d.slice( s * t, (s + 1) * t - ) : p = f; + ) : p = d; const m = { control: (g) => ({ ...g, @@ -28357,7 +28357,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: r } ); - }, fce = (e) => typeof e == "boolean" || e instanceof Boolean, pce = (e) => typeof e == "number" || e instanceof Number, hce = (e) => typeof e == "bigint" || e instanceof BigInt, D6 = (e) => !!e && e instanceof Date, mce = (e) => typeof e == "string" || e instanceof String, gce = (e) => Array.isArray(e), F6 = (e) => typeof e == "object" && e !== null, L6 = (e) => !!e && e instanceof Object && typeof e == "function"; + }, dce = (e) => typeof e == "boolean" || e instanceof Boolean, pce = (e) => typeof e == "number" || e instanceof Number, hce = (e) => typeof e == "bigint" || e instanceof BigInt, D6 = (e) => !!e && e instanceof Date, mce = (e) => typeof e == "string" || e instanceof String, gce = (e) => Array.isArray(e), F6 = (e) => typeof e == "object" && e !== null, L6 = (e) => !!e && e instanceof Object && typeof e == "function"; function b0(e, t) { return t === void 0 && (t = !1), !e || t ? `"${e}"` : e; } @@ -28375,7 +28375,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho level: s, style: c, shouldExpandNode: u, - clickToExpandNode: f, + clickToExpandNode: d, outerRef: p, beforeExpandChange: m } = e; @@ -28441,7 +28441,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "aria-controls": y ? x : void 0, ref: v, tabIndex: s === 0 ? 0 : -1 - }), (t || t === "") && (f ? /* @__PURE__ */ T.createElement("span", { + }), (t || t === "") && (d ? /* @__PURE__ */ T.createElement("span", { className: c.clickableLabel, onClick: P, onKeyDown: O @@ -28461,7 +28461,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho lastElement: $ === k, level: C, shouldExpandNode: u, - clickToExpandNode: f, + clickToExpandNode: d, beforeExpandChange: m, outerRef: p }))) : /* @__PURE__ */ T.createElement("span", { @@ -28518,7 +28518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho style: r, shouldExpandNode: i, clickToExpandNode: a, - data: Object.keys(n).map((f) => [f, n[f]]), + data: Object.keys(n).map((d) => [d, n[d]]), outerRef: c, beforeExpandChange: u }); @@ -28545,7 +28545,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho style: r, shouldExpandNode: a, clickToExpandNode: s, - data: n.map((f) => [void 0, f]), + data: n.map((d) => [void 0, d]), outerRef: c, beforeExpandChange: u }); @@ -28557,7 +28557,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho style: r, lastElement: o } = e, i, a = r.otherValue; - return n === null ? (i = "null", a = r.nullValue) : n === void 0 ? (i = "undefined", a = r.undefinedValue) : mce(n) ? (i = yce(n, !r.noQuotesForStringValues, r.stringifyStringValues), a = r.stringValue) : fce(n) ? (i = n ? "true" : "false", a = r.booleanValue) : pce(n) ? (i = n.toString(), a = r.numberValue) : hce(n) ? (i = `${n.toString()}n`, a = r.numberValue) : D6(n) ? i = n.toISOString() : L6(n) ? i = "function() { }" : i = n.toString(), /* @__PURE__ */ T.createElement("div", { + return n === null ? (i = "null", a = r.nullValue) : n === void 0 ? (i = "undefined", a = r.undefinedValue) : mce(n) ? (i = yce(n, !r.noQuotesForStringValues, r.stringifyStringValues), a = r.stringValue) : dce(n) ? (i = n ? "true" : "false", a = r.booleanValue) : pce(n) ? (i = n.toString(), a = r.numberValue) : hce(n) ? (i = `${n.toString()}n`, a = r.numberValue) : D6(n) ? i = n.toISOString() : L6(n) ? i = "function() { }" : i = n.toString(), /* @__PURE__ */ T.createElement("div", { className: r.basicChildStyle, role: "treeitem", "aria-selected": void 0 @@ -28635,10 +28635,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ref: c, role: "tree" }), a && F6(t) ? Object.entries(t).map((u) => { - let [f, p] = u; + let [d, p] = u; return /* @__PURE__ */ T.createElement(YE, { - key: f, - field: f, + key: d, + field: d, value: p, style: { ...BS, @@ -28704,9 +28704,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const a = e.getBoundingClientRect(), s = a.width, c = a.height; let u = r; t.style.whiteSpace = "nowrap", t.style.display = "inline-block", t.style.fontSize = u + "px"; - let f = t.getBoundingClientRect(); - for (; (f.width > s || f.height > c) && u > o; ) - u *= i, t.style.fontSize = u + "px", f = t.getBoundingClientRect(); + let d = t.getBoundingClientRect(); + for (; (d.width > s || d.height > c) && u > o; ) + u *= i, t.style.fontSize = u + "px", d = t.getBoundingClientRect(); } function Oce(e = { n: 0, @@ -28729,14 +28729,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho rate: c = void 0, // bar_format = undefined, postfix: u = null, - initial: f = 0 + initial: d = 0 // colour = undefined, } = e; t !== null && n >= t + 0.5 && (t = null); let p = n, m = t, g = c; r && r !== !0 && r !== 1 && (t !== null && (m = t * r), p = n * r, c !== void 0 && (g = c * r)); const y = UI(o); - g === void 0 && o > 0 && (g = (p - f) / o); + g === void 0 && o > 0 && (g = (p - d) / o); const b = g ? 1 / g : void 0, [v, x] = g ? ly(g, a) : [void 0, ""], [E, _] = b ? ly(b, 1e3) : [void 0, ""], C = (v || "?") + `${x}${i}/s`, k = E ? `${E}${_}s/` + i : "?", A = b && b > 1 ? k : C, O = r ? ly(p, a).join("") : p.toString(), P = r && m !== null ? ly(m, a).join("") : m?.toString() ?? "?", I = g && m !== null ? (m - p) / g : 0, $ = g ? UI(I) : "?", L = s ? `${s}: ` : ""; if (t !== null) { const N = p / t * 100, U = ` ${O}/${P} [${y} < ${$}, ${A}${u ?? ""}]`; @@ -28839,7 +28839,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var g = m.indexOf(";"), y = g !== -1 ? m.slice(0, g).trim() : m.trim(); if (!i.test(y)) throw new TypeError("invalid media type"); - var b = new f(y.toLowerCase()); + var b = new d(y.toLowerCase()); if (g !== -1) { var v, x, E; for (e.lastIndex = g; x = e.exec(m); ) { @@ -28866,7 +28866,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new TypeError("invalid parameter value"); return '"' + m.replace(o, "\\$1") + '"'; } - function f(p) { + function d(p) { this.parameters = /* @__PURE__ */ Object.create(null), this.type = p; } return cy; @@ -28949,9 +28949,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } yi.push(t), t.setAttribute("src", ""); var u = o ? $ce : jce; - u(c, i, function(f, p) { + u(c, i, function(d, p) { if (!p) { - yi.splice(yi.indexOf(t), 1), t = null, s(f); + yi.splice(yi.indexOf(t), 1), t = null, s(d); return; } var m = t.getAttribute("id"); @@ -29028,7 +29028,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var r = n === void 0 ? {} : n, o = r.afterAll, i = o === void 0 ? function() { } : o, a = r.afterEach, s = a === void 0 ? function() { } : a, c = r.beforeEach, u = c === void 0 ? function() { - } : c, f = r.cacheRequests, p = f === void 0 ? !0 : f, m = r.evalScripts, g = m === void 0 ? "never" : m, y = r.httpRequestWithCredentials, b = y === void 0 ? !1 : y, v = r.renumerateIRIElements, x = v === void 0 ? !0 : v; + } : c, d = r.cacheRequests, p = d === void 0 ? !0 : d, m = r.evalScripts, g = m === void 0 ? "never" : m, y = r.httpRequestWithCredentials, b = y === void 0 ? !1 : y, v = r.renumerateIRIElements, x = v === void 0 ? !0 : v; if (t && "length" in t) for (var E = 0, _ = 0, C = t.length; _ < C; _++) GI(t[_], g, x, p, b, u, function(k, A) { @@ -29048,7 +29048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (t[o] !== n[o]) return !0; return !1; - }, Vce = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], uy = "http://www.w3.org/2000/svg", KI = "http://www.w3.org/1999/xlink", fT = /* @__PURE__ */ (function(e) { + }, Vce = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], uy = "http://www.w3.org/2000/svg", KI = "http://www.w3.org/1999/xlink", dT = /* @__PURE__ */ (function(e) { function t() { for (var r, o = arguments.length, i = new Array(o), a = 0; a < o; a++) i[a] = arguments[a]; @@ -29064,8 +29064,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n.renderSVG = function() { var o = this; if (this.reactWrapper instanceof Bce(this.reactWrapper).Node) { - var i = this.props, a = i.desc, s = i.evalScripts, c = i.httpRequestWithCredentials, u = i.renumerateIRIElements, f = i.src, p = i.title, m = i.useRequestCache, g = this.props.onError, y = this.props.beforeInjection, b = this.props.afterInjection, v = this.props.wrapper, x, E; - v === "svg" ? (x = document.createElementNS(uy, v), x.setAttribute("xmlns", uy), x.setAttribute("xmlns:xlink", KI), E = document.createElementNS(uy, v)) : (x = document.createElement(v), E = document.createElement(v)), x.appendChild(E), E.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(x); + var i = this.props, a = i.desc, s = i.evalScripts, c = i.httpRequestWithCredentials, u = i.renumerateIRIElements, d = i.src, p = i.title, m = i.useRequestCache, g = this.props.onError, y = this.props.beforeInjection, b = this.props.afterInjection, v = this.props.wrapper, x, E; + v === "svg" ? (x = document.createElementNS(uy, v), x.setAttribute("xmlns", uy), x.setAttribute("xmlns:xlink", KI), E = document.createElementNS(uy, v)) : (x = document.createElement(v), E = document.createElement(v)), x.appendChild(E), E.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(x); var _ = function(O) { if (o.removeSVG(), !o._isMounted) { g(O); @@ -29153,7 +29153,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } : {}), this.state.isLoading && a && /* @__PURE__ */ T.createElement(a, null), this.state.hasError && i && /* @__PURE__ */ T.createElement(i, null)); }, t; })(T.Component); - fT.defaultProps = { + dT.defaultProps = { afterInjection: function() { }, beforeInjection: function() { @@ -29170,7 +29170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho useRequestCache: !0, wrapper: "div" }; - fT.propTypes = { + dT.propTypes = { afterInjection: Yn.func, beforeInjection: Yn.func, desc: Yn.string, @@ -29209,7 +29209,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onLoad: o, ...i }) => { - const [a, s] = T.useState(!1), [c, u] = T.useState(!0), f = T.useRef(null), p = T.useMemo(() => { + const [a, s] = T.useState(!1), [c, u] = T.useState(!0), d = T.useRef(null), p = T.useMemo(() => { if (typeof e == "string") return e; if (e && typeof e == "object" && "data" in e) { @@ -29232,7 +29232,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u(!1), s(!1), o?.(); }, [o]); return T.useEffect(() => { - const b = f.current; + const b = d.current; if (b) return b.addEventListener("error", g), b.addEventListener("load", y), () => { b.removeEventListener("error", g), b.removeEventListener("load", y); @@ -29255,7 +29255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ) : /* @__PURE__ */ S.jsx( "img", { - ref: f, + ref: d, src: m, alt: n, className: `base64-image-renderer image-renderer ${i.className || ""} ${c ? " loading" : ""}`, @@ -29302,7 +29302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: "Failed to load SVG" } ) : /* @__PURE__ */ S.jsx( - fT, + dT, { src: s, className: `svg-renderer ${o.className || ""}`, @@ -29313,15 +29313,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, beforeInjection: (u) => { u.classList.add("svg-renderer"), u.setAttribute("style", "max-width: 100%; max-height: 100%;"), u.setAttribute("width", "100%"), u.setAttribute("height", "100%"), u.setAttribute("aria-label", t); - const f = () => { + const d = () => { a(!1), r?.(); }, p = (m) => { a(!0), n?.(m); }; try { - u.addEventListener("load", f), u.addEventListener("error", p); + u.addEventListener("load", d), u.addEventListener("error", p); } catch { - f(); + d(); } }, onError: c @@ -29340,7 +29340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho T.useEffect(() => { i.current && e && (u(!0), s(!1), i.current.src = e); }, [e]); - const f = T.useCallback( + const d = T.useCallback( (m) => { s(!0), u(!1), n?.(m); }, @@ -29351,10 +29351,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return T.useEffect(() => { const m = i.current; if (m) - return m.addEventListener("error", f), m.addEventListener("load", p), () => { - m.removeEventListener("error", f), m.removeEventListener("load", p); + return m.addEventListener("error", d), m.addEventListener("load", p), () => { + m.removeEventListener("error", d), m.removeEventListener("load", p); }; - }, [f, p]), a ? /* @__PURE__ */ S.jsx(pT, { text: "Failed to load image" }) : /* @__PURE__ */ S.jsx( + }, [d, p]), a ? /* @__PURE__ */ S.jsx(pT, { text: "Failed to load image" }) : /* @__PURE__ */ S.jsx( "img", { ref: i, @@ -29374,22 +29374,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return /* @__PURE__ */ S.jsx(o, { scope: v, itemMap: _, collectionRef: E, children: x }); }; a.displayName = t; - const s = e + "CollectionSlot", c = /* @__PURE__ */ dd(s), u = On.forwardRef( + const s = e + "CollectionSlot", c = /* @__PURE__ */ df(s), u = On.forwardRef( (b, v) => { const { scope: x, children: E } = b, _ = i(s, x), C = un(v, _.collectionRef); return /* @__PURE__ */ S.jsx(c, { ref: C, children: E }); } ); u.displayName = s; - const f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ dd(f), g = On.forwardRef( + const d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ df(d), g = On.forwardRef( (b, v) => { - const { scope: x, children: E, ..._ } = b, C = On.useRef(null), k = un(v, C), A = i(f, x); + const { scope: x, children: E, ..._ } = b, C = On.useRef(null), k = un(v, C), A = i(d, x); return On.useEffect(() => (A.itemMap.set(C, { ref: C, ..._ }), () => { A.itemMap.delete(C); })), /* @__PURE__ */ S.jsx(m, { [p]: "", ref: k, children: E }); } ); - g.displayName = f; + g.displayName = d; function y(b) { const v = i(e + "CollectionConsumer", b); return On.useCallback(() => { @@ -29438,7 +29438,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho swipeDirection: o = "right", swipeThreshold: i = 50, children: a - } = e, [s, c] = T.useState(null), [u, f] = T.useState(0), p = T.useRef(!1), m = T.useRef(!1); + } = e, [s, c] = T.useState(null), [u, d] = T.useState(0), p = T.useRef(!1), m = T.useRef(!1); return n.trim() || console.error( `Invalid prop \`label\` supplied to \`${mT}\`. Expected non-empty \`string\`.` ), /* @__PURE__ */ S.jsx(gT.Provider, { scope: t, children: /* @__PURE__ */ S.jsx( @@ -29452,8 +29452,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho toastCount: u, viewport: s, onViewportChange: c, - onToastAdd: T.useCallback(() => f((g) => g + 1), []), - onToastRemove: T.useCallback(() => f((g) => g - 1), []), + onToastAdd: T.useCallback(() => d((g) => g + 1), []), + onToastRemove: T.useCallback(() => d((g) => g - 1), []), isFocusedToastEscapeKeyDownRef: p, isClosePausedRef: m, children: a @@ -29468,7 +29468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho hotkey: r = Qce, label: o = "Notifications ({hotkey})", ...i - } = e, a = Lb(W6, n), s = Yce(n), c = T.useRef(null), u = T.useRef(null), f = T.useRef(null), p = T.useRef(null), m = un(t, p, a.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = a.toastCount > 0; + } = e, a = Lb(W6, n), s = Yce(n), c = T.useRef(null), u = T.useRef(null), d = T.useRef(null), p = T.useRef(null), m = un(t, p, a.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = a.toastCount > 0; T.useEffect(() => { const v = (x) => { r.length !== 0 && r.every((_) => x[_] || x.code === _) && p.current?.focus(); @@ -29500,7 +29500,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const b = T.useCallback( ({ tabbingDirection: v }) => { const E = s().map((_) => { - const C = _.ref.current, k = [C, ...due(C)]; + const C = _.ref.current, k = [C, ...fue(C)]; return v === "forwards" ? k : k.reverse(); }); return (v === "forwards" ? E.reverse() : E).flat(); @@ -29519,7 +29519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; } const I = b({ tabbingDirection: A ? "backwards" : "forwards" }), $ = I.findIndex((L) => L === k); - VS(I.slice($ + 1)) ? E.preventDefault() : A ? u.current?.focus() : f.current?.focus(); + VS(I.slice($ + 1)) ? E.preventDefault() : A ? u.current?.focus() : d.current?.focus(); } }; return v.addEventListener("keydown", x), () => v.removeEventListener("keydown", x); @@ -29549,7 +29549,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y && /* @__PURE__ */ S.jsx( QE, { - ref: f, + ref: d, onFocusFromOutsideViewport: () => { const v = b({ tabbingDirection: "backwards" @@ -29604,15 +29604,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u.currentTarget.setAttribute("data-swipe", "start"); }), onSwipeMove: Le(e.onSwipeMove, (u) => { - const { x: f, y: p } = u.detail.delta; - u.currentTarget.setAttribute("data-swipe", "move"), u.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${f}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${p}px`); + const { x: d, y: p } = u.detail.delta; + u.currentTarget.setAttribute("data-swipe", "move"), u.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${d}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${p}px`); }), onSwipeCancel: Le(e.onSwipeCancel, (u) => { u.currentTarget.setAttribute("data-swipe", "cancel"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y"); }), onSwipeEnd: Le(e.onSwipeEnd, (u) => { - const { x: f, y: p } = u.detail.delta; - u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${f}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${p}px`), c(!1); + const { x: d, y: p } = u.detail.delta; + u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${d}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${p}px`), c(!1); }) } ) }); @@ -29633,7 +29633,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onEscapeKeyDown: s, onPause: c, onResume: u, - onSwipeStart: f, + onSwipeStart: d, onSwipeMove: p, onSwipeCancel: m, onSwipeEnd: g, @@ -29699,9 +29699,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onPointerMove: Le(e.onPointerMove, (j) => { if (!_.current) return; const V = j.clientX - _.current.x, F = j.clientY - _.current.y, K = !!C.current, W = ["left", "right"].includes(b.swipeDirection), Y = ["left", "up"].includes(b.swipeDirection) ? Math.min : Math.max, B = W ? Y(0, V) : 0, D = W ? 0 : Y(0, F), G = j.pointerType === "touch" ? 10 : 2, z = { x: B, y: D }, H = { originalEvent: j, delta: z }; - K ? (C.current = z, dy(eue, p, H, { + K ? (C.current = z, fy(eue, p, H, { discrete: !1 - })) : YI(z, b.swipeDirection, G) ? (C.current = z, dy(Jce, f, H, { + })) : YI(z, b.swipeDirection, G) ? (C.current = z, fy(Jce, d, H, { discrete: !1 }), j.target.setPointerCapture(j.pointerId)) : (Math.abs(V) > G || Math.abs(F) > G) && (_.current = null); }), @@ -29709,9 +29709,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const V = C.current, F = j.target; if (F.hasPointerCapture(j.pointerId) && F.releasePointerCapture(j.pointerId), C.current = null, _.current = null, V) { const K = j.currentTarget, W = { originalEvent: j, delta: V }; - YI(V, b.swipeDirection, b.swipeThreshold) ? dy(nue, g, W, { + YI(V, b.swipeDirection, b.swipeThreshold) ? fy(nue, g, W, { discrete: !0 - }) : dy( + }) : fy( tue, m, W, @@ -29805,7 +29805,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), t; } - function dy(e, t, n, { discrete: r }) { + function fy(e, t, n, { discrete: r }) { const o = n.originalEvent.currentTarget, i = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n }); t && o.addEventListener(e, t, { once: !0 }), r ? Mk(o, i) : o.dispatchEvent(i); } @@ -29826,7 +29826,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function uue(e) { return e.nodeType === e.ELEMENT_NODE; } - function due(e) { + function fue(e) { const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (r) => { const o = r.tagName === "INPUT" && r.type === "hidden"; @@ -29840,7 +29840,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const t = document.activeElement; return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t)); } - var fue = q6, pue = G6, hue = Y6, mue = X6, gue = Z6, yue = J6, vue = yT; + var due = q6, pue = G6, hue = Y6, mue = X6, gue = Z6, yue = J6, vue = yT; const lr = []; for (let e = 0; e < 256; ++e) lr.push((e + 256).toString(16).slice(1)); @@ -29873,7 +29873,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ), o9 = T.createContext( void 0 ), Eue = 350, Cue = ({ children: e, fixedHeight: t, duration: n = 5e3, maxVisible: r = 3, ...o }) => { - const [i, a] = T.useState(/* @__PURE__ */ new Map()), s = T.useRef(/* @__PURE__ */ new Map()), c = T.useRef(null), u = T.useRef(!0), f = T.useCallback(() => { + const [i, a] = T.useState(/* @__PURE__ */ new Map()), s = T.useRef(/* @__PURE__ */ new Map()), c = T.useRef(null), u = T.useRef(!0), d = T.useCallback(() => { const x = Array.from(s.current).reverse(); if (t) { const E = t; @@ -29966,11 +29966,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: T.useMemo( () => ({ toastElementsMapRef: s, - sortToasts: f + sortToasts: d }), - [f] + [d] ), - children: /* @__PURE__ */ S.jsxs(fue, { ...o, children: [ + children: /* @__PURE__ */ S.jsxs(due, { ...o, children: [ e, Array.from(i).map(([x, E]) => /* @__PURE__ */ S.jsx( Aue, @@ -29978,7 +29978,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho id: x, toast: E, onOpenChange: (_) => { - _ || (s.current.delete(x), f(), a((C) => { + _ || (s.current.delete(x), d(), a((C) => { const k = new Map(C), A = k.get(x); return A && k.set(x, { ...A, open: !1 }), k; }), setTimeout(() => { @@ -30051,13 +30051,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho e === "error" && /* @__PURE__ */ S.jsx(qoe, { style: { color: "#ff4b4b", fontSize: "20px" } }) ] }) : null, Oue = {}, ZI = (e) => { let t; - const n = /* @__PURE__ */ new Set(), r = (f, p) => { - const m = typeof f == "function" ? f(t) : f; + const n = /* @__PURE__ */ new Set(), r = (d, p) => { + const m = typeof d == "function" ? d(t) : d; if (!Object.is(m, t)) { const g = t; t = p ?? (typeof m != "object" || m === null) ? m : Object.assign({}, t, m), n.forEach((y) => y(t, g)); } - }, o = () => t, c = { setState: r, getState: o, getInitialState: () => u, subscribe: (f) => (n.add(f), () => n.delete(f)), destroy: () => { + }, o = () => t, c = { setState: r, getState: o, getInitialState: () => u, subscribe: (d) => (n.add(d), () => n.delete(d)), destroy: () => { (Oue ? "production" : void 0) !== "production" && console.warn( "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected." ), n.clear(); @@ -30103,8 +30103,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function u(p, m) { return m(); } - var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : s; - return KS.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, KS; + var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : s; + return KS.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, KS; } var JI; function Nue() { @@ -30115,11 +30115,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (e$) return WS; e$ = 1; var e = Oh(), t = Nue(); - function n(u, f) { - return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f; + function n(u, d) { + return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d; } var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect, s = e.useMemo, c = e.useDebugValue; - return WS.useSyncExternalStoreWithSelector = function(u, f, p, m, g) { + return WS.useSyncExternalStoreWithSelector = function(u, d, p, m, g) { var y = i(null); if (y.current === null) { var b = { hasValue: !1, value: null }; @@ -30143,14 +30143,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var E = !1, _, C, k = p === void 0 ? null : p; return [ function() { - return x(f()); + return x(d()); }, k === null ? void 0 : function() { return x(k()); } ]; }, - [f, p, m, g] + [d, p, m, g] ); var v = o(u, y[0], y[1]); return a( @@ -30221,17 +30221,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.context.worker.getLibraryManager(); } } - const fy = 2e3; + const dy = 2e3; class zue extends ts { constructor(t) { - super(t), this._responsive = !1, this._last_pong = 0, this._last_pong = Date.now() - fy * 100; + super(t), this._responsive = !1, this._last_pong = 0, this._last_pong = Date.now() - dy * 100; } start() { this.stop(), this.pingInterval = setInterval(() => { this.context.worker.is_open && this.context.worker.send({ type: "ping" }); - }, fy), this.responsivenessCheckInterval = setInterval(() => { - this._responsive = Date.now() - this._last_pong <= fy * 3; - }, fy * 2); + }, dy), this.responsivenessCheckInterval = setInterval(() => { + this._responsive = Date.now() - this._last_pong <= dy * 3; + }, dy * 2); } stop() { this.pingInterval && clearInterval(this.pingInterval), this.responsivenessCheckInterval && clearInterval(this.responsivenessCheckInterval); @@ -30248,7 +30248,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, i$ = 2e3, a$ = 2e3; class Bue extends ts { constructor(t) { - super(t), this._local_nodeupdates = /* @__PURE__ */ new Map(), this._local_groupupdates = /* @__PURE__ */ new Map(), this.on_sync_complete = t.on_sync_complete || (async () => { + super(t), this._local_nodeupdates = /* @__PURE__ */ new Map(), this._local_groupupdates = /* @__PURE__ */ new Map(), this._after_next_sync = [], this.on_sync_complete = t.on_sync_complete || (async () => { }); } start() { @@ -30262,7 +30262,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this._nodeupdatetimer && clearTimeout(this._nodeupdatetimer), this._groupupdatetimer && clearTimeout(this._groupupdatetimer); } async stepwise_fullsync() { - this.context.worker._zustand && this.context.worker.is_open && (await this.sync_lib(), await this.sync_external_worker(), await this.sync_funcnodes_plugins(), await this.sync_nodespace(), await this.sync_view_state(), await this.on_sync_complete(this.context.worker)); + if (!this.context.worker._zustand || !this.context.worker.is_open) return; + await this.sync_lib(), await this.sync_external_worker(), await this.sync_funcnodes_plugins(), await this.sync_nodespace(), await this.sync_view_state(), await this.on_sync_complete(this.context.worker); + const t = this._after_next_sync.splice(0); + for (const n of t) + await n(this.context.worker), this._after_next_sync.includes(n) && this._after_next_sync.splice(this._after_next_sync.indexOf(n), 1); + } + add_after_next_sync(t) { + this._after_next_sync.push(t); + } + remove_after_next_sync(t) { + this._after_next_sync = this._after_next_sync.filter( + (n) => n !== t + ); } async sync_lib() { if (!this.context.worker._zustand || !this.context.worker.is_open) return; @@ -30615,7 +30627,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this._value; } } - const d9 = ({ + const f9 = ({ data: e, mime: t }) => { @@ -30659,14 +30671,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; if (await new Promise(async (u) => { if (this.context.worker.is_responsive) return u(); - const f = setInterval(() => { - this.context.worker.is_responsive && (clearInterval(f), u()); + const d = setInterval(() => { + this.context.worker.is_responsive && (clearInterval(d), u()); }, 100); }), o) { if (s && this._unique_cmd_outs[c.cmd] !== void 0) return this._unique_cmd_outs[c.cmd]; a < 0 && (a = 0); - const f = (async () => { + const d = (async () => { let p; for (; a >= 0; ) { const m = c.id || vT(); @@ -30697,7 +30709,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return delete this._unique_cmd_outs[c.cmd], p; })(); - return s && (this._unique_cmd_outs[c.cmd] = f), f; + return s && (this._unique_cmd_outs[c.cmd] = d), d; } return this.send(c); } @@ -30736,7 +30748,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!this.context.worker._zustand) return; const { node: o, io: i, preview: a, mime: s } = t, c = a ? "value" : "fullvalue"; (!o || !i) && console.error("Invalid io_value message", t); - const u = d9({ + const u = f9({ data: n, mime: s || "application/octet-stream" }); @@ -30780,21 +30792,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); return; } - const [c, u] = s.chunk.split("/"), f = s.msgid; + const [c, u] = s.chunk.split("/"), d = s.msgid; if (c === "1" && u === "1") return this.receive_bytes(s, i); - if (this.blobChunks[f] || (this.blobChunks[f] = { + if (this.blobChunks[d] || (this.blobChunks[d] = { chunks: Array.from({ length: parseInt(u) }, () => null), timestamp: Date.now() - }), this.blobChunks[f].chunks.length !== parseInt(u)) { + }), this.blobChunks[d].chunks.length !== parseInt(u)) { console.error("Total chunks mismatch"); return; } - if (this.blobChunks[f].chunks[parseInt(c) - 1] = t, this.blobChunks[f].chunks.every((p) => p !== null)) { + if (this.blobChunks[d].chunks[parseInt(c) - 1] = t, this.blobChunks[d].chunks.every((p) => p !== null)) { const p = new Uint8Array( - this.blobChunks[f].chunks.reduce((m, g) => m.concat(Array.from(g)), []) + this.blobChunks[d].chunks.reduce((m, g) => m.concat(Array.from(g)), []) ); - this.receive_bytes(s, p), delete this.blobChunks[f]; + this.receive_bytes(s, p), delete this.blobChunks[d]; } } catch (n) { console.error("Websocketworker: onbytes error", n, t); @@ -31163,7 +31175,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho kwargs: { nid: t, ioid: n }, wait_for_response: !0, as_bytes: !0 - }), { header: o, bytes: i } = r, { mime: a } = o, s = d9({ + }), { header: o, bytes: i } = r, { mime: a } = o, s = f9({ data: i, mime: a || "application/octet-stream" }); @@ -31343,7 +31355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } } - class f9 { + class d9 { // Public getter for handlers to access eventManager getEventManager() { return this._eventManager; @@ -31523,9 +31535,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { toString: Xue } = Object.prototype, { getPrototypeOf: bT } = Object, { iterator: Bb, toStringTag: h9 } = Symbol, Ub = /* @__PURE__ */ ((e) => (t) => { const n = Xue.call(t); return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); - })(/* @__PURE__ */ Object.create(null)), si = (e) => (e = e.toLowerCase(), (t) => Ub(t) === e), Vb = (e) => (t) => typeof t === e, { isArray: Ld } = Array, gd = Vb("undefined"); + })(/* @__PURE__ */ Object.create(null)), si = (e) => (e = e.toLowerCase(), (t) => Ub(t) === e), Vb = (e) => (t) => typeof t === e, { isArray: zf } = Array, yf = Vb("undefined"); function Kh(e) { - return e !== null && !gd(e) && e.constructor !== null && !gd(e.constructor) && Ur(e.constructor.isBuffer) && e.constructor.isBuffer(e); + return e !== null && !yf(e) && e.constructor !== null && !yf(e.constructor) && Ur(e.constructor.isBuffer) && e.constructor.isBuffer(e); } const m9 = si("ArrayBuffer"); function Zue(e) { @@ -31537,7 +31549,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !1; const t = bT(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(h9 in e) && !(Bb in e); - }, ede = (e) => { + }, efe = (e) => { if (!Yh(e) || Kh(e)) return !1; try { @@ -31545,16 +31557,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } catch { return !1; } - }, tde = si("Date"), nde = si("File"), rde = si("Blob"), ode = si("FileList"), ide = (e) => Yh(e) && Ur(e.pipe), ade = (e) => { + }, tfe = si("Date"), nfe = si("File"), rfe = si("Blob"), ofe = si("FileList"), ife = (e) => Yh(e) && Ur(e.pipe), afe = (e) => { let t; return e && (typeof FormData == "function" && e instanceof FormData || Ur(e.append) && ((t = Ub(e)) === "formdata" || // detect form-data instance t === "object" && Ur(e.toString) && e.toString() === "[object FormData]")); - }, sde = si("URLSearchParams"), [lde, cde, ude, dde] = ["ReadableStream", "Request", "Response", "Headers"].map(si), fde = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); + }, sfe = si("URLSearchParams"), [lfe, cfe, ufe, ffe] = ["ReadableStream", "Request", "Response", "Headers"].map(si), dfe = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function Xh(e, t, { allOwnKeys: n = !1 } = {}) { if (e === null || typeof e > "u") return; let r, o; - if (typeof e != "object" && (e = [e]), Ld(e)) + if (typeof e != "object" && (e = [e]), zf(e)) for (r = 0, o = e.length; r < o; r++) t.call(null, e[r], r, e); else { @@ -31577,23 +31589,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return o; return null; } - const nc = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, v9 = (e) => !gd(e) && e !== nc; + const nc = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, v9 = (e) => !yf(e) && e !== nc; function JE() { const { caseless: e, skipUndefined: t } = v9(this) && this || {}, n = {}, r = (o, i) => { const a = e && y9(n, i) || i; - $v(n[a]) && $v(o) ? n[a] = JE(n[a], o) : $v(o) ? n[a] = JE({}, o) : Ld(o) ? n[a] = o.slice() : (!t || !gd(o)) && (n[a] = o); + $v(n[a]) && $v(o) ? n[a] = JE(n[a], o) : $v(o) ? n[a] = JE({}, o) : zf(o) ? n[a] = o.slice() : (!t || !yf(o)) && (n[a] = o); }; for (let o = 0, i = arguments.length; o < i; o++) arguments[o] && Xh(arguments[o], r); return n; } - const pde = (e, t, n, { allOwnKeys: r } = {}) => (Xh(t, (o, i) => { + const pfe = (e, t, n, { allOwnKeys: r } = {}) => (Xh(t, (o, i) => { n && Ur(o) ? e[i] = p9(o, n) : e[i] = o; - }, { allOwnKeys: r }), e), hde = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mde = (e, t, n, r) => { + }, { allOwnKeys: r }), e), hfe = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mfe = (e, t, n, r) => { e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n); - }, gde = (e, t, n, r) => { + }, gfe = (e, t, n, r) => { let o, i, a; const s = {}; if (t = t || {}, e == null) return t; @@ -31603,44 +31615,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho e = n !== !1 && bT(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; - }, yde = (e, t, n) => { + }, yfe = (e, t, n) => { e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; const r = e.indexOf(t, n); return r !== -1 && r === n; - }, vde = (e) => { + }, vfe = (e) => { if (!e) return null; - if (Ld(e)) return e; + if (zf(e)) return e; let t = e.length; if (!g9(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; - }, bde = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && bT(Uint8Array)), xde = (e, t) => { + }, bfe = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && bT(Uint8Array)), xfe = (e, t) => { const r = (e && e[Bb]).call(e); let o; for (; (o = r.next()) && !o.done; ) { const i = o.value; t.call(e, i[0], i[1]); } - }, wde = (e, t) => { + }, wfe = (e, t) => { let n; const r = []; for (; (n = e.exec(t)) !== null; ) r.push(n); return r; - }, Sde = si("HTMLFormElement"), _de = (e) => e.toLowerCase().replace( + }, Sfe = si("HTMLFormElement"), _fe = (e) => e.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(n, r, o) { return r.toUpperCase() + o; } - ), s$ = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ede = si("RegExp"), b9 = (e, t) => { + ), s$ = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Efe = si("RegExp"), b9 = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; Xh(n, (o, i) => { let a; (a = t(o, i, e)) !== !1 && (r[i] = a || o); }), Object.defineProperties(e, r); - }, Cde = (e) => { + }, Cfe = (e) => { b9(e, (t, n) => { if (Ur(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1; @@ -31655,19 +31667,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } }); - }, kde = (e, t) => { + }, kfe = (e, t) => { const n = {}, r = (o) => { o.forEach((i) => { n[i] = !0; }); }; - return Ld(e) ? r(e) : r(String(e).split(t)), n; - }, Tde = () => { - }, Ade = (e, t) => e != null && Number.isFinite(e = +e) ? e : t; - function Rde(e) { + return zf(e) ? r(e) : r(String(e).split(t)), n; + }, Tfe = () => { + }, Afe = (e, t) => e != null && Number.isFinite(e = +e) ? e : t; + function Rfe(e) { return !!(e && Ur(e.append) && e[h9] === "FormData" && e[Bb]); } - const Ode = (e) => { + const Ofe = (e) => { const t = new Array(10), n = (r, o) => { if (Yh(r)) { if (t.indexOf(r) >= 0) @@ -31676,82 +31688,82 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return r; if (!("toJSON" in r)) { t[o] = r; - const i = Ld(r) ? [] : {}; + const i = zf(r) ? [] : {}; return Xh(r, (a, s) => { const c = n(a, o + 1); - !gd(c) && (i[s] = c); + !yf(c) && (i[s] = c); }), t[o] = void 0, i; } } return r; }; return n(e, 0); - }, Mde = si("AsyncFunction"), Nde = (e) => e && (Yh(e) || Ur(e)) && Ur(e.then) && Ur(e.catch), x9 = ((e, t) => e ? setImmediate : t ? ((n, r) => (nc.addEventListener("message", ({ source: o, data: i }) => { + }, Mfe = si("AsyncFunction"), Nfe = (e) => e && (Yh(e) || Ur(e)) && Ur(e.then) && Ur(e.catch), x9 = ((e, t) => e ? setImmediate : t ? ((n, r) => (nc.addEventListener("message", ({ source: o, data: i }) => { o === nc && i === n && r.length && r.shift()(); }, !1), (o) => { r.push(o), nc.postMessage(n, "*"); }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( typeof setImmediate == "function", Ur(nc.postMessage) - ), Pde = typeof queueMicrotask < "u" ? queueMicrotask.bind(nc) : typeof process < "u" && process.nextTick || x9, Ide = (e) => e != null && Ur(e[Bb]), me = { - isArray: Ld, + ), Pfe = typeof queueMicrotask < "u" ? queueMicrotask.bind(nc) : typeof process < "u" && process.nextTick || x9, Ife = (e) => e != null && Ur(e[Bb]), me = { + isArray: zf, isArrayBuffer: m9, isBuffer: Kh, - isFormData: ade, + isFormData: afe, isArrayBufferView: Zue, isString: Que, isNumber: g9, isBoolean: Jue, isObject: Yh, isPlainObject: $v, - isEmptyObject: ede, - isReadableStream: lde, - isRequest: cde, - isResponse: ude, - isHeaders: dde, - isUndefined: gd, - isDate: tde, - isFile: nde, - isBlob: rde, - isRegExp: Ede, + isEmptyObject: efe, + isReadableStream: lfe, + isRequest: cfe, + isResponse: ufe, + isHeaders: ffe, + isUndefined: yf, + isDate: tfe, + isFile: nfe, + isBlob: rfe, + isRegExp: Efe, isFunction: Ur, - isStream: ide, - isURLSearchParams: sde, - isTypedArray: bde, - isFileList: ode, + isStream: ife, + isURLSearchParams: sfe, + isTypedArray: bfe, + isFileList: ofe, forEach: Xh, merge: JE, - extend: pde, - trim: fde, - stripBOM: hde, - inherits: mde, - toFlatObject: gde, + extend: pfe, + trim: dfe, + stripBOM: hfe, + inherits: mfe, + toFlatObject: gfe, kindOf: Ub, kindOfTest: si, - endsWith: yde, - toArray: vde, - forEachEntry: xde, - matchAll: wde, - isHTMLForm: Sde, + endsWith: yfe, + toArray: vfe, + forEachEntry: xfe, + matchAll: wfe, + isHTMLForm: Sfe, hasOwnProperty: s$, hasOwnProp: s$, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: b9, - freezeMethods: Cde, - toObjectSet: kde, - toCamelCase: _de, - noop: Tde, - toFiniteNumber: Ade, + freezeMethods: Cfe, + toObjectSet: kfe, + toCamelCase: _fe, + noop: Tfe, + toFiniteNumber: Afe, findKey: y9, global: nc, isContextDefined: v9, - isSpecCompliantForm: Rde, - toJSONObject: Ode, - isAsyncFn: Mde, - isThenable: Nde, + isSpecCompliantForm: Rfe, + toJSONObject: Ofe, + isAsyncFn: Mfe, + isThenable: Nfe, setImmediate: x9, - asap: Pde, - isIterable: Ide + asap: Pfe, + isIterable: Ife }; function ct(e, t, n, r, o) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null); @@ -31799,13 +31811,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(w9, "isAxiosError", { value: !0 }); ct.from = (e, t, n, r, o, i) => { const a = Object.create(w9); - me.toFlatObject(e, a, function(f) { - return f !== Error.prototype; + me.toFlatObject(e, a, function(d) { + return d !== Error.prototype; }, (u) => u !== "isAxiosError"); const s = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t; return ct.call(a, s, c, n, r, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a; }; - const $de = null; + const $fe = null; function eC(e) { return me.isPlainObject(e) || me.isArray(e); } @@ -31817,10 +31829,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return o = _9(o), !n && i ? "[" + o + "]" : o; }).join(n ? "." : "") : t; } - function jde(e) { + function jfe(e) { return me.isArray(e) && !e.some(eC); } - const Dde = me.toFlatObject(me, {}, null, function(t) { + const Dfe = me.toFlatObject(me, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function Hb(e, t, n) { @@ -31833,7 +31845,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, !1, function(b, v) { return !me.isUndefined(v[b]); }); - const r = n.metaTokens, o = n.visitor || f, i = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && me.isSpecCompliantForm(t); + const r = n.metaTokens, o = n.visitor || d, i = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && me.isSpecCompliantForm(t); if (!me.isFunction(o)) throw new TypeError("visitor must be a function"); function u(y) { @@ -31846,12 +31858,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new ct("Blob is not supported. Use a Buffer instead."); return me.isArrayBuffer(y) || me.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y; } - function f(y, b, v) { + function d(y, b, v) { let x = y; if (y && !v && typeof y == "object") { if (me.endsWith(b, "{}")) b = r ? b : b.slice(0, -2), y = JSON.stringify(y); - else if (me.isArray(y) && jde(y) || (me.isFileList(y) || me.endsWith(b, "[]")) && (x = me.toArray(y))) + else if (me.isArray(y) && jfe(y) || (me.isFileList(y) || me.endsWith(b, "[]")) && (x = me.toArray(y))) return b = _9(b), x.forEach(function(_, C) { !(me.isUndefined(_) || _ === null) && t.append( // eslint-disable-next-line no-nested-ternary @@ -31862,8 +31874,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return eC(y) ? !0 : (t.append(l$(v, b, i), u(y)), !1); } - const p = [], m = Object.assign(Dde, { - defaultVisitor: f, + const p = [], m = Object.assign(Dfe, { + defaultVisitor: d, convertValue: u, isVisitable: eC }); @@ -31915,13 +31927,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n(o[0]) + "=" + n(o[1]); }, "").join("&"); }; - function Fde(e) { + function Ffe(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+"); } function C9(e, t, n) { if (!t) return e; - const r = n && n.encode || Fde; + const r = n && n.encode || Ffe; me.isFunction(n) && (n = { serialize: n }); @@ -31991,27 +32003,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 - }, Lde = typeof URLSearchParams < "u" ? URLSearchParams : xT, zde = typeof FormData < "u" ? FormData : null, Bde = typeof Blob < "u" ? Blob : null, Ude = { + }, Lfe = typeof URLSearchParams < "u" ? URLSearchParams : xT, zfe = typeof FormData < "u" ? FormData : null, Bfe = typeof Blob < "u" ? Blob : null, Ufe = { isBrowser: !0, classes: { - URLSearchParams: Lde, - FormData: zde, - Blob: Bde + URLSearchParams: Lfe, + FormData: zfe, + Blob: Bfe }, protocols: ["http", "https", "file", "blob", "url", "data"] - }, wT = typeof window < "u" && typeof document < "u", tC = typeof navigator == "object" && navigator || void 0, Vde = wT && (!tC || ["ReactNative", "NativeScript", "NS"].indexOf(tC.product) < 0), Hde = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef - self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qde = wT && window.location.href || "http://localhost", Wde = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + }, wT = typeof window < "u" && typeof document < "u", tC = typeof navigator == "object" && navigator || void 0, Vfe = wT && (!tC || ["ReactNative", "NativeScript", "NS"].indexOf(tC.product) < 0), Hfe = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qfe = wT && window.location.href || "http://localhost", Wfe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hasBrowserEnv: wT, - hasStandardBrowserEnv: Vde, - hasStandardBrowserWebWorkerEnv: Hde, + hasStandardBrowserEnv: Vfe, + hasStandardBrowserWebWorkerEnv: Hfe, navigator: tC, - origin: qde + origin: qfe }, Symbol.toStringTag, { value: "Module" })), yr = { - ...Wde, - ...Ude + ...Wfe, + ...Ufe }; - function Gde(e, t) { + function Gfe(e, t) { return Hb(e, new yr.classes.URLSearchParams(), { visitor: function(n, r, o, i) { return yr.isNode && me.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); @@ -32019,10 +32031,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...t }); } - function Kde(e) { + function Kfe(e) { return me.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } - function Yde(e) { + function Yfe(e) { const t = {}, n = Object.keys(e); let r; const o = n.length; @@ -32036,17 +32048,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let a = n[i++]; if (a === "__proto__") return !0; const s = Number.isFinite(+a), c = i >= n.length; - return a = !a && me.isArray(o) ? o.length : a, c ? (me.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !s) : ((!o[a] || !me.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && me.isArray(o[a]) && (o[a] = Yde(o[a])), !s); + return a = !a && me.isArray(o) ? o.length : a, c ? (me.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !s) : ((!o[a] || !me.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && me.isArray(o[a]) && (o[a] = Yfe(o[a])), !s); } if (me.isFormData(e) && me.isFunction(e.entries)) { const n = {}; return me.forEachEntry(e, (r, o) => { - t(Kde(r), o, n, 0); + t(Kfe(r), o, n, 0); }), n; } return null; } - function Xde(e, t, n) { + function Xfe(e, t, n) { if (me.isString(e)) try { return (t || JSON.parse)(e), me.trim(e); @@ -32072,7 +32084,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let s; if (i) { if (r.indexOf("application/x-www-form-urlencoded") > -1) - return Gde(t, this.formSerializer).toString(); + return Gfe(t, this.formSerializer).toString(); if ((s = me.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const c = this.env && this.env.FormData; return Hb( @@ -32082,7 +32094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); } } - return i || o ? (n.setContentType("application/json", !1), Xde(t)) : t; + return i || o ? (n.setContentType("application/json", !1), Xfe(t)) : t; }], transformResponse: [function(t) { const n = this.transitional || Zh.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json"; @@ -32125,7 +32137,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho me.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { Zh.headers[e] = {}; }); - const Zde = me.toObjectSet([ + const Zfe = me.toObjectSet([ "age", "authorization", "content-length", @@ -32143,28 +32155,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "referer", "retry-after", "user-agent" - ]), Qde = (e) => { + ]), Qfe = (e) => { const t = {}; let n, r, o; return e && e.split(` `).forEach(function(a) { - o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Zde[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); + o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Zfe[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); }), t; - }, d$ = /* @__PURE__ */ Symbol("internals"); - function Kf(e) { + }, f$ = /* @__PURE__ */ Symbol("internals"); + function Kd(e) { return e && String(e).trim().toLowerCase(); } function jv(e) { return e === !1 || e == null ? e : me.isArray(e) ? e.map(jv) : String(e); } - function Jde(e) { + function Jfe(e) { const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; r = n.exec(e); ) t[r[1]] = r[2]; return t; } - const efe = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); + const ede = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function YS(e, t, n, r, o) { if (me.isFunction(r)) return r.call(this, t, n); @@ -32175,10 +32187,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return r.test(t); } } - function tfe(e) { + function tde(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); } - function nfe(e, t) { + function nde(e, t) { const n = me.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { @@ -32196,23 +32208,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho set(t, n, r) { const o = this; function i(s, c, u) { - const f = Kf(c); - if (!f) + const d = Kd(c); + if (!d) throw new Error("header name must be a non-empty string"); - const p = me.findKey(o, f); + const p = me.findKey(o, d); (!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] = jv(s)); } - const a = (s, c) => me.forEach(s, (u, f) => i(u, f, c)); + const a = (s, c) => me.forEach(s, (u, d) => i(u, d, c)); if (me.isPlainObject(t) || t instanceof this.constructor) a(t, n); - else if (me.isString(t) && (t = t.trim()) && !efe(t)) - a(Qde(t), n); + else if (me.isString(t) && (t = t.trim()) && !ede(t)) + a(Qfe(t), n); else if (me.isObject(t) && me.isIterable(t)) { let s = {}, c, u; - for (const f of t) { - if (!me.isArray(f)) + for (const d of t) { + if (!me.isArray(d)) throw TypeError("Object iterator must return a key-value pair"); - s[u = f[0]] = (c = s[u]) ? me.isArray(c) ? [...c, f[1]] : [c, f[1]] : f[1]; + s[u = d[0]] = (c = s[u]) ? me.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1]; } a(s, n); } else @@ -32220,14 +32232,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this; } get(t, n) { - if (t = Kf(t), t) { + if (t = Kd(t), t) { const r = me.findKey(this, t); if (r) { const o = this[r]; if (!n) return o; if (n === !0) - return Jde(o); + return Jfe(o); if (me.isFunction(n)) return n.call(this, o, r); if (me.isRegExp(n)) @@ -32237,7 +32249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } has(t, n) { - if (t = Kf(t), t) { + if (t = Kd(t), t) { const r = me.findKey(this, t); return !!(r && this[r] !== void 0 && (!n || YS(this, this[r], r, n))); } @@ -32247,7 +32259,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const r = this; let o = !1; function i(a) { - if (a = Kf(a), a) { + if (a = Kd(a), a) { const s = me.findKey(r, a); s && (!n || YS(r, r[s], s, n)) && (delete r[s], o = !0); } @@ -32271,7 +32283,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n[a] = jv(o), delete n[i]; return; } - const s = t ? tfe(i) : String(i).trim(); + const s = t ? tde(i) : String(i).trim(); s !== i && delete n[i], n[s] = jv(o), r[s] = !0; }), this; } @@ -32305,12 +32317,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n.forEach((o) => r.set(o)), r; } static accessor(t) { - const r = (this[d$] = this[d$] = { + const r = (this[f$] = this[f$] = { accessors: {} }).accessors, o = this.prototype; function i(a) { - const s = Kf(a); - r[s] || (nfe(o, a), r[s] = !0); + const s = Kd(a); + r[s] || (nde(o, a), r[s] = !0); } return me.isArray(t) ? t.forEach(i) : i(t), this; } @@ -32336,10 +32348,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function A9(e) { return !!(e && e.__CANCEL__); } - function zd(e, t, n) { + function Bf(e, t, n) { ct.call(this, e ?? "canceled", ct.ERR_CANCELED, t, n), this.name = "CanceledError"; } - me.inherits(zd, ct, { + me.inherits(Bf, ct, { __CANCEL__: !0 }); function R9(e, t, n) { @@ -32352,43 +32364,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n )); } - function rfe(e) { + function rde(e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return t && t[1] || ""; } - function ofe(e, t) { + function ode(e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let o = 0, i = 0, a; return t = t !== void 0 ? t : 1e3, function(c) { - const u = Date.now(), f = r[i]; + const u = Date.now(), d = r[i]; a || (a = u), n[o] = c, r[o] = u; let p = i, m = 0; for (; p !== o; ) m += n[p++], p = p % e; if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - a < t) return; - const g = f && u - f; + const g = d && u - d; return g ? Math.round(m * 1e3 / g) : void 0; }; } - function ife(e, t) { + function ide(e, t) { let n = 0, r = 1e3 / t, o, i; - const a = (u, f = Date.now()) => { - n = f, o = null, i && (clearTimeout(i), i = null), e(...u); + const a = (u, d = Date.now()) => { + n = d, o = null, i && (clearTimeout(i), i = null), e(...u); }; return [(...u) => { - const f = Date.now(), p = f - n; - p >= r ? a(u, f) : (o = u, i || (i = setTimeout(() => { + const d = Date.now(), p = d - n; + p >= r ? a(u, d) : (o = u, i || (i = setTimeout(() => { i = null, a(o); }, r - p))); }, () => o && a(o)]; } const x0 = (e, t, n = 3) => { let r = 0; - const o = ofe(50, 250); - return ife((i) => { - const a = i.loaded, s = i.lengthComputable ? i.total : void 0, c = a - r, u = o(c), f = a <= s; + const o = ode(50, 250); + return ide((i) => { + const a = i.loaded, s = i.lengthComputable ? i.total : void 0, c = a - r, u = o(c), d = a <= s; r = a; const p = { loaded: a, @@ -32396,24 +32408,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho progress: s ? a / s : void 0, bytes: c, rate: u || void 0, - estimated: u && s && f ? (s - a) / u : void 0, + estimated: u && s && d ? (s - a) / u : void 0, event: i, lengthComputable: s != null, [t ? "download" : "upload"]: !0 }; e(p); }, n); - }, f$ = (e, t) => { + }, d$ = (e, t) => { const n = e != null; return [(r) => t[0]({ lengthComputable: n, total: e, loaded: r }), t[1]]; - }, p$ = (e) => (...t) => me.asap(() => e(...t)), afe = yr.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, yr.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( + }, p$ = (e) => (...t) => me.asap(() => e(...t)), ade = yr.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, yr.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( new URL(yr.origin), yr.navigator && /(msie|trident)/i.test(yr.navigator.userAgent) - ) : () => !0, sfe = yr.hasStandardBrowserEnv ? ( + ) : () => !0, sde = yr.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(e, t, n, r, o, i, a) { @@ -32442,42 +32454,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } ); - function lfe(e) { + function lde(e) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); } - function cfe(e, t) { + function cde(e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; } function O9(e, t, n) { - let r = !lfe(t); - return e && (r || n == !1) ? cfe(e, t) : t; + let r = !lde(t); + return e && (r || n == !1) ? cde(e, t) : t; } const h$ = (e) => e instanceof Vr ? { ...e } : e; function pc(e, t) { t = t || {}; const n = {}; - function r(u, f, p, m) { - return me.isPlainObject(u) && me.isPlainObject(f) ? me.merge.call({ caseless: m }, u, f) : me.isPlainObject(f) ? me.merge({}, f) : me.isArray(f) ? f.slice() : f; + function r(u, d, p, m) { + return me.isPlainObject(u) && me.isPlainObject(d) ? me.merge.call({ caseless: m }, u, d) : me.isPlainObject(d) ? me.merge({}, d) : me.isArray(d) ? d.slice() : d; } - function o(u, f, p, m) { - if (me.isUndefined(f)) { + function o(u, d, p, m) { + if (me.isUndefined(d)) { if (!me.isUndefined(u)) return r(void 0, u, p, m); - } else return r(u, f, p, m); + } else return r(u, d, p, m); } - function i(u, f) { - if (!me.isUndefined(f)) - return r(void 0, f); + function i(u, d) { + if (!me.isUndefined(d)) + return r(void 0, d); } - function a(u, f) { - if (me.isUndefined(f)) { + function a(u, d) { + if (me.isUndefined(d)) { if (!me.isUndefined(u)) return r(void 0, u); - } else return r(void 0, f); + } else return r(void 0, d); } - function s(u, f, p) { + function s(u, d, p) { if (p in t) - return r(u, f); + return r(u, d); if (p in e) return r(void 0, u); } @@ -32510,11 +32522,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho socketPath: a, responseEncoding: a, validateStatus: s, - headers: (u, f, p) => o(h$(u), h$(f), p, !0) + headers: (u, d, p) => o(h$(u), h$(d), p, !0) }; - return me.forEach(Object.keys({ ...e, ...t }), function(f) { - const p = c[f] || o, m = p(e[f], t[f], f); - me.isUndefined(m) && p !== s || (n[f] = m); + return me.forEach(Object.keys({ ...e, ...t }), function(d) { + const p = c[d] || o, m = p(e[d], t[d], d); + me.isUndefined(m) && p !== s || (n[d] = m); }), n; } const M9 = (e) => { @@ -32528,24 +32540,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho a.setContentType(void 0); else if (me.isFunction(n.getHeaders)) { const c = n.getHeaders(), u = ["content-type", "content-length"]; - Object.entries(c).forEach(([f, p]) => { - u.includes(f.toLowerCase()) && a.set(f, p); + Object.entries(c).forEach(([d, p]) => { + u.includes(d.toLowerCase()) && a.set(d, p); }); } } - if (yr.hasStandardBrowserEnv && (r && me.isFunction(r) && (r = r(t)), r || r !== !1 && afe(t.url))) { - const c = o && i && sfe.read(i); + if (yr.hasStandardBrowserEnv && (r && me.isFunction(r) && (r = r(t)), r || r !== !1 && ade(t.url))) { + const c = o && i && sde.read(i); c && a.set(o, c); } return t; - }, ufe = typeof XMLHttpRequest < "u", dfe = ufe && function(e) { + }, ude = typeof XMLHttpRequest < "u", fde = ude && function(e) { return new Promise(function(n, r) { const o = M9(e); let i = o.data; const a = Vr.from(o.headers).normalize(); - let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, f, p, m, g, y; + let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, d, p, m, g, y; function b() { - g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f); + g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d); } let v = new XMLHttpRequest(); v.open(o.method.toUpperCase(), o.url, !0), v.timeout = o.timeout; @@ -32586,25 +32598,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho )), v = null; }, i === void 0 && a.setContentType(null), "setRequestHeader" in v && me.forEach(a.toJSON(), function(C, k) { v.setRequestHeader(k, C); - }), me.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), u && ([m, y] = x0(u, !0), v.addEventListener("progress", m)), c && v.upload && ([p, g] = x0(c), v.upload.addEventListener("progress", p), v.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (f = (_) => { - v && (r(!_ || _.type ? new zd(null, e, v) : _), v.abort(), v = null); - }, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f))); - const E = rfe(o.url); + }), me.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), u && ([m, y] = x0(u, !0), v.addEventListener("progress", m)), c && v.upload && ([p, g] = x0(c), v.upload.addEventListener("progress", p), v.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (d = (_) => { + v && (r(!_ || _.type ? new Bf(null, e, v) : _), v.abort(), v = null); + }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d))); + const E = rde(o.url); if (E && yr.protocols.indexOf(E) === -1) { r(new ct("Unsupported protocol " + E + ":", ct.ERR_BAD_REQUEST, e)); return; } v.send(i || null); }); - }, ffe = (e, t) => { + }, dde = (e, t) => { const { length: n } = e = e ? e.filter(Boolean) : []; if (t || n) { let r = new AbortController(), o; const i = function(u) { if (!o) { o = !0, s(); - const f = u instanceof Error ? u : this.reason; - r.abort(f instanceof ct ? f : new zd(f instanceof Error ? f.message : f)); + const d = u instanceof Error ? u : this.reason; + r.abort(d instanceof ct ? d : new Bf(d instanceof Error ? d.message : d)); } }; let a = t && setTimeout(() => { @@ -32619,7 +32631,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { signal: c } = r; return c.unsubscribe = () => me.asap(s), c; } - }, pfe = function* (e, t) { + }, pde = function* (e, t) { let n = e.byteLength; if (n < t) { yield e; @@ -32628,10 +32640,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let r = 0, o; for (; r < n; ) o = r + t, yield e.slice(r, o), r = o; - }, hfe = async function* (e, t) { - for await (const n of mfe(e)) - yield* pfe(n, t); - }, mfe = async function* (e) { + }, hde = async function* (e, t) { + for await (const n of mde(e)) + yield* pde(n, t); + }, mde = async function* (e) { if (e[Symbol.asyncIterator]) { yield* e; return; @@ -32648,24 +32660,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho await t.cancel(); } }, m$ = (e, t, n, r) => { - const o = hfe(e, t); + const o = hde(e, t); let i = 0, a, s = (c) => { a || (a = !0, r && r(c)); }; return new ReadableStream({ async pull(c) { try { - const { done: u, value: f } = await o.next(); + const { done: u, value: d } = await o.next(); if (u) { s(), c.close(); return; } - let p = f.byteLength; + let p = d.byteLength; if (n) { let m = i += p; n(m); } - c.enqueue(new Uint8Array(f)); + c.enqueue(new Uint8Array(d)); } catch (u) { throw s(u), u; } @@ -32676,7 +32688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { highWaterMark: 2 }); - }, g$ = 64 * 1024, { isFunction: py } = me, gfe = (({ Request: e, Response: t }) => ({ + }, g$ = 64 * 1024, { isFunction: py } = me, gde = (({ Request: e, Response: t }) => ({ Request: e, Response: t }))(me.global), { @@ -32688,10 +32700,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } catch { return !1; } - }, yfe = (e) => { + }, yde = (e) => { e = me.merge.call({ skipUndefined: !0 - }, gfe, e); + }, gde, e); const { fetch: t, Request: n, Response: r } = e, o = t ? py(t) : typeof fetch == "function", i = py(n), a = py(r); if (!o) return !1; @@ -32705,8 +32717,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }).headers.has("Content-Type"); return y && !b; - }), f = a && s && b$(() => me.isReadableStream(new r("").body)), p = { - stream: f && ((y) => y.body) + }), d = a && s && b$(() => me.isReadableStream(new r("").body)), p = { + stream: d && ((y) => y.body) }; o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((y) => { !p[y] && (p[y] = (b, v) => { @@ -32750,7 +32762,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fetchOptions: $ } = M9(y), L = t || fetch; O = O ? (O + "").toLowerCase() : "text"; - let N = ffe([E, _ && _.toAbortSignal()], C), U = null; + let N = dde([E, _ && _.toAbortSignal()], C), U = null; const j = N && N.unsubscribe && (() => { N.unsubscribe(); }); @@ -32763,7 +32775,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho duplex: "half" }), G; if (me.isFormData(x) && (G = D.headers.get("content-type")) && P.setContentType(G), D.body) { - const [z, H] = f$( + const [z, H] = d$( V, x0(p$(A)) ); @@ -32782,13 +32794,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; U = i && new n(b, K); let W = await (i ? L(U, $) : L(b, K)); - const Y = f && (O === "stream" || O === "response"); - if (f && (k || Y && j)) { + const Y = d && (O === "stream" || O === "response"); + if (d && (k || Y && j)) { const D = {}; ["status", "statusText", "headers"].forEach((X) => { D[X] = W[X]; }); - const G = me.toFiniteNumber(W.headers.get("content-length")), [z, H] = k && f$( + const G = me.toFiniteNumber(W.headers.get("content-length")), [z, H] = k && d$( G, x0(p$(k), !0) ) || []; @@ -32820,22 +32832,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ) : ct.from(F, F && F.code, y, U); } }; - }, vfe = /* @__PURE__ */ new Map(), N9 = (e) => { + }, vde = /* @__PURE__ */ new Map(), N9 = (e) => { let t = e && e.env || {}; const { fetch: n, Request: r, Response: o } = t, i = [ r, o, n ]; - let a = i.length, s = a, c, u, f = vfe; + let a = i.length, s = a, c, u, d = vde; for (; s--; ) - c = i[s], u = f.get(c), u === void 0 && f.set(c, u = s ? /* @__PURE__ */ new Map() : yfe(t)), f = u; + c = i[s], u = d.get(c), u === void 0 && d.set(c, u = s ? /* @__PURE__ */ new Map() : yde(t)), d = u; return u; }; N9(); const ST = { - http: $de, - xhr: dfe, + http: $fe, + xhr: fde, fetch: { get: N9 } @@ -32849,8 +32861,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(e, "adapterName", { value: t }); } }); - const x$ = (e) => `- ${e}`, bfe = (e) => me.isFunction(e) || e === null || e === !1; - function xfe(e, t) { + const x$ = (e) => `- ${e}`, bde = (e) => me.isFunction(e) || e === null || e === !1; + function xde(e, t) { e = me.isArray(e) ? e : [e]; const { length: n } = e; let r, o; @@ -32858,7 +32870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (let a = 0; a < n; a++) { r = e[a]; let s; - if (o = r, !bfe(r) && (o = ST[(s = String(r)).toLowerCase()], o === void 0)) + if (o = r, !bde(r) && (o = ST[(s = String(r)).toLowerCase()], o === void 0)) throw new ct(`Unknown adapter '${s}'`); if (o && (me.isFunction(o) || (o = o.get(t)))) break; @@ -32883,7 +32895,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Resolve an adapter from a list of adapter names or functions. * @type {Function} */ - getAdapter: xfe, + getAdapter: xde, /** * Exposes all known adapters * @type {Object} @@ -32892,7 +32904,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; function ZS(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) - throw new zd(null, e); + throw new Bf(null, e); } function w$(e) { return ZS(e), e.headers = Vr.from(e.headers), e.data = XS.call( @@ -32940,7 +32952,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho qb.spelling = function(t) { return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0); }; - function wfe(e, t, n) { + function wde(e, t, n) { if (typeof e != "object") throw new ct("options must be an object", ct.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); @@ -32958,7 +32970,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } const Dv = { - assertOptions: wfe, + assertOptions: wde, validators: qb }, vi = Dv.validators; let oc = class { @@ -33028,12 +33040,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.interceptors.response.forEach(function(b) { u.push(b.fulfilled, b.rejected); }); - let f, p = 0, m; + let d, p = 0, m; if (!c) { const y = [w$.bind(this), void 0]; - for (y.unshift(...s), y.push(...u), m = y.length, f = Promise.resolve(n); p < m; ) - f = f.then(y[p++], y[p++]); - return f; + for (y.unshift(...s), y.push(...u), m = y.length, d = Promise.resolve(n); p < m; ) + d = d.then(y[p++], y[p++]); + return d; } m = s.length; let g = n; @@ -33047,13 +33059,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } try { - f = w$.call(this, g); + d = w$.call(this, g); } catch (y) { return Promise.reject(y); } for (p = 0, m = u.length; p < m; ) - f = f.then(u[p++], u[p++]); - return f; + d = d.then(u[p++], u[p++]); + return d; } getUri(t) { t = pc(this.defaults, t); @@ -33085,7 +33097,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } oc.prototype[t] = n(), oc.prototype[t + "Form"] = n(!0); }); - let Sfe = class $9 { + let Sde = class $9 { constructor(t) { if (typeof t != "function") throw new TypeError("executor must be a function."); @@ -33109,7 +33121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho r.unsubscribe(i); }, a; }, t(function(i, a, s) { - r.reason || (r.reason = new zd(i, a, s), n(r.reason)); + r.reason || (r.reason = new Bf(i, a, s), n(r.reason)); }); } /** @@ -33158,12 +33170,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } }; - function _fe(e) { + function _de(e) { return function(n) { return e.apply(null, n); }; } - function Efe(e) { + function Ede(e) { return me.isObject(e) && e.isAxiosError === !0; } const nC = { @@ -33248,8 +33260,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const In = j9(Zh); In.Axios = oc; - In.CanceledError = zd; - In.CancelToken = Sfe; + In.CanceledError = Bf; + In.CancelToken = Sde; In.isCancel = A9; In.VERSION = I9; In.toFormData = Hb; @@ -33258,8 +33270,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In.all = function(t) { return Promise.all(t); }; - In.spread = _fe; - In.isAxiosError = Efe; + In.spread = _de; + In.isAxiosError = Ede; In.mergeConfig = pc; In.AxiosHeaders = Vr; In.formToJSON = (e) => T9(me.isHTMLForm(e) ? new FormData(e) : e); @@ -33284,7 +33296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho getAdapter: Pze, mergeConfig: Ize } = In; - class D9 extends f9 { + class D9 extends d9 { constructor(t) { super(t), this._websocket = null, this.reconnectAttempts = 0, this.maxReconnectAttempts = 999, this.initialTimeout = 200, this.maxTimeout = 5e3, this._reconnect = !0, this._reconnect_timeout = void 0, this._url = t.url, this._reconnect_timeout = setTimeout(() => { this.connect(); @@ -33445,7 +33457,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.connect(); } } - class Cfe { + class Cde { constructor(t, n) { this.ws = null, this.reconnectAttempts = 0, this.maxReconnectAttempts = 999, this.initialTimeout = 200, this.maxTimeout = 2e3, n.logger.debug("Initializing worker manager"), this._wsuri = t, this.zustand = n, this.workers = {}, this.on_setWorker = (r) => { this.zustand.set_worker(r); @@ -33600,12 +33612,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho lib: void 0, worker: e.worker }; - }, kfe = { + }, kde = { show: !0 - }, Tfe = { + }, Tde = { show: !0, showmenu: !0 - }, Afe = { + }, Ade = { minimap: !0, static: !1, minZoom: 0.1, @@ -33613,15 +33625,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho allowFullScreen: !0, allowExpand: !0, showNodeSettings: !0 - }, Rfe = { + }, Rde = { id: "", // required debug: !1, useWorkerManager: !0, show_library: !0, - header: Tfe, - flow: Afe, - library: kfe + header: Tde, + flow: Ade, + library: kde }, F9 = [ "classic", "metal", @@ -33645,7 +33657,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho e[n] && (t += (t && " ") + n); return t; } - var Ofe = { value: () => { + var Ode = { value: () => { } }; function Wb() { for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) { @@ -33657,7 +33669,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Fv(e) { this._ = e; } - function Mfe(e, t) { + function Mde(e, t) { return e.trim().split(/^|\s+/).map(function(n) { var r = "", o = n.indexOf("."); if (o >= 0 && (r = n.slice(o + 1), n = n.slice(0, o)), n && !t.hasOwnProperty(n)) throw new Error("unknown type: " + n); @@ -33667,9 +33679,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Fv.prototype = Wb.prototype = { constructor: Fv, on: function(e, t) { - var n = this._, r = Mfe(e + "", n), o, i = -1, a = r.length; + var n = this._, r = Mde(e + "", n), o, i = -1, a = r.length; if (arguments.length < 2) { - for (; ++i < a; ) if ((o = (e = r[i]).type) && (o = Nfe(n[o], e.name))) return o; + for (; ++i < a; ) if ((o = (e = r[i]).type) && (o = Nde(n[o], e.name))) return o; return; } if (t != null && typeof t != "function") throw new Error("invalid callback: " + t); @@ -33693,7 +33705,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (var r = this._[e], o = 0, i = r.length; o < i; ++o) r[o].value.apply(t, n); } }; - function Nfe(e, t) { + function Nde(e, t) { for (var n = 0, r = e.length, o; n < r; ++n) if ((o = e[n]).name === t) return o.value; @@ -33701,7 +33713,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function _$(e, t, n) { for (var r = 0, o = e.length; r < o; ++r) if (e[r].name === t) { - e[r] = Ofe, e = e.slice(0, r).concat(e.slice(r + 1)); + e[r] = Ode, e = e.slice(0, r).concat(e.slice(r + 1)); break; } return n != null && e.push({ name: t, value: n }), e; @@ -33718,53 +33730,53 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = e += "", n = t.indexOf(":"); return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), E$.hasOwnProperty(t) ? { space: E$[t], local: e } : e; } - function Pfe(e) { + function Pde(e) { return function() { var t = this.ownerDocument, n = this.namespaceURI; return n === rC && t.documentElement.namespaceURI === rC ? t.createElement(e) : t.createElementNS(n, e); }; } - function Ife(e) { + function Ide(e) { return function() { return this.ownerDocument.createElementNS(e.space, e.local); }; } function L9(e) { var t = Gb(e); - return (t.local ? Ife : Pfe)(t); + return (t.local ? Ide : Pde)(t); } - function $fe() { + function $de() { } function _T(e) { - return e == null ? $fe : function() { + return e == null ? $de : function() { return this.querySelector(e); }; } - function jfe(e) { + function jde(e) { typeof e != "function" && (e = _T(e)); for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o) - for (var i = t[o], a = i.length, s = r[o] = new Array(a), c, u, f = 0; f < a; ++f) - (c = i[f]) && (u = e.call(c, c.__data__, f, i)) && ("__data__" in c && (u.__data__ = c.__data__), s[f] = u); + for (var i = t[o], a = i.length, s = r[o] = new Array(a), c, u, d = 0; d < a; ++d) + (c = i[d]) && (u = e.call(c, c.__data__, d, i)) && ("__data__" in c && (u.__data__ = c.__data__), s[d] = u); return new fo(r, this._parents); } - function Dfe(e) { + function Dde(e) { return e == null ? [] : Array.isArray(e) ? e : Array.from(e); } - function Ffe() { + function Fde() { return []; } function z9(e) { - return e == null ? Ffe : function() { + return e == null ? Fde : function() { return this.querySelectorAll(e); }; } - function Lfe(e) { + function Lde(e) { return function() { - return Dfe(e.apply(this, arguments)); + return Dde(e.apply(this, arguments)); }; } - function zfe(e) { - typeof e == "function" ? e = Lfe(e) : e = z9(e); + function zde(e) { + typeof e == "function" ? e = Lde(e) : e = z9(e); for (var t = this._groups, n = t.length, r = [], o = [], i = 0; i < n; ++i) for (var a = t[i], s = a.length, c, u = 0; u < s; ++u) (c = a[u]) && (r.push(e.call(c, c.__data__, u, a)), o.push(c)); @@ -33780,31 +33792,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t.matches(e); }; } - var Bfe = Array.prototype.find; - function Ufe(e) { + var Bde = Array.prototype.find; + function Ude(e) { return function() { - return Bfe.call(this.children, e); + return Bde.call(this.children, e); }; } - function Vfe() { + function Vde() { return this.firstElementChild; } - function Hfe(e) { - return this.select(e == null ? Vfe : Ufe(typeof e == "function" ? e : U9(e))); + function Hde(e) { + return this.select(e == null ? Vde : Ude(typeof e == "function" ? e : U9(e))); } - var qfe = Array.prototype.filter; - function Wfe() { + var qde = Array.prototype.filter; + function Wde() { return Array.from(this.children); } - function Gfe(e) { + function Gde(e) { return function() { - return qfe.call(this.children, e); + return qde.call(this.children, e); }; } - function Kfe(e) { - return this.selectAll(e == null ? Wfe : Gfe(typeof e == "function" ? e : U9(e))); + function Kde(e) { + return this.selectAll(e == null ? Wde : Gde(typeof e == "function" ? e : U9(e))); } - function Yfe(e) { + function Yde(e) { typeof e != "function" && (e = B9(e)); for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o) for (var i = t[o], a = i.length, s = r[o] = [], c, u = 0; u < a; ++u) @@ -33814,7 +33826,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function V9(e) { return new Array(e.length); } - function Xfe() { + function Xde() { return new fo(this._enter || this._groups.map(V9), this._parents); } function w0(e, t) { @@ -33835,24 +33847,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this._parent.querySelectorAll(e); } }; - function Zfe(e) { + function Zde(e) { return function() { return e; }; } - function Qfe(e, t, n, r, o, i) { + function Qde(e, t, n, r, o, i) { for (var a = 0, s, c = t.length, u = i.length; a < u; ++a) (s = t[a]) ? (s.__data__ = i[a], r[a] = s) : n[a] = new w0(e, i[a]); for (; a < c; ++a) (s = t[a]) && (o[a] = s); } - function Jfe(e, t, n, r, o, i, a) { - var s, c, u = /* @__PURE__ */ new Map(), f = t.length, p = i.length, m = new Array(f), g; - for (s = 0; s < f; ++s) + function Jde(e, t, n, r, o, i, a) { + var s, c, u = /* @__PURE__ */ new Map(), d = t.length, p = i.length, m = new Array(d), g; + for (s = 0; s < d; ++s) (c = t[s]) && (m[s] = g = a.call(c, c.__data__, s, t) + "", u.has(g) ? o[s] = c : u.set(g, c)); for (s = 0; s < p; ++s) g = a.call(e, i[s], s, i) + "", (c = u.get(g)) ? (r[s] = c, c.__data__ = i[s], u.delete(g)) : n[s] = new w0(e, i[s]); - for (s = 0; s < f; ++s) + for (s = 0; s < d; ++s) (c = t[s]) && u.get(m[s]) === c && (o[s] = c); } function epe(e) { @@ -33860,11 +33872,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function tpe(e, t) { if (!arguments.length) return Array.from(this, epe); - var n = t ? Jfe : Qfe, r = this._parents, o = this._groups; - typeof e != "function" && (e = Zfe(e)); + var n = t ? Jde : Qde, r = this._parents, o = this._groups; + typeof e != "function" && (e = Zde(e)); for (var i = o.length, a = new Array(i), s = new Array(i), c = new Array(i), u = 0; u < i; ++u) { - var f = r[u], p = o[u], m = p.length, g = npe(e.call(f, f && f.__data__, u, r)), y = g.length, b = s[u] = new Array(y), v = a[u] = new Array(y), x = c[u] = new Array(m); - n(f, p, b, v, x, g, t); + var d = r[u], p = o[u], m = p.length, g = npe(e.call(d, d && d.__data__, u, r)), y = g.length, b = s[u] = new Array(y), v = a[u] = new Array(y), x = c[u] = new Array(m); + n(d, p, b, v, x, g, t); for (var E = 0, _ = 0, C, k; E < y; ++E) if (C = b[E]) { for (E >= _ && (_ = E + 1); !(k = v[_]) && ++_ < y; ) ; @@ -33885,8 +33897,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function ipe(e) { for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, o = n.length, i = r.length, a = Math.min(o, i), s = new Array(o), c = 0; c < a; ++c) - for (var u = n[c], f = r[c], p = u.length, m = s[c] = new Array(p), g, y = 0; y < p; ++y) - (g = u[y] || f[y]) && (m[y] = g); + for (var u = n[c], d = r[c], p = u.length, m = s[c] = new Array(p), g, y = 0; y < p; ++y) + (g = u[y] || d[y]) && (m[y] = g); for (; c < o; ++c) s[c] = n[c]; return new fo(s, this._parents); @@ -33903,8 +33915,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return p && m ? e(p.__data__, m.__data__) : !p - !m; } for (var n = this._groups, r = n.length, o = new Array(r), i = 0; i < r; ++i) { - for (var a = n[i], s = a.length, c = o[i] = new Array(s), u, f = 0; f < s; ++f) - (u = a[f]) && (c[f] = u); + for (var a = n[i], s = a.length, c = o[i] = new Array(s), u, d = 0; d < s; ++d) + (u = a[d]) && (c[d] = u); c.sort(t); } return new fo(o, this._parents).order(); @@ -33919,7 +33931,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function upe() { return Array.from(this); } - function dpe() { + function fpe() { for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], o = 0, i = r.length; o < i; ++o) { var a = r[o]; @@ -33927,7 +33939,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return null; } - function fpe() { + function dpe() { let e = 0; for (const t of this) ++e; return e; @@ -34001,9 +34013,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } function Cpe(e, t, n) { - return arguments.length > 1 ? this.each((t == null ? Spe : typeof t == "function" ? Epe : _pe)(e, t, n ?? "")) : yd(this.node(), e); + return arguments.length > 1 ? this.each((t == null ? Spe : typeof t == "function" ? Epe : _pe)(e, t, n ?? "")) : vf(this.node(), e); } - function yd(e, t) { + function vf(e, t) { return e.style.getPropertyValue(t) || H9(e).getComputedStyle(e, null).getPropertyValue(t); } function kpe(e) { @@ -34197,10 +34209,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (arguments.length < 2) { var s = this.node().__on; if (s) { - for (var c = 0, u = s.length, f; c < u; ++c) - for (o = 0, f = s[c]; o < i; ++o) - if ((a = r[o]).type === f.type && a.name === f.name) - return f.value; + for (var c = 0, u = s.length, d; c < u; ++c) + for (o = 0, d = s[c]; o < i; ++o) + if ((a = r[o]).type === d.type && a.name === d.name) + return d.value; } return; } @@ -34241,13 +34253,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } fo.prototype = Qh.prototype = { constructor: fo, - select: jfe, - selectAll: zfe, - selectChild: Hfe, - selectChildren: Kfe, - filter: Yfe, + select: jde, + selectAll: zde, + selectChild: Hde, + selectChildren: Kde, + filter: Yde, data: tpe, - enter: Xfe, + enter: Xde, exit: rpe, join: ope, merge: ipe, @@ -34256,8 +34268,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho sort: spe, call: cpe, nodes: upe, - node: dpe, - size: fpe, + node: fpe, + size: dpe, empty: ppe, each: hpe, attr: wpe, @@ -34280,13 +34292,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function io(e) { return typeof e == "string" ? new fo([[document.querySelector(e)]], [document.documentElement]) : new fo([[e]], X9); } - function dhe(e) { + function fhe(e) { let t; for (; t = e.sourceEvent; ) e = t; return e; } function Wo(e, t) { - if (e = dhe(e), t === void 0 && (t = e.currentTarget), t) { + if (e = fhe(e), t === void 0 && (t = e.currentTarget), t) { var n = t.ownerSVGElement || t; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -34299,20 +34311,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return [e.pageX, e.pageY]; } - const fhe = { passive: !1 }, rh = { capture: !0, passive: !1 }; + const dhe = { passive: !1 }, rh = { capture: !0, passive: !1 }; function QS(e) { e.stopImmediatePropagation(); } - function id(e) { + function af(e) { e.preventDefault(), e.stopImmediatePropagation(); } function Z9(e) { - var t = e.document.documentElement, n = io(e).on("dragstart.drag", id, rh); - "onselectstart" in t ? n.on("selectstart.drag", id, rh) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none"); + var t = e.document.documentElement, n = io(e).on("dragstart.drag", af, rh); + "onselectstart" in t ? n.on("selectstart.drag", af, rh) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none"); } function Q9(e, t) { var n = e.document.documentElement, r = io(e).on("dragstart.drag", null); - t && (r.on("click.drag", id, rh), setTimeout(function() { + t && (r.on("click.drag", af, rh), setTimeout(function() { r.on("click.drag", null); }, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect); } @@ -34327,7 +34339,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y: s, dx: c, dy: u, - dispatch: f + dispatch: d }) { Object.defineProperties(this, { type: { value: e, enumerable: !0, configurable: !0 }, @@ -34340,7 +34352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y: { value: s, enumerable: !0, configurable: !0 }, dx: { value: c, enumerable: !0, configurable: !0 }, dy: { value: u, enumerable: !0, configurable: !0 }, - _: { value: f } + _: { value: d } }); } oC.prototype.on = function() { @@ -34360,25 +34372,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return navigator.maxTouchPoints || "ontouchstart" in this; } function J9() { - var e = phe, t = hhe, n = mhe, r = ghe, o = {}, i = Wb("start", "drag", "end"), a = 0, s, c, u, f, p = 0; + var e = phe, t = hhe, n = mhe, r = ghe, o = {}, i = Wb("start", "drag", "end"), a = 0, s, c, u, d, p = 0; function m(C) { - C.on("mousedown.drag", g).filter(r).on("touchstart.drag", v).on("touchmove.drag", x, fhe).on("touchend.drag touchcancel.drag", E).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)"); + C.on("mousedown.drag", g).filter(r).on("touchstart.drag", v).on("touchmove.drag", x, dhe).on("touchend.drag touchcancel.drag", E).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)"); } function g(C, k) { - if (!(f || !e.call(this, C, k))) { + if (!(d || !e.call(this, C, k))) { var A = _(this, t.call(this, C, k), C, k, "mouse"); A && (io(C.view).on("mousemove.drag", y, rh).on("mouseup.drag", b, rh), Z9(C.view), QS(C), u = !1, s = C.clientX, c = C.clientY, A("start", C)); } } function y(C) { - if (id(C), !u) { + if (af(C), !u) { var k = C.clientX - s, A = C.clientY - c; u = k * k + A * A > p; } o.mouse("drag", C); } function b(C) { - io(C.view).on("mousemove.drag mouseup.drag", null), Q9(C.view, u), id(C), o.mouse("end", C); + io(C.view).on("mousemove.drag mouseup.drag", null), Q9(C.view, u), af(C), o.mouse("end", C); } function v(C, k) { if (e.call(this, C, k)) { @@ -34390,12 +34402,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function x(C) { var k = C.changedTouches, A = k.length, O, P; for (O = 0; O < A; ++O) - (P = o[k[O].identifier]) && (id(C), P("drag", C, k[O])); + (P = o[k[O].identifier]) && (af(C), P("drag", C, k[O])); } function E(C) { var k = C.changedTouches, A = k.length, O, P; - for (f && clearTimeout(f), f = setTimeout(function() { - f = null; + for (d && clearTimeout(d), d = setTimeout(function() { + d = null; }, 500), O = 0; O < A; ++O) (P = o[k[O].identifier]) && (QS(C), P("end", C, k[O])); } @@ -34469,7 +34481,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Jh() { } - var oh = 0.7, S0 = 1 / oh, ad = "\\s*([+-]?\\d+)\\s*", ih = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", qi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yhe = /^#([0-9a-f]{3,8})$/, vhe = new RegExp(`^rgb\\(${ad},${ad},${ad}\\)$`), bhe = new RegExp(`^rgb\\(${qi},${qi},${qi}\\)$`), xhe = new RegExp(`^rgba\\(${ad},${ad},${ad},${ih}\\)$`), whe = new RegExp(`^rgba\\(${qi},${qi},${qi},${ih}\\)$`), She = new RegExp(`^hsl\\(${ih},${qi},${qi}\\)$`), _he = new RegExp(`^hsla\\(${ih},${qi},${qi},${ih}\\)$`), C$ = { + var oh = 0.7, S0 = 1 / oh, sf = "\\s*([+-]?\\d+)\\s*", ih = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", qi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yhe = /^#([0-9a-f]{3,8})$/, vhe = new RegExp(`^rgb\\(${sf},${sf},${sf}\\)$`), bhe = new RegExp(`^rgb\\(${qi},${qi},${qi}\\)$`), xhe = new RegExp(`^rgba\\(${sf},${sf},${sf},${ih}\\)$`), whe = new RegExp(`^rgba\\(${qi},${qi},${qi},${ih}\\)$`), She = new RegExp(`^hsl\\(${ih},${qi},${qi}\\)$`), _he = new RegExp(`^hsla\\(${ih},${qi},${qi},${ih}\\)$`), C$ = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -34784,8 +34796,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var n = Mhe(t); function r(o, i) { var a = n((o = iC(o)).r, (i = iC(i)).r), s = n(o.g, i.g), c = n(o.b, i.b), u = nB(o.opacity, i.opacity); - return function(f) { - return o.r = a(f), o.g = s(f), o.b = c(f), o.opacity = u(f), o + ""; + return function(d) { + return o.r = a(d), o.g = s(d), o.b = c(d), o.opacity = u(d), o + ""; }; } return r.gamma = e, r; @@ -34847,7 +34859,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (e = e + "", t = t + ""; (r = aC.exec(e)) && (o = e_.exec(t)); ) (i = o.index) > n && (i = t.slice(n, i), s[a] ? s[a] += i : s[++a] = i), (r = r[0]) === (o = o[0]) ? s[a] ? s[a] += o : s[++a] = o : (s[++a] = null, c.push({ i: a, x: Ti(r, o) })), n = e_.lastIndex; return n < t.length && (i = t.slice(n), s[a] ? s[a] += i : s[++a] = i), s.length < 2 ? c[0] ? Fhe(c[0].x) : Dhe(t) : (t = c.length, function(u) { - for (var f = 0, p; f < t; ++f) s[(p = c[f]).i] = p.x(u); + for (var d = 0, p; d < t; ++d) s[(p = c[d]).i] = p.x(u); return s.join(""); }); } @@ -34886,27 +34898,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function o(u) { return u.length ? u.pop() + " " : ""; } - function i(u, f, p, m, g, y) { - if (u !== p || f !== m) { + function i(u, d, p, m, g, y) { + if (u !== p || d !== m) { var b = g.push("translate(", null, t, null, n); - y.push({ i: b - 4, x: Ti(u, p) }, { i: b - 2, x: Ti(f, m) }); + y.push({ i: b - 4, x: Ti(u, p) }, { i: b - 2, x: Ti(d, m) }); } else (p || m) && g.push("translate(" + p + t + m + n); } - function a(u, f, p, m) { - u !== f ? (u - f > 180 ? f += 360 : f - u > 180 && (u += 360), m.push({ i: p.push(o(p) + "rotate(", null, r) - 2, x: Ti(u, f) })) : f && p.push(o(p) + "rotate(" + f + r); + function a(u, d, p, m) { + u !== d ? (u - d > 180 ? d += 360 : d - u > 180 && (u += 360), m.push({ i: p.push(o(p) + "rotate(", null, r) - 2, x: Ti(u, d) })) : d && p.push(o(p) + "rotate(" + d + r); } - function s(u, f, p, m) { - u !== f ? m.push({ i: p.push(o(p) + "skewX(", null, r) - 2, x: Ti(u, f) }) : f && p.push(o(p) + "skewX(" + f + r); + function s(u, d, p, m) { + u !== d ? m.push({ i: p.push(o(p) + "skewX(", null, r) - 2, x: Ti(u, d) }) : d && p.push(o(p) + "skewX(" + d + r); } - function c(u, f, p, m, g, y) { - if (u !== p || f !== m) { + function c(u, d, p, m, g, y) { + if (u !== p || d !== m) { var b = g.push(o(g) + "scale(", null, ",", null, ")"); - y.push({ i: b - 4, x: Ti(u, p) }, { i: b - 2, x: Ti(f, m) }); + y.push({ i: b - 4, x: Ti(u, p) }, { i: b - 2, x: Ti(d, m) }); } else (p !== 1 || m !== 1) && g.push(o(g) + "scale(" + p + "," + m + ")"); } - return function(u, f) { + return function(u, d) { var p = [], m = []; - return u = e(u), f = e(f), i(u.translateX, u.translateY, f.translateX, f.translateY, p, m), a(u.rotate, f.rotate, p, m), s(u.skewX, f.skewX, p, m), c(u.scaleX, u.scaleY, f.scaleX, f.scaleY, p, m), u = f = null, function(g) { + return u = e(u), d = e(d), i(u.translateX, u.translateY, d.translateX, d.translateY, p, m), a(u.rotate, d.rotate, p, m), s(u.skewX, d.skewX, p, m), c(u.scaleX, u.scaleY, d.scaleX, d.scaleY, p, m), u = d = null, function(g) { for (var y = -1, b = m.length, v; ++y < b; ) p[(v = m[y]).i] = v.x(g); return p.join(""); }; @@ -34924,7 +34936,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const Lv = (function e(t, n, r) { function o(i, a) { - var s = i[0], c = i[1], u = i[2], f = a[0], p = a[1], m = a[2], g = f - s, y = p - c, b = g * g + y * y, v, x; + var s = i[0], c = i[1], u = i[2], d = a[0], p = a[1], m = a[2], g = d - s, y = p - c, b = g * g + y * y, v, x; if (b < Vhe) x = Math.log(m / u) / t, v = function(O) { return [ @@ -34951,7 +34963,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e(a, s, c); }, o; })(Math.SQRT2, 2, 4); - var vd = 0, vp = 0, Yf = 0, aB = 1e3, C0, bp, k0 = 0, mc = 0, Kb = 0, ah = typeof performance == "object" && performance.now ? performance : Date, sB = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) { + var bf = 0, vp = 0, Yd = 0, aB = 1e3, C0, bp, k0 = 0, mc = 0, Kb = 0, ah = typeof performance == "object" && performance.now ? performance : Date, sB = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) { setTimeout(e, 17); }; function TT() { @@ -34978,17 +34990,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return r.restart(e, t, n), r; } function Ghe() { - TT(), ++vd; + TT(), ++bf; for (var e = C0, t; e; ) (t = mc - e._time) >= 0 && e._call.call(void 0, t), e = e._next; - --vd; + --bf; } function $$() { - mc = (k0 = ah.now()) + Kb, vd = vp = 0; + mc = (k0 = ah.now()) + Kb, bf = vp = 0; try { Ghe(); } finally { - vd = 0, Yhe(), mc = 0; + bf = 0, Yhe(), mc = 0; } } function Khe() { @@ -35001,10 +35013,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho bp = e, lC(r); } function lC(e) { - if (!vd) { + if (!bf) { vp && (vp = clearTimeout(vp)); var t = e - mc; - t > 24 ? (e < 1 / 0 && (vp = setTimeout($$, e - ah.now() - Kb)), Yf && (Yf = clearInterval(Yf))) : (Yf || (k0 = ah.now(), Yf = setInterval(Khe, aB)), vd = 1, sB($$)); + t > 24 ? (e < 1 / 0 && (vp = setTimeout($$, e - ah.now() - Kb)), Yd && (Yd = clearInterval(Yd))) : (Yd || (k0 = ah.now(), Yd = setInterval(Khe, aB)), bf = 1, sB($$)); } } function j$(e, t, n) { @@ -35056,24 +35068,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n.state = D$, n.timer.restart(a, n.delay, n.time), n.delay <= u && a(u - n.delay); } function a(u) { - var f, p, m, g; + var d, p, m, g; if (n.state !== D$) return c(); - for (f in r) - if (g = r[f], g.name === n.name) { + for (d in r) + if (g = r[d], g.name === n.name) { if (g.state === zv) return j$(a); - g.state === F$ ? (g.state = Bv, g.timer.stop(), g.on.call("interrupt", e, e.__data__, g.index, g.group), delete r[f]) : +f < t && (g.state = Bv, g.timer.stop(), g.on.call("cancel", e, e.__data__, g.index, g.group), delete r[f]); + g.state === F$ ? (g.state = Bv, g.timer.stop(), g.on.call("interrupt", e, e.__data__, g.index, g.group), delete r[d]) : +d < t && (g.state = Bv, g.timer.stop(), g.on.call("cancel", e, e.__data__, g.index, g.group), delete r[d]); } if (j$(function() { n.state === zv && (n.state = F$, n.timer.restart(s, n.delay, n.time), s(u)); }), n.state = cC, n.on.call("start", e, e.__data__, n.index, n.group), n.state === cC) { - for (n.state = zv, o = new Array(m = n.tween.length), f = 0, p = -1; f < m; ++f) - (g = n.tween[f].value.call(e, e.__data__, n.index, n.group)) && (o[++p] = g); + for (n.state = zv, o = new Array(m = n.tween.length), d = 0, p = -1; d < m; ++d) + (g = n.tween[d].value.call(e, e.__data__, n.index, n.group)) && (o[++p] = g); o.length = p + 1; } } function s(u) { - for (var f = u < n.duration ? n.ease.call(null, u / n.duration) : (n.timer.restart(c), n.state = uC, 1), p = -1, m = o.length; ++p < m; ) - o[p].call(e, f); + for (var d = u < n.duration ? n.ease.call(null, u / n.duration) : (n.timer.restart(c), n.state = uC, 1), p = -1, m = o.length; ++p < m; ) + o[p].call(e, d); n.state === uC && (n.on.call("end", e, e.__data__, n.index, n.group), c()); } function c() { @@ -35203,16 +35215,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.setAttribute(e, t.call(this, n)); }; } - function dme(e, t) { + function fme(e, t) { return function(n) { this.setAttributeNS(e.space, e.local, t.call(this, n)); }; } - function fme(e, t) { + function dme(e, t) { var n, r; function o() { var i = t.apply(this, arguments); - return i !== r && (n = (r = i) && dme(e, i)), n; + return i !== r && (n = (r = i) && fme(e, i)), n; } return o._value = t, o; } @@ -35230,7 +35242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (t == null) return this.tween(n, null); if (typeof t != "function") throw new Error(); var r = Gb(e); - return this.tween(n, (r.local ? fme : pme)(r, t)); + return this.tween(n, (r.local ? dme : pme)(r, t)); } function mme(e, t) { return function() { @@ -35291,7 +35303,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function kme(e) { if (e._id !== this._id) throw new Error(); for (var t = this._groups, n = e._groups, r = t.length, o = n.length, i = Math.min(r, o), a = new Array(r), s = 0; s < i; ++s) - for (var c = t[s], u = n[s], f = c.length, p = a[s] = new Array(f), m, g = 0; g < f; ++g) + for (var c = t[s], u = n[s], d = c.length, p = a[s] = new Array(d), m, g = 0; g < d; ++g) (m = c[g] || u[g]) && (p[g] = m); for (; s < r; ++s) a[s] = t[s]; @@ -35328,19 +35340,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = this._name, n = this._id; typeof e != "function" && (e = _T(e)); for (var r = this._groups, o = r.length, i = new Array(o), a = 0; a < o; ++a) - for (var s = r[a], c = s.length, u = i[a] = new Array(c), f, p, m = 0; m < c; ++m) - (f = s[m]) && (p = e.call(f, f.__data__, m, s)) && ("__data__" in f && (p.__data__ = f.__data__), u[m] = p, Yb(u[m], t, n, m, u, li(f, n))); + for (var s = r[a], c = s.length, u = i[a] = new Array(c), d, p, m = 0; m < c; ++m) + (d = s[m]) && (p = e.call(d, d.__data__, m, s)) && ("__data__" in d && (p.__data__ = d.__data__), u[m] = p, Yb(u[m], t, n, m, u, li(d, n))); return new Xa(i, this._parents, t, n); } function Pme(e) { var t = this._name, n = this._id; typeof e != "function" && (e = z9(e)); for (var r = this._groups, o = r.length, i = [], a = [], s = 0; s < o; ++s) - for (var c = r[s], u = c.length, f, p = 0; p < u; ++p) - if (f = c[p]) { - for (var m = e.call(f, f.__data__, p, c), g, y = li(f, n), b = 0, v = m.length; b < v; ++b) + for (var c = r[s], u = c.length, d, p = 0; p < u; ++p) + if (d = c[p]) { + for (var m = e.call(d, d.__data__, p, c), g, y = li(d, n), b = 0, v = m.length; b < v; ++b) (g = m[b]) && Yb(g, t, n, b, m, y); - i.push(m), a.push(f); + i.push(m), a.push(d); } return new Xa(i, a, t, n); } @@ -35351,11 +35363,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function jme(e, t) { var n, r, o; return function() { - var i = yd(this, e), a = (this.style.removeProperty(e), yd(this, e)); + var i = vf(this, e), a = (this.style.removeProperty(e), vf(this, e)); return i === a ? null : i === n && a === r ? o : o = t(n = i, r = a); }; } - function dB(e) { + function fB(e) { return function() { this.style.removeProperty(e); }; @@ -35363,27 +35375,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Dme(e, t, n) { var r, o = n + "", i; return function() { - var a = yd(this, e); + var a = vf(this, e); return a === o ? null : a === r ? i : i = t(r = a, n); }; } function Fme(e, t, n) { var r, o, i; return function() { - var a = yd(this, e), s = n(this), c = s + ""; - return s == null && (c = s = (this.style.removeProperty(e), yd(this, e))), a === c ? null : a === r && c === o ? i : (o = c, i = t(r = a, s)); + var a = vf(this, e), s = n(this), c = s + ""; + return s == null && (c = s = (this.style.removeProperty(e), vf(this, e))), a === c ? null : a === r && c === o ? i : (o = c, i = t(r = a, s)); }; } function Lme(e, t) { var n, r, o, i = "style." + t, a = "end." + i, s; return function() { - var c = ta(this, e), u = c.on, f = c.value[i] == null ? s || (s = dB(t)) : void 0; - (u !== n || o !== f) && (r = (n = u).copy()).on(a, o = f), c.on = r; + var c = ta(this, e), u = c.on, d = c.value[i] == null ? s || (s = fB(t)) : void 0; + (u !== n || o !== d) && (r = (n = u).copy()).on(a, o = d), c.on = r; }; } function zme(e, t, n) { var r = (e += "") == "transform" ? Bhe : uB; - return t == null ? this.styleTween(e, jme(e, r)).on("end.style." + e, dB(e)) : typeof t == "function" ? this.styleTween(e, Fme(e, r, RT(this, "style." + e, t))).each(Lme(this._id, e)) : this.styleTween(e, Dme(e, r, t), n).on("end.style." + e, null); + return t == null ? this.styleTween(e, jme(e, r)).on("end.style." + e, fB(e)) : typeof t == "function" ? this.styleTween(e, Fme(e, r, RT(this, "style." + e, t))).each(Lme(this._id, e)) : this.styleTween(e, Dme(e, r, t), n).on("end.style." + e, null); } function Bme(e, t, n) { return function(r) { @@ -35440,15 +35452,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.tween(t, Kme(e)); } function Xme() { - for (var e = this._name, t = this._id, n = fB(), r = this._groups, o = r.length, i = 0; i < o; ++i) + for (var e = this._name, t = this._id, n = dB(), r = this._groups, o = r.length, i = 0; i < o; ++i) for (var a = r[i], s = a.length, c, u = 0; u < s; ++u) if (c = a[u]) { - var f = li(c, t); + var d = li(c, t); Yb(c, e, n, u, a, { - time: f.time + f.delay + f.duration, + time: d.time + d.delay + d.duration, delay: 0, - duration: f.duration, - ease: f.ease + duration: d.duration, + ease: d.ease }); } return new Xa(r, this._parents, e, n); @@ -35460,8 +35472,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho --o === 0 && i(); } }; n.each(function() { - var u = ta(this, r), f = u.on; - f !== e && (t = (e = f).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), u.on = t; + var u = ta(this, r), d = u.on; + d !== e && (t = (e = d).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), u.on = t; }), o === 0 && i(); }); } @@ -35469,7 +35481,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Xa(e, t, n, r) { this._groups = e, this._parents = t, this._name = n, this._id = r; } - function fB() { + function dB() { return ++Qme; } var Ra = Qh.prototype; @@ -35523,7 +35535,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function nge(e) { var t, n; - e instanceof Xa ? (t = e._id, e = e._name) : (t = fB(), (n = ege).time = TT(), e = e == null ? null : e + ""); + e instanceof Xa ? (t = e._id, e = e._name) : (t = dB(), (n = ege).time = TT(), e = e == null ? null : e + ""); for (var r = this._groups, o = r.length, i = 0; i < o; ++i) for (var a = r[i], s = a.length, c, u = 0; u < s; ++u) (c = a[u]) && Yb(c, e, t, u, a, n || tge(c, t)); @@ -35594,7 +35606,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function t_(e) { e.stopImmediatePropagation(); } - function Xf(e) { + function Xd(e) { e.preventDefault(), e.stopImmediatePropagation(); } function oge(e) { @@ -35621,7 +35633,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); } function hB() { - var e = oge, t = ige, n = lge, r = age, o = sge, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, c = Lv, u = Wb("start", "zoom", "end"), f, p, m, g = 500, y = 150, b = 0, v = 10; + var e = oge, t = ige, n = lge, r = age, o = sge, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, c = Lv, u = Wb("start", "zoom", "end"), d, p, m, g = 500, y = 150, b = 0, v = 10; function x(j) { j.property("__zoom", L$).on("wheel.zoom", P, { passive: !1 }).on("mousedown.zoom", I).on("dblclick.zoom", $).filter(o).on("touchstart.zoom", L).on("touchmove.zoom", N).on("touchend.zoom touchcancel.zoom", U).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)"); } @@ -35726,7 +35738,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (K.k === W) return; F.mouse = [Y, K.invert(Y)], Uv(this), F.start(); } - Xf(j), F.wheel = setTimeout(B, y), F.zoom("mouse", n(_(E(K, W), F.mouse[0], F.mouse[1]), F.extent, a)); + Xd(j), F.wheel = setTimeout(B, y), F.zoom("mouse", n(_(E(K, W), F.mouse[0], F.mouse[1]), F.extent, a)); function B() { F.wheel = null, F.end(); } @@ -35736,36 +35748,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var F = j.currentTarget, K = A(this, V, !0).event(j), W = io(j.view).on("mousemove.zoom", G, !0).on("mouseup.zoom", z, !0), Y = Wo(j, F), B = j.clientX, D = j.clientY; Z9(j.view), t_(j), K.mouse = [Y, this.__zoom.invert(Y)], Uv(this), K.start(); function G(H) { - if (Xf(H), !K.moved) { + if (Xd(H), !K.moved) { var X = H.clientX - B, Q = H.clientY - D; K.moved = X * X + Q * Q > b; } K.event(H).zoom("mouse", n(_(K.that.__zoom, K.mouse[0] = Wo(H, F), K.mouse[1]), K.extent, a)); } function z(H) { - W.on("mousemove.zoom mouseup.zoom", null), Q9(H.view, K.moved), Xf(H), K.event(H).end(); + W.on("mousemove.zoom mouseup.zoom", null), Q9(H.view, K.moved), Xd(H), K.event(H).end(); } } function $(j, ...V) { if (e.apply(this, arguments)) { var F = this.__zoom, K = Wo(j.changedTouches ? j.changedTouches[0] : j, this), W = F.invert(K), Y = F.k * (j.shiftKey ? 0.5 : 2), B = n(_(E(F, Y), K, W), t.apply(this, V), a); - Xf(j), s > 0 ? io(this).transition().duration(s).call(k, B, K, j) : io(this).call(x.transform, B, K, j); + Xd(j), s > 0 ? io(this).transition().duration(s).call(k, B, K, j) : io(this).call(x.transform, B, K, j); } } function L(j, ...V) { if (e.apply(this, arguments)) { var F = j.touches, K = F.length, W = A(this, V, j.changedTouches.length === K).event(j), Y, B, D, G; for (t_(j), B = 0; B < K; ++B) - D = F[B], G = Wo(D, this), G = [G, this.__zoom.invert(G), D.identifier], W.touch0 ? !W.touch1 && W.touch0[2] !== G[2] && (W.touch1 = G, W.taps = 0) : (W.touch0 = G, Y = !0, W.taps = 1 + !!f); - f && (f = clearTimeout(f)), Y && (W.taps < 2 && (p = G[0], f = setTimeout(function() { - f = null; + D = F[B], G = Wo(D, this), G = [G, this.__zoom.invert(G), D.identifier], W.touch0 ? !W.touch1 && W.touch0[2] !== G[2] && (W.touch1 = G, W.taps = 0) : (W.touch0 = G, Y = !0, W.taps = 1 + !!d); + d && (d = clearTimeout(d)), Y && (W.taps < 2 && (p = G[0], d = setTimeout(function() { + d = null; }, g)), Uv(this), W.start()); } } function N(j, ...V) { if (this.__zooming) { var F = A(this, V).event(j), K = j.changedTouches, W = K.length, Y, B, D, G; - for (Xf(j), Y = 0; Y < W; ++Y) + for (Xd(j), Y = 0; Y < W; ++Y) B = K[Y], D = Wo(B, this), F.touch0 && F.touch0[2] === B.identifier ? F.touch0[0] = D : F.touch1 && F.touch1[2] === B.identifier && (F.touch1[0] = D); if (B = F.that.__zoom, F.touch1) { var z = F.touch0[0], H = F.touch0[1], X = F.touch1[0], Q = F.touch1[1], ne = (ne = X[0] - z[0]) * ne + (ne = X[1] - z[1]) * ne, te = (te = Q[0] - H[0]) * te + (te = Q[1] - H[1]) * te; @@ -35851,10 +35863,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // Handle "handle.ariaLabel": "Handle" }; - var bd; + var xf; (function(e) { e.Strict = "strict", e.Loose = "loose"; - })(bd || (bd = {})); + })(xf || (xf = {})); var ac; (function(e) { e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal"; @@ -35926,20 +35938,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: t.height / o }, c = []; for (const u of e.values()) { - const { measured: f, selectable: p = !0, hidden: m = !1 } = u; + const { measured: d, selectable: p = !0, hidden: m = !1 } = u; if (a && !p || m) continue; - const g = f.width ?? u.width ?? u.initialWidth ?? null, y = f.height ?? u.height ?? u.initialHeight ?? null, b = ch(s, wd(u)), v = (g ?? 0) * (y ?? 0), x = i && b > 0; + const g = d.width ?? u.width ?? u.initialWidth ?? null, y = d.height ?? u.height ?? u.initialHeight ?? null, b = ch(s, Sf(u)), v = (g ?? 0) * (y ?? 0), x = i && b > 0; (!u.internals.handleBounds || x || b >= v || u.dragging) && c.push(u); } return c; - }, dge = (e, t) => { + }, fge = (e, t) => { const n = /* @__PURE__ */ new Set(); return e.forEach((r) => { n.add(r.id); }), t.filter((r) => n.has(r.source) || n.has(r.target)); }; - function fge(e, t) { + function dge(e, t) { const n = /* @__PURE__ */ new Map(), r = t?.nodes ? new Set(t.nodes.map((o) => o.id)) : null; return e.forEach((o) => { o.measured.width && o.measured.height && (t?.includeHiddenNodes || !o.hidden) && (!r || r.has(o.id)) && n.set(o.id, o); @@ -35948,7 +35960,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho async function pge({ nodes: e, width: t, height: n, panZoom: r, minZoom: o, maxZoom: i }, a) { if (e.size === 0) return Promise.resolve(!0); - const s = fge(e, a), c = tm(s), u = NT(c, t, n, a?.minZoom ?? o, a?.maxZoom ?? i, a?.padding ?? 0.1); + const s = dge(e, a), c = tm(s), u = NT(c, t, n, a?.minZoom ?? o, a?.maxZoom ?? i, a?.padding ?? 0.1); return await r.setViewport(u, { duration: a?.duration, ease: a?.ease, @@ -35956,7 +35968,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), Promise.resolve(!0); } function xB({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0], nodeExtent: o, onError: i }) { - const a = n.get(e), s = a.parentId ? n.get(a.parentId) : void 0, { x: c, y: u } = s ? s.internals.positionAbsolute : { x: 0, y: 0 }, f = a.origin ?? r; + const a = n.get(e), s = a.parentId ? n.get(a.parentId) : void 0, { x: c, y: u } = s ? s.internals.positionAbsolute : { x: 0, y: 0 }, d = a.origin ?? r; let p = a.extent || o; if (a.extent === "parent" && !a.expandParent) if (!s) @@ -35968,15 +35980,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [c + g, u + y] ]); } - else s && Sd(a.extent) && (p = [ + else s && _f(a.extent) && (p = [ [a.extent[0][0] + c, a.extent[0][1] + u], [a.extent[1][0] + c, a.extent[1][1] + u] ]); - const m = Sd(p) ? gc(t, p, a.measured) : t; + const m = _f(p) ? gc(t, p, a.measured) : t; return (a.measured.width === void 0 || a.measured.height === void 0) && i?.("015", Gi.error015()), { position: { - x: m.x - c + (a.measured.width ?? 0) * f[0], - y: m.y - u + (a.measured.height ?? 0) * f[1] + x: m.x - c + (a.measured.width ?? 0) * d[0], + y: m.y - u + (a.measured.height ?? 0) * d[1] }, positionAbsolute: m }; @@ -35989,23 +36001,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const g = i.has(m.id), y = !g && m.parentId && a.find((b) => b.id === m.parentId); (g || y) && a.push(m); } - const s = new Set(t.map((m) => m.id)), c = r.filter((m) => m.deletable !== !1), f = dge(a, c); + const s = new Set(t.map((m) => m.id)), c = r.filter((m) => m.deletable !== !1), d = fge(a, c); for (const m of c) - s.has(m.id) && !f.find((y) => y.id === m.id) && f.push(m); + s.has(m.id) && !d.find((y) => y.id === m.id) && d.push(m); if (!o) return { - edges: f, + edges: d, nodes: a }; const p = await o({ nodes: a, - edges: f + edges: d }); - return typeof p == "boolean" ? p ? { edges: f, nodes: a } : { edges: [], nodes: [] } : p; + return typeof p == "boolean" ? p ? { edges: d, nodes: a } : { edges: [], nodes: [] } : p; } - const xd = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), gc = (e = { x: 0, y: 0 }, t, n) => ({ - x: xd(e.x, t[0][0], t[1][0] - (n?.width ?? 0)), - y: xd(e.y, t[0][1], t[1][1] - (n?.height ?? 0)) + const wf = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), gc = (e = { x: 0, y: 0 }, t, n) => ({ + x: wf(e.x, t[0][0], t[1][0] - (n?.width ?? 0)), + y: wf(e.y, t[0][1], t[1][1] - (n?.height ?? 0)) }); function wB(e, t, n) { const { width: r, height: o } = ns(n), { x: i, y: a } = n.internals.positionAbsolute; @@ -36014,7 +36026,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [i + r, a + o] ], t); } - const B$ = (e, t, n) => e < t ? xd(Math.abs(e - t), 1, t) / t : e > n ? -xd(Math.abs(e - n), 1, t) / t : 0, SB = (e, t, n = 15, r = 40) => { + const B$ = (e, t, n) => e < t ? wf(Math.abs(e - t), 1, t) / t : e > n ? -wf(Math.abs(e - n), 1, t) / t : 0, SB = (e, t, n = 15, r = 40) => { const o = B$(e.x, r, t.width - r) * n, i = B$(e.y, r, t.height - r) * n; return [o, i]; }, Zb = (e, t) => ({ @@ -36022,7 +36034,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y: Math.min(e.y, t.y), x2: Math.max(e.x2, t.x2), y2: Math.max(e.y2, t.y2) - }), dC = ({ x: e, y: t, width: n, height: r }) => ({ + }), fC = ({ x: e, y: t, width: n, height: r }) => ({ x: e, y: t, x2: e + n, @@ -36032,7 +36044,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y: t, width: n - e, height: r - t - }), wd = (e, t = [0, 0]) => { + }), Sf = (e, t = [0, 0]) => { const { x: n, y: r } = OT(e) ? e.internals.positionAbsolute : em(e, t); return { x: n, @@ -36048,7 +36060,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho x2: n + (e.measured?.width ?? e.width ?? e.initialWidth ?? 0), y2: r + (e.measured?.height ?? e.height ?? e.initialHeight ?? 0) }; - }, _B = (e, t) => Qb(Zb(dC(e), dC(t))), ch = (e, t) => { + }, _B = (e, t) => Qb(Zb(fC(e), fC(t))), ch = (e, t) => { const n = Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)), r = Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y)); return Math.ceil(n * r); }, U$ = (e) => Xo(e.width) && Xo(e.height) && Xo(e.x) && Xo(e.y), Xo = (e) => !isNaN(e) && isFinite(e), mge = (e, t) => { @@ -36099,16 +36111,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return { top: 0, right: 0, bottom: 0, left: 0, x: 0, y: 0 }; } function yge(e, t, n, r, o, i) { - const { x: a, y: s } = O0(e, [t, n, r]), { x: c, y: u } = O0({ x: e.x + e.width, y: e.y + e.height }, [t, n, r]), f = o - c, p = i - u; + const { x: a, y: s } = O0(e, [t, n, r]), { x: c, y: u } = O0({ x: e.x + e.width, y: e.y + e.height }, [t, n, r]), d = o - c, p = i - u; return { left: Math.floor(a), top: Math.floor(s), - right: Math.floor(f), + right: Math.floor(d), bottom: Math.floor(p) }; } const NT = (e, t, n, r, o, i) => { - const a = gge(i, t, n), s = (t - a.x) / e.width, c = (n - a.y) / e.height, u = Math.min(s, c), f = xd(u, r, o), p = e.x + e.width / 2, m = e.y + e.height / 2, g = t / 2 - p * f, y = n / 2 - m * f, b = yge(e, g, y, f, t, n), v = { + const a = gge(i, t, n), s = (t - a.x) / e.width, c = (n - a.y) / e.height, u = Math.min(s, c), d = wf(u, r, o), p = e.x + e.width / 2, m = e.y + e.height / 2, g = t / 2 - p * d, y = n / 2 - m * d, b = yge(e, g, y, d, t, n), v = { left: Math.min(b.left - a.left, 0), top: Math.min(b.top - a.top, 0), right: Math.min(b.right - a.right, 0), @@ -36117,10 +36129,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return { x: g - v.left + v.right, y: y - v.top + v.bottom, - zoom: f + zoom: d }; }, uh = () => typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0; - function Sd(e) { + function _f(e) { return e != null && e !== "parent"; } function ns(e) { @@ -36195,8 +36207,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }; function RB({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourceControlX: o, sourceControlY: i, targetControlX: a, targetControlY: s }) { - const c = e * 0.125 + o * 0.375 + a * 0.375 + n * 0.125, u = t * 0.125 + i * 0.375 + s * 0.375 + r * 0.125, f = Math.abs(c - e), p = Math.abs(u - t); - return [c, u, f, p]; + const c = e * 0.125 + o * 0.375 + a * 0.375 + n * 0.125, u = t * 0.125 + i * 0.375 + s * 0.375 + r * 0.125, d = Math.abs(c - e), p = Math.abs(u - t); + return [c, u, d, p]; } function by(e, t) { return e >= 0 ? 0.5 * e : t * 25 * Math.sqrt(-e); @@ -36221,7 +36233,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho x2: r, y2: o, c: a - }), [u, f] = q$({ + }), [u, d] = q$({ pos: i, x1: r, y1: o, @@ -36236,10 +36248,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho sourceControlX: s, sourceControlY: c, targetControlX: u, - targetControlY: f + targetControlY: d }); return [ - `M${e},${t} C${s},${c} ${u},${f} ${r},${o}`, + `M${e},${t} C${s},${c} ${u},${d} ${r},${o}`, p, m, g, @@ -36293,10 +36305,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [Ve.Bottom]: { x: 0, y: 1 } }, kge = ({ source: e, sourcePosition: t = Ve.Bottom, target: n }) => t === Ve.Left || t === Ve.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, G$ = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); function Tge({ source: e, sourcePosition: t = Ve.Bottom, target: n, targetPosition: r = Ve.Top, center: o, offset: i, stepPosition: a }) { - const s = W$[t], c = W$[r], u = { x: e.x + s.x * i, y: e.y + s.y * i }, f = { x: n.x + c.x * i, y: n.y + c.y * i }, p = kge({ + const s = W$[t], c = W$[r], u = { x: e.x + s.x * i, y: e.y + s.y * i }, d = { x: n.x + c.x * i, y: n.y + c.y * i }, p = kge({ source: u, sourcePosition: t, - target: f + target: d }), m = p.x !== 0 ? "x" : "y", g = p[m]; let y = [], b, v; const x = { x: 0, y: 0 }, E = { x: 0, y: 0 }, [, , _, C] = OB({ @@ -36306,36 +36318,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho targetY: n.y }); if (s[m] * c[m] === -1) { - m === "x" ? (b = o.x ?? u.x + (f.x - u.x) * a, v = o.y ?? (u.y + f.y) / 2) : (b = o.x ?? (u.x + f.x) / 2, v = o.y ?? u.y + (f.y - u.y) * a); + m === "x" ? (b = o.x ?? u.x + (d.x - u.x) * a, v = o.y ?? (u.y + d.y) / 2) : (b = o.x ?? (u.x + d.x) / 2, v = o.y ?? u.y + (d.y - u.y) * a); const A = [ { x: b, y: u.y }, - { x: b, y: f.y } + { x: b, y: d.y } ], O = [ { x: u.x, y: v }, - { x: f.x, y: v } + { x: d.x, y: v } ]; s[m] === g ? y = m === "x" ? A : O : y = m === "x" ? O : A; } else { - const A = [{ x: u.x, y: f.y }], O = [{ x: f.x, y: u.y }]; + const A = [{ x: u.x, y: d.y }], O = [{ x: d.x, y: u.y }]; if (m === "x" ? y = s.x === g ? O : A : y = s.y === g ? A : O, t === r) { const N = Math.abs(e[m] - n[m]); if (N <= i) { const U = Math.min(i - 1, i - N); - s[m] === g ? x[m] = (u[m] > e[m] ? -1 : 1) * U : E[m] = (f[m] > n[m] ? -1 : 1) * U; + s[m] === g ? x[m] = (u[m] > e[m] ? -1 : 1) * U : E[m] = (d[m] > n[m] ? -1 : 1) * U; } } if (t !== r) { - const N = m === "x" ? "y" : "x", U = s[m] === c[N], j = u[N] > f[N], V = u[N] < f[N]; + const N = m === "x" ? "y" : "x", U = s[m] === c[N], j = u[N] > d[N], V = u[N] < d[N]; (s[m] === 1 && (!U && j || U && V) || s[m] !== 1 && (!U && V || U && j)) && (y = m === "x" ? A : O); } - const P = { x: u.x + x.x, y: u.y + x.y }, I = { x: f.x + E.x, y: f.y + E.y }, $ = Math.max(Math.abs(P.x - y[0].x), Math.abs(I.x - y[0].x)), L = Math.max(Math.abs(P.y - y[0].y), Math.abs(I.y - y[0].y)); + const P = { x: u.x + x.x, y: u.y + x.y }, I = { x: d.x + E.x, y: d.y + E.y }, $ = Math.max(Math.abs(P.x - y[0].x), Math.abs(I.x - y[0].x)), L = Math.max(Math.abs(P.y - y[0].y), Math.abs(I.y - y[0].y)); $ >= L ? (b = (P.x + I.x) / 2, v = y[0].y) : (b = y[0].x, v = (P.y + I.y) / 2); } return [[ e, { x: u.x + x.x, y: u.y + x.y }, ...y, - { x: f.x + E.x, y: f.y + E.y }, + { x: d.x + E.x, y: d.y + E.y }, n ], b, v, _, C]; } @@ -36344,13 +36356,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (e.x === i && i === n.x || e.y === a && a === n.y) return `L${i} ${a}`; if (e.y === a) { - const u = e.x < n.x ? -1 : 1, f = e.y < n.y ? 1 : -1; - return `L ${i + o * u},${a}Q ${i},${a} ${i},${a + o * f}`; + const u = e.x < n.x ? -1 : 1, d = e.y < n.y ? 1 : -1; + return `L ${i + o * u},${a}Q ${i},${a} ${i},${a + o * d}`; } const s = e.x < n.x ? 1 : -1, c = e.y < n.y ? -1 : 1; return `L ${i},${a + o * c}Q ${i},${a} ${i + o * s},${a}`; } - function fC({ sourceX: e, sourceY: t, sourcePosition: n = Ve.Bottom, targetX: r, targetY: o, targetPosition: i = Ve.Top, borderRadius: a = 5, centerX: s, centerY: c, offset: u = 20, stepPosition: f = 0.5 }) { + function dC({ sourceX: e, sourceY: t, sourcePosition: n = Ve.Bottom, targetX: r, targetY: o, targetPosition: i = Ve.Top, borderRadius: a = 5, centerX: s, centerY: c, offset: u = 20, stepPosition: d = 0.5 }) { const [p, m, g, y, b] = Tge({ source: { x: e, y: t }, sourcePosition: n, @@ -36358,7 +36370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho targetPosition: i, center: { x: s, y: c }, offset: u, - stepPosition: f + stepPosition: d }); return [p.reduce((x, E, _) => { let C = ""; @@ -36374,7 +36386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return null; const r = t.internals.handleBounds || Y$(t.handles), o = n.internals.handleBounds || Y$(n.handles), i = X$(r?.source ?? [], e.sourceHandle), a = X$( // when connection type is loose we can define all handles as sources and connect source -> source - e.connectionMode === bd.Strict ? o?.target ?? [] : (o?.target ?? []).concat(o?.source ?? []), + e.connectionMode === xf.Strict ? o?.target ?? [] : (o?.target ?? []).concat(o?.source ?? []), e.targetHandle ); if (!i || !a) @@ -36383,12 +36395,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho sourceHandle: e.sourceHandle, targetHandle: e.targetHandle })), null; - const s = i?.position || Ve.Bottom, c = a?.position || Ve.Top, u = yc(t, i, s), f = yc(n, a, c); + const s = i?.position || Ve.Bottom, c = a?.position || Ve.Top, u = yc(t, i, s), d = yc(n, a, c); return { sourceX: u.x, sourceY: u.y, - targetX: f.x, - targetY: f.y, + targetX: d.x, + targetY: d.y, sourcePosition: s, targetPosition: c }; @@ -36456,7 +36468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (o.parentId) FT(o, e, t, r); else { - const i = em(o, r.nodeOrigin), a = Sd(o.extent) ? o.extent : r.nodeExtent, s = gc(i, a, ns(o)); + const i = em(o, r.nodeOrigin), a = _f(o.extent) ? o.extent : r.nodeExtent, s = gc(i, a, ns(o)); o.internals.positionAbsolute = s; } } @@ -36490,12 +36502,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let c = e.length > 0; t.clear(), n.clear(); for (const u of e) { - let f = a.get(u.id); - if (o.checkEquality && u === f?.internals.userNode) - t.set(u.id, f); + let d = a.get(u.id); + if (o.checkEquality && u === d?.internals.userNode) + t.set(u.id, d); else { - const p = em(u, o.nodeOrigin), m = Sd(u.extent) ? u.extent : o.nodeExtent, g = gc(p, m, ns(u)); - f = { + const p = em(u, o.nodeOrigin), m = _f(u.extent) ? u.extent : o.nodeExtent, g = gc(p, m, ns(u)); + d = { ...o.defaults, ...u, measured: { @@ -36505,13 +36517,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho internals: { positionAbsolute: g, // if user re-initializes the node or removes `measured` for whatever reason, we reset the handleBounds so that the node gets re-measured - handleBounds: Ige(u, f), + handleBounds: Ige(u, d), z: PB(u, s, o.zIndexMode), userNode: u } - }, t.set(u.id, f); + }, t.set(u.id, d); } - (f.measured === void 0 || f.measured.width === void 0 || f.measured.height === void 0) && !f.hidden && (c = !1), u.parentId && FT(f, t, n, r, i); + (d.measured === void 0 || d.measured.width === void 0 || d.measured.height === void 0) && !d.hidden && (c = !1), u.parentId && FT(d, t, n, r, i); } return c; } @@ -36522,13 +36534,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n ? n.set(e.id, e) : t.set(e.parentId, /* @__PURE__ */ new Map([[e.id, e]])); } function FT(e, t, n, r, o) { - const { elevateNodesOnSelect: i, nodeOrigin: a, nodeExtent: s, zIndexMode: c } = jT($T, r), u = e.parentId, f = t.get(u); - if (!f) { + const { elevateNodesOnSelect: i, nodeOrigin: a, nodeExtent: s, zIndexMode: c } = jT($T, r), u = e.parentId, d = t.get(u); + if (!d) { console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`); return; } - $ge(e, n), o && !f.parentId && f.internals.rootParentIndex === void 0 && c === "auto" && (f.internals.rootParentIndex = ++o.i, f.internals.z = f.internals.z + o.i * Mge), o && f.internals.rootParentIndex !== void 0 && (o.i = f.internals.rootParentIndex); - const p = i && !DT(c) ? NB : 0, { x: m, y: g, z: y } = jge(e, f, a, s, p, c), { positionAbsolute: b } = e.internals, v = m !== b.x || g !== b.y; + $ge(e, n), o && !d.parentId && d.internals.rootParentIndex === void 0 && c === "auto" && (d.internals.rootParentIndex = ++o.i, d.internals.z = d.internals.z + o.i * Mge), o && d.internals.rootParentIndex !== void 0 && (o.i = d.internals.rootParentIndex); + const p = i && !DT(c) ? NB : 0, { x: m, y: g, z: y } = jge(e, d, a, s, p, c), { positionAbsolute: b } = e.internals, v = m !== b.x || g !== b.y; (v || y !== e.internals.z) && t.set(e.id, { ...e, internals: { @@ -36543,8 +36555,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return DT(n) ? r : r + (e.selected ? t : 0); } function jge(e, t, n, r, o, i) { - const { x: a, y: s } = t.internals.positionAbsolute, c = ns(e), u = em(e, n), f = Sd(e.extent) ? gc(u, e.extent, c) : u; - let p = gc({ x: a + f.x, y: s + f.y }, r, c); + const { x: a, y: s } = t.internals.positionAbsolute, c = ns(e), u = em(e, n), d = _f(e.extent) ? gc(u, e.extent, c) : u; + let p = gc({ x: a + d.x, y: s + d.y }, r, c); e.extent === "parent" && (p = wB(p, c, t)); const m = PB(e, o, i), g = t.internals.z ?? 0; return { @@ -36559,11 +36571,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const s = t.get(a.parentId); if (!s) continue; - const c = i.get(a.parentId)?.expandedRect ?? wd(s), u = _B(c, a.rect); + const c = i.get(a.parentId)?.expandedRect ?? Sf(s), u = _B(c, a.rect); i.set(a.parentId, { expandedRect: u, parent: s }); } return i.size > 0 && i.forEach(({ expandedRect: a, parent: s }, c) => { - const u = s.internals.positionAbsolute, f = ns(s), p = s.origin ?? r, m = a.x < u.x ? Math.round(Math.abs(u.x - a.x)) : 0, g = a.y < u.y ? Math.round(Math.abs(u.y - a.y)) : 0, y = Math.max(f.width, Math.round(a.width)), b = Math.max(f.height, Math.round(a.height)), v = (y - f.width) * p[0], x = (b - f.height) * p[1]; + const u = s.internals.positionAbsolute, d = ns(s), p = s.origin ?? r, m = a.x < u.x ? Math.round(Math.abs(u.x - a.x)) : 0, g = a.y < u.y ? Math.round(Math.abs(u.y - a.y)) : 0, y = Math.max(d.width, Math.round(a.width)), b = Math.max(d.height, Math.round(a.height)), v = (y - d.width) * p[0], x = (b - d.height) * p[1]; (m > 0 || g > 0 || v || x) && (o.push({ id: c, type: "position", @@ -36580,7 +36592,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y: E.position.y + g } }); - })), (f.width < a.width || f.height < a.height || m || g) && o.push({ + })), (d.width < a.width || d.height < a.height || m || g) && o.push({ id: c, type: "dimensions", setAttributes: !0, @@ -36596,7 +36608,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let c = !1; if (!s) return { changes: [], updatedInternals: c }; - const u = [], f = window.getComputedStyle(s), { m22: p } = new window.DOMMatrixReadOnly(f.transform), m = []; + const u = [], d = window.getComputedStyle(s), { m22: p } = new window.DOMMatrixReadOnly(d.transform), m = []; for (const g of e.values()) { const y = t.get(g.id); if (!y) @@ -36613,7 +36625,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const b = PT(g.nodeElement), v = y.measured.width !== b.width || y.measured.height !== b.height; if (!!(b.width && b.height && (v || !y.internals.handleBounds || g.force))) { - const E = g.nodeElement.getBoundingClientRect(), _ = Sd(y.extent) ? y.extent : i; + const E = g.nodeElement.getBoundingClientRect(), _ = _f(y.extent) ? y.extent : i; let { positionAbsolute: C } = y.internals; y.parentId && y.extent === "parent" ? C = wB(C, b, t.get(y.parentId)) : _ && (C = gc(C, _, b)); const k = { @@ -36635,7 +36647,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), y.expandParent && y.parentId && m.push({ id: y.id, parentId: y.parentId, - rect: wd(k, o) + rect: Sf(k, o) })); } } @@ -36672,8 +36684,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function IB(e, t, n) { e.clear(), t.clear(); for (const r of n) { - const { source: o, target: i, sourceHandle: a = null, targetHandle: s = null } = r, c = { edgeId: r.id, source: o, target: i, sourceHandle: a, targetHandle: s }, u = `${o}-${a}--${i}-${s}`, f = `${i}-${s}--${o}-${a}`; - Z$("source", c, f, e, o, a), Z$("target", c, u, e, i, s), t.set(r.id, r); + const { source: o, target: i, sourceHandle: a = null, targetHandle: s = null } = r, c = { edgeId: r.id, source: o, target: i, sourceHandle: a, targetHandle: s }, u = `${o}-${a}--${i}-${s}`, d = `${i}-${s}--${o}-${a}`; + Z$("source", c, d, e, o, a), Z$("target", c, u, e, i, s), t.set(r.id, r); } } function $B(e, t) { @@ -36756,14 +36768,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } function Bge({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, onDragStop: o }) { - let i = { x: null, y: null }, a = 0, s = /* @__PURE__ */ new Map(), c = !1, u = { x: 0, y: 0 }, f = null, p = !1, m = null, g = !1, y = !1, b = null; + let i = { x: null, y: null }, a = 0, s = /* @__PURE__ */ new Map(), c = !1, u = { x: 0, y: 0 }, d = null, p = !1, m = null, g = !1, y = !1, b = null; function v({ noDragClassName: E, handleSelector: _, domNode: C, isSelectable: k, nodeId: A, nodeClickDistance: O = 0 }) { m = io(C); function P({ x: N, y: U }) { const { nodeLookup: j, nodeExtent: V, snapGrid: F, snapToGrid: K, nodeOrigin: W, onNodeDrag: Y, onSelectionDrag: B, onError: D, updateNodePositions: G } = t(); i = { x: N, y: U }; let z = !1; - const H = s.size > 1, X = H && V ? dC(tm(s)) : null, Q = H && K ? zge({ + const H = s.size > 1, X = H && V ? fC(tm(s)) : null, Q = H && K ? zge({ dragItems: s, snapGrid: F, x: N, @@ -36805,20 +36817,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } async function I() { - if (!f) + if (!d) return; const { transform: N, panBy: U, autoPanSpeed: j, autoPanOnNodeDrag: V } = t(); if (!V) { c = !1, cancelAnimationFrame(a); return; } - const [F, K] = SB(u, f, j); + const [F, K] = SB(u, d, j); (F !== 0 || K !== 0) && (i.x = (i.x ?? 0) - F / N[2], i.y = (i.y ?? 0) - K / N[2], await U({ x: F, y: K }) && P(i)), a = requestAnimationFrame(I); } function $(N) { const { nodeLookup: U, multiSelectionActive: j, nodesDraggable: V, transform: F, snapGrid: K, snapToGrid: W, selectNodesOnDrag: Y, onNodeDragStart: B, onSelectionDragStart: D, unselectNodesAndEdges: G } = t(); p = !0, (!Y || !k) && !j && A && (U.get(A)?.selected || G()), k && Y && A && e?.(A); - const z = Pp(N.sourceEvent, { transform: F, snapGrid: K, snapToGrid: W, containerBounds: f }); + const z = Pp(N.sourceEvent, { transform: F, snapGrid: K, snapToGrid: W, containerBounds: d }); if (i = z, s = Lge(U, V, z, A), s.size > 0 && (n || B || !A && D)) { const [H, X] = n_({ nodeId: A, @@ -36830,16 +36842,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const L = J9().clickDistance(O).on("start", (N) => { const { domNode: U, nodeDragThreshold: j, transform: V, snapGrid: F, snapToGrid: K } = t(); - f = U?.getBoundingClientRect() || null, g = !1, y = !1, b = N.sourceEvent, j === 0 && $(N), i = Pp(N.sourceEvent, { transform: V, snapGrid: F, snapToGrid: K, containerBounds: f }), u = Zo(N.sourceEvent, f); + d = U?.getBoundingClientRect() || null, g = !1, y = !1, b = N.sourceEvent, j === 0 && $(N), i = Pp(N.sourceEvent, { transform: V, snapGrid: F, snapToGrid: K, containerBounds: d }), u = Zo(N.sourceEvent, d); }).on("drag", (N) => { - const { autoPanOnNodeDrag: U, transform: j, snapGrid: V, snapToGrid: F, nodeDragThreshold: K, nodeLookup: W } = t(), Y = Pp(N.sourceEvent, { transform: j, snapGrid: V, snapToGrid: F, containerBounds: f }); + const { autoPanOnNodeDrag: U, transform: j, snapGrid: V, snapToGrid: F, nodeDragThreshold: K, nodeLookup: W } = t(), Y = Pp(N.sourceEvent, { transform: j, snapGrid: V, snapToGrid: F, containerBounds: d }); if (b = N.sourceEvent, (N.sourceEvent.type === "touchmove" && N.sourceEvent.touches.length > 1 || // if user deletes a node while dragging, we need to abort the drag to prevent errors A && !W.has(A)) && (g = !0), !g) { if (!c && U && p && (c = !0, I()), !p) { - const B = Zo(N.sourceEvent, f), D = B.x - u.x, G = B.y - u.y; + const B = Zo(N.sourceEvent, d), D = B.x - u.x, G = B.y - u.y; Math.sqrt(D * D + G * G) > K && $(N); } - (i.x !== Y.xSnapped || i.y !== Y.ySnapped) && s && p && (u = Zo(N.sourceEvent, f), P(Y)); + (i.x !== Y.xSnapped || i.y !== Y.ySnapped) && s && p && (u = Zo(N.sourceEvent, d), P(Y)); } }).on("end", (N) => { if (!(!p || g) && (c = !1, p = !1, cancelAnimationFrame(a), s.size > 0)) { @@ -36876,7 +36888,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: n * 2 }; for (const i of t.values()) - ch(o, wd(i)) > 0 && r.push(i); + ch(o, Sf(i)) > 0 && r.push(i); return r; } const Vge = 250; @@ -36888,8 +36900,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (const u of c) { if (r.nodeId === u.nodeId && r.type === u.type && r.id === u.id) continue; - const { x: f, y: p } = yc(s, u, u.position, !0), m = Math.sqrt(Math.pow(f - e.x, 2) + Math.pow(p - e.y, 2)); - m > t || (m < i ? (o = [{ ...u, x: f, y: p }], i = m) : m === i && o.push({ ...u, x: f, y: p })); + const { x: d, y: p } = yc(s, u, u.position, !0), m = Math.sqrt(Math.pow(d - e.x, 2) + Math.pow(p - e.y, 2)); + m > t || (m < i ? (o = [{ ...u, x: d, y: p }], i = m) : m === i && o.push({ ...u, x: d, y: p })); } } if (!o.length) @@ -36915,7 +36927,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t ? n = !0 : e && !t && (n = !1), n; } const FB = () => !0; - function Wge(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: c, lib: u, autoPanOnConnect: f, flowId: p, panBy: m, cancelConnection: g, onConnectStart: y, onConnect: b, onConnectEnd: v, isValidConnection: x = FB, onReconnectEnd: E, updateConnection: _, getTransform: C, getFromHandle: k, autoPanSpeed: A, dragThreshold: O = 1, handleDomNode: P }) { + function Wge(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: c, lib: u, autoPanOnConnect: d, flowId: p, panBy: m, cancelConnection: g, onConnectStart: y, onConnect: b, onConnectEnd: v, isValidConnection: x = FB, onReconnectEnd: E, updateConnection: _, getTransform: C, getFromHandle: k, autoPanSpeed: A, dragThreshold: O = 1, handleDomNode: P }) { const I = kB(e.target); let $ = 0, L; const { x: N, y: U } = Zo(e), j = DB(i, P), V = s?.getBoundingClientRect(); @@ -36927,7 +36939,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; let W = Zo(e, V), Y = !1, B = null, D = !1, G = null; function z() { - if (!f || !V) + if (!d || !V) return; const [J, ee] = SB(W, V, A); m({ x: J, y: ee }), $ = requestAnimationFrame(z); @@ -37008,7 +37020,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } I.addEventListener("mousemove", se), I.addEventListener("mouseup", ue), I.addEventListener("touchmove", se), I.addEventListener("touchend", ue); } - function LB(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, fromType: i, doc: a, lib: s, flowId: c, isValidConnection: u = FB, nodeLookup: f }) { + function LB(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, fromType: i, doc: a, lib: s, flowId: c, isValidConnection: u = FB, nodeLookup: d }) { const p = i === "target", m = t ? a.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: g, y } = Zo(e), b = a.elementFromPoint(g, y), v = b?.classList.contains(`${s}-flow__handle`) ? b : m, x = { handleDomNode: v, isValid: !1, @@ -37026,8 +37038,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho targetHandle: p ? o : C }; x.connection = O; - const I = k && A && (n === bd.Strict ? p && E === "source" || !p && E === "target" : _ !== r || C !== o); - x.isValid = I && u(O), x.toHandle = jB(_, E, C, f, n, !0); + const I = k && A && (n === xf.Strict ? p && E === "source" || !p && E === "target" : _ !== r || C !== o); + x.isValid = I && u(O), x.toHandle = jB(_, E, C, d, n, !0); } return x; } @@ -37037,11 +37049,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; function Gge({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) { const o = io(e); - function i({ translateExtent: s, width: c, height: u, zoomStep: f = 1, pannable: p = !0, zoomable: m = !0, inversePan: g = !1 }) { + function i({ translateExtent: s, width: c, height: u, zoomStep: d = 1, pannable: p = !0, zoomable: m = !0, inversePan: g = !1 }) { const y = (_) => { if (_.sourceEvent.type !== "wheel" || !t) return; - const C = n(), k = _.sourceEvent.ctrlKey && uh() ? 10 : 1, A = -_.sourceEvent.deltaY * (_.sourceEvent.deltaMode === 1 ? 0.05 : _.sourceEvent.deltaMode ? 1 : 2e-3) * f, O = C[2] * Math.pow(2, A * k); + const C = n(), k = _.sourceEvent.ctrlKey && uh() ? 10 : 1, A = -_.sourceEvent.deltaY * (_.sourceEvent.deltaMode === 1 ? 0.05 : _.sourceEvent.deltaMode ? 1 : 2e-3) * d, O = C[2] * Math.pow(2, A * k); t.scaleTo(O); }; let b = [0, 0]; @@ -37096,19 +37108,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return -e.deltaY * (e.deltaMode === 1 ? 0.05 : e.deltaMode ? 1 : 2e-3) * t; }; function Yge({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r, panOnScrollMode: o, panOnScrollSpeed: i, zoomOnPinch: a, onPanZoomStart: s, onPanZoom: c, onPanZoomEnd: u }) { - return (f) => { - if (Gu(f, t)) - return f.ctrlKey && f.preventDefault(), !1; - f.preventDefault(), f.stopImmediatePropagation(); + return (d) => { + if (Gu(d, t)) + return d.ctrlKey && d.preventDefault(), !1; + d.preventDefault(), d.stopImmediatePropagation(); const p = n.property("__zoom").k || 1; - if (f.ctrlKey && a) { - const v = Wo(f), x = BB(f), E = p * Math.pow(2, x); - r.scaleTo(n, E, v, f); + if (d.ctrlKey && a) { + const v = Wo(d), x = BB(d), E = p * Math.pow(2, x); + r.scaleTo(n, E, v, d); return; } - const m = f.deltaMode === 1 ? 20 : 1; - let g = o === ac.Vertical ? 0 : f.deltaX * m, y = o === ac.Horizontal ? 0 : f.deltaY * m; - !uh() && f.shiftKey && o !== ac.Vertical && (g = f.deltaY * m, y = 0), r.translateBy( + const m = d.deltaMode === 1 ? 20 : 1; + let g = o === ac.Vertical ? 0 : d.deltaX * m, y = o === ac.Horizontal ? 0 : d.deltaY * m; + !uh() && d.shiftKey && o !== ac.Vertical && (g = d.deltaY * m, y = 0), r.translateBy( n, -(g / p) * i, -(y / p) * i, @@ -37116,9 +37128,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { internal: !0 } ); const b = Jb(n.property("__zoom")); - clearTimeout(e.panScrollTimeout), e.isPanScrolling ? (c?.(f, b), e.panScrollTimeout = setTimeout(() => { - u?.(f, b), e.isPanScrolling = !1; - }, 150)) : (e.isPanScrolling = !0, s?.(f, b)); + clearTimeout(e.panScrollTimeout), e.isPanScrolling ? (c?.(d, b), e.panScrollTimeout = setTimeout(() => { + u?.(d, b), e.isPanScrolling = !1; + }, 150)) : (e.isPanScrolling = !0, s?.(d, b)); }; } function Xge({ noWheelClassName: e, preventScrolling: t, d3ZoomHandler: n }) { @@ -37156,12 +37168,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; } - function eye({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panOnDrag: r, panOnScroll: o, zoomOnDoubleClick: i, userSelectionActive: a, noWheelClassName: s, noPanClassName: c, lib: u, connectionInProgress: f }) { + function eye({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panOnDrag: r, panOnScroll: o, zoomOnDoubleClick: i, userSelectionActive: a, noWheelClassName: s, noPanClassName: c, lib: u, connectionInProgress: d }) { return (p) => { const m = e || t, g = n && p.ctrlKey, y = p.type === "wheel"; if (p.button === 1 && p.type === "mousedown" && (Gu(p, `${u}-flow__node`) || Gu(p, `${u}-flow__edge`))) return !0; - if (!r && !m && !o && !i && !n || a || f && !y || Gu(p, s) && y || Gu(p, c) && (!y || o && y && !e) || !n && p.ctrlKey && y) + if (!r && !m && !o && !i && !n || a || d && !y || Gu(p, s) && y || Gu(p, c) && (!y || o && y && !e) || !n && p.ctrlKey && y) return !1; if (!n && p.type === "touchstart" && p.touches?.length > 1) return p.preventDefault(), !1; @@ -37180,14 +37192,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho timerId: void 0, panScrollTimeout: void 0, isPanScrolling: !1 - }, f = e.getBoundingClientRect(), p = hB().scaleExtent([t, n]).translateExtent(r), m = io(e).call(p); + }, d = e.getBoundingClientRect(), p = hB().scaleExtent([t, n]).translateExtent(r), m = io(e).call(p); E({ x: o.x, y: o.y, - zoom: xd(o.zoom, t, n) + zoom: wf(o.zoom, t, n) }, [ [0, 0], - [f.width, f.height] + [d.width, d.height] ], r); const g = m.on("wheel.zoom"), y = m.on("dblclick.zoom"); p.wheelDelta(BB); @@ -37311,10 +37323,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho setClickDistance: $ }; } - var _d; + var Ef; (function(e) { e.Line = "line", e.Handle = "handle"; - })(_d || (_d = {})); + })(Ef || (Ef = {})); function nye({ width: e, prevWidth: t, height: n, prevHeight: r, affectsX: o, affectsY: i }) { const a = e - t, s = n - r, c = [a > 0 ? 1 : a < 0 ? -1 : 0, s > 0 ? 1 : s < 0 ? -1 : 0]; return a && o && (c[0] = c[0] * -1), s && i && (c[1] = c[1] * -1), c; @@ -37342,8 +37354,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function rye(e, t, n, r, o, i, a, s) { let { affectsX: c, affectsY: u } = t; - const { isHorizontal: f, isVertical: p } = t, m = f && p, { xSnapped: g, ySnapped: y } = n, { minWidth: b, maxWidth: v, minHeight: x, maxHeight: E } = r, { x: _, y: C, width: k, height: A, aspectRatio: O } = e; - let P = Math.floor(f ? g - e.pointerX : 0), I = Math.floor(p ? y - e.pointerY : 0); + const { isHorizontal: d, isVertical: p } = t, m = d && p, { xSnapped: g, ySnapped: y } = n, { minWidth: b, maxWidth: v, minHeight: x, maxHeight: E } = r, { x: _, y: C, width: k, height: A, aspectRatio: O } = e; + let P = Math.floor(d ? g - e.pointerX : 0), I = Math.floor(p ? y - e.pointerY : 0); const $ = k + (c ? -P : P), L = A + (u ? -I : I), N = -i[0] * k, U = -i[1] * A; let j = xy($, b, v), V = xy(L, x, E); if (a) { @@ -37355,7 +37367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c && P > 0 ? W = Ds(_ + P, s[0][0]) : !c && P < 0 && (W = js(_ + $, s[1][0])), u && I > 0 ? Y = Ds(C + I, s[0][1]) : !u && I < 0 && (Y = js(C + L, s[1][1])), j = Math.max(j, W), V = Math.max(V, Y); } if (o) { - if (f) { + if (d) { const W = xy($ / O, x, E) * O; if (j = Math.max(j, W), a) { let Y = 0; @@ -37378,7 +37390,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } - I = I + (I < 0 ? V : -V), P = P + (P < 0 ? j : -j), o && (m ? $ > L * O ? I = (ej(c, u) ? -P : P) / O : P = (ej(c, u) ? -I : I) * O : f ? (I = P / O, u = c) : (P = I * O, c = u)); + I = I + (I < 0 ? V : -V), P = P + (P < 0 ? j : -j), o && (m ? $ > L * O ? I = (ej(c, u) ? -P : P) / O : P = (ej(c, u) ? -I : I) * O : d ? (I = P / O, u = c) : (P = I * O, c = u)); const F = c ? _ + P : _, K = u ? C + I : C; return { width: k + (c ? -P : P), @@ -37419,10 +37431,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho resizeDirection: void 0, keepAspectRatio: !1 }; - function s({ controlPosition: u, boundaries: f, keepAspectRatio: p, resizeDirection: m, onResizeStart: g, onResize: y, onResizeEnd: b, shouldResize: v }) { + function s({ controlPosition: u, boundaries: d, keepAspectRatio: p, resizeDirection: m, onResizeStart: g, onResize: y, onResizeEnd: b, shouldResize: v }) { let x = { ...UB }, E = { ...oye }; a = { - boundaries: f, + boundaries: d, resizeDirection: m, keepAspectRatio: p, controlDirection: J$(u) @@ -37525,7 +37537,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const tj = (e, t) => { const n = i9(e), r = (o, i = t) => VB(n, o, i); return Object.assign(r, n), r; - }, dye = (e, t) => e ? tj(e, t) : tj; + }, fye = (e, t) => e ? tj(e, t) : tj; function _n(e, t) { if (Object.is(e, t)) return !0; @@ -37553,7 +37565,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !1; return !0; } - const e1 = T.createContext(null), fye = e1.Provider, HB = Gi.error001(); + const e1 = T.createContext(null), dye = e1.Provider, HB = Gi.error001(); function It(e, t) { const n = T.useContext(e1); if (n === null) @@ -37705,16 +37717,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Aye(e) { const { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: o, setTranslateExtent: i, setNodeExtent: a, reset: s, setDefaultNodesAndEdges: c } = It(Tye, _n), u = Cn(); T.useEffect(() => (c(e.defaultNodes, e.defaultEdges), () => { - f.current = oj, s(); + d.current = oj, s(); }), []); - const f = T.useRef(oj); + const d = T.useRef(oj); return T.useEffect( () => { for (const p of rj) { - const m = e[p], g = f.current[p]; + const m = e[p], g = d.current[p]; m !== g && (typeof e[p] > "u" || (p === "nodes" ? t(m) : p === "edges" ? n(m) : p === "minZoom" ? r(m) : p === "maxZoom" ? o(m) : p === "translateExtent" ? i(m) : p === "nodeExtent" ? a(m) : p === "ariaLabelConfig" ? u.setState({ ariaLabelConfig: bge(m) }) : p === "fitView" ? u.setState({ fitViewQueued: m }) : p === "fitViewOptions" ? u.setState({ fitViewOptions: m }) : u.setState({ [p]: m }))); } - f.current = e; + d.current = e; }, // Only re-run the effect if one of the fields we track changes rj.map((p) => e[p]) @@ -37745,15 +37757,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `, ` +`).split(` -`)), f = u.reduce((p, m) => p.concat(...m), []); - return [u, f]; +`)), d = u.reduce((p, m) => p.concat(...m), []); + return [u, d]; } return [[], []]; }, [e]); return T.useEffect(() => { const c = t?.target ?? aj, u = t?.actInsideInputWithModifier ?? !0; if (e !== null) { - const f = (g) => { + const d = (g) => { if (o.current = g.ctrlKey || g.metaKey || g.shiftKey || g.altKey, (!o.current || o.current && !u) && TB(g)) return !1; const b = lj(g.code, s); @@ -37767,8 +37779,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, m = () => { i.current.clear(), r(!1); }; - return c?.addEventListener("keydown", f), c?.addEventListener("keyup", p), window.addEventListener("blur", m), window.addEventListener("contextmenu", m), () => { - c?.removeEventListener("keydown", f), c?.removeEventListener("keyup", p), window.removeEventListener("blur", m), window.removeEventListener("contextmenu", m); + return c?.addEventListener("keydown", d), c?.addEventListener("keyup", p), window.addEventListener("blur", m), window.addEventListener("contextmenu", m), () => { + c?.removeEventListener("keydown", d), c?.removeEventListener("keyup", p), window.removeEventListener("blur", m), window.removeEventListener("contextmenu", m); }; } }, [e, r]), n; @@ -37823,8 +37835,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { x: s, y: c } = a.getBoundingClientRect(), u = { x: t.x - s, y: t.y - c - }, f = n.snapGrid ?? o, p = n.snapToGrid ?? i; - return rm(u, r, p, f); + }, d = n.snapGrid ?? o, p = n.snapToGrid ?? i; + return rm(u, r, p, d); }, flowToScreenPosition: (t) => { const { transform: n, domNode: r } = e.getState(); @@ -37926,12 +37938,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: "remove" }; } - const dj = (e) => cge(e), Nye = (e) => bB(e); + const fj = (e) => cge(e), Nye = (e) => bB(e); function XB(e) { return T.forwardRef(e); } const Pye = typeof window < "u" ? T.useLayoutEffect : T.useEffect; - function fj(e) { + function dj(e) { const [t, n] = T.useState(BigInt(0)), [r] = T.useState(() => Iye(() => n((o) => o + BigInt(1)))); return Pye(() => { const o = r.get(); @@ -37953,7 +37965,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const ZB = T.createContext(null); function $ye({ children: e }) { const t = Cn(), n = T.useCallback((s) => { - const { nodes: c = [], setNodes: u, hasDefaultNodes: f, onNodesChange: p, nodeLookup: m, fitViewQueued: g, onNodesChangeMiddlewareMap: y } = t.getState(); + const { nodes: c = [], setNodes: u, hasDefaultNodes: d, onNodesChange: p, nodeLookup: m, fitViewQueued: g, onNodesChangeMiddlewareMap: y } = t.getState(); let b = c; for (const x of s) b = typeof x == "function" ? x(b) : x; @@ -37963,20 +37975,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); for (const x of y.values()) v = x(v); - f && u(b), v.length > 0 ? p?.(v) : g && window.requestAnimationFrame(() => { + d && u(b), v.length > 0 ? p?.(v) : g && window.requestAnimationFrame(() => { const { fitViewQueued: x, nodes: E, setNodes: _ } = t.getState(); x && _(E); }); - }, []), r = fj(n), o = T.useCallback((s) => { - const { edges: c = [], setEdges: u, hasDefaultEdges: f, onEdgesChange: p, edgeLookup: m } = t.getState(); + }, []), r = dj(n), o = T.useCallback((s) => { + const { edges: c = [], setEdges: u, hasDefaultEdges: d, onEdgesChange: p, edgeLookup: m } = t.getState(); let g = c; for (const y of s) g = typeof y == "function" ? y(g) : y; - f ? u(g) : p && p(cj({ + d ? u(g) : p && p(cj({ items: g, lookup: m })); - }, []), i = fj(o), a = T.useMemo(() => ({ nodeQueue: r, edgeQueue: i }), []); + }, []), i = dj(o), a = T.useMemo(() => ({ nodeQueue: r, edgeQueue: i }), []); return S.jsx(ZB.Provider, { value: a, children: e }); } function jye() { @@ -37993,22 +38005,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, s = (p) => { n.edgeQueue.push(p); }, c = (p) => { - const { nodeLookup: m, nodeOrigin: g } = t.getState(), y = dj(p) ? p : m.get(p.id), b = y.parentId ? CB(y.position, y.measured, y.parentId, m, g) : y.position, v = { + const { nodeLookup: m, nodeOrigin: g } = t.getState(), y = fj(p) ? p : m.get(p.id), b = y.parentId ? CB(y.position, y.measured, y.parentId, m, g) : y.position, v = { ...y, position: b, width: y.measured?.width ?? y.width, height: y.measured?.height ?? y.height }; - return wd(v); + return Sf(v); }, u = (p, m, g = { replace: !1 }) => { a((y) => y.map((b) => { if (b.id === p) { const v = typeof m == "function" ? m(b) : m; - return g.replace && dj(v) ? v : { ...b, ...v }; + return g.replace && fj(v) ? v : { ...b, ...v }; } return b; })); - }, f = (p, m, g = { replace: !1 }) => { + }, d = (p, m, g = { replace: !1 }) => { s((y) => y.map((b) => { if (b.id === p) { const v = typeof m == "function" ? m(b) : m; @@ -38077,7 +38089,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const E = t.getState().nodeLookup.get(x.id); if (E && !y && (x.id === p.id || !E.internals.positionAbsolute)) return !1; - const _ = wd(v ? x : E), C = ch(_, b); + const _ = Sf(v ? x : E), C = ch(_, b); return m && C > 0 || C >= _.width * _.height || C >= b.width * b.height; }) : []; }, @@ -38095,9 +38107,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return g.replace ? { ...y, data: b } : { ...y, data: { ...y.data, ...b } }; }, g); }, - updateEdge: f, + updateEdge: d, updateEdgeData: (p, m, g = { replace: !1 }) => { - f(p, (y) => { + d(p, (y) => { const b = typeof m == "function" ? m(y) : m; return g.replace ? { ...y, data: b } : { ...y, data: { ...y.data, ...b } }; }, g); @@ -38161,7 +38173,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho lib: e.lib, connectionInProgress: e.connection.inProgress }); - function Uye({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = ac.Free, zoomOnDoubleClick: a = !0, panOnDrag: s = !0, defaultViewport: c, translateExtent: u, minZoom: f, maxZoom: p, zoomActivationKeyCode: m, preventScrolling: g = !0, children: y, noWheelClassName: b, noPanClassName: v, onViewportChange: x, isControlledViewport: E, paneClickDistance: _, selectionOnDrag: C }) { + function Uye({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = ac.Free, zoomOnDoubleClick: a = !0, panOnDrag: s = !0, defaultViewport: c, translateExtent: u, minZoom: d, maxZoom: p, zoomActivationKeyCode: m, preventScrolling: g = !0, children: y, noWheelClassName: b, noPanClassName: v, onViewportChange: x, isControlledViewport: E, paneClickDistance: _, selectionOnDrag: C }) { const k = Cn(), A = T.useRef(null), { userSelectionActive: O, lib: P, connectionInProgress: I } = It(Bye, _n), $ = Fa(m), L = T.useRef(); zye(A); const N = T.useCallback((U) => { @@ -38171,7 +38183,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (A.current) { L.current = tye({ domNode: A.current, - minZoom: f, + minZoom: d, maxZoom: p, translateExtent: u, viewport: c, @@ -38260,7 +38272,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho connectionInProgress: e.connection.inProgress, dragging: e.paneDragging }); - function Wye({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = lh.Full, panOnDrag: r, paneClickDistance: o, selectionOnDrag: i, onSelectionStart: a, onSelectionEnd: s, onPaneClick: c, onPaneContextMenu: u, onPaneScroll: f, onPaneMouseEnter: p, onPaneMouseMove: m, onPaneMouseLeave: g, children: y }) { + function Wye({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = lh.Full, panOnDrag: r, paneClickDistance: o, selectionOnDrag: i, onSelectionStart: a, onSelectionEnd: s, onPaneClick: c, onPaneContextMenu: u, onPaneScroll: d, onPaneMouseEnter: p, onPaneMouseMove: m, onPaneMouseLeave: g, children: y }) { const b = Cn(), { userSelectionActive: v, elementsSelectable: x, dragging: E, connectionInProgress: _ } = It(qye, _n), C = x && (e || v), k = T.useRef(null), A = T.useRef(), O = T.useRef(/* @__PURE__ */ new Set()), P = T.useRef(/* @__PURE__ */ new Set()), I = T.useRef(!1), $ = (W) => { if (I.current || _) { I.current = !1; @@ -38273,7 +38285,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; } u?.(W); - }, N = f ? (W) => f(W) : void 0, U = (W) => { + }, N = d ? (W) => d(W) : void 0, U = (W) => { I.current && (W.stopPropagation(), I.current = !1); }, j = (W) => { const { domNode: Y } = b.getState(); @@ -38356,9 +38368,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t.setState({ nodesSelectionActive: !1 }), u.selected ? (n || u.selected && a) && (i({ nodes: [u], edges: [] }), requestAnimationFrame(() => r?.current?.blur())) : o([e]); } function QB({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: o, isSelectable: i, nodeClickDistance: a }) { - const s = Cn(), [c, u] = T.useState(!1), f = T.useRef(); + const s = Cn(), [c, u] = T.useState(!1), d = T.useRef(); return T.useEffect(() => { - f.current = Bge({ + d.current = Bge({ getStoreItems: () => s.getState(), onNodeMouseDown: (p) => { gC({ @@ -38376,9 +38388,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }, []), T.useEffect(() => { if (t) - f.current?.destroy(); + d.current?.destroy(); else if (e.current) - return f.current?.update({ + return d.current?.update({ noDragClassName: n, handleSelector: r, domNode: e.current, @@ -38386,7 +38398,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho nodeId: o, nodeClickDistance: a }), () => { - f.current?.destroy(); + d.current?.destroy(); }; }, [n, r, t, i, e, o]), c; } @@ -38394,7 +38406,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function JB() { const e = Cn(); return T.useCallback((n) => { - const { nodeExtent: r, snapToGrid: o, snapGrid: i, nodesDraggable: a, onError: s, updateNodePositions: c, nodeLookup: u, nodeOrigin: f } = e.getState(), p = /* @__PURE__ */ new Map(), m = Gye(a), g = o ? i[0] : 5, y = o ? i[1] : 5, b = n.direction.x * g * n.factor, v = n.direction.y * y * n.factor; + const { nodeExtent: r, snapToGrid: o, snapGrid: i, nodesDraggable: a, onError: s, updateNodePositions: c, nodeLookup: u, nodeOrigin: d } = e.getState(), p = /* @__PURE__ */ new Map(), m = Gye(a), g = o ? i[0] : 5, y = o ? i[1] : 5, b = n.direction.x * g * n.factor, v = n.direction.y * y * n.factor; for (const [, x] of u) { if (!m(x)) continue; @@ -38408,7 +38420,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho nextPosition: E, nodeLookup: u, nodeExtent: r, - nodeOrigin: f, + nodeOrigin: d, onError: s }); x.position = _, x.internals.positionAbsolute = C, p.set(x.id, x); @@ -38423,18 +38435,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho noPanClassName: e.noPanClassName, rfId: e.rfId }), Xye = (e, t, n) => (r) => { - const { connectionClickStartHandle: o, connectionMode: i, connection: a } = r, { fromHandle: s, toHandle: c, isValid: u } = a, f = c?.nodeId === e && c?.id === t && c?.type === n; + const { connectionClickStartHandle: o, connectionMode: i, connection: a } = r, { fromHandle: s, toHandle: c, isValid: u } = a, d = c?.nodeId === e && c?.id === t && c?.type === n; return { connectingFrom: s?.nodeId === e && s?.id === t && s?.type === n, - connectingTo: f, + connectingTo: d, clickConnecting: o?.nodeId === e && o?.id === t && o?.type === n, - isPossibleEndHandle: i === bd.Strict ? s?.type !== n : e !== s?.nodeId || t !== s?.id, + isPossibleEndHandle: i === xf.Strict ? s?.type !== n : e !== s?.nodeId || t !== s?.id, connectionInProcess: !!s, clickConnectionInProcess: !!o, - valid: f && u + valid: d && u }; }; - function Zye({ type: e = "source", position: t = Ve.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: o = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: c, className: u, onMouseDown: f, onTouchStart: p, ...m }, g) { + function Zye({ type: e = "source", position: t = Ve.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: o = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: c, className: u, onMouseDown: d, onTouchStart: p, ...m }, g) { const y = a || null, b = e === "target", v = Cn(), x = e8(), { connectOnClick: E, noPanClassName: _, rfId: C } = It(Yye, _n), { connectingFrom: k, connectingTo: A, clickConnecting: O, isPossibleEndHandle: P, connectionInProcess: I, clickConnectionInProcess: $, valid: L } = It(Xye(x, y, e), _n); x || v.getState().onError?.("010", Gi.error010()); const N = (V) => { @@ -38478,7 +38490,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho dragThreshold: K.connectionDragThreshold }); } - F ? f?.(V) : p?.(V); + F ? d?.(V) : p?.(V); }, j = (V) => { const { onClickConnectStart: F, onClickConnectEnd: K, connectionClickStartHandle: W, connectionMode: Y, isValidConnection: B, lib: D, rfId: G, nodeLookup: z, connection: H } = v.getState(); if (!x || !W && !o) @@ -38531,18 +38543,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ]), onMouseDown: U, onTouchStart: U, onClick: E ? j : void 0, ref: g, ...m, children: c }); } - const dh = T.memo(XB(Zye)); + const fh = T.memo(XB(Zye)); function Qye({ data: e, isConnectable: t, sourcePosition: n = Ve.Bottom }) { - return S.jsxs(S.Fragment, { children: [e?.label, S.jsx(dh, { type: "source", position: n, isConnectable: t })] }); + return S.jsxs(S.Fragment, { children: [e?.label, S.jsx(fh, { type: "source", position: n, isConnectable: t })] }); } function Jye({ data: e, isConnectable: t, targetPosition: n = Ve.Top, sourcePosition: r = Ve.Bottom }) { - return S.jsxs(S.Fragment, { children: [S.jsx(dh, { type: "target", position: n, isConnectable: t }), e?.label, S.jsx(dh, { type: "source", position: r, isConnectable: t })] }); + return S.jsxs(S.Fragment, { children: [S.jsx(fh, { type: "target", position: n, isConnectable: t }), e?.label, S.jsx(fh, { type: "source", position: r, isConnectable: t })] }); } function eve() { return null; } function tve({ data: e, isConnectable: t, targetPosition: n = Ve.Top }) { - return S.jsxs(S.Fragment, { children: [S.jsx(dh, { type: "target", position: n, isConnectable: t }), e?.label] }); + return S.jsxs(S.Fragment, { children: [S.jsx(fh, { type: "target", position: n, isConnectable: t }), e?.label] }); } const M0 = { ArrowUp: { x: 0, y: -1 }, @@ -38585,7 +38597,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho nodeRef: u }), s || !o || !i) return null; - const f = e ? (m) => { + const d = e ? (m) => { const g = r.getState().nodes.filter((y) => y.selected); e(m, g); } : void 0, p = (m) => { @@ -38596,14 +38608,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; return S.jsx("div", { className: qn(["react-flow__nodesselection", "react-flow__container", t]), style: { transform: a - }, children: S.jsx("div", { ref: u, className: "react-flow__nodesselection-rect", onContextMenu: f, tabIndex: n ? void 0 : -1, onKeyDown: n ? void 0 : p, style: { + }, children: S.jsx("div", { ref: u, className: "react-flow__nodesselection-rect", onContextMenu: d, tabIndex: n ? void 0 : -1, onKeyDown: n ? void 0 : p, style: { width: o, height: i } }) }); } const mj = typeof window < "u" ? window : void 0, ive = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive }); - function t8({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: u, selectionOnDrag: f, selectionMode: p, onSelectionStart: m, onSelectionEnd: g, multiSelectionKeyCode: y, panActivationKeyCode: b, zoomActivationKeyCode: v, elementsSelectable: x, zoomOnScroll: E, zoomOnPinch: _, panOnScroll: C, panOnScrollSpeed: k, panOnScrollMode: A, zoomOnDoubleClick: O, panOnDrag: P, defaultViewport: I, translateExtent: $, minZoom: L, maxZoom: N, preventScrolling: U, onSelectionContextMenu: j, noWheelClassName: V, noPanClassName: F, disableKeyboardA11y: K, onViewportChange: W, isControlledViewport: Y }) { - const { nodesSelectionActive: B, userSelectionActive: D } = It(ive, _n), G = Fa(u, { target: mj }), z = Fa(b, { target: mj }), H = z || P, X = z || C, Q = f && H !== !0, ne = G || D || Q; + function t8({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: u, selectionOnDrag: d, selectionMode: p, onSelectionStart: m, onSelectionEnd: g, multiSelectionKeyCode: y, panActivationKeyCode: b, zoomActivationKeyCode: v, elementsSelectable: x, zoomOnScroll: E, zoomOnPinch: _, panOnScroll: C, panOnScrollSpeed: k, panOnScrollMode: A, zoomOnDoubleClick: O, panOnDrag: P, defaultViewport: I, translateExtent: $, minZoom: L, maxZoom: N, preventScrolling: U, onSelectionContextMenu: j, noWheelClassName: V, noPanClassName: F, disableKeyboardA11y: K, onViewportChange: W, isControlledViewport: Y }) { + const { nodesSelectionActive: B, userSelectionActive: D } = It(ive, _n), G = Fa(u, { target: mj }), z = Fa(b, { target: mj }), H = z || P, X = z || C, Q = d && H !== !0, ne = G || D || Q; return Lye({ deleteKeyCode: c, multiSelectionKeyCode: y }), S.jsx(Uye, { onPaneContextMenu: i, elementsSelectable: x, zoomOnScroll: E, zoomOnPinch: _, panOnScroll: X, panOnScrollSpeed: k, panOnScrollMode: A, zoomOnDoubleClick: O, panOnDrag: !G && H, defaultViewport: I, translateExtent: $, minZoom: L, maxZoom: N, zoomActivationKeyCode: v, preventScrolling: U, noWheelClassName: V, noPanClassName: F, onViewportChange: W, isControlledViewport: Y, paneClickDistance: s, selectionOnDrag: Q, children: S.jsxs(Wye, { onSelectionStart: m, onSelectionEnd: g, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: H, isSelecting: !!ne, selectionMode: p, selectionKeyPressed: G, paneClickDistance: s, selectionOnDrag: Q, children: [e, B && S.jsx(ove, { onSelectionContextMenu: j, noPanClassName: F, disableKeyboardA11y: K })] }) }); } t8.displayName = "FlowRenderer"; @@ -38628,11 +38640,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t?.disconnect(); }, [t]), t; } - function dve({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) { - const o = Cn(), i = T.useRef(null), a = T.useRef(null), s = T.useRef(e.sourcePosition), c = T.useRef(e.targetPosition), u = T.useRef(t), f = n && !!e.internals.handleBounds; + function fve({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) { + const o = Cn(), i = T.useRef(null), a = T.useRef(null), s = T.useRef(e.sourcePosition), c = T.useRef(e.targetPosition), u = T.useRef(t), d = n && !!e.internals.handleBounds; return T.useEffect(() => { - i.current && !e.hidden && (!f || a.current !== i.current) && (a.current && r?.unobserve(a.current), r?.observe(i.current), a.current = i.current); - }, [f, e.hidden]), T.useEffect(() => () => { + i.current && !e.hidden && (!d || a.current !== i.current) && (a.current && r?.unobserve(a.current), r?.observe(i.current), a.current = i.current); + }, [d, e.hidden]), T.useEffect(() => () => { a.current && (r?.unobserve(a.current), a.current = null); }, []), T.useEffect(() => { if (i.current) { @@ -38641,7 +38653,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, [e.id, t, e.sourcePosition, e.targetPosition]), i; } - function fve({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave: o, onContextMenu: i, onDoubleClick: a, nodesDraggable: s, elementsSelectable: c, nodesConnectable: u, nodesFocusable: f, resizeObserver: p, noDragClassName: m, noPanClassName: g, disableKeyboardA11y: y, rfId: b, nodeTypes: v, nodeClickDistance: x, onError: E }) { + function dve({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave: o, onContextMenu: i, onDoubleClick: a, nodesDraggable: s, elementsSelectable: c, nodesConnectable: u, nodesFocusable: d, resizeObserver: p, noDragClassName: m, noPanClassName: g, disableKeyboardA11y: y, rfId: b, nodeTypes: v, nodeClickDistance: x, onError: E }) { const { node: _, internals: C, isParent: k } = It((te) => { const se = te.nodeLookup.get(e), ue = te.parentLookup.has(e); return { @@ -38652,7 +38664,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, _n); let A = _.type || "default", O = v?.[A] || hj[A]; O === void 0 && (E?.("003", Gi.error003(A)), A = "default", O = v?.default || hj.default); - const P = !!(_.draggable || s && typeof _.draggable > "u"), I = !!(_.selectable || c && typeof _.selectable > "u"), $ = !!(_.connectable || u && typeof _.connectable > "u"), L = !!(_.focusable || f && typeof _.focusable > "u"), N = Cn(), U = EB(_), j = dve({ node: _, nodeType: A, hasDimensions: U, resizeObserver: p }), V = QB({ + const P = !!(_.draggable || s && typeof _.draggable > "u"), I = !!(_.selectable || c && typeof _.selectable > "u"), $ = !!(_.connectable || u && typeof _.connectable > "u"), L = !!(_.focusable || d && typeof _.focusable > "u"), N = Cn(), U = EB(_), j = fve({ node: _, nodeType: A, hasDimensions: U, resizeObserver: p }), V = QB({ nodeRef: j, disabled: _.hidden || !P, noDragClassName: m, @@ -38729,7 +38741,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...W }, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: B, onMouseMove: D, onMouseLeave: G, onContextMenu: z, onClick: X, onDoubleClick: H, onKeyDown: L ? Q : void 0, tabIndex: L ? 0 : void 0, onFocus: L ? ne : void 0, role: _.ariaRole ?? (L ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": y ? void 0 : `${qB}-${b}`, "aria-label": _.ariaLabel, ..._.domAttributes, children: S.jsx(Kye, { value: e, children: S.jsx(O, { id: e, data: _.data, type: A, positionAbsoluteX: C.positionAbsolute.x, positionAbsoluteY: C.positionAbsolute.y, selected: _.selected ?? !1, selectable: I, draggable: P, deletable: _.deletable ?? !0, isConnectable: $, sourcePosition: _.sourcePosition, targetPosition: _.targetPosition, dragging: V, dragHandle: _.dragHandle, zIndex: C.z, parentId: _.parentId, ...K }) }) }); } - var pve = T.memo(fve); + var pve = T.memo(dve); const hve = (e) => ({ nodesDraggable: e.nodesDraggable, nodesConnectable: e.nodesConnectable, @@ -38823,7 +38835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; r8.displayName = "MarkerDefinitions"; var wve = T.memo(r8); - function o8({ x: e, y: t, label: n, labelStyle: r, labelShowBg: o = !0, labelBgStyle: i, labelBgPadding: a = [2, 4], labelBgBorderRadius: s = 2, children: c, className: u, ...f }) { + function o8({ x: e, y: t, label: n, labelStyle: r, labelShowBg: o = !0, labelBgStyle: i, labelBgPadding: a = [2, 4], labelBgBorderRadius: s = 2, children: c, className: u, ...d }) { const [p, m] = T.useState({ x: 1, y: 0, width: 0, height: 0 }), g = qn(["react-flow__edge-textwrapper", u]), y = T.useRef(null); return T.useEffect(() => { if (y.current) { @@ -38835,12 +38847,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: b.height }); } - }, [n]), n ? S.jsxs("g", { transform: `translate(${e - p.width / 2} ${t - p.height / 2})`, className: g, visibility: p.width ? "visible" : "hidden", ...f, children: [o && S.jsx("rect", { width: p.width + 2 * a[0], x: -a[0], y: -a[1], height: p.height + 2 * a[1], className: "react-flow__edge-textbg", style: i, rx: s, ry: s }), S.jsx("text", { className: "react-flow__edge-text", y: p.height / 2, dy: "0.3em", ref: y, style: r, children: n }), c] }) : null; + }, [n]), n ? S.jsxs("g", { transform: `translate(${e - p.width / 2} ${t - p.height / 2})`, className: g, visibility: p.width ? "visible" : "hidden", ...d, children: [o && S.jsx("rect", { width: p.width + 2 * a[0], x: -a[0], y: -a[1], height: p.height + 2 * a[1], className: "react-flow__edge-textbg", style: i, rx: s, ry: s }), S.jsx("text", { className: "react-flow__edge-text", y: p.height / 2, dy: "0.3em", ref: y, style: r, children: n }), c] }) : null; } o8.displayName = "EdgeText"; const Sve = T.memo(o8); - function om({ path: e, labelX: t, labelY: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c, interactionWidth: u = 20, ...f }) { - return S.jsxs(S.Fragment, { children: [S.jsx("path", { ...f, d: e, fill: "none", className: qn(["react-flow__edge-path", f.className]) }), u ? S.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: u, className: "react-flow__edge-interaction" }) : null, r && Xo(t) && Xo(n) ? S.jsx(Sve, { x: t, y: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c }) : null] }); + function om({ path: e, labelX: t, labelY: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c, interactionWidth: u = 20, ...d }) { + return S.jsxs(S.Fragment, { children: [S.jsx("path", { ...d, d: e, fill: "none", className: qn(["react-flow__edge-path", d.className]) }), u ? S.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: u, className: "react-flow__edge-interaction" }) : null, r && Xo(t) && Xo(n) ? S.jsx(Sve, { x: t, y: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c }) : null] }); } function yj({ pos: e, x1: t, y1: n, x2: r, y2: o }) { return e === Ve.Left || e === Ve.Right ? [0.5 * (t + r), n] : [t, 0.5 * (n + o)]; @@ -38858,7 +38870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y1: o, x2: e, y2: t - }), [f, p, m, g] = RB({ + }), [d, p, m, g] = RB({ sourceX: e, sourceY: t, targetX: r, @@ -38870,14 +38882,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); return [ `M${e},${t} C${a},${s} ${c},${u} ${r},${o}`, - f, + d, p, m, g ]; } function a8(e) { - return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a, targetPosition: s, label: c, labelStyle: u, labelShowBg: f, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: x }) => { + return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a, targetPosition: s, label: c, labelStyle: u, labelShowBg: d, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: x }) => { const [E, _, C] = i8({ sourceX: n, sourceY: r, @@ -38886,15 +38898,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho targetY: i, targetPosition: s }), k = e.isInternal ? void 0 : t; - return S.jsx(om, { id: k, path: E, labelX: _, labelY: C, label: c, labelStyle: u, labelShowBg: f, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: x }); + return S.jsx(om, { id: k, path: E, labelX: _, labelY: C, label: c, labelStyle: u, labelShowBg: d, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: x }); }); } const _ve = a8({ isInternal: !1 }), s8 = a8({ isInternal: !0 }); _ve.displayName = "SimpleBezierEdge"; s8.displayName = "SimpleBezierEdgeInternal"; function l8(e) { - return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: f, labelBgBorderRadius: p, style: m, sourcePosition: g = Ve.Bottom, targetPosition: y = Ve.Top, markerEnd: b, markerStart: v, pathOptions: x, interactionWidth: E }) => { - const [_, C, k] = fC({ + return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: p, style: m, sourcePosition: g = Ve.Bottom, targetPosition: y = Ve.Top, markerEnd: b, markerStart: v, pathOptions: x, interactionWidth: E }) => { + const [_, C, k] = dC({ sourceX: n, sourceY: r, sourcePosition: g, @@ -38905,32 +38917,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho offset: x?.offset, stepPosition: x?.stepPosition }), A = e.isInternal ? void 0 : t; - return S.jsx(om, { id: A, path: _, labelX: C, labelY: k, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: b, markerStart: v, interactionWidth: E }); + return S.jsx(om, { id: A, path: _, labelX: C, labelY: k, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: p, style: m, markerEnd: b, markerStart: v, interactionWidth: E }); }); } const c8 = l8({ isInternal: !1 }), u8 = l8({ isInternal: !0 }); c8.displayName = "SmoothStepEdge"; u8.displayName = "SmoothStepEdgeInternal"; - function d8(e) { + function f8(e) { return T.memo(({ id: t, ...n }) => { const r = e.isInternal ? void 0 : t; return S.jsx(c8, { ...n, id: r, pathOptions: T.useMemo(() => ({ borderRadius: 0, offset: n.pathOptions?.offset }), [n.pathOptions?.offset]) }); }); } - const Eve = d8({ isInternal: !1 }), f8 = d8({ isInternal: !0 }); + const Eve = f8({ isInternal: !1 }), d8 = f8({ isInternal: !0 }); Eve.displayName = "StepEdge"; - f8.displayName = "StepEdgeInternal"; + d8.displayName = "StepEdgeInternal"; function p8(e) { - return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: g, markerStart: y, interactionWidth: b }) => { + return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: p, style: m, markerEnd: g, markerStart: y, interactionWidth: b }) => { const [v, x, E] = MB({ sourceX: n, sourceY: r, targetX: o, targetY: i }), _ = e.isInternal ? void 0 : t; - return S.jsx(om, { id: _, path: v, labelX: x, labelY: E, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: g, markerStart: y, interactionWidth: b }); + return S.jsx(om, { id: _, path: v, labelX: x, labelY: E, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: p, style: m, markerEnd: g, markerStart: y, interactionWidth: b }); }); } const Cve = p8({ isInternal: !1 }), h8 = p8({ isInternal: !0 }); Cve.displayName = "StraightEdge"; h8.displayName = "StraightEdgeInternal"; function m8(e) { - return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a = Ve.Bottom, targetPosition: s = Ve.Top, label: c, labelStyle: u, labelShowBg: f, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, pathOptions: x, interactionWidth: E }) => { + return T.memo(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a = Ve.Bottom, targetPosition: s = Ve.Top, label: c, labelStyle: u, labelShowBg: d, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, pathOptions: x, interactionWidth: E }) => { const [_, C, k] = IT({ sourceX: n, sourceY: r, @@ -38940,7 +38952,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho targetPosition: s, curvature: x?.curvature }), A = e.isInternal ? void 0 : t; - return S.jsx(om, { id: A, path: _, labelX: C, labelY: k, label: c, labelStyle: u, labelShowBg: f, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: E }); + return S.jsx(om, { id: A, path: _, labelX: C, labelY: k, label: c, labelStyle: u, labelShowBg: d, labelBgStyle: p, labelBgPadding: m, labelBgBorderRadius: g, style: y, markerEnd: b, markerStart: v, interactionWidth: E }); }); } const kve = m8({ isInternal: !1 }), g8 = m8({ isInternal: !0 }); @@ -38949,7 +38961,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const vj = { default: g8, straight: h8, - step: f8, + step: d8, smoothstep: u8, simplebezier: s8 }, bj = { @@ -38963,14 +38975,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function wj({ position: e, centerX: t, centerY: n, radius: r = 10, onMouseDown: o, onMouseEnter: i, onMouseOut: a, type: s }) { return S.jsx("circle", { onMouseDown: o, onMouseEnter: i, onMouseOut: a, className: qn([xj, `${xj}-${s}`]), cx: Tve(t, r, e), cy: Ave(n, r, e), r, stroke: "transparent", fill: "transparent" }); } - function Rve({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourceY: o, targetX: i, targetY: a, sourcePosition: s, targetPosition: c, onReconnect: u, onReconnectStart: f, onReconnectEnd: p, setReconnecting: m, setUpdateHover: g }) { + function Rve({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourceY: o, targetX: i, targetY: a, sourcePosition: s, targetPosition: c, onReconnect: u, onReconnectStart: d, onReconnectEnd: p, setReconnecting: m, setUpdateHover: g }) { const y = Cn(), b = (C, k) => { if (C.button !== 0) return; const { autoPanOnConnect: A, domNode: O, isValidConnection: P, connectionMode: I, connectionRadius: $, lib: L, onConnectStart: N, onConnectEnd: U, cancelConnection: j, nodeLookup: V, rfId: F, panBy: K, updateConnection: W } = y.getState(), Y = k.type === "target", B = (z, H) => { m(!1), p?.(z, n, k.type, H); }, D = (z) => u?.(n, z), G = (z, H) => { - m(!0), f?.(C, n, k.type), N?.(z, H); + m(!0), d?.(C, n, k.type), N?.(z, H); }; mC.onPointerDown(C.nativeEvent, { autoPanOnConnect: A, @@ -39000,7 +39012,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, v = (C) => b(C, { nodeId: n.target, id: n.targetHandle ?? null, type: "target" }), x = (C) => b(C, { nodeId: n.source, id: n.sourceHandle ?? null, type: "source" }), E = () => g(!0), _ = () => g(!1); return S.jsxs(S.Fragment, { children: [(e === !0 || e === "source") && S.jsx(wj, { position: s, centerX: r, centerY: o, radius: t, onMouseDown: v, onMouseEnter: E, onMouseOut: _, type: "source" }), (e === !0 || e === "target") && S.jsx(wj, { position: c, centerX: i, centerY: a, radius: t, onMouseDown: x, onMouseEnter: E, onMouseOut: _, type: "target" })] }); } - function Ove({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectable: r, onClick: o, onDoubleClick: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: u, reconnectRadius: f, onReconnect: p, onReconnectStart: m, onReconnectEnd: g, rfId: y, edgeTypes: b, noPanClassName: v, onError: x, disableKeyboardA11y: E }) { + function Ove({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectable: r, onClick: o, onDoubleClick: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: u, reconnectRadius: d, onReconnect: p, onReconnectStart: m, onReconnectEnd: g, rfId: y, edgeTypes: b, noPanClassName: v, onError: x, disableKeyboardA11y: E }) { let _ = It((ee) => ee.edgeLookup.get(e)); const C = It((ee) => ee.defaultEdgeOptions); _ = C ? { ...C, ..._ } : _; @@ -39067,7 +39079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho updating: L, selectable: I } - ]), onClick: X, onDoubleClick: Q, onContextMenu: ne, onMouseEnter: te, onMouseMove: se, onMouseLeave: ue, onKeyDown: O ? J : void 0, tabIndex: O ? 0 : void 0, role: _.ariaRole ?? (O ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": _.ariaLabel === null ? void 0 : _.ariaLabel || `Edge from ${_.source} to ${_.target}`, "aria-describedby": O ? `${WB}-${y}` : void 0, ref: $, ..._.domAttributes, children: [!U && S.jsx(A, { id: e, source: _.source, target: _.target, type: _.type, selected: _.selected, animated: _.animated, selectable: I, deletable: _.deletable ?? !0, label: _.label, labelStyle: _.labelStyle, labelShowBg: _.labelShowBg, labelBgStyle: _.labelBgStyle, labelBgPadding: _.labelBgPadding, labelBgBorderRadius: _.labelBgBorderRadius, sourceX: K, sourceY: W, targetX: Y, targetY: B, sourcePosition: D, targetPosition: G, data: _.data, style: _.style, sourceHandleId: _.sourceHandle, targetHandleId: _.targetHandle, markerStart: z, markerEnd: H, pathOptions: "pathOptions" in _ ? _.pathOptions : void 0, interactionWidth: _.interactionWidth }), P && S.jsx(Rve, { edge: _, isReconnectable: P, reconnectRadius: f, onReconnect: p, onReconnectStart: m, onReconnectEnd: g, sourceX: K, sourceY: W, targetX: Y, targetY: B, sourcePosition: D, targetPosition: G, setUpdateHover: N, setReconnecting: j })] }) }); + ]), onClick: X, onDoubleClick: Q, onContextMenu: ne, onMouseEnter: te, onMouseMove: se, onMouseLeave: ue, onKeyDown: O ? J : void 0, tabIndex: O ? 0 : void 0, role: _.ariaRole ?? (O ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": _.ariaLabel === null ? void 0 : _.ariaLabel || `Edge from ${_.source} to ${_.target}`, "aria-describedby": O ? `${WB}-${y}` : void 0, ref: $, ..._.domAttributes, children: [!U && S.jsx(A, { id: e, source: _.source, target: _.target, type: _.type, selected: _.selected, animated: _.animated, selectable: I, deletable: _.deletable ?? !0, label: _.label, labelStyle: _.labelStyle, labelShowBg: _.labelShowBg, labelBgStyle: _.labelBgStyle, labelBgPadding: _.labelBgPadding, labelBgBorderRadius: _.labelBgBorderRadius, sourceX: K, sourceY: W, targetX: Y, targetY: B, sourcePosition: D, targetPosition: G, data: _.data, style: _.style, sourceHandleId: _.sourceHandle, targetHandleId: _.targetHandle, markerStart: z, markerEnd: H, pathOptions: "pathOptions" in _ ? _.pathOptions : void 0, interactionWidth: _.interactionWidth }), P && S.jsx(Rve, { edge: _, isReconnectable: P, reconnectRadius: d, onReconnect: p, onReconnectStart: m, onReconnectEnd: g, sourceX: K, sourceY: W, targetX: Y, targetY: B, sourcePosition: D, targetPosition: G, setUpdateHover: N, setReconnecting: j })] }) }); } var Mve = T.memo(Ove); const Nve = (e) => ({ @@ -39077,9 +39089,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho connectionMode: e.connectionMode, onError: e.onError }); - function y8({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: o, onReconnect: i, onEdgeContextMenu: a, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: u, onEdgeClick: f, reconnectRadius: p, onEdgeDoubleClick: m, onReconnectStart: g, onReconnectEnd: y, disableKeyboardA11y: b }) { + function y8({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: o, onReconnect: i, onEdgeContextMenu: a, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: u, onEdgeClick: d, reconnectRadius: p, onEdgeDoubleClick: m, onReconnectStart: g, onReconnectEnd: y, disableKeyboardA11y: b }) { const { edgesFocusable: v, edgesReconnectable: x, elementsSelectable: E, onError: _ } = It(Nve, _n), C = gve(t); - return S.jsxs("div", { className: "react-flow__edges", children: [S.jsx(wve, { defaultColor: e, rfId: n }), C.map((k) => S.jsx(Mve, { id: k, edgesFocusable: v, edgesReconnectable: x, elementsSelectable: E, noPanClassName: o, onReconnect: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: u, onClick: f, reconnectRadius: p, onDoubleClick: m, onReconnectStart: g, onReconnectEnd: y, rfId: n, onError: _, edgeTypes: r, disableKeyboardA11y: b }, k))] }); + return S.jsxs("div", { className: "react-flow__edges", children: [S.jsx(wve, { defaultColor: e, rfId: n }), C.map((k) => S.jsx(Mve, { id: k, edgesFocusable: v, edgesReconnectable: x, elementsSelectable: E, noPanClassName: o, onReconnect: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: u, onClick: d, reconnectRadius: p, onDoubleClick: m, onReconnectStart: g, onReconnectEnd: y, rfId: n, onError: _, edgeTypes: r, disableKeyboardA11y: b }, k))] }); } y8.displayName = "EdgeRenderer"; const Pve = T.memo(y8), Ive = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`; @@ -39122,11 +39134,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !(i && o && c) ? null : S.jsx("svg", { style: e, width: i, height: a, className: "react-flow__connectionline react-flow__container", children: S.jsx("g", { className: qn(["react-flow__connection", vB(s)]), children: S.jsx(v8, { style: t, type: n, CustomComponent: r, isValid: s }) }) }); } const v8 = ({ style: e, type: t = qs.Bezier, CustomComponent: n, isValid: r }) => { - const { inProgress: o, from: i, fromNode: a, fromHandle: s, fromPosition: c, to: u, toNode: f, toHandle: p, toPosition: m, pointer: g } = Bve(); + const { inProgress: o, from: i, fromNode: a, fromHandle: s, fromPosition: c, to: u, toNode: d, toHandle: p, toPosition: m, pointer: g } = Bve(); if (!o) return; if (n) - return S.jsx(n, { connectionLineType: t, connectionLineStyle: e, fromNode: a, fromHandle: s, fromX: i.x, fromY: i.y, toX: u.x, toY: u.y, fromPosition: c, toPosition: m, connectionStatus: vB(r), toNode: f, toHandle: p, pointer: g }); + return S.jsx(n, { connectionLineType: t, connectionLineStyle: e, fromNode: a, fromHandle: s, fromX: i.x, fromY: i.y, toX: u.x, toY: u.y, fromPosition: c, toPosition: m, connectionStatus: vB(r), toNode: d, toHandle: p, pointer: g }); let y = ""; const b = { sourceX: i.x, @@ -39144,13 +39156,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [y] = i8(b); break; case qs.Step: - [y] = fC({ + [y] = dC({ ...b, borderRadius: 0 }); break; case qs.SmoothStep: - [y] = fC(b); + [y] = dC(b); break; default: [y] = MB(b); @@ -39167,12 +39179,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Cn(), T.useRef(!1), T.useEffect(() => { }, []); } - function b8({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: u, onNodeContextMenu: f, onSelectionContextMenu: p, onSelectionStart: m, onSelectionEnd: g, connectionLineType: y, connectionLineStyle: b, connectionLineComponent: v, connectionLineContainerStyle: x, selectionKeyCode: E, selectionOnDrag: _, selectionMode: C, multiSelectionKeyCode: k, panActivationKeyCode: A, zoomActivationKeyCode: O, deleteKeyCode: P, onlyRenderVisibleElements: I, elementsSelectable: $, defaultViewport: L, translateExtent: N, minZoom: U, maxZoom: j, preventScrolling: V, defaultMarkerColor: F, zoomOnScroll: K, zoomOnPinch: W, panOnScroll: Y, panOnScrollSpeed: B, panOnScrollMode: D, zoomOnDoubleClick: G, panOnDrag: z, onPaneClick: H, onPaneMouseEnter: X, onPaneMouseMove: Q, onPaneMouseLeave: ne, onPaneScroll: te, onPaneContextMenu: se, paneClickDistance: ue, nodeClickDistance: J, onEdgeContextMenu: ee, onEdgeMouseEnter: ie, onEdgeMouseMove: le, onEdgeMouseLeave: ge, reconnectRadius: Se, onReconnect: Me, onReconnectStart: je, onReconnectEnd: ze, noDragClassName: Ye, noWheelClassName: Ue, noPanClassName: Ne, disableKeyboardA11y: mt, nodeExtent: Je, rfId: Ae, viewport: oe, onViewportChange: de }) { - return Sj(e), Sj(t), qve(), jve(n), Fve(oe), S.jsx(ave, { onPaneClick: H, onPaneMouseEnter: X, onPaneMouseMove: Q, onPaneMouseLeave: ne, onPaneContextMenu: se, onPaneScroll: te, paneClickDistance: ue, deleteKeyCode: P, selectionKeyCode: E, selectionOnDrag: _, selectionMode: C, onSelectionStart: m, onSelectionEnd: g, multiSelectionKeyCode: k, panActivationKeyCode: A, zoomActivationKeyCode: O, elementsSelectable: $, zoomOnScroll: K, zoomOnPinch: W, zoomOnDoubleClick: G, panOnScroll: Y, panOnScrollSpeed: B, panOnScrollMode: D, panOnDrag: z, defaultViewport: L, translateExtent: N, minZoom: U, maxZoom: j, onSelectionContextMenu: p, preventScrolling: V, noDragClassName: Ye, noWheelClassName: Ue, noPanClassName: Ne, disableKeyboardA11y: mt, onViewportChange: de, isControlledViewport: !!oe, children: S.jsxs($ve, { children: [S.jsx(Pve, { edgeTypes: t, onEdgeClick: o, onEdgeDoubleClick: a, onReconnect: Me, onReconnectStart: je, onReconnectEnd: ze, onlyRenderVisibleElements: I, onEdgeContextMenu: ee, onEdgeMouseEnter: ie, onEdgeMouseMove: le, onEdgeMouseLeave: ge, reconnectRadius: Se, defaultMarkerColor: F, noPanClassName: Ne, disableKeyboardA11y: mt, rfId: Ae }), S.jsx(Vve, { style: b, type: y, component: v, containerStyle: x }), S.jsx("div", { className: "react-flow__edgelabel-renderer" }), S.jsx(mve, { nodeTypes: e, onNodeClick: r, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: u, onNodeContextMenu: f, nodeClickDistance: J, onlyRenderVisibleElements: I, noPanClassName: Ne, noDragClassName: Ye, disableKeyboardA11y: mt, nodeExtent: Je, rfId: Ae }), S.jsx("div", { className: "react-flow__viewport-portal" })] }) }); + function b8({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: u, onNodeContextMenu: d, onSelectionContextMenu: p, onSelectionStart: m, onSelectionEnd: g, connectionLineType: y, connectionLineStyle: b, connectionLineComponent: v, connectionLineContainerStyle: x, selectionKeyCode: E, selectionOnDrag: _, selectionMode: C, multiSelectionKeyCode: k, panActivationKeyCode: A, zoomActivationKeyCode: O, deleteKeyCode: P, onlyRenderVisibleElements: I, elementsSelectable: $, defaultViewport: L, translateExtent: N, minZoom: U, maxZoom: j, preventScrolling: V, defaultMarkerColor: F, zoomOnScroll: K, zoomOnPinch: W, panOnScroll: Y, panOnScrollSpeed: B, panOnScrollMode: D, zoomOnDoubleClick: G, panOnDrag: z, onPaneClick: H, onPaneMouseEnter: X, onPaneMouseMove: Q, onPaneMouseLeave: ne, onPaneScroll: te, onPaneContextMenu: se, paneClickDistance: ue, nodeClickDistance: J, onEdgeContextMenu: ee, onEdgeMouseEnter: ie, onEdgeMouseMove: le, onEdgeMouseLeave: ge, reconnectRadius: Se, onReconnect: Me, onReconnectStart: je, onReconnectEnd: ze, noDragClassName: Ye, noWheelClassName: Ue, noPanClassName: Ne, disableKeyboardA11y: mt, nodeExtent: Je, rfId: Ae, viewport: oe, onViewportChange: fe }) { + return Sj(e), Sj(t), qve(), jve(n), Fve(oe), S.jsx(ave, { onPaneClick: H, onPaneMouseEnter: X, onPaneMouseMove: Q, onPaneMouseLeave: ne, onPaneContextMenu: se, onPaneScroll: te, paneClickDistance: ue, deleteKeyCode: P, selectionKeyCode: E, selectionOnDrag: _, selectionMode: C, onSelectionStart: m, onSelectionEnd: g, multiSelectionKeyCode: k, panActivationKeyCode: A, zoomActivationKeyCode: O, elementsSelectable: $, zoomOnScroll: K, zoomOnPinch: W, zoomOnDoubleClick: G, panOnScroll: Y, panOnScrollSpeed: B, panOnScrollMode: D, panOnDrag: z, defaultViewport: L, translateExtent: N, minZoom: U, maxZoom: j, onSelectionContextMenu: p, preventScrolling: V, noDragClassName: Ye, noWheelClassName: Ue, noPanClassName: Ne, disableKeyboardA11y: mt, onViewportChange: fe, isControlledViewport: !!oe, children: S.jsxs($ve, { children: [S.jsx(Pve, { edgeTypes: t, onEdgeClick: o, onEdgeDoubleClick: a, onReconnect: Me, onReconnectStart: je, onReconnectEnd: ze, onlyRenderVisibleElements: I, onEdgeContextMenu: ee, onEdgeMouseEnter: ie, onEdgeMouseMove: le, onEdgeMouseLeave: ge, reconnectRadius: Se, defaultMarkerColor: F, noPanClassName: Ne, disableKeyboardA11y: mt, rfId: Ae }), S.jsx(Vve, { style: b, type: y, component: v, containerStyle: x }), S.jsx("div", { className: "react-flow__edgelabel-renderer" }), S.jsx(mve, { nodeTypes: e, onNodeClick: r, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: u, onNodeContextMenu: d, nodeClickDistance: J, onlyRenderVisibleElements: I, noPanClassName: Ne, noDragClassName: Ye, disableKeyboardA11y: mt, nodeExtent: Je, rfId: Ae }), S.jsx("div", { className: "react-flow__viewport-portal" })] }) }); } b8.displayName = "GraphView"; - const Wve = T.memo(b8), _j = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c = 0.5, maxZoom: u = 2, nodeOrigin: f, nodeExtent: p, zIndexMode: m = "basic" } = {}) => { - const g = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = r ?? t ?? [], E = n ?? e ?? [], _ = f ?? [0, 0], C = p ?? sh; + const Wve = T.memo(b8), _j = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c = 0.5, maxZoom: u = 2, nodeOrigin: d, nodeExtent: p, zIndexMode: m = "basic" } = {}) => { + const g = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = r ?? t ?? [], E = n ?? e ?? [], _ = d ?? [0, 0], C = p ?? sh; IB(b, v, x); const k = hC(E, g, y, { nodeOrigin: _, @@ -39210,7 +39222,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho nodesSelectionActive: !1, userSelectionActive: !1, userSelectionRect: null, - connectionMode: bd.Strict, + connectionMode: xf.Strict, domNode: null, paneDragging: !1, noPanClassName: "nopan", @@ -39251,7 +39263,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onNodesChangeMiddlewareMap: /* @__PURE__ */ new Map(), onEdgesChangeMiddlewareMap: /* @__PURE__ */ new Map() }; - }, Gve = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c, maxZoom: u, nodeOrigin: f, nodeExtent: p, zIndexMode: m }) => dye((g, y) => { + }, Gve = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c, maxZoom: u, nodeOrigin: d, nodeExtent: p, zIndexMode: m }) => fye((g, y) => { async function b() { const { nodeLookup: v, panZoom: x, fitViewOptions: E, fitViewResolver: _, width: C, height: k, minZoom: A, maxZoom: O } = y(); x && (await pge({ @@ -39273,7 +39285,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fitViewOptions: s, minZoom: c, maxZoom: u, - nodeOrigin: f, + nodeOrigin: d, nodeExtent: p, defaultNodes: n, defaultEdges: r, @@ -39447,7 +39459,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho reset: () => g({ ..._j() }) }; }, Object.is); - function Kve({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r, initialWidth: o, initialHeight: i, initialMinZoom: a, initialMaxZoom: s, initialFitViewOptions: c, fitView: u, nodeOrigin: f, nodeExtent: p, zIndexMode: m, children: g }) { + function Kve({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r, initialWidth: o, initialHeight: i, initialMinZoom: a, initialMaxZoom: s, initialFitViewOptions: c, fitView: u, nodeOrigin: d, nodeExtent: p, zIndexMode: m, children: g }) { const [y] = T.useState(() => Gve({ nodes: e, edges: t, @@ -39459,14 +39471,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho minZoom: a, maxZoom: s, fitViewOptions: c, - nodeOrigin: f, + nodeOrigin: d, nodeExtent: p, zIndexMode: m })); - return S.jsx(fye, { value: y, children: S.jsx($ye, { children: g }) }); + return S.jsx(dye, { value: y, children: S.jsx($ye, { children: g }) }); } - function Yve({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: o, width: i, height: a, fitView: s, fitViewOptions: c, minZoom: u, maxZoom: f, nodeOrigin: p, nodeExtent: m, zIndexMode: g }) { - return T.useContext(e1) ? S.jsx(S.Fragment, { children: e }) : S.jsx(Kve, { initialNodes: t, initialEdges: n, defaultNodes: r, defaultEdges: o, initialWidth: i, initialHeight: a, fitView: s, initialFitViewOptions: c, initialMinZoom: u, initialMaxZoom: f, nodeOrigin: p, nodeExtent: m, zIndexMode: g, children: e }); + function Yve({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: o, width: i, height: a, fitView: s, fitViewOptions: c, minZoom: u, maxZoom: d, nodeOrigin: p, nodeExtent: m, zIndexMode: g }) { + return T.useContext(e1) ? S.jsx(S.Fragment, { children: e }) : S.jsx(Kve, { initialNodes: t, initialEdges: n, defaultNodes: r, defaultEdges: o, initialWidth: i, initialHeight: a, fitView: s, initialFitViewOptions: c, initialMinZoom: u, initialMaxZoom: d, nodeOrigin: p, nodeExtent: m, zIndexMode: g, children: e }); } const Xve = { width: "100%", @@ -39475,11 +39487,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho position: "relative", zIndex: 0 }; - function Zve({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: c, onInit: u, onMove: f, onMoveStart: p, onMoveEnd: m, onConnect: g, onConnectStart: y, onConnectEnd: b, onClickConnectStart: v, onClickConnectEnd: x, onNodeMouseEnter: E, onNodeMouseMove: _, onNodeMouseLeave: C, onNodeContextMenu: k, onNodeDoubleClick: A, onNodeDragStart: O, onNodeDrag: P, onNodeDragStop: I, onNodesDelete: $, onEdgesDelete: L, onDelete: N, onSelectionChange: U, onSelectionDragStart: j, onSelectionDrag: V, onSelectionDragStop: F, onSelectionContextMenu: K, onSelectionStart: W, onSelectionEnd: Y, onBeforeDelete: B, connectionMode: D, connectionLineType: G = qs.Bezier, connectionLineStyle: z, connectionLineComponent: H, connectionLineContainerStyle: X, deleteKeyCode: Q = "Backspace", selectionKeyCode: ne = "Shift", selectionOnDrag: te = !1, selectionMode: se = lh.Full, panActivationKeyCode: ue = "Space", multiSelectionKeyCode: J = uh() ? "Meta" : "Control", zoomActivationKeyCode: ee = uh() ? "Meta" : "Control", snapToGrid: ie, snapGrid: le, onlyRenderVisibleElements: ge = !1, selectNodesOnDrag: Se, nodesDraggable: Me, autoPanOnNodeFocus: je, nodesConnectable: ze, nodesFocusable: Ye, nodeOrigin: Ue = GB, edgesFocusable: Ne, edgesReconnectable: mt, elementsSelectable: Je = !0, defaultViewport: Ae = Cye, minZoom: oe = 0.5, maxZoom: de = 2, translateExtent: _e = sh, preventScrolling: Ce = !0, nodeExtent: Oe, defaultMarkerColor: He = "#b1b1b7", zoomOnScroll: Ot = !0, zoomOnPinch: it = !0, panOnScroll: Et = !1, panOnScrollSpeed: xn = 0.5, panOnScrollMode: Mt = ac.Free, zoomOnDoubleClick: De = !0, panOnDrag: dt = !0, onPaneClick: hn, onPaneMouseEnter: nr, onPaneMouseMove: Lo, onPaneMouseLeave: on, onPaneScroll: an, onPaneContextMenu: ui, paneClickDistance: yo = 1, nodeClickDistance: Gr = 0, children: Em, onReconnect: Yd, onReconnectStart: bl, onReconnectEnd: V1, onEdgeContextMenu: Cm, onEdgeDoubleClick: km, onEdgeMouseEnter: Tm, onEdgeMouseMove: Xd, onEdgeMouseLeave: Zd, reconnectRadius: Am = 10, onNodesChange: Rm, onEdgesChange: di, noDragClassName: Wn = "nodrag", noWheelClassName: pr = "nowheel", noPanClassName: ia = "nopan", fitView: Fc, fitViewOptions: Om, connectOnClick: H1, attributionPosition: Mm, proOptions: xl, defaultEdgeOptions: Qd, elevateNodesOnSelect: ls = !0, elevateEdgesOnSelect: cs = !1, disableKeyboardA11y: us = !1, autoPanOnConnect: ds, autoPanOnNodeDrag: jn, autoPanSpeed: Nm, connectionRadius: Pm, isValidConnection: aa, onError: fs, style: q1, id: Jd, nodeDragThreshold: Im, connectionDragThreshold: W1, viewport: Lc, onViewportChange: zc, width: zo, height: Mr, colorMode: $m = "light", debug: G1, onScroll: Bc, ariaLabelConfig: jm, zIndexMode: wl = "basic", ...K1 }, Nr) { - const Sl = Jd || "1", Dm = Rye($m), ef = T.useCallback((sa) => { + function Zve({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: p, onMoveEnd: m, onConnect: g, onConnectStart: y, onConnectEnd: b, onClickConnectStart: v, onClickConnectEnd: x, onNodeMouseEnter: E, onNodeMouseMove: _, onNodeMouseLeave: C, onNodeContextMenu: k, onNodeDoubleClick: A, onNodeDragStart: O, onNodeDrag: P, onNodeDragStop: I, onNodesDelete: $, onEdgesDelete: L, onDelete: N, onSelectionChange: U, onSelectionDragStart: j, onSelectionDrag: V, onSelectionDragStop: F, onSelectionContextMenu: K, onSelectionStart: W, onSelectionEnd: Y, onBeforeDelete: B, connectionMode: D, connectionLineType: G = qs.Bezier, connectionLineStyle: z, connectionLineComponent: H, connectionLineContainerStyle: X, deleteKeyCode: Q = "Backspace", selectionKeyCode: ne = "Shift", selectionOnDrag: te = !1, selectionMode: se = lh.Full, panActivationKeyCode: ue = "Space", multiSelectionKeyCode: J = uh() ? "Meta" : "Control", zoomActivationKeyCode: ee = uh() ? "Meta" : "Control", snapToGrid: ie, snapGrid: le, onlyRenderVisibleElements: ge = !1, selectNodesOnDrag: Se, nodesDraggable: Me, autoPanOnNodeFocus: je, nodesConnectable: ze, nodesFocusable: Ye, nodeOrigin: Ue = GB, edgesFocusable: Ne, edgesReconnectable: mt, elementsSelectable: Je = !0, defaultViewport: Ae = Cye, minZoom: oe = 0.5, maxZoom: fe = 2, translateExtent: _e = sh, preventScrolling: Ce = !0, nodeExtent: Oe, defaultMarkerColor: He = "#b1b1b7", zoomOnScroll: Ot = !0, zoomOnPinch: it = !0, panOnScroll: Et = !1, panOnScrollSpeed: xn = 0.5, panOnScrollMode: Mt = ac.Free, zoomOnDoubleClick: De = !0, panOnDrag: ft = !0, onPaneClick: hn, onPaneMouseEnter: nr, onPaneMouseMove: Lo, onPaneMouseLeave: on, onPaneScroll: an, onPaneContextMenu: ui, paneClickDistance: yo = 1, nodeClickDistance: Gr = 0, children: Em, onReconnect: Xf, onReconnectStart: bl, onReconnectEnd: V1, onEdgeContextMenu: Cm, onEdgeDoubleClick: km, onEdgeMouseEnter: Tm, onEdgeMouseMove: Zf, onEdgeMouseLeave: Qf, reconnectRadius: Am = 10, onNodesChange: Rm, onEdgesChange: fi, noDragClassName: Wn = "nodrag", noWheelClassName: pr = "nowheel", noPanClassName: ia = "nopan", fitView: Fc, fitViewOptions: Om, connectOnClick: H1, attributionPosition: Mm, proOptions: xl, defaultEdgeOptions: Jf, elevateNodesOnSelect: ls = !0, elevateEdgesOnSelect: cs = !1, disableKeyboardA11y: us = !1, autoPanOnConnect: fs, autoPanOnNodeDrag: jn, autoPanSpeed: Nm, connectionRadius: Pm, isValidConnection: aa, onError: ds, style: q1, id: ed, nodeDragThreshold: Im, connectionDragThreshold: W1, viewport: Lc, onViewportChange: zc, width: zo, height: Mr, colorMode: $m = "light", debug: G1, onScroll: Bc, ariaLabelConfig: jm, zIndexMode: wl = "basic", ...K1 }, Nr) { + const Sl = ed || "1", Dm = Rye($m), td = T.useCallback((sa) => { sa.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), Bc?.(sa); }, [Bc]); - return S.jsx("div", { "data-testid": "rf__wrapper", ...K1, onScroll: ef, style: { ...q1, ...Xve }, ref: Nr, className: qn(["react-flow", o, Dm]), id: Jd, role: "application", children: S.jsxs(Yve, { nodes: e, edges: t, width: zo, height: Mr, fitView: Fc, fitViewOptions: Om, minZoom: oe, maxZoom: de, nodeOrigin: Ue, nodeExtent: Oe, zIndexMode: wl, children: [S.jsx(Wve, { onInit: u, onNodeClick: s, onEdgeClick: c, onNodeMouseEnter: E, onNodeMouseMove: _, onNodeMouseLeave: C, onNodeContextMenu: k, onNodeDoubleClick: A, nodeTypes: i, edgeTypes: a, connectionLineType: G, connectionLineStyle: z, connectionLineComponent: H, connectionLineContainerStyle: X, selectionKeyCode: ne, selectionOnDrag: te, selectionMode: se, deleteKeyCode: Q, multiSelectionKeyCode: J, panActivationKeyCode: ue, zoomActivationKeyCode: ee, onlyRenderVisibleElements: ge, defaultViewport: Ae, translateExtent: _e, minZoom: oe, maxZoom: de, preventScrolling: Ce, zoomOnScroll: Ot, zoomOnPinch: it, zoomOnDoubleClick: De, panOnScroll: Et, panOnScrollSpeed: xn, panOnScrollMode: Mt, panOnDrag: dt, onPaneClick: hn, onPaneMouseEnter: nr, onPaneMouseMove: Lo, onPaneMouseLeave: on, onPaneScroll: an, onPaneContextMenu: ui, paneClickDistance: yo, nodeClickDistance: Gr, onSelectionContextMenu: K, onSelectionStart: W, onSelectionEnd: Y, onReconnect: Yd, onReconnectStart: bl, onReconnectEnd: V1, onEdgeContextMenu: Cm, onEdgeDoubleClick: km, onEdgeMouseEnter: Tm, onEdgeMouseMove: Xd, onEdgeMouseLeave: Zd, reconnectRadius: Am, defaultMarkerColor: He, noDragClassName: Wn, noWheelClassName: pr, noPanClassName: ia, rfId: Sl, disableKeyboardA11y: us, nodeExtent: Oe, viewport: Lc, onViewportChange: zc }), S.jsx(Aye, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: g, onConnectStart: y, onConnectEnd: b, onClickConnectStart: v, onClickConnectEnd: x, nodesDraggable: Me, autoPanOnNodeFocus: je, nodesConnectable: ze, nodesFocusable: Ye, edgesFocusable: Ne, edgesReconnectable: mt, elementsSelectable: Je, elevateNodesOnSelect: ls, elevateEdgesOnSelect: cs, minZoom: oe, maxZoom: de, nodeExtent: Oe, onNodesChange: Rm, onEdgesChange: di, snapToGrid: ie, snapGrid: le, connectionMode: D, translateExtent: _e, connectOnClick: H1, defaultEdgeOptions: Qd, fitView: Fc, fitViewOptions: Om, onNodesDelete: $, onEdgesDelete: L, onDelete: N, onNodeDragStart: O, onNodeDrag: P, onNodeDragStop: I, onSelectionDrag: V, onSelectionDragStart: j, onSelectionDragStop: F, onMove: f, onMoveStart: p, onMoveEnd: m, noPanClassName: ia, nodeOrigin: Ue, rfId: Sl, autoPanOnConnect: ds, autoPanOnNodeDrag: jn, autoPanSpeed: Nm, onError: fs, connectionRadius: Pm, isValidConnection: aa, selectNodesOnDrag: Se, nodeDragThreshold: Im, connectionDragThreshold: W1, onBeforeDelete: B, debug: G1, ariaLabelConfig: jm, zIndexMode: wl }), S.jsx(Eye, { onSelectionChange: U }), Em, S.jsx(bye, { proOptions: xl, position: Mm }), S.jsx(vye, { rfId: Sl, disableKeyboardA11y: us })] }) }); + return S.jsx("div", { "data-testid": "rf__wrapper", ...K1, onScroll: td, style: { ...q1, ...Xve }, ref: Nr, className: qn(["react-flow", o, Dm]), id: ed, role: "application", children: S.jsxs(Yve, { nodes: e, edges: t, width: zo, height: Mr, fitView: Fc, fitViewOptions: Om, minZoom: oe, maxZoom: fe, nodeOrigin: Ue, nodeExtent: Oe, zIndexMode: wl, children: [S.jsx(Wve, { onInit: u, onNodeClick: s, onEdgeClick: c, onNodeMouseEnter: E, onNodeMouseMove: _, onNodeMouseLeave: C, onNodeContextMenu: k, onNodeDoubleClick: A, nodeTypes: i, edgeTypes: a, connectionLineType: G, connectionLineStyle: z, connectionLineComponent: H, connectionLineContainerStyle: X, selectionKeyCode: ne, selectionOnDrag: te, selectionMode: se, deleteKeyCode: Q, multiSelectionKeyCode: J, panActivationKeyCode: ue, zoomActivationKeyCode: ee, onlyRenderVisibleElements: ge, defaultViewport: Ae, translateExtent: _e, minZoom: oe, maxZoom: fe, preventScrolling: Ce, zoomOnScroll: Ot, zoomOnPinch: it, zoomOnDoubleClick: De, panOnScroll: Et, panOnScrollSpeed: xn, panOnScrollMode: Mt, panOnDrag: ft, onPaneClick: hn, onPaneMouseEnter: nr, onPaneMouseMove: Lo, onPaneMouseLeave: on, onPaneScroll: an, onPaneContextMenu: ui, paneClickDistance: yo, nodeClickDistance: Gr, onSelectionContextMenu: K, onSelectionStart: W, onSelectionEnd: Y, onReconnect: Xf, onReconnectStart: bl, onReconnectEnd: V1, onEdgeContextMenu: Cm, onEdgeDoubleClick: km, onEdgeMouseEnter: Tm, onEdgeMouseMove: Zf, onEdgeMouseLeave: Qf, reconnectRadius: Am, defaultMarkerColor: He, noDragClassName: Wn, noWheelClassName: pr, noPanClassName: ia, rfId: Sl, disableKeyboardA11y: us, nodeExtent: Oe, viewport: Lc, onViewportChange: zc }), S.jsx(Aye, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: g, onConnectStart: y, onConnectEnd: b, onClickConnectStart: v, onClickConnectEnd: x, nodesDraggable: Me, autoPanOnNodeFocus: je, nodesConnectable: ze, nodesFocusable: Ye, edgesFocusable: Ne, edgesReconnectable: mt, elementsSelectable: Je, elevateNodesOnSelect: ls, elevateEdgesOnSelect: cs, minZoom: oe, maxZoom: fe, nodeExtent: Oe, onNodesChange: Rm, onEdgesChange: fi, snapToGrid: ie, snapGrid: le, connectionMode: D, translateExtent: _e, connectOnClick: H1, defaultEdgeOptions: Jf, fitView: Fc, fitViewOptions: Om, onNodesDelete: $, onEdgesDelete: L, onDelete: N, onNodeDragStart: O, onNodeDrag: P, onNodeDragStop: I, onSelectionDrag: V, onSelectionDragStart: j, onSelectionDragStop: F, onMove: d, onMoveStart: p, onMoveEnd: m, noPanClassName: ia, nodeOrigin: Ue, rfId: Sl, autoPanOnConnect: fs, autoPanOnNodeDrag: jn, autoPanSpeed: Nm, onError: ds, connectionRadius: Pm, isValidConnection: aa, selectNodesOnDrag: Se, nodeDragThreshold: Im, connectionDragThreshold: W1, onBeforeDelete: B, debug: G1, ariaLabelConfig: jm, zIndexMode: wl }), S.jsx(Eye, { onSelectionChange: U }), Em, S.jsx(bye, { proOptions: xl, position: Mm }), S.jsx(vye, { rfId: Sl, disableKeyboardA11y: us })] }) }); } var Qve = XB(Zve); function Jve({ dimensions: e, lineWidth: t, variant: n, className: r }) { @@ -39510,7 +39522,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho bgColor: s, style: c, className: u, - patternClassName: f + patternClassName: d }) { const p = T.useRef(null), { transform: m, patternId: g } = It(n0e, _n), y = r || t0e[t], b = t === kr.Dots, v = t === kr.Cross, x = Array.isArray(n) ? n : [n, n], E = [x[0] * m[2] || 1, x[1] * m[2] || 1], _ = y * m[2], C = Array.isArray(i) ? i : [i, i], k = v ? [_, _] : E, A = [ C[0] * m[2] || 1 + k[0] / 2, @@ -39521,7 +39533,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...n1, "--xy-background-color-props": s, "--xy-background-pattern-color-props": a - }, ref: p, "data-testid": "rf__background", children: [S.jsx("pattern", { id: O, x: m[0] % E[0], y: m[1] % E[1], width: E[0], height: E[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${A[0]},-${A[1]})`, children: b ? S.jsx(e0e, { radius: _ / 2, className: f }) : S.jsx(Jve, { dimensions: k, lineWidth: o, variant: t, className: f }) }), S.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${O})` })] }); + }, ref: p, "data-testid": "rf__background", children: [S.jsx("pattern", { id: O, x: m[0] % E[0], y: m[1] % E[1], width: E[0], height: E[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${A[0]},-${A[1]})`, children: b ? S.jsx(e0e, { radius: _ / 2, className: d }) : S.jsx(Jve, { dimensions: k, lineWidth: o, variant: t, className: d }) }), S.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${O})` })] }); } x8.displayName = "Background"; const r0e = T.memo(x8); @@ -39549,7 +39561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho maxZoomReached: e.transform[2] >= e.maxZoom, ariaLabelConfig: e.ariaLabelConfig }); - function w8({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: r = !0, fitViewOptions: o, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: c, className: u, children: f, position: p = "bottom-left", orientation: m = "vertical", "aria-label": g }) { + function w8({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: r = !0, fitViewOptions: o, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: c, className: u, children: d, position: p = "bottom-left", orientation: m = "vertical", "aria-label": g }) { const y = Cn(), { isInteractive: b, minZoomReached: v, maxZoomReached: x, ariaLabelConfig: E } = It(c0e, _n), { zoomIn: _, zoomOut: C, fitView: k } = Ec(), A = () => { _(), i?.(); }, O = () => { @@ -39563,19 +39575,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho elementsSelectable: !b }), c?.(!b); }, $ = m === "horizontal" ? "horizontal" : "vertical"; - return S.jsxs(t1, { className: qn(["react-flow__controls", $, u]), position: p, style: e, "data-testid": "rf__controls", "aria-label": g ?? E["controls.ariaLabel"], children: [t && S.jsxs(S.Fragment, { children: [S.jsx(Sy, { onClick: A, className: "react-flow__controls-zoomin", title: E["controls.zoomIn.ariaLabel"], "aria-label": E["controls.zoomIn.ariaLabel"], disabled: x, children: S.jsx(o0e, {}) }), S.jsx(Sy, { onClick: O, className: "react-flow__controls-zoomout", title: E["controls.zoomOut.ariaLabel"], "aria-label": E["controls.zoomOut.ariaLabel"], disabled: v, children: S.jsx(i0e, {}) })] }), n && S.jsx(Sy, { className: "react-flow__controls-fitview", onClick: P, title: E["controls.fitView.ariaLabel"], "aria-label": E["controls.fitView.ariaLabel"], children: S.jsx(a0e, {}) }), r && S.jsx(Sy, { className: "react-flow__controls-interactive", onClick: I, title: E["controls.interactive.ariaLabel"], "aria-label": E["controls.interactive.ariaLabel"], children: b ? S.jsx(l0e, {}) : S.jsx(s0e, {}) }), f] }); + return S.jsxs(t1, { className: qn(["react-flow__controls", $, u]), position: p, style: e, "data-testid": "rf__controls", "aria-label": g ?? E["controls.ariaLabel"], children: [t && S.jsxs(S.Fragment, { children: [S.jsx(Sy, { onClick: A, className: "react-flow__controls-zoomin", title: E["controls.zoomIn.ariaLabel"], "aria-label": E["controls.zoomIn.ariaLabel"], disabled: x, children: S.jsx(o0e, {}) }), S.jsx(Sy, { onClick: O, className: "react-flow__controls-zoomout", title: E["controls.zoomOut.ariaLabel"], "aria-label": E["controls.zoomOut.ariaLabel"], disabled: v, children: S.jsx(i0e, {}) })] }), n && S.jsx(Sy, { className: "react-flow__controls-fitview", onClick: P, title: E["controls.fitView.ariaLabel"], "aria-label": E["controls.fitView.ariaLabel"], children: S.jsx(a0e, {}) }), r && S.jsx(Sy, { className: "react-flow__controls-interactive", onClick: I, title: E["controls.interactive.ariaLabel"], "aria-label": E["controls.interactive.ariaLabel"], children: b ? S.jsx(l0e, {}) : S.jsx(s0e, {}) }), d] }); } w8.displayName = "Controls"; T.memo(w8); - function u0e({ id: e, x: t, y: n, width: r, height: o, style: i, color: a, strokeColor: s, strokeWidth: c, className: u, borderRadius: f, shapeRendering: p, selected: m, onClick: g }) { + function u0e({ id: e, x: t, y: n, width: r, height: o, style: i, color: a, strokeColor: s, strokeWidth: c, className: u, borderRadius: d, shapeRendering: p, selected: m, onClick: g }) { const { background: y, backgroundColor: b } = i || {}, v = a || y || b; - return S.jsx("rect", { className: qn(["react-flow__minimap-node", { selected: m }, u]), x: t, y: n, rx: f, ry: f, width: r, height: o, style: { + return S.jsx("rect", { className: qn(["react-flow__minimap-node", { selected: m }, u]), x: t, y: n, rx: d, ry: d, width: r, height: o, style: { fill: v, stroke: s, strokeWidth: c }, shapeRendering: p, onClick: g ? (x) => g(x, e) : void 0 }); } - const d0e = T.memo(u0e), f0e = (e) => e.nodes.map((t) => t.id), a_ = (e) => e instanceof Function ? e : () => e; + const f0e = T.memo(u0e), d0e = (e) => e.nodes.map((t) => t.id), a_ = (e) => e instanceof Function ? e : () => e; function p0e({ nodeStrokeColor: e, nodeColor: t, @@ -39586,10 +39598,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * We need to rename the prop to be `CapitalCase` so that JSX will render it as * a component properly. */ - nodeComponent: i = d0e, + nodeComponent: i = f0e, onClick: a }) { - const s = It(f0e, _n), c = a_(t), u = a_(e), f = a_(n), p = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision"; + const s = It(d0e, _n), c = a_(t), u = a_(e), d = a_(n), p = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision"; return S.jsx(S.Fragment, { children: s.map((m) => ( /* * The split of responsibilities between MiniMapNodes and @@ -39598,11 +39610,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * For more details, see a similar commit in `NodeRenderer/index.tsx`. */ - S.jsx(m0e, { id: m, nodeColorFunc: c, nodeStrokeColorFunc: u, nodeClassNameFunc: f, nodeBorderRadius: r, nodeStrokeWidth: o, NodeComponent: i, onClick: a, shapeRendering: p }, m) + S.jsx(m0e, { id: m, nodeColorFunc: c, nodeStrokeColorFunc: u, nodeClassNameFunc: d, nodeBorderRadius: r, nodeStrokeWidth: o, NodeComponent: i, onClick: a, shapeRendering: p }, m) )) }); } function h0e({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: r, nodeBorderRadius: o, nodeStrokeWidth: i, shapeRendering: a, NodeComponent: s, onClick: c }) { - const { node: u, x: f, y: p, width: m, height: g } = It((y) => { + const { node: u, x: d, y: p, width: m, height: g } = It((y) => { const { internals: b } = y.nodeLookup.get(e), v = b.userNode, { x, y: E } = b.positionAbsolute, { width: _, height: C } = ns(v); return { node: v, @@ -39612,7 +39624,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: C }; }, _n); - return !u || u.hidden || !EB(u) ? null : S.jsx(s, { x: f, y: p, width: m, height: g, style: u.style, selected: !!u.selected, className: r(u), color: t(u), borderRadius: o, strokeColor: n(u), strokeWidth: i, shapeRendering: a, onClick: c, id: u.id }); + return !u || u.hidden || !EB(u) ? null : S.jsx(s, { x: d, y: p, width: m, height: g, style: u.style, selected: !!u.selected, className: r(u), color: t(u), borderRadius: o, strokeColor: n(u), strokeWidth: i, shapeRendering: a, onClick: c, id: u.id }); } const m0e = T.memo(h0e); var g0e = T.memo(p0e); @@ -39649,7 +39661,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho nodeComponent: s, bgColor: c, maskColor: u, - maskStrokeColor: f, + maskStrokeColor: d, maskStrokeWidth: p, position: m = "bottom-right", onClick: g, @@ -39694,7 +39706,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...e, "--xy-minimap-background-color-props": typeof c == "string" ? c : void 0, "--xy-minimap-mask-background-color-props": typeof u == "string" ? u : void 0, - "--xy-minimap-mask-stroke-color-props": typeof f == "string" ? f : void 0, + "--xy-minimap-mask-stroke-color-props": typeof d == "string" ? d : void 0, "--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p * Y : void 0, "--xy-minimap-node-background-color-props": typeof r == "string" ? r : void 0, "--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0, @@ -39704,11 +39716,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } S8.displayName = "MiniMap"; const S0e = T.memo(S8), _0e = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, E0e = { - [_d.Line]: "right", - [_d.Handle]: "bottom-right" + [Ef.Line]: "right", + [Ef.Handle]: "bottom-right" }; - function C0e({ nodeId: e, position: t, variant: n = _d.Handle, className: r, style: o = void 0, children: i, color: a, minWidth: s = 10, minHeight: c = 10, maxWidth: u = Number.MAX_VALUE, maxHeight: f = Number.MAX_VALUE, keepAspectRatio: p = !1, resizeDirection: m, autoScale: g = !0, shouldResize: y, onResizeStart: b, onResize: v, onResizeEnd: x }) { - const E = e8(), _ = typeof e == "string" ? e : E, C = Cn(), k = T.useRef(null), A = n === _d.Handle, O = It(T.useCallback(_0e(A && g), [A, g]), _n), P = T.useRef(null), I = t ?? E0e[n]; + function C0e({ nodeId: e, position: t, variant: n = Ef.Handle, className: r, style: o = void 0, children: i, color: a, minWidth: s = 10, minHeight: c = 10, maxWidth: u = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: p = !1, resizeDirection: m, autoScale: g = !0, shouldResize: y, onResizeStart: b, onResize: v, onResizeEnd: x }) { + const E = e8(), _ = typeof e == "string" ? e : E, C = Cn(), k = T.useRef(null), A = n === Ef.Handle, O = It(T.useCallback(_0e(A && g), [A, g]), _n), P = T.useRef(null), I = t ?? E0e[n]; T.useEffect(() => { if (!(!k.current || !_)) return P.current || (P.current = sye({ @@ -39790,7 +39802,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho minWidth: s, minHeight: c, maxWidth: u, - maxHeight: f + maxHeight: d }, keepAspectRatio: p, resizeDirection: m, @@ -39806,7 +39818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s, c, u, - f, + d, p, b, v, @@ -40163,15 +40175,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, [a, c] ); - let f = !1; - typeof n.type != "string" && "anyOf" in n.type && n.type.anyOf !== void 0 && (f = n.type.anyOf.some((m) => m === "None")); + let d = !1; + typeof n.type != "string" && "anyOf" in n.type && n.type.anyOf !== void 0 && (d = n.type.anyOf.some((m) => m === "None")); const p = t.local_state(() => t.reactflowRef); return /* @__PURE__ */ S.jsx( Nae, { onChange: u, inicolordata: s, - allow_null: f, + allow_null: d, inicolorspace: c, portalContainer: p } @@ -40194,9 +40206,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"], "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"], "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"] - }, Bd = "Slider", [yC, H0e, q0e] = Fb(Bd), [I8] = Qi(Bd, [ + }, Uf = "Slider", [yC, H0e, q0e] = Fb(Uf), [I8] = Qi(Uf, [ q0e - ]), [W0e, s1] = I8(Bd), $8 = T.forwardRef( + ]), [W0e, s1] = I8(Uf), $8 = T.forwardRef( (e, t) => { const { name: n, @@ -40207,7 +40219,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: u = [r], - value: f, + value: d, onValueChange: p = () => { }, onValueCommit: m = () => { @@ -40216,7 +40228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho form: y, ...b } = e, v = T.useRef(/* @__PURE__ */ new Set()), x = T.useRef(0), _ = a === "horizontal" ? G0e : K0e, [C = [], k] = hl({ - prop: f, + prop: d, defaultProp: u, onChange: (L) => { [...v.current][x.current]?.focus(), p(L); @@ -40288,8 +40300,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); } ); - $8.displayName = Bd; - var [j8, D8] = I8(Bd, { + $8.displayName = Uf; + var [j8, D8] = I8(Uf, { startEdge: "left", endEdge: "right", size: "width", @@ -40305,7 +40317,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onSlideMove: s, onSlideEnd: c, onStepKeyDown: u, - ...f + ...d } = e, [p, m] = T.useState(null), g = un(t, (_) => m(_)), y = T.useRef(void 0), b = a1(o), v = b === "ltr", x = v && !i || !v && i; function E(_) { const C = y.current || p.getBoundingClientRect(), k = [0, C.width], O = WT(k, x ? [n, r] : [r, n]); @@ -40324,10 +40336,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { dir: b, "data-orientation": "horizontal", - ...f, + ...d, ref: g, style: { - ...f.style, + ...d.style, "--radix-slider-thumb-transform": "translateX(-50%)" }, onSlideStart: (_) => { @@ -40361,9 +40373,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onSlideEnd: s, onStepKeyDown: c, ...u - } = e, f = T.useRef(null), p = un(t, f), m = T.useRef(void 0), g = !o; + } = e, d = T.useRef(null), p = un(t, d), m = T.useRef(void 0), g = !o; function y(b) { - const v = m.current || f.current.getBoundingClientRect(), x = [0, v.height], _ = WT(x, g ? [r, n] : [n, r]); + const v = m.current || d.current.getBoundingClientRect(), x = [0, v.height], _ = WT(x, g ? [r, n] : [n, r]); return m.current = v, _(b - v.top); } return /* @__PURE__ */ S.jsx( @@ -40415,7 +40427,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onEndKeyDown: s, onStepKeyDown: c, ...u - } = e, f = s1(Bd, n); + } = e, d = s1(Uf, n); return /* @__PURE__ */ S.jsx( xt.span, { @@ -40426,7 +40438,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), onPointerDown: Le(e.onPointerDown, (p) => { const m = p.target; - m.setPointerCapture(p.pointerId), p.preventDefault(), f.thumbs.has(m) ? m.focus() : r(p); + m.setPointerCapture(p.pointerId), p.preventDefault(), d.thumbs.has(m) ? m.focus() : r(p); }), onPointerMove: Le(e.onPointerMove, (p) => { p.target.hasPointerCapture(p.pointerId) && o(p); @@ -40457,7 +40469,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (e, t) => { const { __scopeSlider: n, ...r } = e, o = s1(vC, n), i = D8(vC, n), a = T.useRef(null), s = un(t, a), c = o.values.length, u = o.values.map( (m) => H8(m, o.min, o.max) - ), f = c > 1 ? Math.min(...u) : 0, p = 100 - Math.max(...u); + ), d = c > 1 ? Math.min(...u) : 0, p = 100 - Math.max(...u); return /* @__PURE__ */ S.jsx( xt.span, { @@ -40467,7 +40479,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ref: s, style: { ...e.style, - [i.startEdge]: f + "%", + [i.startEdge]: d + "%", [i.endEdge]: p + "%" } } @@ -40485,7 +40497,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ), Y0e = T.forwardRef( (e, t) => { - const { __scopeSlider: n, index: r, name: o, ...i } = e, a = s1(bC, n), s = D8(bC, n), [c, u] = T.useState(null), f = un(t, (E) => u(E)), p = c ? a.form || !!c.closest("form") : !0, m = Fz(c), g = a.values[r], y = g === void 0 ? 0 : H8(g, a.min, a.max), b = Q0e(r, a.values.length), v = m?.[s.size], x = v ? ebe(v, y, s.direction) : 0; + const { __scopeSlider: n, index: r, name: o, ...i } = e, a = s1(bC, n), s = D8(bC, n), [c, u] = T.useState(null), d = un(t, (E) => u(E)), p = c ? a.form || !!c.closest("form") : !0, m = Fz(c), g = a.values[r], y = g === void 0 ? 0 : H8(g, a.min, a.max), b = Q0e(r, a.values.length), v = m?.[s.size], x = v ? ebe(v, y, s.direction) : 0; return T.useEffect(() => { if (c) return a.thumbs.add(c), () => { @@ -40513,7 +40525,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "data-disabled": a.disabled ? "" : void 0, tabIndex: a.disabled ? void 0 : 0, ...i, - ref: f, + ref: d, style: g === void 0 ? { display: "none" } : e.style, onFocus: Le(e.onFocus, () => { a.valueIndexToChangeRef.current = r; @@ -40541,10 +40553,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return T.useEffect(() => { const s = o.current; if (!s) return; - const c = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(c, "value").set; - if (a !== t && f) { + const c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "value").set; + if (a !== t && d) { const p = new Event("input", { bubbles: !0 }); - f.call(s, t), s.dispatchEvent(p); + d.call(s, t), s.dispatchEvent(p); } }, [a, t]), /* @__PURE__ */ S.jsx( xt.input, @@ -40635,14 +40647,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, [c] ); - let f = o.connected ? e[1](r?.value) : a; - f === void 0 && (f = o.value_options?.min), f === void 0 && (f = o.value_options?.max), f === void 0 && (f = ""), f === null && (f = ""); + let d = o.connected ? e[1](r?.value) : a; + d === void 0 && (d = o.value_options?.min), d === void 0 && (d = o.value_options?.max), d === void 0 && (d = ""), d === null && (d = ""); let p = null, m = 1; return o.value_options?.step !== void 0 ? m = o.value_options.step : o.value_options?.max !== void 0 && o.value_options?.min !== void 0 && (m = (o.value_options?.max - o.value_options?.min) / 1e3), o.value_options?.max !== void 0 && o.value_options?.min !== void 0 && !o.connected && (p = /* @__PURE__ */ S.jsx("div", { style: { minWidth: "6.25rem" }, className: "SliderContainer", children: /* @__PURE__ */ S.jsxs( ibe, { className: "SliderRoot", - value: [f === void 0 ? o.value_options?.min : f], + value: [d === void 0 ? o.value_options?.min : d], min: o.value_options?.min, max: o.value_options?.max, step: m, @@ -40670,7 +40682,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { type: "text", className: "nodedatainput styledinput numberinput", - value: f, + value: d, onChange: (g) => s(g.target.value), onBlur: u, step: m, @@ -40678,13 +40690,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!(g.ctrlKey || g.metaKey)) { if (g.key === "ArrowUp") { g.shiftKey && (m *= 10); - let y = (parseFloat(f) || 0) + m; + let y = (parseFloat(d) || 0) + m; c(y); return; } if (g.key === "ArrowDown") { g.shiftKey && (m *= 10); - let y = (parseFloat(f) || 0) - m; + let y = (parseFloat(d) || 0) - m; c(y); return; } @@ -40699,7 +40711,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ) ] }); - }, ube = ({ inputconverter: e }) => q8({ inputconverter: e, parser: parseFloat }), dbe = ({ inputconverter: e }) => q8({ inputconverter: e, parser: parseInt }), fbe = (e) => e, pbe = (e) => parseFloat(e), hbe = (e) => !!e, mbe = (e) => e === "null" ? null : e, gbe = (e) => e === "nuinputconvertermber" ? pbe : e === "boolean" ? hbe : e === "undefined" ? mbe : fbe, fh = ({ + }, ube = ({ inputconverter: e }) => q8({ inputconverter: e, parser: parseFloat }), fbe = ({ inputconverter: e }) => q8({ inputconverter: e, parser: parseInt }), dbe = (e) => e, pbe = (e) => parseFloat(e), hbe = (e) => !!e, mbe = (e) => e === "null" ? null : e, gbe = (e) => e === "nuinputconvertermber" ? pbe : e === "boolean" ? hbe : e === "undefined" ? mbe : dbe, dh = ({ inputconverter: e, parser: t }) => { @@ -40722,7 +40734,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let x = c.values[b]; x === null && (x = "null"), x === void 0 && (x = "undefined"), u.push([c.keys[b], x.toString(), v]); } - const f = T.useCallback( + const d = T.useCallback( ({ value: b, // label @@ -40756,20 +40768,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ( // }> /* @__PURE__ */ S.jsx( - dce, + fce, { className: "nodedatainput styleddropdown", options: y, defaultValue: g, onChange: (b) => { if (b === null) { - f({ + d({ value: "", datatype: "string" }); return; } - f(b); + d(b); } } ) @@ -40791,15 +40803,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, [a, e, i] ); - let f = o.connected ? e[1](i) : s; - f == null && (f = ""), f = f.toString(); - const p = (f.toString().match(/\n/g) || []).length, m = Math.max(...f.split(` + let d = o.connected ? e[1](i) : s; + d == null && (d = ""), d = d.toString(); + const p = (d.toString().match(/\n/g) || []).length, m = Math.max(...d.split(` `).map((g) => g.length), 0); return /* @__PURE__ */ S.jsx( "textarea", { className: "nodedatainput styledinput stringinput", - value: f, + value: d, onChange: (g) => c(g.target.value), onBlur: (g) => { u(g); @@ -40826,7 +40838,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const t = Number(e); return typeof t == "number" && !Number.isNaN(t) ? t : e; } - const Ba = "__additional_property", I0 = "additionalProperties", ul = "allOf", Nt = "anyOf", Io = "const", l1 = "default", GT = "dependencies", vbe = "enum", ur = "__errors", rn = "$id", bbe = "if", Ed = "items", xbe = "_$junk_option_schema_id$_", Vv = "$name", yt = "oneOf", xC = "patternProperties", Ft = "properties", s_ = "readonly", W8 = "required", $0 = "submitButtonOptions", bn = "$ref", xp = "$schema", G8 = "root", K8 = "_", wbe = ["discriminator", "propertyName"], Tj = "formContext", Sbe = "layoutGridLookupMap", KT = "__rjsf_additionalProperties", Y8 = "__rjsf_rootSchema", _be = "ui:field", YT = "ui:widget", Zs = "ui:options", wC = "ui:globalOptions", Ebe = "https://json-schema.org/draft/2019-09/schema", Hv = "https://json-schema.org/draft/2020-12/schema"; + const Ba = "__additional_property", I0 = "additionalProperties", ul = "allOf", Nt = "anyOf", Io = "const", l1 = "default", GT = "dependencies", vbe = "enum", ur = "__errors", rn = "$id", bbe = "if", Cf = "items", xbe = "_$junk_option_schema_id$_", Vv = "$name", yt = "oneOf", xC = "patternProperties", Ft = "properties", s_ = "readonly", W8 = "required", $0 = "submitButtonOptions", bn = "$ref", xp = "$schema", G8 = "root", K8 = "_", wbe = ["discriminator", "propertyName"], Tj = "formContext", Sbe = "layoutGridLookupMap", KT = "__rjsf_additionalProperties", Y8 = "__rjsf_rootSchema", _be = "ui:field", YT = "ui:widget", Zs = "ui:options", wC = "ui:globalOptions", Ebe = "https://json-schema.org/draft/2019-09/schema", Hv = "https://json-schema.org/draft/2020-12/schema"; function Qe(e = {}, t = {}) { return e ? Object.keys(e).filter((n) => n.indexOf("ui:") === 0).reduce((n, r) => { const o = e[r]; @@ -40839,16 +40851,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { expandable: r = !0 } = Qe(t); return r === !1 ? r : e.maxProperties !== void 0 && n ? Object.keys(n).length < e.maxProperties : !0; } - var Z8 = typeof window == "object" && window && window.Object === Object && window, Cbe = typeof self == "object" && self && self.Object === Object && self, na = Z8 || Cbe || Function("return this")(), $o = na.Symbol, Q8 = Object.prototype, kbe = Q8.hasOwnProperty, Tbe = Q8.toString, Zf = $o ? $o.toStringTag : void 0; + var Z8 = typeof window == "object" && window && window.Object === Object && window, Cbe = typeof self == "object" && self && self.Object === Object && self, na = Z8 || Cbe || Function("return this")(), $o = na.Symbol, Q8 = Object.prototype, kbe = Q8.hasOwnProperty, Tbe = Q8.toString, Zd = $o ? $o.toStringTag : void 0; function Abe(e) { - var t = kbe.call(e, Zf), n = e[Zf]; + var t = kbe.call(e, Zd), n = e[Zd]; try { - e[Zf] = void 0; + e[Zd] = void 0; var r = !0; } catch { } var o = Tbe.call(e); - return r && (t ? e[Zf] = n : delete e[Zf]), o; + return r && (t ? e[Zd] = n : delete e[Zd]), o; } var Rbe = Object.prototype, Obe = Rbe.toString; function Mbe(e) { @@ -40868,7 +40880,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e != null && typeof e == "object"; } var Ibe = "[object Object]", $be = Function.prototype, jbe = Object.prototype, eU = $be.toString, Dbe = jbe.hasOwnProperty, Fbe = eU.call(Object); - function dl(e) { + function fl(e) { if (!jo(e) || rs(e) != Ibe) return !1; var t = c1(e); @@ -40889,7 +40901,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; if (Array.isArray(e)) return e.reduce((n, r, o) => ({ ...n, [o]: SC(r) }), t); - if (dl(e)) { + if (fl(e)) { const n = e; return Object.keys(n).reduce((r, o) => ({ ...r, [o]: SC(n[o]) }), t); } @@ -40992,15 +41004,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = sm(e) ? c1e : o1e; return t.test(Tc(e)); } - function d1e(e, t) { + function f1e(e, t) { return e?.[t]; } function Ac(e, t) { - var n = d1e(e, t); + var n = f1e(e, t); return u1e(n) ? n : void 0; } var ph = Ac(na, "Map"), hh = Ac(Object, "create"); - function f1e() { + function d1e() { this.__data__ = hh ? hh(null) : {}, this.size = 0; } function p1e(e) { @@ -41033,7 +41045,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.set(r[0], r[1]); } } - vc.prototype.clear = f1e; + vc.prototype.clear = d1e; vc.prototype.delete = p1e; vc.prototype.get = y1e; vc.prototype.has = x1e; @@ -41049,22 +41061,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } - function d1(e, t) { + function f1(e, t) { var n = e.__data__; return E1e(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map; } function C1e(e) { - var t = d1(this, e).delete(e); + var t = f1(this, e).delete(e); return this.size -= t ? 1 : 0, t; } function k1e(e) { - return d1(this, e).get(e); + return f1(this, e).get(e); } function T1e(e) { - return d1(this, e).has(e); + return f1(this, e).has(e); } function A1e(e, t) { - var n = d1(this, e), r = n.size; + var n = f1(this, e), r = n.size; return n.set(e, t), this.size += n.size == r ? 0 : 1, this; } function is(e) { @@ -41127,9 +41139,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var a = n & $1e, s = e.length, c = t.length; if (s != c && !(a && c > s)) return !1; - var u = i.get(e), f = i.get(t); - if (u && f) - return u == t && f == e; + var u = i.get(e), d = i.get(t); + if (u && d) + return u == t && d == e; var p = -1, m = !0, g = n & j1e ? new bc() : void 0; for (i.set(e, t), i.set(t, e); ++p < s; ) { var y = e[p], b = t[p]; @@ -41197,8 +41209,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (u) return u == t; r |= L1e, a.set(e, t); - var f = tU(s(e), s(t), r, o, i, a); - return a.delete(e), f; + var d = tU(s(e), s(t), r, o, i, a); + return a.delete(e), d; case K1e: if (c_) return c_.call(e) == c_.call(t); @@ -41239,7 +41251,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Nj(e) { return jo(e) && rs(e) == txe; } - var iU = Object.prototype, nxe = iU.hasOwnProperty, rxe = iU.propertyIsEnumerable, Cd = Nj(/* @__PURE__ */ (function() { + var iU = Object.prototype, nxe = iU.hasOwnProperty, rxe = iU.propertyIsEnumerable, kf = Nj(/* @__PURE__ */ (function() { return arguments; })()) ? Nj : function(e) { return jo(e) && nxe.call(e, "callee") && !rxe.call(e, "callee"); @@ -41248,7 +41260,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !1; } var aU = typeof ao == "object" && ao && !ao.nodeType && ao, Pj = aU && typeof so == "object" && so && !so.nodeType && so, ixe = Pj && Pj.exports === aU, Ij = ixe ? na.Buffer : void 0, axe = Ij ? Ij.isBuffer : void 0, xc = axe || oxe, sxe = 9007199254740991, lxe = /^(?:0|[1-9]\d*)$/; - function f1(e, t) { + function d1(e, t) { var n = typeof e; return t = t ?? sxe, !!t && (n == "number" || n != "symbol" && lxe.test(e)) && e > -1 && e % 1 == 0 && e < t; } @@ -41256,9 +41268,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function JT(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= cxe; } - var uxe = "[object Arguments]", dxe = "[object Array]", fxe = "[object Boolean]", pxe = "[object Date]", hxe = "[object Error]", mxe = "[object Function]", gxe = "[object Map]", yxe = "[object Number]", vxe = "[object Object]", bxe = "[object RegExp]", xxe = "[object Set]", wxe = "[object String]", Sxe = "[object WeakMap]", _xe = "[object ArrayBuffer]", Exe = "[object DataView]", Cxe = "[object Float32Array]", kxe = "[object Float64Array]", Txe = "[object Int8Array]", Axe = "[object Int16Array]", Rxe = "[object Int32Array]", Oxe = "[object Uint8Array]", Mxe = "[object Uint8ClampedArray]", Nxe = "[object Uint16Array]", Pxe = "[object Uint32Array]", yn = {}; + var uxe = "[object Arguments]", fxe = "[object Array]", dxe = "[object Boolean]", pxe = "[object Date]", hxe = "[object Error]", mxe = "[object Function]", gxe = "[object Map]", yxe = "[object Number]", vxe = "[object Object]", bxe = "[object RegExp]", xxe = "[object Set]", wxe = "[object String]", Sxe = "[object WeakMap]", _xe = "[object ArrayBuffer]", Exe = "[object DataView]", Cxe = "[object Float32Array]", kxe = "[object Float64Array]", Txe = "[object Int8Array]", Axe = "[object Int16Array]", Rxe = "[object Int32Array]", Oxe = "[object Uint8Array]", Mxe = "[object Uint8ClampedArray]", Nxe = "[object Uint16Array]", Pxe = "[object Uint32Array]", yn = {}; yn[Cxe] = yn[kxe] = yn[Txe] = yn[Axe] = yn[Rxe] = yn[Oxe] = yn[Mxe] = yn[Nxe] = yn[Pxe] = !0; - yn[uxe] = yn[dxe] = yn[_xe] = yn[fxe] = yn[Exe] = yn[pxe] = yn[hxe] = yn[mxe] = yn[gxe] = yn[yxe] = yn[vxe] = yn[bxe] = yn[xxe] = yn[wxe] = yn[Sxe] = !1; + yn[uxe] = yn[fxe] = yn[_xe] = yn[dxe] = yn[Exe] = yn[pxe] = yn[hxe] = yn[mxe] = yn[gxe] = yn[yxe] = yn[vxe] = yn[bxe] = yn[xxe] = yn[wxe] = yn[Sxe] = !1; function Ixe(e) { return jo(e) && JT(e.length) && !!yn[rs(e)]; } @@ -41267,21 +41279,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e(t); }; } - var sU = typeof ao == "object" && ao && !ao.nodeType && ao, Ip = sU && typeof so == "object" && so && !so.nodeType && so, $xe = Ip && Ip.exports === sU, u_ = $xe && Z8.process, kd = (function() { + var sU = typeof ao == "object" && ao && !ao.nodeType && ao, Ip = sU && typeof so == "object" && so && !so.nodeType && so, $xe = Ip && Ip.exports === sU, u_ = $xe && Z8.process, Tf = (function() { try { var e = Ip && Ip.require && Ip.require("util").types; return e || u_ && u_.binding && u_.binding("util"); } catch { } - })(), $j = kd && kd.isTypedArray, lm = $j ? eA($j) : Ixe, jxe = Object.prototype, Dxe = jxe.hasOwnProperty; + })(), $j = Tf && Tf.isTypedArray, lm = $j ? eA($j) : Ixe, jxe = Object.prototype, Dxe = jxe.hasOwnProperty; function lU(e, t) { - var n = Zn(e), r = !n && Cd(e), o = !n && !r && xc(e), i = !n && !r && !o && lm(e), a = n || r || o || i, s = a ? oU(e.length, String) : [], c = s.length; + var n = Zn(e), r = !n && kf(e), o = !n && !r && xc(e), i = !n && !r && !o && lm(e), a = n || r || o || i, s = a ? oU(e.length, String) : [], c = s.length; for (var u in e) (t || Dxe.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode. (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties. - f1(u, c))) && s.push(u); + d1(u, c))) && s.push(u); return s; } var Fxe = Object.prototype; @@ -41309,8 +41321,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var Uxe = 1, Vxe = Object.prototype, Hxe = Vxe.hasOwnProperty; function qxe(e, t, n, r, o, i) { - var a = n & Uxe, s = _C(e), c = s.length, u = _C(t), f = u.length; - if (c != f && !a) + var a = n & Uxe, s = _C(e), c = s.length, u = _C(t), d = u.length; + if (c != d && !a) return !1; for (var p = c; p--; ) { var m = s[p]; @@ -41339,8 +41351,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return i.delete(e), i.delete(t), b; } - var EC = Ac(na, "DataView"), CC = Ac(na, "Promise"), sd = Ac(na, "Set"), kC = Ac(na, "WeakMap"), jj = "[object Map]", Wxe = "[object Object]", Dj = "[object Promise]", Fj = "[object Set]", Lj = "[object WeakMap]", zj = "[object DataView]", Gxe = Tc(EC), Kxe = Tc(ph), Yxe = Tc(CC), Xxe = Tc(sd), Zxe = Tc(kC), Ro = rs; - (EC && Ro(new EC(new ArrayBuffer(1))) != zj || ph && Ro(new ph()) != jj || CC && Ro(CC.resolve()) != Dj || sd && Ro(new sd()) != Fj || kC && Ro(new kC()) != Lj) && (Ro = function(e) { + var EC = Ac(na, "DataView"), CC = Ac(na, "Promise"), lf = Ac(na, "Set"), kC = Ac(na, "WeakMap"), jj = "[object Map]", Wxe = "[object Object]", Dj = "[object Promise]", Fj = "[object Set]", Lj = "[object WeakMap]", zj = "[object DataView]", Gxe = Tc(EC), Kxe = Tc(ph), Yxe = Tc(CC), Xxe = Tc(lf), Zxe = Tc(kC), Ro = rs; + (EC && Ro(new EC(new ArrayBuffer(1))) != zj || ph && Ro(new ph()) != jj || CC && Ro(CC.resolve()) != Dj || lf && Ro(new lf()) != Fj || kC && Ro(new kC()) != Lj) && (Ro = function(e) { var t = rs(e), n = t == Wxe ? e.constructor : void 0, r = n ? Tc(n) : ""; if (r) switch (r) { @@ -41361,16 +41373,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function ewe(e, t, n, r, o, i) { var a = Zn(e), s = Zn(t), c = a ? Uj : Ro(e), u = s ? Uj : Ro(t); c = c == Bj ? _y : c, u = u == Bj ? _y : u; - var f = c == _y, p = u == _y, m = c == u; + var d = c == _y, p = u == _y, m = c == u; if (m && xc(e)) { if (!xc(t)) return !1; - a = !0, f = !1; + a = !0, d = !1; } - if (m && !f) + if (m && !d) return i || (i = new Qo()), a || lm(e) ? tU(e, t, n, r, o, i) : Z1e(e, t, c, n, r, o, i); if (!(n & Qxe)) { - var g = f && Vj.call(e, "__wrapped__"), y = p && Vj.call(t, "__wrapped__"); + var g = d && Vj.call(e, "__wrapped__"), y = p && Vj.call(t, "__wrapped__"); if (g || y) { var b = g ? e.value() : e, v = y ? t.value() : t; return i || (i = new Qo()), o(b, v, n, r, i); @@ -41430,26 +41442,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t.push(o ? i.replace(cwe, "$1") : r || n); }), t; }); - function Ud(e, t) { + function Vf(e, t) { for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; ) o[n] = t(e[n], n, e); return o; } var Hj = $o ? $o.prototype : void 0, qj = Hj ? Hj.toString : void 0; - function dU(e) { + function fU(e) { if (typeof e == "string") return e; if (Zn(e)) - return Ud(e, dU) + ""; + return Vf(e, fU) + ""; if (um(e)) return qj ? qj.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -1 / 0 ? "-0" : t; } function rA(e) { - return e == null ? "" : dU(e); + return e == null ? "" : fU(e); } - function Vd(e, t) { + function Hf(e, t) { return Zn(e) ? e : tA(e, t) ? [e] : uU(rA(e)); } function Oc(e) { @@ -41459,7 +41471,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t == "0" && 1 / e == -1 / 0 ? "-0" : t; } function h1(e, t) { - t = Vd(t, e); + t = Hf(t, e); for (var n = 0, r = t.length; e != null && n < r; ) e = e[Oc(t[n++])]; return n && n == r ? e : void 0; @@ -41468,22 +41480,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var r = e == null ? void 0 : h1(e, t); return r === void 0 ? n : r; } - var uwe = Object.prototype, dwe = uwe.hasOwnProperty; - function fwe(e, t) { - return e != null && dwe.call(e, t); + var uwe = Object.prototype, fwe = uwe.hasOwnProperty; + function dwe(e, t) { + return e != null && fwe.call(e, t); } - function fU(e, t, n) { - t = Vd(t, e); + function dU(e, t, n) { + t = Hf(t, e); for (var r = -1, o = t.length, i = !1; ++r < o; ) { var a = Oc(t[r]); if (!(i = e != null && n(e, a))) break; e = e[a]; } - return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && JT(o) && f1(a, o) && (Zn(e) || Cd(e))); + return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && JT(o) && d1(a, o) && (Zn(e) || kf(e))); } function Tt(e, t) { - return e != null && fU(e, t, fwe); + return e != null && dU(e, t, dwe); } function gh(e, t) { return cm(e, t); @@ -41511,14 +41523,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function aA(e, t, n, r) { if (!$t(e)) return e; - t = Vd(t, e); + t = Hf(t, e); for (var o = -1, i = t.length, a = i - 1, s = e; s != null && ++o < i; ) { var c = Oc(t[o]), u = n; if (c === "__proto__" || c === "constructor" || c === "prototype") return e; if (o != a) { - var f = s[c]; - u = r ? r(f, c, s) : void 0, u === void 0 && (u = $t(f) ? f : f1(t[o + 1]) ? [] : {}); + var d = s[c]; + u = r ? r(d, c, s) : void 0, u === void 0 && (u = $t(d) ? d : d1(t[o + 1]) ? [] : {}); } iA(s, c, u), s = s[c]; } @@ -41573,12 +41585,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = Cwe(e), n = t % 1; return t === t ? n ? t - n : t : 0; } - var kwe = 9007199254740991, d_ = 4294967295, Twe = Math.min; + var kwe = 9007199254740991, f_ = 4294967295, Twe = Math.min; function mU(e, t) { if (e = hU(e), e < 1 || e > kwe) return []; - var n = d_, r = Twe(e, d_); - t = pU(t), e -= d_; + var n = f_, r = Twe(e, f_); + t = pU(t), e -= f_; for (var o = oU(r, t); ++n < e; ) t(n); return o; @@ -41632,8 +41644,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (c === void 0 && !(s in e)) return !1; } else { - var f = new Qo(), p; - if (!(p === void 0 ? cm(u, c, Rwe | Owe, r, f) : p)) + var d = new Qo(), p; + if (!(p === void 0 ? cm(u, c, Rwe | Owe, r, d) : p)) return !1; } } @@ -41664,7 +41676,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e != null && t in Object(e); } function wU(e, t) { - return e != null && fU(e, t, Iwe); + return e != null && dU(e, t, Iwe); } var $we = 1, jwe = 2; function Dwe(e, t) { @@ -41733,7 +41745,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t]; } - function Hd(e, t, n, r) { + function qf(e, t, n, r) { var o = !n; n || (n = {}); for (var i = -1, a = t.length; ++i < a; ) { @@ -41758,11 +41770,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho r == "constructor" && (t || !qwe.call(e, r)) || n.push(r); return n; } - function dm(e) { + function fm(e) { return Rc(e) ? lU(e, !0) : Wwe(e); } function Gwe(e) { - return Hd(e, dm(e)); + return qf(e, fm(e)); } function Kwe(e, t, n, r, o, i, a) { var s = AC(e, n), c = AC(t, n), u = a.get(c); @@ -41770,12 +41782,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho TC(e, n, u); return; } - var f = i ? i(s, c, n + "", e, t, a) : void 0, p = f === void 0; + var d = i ? i(s, c, n + "", e, t, a) : void 0, p = d === void 0; if (p) { var m = Zn(c), g = !m && xc(c), y = !m && !g && lm(c); - f = c, m || g || y ? Zn(s) ? f = s : yh(s) ? f = uA(s) : g ? (p = !1, f = _U(c, !0)) : y ? (p = !1, f = EU(c, !0)) : f = [] : dl(c) || Cd(c) ? (f = s, Cd(s) ? f = Gwe(s) : (!$t(s) || sm(s)) && (f = CU(c))) : p = !1; + d = c, m || g || y ? Zn(s) ? d = s : yh(s) ? d = uA(s) : g ? (p = !1, d = _U(c, !0)) : y ? (p = !1, d = EU(c, !0)) : d = [] : fl(c) || kf(c) ? (d = s, kf(s) ? d = Gwe(s) : (!$t(s) || sm(s)) && (d = CU(c))) : p = !1; } - p && (a.set(c, f), o(f, c, r, i, a), a.delete(c)), TC(e, n, f); + p && (a.set(c, d), o(d, c, r, i, a), a.delete(c)), TC(e, n, d); } function kU(e, t, n, r, o) { e !== t && yU(t, function(i, a) { @@ -41785,7 +41797,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var s = r ? r(AC(e, a), i, a + "", e, t, o) : void 0; s === void 0 && (s = i), TC(e, a, s); } - }, dm); + }, fm); } function Ywe(e, t, n) { switch (n.length) { @@ -41844,7 +41856,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!$t(n)) return !1; var r = typeof t; - return (r == "number" ? Rc(n) && f1(t, n.length) : r == "string" && t in n) ? am(n[t], e) : !1; + return (r == "number" ? Rc(n) && d1(t, n.length) : r == "string" && t in n) ? am(n[t], e) : !1; } function rSe(e) { return g1(function(t, n) { @@ -41860,20 +41872,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho kU(e, t, n); }), Jj = $o ? $o.isConcatSpreadable : void 0; function iSe(e) { - return Zn(e) || Cd(e) || !!(Jj && e && e[Jj]); + return Zn(e) || kf(e) || !!(Jj && e && e[Jj]); } - function fm(e, t, n, r, o) { + function dm(e, t, n, r, o) { var i = -1, a = e.length; for (n || (n = iSe), o || (o = []); ++i < a; ) { var s = e[i]; - t > 0 && n(s) ? t > 1 ? fm(s, t - 1, n, r, o) : ZT(o, s) : r || (o[o.length] = s); + t > 0 && n(s) ? t > 1 ? dm(s, t - 1, n, r, o) : ZT(o, s) : r || (o[o.length] = s); } return o; } var aSe = 1 / 0; function sSe(e) { var t = e == null ? 0 : e.length; - return t ? fm(e, aSe) : []; + return t ? dm(e, aSe) : []; } function lSe(e, t, n, r) { for (var o = e.length, i = n + -1; ++i < o; ) @@ -41893,19 +41905,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function RU(e, t, n) { return t === t ? uSe(e, t, n) : lSe(e, cSe, n); } - function dA(e, t) { + function fA(e, t) { var n = e == null ? 0 : e.length; return !!n && RU(e, t, 0) > -1; } function qv() { } - var dSe = 1 / 0, fSe = sd && 1 / XT(new sd([, -0]))[1] == dSe ? function(e) { - return new sd(e); + var fSe = 1 / 0, dSe = lf && 1 / XT(new lf([, -0]))[1] == fSe ? function(e) { + return new lf(e); } : qv, pSe = 200; function OU(e, t, n) { - var r = -1, o = dA, i = e.length, a = !0, s = [], c = s; + var r = -1, o = fA, i = e.length, a = !0, s = [], c = s; if (i >= pSe) { - var u = fSe(e); + var u = dSe(e); if (u) return XT(u); a = !1, o = mh, c = new bc(); @@ -41913,13 +41925,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c = s; e: for (; ++r < i; ) { - var f = e[r], p = f; - if (f = f !== 0 ? f : 0, a && p === p) { + var d = e[r], p = d; + if (d = d !== 0 ? d : 0, a && p === p) { for (var m = c.length; m--; ) if (c[m] === p) continue e; - s.push(f); - } else o(c, p, n) || (c !== s && c.push(p), s.push(f)); + s.push(d); + } else o(c, p, n) || (c !== s && c.push(p), s.push(d)); } return s; } @@ -41930,7 +41942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Hn(e) { if (e == null) return !0; - if (Rc(e) && (Zn(e) || typeof e == "string" || typeof e.splice == "function" || xc(e) || lm(e) || Cd(e))) + if (Rc(e) && (Zn(e) || typeof e == "string" || typeof e.splice == "function" || xc(e) || lm(e) || kf(e))) return !e.length; var t = Ro(e); if (t == hSe || t == mSe) @@ -41995,7 +42007,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Yu(e, t) { return e < t ? -1 : e > t ? 1 : 0; } - function f_(e, t) { + function d_(e, t) { const n = e.length; if (n === 0) return t; @@ -42053,8 +42065,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let s = 0; e: for (let c = 0; c < r; c++) { const u = n[c]; - for (let f = 0; f < s; f++) - if (e(u, a[f]) === 0) + for (let d = 0; d < s; d++) + if (e(u, a[d]) === 0) continue e; s = a.push(u); } @@ -42074,16 +42086,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (o === 0 || i === 0) return r; if (o > i) { - const f = t; - t = n, n = f; + const d = t; + t = n, n = d; const p = o; o = i, i = p; } const a = [...t].sort(e), s = [...n].sort(e); let c = 0, u = 0; for (; c < o && u < i; ) { - const f = e(a[c], s[u]); - f === 0 ? ((r.length === 0 || e(r[r.length - 1], a[c]) !== 0) && r.push(a[c]), c++, u++) : f < 0 ? c++ : u++; + const d = e(a[c], s[u]); + d === 0 ? ((r.length === 0 || e(r[r.length - 1], a[c]) !== 0) && r.push(a[c]), c++, u++) : d < 0 ? c++ : u++; } return r; }; @@ -42187,36 +42199,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function u(b, v) { return b === null ? -1 : v === null ? 1 : c(b, v); } - const f = Vu(a), p = Us(wp, r(f)), m = Vu(o(a)), g = Us(Ei, a), y = { + const d = Vu(a), p = Us(wp, r(d)), m = Vu(o(a)), g = Us(Ei, a), y = { $id: Bn, $comment: Bn, $defs: p, $ref: Bn, $schema: Bn, const: s, - contains: f, + contains: d, contentEncoding: Bn, contentMediaType: Bn, default: s, definitions: p, description: Bn, - else: f, + else: d, examples: s, exclusiveMaximum: Bn, exclusiveMinimum: Bn, format: Bn, - if: f, + if: d, maximum: Bn, maxItems: Bn, maxLength: Bn, maxProperties: Bn, minimum: Bn, multipleOf: Bn, - not: f, + not: d, pattern: Bn, - propertyNames: f, + propertyNames: d, readOnly: Bn, - then: f, + then: d, title: Bn, writeOnly: Bn, uniqueItems: Us((b) => b === !1, PU), @@ -42400,7 +42412,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } else N && $ !== void 0 && C.push($); return C.length === 1 ? C[0] : c(C); } - function f(C, k, A, O, P, I) { + function d(C, k, A, O, P, I) { const $ = A.length; if ($ > 0 && P !== !1) if (I) @@ -42443,7 +42455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (; !se.next().done; ) ; } - return ne = f(ne, A, W, te, $, N), ne = f(ne, I, B, te, O, L), zl(C, "patternProperties", ne), C; + return ne = d(ne, A, W, te, $, N), ne = d(ne, I, B, te, O, L), zl(C, "patternProperties", ne), C; }, m = (C, { items: k = [], additionalItems: A }, { items: O = [], additionalItems: P }) => { const I = Array.isArray(k), $ = Array.isArray(O), L = []; if (C.items = L, I && $) { @@ -42581,11 +42593,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho allOf: (C, k) => r(C.concat(k)), propertyNames: x, contains: x, - dependencies: oD((C, k) => Array.isArray(C) ? Array.isArray(k) ? f_(C, k) : x(k, { required: C }) : Array.isArray(k) ? x(C, { required: k }) : x(C, k)), + dependencies: oD((C, k) => Array.isArray(C) ? Array.isArray(k) ? d_(C, k) : x(k, { required: C }) : Array.isArray(k) ? x(C, { required: k }) : x(C, k)), examples: (C, k) => { if (!Array.isArray(C) || !Array.isArray(k)) throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(C)}" and "${JSON.stringify(k)}"`); - return f_(C, k); + return d_(C, k); }, multipleOf: (C, k) => { let A = 1; @@ -42604,7 +42616,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho minLength: Math.max, minProperties: Math.max, uniqueItems: y_, - required: f_, + required: d_, ...s }; return { @@ -42630,9 +42642,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function BSe(e) { return (t) => e(zSe(t)); } - var Qf = {}, cD; + var Qd = {}, cD; function USe() { - if (cD) return Qf; + if (cD) return Qd; cD = 1; var e = /~/, t = /~[01]/g; function n(u) { @@ -42647,10 +42659,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function r(u) { return e.test(u) ? u.replace(t, n) : u; } - function o(u, f, p) { - for (var m, g, y = 1, b = f.length; y < b; ) { - if (f[y] === "constructor" || f[y] === "prototype" || f[y] === "__proto__") return u; - if (m = r(f[y++]), g = b > y, typeof u[m] > "u" && (Array.isArray(u) && m === "-" && (m = u.length), g && (f[y] !== "" && f[y] < 1 / 0 || f[y] === "-" ? u[m] = [] : u[m] = {})), !g) break; + function o(u, d, p) { + for (var m, g, y = 1, b = d.length; y < b; ) { + if (d[y] === "constructor" || d[y] === "prototype" || d[y] === "__proto__") return u; + if (m = r(d[y++]), g = b > y, typeof u[m] > "u" && (Array.isArray(u) && m === "-" && (m = u.length), g && (d[y] !== "" && d[y] < 1 / 0 || d[y] === "-" ? u[m] = [] : u[m] = {})), !g) break; u = u[m]; } var v = u[m]; @@ -42661,51 +42673,51 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (u = u.split("/"), u[0] === "") return u; throw new Error("Invalid JSON pointer."); } else if (Array.isArray(u)) { - for (const f of u) - if (typeof f != "string" && typeof f != "number") + for (const d of u) + if (typeof d != "string" && typeof d != "number") throw new Error("Invalid JSON pointer. Must be of type string or number."); return u; } throw new Error("Invalid JSON pointer."); } - function a(u, f) { + function a(u, d) { if (typeof u != "object") throw new Error("Invalid input object."); - f = i(f); - var p = f.length; + d = i(d); + var p = d.length; if (p === 1) return u; for (var m = 1; m < p; ) { - if (u = u[r(f[m++])], p === m) return u; + if (u = u[r(d[m++])], p === m) return u; if (typeof u != "object" || u === null) return; } } - function s(u, f, p) { + function s(u, d, p) { if (typeof u != "object") throw new Error("Invalid input object."); - if (f = i(f), f.length === 0) throw new Error("Invalid JSON pointer for set."); - return o(u, f, p); + if (d = i(d), d.length === 0) throw new Error("Invalid JSON pointer for set."); + return o(u, d, p); } function c(u) { - var f = i(u); + var d = i(u); return { get: function(p) { - return a(p, f); + return a(p, d); }, set: function(p, m) { - return s(p, f, m); + return s(p, d, m); } }; } - return Qf.get = a, Qf.set = s, Qf.compile = c, Qf; + return Qd.get = a, Qd.set = s, Qd.compile = c, Qd; } var VSe = USe(); const b_ = /* @__PURE__ */ Xi(VSe); function HSe(e, t) { - return e && Hd(t, Ko(t), e); + return e && qf(t, Ko(t), e); } function qSe(e, t) { - return e && Hd(t, dm(t), e); + return e && qf(t, fm(t), e); } function WSe(e, t) { - return Hd(e, QT(e), t); + return qf(e, QT(e), t); } var GSe = Object.getOwnPropertySymbols, $U = GSe ? function(e) { for (var t = []; e; ) @@ -42713,10 +42725,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t; } : rU; function KSe(e, t) { - return Hd(e, $U(e), t); + return qf(e, $U(e), t); } - function fA(e) { - return nU(e, dm, $U); + function dA(e) { + return nU(e, fm, $U); } var YSe = Object.prototype, XSe = YSe.hasOwnProperty; function ZSe(e) { @@ -42732,11 +42744,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var t = new e.constructor(e.source, JSe.exec(e)); return t.lastIndex = e.lastIndex, t; } - var uD = $o ? $o.prototype : void 0, dD = uD ? uD.valueOf : void 0; + var uD = $o ? $o.prototype : void 0, fD = uD ? uD.valueOf : void 0; function t_e(e) { - return dD ? Object(dD.call(e)) : {}; + return fD ? Object(fD.call(e)) : {}; } - var n_e = "[object Boolean]", r_e = "[object Date]", o_e = "[object Map]", i_e = "[object Number]", a_e = "[object RegExp]", s_e = "[object Set]", l_e = "[object String]", c_e = "[object Symbol]", u_e = "[object ArrayBuffer]", d_e = "[object DataView]", f_e = "[object Float32Array]", p_e = "[object Float64Array]", h_e = "[object Int8Array]", m_e = "[object Int16Array]", g_e = "[object Int32Array]", y_e = "[object Uint8Array]", v_e = "[object Uint8ClampedArray]", b_e = "[object Uint16Array]", x_e = "[object Uint32Array]"; + var n_e = "[object Boolean]", r_e = "[object Date]", o_e = "[object Map]", i_e = "[object Number]", a_e = "[object RegExp]", s_e = "[object Set]", l_e = "[object String]", c_e = "[object Symbol]", u_e = "[object ArrayBuffer]", f_e = "[object DataView]", d_e = "[object Float32Array]", p_e = "[object Float64Array]", h_e = "[object Int8Array]", m_e = "[object Int16Array]", g_e = "[object Int32Array]", y_e = "[object Uint8Array]", v_e = "[object Uint8ClampedArray]", b_e = "[object Uint16Array]", x_e = "[object Uint32Array]"; function w_e(e, t, n) { var r = e.constructor; switch (t) { @@ -42745,9 +42757,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case n_e: case r_e: return new r(+e); - case d_e: - return QSe(e, n); case f_e: + return QSe(e, n); + case d_e: case p_e: case h_e: case m_e: @@ -42774,21 +42786,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function __e(e) { return jo(e) && Ro(e) == S_e; } - var fD = kd && kd.isMap, E_e = fD ? eA(fD) : __e, C_e = "[object Set]"; + var dD = Tf && Tf.isMap, E_e = dD ? eA(dD) : __e, C_e = "[object Set]"; function k_e(e) { return jo(e) && Ro(e) == C_e; } - var pD = kd && kd.isSet, T_e = pD ? eA(pD) : k_e, A_e = 1, R_e = 2, O_e = 4, jU = "[object Arguments]", M_e = "[object Array]", N_e = "[object Boolean]", P_e = "[object Date]", I_e = "[object Error]", DU = "[object Function]", $_e = "[object GeneratorFunction]", j_e = "[object Map]", D_e = "[object Number]", FU = "[object Object]", F_e = "[object RegExp]", L_e = "[object Set]", z_e = "[object String]", B_e = "[object Symbol]", U_e = "[object WeakMap]", V_e = "[object ArrayBuffer]", H_e = "[object DataView]", q_e = "[object Float32Array]", W_e = "[object Float64Array]", G_e = "[object Int8Array]", K_e = "[object Int16Array]", Y_e = "[object Int32Array]", X_e = "[object Uint8Array]", Z_e = "[object Uint8ClampedArray]", Q_e = "[object Uint16Array]", J_e = "[object Uint32Array]", dn = {}; - dn[jU] = dn[M_e] = dn[V_e] = dn[H_e] = dn[N_e] = dn[P_e] = dn[q_e] = dn[W_e] = dn[G_e] = dn[K_e] = dn[Y_e] = dn[j_e] = dn[D_e] = dn[FU] = dn[F_e] = dn[L_e] = dn[z_e] = dn[B_e] = dn[X_e] = dn[Z_e] = dn[Q_e] = dn[J_e] = !0; - dn[I_e] = dn[DU] = dn[U_e] = !1; + var pD = Tf && Tf.isSet, T_e = pD ? eA(pD) : k_e, A_e = 1, R_e = 2, O_e = 4, jU = "[object Arguments]", M_e = "[object Array]", N_e = "[object Boolean]", P_e = "[object Date]", I_e = "[object Error]", DU = "[object Function]", $_e = "[object GeneratorFunction]", j_e = "[object Map]", D_e = "[object Number]", FU = "[object Object]", F_e = "[object RegExp]", L_e = "[object Set]", z_e = "[object String]", B_e = "[object Symbol]", U_e = "[object WeakMap]", V_e = "[object ArrayBuffer]", H_e = "[object DataView]", q_e = "[object Float32Array]", W_e = "[object Float64Array]", G_e = "[object Int8Array]", K_e = "[object Int16Array]", Y_e = "[object Int32Array]", X_e = "[object Uint8Array]", Z_e = "[object Uint8ClampedArray]", Q_e = "[object Uint16Array]", J_e = "[object Uint32Array]", fn = {}; + fn[jU] = fn[M_e] = fn[V_e] = fn[H_e] = fn[N_e] = fn[P_e] = fn[q_e] = fn[W_e] = fn[G_e] = fn[K_e] = fn[Y_e] = fn[j_e] = fn[D_e] = fn[FU] = fn[F_e] = fn[L_e] = fn[z_e] = fn[B_e] = fn[X_e] = fn[Z_e] = fn[Q_e] = fn[J_e] = !0; + fn[I_e] = fn[DU] = fn[U_e] = !1; function $p(e, t, n, r, o, i) { var a, s = t & A_e, c = t & R_e, u = t & O_e; if (n && (a = o ? n(e, r, o, i) : n(e)), a !== void 0) return a; if (!$t(e)) return e; - var f = Zn(e); - if (f) { + var d = Zn(e); + if (d) { if (a = ZSe(e), !s) return uA(e, a); } else { @@ -42799,7 +42811,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (a = c || m ? {} : CU(e), !s) return c ? KSe(e, qSe(a, e)) : WSe(e, HSe(a, e)); } else { - if (!dn[p]) + if (!fn[p]) return o ? e : {}; a = w_e(e, p, s); } @@ -42813,7 +42825,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }) : E_e(e) && e.forEach(function(v, x) { a.set(x, $p(v, t, n, x, e, i)); }); - var y = u ? c ? fA : _C : c ? dm : Ko, b = f ? void 0 : y(e); + var y = u ? c ? dA : _C : c ? fm : Ko, b = d ? void 0 : y(e); return sA(b || e, function(v, x) { b && (x = v, v = e[x]), iA(a, x, $p(v, t, n, x, e, i)); }), a; @@ -42833,14 +42845,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t.length < 2 ? e : h1(e, eEe(t, 0, -1)); } function zU(e, t) { - return t = Vd(t, e), e = tEe(e, t), e == null || delete e[Oc(LU(t))]; + return t = Hf(t, e), e = tEe(e, t), e == null || delete e[Oc(LU(t))]; } function nEe(e) { - return dl(e) ? void 0 : e; + return fl(e) ? void 0 : e; } function RC(e) { var t = e == null ? 0 : e.length; - return t ? fm(e, 1) : []; + return t ? dm(e, 1) : []; } function BU(e) { return AU(TU(e, void 0, RC), e + ""); @@ -42850,13 +42862,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (e == null) return n; var r = !1; - t = Ud(t, function(i) { - return i = Vd(i, e), r || (r = i.length > 1), i; - }), Hd(e, fA(e), n), r && (n = $p(n, rEe | oEe | iEe, nEe)); + t = Vf(t, function(i) { + return i = Hf(i, e), r || (r = i.length > 1), i; + }), qf(e, dA(e), n), r && (n = $p(n, rEe | oEe | iEe, nEe)); for (var o = t.length; o--; ) zU(n, t[o]); return n; - }), Jf = { exports: {} }, x_, hD; + }), Jd = { exports: {} }, x_, hD; function UU() { if (hD) return x_; hD = 1; @@ -42994,7 +43006,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return y.join(""); } - function f(m, g) { + function d(m, g) { const y = g !== !0 ? escape : unescape; return m.scheme !== void 0 && (m.scheme = y(m.scheme)), m.userinfo !== void 0 && (m.userinfo = y(m.userinfo)), m.host !== void 0 && (m.host = y(m.host)), m.path !== void 0 && (m.path = y(m.path)), m.query !== void 0 && (m.query = y(m.query)), m.fragment !== void 0 && (m.fragment = y(m.fragment)), m; } @@ -43013,7 +43025,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return x_ = { nonSimpleDomain: r, recomposeAuthority: p, - normalizeComponentEncoding: f, + normalizeComponentEncoding: d, removeDotSegments: u, isIPv4: t, isUUID: e, @@ -43075,7 +43087,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho k.error = k.error || "URN can not be parsed."; return k; } - function f(k, A) { + function d(k, A) { if (k.nid === void 0) throw new Error("URN without nid cannot be serialized"); const O = A.scheme || k.scheme || "urn", P = k.nid.toLowerCase(), I = `${O}:${A.nid || P}`, $ = C(I); @@ -43135,7 +43147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { scheme: "urn", parse: u, - serialize: f, + serialize: d, skipNormalize: !0 } ), @@ -43169,7 +43181,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var gD; function sEe() { - if (gD) return Jf.exports; + if (gD) return Jd.exports; gD = 1; const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: n, normalizeComponentEncoding: r, isIPv4: o, nonSimpleDomain: i } = UU(), { SCHEMES: a, getSchemeHandler: s } = aEe(); function c(v, x) { @@ -43178,10 +43190,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho y(m(v, x), x)), v; } function u(v, x, E) { - const _ = E ? Object.assign({ scheme: "null" }, E) : { scheme: "null" }, C = f(y(v, _), y(x, _), _, !0); + const _ = E ? Object.assign({ scheme: "null" }, E) : { scheme: "null" }, C = d(y(v, _), y(x, _), _, !0); return _.skipEscape = !0, m(C, _); } - function f(v, x, E, _) { + function d(v, x, E, _) { const C = {}; return _ || (v = y(m(v, E), E), x = y(m(x, E), E)), E = E || {}, !E.tolerant && x.scheme ? (C.scheme = x.scheme, C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = t(x.path || ""), C.query = x.query) : (x.userinfo !== void 0 || x.host !== void 0 || x.port !== void 0 ? (C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = t(x.path || ""), C.query = x.query) : (x.path ? (x.path[0] === "/" ? C.path = t(x.path) : ((v.userinfo !== void 0 || v.host !== void 0 || v.port !== void 0) && !v.path ? C.path = "/" + x.path : v.path ? C.path = v.path.slice(0, v.path.lastIndexOf("/") + 1) + x.path : C.path = x.path, C.path = t(C.path)), C.query = x.query) : (C.path = v.path, x.query !== void 0 ? C.query = x.query : C.query = v.query), C.userinfo = v.userinfo, C.host = v.host, C.port = v.port), C.scheme = v.scheme), C.fragment = x.fragment, C; } @@ -43251,12 +43263,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho SCHEMES: a, normalize: c, resolve: u, - resolveComponent: f, + resolveComponent: d, equal: p, serialize: m, parse: y }; - return Jf.exports = b, Jf.exports.default = b, Jf.exports.fastUri = b, Jf.exports; + return Jd.exports = b, Jd.exports.default = b, Jd.exports.fastUri = b, Jd.exports; } var lEe = sEe(); const pA = /* @__PURE__ */ Xi(lEe); @@ -43308,8 +43320,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (n.includes(a)) { if (n.length === 1) throw new Error(`Definition for ${e} is a circular reference`); - const [f, ...p] = n, m = [...p, o, f].join(" -> "); - throw new Error(`Definition for ${f} contains a circular reference through ${m}`); + const [d, ...p] = n, m = [...p, o, d].join(" -> "); + throw new Error(`Definition for ${d} contains a circular reference through ${m}`); } const [s, c] = hA(bn, i), u = VU(c, t, [...n, o], r); return Object.keys(s).length > 0 ? t[xp] === Ebe || t[xp] === Hv ? { [ul]: [s, u] } : { ...s, ...u } : u; @@ -43320,19 +43332,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return VU(e, t, [], n); } var cEe = "[object String]"; - function fl(e) { + function dl(e) { return typeof e == "string" || !Zn(e) && jo(e) && rs(e) == cEe; } function Ki(e) { let t; const n = Ee(e, wbe); - return fl(n) ? t = n : n !== void 0 && console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`), t; + return dl(n) ? t = n : n !== void 0 && console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`), t; } function bh(e) { return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : e == null ? "null" : typeof e == "boolean" ? "boolean" : isNaN(e) ? typeof e == "object" ? "object" : "string" : "number"; } var uEe = g1(function(e) { - return OU(fm(e, 1, yh, !0)); + return OU(dm(e, 1, yh, !0)); }); function oi(e) { let { type: t } = e; @@ -43345,9 +43357,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e && o in e && Rt(a) ? r[o] = Za(i, a) : e && t && (oi(e) === "object" || oi(t) === "object") && o === W8 && Array.isArray(i) && Array.isArray(a) ? r[o] = uEe(i, a) : r[o] = a, r; }, n); } - var dEe = "[object Number]"; + var fEe = "[object Number]"; function qU(e) { - return typeof e == "number" || jo(e) && rs(e) == dEe; + return typeof e == "number" || jo(e) && rs(e) == fEe; } function WU(e, t, n) { var r; @@ -43376,14 +43388,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return a; } else if (s[Ft]) { const c = { - anyOf: Object.keys(s[Ft]).map((f) => ({ - required: [f] + anyOf: Object.keys(s[Ft]).map((d) => ({ + required: [d] })) }; let u; if (s.anyOf) { - const { ...f } = s; - f.allOf ? f.allOf = f.allOf.slice() : f.allOf = [], f.allOf.push(c), u = f; + const { ...d } = s; + d.allOf ? d.allOf = d.allOf.slice() : d.allOf = [], d.allOf.push(c), u = d; } else u = Object.assign({}, s, c); if (delete u.required, e.isValid(u, t, r)) @@ -43396,16 +43408,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function vr(e, t, n = {}, r, o, i = !1) { return Ii(e, t, n, r, void 0, void 0, o, i)[0]; } - function fEe(e, t, n, r, o, i, a) { - const { if: s, then: c, else: u, ...f } = t, p = e.isValid(s, i || {}, n); - let m = [f], g = []; + function dEe(e, t, n, r, o, i, a) { + const { if: s, then: c, else: u, ...d } = t, p = e.isValid(s, i || {}, n); + let m = [d], g = []; if (r) c && typeof c != "boolean" && (g = g.concat(Ii(e, c, n, i, r, o, a))), u && typeof u != "boolean" && (g = g.concat(Ii(e, u, n, i, r, o, a))); else { const y = p ? c : u; y && typeof y != "boolean" && (g = g.concat(Ii(e, y, n, i, r, o, a))); } - return g.length && (m = g.map((y) => Za(f, y))), m.flatMap((y) => Ii(e, y, n, i, r, o, a)); + return g.length && (m = g.map((y) => Za(d, y))), m.flatMap((y) => Ii(e, y, n, i, r, o, a)); } function GU(e) { return e.reduce((n, r) => r.length > 1 ? r.flatMap((o) => mU(n.length, (i) => [...n[i]].concat(o))) : (n.forEach((o) => o.push(r[0])), n), [[]]); @@ -43418,7 +43430,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (c.length > 1 || c[0] !== t) return c; if (GT in t) - return XU(e, t, n, r, o, i, a).flatMap((f) => Ii(e, f, n, i, r, o, a)); + return XU(e, t, n, r, o, i, a).flatMap((d) => Ii(e, d, n, i, r, o, a)); if (ul in t && Array.isArray(t[ul])) { const u = t.allOf.map((p) => Ii(e, p, n, i, r, o, a)); return GU(u).map((p) => ({ @@ -43429,10 +43441,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return [t]; } function YU(e, t, n, r, o, i, a, s) { - const c = ld(t, n, o, void 0, s); + const c = cf(t, n, o, void 0, s); return c !== t ? Ii(e, c, n, i, r, o, a, s) : [t]; } - function ld(e, t, n, r, o) { + function cf(e, t, n, r, o) { if (!Rt(e)) return e; let i = e; @@ -43443,20 +43455,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n.push(a), i = { ...HU(a, t, r), ...s }, rn in i && (r = i[rn]); } if (Ft in i) { - const a = [], s = Bwe(i[Ft], (c, u, f) => { + const a = [], s = Bwe(i[Ft], (c, u, d) => { const p = [...n]; - c[f] = ld(u, t, p, r, o), a.push(p); + c[d] = cf(u, t, p, r, o), a.push(p); }, {}); oSe(n, MU(sSe(a))), i = { ...i, [Ft]: s }; } - if (Ed in i && !Array.isArray(i.items) && typeof i.items != "boolean" && (i = { + if (Cf in i && !Array.isArray(i.items) && typeof i.items != "boolean" && (i = { ...i, - items: ld(i.items, t, n, r, o) + items: cf(i.items, t, n, r, o) }), o) { let a, s; Nt in e && Array.isArray(e[Nt]) ? (a = Nt, s = i[Nt]) : yt in e && Array.isArray(e[yt]) && (a = yt, s = i[yt]), a && s && (i = { ...i, - [a]: s.map((c) => ld(c, t, n, r, o)) + [a]: s.map((c) => cf(c, t, n, r, o)) }); } return pn(e, i) ? e : i; @@ -43495,10 +43507,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Ii(e, t, n, r, o = !1, i = [], a, s) { return Rt(t) ? pEe(e, t, n, o, i, r, a, s).flatMap((u) => { - var f; + var d; let p = u; if (bbe in p) - return fEe(e, p, n, o, i, r, a); + return dEe(e, p, n, o, i, r, a); if (ul in p) { if (o) { const { allOf: g, ...y } = p; @@ -43506,7 +43518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } try { const g = [], y = []; - (f = p.allOf) === null || f === void 0 || f.forEach((b) => { + (d = p.allOf) === null || d === void 0 || d.forEach((b) => { typeof b == "object" && b.contains ? g.push(b) : y.push(b); }), g.length && (p = { ...p, allOf: y }), p = a ? a(p) : bEe(p), g.length && (p.allOf = g); } catch (g) { @@ -43529,9 +43541,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let i; const { oneOf: a, anyOf: s, ...c } = t; if (Array.isArray(a) ? i = a : Array.isArray(s) && (i = s), i) { - const u = o === void 0 && r ? {} : o, f = Ki(t); - i = i.map((m) => ld(m, n, [])); - const p = mA(e, u, i, n, f); + const u = o === void 0 && r ? {} : o, d = Ki(t); + i = i.map((m) => cf(m, n, [])); + const p = mA(e, u, i, n, d); if (r) return i.map((m) => Za(c, m)); t = Za(c, i[p]); @@ -43540,15 +43552,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function XU(e, t, n, r, o, i, a) { const { dependencies: s, ...c } = t; - return xEe(e, c, n, r, i).flatMap((f) => ZU(e, s, f, n, r, o, i, a)); + return xEe(e, c, n, r, i).flatMap((d) => ZU(e, s, d, n, r, o, i, a)); } function ZU(e, t, n, r, o, i, a, s) { let c = [n]; for (const u in t) { if (!o && Ee(a, [u]) === void 0 || n.properties && !(u in n.properties)) continue; - const [f, p] = hA(u, t); - return Array.isArray(p) ? c[0] = wEe(n, p) : Rt(p) && (c = SEe(e, n, r, u, p, o, i, a, s)), c.flatMap((m) => ZU(e, f, m, r, o, i, a, s)); + const [d, p] = hA(u, t); + return Array.isArray(p) ? c[0] = wEe(n, p) : Rt(p) && (c = SEe(e, n, r, u, p, o, i, a, s)), c.flatMap((m) => ZU(e, d, m, r, o, i, a, s)); } return c; } @@ -43559,8 +43571,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return { ...e, required: n }; } function SEe(e, t, n, r, o, i, a, s, c) { - return Ii(e, o, n, s, i, a, c).flatMap((f) => { - const { oneOf: p, ...m } = f; + return Ii(e, o, n, s, i, a, c).flatMap((d) => { + const { oneOf: p, ...m } = d; if (t = Za(t, m), p === void 0) return t; const g = p.map((b) => typeof b == "boolean" || !(bn in b) ? [b] : YU(e, b, n, i, a, s)); @@ -43568,10 +43580,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } function _Ee(e, t, n, r, o, i, a, s, c) { - const u = o.filter((f) => { - if (typeof f == "boolean" || !f || !f.properties) + const u = o.filter((d) => { + if (typeof d == "boolean" || !d || !d.properties) return !1; - const { [r]: p } = f.properties; + const { [r]: p } = d.properties; if (p) { const m = { type: "object", @@ -43583,16 +43595,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return !1; }); - return !i && u.length !== 1 ? (console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"), [t]) : u.flatMap((f) => { - const p = f, [m] = hA(r, p.properties), g = { ...p, properties: m }; + return !i && u.length !== 1 ? (console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"), [t]) : u.flatMap((d) => { + const p = d, [m] = hA(r, p.properties), g = { ...p, properties: m }; return Ii(e, g, n, s, i, a, c).map((b) => Za(t, b)); }); } function Sp(e, t, n, r, o, i = {}, a) { if (Array.isArray(n[o])) { - const c = Ki(n) || r, u = n[o].map((p) => vr(e, p, t, i, a)), f = Ee(i, c); - if (f !== void 0) - return u.find((p) => gh(Ee(p, [Ft, c, l1], Ee(p, [Ft, c, Io])), f)); + const c = Ki(n) || r, u = n[o].map((p) => vr(e, p, t, i, a)), d = Ee(i, c); + if (d !== void 0) + return u.find((p) => gh(Ee(p, [Ft, c, l1], Ee(p, [Ft, c, Io])), d)); } } function QU(e, t, n, r, o) { @@ -43617,9 +43629,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), Tt(s, yt) ? s = Sp(e, t, s, c, yt, o, i) : Tt(s, Nt) && (s = Sp(e, t, s, c, Nt, o, i)); let u = Gv(e, t, s, [Ft, c], yD, i); u === yD && (u = void 0); - const f = Gv(e, t, s, W8, [], i); + const d = Gv(e, t, s, W8, [], i); let p; - return u && Array.isArray(f) && (p = f.includes(c)), { field: u, isRequired: p }; + return u && Array.isArray(d) && (p = d.includes(c)), { field: u, isRequired: p }; } function CEe(e, t, n, r) { var o = -1, i = e == null ? 0 : e.length; @@ -43664,35 +43676,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (typeof s == "boolean") return a; if (Tt(s, bn)) { - const f = vr(e, s, t, u, o); - return a + MC(e, t, f, u || {}, o); + const d = vr(e, s, t, u, o); + return a + MC(e, t, d, u || {}, o); } if ((Tt(s, yt) || Tt(s, Nt)) && u) { - const f = Tt(s, yt) ? yt : Nt, p = Ki(s); - return a + xh(e, t, u, Ee(s, f), -1, p, o); + const d = Tt(s, yt) ? yt : Nt, p = Ki(s); + return a + xh(e, t, u, Ee(s, d), -1, p, o); } if (s.type === "object") return $t(u) && (a += 1), a + MC(e, t, s, u, o); if (s.type === bh(u)) { - let f = a + 1; - return s.default ? f += u === s.default ? 1 : -1 : s.const && (f += u === s.const ? 1 : -1), f; + let d = a + 1; + return s.default ? d += u === s.default ? 1 : -1 : s.const && (d += u === s.const ? 1 : -1), d; } return a; - }, 0) : fl(n.type) && n.type === bh(r) && (i += 1)), i; + }, 0) : dl(n.type) && n.type === bh(r) && (i += 1)), i; } function xh(e, t, n, r, o = -1, i, a) { - const s = r.map((m) => ld(m, t, [])), c = WU(n, r, i); + const s = r.map((m) => cf(m, t, [])), c = WU(n, r, i); if (qU(c)) return c; const u = s.reduce((m, g, y) => (mA(e, n, [REe, g], t, i) === 1 && m.push(y), m), []); if (u.length === 1) return u[0]; u.length || mU(s.length, (m) => u.push(m)); - const f = /* @__PURE__ */ new Set(), { bestIndex: p } = u.reduce((m, g) => { + const d = /* @__PURE__ */ new Set(), { bestIndex: p } = u.reduce((m, g) => { const { bestScore: y } = m, b = s[g], v = MC(e, t, b, n, a); - return f.add(v), v > y ? { bestIndex: g, bestScore: v } : m; + return d.add(v), v > y ? { bestIndex: g, bestScore: v } : m; }, { bestIndex: o, bestScore: 0 }); - return f.size === 1 && o >= 0 ? o : p; + return d.size === 1 && o >= 0 ? o : p; } function gA(e) { return Array.isArray(e.items) && e.items.length > 0 && e.items.every((t) => Rt(t)); @@ -43702,14 +43714,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function wh(e, t, n = !1, r = !1, o = !1) { if (Array.isArray(t)) { - const i = Array.isArray(e) ? e : [], a = o ? i : t, s = o ? t : i, c = a.map((u, f) => s[f] !== void 0 ? wh(i[f], t[f], n, r, o) : u); + const i = Array.isArray(e) ? e : [], a = o ? i : t, s = o ? t : i, c = a.map((u, d) => s[d] !== void 0 ? wh(i[d], t[d], n, r, o) : u); return (n || o) && c.length < s.length && c.push(...s.slice(c.length)), c; } if (Rt(t)) { const i = Object.assign({}, e); return Object.keys(t).reduce((a, s) => { var c; - const u = Ee(t, s), f = Rt(e) && s in e, p = s in t, m = (c = Ee(e, s)) !== null && c !== void 0 ? c : {}, g = f && Object.entries(m).some(([, v]) => Rt(v)), y = f && Rt(Ee(e, s)), b = p && Rt(u); + const u = Ee(t, s), d = Rt(e) && s in e, p = s in t, m = (c = Ee(e, s)) !== null && c !== void 0 ? c : {}, g = d && Object.entries(m).some(([, v]) => Rt(v)), y = d && Rt(Ee(e, s)), b = p && Rt(u); return y && b && !g ? (a[s] = { ...Ee(e, s), ...u @@ -43720,7 +43732,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho r, // overrideFormDataWithDefaults can be true only when the key value exists in defaults // Or if the key value doesn't exist in formData - o && (f || !p) + o && (d || !p) ), a); }, i); } @@ -43751,7 +43763,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function tV(e) { const t = e[Io], n = oi(e); - return Rt(t) && fl(t?.$data) && n !== "object" && n !== "array"; + return Rt(t) && dl(t?.$data) && n !== "object" && n !== "array"; } function OEe(e) { if (vbe in e && Array.isArray(e.enum) && e.enum.length === 1) @@ -43760,7 +43772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.const; throw new Error("schema cannot be inferred as a constant"); } - function Td(e, t) { + function Af(e, t) { if (e.enum) { let i; if (t) { @@ -43778,25 +43790,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return n && n.map((i, a) => { const { title: s } = Qe(r?.[a]), c = i; - let u, f = s; + let u, d = s; if (o) { const p = Ee(c, [Ft, o], {}); - u = Ee(p, l1, Ee(p, Io)), f = f || p?.title || c.title || String(u); + u = Ee(p, l1, Ee(p, Io)), d = d || p?.title || c.title || String(u); } else - u = OEe(c), f = f || c.title || String(u); + u = OEe(c), d = d || c.title || String(u); return { schema: c, - label: f, + label: d, value: u }; }); } const MEe = ["string", "number", "integer", "boolean", "null"]; - var Ad; + var Rf; (function(e) { e[e.Ignore = 0] = "Ignore", e[e.Invert = 1] = "Invert", e[e.Fallback = 2] = "Fallback"; - })(Ad || (Ad = {})); - function S_(e, t = Ad.Ignore, n = -1) { + })(Rf || (Rf = {})); + function S_(e, t = Rf.Ignore, n = -1) { if (n >= 0) { if (Array.isArray(e.items) && n < e.items.length) { const r = e.items[n]; @@ -43805,7 +43817,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } else if (e.items && !Array.isArray(e.items) && typeof e.items != "boolean") return e.items; - return t !== Ad.Ignore && Rt(e.additionalItems) ? e.additionalItems : {}; + return t !== Rf.Ignore && Rt(e.additionalItems) ? e.additionalItems : {}; } function nV(e, t) { const { default: n, type: r } = e; @@ -43818,18 +43830,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho else if (r === "excludeObjectChildren") (c && n !== void 0 || !Rt(n) || !Hn(n)) && (e[t] = n); else if (u !== "skipDefaults") { - const f = o === void 0 ? i.includes(t) : o; - Rt(n) ? u === "skipEmptyDefaults" ? Hn(n) || (e[t] = n) : (!Hn(n) || i.includes(t)) && (f || u !== "populateRequiredDefaults") && (e[t] = n) : ( + const d = o === void 0 ? i.includes(t) : o; + Rt(n) ? u === "skipEmptyDefaults" ? Hn(n) || (e[t] = n) : (!Hn(n) || i.includes(t)) && (d || u !== "populateRequiredDefaults") && (e[t] = n) : ( // Store computedDefault if it's a defined primitive (e.g., true) and satisfies certain conditions // Condition 1: computedDefault is not undefined // Condition 2: If emptyObjectFields is 'populateAllDefaults' or 'skipEmptyDefaults) // Or if isSelfOrParentRequired is 'true' and the key is a required field - n !== void 0 && (u === "populateAllDefaults" || u === "skipEmptyDefaults" || f && i.includes(t)) && (e[t] = n) + n !== void 0 && (u === "populateAllDefaults" || u === "skipEmptyDefaults" || d && i.includes(t)) && (e[t] = n) ); } } function Qs(e, t, n = {}) { - const { parentDefaults: r, rawFormData: o, rootSchema: i = {}, includeUndefinedValues: a = !1, _recurseList: s = [], experimental_defaultFormStateBehavior: c = void 0, experimental_customMergeAllOf: u = void 0, required: f, shouldMergeDefaultsIntoFormData: p = !1, initialDefaultsGenerated: m } = n; + const { parentDefaults: r, rawFormData: o, rootSchema: i = {}, includeUndefinedValues: a = !1, _recurseList: s = [], experimental_defaultFormStateBehavior: c = void 0, experimental_customMergeAllOf: u = void 0, required: d, shouldMergeDefaultsIntoFormData: p = !1, initialDefaultsGenerated: m } = n; let g = Rt(o) ? o : {}; const y = Rt(t) ? t : {}; let b = r, v = null, x = c, E = s; @@ -43857,7 +43869,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho experimental_customMergeAllOf: u, parentDefaults: Array.isArray(r) ? r[A] : void 0, rawFormData: g, - required: f, + required: d, shouldMergeDefaultsIntoFormData: p })); else if (yt in y) { @@ -43885,7 +43897,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho experimental_customMergeAllOf: u, parentDefaults: b, rawFormData: o ?? g, - required: f, + required: d, shouldMergeDefaultsIntoFormData: p, initialDefaultsGenerated: m }); @@ -43902,12 +43914,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const a = !eV(t) && yA(e, t, n, i); let s = r; if (a) { - const u = Td(t); + const u = Af(t); s = u?.some((p) => pn(p.value, r)) ? r : void 0; } return t[Io] && o?.constAsDefaults === "always" && (s = t.const), s; } - function PEe(e, t, { rawFormData: n, rootSchema: r = {}, includeUndefinedValues: o = !1, _recurseList: i = [], experimental_defaultFormStateBehavior: a = void 0, experimental_customMergeAllOf: s = void 0, required: c, shouldMergeDefaultsIntoFormData: u, initialDefaultsGenerated: f } = {}, p) { + function PEe(e, t, { rawFormData: n, rootSchema: r = {}, includeUndefinedValues: o = !1, _recurseList: i = [], experimental_defaultFormStateBehavior: a = void 0, experimental_customMergeAllOf: s = void 0, required: c, shouldMergeDefaultsIntoFormData: u, initialDefaultsGenerated: d } = {}, p) { { const m = Rt(n) ? n : {}, g = t, y = a?.allOf === "populateDefaults" && ul in g ? vr(e, g, r, m, s) : g, b = y[Io], v = Object.keys(y.properties || {}).reduce((x, E) => { var _; @@ -43921,11 +43933,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho rawFormData: Ee(m, [E]), required: (_ = y.required) === null || _ === void 0 ? void 0 : _.includes(E), shouldMergeDefaultsIntoFormData: u, - initialDefaultsGenerated: f + initialDefaultsGenerated: d }); return vD(x, E, O, o, c, y.required, a, A, C?.type === "null"), x; }, {}); - if (y.additionalProperties && !f) { + if (y.additionalProperties && !d) { const x = Rt(y.additionalProperties) ? y.additionalProperties : {}, E = /* @__PURE__ */ new Set(); Rt(p) && Object.keys(p).filter((C) => !y.properties || !y.properties[C]).forEach((C) => E.add(C)); const _ = []; @@ -43943,7 +43955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho rawFormData: Ee(m, [C]), required: (k = y.required) === null || k === void 0 ? void 0 : k.includes(C), shouldMergeDefaultsIntoFormData: u, - initialDefaultsGenerated: f + initialDefaultsGenerated: d }); vD(v, C, A, o, c, _); }); @@ -43951,11 +43963,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return nV(t, v); } } - function IEe(e, t, { rawFormData: n, rootSchema: r = {}, _recurseList: o = [], experimental_defaultFormStateBehavior: i = void 0, experimental_customMergeAllOf: a = void 0, required: s, requiredAsRoot: c = !1, shouldMergeDefaultsIntoFormData: u, initialDefaultsGenerated: f } = {}, p) { + function IEe(e, t, { rawFormData: n, rootSchema: r = {}, _recurseList: o = [], experimental_defaultFormStateBehavior: i = void 0, experimental_customMergeAllOf: a = void 0, required: s, requiredAsRoot: c = !1, shouldMergeDefaultsIntoFormData: u, initialDefaultsGenerated: d } = {}, p) { var m, g; const y = t, b = (m = i?.arrayMinItems) !== null && m !== void 0 ? m : {}, { populate: v, mergeExtraDefaults: x } = b, E = v === "never", _ = v === "requiredOnly", C = v === "all" || !E && !_, k = (g = b?.computeSkipPopulate) !== null && g !== void 0 ? g : (() => !1), O = i?.emptyObjectFields === "skipEmptyDefaults" ? void 0 : []; if (Array.isArray(p) && (p = p.map((L, N) => { - const U = S_(y, Ad.Fallback, N); + const U = S_(y, Rf.Fallback, N); return Qs(e, U, { rootSchema: r, _recurseList: o, @@ -43964,7 +43976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho parentDefaults: L, required: s, shouldMergeDefaultsIntoFormData: u, - initialDefaultsGenerated: f + initialDefaultsGenerated: d }); })), Array.isArray(n)) { const L = S_(y); @@ -43980,7 +43992,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho parentDefaults: Ee(p, [V]), required: s, shouldMergeDefaultsIntoFormData: u, - initialDefaultsGenerated: f + initialDefaultsGenerated: d })); p = wh(p, N, (_ && s || C) && x); } @@ -43996,7 +44008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!y.minItems || vA(e, y, r, a) || k(e, y, r) || y.minItems <= $) I = p || !s && !c ? p : O; else { - const L = p || [], N = S_(y, Ad.Invert), U = N.default, j = Array.from({ length: y.minItems - $ }, () => Qs(e, N, { + const L = p || [], N = S_(y, Rf.Invert), U = N.default, j = Array.from({ length: y.minItems - $ }, () => Qs(e, N, { parentDefaults: U, rootSchema: r, _recurseList: o, @@ -44037,12 +44049,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...n }; if (Rt(n) || Array.isArray(n)) { - const { mergeDefaultsIntoFormData: f } = i || {}; + const { mergeDefaultsIntoFormData: d } = i || {}; return wh( u, n, !0, - f === "useDefaultIfFormDataUndefined", + d === "useDefaultIfFormDataUndefined", !0 ); } @@ -44068,8 +44080,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const a = Qe(n, o), { label: s = !0 } = a; let c = !!s; if (c) { - const u = oi(t), f = Ee(t, Ba, !1); - u === "array" && (c = f || vA(e, t, r, i) || iV(e, t, n, r, i) || oV(n)), u === "object" && (c = f), u === "boolean" && n && !n[YT] && (c = !1), n && n[_be] && (c = !1); + const u = oi(t), d = Ee(t, Ba, !1); + u === "array" && (c = d || vA(e, t, r, i) || iV(e, t, n, r, i) || oV(n)), u === "object" && (c = d), u === "boolean" && n && !n[YT] && (c = !1), n && n[_be] && (c = !1); } return c; } @@ -44079,26 +44091,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (Tt(n, Ft)) { const s = {}; if (Tt(r, Ft)) { - const f = Ee(r, Ft, {}); - Object.keys(f).forEach((p) => { + const d = Ee(r, Ft, {}); + Object.keys(d).forEach((p) => { Tt(o, p) && (s[p] = void 0); }); } const c = Object.keys(Ee(n, Ft, {})), u = {}; - c.forEach((f) => { - const p = Ee(o, f); - let m = Ee(r, [Ft, f], {}), g = Ee(n, [Ft, f], {}); + c.forEach((d) => { + const p = Ee(o, d); + let m = Ee(r, [Ft, d], {}), g = Ee(n, [Ft, d], {}); Tt(m, bn) && (m = vr(e, m, t, p, i)), Tt(g, bn) && (g = vr(e, g, t, p, i)); const y = Ee(m, "type"), b = Ee(g, "type"); if (!y || y === b) - if (Tt(s, f) && delete s[f], b === "object" || b === "array" && Array.isArray(p)) { + if (Tt(s, d) && delete s[d], b === "object" || b === "array" && Array.isArray(p)) { const v = NC(e, t, g, m, p, i); - (v !== void 0 || b === "array") && (u[f] = v); + (v !== void 0 || b === "array") && (u[d] = v); } else { const v = Ee(g, "default", Pu), x = Ee(m, "default", Pu); - v !== Pu && v !== p && (x === p ? s[f] = v : Ee(g, "readOnly") === !0 && (s[f] = void 0)); + v !== Pu && v !== p && (x === p ? s[d] = v : Ee(g, "readOnly") === !0 && (s[d] = void 0)); const E = Ee(g, "const", Pu), _ = Ee(m, "const", Pu); - E !== Pu && E !== p && (s[f] = _ === p ? E : void 0); + E !== Pu && E !== p && (s[d] = _ === p ? E : void 0); } }), a = { ...typeof o == "string" || Array.isArray(o) ? void 0 : o, @@ -44109,10 +44121,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let s = Ee(r, "items"), c = Ee(n, "items"); if (typeof s == "object" && typeof c == "object" && !Array.isArray(s) && !Array.isArray(c)) { Tt(s, bn) && (s = vr(e, s, t, o, i)), Tt(c, bn) && (c = vr(e, c, t, o, i)); - const u = Ee(s, "type"), f = Ee(c, "type"); - if (!u || u === f) { + const u = Ee(s, "type"), d = Ee(c, "type"); + if (!u || u === d) { const p = Ee(n, "maxItems", -1); - f === "object" ? a = o.reduce((m, g) => { + d === "object" ? a = o.reduce((m, g) => { const y = NC(e, t, c, s, g, i); return y !== void 0 && (p < 0 || m.length < p) && m.push(y), m; }, []) : a = p > 0 && o.length > p ? o.slice(0, p) : o; @@ -44124,25 +44136,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Zl(e, t, n, r, o, i = [], a) { if (bn in t || GT in t || ul in t) { const c = vr(e, t, r, o, a); - if (i.findIndex((f) => pn(f, c)) === -1) + if (i.findIndex((d) => pn(d, c)) === -1) return Zl(e, c, n, r, o, i.concat(c), a); } let s = { [Vv]: n.replace(/^\./, "") }; if (yt in t || Nt in t) { - const c = yt in t ? t.oneOf : t.anyOf, u = Ki(t), f = xh(e, r, o, c, 0, u, a), p = c[f]; + const c = yt in t ? t.oneOf : t.anyOf, u = Ki(t), d = xh(e, r, o, c, 0, u, a), p = c[d]; s = { ...s, ...Zl(e, p, n, r, o, i, a) }; } - if (I0 in t && t[I0] !== !1 && Qt(s, KT, !0), Ed in t && Array.isArray(o)) { + if (I0 in t && t[I0] !== !1 && Qt(s, KT, !0), Cf in t && Array.isArray(o)) { const { items: c, additionalItems: u } = t; - Array.isArray(c) ? o.forEach((f, p) => { - c[p] ? s[p] = Zl(e, c[p], `${n}.${p}`, r, f, i, a) : u ? s[p] = Zl(e, u, `${n}.${p}`, r, f, i, a) : console.warn(`Unable to generate path schema for "${n}.${p}". No schema defined for it`); - }) : o.forEach((f, p) => { - s[p] = Zl(e, c, `${n}.${p}`, r, f, i, a); + Array.isArray(c) ? o.forEach((d, p) => { + c[p] ? s[p] = Zl(e, c[p], `${n}.${p}`, r, d, i, a) : u ? s[p] = Zl(e, u, `${n}.${p}`, r, d, i, a) : console.warn(`Unable to generate path schema for "${n}.${p}". No schema defined for it`); + }) : o.forEach((d, p) => { + s[p] = Zl(e, c, `${n}.${p}`, r, d, i, a); }); } else if (Ft in t) for (const c in t.properties) { @@ -44367,15 +44379,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const [o, i] = r, [a, ...s] = o.split(";"), c = a || "", u = decodeURI( // parse the parameters into key-value pairs, find a key, and extract a value // if no key is found, then the name is unknown - ((t = s.map((f) => f.split("=")).find(([f]) => f === "name")) === null || t === void 0 ? void 0 : t[1]) || "unknown" + ((t = s.map((d) => d.split("=")).find(([d]) => d === "name")) === null || t === void 0 ? void 0 : t[1]) || "unknown" ); try { - const f = atob(i), p = new Array(f.length); - for (let g = 0; g < f.length; g++) - p[g] = f.charCodeAt(g); + const d = atob(i), p = new Array(d.length); + for (let g = 0; g < d.length; g++) + p[g] = d.charCodeAt(g); return { blob: new window.Blob([new Uint8Array(p)], { type: c }), name: u }; - } catch (f) { - throw new Error("File is invalid: " + f.message); + } catch (d) { + throw new Error("File is invalid: " + d.message); } } function Vs(e, t) { @@ -44528,14 +44540,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function uV(e, t, n) { for (var r = -1, o = t.length, i = {}; ++r < o; ) { var a = t[r], s = h1(e, a); - n(s, a) && aA(i, Vd(a, e), s); + n(s, a) && aA(i, Hf(a, e), s); } return i; } function qEe(e, t) { if (e == null) return {}; - var n = Ud(fA(e), function(r) { + var n = Vf(dA(e), function(r) { return [r]; }); return t = lA(t), uV(e, n, function(r, o) { @@ -44544,27 +44556,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var WEe = 200; function GEe(e, t, n, r) { - var o = -1, i = dA, a = !0, s = e.length, c = [], u = t.length; + var o = -1, i = fA, a = !0, s = e.length, c = [], u = t.length; if (!s) return c; t.length >= WEe && (i = mh, a = !1, t = new bc(t)); e: for (; ++o < s; ) { - var f = e[o], p = f; - if (f = f !== 0 ? f : 0, a && p === p) { + var d = e[o], p = d; + if (d = d !== 0 ? d : 0, a && p === p) { for (var m = u; m--; ) if (t[m] === p) continue e; - c.push(f); - } else i(t, p, r) || c.push(f); + c.push(d); + } else i(t, p, r) || c.push(d); } return c; } var KEe = g1(function(e, t) { - return yh(e) ? GEe(e, fm(t, 1, yh, !0)) : []; + return yh(e) ? GEe(e, dm(t, 1, yh, !0)) : []; }); function wD(e, t) { - const n = dl(e), r = dl(t); + const n = fl(e), r = fl(t); if (e === t || !n && !r) return []; if (n && !r) @@ -44577,27 +44589,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function YEe(e, t, n = [1900, (/* @__PURE__ */ new Date()).getFullYear() + 2], r = "YMD") { - const { day: o, month: i, year: a, hour: s, minute: c, second: u } = e, f = { type: "day", range: [1, 31], value: o }, p = { type: "month", range: [1, 12], value: i }, m = { type: "year", range: n, value: a }, g = []; + const { day: o, month: i, year: a, hour: s, minute: c, second: u } = e, d = { type: "day", range: [1, 31], value: o }, p = { type: "month", range: [1, 12], value: i }, m = { type: "year", range: n, value: a }, g = []; switch (r) { case "MDY": - g.push(p, f, m); + g.push(p, d, m); break; case "DMY": - g.push(f, p, m); + g.push(d, p, m); break; default: - g.push(m, p, f); + g.push(m, p, d); } return t && g.push({ type: "hour", range: [0, 23], value: s }, { type: "minute", range: [0, 59], value: c }, { type: "second", range: [0, 59], value: u }), g; } - function dV(e) { + function fV(e) { const t = {}; return e.multipleOf && (t.step = e.multipleOf), (e.minimum || e.minimum === 0) && (t.min = e.minimum), (e.maximum || e.maximum === 0) && (t.max = e.maximum), t; } - function fV(e, t, n = {}, r = !0) { + function dV(e, t, n = {}, r = !0) { const o = { type: t || "text", - ...dV(e) + ...fV(e) }; return n.inputType ? o.type = n.inputType : t || (e.type === "number" ? (o.type = "number", r && o.step === void 0 && (o.step = "any")) : e.type === "integer" && (o.type = "number", o.step === void 0 && (o.step = 1))), n.autocomplete && (o.autoComplete = n.autocomplete), n.accept && (o.accept = n.accept), o; } @@ -44650,7 +44662,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function ZEe() { if (_D) return qt; _D = 1; - var e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.server_context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), u = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), g = /* @__PURE__ */ Symbol.for("react.offscreen"), y; + var e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), a = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.server_context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), u = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), g = /* @__PURE__ */ Symbol.for("react.offscreen"), y; y = /* @__PURE__ */ Symbol.for("react.module.reference"); function b(v) { if (typeof v == "object" && v !== null) { @@ -44662,7 +44674,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case o: case r: case u: - case f: + case d: return v; default: switch (v = v && v.$$typeof, v) { @@ -44682,7 +44694,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } - return qt.ContextConsumer = a, qt.ContextProvider = i, qt.Element = e, qt.ForwardRef = c, qt.Fragment = n, qt.Lazy = m, qt.Memo = p, qt.Portal = t, qt.Profiler = o, qt.StrictMode = r, qt.Suspense = u, qt.SuspenseList = f, qt.isAsyncMode = function() { + return qt.ContextConsumer = a, qt.ContextProvider = i, qt.Element = e, qt.ForwardRef = c, qt.Fragment = n, qt.Lazy = m, qt.Memo = p, qt.Portal = t, qt.Profiler = o, qt.StrictMode = r, qt.Suspense = u, qt.SuspenseList = d, qt.isAsyncMode = function() { return !1; }, qt.isConcurrentMode = function() { return !1; @@ -44709,9 +44721,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, qt.isSuspense = function(v) { return b(v) === u; }, qt.isSuspenseList = function(v) { - return b(v) === f; + return b(v) === d; }, qt.isValidElementType = function(v) { - return typeof v == "string" || typeof v == "function" || v === n || v === o || v === r || v === u || v === f || v === g || typeof v == "object" && v !== null && (v.$$typeof === m || v.$$typeof === p || v.$$typeof === i || v.$$typeof === a || v.$$typeof === c || v.$$typeof === y || v.getModuleId !== void 0); + return typeof v == "string" || typeof v == "function" || v === n || v === o || v === r || v === u || v === d || v === g || typeof v == "object" && v !== null && (v.$$typeof === m || v.$$typeof === p || v.$$typeof === i || v.$$typeof === a || v.$$typeof === c || v.$$typeof === y || v.getModuleId !== void 0); }, qt.typeOf = b, qt; } var ED; @@ -44828,7 +44840,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function Mc(e, t) { - return `${fl(e) ? e : e[rn]}__${t}`; + return `${dl(e) ? e : e[rn]}__${t}`; } function Nc(e) { return Mc(e, "description"); @@ -44858,7 +44870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function C_(e, t) { return Mc(e, `optional${t}`); } - function qd(e) { + function Wf(e) { return !L0(e) && (!$t(e) || Array.isArray(e) || !Hn(e)); } function iCe(e, t) { @@ -44884,7 +44896,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function sCe(e, t) { if (!Array.isArray(t)) return e; - const n = (f) => f.reduce((p, m) => (p[m] = !0, p), {}), r = (f) => f.length > 1 ? `properties '${f.join("', '")}'` : `property '${f[0]}'`, o = n(e), i = t.filter((f) => f === "*" || o[f]), a = n(i), s = e.filter((f) => !a[f]), c = i.indexOf("*"); + const n = (d) => d.reduce((p, m) => (p[m] = !0, p), {}), r = (d) => d.length > 1 ? `properties '${d.join("', '")}'` : `property '${d[0]}'`, o = n(e), i = t.filter((d) => d === "*" || o[d]), a = n(i), s = e.filter((d) => !a[d]), c = i.indexOf("*"); if (c === -1) { if (s.length) throw new Error(`uiSchema order list does not contain ${r(s)}`); @@ -44968,13 +44980,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }))), Object.keys(e).reduce((r, o) => { if (o !== ur) { const i = e[o]; - dl(i) && (r = r.concat(CA(i, [...t, o]))); + fl(i) && (r = r.concat(CA(i, [...t, o]))); } return r; }, n); } function gV(e) { - return Zn(e) ? Ud(e, Oc) : um(e) ? [e] : uA(uU(rA(e))); + return Zn(e) ? Vf(e, Oc) : um(e) ? [e] : uA(uU(rA(e))); } function lCe(e) { const t = new cV(); @@ -44994,7 +45006,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t; { const r = e[n]; - return dl(r) ? { + return fl(r) ? { ...t, [n]: yV(r) } : { ...t, [n]: r }; @@ -45005,10 +45017,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return Object.values(e).every((t) => t !== -1); } function uCe(e) { - const { className: t = "form-control", type: n, range: r, value: o, select: i, rootId: a, name: s, disabled: c, readonly: u, autofocus: f, registry: p, onBlur: m, onFocus: g } = e, y = `${a}_${n}`, { SelectWidget: b } = p.widgets, v = T.useCallback((x) => i(n, x), [i, n]); - return S.jsx(b, { schema: { type: "integer" }, id: y, name: s, className: t, options: { enumOptions: aV(r[0], r[1]) }, placeholder: n, value: o, disabled: c, readonly: u, autofocus: f, onChange: v, onBlur: m, onFocus: g, registry: p, label: "", "aria-describedby": go(a) }); + const { className: t = "form-control", type: n, range: r, value: o, select: i, rootId: a, name: s, disabled: c, readonly: u, autofocus: d, registry: p, onBlur: m, onFocus: g } = e, y = `${a}_${n}`, { SelectWidget: b } = p.widgets, v = T.useCallback((x) => i(n, x), [i, n]); + return S.jsx(b, { schema: { type: "integer" }, id: y, name: s, className: t, options: { enumOptions: aV(r[0], r[1]) }, placeholder: n, value: o, disabled: c, readonly: u, autofocus: d, onChange: v, onBlur: m, onFocus: g, registry: p, label: "", "aria-describedby": go(a) }); } - function dCe(e) { + function fCe(e) { const { time: t = !1, disabled: n = !1, readonly: r = !1, options: o, onChange: i, value: a } = e, [s, c] = T.useState(k_(a, t)); T.useEffect(() => { c(k_(a, t)); @@ -45019,7 +45031,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [g]: typeof y > "u" ? -1 : y }; cCe(b) ? i(TD(b, t)) : c(b); - }, [s, i, t]), f = T.useCallback((g) => { + }, [s, i, t]), d = T.useCallback((g) => { g.preventDefault(), !(n || r) && i(void 0); }, [n, r, i]), p = T.useCallback((g) => { if (g.preventDefault(), n || r) @@ -45027,13 +45039,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const y = k_((/* @__PURE__ */ new Date()).toJSON(), t); i(TD(y, t)); }, [n, r, t, i]); - return { elements: T.useMemo(() => YEe(s, t, o.yearsRange, o.format), [s, t, o.yearsRange, o.format]), handleChange: u, handleClear: f, handleSetNow: p }; + return { elements: T.useMemo(() => YEe(s, t, o.yearsRange, o.format), [s, t, o.yearsRange, o.format]), handleChange: u, handleClear: d, handleSetNow: p }; } function Ic(e) { const t = T.useRef(e); return gh(e, t.current) || (t.current = e), t.current; } - function fCe(e, t) { + function dCe(e, t) { return e.replace(";base64", `;name=${encodeURIComponent(t)};base64`); } function pCe(e) { @@ -45043,7 +45055,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho a.onerror = i, a.onload = (s) => { var c; typeof ((c = s.target) === null || c === void 0 ? void 0 : c.result) == "string" ? o({ - dataURL: fCe(s.target.result, t), + dataURL: dCe(s.target.result, t), name: t, size: n, type: r @@ -45082,12 +45094,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function mCe(e, t, n = !1) { const r = T.useMemo(() => n && e ? Array.isArray(e) ? e : [e] : [], [e, n]), o = T.useMemo(() => Array.isArray(e) ? AD(e) : AD([e || ""]), [e]), i = T.useCallback((s) => { hCe(s).then((c) => { - const u = c.map((f) => f.dataURL || null); + const u = c.map((d) => d.dataURL || null); t(n ? r.concat(...u) : u[0]); }); }, [r, n, t]), a = T.useCallback((s) => { if (n) { - const c = r.filter((u, f) => f !== s); + const c = r.filter((u, d) => d !== s); t(c); } else t(void 0); @@ -45222,10 +45234,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (typeof E == "string" && E[0] === '"' && !(x instanceof n)) return `"${x}${E.slice(1)}`; } - function f(x, E) { + function d(x, E) { return E.emptyStr() ? x : x.emptyStr() ? E : a`${x}${E}`; } - e.strConcat = f; + e.strConcat = d; function p(x) { return typeof x == "number" || typeof x == "boolean" || x === null ? x : g(Array.isArray(x) ? x.join(",") : x); } @@ -45272,8 +45284,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var: new t.Name("var") }; class o { - constructor({ prefixes: u, parent: f } = {}) { - this._names = {}, this._prefixes = u, this._parent = f; + constructor({ prefixes: u, parent: d } = {}) { + this._names = {}, this._prefixes = u, this._parent = d; } toName(u) { return u instanceof t.Name ? u : this.name(u); @@ -45282,23 +45294,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return new t.Name(this._newName(u)); } _newName(u) { - const f = this._names[u] || this._nameGroup(u); - return `${u}${f.index++}`; + const d = this._names[u] || this._nameGroup(u); + return `${u}${d.index++}`; } _nameGroup(u) { - var f, p; - if (!((p = (f = this._parent) === null || f === void 0 ? void 0 : f._prefixes) === null || p === void 0) && p.has(u) || this._prefixes && !this._prefixes.has(u)) + var d, p; + if (!((p = (d = this._parent) === null || d === void 0 ? void 0 : d._prefixes) === null || p === void 0) && p.has(u) || this._prefixes && !this._prefixes.has(u)) throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`); return this._names[u] = { prefix: u, index: 0 }; } } e.Scope = o; class i extends t.Name { - constructor(u, f) { - super(f), this.prefix = u; + constructor(u, d) { + super(d), this.prefix = u; } - setValue(u, { property: f, itemIndex: p }) { - this.value = u, this.scopePath = (0, t._)`.${new t.Name(f)}[${p}]`; + setValue(u, { property: d, itemIndex: p }) { + this.value = u, this.scopePath = (0, t._)`.${new t.Name(d)}[${p}]`; } } e.ValueScopeName = i; @@ -45313,11 +45325,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho name(u) { return new i(u, this._newName(u)); } - value(u, f) { + value(u, d) { var p; - if (f.ref === void 0) + if (d.ref === void 0) throw new Error("CodeGen: ref must be passed in value"); - const m = this.toName(u), { prefix: g } = m, y = (p = f.key) !== null && p !== void 0 ? p : f.ref; + const m = this.toName(u), { prefix: g } = m, y = (p = d.key) !== null && p !== void 0 ? p : d.ref; let b = this._values[g]; if (b) { const E = b.get(y); @@ -45327,28 +45339,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho b = this._values[g] = /* @__PURE__ */ new Map(); b.set(y, m); const v = this._scope[g] || (this._scope[g] = []), x = v.length; - return v[x] = f.ref, m.setValue(f, { property: g, itemIndex: x }), m; + return v[x] = d.ref, m.setValue(d, { property: g, itemIndex: x }), m; } - getValue(u, f) { + getValue(u, d) { const p = this._values[u]; if (p) - return p.get(f); + return p.get(d); } - scopeRefs(u, f = this._values) { - return this._reduceValues(f, (p) => { + scopeRefs(u, d = this._values) { + return this._reduceValues(d, (p) => { if (p.scopePath === void 0) throw new Error(`CodeGen: name "${p}" has no value`); return (0, t._)`${u}${p.scopePath}`; }); } - scopeCode(u = this._values, f, p) { + scopeCode(u = this._values, d, p) { return this._reduceValues(u, (m) => { if (m.value === void 0) throw new Error(`CodeGen: name "${m}" has no value`); return m.value.code; - }, f, p); + }, d, p); } - _reduceValues(u, f, p = {}, m) { + _reduceValues(u, d, p = {}, m) { let g = t.nil; for (const y in u) { const b = u[y]; @@ -45359,7 +45371,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (v.has(x)) return; v.set(x, r.Started); - let E = f(x); + let E = d(x); if (E) { const _ = this.opts.es5 ? e.varKinds.var : e.varKinds.const; g = (0, t._)`${g}${_} ${x} = ${E};${this.opts._n}`; @@ -45476,7 +45488,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return `${this.label}:` + H; } } - class f extends i { + class d extends i { constructor(H) { super(), this.label = H, this.names = {}; } @@ -45809,7 +45821,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } // `break` statement break(H) { - return this._leafNode(new f(H)); + return this._leafNode(new d(H)); } // `return` statement return(H) { @@ -45996,13 +46008,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } gt.unescapeFragment = c; function u(k) { - return encodeURIComponent(f(k)); + return encodeURIComponent(d(k)); } gt.escapeFragment = u; - function f(k) { + function d(k) { return typeof k == "number" ? `${k}` : k.replace(/~/g, "~0").replace(/\//g, "~1"); } - gt.escapeJsonPointer = f; + gt.escapeJsonPointer = d; function p(k) { return k.replace(/~1/g, "/").replace(/~0/g, "~"); } @@ -46067,7 +46079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const P = A === E.Num; return O ? P ? (0, e._)`"[" + ${k} + "]"` : (0, e._)`"['" + ${k} + "']"` : P ? (0, e._)`"/" + ${k}` : (0, e._)`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`; } - return O ? (0, e.getProperty)(k).toString() : "/" + f(k); + return O ? (0, e.getProperty)(k).toString() : "/" + d(k); } gt.getErrorPath = _; function C(k, A, O = k.opts.strictSchema) { @@ -46155,7 +46167,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { gen: E, validateName: _, schemaEnv: C } = v; C.$async ? E.throw((0, t._)`new ${v.ValidationError}(${x})`) : (E.assign((0, t._)`${_}.errors`, x), E.return(!1)); } - const f = { + const d = { keyword: new t.Name("keyword"), schemaPath: new t.Name("schemaPath"), // also used in JTD errors @@ -46182,11 +46194,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function y({ keyword: v, it: { errSchemaPath: x } }, { schemaPath: E, parentSchema: _ }) { let C = _ ? x : (0, t.str)`${x}/${v}`; - return E && (C = (0, t.str)`${C}${(0, n.getErrorPath)(E, n.Type.Str)}`), [f.schemaPath, C]; + return E && (C = (0, t.str)`${C}${(0, n.getErrorPath)(E, n.Type.Str)}`), [d.schemaPath, C]; } function b(v, { params: x, message: E }, _) { const { keyword: C, data: k, schemaValue: A, it: O } = v, { opts: P, propertyName: I, topSchemaRef: $, schemaPath: L } = O; - _.push([f.keyword, C], [f.params, typeof x == "function" ? x(v) : x || (0, t._)`{}`]), P.messages && _.push([f.message, typeof E == "function" ? E(v) : E]), P.verbose && _.push([f.schema, A], [f.parentSchema, (0, t._)`${$}${L}`], [r.default.data, k]), I && _.push([f.propertyName, I]); + _.push([d.keyword, C], [d.params, typeof x == "function" ? x(v) : x || (0, t._)`{}`]), P.messages && _.push([d.message, typeof E == "function" ? E(v) : E]), P.verbose && _.push([d.schema, A], [d.parentSchema, (0, t._)`${$}${L}`], [r.default.data, k]), I && _.push([d.propertyName, I]); } })(A_)), A_; } @@ -46198,20 +46210,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho message: "boolean schema is false" }; function o(s) { - const { gen: c, schema: u, validateName: f } = s; - u === !1 ? a(s, !1) : typeof u == "object" && u.$async === !0 ? c.return(n.default.data) : (c.assign((0, t._)`${f}.errors`, null), c.return(!0)); + const { gen: c, schema: u, validateName: d } = s; + u === !1 ? a(s, !1) : typeof u == "object" && u.$async === !0 ? c.return(n.default.data) : (c.assign((0, t._)`${d}.errors`, null), c.return(!0)); } Ul.topBoolOrEmptySchema = o; function i(s, c) { - const { gen: u, schema: f } = s; - f === !1 ? (u.var(c, !1), a(s)) : u.var(c, !0); + const { gen: u, schema: d } = s; + d === !1 ? (u.var(c, !1), a(s)) : u.var(c, !0); } Ul.boolOrEmptySchema = i; function a(s, c) { - const { gen: u, data: f } = s, p = { + const { gen: u, data: d } = s, p = { gen: u, keyword: "false schema", - data: f, + data: d, schema: !1, schemaCode: !1, schemaValue: !1, @@ -46297,7 +46309,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } sr.getJSONTypes = s; function c(E, _) { - const { gen: C, data: k, opts: A } = E, O = f(_, A.coerceTypes), P = _.length > 0 && !(O.length === 0 && _.length === 1 && (0, t.schemaHasRulesForType)(E, _[0])); + const { gen: C, data: k, opts: A } = E, O = d(_, A.coerceTypes), P = _.length > 0 && !(O.length === 0 && _.length === 1 && (0, t.schemaHasRulesForType)(E, _[0])); if (P) { const I = y(_, k, A.strictNumbers, i.Wrong); C.if(I, () => { @@ -46308,7 +46320,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } sr.coerceAndCheckDataType = c; const u = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]); - function f(E, _) { + function d(E, _) { return _ ? E.filter((C) => u.has(C) || _ === "array" && C === "array") : []; } function p(E, _, C) { @@ -46429,7 +46441,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ep.assignDefaults = n; function r(o, i, a) { - const { gen: s, compositeRule: c, data: u, opts: f } = o; + const { gen: s, compositeRule: c, data: u, opts: d } = o; if (a === void 0) return; const p = (0, e._)`${u}${(0, e.getProperty)(i)}`; @@ -46438,7 +46450,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; } let m = (0, e._)`${p} === undefined`; - f.useDefaults === "empty" && (m = (0, e._)`${m} || ${p} === null || ${p} === ""`), s.if(m, (0, e._)`${p} = ${(0, e.stringify)(a)}`); + d.useDefaults === "empty" && (m = (0, e._)`${m} || ${p} === null || ${p} === ""`), s.if(m, (0, e._)`${p} = ${(0, e.stringify)(a)}`); } return ep; } @@ -46449,13 +46461,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const e = vt(), t = Lt(), n = gl(), r = Lt(); function o(E, _) { const { gen: C, data: k, it: A } = E; - C.if(f(C, k, _, A.opts.ownProperties), () => { + C.if(d(C, k, _, A.opts.ownProperties), () => { E.setParams({ missingProperty: (0, e._)`${_}` }, !0), E.error(); }); } Zt.checkReportMissingProp = o; function i({ gen: E, data: _, it: { opts: C } }, k, A) { - return (0, e.or)(...k.map((O) => (0, e.and)(f(E, _, O, C.ownProperties), (0, e._)`${A} = ${O}`))); + return (0, e.or)(...k.map((O) => (0, e.and)(d(E, _, O, C.ownProperties), (0, e._)`${A} = ${O}`))); } Zt.checkMissingProp = i; function a(E, _) { @@ -46479,11 +46491,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return k ? (0, e._)`${A} && ${c(E, _, C)}` : A; } Zt.propertyInData = u; - function f(E, _, C, k) { + function d(E, _, C, k) { const A = (0, e._)`${_}${(0, e.getProperty)(C)} === undefined`; return k ? (0, e.or)(A, (0, e.not)(c(E, _, C))) : A; } - Zt.noPropertyInData = f; + Zt.noPropertyInData = d; function p(E) { return E ? Object.keys(E).filter((_) => _ !== "__proto__") : []; } @@ -46620,10 +46632,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new Error(`keyword "${g}" failed to compile`); return m.scopeValue("keyword", typeof y == "function" ? { ref: y } : { ref: y, code: (0, e.stringify)(y) }); } - function f(m, g, y = !1) { + function d(m, g, y = !1) { return !g.length || g.some((b) => b === "array" ? Array.isArray(m) : b === "object" ? m && typeof m == "object" && !Array.isArray(m) : typeof m == b || y && typeof m > "u"); } - Ho.validSchemaType = f; + Ho.validSchemaType = d; function p({ schema: m, opts: g, self: y, errSchemaPath: b }, v, x) { if (Array.isArray(v.keyword) ? !v.keyword.includes(x) : v.keyword !== x) throw new Error("ajv implementation error"); @@ -46645,7 +46657,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (VD) return Na; VD = 1, Object.defineProperty(Na, "__esModule", { value: !0 }), Na.extendSubschemaMode = Na.extendSubschemaData = Na.getSubschema = void 0; const e = vt(), t = Lt(); - function n(i, { keyword: a, schemaProp: s, schema: c, schemaPath: u, errSchemaPath: f, topSchemaRef: p }) { + function n(i, { keyword: a, schemaProp: s, schema: c, schemaPath: u, errSchemaPath: d, topSchemaRef: p }) { if (a !== void 0 && c !== void 0) throw new Error('both "keyword" and "schema" passed, only one allowed'); if (a !== void 0) { @@ -46661,19 +46673,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } if (c !== void 0) { - if (u === void 0 || f === void 0 || p === void 0) + if (u === void 0 || d === void 0 || p === void 0) throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); return { schema: c, schemaPath: u, topSchemaRef: p, - errSchemaPath: f + errSchemaPath: d }; } throw new Error('either "keyword" or "schema" must be passed'); } Na.getSubschema = n; - function r(i, a, { dataProp: s, dataPropType: c, data: u, dataTypes: f, propertyName: p }) { + function r(i, a, { dataProp: s, dataPropType: c, data: u, dataTypes: d, propertyName: p }) { if (u !== void 0 && s !== void 0) throw new Error('both "data" and "dataProp" passed, only one allowed'); const { gen: m } = a; @@ -46685,14 +46697,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const y = u instanceof e.Name ? u : m.let("data", u, !0); g(y), p !== void 0 && (i.propertyName = p); } - f && (i.dataTypes = f); + d && (i.dataTypes = d); function g(y) { i.data = y, i.dataLevel = a.dataLevel + 1, i.dataTypes = [], a.definedProperties = /* @__PURE__ */ new Set(), i.parentData = a.data, i.dataNames = [...a.dataNames, y]; } } Na.extendSubschemaData = r; - function o(i, { jtdDiscriminator: a, jtdMetadata: s, compositeRule: c, createErrors: u, allErrors: f }) { - c !== void 0 && (i.compositeRule = c), u !== void 0 && (i.createErrors = u), f !== void 0 && (i.allErrors = f), i.jtdDiscriminator = a, i.jtdMetadata = s; + function o(i, { jtdDiscriminator: a, jtdMetadata: s, compositeRule: c, createErrors: u, allErrors: d }) { + c !== void 0 && (i.compositeRule = c), u !== void 0 && (i.createErrors = u), d !== void 0 && (i.allErrors = d), i.jtdDiscriminator = a, i.jtdMetadata = s; } return Na.extendSubschemaMode = o, Na; } @@ -46776,9 +46788,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho maxProperties: !0, minProperties: !0 }; - function t(r, o, i, a, s, c, u, f, p, m) { + function t(r, o, i, a, s, c, u, d, p, m) { if (a && typeof a == "object" && !Array.isArray(a)) { - o(a, s, c, u, f, p, m); + o(a, s, c, u, d, p, m); for (var g in a) { var y = a[g]; if (Array.isArray(y)) { @@ -46791,7 +46803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho t(r, o, i, y[v], s + "/" + g + "/" + n(v), c, s, g, a, v); } else (g in e.keywords || r.allKeys && !(g in e.skipKeywords)) && t(r, o, i, y, s + "/" + g, c, s, g, a); } - i(a, s, c, u, f, p, m); + i(a, s, c, u, d, p, m); } } function n(r) { @@ -46862,9 +46874,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return b.serialize(v).split("#")[0] + "#"; } Cr._getFullPath = u; - const f = /#\/?$/; + const d = /#\/?$/; function p(b) { - return b ? b.replace(f, "") : ""; + return b ? b.replace(d, "") : ""; } Cr.normalizeId = p; function m(b, v, x) { @@ -46912,7 +46924,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function _1() { if (GD) return Oa; GD = 1, Object.defineProperty(Oa, "__esModule", { value: !0 }), Oa.getData = Oa.KeywordCxt = Oa.validateFunctionCode = void 0; - const e = xCe(), t = B0(), n = bV(), r = B0(), o = wCe(), i = SCe(), a = _Ce(), s = vt(), c = gl(), u = S1(), f = Lt(), p = w1(); + const e = xCe(), t = B0(), n = bV(), r = B0(), o = wCe(), i = SCe(), a = _Ce(), s = vt(), c = gl(), u = S1(), d = Lt(), p = w1(); function m(J) { if (k(J) && (O(J), C(J))) { v(J); @@ -46975,7 +46987,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho P(J, Se), le.var(ee, (0, s._)`${Se} === ${c.default.errors}`); } function O(J) { - (0, f.checkUnknownRules)(J), I(J); + (0, d.checkUnknownRules)(J), I(J); } function P(J, ee) { if (J.opts.jtd) @@ -46985,11 +46997,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function I(J) { const { schema: ee, errSchemaPath: ie, opts: le, self: ge } = J; - ee.$ref && le.ignoreKeywordsWithRef && (0, f.schemaHasRulesButRef)(ee, ge.RULES) && ge.logger.warn(`$ref: keywords ignored in schema at path "${ie}"`); + ee.$ref && le.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(ee, ge.RULES) && ge.logger.warn(`$ref: keywords ignored in schema at path "${ie}"`); } function $(J) { const { schema: ee, opts: ie } = J; - ee.default !== void 0 && ie.useDefaults && ie.strictSchema && (0, f.checkStrictMode)(J, "default is ignored in the schema root"); + ee.default !== void 0 && ie.useDefaults && ie.strictSchema && (0, d.checkStrictMode)(J, "default is ignored in the schema root"); } function L(J) { const ee = J.schema[J.opts.schemaId]; @@ -47017,7 +47029,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function F(J, ee, ie, le) { const { gen: ge, schema: Se, data: Me, allErrors: je, opts: ze, self: Ye } = J, { RULES: Ue } = Ye; - if (Se.$ref && (ze.ignoreKeywordsWithRef || !(0, f.schemaHasRulesButRef)(Se, Ue))) { + if (Se.$ref && (ze.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(Se, Ue))) { ge.block(() => ne(J, "$ref", Ue.all.$ref.definition)); return; } @@ -47078,11 +47090,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function X(J, ee) { const ie = J.schemaEnv.baseId + J.errSchemaPath; - ee += ` at "${ie}" (strictTypes)`, (0, f.checkStrictMode)(J, ee, J.opts.strictTypes); + ee += ` at "${ie}" (strictTypes)`, (0, d.checkStrictMode)(J, ee, J.opts.strictTypes); } class Q { constructor(ee, ie, le) { - if ((0, i.validateKeywordUsage)(ee, ie, le), this.gen = ee.gen, this.allErrors = ee.allErrors, this.keyword = le, this.data = ee.data, this.schema = ee.schema[le], this.$data = ie.$data && ee.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, f.schemaRefOrVal)(ee, this.schema, le, this.$data), this.schemaType = ie.schemaType, this.parentSchema = ee.schema, this.params = {}, this.it = ee, this.def = ie, this.$data) + if ((0, i.validateKeywordUsage)(ee, ie, le), this.gen = ee.gen, this.allErrors = ee.allErrors, this.keyword = le, this.data = ee.data, this.schema = ee.schema[le], this.$data = ie.$data && ee.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(ee, this.schema, le, this.$data), this.schemaType = ie.schemaType, this.parentSchema = ee.schema, this.params = {}, this.it = ee, this.def = ie, this.$data) this.schemaCode = ee.gen.const("vSchema", ue(this.$data, ee)); else if (this.schemaCode = this.schemaValue, !(0, i.validSchemaType)(this.schema, ie.schemaType, ie.allowUndefined)) throw new Error(`${le} value must be ${JSON.stringify(ie.schemaType)}`); @@ -47173,7 +47185,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } mergeEvaluated(ee, ie) { const { it: le, gen: ge } = this; - le.opts.unevaluated && (le.props !== !0 && ee.props !== void 0 && (le.props = f.mergeEvaluated.props(ge, ee.props, le.props, ie)), le.items !== !0 && ee.items !== void 0 && (le.items = f.mergeEvaluated.items(ge, ee.items, le.items, ie))); + le.opts.unevaluated && (le.props !== !0 && ee.props !== void 0 && (le.props = d.mergeEvaluated.props(ge, ee.props, le.props, ie)), le.items !== !0 && ee.items !== void 0 && (le.items = d.mergeEvaluated.items(ge, ee.items, le.items, ie))); } mergeValidEvaluated(ee, ie) { const { it: le, gen: ge } = this; @@ -47213,7 +47225,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let Me = Se; const je = ge.split("/"); for (const Ye of je) - Ye && (Se = (0, s._)`${Se}${(0, s.getProperty)((0, f.unescapeJsonPointer)(Ye))}`, Me = (0, s._)`${Me} && ${Se}`); + Ye && (Se = (0, s._)`${Se}${(0, s.getProperty)((0, d.unescapeJsonPointer)(Ye))}`, Me = (0, s._)`${Me} && ${Se}`); return Me; function ze(Ye, Ue) { return `Cannot access ${Ye} ${Ue} levels up, current level is ${ee}`; @@ -47259,7 +47271,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } to.SchemaEnv = a; function s(v) { - const x = f.call(this, v); + const x = d.call(this, v); if (x) return x; const E = (0, r.getFullPath)(this.opts.uriResolver, v.root.baseId), { es5: _, lines: C } = this.opts.code, { ownProperties: k } = this.opts, A = new e.CodeGen(this.scope, { es5: _, lines: C, ownProperties: k }); @@ -47336,12 +47348,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function u(v) { return (0, r.inlineRef)(v.schema, this.opts.inlineRefs) ? v.schema : v.validate ? v : s.call(this, v); } - function f(v) { + function d(v) { for (const x of this._compilations) if (p(x, v)) return x; } - to.getCompilingSchema = f; + to.getCompilingSchema = d; function p(v, x) { return v.schema === x.schema && v.root === x.root && v.baseId === x.baseId; } @@ -47524,7 +47536,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho b[E] === v && x++; return x; } - const c = /^\.\.?\//u, u = /^\/\.(?:\/|$)/u, f = /^\/\.\.(?:\/|$)/u, p = /^\/?(?:.|\n)*?(?=\/|$)/u; + const c = /^\.\.?\//u, u = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u, p = /^\/?(?:.|\n)*?(?=\/|$)/u; function m(b) { const v = []; for (; b.length; ) @@ -47532,8 +47544,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho b = b.replace(c, ""); else if (b.match(u)) b = b.replace(u, "/"); - else if (b.match(f)) - b = b.replace(f, "/"), v.pop(); + else if (b.match(d)) + b = b.replace(d, "/"), v.pop(); else if (b === "." || b === "..") b = ""; else { @@ -47622,7 +47634,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const C = E; return C.uuid = C.nss, C.nss = void 0, !_.tolerant && (!C.uuid || !e.test(C.uuid)) && (C.error = C.error || "UUID is not valid."), C; } - function f(E) { + function d(E) { const _ = E; return _.nss = (E.uuid || "").toLowerCase(), _; } @@ -47660,7 +47672,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "urn:uuid": { scheme: "urn:uuid", parse: u, - serialize: f, + serialize: d, skipNormalize: !0 } }; @@ -47672,20 +47684,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho e5 = 1; const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: n, recomposeAuthority: r, normalizeComponentEncoding: o } = PCe(), i = ICe(); function a(v, x) { - return typeof v == "string" ? v = f(y(v, x), x) : typeof v == "object" && (v = y(f(v, x), x)), v; + return typeof v == "string" ? v = d(y(v, x), x) : typeof v == "object" && (v = y(d(v, x), x)), v; } function s(v, x, E) { const _ = Object.assign({ scheme: "null" }, E), C = c(y(v, _), y(x, _), _, !0); - return f(C, { ..._, skipEscape: !0 }); + return d(C, { ..._, skipEscape: !0 }); } function c(v, x, E, _) { const C = {}; - return _ || (v = y(f(v, E), E), x = y(f(x, E), E)), E = E || {}, !E.tolerant && x.scheme ? (C.scheme = x.scheme, C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = n(x.path || ""), C.query = x.query) : (x.userinfo !== void 0 || x.host !== void 0 || x.port !== void 0 ? (C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = n(x.path || ""), C.query = x.query) : (x.path ? (x.path.charAt(0) === "/" ? C.path = n(x.path) : ((v.userinfo !== void 0 || v.host !== void 0 || v.port !== void 0) && !v.path ? C.path = "/" + x.path : v.path ? C.path = v.path.slice(0, v.path.lastIndexOf("/") + 1) + x.path : C.path = x.path, C.path = n(C.path)), C.query = x.query) : (C.path = v.path, x.query !== void 0 ? C.query = x.query : C.query = v.query), C.userinfo = v.userinfo, C.host = v.host, C.port = v.port), C.scheme = v.scheme), C.fragment = x.fragment, C; + return _ || (v = y(d(v, E), E), x = y(d(x, E), E)), E = E || {}, !E.tolerant && x.scheme ? (C.scheme = x.scheme, C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = n(x.path || ""), C.query = x.query) : (x.userinfo !== void 0 || x.host !== void 0 || x.port !== void 0 ? (C.userinfo = x.userinfo, C.host = x.host, C.port = x.port, C.path = n(x.path || ""), C.query = x.query) : (x.path ? (x.path.charAt(0) === "/" ? C.path = n(x.path) : ((v.userinfo !== void 0 || v.host !== void 0 || v.port !== void 0) && !v.path ? C.path = "/" + x.path : v.path ? C.path = v.path.slice(0, v.path.lastIndexOf("/") + 1) + x.path : C.path = x.path, C.path = n(C.path)), C.query = x.query) : (C.path = v.path, x.query !== void 0 ? C.query = x.query : C.query = v.query), C.userinfo = v.userinfo, C.host = v.host, C.port = v.port), C.scheme = v.scheme), C.fragment = x.fragment, C; } function u(v, x, E) { - return typeof v == "string" ? (v = unescape(v), v = f(o(y(v, E), !0), { ...E, skipEscape: !0 })) : typeof v == "object" && (v = f(o(v, !0), { ...E, skipEscape: !0 })), typeof x == "string" ? (x = unescape(x), x = f(o(y(x, E), !0), { ...E, skipEscape: !0 })) : typeof x == "object" && (x = f(o(x, !0), { ...E, skipEscape: !0 })), v.toLowerCase() === x.toLowerCase(); + return typeof v == "string" ? (v = unescape(v), v = d(o(y(v, E), !0), { ...E, skipEscape: !0 })) : typeof v == "object" && (v = d(o(v, !0), { ...E, skipEscape: !0 })), typeof x == "string" ? (x = unescape(x), x = d(o(y(x, E), !0), { ...E, skipEscape: !0 })) : typeof x == "object" && (x = d(o(x, !0), { ...E, skipEscape: !0 })), v.toLowerCase() === x.toLowerCase(); } - function f(v, x) { + function d(v, x) { const E = { host: v.host, scheme: v.scheme, @@ -47760,7 +47772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho resolve: s, resolveComponents: c, equal: u, - serialize: f, + serialize: d, parse: y }; return tp.exports = b, tp.exports.default = b, tp.exports.fastUri = b, tp.exports; @@ -47794,7 +47806,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() { return n.CodeGen; } }); - const r = TA(), o = E1(), i = vV(), a = AA(), s = vt(), c = S1(), u = B0(), f = Lt(), p = MCe, m = jCe(), g = (B, D) => new RegExp(B, D); + const r = TA(), o = E1(), i = vV(), a = AA(), s = vt(), c = S1(), u = B0(), d = Lt(), p = MCe, m = jCe(), g = (B, D) => new RegExp(B, D); g.code = "new RegExp"; const y = ["removeAdditional", "useDefaults", "coerceTypes"], b = /* @__PURE__ */ new Set([ "validate", @@ -47833,7 +47845,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, E = 200; function _(B) { var D, G, z, H, X, Q, ne, te, se, ue, J, ee, ie, le, ge, Se, Me, je, ze, Ye, Ue, Ne, mt, Je, Ae; - const oe = B.strict, de = (D = B.code) === null || D === void 0 ? void 0 : D.optimize, _e = de === !0 || de === void 0 ? 1 : de || 0, Ce = (z = (G = B.code) === null || G === void 0 ? void 0 : G.regExp) !== null && z !== void 0 ? z : g, Oe = (H = B.uriResolver) !== null && H !== void 0 ? H : m.default; + const oe = B.strict, fe = (D = B.code) === null || D === void 0 ? void 0 : D.optimize, _e = fe === !0 || fe === void 0 ? 1 : fe || 0, Ce = (z = (G = B.code) === null || G === void 0 ? void 0 : G.regExp) !== null && z !== void 0 ? z : g, Oe = (H = B.uriResolver) !== null && H !== void 0 ? H : m.default; return { strictSchema: (Q = (X = B.strictSchema) !== null && X !== void 0 ? X : oe) !== null && Q !== void 0 ? Q : !0, strictNumbers: (te = (ne = B.strictNumbers) !== null && ne !== void 0 ? ne : oe) !== null && te !== void 0 ? te : !0, @@ -48023,14 +48035,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } else throw new Error("invalid addKeywords parameters"); if (j.call(this, z, G), !G) - return (0, f.eachItem)(z, (X) => V.call(this, X)), this; + return (0, d.eachItem)(z, (X) => V.call(this, X)), this; K.call(this, G); const H = { ...G, type: (0, u.getJSONTypes)(G.type), schemaType: (0, u.getJSONTypes)(G.schemaType) }; - return (0, f.eachItem)(z, H.type.length === 0 ? (X) => V.call(this, X, H) : (X) => H.type.forEach((Q) => V.call(this, X, H, Q))), this; + return (0, d.eachItem)(z, H.type.length === 0 ? (X) => V.call(this, X, H) : (X) => H.type.forEach((Q) => V.call(this, X, H, Q))), this; } getKeyword(D) { const G = this.RULES.all[D]; @@ -48172,7 +48184,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const U = /^[a-z_$][a-z0-9_$:-]*$/i; function j(B, D) { const { RULES: G } = this; - if ((0, f.eachItem)(B, (z) => { + if ((0, d.eachItem)(B, (z) => { if (G.keywords[z]) throw new Error(`Keyword ${z} is already defined`); if (!U.test(z)) @@ -48235,7 +48247,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho keyword: "$ref", schemaType: "string", code(u) { - const { gen: f, schema: p, it: m } = u, { baseId: g, schemaEnv: y, validateName: b, opts: v, self: x } = m, { root: E } = y; + const { gen: d, schema: p, it: m } = u, { baseId: g, schemaEnv: y, validateName: b, opts: v, self: x } = m, { root: E } = y; if ((p === "#" || p === "#/") && g === E.baseId) return C(); const _ = o.resolveRef.call(x, E, g, p); @@ -48247,7 +48259,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function C() { if (y === E) return c(u, b, y, y.$async); - const O = f.scopeValue("root", { ref: E }); + const O = d.scopeValue("root", { ref: E }); return c(u, (0, n._)`${O}.validate`, E, E.$async); } function k(O) { @@ -48255,7 +48267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c(u, P, O, O.$async); } function A(O) { - const P = f.scopeValue("schema", v.code.source === !0 ? { ref: O, code: (0, n.stringify)(O) } : { ref: O }), I = f.name("valid"), $ = u.subschema({ + const P = d.scopeValue("schema", v.code.source === !0 ? { ref: O, code: (0, n.stringify)(O) } : { ref: O }), I = d.name("valid"), $ = u.subschema({ schema: O, dataTypes: [], schemaPath: n.nil, @@ -48266,12 +48278,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; - function s(u, f) { + function s(u, d) { const { gen: p } = u; - return f.validate ? p.scopeValue("validate", { ref: f.validate }) : (0, n._)`${p.scopeValue("wrapper", { ref: f })}.validate`; + return d.validate ? p.scopeValue("validate", { ref: d.validate }) : (0, n._)`${p.scopeValue("wrapper", { ref: d })}.validate`; } Fs.getValidate = s; - function c(u, f, p, m) { + function c(u, d, p, m) { const { gen: g, it: y } = u, { allErrors: b, schemaEnv: v, opts: x } = y, E = x.passContext ? r.default.this : n.nil; m ? _() : C(); function _() { @@ -48279,13 +48291,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new Error("async schema referenced by sync schema"); const O = g.let("valid"); g.try(() => { - g.code((0, n._)`await ${(0, t.callValidateCode)(u, f, E)}`), A(f), b || g.assign(O, !0); + g.code((0, n._)`await ${(0, t.callValidateCode)(u, d, E)}`), A(d), b || g.assign(O, !0); }, (P) => { g.if((0, n._)`!(${P} instanceof ${y.ValidationError})`, () => g.throw(P)), k(P), b || g.assign(O, !1); }), u.ok(O); } function C() { - u.result((0, t.callValidateCode)(u, f, E), () => A(f), () => k(f)); + u.result((0, t.callValidateCode)(u, d, E), () => A(d), () => k(d)); } function k(O) { const P = (0, n._)`${O}.errors`; @@ -48369,8 +48381,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: r }) => (0, e._)`{multipleOf: ${r}}` }, code(r) { - const { gen: o, data: i, schemaCode: a, it: s } = r, c = s.opts.multipleOfPrecision, u = o.let("res"), f = c ? (0, e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}` : (0, e._)`${u} !== parseInt(${u})`; - r.fail$data((0, e._)`(${a} === 0 || (${u} = ${i}/${a}, ${f}))`); + const { gen: o, data: i, schemaCode: a, it: s } = r, c = s.opts.multipleOfPrecision, u = o.let("res"), d = c ? (0, e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}` : (0, e._)`${u} !== parseInt(${u})`; + r.fail$data((0, e._)`(${a} === 0 || (${u} = ${i}/${a}, ${d}))`); } }; return Iy.default = n, Iy; @@ -48405,8 +48417,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: i }) => (0, e._)`{limit: ${i}}` }, code(i) { - const { keyword: a, data: s, schemaCode: c, it: u } = i, f = a === "maxLength" ? e.operators.GT : e.operators.LT, p = u.opts.unicode === !1 ? (0, e._)`${s}.length` : (0, e._)`${(0, t.useFunc)(i.gen, n.default)}(${s})`; - i.fail$data((0, e._)`${p} ${f} ${c}`); + const { keyword: a, data: s, schemaCode: c, it: u } = i, d = a === "maxLength" ? e.operators.GT : e.operators.LT, p = u.opts.unicode === !1 ? (0, e._)`${s}.length` : (0, e._)`${(0, t.useFunc)(i.gen, n.default)}(${s})`; + i.fail$data((0, e._)`${p} ${d} ${c}`); } }; return $y.default = o, $y; @@ -48425,16 +48437,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: o }) => (0, t._)`{pattern: ${o}}` }, code(o) { - const { data: i, $data: a, schema: s, schemaCode: c, it: u } = o, f = u.opts.unicodeRegExp ? "u" : "", p = a ? (0, t._)`(new RegExp(${c}, ${f}))` : (0, e.usePattern)(o, s); + const { data: i, $data: a, schema: s, schemaCode: c, it: u } = o, d = u.opts.unicodeRegExp ? "u" : "", p = a ? (0, t._)`(new RegExp(${c}, ${d}))` : (0, e.usePattern)(o, s); o.fail$data((0, t._)`!${p}.test(${i})`); } }; return Dy.default = r, Dy; } - var Fy = {}, d5; + var Fy = {}, f5; function WCe() { - if (d5) return Fy; - d5 = 1, Object.defineProperty(Fy, "__esModule", { value: !0 }); + if (f5) return Fy; + f5 = 1, Object.defineProperty(Fy, "__esModule", { value: !0 }); const e = vt(), n = { keyword: ["maxProperties", "minProperties"], type: "object", @@ -48454,10 +48466,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; return Fy.default = n, Fy; } - var Ly = {}, f5; + var Ly = {}, d5; function GCe() { - if (f5) return Ly; - f5 = 1, Object.defineProperty(Ly, "__esModule", { value: !0 }); + if (d5) return Ly; + d5 = 1, Object.defineProperty(Ly, "__esModule", { value: !0 }); const e = ci(), t = vt(), n = Lt(), o = { keyword: "required", type: "object", @@ -48468,8 +48480,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ params: { missingProperty: i } }) => (0, t._)`{missingProperty: ${i}}` }, code(i) { - const { gen: a, schema: s, schemaCode: c, data: u, $data: f, it: p } = i, { opts: m } = p; - if (!f && s.length === 0) + const { gen: a, schema: s, schemaCode: c, data: u, $data: d, it: p } = i, { opts: m } = p; + if (!d && s.length === 0) return; const g = s.length >= m.loopRequired; if (p.allErrors ? y() : b(), m.strictRequired) { @@ -48481,7 +48493,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function y() { - if (g || f) + if (g || d) i.block$data(t.nil, v); else for (const E of s) @@ -48489,7 +48501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function b() { const E = a.let("missing"); - if (g || f) { + if (g || d) { const _ = a.let("valid", !0); i.block$data(_, () => x(E, _)), i.ok(_); } else @@ -48555,8 +48567,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ params: { i: a, j: s } }) => (0, t._)`{i: ${a}, j: ${s}}` }, code(a) { - const { gen: s, data: c, $data: u, schema: f, parentSchema: p, schemaCode: m, it: g } = a; - if (!u && !f) + const { gen: s, data: c, $data: u, schema: d, parentSchema: p, schemaCode: m, it: g } = a; + if (!u && !d) return; const y = s.let("valid"), b = p.items ? (0, e.getSchemaTypes)(p.items) : []; a.block$data(y, v, (0, t._)`${m} === false`), a.ok(y); @@ -48597,8 +48609,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: i }) => (0, e._)`{allowedValue: ${i}}` }, code(i) { - const { gen: a, data: s, $data: c, schemaCode: u, schema: f } = i; - c || f && typeof f == "object" ? i.fail$data((0, e._)`!${(0, t.useFunc)(a, n.default)}(${s}, ${u})`) : i.fail((0, e._)`${f} !== ${s}`); + const { gen: a, data: s, $data: c, schemaCode: u, schema: d } = i; + c || d && typeof d == "object" ? i.fail$data((0, e._)`!${(0, t.useFunc)(a, n.default)}(${s}, ${u})`) : i.fail((0, e._)`${d} !== ${s}`); } }; return Vy.default = o, Vy; @@ -48616,7 +48628,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: i }) => (0, e._)`{allowedValues: ${i}}` }, code(i) { - const { gen: a, data: s, $data: c, schema: u, schemaCode: f, it: p } = i; + const { gen: a, data: s, $data: c, schema: u, schemaCode: d, it: p } = i; if (!c && u.length === 0) throw new Error("enum must have non-empty array"); const m = u.length >= p.opts.loopEnum; @@ -48628,12 +48640,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho else { if (!Array.isArray(u)) throw new Error("ajv implementation error"); - const E = a.const("vSchema", f); + const E = a.const("vSchema", d); b = (0, e.or)(...u.map((_, C) => x(E, C))); } i.pass(b); function v() { - a.assign(b, !1), a.forOf("v", f, (E) => a.if((0, e._)`${y()}(${s}, ${E})`, () => a.assign(b, !0).break())); + a.assign(b, !1), a.forOf("v", d, (E) => a.if((0, e._)`${y()}(${s}, ${E})`, () => a.assign(b, !0).break())); } function x(E, _) { const C = u[_]; @@ -48647,7 +48659,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function QCe() { if (v5) return Ny; v5 = 1, Object.defineProperty(Ny, "__esModule", { value: !0 }); - const e = BCe(), t = UCe(), n = HCe(), r = qCe(), o = WCe(), i = GCe(), a = KCe(), s = YCe(), c = XCe(), u = ZCe(), f = [ + const e = BCe(), t = UCe(), n = HCe(), r = qCe(), o = WCe(), i = GCe(), a = KCe(), s = YCe(), c = XCe(), u = ZCe(), d = [ // number e.default, t.default, @@ -48666,7 +48678,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c.default, u.default ]; - return Ny.default = f, Ny; + return Ny.default = d, Ny; } var qy = {}, Iu = {}, b5; function wV() { @@ -48691,7 +48703,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; function o(i, a) { - const { gen: s, schema: c, data: u, keyword: f, it: p } = i; + const { gen: s, schema: c, data: u, keyword: d, it: p } = i; p.items = !0; const m = s.const("len", (0, e._)`${u}.length`); if (c === !1) @@ -48702,7 +48714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function g(y) { s.forRange("i", a.length, m, (b) => { - i.subschema({ keyword: f, dataProp: b, dataPropType: t.Type.Num }, y), p.allErrors || s.if((0, e.not)(y), () => s.break()); + i.subschema({ keyword: d, dataProp: b, dataPropType: t.Type.Num }, y), p.allErrors || s.if((0, e.not)(y), () => s.break()); }); } } @@ -48725,9 +48737,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; function o(i, a, s = i.schema) { - const { gen: c, parentSchema: u, data: f, keyword: p, it: m } = i; + const { gen: c, parentSchema: u, data: d, keyword: p, it: m } = i; b(u), m.opts.unevaluated && s.length && m.items !== !0 && (m.items = t.mergeEvaluated.items(c, s.length, m.items)); - const g = c.name("valid"), y = c.const("len", (0, e._)`${f}.length`); + const g = c.name("valid"), y = c.const("len", (0, e._)`${d}.length`); s.forEach((v, x) => { (0, t.alwaysValidSchema)(m, v) || (c.if((0, e._)`${y} > ${x}`, () => i.subschema({ keyword: p, @@ -48772,8 +48784,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ params: { len: a } }) => (0, e._)`{limit: ${a}}` }, code(a) { - const { schema: s, parentSchema: c, it: u } = a, { prefixItems: f } = c; - u.items = !0, !(0, t.alwaysValidSchema)(u, s) && (f ? (0, r.validateAdditionalItems)(a, f) : a.ok((0, n.validateArray)(a))); + const { schema: s, parentSchema: c, it: u } = a, { prefixItems: d } = c; + u.items = !0, !(0, t.alwaysValidSchema)(u, s) && (d ? (0, r.validateAdditionalItems)(a, d) : a.ok((0, n.validateArray)(a))); } }; return Gy.default = i, Gy; @@ -48794,26 +48806,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, code(o) { const { gen: i, schema: a, parentSchema: s, data: c, it: u } = o; - let f, p; + let d, p; const { minContains: m, maxContains: g } = s; - u.opts.next ? (f = m === void 0 ? 1 : m, p = g) : f = 1; + u.opts.next ? (d = m === void 0 ? 1 : m, p = g) : d = 1; const y = i.const("len", (0, e._)`${c}.length`); - if (o.setParams({ min: f, max: p }), p === void 0 && f === 0) { + if (o.setParams({ min: d, max: p }), p === void 0 && d === 0) { (0, t.checkStrictMode)(u, '"minContains" == 0 without "maxContains": "contains" keyword ignored'); return; } - if (p !== void 0 && f > p) { + if (p !== void 0 && d > p) { (0, t.checkStrictMode)(u, '"minContains" > "maxContains" is always invalid'), o.fail(); return; } if ((0, t.alwaysValidSchema)(u, a)) { - let _ = (0, e._)`${y} >= ${f}`; + let _ = (0, e._)`${y} >= ${d}`; p !== void 0 && (_ = (0, e._)`${_} && ${y} <= ${p}`), o.pass(_); return; } u.items = !0; const b = i.name("valid"); - p === void 0 && f === 1 ? x(b, () => i.if(b, () => i.break())) : f === 0 ? (i.let(b, !0), p !== void 0 && i.if((0, e._)`${c}.length > 0`, v)) : (i.let(b, !1), v()), o.result(b, () => o.reset()); + p === void 0 && d === 1 ? x(b, () => i.if(b, () => i.break())) : d === 0 ? (i.let(b, !0), p !== void 0 && i.if((0, e._)`${c}.length > 0`, v)) : (i.let(b, !1), v()), o.result(b, () => o.reset()); function v() { const _ = i.name("_valid"), C = i.let("count", 0); x(_, () => i.if(_, () => E(C))); @@ -48829,7 +48841,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } function E(_) { - i.code((0, e._)`${_}++`), p === void 0 ? i.if((0, e._)`${_} >= ${f}`, () => i.assign(b, !0).break()) : (i.if((0, e._)`${_} > ${p}`, () => i.assign(b, !1).break()), f === 1 ? i.assign(b, !0) : i.if((0, e._)`${_} >= ${f}`, () => i.assign(b, !0))); + i.code((0, e._)`${_}++`), p === void 0 ? i.if((0, e._)`${_} >= ${d}`, () => i.assign(b, !0).break()) : (i.if((0, e._)`${_} > ${p}`, () => i.assign(b, !1).break()), d === 1 ? i.assign(b, !0) : i.if((0, e._)`${_} >= ${d}`, () => i.assign(b, !0))); } } }; @@ -48841,14 +48853,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0; const t = vt(), n = Lt(), r = ci(); e.error = { - message: ({ params: { property: c, depsCount: u, deps: f } }) => { + message: ({ params: { property: c, depsCount: u, deps: d } }) => { const p = u === 1 ? "property" : "properties"; - return (0, t.str)`must have ${p} ${f} when property ${c} is present`; + return (0, t.str)`must have ${p} ${d} when property ${c} is present`; }, - params: ({ params: { property: c, depsCount: u, deps: f, missingProperty: p } }) => (0, t._)`{property: ${c}, + params: ({ params: { property: c, depsCount: u, deps: d, missingProperty: p } }) => (0, t._)`{property: ${c}, missingProperty: ${p}, depsCount: ${u}, - deps: ${f}}` + deps: ${d}}` // TODO change to reference }; const o = { @@ -48857,51 +48869,51 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho schemaType: "object", error: e.error, code(c) { - const [u, f] = i(c); - a(c, u), s(c, f); + const [u, d] = i(c); + a(c, u), s(c, d); } }; function i({ schema: c }) { - const u = {}, f = {}; + const u = {}, d = {}; for (const p in c) { if (p === "__proto__") continue; - const m = Array.isArray(c[p]) ? u : f; + const m = Array.isArray(c[p]) ? u : d; m[p] = c[p]; } - return [u, f]; + return [u, d]; } function a(c, u = c.schema) { - const { gen: f, data: p, it: m } = c; + const { gen: d, data: p, it: m } = c; if (Object.keys(u).length === 0) return; - const g = f.let("missing"); + const g = d.let("missing"); for (const y in u) { const b = u[y]; if (b.length === 0) continue; - const v = (0, r.propertyInData)(f, p, y, m.opts.ownProperties); + const v = (0, r.propertyInData)(d, p, y, m.opts.ownProperties); c.setParams({ property: y, depsCount: b.length, deps: b.join(", ") - }), m.allErrors ? f.if(v, () => { + }), m.allErrors ? d.if(v, () => { for (const x of b) (0, r.checkReportMissingProp)(c, x); - }) : (f.if((0, t._)`${v} && (${(0, r.checkMissingProp)(c, b, g)})`), (0, r.reportMissingProp)(c, g), f.else()); + }) : (d.if((0, t._)`${v} && (${(0, r.checkMissingProp)(c, b, g)})`), (0, r.reportMissingProp)(c, g), d.else()); } } e.validatePropertyDeps = a; function s(c, u = c.schema) { - const { gen: f, data: p, keyword: m, it: g } = c, y = f.name("valid"); + const { gen: d, data: p, keyword: m, it: g } = c, y = d.name("valid"); for (const b in u) - (0, n.alwaysValidSchema)(g, u[b]) || (f.if( - (0, r.propertyInData)(f, p, b, g.opts.ownProperties), + (0, n.alwaysValidSchema)(g, u[b]) || (d.if( + (0, r.propertyInData)(d, p, b, g.opts.ownProperties), () => { const v = c.subschema({ keyword: m, schemaProp: b }, y); c.mergeValidEvaluated(v, y); }, - () => f.var(y, !0) + () => d.var(y, !0) // TODO var ), c.ok(y)); } @@ -48925,12 +48937,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if ((0, t.alwaysValidSchema)(c, a)) return; const u = i.name("valid"); - i.forIn("key", s, (f) => { - o.setParams({ propertyName: f }), o.subschema({ + i.forIn("key", s, (d) => { + o.setParams({ propertyName: d }), o.subschema({ keyword: "propertyNames", - data: f, + data: d, dataTypes: ["string"], - propertyName: f, + propertyName: d, compositeRule: !0 }, u), i.if((0, e.not)(u), () => { o.error(!0), c.allErrors || i.break(); @@ -48955,7 +48967,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ params: a }) => (0, t._)`{additionalProperty: ${a.additionalProperty}}` }, code(a) { - const { gen: s, schema: c, parentSchema: u, data: f, errsCount: p, it: m } = a; + const { gen: s, schema: c, parentSchema: u, data: d, errsCount: p, it: m } = a; if (!p) throw new Error("ajv implementation error"); const { allErrors: g, opts: y } = m; @@ -48964,7 +48976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const b = (0, e.allSchemaProperties)(u.properties), v = (0, e.allSchemaProperties)(u.patternProperties); x(), a.ok((0, t._)`${p} === ${n.default.errors}`); function x() { - s.forIn("key", f, (A) => { + s.forIn("key", d, (A) => { !b.length && !v.length ? C(A) : s.if(E(A), () => C(A)); }); } @@ -48977,7 +48989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return v.length && (O = (0, t.or)(O, ...v.map((P) => (0, t._)`${(0, e.usePattern)(a, P)}.test(${A})`))), (0, t.not)(O); } function _(A) { - s.code((0, t._)`delete ${f}[${A}]`); + s.code((0, t._)`delete ${d}[${A}]`); } function C(A) { if (y.removeAdditional === "all" || y.removeAdditional && c === !1) { @@ -49020,20 +49032,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: "object", schemaType: "object", code(i) { - const { gen: a, schema: s, parentSchema: c, data: u, it: f } = i; - f.opts.removeAdditional === "all" && c.additionalProperties === void 0 && r.default.code(new e.KeywordCxt(f, r.default, "additionalProperties")); + const { gen: a, schema: s, parentSchema: c, data: u, it: d } = i; + d.opts.removeAdditional === "all" && c.additionalProperties === void 0 && r.default.code(new e.KeywordCxt(d, r.default, "additionalProperties")); const p = (0, t.allSchemaProperties)(s); for (const v of p) - f.definedProperties.add(v); - f.opts.unevaluated && p.length && f.props !== !0 && (f.props = n.mergeEvaluated.props(a, (0, n.toHash)(p), f.props)); - const m = p.filter((v) => !(0, n.alwaysValidSchema)(f, s[v])); + d.definedProperties.add(v); + d.opts.unevaluated && p.length && d.props !== !0 && (d.props = n.mergeEvaluated.props(a, (0, n.toHash)(p), d.props)); + const m = p.filter((v) => !(0, n.alwaysValidSchema)(d, s[v])); if (m.length === 0) return; const g = a.name("valid"); for (const v of m) - y(v) ? b(v) : (a.if((0, t.propertyInData)(a, u, v, f.opts.ownProperties)), b(v), f.allErrors || a.else().var(g, !0), a.endIf()), i.it.definedProperties.add(v), i.ok(g); + y(v) ? b(v) : (a.if((0, t.propertyInData)(a, u, v, d.opts.ownProperties)), b(v), d.allErrors || a.else().var(g, !0), a.endIf()), i.it.definedProperties.add(v), i.ok(g); function y(v) { - return f.opts.useDefaults && !f.compositeRule && s[v].default !== void 0; + return d.opts.useDefaults && !d.compositeRule && s[v].default !== void 0; } function b(v) { i.subschema({ @@ -49055,20 +49067,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: "object", schemaType: "object", code(i) { - const { gen: a, schema: s, data: c, parentSchema: u, it: f } = i, { opts: p } = f, m = (0, e.allSchemaProperties)(s), g = m.filter((C) => (0, n.alwaysValidSchema)(f, s[C])); - if (m.length === 0 || g.length === m.length && (!f.opts.unevaluated || f.props === !0)) + const { gen: a, schema: s, data: c, parentSchema: u, it: d } = i, { opts: p } = d, m = (0, e.allSchemaProperties)(s), g = m.filter((C) => (0, n.alwaysValidSchema)(d, s[C])); + if (m.length === 0 || g.length === m.length && (!d.opts.unevaluated || d.props === !0)) return; const y = p.strictSchema && !p.allowMatchingProperties && u.properties, b = a.name("valid"); - f.props !== !0 && !(f.props instanceof t.Name) && (f.props = (0, r.evaluatedPropsToName)(a, f.props)); - const { props: v } = f; + d.props !== !0 && !(d.props instanceof t.Name) && (d.props = (0, r.evaluatedPropsToName)(a, d.props)); + const { props: v } = d; x(); function x() { for (const C of m) - y && E(C), f.allErrors ? _(C) : (a.var(b, !0), _(C), a.if(b)); + y && E(C), d.allErrors ? _(C) : (a.var(b, !0), _(C), a.if(b)); } function E(C) { for (const k in y) - new RegExp(C).test(k) && (0, n.checkStrictMode)(f, `property ${k} matches pattern ${C} (use allowMatchingProperties)`); + new RegExp(C).test(k) && (0, n.checkStrictMode)(d, `property ${k} matches pattern ${C} (use allowMatchingProperties)`); } function _(C) { a.forIn("key", c, (k) => { @@ -49079,7 +49091,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho schemaProp: C, dataProp: k, dataPropType: r.Type.Str - }, b), f.opts.unevaluated && v !== !0 ? a.assign((0, t._)`${v}[${k}]`, !0) : !A && !f.allErrors && a.if((0, t.not)(b), () => a.break()); + }, b), d.opts.unevaluated && v !== !0 ? a.assign((0, t._)`${v}[${k}]`, !0) : !A && !d.allErrors && a.if((0, t.not)(b), () => a.break()); }); }); } @@ -49144,8 +49156,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new Error("ajv implementation error"); if (c.opts.discriminator && s.discriminator) return; - const u = a, f = i.let("valid", !1), p = i.let("passing", null), m = i.name("_valid"); - o.setParams({ passing: p }), i.block(g), o.result(f, () => o.reset(), () => o.error(!0)); + const u = a, d = i.let("valid", !1), p = i.let("passing", null), m = i.name("_valid"); + o.setParams({ passing: p }), i.block(g), o.result(d, () => o.reset(), () => o.error(!0)); function g() { u.forEach((y, b) => { let v; @@ -49153,8 +49165,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho keyword: "oneOf", schemaProp: b, compositeRule: !0 - }, m), b > 0 && i.if((0, e._)`${m} && ${f}`).assign(f, !1).assign(p, (0, e._)`[${p}, ${b}]`).else(), i.if(m, () => { - i.assign(f, !0), i.assign(p, b), v && o.mergeEvaluated(v, e.Name); + }, m), b > 0 && i.if((0, e._)`${m} && ${d}`).assign(d, !1).assign(p, (0, e._)`[${p}, ${b}]`).else(), i.if(m, () => { + i.assign(d, !0), i.assign(p, b), v && o.mergeEvaluated(v, e.Name); }); }); } @@ -49199,11 +49211,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho code(i) { const { gen: a, parentSchema: s, it: c } = i; s.then === void 0 && s.else === void 0 && (0, t.checkStrictMode)(c, '"if" without "then" and "else" is ignored'); - const u = o(c, "then"), f = o(c, "else"); - if (!u && !f) + const u = o(c, "then"), d = o(c, "else"); + if (!u && !d) return; const p = a.let("valid", !0), m = a.name("_valid"); - if (g(), i.reset(), u && f) { + if (g(), i.reset(), u && d) { const b = a.let("ifClause"); i.setParams({ ifClause: b }), a.if(m, y("then", b), y("else", b)); } else u ? a.if(m, y("then")) : a.if((0, e.not)(m), y("else")); @@ -49232,7 +49244,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return rv.default = r, rv; } var ov = {}, I5; - function dke() { + function fke() { if (I5) return ov; I5 = 1, Object.defineProperty(ov, "__esModule", { value: !0 }); const e = Lt(), t = { @@ -49245,14 +49257,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ov.default = t, ov; } var $5; - function fke() { + function dke() { if ($5) return qy; $5 = 1, Object.defineProperty(qy, "__esModule", { value: !0 }); - const e = wV(), t = JCe(), n = SV(), r = eke(), o = tke(), i = nke(), a = rke(), s = _V(), c = oke(), u = ike(), f = ake(), p = ske(), m = lke(), g = cke(), y = uke(), b = dke(); + const e = wV(), t = JCe(), n = SV(), r = eke(), o = tke(), i = nke(), a = rke(), s = _V(), c = oke(), u = ike(), d = ake(), p = ske(), m = lke(), g = cke(), y = uke(), b = fke(); function v(x = !1) { const E = [ // any - f.default, + d.default, p.default, m.default, g.default, @@ -49283,7 +49295,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ schemaCode: r }) => (0, e._)`{format: ${r}}` }, code(r, o) { - const { gen: i, data: a, $data: s, schema: c, schemaCode: u, it: f } = r, { opts: p, errSchemaPath: m, schemaEnv: g, self: y } = f; + const { gen: i, data: a, $data: s, schema: c, schemaCode: u, it: d } = r, { opts: p, errSchemaPath: m, schemaEnv: g, self: y } = d; if (!p.validateFormats) return; s ? b() : v(); @@ -49365,7 +49377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function gke() { if (L5) return Ry; L5 = 1, Object.defineProperty(Ry, "__esModule", { value: !0 }); - const e = zCe(), t = QCe(), n = fke(), r = hke(), o = mke(), i = [ + const e = zCe(), t = QCe(), n = dke(), r = hke(), o = mke(), i = [ e.default, t.default, (0, n.default)(), @@ -49397,13 +49409,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho params: ({ params: { discrError: s, tag: c, tagName: u } }) => (0, e._)`{error: ${s}, tag: ${u}, tagValue: ${c}}` }, code(s) { - const { gen: c, data: u, schema: f, parentSchema: p, it: m } = s, { oneOf: g } = p; + const { gen: c, data: u, schema: d, parentSchema: p, it: m } = s, { oneOf: g } = p; if (!m.opts.discriminator) throw new Error("discriminator: requires discriminator option"); - const y = f.propertyName; + const y = d.propertyName; if (typeof y != "string") throw new Error("discriminator: requires propertyName"); - if (f.mapping) + if (d.mapping) throw new Error("discriminator: mapping is not supported"); if (!g) throw new Error("discriminator: requires oneOf keyword"); @@ -49494,19 +49506,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() { return u.KeywordCxt; } }); - var f = vt(); + var d = vt(); Object.defineProperty(t, "_", { enumerable: !0, get: function() { - return f._; + return d._; } }), Object.defineProperty(t, "str", { enumerable: !0, get: function() { - return f.str; + return d.str; } }), Object.defineProperty(t, "stringify", { enumerable: !0, get: function() { - return f.stringify; + return d.stringify; } }), Object.defineProperty(t, "nil", { enumerable: !0, get: function() { - return f.nil; + return d.nil; } }), Object.defineProperty(t, "Name", { enumerable: !0, get: function() { - return f.Name; + return d.Name; } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() { - return f.CodeGen; + return d.CodeGen; } }); var p = TA(); Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() { @@ -49614,15 +49626,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (L && N) return I = L[1] + L[2] + L[3] + (L[4] || ""), $ = N[1] + N[2] + N[3] + (N[4] || ""), I > $ ? 1 : I < $ ? -1 : 0; } - const f = /t|\s/i; + const d = /t|\s/i; function p(I) { - const $ = I.split(f); + const $ = I.split(d); return $.length === 2 && i($[0]) && c($[1], !0); } function m(I, $) { if (!(I && $)) return; - const [L, N] = I.split(f), [U, j] = $.split(f), V = a(L, U); + const [L, N] = I.split(d), [U, j] = $.split(d), V = a(L, U); if (V !== void 0) return V || u(N, j); } @@ -49676,7 +49688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho $data: !0, error: i, code(s) { - const { gen: c, data: u, schemaCode: f, keyword: p, it: m } = s, { opts: g, self: y } = m; + const { gen: c, data: u, schemaCode: d, keyword: p, it: m } = s, { opts: g, self: y } = m; if (!g.validateFormats) return; const b = new t.KeywordCxt(m, y.RULES.all.format.definition, "format"); @@ -49702,7 +49714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s.fail$data(E(k)); } function E(_) { - return n._`${_}.compare(${u}, ${f}) ${o[p].fail} 0`; + return n._`${_}.compare(${u}, ${d}) ${o[p].fail} 0`; } }, dependencies: ["format"] @@ -49715,22 +49727,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Oke() { return q5 || (q5 = 1, (function(e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); - const n = Ake(), r = Rke(), o = vt(), i = new o.Name("fullFormats"), a = new o.Name("fastFormats"), s = (u, f = { keywords: !0 }) => { - if (Array.isArray(f)) - return c(u, f, n.fullFormats, i), u; - const [p, m] = f.mode === "fast" ? [n.fastFormats, a] : [n.fullFormats, i], g = f.formats || n.formatNames; - return c(u, g, p, m), f.keywords && r.default(u), u; + const n = Ake(), r = Rke(), o = vt(), i = new o.Name("fullFormats"), a = new o.Name("fastFormats"), s = (u, d = { keywords: !0 }) => { + if (Array.isArray(d)) + return c(u, d, n.fullFormats, i), u; + const [p, m] = d.mode === "fast" ? [n.fastFormats, a] : [n.fullFormats, i], g = d.formats || n.formatNames; + return c(u, g, p, m), d.keywords && r.default(u), u; }; - s.get = (u, f = "full") => { - const m = (f === "fast" ? n.fastFormats : n.fullFormats)[u]; + s.get = (u, d = "full") => { + const m = (d === "fast" ? n.fastFormats : n.fullFormats)[u]; if (!m) throw new Error(`Unknown format "${u}"`); return m; }; - function c(u, f, p, m) { + function c(u, d, p, m) { var g, y; (g = (y = u.opts.code).formats) !== null && g !== void 0 || (y.formats = o._`require("ajv-formats/dist/formats").${m}`); - for (const b of f) + for (const b of d) u.addFormat(b, p[b]); } e.exports = t = s, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = s; @@ -49754,8 +49766,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function jke(e = [], t) { return e.map((r) => { var o; - const { instancePath: i, keyword: a, params: s, schemaPath: c, parentSchema: u, ...f } = r; - let { message: p = "" } = f, m = i.replace(/\//g, "."), g = `${m} ${p}`.trim(), y = ""; + const { instancePath: i, keyword: a, params: s, schemaPath: c, parentSchema: u, ...d } = r; + let { message: p = "" } = d, m = i.replace(/\//g, "."), g = `${m} ${p}`.trim(), y = ""; const b = [ ...((o = s.deps) === null || o === void 0 ? void 0 : o.split(", ")) || [], s.missingProperty, @@ -49816,7 +49828,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), typeof o != "function") return { errors: c, errorSchema: u }; - const f = rV(e, r, n, r, !0), p = o(f, SC(f), a), m = yV(p); + const d = rV(e, r, n, r, !0), p = o(d, SC(d), a), m = yV(p); return Kv({ errors: c, errorSchema: u }, m); } class Fke { @@ -49851,16 +49863,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let s; return a && (typeof this.localizer == "function" && (((r = a.errors) !== null && r !== void 0 ? r : []).forEach((c) => { var u; - ["missingProperty", "property"].forEach((f) => { + ["missingProperty", "property"].forEach((d) => { var p; - !((p = c.params) === null || p === void 0) && p[f] && (c.params[f] = `'${c.params[f]}'`); - }), !((u = c.params) === null || u === void 0) && u.deps && (c.params.deps = c.params.deps.split(", ").map((f) => `'${f}'`).join(", ")); + !((p = c.params) === null || p === void 0) && p[d] && (c.params[d] = `'${c.params[d]}'`); + }), !((u = c.params) === null || u === void 0) && u.deps && (c.params.deps = c.params.deps.split(", ").map((d) => `'${d}'`).join(", ")); }), this.localizer(a.errors), ((o = a.errors) !== null && o !== void 0 ? o : []).forEach((c) => { var u; - ["missingProperty", "property"].forEach((f) => { + ["missingProperty", "property"].forEach((d) => { var p; - !((p = c.params) === null || p === void 0) && p[f] && (c.params[f] = c.params[f].slice(1, -1)); - }), !((u = c.params) === null || u === void 0) && u.deps && (c.params.deps = c.params.deps.split(", ").map((f) => f.slice(1, -1)).join(", ")); + !((p = c.params) === null || p === void 0) && p[d] && (c.params[d] = c.params[d].slice(1, -1)); + }), !((u = c.params) === null || u === void 0) && u.deps && (c.params.deps = c.params.deps.split(", ").map((d) => d.slice(1, -1)).join(", ")); })), s = a.errors || void 0, a.errors = null), { errors: s, validationError: i @@ -49961,22 +49973,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return r.useFallbackUiForUnsupportedType && !o ? o = {} : gA(t) && ybe(t) && (o = t.additionalItems), n.getDefaultFormState(o); } function qke(e) { - const { schema: t, fieldPathId: n, uiSchema: r, formData: o = [], disabled: i = !1, readonly: a = !1, autofocus: s = !1, required: c = !1, placeholder: u, onBlur: f, onFocus: p, registry: m, rawErrors: g, name: y, onSelectChange: b } = e, { widgets: v, schemaUtils: x, globalFormOptions: E, globalUiOptions: _ } = m, C = x.retrieveSchema(t.items, o), k = Td(C, r), { widget: A = "select", title: O, ...P } = Qe(r, _), I = Yi(t, A, v), $ = O ?? t.title ?? y, L = x.getDisplayLabel(t, r, _), N = Ic(Do("", E, n, !0)); - return S.jsx(I, { id: N[rn], name: y, multiple: !0, onChange: b, onBlur: f, onFocus: p, options: { ...P, enumOptions: k }, schema: t, uiSchema: r, registry: m, value: o, disabled: i, readonly: a, required: c, label: $, hideLabel: !L, placeholder: u, autofocus: s, rawErrors: g, htmlName: N.name }); + const { schema: t, fieldPathId: n, uiSchema: r, formData: o = [], disabled: i = !1, readonly: a = !1, autofocus: s = !1, required: c = !1, placeholder: u, onBlur: d, onFocus: p, registry: m, rawErrors: g, name: y, onSelectChange: b } = e, { widgets: v, schemaUtils: x, globalFormOptions: E, globalUiOptions: _ } = m, C = x.retrieveSchema(t.items, o), k = Af(C, r), { widget: A = "select", title: O, ...P } = Qe(r, _), I = Yi(t, A, v), $ = O ?? t.title ?? y, L = x.getDisplayLabel(t, r, _), N = Ic(Do("", E, n, !0)); + return S.jsx(I, { id: N[rn], name: y, multiple: !0, onChange: b, onBlur: d, onFocus: p, options: { ...P, enumOptions: k }, schema: t, uiSchema: r, registry: m, value: o, disabled: i, readonly: a, required: c, label: $, hideLabel: !L, placeholder: u, autofocus: s, rawErrors: g, htmlName: N.name }); } function Wke(e) { - const { schema: t, fieldPathId: n, uiSchema: r, disabled: o = !1, readonly: i = !1, autofocus: a = !1, required: s = !1, hideError: c, placeholder: u, onBlur: f, onFocus: p, formData: m = [], registry: g, rawErrors: y, name: b, onSelectChange: v } = e, { widgets: x, schemaUtils: E, globalFormOptions: _, globalUiOptions: C } = g, { widget: k, title: A, ...O } = Qe(r, C), P = Yi(t, k, x), I = A ?? t.title ?? b, $ = E.getDisplayLabel(t, r, C), L = Ic(Do("", _, n, !0)); - return S.jsx(P, { id: L[rn], name: b, multiple: !0, onChange: v, onBlur: f, onFocus: p, options: O, schema: t, uiSchema: r, registry: g, value: m, disabled: o, readonly: i, hideError: c, required: s, label: I, hideLabel: !$, placeholder: u, autofocus: a, rawErrors: y, htmlName: L.name }); + const { schema: t, fieldPathId: n, uiSchema: r, disabled: o = !1, readonly: i = !1, autofocus: a = !1, required: s = !1, hideError: c, placeholder: u, onBlur: d, onFocus: p, formData: m = [], registry: g, rawErrors: y, name: b, onSelectChange: v } = e, { widgets: x, schemaUtils: E, globalFormOptions: _, globalUiOptions: C } = g, { widget: k, title: A, ...O } = Qe(r, C), P = Yi(t, k, x), I = A ?? t.title ?? b, $ = E.getDisplayLabel(t, r, C), L = Ic(Do("", _, n, !0)); + return S.jsx(P, { id: L[rn], name: b, multiple: !0, onChange: v, onBlur: d, onFocus: p, options: O, schema: t, uiSchema: r, registry: g, value: m, disabled: o, readonly: i, hideError: c, required: s, label: I, hideLabel: !$, placeholder: u, autofocus: a, rawErrors: y, htmlName: L.name }); } function Gke(e) { - const { schema: t, uiSchema: n, fieldPathId: r, name: o, disabled: i = !1, readonly: a = !1, autofocus: s = !1, required: c = !1, onBlur: u, onFocus: f, registry: p, formData: m = [], rawErrors: g, onSelectChange: y } = e, { widgets: b, schemaUtils: v, globalFormOptions: x, globalUiOptions: E } = p, { widget: _ = "files", title: C, ...k } = Qe(n, E), A = Yi(t, _, b), O = C ?? t.title ?? o, P = v.getDisplayLabel(t, n, E), I = Ic(Do("", x, r, !0)); - return S.jsx(A, { options: k, id: I[rn], name: o, multiple: !0, onChange: y, onBlur: u, onFocus: f, schema: t, uiSchema: n, value: m, disabled: i, readonly: a, required: c, registry: p, autofocus: s, rawErrors: g, label: O, hideLabel: !P, htmlName: I.name }); + const { schema: t, uiSchema: n, fieldPathId: r, name: o, disabled: i = !1, readonly: a = !1, autofocus: s = !1, required: c = !1, onBlur: u, onFocus: d, registry: p, formData: m = [], rawErrors: g, onSelectChange: y } = e, { widgets: b, schemaUtils: v, globalFormOptions: x, globalUiOptions: E } = p, { widget: _ = "files", title: C, ...k } = Qe(n, E), A = Yi(t, _, b), O = C ?? t.title ?? o, P = v.getDisplayLabel(t, n, E), I = Ic(Do("", x, r, !0)); + return S.jsx(A, { options: k, id: I[rn], name: o, multiple: !0, onChange: y, onBlur: u, onFocus: d, schema: t, uiSchema: n, value: m, disabled: i, readonly: a, required: c, registry: p, autofocus: s, rawErrors: g, label: O, hideLabel: !P, htmlName: I.name }); } function RV(e) { - const { itemKey: t, index: n, name: r, disabled: o, hideError: i, readonly: a, registry: s, uiOptions: c, parentUiSchema: u, canAdd: f, canRemove: p = !0, canMoveUp: m, canMoveDown: g, itemSchema: y, itemData: b, itemUiSchema: v, itemFieldPathId: x, itemErrorSchema: E, autofocus: _, onBlur: C, onFocus: k, onChange: A, rawErrors: O, totalItems: P, title: I, handleAddItem: $, handleCopyItem: L, handleRemoveItem: N, handleReorderItems: U } = e, { schemaUtils: j, fields: { ArraySchemaField: V, SchemaField: F }, globalUiOptions: K } = s, W = Ic(x), Y = V || F, B = tt("ArrayFieldItemTemplate", s, c), D = j.getDisplayLabel(y, v, K), { description: G } = Qe(v), z = !!G || !!y.description, { orderable: H = !0, removable: X = !0, copyable: Q = !1 } = c, ne = { + const { itemKey: t, index: n, name: r, disabled: o, hideError: i, readonly: a, registry: s, uiOptions: c, parentUiSchema: u, canAdd: d, canRemove: p = !0, canMoveUp: m, canMoveDown: g, itemSchema: y, itemData: b, itemUiSchema: v, itemFieldPathId: x, itemErrorSchema: E, autofocus: _, onBlur: C, onFocus: k, onChange: A, rawErrors: O, totalItems: P, title: I, handleAddItem: $, handleCopyItem: L, handleRemoveItem: N, handleReorderItems: U } = e, { schemaUtils: j, fields: { ArraySchemaField: V, SchemaField: F }, globalUiOptions: K } = s, W = Ic(x), Y = V || F, B = tt("ArrayFieldItemTemplate", s, c), D = j.getDisplayLabel(y, v, K), { description: G } = Qe(v), z = !!G || !!y.description, { orderable: H = !0, removable: X = !0, copyable: Q = !1 } = c, ne = { moveUp: H && m, moveDown: H && g, - copy: Q && f, + copy: Q && d, remove: X && p, toolbar: !1 }; @@ -49997,7 +50009,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fieldPathId: W, disabled: o, readonly: a, - canAdd: f, + canAdd: d, hasCopy: ne.copy, hasMoveUp: ne.moveUp, hasMoveDown: ne.moveDown, @@ -50030,7 +50042,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx(B, { ...ie }); } function Kke(e) { - const { schema: t, uiSchema: n = {}, errorSchema: r, fieldPathId: o, formData: i, name: a, title: s, disabled: c = !1, readonly: u = !1, autofocus: f = !1, required: p = !1, hideError: m = !1, registry: g, onBlur: y, onFocus: b, rawErrors: v, onChange: x, keyedFormData: E, handleAddItem: _, handleCopyItem: C, handleRemoveItem: k, handleReorderItems: A } = e, O = t.title || s || a, { schemaUtils: P, fields: I, formContext: $, globalFormOptions: L, globalUiOptions: N } = g, { OptionalDataControlsField: U } = I, j = Qe(n, N), V = $t(t.items) ? t.items : {}, F = P.retrieveSchema(V), K = kV(E), W = pm(g, t, p, n), Y = qd(i), B = TV(g, t, K, n) && (!W || Y), D = Y ? E : [], G = W ? " rjsf-optional-array-field" : "", z = e.childFieldPathId ?? o, H = W ? S.jsx(U, { ...e, fieldPathId: z }) : void 0, X = { + const { schema: t, uiSchema: n = {}, errorSchema: r, fieldPathId: o, formData: i, name: a, title: s, disabled: c = !1, readonly: u = !1, autofocus: d = !1, required: p = !1, hideError: m = !1, registry: g, onBlur: y, onFocus: b, rawErrors: v, onChange: x, keyedFormData: E, handleAddItem: _, handleCopyItem: C, handleRemoveItem: k, handleReorderItems: A } = e, O = t.title || s || a, { schemaUtils: P, fields: I, formContext: $, globalFormOptions: L, globalUiOptions: N } = g, { OptionalDataControlsField: U } = I, j = Qe(n, N), V = $t(t.items) ? t.items : {}, F = P.retrieveSchema(V), K = kV(E), W = pm(g, t, p, n), Y = Wf(i), B = TV(g, t, K, n) && (!W || Y), D = Y ? E : [], G = W ? " rjsf-optional-array-field" : "", z = e.childFieldPathId ?? o, H = W ? S.jsx(U, { ...e, fieldPathId: z }) : void 0, X = { canAdd: B, items: D.map((ne, te) => { const { key: se, item: ue } = ne, J = ue, ee = P.retrieveSchema(V, J), ie = r ? r[te] : void 0, le = Do(te, L, z), ge = AV(n, ue, te, $), Se = { @@ -50052,7 +50064,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho itemErrorSchema: ie, itemData: J, itemUiSchema: ge, - autofocus: f && te === 0, + autofocus: d && te === 0, onBlur: y, onFocus: b, rawErrors: v, @@ -50082,9 +50094,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx(Q, { ...X }); } function Yke(e) { - const { schema: t, uiSchema: n = {}, formData: r, errorSchema: o, fieldPathId: i, name: a, title: s, disabled: c = !1, readonly: u = !1, autofocus: f = !1, required: p = !1, hideError: m = !1, registry: g, onBlur: y, onFocus: b, rawErrors: v, keyedFormData: x, onChange: E, handleAddItem: _, handleCopyItem: C, handleRemoveItem: k, handleReorderItems: A } = e; + const { schema: t, uiSchema: n = {}, formData: r, errorSchema: o, fieldPathId: i, name: a, title: s, disabled: c = !1, readonly: u = !1, autofocus: d = !1, required: p = !1, hideError: m = !1, registry: g, onBlur: y, onFocus: b, rawErrors: v, keyedFormData: x, onChange: E, handleAddItem: _, handleCopyItem: C, handleRemoveItem: k, handleReorderItems: A } = e; let { formData: O = [] } = e; - const P = t.title || s || a, { schemaUtils: I, fields: $, formContext: L, globalFormOptions: N, globalUiOptions: U } = g, j = Qe(n, U), { OptionalDataControlsField: V } = $, F = pm(g, t, p, n), K = qd(r), Y = ($t(t.items) ? t.items : []).map((te, se) => I.retrieveSchema(te, O[se])), B = $t(t.additionalItems) ? I.retrieveSchema(t.additionalItems, r) : null, D = e.childFieldPathId ?? i; + const P = t.title || s || a, { schemaUtils: I, fields: $, formContext: L, globalFormOptions: N, globalUiOptions: U } = g, j = Qe(n, U), { OptionalDataControlsField: V } = $, F = pm(g, t, p, n), K = Wf(r), Y = ($t(t.items) ? t.items : []).map((te, se) => I.retrieveSchema(te, O[se])), B = $t(t.additionalItems) ? I.retrieveSchema(t.additionalItems, r) : null, D = e.childFieldPathId ?? i; O.length < Y.length && (O = O.concat(new Array(Y.length - O.length))); const G = K ? x : [], z = F ? " rjsf-optional-array-field" : "", H = F ? S.jsx(V, { ...e, fieldPathId: D }) : void 0, X = TV(g, t, O, n) && !!B && (!F || K), Q = { canAdd: X, @@ -50116,7 +50128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho itemUiSchema: Se, itemFieldPathId: ge, itemErrorSchema: Me, - autofocus: f && se === 0, + autofocus: d && se === 0, onBlur: y, onFocus: b, rawErrors: v, @@ -50150,9 +50162,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let { keyedFormData: o, formDataHash: i } = n; if (t !== i) { const s = Array.isArray(e) ? e : [], c = o || []; - o = s.length === c.length ? c.map((u, f) => ({ + o = s.length === c.length ? c.map((u, d) => ({ key: u.key, - item: s[f] + item: s[d] })) : G5(s), i = t, r({ formDataHash: i, keyedFormData: o }); } const a = T.useCallback((s) => { @@ -50162,7 +50174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return { keyedFormData: o, updateKeyedFormData: a }; } function Zke(e) { - const { schema: t, uiSchema: n, errorSchema: r, fieldPathId: o, registry: i, formData: a, onChange: s } = e, { globalFormOptions: c, schemaUtils: u, translateString: f } = i, { keyedFormData: p, updateKeyedFormData: m } = Xke(a), g = e.childFieldPathId ?? o, y = T.useCallback((A, O) => { + const { schema: t, uiSchema: n, errorSchema: r, fieldPathId: o, registry: i, formData: a, onChange: s } = e, { globalFormOptions: c, schemaUtils: u, translateString: d } = i, { keyedFormData: p, updateKeyedFormData: m } = Xke(a), g = e.childFieldPathId ?? o, y = T.useCallback((A, O) => { A && A.preventDefault(); let P; if (r) { @@ -50245,18 +50257,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho keyedFormData: p, onChange: E }; - if (!(Ed in t)) { + if (!(Cf in t)) { if (!c.useFallbackUiForUnsupportedType) { const O = Qe(n), P = tt("UnsupportedFieldTemplate", i, O); - return S.jsx(P, { schema: t, fieldPathId: o, reason: f(bt.MissingItems), registry: i }); + return S.jsx(P, { schema: t, fieldPathId: o, reason: d(bt.MissingItems), registry: i }); } - const A = { ...t, [Ed]: { type: void 0 } }; + const A = { ...t, [Cf]: { type: void 0 } }; C.schema = A, k.schema = A; } return u.isMultiSelect(C.schema) ? S.jsx(qke, { ...C }) : oV(n) ? S.jsx(Wke, { ...C }) : gA(C.schema) ? S.jsx(Yke, { ...k }) : u.isFilesArray(C.schema, n) ? S.jsx(Gke, { ...C }) : S.jsx(Kke, { ...k }); } function Qke(e) { - const { schema: t, name: n, uiSchema: r, fieldPathId: o, formData: i, registry: a, required: s, disabled: c, readonly: u, hideError: f, autofocus: p, title: m, onChange: g, onFocus: y, onBlur: b, rawErrors: v } = e, { title: x } = t, { widgets: E, translateString: _, globalUiOptions: C } = a, { + const { schema: t, name: n, uiSchema: r, fieldPathId: o, formData: i, registry: a, required: s, disabled: c, readonly: u, hideError: d, autofocus: p, title: m, onChange: g, onFocus: y, onBlur: b, rawErrors: v } = e, { title: x } = t, { widgets: E, translateString: _, globalUiOptions: C } = a, { widget: k = "checkbox", title: A, // Unlike the other fields, don't use `getDisplayLabel()` since it always returns false for the boolean type @@ -50267,7 +50279,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let U; const j = A ?? x ?? m ?? n; if (Array.isArray(t.oneOf)) - U = Td({ + U = Af({ oneOf: t.oneOf.map((F) => { if ($t(F)) return { @@ -50288,10 +50300,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: F[1], label: F[1] ? L : N } - ] : U = Td({ enum: F }, r); + ] : U = Af({ enum: F }, r); } const V = T.useCallback((F, K, W) => g(F, o.path, K, W), [g, o]); - return S.jsx($, { options: { ...I, enumOptions: U }, schema: t, uiSchema: r, id: o.$id, name: n, onChange: V, onFocus: y, onBlur: b, label: j, hideLabel: !O, value: i, required: s, disabled: c, readonly: u, hideError: f, registry: a, autofocus: p, rawErrors: v, htmlName: o.name }); + return S.jsx($, { options: { ...I, enumOptions: U }, schema: t, uiSchema: r, id: o.$id, name: n, onChange: V, onFocus: y, onBlur: b, label: j, hideLabel: !O, value: i, required: s, disabled: c, readonly: u, hideError: d, registry: a, autofocus: p, rawErrors: v, htmlName: o.name }); } function Jke(e) { return { @@ -50320,7 +50332,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function nTe(e) { - const { id: t, formData: n, displayLabel: r = !0, schema: o, name: i, uiSchema: a, required: s, disabled: c = !1, readonly: u = !1, onBlur: f, onFocus: p, registry: m, fieldPathId: g, onChange: y, errorSchema: b } = e, { translateString: v, fields: x, globalFormOptions: E } = m, [_, C] = T.useState(eTe(n)), k = Qe(a), A = Ic(Do("__internal_type_selector", E, g)), O = v(bt.Type), P = T.useMemo(() => Jke(O), [O]), I = (N) => { + const { id: t, formData: n, displayLabel: r = !0, schema: o, name: i, uiSchema: a, required: s, disabled: c = !1, readonly: u = !1, onBlur: d, onFocus: p, registry: m, fieldPathId: g, onChange: y, errorSchema: b } = e, { translateString: v, fields: x, globalFormOptions: E } = m, [_, C] = T.useState(eTe(n)), k = Qe(a), A = Ic(Do("__internal_type_selector", E, g)), O = v(bt.Type), P = T.useMemo(() => Jke(O), [O]), I = (N) => { N != null && (C(N), y(tTe(n, N), g.path, b, t)); }; if (!E.useFallbackUiForUnsupportedType) { @@ -50328,14 +50340,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx(U, { schema: o, fieldPathId: g, reason: N, registry: m }); } const $ = tt("FallbackFieldTemplate", m, k), { SchemaField: L } = x; - return S.jsx($, { schema: o, registry: m, typeSelector: S.jsx(L, { fieldPathId: A, name: `${i}__fallback_type`, schema: P, formData: _, onChange: I, onBlur: f, onFocus: p, registry: m, hideLabel: !r, disabled: c, readonly: u, required: s }, n ? $i(n) : "__empty__"), schemaField: S.jsx(L, { ...e, schema: { + return S.jsx($, { schema: o, registry: m, typeSelector: S.jsx(L, { fieldPathId: A, name: `${i}__fallback_type`, schema: P, formData: _, onChange: I, onBlur: d, onFocus: p, registry: m, hideLabel: !r, disabled: c, readonly: u, required: s }, n ? $i(n) : "__empty__"), schemaField: S.jsx(L, { ...e, schema: { type: _, title: v(bt.Value), ..._ === "object" && { additionalProperties: !0 } } }) }); } function rTe(e, t) { - return Ud(t, function(n) { + return Vf(t, function(n) { return e[n]; }); } @@ -50346,19 +50358,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function aTe(e, t, n, r) { e = Rc(e) ? e : oTe(e), n = n ? hU(n) : 0; var o = e.length; - return n < 0 && (n = iTe(o + n, 0)), fl(e) ? n <= o && e.indexOf(t, n) > -1 : !!o && RU(e, t, n) > -1; + return n < 0 && (n = iTe(o + n, 0)), dl(e) ? n <= o && e.indexOf(t, n) > -1 : !!o && RU(e, t, n) > -1; } var sTe = Math.min; function lTe(e, t, n) { - for (var r = dA, o = e[0].length, i = e.length, a = i, s = Array(i), c = 1 / 0, u = []; a--; ) { - var f = e[a]; - c = sTe(f.length, c), s[a] = o >= 120 && f.length >= 120 ? new bc(a && f) : void 0; + for (var r = fA, o = e[0].length, i = e.length, a = i, s = Array(i), c = 1 / 0, u = []; a--; ) { + var d = e[a]; + c = sTe(d.length, c), s[a] = o >= 120 && d.length >= 120 ? new bc(a && d) : void 0; } - f = e[0]; + d = e[0]; var p = -1, m = s[0]; e: for (; ++p < o && u.length < c; ) { - var g = f[p], y = g; + var g = d[p], y = g; if (g = g !== 0 ? g : 0, !(m ? mh(m, y) : r(u, y))) { for (a = i; --a; ) { var b = s[a]; @@ -50374,7 +50386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return yh(e) ? e : []; } var K5 = g1(function(e) { - var t = Ud(e, cTe); + var t = Vf(e, cTe); return t.length && t[0] === e[0] ? lTe(t) : []; }); function OV(e) { @@ -50392,11 +50404,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Y5(e, t) { return e ?? t; } - function dTe(e) { + function fTe(e) { return /^\d+?$/.test(e); } const Js = wA(); - function fTe(e, t, n, r, o) { + function dTe(e, t, n, r, o) { const i = Ee(n, [wC], {}), a = Ee(n, e), s = { ...Ee(a, [Zs], {}), ...t, ...i }, c = { ...a }; Hn(s) || Qt(c, [Zs], s), Hn(i) || Qt(c, [wC], i); let { readonly: u } = Qe(c); @@ -50417,10 +50429,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function C1(e, t, n) { let r = {}, o = e[t]; - if (dl(o)) { + if (fl(o)) { const { children: i, className: a, ...s } = o; if (o = i, a) { - const u = a.split(" ").map((f) => EA(n, f, f)).join(" "); + const u = a.split(" ").map((d) => EA(n, d, d)).join(" "); r = { ...s, className: u }; } else r = s; @@ -50431,8 +50443,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function X5(e, t, n) { let r; - if (dTe(n) && e && e?.type === "array" && Tt(e, Ed)) { - const o = Number(n), i = e[Ed]; + if (fTe(n) && e && e?.type === "array" && Tt(e, Cf)) { + const o = Number(n), i = e[Cf]; Array.isArray(i) ? o > i.length ? r = LU(i) : r = i[o] : r = i, t = { [rn]: t[rn], path: [...t.path.slice(0, t.path.length - 1), o] @@ -50443,7 +50455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function hTe(e, t, n, r, o) { const { schemaUtils: i, globalFormOptions: a } = e; let s = n, c = o; - const u = t.split("."), f = u.pop(); + const u = t.split("."), d = u.pop(); let p = i.retrieveSchema(s, r), m = r, g = p.readOnly; u.forEach((v) => { if (c = Do(v, a, c), Tt(p, Ft)) @@ -50458,14 +50470,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho m = Ee(m, v, {}), p = i.retrieveSchema(s, m), g = Y5(p.readOnly, g); }); let y, b = !1; - if (Hn(p) && (p = void 0), p && f) { + if (Hn(p) && (p = void 0), p && d) { if (p && (Tt(p, yt) || Tt(p, Nt))) { const x = Tt(p, yt) ? yt : Nt; - p = i.findSelectedOptionInXxxOf(p, f, x, m); + p = i.findSelectedOptionInXxxOf(p, d, x, m); } - c = Do(f, a, c), b = p !== void 0 && Array.isArray(p.required) && aTe(p.required, f); - const v = X5(p, c, f); - if (v.rawSchema ? (p = v.rawSchema, c = v.fieldPathId) : (p = Ee(p, [Ft, f]), p = p && i.retrieveSchema(p)), g = Y5(p?.readOnly, g), p && (Tt(p, yt) || Tt(p, Nt))) { + c = Do(d, a, c), b = p !== void 0 && Array.isArray(p.required) && aTe(p.required, d); + const v = X5(p, c, d); + if (v.rawSchema ? (p = v.rawSchema, c = v.fieldPathId) : (p = Ee(p, [Ft, d]), p = p && i.retrieveSchema(p)), g = Y5(p?.readOnly, g), p && (Tt(p, yt) || Tt(p, Nt))) { const x = Tt(p, yt) ? yt : Nt, E = Ki(p); y = { options: p[x], hasDiscriminator: !!E }; } @@ -50474,20 +50486,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function mTe(e, t) { let n = e; - return fl(n) && (n = EA(t, n)), sm(n) ? n : null; + return dl(n) && (n = EA(t, n)), sm(n) ? n : null; } function gTe(e, t) { let n, r = null, o = {}, i; - if (fl(t) || OV(t)) + if (dl(t) || OV(t)) n = t ?? ""; else { const { name: a = "", render: s, ...c } = t; - n = a, o = c, Hn(o) || bCe(o, (u, f) => { - if (fl(u)) { + n = a, o = c, Hn(o) || bCe(o, (u, d) => { + if (dl(u)) { const p = uTe.exec(u); if (Array.isArray(p) && p.length > 1) { const m = p[1]; - o[f] = EA(e, m, m); + o[d] = EA(e, m, m); } } }), r = mTe(s, e), !a && r && (i = S.jsx(r, { ...c, "data-testid": Js.uiComponent })); @@ -50499,8 +50511,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t.map((c) => T.createElement(OA, { ...n, key: `layoutGrid-${$i(c)}`, schema: s, layoutGridSchema: c })); } function yTe(e) { - const { layoutGridSchema: t, ...n } = e, { formData: r, registry: o } = n, { children: i, gridProps: a } = C1(t, Di.CONDITION, o), { operator: s, field: c = "", value: u } = a, f = Ee(r, c, null); - return pTe(s, f, u) ? S.jsx(k1, { ...n, childrenLayoutGridSchemaId: i }) : null; + const { layoutGridSchema: t, ...n } = e, { formData: r, registry: o } = n, { children: i, gridProps: a } = C1(t, Di.CONDITION, o), { operator: s, field: c = "", value: u } = a, d = Ee(r, c, null); + return pTe(s, d, u) ? S.jsx(k1, { ...n, childrenLayoutGridSchemaId: i }) : null; } function vTe(e) { const { layoutGridSchema: t, ...n } = e, { registry: r, uiSchema: o } = n, { children: i, gridProps: a } = C1(t, Di.COLUMN, r), s = Qe(o), c = tt("GridTemplate", r, s); @@ -50525,18 +50537,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onFocus: s, formData: c, readonly: u, - registry: f, + registry: d, layoutGridSchema: p, // Used to pull this out of otherProps since we don't want to pass it through ...m - } = e, { onChange: g } = m, { fields: y } = f, { SchemaField: b, LayoutMultiSchemaField: v } = y, x = gTe(f, t), { name: E, UIComponent: _, uiProps: C } = x, { schema: k, isRequired: A, isReadonly: O, optionsInfo: P, fieldPathId: I } = hTe(f, E, n, c, i), $ = Ic(I); + } = e, { onChange: g } = m, { fields: y } = d, { SchemaField: b, LayoutMultiSchemaField: v } = y, x = gTe(d, t), { name: E, UIComponent: _, uiProps: C } = x, { schema: k, isRequired: A, isReadonly: O, optionsInfo: P, fieldPathId: I } = hTe(d, E, n, c, i), $ = Ic(I); if (x.rendered) return x.rendered; if (k) { - const L = P?.hasDiscriminator ? v : b, { fieldUiSchema: N, uiReadonly: U } = fTe(E, C, r, O, u); - return S.jsx(L, { "data-testid": P?.hasDiscriminator ? Js.layoutMultiSchemaField : Js.field, ...m, name: E, required: A, readonly: U, schema: k, uiSchema: N, errorSchema: Ee(o, E), fieldPathId: $, formData: Ee(c, E), onChange: g, onBlur: a, onFocus: s, options: P?.options, registry: f }); + const L = P?.hasDiscriminator ? v : b, { fieldUiSchema: N, uiReadonly: U } = dTe(E, C, r, O, u); + return S.jsx(L, { "data-testid": P?.hasDiscriminator ? Js.layoutMultiSchemaField : Js.field, ...m, name: E, required: A, readonly: U, schema: k, uiSchema: N, errorSchema: Ee(o, E), fieldPathId: $, formData: Ee(c, E), onChange: g, onBlur: a, onFocus: s, options: P?.options, registry: d }); } - return _ ? S.jsx(_, { "data-testid": Js.uiComponent, ...m, name: E, required: A, formData: c, readOnly: !!O || u, errorSchema: o, uiSchema: r, schema: n, fieldPathId: i, onBlur: a, onFocus: s, registry: f, ...C }) : null; + return _ ? S.jsx(_, { "data-testid": Js.uiComponent, ...m, name: E, required: A, formData: c, readOnly: !!O || u, errorSchema: o, uiSchema: r, schema: n, fieldPathId: i, onBlur: a, onFocus: s, registry: d, ...C }) : null; } function OA(e) { const { uiSchema: t } = e; @@ -50556,7 +50568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } OA.TEST_IDS = Js; function STe(e) { - const { fieldPathId: t, title: n, schema: r, uiSchema: o, required: i, registry: a, name: s } = e, c = Qe(o, a.globalUiOptions), { title: u } = c, { title: f } = r, p = u || n || f || s; + const { fieldPathId: t, title: n, schema: r, uiSchema: o, required: i, registry: a, name: s } = e, c = Qe(o, a.globalUiOptions), { title: u } = c, { title: d } = r, p = u || n || d || s; if (!p) return null; const m = tt("TitleFieldTemplate", a, c); @@ -50573,13 +50585,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const i = t.map((c) => n.retrieveSchema(c, o)); let a = e; Tt(e, yt) ? a = { ...e, [yt]: i } : Tt(e, Nt) && (a = { ...e, [Nt]: i }); - const s = Td(a, r); + const s = Af(a, r); if (!s) throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(a)}`); return s; } function _Te(e) { - const { name: t, baseType: n, disabled: r = !1, formData: o, fieldPathId: i, onBlur: a, onChange: s, options: c, onFocus: u, registry: f, uiSchema: p, schema: m, autofocus: g, readonly: y, required: b, errorSchema: v, hideError: x = !1 } = e, { widgets: E, schemaUtils: _, globalUiOptions: C } = f, [k, A] = T.useState(Z5(m, c, _, p, o)), O = Ee(i, rn), P = Ki(m), I = tt("FieldErrorTemplate", f, c), $ = tt("FieldTemplate", f, c), L = $i(m), N = $i(c), U = p ? $i(p) : "", j = o ? $i(o) : ""; + const { name: t, baseType: n, disabled: r = !1, formData: o, fieldPathId: i, onBlur: a, onChange: s, options: c, onFocus: u, registry: d, uiSchema: p, schema: m, autofocus: g, readonly: y, required: b, errorSchema: v, hideError: x = !1 } = e, { widgets: E, schemaUtils: _, globalUiOptions: C } = d, [k, A] = T.useState(Z5(m, c, _, p, o)), O = Ee(i, rn), P = Ki(m), I = tt("FieldErrorTemplate", d, c), $ = tt("FieldTemplate", d, c), L = $i(m), N = $i(c), U = p ? $i(p) : "", j = o ? $i(o) : ""; T.useEffect(() => { A(Z5(m, c, _, p, o)); }, [L, N, _, U, j]); @@ -50594,8 +50606,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const ie = B_(k, W, ee), le = B_(k, W, D); let ge = _.sanitizeDataForNewSchema(ie, le, o); ge && ie && (ge = _.getDefaultFormState(ie, ge, "excludeObjectChildren")), ge && Qt(ge, W, ee), s(ge, i.path, void 0, O); - }, ue = { enumOptions: k, ...B }, J = !X && Q.length > 0 ? S.jsx(I, { fieldPathId: i, schema: m, errors: Q, registry: f }) : void 0; - return S.jsx($, { id: O, schema: m, label: (F || m.title) ?? "", disabled: r || Array.isArray(k) && Hn(k), uiSchema: p, required: b, readonly: !!y, registry: f, displayLabel: te, errors: J, onChange: s, onKeyRename: qv, onKeyRenameBlur: qv, onRemoveProperty: qv, children: S.jsx(H, { id: O, name: t, schema: m, label: (F || m.title) ?? "", disabled: r || Array.isArray(k) && Hn(k), uiSchema: p, autofocus: g, readonly: y, required: b, registry: f, multiple: !1, rawErrors: Q, hideError: X, hideLabel: !te, errorSchema: ne, placeholder: K, onChange: se, onBlur: a, onFocus: u, value: D, options: ue, htmlName: i.name }) }); + }, ue = { enumOptions: k, ...B }, J = !X && Q.length > 0 ? S.jsx(I, { fieldPathId: i, schema: m, errors: Q, registry: d }) : void 0; + return S.jsx($, { id: O, schema: m, label: (F || m.title) ?? "", disabled: r || Array.isArray(k) && Hn(k), uiSchema: p, required: b, readonly: !!y, registry: d, displayLabel: te, errors: J, onChange: s, onKeyRename: qv, onKeyRenameBlur: qv, onRemoveProperty: qv, children: S.jsx(H, { id: O, name: t, schema: m, label: (F || m.title) ?? "", disabled: r || Array.isArray(k) && Hn(k), uiSchema: p, autofocus: g, readonly: y, required: b, registry: d, multiple: !1, rawErrors: Q, hideError: X, hideLabel: !te, errorSchema: ne, placeholder: K, onChange: se, onBlur: a, onFocus: u, value: D, options: ue, htmlName: i.name }) }); } class Q5 extends T.Component { /** Constructs an `AnyOfField` with the given `props` to initialize the initially selected option in state @@ -50611,12 +50623,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @param option - The new option value being selected */ Kn(this, "onOptionChange", (n) => { - const { selectedOption: r, retrievedOptions: o } = this.state, { formData: i, onChange: a, registry: s, fieldPathId: c } = this.props, { schemaUtils: u } = s, f = n !== void 0 ? parseInt(n, 10) : -1; - if (f === r) + const { selectedOption: r, retrievedOptions: o } = this.state, { formData: i, onChange: a, registry: s, fieldPathId: c } = this.props, { schemaUtils: u } = s, d = n !== void 0 ? parseInt(n, 10) : -1; + if (d === r) return; - const p = f >= 0 ? o[f] : void 0, m = r >= 0 ? o[r] : void 0; + const p = d >= 0 ? o[d] : void 0, m = r >= 0 ? o[r] : void 0; let g = u.sanitizeDataForNewSchema(p, m, i); - p && (g = u.getDefaultFormState(p, g, "excludeObjectChildren")), this.setState({ selectedOption: f }, () => { + p && (g = u.getDefaultFormState(p, g, "excludeObjectChildren")), this.setState({ selectedOption: d }, () => { a(g, c.path, void 0, this.getFieldId()); }); }); @@ -50636,12 +50648,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { formData: o, options: i, fieldPathId: a } = this.props, { selectedOption: s } = this.state; let c = this.state; if (!pn(n.options, i)) { - const { registry: { schemaUtils: u } } = this.props, f = i.map((p) => u.retrieveSchema(p, o)); - c = { selectedOption: s, retrievedOptions: f }; + const { registry: { schemaUtils: u } } = this.props, d = i.map((p) => u.retrieveSchema(p, o)); + c = { selectedOption: s, retrievedOptions: d }; } if (!pn(o, n.formData) && a.$id === n.fieldPathId.$id) { - const { retrievedOptions: u } = c, f = this.getMatchingOption(s, o, u); - r && f !== s && (c = { selectedOption: f, retrievedOptions: u }); + const { retrievedOptions: u } = c, d = this.getMatchingOption(s, o, u); + r && d !== s && (c = { selectedOption: d, retrievedOptions: u }); } c !== this.state && this.setState(c); } @@ -50662,7 +50674,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /** Renders the `AnyOfField` selector along with a `SchemaField` for the value of the `formData` */ render() { - const { name: n, disabled: r = !1, errorSchema: o = {}, formData: i, onBlur: a, onFocus: s, readonly: c, required: u = !1, registry: f, schema: p, uiSchema: m } = this.props, { widgets: g, fields: y, translateString: b, globalUiOptions: v, schemaUtils: x } = f, { SchemaField: E } = y, _ = tt("MultiSchemaFieldTemplate", f, v), C = pm(f, p, u, m), k = qd(i), { selectedOption: A, retrievedOptions: O } = this.state, { widget: P = "select", placeholder: I, autofocus: $, autocomplete: L, title: N = p.title, ...U } = Qe(m, v), j = Yi({ type: "number" }, P, g), V = Ee(o, ur, []), F = vh(o, [ur]), K = x.getDisplayLabel(p, m, v), W = A >= 0 && O[A] || null; + const { name: n, disabled: r = !1, errorSchema: o = {}, formData: i, onBlur: a, onFocus: s, readonly: c, required: u = !1, registry: d, schema: p, uiSchema: m } = this.props, { widgets: g, fields: y, translateString: b, globalUiOptions: v, schemaUtils: x } = d, { SchemaField: E } = y, _ = tt("MultiSchemaFieldTemplate", d, v), C = pm(d, p, u, m), k = Wf(i), { selectedOption: A, retrievedOptions: O } = this.state, { widget: P = "select", placeholder: I, autofocus: $, autocomplete: L, title: N = p.title, ...U } = Qe(m, v), j = Yi({ type: "number" }, P, g), V = Ee(o, ur, []), F = vh(o, [ur]), K = x.getDisplayLabel(p, m, v), W = A >= 0 && O[A] || null; let Y; if (W) { const { required: ne } = p; @@ -50678,22 +50690,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho label: se || b(G, z.concat(String(te + 1))), value: te }; - }), X = !C || k ? S.jsx(j, { id: this.getFieldId(), name: `${n}${p.oneOf ? "__oneof_select" : "__anyof_select"}`, schema: { type: "number", default: 0 }, onChange: this.onOptionChange, onBlur: a, onFocus: s, disabled: r || Hn(H), multiple: !1, rawErrors: V, errorSchema: F, value: A >= 0 ? A : void 0, options: { enumOptions: H, ...U }, registry: f, placeholder: I, autocomplete: L, autofocus: $, label: N ?? n, hideLabel: !K, readonly: c }) : void 0, Q = Y && Y.type !== "null" && S.jsx(E, { ...this.props, schema: Y, uiSchema: D }) || null; - return S.jsx(_, { schema: p, registry: f, uiSchema: m, selector: X, optionSchemaField: Q }); + }), X = !C || k ? S.jsx(j, { id: this.getFieldId(), name: `${n}${p.oneOf ? "__oneof_select" : "__anyof_select"}`, schema: { type: "number", default: 0 }, onChange: this.onOptionChange, onBlur: a, onFocus: s, disabled: r || Hn(H), multiple: !1, rawErrors: V, errorSchema: F, value: A >= 0 ? A : void 0, options: { enumOptions: H, ...U }, registry: d, placeholder: I, autocomplete: L, autofocus: $, label: N ?? n, hideLabel: !K, readonly: c }) : void 0, Q = Y && Y.type !== "null" && S.jsx(E, { ...this.props, schema: Y, uiSchema: D }) || null; + return S.jsx(_, { schema: p, registry: d, uiSchema: m, selector: X, optionSchemaField: Q }); } } const ETe = /\.([0-9]*0)*$/, CTe = /[0.]0*$/; function kTe(e) { const { registry: t, onChange: n, formData: r, value: o } = e, [i, a] = T.useState(o), { StringField: s } = t.fields; let c = r; - const u = T.useCallback((f, p, m, g) => { - a(f), `${f}`.charAt(0) === "." && (f = `0${f}`); - const y = typeof f == "string" && f.match(ETe) ? kj(f.replace(CTe, "")) : kj(f); + const u = T.useCallback((d, p, m, g) => { + a(d), `${d}`.charAt(0) === "." && (d = `0${d}`); + const y = typeof d == "string" && d.match(ETe) ? kj(d.replace(CTe, "")) : kj(d); n(y, p, m, g); }, [n]); if (typeof i == "string" && typeof c == "number") { - const f = new RegExp(`^(${String(c).replace(".", "\\.")})?\\.?0*$`); - i.match(f) && (c = i); + const d = new RegExp(`^(${String(c).replace(".", "\\.")})?\\.?0*$`); + i.match(d) && (c = i); } return S.jsx(s, { ...e, formData: c, onChange: u }); } @@ -50728,7 +50740,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } if (!r) return null; - for (var c = o, u = !1, f = !1, p = "", m = 0, g = "", y = !1, b = ""; c < e.length; ) { + for (var c = o, u = !1, d = !1, p = "", m = 0, g = "", y = !1, b = ""; c < e.length; ) { var v = e[c]; if (y) g += v, y = !1, b = v, c++; else if (v !== "\\") if (v !== "`" || m !== 0) { @@ -50739,7 +50751,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho continue; } } - if (f) g += v, p ? v === p && (p = "") : v === '"' || v === "'" ? p = v : v === ">" && (f = !1), b = v, c++; + if (d) g += v, p ? v === p && (p = "") : v === '"' || v === "'" ? p = v : v === ">" && (d = !1), b = v, c++; else if (v !== "<" || u) { if (v === ` ` && b === ` @@ -50758,7 +50770,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var A = e.slice(c, k + 1).endsWith("/>"); C === "/" ? m = Math.max(0, m - 1) : A || m++; } - f = !0, g += v, b = v, c++; + d = !0, g += v, b = v, c++; } } else u = !u, g += v, b = v, c++; else g += v, y = !0, b = v, c++; @@ -50828,12 +50840,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } else i = p + 1; } - let f = 0; - for (; i + f < u && e[i + f] === ` -`; ) f++; - return [e.slice(0, i + f), n, t[2], e.slice(a, s)]; + let d = 0; + for (; i + d < u && e[i + d] === ` +`; ) d++; + return [e.slice(0, i + d), n, t[2], e.slice(a, s)]; } - const GTe = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, l3 = /^)/, KTe = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, IC = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, YTe = /^\{.*\}$/, XTe = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ZTe = /^<([^ >]+[:@\/][^ >]+)>/, QTe = /-([a-z])?/gi, c3 = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, JTe = /^[^\n]+(?: \n|\n{2,})/, eAe = /^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/, tAe = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, nAe = /^\[([^\]]*)\] ?\[([^\]]*)\]/, rAe = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, oAe = /\t/g, iAe = /(^ *\||\| *$)/g, aAe = /^ *:-+: *$/, sAe = /^ *:-+ *$/, lAe = /^ *-+: *$/, cAe = /^(:[a-zA-Z0-9-_]+:)/, uAe = /^\\([^0-9A-Za-z\s])/, dAe = /\\([^0-9A-Za-z\s])/g, fAe = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, pAe = /^\n+/, hAe = /^([ \t]*)/, mAe = /(?:^|\n)( *)$/, NA = "(?:\\d+\\.)", PA = "(?:[*+-])"; + const GTe = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, l3 = /^)/, KTe = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, IC = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, YTe = /^\{.*\}$/, XTe = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ZTe = /^<([^ >]+[:@\/][^ >]+)>/, QTe = /-([a-z])?/gi, c3 = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, JTe = /^[^\n]+(?: \n|\n{2,})/, eAe = /^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/, tAe = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, nAe = /^\[([^\]]*)\] ?\[([^\]]*)\]/, rAe = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, oAe = /\t/g, iAe = /(^ *\||\| *$)/g, aAe = /^ *:-+: *$/, sAe = /^ *:-+ *$/, lAe = /^ *-+: *$/, cAe = /^(:[a-zA-Z0-9-_]+:)/, uAe = /^\\([^0-9A-Za-z\s])/, fAe = /\\([^0-9A-Za-z\s])/g, dAe = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, pAe = /^\n+/, hAe = /^([ \t]*)/, mAe = /(?:^|\n)( *)$/, NA = "(?:\\d+\\.)", PA = "(?:[*+-])"; function MV(e) { return "( *)(" + (e === 1 ? NA : PA) + ") +"; } @@ -50857,11 +50869,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const c = mAe.exec(s.prevCapture); return c && (s.list || !s.inline && !s.simple) ? r.exec(a = c[1] + a) : null; }), u: 1, i(a, s, c) { - const u = n ? +a[2] : void 0, f = a[0].replace(PTe, ` -`).match(o), p = i.exec(f[0]), m = RegExp("^ {1," + (p ? p[0].length : 0) + "}", "gm"); + const u = n ? +a[2] : void 0, d = a[0].replace(PTe, ` +`).match(o), p = i.exec(d[0]), m = RegExp("^ {1," + (p ? p[0].length : 0) + "}", "gm"); let g = !1; - return { items: f.map(function(y, b) { - const v = y.replace(m, "").replace(i, ""), x = b === f.length - 1, E = xi(v, ` + return { items: d.map(function(y, b) { + const v = y.replace(m, "").replace(i, ""), x = b === d.length - 1, E = xi(v, ` `) || x && g; g = E; @@ -50876,7 +50888,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; } const xAe = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), wAe = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/; - function d3(e) { + function f3(e) { return typeof e == "string"; } function Fp(e) { @@ -50903,7 +50915,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function _Ae(e) { return lAe.test(e) ? "right" : aAe.test(e) ? "center" : sAe.test(e) ? "left" : null; } - function f3(e, t, n, r) { + function d3(e, t, n, r) { const o = n.inTable; n.inTable = !0; let i = [[]], a = ""; @@ -50912,8 +50924,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const c = i[i.length - 1]; c.push.apply(c, t(a, n)), a = ""; } - return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c, u, f) => { - c.trim() === "|" && (s(), r) ? u !== 0 && u !== f.length - 1 && i.push([]) : a += c; + return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c, u, d) => { + c.trim() === "|" && (s(), r) ? u !== 0 && u !== d.length - 1 && i.push([]) : a += c; }), s(), n.inTable = o, i; } function EAe(e, t, n) { @@ -50921,9 +50933,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const r = e[2] ? e[2].replace(iAe, "").split("|").map(_Ae) : [], o = e[3] ? (function(a, s, c) { return a.trim().split(` `).map(function(u) { - return f3(u, s, c, !0); + return d3(u, s, c, !0); }); - })(e[3], t, n) : [], i = f3(e[1], t, n, !!o.length); + })(e[3], t, n) : [], i = d3(e[1], t, n, !!o.length); return n.inline = !1, o.length ? { align: r, cells: o, header: i, type: "25" } : { children: i, type: "21" }; } function p3(e, t) { @@ -50963,7 +50975,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e; } function Si(e) { - return e && e.replace(dAe, "$1"); + return e && e.replace(fAe, "$1"); } function Yv(e, t, n) { const r = n.inline || !1, o = n.simple || !1; @@ -51008,7 +51020,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })), p; })(a.slice(0, s)).trim(), u = e3[c] || c; if (u === "ref") return i; - const f = i[u] = (function(p, m, g, y) { + const d = i[u] = (function(p, m, g, y) { return m === "style" ? (function(b) { const v = []; if (!b) return v; @@ -51034,7 +51046,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const m = p[0]; return (m === '"' || m === "'") && p.length >= 2 && p[p.length - 1] === m ? p.slice(1, -1) : p; })(a.slice(s + 1).trim()), n); - typeof f == "string" && (MA.test(f) || IC.test(f)) && (i[u] = r(f.trim())); + typeof d == "string" && (MA.test(d) || IC.test(d)) && (i[u] = r(d.trim())); } else a !== "style" && (i[e3[a] || a] = !0); return i; }, {}) : null; @@ -51062,7 +51074,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `, { inline: b }); if (t.ast) return v; const x = g(v); - for (; d3(x[x.length - 1]) && !x[x.length - 1].trim(); ) x.pop(); + for (; f3(x[x.length - 1]) && !x[x.length - 1].trim(); ) x.pop(); if (u.length && x.push(s("footer", { key: "footer" }, u.map(function(C) { return s("div", { id: n(C.identifier, rp), key: C.identifier }, C.identifier, g(m(C.footnote, { inline: !0 }))); }))), t.wrapper === null) return x; @@ -51075,7 +51087,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return o(E, Ai({ key: "outer" }, t.wrapperProps), _); } - const u = [], f = {}, p = { 0: { t: [">"], o: Pa(n3), u: 1, i(y, b, v) { + const u = [], d = {}, p = { 0: { t: [">"], o: Pa(n3), u: 1, i(y, b, v) { const [, x, E] = y[0].replace(ITe, "").match($Te); return { alert: x, children: b(E, v) }; } }, 1: { t: [" "], o: Ls(jTe), u: 1, i: U_ }, 2: { t: function(y, b) { @@ -51120,9 +51132,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const E = Fp(v); return E === "" ? null : [v, , E]; - }), u: 3, i: RAe }, 22: { t: ["["], o: Ls(eAe), u: 0, i: (y) => (f[y[1]] = { target: y[2], title: y[4] }, {}) }, 23: { t: ["!["], o: uv(tAe), u: 0, i: (y) => ({ alt: y[1] ? Si(y[1]) : void 0, ref: y[2] }) }, 24: { t: (y) => y[0] === "[" && !xi(y, "]("), o: Ls(nAe), u: 0, i: (y, b, v) => ({ children: b(y[1], v), fallbackChildren: y[0], ref: y[2] }) }, 25: { t: ["|"], o: Pa(c3), u: 1, i: EAe }, 27: { o: Ys(function(y, b) { + }), u: 3, i: RAe }, 22: { t: ["["], o: Ls(eAe), u: 0, i: (y) => (d[y[1]] = { target: y[2], title: y[4] }, {}) }, 23: { t: ["!["], o: uv(tAe), u: 0, i: (y) => ({ alt: y[1] ? Si(y[1]) : void 0, ref: y[2] }) }, 24: { t: (y) => y[0] === "[" && !xi(y, "]("), o: Ls(nAe), u: 0, i: (y, b, v) => ({ children: b(y[1], v), fallbackChildren: y[0], ref: y[2] }) }, 25: { t: ["|"], o: Pa(c3), u: 1, i: EAe }, 27: { o: Ys(function(y, b) { let v; - return $C(y, ":") && (v = cAe.exec(y)), v || fAe.exec(y); + return $C(y, ":") && (v = cAe.exec(y)), v || dAe.exec(y); }), u: 4, i(y) { const b = y[0]; return { text: xi(b, "&") ? b.replace(GTe, (v, x) => t.namedCodesToUnicode[x] || v) : b }; @@ -51169,7 +51181,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let L = !1; for (let N = 0; N < k.length; N++) { A.key = N; - const U = C(k[N], A), j = d3(U); + const U = C(k[N], A), j = f3(U); j && L ? $[$.length - 1] += U : U !== null && $.push(U), L = j; } return A.key = I, A.renderDepth = O - 1, $; @@ -51243,7 +51255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw P; } }; - })(t.renderRule, s, r, n, f); + })(t.renderRule, s, r, n, d); return c(e); } const hm = (e) => { @@ -51278,7 +51290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function IAe(e) { - const { fieldPathId: t, schema: n, registry: r, uiSchema: o, errorSchema: i, formData: a, onChange: s, onBlur: c, onFocus: u, disabled: f, readonly: p, required: m, hideError: g, propertyName: y, handleKeyRename: b, handleRemoveProperty: v, addedByAdditionalProperties: x } = e, [E, _] = T.useState(!1), { globalFormOptions: C, fields: k } = r, { SchemaField: A } = k, O = Ic(Do(y, C, t.path)), P = T.useCallback((N, U, j, V) => { + const { fieldPathId: t, schema: n, registry: r, uiSchema: o, errorSchema: i, formData: a, onChange: s, onBlur: c, onFocus: u, disabled: d, readonly: p, required: m, hideError: g, propertyName: y, handleKeyRename: b, handleRemoveProperty: v, addedByAdditionalProperties: x } = e, [E, _] = T.useState(!1), { globalFormOptions: C, fields: k } = r, { SchemaField: A } = k, O = Ic(Do(y, C, t.path)), P = T.useCallback((N, U, j, V) => { N === void 0 && x && (N = ""), s(N, U, j, V); }, [s, x]), I = T.useCallback((N) => { y !== N && _(!0), b(y, N); @@ -51288,10 +51300,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, [I]), L = T.useCallback(() => { v(y); }, [y, v]); - return S.jsx(A, { name: y, required: m, schema: n, uiSchema: o, errorSchema: i, fieldPathId: O, formData: a, wasPropertyKeyModified: E, onKeyRename: I, onKeyRenameBlur: $, onRemoveProperty: L, onChange: P, onBlur: c, onFocus: u, registry: r, disabled: f, readonly: p, hideError: g }); + return S.jsx(A, { name: y, required: m, schema: n, uiSchema: o, errorSchema: i, fieldPathId: O, formData: a, wasPropertyKeyModified: E, onKeyRename: I, onKeyRenameBlur: $, onRemoveProperty: L, onChange: P, onBlur: c, onFocus: u, registry: r, disabled: d, readonly: p, hideError: g }); } function $Ae(e) { - const { schema: t, uiSchema: n = {}, formData: r, errorSchema: o, fieldPathId: i, name: a, required: s = !1, disabled: c, readonly: u, hideError: f, onBlur: p, onFocus: m, onChange: g, registry: y, title: b } = e, { fields: v, schemaUtils: x, translateString: E, globalUiOptions: _ } = y, { OptionalDataControlsField: C } = v, k = x.retrieveSchema(t, r, !0), A = Qe(n, _), { properties: O = {} } = k, P = e.childFieldPathId ?? i, I = A.title ?? k.title ?? b ?? a, $ = A.description ?? k.description, L = pm(y, k, s, n), N = qd(r); + const { schema: t, uiSchema: n = {}, formData: r, errorSchema: o, fieldPathId: i, name: a, required: s = !1, disabled: c, readonly: u, hideError: d, onBlur: p, onFocus: m, onChange: g, registry: y, title: b } = e, { fields: v, schemaUtils: x, translateString: E, globalUiOptions: _ } = y, { OptionalDataControlsField: C } = v, k = x.retrieveSchema(t, r, !0), A = Qe(n, _), { properties: O = {} } = k, P = e.childFieldPathId ?? i, I = A.title ?? k.title ?? b ?? a, $ = A.description ?? k.description, L = pm(y, k, s, n), N = Wf(r); let U = []; const j = T.useCallback((D, G) => { const { duplicateKeySuffixSeparator: z = "-" } = Qe(n, _); @@ -51344,7 +51356,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho properties: U.map((D) => { const G = Tt(k, [Ft, D, Ba]), z = G ? n.additionalProperties : n[D], H = Qe(z).widget === "hidden"; return { - content: S.jsx(IAe, { propertyName: D, required: NAe(k, D), schema: Ee(k, [Ft, D], {}), uiSchema: z, errorSchema: Ee(o, [D]), fieldPathId: P, formData: Ee(r, [D]), handleKeyRename: F, handleRemoveProperty: K, addedByAdditionalProperties: G, onChange: g, onBlur: p, onFocus: m, registry: y, disabled: c, readonly: u, hideError: f }, D), + content: S.jsx(IAe, { propertyName: D, required: NAe(k, D), schema: Ee(k, [Ft, D], {}), uiSchema: z, errorSchema: Ee(o, [D]), fieldPathId: P, formData: Ee(r, [D]), handleKeyRename: F, handleRemoveProperty: K, addedByAdditionalProperties: G, onChange: g, onBlur: p, onFocus: m, registry: y, disabled: c, readonly: u, hideError: d }, D), name: D, readonly: u, disabled: c, @@ -51367,7 +51379,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx(W, { ...B, onAddProperty: V }); } function jAe(e) { - const { schema: t, uiSchema: n = {}, formData: r, disabled: o = !1, readonly: i = !1, onChange: a, errorSchema: s, fieldPathId: c, registry: u } = e, { globalUiOptions: f = {}, schemaUtils: p, translateString: m } = u, g = Qe(n, f), y = tt("OptionalDataControlsTemplate", u, g), b = qd(r); + const { schema: t, uiSchema: n = {}, formData: r, disabled: o = !1, readonly: i = !1, onChange: a, errorSchema: s, fieldPathId: c, registry: u } = e, { globalUiOptions: d = {}, schemaUtils: p, translateString: m } = u, g = Qe(n, d), y = tt("OptionalDataControlsTemplate", u, g), b = Wf(r); let v, x, E, _; if (o || i) v = C_(c, "Msg"), x = b ? void 0 : m(bt.OptionalObjectEmptyMsg); @@ -51400,7 +51412,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return s && s in o && (c = s), !c && (e.anyOf || e.oneOf) ? () => null : c in o ? o[c] : o.FallbackField; } function LAe(e) { - const { schema: t, fieldPathId: n, uiSchema: r, formData: o, errorSchema: i, name: a, onChange: s, onKeyRename: c, onKeyRenameBlur: u, onRemoveProperty: f, required: p = !1, registry: m, wasPropertyKeyModified: g = !1 } = e, { schemaUtils: y, globalFormOptions: b, globalUiOptions: v, fields: x } = m, { AnyOfField: E, OneOfField: _ } = x, C = Qe(r, v), k = tt("FieldTemplate", m, C), A = tt("DescriptionFieldTemplate", m, C), O = tt("FieldHelpTemplate", m, C), P = tt("FieldErrorTemplate", m, C), I = y.retrieveSchema(t, o), $ = n[rn], L = T.useCallback((Se, Me, je, ze) => s(Se, Me, je, ze || $), [$, s]), N = FAe(I, C, m), U = !!(C.disabled ?? e.disabled), j = !!(C.readonly ?? (e.readonly || e.schema.readOnly || I.readOnly)), V = C.hideError, F = V === void 0 ? e.hideError : !!V, K = !!(C.autofocus ?? e.autofocus); + const { schema: t, fieldPathId: n, uiSchema: r, formData: o, errorSchema: i, name: a, onChange: s, onKeyRename: c, onKeyRenameBlur: u, onRemoveProperty: d, required: p = !1, registry: m, wasPropertyKeyModified: g = !1 } = e, { schemaUtils: y, globalFormOptions: b, globalUiOptions: v, fields: x } = m, { AnyOfField: E, OneOfField: _ } = x, C = Qe(r, v), k = tt("FieldTemplate", m, C), A = tt("DescriptionFieldTemplate", m, C), O = tt("FieldHelpTemplate", m, C), P = tt("FieldErrorTemplate", m, C), I = y.retrieveSchema(t, o), $ = n[rn], L = T.useCallback((Se, Me, je, ze) => s(Se, Me, je, ze || $), [$, s]), N = FAe(I, C, m), U = !!(C.disabled ?? e.disabled), j = !!(C.readonly ?? (e.readonly || e.schema.readOnly || I.readOnly)), V = C.hideError, F = V === void 0 ? e.hideError : !!V, K = !!(C.autofocus ?? e.autofocus); if (Object.keys(I).length === 0) return null; let W = y.getDisplayLabel(I, r, v); @@ -51408,7 +51420,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let B, D, G = { fieldPathId: n }; if ((Nt in I || yt in I) && !Y && !y.isSelect(I)) { I[Nt] ? (B = E, D = I[Nt].map((je) => y.retrieveSchema($t(je) ? je : {}, o))) : I[yt] && (B = _, D = I[yt].map((je) => y.retrieveSchema($t(je) ? je : {}, o))); - const Se = pm(m, I, p, r), Me = qd(o); + const Se = pm(m, I, p, r), Me = Wf(o); W = W && (!Se || Me), G = { childFieldPathId: n, // The main FieldComponent will add `XxxOf` onto the fieldPathId to avoid duplication with the rendering of the @@ -51436,7 +51448,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onChange: s, onKeyRename: c, onKeyRenameBlur: u, - onRemoveProperty: f, + onRemoveProperty: d, required: p, disabled: U, readonly: j, @@ -51461,10 +51473,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function BAe(e) { - const { schema: t, name: n, uiSchema: r, fieldPathId: o, formData: i, required: a, disabled: s = !1, readonly: c = !1, autofocus: u = !1, onChange: f, onBlur: p, onFocus: m, registry: g, rawErrors: y, hideError: b, title: v } = e, { title: x, format: E } = t, { widgets: _, schemaUtils: C, globalUiOptions: k } = g, A = C.isSelect(t) ? Td(t, r) : void 0; + const { schema: t, name: n, uiSchema: r, fieldPathId: o, formData: i, required: a, disabled: s = !1, readonly: c = !1, autofocus: u = !1, onChange: d, onBlur: p, onFocus: m, registry: g, rawErrors: y, hideError: b, title: v } = e, { title: x, format: E } = t, { widgets: _, schemaUtils: C, globalUiOptions: k } = g, A = C.isSelect(t) ? Af(t, r) : void 0; let O = A ? "select" : "text"; E && oCe(t, E, _) && (O = E); - const { widget: P = O, placeholder: I = "", title: $, ...L } = Qe(r), N = C.getDisplayLabel(t, r, k), U = $ ?? v ?? x ?? n, j = Yi(t, P, _), V = T.useCallback((F, K, W) => f(F, o.path, K, W), [f, o]); + const { widget: P = O, placeholder: I = "", title: $, ...L } = Qe(r), N = C.getDisplayLabel(t, r, k), U = $ ?? v ?? x ?? n, j = Yi(t, P, _), V = T.useCallback((F, K, W) => d(F, o.path, K, W), [d, o]); return S.jsx(j, { options: { ...L, enumOptions: A }, schema: t, uiSchema: r, id: o.$id, name: n, label: U, hideLabel: !N, hideError: b, value: i, onChange: V, onBlur: p, onFocus: m, required: a, disabled: s, readonly: c, autofocus: u, registry: g, placeholder: I, rawErrors: y, htmlName: o.name }); } function UAe(e) { @@ -51500,28 +51512,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx(c, { id: Nc(t), description: n, schema: o, uiSchema: i, registry: r }); } function qAe(e) { - const { children: t, className: n, buttonsProps: r, displayLabel: o, hasDescription: i, hasToolbar: a, registry: s, uiSchema: c } = e, u = Qe(c), f = tt("ArrayFieldItemButtonsTemplate", s, u), p = { + const { children: t, className: n, buttonsProps: r, displayLabel: o, hasDescription: i, hasToolbar: a, registry: s, uiSchema: c } = e, u = Qe(c), d = tt("ArrayFieldItemButtonsTemplate", s, u), p = { flex: 1, paddingLeft: 6, paddingRight: 6, fontWeight: "bold" }, m = i ? 31 : 9, g = { display: "flex", alignItems: o ? "center" : "baseline" }, y = { display: "flex", justifyContent: "flex-end", marginTop: o ? `${m}px` : 0 }; - return S.jsxs("div", { className: n, style: g, children: [S.jsx("div", { className: a ? "col-xs-9 col-md-10 col-xl-11" : "col-xs-12", children: t }), a && S.jsx("div", { className: "col-xs-3 col-md-2 col-xl-1 array-item-toolbox", children: S.jsx("div", { className: "btn-group", style: y, children: S.jsx(f, { ...r, style: p }) }) })] }); + return S.jsxs("div", { className: n, style: g, children: [S.jsx("div", { className: a ? "col-xs-9 col-md-10 col-xl-11" : "col-xs-12", children: t }), a && S.jsx("div", { className: "col-xs-3 col-md-2 col-xl-1 array-item-toolbox", children: S.jsx("div", { className: "btn-group", style: y, children: S.jsx(d, { ...r, style: p }) }) })] }); } function WAe(e) { - const { disabled: t, hasCopy: n, hasMoveDown: r, hasMoveUp: o, hasRemove: i, fieldPathId: a, onCopyItem: s, onRemoveItem: c, onMoveDownItem: u, onMoveUpItem: f, readonly: p, registry: m, uiSchema: g } = e, { CopyButton: y, MoveDownButton: b, MoveUpButton: v, RemoveButton: x } = m.templates.ButtonTemplates; - return S.jsxs(S.Fragment, { children: [(o || r) && S.jsx(v, { id: ji(a, "moveUp"), className: "rjsf-array-item-move-up", disabled: t || p || !o, onClick: f, uiSchema: g, registry: m }), (o || r) && S.jsx(b, { id: ji(a, "moveDown"), className: "rjsf-array-item-move-down", disabled: t || p || !r, onClick: u, uiSchema: g, registry: m }), n && S.jsx(y, { id: ji(a, "copy"), className: "rjsf-array-item-copy", disabled: t || p, onClick: s, uiSchema: g, registry: m }), i && S.jsx(x, { id: ji(a, "remove"), className: "rjsf-array-item-remove", disabled: t || p, onClick: c, uiSchema: g, registry: m })] }); + const { disabled: t, hasCopy: n, hasMoveDown: r, hasMoveUp: o, hasRemove: i, fieldPathId: a, onCopyItem: s, onRemoveItem: c, onMoveDownItem: u, onMoveUpItem: d, readonly: p, registry: m, uiSchema: g } = e, { CopyButton: y, MoveDownButton: b, MoveUpButton: v, RemoveButton: x } = m.templates.ButtonTemplates; + return S.jsxs(S.Fragment, { children: [(o || r) && S.jsx(v, { id: ji(a, "moveUp"), className: "rjsf-array-item-move-up", disabled: t || p || !o, onClick: d, uiSchema: g, registry: m }), (o || r) && S.jsx(b, { id: ji(a, "moveDown"), className: "rjsf-array-item-move-down", disabled: t || p || !r, onClick: u, uiSchema: g, registry: m }), n && S.jsx(y, { id: ji(a, "copy"), className: "rjsf-array-item-copy", disabled: t || p, onClick: s, uiSchema: g, registry: m }), i && S.jsx(x, { id: ji(a, "remove"), className: "rjsf-array-item-remove", disabled: t || p, onClick: c, uiSchema: g, registry: m })] }); } function GAe(e) { - const { canAdd: t, className: n, disabled: r, fieldPathId: o, uiSchema: i, items: a, optionalDataControl: s, onAddClick: c, readonly: u, registry: f, required: p, schema: m, title: g } = e, y = Qe(i), b = tt("ArrayFieldDescriptionTemplate", f, y), v = tt("ArrayFieldTitleTemplate", f, y), x = !u && !r, { ButtonTemplates: { AddButton: E } } = f.templates; - return S.jsxs("fieldset", { className: n, id: o.$id, children: [S.jsx(v, { fieldPathId: o, title: y.title || g, required: p, schema: m, uiSchema: i, registry: f, optionalDataControl: x ? s : void 0 }), S.jsx(b, { fieldPathId: o, description: y.description || m.description, schema: m, uiSchema: i, registry: f }), x ? void 0 : s, S.jsx("div", { className: "row array-item-list", children: a }), t && S.jsx(E, { id: ji(o, "add"), className: "rjsf-array-item-add", onClick: c, disabled: r || u, uiSchema: i, registry: f })] }); + const { canAdd: t, className: n, disabled: r, fieldPathId: o, uiSchema: i, items: a, optionalDataControl: s, onAddClick: c, readonly: u, registry: d, required: p, schema: m, title: g } = e, y = Qe(i), b = tt("ArrayFieldDescriptionTemplate", d, y), v = tt("ArrayFieldTitleTemplate", d, y), x = !u && !r, { ButtonTemplates: { AddButton: E } } = d.templates; + return S.jsxs("fieldset", { className: n, id: o.$id, children: [S.jsx(v, { fieldPathId: o, title: y.title || g, required: p, schema: m, uiSchema: i, registry: d, optionalDataControl: x ? s : void 0 }), S.jsx(b, { fieldPathId: o, description: y.description || m.description, schema: m, uiSchema: i, registry: d }), x ? void 0 : s, S.jsx("div", { className: "row array-item-list", children: a }), t && S.jsx(E, { id: ji(o, "add"), className: "rjsf-array-item-add", onClick: c, disabled: r || u, uiSchema: i, registry: d })] }); } function KAe(e) { const { fieldPathId: t, title: n, schema: r, uiSchema: o, required: i, registry: a, optionalDataControl: s } = e, c = Qe(o, a.globalUiOptions), { label: u = !0 } = c; if (!n || !u) return null; - const f = tt("TitleFieldTemplate", a, c); - return S.jsx(f, { id: b1(t), title: n, required: i, schema: r, uiSchema: o, registry: a, optionalDataControl: s }); + const d = tt("TitleFieldTemplate", a, c); + return S.jsx(d, { id: b1(t), title: n, required: i, schema: r, uiSchema: o, registry: a, optionalDataControl: s }); } function YAe(e) { const { @@ -51535,7 +51547,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho autofocus: s, onBlur: c, onFocus: u, - onChange: f, + onChange: d, onChangeOverride: p, options: m, schema: g, @@ -51553,11 +51565,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw console.log("No id for", e), new Error(`no id for props ${JSON.stringify(e)}`); const k = { ...C, - ...fV(g, x, m) + ...dV(g, x, m) }; let A; k.type === "number" || k.type === "integer" ? A = o || o === 0 ? o : "" : A = o ?? ""; - const O = T.useCallback(({ target: { value: $ } }) => f($ === "" ? m.emptyValue : $), [f, m]), P = T.useCallback(({ target: $ }) => c(t, $ && $.value), [c, t]), I = T.useCallback(({ target: $ }) => u(t, $ && $.value), [u, t]); + const O = T.useCallback(({ target: { value: $ } }) => d($ === "" ? m.emptyValue : $), [d, m]), P = T.useCallback(({ target: $ }) => c(t, $ && $.value), [c, t]), I = T.useCallback(({ target: $ }) => u(t, $ && $.value), [u, t]); return S.jsxs(S.Fragment, { children: [S.jsx("input", { id: t, name: r || t, className: "form-control", readOnly: i, disabled: a, autoFocus: s, value: A, ...k, list: g.examples ? _h(t) : void 0, onChange: p || O, onBlur: P, onFocus: I, "aria-describedby": go(t, !!g.examples) }), Array.isArray(g.examples) && S.jsx("datalist", { id: _h(t), children: g.examples.concat(g.default && !g.examples.includes(g.default) ? [g.default] : []).map(($) => S.jsx("option", { value: $ }, $)) }, `datalist_${t}`)] }); } function XAe({ uiSchema: e }) { @@ -51622,7 +51634,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t ? S.jsxs("label", { className: "control-label", htmlFor: r, children: [t, n && S.jsx("span", { className: "required", children: aRe })] }) : null; } function sRe(e) { - const { id: t, label: n, children: r, errors: o, help: i, description: a, hidden: s, required: c, displayLabel: u, registry: f, uiSchema: p } = e, m = Qe(p), g = tt("WrapIfAdditionalTemplate", f, m); + const { id: t, label: n, children: r, errors: o, help: i, description: a, hidden: s, required: c, displayLabel: u, registry: d, uiSchema: p } = e, m = Qe(p), g = tt("WrapIfAdditionalTemplate", d, m); if (s) return S.jsx("div", { className: "hidden", children: r }); const y = m.widget === "checkbox"; @@ -51649,13 +51661,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { children: t, column: n, className: r, ...o } = e; return S.jsx("div", { className: r, ...o, children: t }); } - function dRe(e) { + function fRe(e) { const { selector: t, optionSchemaField: n } = e; return S.jsxs("div", { className: "panel panel-default panel-body", children: [S.jsx("div", { className: "form-group", children: t }), n] }); } - function fRe(e) { - const { className: t, description: n, disabled: r, formData: o, fieldPathId: i, onAddProperty: a, optionalDataControl: s, properties: c, readonly: u, registry: f, required: p, schema: m, title: g, uiSchema: y } = e, b = Qe(y), v = tt("TitleFieldTemplate", f, b), x = tt("DescriptionFieldTemplate", f, b), E = !u && !r, { ButtonTemplates: { AddButton: _ } } = f.templates; - return S.jsxs("fieldset", { className: t, id: i.$id, children: [g && S.jsx(v, { id: b1(i), title: g, required: p, schema: m, uiSchema: y, registry: f, optionalDataControl: E ? s : void 0 }), n && S.jsx(x, { id: Nc(i), description: n, schema: m, uiSchema: y, registry: f }), E ? void 0 : s, c.map((C) => C.content), X8(m, y, o) && S.jsx(_, { id: ji(i, "add"), className: "rjsf-object-property-expand", onClick: a, disabled: r || u, uiSchema: y, registry: f })] }); + function dRe(e) { + const { className: t, description: n, disabled: r, formData: o, fieldPathId: i, onAddProperty: a, optionalDataControl: s, properties: c, readonly: u, registry: d, required: p, schema: m, title: g, uiSchema: y } = e, b = Qe(y), v = tt("TitleFieldTemplate", d, b), x = tt("DescriptionFieldTemplate", d, b), E = !u && !r, { ButtonTemplates: { AddButton: _ } } = d.templates; + return S.jsxs("fieldset", { className: t, id: i.$id, children: [g && S.jsx(v, { id: b1(i), title: g, required: p, schema: m, uiSchema: y, registry: d, optionalDataControl: E ? s : void 0 }), n && S.jsx(x, { id: Nc(i), description: n, schema: m, uiSchema: y, registry: d }), E ? void 0 : s, c.map((C) => C.content), X8(m, y, o) && S.jsx(_, { id: ji(i, "add"), className: "rjsf-object-property-expand", onClick: a, disabled: r || u, uiSchema: y, registry: d })] }); } function pRe(e) { const { id: t, registry: n, label: r, onAddClick: o, onRemoveClick: i } = e; @@ -51673,13 +51685,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n && n.$id && (a = bt.UnsupportedFieldWithId, s.push(n.$id)), r && (a = a === bt.UnsupportedField ? bt.UnsupportedFieldWithReason : bt.UnsupportedFieldWithIdAndReason, s.push(r)), S.jsxs("div", { className: "unsupported-field", children: [S.jsx("p", { children: S.jsx(hm, { options: { disableParsingRawHTML: !0 }, children: i(a, s) }) }), t && S.jsx("pre", { children: JSON.stringify(t, null, 2) })] }); } function yRe(e) { - const { id: t, classNames: n, style: r, disabled: o, displayLabel: i, label: a, onKeyRenameBlur: s, onRemoveProperty: c, rawDescription: u, readonly: f, required: p, schema: m, hideError: g, rawErrors: y, children: b, uiSchema: v, registry: x } = e, { templates: E, translateString: _ } = x, { RemoveButton: C } = E.ButtonTemplates, k = _(bt.KeyLabel, [a]), A = Ba in m, O = !!u, P = ["form-group", n]; + const { id: t, classNames: n, style: r, disabled: o, displayLabel: i, label: a, onKeyRenameBlur: s, onRemoveProperty: c, rawDescription: u, readonly: d, required: p, schema: m, hideError: g, rawErrors: y, children: b, uiSchema: v, registry: x } = e, { templates: E, translateString: _ } = x, { RemoveButton: C } = E.ButtonTemplates, k = _(bt.KeyLabel, [a]), A = Ba in m, O = !!u, P = ["form-group", n]; !g && y && y.length > 0 && P.push("has-error has-danger"); const I = P.join(" ").trim(); if (!A) return S.jsx("div", { className: I, style: r, children: b }); const $ = O ? 46 : 26; - return S.jsx("div", { className: I, style: r, children: S.jsxs("div", { className: "row", children: [S.jsx("div", { className: "col-xs-5 form-additional", children: S.jsxs("div", { className: "form-group", children: [i && S.jsx(BV, { label: k, required: p, id: `${t}-key` }), i && u && S.jsx("div", { children: " " }), S.jsx("input", { className: "form-control", type: "text", id: `${t}-key`, onBlur: s, defaultValue: a })] }) }), S.jsx("div", { className: "form-additional form-group col-xs-5", children: b }), S.jsx("div", { className: "col-xs-2", style: { marginTop: i ? `${$}px` : void 0 }, children: S.jsx(C, { id: ji(t, "remove"), className: "rjsf-object-property-remove btn-block", style: { border: "0" }, disabled: o || f, onClick: c, uiSchema: v, registry: x }) })] }) }); + return S.jsx("div", { className: I, style: r, children: S.jsxs("div", { className: "row", children: [S.jsx("div", { className: "col-xs-5 form-additional", children: S.jsxs("div", { className: "form-group", children: [i && S.jsx(BV, { label: k, required: p, id: `${t}-key` }), i && u && S.jsx("div", { children: " " }), S.jsx("input", { className: "form-control", type: "text", id: `${t}-key`, onBlur: s, defaultValue: a })] }) }), S.jsx("div", { className: "form-additional form-group col-xs-5", children: b }), S.jsx("div", { className: "col-xs-2", style: { marginTop: i ? `${$}px` : void 0 }, children: S.jsx(C, { id: ji(t, "remove"), className: "rjsf-object-property-remove btn-block", style: { border: "0" }, disabled: o || d, onClick: c, uiSchema: v, registry: x }) })] }) }); } function vRe() { return { @@ -51697,8 +51709,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho FieldErrorTemplate: lRe, FieldHelpTemplate: cRe, GridTemplate: uRe, - MultiSchemaFieldTemplate: dRe, - ObjectFieldTemplate: fRe, + MultiSchemaFieldTemplate: fRe, + ObjectFieldTemplate: dRe, OptionalDataControlsTemplate: pRe, TitleFieldTemplate: mRe, UnsupportedFieldTemplate: gRe, @@ -51706,19 +51718,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } function bRe(e) { - const { disabled: t = !1, readonly: n = !1, autofocus: r = !1, options: o, id: i, name: a, registry: s, onBlur: c, onFocus: u } = e, { translateString: f } = s, { elements: p, handleChange: m, handleClear: g, handleSetNow: y } = dCe(e); - return S.jsxs("ul", { className: "list-inline", children: [p.map((b, v) => S.jsx("li", { className: "list-inline-item", children: S.jsx(uCe, { rootId: i, name: a, select: m, ...b, disabled: t, readonly: n, registry: s, onBlur: c, onFocus: u, autofocus: r && v === 0 }) }, v)), (o.hideNowButton !== "undefined" ? !o.hideNowButton : !0) && S.jsx("li", { className: "list-inline-item", children: S.jsx("a", { href: "#", className: "btn btn-info btn-now", onClick: y, children: f(bt.NowLabel) }) }), (o.hideClearButton !== "undefined" ? !o.hideClearButton : !0) && S.jsx("li", { className: "list-inline-item", children: S.jsx("a", { href: "#", className: "btn btn-warning btn-clear", onClick: g, children: f(bt.ClearLabel) }) })] }); + const { disabled: t = !1, readonly: n = !1, autofocus: r = !1, options: o, id: i, name: a, registry: s, onBlur: c, onFocus: u } = e, { translateString: d } = s, { elements: p, handleChange: m, handleClear: g, handleSetNow: y } = fCe(e); + return S.jsxs("ul", { className: "list-inline", children: [p.map((b, v) => S.jsx("li", { className: "list-inline-item", children: S.jsx(uCe, { rootId: i, name: a, select: m, ...b, disabled: t, readonly: n, registry: s, onBlur: c, onFocus: u, autofocus: r && v === 0 }) }, v)), (o.hideNowButton !== "undefined" ? !o.hideNowButton : !0) && S.jsx("li", { className: "list-inline-item", children: S.jsx("a", { href: "#", className: "btn btn-info btn-now", onClick: y, children: d(bt.NowLabel) }) }), (o.hideClearButton !== "undefined" ? !o.hideClearButton : !0) && S.jsx("li", { className: "list-inline-item", children: S.jsx("a", { href: "#", className: "btn btn-warning btn-clear", onClick: g, children: d(bt.ClearLabel) }) })] }); } function xRe({ time: e = !0, ...t }) { const { AltDateWidget: n } = t.registry.widgets; return S.jsx(n, { time: e, ...t }); } - function wRe({ schema: e, uiSchema: t, options: n, id: r, value: o, disabled: i, readonly: a, label: s, hideLabel: c, autofocus: u = !1, onBlur: f, onFocus: p, onChange: m, registry: g, htmlName: y }) { - const b = tt("DescriptionFieldTemplate", g, n), v = jp(e), x = T.useCallback((O) => m(O.target.checked), [m]), E = T.useCallback((O) => f(r, O.target.checked), [f, r]), _ = T.useCallback((O) => p(r, O.target.checked), [p, r]), A = Qe(t).widget === "checkbox" ? void 0 : n.description ?? e.description; + function wRe({ schema: e, uiSchema: t, options: n, id: r, value: o, disabled: i, readonly: a, label: s, hideLabel: c, autofocus: u = !1, onBlur: d, onFocus: p, onChange: m, registry: g, htmlName: y }) { + const b = tt("DescriptionFieldTemplate", g, n), v = jp(e), x = T.useCallback((O) => m(O.target.checked), [m]), E = T.useCallback((O) => d(r, O.target.checked), [d, r]), _ = T.useCallback((O) => p(r, O.target.checked), [p, r]), A = Qe(t).widget === "checkbox" ? void 0 : n.description ?? e.description; return S.jsxs("div", { className: `checkbox ${i || a ? "disabled" : ""}`, children: [!c && A && S.jsx(b, { id: Nc(r), description: A, schema: e, uiSchema: t, registry: g }), S.jsxs("label", { children: [S.jsx("input", { type: "checkbox", id: r, name: y || r, checked: typeof o > "u" ? !1 : o, required: v, disabled: i || a, autoFocus: u, onChange: x, onBlur: E, onFocus: _, "aria-describedby": go(r) }), Pc(S.jsx("span", { children: s }), c)] })] }); } - function SRe({ id: e, disabled: t, options: { inline: n = !1, enumOptions: r, enumDisabled: o, emptyValue: i }, value: a, autofocus: s = !1, readonly: c, onChange: u, onBlur: f, onFocus: p, htmlName: m }) { - const g = Array.isArray(a) ? a : [a], y = T.useCallback(({ target: v }) => f(e, Jn(v && v.value, r, i)), [f, e, r, i]), b = T.useCallback(({ target: v }) => p(e, Jn(v && v.value, r, i)), [p, e, r, i]); + function SRe({ id: e, disabled: t, options: { inline: n = !1, enumOptions: r, enumDisabled: o, emptyValue: i }, value: a, autofocus: s = !1, readonly: c, onChange: u, onBlur: d, onFocus: p, htmlName: m }) { + const g = Array.isArray(a) ? a : [a], y = T.useCallback(({ target: v }) => d(e, Jn(v && v.value, r, i)), [d, e, r, i]), b = T.useCallback(({ target: v }) => p(e, Jn(v && v.value, r, i)), [p, e, r, i]); return S.jsx("div", { className: "checkboxes", id: e, children: Array.isArray(r) && r.map((v, x) => { const E = v1(v.value, g), _ = Array.isArray(o) && o.indexOf(v.value) !== -1, C = t || _ || c ? "disabled" : "", k = (O) => { O.target.checked ? u(lV(x, g, r)) : u(sV(x, g, r)); @@ -51751,13 +51763,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return null; const { translateString: i } = t, { RemoveButton: a } = tt("ButtonTemplates", t, o); return S.jsx("ul", { className: "file-info", children: e.map((s, c) => { - const { name: u, size: f, type: p } = s, m = () => r(c); - return S.jsxs("li", { children: [S.jsx(hm, { children: i(bt.FilesInfo, [u, p, String(f)]) }), n && S.jsx(TRe, { fileInfo: s, registry: t }), S.jsx(a, { onClick: m, registry: t })] }, c); + const { name: u, size: d, type: p } = s, m = () => r(c); + return S.jsxs("li", { children: [S.jsx(hm, { children: i(bt.FilesInfo, [u, p, String(d)]) }), n && S.jsx(TRe, { fileInfo: s, registry: t }), S.jsx(a, { onClick: m, registry: t })] }, c); }) }); } function RRe(e) { - const { disabled: t, readonly: n, required: r, multiple: o, onChange: i, value: a, options: s, registry: c } = e, { filesInfo: u, handleChange: f, handleRemove: p } = mCe(a, i, o), m = tt("BaseInputTemplate", c, s), g = (y) => { - y.target.files && f(y.target.files); + const { disabled: t, readonly: n, required: r, multiple: o, onChange: i, value: a, options: s, registry: c } = e, { filesInfo: u, handleChange: d, handleRemove: p } = mCe(a, i, o), m = tt("BaseInputTemplate", c, s), g = (y) => { + y.target.files && d(y.target.files); }; return S.jsxs("div", { children: [S.jsx(m, { ...e, disabled: t || n, type: "file", required: a ? !1 : r, onChangeOverride: g, value: "", accept: s.accept ? String(s.accept) : void 0 }), S.jsx(ARe, { filesInfo: u, onRemove: p, registry: c, preview: s.filePreview, options: s })] }); } @@ -51768,10 +51780,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { options: t, registry: n } = e, r = tt("BaseInputTemplate", n, t); return S.jsx(r, { type: "password", ...e }); } - function NRe({ options: e, value: t, required: n, disabled: r, readonly: o, autofocus: i = !1, onBlur: a, onFocus: s, onChange: c, id: u, htmlName: f }) { + function NRe({ options: e, value: t, required: n, disabled: r, readonly: o, autofocus: i = !1, onBlur: a, onFocus: s, onChange: c, id: u, htmlName: d }) { const { enumOptions: p, enumDisabled: m, inline: g, emptyValue: y } = e, b = T.useCallback(({ target: x }) => a(u, Jn(x && x.value, p, y)), [a, p, y, u]), v = T.useCallback(({ target: x }) => s(u, Jn(x && x.value, p, y)), [s, p, y, u]); return S.jsx("div", { className: "field-radio-group", id: u, role: "radiogroup", children: Array.isArray(p) && p.map((x, E) => { - const _ = v1(x.value, t), C = Array.isArray(m) && m.indexOf(x.value) !== -1, k = r || C || o ? "disabled" : "", A = () => c(x.value), O = S.jsxs("span", { children: [S.jsx("input", { type: "radio", id: x1(u, E), checked: _, name: f || u, required: n, value: String(E), disabled: r || C || o, autoFocus: i && E === 0, onChange: A, onBlur: b, onFocus: v, "aria-describedby": go(u) }), S.jsx("span", { children: x.label })] }); + const _ = v1(x.value, t), C = Array.isArray(m) && m.indexOf(x.value) !== -1, k = r || C || o ? "disabled" : "", A = () => c(x.value), O = S.jsxs("span", { children: [S.jsx("input", { type: "radio", id: x1(u, E), checked: _, name: d || u, required: n, value: String(E), disabled: r || C || o, autoFocus: i && E === 0, onChange: A, onBlur: b, onFocus: v, "aria-describedby": go(u) }), S.jsx("span", { children: x.label })] }); return g ? S.jsx("label", { className: `radio-inline ${k}`, children: O }, E) : S.jsx("div", { className: `radio ${k}`, children: S.jsx("label", { children: O }) }, E); }) }); } @@ -51779,8 +51791,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { value: t, registry: { templates: { BaseInputTemplate: n } } } = e; return S.jsxs("div", { className: "field-range-wrapper", children: [S.jsx(n, { type: "range", ...e }), S.jsx("span", { className: "range-view", children: t })] }); } - function IRe({ id: e, value: t, required: n, disabled: r, readonly: o, autofocus: i, onChange: a, onFocus: s, onBlur: c, schema: u, options: f, htmlName: p }) { - const { stars: m = 5, shape: g = "star" } = f, y = u.maximum ? Math.min(u.maximum, 5) : Math.min(Math.max(m, 1), 5), b = u.minimum || 0, v = T.useCallback((C) => { + function IRe({ id: e, value: t, required: n, disabled: r, readonly: o, autofocus: i, onChange: a, onFocus: s, onBlur: c, schema: u, options: d, htmlName: p }) { + const { stars: m = 5, shape: g = "star" } = d, y = u.maximum ? Math.min(u.maximum, 5) : Math.min(Math.max(m, 1), 5), b = u.minimum || 0, v = T.useCallback((C) => { !r && !o && a(C); }, [a, r, o]), x = T.useCallback((C) => { if (s) { @@ -51810,14 +51822,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function q_(e, t) { return t ? Array.from(e.target.options).slice().filter((n) => n.selected).map((n) => n.value) : e.target.value; } - function $Re({ schema: e, id: t, options: n, value: r, required: o, disabled: i, readonly: a, multiple: s = !1, autofocus: c = !1, onChange: u, onBlur: f, onFocus: p, placeholder: m, htmlName: g }) { + function $Re({ schema: e, id: t, options: n, value: r, required: o, disabled: i, readonly: a, multiple: s = !1, autofocus: c = !1, onChange: u, onBlur: d, onFocus: p, placeholder: m, htmlName: g }) { const { enumOptions: y, enumDisabled: b, emptyValue: v } = n, x = s ? [] : "", E = T.useCallback((O) => { const P = q_(O, s); return p(t, Jn(P, y, v)); }, [p, t, s, y, v]), _ = T.useCallback((O) => { const P = q_(O, s); - return f(t, Jn(P, y, v)); - }, [f, t, s, y, v]), C = T.useCallback((O) => { + return d(t, Jn(P, y, v)); + }, [d, t, s, y, v]), C = T.useCallback((O) => { const P = q_(O, s); return u(Jn(P, y, v)); }, [u, s, y, v]), k = bA(r, y, s), A = !s && e.default === void 0; @@ -51826,8 +51838,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S.jsx("option", { value: String(I), disabled: $, children: P }, I); })] }); } - function VV({ id: e, options: t = {}, placeholder: n, value: r, required: o, disabled: i, readonly: a, autofocus: s = !1, onChange: c, onBlur: u, onFocus: f, htmlName: p }) { - const m = T.useCallback(({ target: { value: b } }) => c(b === "" ? t.emptyValue : b), [c, t.emptyValue]), g = T.useCallback(({ target: b }) => u(e, b && b.value), [u, e]), y = T.useCallback(({ target: b }) => f(e, b && b.value), [e, f]); + function VV({ id: e, options: t = {}, placeholder: n, value: r, required: o, disabled: i, readonly: a, autofocus: s = !1, onChange: c, onBlur: u, onFocus: d, htmlName: p }) { + const m = T.useCallback(({ target: { value: b } }) => c(b === "" ? t.emptyValue : b), [c, t.emptyValue]), g = T.useCallback(({ target: b }) => u(e, b && b.value), [u, e]), y = T.useCallback(({ target: b }) => d(e, b && b.value), [e, d]); return S.jsx("textarea", { id: e, name: p || e, className: "form-control", value: r || "", placeholder: n, required: o, disabled: i, readOnly: a, autoFocus: s, rows: t.rows, onBlur: g, onFocus: y, onChange: m, "aria-describedby": go(e) }); } VV.defaultProps = { @@ -51930,12 +51942,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Kn(this, "getFieldNames", (n, r) => { const o = (a, s) => typeof a != "object" || Hn(a) || s && !Hn(a), i = (a, s = [], c = [[]]) => { const u = Object.keys(a); - return u.forEach((f) => { - const p = a[f]; + return u.forEach((d) => { + const p = a[d]; if (typeof p == "object") { - const m = c.map((g) => [...g, f]); + const m = c.map((g) => [...g, d]); p[KT] && p[Vv] !== "" ? s.push(p[Vv]) : i(p, s, m); - } else f === Vv && p !== "" && c.forEach((m) => { + } else d === Vv && p !== "" && c.forEach((m) => { const g = Ee(r, m), y = u.length === 1; (o(g, y) || Array.isArray(g) && g.every((b) => o(b, y))) && s.push(m); }); @@ -52002,9 +52014,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Kn(this, "onBlur", (n, r) => { const { onBlur: o, omitExtraData: i, liveOmit: a, liveValidate: s } = this.props; if (o && o(n, r), i === !0 && a === "onBlur" || s === "onBlur") { - const { onChange: c, extraErrors: u } = this.props, { formData: f } = this.state; - let p = f, m = { formData: p }; - if (i === !0 && a === "onBlur" && (p = this.omitExtraData(f), m = { formData: p }), s === "onBlur") { + const { onChange: c, extraErrors: u } = this.props, { formData: d } = this.state; + let p = d, m = { formData: p }; + if (i === !0 && a === "onBlur" && (p = this.omitExtraData(d), m = { formData: p }), s === "onBlur") { const { schema: y, schemaUtils: b, errorSchema: v, customErrors: x, retrievedSchema: E } = this.state, _ = this.liveValidate(y, b, v, p, u, x, E); m = { formData: p, ..._, customErrors: x }; } @@ -52071,16 +52083,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho */ Kn(this, "validateFormWithFormData", (n) => { const { extraErrors: r, extraErrorsBlockSubmit: o, focusOnFirstError: i, onError: a } = this.props, { errors: s } = this.state, c = this.validate(n); - let u = c.errors, f = c.errorSchema; - const p = u, m = f, g = u.length > 0 || r && o; + let u = c.errors, d = c.errorSchema; + const p = u, m = d, g = u.length > 0 || r && o; if (g) { if (r) { const y = Kv(c, r); - f = y.errorSchema, u = y.errors; + d = y.errorSchema, u = y.errors; } i && (typeof i == "function" ? i(u[0]) : this.focusOnError(u[0])), this.setState({ errors: u, - errorSchema: f, + errorSchema: d, schemaValidationErrors: p, schemaValidationErrorSchema: m }, () => { @@ -52130,8 +52142,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o, // Skip live validation for this request if no form data has changed from the last state !c - ), f = !pn(u, r); - return { nextState: u, shouldUpdate: f }; + ), d = !pn(u, r); + return { nextState: u, shouldUpdate: d }; } return { shouldUpdate: !1 }; } @@ -52166,9 +52178,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @returns - The new state for the `Form` */ getStateFromProps(n, r, o, i = !1, a = [], s = !1) { - const c = this.state || {}, u = "schema" in n ? n.schema : this.props.schema, f = "validator" in n ? n.validator : this.props.validator, p = ("uiSchema" in n ? n.uiSchema : this.props.uiSchema) || {}, m = n.formData === void 0 && this.props.formData === void 0, g = typeof r < "u", y = "liveValidate" in n ? n.liveValidate : this.props.liveValidate, b = g && !n.noValidate && y, v = "experimental_defaultFormStateBehavior" in n ? n.experimental_defaultFormStateBehavior : this.props.experimental_defaultFormStateBehavior, x = "experimental_customMergeAllOf" in n ? n.experimental_customMergeAllOf : this.props.experimental_customMergeAllOf; + const c = this.state || {}, u = "schema" in n ? n.schema : this.props.schema, d = "validator" in n ? n.validator : this.props.validator, p = ("uiSchema" in n ? n.uiSchema : this.props.uiSchema) || {}, m = n.formData === void 0 && this.props.formData === void 0, g = typeof r < "u", y = "liveValidate" in n ? n.liveValidate : this.props.liveValidate, b = g && !n.noValidate && y, v = "experimental_defaultFormStateBehavior" in n ? n.experimental_defaultFormStateBehavior : this.props.experimental_defaultFormStateBehavior, x = "experimental_customMergeAllOf" in n ? n.experimental_customMergeAllOf : this.props.experimental_customMergeAllOf; let E = c.schemaUtils; - (!E || E.doesSchemaUtilsDiffer(f, u, v, x)) && (E = FEe(f, u, v, x)); + (!E || E.doesSchemaUtilsDiffer(d, u, v, x)) && (E = FEe(d, u, v, x)); const _ = E.getRootSchema(); let C = r; r === g3 ? C = void 0 : r === void 0 && m && (C = c.formData); @@ -52239,8 +52251,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @param [retrievedSchema] - An optionally retrieved schema for per */ validate(n, r = this.state.schema, o, i) { - const a = o || this.state.schemaUtils, { customValidate: s, transformErrors: c, uiSchema: u } = this.props, f = i ?? a.retrieveSchema(r, n); - return a.getValidator().validateFormData(n, f, s, c, u); + const a = o || this.state.schemaUtils, { customValidate: s, transformErrors: c, uiSchema: u } = this.props, d = i ?? a.retrieveSchema(r, n); + return a.getValidator().validateFormData(n, d, s, c, u); } /** Renders any errors contained in the `state` in using the `ErrorList`, if not disabled by `showErrorList`. */ renderErrors(n) { @@ -52282,9 +52294,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @private */ liveValidate(n, r, o, i, a, s, c, u = !1) { - const f = this.validate(i, n, r, c), p = f.errors; - let m = f.errorSchema; - u && (m = Sh(o, f.errorSchema, "preventDuplicates")); + const d = this.validate(i, n, r, c), p = d.errors; + let m = d.errorSchema; + u && (m = Sh(o, d.errorSchema, "preventDuplicates")); const g = p, y = m; return { ...this.mergeErrors({ errorSchema: m, errors: p }, a, s), schemaValidationErrors: g, schemaValidationErrorSchema: y }; } @@ -52300,7 +52312,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho processPendingChange() { if (this.pendingChanges.length === 0) return; - const { newValue: n, path: r, id: o } = this.pendingChanges[0], { newErrorSchema: i } = this.pendingChanges[0], { extraErrors: a, omitExtraData: s, liveOmit: c, noValidate: u, liveValidate: f, onChange: p } = this.props, { formData: m, schemaUtils: g, schema: y, fieldPathId: b, schemaValidationErrorSchema: v, errors: x } = this.state; + const { newValue: n, path: r, id: o } = this.pendingChanges[0], { newErrorSchema: i } = this.pendingChanges[0], { extraErrors: a, omitExtraData: s, liveOmit: c, noValidate: u, liveValidate: d, onChange: p } = this.props, { formData: m, schemaUtils: g, schema: y, fieldPathId: b, schemaValidationErrorSchema: v, errors: x } = this.state; let { customErrors: E, errorSchema: _ } = this.state; const C = b.path[0] || "", k = !r || r.length === 0 || r.length === 1 && r[0] === C; let A = this.state.retrievedSchema, O = k ? n : xA(m); @@ -52309,7 +52321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const L = this.getStateFromProps(this.props, O, void 0, void 0, void 0, !0); O = L.formData, A = L.retrievedSchema; } - const P = !u && (f === !0 || f === "onChange"); + const P = !u && (d === !0 || d === "onChange"); let I = { formData: O, schema: y }, $ = O; if (s === !0 && (c === !0 || c === "onChange") && ($ = this.omitExtraData(O), I = { formData: $ @@ -52368,7 +52380,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } /** Computed the registry for the form using the given `props`, `schema` and `schemaUtils` */ getRegistry(n, r, o) { - const { translateString: i, uiSchema: a = {} } = n, { fields: s, templates: c, widgets: u, formContext: f, translateString: p } = BRe(); + const { translateString: i, uiSchema: a = {} } = n, { fields: s, templates: c, widgets: u, formContext: d, translateString: p } = BRe(); return { fields: { ...s, ...n.fields }, templates: { @@ -52381,7 +52393,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, widgets: { ...u, ...n.widgets }, rootSchema: r, - formContext: n.formContext || f, + formContext: n.formContext || d, schemaUtils: o, translateString: i || p, globalUiOptions: a[wC], @@ -52416,11 +52428,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * needed along with the submit button or any children of the form. */ render() { - const { children: n, id: r, className: o = "", tagName: i, name: a, method: s, target: c, action: u, autoComplete: f, enctype: p, acceptCharset: m, noHtml5Validate: g = !1, disabled: y, readonly: b, showErrorList: v = "top", _internalFormWrapper: x } = this.props, { schema: E, uiSchema: _, formData: C, errorSchema: k, fieldPathId: A, registry: O } = this.state, { SchemaField: P } = O.fields, { SubmitButton: I } = O.templates.ButtonTemplates, $ = x ? i : void 0, L = x || i || "form"; + const { children: n, id: r, className: o = "", tagName: i, name: a, method: s, target: c, action: u, autoComplete: d, enctype: p, acceptCharset: m, noHtml5Validate: g = !1, disabled: y, readonly: b, showErrorList: v = "top", _internalFormWrapper: x } = this.props, { schema: E, uiSchema: _, formData: C, errorSchema: k, fieldPathId: A, registry: O } = this.state, { SchemaField: P } = O.fields, { SubmitButton: I } = O.templates.ButtonTemplates, $ = x ? i : void 0, L = x || i || "form"; let { [$0]: N = {} } = Qe(_); y && (N = { ...N, props: { ...N.props, disabled: !0 } }); const U = { [Zs]: { [$0]: N } }; - return S.jsxs(L, { className: o || "rjsf", id: r, name: a, method: s, target: c, action: u, autoComplete: f, encType: p, acceptCharset: m, noValidate: g, onSubmit: this.onSubmit, as: $, ref: this.formElement, children: [v === "top" && this.renderErrors(O), S.jsx(P, { name: "", schema: E, uiSchema: _, errorSchema: k, fieldPathId: A, formData: C, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, registry: O, disabled: y, readonly: b }), n || S.jsx(I, { uiSchema: U, registry: O }), v === "bottom" && this.renderErrors(O)] }); + return S.jsxs(L, { className: o || "rjsf", id: r, name: a, method: s, target: c, action: u, autoComplete: d, encType: p, acceptCharset: m, noValidate: g, onSubmit: this.onSubmit, as: $, ref: this.formElement, children: [v === "top" && this.renderErrors(O), S.jsx(P, { name: "", schema: E, uiSchema: _, errorSchema: k, fieldPathId: A, formData: C, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, registry: O, disabled: y, readonly: b }), n || S.jsx(I, { uiSchema: U, registry: O }), v === "bottom" && this.renderErrors(O)] }); } }; function HV(e) { @@ -52468,8 +52480,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho state: o = "value" } = e, { current: i - } = T.useRef(t !== void 0), [a, s] = T.useState(n), c = i ? t : a, u = T.useCallback((f) => { - i || s(f); + } = T.useRef(t !== void 0), [a, s] = T.useState(n), c = i ? t : a, u = T.useCallback((d) => { + i || s(d); }, []); return [c, u]; } @@ -52483,8 +52495,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function n(a, s) { const c = {}; return Object.keys(s).forEach((u) => { - VRe(u, s[u]) && typeof a[u] == "function" && (c[u] = (...f) => { - a[u](...f), s[u](...f); + VRe(u, s[u]) && typeof a[u] == "function" && (c[u] = (...d) => { + a[u](...d), s[u](...d); }); }), c; } @@ -52493,11 +52505,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const s = typeof t == "function" ? t(a) : t, c = typeof e == "function" ? e({ ...a, ...s - }) : e, u = $e(a?.className, s?.className, c?.className), f = n(c, s); + }) : e, u = $e(a?.className, s?.className, c?.className), d = n(c, s); return { ...s, ...c, - ...f, + ...d, ...!!u && { className: u }, @@ -52552,7 +52564,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ot("MuiCircularProgress", e); } nt("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]); - const qo = 44, DC = Pd` + const qo = 44, DC = If` 0% { transform: rotate(0deg); } @@ -52560,7 +52572,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 100% { transform: rotate(360deg); } -`, FC = Pd` +`, FC = If` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -52691,7 +52703,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho enableTrackSlot: s = !1, size: c = 40, style: u, - thickness: f = 3.6, + thickness: d = 3.6, value: p = 0, variant: m = "indeterminate", ...g @@ -52700,13 +52712,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: i, disableShrink: a, size: c, - thickness: f, + thickness: d, value: p, variant: m, enableTrackSlot: s }, b = YRe(y), v = {}, x = {}, E = {}; if (m === "determinate") { - const _ = 2 * Math.PI * ((qo - f) / 2); + const _ = 2 * Math.PI * ((qo - d) / 2); v.strokeDasharray = _.toFixed(3), E["aria-valuenow"] = Math.round(p), v.strokeDashoffset = `${((100 - p) / 100 * _).toFixed(3)}px`, x.transform = "rotate(-90deg)"; } return /* @__PURE__ */ S.jsx(XRe, { @@ -52731,9 +52743,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ownerState: y, cx: qo, cy: qo, - r: (qo - f) / 2, + r: (qo - d) / 2, fill: "none", - strokeWidth: f, + strokeWidth: d, "aria-hidden": "true" }) : null, /* @__PURE__ */ S.jsx(QRe, { className: b.circle, @@ -52741,9 +52753,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ownerState: y, cx: qo, cy: qo, - r: (qo - f) / 2, + r: (qo - d) / 2, fill: "none", - strokeWidth: f + strokeWidth: d })] }) }); @@ -52909,12 +52921,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: s = "default", disabled: c = !1, disableFocusRipple: u = !1, - size: f = "medium", + size: d = "medium", id: p, loading: m = null, loadingIndicator: g, ...y - } = r, b = Id(p), v = g ?? /* @__PURE__ */ S.jsx(KV, { + } = r, b = $f(p), v = g ?? /* @__PURE__ */ S.jsx(KV, { "aria-labelledby": b, color: "inherit", size: 16 @@ -52926,7 +52938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableFocusRipple: u, loading: m, loadingIndicator: v, - size: f + size: d }, E = tOe(x); return /* @__PURE__ */ S.jsxs(nOe, { id: m ? b : p, @@ -52966,7 +52978,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho theme: n || e }); } - const dv = { + const fv = { colorSchemeStorageKey: "mui-color-scheme", defaultLightColorScheme: "light", defaultDarkColorScheme: "dark", @@ -52979,11 +52991,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho theme: () => mb({ cssVariables: !0 }), - colorSchemeStorageKey: dv.colorSchemeStorageKey, - modeStorageKey: dv.modeStorageKey, + colorSchemeStorageKey: fv.colorSchemeStorageKey, + modeStorageKey: fv.modeStorageKey, defaultColorScheme: { - light: dv.defaultLightColorScheme, - dark: dv.defaultDarkColorScheme + light: fv.defaultLightColorScheme, + dark: fv.defaultDarkColorScheme }, resolveTheme: (e) => { const t = { @@ -53024,7 +53036,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho defaultTheme: uOe, defaultClassName: cOe.root, generateClassName: pF.generate - }), dr = gZ({ + }), fr = gZ({ createStyledComponent: Re("div", { name: "MuiGrid", slot: "Root", @@ -53042,11 +53054,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), useTheme: gb }); - function dOe(e) { + function fOe(e) { return ot("MuiPaper", e); } nt("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]); - const fOe = (e) => { + const dOe = (e) => { const { square: t, elevation: n, @@ -53055,7 +53067,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } = e, i = { root: ["root", r, !t && "rounded", r === "elevation" && `elevation${n}`] }; - return rt(i, dOe, o); + return rt(i, fOe, o); }, pOe = Re("div", { name: "MuiPaper", slot: "Root", @@ -53104,20 +53116,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho elevation: s = 1, square: c = !1, variant: u = "elevation", - ...f + ...d } = r, p = { ...r, component: a, elevation: s, square: c, variant: u - }, m = fOe(p); + }, m = dOe(p); return /* @__PURE__ */ S.jsx(pOe, { as: a, ownerState: p, className: $e(m.root, i), ref: n, - ...f, + ...d, style: { ...u === "elevation" && { "--Paper-shadow": (o.vars || o).shadows[s], @@ -53128,7 +53140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "--Paper-overlay": `linear-gradient(${Jv("#fff", wE(s))}, ${Jv("#fff", wE(s))})` } }, - ...f.style + ...d.style } }); }); @@ -53140,13 +53152,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fontWeight: "bold", minWidth: 0 }; - return S.jsxs(dr, { container: !0, alignItems: "center", children: [S.jsx(dr, { size: { xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }, style: { overflow: "auto" }, children: S.jsx(pl, { mb: 2, children: S.jsx(T1, { elevation: 2, children: S.jsx(pl, { p: 2, children: t }) }) }) }), o && S.jsx(dr, { sx: { mt: r ? -5 : -1.5 }, children: S.jsx(c, { ...n, style: u }) })] }); + return S.jsxs(fr, { container: !0, alignItems: "center", children: [S.jsx(fr, { size: { xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }, style: { overflow: "auto" }, children: S.jsx(pl, { mb: 2, children: S.jsx(T1, { elevation: 2, children: S.jsx(pl, { p: 2, children: t }) }) }) }), o && S.jsx(fr, { sx: { mt: r ? -5 : -1.5 }, children: S.jsx(c, { ...n, style: u }) })] }); } function mOe(e) { - const { canAdd: t, disabled: n, fieldPathId: r, uiSchema: o, items: i, optionalDataControl: a, onAddClick: s, readonly: c, registry: u, required: f, schema: p, title: m } = e, g = Qe(o), y = tt("ArrayFieldDescriptionTemplate", u, g), b = tt("ArrayFieldTitleTemplate", u, g), v = !c && !n, { ButtonTemplates: { AddButton: x } } = u.templates; - return S.jsx(T1, { elevation: 2, children: S.jsxs(pl, { p: 2, children: [S.jsx(b, { fieldPathId: r, title: g.title || m, schema: p, uiSchema: o, required: f, registry: u, optionalDataControl: v ? a : void 0 }), S.jsx(y, { fieldPathId: r, description: g.description || p.description, schema: p, uiSchema: o, registry: u }), v ? void 0 : a, i, t && S.jsx(dr, { container: !0, justifyContent: "flex-end", children: S.jsx(dr, { children: S.jsx(pl, { mt: 2, children: S.jsx(x, { id: ji(r, "add"), className: "rjsf-array-item-add", onClick: s, disabled: n || c, uiSchema: o, registry: u }) }) }) })] }) }); + const { canAdd: t, disabled: n, fieldPathId: r, uiSchema: o, items: i, optionalDataControl: a, onAddClick: s, readonly: c, registry: u, required: d, schema: p, title: m } = e, g = Qe(o), y = tt("ArrayFieldDescriptionTemplate", u, g), b = tt("ArrayFieldTitleTemplate", u, g), v = !c && !n, { ButtonTemplates: { AddButton: x } } = u.templates; + return S.jsx(T1, { elevation: 2, children: S.jsxs(pl, { p: 2, children: [S.jsx(b, { fieldPathId: r, title: g.title || m, schema: p, uiSchema: o, required: d, registry: u, optionalDataControl: v ? a : void 0 }), S.jsx(y, { fieldPathId: r, description: g.description || p.description, schema: p, uiSchema: o, registry: u }), v ? void 0 : a, i, t && S.jsx(fr, { container: !0, justifyContent: "flex-end", children: S.jsx(fr, { children: S.jsx(pl, { mt: 2, children: S.jsx(x, { id: ji(r, "add"), className: "rjsf-array-item-add", onClick: s, disabled: n || c, uiSchema: o, registry: u }) }) }) })] }) }); } - function fv(e) { + function dv(e) { return parseInt(e, 10) || 0; } const gOe = { @@ -53182,8 +53194,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...c } = t, { current: u - } = T.useRef(s != null), f = T.useRef(null), p = er(n, f), m = T.useRef(null), g = T.useRef(null), y = T.useCallback(() => { - const _ = f.current, C = g.current; + } = T.useRef(s != null), d = T.useRef(null), p = er(n, d), m = T.useRef(null), g = T.useRef(null), y = T.useCallback(() => { + const _ = d.current, C = g.current; if (!_ || !C) return; const A = Qa(_).getComputedStyle(_); @@ -53194,7 +53206,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; C.style.width = A.width, C.value = _.value || t.placeholder || "x", C.value.slice(-1) === ` ` && (C.value += " "); - const O = A.boxSizing, P = fv(A.paddingBottom) + fv(A.paddingTop), I = fv(A.borderBottomWidth) + fv(A.borderTopWidth), $ = C.scrollHeight; + const O = A.boxSizing, P = dv(A.paddingBottom) + dv(A.paddingTop), I = dv(A.borderBottomWidth) + dv(A.borderTopWidth), $ = C.scrollHeight; C.value = "x"; const L = C.scrollHeight; let N = $; @@ -53205,20 +53217,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho overflowing: j }; }, [o, i, t.placeholder]), b = Bi(() => { - const _ = f.current, C = y(); + const _ = d.current, C = y(); if (!_ || !C || b3(C)) return !1; const k = C.outerHeightStyle; return m.current != null && m.current !== k; }), v = T.useCallback(() => { - const _ = f.current, C = y(); + const _ = d.current, C = y(); if (!_ || !C || b3(C)) return; const k = C.outerHeightStyle; m.current !== k && (m.current = k, _.style.height = `${k}px`), _.style.overflow = C.overflowing ? "hidden" : ""; }, [y]), x = T.useRef(-1); ei(() => { - const _ = qV(v), C = f?.current; + const _ = qV(v), C = d?.current; if (!C) return; const k = Qa(C); @@ -53286,7 +53298,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function xOe(e) { return ot("MuiInputBase", e); } - const Rd = nt("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]); + const Of = nt("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]); var w3; const A1 = (e, t) => { const { @@ -53309,14 +53321,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho formControl: s, fullWidth: c, hiddenLabel: u, - multiline: f, + multiline: d, readOnly: p, size: m, startAdornment: g, type: y } = e, b = { - root: ["root", `color${Ie(n)}`, r && "disabled", o && "error", c && "fullWidth", a && "focused", s && "formControl", m && m !== "medium" && `size${Ie(m)}`, f && "multiline", g && "adornedStart", i && "adornedEnd", u && "hiddenLabel", p && "readOnly"], - input: ["input", r && "disabled", y === "search" && "inputTypeSearch", f && "inputMultiline", m === "small" && "inputSizeSmall", u && "inputHiddenLabel", g && "inputAdornedStart", i && "inputAdornedEnd", p && "readOnly"] + root: ["root", `color${Ie(n)}`, r && "disabled", o && "error", c && "fullWidth", a && "focused", s && "formControl", m && m !== "medium" && `size${Ie(m)}`, d && "multiline", g && "adornedStart", i && "adornedEnd", u && "hiddenLabel", p && "readOnly"], + input: ["input", r && "disabled", y === "search" && "inputTypeSearch", d && "inputMultiline", m === "small" && "inputSizeSmall", u && "inputHiddenLabel", g && "inputAdornedStart", i && "inputAdornedEnd", p && "readOnly"] }; return rt(b, xOe, t); }, O1 = Re("div", { @@ -53336,7 +53348,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cursor: "text", display: "inline-flex", alignItems: "center", - [`&.${Rd.disabled}`]: { + [`&.${Of.disabled}`]: { color: (e.vars || e).palette.text.disabled, cursor: "default" }, @@ -53421,7 +53433,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho WebkitAppearance: "none" }, // Show and hide the placeholder logic - [`label[data-shrink=false] + .${Rd.formControl} &`]: { + [`label[data-shrink=false] + .${Of.formControl} &`]: { "&::-webkit-input-placeholder": r, "&::-moz-placeholder": r, // Firefox 19+ @@ -53433,7 +53445,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "&:focus::-ms-input-placeholder": o // Edge }, - [`&.${Rd.disabled}`]: { + [`&.${Of.disabled}`]: { opacity: 1, // Reset iOS opacity WebkitTextFillColor: (e.vars || e).palette.text.disabled @@ -53500,7 +53512,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: s, color: c, components: u = {}, - componentsProps: f = {}, + componentsProps: d = {}, defaultValue: p, disabled: m, disableInjectingGlobalStyles: g, @@ -53607,10 +53619,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho size: ge.size, startAdornment: z, type: H - }, de = wOe(oe), _e = G.root || u.Root || O1, Ce = D.root || f.root || {}, Oe = G.input || u.Input || M1; + }, fe = wOe(oe), _e = G.root || u.Root || O1, Ce = D.root || d.root || {}, Oe = G.input || u.Input || M1; return Je = { ...Je, - ...D.input ?? f.input + ...D.input ?? d.input }, /* @__PURE__ */ S.jsxs(T.Fragment, { children: [!g && typeof S3 == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function // For Pigment CSS, this has no effect because the InputGlobalStyles will be null. @@ -53625,7 +53637,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...Ce.ownerState } }, - className: $e(de.root, Ce.className, s, K && "MuiInputBase-readOnly"), + className: $e(fe.root, Ce.className, s, K && "MuiInputBase-readOnly"), children: [z, /* @__PURE__ */ S.jsx(jA.Provider, { value: null, children: /* @__PURE__ */ S.jsx(Oe, { @@ -53655,7 +53667,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, ref: J, - className: $e(de.input, Je.className, K && "MuiInputBase-readOnly"), + className: $e(fe.input, Je.className, K && "MuiInputBase-readOnly"), onBlur: Ye, onChange: Ue, onFocus: ze @@ -53671,7 +53683,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ot("MuiInput", e); } const op = { - ...Rd, + ...Of, ...nt("MuiInput", ["root", "underline", "input"]) }, _Oe = (e) => { const { @@ -53791,7 +53803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fullWidth: s = !1, inputComponent: c = "input", multiline: u = !1, - slotProps: f, + slotProps: d, slots: p = {}, type: m = "text", ...g @@ -53801,7 +53813,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableUnderline: o } } - }, x = f ?? a ? xr(f ?? a, v) : v, E = p.root ?? i.Root ?? EOe, _ = p.input ?? i.Input ?? COe; + }, x = d ?? a ? xr(d ?? a, v) : v, E = p.root ?? i.Root ?? EOe, _ = p.input ?? i.Input ?? COe; return /* @__PURE__ */ S.jsx(DA, { slots: { root: E, @@ -53822,7 +53834,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ot("MuiFilledInput", e); } const ql = { - ...Rd, + ...Of, ...nt("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"]) }, TOe = (e) => { const { @@ -54079,7 +54091,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho hiddenLabel: c, // declare here to prevent spreading to DOM inputComponent: u = "input", - multiline: f = !1, + multiline: d = !1, slotProps: p, slots: m = {}, type: g = "text", @@ -54089,7 +54101,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableUnderline: o, fullWidth: s, inputComponent: u, - multiline: f, + multiline: d, type: g }, v = TOe(r), x = { root: { @@ -54107,7 +54119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho slotProps: E, fullWidth: s, inputComponent: u, - multiline: f, + multiline: d, ref: n, type: g, ...y, @@ -54236,7 +54248,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return ot("MuiOutlinedInput", e); } const bi = { - ...Rd, + ...Of, ...nt("MuiOutlinedInput", ["root", "notchedOutline", "input"]) }, IOe = (e) => { const { @@ -54404,7 +54416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho label: s, multiline: c = !1, notched: u, - slots: f = {}, + slots: d = {}, slotProps: p = {}, type: m = "text", ...g @@ -54424,13 +54436,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho multiline: c, size: v.size, type: m - }, E = f.root ?? o.Root ?? $Oe, _ = f.input ?? o.Input ?? DOe, [C, k] = ln("notchedOutline", { + }, E = d.root ?? o.Root ?? $Oe, _ = d.input ?? o.Input ?? DOe, [C, k] = ln("notchedOutline", { elementType: jOe, className: y.notchedOutline, shouldForwardComponentProp: !0, ownerState: x, externalForwardedProps: { - slots: f, + slots: d, slotProps: p }, additionalProps: { @@ -54536,7 +54548,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho component: s = "label", disabled: c, error: u, - filled: f, + filled: d, focused: p, required: m, ...g @@ -54735,17 +54747,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho variant: s, className: c, ...u - } = r, f = ra(); + } = r, d = ra(); let p = a; - typeof p > "u" && f && (p = f.filled || f.focused || f.adornedStart); + typeof p > "u" && d && (p = d.filled || d.focused || d.adornedStart); const m = yl({ props: r, - muiFormControl: f, + muiFormControl: d, states: ["size", "variant", "required", "focused"] }), g = { ...r, disableAnimation: o, - formControl: f, + formControl: d, shrink: p, size: m.size, variant: m.variant, @@ -54829,7 +54841,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho component: s = "div", disabled: c = !1, error: u = !1, - focused: f, + focused: d, fullWidth: p = !1, hiddenLabel: m = !1, margin: g = "none", @@ -54864,7 +54876,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), V; }), [P, I] = T.useState(!1); c && P && I(!1); - const $ = f !== void 0 && !c ? f : P; + const $ = d !== void 0 && !c ? d : P; let L; T.useRef(!1); const N = T.useCallback(() => { @@ -54977,7 +54989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: s, error: c, filled: u, - focused: f, + focused: d, margin: p, required: m, variant: g, @@ -55094,7 +55106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho dense: s = !1, disablePadding: c = !1, subheader: u, - ...f + ...d } = r, p = T.useMemo(() => ({ dense: s }), [s]), m = { @@ -55110,7 +55122,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: $e(g.root, i), ref: n, ownerState: m, - ...f, + ...d, children: [u, o] }) }); @@ -55164,7 +55176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: s, disabledItemsFocusable: c = !1, disableListWrap: u = !1, - onKeyDown: f, + onKeyDown: d, variant: p = "selectedMenu", ...m } = t, g = T.useRef(null), y = T.useRef({ @@ -55190,7 +55202,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const b = (_) => { const C = g.current, k = _.key; if (_.ctrlKey || _.metaKey || _.altKey) { - f && f(_); + d && d(_); return; } const O = _p(Ar(C)); @@ -55208,7 +55220,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const L = O && !P.repeating && ZV(O, P); P.previousKeyMatched && (L || ip(C, O, !1, c, W_, P)) ? _.preventDefault() : P.previousKeyMatched = !1; } - f && f(_); + d && d(_); }, v = er(g, n); let x = -1; T.Children.forEach(a, (_, C) => { @@ -55268,7 +55280,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho in: s, onEnter: c, onEntered: u, - onEntering: f, + onEntering: d, onExit: p, onExited: m, onExiting: g, @@ -55282,7 +55294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const K = k.current; F === void 0 ? V(K) : V(K, F); } - }, P = O(f), I = O((V, F) => { + }, P = O(d), I = O((V, F) => { QV(V); const { duration: K, @@ -55492,14 +55504,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let n = t(`[name="${e.name}"]:checked`); return n || (n = t(`[name="${e.name}"]`)), n !== e; } - function dMe(e) { + function fMe(e) { return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || uMe(e)); } - function fMe(e) { + function dMe(e) { const t = [], n = []; return Array.from(e.querySelectorAll(lMe)).forEach((r, o) => { const i = cMe(r); - i === -1 || !dMe(r) || (i === 0 ? t.push(r) : n.push({ + i === -1 || !fMe(r) || (i === 0 ? t.push(r) : n.push({ documentOrder: o, tabIndex: i, node: r @@ -55515,10 +55527,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableAutoFocus: n = !1, disableEnforceFocus: r = !1, disableRestoreFocus: o = !1, - getTabbable: i = fMe, + getTabbable: i = dMe, isEnabled: a = pMe, open: s - } = e, c = T.useRef(!1), u = T.useRef(null), f = T.useRef(null), p = T.useRef(null), m = T.useRef(null), g = T.useRef(!1), y = T.useRef(null), b = er(mm(t), y), v = T.useRef(null); + } = e, c = T.useRef(!1), u = T.useRef(null), d = T.useRef(null), p = T.useRef(null), m = T.useRef(null), g = T.useRef(!1), y = T.useRef(null), b = er(mm(t), y), v = T.useRef(null); T.useEffect(() => { !s || !y.current || (g.current = !n); }, [n, s]), T.useEffect(() => { @@ -55532,7 +55544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!s || !y.current) return; const _ = Ar(y.current), C = _p(_), k = (P) => { - v.current = P, !(r || !a() || P.key !== "Tab") && C === y.current && P.shiftKey && (c.current = !0, f.current && f.current.focus()); + v.current = P, !(r || !a() || P.key !== "Tab") && C === y.current && P.shiftKey && (c.current = !0, d.current && d.current.focus()); }, A = () => { const P = y.current; if (P === null) @@ -55542,7 +55554,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c.current = !1; return; } - if (P.contains(I) || r && I !== u.current && I !== f.current) + if (P.contains(I) || r && I !== u.current && I !== d.current) return; if (I !== m.current) m.current = null; @@ -55551,7 +55563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!g.current) return; let $ = []; - if ((I === u.current || I === f.current) && ($ = i(y.current)), $.length > 0) { + if ((I === u.current || I === d.current) && ($ = i(y.current)), $.length > 0) { const L = !!(v.current?.shiftKey && v.current?.key === "Tab"), N = $[0], U = $[$.length - 1]; typeof N != "string" && typeof U != "string" && (L ? U.focus() : N.focus()); } else @@ -55585,7 +55597,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), /* @__PURE__ */ S.jsx("div", { tabIndex: s ? 0 : -1, onFocus: E, - ref: f, + ref: d, "data-testid": "sentinelEnd" })] }); @@ -55633,7 +55645,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: s, easing: c, in: u, - onEnter: f, + onEnter: d, onEntered: p, onEntering: m, onExit: g, @@ -55658,7 +55670,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, { mode: "enter" }); - j.style.webkitTransition = r.transitions.create("opacity", F), j.style.transition = r.transitions.create("opacity", F), f && f(j, V); + j.style.webkitTransition = r.transitions.create("opacity", F), j.style.transition = r.transitions.create("opacity", F), d && d(j, V); }), I = A(p), $ = A(b), L = A((j) => { const V = V0({ style: v, @@ -55751,7 +55763,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho invisible: s = !1, open: c, components: u = {}, - componentsProps: f = {}, + componentsProps: d = {}, slotProps: p = {}, slots: m = {}, TransitionComponent: g, @@ -55766,7 +55778,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho root: u.Root, ...m }, _ = { - ...f, + ...d, ...p }, C = { component: a, @@ -55815,8 +55827,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: s, onClose: c, open: u, - rootRef: f - } = e, p = T.useRef({}), m = T.useRef(null), g = T.useRef(null), y = er(g, f), [b, v] = T.useState(!u), x = EMe(s); + rootRef: d + } = e, p = T.useRef({}), m = T.useRef(null), g = T.useRef(null), y = er(g, d), [b, v] = T.useState(!u), x = EMe(s); let E = !0; (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (E = !1); const _ = () => Ar(m.current), C = () => (p.current.modalRef = g.current, p.current.mount = m.current, p.current), k = () => { @@ -55946,7 +55958,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: s, closeAfterTransition: c = !1, children: u, - container: f, + container: d, component: p, components: m = {}, componentsProps: g = {}, @@ -56038,7 +56050,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); return !k && !I && (!D || B) ? null : /* @__PURE__ */ S.jsx(gMe, { ref: W, - container: f, + container: d, disablePortal: x, children: /* @__PURE__ */ S.jsxs(Q, { ...ne, @@ -56113,7 +56125,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho anchorPosition: s, anchorReference: c = "anchorEl", children: u, - className: f, + className: d, container: p, elevation: m = 8, marginThreshold: g = 16, @@ -56271,7 +56283,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho open: y }, ownerState: I, - className: $e($.root, f) + className: $e($.root, d) }), [te, se] = ln("paper", { ref: P, className: $.paper, @@ -56353,7 +56365,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableAutoFocusItem: s = !1, MenuListProps: c = {}, onClose: u, - open: f, + open: d, PaperProps: p = {}, PopoverClasses: m, transitionDuration: g = "auto", @@ -56375,7 +56387,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transitionDuration: g, TransitionProps: b, variant: v - }, A = FMe(k), O = o && !s && f, P = T.useRef(null), I = (Y, B) => { + }, A = FMe(k), O = o && !s && d, P = T.useRef(null), I = (Y, B) => { P.current && P.current.adjustStyleForScrollbar(Y, { direction: C ? "rtl" : "ltr" }), y && y(Y, B); @@ -56445,7 +56457,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }, - open: f, + open: d, ref: n, transitionDuration: g, ownerState: k, @@ -56610,22 +56622,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho inputRef: s, variant: c = "standard", ...u - } = t, f = { + } = t, d = { ...t, disabled: o, variant: c, error: i - }, p = HMe(f); + }, p = HMe(d); return /* @__PURE__ */ S.jsxs(T.Fragment, { children: [/* @__PURE__ */ S.jsx(qMe, { - ownerState: f, + ownerState: d, className: $e(p.select, r), disabled: o, ref: s || n, ...u }), t.multiple ? null : /* @__PURE__ */ S.jsx(WMe, { as: a, - ownerState: f, + ownerState: d, className: p.icon })] }); @@ -56720,7 +56732,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: s, className: c, defaultOpen: u, - defaultValue: f, + defaultValue: d, disabled: p, displayEmpty: m, error: g = !1, @@ -56752,7 +56764,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...B } = t, [D, G] = Eh({ controlled: W, - default: f, + default: d, name: "Select" }), [z, H] = Eh({ controlled: L, @@ -56778,34 +56790,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; const De = Ar(Q.current).getElementById(v); if (De) { - const dt = () => { + const ft = () => { getSelection().isCollapsed && Q.current.focus(); }; - return De.addEventListener("click", dt), () => { - De.removeEventListener("click", dt); + return De.addEventListener("click", ft), () => { + De.removeEventListener("click", ft); }; } }, [v]); - const ge = (De, dt) => { - De ? $ && $(dt) : A && A(dt), se || (J(a ? null : le.clientWidth), H(De)); + const ge = (De, ft) => { + De ? $ && $(ft) : A && A(ft), se || (J(a ? null : le.clientWidth), H(De)); }, Se = (De) => { I?.(De), De.button === 0 && (De.preventDefault(), Q.current.focus(), ge(!0, De)); }, Me = (De) => { ge(!1, De); }, je = T.Children.toArray(s), ze = (De) => { - const dt = je.find((hn) => hn.props.value === De.target.value); - dt !== void 0 && (G(dt.props.value), k && k(De, dt)); - }, Ye = (De) => (dt) => { + const ft = je.find((hn) => hn.props.value === De.target.value); + ft !== void 0 && (G(ft.props.value), k && k(De, ft)); + }, Ye = (De) => (ft) => { let hn; - if (dt.currentTarget.hasAttribute("tabindex")) { + if (ft.currentTarget.hasAttribute("tabindex")) { if (E) { hn = Array.isArray(D) ? D.slice() : []; const nr = D.indexOf(De.props.value); nr === -1 ? hn.push(De.props.value) : hn.splice(nr, 1); } else hn = De.props.value; - if (De.props.onClick && De.props.onClick(dt), D !== hn && (G(hn), k)) { - const nr = dt.nativeEvent || dt, Lo = new nr.constructor(nr.type, nr); + if (De.props.onClick && De.props.onClick(ft), D !== hn && (G(hn), k)) { + const nr = ft.nativeEvent || ft, Lo = new nr.constructor(nr.type, nr); Object.defineProperty(Lo, "target", { writable: !0, value: { @@ -56814,7 +56826,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), k(Lo, De); } - E || ge(!1, dt); + E || ge(!1, ft); } }, Ue = (De) => { N || ([ @@ -56837,35 +56849,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho delete B["aria-invalid"]; let Je, Ae; const oe = []; - let de = !1; + let fe = !1; (U0({ value: D - }) || m) && (U ? Je = U(D) : de = !0); + }) || m) && (U ? Je = U(D) : fe = !0); const _e = je.map((De) => { if (!/* @__PURE__ */ T.isValidElement(De)) return null; - let dt; + let ft; if (E) { if (!Array.isArray(D)) throw new Error(Va(2)); - dt = D.some((hn) => I3(hn, De.props.value)), dt && de && oe.push(De.props.children); + ft = D.some((hn) => I3(hn, De.props.value)), ft && fe && oe.push(De.props.children); } else - dt = I3(D, De.props.value), dt && de && (Ae = De.props.children); + ft = I3(D, De.props.value), ft && fe && (Ae = De.props.children); return /* @__PURE__ */ T.cloneElement(De, { - "aria-selected": dt ? "true" : "false", + "aria-selected": ft ? "true" : "false", onClick: Ye(De), onKeyUp: (hn) => { hn.key === " " && hn.preventDefault(), De.props.onKeyUp && De.props.onKeyUp(hn); }, role: "option", - selected: dt, + selected: ft, value: void 0, // The value is most likely not a valid HTML attribute. "data-value": De.props.value // Instead, we provide it as a data attribute. }); }); - de && (E ? oe.length === 0 ? Je = null : Je = oe.reduce((De, dt, hn) => (De.push(dt), hn < oe.length - 1 && De.push(", "), De), []) : Je = Ae); + fe && (E ? oe.length === 0 ? Je = null : Je = oe.reduce((De, ft, hn) => (De.push(ft), hn < oe.length - 1 && De.push(", "), De), []) : Je = Ae); let Ce = ue; !a && se && ne && (Ce = le.clientWidth); let Oe; @@ -56882,7 +56894,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, xn = { ...x.MenuListProps, ...typeof x.slotProps?.list == "function" ? x.slotProps.list(Ot) : x.slotProps?.list - }, Mt = Id(); + }, Mt = $f(); return /* @__PURE__ */ S.jsxs(T.Fragment, { children: [/* @__PURE__ */ S.jsx(KMe, { as: "div", @@ -56994,7 +57006,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: s, defaultOpen: c = !1, displayEmpty: u = !1, - IconComponent: f = eNe, + IconComponent: d = eNe, id: p, input: m, inputProps: g, @@ -57041,7 +57053,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho inputProps: { children: i, error: N.error, - IconComponent: f, + IconComponent: d, variant: U, type: void 0, // We render a select. We can ignore the type provided by the `Input`. @@ -57110,7 +57122,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: s, color: c = "primary", defaultValue: u, - disabled: f = !1, + disabled: d = !1, error: p = !1, FormHelperTextProps: m, fullWidth: g = !1, @@ -57143,14 +57155,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...r, autoFocus: i, color: c, - disabled: f, + disabled: d, error: p, fullWidth: g, multiline: O, required: U, select: V, variant: D - }, H = sNe(z), X = Id(b), Q = y && X ? `${X}-helper-text` : void 0, ne = C && X ? `${X}-label` : void 0, te = aNe[D], se = { + }, H = sNe(z), X = $f(b), Q = y && X ? `${X}-helper-text` : void 0, ne = C && X ? `${X}-label` : void 0, te = aNe[D], se = { slots: K, slotProps: { input: E, @@ -57173,7 +57185,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: $e(H.root, s), ref: n, additionalProps: { - disabled: f, + disabled: d, error: p, fullWidth: g, required: U, @@ -57260,7 +57272,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: s, type: c, label: u, - hideLabel: f, + hideLabel: d, hideError: p, value: m, onChange: g, @@ -57276,16 +57288,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho registry: O, InputLabelProps: P, ...I - } = e, $ = fV(_, c, E), { step: L, min: N, max: U, accept: j, ...V } = $, F = { step: L, min: N, max: U, accept: j, ..._.examples ? { list: _h(t) } : void 0 }, K = ({ target: { value: D } }) => g(D === "" ? E.emptyValue : D), W = ({ target: D }) => b(t, D && D.value), Y = ({ target: D }) => v(t, D && D.value), B = cNe.includes(c) ? { + } = e, $ = dV(_, c, E), { step: L, min: N, max: U, accept: j, ...V } = $, F = { step: L, min: N, max: U, accept: j, ..._.examples ? { list: _h(t) } : void 0 }, K = ({ target: { value: D } }) => g(D === "" ? E.emptyValue : D), W = ({ target: D }) => b(t, D && D.value), Y = ({ target: D }) => v(t, D && D.value), B = cNe.includes(c) ? { ...P, shrink: !0 } : P; - return S.jsxs(S.Fragment, { children: [S.jsx(WA, { id: t, name: r || t, placeholder: o, label: Pc(u || void 0, f, void 0), autoFocus: x, required: i, disabled: s || a, slotProps: { htmlInput: F, inputLabel: B }, ...V, value: m || m === 0 ? m : "", error: k.length > 0, onChange: y || K, onBlur: W, onFocus: Y, ...I, "aria-describedby": go(t, !!_.examples) }), Array.isArray(_.examples) && S.jsx("datalist", { id: _h(t), children: _.examples.concat(_.default && !_.examples.includes(_.default) ? [_.default] : []).map((D) => S.jsx("option", { value: D }, D)) })] }); + return S.jsxs(S.Fragment, { children: [S.jsx(WA, { id: t, name: r || t, placeholder: o, label: Pc(u || void 0, d, void 0), autoFocus: x, required: i, disabled: s || a, slotProps: { htmlInput: F, inputLabel: B }, ...V, value: m || m === 0 ? m : "", error: k.length > 0, onChange: y || K, onBlur: W, onFocus: Y, ...I, "aria-describedby": go(t, !!_.examples) }), Array.isArray(_.examples) && S.jsx("datalist", { id: _h(t), children: _.examples.concat(_.default && !_.examples.includes(_.default) ? [_.default] : []).map((D) => S.jsx("option", { value: D }, D)) })] }); } - function dNe(e) { + function fNe(e) { return ot("MuiTypography", e); } - const $3 = nt("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), fNe = { + const $3 = nt("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), dNe = { primary: !0, secondary: !0, error: !0, @@ -57306,7 +57318,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } = e, s = { root: ["root", i, e.align !== "inherit" && `align${Ie(t)}`, n && "gutterBottom", r && "noWrap", o && "paragraph"] }; - return rt(s, dNe, a); + return rt(s, fNe, a); }, mNe = Re("span", { name: "MuiTypography", slot: "Root", @@ -57399,7 +57411,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } = ut({ props: t, name: "MuiTypography" - }), i = !fNe[r], a = pNe({ + }), i = !dNe[r], a = pNe({ ...o, ...i && { color: r @@ -57408,7 +57420,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho align: s = "inherit", className: c, component: u, - gutterBottom: f = !1, + gutterBottom: d = !1, noWrap: p = !1, paragraph: m = !1, variant: g = "body1", @@ -57420,7 +57432,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: r, className: c, component: u, - gutterBottom: f, + gutterBottom: d, noWrap: p, paragraph: m, variant: g, @@ -57640,7 +57652,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho component: s, components: c = {}, componentsProps: u = {}, - ContainerComponent: f = "li", + ContainerComponent: d = "li", ContainerProps: { className: p, ...m @@ -57678,10 +57690,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...C }; let Y = s || "li"; - return I ? (Y = !W.component && !s ? "div" : Y, f === "li" && (Y === "li" ? Y = "div" : W.component === "li" && (W.component = "div")), /* @__PURE__ */ S.jsx(Ua.Provider, { + return I ? (Y = !W.component && !s ? "div" : Y, d === "li" && (Y === "li" ? Y = "div" : W.component === "li" && (W.component = "div")), /* @__PURE__ */ S.jsx(Ua.Provider, { value: A, children: /* @__PURE__ */ S.jsxs(kNe, { - as: f, + as: d, className: $e(L.container, p), ref: N, ownerState: $, @@ -57839,7 +57851,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho inset: s = !1, primary: c, primaryTypographyProps: u, - secondary: f, + secondary: d, secondaryTypographyProps: p, slots: m = {}, slotProps: g = {}, @@ -57847,7 +57859,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } = r, { dense: b } = T.useContext(Ua); - let v = c ?? o, x = f; + let v = c ?? o, x = d; const E = { ...r, disableTypography: a, @@ -57942,27 +57954,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n ? S.jsx(UA, { component: "div", id: _A(t), style: { marginTop: "5px" }, children: S.jsx($A, { help: n, registry: o, uiSchema: r }) }) : null; } function qNe(e) { - const { id: t, children: n, classNames: r, style: o, disabled: i, displayLabel: a, hidden: s, label: c, onKeyRename: u, onKeyRenameBlur: f, onRemoveProperty: p, readonly: m, required: g, rawErrors: y = [], errors: b, help: v, description: x, rawDescription: E, schema: _, uiSchema: C, registry: k } = e, A = Qe(C), O = tt("WrapIfAdditionalTemplate", k, A); + const { id: t, children: n, classNames: r, style: o, disabled: i, displayLabel: a, hidden: s, label: c, onKeyRename: u, onKeyRenameBlur: d, onRemoveProperty: p, readonly: m, required: g, rawErrors: y = [], errors: b, help: v, description: x, rawDescription: E, schema: _, uiSchema: C, registry: k } = e, A = Qe(C), O = tt("WrapIfAdditionalTemplate", k, A); if (s) return S.jsx("div", { style: { display: "none" }, children: n }); const P = A.widget === "checkbox"; - return S.jsx(O, { classNames: r, style: o, disabled: i, id: t, label: c, displayLabel: a, rawDescription: E, onKeyRename: u, onKeyRenameBlur: f, onRemoveProperty: p, readonly: m, required: g, schema: _, uiSchema: C, registry: k, children: S.jsxs(BA, { fullWidth: !0, error: !!y.length, required: g, children: [n, a && !P && E ? S.jsx(Fi, { variant: "caption", color: "textSecondary", children: x }) : null, b, v] }) }); + return S.jsx(O, { classNames: r, style: o, disabled: i, id: t, label: c, displayLabel: a, rawDescription: E, onKeyRename: u, onKeyRenameBlur: d, onRemoveProperty: p, readonly: m, required: g, schema: _, uiSchema: C, registry: k, children: S.jsxs(BA, { fullWidth: !0, error: !!y.length, required: g, children: [n, a && !P && E ? S.jsx(Fi, { variant: "caption", color: "textSecondary", children: x }) : null, b, v] }) }); } function WNe(e) { const { children: t, column: n, ...r } = e; - return S.jsx(dr, { container: !n, ...r, children: t }); + return S.jsx(fr, { container: !n, ...r, children: t }); } function GNe(e) { const { optionSchemaField: t, selector: n } = e; return S.jsxs(pl, { sx: { mb: 2 }, children: [S.jsx(BA, { fullWidth: !0, sx: { mb: 2 }, children: n }), t] }); } function KNe(e) { - const { description: t, title: n, properties: r, required: o, disabled: i, readonly: a, uiSchema: s, fieldPathId: c, schema: u, formData: f, optionalDataControl: p, onAddProperty: m, registry: g } = e, y = Qe(s), b = tt("TitleFieldTemplate", g, y), v = tt("DescriptionFieldTemplate", g, y), x = !a && !i, { ButtonTemplates: { AddButton: E } } = g.templates; - return S.jsxs(S.Fragment, { children: [n && S.jsx(b, { id: b1(c), title: n, required: o, schema: u, uiSchema: s, registry: g, optionalDataControl: x ? p : void 0 }), t && S.jsx(v, { id: Nc(c), description: t, schema: u, uiSchema: s, registry: g }), S.jsxs(dr, { container: !0, spacing: 2, style: { marginTop: "10px" }, children: [x ? void 0 : p, r.map((_, C) => ( + const { description: t, title: n, properties: r, required: o, disabled: i, readonly: a, uiSchema: s, fieldPathId: c, schema: u, formData: d, optionalDataControl: p, onAddProperty: m, registry: g } = e, y = Qe(s), b = tt("TitleFieldTemplate", g, y), v = tt("DescriptionFieldTemplate", g, y), x = !a && !i, { ButtonTemplates: { AddButton: E } } = g.templates; + return S.jsxs(S.Fragment, { children: [n && S.jsx(b, { id: b1(c), title: n, required: o, schema: u, uiSchema: s, registry: g, optionalDataControl: x ? p : void 0 }), t && S.jsx(v, { id: Nc(c), description: t, schema: u, uiSchema: s, registry: g }), S.jsxs(fr, { container: !0, spacing: 2, style: { marginTop: "10px" }, children: [x ? void 0 : p, r.map((_, C) => ( // Remove the if the inner element is hidden as the // itself would otherwise still take up space. - _.hidden ? _.content : S.jsx(dr, { size: { xs: 12 }, style: { marginBottom: "10px" }, children: _.content }, C) - ))] }), X8(u, s, f) && S.jsx(dr, { container: !0, justifyContent: "flex-end", children: S.jsx(dr, { children: S.jsx(E, { id: ji(c, "add"), className: "rjsf-object-property-expand", onClick: m, disabled: i || a, uiSchema: s, registry: g }) }) })] }); + _.hidden ? _.content : S.jsx(fr, { size: { xs: 12 }, style: { marginBottom: "10px" }, children: _.content }, C) + ))] }), X8(u, s, d) && S.jsx(fr, { container: !0, justifyContent: "flex-end", children: S.jsx(fr, { children: S.jsx(E, { id: ji(c, "add"), className: "rjsf-object-property-expand", onClick: m, disabled: i || a, uiSchema: s, registry: g }) }) })] }); } function YNe(e) { const { id: t, registry: n, label: r, onAddClick: o, onRemoveClick: i } = e; @@ -57987,11 +57999,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho endIcon: ["icon", "endIcon", `iconSize${Ie(o)}`], loadingIndicator: ["loadingIndicator"], loadingWrapper: ["loadingWrapper"] - }, f = rt(u, XNe, c); + }, d = rt(u, XNe, c); return { ...c, // forward the focused, disabled, etc. classes to the ButtonBase - ...f + ...d }; }, sH = [{ props: { @@ -58419,7 +58431,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: s, color: c = "primary", component: u = "button", - className: f, + className: d, disabled: p = !1, disableElevation: m = !1, disableFocusRipple: g = !1, @@ -58435,7 +58447,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: O, variant: P = "text", ...I - } = a, $ = Id(x), L = _ ?? /* @__PURE__ */ S.jsx(KV, { + } = a, $ = $f(x), L = _ ?? /* @__PURE__ */ S.jsx(KV, { "aria-labelledby": $, color: "inherit", size: 16 @@ -58483,7 +58495,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ) : null; return /* @__PURE__ */ S.jsxs(ePe, { ownerState: N, - className: $e(r.className, U.root, f, F), + className: $e(r.className, U.root, d, F), component: u, disabled: p || E, focusRipple: !g, @@ -58695,7 +58707,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho orientation: s = "horizontal", component: c = i || s === "vertical" ? "div" : "hr", flexItem: u = !1, - light: f = !1, + light: d = !1, role: p = c !== "hr" ? "separator" : void 0, textAlign: m = "center", variant: g = "fullWidth", @@ -58705,7 +58717,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho absolute: o, component: c, flexItem: u, - light: f, + light: d, orientation: s, role: p, textAlign: m, @@ -58729,18 +58741,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho BC && (BC.muiSkipListHighlight = !0); function uPe({ id: e, title: t, optionalDataControl: n }) { let r = S.jsx(Fi, { variant: "h5", children: t }); - return n && (r = S.jsxs(dr, { container: !0, spacing: 0, children: [S.jsx(dr, { size: "grow", children: r }), S.jsx(dr, { justifyContent: "flex-end", children: n })] })), S.jsxs(pl, { id: e, mb: 1, mt: 1, children: [r, S.jsx(BC, {})] }); + return n && (r = S.jsxs(fr, { container: !0, spacing: 0, children: [S.jsx(fr, { size: "grow", children: r }), S.jsx(fr, { justifyContent: "flex-end", children: n })] })), S.jsxs(pl, { id: e, mb: 1, mt: 1, children: [r, S.jsx(BC, {})] }); } - function dPe(e) { - const { children: t, classNames: n, style: r, disabled: o, id: i, label: a, displayLabel: s, onKeyRenameBlur: c, onRemoveProperty: u, readonly: f, required: p, schema: m, uiSchema: g, registry: y } = e, { templates: b, translateString: v } = y, { RemoveButton: x } = b.ButtonTemplates, E = v(bt.KeyLabel, [a]), _ = Ba in m, C = { + function fPe(e) { + const { children: t, classNames: n, style: r, disabled: o, id: i, label: a, displayLabel: s, onKeyRenameBlur: c, onRemoveProperty: u, readonly: d, required: p, schema: m, uiSchema: g, registry: y } = e, { templates: b, translateString: v } = y, { RemoveButton: x } = b.ButtonTemplates, E = v(bt.KeyLabel, [a]), _ = Ba in m, C = { flex: 1, paddingLeft: 6, paddingRight: 6, fontWeight: "bold" }; - return _ ? S.jsxs(dr, { container: !0, alignItems: "flex-start", spacing: 2, className: n, style: r, children: [S.jsx(dr, { size: 5.5, children: S.jsx(WA, { fullWidth: !0, required: p, label: s ? E : void 0, defaultValue: a, disabled: o || f, id: `${i}-key`, name: `${i}-key`, onBlur: f ? void 0 : c, type: "text" }) }), S.jsx(dr, { size: 5.5, children: t }), S.jsx(dr, { sx: { mt: 1.5 }, children: S.jsx(x, { id: ji(i, "remove"), className: "rjsf-object-property-remove", iconType: "default", style: C, disabled: o || f, onClick: u, uiSchema: g, registry: y }) })] }, `${i}-key`) : S.jsx("div", { className: n, style: r, children: t }); + return _ ? S.jsxs(fr, { container: !0, alignItems: "flex-start", spacing: 2, className: n, style: r, children: [S.jsx(fr, { size: 5.5, children: S.jsx(WA, { fullWidth: !0, required: p, label: s ? E : void 0, defaultValue: a, disabled: o || d, id: `${i}-key`, name: `${i}-key`, onBlur: d ? void 0 : c, type: "text" }) }), S.jsx(fr, { size: 5.5, children: t }), S.jsx(fr, { sx: { mt: 1.5 }, children: S.jsx(x, { id: ji(i, "remove"), className: "rjsf-object-property-remove", iconType: "default", style: C, disabled: o || d, onClick: u, uiSchema: g, registry: y }) })] }, `${i}-key`) : S.jsx("div", { className: n, style: r, children: t }); } - function fPe() { + function dPe() { return { ArrayFieldItemTemplate: hOe, ArrayFieldTemplate: mOe, @@ -58763,7 +58775,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ObjectFieldTemplate: KNe, OptionalDataControlsTemplate: YNe, TitleFieldTemplate: uPe, - WrapIfAdditionalTemplate: dPe + WrapIfAdditionalTemplate: fPe }; } function pPe(e) { @@ -58842,7 +58854,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: s, disableFocusRipple: c = !1, edge: u = !1, - icon: f, + icon: d, id: p, inputProps: m, inputRef: g, @@ -58946,7 +58958,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...G, children: [/* @__PURE__ */ S.jsx(z, { ...H - }), $ ? i : f] + }), $ ? i : d] }); }), yPe = po(/* @__PURE__ */ S.jsx("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" @@ -59043,7 +59055,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho indeterminate: s = !1, indeterminateIcon: c = CPe, inputProps: u, - size: f = "medium", + size: d = "medium", disableRipple: p = !1, className: m, slots: g = {}, @@ -59054,7 +59066,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableRipple: p, color: i, indeterminate: s, - size: f + size: d }, _ = wPe(E), C = y.input ?? u, [k, A] = ln("root", { ref: n, elementType: SPe, @@ -59069,10 +59081,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho additionalProps: { type: "checkbox", icon: /* @__PURE__ */ T.cloneElement(v, { - fontSize: v.props.fontSize ?? f + fontSize: v.props.fontSize ?? d }), checkedIcon: /* @__PURE__ */ T.cloneElement(x, { - fontSize: x.props.fontSize ?? f + fontSize: x.props.fontSize ?? d }), disableRipple: p, slots: g, @@ -59186,7 +59198,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho control: s, disabled: c, disableTypography: u, - inputRef: f, + inputRef: d, label: p, labelPlacement: m = "end", name: g, @@ -59247,8 +59259,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); function OPe(e) { var t; - const { schema: n, id: r, htmlName: o, value: i, disabled: a, readonly: s, label: c = "", hideLabel: u, autofocus: f, onChange: p, onBlur: m, onFocus: g, registry: y, options: b, uiSchema: v } = e, x = tt("DescriptionFieldTemplate", y, b), E = jp(n), _ = (O, P) => p(P), C = () => m(r, i), k = () => g(r, i), A = (t = b.description) !== null && t !== void 0 ? t : n.description; - return S.jsxs(S.Fragment, { children: [!u && A && S.jsx(x, { id: Nc(r), description: A, schema: n, uiSchema: v, registry: y }), S.jsx(GA, { control: S.jsx(cH, { id: r, name: o || r, checked: typeof i > "u" ? !1 : !!i, required: E, disabled: a || s, autoFocus: f, onChange: _, onBlur: C, onFocus: k, "aria-describedby": go(r) }), label: Pc(c, u, !1) })] }); + const { schema: n, id: r, htmlName: o, value: i, disabled: a, readonly: s, label: c = "", hideLabel: u, autofocus: d, onChange: p, onBlur: m, onFocus: g, registry: y, options: b, uiSchema: v } = e, x = tt("DescriptionFieldTemplate", y, b), E = jp(n), _ = (O, P) => p(P), C = () => m(r, i), k = () => g(r, i), A = (t = b.description) !== null && t !== void 0 ? t : n.description; + return S.jsxs(S.Fragment, { children: [!u && A && S.jsx(x, { id: Nc(r), description: A, schema: n, uiSchema: v, registry: y }), S.jsx(GA, { control: S.jsx(cH, { id: r, name: o || r, checked: typeof i > "u" ? !1 : !!i, required: E, disabled: a || s, autoFocus: d, onChange: _, onBlur: C, onFocus: k, "aria-describedby": go(r) }), label: Pc(c, u, !1) })] }); } function MPe(e) { return ot("MuiFormGroup", e); @@ -59300,17 +59312,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...r, row: i, error: c.error - }, f = NPe(u); + }, d = NPe(u); return /* @__PURE__ */ S.jsx(PPe, { - className: $e(f.root, o), + className: $e(d.root, o), ownerState: u, ref: n, ...a }); }); - function IPe({ label: e, hideLabel: t, id: n, htmlName: r, disabled: o, options: i, value: a, autofocus: s, readonly: c, required: u, onChange: f, onBlur: p, onFocus: m }) { + function IPe({ label: e, hideLabel: t, id: n, htmlName: r, disabled: o, options: i, value: a, autofocus: s, readonly: c, required: u, onChange: d, onBlur: p, onFocus: m }) { const { enumOptions: g, enumDisabled: y, inline: b, emptyValue: v } = i, x = Array.isArray(a) ? a : [a], E = (k) => ({ target: { checked: A } }) => { - f(A ? lV(k, x, g) : sV(k, x, g)); + d(A ? lV(k, x, g) : sV(k, x, g)); }, _ = ({ target: k }) => p(n, Jn(k && k.value, g, v)), C = ({ target: k }) => m(n, Jn(k && k.value, g, v)); return S.jsxs(S.Fragment, { children: [Pc(S.jsx(N1, { required: u, htmlFor: n, children: e || void 0 }), t), S.jsx(uH, { id: n, row: !!b, children: Array.isArray(g) && g.map((k, A) => { const O = v1(k.value, x), P = Array.isArray(y) && y.indexOf(k.value) !== -1, I = S.jsx(cH, { id: x1(n, A), name: r || n, checked: O, disabled: o || P || c, autoFocus: s && A === 0, onChange: E(A), onBlur: _, onFocus: C, "aria-describedby": go(n) }); @@ -59357,7 +59369,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }] }))); - function dH(e) { + function fH(e) { const { checked: t = !1, classes: n = {}, @@ -59380,9 +59392,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })] }); } - const fH = /* @__PURE__ */ T.createContext(void 0); + const dH = /* @__PURE__ */ T.createContext(void 0); function zPe() { - return T.useContext(fH); + return T.useContext(dH); } function BPe(e) { return ot("MuiRadio", e); @@ -59466,9 +59478,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function HPe(e, t) { return typeof t == "object" && t !== null ? e === t : String(e) === String(t); } - const qPe = /* @__PURE__ */ S.jsx(dH, { + const qPe = /* @__PURE__ */ S.jsx(fH, { checked: !0 - }), WPe = /* @__PURE__ */ S.jsx(dH, {}), GPe = /* @__PURE__ */ T.forwardRef(function(t, n) { + }), WPe = /* @__PURE__ */ S.jsx(fH, {}), GPe = /* @__PURE__ */ T.forwardRef(function(t, n) { const r = ut({ props: t, name: "MuiRadio" @@ -59479,7 +59491,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho icon: s = WPe, name: c, onChange: u, - size: f = "medium", + size: d = "medium", className: p, disabled: m, disableRipple: g = !1, @@ -59495,7 +59507,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: _, disableRipple: g, color: a, - size: f + size: d }, k = UPe(C), A = zPe(); let O = o; const P = jC(u, A && A.onChange); @@ -59521,10 +59533,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho additionalProps: { type: "radio", icon: /* @__PURE__ */ T.cloneElement(s, { - fontSize: s.props.fontSize ?? f + fontSize: s.props.fontSize ?? d }), checkedIcon: /* @__PURE__ */ T.cloneElement(i, { - fontSize: i.props.fontSize ?? f + fontSize: i.props.fontSize ?? d }), disabled: _, name: I, @@ -59565,7 +59577,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho name: s, onChange: c, value: u, - ...f + ...d } = t, p = T.useRef(null), m = YPe(t), [g, y] = Eh({ controlled: u, default: a, @@ -59577,27 +59589,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho E || (E = p.current.querySelector("input:not(:disabled)")), E && E.focus(); } }), []); - const b = er(n, p), v = Id(s), x = T.useMemo(() => ({ + const b = er(n, p), v = $f(s), x = T.useMemo(() => ({ name: v, onChange(E) { y(E.target.value), c && c(E, E.target.value); }, value: g }), [v, c, y, g]); - return /* @__PURE__ */ S.jsx(fH.Provider, { + return /* @__PURE__ */ S.jsx(dH.Provider, { value: x, children: /* @__PURE__ */ S.jsx(uH, { role: "radiogroup", ref: b, className: $e(m.root, i), - ...f, + ...d, children: o }) }); }); - function ZPe({ id: e, htmlName: t, options: n, value: r, required: o, disabled: i, readonly: a, label: s, hideLabel: c, onChange: u, onBlur: f, onFocus: p }) { + function ZPe({ id: e, htmlName: t, options: n, value: r, required: o, disabled: i, readonly: a, label: s, hideLabel: c, onChange: u, onBlur: d, onFocus: p }) { var m; - const { enumOptions: g, enumDisabled: y, emptyValue: b } = n, v = (k, A) => u(Jn(A, g, b)), x = ({ target: k }) => f(e, Jn(k && k.value, g, b)), E = ({ target: k }) => p(e, Jn(k && k.value, g, b)), _ = n ? n.inline : !1, C = (m = bA(r, g)) !== null && m !== void 0 ? m : null; + const { enumOptions: g, enumDisabled: y, emptyValue: b } = n, v = (k, A) => u(Jn(A, g, b)), x = ({ target: k }) => d(e, Jn(k && k.value, g, b)), E = ({ target: k }) => p(e, Jn(k && k.value, g, b)), _ = n ? n.inline : !1, C = (m = bA(r, g)) !== null && m !== void 0 ? m : null; return S.jsxs(S.Fragment, { children: [Pc(S.jsx(N1, { required: o, htmlFor: e, children: s || void 0 }), c), S.jsx(XPe, { id: e, name: t || e, value: C, row: _, onChange: v, onBlur: x, onFocus: E, "aria-describedby": go(e), children: Array.isArray(g) && g.map((k, A) => { const O = Array.isArray(y) && y.indexOf(k.value) !== -1; return S.jsx(GA, { control: S.jsx(GPe, { name: t || e, id: x1(e, A), color: "primary" }), label: k.label, value: String(A), disabled: i || O || a }, A); @@ -59732,7 +59744,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho max: s = 100, min: c = 0, name: u, - onChange: f, + onChange: d, onChangeCommitted: p, orientation: m = "horizontal", rootRef: g, @@ -59745,7 +59757,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho controlled: E, default: n ?? c, name: "Slider" - }), j = f && ((Ae, oe, de) => { + }), j = d && ((Ae, oe, fe) => { const _e = Ae.nativeEvent || Ae, Ce = new _e.constructor(_e.type, _e); Object.defineProperty(Ce, "target", { writable: !0, @@ -59753,43 +59765,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: oe, name: u } - }), L.current = oe, f(Ce, oe, de); + }), L.current = oe, d(Ce, oe, fe); }), V = Array.isArray(N); let F = V ? N.slice().sort(pH) : [N]; F = F.map((Ae) => Ae == null ? c : zu(Ae, c, s)); const K = a === !0 && b !== null ? [...Array(Math.floor((s - c) / b) + 1)].map((Ae, oe) => ({ value: c + b * oe })) : a || [], W = K.map((Ae) => Ae.value), [Y, B] = T.useState(-1), D = T.useRef(null), G = er(g, D), z = (Ae) => (oe) => { - const de = Number(oe.currentTarget.getAttribute("data-index")); - t0(oe.target) && B(de), O(de), Ae?.onFocus?.(oe); + const fe = Number(oe.currentTarget.getAttribute("data-index")); + t0(oe.target) && B(fe), O(fe), Ae?.onFocus?.(oe); }, H = (Ae) => (oe) => { t0(oe.target) || B(-1), O(-1), Ae?.onBlur?.(oe); }, X = (Ae, oe) => { - const de = Number(Ae.currentTarget.getAttribute("data-index")), _e = F[de], Ce = W.indexOf(_e); + const fe = Number(Ae.currentTarget.getAttribute("data-index")), _e = F[fe], Ce = W.indexOf(_e); let Oe = oe; if (K && b == null) { const He = W[W.length - 1]; Oe >= He ? Oe = He : Oe <= W[0] ? Oe = W[0] : Oe = Oe < _e ? W[Ce - 1] : W[Ce + 1]; } if (Oe = zu(Oe, c, s), V) { - o && (Oe = zu(Oe, F[de - 1] || -1 / 0, F[de + 1] || 1 / 0)); + o && (Oe = zu(Oe, F[fe - 1] || -1 / 0, F[fe + 1] || 1 / 0)); const He = Oe; Oe = U3({ values: F, newValue: Oe, - index: de + index: fe }); - let Ot = de; + let Ot = fe; o || (Ot = Oe.indexOf(He)), gv({ sliderRef: D, activeIndex: Ot }); } - U(Oe), B(de), j && !yv(Oe, N) && j(Ae, Oe, de), p && p(Ae, L.current ?? Oe); + U(Oe), B(fe), j && !yv(Oe, N) && j(Ae, Oe, fe), p && p(Ae, L.current ?? Oe); }, Q = (Ae) => (oe) => { if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(oe.key)) { oe.preventDefault(); - const de = Number(oe.currentTarget.getAttribute("data-index")), _e = F[de]; + const fe = Number(oe.currentTarget.getAttribute("data-index")), _e = F[fe]; let Ce = null; if (b != null) { const Oe = oe.shiftKey ? v : b; @@ -59840,13 +59852,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho move: oe = !1 }) => { const { - current: de + current: fe } = D, { width: _e, height: Ce, bottom: Oe, left: He - } = de.getBoundingClientRect(); + } = fe.getBoundingClientRect(); let Ot; se.startsWith("vertical") ? Ot = (Oe - Ae.y) / Ce : Ot = (Ae.x - He) / _e, se.includes("-reverse") && (Ot = 1 - Ot); let it; @@ -59880,7 +59892,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return; } const { - newValue: de, + newValue: fe, activeIndex: _e } = ue({ finger: oe, @@ -59890,31 +59902,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho sliderRef: D, activeIndex: _e, setActive: k - }), U(de), !P && $.current > e2e && I(!0), j && !yv(de, N) && j(Ae, de, _e); + }), U(fe), !P && $.current > e2e && I(!0), j && !yv(fe, N) && j(Ae, fe, _e); }), ee = Bi((Ae) => { const oe = mv(Ae, _); if (I(!1), !oe) return; const { - newValue: de + newValue: fe } = ue({ finger: oe, move: !0 }); - k(-1), Ae.type === "touchend" && O(-1), p && p(Ae, L.current ?? de), _.current = void 0, le(); + k(-1), Ae.type === "touchend" && O(-1), p && p(Ae, L.current ?? fe), _.current = void 0, le(); }), ie = Bi((Ae) => { if (r) return; V3() || Ae.preventDefault(); const oe = Ae.changedTouches[0]; oe != null && (_.current = oe.identifier); - const de = mv(Ae, _); - if (de !== !1) { + const fe = mv(Ae, _); + if (fe !== !1) { const { newValue: Ce, activeIndex: Oe } = ue({ - finger: de + finger: fe }); gv({ sliderRef: D, @@ -59949,13 +59961,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (Ae.onMouseDown?.(oe), r || oe.defaultPrevented || oe.button !== 0) return; oe.preventDefault(); - const de = mv(oe, _); - if (de !== !1) { + const fe = mv(oe, _); + if (fe !== !1) { const { newValue: Ce, activeIndex: Oe } = ue({ - finger: de + finger: fe }); gv({ sliderRef: D, @@ -59969,11 +59981,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho passive: !0 }), _e.addEventListener("mouseup", ee); }, Se = H0(V ? F[0] : c, c, s), Me = H0(F[F.length - 1], c, s) - Se, je = (Ae = {}) => { - const oe = Ap(Ae), de = { + const oe = Ap(Ae), fe = { onMouseDown: ge(oe || {}) }, _e = { ...oe, - ...de + ...fe }; return { ...Ae, @@ -59982,19 +59994,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; }, ze = (Ae) => (oe) => { Ae.onMouseOver?.(oe); - const de = Number(oe.currentTarget.getAttribute("data-index")); - O(de); + const fe = Number(oe.currentTarget.getAttribute("data-index")); + O(fe); }, Ye = (Ae) => (oe) => { Ae.onMouseLeave?.(oe), O(-1); }, Ue = (Ae = {}) => { - const oe = Ap(Ae), de = { + const oe = Ap(Ae), fe = { onMouseOver: ze(oe || {}), onMouseLeave: Ye(oe || {}) }; return { ...Ae, ...oe, - ...de + ...fe }; }, Ne = (Ae) => ({ // So the non active thumb doesn't show its label on hover. @@ -60008,14 +60020,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho dragging: P, focusedThumbIndex: Y, getHiddenInputProps: (Ae = {}) => { - const oe = Ap(Ae), de = { + const oe = Ap(Ae), fe = { onChange: ne(oe || {}), onFocus: z(oe || {}), onBlur: H(oe || {}), onKeyDown: Q(oe || {}) }, _e = { ...oe, - ...de + ...fe }; return { tabIndex: x, @@ -60092,7 +60104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function H3(e) { return e; } - const d2e = Re("span", { + const f2e = Re("span", { name: "MuiSlider", slot: "Root", overridesResolver: (e, t) => { @@ -60192,7 +60204,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho marginRight: 44 } }] - }))), f2e = Re("span", { + }))), d2e = Re("span", { name: "MuiSlider", slot: "Rail" })({ @@ -60593,7 +60605,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // eslint-disable-next-line react/prop-types component: c = "span", components: u = {}, - componentsProps: f = {}, + componentsProps: d = {}, color: p = "primary", classes: m, className: g, @@ -60659,7 +60671,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho rootRef: n }); D.marked = ee.length > 0 && ee.some((on) => on.label), D.dragging = J, D.focusedThumbIndex = se; - const Me = v2e(D), je = j?.root ?? u.Root ?? d2e, ze = j?.rail ?? u.Rail ?? f2e, Ye = j?.track ?? u.Track ?? p2e, Ue = j?.thumb ?? u.Thumb ?? h2e, Ne = j?.valueLabel ?? u.ValueLabel ?? m2e, mt = j?.mark ?? u.Mark ?? g2e, Je = j?.markLabel ?? u.MarkLabel ?? y2e, Ae = j?.input ?? u.Input ?? "input", oe = U?.root ?? f.root, de = U?.rail ?? f.rail, _e = U?.track ?? f.track, Ce = U?.thumb ?? f.thumb, Oe = U?.valueLabel ?? f.valueLabel, He = U?.mark ?? f.mark, Ot = U?.markLabel ?? f.markLabel, it = U?.input ?? f.input, Et = Ia({ + const Me = v2e(D), je = j?.root ?? u.Root ?? f2e, ze = j?.rail ?? u.Rail ?? d2e, Ye = j?.track ?? u.Track ?? p2e, Ue = j?.thumb ?? u.Thumb ?? h2e, Ne = j?.valueLabel ?? u.ValueLabel ?? m2e, mt = j?.mark ?? u.Mark ?? g2e, Je = j?.markLabel ?? u.MarkLabel ?? y2e, Ae = j?.input ?? u.Input ?? "input", oe = U?.root ?? d.root, fe = U?.rail ?? d.rail, _e = U?.track ?? d.track, Ce = U?.thumb ?? d.thumb, Oe = U?.valueLabel ?? d.valueLabel, He = U?.mark ?? d.mark, Ot = U?.markLabel ?? d.markLabel, it = U?.input ?? d.input, Et = Ia({ elementType: je, getSlotProps: z, externalSlotProps: oe, @@ -60676,7 +60688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: [Me.root, g] }), xn = Ia({ elementType: ze, - externalSlotProps: de, + externalSlotProps: fe, ownerState: D, className: Me.rail }), Mt = Ia({ @@ -60702,7 +60714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...Ce?.ownerState }, className: Me.thumb - }), dt = Ia({ + }), ft = Ia({ elementType: Ne, externalSlotProps: Oe, ownerState: { @@ -60775,7 +60787,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho open: Q === an || ne === an || W === "on", disabled: b }, - ...dt, + ...ft, children: /* @__PURE__ */ S.jsx(Ue, { "data-index": an, ...De, @@ -60801,10 +60813,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }); function w2e(e) { - const { value: t, readonly: n, disabled: r, onBlur: o, onFocus: i, options: a, schema: s, onChange: c, required: u, label: f, hideLabel: p, id: m } = e, g = { value: t, label: f, id: m, name: m, ...dV(s) }, y = (x, E) => { + const { value: t, readonly: n, disabled: r, onBlur: o, onFocus: i, options: a, schema: s, onChange: c, required: u, label: d, hideLabel: p, id: m } = e, g = { value: t, label: d, id: m, name: m, ...fV(s) }, y = (x, E) => { c(E ?? a.emptyValue); }, b = ({ target: x }) => o(m, x && x.value), v = ({ target: x }) => i(m, x && x.value); - return S.jsxs(S.Fragment, { children: [Pc(S.jsx(N1, { required: u, htmlFor: m, children: f || void 0 }), p), S.jsx(x2e, { disabled: r || n, onChange: y, onBlur: b, onFocus: v, valueLabelDisplay: "auto", ...g, "aria-describedby": go(m) })] }); + return S.jsxs(S.Fragment, { children: [Pc(S.jsx(N1, { required: u, htmlFor: m, children: d || void 0 }), p), S.jsx(x2e, { disabled: r || n, onChange: y, onBlur: b, onFocus: v, valueLabelDisplay: "auto", ...g, "aria-describedby": go(m) })] }); } function S2e(e) { return ot("MuiMenuItem", e); @@ -60943,7 +60955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho divider: s = !1, disableGutters: c = !1, focusVisibleClassName: u, - role: f = "menuitem", + role: d = "menuitem", tabIndex: p, className: m, ...g @@ -60965,7 +60977,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: b, children: /* @__PURE__ */ S.jsx(C2e, { ref: _, - role: f, + role: d, tabIndex: C, component: i, focusVisibleClassName: $e(E.focusVisible, u), @@ -60988,7 +61000,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho required: s, disabled: c, placeholder: u, - readonly: f, + readonly: d, value: p, multiple: m, autofocus: g, @@ -61005,7 +61017,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { enumOptions: O, enumDisabled: P, emptyValue: I } = o; m = typeof m > "u" ? !1 : !!m; const $ = m ? [] : "", L = typeof p > "u" || m && p.length < 1 || !m && p === $, N = ({ target: { value: D } }) => y(Jn(D, O, I)), U = ({ target: D }) => b(t, Jn(D && D.value, O, I)), j = ({ target: D }) => v(t, Jn(D && D.value, O, I)), V = bA(p, O, m), { InputLabelProps: F, SelectProps: K, autocomplete: W, ...Y } = A, B = !m && e.default === void 0; - return S.jsxs(WA, { id: t, name: r || t, label: Pc(i || void 0, a, void 0), value: !L && typeof V < "u" ? V : $, required: s, disabled: c || f, autoFocus: g, autoComplete: W, placeholder: u, error: E.length > 0, onChange: N, onBlur: U, onFocus: j, ...Y, select: !0, InputLabelProps: { + return S.jsxs(WA, { id: t, name: r || t, label: Pc(i || void 0, a, void 0), value: !L && typeof V < "u" ? V : $, required: s, disabled: c || d, autoFocus: g, autoComplete: W, placeholder: u, error: E.length > 0, onChange: N, onBlur: U, onFocus: j, ...Y, select: !0, InputLabelProps: { ...F, shrink: !L }, SelectProps: { @@ -61033,7 +61045,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function hH() { return { - templates: fPe(), + templates: dPe(), widgets: A2e() }; } @@ -61077,9 +61089,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disabled: r = !1, readonly: o = !1 }) => { - const [i, a] = T.useState(null), [s, c] = T.useState(void 0), [u, f] = T.useState(void 0), p = T.useCallback(async () => { + const [i, a] = T.useState(null), [s, c] = T.useState(void 0), [u, d] = T.useState(void 0), p = T.useCallback(async () => { const g = await e(); - a(g.jsonSchema), c(g.uiSchema), f(g.formData); + a(g.jsonSchema), c(g.uiSchema), d(g.formData); }, [e]), m = T.useCallback( async (g) => { await t(g), n && await p(); @@ -61096,7 +61108,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho formData: u || void 0, validator: zke, liveValidate: "onChange", - onChange: ({ formData: g }) => f(g), + onChange: ({ formData: g }) => d(g), onSubmit: ({ formData: g }) => m(g), disabled: r, readonly: o @@ -61128,16 +61140,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const i = n?.value; return i && (typeof i == "object" && i !== null && "schema" in i && "data" in i ? (o.jsonSchema = i.schema, o.formData = i.data ?? {}) : o.formData = i), o; }, I2e = ({ inputconverter: e }) => { - const t = En(), { preview: n, full: r } = t.valuestore(), o = t.use(), [i, a] = T.useState(!1), s = im(), c = kc(o), u = o.render_options.schema, f = o.render_options.uiSchema, p = T.useMemo(() => { + const t = En(), { preview: n, full: r } = t.valuestore(), o = t.use(), [i, a] = T.useState(!1), s = im(), c = kc(o), u = o.render_options.schema, d = o.render_options.uiSchema, p = T.useMemo(() => { if (!u) throw new Error("No jsonSchema provided"); return P2e({ jsonSchema: u, - uiSchema: f, + uiSchema: d, full: r, readonly: o.connected }); - }, [u, f, r, n, o.connected]), m = T.useCallback( + }, [u, d, r, n, o.connected]), m = T.useCallback( async () => p, [p] ), g = T.useCallback( @@ -61171,13 +61183,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); }, $2e = { float: ube, - int: dbe, + int: fbe, bool: z0e, string: Cj, str: Cj, color: B0e, - select: fh, - enum: fh, + select: dh, + enum: dh, json_schema: I2e, bytes: A8(VT, "") }, j2e = {}, D2e = {}, wi = { @@ -61225,13 +61237,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [t.payload.plugin.node_renderers || {}, e.NodeRenderer], [t.payload.plugin.node_hooks || {}, e.NodeHooks] ]; - for (const [u, f] of s) { + for (const [u, d] of s) { if (Object.keys(u).length > 0) { if (r) a = !0; else for (const p in u) - if (!f[p]) { + if (!d[p]) { a = !0; break; } @@ -61241,8 +61253,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!a) return e; const c = { ...e }; - return s.forEach(([u, f]) => { - Object.assign(f, u); + return s.forEach(([u, d]) => { + Object.assign(d, u); }), c; } default: @@ -61321,7 +61333,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }, [] - ), f = T.useCallback( + ), d = T.useCallback( (y, b, v) => { o({ type: "EXTEND_DATA_VIEW_RENDER", @@ -61384,7 +61396,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho extendHandlePreviewRenderMapping: s, extendDataOverlayRenderMapping: c, extendDataPreviewRenderMapping: u, - extendDataViewRenderMapping: f, + extendDataViewRenderMapping: d, extendNodeHooks: m, extendFromPlugin: g }, @@ -61482,11 +61494,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho preview: t, ...n }) => { - const [r, o] = T.useState(!1), [i, a] = T.useState(!1), s = Vt(), c = En(), u = c.use(), f = im(), [p, m] = B2e(u), g = s.local_state(() => s.reactflowRef); + const [r, o] = T.useState(!1), [i, a] = T.useState(!1), s = Vt(), c = En(), u = c.use(), d = im(), [p, m] = B2e(u), g = s.local_state(() => s.reactflowRef); return ( // /* @__PURE__ */ S.jsxs(s6, { open: r || i, onOpenChange: a, children: [ - /* @__PURE__ */ S.jsx(l6, { asChild: !0, children: /* @__PURE__ */ S.jsx(dh, { id: u.id, "data-type": e, ...n }) }), + /* @__PURE__ */ S.jsx(l6, { asChild: !0, children: /* @__PURE__ */ S.jsx(fh, { id: u.id, "data-type": e, ...n }) }), /* @__PURE__ */ S.jsx(c6, { container: g, children: /* @__PURE__ */ S.jsxs( u6, { @@ -61508,7 +61520,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho title: u.full_id, trigger: /* @__PURE__ */ S.jsx(bz, {}), onOpenChange: (y) => { - y && f?.(), o(y); + y && d?.(), o(y); }, children: /* @__PURE__ */ S.jsx( yH, @@ -61528,7 +61540,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ) }) ] }) ); - }, Od = { + }, Mf = { "": [(e) => e, (e) => e], str_to_json: [ (e) => JSON.parse(e), @@ -61553,7 +61565,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho setNodeSettingsPath: e, setShowSettings: t }) => { - const r = Vt().render_options(), i = En().use(), [a, s] = Cc(i, r.typemap || {}), { Inputrenderer: c } = T.useContext(as), u = a ? i.value_options?.options ? fh : c[a] : void 0, f = Od[(s && r.inputconverter?.[s]) ?? ""] || Od[""], { keys: p } = Xk(), m = (g) => { + const r = Vt().render_options(), i = En().use(), [a, s] = Cc(i, r.typemap || {}), { Inputrenderer: c } = T.useContext(as), u = a ? i.value_options?.options ? dh : c[a] : void 0, d = Mf[(s && r.inputconverter?.[s]) ?? ""] || Mf[""], { keys: p } = Xk(), m = (g) => { p.has("s") && (e && e("inputs/" + i.id), t && t(!0), g.stopPropagation()); }; return i.hidden ? null : /* @__PURE__ */ S.jsxs( @@ -61572,7 +61584,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ), /* @__PURE__ */ S.jsxs("div", { className: "inner_nodeio", children: [ - u && /* @__PURE__ */ S.jsx("div", { className: "iovaluefield nodrag", "data-type": a, children: /* @__PURE__ */ S.jsx(u, { inputconverter: f }) }), + u && /* @__PURE__ */ S.jsx("div", { className: "iovaluefield nodrag", "data-type": a, children: /* @__PURE__ */ S.jsx(u, { inputconverter: d }) }), /* @__PURE__ */ S.jsx("div", { className: "ioname", children: i.name }) ] }), /* @__PURE__ */ S.jsx( @@ -61590,7 +61602,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho setNodeSettingsPath: e, setShowSettings: t }) => { - const r = Vt().render_options(), i = En().use(), [a] = Cc(i, r.typemap || {}), { Outputrenderer: s } = T.useContext(as), { keys: c } = Xk(), u = a ? s[a] : void 0, f = (p) => { + const r = Vt().render_options(), i = En().use(), [a] = Cc(i, r.typemap || {}), { Outputrenderer: s } = T.useContext(as), { keys: c } = Xk(), u = a ? s[a] : void 0, d = (p) => { c.has("s") && (e && e("outputs/" + i.id), t && t(!0), p.stopPropagation()); }; return i.hidden ? null : /* @__PURE__ */ S.jsxs( @@ -61598,7 +61610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { className: "nodeoutput", "data-type": a, - onClick: f, + onClick: d, children: [ /* @__PURE__ */ S.jsx( UC, @@ -61616,7 +61628,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ); }, q2e = () => { - const t = Vt().render_options(), r = En().use(), o = qT(), [i, a] = Cc(r, t.typemap || {}), { Inputrenderer: s } = T.useContext(as), c = i ? r.value_options?.options ? fh : s[i] : void 0, u = Od[(a && t.inputconverter?.[a]) ?? ""] || Od[""]; + const t = Vt().render_options(), r = En().use(), o = qT(), [i, a] = Cc(r, t.typemap || {}), { Inputrenderer: s } = T.useContext(as), c = i ? r.value_options?.options ? dh : s[i] : void 0, u = Mf[(a && t.inputconverter?.[a]) ?? ""] || Mf[""]; return /* @__PURE__ */ S.jsxs("div", { className: "nodesettings_component", children: [ /* @__PURE__ */ S.jsx("div", { children: r.name }), c && /* @__PURE__ */ S.jsx(c, { inputconverter: u }), @@ -61628,8 +61640,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho className: "styledcheckbox", type: "checkbox", disabled: r.connected, - onChange: (f) => { - o?.(f.target.checked); + onChange: (d) => { + o?.(d.target.checked); }, checked: r.hidden } @@ -61668,10 +61680,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ioid: r.id, options: { name: a } }); - }, [r, t, a]), [f, p] = Cc( + }, [r, t, a]), [d, p] = Cc( r, o.typemap || {} - ), m = Od[(p && o.inputconverter?.[p]) ?? ""] || Od[""], { Inputrenderer: g } = T.useContext(as), y = f ? r.value_options?.options ? fh : g[f] : void 0; + ), m = Mf[(p && o.inputconverter?.[p]) ?? ""] || Mf[""], { Inputrenderer: g } = T.useContext(as), y = d ? r.value_options?.options ? dh : g[d] : void 0; return /* @__PURE__ */ S.jsxs("div", { className: "nodesettings-io-entry funcnodes-control-group", children: [ /* @__PURE__ */ S.jsxs("div", { className: "funcnodes-control-row", children: [ /* @__PURE__ */ S.jsx("label", { htmlFor: `io-name-${r.id}`, children: "Name:" }), @@ -61772,22 +61784,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho () => s.current, [] ); - const c = T.useCallback((f) => { - const p = f.width, m = f.height, g = Y2e(p); + const c = T.useCallback((d) => { + const p = d.width, m = d.height, g = Y2e(p); a((y) => y.wKey === g && y.w === p && y.h === m ? y : { wKey: g, w: p, h: m }); }, []), u = T.useMemo( () => K2e(c, 16), [c] ); return T.useEffect(() => { - const f = s.current; - if (!f) + const d = s.current; + if (!d) return; const p = new ResizeObserver((m) => { const g = m[0]; g && u(g.contentRect); }); - return c(f.getBoundingClientRect()), p.observe(f), () => { + return c(d.getBoundingClientRect()), p.observe(d), () => { p.disconnect(); }; }, [c, u]), /* @__PURE__ */ S.jsx(xH.Provider, { value: i, children: /* @__PURE__ */ S.jsx( @@ -61834,14 +61846,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho grow: o = !1, ...i }) => { - const a = "float-container", s = W3(e, "direction"), c = W3(o, "", "grow", "no-grow"), f = [ + const a = "float-container", s = W3(e, "direction"), c = W3(o, "", "grow", "no-grow"), d = [ a, s, c, typeof r == "boolean" && r ? "flex-wrap" : "", t ].filter(Boolean).join(" "); - return /* @__PURE__ */ S.jsx("div", { className: f, ...i, children: n }); + return /* @__PURE__ */ S.jsx("div", { className: d, ...i, children: n }); } ); el.displayName = "FloatContainer"; @@ -61867,7 +61879,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho style: s, containerClassName: c, expandIcons: u, - collapseIcons: f, + collapseIcons: d, onExpandChange: p, ...m }) => { @@ -61885,7 +61897,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ($.key === "Enter" || $.key === " ") && ($.preventDefault(), b()); }, [b] - ), x = e === "right" || e === "left", E = e === "left" || e === "up", _ = g ? f?.[e] || eIe[e] : u?.[e] || J2e[e], C = `${e} ${g ? "expanded" : "collapsed"}`, k = T.useMemo( + ), x = e === "right" || e === "left", E = e === "left" || e === "up", _ = g ? d?.[e] || eIe[e] : u?.[e] || J2e[e], C = `${e} ${g ? "expanded" : "collapsed"}`, k = T.useMemo( () => ({ [x ? "width" : "height"]: g ? o : i }), @@ -62014,7 +62026,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho defaultCurrentTabStopId: s, onCurrentTabStopIdChange: c, onEntryFocus: u, - preventScrollOnEntryFocus: f = !1, + preventScrollOnEntryFocus: d = !1, ...p } = e, m = T.useRef(null), g = un(t, m), y = a1(i), [b, v] = hl({ prop: a, @@ -62066,7 +62078,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const L = C().filter((F) => F.focusable), N = L.find((F) => F.active), U = L.find((F) => F.id === b), V = [N, U, ...L].filter( Boolean ).map((F) => F.ref.current); - kH(V, f); + kH(V, d); } } k.current = !1; @@ -62085,7 +62097,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho tabStopId: i, children: a, ...s - } = e, c = Vi(), u = i || c, f = lIe(EH, n), p = f.currentTabStopId === u, m = SH(n), { onFocusableItemAdd: g, onFocusableItemRemove: y, currentTabStopId: b } = f; + } = e, c = Vi(), u = i || c, d = lIe(EH, n), p = d.currentTabStopId === u, m = SH(n), { onFocusableItemAdd: g, onFocusableItemRemove: y, currentTabStopId: b } = d; return T.useEffect(() => { if (r) return g(), () => y(); @@ -62100,20 +62112,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho xt.span, { tabIndex: p ? 0 : -1, - "data-orientation": f.orientation, + "data-orientation": d.orientation, ...s, ref: t, onMouseDown: Le(e.onMouseDown, (v) => { - r ? f.onItemFocus(u) : v.preventDefault(); + r ? d.onItemFocus(u) : v.preventDefault(); }), - onFocus: Le(e.onFocus, () => f.onItemFocus(u)), + onFocus: Le(e.onFocus, () => d.onItemFocus(u)), onKeyDown: Le(e.onKeyDown, (v) => { if (v.key === "Tab" && v.shiftKey) { - f.onItemShiftTab(); + d.onItemShiftTab(); return; } if (v.target !== v.currentTarget) return; - const x = fIe(v, f.orientation, f.dir); + const x = dIe(v, d.orientation, d.dir); if (x !== void 0) { if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return; v.preventDefault(); @@ -62122,7 +62134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho else if (x === "prev" || x === "next") { x === "prev" && _.reverse(); const C = _.indexOf(v.currentTarget); - _ = f.loop ? pIe(_, C + 1) : _.slice(C + 1); + _ = d.loop ? pIe(_, C + 1) : _.slice(C + 1); } setTimeout(() => kH(_)); } @@ -62145,11 +62157,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho PageDown: "last", End: "last" }; - function dIe(e, t) { + function fIe(e, t) { return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e; } - function fIe(e, t, n) { - const r = dIe(e.key, n); + function dIe(e, t, n) { + const r = fIe(e.key, n); if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return uIe[r]; } @@ -62174,7 +62186,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho dir: s, activationMode: c = "automatic", ...u - } = e, f = a1(s), [p, m] = hl({ + } = e, d = a1(s), [p, m] = hl({ prop: r, onChange: o, defaultProp: i ?? "", @@ -62188,12 +62200,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho value: p, onValueChange: m, orientation: a, - dir: f, + dir: d, activationMode: c, children: /* @__PURE__ */ S.jsx( xt.div, { - dir: f, + dir: d, "data-orientation": a, ...u, ref: t @@ -62231,22 +62243,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho NH.displayName = MH; var PH = "TabsTrigger", IH = T.forwardRef( (e, t) => { - const { __scopeTabs: n, value: r, disabled: o = !1, ...i } = e, a = YA(PH, n), s = RH(n), c = DH(a.baseId, r), u = FH(a.baseId, r), f = r === a.value; + const { __scopeTabs: n, value: r, disabled: o = !1, ...i } = e, a = YA(PH, n), s = RH(n), c = DH(a.baseId, r), u = FH(a.baseId, r), d = r === a.value; return /* @__PURE__ */ S.jsx( AH, { asChild: !0, ...s, focusable: !o, - active: f, + active: d, children: /* @__PURE__ */ S.jsx( xt.button, { type: "button", role: "tab", - "aria-selected": f, + "aria-selected": d, "aria-controls": u, - "data-state": f ? "active" : "inactive", + "data-state": d ? "active" : "inactive", "data-disabled": o ? "" : void 0, disabled: o, id: c, @@ -62260,7 +62272,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), onFocus: Le(e.onFocus, () => { const p = a.activationMode !== "manual"; - !f && !o && p && a.onValueChange(r); + !d && !o && p && a.onValueChange(r); }) } ) @@ -62271,14 +62283,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho IH.displayName = PH; var $H = "TabsContent", jH = T.forwardRef( (e, t) => { - const { __scopeTabs: n, value: r, forceMount: o, children: i, ...a } = e, s = YA($H, n), c = DH(s.baseId, r), u = FH(s.baseId, r), f = r === s.value, p = T.useRef(f); + const { __scopeTabs: n, value: r, forceMount: o, children: i, ...a } = e, s = YA($H, n), c = DH(s.baseId, r), u = FH(s.baseId, r), d = r === s.value, p = T.useRef(d); return T.useEffect(() => { const m = requestAnimationFrame(() => p.current = !1); return () => cancelAnimationFrame(m); - }, []), /* @__PURE__ */ S.jsx(ii, { present: o || f, children: ({ present: m }) => /* @__PURE__ */ S.jsx( + }, []), /* @__PURE__ */ S.jsx(ii, { present: o || d, children: ({ present: m }) => /* @__PURE__ */ S.jsx( xt.div, { - "data-state": f ? "active" : "inactive", + "data-state": d ? "active" : "inactive", "data-orientation": s.orientation, role: "tabpanel", "aria-labelledby": c, @@ -62315,7 +62327,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n || "" ); T.useEffect(() => c(n || ""), [n]); - const u = (p) => c(p.target.value), f = () => { + const u = (p) => c(p.target.value), d = () => { s !== (n || "") && e.on_node_action({ type: "update", from_remote: !1, @@ -62348,7 +62360,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho id: `node-desc-${r}`, value: s, onChange: u, - onBlur: f, + onBlur: d, className: "styledinput", rows: 3 } @@ -62941,7 +62953,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho break; } case "io_order": { - const [s, c] = ((u, f) => f === void 0 ? [u, !1] : [f, !ak(u, f)])(n[a], o[a]); + const [s, c] = ((u, d) => d === void 0 ? [u, !1] : [d, !ak(u, d)])(n[a], o[a]); c && (r[a] = s.filter((u) => u !== void 0)); break; } @@ -63210,8 +63222,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (i.length === 0) return; const a = { nodes: [], edges: [] }; for (const u of i) { - const f = e.nodespace.get_node(u.id, !1); - f && a.nodes.push(f.serialize()); + const d = e.nodespace.get_node(u.id, !1); + d && a.nodes.push(d.serialize()); } const s = new Set(i.map((u) => u.id)), c = o.filter( (u) => s.has(u.source) && s.has(u.target) @@ -63227,7 +63239,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, [n, t, e]) }; }, GIe = () => { - const e = Fa("Delete"), t = Fa(["Meta+c", "Control+c", "Strg+c"]), n = Fa(["Control+g", "Meta+g"]), r = Fa(["Control+Alt+g", "Meta+Alt+g"]), o = A0e(), { getEdges: i } = Ec(), { getNodes: a, getSelectedNodes: s, getSplitNodes: c } = LH(), { copySelectedNodes: u } = WIe(), { node: f, group: p, edge: m } = Rr(); + const e = Fa("Delete"), t = Fa(["Meta+c", "Control+c", "Strg+c"]), n = Fa(["Control+g", "Meta+g"]), r = Fa(["Control+Alt+g", "Meta+Alt+g"]), o = A0e(), { getEdges: i } = Ec(), { getNodes: a, getSelectedNodes: s, getSplitNodes: c } = LH(), { copySelectedNodes: u } = WIe(), { node: d, group: p, edge: m } = Rr(); return T.useEffect(() => { if (e) { const g = i().filter((x) => x.selected); @@ -63240,11 +63252,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); const y = s(), { group_nodes: b, default_nodes: v } = c(y); for (const x of v) - f?.remove_node(x.id); + d?.remove_node(x.id); for (const x of b) p?.remove_group(x.id); } - }, [e, a, i, f, p, m]), T.useEffect(() => { + }, [e, a, i, d, p, m]), T.useEffect(() => { t && u(); }, [t, u]), T.useEffect(() => { if (n) { @@ -63276,7 +63288,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s[0] /= a.nodes.length, s[1] /= a.nodes.length; const c = []; for (const u of a.nodes) { - const f = { + const d = { id: u.node_id, src_id: u.id, position: [ @@ -63284,29 +63296,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u.properties["frontend:pos"][1] - s[1] ] }; - c.push(f); + c.push(d); } for (const u of c) { - const f = await e.add_node(u.id); - !f || !n.nodespace.get_node(f.id, !1) || (u.new_id = f.id, i([ + const d = await e.add_node(u.id); + !d || !n.nodespace.get_node(d.id, !1) || (u.new_id = d.id, i([ { - id: f.id, + id: d.id, type: "position", position: { - x: u.position[0] + f.properties["frontend:pos"][0], - y: u.position[1] + f.properties["frontend:pos"][1] + x: u.position[0] + d.properties["frontend:pos"][0], + y: u.position[1] + d.properties["frontend:pos"][1] } } ])); } for (const u of a.edges) { - const f = c.find( + const d = c.find( (m) => m.src_id === u.src_nid ), p = c.find( (m) => m.src_id === u.trg_nid ); - !f || !p || !f.new_id || !p.new_id || t.add_edge({ - src_nid: f.new_id, + !d || !p || !d.new_id || !p.new_id || t.add_edge({ + src_nid: d.new_id, src_ioid: u.src_ioid, trg_nid: p.new_id, trg_ioid: u.trg_ioid @@ -63369,7 +63381,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, []), T.useEffect(() => { t.reactflowRef = n.current; }, [n]); - const { nodes: a, edges: s, onNodesChange: c, onEdgesChange: u, onConnect: f } = t.useReactFlowStore(UT(MIe)), p = KIe(), m = T.useCallback( + const { nodes: a, edges: s, onNodesChange: c, onEdgesChange: u, onConnect: d } = t.useReactFlowStore(UT(MIe)), p = KIe(), m = T.useCallback( (g) => { const y = n.current; if (!y) return; @@ -63391,7 +63403,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho edges: s, onNodesChange: c, onEdgesChange: u, - onConnect: f, + onConnect: d, nodeTypes: RIe, edgeTypes: OIe, minZoom: e.minZoom, @@ -63441,16 +63453,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho update_nodes: (u) => { u = eR(u), s({ _nodes: u, - _nodes_map: new Map(u.map((f) => [f.id, f])) + _nodes_map: new Map(u.map((d) => [d.id, d])) }); }, partial_update_nodes: (u) => { - const f = c(), p = f._nodes, m = new Map( + const d = c(), p = d._nodes, m = new Map( p.map((g) => [g.id, g]) ); for (const g of u) m.set(g.id, g); - f.update_nodes(Array.from(m.values())); + d.update_nodes(Array.from(m.values())); }, update_edges: (u) => { s({ @@ -63458,8 +63470,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); }, onNodesChange: (u) => { - const f = c(); - f.update_nodes(zT(u, f._nodes)), r(u); + const d = c(); + d.update_nodes(zT(u, d._nodes)), r(u); }, onEdgesChange: (u) => { s({ @@ -63497,11 +63509,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho $b, P1 ]), bm = $b(), qH = P1(), [WH, jc] = $c(vm), [a$e, xm] = $c(vm), GH = (e) => { - const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: i, modal: a = !0 } = e, s = bm(t), [c, u] = T.useState(null), f = T.useRef(!1), p = qr(i), m = a1(o); + const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: i, modal: a = !0 } = e, s = bm(t), [c, u] = T.useState(null), d = T.useRef(!1), p = qr(i), m = a1(o); return T.useEffect(() => { const g = () => { - f.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 }); - }, y = () => f.current = !1; + d.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 }); + }, y = () => d.current = !1; return document.addEventListener("keydown", g, { capture: !0 }), () => { document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", y, { capture: !0 }), document.removeEventListener("pointermove", y, { capture: !0 }); }; @@ -63518,7 +63530,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { scope: t, onClose: T.useCallback(() => p(!1), [p]), - isUsingKeyboardRef: f, + isUsingKeyboardRef: d, dir: m, modal: a, children: r @@ -63540,7 +63552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), Po = "MenuContent", [c$e, nR] = $c(Po), YH = T.forwardRef( (e, t) => { const n = KH(Po, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = jc(Po, e.__scopeMenu), a = xm(Po, e.__scopeMenu); - return /* @__PURE__ */ S.jsx(kh.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ S.jsx(ii, { present: r || i.open, children: /* @__PURE__ */ S.jsx(kh.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ S.jsx(u$e, { ...o, ref: t }) : /* @__PURE__ */ S.jsx(d$e, { ...o, ref: t }) }) }) }); + return /* @__PURE__ */ S.jsx(kh.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ S.jsx(ii, { present: r || i.open, children: /* @__PURE__ */ S.jsx(kh.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ S.jsx(u$e, { ...o, ref: t }) : /* @__PURE__ */ S.jsx(f$e, { ...o, ref: t }) }) }) }); } ), u$e = T.forwardRef( (e, t) => { @@ -63565,7 +63577,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ); } - ), d$e = T.forwardRef((e, t) => { + ), f$e = T.forwardRef((e, t) => { const n = jc(Po, e.__scopeMenu); return /* @__PURE__ */ S.jsx( rR, @@ -63578,7 +63590,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onDismiss: () => n.onOpenChange(!1) } ); - }), f$e = /* @__PURE__ */ dd("MenuContent.ScrollLock"), rR = T.forwardRef( + }), d$e = /* @__PURE__ */ df("MenuContent.ScrollLock"), rR = T.forwardRef( (e, t) => { const { __scopeMenu: n, @@ -63589,13 +63601,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableOutsidePointerEvents: s, onEntryFocus: c, onEscapeKeyDown: u, - onPointerDownOutside: f, + onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: g, disableOutsideScroll: y, ...b - } = e, v = jc(Po, n), x = xm(Po, n), E = bm(n), _ = qH(n), C = o$e(n), [k, A] = T.useState(null), O = T.useRef(null), P = un(t, O, v.onContentChange), I = T.useRef(0), $ = T.useRef(""), L = T.useRef(0), N = T.useRef(null), U = T.useRef("right"), j = T.useRef(0), V = y ? Eb : T.Fragment, F = y ? { as: f$e, allowPinchZoom: !0 } : void 0, K = (Y) => { + } = e, v = jc(Po, n), x = xm(Po, n), E = bm(n), _ = qH(n), C = o$e(n), [k, A] = T.useState(null), O = T.useRef(null), P = un(t, O, v.onContentChange), I = T.useRef(0), $ = T.useRef(""), L = T.useRef(0), N = T.useRef(null), U = T.useRef("right"), j = T.useRef(0), V = y ? Eb : T.Fragment, F = y ? { as: d$e, allowPinchZoom: !0 } : void 0, K = (Y) => { const B = $.current + Y, D = C().filter((ne) => !ne.disabled), G = document.activeElement, z = D.find((ne) => ne.ref.current === G)?.textValue, H = D.map((ne) => ne.textValue), X = E$e(H, B, z), Q = D.find((ne) => ne.textValue === X)?.ref.current; (function ne(te) { $.current = te, window.clearTimeout(I.current), te !== "" && (I.current = window.setTimeout(() => ne(""), 1e3)); @@ -63645,7 +63657,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho asChild: !0, disableOutsidePointerEvents: s, onEscapeKeyDown: u, - onPointerDownOutside: f, + onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: g, @@ -63668,7 +63680,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { role: "menu", "aria-orientation": "vertical", - "data-state": f7(v.open), + "data-state": d7(v.open), "data-radix-menu-content": "", dir: x.dir, ...E, @@ -63726,7 +63738,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho XH.displayName = h$e; var q0 = "MenuItem", Y3 = "menu.itemSelect", $1 = T.forwardRef( (e, t) => { - const { disabled: n = !1, onSelect: r, ...o } = e, i = T.useRef(null), a = xm(q0, e.__scopeMenu), s = nR(q0, e.__scopeMenu), c = un(t, i), u = T.useRef(!1), f = () => { + const { disabled: n = !1, onSelect: r, ...o } = e, i = T.useRef(null), a = xm(q0, e.__scopeMenu), s = nR(q0, e.__scopeMenu), c = un(t, i), u = T.useRef(!1), d = () => { const p = i.current; if (!n && p) { const m = new CustomEvent(Y3, { bubbles: !0, cancelable: !0 }); @@ -63739,7 +63751,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...o, ref: c, disabled: n, - onClick: Le(e.onClick, f), + onClick: Le(e.onClick, d), onPointerDown: (p) => { e.onPointerDown?.(p), u.current = !0; }, @@ -63757,7 +63769,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho $1.displayName = q0; var ZH = T.forwardRef( (e, t) => { - const { __scopeMenu: n, disabled: r = !1, textValue: o, ...i } = e, a = nR(q0, n), s = qH(n), c = T.useRef(null), u = un(t, c), [f, p] = T.useState(!1), [m, g] = T.useState(""); + const { __scopeMenu: n, disabled: r = !1, textValue: o, ...i } = e, a = nR(q0, n), s = qH(n), c = T.useRef(null), u = un(t, c), [d, p] = T.useState(!1), [m, g] = T.useState(""); return T.useEffect(() => { const y = c.current; y && g((y.textContent ?? "").trim()); @@ -63771,7 +63783,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho xt.div, { role: "menuitem", - "data-highlighted": f ? "" : void 0, + "data-highlighted": d ? "" : void 0, "aria-disabled": r || void 0, "data-disabled": r ? "" : void 0, ...i, @@ -63892,7 +63904,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); a7.displayName = x$e; var aR = "MenuSub", [w$e, s7] = $c(aR), l7 = (e) => { - const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, i = jc(aR, t), a = bm(t), [s, c] = T.useState(null), [u, f] = T.useState(null), p = qr(o); + const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, i = jc(aR, t), a = bm(t), [s, c] = T.useState(null), [u, d] = T.useState(null), p = qr(o); return T.useEffect(() => (i.open === !1 && p(!1), () => p(!1)), [i.open, p]), /* @__PURE__ */ S.jsx(aT, { ...a, children: /* @__PURE__ */ S.jsx( WH, { @@ -63900,7 +63912,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho open: r, onOpenChange: p, content: u, - onContentChange: f, + onContentChange: d, children: /* @__PURE__ */ S.jsx( w$e, { @@ -63918,10 +63930,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho l7.displayName = aR; var Cp = "MenuSubTrigger", c7 = T.forwardRef( (e, t) => { - const n = jc(Cp, e.__scopeMenu), r = xm(Cp, e.__scopeMenu), o = s7(Cp, e.__scopeMenu), i = nR(Cp, e.__scopeMenu), a = T.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, f = T.useCallback(() => { + const n = jc(Cp, e.__scopeMenu), r = xm(Cp, e.__scopeMenu), o = s7(Cp, e.__scopeMenu), i = nR(Cp, e.__scopeMenu), a = T.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, d = T.useCallback(() => { a.current && window.clearTimeout(a.current), a.current = null; }, []); - return T.useEffect(() => f, [f]), T.useEffect(() => { + return T.useEffect(() => d, [d]), T.useEffect(() => { const p = s.current; return () => { window.clearTimeout(p), c(null); @@ -63933,7 +63945,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "aria-haspopup": "menu", "aria-expanded": n.open, "aria-controls": o.contentId, - "data-state": f7(n.open), + "data-state": d7(n.open), ...e, ref: xb(t, o.onTriggerChange), onClick: (p) => { @@ -63943,14 +63955,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho e.onPointerMove, Th((p) => { i.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !a.current && (i.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => { - n.onOpenChange(!0), f(); + n.onOpenChange(!0), d(); }, 100)); }) ), onPointerLeave: Le( e.onPointerLeave, Th((p) => { - f(); + d(); const m = n.content?.getBoundingClientRect(); if (m) { const g = n.content?.dataset.side, y = g === "right", b = y ? -5 : 5, v = m[y ? "left" : "right"], x = m[y ? "right" : "left"]; @@ -63984,7 +63996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ); c7.displayName = Cp; - var u7 = "MenuSubContent", d7 = T.forwardRef( + var u7 = "MenuSubContent", f7 = T.forwardRef( (e, t) => { const n = KH(Po, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = jc(Po, e.__scopeMenu), a = xm(Po, e.__scopeMenu), s = s7(u7, e.__scopeMenu), c = T.useRef(null), u = un(t, c); return /* @__PURE__ */ S.jsx(kh.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ S.jsx(ii, { present: r || i.open, children: /* @__PURE__ */ S.jsx(kh.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ S.jsx( @@ -63999,26 +64011,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho disableOutsidePointerEvents: !1, disableOutsideScroll: !1, trapFocus: !1, - onOpenAutoFocus: (f) => { - a.isUsingKeyboardRef.current && c.current?.focus(), f.preventDefault(); + onOpenAutoFocus: (d) => { + a.isUsingKeyboardRef.current && c.current?.focus(), d.preventDefault(); }, - onCloseAutoFocus: (f) => f.preventDefault(), - onFocusOutside: Le(e.onFocusOutside, (f) => { - f.target !== s.trigger && i.onOpenChange(!1); + onCloseAutoFocus: (d) => d.preventDefault(), + onFocusOutside: Le(e.onFocusOutside, (d) => { + d.target !== s.trigger && i.onOpenChange(!1); }), - onEscapeKeyDown: Le(e.onEscapeKeyDown, (f) => { - a.onClose(), f.preventDefault(); + onEscapeKeyDown: Le(e.onEscapeKeyDown, (d) => { + a.onClose(), d.preventDefault(); }), - onKeyDown: Le(e.onKeyDown, (f) => { - const p = f.currentTarget.contains(f.target), m = r$e[a.dir].includes(f.key); - p && m && (i.onOpenChange(!1), s.trigger?.focus(), f.preventDefault()); + onKeyDown: Le(e.onKeyDown, (d) => { + const p = d.currentTarget.contains(d.target), m = r$e[a.dir].includes(d.key); + p && m && (i.onOpenChange(!1), s.trigger?.focus(), d.preventDefault()); }) } ) }) }) }); } ); - d7.displayName = u7; - function f7(e) { + f7.displayName = u7; + function d7(e) { return e ? "open" : "closed"; } function W0(e) { @@ -64048,8 +64060,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const { x: n, y: r } = e; let o = !1; for (let i = 0, a = t.length - 1; i < t.length; a = i++) { - const s = t[i], c = t[a], u = s.x, f = s.y, p = c.x, m = c.y; - f > r != m > r && n < (p - u) * (r - f) / (m - f) + u && (o = !o); + const s = t[i], c = t[a], u = s.x, d = s.y, p = c.x, m = c.y; + d > r != m > r && n < (p - u) * (r - d) / (m - d) + u && (o = !o); } return o; } @@ -64061,7 +64073,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Th(e) { return (t) => t.pointerType === "mouse" ? e(t) : void 0; } - var T$e = GH, A$e = tR, R$e = YH, O$e = oR, M$e = XH, N$e = $1, P$e = QH, I$e = e7, $$e = n7, j$e = o7, D$e = i7, F$e = a7, L$e = l7, z$e = c7, B$e = d7, j1 = "DropdownMenu", [U$e] = Qi( + var T$e = GH, A$e = tR, R$e = YH, O$e = oR, M$e = XH, N$e = $1, P$e = QH, I$e = e7, $$e = n7, j$e = o7, D$e = i7, F$e = a7, L$e = l7, z$e = c7, B$e = f7, j1 = "DropdownMenu", [U$e] = Qi( j1, [HH] ), Or = HH(), [V$e, p7] = U$e(j1), h7 = (e) => { @@ -64073,7 +64085,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho defaultOpen: i, onOpenChange: a, modal: s = !0 - } = e, c = Or(t), u = T.useRef(null), [f, p] = hl({ + } = e, c = Or(t), u = T.useRef(null), [d, p] = hl({ prop: o, defaultProp: i ?? !1, onChange: a, @@ -64086,11 +64098,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho triggerId: Vi(), triggerRef: u, contentId: Vi(), - open: f, + open: d, onOpenChange: p, onOpenToggle: T.useCallback(() => p((m) => !m), [p]), modal: s, - children: /* @__PURE__ */ S.jsx(T$e, { ...c, open: f, onOpenChange: p, dir: r, modal: s, children: n }) + children: /* @__PURE__ */ S.jsx(T$e, { ...c, open: d, onOpenChange: p, dir: r, modal: s, children: n }) } ); }; @@ -64137,8 +64149,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho a.current || o.triggerRef.current?.focus(), a.current = !1, s.preventDefault(); }), onInteractOutside: Le(e.onInteractOutside, (s) => { - const c = s.detail.originalEvent, u = c.button === 0 && c.ctrlKey === !0, f = c.button === 2 || u; - (!o.modal || f) && (a.current = !0); + const c = s.detail.originalEvent, u = c.button === 0 && c.ctrlKey === !0, d = c.button === 2 || u; + (!o.modal || d) && (a.current = !0); }), style: { ...e.style, @@ -64239,8 +64251,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); }); E7.displayName = aje; - var lR = h7, cR = g7, uR = v7, dR = b7, ja = x7, sje = w7, lje = S7, cje = oje, uje = _7, dje = E7; - const fje = ({ + var lR = h7, cR = g7, uR = v7, fR = b7, ja = x7, sje = w7, lje = S7, cje = oje, uje = _7, fje = E7; + const dje = ({ trigger: e, setOpen: t, open: n @@ -64307,8 +64319,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }) => { const r = Vt(), [o, i] = T.useState(!1), a = r.workers(), s = r.worker?.uuid, c = (s ? a[s]?.name : void 0) || s || "worker", u = async () => { if (!r.worker) return; - const f = await r.worker.export({ withFiles: o }); - aK(f, c + ".fnw", "application/zip"), t(!1); + const d = await r.worker.export({ withFiles: o }); + aK(d, c + ".fnw", "application/zip"), t(!1); }; return /* @__PURE__ */ S.jsx( Ji, @@ -64326,8 +64338,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: "checkbox", className: "styledcheckbox", checked: o, - onChange: (f) => { - i(f.currentTarget.checked); + onChange: (d) => { + i(d.currentTarget.checked); } } ), @@ -64348,21 +64360,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho )) return; const y = await cK(".fnw"); e.worker.update_from_export(y); - }, c = e.options.useWorkerManager && e.workermanager && e.workermanager.open || Ch(), u = c && Object.keys(t).length > 0, f = e.worker && e.worker.is_open, p = f && c; - return c || f ? /* @__PURE__ */ S.jsxs(S.Fragment, { children: [ + }, c = e.options.useWorkerManager && e.workermanager && e.workermanager.open || Ch(), u = c && Object.keys(t).length > 0, d = e.worker && e.worker.is_open, p = d && c; + return c || d ? /* @__PURE__ */ S.jsxs(S.Fragment, { children: [ /* @__PURE__ */ S.jsxs(lR, { children: [ /* @__PURE__ */ S.jsx(cR, { asChild: !0, children: /* @__PURE__ */ S.jsx("button", { className: "styledbtn", children: /* @__PURE__ */ S.jsxs(el, { direction: "row", children: [ "Worker ", /* @__PURE__ */ S.jsx(Yk, { className: "m-x-s" }) ] }) }) }), - /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsxs(dR, { children: [ + /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsxs(fR, { children: [ u && /* @__PURE__ */ S.jsxs(cje, { children: [ /* @__PURE__ */ S.jsx(uje, { className: "headermenuitem submenuitem", children: /* @__PURE__ */ S.jsxs(el, { direction: "row", children: [ "Select", /* @__PURE__ */ S.jsx(Qp, {}) ] }) }), /* @__PURE__ */ S.jsx( - dje, + fje, { className: "headermenucontent funcnodescontainer", sideOffset: 2, @@ -64396,7 +64408,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ) ] }), - f && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [ + d && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [ p && /* @__PURE__ */ S.jsx( ja, { @@ -64451,7 +64463,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ] }) }) ] }), /* @__PURE__ */ S.jsx( - fje, + dje, { open: n, setOpen: r @@ -64484,8 +64496,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s.onload = async (c) => { const u = c.target?.result; if (!u) return; - const f = JSON.parse(u); - await e.worker?.load(f); + const d = JSON.parse(u); + await e.worker?.load(d); }, s.readAsText(a); }, o.click(); }; @@ -64494,7 +64506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "Nodespace ", /* @__PURE__ */ S.jsx(Yk, { className: "m-x-s" }) ] }) }) }), - /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsxs(dR, { children: [ + /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsxs(fR, { children: [ /* @__PURE__ */ S.jsx(ja, { className: "headermenuitem", onClick: t, children: "New" }), /* @__PURE__ */ S.jsx(ja, { className: "headermenuitem", onClick: n, children: "Save" }), /* @__PURE__ */ S.jsx(ja, { className: "headermenuitem", onClick: r, children: "Load" }) @@ -64677,7 +64689,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "Settings ", /* @__PURE__ */ S.jsx(Yk, { className: "m-x-s" }) ] }) }) }), - /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsx(dR, { children: /* @__PURE__ */ S.jsx( + /* @__PURE__ */ S.jsx(uR, { className: "headermenucontent funcnodescontainer", children: /* @__PURE__ */ S.jsx(fR, { children: /* @__PURE__ */ S.jsx( ja, { className: "headermenuitem", @@ -64735,7 +64747,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (o) => o.node_id.toLowerCase().includes(t.toLowerCase()) ) ?? !1, r = e.subshelves?.some((o) => k7(o, t)) ?? !1; return n || r; - }, fR = ({ + }, dR = ({ item: e, filter: t, parentkey: n @@ -64760,7 +64772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /* @__PURE__ */ S.jsx("div", { className: "libnodecontainer " + (s ? "open" : "close"), children: /* @__PURE__ */ S.jsxs("div", { className: "libnodecontainer_inner", children: [ a && /* @__PURE__ */ S.jsx(S.Fragment, { children: a.map((c) => /* @__PURE__ */ S.jsx(C7, { item: c }, c.node_id)) }), e.subshelves && /* @__PURE__ */ S.jsx(S.Fragment, { children: e.subshelves.map((c) => /* @__PURE__ */ S.jsx( - fR, + dR, { item: c, filter: t, @@ -64799,7 +64811,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ] }), wje = ({ children: e }) => { - const [t, n] = T.useState(""), r = Vt(), [o, i] = T.useState(!0), [a, s] = T.useState(!0), [c, u] = T.useState(!0), [f, p] = T.useState({ + const [t, n] = T.useState(""), r = Vt(), [o, i] = T.useState(!0), [a, s] = T.useState(!0), [c, u] = T.useState(!0), [d, p] = T.useState({ installed: [], available: [], active: [] @@ -64839,7 +64851,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (I) => I.name.toLowerCase().includes(t.toLowerCase()) || I.description.toLowerCase().includes(t.toLowerCase()) ), [t] - ), k = C(f.available), A = C(f.installed), O = C(f.active); + ), k = C(d.available), A = C(d.installed), O = C(d.active); return /* @__PURE__ */ S.jsxs( Ji, { @@ -65017,7 +65029,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Wr.prototype.spaceSeparated = !1; Wr.prototype.space = void 0; let Aje = 0; - const pt = Dc(), Un = Dc(), GC = Dc(), ke = Dc(), fn = Dc(), cd = Dc(), no = Dc(); + const pt = Dc(), Un = Dc(), GC = Dc(), ke = Dc(), dn = Dc(), uf = Dc(), no = Dc(); function Dc() { return 2 ** ++Aje; } @@ -65026,10 +65038,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho boolean: pt, booleanish: Un, commaOrSpaceSeparated: no, - commaSeparated: cd, + commaSeparated: uf, number: ke, overloadedBoolean: GC, - spaceSeparated: fn + spaceSeparated: dn }, Symbol.toStringTag, { value: "Module" })), Z_ = ( /** @type {ReadonlyArray} */ Object.keys(KC) @@ -65061,7 +65073,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function Q3(e, t, n) { n && (e[t] = n); } - function Wd(e) { + function Gf(e) { const t = {}, n = {}; for (const [r, o] of Object.entries(e.properties)) { const i = new hR( @@ -65074,7 +65086,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return new wm(t, n, e.space); } - const A7 = Wd({ + const A7 = Gf({ properties: { ariaActiveDescendant: null, ariaAtomic: Un, @@ -65084,36 +65096,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ariaColCount: ke, ariaColIndex: ke, ariaColSpan: ke, - ariaControls: fn, + ariaControls: dn, ariaCurrent: null, - ariaDescribedBy: fn, + ariaDescribedBy: dn, ariaDetails: null, ariaDisabled: Un, - ariaDropEffect: fn, + ariaDropEffect: dn, ariaErrorMessage: null, ariaExpanded: Un, - ariaFlowTo: fn, + ariaFlowTo: dn, ariaGrabbed: Un, ariaHasPopup: null, ariaHidden: Un, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, - ariaLabelledBy: fn, + ariaLabelledBy: dn, ariaLevel: ke, ariaLive: null, ariaModal: Un, ariaMultiLine: Un, ariaMultiSelectable: Un, ariaOrientation: null, - ariaOwns: fn, + ariaOwns: dn, ariaPlaceholder: null, ariaPosInSet: ke, ariaPressed: Un, ariaReadOnly: Un, ariaRelevant: null, ariaRequired: Un, - ariaRoleDescription: fn, + ariaRoleDescription: dn, ariaRowCount: ke, ariaRowIndex: ke, ariaRowSpan: ke, @@ -65136,7 +65148,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function O7(e, t) { return R7(e, t.toLowerCase()); } - const Rje = Wd({ + const Rje = Gf({ attributes: { acceptcharset: "accept-charset", classname: "class", @@ -65147,9 +65159,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho properties: { // Standard Properties. abbr: null, - accept: cd, - acceptCharset: fn, - accessKey: fn, + accept: uf, + acceptCharset: dn, + accessKey: dn, action: null, allow: null, allowFullScreen: pt, @@ -65159,22 +65171,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho as: null, async: pt, autoCapitalize: null, - autoComplete: fn, + autoComplete: dn, autoFocus: pt, autoPlay: pt, - blocking: fn, + blocking: dn, capture: null, charSet: null, checked: pt, cite: null, - className: fn, + className: dn, cols: ke, colSpan: null, content: null, contentEditable: Un, controls: pt, - controlsList: fn, - coords: ke | cd, + controlsList: dn, + coords: ke | uf, crossOrigin: null, data: null, dateTime: null, @@ -65195,14 +65207,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho formMethod: null, formNoValidate: pt, formTarget: null, - headers: fn, + headers: dn, height: ke, hidden: GC, high: ke, href: null, hrefLang: null, - htmlFor: fn, - httpEquiv: fn, + htmlFor: dn, + httpEquiv: dn, id: null, imageSizes: null, imageSrcSet: null, @@ -65212,10 +65224,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho is: null, isMap: pt, itemId: null, - itemProp: fn, - itemRef: fn, + itemProp: dn, + itemRef: dn, itemScope: pt, - itemType: fn, + itemType: dn, kind: null, label: null, lang: null, @@ -65328,7 +65340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho open: pt, optimum: ke, pattern: null, - ping: fn, + ping: dn, placeholder: null, playsInline: pt, popover: null, @@ -65338,12 +65350,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho preload: null, readOnly: pt, referrerPolicy: null, - rel: fn, + rel: dn, required: pt, reversed: pt, rows: ke, rowSpan: ke, - sandbox: fn, + sandbox: dn, scope: null, scoped: pt, seamless: pt, @@ -65381,7 +65393,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // Several. Use CSS `text-align` instead, aLink: null, // ``. Use CSS `a:active {color}` instead - archive: fn, + archive: dn, // ``. List of URIs to archives axis: null, // `` and ``. Use `scope` on `` @@ -65497,7 +65509,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, space: "html", transform: O7 - }), Oje = Wd({ + }), Oje = Gf({ attributes: { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", @@ -65696,7 +65708,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho by: null, calcMode: null, capHeight: ke, - className: fn, + className: dn, clip: null, clipPath: null, clipPathUnits: null, @@ -65756,9 +65768,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho from: null, fx: null, fy: null, - g1: cd, - g2: cd, - glyphName: cd, + g1: uf, + g2: uf, + glyphName: uf, glyphOrientationHorizontal: null, glyphOrientationVertical: null, glyphRef: null, @@ -65931,7 +65943,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho patternTransform: null, patternUnits: null, phase: null, - ping: fn, + ping: dn, pitch: null, playbackOrder: null, pointerEvents: null, @@ -66056,7 +66068,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, space: "svg", transform: R7 - }), M7 = Wd({ + }), M7 = Gf({ properties: { xLinkActuate: null, xLinkArcRole: null, @@ -66070,12 +66082,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform(e, t) { return "xlink:" + t.slice(5).toLowerCase(); } - }), N7 = Wd({ + }), N7 = Gf({ attributes: { xmlnsxlink: "xmlns:xlink" }, properties: { xmlnsXLink: null, xmlns: null }, space: "xmlns", transform: O7 - }), P7 = Wd({ + }), P7 = Gf({ properties: { xmlBase: null, xmlLang: null, xmlSpace: null }, space: "xml", transform(e, t) { @@ -66135,7 +66147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (e4) return Q_; e4 = 1; var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, s = /^\s+|\s+$/g, c = ` -`, u = "/", f = "*", p = "", m = "comment", g = "declaration"; +`, u = "/", d = "*", p = "", m = "comment", g = "declaration"; Q_ = function(b, v) { if (typeof b != "string") throw new TypeError("First argument must be a string"); @@ -66182,8 +66194,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function $() { var U = C(); - if (!(u != b.charAt(0) || f != b.charAt(1))) { - for (var j = 2; p != b.charAt(j) && (f != b.charAt(j) || u != b.charAt(j + 1)); ) + if (!(u != b.charAt(0) || d != b.charAt(1))) { + for (var j = 2; p != b.charAt(j) && (d != b.charAt(j) || u != b.charAt(j + 1)); ) ++j; if (j += 2, p === b.charAt(j - 1)) return A("End of comment missing"); @@ -66236,8 +66248,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var a = (0, t.default)(r), s = typeof o == "function"; return a.forEach(function(c) { if (c.type === "declaration") { - var u = c.property, f = c.value; - s ? o(u, f, c) : f && (i = i || {}, i[u] = f); + var u = c.property, d = c.value; + s ? o(u, d, c) : d && (i = i || {}, i[u] = d); } }), i; } @@ -66249,12 +66261,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho n4 = 1, Object.defineProperty(lp, "__esModule", { value: !0 }), lp.camelCase = void 0; var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, o = /^-(ms)-/, i = function(u) { return !u || n.test(u) || e.test(u); - }, a = function(u, f) { - return f.toUpperCase(); - }, s = function(u, f) { - return "".concat(f, "-"); - }, c = function(u, f) { - return f === void 0 && (f = {}), i(u) ? u : (u = u.toLowerCase(), f.reactCompat ? u = u.replace(o, s) : u = u.replace(r, s), u.replace(t, a)); + }, a = function(u, d) { + return d.toUpperCase(); + }, s = function(u, d) { + return "".concat(d, "-"); + }, c = function(u, d) { + return d === void 0 && (d = {}), i(u) ? u : (u = u.toLowerCase(), d.reactCompat ? u = u.replace(o, s) : u = u.replace(r, s), u.replace(t, a)); }; return lp.camelCase = c, lp; } @@ -66673,10 +66685,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return t; } function uDe(e) { - let t = e.replace(Gje, dDe); + let t = e.replace(Gje, fDe); return t.slice(0, 3) === "ms-" && (t = "-" + t), t; } - function dDe(e) { + function fDe(e) { return "-" + e.toLowerCase(); } const J_ = { @@ -66701,9 +66713,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "track", "video" ] - }, fDe = {}; + }, dDe = {}; function xR(e, t) { - const n = fDe, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, o = typeof n.includeHtml == "boolean" ? n.includeHtml : !0; + const n = dDe, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, o = typeof n.includeHtml == "boolean" ? n.includeHtml : !0; return z7(e, r, o); } function z7(e, t, n) { @@ -66823,7 +66835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n !== null && n > -1 && e.test(String.fromCharCode(n)); } } - function Gd(e) { + function Kf(e) { const t = []; let n = -1, r = 0, o = 0; for (; ++n < e.length; ) { @@ -66929,9 +66941,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return y(_); t.interrupt = !!(o.currentConstruct && !o._gfmTableDynamicInterruptHack); } - return t.containerState = {}, e.check(c4, f, p)(_); + return t.containerState = {}, e.check(c4, d, p)(_); } - function f(_) { + function d(_) { return o && E(), x(r), m(_); } function p(_) { @@ -67005,7 +67017,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function _De(e, t, n) { return Pt(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4); } - function Md(e) { + function Nf(e) { if (e === null || cn(e) || Sc(e)) return 1; if (D1(e)) @@ -67026,7 +67038,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho tokenize: CDe }; function EDe(e, t) { - let n = -1, r, o, i, a, s, c, u, f; + let n = -1, r, o, i, a, s, c, u, d; for (; ++n < e.length; ) if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) { for (r = n; r--; ) @@ -67072,7 +67084,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...a.start }, e[n][1].start = { ...s.end - }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Oo(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = Oo(u, [["enter", o, t], ["enter", a, t], ["exit", a, t], ["enter", i, t]]), u = Oo(u, F1(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = Oo(u, [["exit", i, t], ["enter", s, t], ["exit", s, t], ["exit", o, t]]), e[n][1].end.offset - e[n][1].start.offset ? (f = 2, u = Oo(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : f = 0, uo(e, r - 1, n - r + 3, u), n = r + u.length - f - 2; + }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Oo(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = Oo(u, [["enter", o, t], ["enter", a, t], ["exit", a, t], ["enter", i, t]]), u = Oo(u, F1(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = Oo(u, [["exit", i, t], ["enter", s, t], ["exit", s, t], ["exit", o, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, u = Oo(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, uo(e, r - 1, n - r + 3, u), n = r + u.length - d - 2; break; } } @@ -67081,7 +67093,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e; } function CDe(e, t) { - const n = this.parser.constructs.attentionMarkers.null, r = this.previous, o = Md(r); + const n = this.parser.constructs.attentionMarkers.null, r = this.previous, o = Nf(r); let i; return a; function a(c) { @@ -67090,8 +67102,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function s(c) { if (c === i) return e.consume(c), s; - const u = e.exit("attentionSequence"), f = Md(c), p = !f || f === 2 && o || n.includes(c), m = !o || o === 2 && f || n.includes(r); - return u._open = !!(i === 42 ? p : p && (o || !m)), u._close = !!(i === 42 ? m : m && (f || !p)), t(c); + const u = e.exit("attentionSequence"), d = Nf(c), p = !d || d === 2 && o || n.includes(c), m = !o || o === 2 && d || n.includes(r); + return u._open = !!(i === 42 ? p : p && (o || !m)), u._close = !!(i === 42 ? m : m && (d || !p)), t(c); } } function u4(e, t) { @@ -67120,13 +67132,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return g === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(g), e.exit("autolinkMarker"), e.exit("autolink"), t) : g === null || g === 32 || g === 60 || G0(g) ? n(g) : (e.consume(g), c); } function u(g) { - return g === 64 ? (e.consume(g), f) : gDe(g) ? (e.consume(g), u) : n(g); + return g === 64 ? (e.consume(g), d) : gDe(g) ? (e.consume(g), u) : n(g); } - function f(g) { + function d(g) { return br(g) ? p(g) : n(g); } function p(g) { - return g === 46 ? (e.consume(g), r = 0, f) : g === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(g), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(g); + return g === 46 ? (e.consume(g), r = 0, d) : g === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(g), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(g); } function m(g) { if ((g === 45 || br(g)) && r++ < 63) { @@ -67211,23 +67223,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), c; } function c(p) { - return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, a = br, f(p)); + return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, a = br, d(p)); } function u(p) { - return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, a = yDe, f) : (e.enter("characterReferenceValue"), i = 7, a = XC, f(p)); + return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, a = yDe, d) : (e.enter("characterReferenceValue"), i = 7, a = XC, d(p)); } - function f(p) { + function d(p) { if (p === 59 && o) { const m = e.exit("characterReferenceValue"); return a === br && !wR(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t); } - return a(p) && o++ < i ? (e.consume(p), f) : n(p); + return a(p) && o++ < i ? (e.consume(p), d) : n(p); } } - const d4 = { + const f4 = { partial: !0, tokenize: $De - }, f4 = { + }, d4 = { concrete: !0, name: "codeFenced", tokenize: IDe @@ -67244,13 +67256,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function u(A) { const O = r.events[r.events.length - 1]; - return i = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, s = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(A); + return i = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, s = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(A); } - function f(A) { - return A === s ? (a++, e.consume(A), f) : a < 3 ? n(A) : (e.exit("codeFencedFenceSequence"), _t(A) ? Pt(e, p, "whitespace")(A) : p(A)); + function d(A) { + return A === s ? (a++, e.consume(A), d) : a < 3 ? n(A) : (e.exit("codeFencedFenceSequence"), _t(A) ? Pt(e, p, "whitespace")(A) : p(A)); } function p(A) { - return A === null || Ze(A) ? (e.exit("codeFencedFence"), r.interrupt ? t(A) : e.check(d4, b, C)(A)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { + return A === null || Ze(A) ? (e.exit("codeFencedFence"), r.interrupt ? t(A) : e.check(f4, b, C)(A)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), m(A)); } @@ -67275,7 +67287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return i > 0 && _t(A) ? Pt(e, E, "linePrefix", i + 1)(A) : E(A); } function E(A) { - return A === null || Ze(A) ? e.check(d4, b, C)(A) : (e.enter("codeFlowValue"), _(A)); + return A === null || Ze(A) ? e.check(f4, b, C)(A) : (e.enter("codeFlowValue"), _(A)); } function _(A) { return A === null || Ze(A) ? (e.exit("codeFlowValue"), E(A)) : (e.consume(A), _); @@ -67327,8 +67339,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.enter("codeIndented"), Pt(e, i, "linePrefix", 5)(u); } function i(u) { - const f = r.events[r.events.length - 1]; - return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? a(u) : n(u); + const d = r.events[r.events.length - 1]; + return d && d[1].type === "linePrefix" && d[2].sliceSerialize(d[1], !0).length >= 4 ? a(u) : n(u); } function a(u) { return u === null ? c(u) : Ze(u) ? e.attempt(jDe, a, c)(u) : (e.enter("codeFlowValue"), s(u)); @@ -67383,13 +67395,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return p === 96 ? (e.consume(p), r++, s) : (e.exit("codeTextSequence"), c(p)); } function c(p) { - return p === null ? n(p) : p === 32 ? (e.enter("space"), e.consume(p), e.exit("space"), c) : p === 96 ? (i = e.enter("codeTextSequence"), o = 0, f(p)) : Ze(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), c) : (e.enter("codeTextData"), u(p)); + return p === null ? n(p) : p === 32 ? (e.enter("space"), e.consume(p), e.exit("space"), c) : p === 96 ? (i = e.enter("codeTextSequence"), o = 0, d(p)) : Ze(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), c) : (e.enter("codeTextData"), u(p)); } function u(p) { return p === null || p === 32 || p === 96 || Ze(p) ? (e.exit("codeTextData"), c(p)) : (e.consume(p), u); } - function f(p) { - return p === 96 ? (e.consume(p), o++, f) : o === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(p)) : (i.type = "codeTextData", u(p)); + function d(p) { + return p === 96 ? (e.consume(p), o++, d) : o === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(p)) : (i.type = "codeTextData", u(p)); } } class VDe { @@ -67567,26 +67579,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function W7(e) { const t = {}; let n = -1, r, o, i, a, s, c, u; - const f = new VDe(e); - for (; ++n < f.length; ) { + const d = new VDe(e); + for (; ++n < d.length; ) { for (; n in t; ) n = t[n]; - if (r = f.get(n), n && r[1].type === "chunkFlow" && f.get(n - 1)[1].type === "listItemPrefix" && (c = r[1]._tokenizer.events, i = 0, i < c.length && c[i][1].type === "lineEndingBlank" && (i += 2), i < c.length && c[i][1].type === "content")) + if (r = d.get(n), n && r[1].type === "chunkFlow" && d.get(n - 1)[1].type === "listItemPrefix" && (c = r[1]._tokenizer.events, i = 0, i < c.length && c[i][1].type === "lineEndingBlank" && (i += 2), i < c.length && c[i][1].type === "content")) for (; ++i < c.length && c[i][1].type !== "content"; ) c[i][1].type === "chunkText" && (c[i][1]._isInFirstContentOfListItem = !0, i++); if (r[0] === "enter") - r[1].contentType && (Object.assign(t, HDe(f, n)), n = t[n], u = !0); + r[1].contentType && (Object.assign(t, HDe(d, n)), n = t[n], u = !0); else if (r[1]._container) { for (i = n, o = void 0; i--; ) - if (a = f.get(i), a[1].type === "lineEnding" || a[1].type === "lineEndingBlank") - a[0] === "enter" && (o && (f.get(o)[1].type = "lineEndingBlank"), a[1].type = "lineEnding", o = i); + if (a = d.get(i), a[1].type === "lineEnding" || a[1].type === "lineEndingBlank") + a[0] === "enter" && (o && (d.get(o)[1].type = "lineEndingBlank"), a[1].type = "lineEnding", o = i); else if (!(a[1].type === "linePrefix" || a[1].type === "listItemIndent")) break; o && (r[1].end = { - ...f.get(o)[1].start - }, s = f.slice(o, n), s.unshift(r), f.splice(o, n - o + 1, s)); + ...d.get(o)[1].start + }, s = d.slice(o, n), s.unshift(r), d.splice(o, n - o + 1, s)); } } - return uo(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !u; + return uo(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !u; } function HDe(e, t) { const n = e.get(t)[1], r = e.get(t)[2]; @@ -67595,12 +67607,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let a = n._tokenizer; a || (a = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0)); const s = a.events, c = [], u = {}; - let f, p, m = -1, g = n, y = 0, b = 0; + let d, p, m = -1, g = n, y = 0, b = 0; const v = [b]; for (; g; ) { for (; e.get(++o)[1] !== g; ) ; - i.push(o), g._tokenizer || (f = r.sliceStream(g), g.next || f.push(null), p && a.defineSkip(g.start), g._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = !0), a.write(f), g._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = void 0)), p = g, g = g.next; + i.push(o), g._tokenizer || (d = r.sliceStream(g), g.next || d.push(null), p && a.defineSkip(g.start), g._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = !0), a.write(d), g._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = void 0)), p = g, g = g.next; } for (g = n; ++m < s.length; ) // Find a void token that includes a break. @@ -67659,7 +67671,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function G7(e, t, n, r, o, i, a, s, c) { const u = c || Number.POSITIVE_INFINITY; - let f = 0; + let d = 0; return p; function p(x) { return x === 60 ? (e.enter(r), e.enter(o), e.enter(i), e.consume(x), e.exit(i), m) : x === null || x === 32 || x === 41 || G0(x) ? n(x) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", { @@ -67678,7 +67690,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return x === 60 || x === 62 || x === 92 ? (e.consume(x), g) : g(x); } function b(x) { - return !f && (x === null || x === 41 || cn(x)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(x)) : f < u && x === 40 ? (e.consume(x), f++, b) : x === 41 ? (e.consume(x), f--, b) : x === null || x === 32 || x === 40 || G0(x) ? n(x) : (e.consume(x), x === 92 ? v : b); + return !d && (x === null || x === 41 || cn(x)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(x)) : d < u && x === 40 ? (e.consume(x), d++, b) : x === 41 ? (e.consume(x), d--, b) : x === null || x === 32 || x === 40 || G0(x) ? n(x) : (e.consume(x), x === 92 ? v : b); } function v(x) { return x === 40 || x === 41 || x === 92 ? (e.consume(x), b) : b(x); @@ -67689,20 +67701,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let s = 0, c; return u; function u(g) { - return e.enter(r), e.enter(o), e.consume(g), e.exit(o), e.enter(i), f; + return e.enter(r), e.enter(o), e.consume(g), e.exit(o), e.enter(i), d; } - function f(g) { + function d(g) { return s > 999 || g === null || g === 91 || g === 93 && !c || // To do: remove in the future once we’ve switched from // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`, // which doesn’t need this. // Hidden footnotes hook. /* c8 ignore next 3 */ - g === 94 && !s && "_hiddenFootnoteSupport" in a.parser.constructs ? n(g) : g === 93 ? (e.exit(i), e.enter(o), e.consume(g), e.exit(o), e.exit(r), t) : Ze(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), f) : (e.enter("chunkString", { + g === 94 && !s && "_hiddenFootnoteSupport" in a.parser.constructs ? n(g) : g === 93 ? (e.exit(i), e.enter(o), e.consume(g), e.exit(o), e.exit(r), t) : Ze(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), d) : (e.enter("chunkString", { contentType: "string" }), p(g)); } function p(g) { - return g === null || g === 91 || g === 93 || Ze(g) || s++ > 999 ? (e.exit("chunkString"), f(g)) : (e.consume(g), c || (c = !_t(g)), g === 92 ? m : p); + return g === null || g === 91 || g === 93 || Ze(g) || s++ > 999 ? (e.exit("chunkString"), d(g)) : (e.consume(g), c || (c = !_t(g)), g === 92 ? m : p); } function m(g) { return g === 91 || g === 92 || g === 93 ? (e.consume(g), s++, p) : p(g); @@ -67720,13 +67732,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function u(m) { return m === a ? (e.exit(i), c(a)) : m === null ? n(m) : Ze(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), Pt(e, u, "linePrefix")) : (e.enter("chunkString", { contentType: "string" - }), f(m)); + }), d(m)); } - function f(m) { - return m === a || m === null || Ze(m) ? (e.exit("chunkString"), u(m)) : (e.consume(m), m === 92 ? p : f); + function d(m) { + return m === a || m === null || Ze(m) ? (e.exit("chunkString"), u(m)) : (e.consume(m), m === 92 ? p : d); } function p(m) { - return m === a || m === 92 ? (e.consume(m), f) : f(m); + return m === a || m === 92 ? (e.consume(m), d) : d(m); } } function Hp(e, t) { @@ -67771,7 +67783,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function u(g) { return G7( e, - f, + d, // Note: we don’t need to reset the way `markdown-rs` does. n, "definitionDestination", @@ -67781,7 +67793,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "definitionDestinationString" )(g); } - function f(g) { + function d(g) { return e.attempt(ZDe, p, p)(g); } function p(g) { @@ -67840,23 +67852,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function o5e(e, t, n) { let r = 0; return o; - function o(f) { - return e.enter("atxHeading"), i(f); + function o(d) { + return e.enter("atxHeading"), i(d); } - function i(f) { - return e.enter("atxHeadingSequence"), a(f); + function i(d) { + return e.enter("atxHeadingSequence"), a(d); } - function a(f) { - return f === 35 && r++ < 6 ? (e.consume(f), a) : f === null || cn(f) ? (e.exit("atxHeadingSequence"), s(f)) : n(f); + function a(d) { + return d === 35 && r++ < 6 ? (e.consume(d), a) : d === null || cn(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d); } - function s(f) { - return f === 35 ? (e.enter("atxHeadingSequence"), c(f)) : f === null || Ze(f) ? (e.exit("atxHeading"), t(f)) : _t(f) ? Pt(e, s, "whitespace")(f) : (e.enter("atxHeadingText"), u(f)); + function s(d) { + return d === 35 ? (e.enter("atxHeadingSequence"), c(d)) : d === null || Ze(d) ? (e.exit("atxHeading"), t(d)) : _t(d) ? Pt(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), u(d)); } - function c(f) { - return f === 35 ? (e.consume(f), c) : (e.exit("atxHeadingSequence"), s(f)); + function c(d) { + return d === 35 ? (e.consume(d), c) : (e.exit("atxHeadingSequence"), s(d)); } - function u(f) { - return f === null || f === 35 || cn(f) ? (e.exit("atxHeadingText"), s(f)) : (e.consume(f), u); + function u(d) { + return d === null || d === 35 || cn(d) ? (e.exit("atxHeadingText"), s(d)) : (e.consume(d), u); } } const i5e = [ @@ -67929,10 +67941,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho tokenize: u5e }, s5e = { partial: !0, - tokenize: f5e + tokenize: d5e }, l5e = { partial: !0, - tokenize: d5e + tokenize: f5e }; function c5e(e) { let t = e.length; @@ -67945,9 +67957,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let o, i, a, s, c; return u; function u(z) { - return f(z); + return d(z); } - function f(z) { + function d(z) { return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(z), p; } function p(z) { @@ -68044,7 +68056,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.exit("htmlFlow"), t(z); } } - function d5e(e, t, n) { + function f5e(e, t, n) { const r = this; return o; function o(a) { @@ -68054,7 +68066,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return r.parser.lazy[r.now().line] ? n(a) : t(a); } } - function f5e(e, t, n) { + function d5e(e, t, n) { return r; function r(o) { return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), e.attempt(Sm, t, n); @@ -68075,9 +68087,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return B === 33 ? (e.consume(B), u) : B === 47 ? (e.consume(B), k) : B === 63 ? (e.consume(B), _) : Tr(B) ? (e.consume(B), P) : n(B); } function u(B) { - return B === 45 ? (e.consume(B), f) : B === 91 ? (e.consume(B), i = 0, y) : Tr(B) ? (e.consume(B), E) : n(B); + return B === 45 ? (e.consume(B), d) : B === 91 ? (e.consume(B), i = 0, y) : Tr(B) ? (e.consume(B), E) : n(B); } - function f(B) { + function d(B) { return B === 45 ? (e.consume(B), g) : n(B); } function p(B) { @@ -68210,7 +68222,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho end: { ...e[a][1].end } - }, f = { + }, d = { type: "labelText", start: { ...e[i + r + 2][1].end @@ -68219,7 +68231,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...e[a - 2][1].start } }; - return s = [["enter", c, t], ["enter", u, t]], s = Oo(s, e.slice(i + 1, i + r + 3)), s = Oo(s, [["enter", f, t]]), s = Oo(s, F1(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = Oo(s, [["exit", f, t], e[a - 2], e[a - 1], ["exit", u, t]]), s = Oo(s, e.slice(a + 1)), s = Oo(s, [["exit", c, t]]), uo(e, i, e.length, s), e; + return s = [["enter", c, t], ["enter", u, t]], s = Oo(s, e.slice(i + 1, i + r + 3)), s = Oo(s, [["enter", d, t]]), s = Oo(s, F1(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = Oo(s, [["exit", d, t], e[a - 2], e[a - 1], ["exit", u, t]]), s = Oo(s, e.slice(a + 1)), s = Oo(s, [["exit", c, t]]), uo(e, i, e.length, s), e; } function x5e(e, t, n) { const r = this; @@ -68237,12 +68249,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(m), e.exit("labelMarker"), e.exit("labelEnd"), c) : n(m); } function c(m) { - return m === 40 ? e.attempt(m5e, f, a ? f : p)(m) : m === 91 ? e.attempt(g5e, f, a ? u : p)(m) : a ? f(m) : p(m); + return m === 40 ? e.attempt(m5e, d, a ? d : p)(m) : m === 91 ? e.attempt(g5e, d, a ? u : p)(m) : a ? d(m) : p(m); } function u(m) { - return e.attempt(y5e, f, p)(m); + return e.attempt(y5e, d, p)(m); } - function f(m) { + function d(m) { return t(m); } function p(m) { @@ -68258,21 +68270,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return cn(p) ? Hp(e, i)(p) : i(p); } function i(p) { - return p === 41 ? f(p) : G7(e, a, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p); + return p === 41 ? d(p) : G7(e, a, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p); } function a(p) { - return cn(p) ? Hp(e, c)(p) : f(p); + return cn(p) ? Hp(e, c)(p) : d(p); } function s(p) { return n(p); } function c(p) { - return p === 34 || p === 39 || p === 40 ? Y7(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : f(p); + return p === 34 || p === 39 || p === 40 ? Y7(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : d(p); } function u(p) { - return cn(p) ? Hp(e, f)(p) : f(p); + return cn(p) ? Hp(e, d)(p) : d(p); } - function f(p) { + function d(p) { return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p); } } @@ -68398,11 +68410,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.enter("listItemMarker"), e.consume(g), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || g, e.check( Sm, // Can’t be empty when interrupting. - r.interrupt ? n : f, + r.interrupt ? n : d, e.attempt(O5e, m, p) ); } - function f(g) { + function d(g) { return r.containerState.initialBlankLine = !0, i++, m(g); } function p(g) { @@ -68478,10 +68490,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let o; return i; function i(u) { - let f = r.events.length, p; - for (; f--; ) - if (r.events[f][1].type !== "lineEnding" && r.events[f][1].type !== "linePrefix" && r.events[f][1].type !== "content") { - p = r.events[f][1].type === "paragraph"; + let d = r.events.length, p; + for (; d--; ) + if (r.events[d][1].type !== "lineEnding" && r.events[d][1].type !== "linePrefix" && r.events[d][1].type !== "content") { + p = r.events[d][1].type === "paragraph"; break; } return !r.parser.lazy[r.now().line] && (r.interrupt || p) ? (e.enter("setextHeadingLine"), o = u, a(u)) : n(u); @@ -68534,23 +68546,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function t(n) { const r = this, o = this.parser.constructs[e], i = n.attempt(o, a, s); return a; - function a(f) { - return u(f) ? i(f) : s(f); + function a(d) { + return u(d) ? i(d) : s(d); } - function s(f) { - if (f === null) { - n.consume(f); + function s(d) { + if (d === null) { + n.consume(d); return; } - return n.enter("data"), n.consume(f), c; + return n.enter("data"), n.consume(d), c; } - function c(f) { - return u(f) ? (n.exit("data"), i(f)) : (n.consume(f), c); + function c(d) { + return u(d) ? (n.exit("data"), i(d)) : (n.consume(d), c); } - function u(f) { - if (f === null) + function u(d) { + if (d === null) return !0; - const p = o[f]; + const p = o[d]; let m = -1; if (p) for (; ++m < p.length; ) { @@ -68641,8 +68653,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 60: a5e, 61: h4, 95: Xv, - 96: f4, - 126: f4 + 96: d4, + 126: d4 }, Y5e = { 38: q7, 92: H7 @@ -68708,7 +68720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho sliceStream: g, write: p }; - let f = t.tokenize.call(u, c); + let d = t.tokenize.call(u, c); return t.resolveAll && i.push(t), u; function p(L) { return a = Oo(a, L), v(), a[a.length - 1] !== null ? [] : (P(t, 0), u.events = F1(i, u.events, u), u.events); @@ -68750,7 +68762,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function x(L) { - f = f(L); + d = d(L); } function E(L) { Ze(L) ? (r.line++, r.column = 1, r.offset += L === -3 ? 2 : 1, $()) : L !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference @@ -68927,7 +68939,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return o; function o(i, a, s) { const c = []; - let u, f, p, m, g; + let u, d, p, m, g; for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), p = 0, t = "", n && (i.charCodeAt(0) === 65279 && p++, n = void 0); p < i.length; ) { if (m4.lastIndex = p, u = m4.exec(i), m = u && u.index !== void 0 ? u.index : i.length, g = i.charCodeAt(m), !u) { t = i.slice(p); @@ -68942,7 +68954,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho break; } case 9: { - for (f = Math.ceil(e / 4) * 4, c.push(-2); e++ < f; ) c.push(-1); + for (d = Math.ceil(e / 4) * 4, c.push(-2); e++ < d; ) c.push(-1); break; } case 10: { @@ -68972,9 +68984,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } const Q7 = {}.hasOwnProperty; function u3e(e, t, n) { - return typeof t != "string" && (n = t, t = void 0), d3e(n)(i3e(o3e(n).document().write(a3e()(e, t, !0)))); + return typeof t != "string" && (n = t, t = void 0), f3e(n)(i3e(o3e(n).document().write(a3e()(e, t, !0)))); } - function d3e(e) { + function f3e(e) { const t = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], @@ -69077,18 +69089,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const n = {}; return r; function r(oe) { - let de = { + let fe = { type: "root", children: [] }; const _e = { - stack: [de], + stack: [fe], tokenStack: [], config: t, enter: s, exit: u, buffer: a, - resume: f, + resume: d, data: n }, Ce = []; let Oe = -1; @@ -69110,7 +69122,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const He = _e.tokenStack[_e.tokenStack.length - 1]; (He[1] || g4).call(_e, void 0, He[0]); } - for (de.position = { + for (fe.position = { start: zs(oe.length > 0 ? oe[0][1].start : { line: 1, column: 1, @@ -69122,11 +69134,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho offset: 0 }) }, Oe = -1; ++Oe < t.transforms.length; ) - de = t.transforms[Oe](de) || de; - return de; + fe = t.transforms[Oe](fe) || fe; + return fe; } - function o(oe, de, _e) { - let Ce = de - 1, Oe = -1, He = !1, Ot, it, Et, xn; + function o(oe, fe, _e) { + let Ce = fe - 1, Oe = -1, He = !1, Ot, it, Et, xn; for (; ++Ce <= _e; ) { const Mt = oe[Ce]; switch (Mt[1].type) { @@ -69153,11 +69165,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (Ot) { let De = Ce; for (it = void 0; De--; ) { - const dt = oe[De]; - if (dt[1].type === "lineEnding" || dt[1].type === "lineEndingBlank") { - if (dt[0] === "exit") continue; - it && (oe[it][1].type = "lineEndingBlank", He = !0), dt[1].type = "lineEnding", it = De; - } else if (!(dt[1].type === "linePrefix" || dt[1].type === "blockQuotePrefix" || dt[1].type === "blockQuotePrefixWhitespace" || dt[1].type === "blockQuoteMarker" || dt[1].type === "listItemIndent")) break; + const ft = oe[De]; + if (ft[1].type === "lineEnding" || ft[1].type === "lineEndingBlank") { + if (ft[0] === "exit") continue; + it && (oe[it][1].type = "lineEndingBlank", He = !0), ft[1].type = "lineEnding", it = De; + } else if (!(ft[1].type === "linePrefix" || ft[1].type === "blockQuotePrefix" || ft[1].type === "blockQuotePrefixWhitespace" || ft[1].type === "blockQuoteMarker" || ft[1].type === "listItemIndent")) break; } Et && (!it || Et < it) && (Ot._spread = !0), Ot.end = Object.assign({}, it ? oe[it][1].start : Mt[1].end), oe.splice(it || Ce, 0, ["exit", Ot, Mt[2]]), Ce++, _e++; } @@ -69173,12 +69185,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } - return oe[de][1]._spread = He, _e; + return oe[fe][1]._spread = He, _e; } - function i(oe, de) { + function i(oe, fe) { return _e; function _e(Ce) { - s.call(this, oe(Ce), Ce), de && de.call(this, Ce); + s.call(this, oe(Ce), Ce), fe && fe.call(this, Ce); } } function a() { @@ -69187,30 +69199,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: [] }); } - function s(oe, de, _e) { - this.stack[this.stack.length - 1].children.push(oe), this.stack.push(oe), this.tokenStack.push([de, _e || void 0]), oe.position = { - start: zs(de.start), + function s(oe, fe, _e) { + this.stack[this.stack.length - 1].children.push(oe), this.stack.push(oe), this.tokenStack.push([fe, _e || void 0]), oe.position = { + start: zs(fe.start), // @ts-expect-error: `end` will be patched later. end: void 0 }; } function c(oe) { - return de; - function de(_e) { + return fe; + function fe(_e) { oe && oe.call(this, _e), u.call(this, _e); } } - function u(oe, de) { + function u(oe, fe) { const _e = this.stack.pop(), Ce = this.tokenStack.pop(); if (Ce) - Ce[0].type !== oe.type && (de ? de.call(this, oe, Ce[0]) : (Ce[1] || g4).call(this, oe, Ce[0])); + Ce[0].type !== oe.type && (fe ? fe.call(this, oe, Ce[0]) : (Ce[1] || g4).call(this, oe, Ce[0])); else throw new Error("Cannot close `" + oe.type + "` (" + Vp({ start: oe.start, end: oe.end }) + "): it’s not open"); _e.position.end = zs(oe.end); } - function f() { + function d() { return xR(this.stack.pop()); } function p() { @@ -69218,54 +69230,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function m(oe) { if (this.data.expectingFirstListItemValue) { - const de = this.stack[this.stack.length - 2]; - de.start = Number.parseInt(this.sliceSerialize(oe), 10), this.data.expectingFirstListItemValue = void 0; + const fe = this.stack[this.stack.length - 2]; + fe.start = Number.parseInt(this.sliceSerialize(oe), 10), this.data.expectingFirstListItemValue = void 0; } } function g() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.lang = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.lang = oe; } function y() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.meta = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.meta = oe; } function b() { this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0); } function v() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.value = oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.value = oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0; } function x() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.value = oe.replace(/(\r?\n|\r)$/g, ""); + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.value = oe.replace(/(\r?\n|\r)$/g, ""); } function E(oe) { - const de = this.resume(), _e = this.stack[this.stack.length - 1]; - _e.label = de, _e.identifier = Jo(this.sliceSerialize(oe)).toLowerCase(); + const fe = this.resume(), _e = this.stack[this.stack.length - 1]; + _e.label = fe, _e.identifier = Jo(this.sliceSerialize(oe)).toLowerCase(); } function _() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.title = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.title = oe; } function C() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.url = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.url = oe; } function k(oe) { - const de = this.stack[this.stack.length - 1]; - if (!de.depth) { + const fe = this.stack[this.stack.length - 1]; + if (!fe.depth) { const _e = this.sliceSerialize(oe).length; - de.depth = _e; + fe.depth = _e; } } function A() { this.data.setextHeadingSlurpLineEnding = !0; } function O(oe) { - const de = this.stack[this.stack.length - 1]; - de.depth = this.sliceSerialize(oe).codePointAt(0) === 61 ? 1 : 2; + const fe = this.stack[this.stack.length - 1]; + fe.depth = this.sliceSerialize(oe).codePointAt(0) === 61 ? 1 : 2; } function P() { this.data.setextHeadingSlurpLineEnding = void 0; @@ -69280,38 +69292,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, _e.push(Ce)), this.stack.push(Ce); } function $(oe) { - const de = this.stack.pop(); - de.value += this.sliceSerialize(oe), de.position.end = zs(oe.end); + const fe = this.stack.pop(); + fe.value += this.sliceSerialize(oe), fe.position.end = zs(oe.end); } function L(oe) { - const de = this.stack[this.stack.length - 1]; + const fe = this.stack[this.stack.length - 1]; if (this.data.atHardBreak) { - const _e = de.children[de.children.length - 1]; + const _e = fe.children[fe.children.length - 1]; _e.position.end = zs(oe.end), this.data.atHardBreak = void 0; return; } - !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(de.type) && (I.call(this, oe), $.call(this, oe)); + !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(fe.type) && (I.call(this, oe), $.call(this, oe)); } function N() { this.data.atHardBreak = !0; } function U() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.value = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.value = oe; } function j() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.value = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.value = oe; } function V() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.value = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.value = oe; } function F() { const oe = this.stack[this.stack.length - 1]; if (this.data.inReference) { - const de = this.data.referenceType || "shortcut"; - oe.type += "Reference", oe.referenceType = de, delete oe.url, delete oe.title; + const fe = this.data.referenceType || "shortcut"; + oe.type += "Reference", oe.referenceType = fe, delete oe.url, delete oe.title; } else delete oe.identifier, delete oe.label; this.data.referenceType = void 0; @@ -69319,31 +69331,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function K() { const oe = this.stack[this.stack.length - 1]; if (this.data.inReference) { - const de = this.data.referenceType || "shortcut"; - oe.type += "Reference", oe.referenceType = de, delete oe.url, delete oe.title; + const fe = this.data.referenceType || "shortcut"; + oe.type += "Reference", oe.referenceType = fe, delete oe.url, delete oe.title; } else delete oe.identifier, delete oe.label; this.data.referenceType = void 0; } function W(oe) { - const de = this.sliceSerialize(oe), _e = this.stack[this.stack.length - 2]; - _e.label = l3e(de), _e.identifier = Jo(de).toLowerCase(); + const fe = this.sliceSerialize(oe), _e = this.stack[this.stack.length - 2]; + _e.label = l3e(fe), _e.identifier = Jo(fe).toLowerCase(); } function Y() { - const oe = this.stack[this.stack.length - 1], de = this.resume(), _e = this.stack[this.stack.length - 1]; + const oe = this.stack[this.stack.length - 1], fe = this.resume(), _e = this.stack[this.stack.length - 1]; if (this.data.inReference = !0, _e.type === "link") { const Ce = oe.children; _e.children = Ce; } else - _e.alt = de; + _e.alt = fe; } function B() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.url = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.url = oe; } function D() { - const oe = this.resume(), de = this.stack[this.stack.length - 1]; - de.title = oe; + const oe = this.resume(), fe = this.stack[this.stack.length - 1]; + fe.title = oe; } function G() { this.data.inReference = void 0; @@ -69352,32 +69364,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.data.referenceType = "collapsed"; } function H(oe) { - const de = this.resume(), _e = this.stack[this.stack.length - 1]; - _e.label = de, _e.identifier = Jo(this.sliceSerialize(oe)).toLowerCase(), this.data.referenceType = "full"; + const fe = this.resume(), _e = this.stack[this.stack.length - 1]; + _e.label = fe, _e.identifier = Jo(this.sliceSerialize(oe)).toLowerCase(), this.data.referenceType = "full"; } function X(oe) { this.data.characterReferenceType = oe.type; } function Q(oe) { - const de = this.sliceSerialize(oe), _e = this.data.characterReferenceType; + const fe = this.sliceSerialize(oe), _e = this.data.characterReferenceType; let Ce; - _e ? (Ce = U7(de, _e === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = wR(de); + _e ? (Ce = U7(fe, _e === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = wR(fe); const Oe = this.stack[this.stack.length - 1]; Oe.value += Ce; } function ne(oe) { - const de = this.stack.pop(); - de.position.end = zs(oe.end); + const fe = this.stack.pop(); + fe.position.end = zs(oe.end); } function te(oe) { $.call(this, oe); - const de = this.stack[this.stack.length - 1]; - de.url = this.sliceSerialize(oe); + const fe = this.stack[this.stack.length - 1]; + fe.url = this.sliceSerialize(oe); } function se(oe) { $.call(this, oe); - const de = this.stack[this.stack.length - 1]; - de.url = "mailto:" + this.sliceSerialize(oe); + const fe = this.stack[this.stack.length - 1]; + fe.url = "mailto:" + this.sliceSerialize(oe); } function ue() { return { @@ -69501,10 +69513,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let n = -1; for (; ++n < t.length; ) { const r = t[n]; - Array.isArray(r) ? J7(e, r) : f3e(e, r); + Array.isArray(r) ? J7(e, r) : d3e(e, r); } } - function f3e(e, t) { + function d3e(e, t) { let n; for (n in t) if (Q7.call(t, n)) @@ -69599,7 +69611,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.patch(t, n), e.applyData(t, n); } function b3e(e, t) { - const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), o = Gd(r.toLowerCase()), i = e.footnoteOrder.indexOf(r); + const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), o = Kf(r.toLowerCase()), i = e.footnoteOrder.indexOf(r); let a, s = e.footnoteCounts.get(r); s === void 0 ? (s = 0, e.footnoteOrder.push(r), a = e.footnoteOrder.length) : a = i + 1, s += 1, e.footnoteCounts.set(r, s); const c = { @@ -69651,13 +69663,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n); if (!r) return eq(e, t); - const o = { src: Gd(r.url || ""), alt: t.alt }; + const o = { src: Kf(r.url || ""), alt: t.alt }; r.title !== null && r.title !== void 0 && (o.title = r.title); const i = { type: "element", tagName: "img", properties: o, children: [] }; return e.patch(t, i), e.applyData(t, i); } function _3e(e, t) { - const n = { src: Gd(t.url) }; + const n = { src: Kf(t.url) }; t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title); const r = { type: "element", tagName: "img", properties: n, children: [] }; return e.patch(t, r), e.applyData(t, r); @@ -69677,7 +69689,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n); if (!r) return eq(e, t); - const o = { href: Gd(r.url || "") }; + const o = { href: Kf(r.url || "") }; r.title !== null && r.title !== void 0 && (o.title = r.title); const i = { type: "element", @@ -69688,7 +69700,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.patch(t, i), e.applyData(t, i); } function k3e(e, t) { - const n = { href: Gd(t.url) }; + const n = { href: Kf(t.url) }; t.title !== null && t.title !== void 0 && (n.title = t.title); const r = { type: "element", @@ -69701,9 +69713,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function T3e(e, t, n) { const r = e.all(t), o = n ? A3e(n) : tq(t), i = {}, a = []; if (typeof t.checked == "boolean") { - const f = r[0]; + const d = r[0]; let p; - f && f.type === "element" && f.tagName === "p" ? p = f : (p = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(p)), p.children.length > 0 && p.children.unshift({ type: "text", value: " " }), p.children.unshift({ + d && d.type === "element" && d.tagName === "p" ? p = d : (p = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(p)), p.children.length > 0 && p.children.unshift({ type: "text", value: " " }), p.children.unshift({ type: "element", tagName: "input", properties: { type: "checkbox", checked: t.checked, disabled: !0 }, @@ -69712,9 +69724,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } let s = -1; for (; ++s < r.length; ) { - const f = r[s]; - (o || s !== 0 || f.type !== "element" || f.tagName !== "p") && a.push({ type: "text", value: ` -` }), f.type === "element" && f.tagName === "p" && !o ? a.push(...f.children) : a.push(f); + const d = r[s]; + (o || s !== 0 || d.type !== "element" || d.tagName !== "p") && a.push({ type: "text", value: ` +` }), d.type === "element" && d.tagName === "p" && !o ? a.push(...d.children) : a.push(d); } const c = r[r.length - 1]; c && (o || c.type !== "element" || c.tagName !== "p") && a.push({ type: "text", value: ` @@ -69815,13 +69827,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let y = { type: "element", tagName: i, properties: m, children: [] }; p && (y.children = e.all(p), e.patch(p, y), y = e.applyData(p, y)), u.push(y); } - const f = { + const d = { type: "element", tagName: "tr", properties: {}, children: e.wrap(u, !0) }; - return e.patch(t, f), e.applyData(t, f); + return e.patch(t, d), e.applyData(t, d); } function $3e(e, t) { const n = { @@ -69961,7 +69973,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return n(new x4[i](a), o); }; return r; - }, w4 = (e) => z3e(/* @__PURE__ */ new Map(), e)(0), Lu = "", { toString: B3e } = {}, { keys: U3e } = Object, dp = (e) => { + }, w4 = (e) => z3e(/* @__PURE__ */ new Map(), e)(0), Lu = "", { toString: B3e } = {}, { keys: U3e } = Object, fp = (e) => { const t = typeof e; if (t !== "object" || !e) return [L1, t]; @@ -69990,33 +70002,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, i = (a) => { if (n.has(a)) return n.get(a); - let [s, c] = dp(a); + let [s, c] = fp(a); switch (s) { case L1: { - let f = a; + let d = a; switch (c) { case "bigint": - s = oq, f = a.toString(); + s = oq, d = a.toString(); break; case "function": case "symbol": if (e) throw new TypeError("unable to serialize " + c); - f = null; + d = null; break; case "undefined": return o([nq], a); } - return o([s, f], a); + return o([s, d], a); } case qp: { if (c) { let m = a; return c === "DataView" ? m = new Uint8Array(a.buffer) : c === "ArrayBuffer" && (m = new Uint8Array(a)), o([c, [...m]], a); } - const f = [], p = o([s, f], a); + const d = [], p = o([s, d], a); for (const m of a) - f.push(i(m)); + d.push(i(m)); return p; } case K0: { @@ -70031,27 +70043,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } if (t && "toJSON" in a) return i(a.toJSON()); - const f = [], p = o([s, f], a); + const d = [], p = o([s, d], a); for (const m of U3e(a)) - (e || !xv(dp(a[m]))) && f.push([i(m), i(a[m])]); + (e || !xv(fp(a[m]))) && d.push([i(m), i(a[m])]); return p; } case _R: return o([s, a.toISOString()], a); case ER: { - const { source: f, flags: p } = a; - return o([s, { source: f, flags: p }], a); + const { source: d, flags: p } = a; + return o([s, { source: d, flags: p }], a); } case CR: { - const f = [], p = o([s, f], a); + const d = [], p = o([s, d], a); for (const [m, g] of a) - (e || !(xv(dp(m)) || xv(dp(g)))) && f.push([i(m), i(g)]); + (e || !(xv(fp(m)) || xv(fp(g)))) && d.push([i(m), i(g)]); return p; } case kR: { - const f = [], p = o([s, f], a); + const d = [], p = o([s, d], a); for (const m of a) - (e || !xv(dp(m))) && f.push(i(m)); + (e || !xv(fp(m))) && d.push(i(m)); return p; } } @@ -70089,7 +70101,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); if (!u) continue; - const f = e.all(u), p = String(u.identifier).toUpperCase(), m = Gd(p.toLowerCase()); + const d = e.all(u), p = String(u.identifier).toUpperCase(), m = Kf(p.toLowerCase()); let g = 0; const y = [], b = e.footnoteCounts.get(p); for (; b !== void 0 && ++g <= b; ) { @@ -70107,17 +70119,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: Array.isArray(E) ? E : [E] }); } - const v = f[f.length - 1]; + const v = d[d.length - 1]; if (v && v.type === "element" && v.tagName === "p") { const E = v.children[v.children.length - 1]; E && E.type === "text" ? E.value += " " : v.children.push({ type: "text", value: " " }), v.children.push(...y); } else - f.push(...y); + d.push(...y); const x = { type: "element", tagName: "li", properties: { id: t + "fn-" + m }, - children: e.wrap(f, !0) + children: e.wrap(d, !0) }; e.patch(u, x), s.push(x); } @@ -70236,7 +70248,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho typeof t == "function" && typeof n != "function" ? (r = n, n = t) : o = t; const i = z1(o), a = r ? -1 : 1; s(e, void 0, [])(); - function s(c, u, f) { + function s(c, u, d) { const p = ( /** @type {Record} */ c && typeof c == "object" ? c : {} @@ -70256,7 +70268,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return m; function m() { let g = iq, y, b, v; - if ((!t || i(c, u, f[f.length - 1] || void 0)) && (g = e4e(n(c, f)), g[0] === QC)) + if ((!t || i(c, u, d[d.length - 1] || void 0)) && (g = e4e(n(c, d)), g[0] === QC)) return g; if ("children" in c && c.children) { const x = ( @@ -70264,7 +70276,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c ); if (x.children && g[0] !== J3e) - for (b = (r ? x.children.length : -1) + a, v = f.concat(x); b > -1 && b < x.children.length; ) { + for (b = (r ? x.children.length : -1) + a, v = d.concat(x); b > -1 && b < x.children.length; ) { const E = x.children[b]; if (y = s(E, b, v)(), y[0] === QC) return y; @@ -70282,8 +70294,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let o, i, a; typeof t == "function" && typeof n != "function" ? (i = void 0, a = t, o = n) : (i = t, a = n, o = r), aq(e, i, s, o); function s(c, u) { - const f = u[u.length - 1], p = f ? f.children.indexOf(c) : void 0; - return a(c, p, f); + const d = u[u.length - 1], p = d ? d.children.indexOf(c) : void 0; + return a(c, p, d); } } const JC = {}.hasOwnProperty, t4e = {}; @@ -70301,32 +70313,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho patch: r4e, wrap: a4e }; - return TR(e, function(f) { - if (f.type === "definition" || f.type === "footnoteDefinition") { - const p = f.type === "definition" ? r : o, m = String(f.identifier).toUpperCase(); - p.has(m) || p.set(m, f); + return TR(e, function(d) { + if (d.type === "definition" || d.type === "footnoteDefinition") { + const p = d.type === "definition" ? r : o, m = String(d.identifier).toUpperCase(); + p.has(m) || p.set(m, d); } }), s; - function c(f, p) { - const m = f.type, g = s.handlers[m]; + function c(d, p) { + const m = d.type, g = s.handlers[m]; if (JC.call(s.handlers, m) && g) - return g(s, f, p); + return g(s, d, p); if (s.options.passThrough && s.options.passThrough.includes(m)) { - if ("children" in f) { - const { children: b, ...v } = f, x = Y0(v); - return x.children = s.all(f), x; + if ("children" in d) { + const { children: b, ...v } = d, x = Y0(v); + return x.children = s.all(d), x; } - return Y0(f); + return Y0(d); } - return (s.options.unknownHandler || i4e)(s, f, p); + return (s.options.unknownHandler || i4e)(s, d, p); } - function u(f) { + function u(d) { const p = []; - if ("children" in f) { - const m = f.children; + if ("children" in d) { + const m = d.children; let g = -1; for (; ++g < m.length; ) { - const y = s.one(m[g], f); + const y = s.one(m[g], d); if (y) { if (g && m[g - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = _4(y.value)), !Array.isArray(y) && y.type === "element")) { const b = y.children[0]; @@ -70414,34 +70426,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, i = function(u) { if (!u || t.call(u) !== "[object Object]") return !1; - var f = e.call(u, "constructor"), p = u.constructor && u.constructor.prototype && e.call(u.constructor.prototype, "isPrototypeOf"); - if (u.constructor && !f && !p) + var d = e.call(u, "constructor"), p = u.constructor && u.constructor.prototype && e.call(u.constructor.prototype, "isPrototypeOf"); + if (u.constructor && !d && !p) return !1; var m; for (m in u) ; return typeof m > "u" || e.call(u, m); - }, a = function(u, f) { - n && f.name === "__proto__" ? n(u, f.name, { + }, a = function(u, d) { + n && d.name === "__proto__" ? n(u, d.name, { enumerable: !0, configurable: !0, - value: f.newValue, + value: d.newValue, writable: !0 - }) : u[f.name] = f.newValue; - }, s = function(u, f) { - if (f === "__proto__") - if (e.call(u, f)) { + }) : u[d.name] = d.newValue; + }, s = function(u, d) { + if (d === "__proto__") + if (e.call(u, d)) { if (r) - return r(u, f).value; + return r(u, d).value; } else return; - return u[f]; + return u[d]; }; return nE = function c() { - var u, f, p, m, g, y, b = arguments[0], v = 1, x = arguments.length, E = !1; + var u, d, p, m, g, y, b = arguments[0], v = 1, x = arguments.length, E = !1; for (typeof b == "boolean" && (E = b, b = arguments[1] || {}, v = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); v < x; ++v) if (u = arguments[v], u != null) - for (f in u) - p = s(b, f), m = s(u, f), b !== m && (E && m && (i(m) || (g = o(m))) ? (g ? (g = !1, y = p && o(p) ? p : []) : y = p && i(p) ? p : {}, a(b, { name: f, newValue: c(E, y, m) })) : typeof m < "u" && a(b, { name: f, newValue: m })); + for (d in u) + p = s(b, d), m = s(u, d), b !== m && (E && m && (i(m) || (g = o(m))) ? (g ? (g = !1, y = p && o(p) ? p : []) : y = p && i(p) ? p : {}, a(b, { name: d, newValue: c(E, y, m) })) : typeof m < "u" && a(b, { name: d, newValue: m })); return b; }, nE; } @@ -70463,7 +70475,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new TypeError("Expected function as last argument, not " + a); s(null, ...o); function s(c, ...u) { - const f = e[++i]; + const d = e[++i]; let p = -1; if (c) { a(c); @@ -70471,7 +70483,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } for (; ++p < o.length; ) (u[p] === null || u[p] === void 0) && (u[p] = o[p]); - o = u, f ? d4e(f, s)(...u) : a(null, ...u); + o = u, d ? f4e(d, s)(...u) : a(null, ...u); } } function r(o) { @@ -70482,7 +70494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.push(o), t; } } - function d4e(e, t) { + function f4e(e, t) { let n; return r; function r(...a) { @@ -70492,13 +70504,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho try { c = e.apply(this, a); } catch (u) { - const f = ( + const d = ( /** @type {Error} */ u ); if (s && n) - throw f; - return o(f); + throw d; + return o(d); } s || (c && c.then && typeof c.then == "function" ? c.then(i, o) : c instanceof Error ? o(c) : i(c)); } @@ -70509,8 +70521,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o(null, a); } } - const _i = { basename: f4e, dirname: p4e, extname: h4e, join: m4e, sep: "/" }; - function f4e(e, t) { + const _i = { basename: d4e, dirname: p4e, extname: h4e, join: m4e, sep: "/" }; + function d4e(e, t) { if (t !== void 0 && typeof t != "string") throw new TypeError('"ext" argument must be a string'); _m(e); @@ -71279,22 +71291,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /** @type {unknown} */ r.parse(s) ); - r.run(c, s, function(f, p, m) { - if (f || !p || !m) - return u(f); + r.run(c, s, function(d, p, m) { + if (d || !p || !m) + return u(d); const g = ( /** @type {CompileTree extends undefined ? Node : CompileTree} */ /** @type {unknown} */ p ), y = r.stringify(g, m); T4e(y) ? m.value = y : m.result = y, u( - f, + d, /** @type {VFileWithOutput} */ m ); }); - function u(f, p) { - f || !p ? a(f) : i ? i(p) : n(void 0, p); + function u(d, p) { + d || !p ? a(d) : i ? i(p) : n(void 0, p); } } } @@ -71381,12 +71393,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function i(a, s) { const c = wv(n); o.run(t, c, u); - function u(f, p, m) { + function u(d, p, m) { const g = ( /** @type {TailTree extends undefined ? Node : TailTree} */ p || t ); - f ? s(f) : a ? a(g) : r(void 0, g, m); + d ? s(d) : a ? a(g) : r(void 0, g, m); } } } @@ -71519,11 +71531,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho c(u, []); else if (typeof u == "object") if (Array.isArray(u)) { - const [f, ...p] = ( + const [d, ...p] = ( /** @type {PluginTuple>} */ u ); - c(f, p); + c(d, p); } else a(u); else @@ -71537,16 +71549,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s(u.plugins), u.settings && (o.settings = rE(!0, o.settings, u.settings)); } function s(u) { - let f = -1; + let d = -1; if (u != null) if (Array.isArray(u)) - for (; ++f < u.length; ) { - const p = u[f]; + for (; ++d < u.length; ) { + const p = u[d]; i(p); } else throw new TypeError("Expected a list of plugins, not `" + u + "`"); } - function c(u, f) { + function c(u, d) { let p = -1, m = -1; for (; ++p < r.length; ) if (r[p][0] === u) { @@ -71554,9 +71566,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho break; } if (m === -1) - r.push([u, ...f]); - else if (f.length > 0) { - let [g, ...y] = f; + r.push([u, ...d]); + else if (d.length > 0) { + let [g, ...y] = d; const b = r[m][1]; ek(b) && ek(g) && (g = rE(!0, b, g)), r[m] = [u, g, ...y]; } @@ -71648,8 +71660,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function $4e(e, t) { const n = t.allowedElements, r = t.allowElement, o = t.components, i = t.disallowedElements, a = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || j4e; - for (const f of M4e) - Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + R4e + f.id, void 0); + for (const d of M4e) + Object.hasOwn(t, d.from) && ("" + d.from + (d.to ? "use `" + d.to + "` instead" : "remove it") + R4e + d.id, void 0); return TR(e, u), Xje(e, { Fragment: S.Fragment, components: o, @@ -71659,21 +71671,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho passKeys: !0, passNode: !0 }); - function u(f, p, m) { - if (f.type === "raw" && m && typeof p == "number") - return a ? m.children.splice(p, 1) : m.children[p] = { type: "text", value: f.value }, p; - if (f.type === "element") { + function u(d, p, m) { + if (d.type === "raw" && m && typeof p == "number") + return a ? m.children.splice(p, 1) : m.children[p] = { type: "text", value: d.value }, p; + if (d.type === "element") { let g; for (g in J_) - if (Object.hasOwn(J_, g) && Object.hasOwn(f.properties, g)) { - const y = f.properties[g], b = J_[g]; - (b === null || b.includes(f.tagName)) && (f.properties[g] = c(String(y || ""), g, f)); + if (Object.hasOwn(J_, g) && Object.hasOwn(d.properties, g)) { + const y = d.properties[g], b = J_[g]; + (b === null || b.includes(d.tagName)) && (d.properties[g] = c(String(y || ""), g, d)); } } - if (f.type === "element") { - let g = n ? !n.includes(f.tagName) : i ? i.includes(f.tagName) : !1; - if (!g && r && typeof p == "number" && (g = !r(f, p, m)), g && m && typeof p == "number") - return s && f.children ? m.children.splice(p, 1, ...f.children) : m.children.splice(p, 1), p; + if (d.type === "element") { + let g = n ? !n.includes(d.tagName) : i ? i.includes(d.tagName) : !1; + if (!g && r && typeof p == "number" && (g = !r(d, p, m)), g && m && typeof p == "number") + return s && d.children ? m.children.splice(p, 1, ...d.children) : m.children.splice(p, 1), p; } } } @@ -71705,10 +71717,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let a = -1; for (; ++a < i.length; ) aq(e, "text", s); - function s(u, f) { + function s(u, d) { let p = -1, m; - for (; ++p < f.length; ) { - const g = f[p], y = m ? m.children : void 0; + for (; ++p < d.length; ) { + const g = d[p], y = m ? m.children : void 0; if (o( g, y ? y.indexOf(g) : void 0, @@ -71718,10 +71730,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho m = g; } if (m) - return c(u, f); + return c(u, d); } - function c(u, f) { - const p = f[f.length - 1], m = i[a][0], g = i[a][1]; + function c(u, d) { + const p = d[d.length - 1], m = i[a][0], g = i[a][1]; let y = 0; const v = p.children.indexOf(u); let x = !1, E = []; @@ -71731,7 +71743,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const C = _.index, k = { index: _.index, input: _.input, - stack: [...f, u] + stack: [...d, u] }; let A = g(..._, k); if (typeof A == "string" && (A = A.length > 0 ? { type: "text", value: A } : void 0), A === !1 ? m.lastIndex = C + 1 : (y !== C && E.push({ @@ -71764,15 +71776,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e; }; } - const uE = "phrasing", dE = ["autolink", "link", "image", "label"]; + const uE = "phrasing", fE = ["autolink", "link", "image", "label"]; function U4e() { return { transforms: [Y4e], enter: { literalAutolink: H4e, - literalAutolinkEmail: fE, - literalAutolinkHttp: fE, - literalAutolinkWww: fE + literalAutolinkEmail: dE, + literalAutolinkHttp: dE, + literalAutolinkWww: dE }, exit: { literalAutolink: K4e, @@ -71790,21 +71802,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho before: "[+\\-.\\w]", after: "[\\-.\\w]", inConstruct: uE, - notInConstruct: dE + notInConstruct: fE }, { character: ".", before: "[Ww]", after: "[\\-.\\w]", inConstruct: uE, - notInConstruct: dE + notInConstruct: fE }, { character: ":", before: "[ps]", after: "\\/", inConstruct: uE, - notInConstruct: dE + notInConstruct: fE } ] }; @@ -71812,7 +71824,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function H4e(e) { this.enter({ type: "link", title: null, url: "", children: [] }, e); } - function fE(e) { + function dE(e) { this.config.enter.autolinkProtocol.call(this, e); } function q4e(e) { @@ -71957,25 +71969,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function n(r, o, i, a) { const s = i.createTracker(a); let c = s.move("[^"); - const u = i.enter("footnoteDefinition"), f = i.enter("label"); + const u = i.enter("footnoteDefinition"), d = i.enter("label"); return c += s.move( i.safe(i.associationId(r), { before: c, after: "]" }) - ), f(), c += s.move("]:"), r.children && r.children.length > 0 && (s.shift(4), c += s.move( + ), d(), c += s.move("]:"), r.children && r.children.length > 0 && (s.shift(4), c += s.move( (t ? ` ` : " ") + i.indentLines( i.containerFlow(r, s.current()), - t ? uq : dFe + t ? uq : fFe ) )), u(), c; } } - function dFe(e, t, n) { + function fFe(e, t, n) { return t === 0 ? e : uq(e, t, n); } function uq(e, t, n) { return (n ? "" : " ") + e; } - const fFe = [ + const dFe = [ "autolink", "destinationLiteral", "destinationRaw", @@ -71983,7 +71995,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho "titleQuote", "titleApostrophe" ]; - dq.peek = yFe; + fq.peek = yFe; function pFe() { return { canContainEols: ["delete"], @@ -71997,10 +72009,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { character: "~", inConstruct: "phrasing", - notInConstruct: fFe + notInConstruct: dFe } ], - handlers: { delete: dq } + handlers: { delete: fq } }; } function mFe(e) { @@ -72009,7 +72021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function gFe(e) { this.exit(e); } - function dq(e, t, n, r) { + function fq(e, t, n, r) { const o = n.createTracker(r), i = n.enter("strikethrough"); let a = o.move("~~"); return a += n.containerPhrasing(e, { @@ -72026,19 +72038,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function bFe(e, t) { const n = t || {}, r = (n.align || []).concat(), o = n.stringLength || vFe, i = [], a = [], s = [], c = []; - let u = 0, f = -1; - for (; ++f < e.length; ) { + let u = 0, d = -1; + for (; ++d < e.length; ) { const b = [], v = []; let x = -1; - for (e[f].length > u && (u = e[f].length); ++x < e[f].length; ) { - const E = xFe(e[f][x]); + for (e[d].length > u && (u = e[d].length); ++x < e[d].length; ) { + const E = xFe(e[d][x]); if (n.alignDelimiters !== !1) { const _ = o(E); v[x] = _, (c[x] === void 0 || _ > c[x]) && (c[x] = _); } b.push(E); } - a[f] = b, s[f] = v; + a[d] = b, s[d] = v; } let p = -1; if (typeof r == "object" && "length" in r) @@ -72062,10 +72074,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const _ = v + "-".repeat(E) + x; n.alignDelimiters !== !1 && (E = v.length + E + x.length, E > c[p] && (c[p] = E), g[p] = E), m[p] = _; } - a.splice(1, 0, m), s.splice(1, 0, g), f = -1; + a.splice(1, 0, m), s.splice(1, 0, g), d = -1; const y = []; - for (; ++f < a.length; ) { - const b = a[f], v = s[f]; + for (; ++d < a.length; ) { + const b = a[d], v = s[d]; p = -1; const x = []; for (; ++p < u; ) { @@ -72156,12 +72168,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return p(), m; } const s = n.createTracker(r), c = o.repeat(Math.max(EFe(i, o) + 1, 3)), u = n.enter("codeFenced"); - let f = s.move(c); + let d = s.move(c); if (e.lang) { const p = n.enter(`codeFencedLang${a}`); - f += s.move( + d += s.move( n.safe(e.lang, { - before: f, + before: d, after: " ", encode: ["`"], ...s.current() @@ -72170,9 +72182,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } if (e.lang && e.meta) { const p = n.enter(`codeFencedMeta${a}`); - f += s.move(" "), f += s.move( + d += s.move(" "), d += s.move( n.safe(e.meta, { - before: f, + before: d, after: ` `, encode: ["`"], @@ -72180,9 +72192,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }) ), p(); } - return f += s.move(` -`), i && (f += s.move(i + ` -`)), f += s.move(c), u(), f; + return d += s.move(` +`), i && (d += s.move(i + ` +`)), d += s.move(c), u(), d; } function AFe(e, t, n) { return (n ? "" : " ") + e; @@ -72237,7 +72249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return "&#x" + e.toString(16).toUpperCase() + ";"; } function X0(e, t, n) { - const r = Md(e), o = Md(t); + const r = Nf(e), o = Nf(t); return r === void 0 ? o === void 0 ? ( // Letter inside: // we have to encode *both* letters for `_` as it is looser. @@ -72269,8 +72281,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho { inside: !1, outside: !1 } ); } - fq.peek = MFe; - function fq(e, t, n, r) { + dq.peek = MFe; + function dq(e, t, n, r) { const o = OFe(n), i = n.enter("emphasis"), a = n.createTracker(r), s = a.move(o); let c = a.move( n.containerPhrasing(e, { @@ -72279,18 +72291,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...a.current() }) ); - const u = c.charCodeAt(0), f = X0( + const u = c.charCodeAt(0), d = X0( r.before.charCodeAt(r.before.length - 1), u, o ); - f.inside && (c = Rh(u) + c.slice(1)); + d.inside && (c = Rh(u) + c.slice(1)); const p = c.charCodeAt(c.length - 1), m = X0(r.after.charCodeAt(0), p, o); m.inside && (c = c.slice(0, -1) + Rh(p)); const g = a.move(o); return i(), n.attentionEncodeSurroundingInfo = { after: m.outside, - before: f.outside + before: d.outside }, s + c + g; } function MFe(e, t, n) { @@ -72306,14 +72318,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function PFe(e, t, n, r) { const o = Math.max(Math.min(6, e.depth || 1), 1), i = n.createTracker(r); if (NFe(e, n)) { - const f = n.enter("headingSetext"), p = n.enter("phrasing"), m = n.containerPhrasing(e, { + const d = n.enter("headingSetext"), p = n.enter("phrasing"), m = n.containerPhrasing(e, { ...i.current(), before: ` `, after: ` ` }); - return p(), f(), m + ` + return p(), d(), m + ` ` + (o === 1 ? "=" : "-").repeat( // The whole size… m.length - // Minus the position of the character after the last EOL (or @@ -72380,14 +72392,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...s.current() }); c += s.move(u + "]["), a(); - const f = n.stack; + const d = n.stack; n.stack = [], a = n.enter("reference"); const p = n.safe(n.associationId(e), { before: c, after: "]", ...s.current() }); - return a(), n.stack = f, i(), o === "full" || !u || u !== p ? c += s.move(p + "]") : o === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c; + return a(), n.stack = d, i(), o === "full" || !u || u !== p ? c += s.move(p + "]") : o === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c; } function jFe() { return "!"; @@ -72427,7 +72439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const o = RR(n), i = o === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r); let s, c; if (yq(e, n)) { - const f = n.stack; + const d = n.stack; n.stack = [], s = n.enter("autolink"); let p = a.move("<"); return p += a.move( @@ -72436,7 +72448,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho after: ">", ...a.current() }) - ), p += a.move(">"), s(), n.stack = f, p; + ), p += a.move(">"), s(), n.stack = d, p; } s = n.enter("link"), c = n.enter("label"); let u = a.move("["); @@ -72479,14 +72491,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...s.current() }); c += s.move(u + "]["), a(); - const f = n.stack; + const d = n.stack; n.stack = [], a = n.enter("reference"); const p = n.safe(n.associationId(e), { before: c, after: "]", ...s.current() }); - return a(), n.stack = f, i(), o === "full" || !u || u !== p ? c += s.move(p + "]") : o === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c; + return a(), n.stack = d, i(), o === "full" || !u || u !== p ? c += s.move(p + "]") : o === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c; } function LFe() { return "["; @@ -72535,13 +72547,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const s = e.ordered ? a === "." ? ")" : "." : zFe(n); let c = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1; if (!e.ordered) { - const f = e.children ? e.children[0] : void 0; + const d = e.children ? e.children[0] : void 0; if ( // Bullet could be used as a thematic break marker: (a === "*" || a === "-") && // Empty first list item: - f && (!f.children || !f.children[0]) && // Directly in two other list items: + d && (!d.children || !d.children[0]) && // Directly in two other list items: n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && // That are each the first child. - n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (c = !0), xq(n) === a && f + n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (c = !0), xq(n) === a && d ) { let p = -1; for (; ++p < e.children.length; ) { @@ -72575,10 +72587,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho s.move(i + " ".repeat(a - i.length)), s.shift(a); const c = n.enter("listItem"), u = n.indentLines( n.containerFlow(e, s.current()), - f + d ); return c(), u; - function f(p, m, g) { + function d(p, m, g) { return m ? (g ? "" : " ".repeat(a)) + p : (g ? i : i + " ".repeat(a - i.length)) + p; } } @@ -72635,18 +72647,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...a.current() }) ); - const u = c.charCodeAt(0), f = X0( + const u = c.charCodeAt(0), d = X0( r.before.charCodeAt(r.before.length - 1), u, o ); - f.inside && (c = Rh(u) + c.slice(1)); + d.inside && (c = Rh(u) + c.slice(1)); const p = c.charCodeAt(c.length - 1), m = X0(r.after.charCodeAt(0), p, o); m.inside && (c = c.slice(0, -1) + Rh(p)); const g = a.move(o + o); return i(), n.attentionEncodeSurroundingInfo = { after: m.outside, - before: f.outside + before: d.outside }, s + c + g; } function YFe(e, t, n) { @@ -72672,7 +72684,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho break: $4, code: TFe, definition: RFe, - emphasis: fq, + emphasis: dq, hardBreak: $4, heading: PFe, html: pq, @@ -72770,7 +72782,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; function a(g, y, b, v) { - return u(f(g, b, v), g.align); + return u(d(g, b, v), g.align); } function s(g, y, b, v) { const x = p(g, b, v), E = u([x]); @@ -72796,7 +72808,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho stringLength: o }); } - function f(g, y, b) { + function d(g, y, b) { const v = g.children; let x = -1; const E = [], _ = y.enter("table"); @@ -72865,8 +72877,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ...s.current() }); return i && (c = c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, u)), c; - function u(f) { - return f + a; + function u(d) { + return d + a; } } function uLe() { @@ -72878,7 +72890,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho aLe() ]; } - function dLe(e) { + function fLe(e) { return { extensions: [ V4e(), @@ -72889,7 +72901,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ] }; } - const fLe = { + const dLe = { tokenize: vLe, partial: !0 }, _q = { @@ -72944,12 +72956,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return nk(p) ? (e.consume(p), s) : p === 64 ? (e.consume(p), c) : n(p); } function c(p) { - return p === 46 ? e.check(pLe, f, u)(p) : p === 45 || p === 95 || br(p) ? (i = !0, e.consume(p), c) : f(p); + return p === 46 ? e.check(pLe, d, u)(p) : p === 45 || p === 95 || br(p) ? (i = !0, e.consume(p), c) : d(p); } function u(p) { return e.consume(p), o = !0, c; } - function f(p) { + function d(p) { return i && o && Tr(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(p)) : n(p); } } @@ -72957,7 +72969,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const r = this; return o; function o(a) { - return a !== 87 && a !== 119 || !Aq.call(r, r.previous) || MR(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(fLe, e.attempt(_q, e.attempt(Eq, i), n), n)(a)); + return a !== 87 && a !== 119 || !Aq.call(r, r.previous) || MR(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(dLe, e.attempt(_q, e.attempt(Eq, i), n), n)(a)); } function i(a) { return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a); @@ -72984,9 +72996,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return p === 47 ? (e.consume(p), i ? u : (i = !0, c)) : n(p); } function u(p) { - return p === null || G0(p) || cn(p) || Sc(p) || D1(p) ? n(p) : e.attempt(_q, e.attempt(Eq, f), n)(p); + return p === null || G0(p) || cn(p) || Sc(p) || D1(p) ? n(p) : e.attempt(_q, e.attempt(Eq, d), n)(p); } - function f(p) { + function d(p) { return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(p); } } @@ -73207,9 +73219,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const m = e.exit("gfmFootnoteCallString"); return o.includes(Jo(r.sliceSerialize(m))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(p), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(p); } - return cn(p) || (a = !0), i++, e.consume(p), p === 92 ? f : u; + return cn(p) || (a = !0), i++, e.consume(p), p === 92 ? d : u; } - function f(p) { + function d(p) { return p === 91 || p === 92 || p === 93 ? (e.consume(p), i++, u) : u(p); } } @@ -73221,9 +73233,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionLabelMarker"), u; } function u(y) { - return y === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(y); + return y === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", d) : n(y); } - function f(y) { + function d(y) { if ( // Too long. a > 999 || // Closing brace with nothing. @@ -73237,10 +73249,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const b = e.exit("gfmFootnoteDefinitionLabelString"); return i = Jo(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m; } - return cn(y) || (s = !0), a++, e.consume(y), y === 92 ? p : f; + return cn(y) || (s = !0), a++, e.consume(y), y === 92 ? p : d; } function p(y) { - return y === 91 || y === 92 || y === 93 ? (e.consume(y), a++, f) : f(y); + return y === 91 || y === 92 || y === 93 ? (e.consume(y), a++, d) : d(y); } function m(y) { return y === 58 ? (e.enter("definitionMarker"), e.consume(y), e.exit("definitionMarker"), o.includes(i) || o.push(i), Pt(e, g, "gfmFootnoteDefinitionWhitespace")) : n(y); @@ -73290,7 +73302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (a[u][0] === "exit" && a[u][1].type === "strikethroughSequenceTemporary" && a[u][1]._open && // If the sizes are the same: a[c][1].end.offset - a[c][1].start.offset === a[u][1].end.offset - a[u][1].start.offset) { a[c][1].type = "strikethroughSequence", a[u][1].type = "strikethroughSequence"; - const f = { + const d = { type: "strikethrough", start: Object.assign({}, a[u][1].start), end: Object.assign({}, a[c][1].end) @@ -73298,8 +73310,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho type: "strikethroughText", start: Object.assign({}, a[u][1].end), end: Object.assign({}, a[c][1].start) - }, m = [["enter", f, s], ["enter", a[u][1], s], ["exit", a[u][1], s], ["enter", p, s]], g = s.parser.constructs.insideSpan.null; - g && uo(m, m.length, 0, F1(g, a.slice(u + 1, c), s)), uo(m, m.length, 0, [["exit", p, s], ["enter", a[c][1], s], ["exit", a[c][1], s], ["exit", f, s]]), uo(a, u - 1, c - u + 3, m), c = u + m.length - 2; + }, m = [["enter", d, s], ["enter", a[u][1], s], ["exit", a[u][1], s], ["enter", p, s]], g = s.parser.constructs.insideSpan.null; + g && uo(m, m.length, 0, F1(g, a.slice(u + 1, c), s)), uo(m, m.length, 0, [["exit", p, s], ["enter", a[c][1], s], ["exit", a[c][1], s], ["exit", d, s]]), uo(a, u - 1, c - u + 3, m), c = u + m.length - 2; break; } } @@ -73308,18 +73320,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return a; } function i(a, s, c) { - const u = this.previous, f = this.events; + const u = this.previous, d = this.events; let p = 0; return m; function m(y) { - return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(y) : (a.enter("strikethroughSequenceTemporary"), g(y)); + return u === 126 && d[d.length - 1][1].type !== "characterEscape" ? c(y) : (a.enter("strikethroughSequenceTemporary"), g(y)); } function g(y) { - const b = Md(u); + const b = Nf(u); if (y === 126) return p > 1 ? c(y) : (a.consume(y), p++, g); if (p < 2 && !n) return c(y); - const v = a.exit("strikethroughSequenceTemporary"), x = Md(y); + const v = a.exit("strikethroughSequenceTemporary"), x = Nf(y); return v._open = !x || x === 2 && !!b, v._close = !b || b === 2 && !!x, s(y); } } @@ -73442,13 +73454,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return e.enter("tableHead"), e.enter("tableRow"), u($); } function u($) { - return $ === 124 || (a = !0, i += 1), f($); + return $ === 124 || (a = !0, i += 1), d($); } - function f($) { - return $ === null ? n($) : Ze($) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume($), e.exit("lineEnding"), g) : n($) : _t($) ? Pt(e, f, "whitespace")($) : (i += 1, a && (a = !1, o += 1), $ === 124 ? (e.enter("tableCellDivider"), e.consume($), e.exit("tableCellDivider"), a = !0, f) : (e.enter("data"), p($))); + function d($) { + return $ === null ? n($) : Ze($) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume($), e.exit("lineEnding"), g) : n($) : _t($) ? Pt(e, d, "whitespace")($) : (i += 1, a && (a = !1, o += 1), $ === 124 ? (e.enter("tableCellDivider"), e.consume($), e.exit("tableCellDivider"), a = !0, d) : (e.enter("data"), p($))); } function p($) { - return $ === null || $ === 124 || cn($) ? (e.exit("data"), f($)) : (e.consume($), $ === 92 ? m : p); + return $ === null || $ === 124 || cn($) ? (e.exit("data"), d($)) : (e.consume($), $ === 92 ? m : p); } function m($) { return $ === 92 || $ === 124 ? (e.consume($), p) : p($); @@ -73494,23 +73506,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function FLe(e, t) { - let n = -1, r = !0, o = 0, i = [0, 0, 0, 0], a = [0, 0, 0, 0], s = !1, c = 0, u, f, p; + let n = -1, r = !0, o = 0, i = [0, 0, 0, 0], a = [0, 0, 0, 0], s = !1, c = 0, u, d, p; const m = new PLe(); for (; ++n < e.length; ) { const g = e[n], y = g[1]; - g[0] === "enter" ? y.type === "tableHead" ? (s = !1, c !== 0 && (F4(m, t, c, u, f), f = void 0, c = 0), u = { + g[0] === "enter" ? y.type === "tableHead" ? (s = !1, c !== 0 && (F4(m, t, c, u, d), d = void 0, c = 0), u = { type: "table", start: Object.assign({}, y.start), // Note: correct end is set later. end: Object.assign({}, y.end) - }, m.add(n, 0, [["enter", u, t]])) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (r = !0, p = void 0, i = [0, 0, 0, 0], a = [0, n + 1, 0, 0], s && (s = !1, f = { + }, m.add(n, 0, [["enter", u, t]])) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (r = !0, p = void 0, i = [0, 0, 0, 0], a = [0, n + 1, 0, 0], s && (s = !1, d = { type: "tableBody", start: Object.assign({}, y.start), // Note: correct end is set later. end: Object.assign({}, y.end) - }, m.add(n, 0, [["enter", f, t]])), o = y.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : o && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], p = Sv(m, t, i, o, void 0, p), i = [0, 0, 0, 0]), a[2] = n)) : y.type === "tableCellDivider" && (r ? r = !1 : (i[1] !== 0 && (a[0] = a[1], p = Sv(m, t, i, o, void 0, p)), i = a, a = [i[1], n, 0, 0])) : y.type === "tableHead" ? (s = !0, c = n) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (c = n, i[1] !== 0 ? (a[0] = a[1], p = Sv(m, t, i, o, n, p)) : a[1] !== 0 && (p = Sv(m, t, a, o, n, p)), o = 0) : o && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") && (a[3] = n); + }, m.add(n, 0, [["enter", d, t]])), o = y.type === "tableDelimiterRow" ? 2 : d ? 3 : 1) : o && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], p = Sv(m, t, i, o, void 0, p), i = [0, 0, 0, 0]), a[2] = n)) : y.type === "tableCellDivider" && (r ? r = !1 : (i[1] !== 0 && (a[0] = a[1], p = Sv(m, t, i, o, void 0, p)), i = a, a = [i[1], n, 0, 0])) : y.type === "tableHead" ? (s = !0, c = n) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (c = n, i[1] !== 0 ? (a[0] = a[1], p = Sv(m, t, i, o, n, p)) : a[1] !== 0 && (p = Sv(m, t, a, o, n, p)), o = 0) : o && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") && (a[3] = n); } - for (c !== 0 && F4(m, t, c, u, f), m.consume(t.events), n = -1; ++n < t.events.length; ) { + for (c !== 0 && F4(m, t, c, u, d), m.consume(t.events), n = -1; ++n < t.events.length; ) { const g = t.events[n]; g[0] === "enter" && g[1].type === "table" && (g[1]._align = $Le(t.events, n)); } @@ -73526,10 +73538,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // Note: correct end is set later. end: Object.assign({}, c) }, e.add(n[1], 0, [["enter", i, t]]), n[2] !== 0) { - const u = Hu(t.events, n[2]), f = Hu(t.events, n[3]), p = { + const u = Hu(t.events, n[2]), d = Hu(t.events, n[3]), p = { type: s, start: Object.assign({}, u), - end: Object.assign({}, f) + end: Object.assign({}, d) }; if (e.add(n[2], 0, [["enter", p, t]]), r !== 2) { const m = t.events[n[2]], g = t.events[n[3]]; @@ -73605,7 +73617,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /** @type {Processor} */ this ), n = e || HLe, r = t.data(), o = r.micromarkExtensions || (r.micromarkExtensions = []), i = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), a = r.toMarkdownExtensions || (r.toMarkdownExtensions = []); - o.push(VLe(n)), i.push(uLe()), a.push(dLe(n)); + o.push(VLe(n)), i.push(uLe()), a.push(fLe(n)); } const NR = ({ availableModule: e @@ -73841,7 +73853,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho r + c.node_id )) }), t.subshelves.map((c) => /* @__PURE__ */ S.jsx( - fR, + dR, { item: c, filter: n, @@ -73863,8 +73875,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cls_module: e.module, cls_name: e.class_name }); - }, [r, t, e]), c = (f) => { - f.detail === 2 && s(); + }, [r, t, e]), c = (d) => { + d.detail === 2 && s(); }, u = e.name || e.module + "." + e.class_name; return /* @__PURE__ */ S.jsxs("div", { className: "shelfcontainer", children: [ /* @__PURE__ */ S.jsxs( @@ -73890,16 +73902,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho children: "New Instance" } ), - e.instances.map((f) => /* @__PURE__ */ S.jsx( + e.instances.map((d) => /* @__PURE__ */ S.jsx( XLe, { - ins: f, + ins: d, lib: n?.subshelves.find( - (p) => p.name === f.uuid + (p) => p.name === d.uuid ), - parentkey: f.uuid + parentkey: d.uuid }, - f.uuid + d.uuid )) ] }) }) }) ] }); @@ -73965,7 +73977,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /* @__PURE__ */ S.jsx("hr", { className: "hr_prominent" }), /* @__PURE__ */ S.jsx(xje, { filter: i, setFilter: a }), /* @__PURE__ */ S.jsx("div", { className: "vscrollcontainer", children: t.lib.shelves.filter((c) => c.name !== "_external_worker").map((c) => /* @__PURE__ */ S.jsx( - fR, + dR, { item: c, filter: i, @@ -74069,7 +74081,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } ) }) }) }) }) }); }; - class Kd { + class Yf { constructor(t) { this.context = t; } @@ -74113,7 +74125,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; }; - class nze extends Kd { + class nze extends Yf { constructor(t) { super(t), this.on_node_action = (n) => { switch (n.type) { @@ -74192,7 +74204,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const r = this.reactFlowManager.useReactFlowStore.getState(), o = r.getNode(n); if (o === void 0 || o.type !== "group") return; - const i = o.data.group.node_ids.map((f) => r.getNode(f)).filter((f) => f !== void 0), a = o.data.group.child_groups.map((f) => r.getNode(f)).filter((f) => f !== void 0), s = [...i, ...a], c = this.reactFlowManager.rf_instance?.getNodesBounds(s); + const i = o.data.group.node_ids.map((d) => r.getNode(d)).filter((d) => d !== void 0), a = o.data.group.child_groups.map((d) => r.getNode(d)).filter((d) => d !== void 0), s = [...i, ...a], c = this.reactFlowManager.rf_instance?.getNodesBounds(s); if (c === void 0) return; const u = { @@ -74218,10 +74230,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (a === void 0) return; const s = n.position.x - a?.x, c = n.position.y - a?.y, u = []; - for (const f of i) { - const p = r.getNode(f); + for (const d of i) { + const p = r.getNode(d); p !== void 0 && u.push({ - id: f, + id: d, type: "position", position: { x: p.position.x + s, @@ -74275,14 +74287,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho for (const p of u.child_groups) a[p] = c; u.position === void 0 && (u.position = [0, 0]); - const f = { + const d = { id: c, type: "group", data: { group: n[c], id: c }, position: { x: u.position[0], y: u.position[1] }, zIndex: 2 }; - u.parent_group && (f.data.groupID = u.parent_group), i.push(f); + u.parent_group && (d.data.groupID = u.parent_group), i.push(d); } for (const c of i) c.id in a ? c.data.groupID = a[c.id] : c.data.groupID = void 0; @@ -74384,12 +74396,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho get_external_worker: () => t().external_worker })) }); - class oze extends Kd { + class oze extends Yf { constructor(t) { super(t), this.lib = rze(); } } - class ize extends Kd { + class ize extends Yf { constructor(t) { super(t), t.rf.logger.debug("Initializing worker manager handler"), this.workers = No((n, r) => ({})), this.workerstate = No((n, r) => ({ is_open: !1 @@ -74401,7 +74413,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), this.workerstate.setState(t.state.getState())) : this.context.rf.logger.debug("Removing worker in worker manager"), this.worker = t, t?.set_zustand(this.context.rf)); } } - class aze extends Kd { + class aze extends Yf { constructor(t) { super(t), this.progress_state = No((n, r) => ({ message: "please select worker", @@ -74468,7 +74480,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new Error(`Unsupported version: ${e.v}`); return { ...e, v: Mq }; }; - class cze extends Kd { + class cze extends Yf { constructor(t) { super(t), this.plugins = No((n, r) => ({})), this.render_options = No((n, r) => ({})); } @@ -74529,7 +74541,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } - class uze extends Kd { + class uze extends Yf { constructor(t) { super(t), this.on_rf_node_change = (n) => { const r = this.useReactFlowStore.getState(); @@ -74570,7 +74582,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); } } - let dze = class { + let fze = class { constructor(t) { this.reactflowRef = null, this.dev_settings = { debug: Ch() @@ -74702,8 +74714,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } // #endregion reactflow }; - const fze = Z0( - Rfe, + const dze = Z0( + Rde, (e) => (e.id = vT(), e) ), pze = (e) => { if (!e.useWorkerManager && e.worker === void 0) @@ -74721,23 +74733,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho void 0 ), [i, a] = T.useState(!1); if (T.useEffect(() => { - const s = fze(e); + const s = dze(e); s.logger = s.logger || new ik("FuncNodes", s.debug ? "debug" : "info"), s.logger.debug("Initializing FuncNodes with props:", s), n(s), a(!1); }, [e]), T.useEffect(() => { if (!t) return; t.logger?.debug("Initializing/Getting Zustand store"); const s = rk[t.id]; if (s === void 0) { - const c = new dze(t); + const c = new fze(t); rk[t.id] = c, o(c); } else o(s), s.options.debug = t.debug; }, [t?.id, t?.debug]), T.useEffect(() => { - if (!(!t || !r) && !(t.useWorkerManager || !t.worker_url)) - if (t.logger?.debug("Worker effect running"), t.worker) { - t.worker.set_zustand(r); - return; - } else { + if (!(!t || !r) && !(t.useWorkerManager || // a) a worker manager is used + !t.worker_url && !t.worker)) + if (t.logger?.debug("Worker effect running"), !t.worker && t.worker_url) { t.logger?.debug("Creating WebSocket worker"); const s = new D9({ url: t.worker_url, @@ -74749,6 +74759,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ), () => { t.logger?.debug("Disconnecting worker"), s.disconnect(), n((c) => c && { ...c, worker: void 0 }); }; + } else { + t.worker?.set_zustand(r); + return; } }, [ t?.worker_url, @@ -74760,21 +74773,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (!t?.fnw_url || !t.worker) return; t.logger?.debug("Loading fnw_url data"); let s = !1; - const c = t.worker.getSyncManager().on_sync_complete; + const c = t.worker.getSyncManager(); + let u; return (async () => { try { - const f = await uK(t.fnw_url); - !s && t.worker && (t.worker.getSyncManager().on_sync_complete = async (p) => { - await p.update_from_export(f), t.worker.getSyncManager().on_sync_complete = c, c && c(p); - }); - } catch (f) { - f instanceof Error ? t.logger?.error("Failed to load fnw_url:", f) : t.logger?.error( + const p = await uK(t.fnw_url); + if (s) return; + u = async (m) => { + s || await m.update_from_export(p); + }, c.add_after_next_sync(u); + } catch (p) { + p instanceof Error ? t.logger?.error("Failed to load fnw_url:", p) : t.logger?.error( "Failed to load fnw_url:", - new Error(String(f)) + new Error(String(p)) ); } })(), () => { - s = !0, t.worker && (t.worker.getSyncManager().on_sync_complete = c); + s = !0, u && c.remove_after_next_sync(u); }; }, [t?.fnw_url, t?.worker]), T.useEffect(() => { if (!t || !r || !t.useWorkerManager) return; @@ -74786,11 +74801,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const s = !r.workermanager, c = r.workermanager && r.workermanager.wsuri !== t.workermanager_url; if (s || c) { r.workermanager && (r.logger.info("Removing existing worker manager"), r.workermanager.remove(), r.workermanager = void 0), r.logger.info("Creating new worker manager"); - const u = new Cfe( + const u = new Cde( t.workermanager_url, r ); - return r.workermanager = u, n((f) => f && { ...f, workermanager: u }), () => { + return r.workermanager = u, n((d) => d && { ...d, workermanager: u }), () => { r.logger.info("Worker manager cleanup running"), r.workermanager === u ? (r.logger.info("Removing worker manager instance"), u.remove(), r.workermanager = void 0) : r.logger.info( "Worker manager instance mismatch, skipping cleanup" ); @@ -74821,7 +74836,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho try { pze(t); } catch (s) { - return /* @__PURE__ */ S.jsx(dK, { error: s }); + return /* @__PURE__ */ S.jsx(fK, { error: s }); } return /* @__PURE__ */ S.jsx("div", { className: "FuncnodesApp", children: /* @__PURE__ */ S.jsx(Goe, { available_themes: F9, children: /* @__PURE__ */ S.jsx(Cue, { duration: 5e3, children: /* @__PURE__ */ S.jsx( eze, @@ -74843,7 +74858,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); }; window.FuncNodes = Pq; - window.FuncNodes.version = "2.2.0"; + window.FuncNodes.version = "2.2.1a0"; window.FuncNodes.utils = { logger: { ConsoleLogger: ik, diff --git a/src/funcnodes_react_flow/static/funcnodes_react_flow.iife.js b/src/funcnodes_react_flow/static/funcnodes_react_flow.iife.js index 372f140..c333348 100755 --- a/src/funcnodes_react_flow/static/funcnodes_react_flow.iife.js +++ b/src/funcnodes_react_flow/static/funcnodes_react_flow.iife.js @@ -719,7 +719,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cS(e){return Moe(e)||Noe(e)||hI(e)||Poe()}function Ioe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var uS=T.useLayoutEffect,$oe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qg=function(){};function joe(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Doe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function Foe(e){return Jg(e)?window.innerHeight:e.clientHeight}function bI(e){return Jg(e)?window.pageYOffset:e.scrollTop}function ey(e,t){if(Jg(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Loe(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function zoe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ty(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Qg,o=bI(e),i=t-o,a=10,s=0;function c(){s+=a;var u=zoe(s,o,i,n);ey(e,u),sn.bottom?ey(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?n-1:0),o=1;o=y)return{placement:"bottom",maxHeight:t};if(I>=y&&!a)return i&&ty(c,$,N),{placement:"bottom",maxHeight:t};if(!a&&I>=r||a&&O>=r){i&&ty(c,$,N);var U=a?O-C:I-C;return{placement:"bottom",maxHeight:U}}if(o==="auto"||a){var j=t,V=a?A:P;return V>=r&&(j=Math.min(V-C-s,t)),{placement:"top",maxHeight:j}}if(o==="bottom")return i&&ey(c,$),{placement:"bottom",maxHeight:t};break;case"top":if(A>=y)return{placement:"top",maxHeight:t};if(P>=y&&!a)return i&&ty(c,L,N),{placement:"top",maxHeight:t};if(!a&&P>=r||a&&A>=r){var F=t;return(!a&&P>=r||a&&A>=r)&&(F=a?A-k:P-k),i&&ty(c,L,N),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function Zoe(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var _I=function(t){return t==="auto"?"bottom":t},Qoe=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,c=i.colors;return Ye((r={label:"menu"},Lf(r,Zoe(o),"100%"),Lf(r,"position","absolute"),Lf(r,"width","100%"),Lf(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},EI=T.createContext(null),Joe=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,c=t.theme,u=T.useContext(EI)||{},f=u.setPortalPlacement,p=T.useRef(null),m=T.useState(o),g=va(m,2),y=g[0],b=g[1],v=T.useState(null),x=va(v,2),E=x[0],_=x[1],C=c.spacing.controlHeight;return uS(function(){var k=p.current;if(k){var A=a==="fixed",O=s&&!A,P=Xoe({maxHeight:o,menuEl:k,minHeight:r,placement:i,shouldScroll:O,isFixedPosition:A,controlHeight:C});b(P.maxHeight),_(P.placement),f?.(P.placement)}},[o,i,a,s,r,f,C]),n({ref:p,placerProps:Ye(Ye({},t),{},{placement:E||_I(i),maxHeight:y})})},eie=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return He("div",Ke({},Rn(t,"menu",{menu:!0}),{ref:r},o),n)},tie=eie,nie=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return Ye({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},rie=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return He("div",Ke({},Rn(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},CI=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return Ye({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},oie=CI,iie=CI,aie=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=ba(t,Koe);return He("div",Ke({},Rn(Ye(Ye({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},sie=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=ba(t,Yoe);return He("div",Ke({},Rn(Ye(Ye({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},lie=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},cie=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,c=T.useRef(null),u=T.useRef(null),f=T.useState(_I(a)),p=va(f,2),m=p[0],g=p[1],y=T.useMemo(function(){return{setPortalPlacement:g}},[]),b=T.useState(null),v=va(b,2),x=v[0],E=v[1],_=T.useCallback(function(){if(o){var O=Boe(o),P=s==="fixed"?0:window.pageYOffset,I=O[m]+P;(I!==x?.offset||O.left!==x?.rect.left||O.width!==x?.rect.width)&&E({offset:I,rect:O})}},[o,s,m,x?.offset,x?.rect.left,x?.rect.width]);uS(function(){_()},[_]);var C=T.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&c.current&&(u.current=P2(o,c.current,_,{elementResize:"ResizeObserver"in window}))},[o,_]);uS(function(){C()},[C]);var k=T.useCallback(function(O){c.current=O,C()},[C]);if(!n&&s!=="fixed"||!x)return null;var A=He("div",Ke({ref:k},Rn(Ye(Ye({},t),{},{offset:x.offset,position:s,rect:x.rect}),"menuPortal",{"menu-portal":!0}),i),r);return He(EI.Provider,{value:y},n?xl.createPortal(A,n):A)},uie=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},die=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return He("div",Ke({},Rn(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},fie=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return Ye({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},pie=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return He("div",Ke({},Rn(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},hie=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},mie=function(t){var n=t.children,r=t.innerProps;return He("div",Ke({},Rn(t,"indicatorsContainer",{indicators:!0}),r),n)},kI,gie=["size"],yie=["innerProps","isRtl","size"],vie={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},TI=function(t){var n=t.size,r=ba(t,gie);return He("svg",Ke({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vie},r))},dS=function(t){return He(TI,Ke({size:20},t),He("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},AI=function(t){return He(TI,Ke({size:20},t),He("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},RI=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Ye({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},bie=RI,xie=function(t){var n=t.children,r=t.innerProps;return He("div",Ke({},Rn(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||He(AI,null))},wie=RI,Sie=function(t){var n=t.children,r=t.innerProps;return He("div",Ke({},Rn(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||He(dS,null))},_ie=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Ye({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},Eie=function(t){var n=t.innerProps;return He("span",Ke({},n,Rn(t,"indicatorSeparator",{"indicator-separator":!0})))},Cie=Vc(kI||(kI=Ioe([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),kie=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return Ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},fS=function(t){var n=t.delay,r=t.offset;return He("span",{css:df({animation:"".concat(Cie," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Tie=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=ba(t,yie);return He("div",Ke({},Rn(Ye(Ye({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),He(fS,{delay:0,offset:r}),He(fS,{delay:160,offset:!0}),He(fS,{delay:320,offset:!r}))},Aie=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,c=i.spacing;return Ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Rie=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return He("div",Ke({ref:i},Rn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},Oie=Rie,Mie=["data"],Nie=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Pie=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,c=t.innerProps,u=t.label,f=t.theme,p=t.selectProps;return He("div",Ke({},Rn(t,"group",{group:!0}),c),He(a,Ke({},s,{selectProps:p,theme:f,getStyles:o,getClassNames:i,cx:r}),u),He("div",null,n))},Iie=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return Ye({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},$ie=function(t){var n=vI(t);n.data;var r=ba(n,Mie);return He("div",Ke({},Rn(t,"groupHeading",{"group-heading":!0}),r))},jie=Pie,Die=["innerRef","isDisabled","isHidden","inputClassName"],Fie=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return Ye(Ye({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},Lie),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},OI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Lie={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},OI)},zie=function(t){return Ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},OI)},Bie=function(t){var n=t.cx,r=t.value,o=vI(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,c=o.inputClassName,u=ba(o,Die);return He("div",Ke({},Rn(t,"input",{"input-container":!0}),{"data-value":r||""}),He("input",Ke({className:n({input:!0},c),ref:i,style:zie(s),disabled:a},u)))},Uie=Bie,Vie=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ye({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Hie=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return Ye({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},qie=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=t.isFocused;return Ye({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},MI=function(t){var n=t.children,r=t.innerProps;return He("div",r,n)},Wie=MI,Gie=MI;function Kie(e){var t=e.children,n=e.innerProps;return He("div",Ke({role:"button"},n),t||He(dS,{size:14}))}var Yie=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,c=t.selectProps,u=r.Container,f=r.Label,p=r.Remove;return He(u,{data:o,innerProps:Ye(Ye({},Rn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:c},He(f,{data:o,innerProps:Ye({},Rn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),He(p,{data:o,innerProps:Ye(Ye({},Rn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},Xie=Yie,Zie=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,c=a.colors;return Ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:i?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?c.primary:c.primary50}})},Qie=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return He("div",Ke({},Rn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},Jie=Qie,eae=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return Ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},tae=function(t){var n=t.children,r=t.innerProps;return He("div",Ke({},Rn(t,"placeholder",{placeholder:!0}),r),n)},nae=tae,rae=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return Ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},oae=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return He("div",Ke({},Rn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},iae=oae,aae={ClearIndicator:Sie,Control:Oie,DropdownIndicator:xie,DownChevron:AI,CrossIcon:dS,Group:jie,GroupHeading:$ie,IndicatorsContainer:mie,IndicatorSeparator:Eie,Input:Uie,LoadingIndicator:Tie,Menu:tie,MenuList:rie,MenuPortal:cie,LoadingMessage:sie,NoOptionsMessage:aie,MultiValue:Xie,MultiValueContainer:Wie,MultiValueLabel:Gie,MultiValueRemove:Kie,Option:Jie,Placeholder:nae,SelectContainer:die,SingleValue:iae,ValueContainer:pie},sae=function(t){return Ye(Ye({},aae),t.components)},NI=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function lae(e,t){return!!(e===t||NI(e)&&NI(t))}function cae(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,c=t.isDisabled,u=t.isSelected,f=t.isAppleDevice,p=function(b,v){return b&&b.length?"".concat(b.indexOf(v)+1," of ").concat(b.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(p(s,r),".");if(n==="menu"&&f){var m=c?" disabled":"",g="".concat(u?" selected":"").concat(m);return"".concat(a).concat(g,", ").concat(p(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},hae=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,c=t.selectProps,u=t.id,f=t.isAppleDevice,p=c.ariaLiveMessages,m=c.getOptionLabel,g=c.inputValue,y=c.isMulti,b=c.isOptionDisabled,v=c.isSearchable,x=c.menuIsOpen,E=c.options,_=c.screenReaderStatus,C=c.tabSelectsValue,k=c.isLoading,A=c["aria-label"],O=c["aria-live"],P=T.useMemo(function(){return Ye(Ye({},pae),p||{})},[p]),I=T.useMemo(function(){var V="";if(n&&P.onChange){var F=n.option,K=n.options,W=n.removedValue,Y=n.removedValues,B=n.value,D=function(te){return Array.isArray(te)?null:te},G=W||F||D(B),z=G?m(G):"",H=K||Y||void 0,X=H?H.map(m):[],Q=Ye({isDisabled:G&&b(G,s),label:z,labels:X},n);V=P.onChange(Q)}return V},[n,P,b,s,m]),$=T.useMemo(function(){var V="",F=r||o,K=!!(r&&s&&s.includes(r));if(F&&P.onFocus){var W={focused:F,label:m(F),isDisabled:b(F,s),isSelected:K,options:i,context:F===r?"menu":"value",selectValue:s,isAppleDevice:f};V=P.onFocus(W)}return V},[r,o,m,b,P,i,s,f]),L=T.useMemo(function(){var V="";if(x&&E.length&&!k&&P.onFilter){var F=_({count:i.length});V=P.onFilter({inputValue:g,resultsMessage:F})}return V},[i,g,x,P,E,_,k]),N=n?.action==="initial-input-focus",U=T.useMemo(function(){var V="";if(P.guidance){var F=o?"value":x?"menu":"input";V=P.guidance({"aria-label":A,context:F,isDisabled:r&&b(r,s),isMulti:y,isSearchable:v,tabSelectsValue:C,isInitialFocus:N})}return V},[A,r,o,y,b,v,x,P,s,C,N]),j=He(T.Fragment,null,He("span",{id:"aria-selection"},I),He("span",{id:"aria-focused"},$),He("span",{id:"aria-results"},L),He("span",{id:"aria-guidance"},U));return He(T.Fragment,null,He(PI,{id:u},N&&j),He(PI,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&j))},mae=hae,pS=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gae=new RegExp("["+pS.map(function(e){return e.letters}).join("")+"]","g"),II={},hS=0;hS-1}},xae=["innerRef"];function wae(e){var t=e.innerRef,n=ba(e,xae),r=Goe(n,"onExited","in","enter","exit","appear");return He("input",Ke({ref:t},r,{css:df({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sae=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function _ae(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=T.useRef(!1),s=T.useRef(!1),c=T.useRef(0),u=T.useRef(null),f=T.useCallback(function(v,x){if(u.current!==null){var E=u.current,_=E.scrollTop,C=E.scrollHeight,k=E.clientHeight,A=u.current,O=x>0,P=C-k-_,I=!1;P>x&&a.current&&(r&&r(v),a.current=!1),O&&s.current&&(i&&i(v),s.current=!1),O&&x>P?(n&&!a.current&&n(v),A.scrollTop=C,I=!0,a.current=!0):!O&&-x>_&&(o&&!s.current&&o(v),A.scrollTop=0,I=!0,s.current=!0),I&&Sae(v)}},[n,r,o,i]),p=T.useCallback(function(v){f(v,v.deltaY)},[f]),m=T.useCallback(function(v){c.current=v.changedTouches[0].clientY},[]),g=T.useCallback(function(v){var x=c.current-v.changedTouches[0].clientY;f(v,x)},[f]),y=T.useCallback(function(v){if(v){var x=Hoe?{passive:!1}:!1;v.addEventListener("wheel",p,x),v.addEventListener("touchstart",m,x),v.addEventListener("touchmove",g,x)}},[g,m,p]),b=T.useCallback(function(v){v&&(v.removeEventListener("wheel",p,!1),v.removeEventListener("touchstart",m,!1),v.removeEventListener("touchmove",g,!1))},[g,m,p]);return T.useEffect(function(){if(t){var v=u.current;return y(v),function(){b(v)}}},[t,y,b]),function(v){u.current=v}}var DI=["boxSizing","height","overflow","paddingRight","position"],FI={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function LI(e){e.cancelable&&e.preventDefault()}function zI(e){e.stopPropagation()}function BI(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function UI(){return"ontouchstart"in window||navigator.maxTouchPoints}var VI=!!(typeof window<"u"&&window.document&&window.document.createElement),zf=0,xu={capture:!1,passive:!1};function Eae(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=T.useRef({}),i=T.useRef(null),a=T.useCallback(function(c){if(VI){var u=document.body,f=u&&u.style;if(r&&DI.forEach(function(y){var b=f&&f[y];o.current[y]=b}),r&&zf<1){var p=parseInt(o.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,g=window.innerWidth-m+p||0;Object.keys(FI).forEach(function(y){var b=FI[y];f&&(f[y]=b)}),f&&(f.paddingRight="".concat(g,"px"))}u&&UI()&&(u.addEventListener("touchmove",LI,xu),c&&(c.addEventListener("touchstart",BI,xu),c.addEventListener("touchmove",zI,xu))),zf+=1}},[r]),s=T.useCallback(function(c){if(VI){var u=document.body,f=u&&u.style;zf=Math.max(zf-1,0),r&&zf<1&&DI.forEach(function(p){var m=o.current[p];f&&(f[p]=m)}),u&&UI()&&(u.removeEventListener("touchmove",LI,xu),c&&(c.removeEventListener("touchstart",BI,xu),c.removeEventListener("touchmove",zI,xu)))}},[r]);return T.useEffect(function(){if(t){var c=i.current;return a(c),function(){s(c)}}},[t,a,s]),function(c){i.current=c}}var Cae=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},kae={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tae(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=_ae({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:c}),f=Eae({isEnabled:n}),p=function(g){u(g),f(g)};return He(T.Fragment,null,n&&He("div",{onClick:Cae,css:kae}),t(p))}var Aae={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Rae=function(t){var n=t.name,r=t.onFocus;return He("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Aae,value:"",onChange:function(){}})},Oae=Rae;function yS(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Mae(){return yS(/^iPhone/i)}function HI(){return yS(/^Mac/i)}function Nae(){return yS(/^iPad/i)||HI()&&navigator.maxTouchPoints>1}function Pae(){return Mae()||Nae()}function Iae(){return HI()||Pae()}var $ae=function(t){return t.label},jae=function(t){return t.label},Dae=function(t){return t.value},Fae=function(t){return!!t.isDisabled},Lae={clearIndicator:wie,container:uie,control:Aie,dropdownIndicator:bie,group:Nie,groupHeading:Iie,indicatorsContainer:hie,indicatorSeparator:_ie,input:Fie,loadingIndicator:kie,loadingMessage:iie,menu:Qoe,menuList:nie,menuPortal:lie,multiValue:Vie,multiValueLabel:Hie,multiValueRemove:qie,noOptionsMessage:oie,option:Zie,placeholder:eae,singleValue:rae,valueContainer:fie},zae={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Bae=4,qI=4,Uae=38,Vae=qI*2,Hae={baseUnit:qI,controlHeight:Uae,menuGutter:Vae},vS={borderRadius:Bae,colors:zae,spacing:Hae},qae={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wI(),captureMenuScroll:!wI(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bae(),formatGroupLabel:$ae,getOptionLabel:jae,getOptionValue:Dae,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Fae,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Uoe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function WI(e,t,n,r){var o=ZI(e,t,n),i=QI(e,t,n),a=XI(e,t),s=iy(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function oy(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return WI(e,a,t,s)}).filter(function(a){return YI(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=WI(e,n,t,r);return YI(e,i)?i:void 0}).filter(qoe)}function GI(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,cS(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function KI(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,cS(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Wae(e,t){return GI(oy(e,t))}function YI(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!e$(e)||!i)&&JI(e,{label:a,value:s,data:o},r)}function Gae(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o-1?n:t[0]}var bS=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},XI=function(t,n){return t.getOptionLabel(n)},iy=function(t,n){return t.getOptionValue(n)};function ZI(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function QI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=iy(e,t);return n.some(function(o){return iy(e,o)===r})}function JI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var e$=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Yae=1,t$=(function(e){Aoe(n,e);var t=Ooe(n);function n(r){var o;if(koe(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,u){var f=o.props,p=f.onChange,m=f.name;u.name=m,o.ariaOnChange(c,u),p(c,u)},o.setValue=function(c,u,f){var p=o.props,m=p.closeMenuOnSelect,g=p.isMulti,y=p.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:y}),m&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:u,option:f})},o.selectOption=function(c){var u=o.props,f=u.blurInputOnSelect,p=u.isMulti,m=u.name,g=o.state.selectValue,y=p&&o.isOptionSelected(c,g),b=o.isOptionDisabled(c,g);if(y){var v=o.getOptionValue(c);o.setValue(g.filter(function(x){return o.getOptionValue(x)!==v}),"deselect-option",c)}else if(!b)p?o.setValue([].concat(cS(g),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:m});return}f&&o.blurInput()},o.removeValue=function(c){var u=o.props.isMulti,f=o.state.selectValue,p=o.getOptionValue(c),m=f.filter(function(y){return o.getOptionValue(y)!==p}),g=ry(u,m,m[0]||null);o.onChange(g,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(ry(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,u=o.state.selectValue,f=u[u.length-1],p=u.slice(0,u.length-1),m=ry(c,p,p[0]||null);f&&o.onChange(m,{action:"pop-value",removedValue:f})},o.getFocusedOptionId=function(c){return bS(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return KI(oy(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,u=new Array(c),f=0;fg||m>g}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var u=o.props.inputValue,f=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(f,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var u=o.getFocusableOptions(),f=u.indexOf(c);o.setState({focusedOption:c,focusedOptionId:f>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return e$(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var u=o.props,f=u.isMulti,p=u.backspaceRemovesValue,m=u.escapeClearsValue,g=u.inputValue,y=u.isClearable,b=u.isDisabled,v=u.menuIsOpen,x=u.onKeyDown,E=u.tabSelectsValue,_=u.openMenuOnFocus,C=o.state,k=C.focusedOption,A=C.focusedValue,O=C.selectValue;if(!b&&!(typeof x=="function"&&(x(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!f||g)return;o.focusValue("previous");break;case"ArrowRight":if(!f||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(A)o.removeValue(A);else{if(!p)return;f?o.popValue():y&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!v||!E||!k||_&&o.isOptionSelected(k,O))return;o.selectOption(k);break;case"Enter":if(c.keyCode===229)break;if(v){if(!k||o.isComposing)return;o.selectOption(k);break}return;case"Escape":v?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):y&&m&&o.clearValue();break;case" ":if(g)return;if(!v){o.openMenu("first");break}if(!k)return;o.selectOption(k);break;case"ArrowUp":v?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":v?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!v)return;o.focusOption("pageup");break;case"PageDown":if(!v)return;o.focusOption("pagedown");break;case"Home":if(!v)return;o.focusOption("first");break;case"End":if(!v)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Yae),o.state.selectValue=yI(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=bS(i,a[s])}return o}return Toe(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xI(this.menuListRef,this.focusedOptionRef),Iae()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!a&&o.isDisabled||c&&s&&!o.menuIsOpen)&&this.focusInput(),c&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xI(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,c=a.isFocused,u=this.buildFocusableOptions(),f=o==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(s[0]);p>-1&&(f=p)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[f],focusedOptionId:this.getFocusedOptionId(u[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(s);s||(c=-1);var u=a.length-1,f=-1;if(a.length){switch(o){case"previous":c===0?f=0:c===-1?f=u:f=c-1;break;case"next":c>-1&&c0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,u=s.indexOf(a);a||(u=-1),o==="up"?c=u>0?u-1:s.length-1:o==="down"?c=(u+1)%s.length:o==="pageup"?(c=u-i,c<0&&(c=0)):o==="pagedown"?(c=u+i,c>s.length-1&&(c=s.length-1)):o==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(vS):Ye(Ye({},vS),this.props.theme):vS})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,c=this.getValue,u=this.selectOption,f=this.setValue,p=this.props,m=p.isMulti,g=p.isRtl,y=p.options,b=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:c,hasValue:b,isMulti:m,isRtl:g,options:y,selectOption:u,selectProps:p,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return ZI(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return QI(this.props,o,i)}},{key:"filterOption",value:function(o,i){return JI(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,c=o.inputValue,u=o.tabIndex,f=o.form,p=o.menuIsOpen,m=o.required,g=this.getComponents(),y=g.Input,b=this.state,v=b.inputIsHidden,x=b.ariaSelection,E=this.commonProps,_=s||this.getElementId("input"),C=Ye(Ye(Ye({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?x?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?T.createElement(y,Ke({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:f,type:"text",value:c},C)):T.createElement(wae,Ke({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qg,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:f,value:""},C))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,c=i.MultiValueLabel,u=i.MultiValueRemove,f=i.SingleValue,p=i.Placeholder,m=this.commonProps,g=this.props,y=g.controlShouldRenderValue,b=g.isDisabled,v=g.isMulti,x=g.inputValue,E=g.placeholder,_=this.state,C=_.selectValue,k=_.focusedValue,A=_.isFocused;if(!this.hasValue()||!y)return x?null:T.createElement(p,Ke({},m,{key:"placeholder",isDisabled:b,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),E);if(v)return C.map(function(P,I){var $=P===k,L="".concat(o.getOptionLabel(P),"-").concat(o.getOptionValue(P));return T.createElement(a,Ke({},m,{components:{Container:s,Label:c,Remove:u},isFocused:$,isDisabled:b,key:L,index:I,removeProps:{onClick:function(){return o.removeValue(P)},onTouchEnd:function(){return o.removeValue(P)},onMouseDown:function(U){U.preventDefault()}},data:P}),o.formatOptionLabel(P,"value"))});if(x)return null;var O=C[0];return T.createElement(f,Ke({},m,{data:O,isDisabled:b}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||c||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:p,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,f=this.state.isFocused;if(!i||!u)return null;var p={"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:p,isDisabled:c,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return T.createElement(a,Ke({},s,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,c=i.Menu,u=i.MenuList,f=i.MenuPortal,p=i.LoadingMessage,m=i.NoOptionsMessage,g=i.Option,y=this.commonProps,b=this.state.focusedOption,v=this.props,x=v.captureMenuScroll,E=v.inputValue,_=v.isLoading,C=v.loadingMessage,k=v.minMenuHeight,A=v.maxMenuHeight,O=v.menuIsOpen,P=v.menuPlacement,I=v.menuPosition,$=v.menuPortalTarget,L=v.menuShouldBlockScroll,N=v.menuShouldScrollIntoView,U=v.noOptionsMessage,j=v.onMenuScrollToTop,V=v.onMenuScrollToBottom;if(!O)return null;var F=function(z,H){var X=z.type,Q=z.data,ne=z.isDisabled,te=z.isSelected,se=z.label,ue=z.value,J=b===Q,ee=ne?void 0:function(){return o.onOptionHover(Q)},ie=ne?void 0:function(){return o.selectOption(Q)},le="".concat(o.getElementId("option"),"-").concat(H),ge={id:le,onClick:ie,onMouseMove:ee,onMouseOver:ee,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:te};return T.createElement(g,Ke({},y,{innerProps:ge,data:Q,isDisabled:ne,isSelected:te,key:le,label:se,type:X,value:ue,isFocused:J,innerRef:J?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(z.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var z=G.data,H=G.options,X=G.index,Q="".concat(o.getElementId("group"),"-").concat(X),ne="".concat(Q,"-heading");return T.createElement(a,Ke({},y,{key:Q,data:z,options:H,Heading:s,headingProps:{id:ne,data:G.data},label:o.formatGroupLabel(G.data)}),G.options.map(function(te){return F(te,"".concat(X,"-").concat(te.index))}))}else if(G.type==="option")return F(G,"".concat(G.index))});else if(_){var W=C({inputValue:E});if(W===null)return null;K=T.createElement(p,y,W)}else{var Y=U({inputValue:E});if(Y===null)return null;K=T.createElement(m,y,Y)}var B={minMenuHeight:k,maxMenuHeight:A,menuPlacement:P,menuPosition:I,menuShouldScrollIntoView:N},D=T.createElement(Joe,Ke({},y,B),function(G){var z=G.ref,H=G.placerProps,X=H.placement,Q=H.maxHeight;return T.createElement(c,Ke({},y,B,{innerRef:z,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:_,placement:X}),T.createElement(Tae,{captureEnabled:x,onTopArrive:j,onBottomArrive:V,lockEnabled:L},function(ne){return T.createElement(u,Ke({},y,{innerRef:function(se){o.getMenuListRef(se),ne(se)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:o.getElementId("listbox")},isLoading:_,maxHeight:Q,focusedOption:b}),K)}))});return $||I==="fixed"?T.createElement(f,Ke({},y,{appendTo:$,controlElement:this.controlRef,menuPlacement:P,menuPosition:I}),D):D}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,c=i.isMulti,u=i.name,f=i.required,p=this.state.selectValue;if(f&&!this.hasValue()&&!s)return T.createElement(Oae,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(c)if(a){var m=p.map(function(b){return o.getOptionValue(b)}).join(a);return T.createElement("input",{name:u,type:"hidden",value:m})}else{var g=p.length>0?p.map(function(b,v){return T.createElement("input",{key:"i-".concat(v),name:u,type:"hidden",value:o.getOptionValue(b)})}):T.createElement("input",{name:u,type:"hidden",value:""});return T.createElement("div",null,g)}else{var y=p[0]?this.getOptionValue(p[0]):"";return T.createElement("input",{name:u,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,c=i.focusedValue,u=i.isFocused,f=i.selectValue,p=this.getFocusableOptions();return T.createElement(mae,Ke({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:c,isFocused:u,selectValue:f,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,c=o.ValueContainer,u=this.props,f=u.className,p=u.id,m=u.isDisabled,g=u.menuIsOpen,y=this.state.isFocused,b=this.commonProps=this.getCommonProps();return T.createElement(s,Ke({},b,{className:f,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:y}),this.renderLiveRegion(),T.createElement(i,Ke({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:y,menuIsOpen:g}),T.createElement(c,Ke({},b,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(a,Ke({},b,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,c=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,f=i.isFocused,p=i.prevWasFocused,m=i.instancePrefix,g=o.options,y=o.value,b=o.menuIsOpen,v=o.inputValue,x=o.isMulti,E=yI(y),_={};if(a&&(y!==a.value||g!==a.options||b!==a.menuIsOpen||v!==a.inputValue)){var C=b?Wae(o,E):[],k=b?KI(oy(o,E),"".concat(m,"-option")):[],A=s?Gae(i,E):null,O=Kae(i,C),P=bS(k,O);_={selectValue:E,focusedOption:O,focusedOptionId:P,focusableOptionsWithIds:k,focusedValue:A,clearFocusValueOnUpdate:!1}}var I=c!=null&&o!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},$=u,L=f&&p;return f&&!L&&($={value:ry(x,E,E[0]||null),options:E,action:"initial-input-focus"},L=!p),u?.action==="initial-input-focus"&&($=null),Ye(Ye(Ye({},_),I),{},{prevProps:o,ariaSelection:$,prevWasFocused:L})}}]),n})(T.Component);t$.defaultProps=qae;var Xae=T.forwardRef(function(e,t){var n=Coe(e);return T.createElement(t$,Ke({ref:t},n))}),Zae=Xae;const Qae=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,a]=T.useState(""),[s,c]=T.useState(0),u=g=>{a(g.toLowerCase()),c(0)},f=e.filter(g=>g.label.toLowerCase().includes(i)||g.value.toLowerCase().includes(i));var p;t!==void 0?p=f.slice(s*t,(s+1)*t):p=f;const m={control:g=>({...g,minHeight:void 0})};return S.jsx(Zae,{options:p,onInputChange:u,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:m,classNamePrefix:"styled-select",defaultValue:r,value:r})},Jae=e=>typeof e=="boolean"||e instanceof Boolean,ese=e=>typeof e=="number"||e instanceof Number,tse=e=>typeof e=="bigint"||e instanceof BigInt,n$=e=>!!e&&e instanceof Date,nse=e=>typeof e=="string"||e instanceof String,rse=e=>Array.isArray(e),r$=e=>typeof e=="object"&&e!==null,o$=e=>!!e&&e instanceof Object&&typeof e=="function";function ay(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function ose(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function i$(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:a,level:s,style:c,shouldExpandNode:u,clickToExpandNode:f,outerRef:p,beforeExpandChange:m}=e;const g=T.useRef(!1),[y,b]=T.useState(()=>u(s,n,t)),v=T.useRef(null);T.useEffect(()=>{g.current?b(u(s,n,t)):g.current=!0},[u]);const x=T.useId();if(r.length===0)return ise({field:t,openBracket:i,closeBracket:a,lastElement:o,style:c});const E=y?c.collapseIcon:c.expandIcon,_=y?c.ariaLables.collapseJson:c.ariaLables.expandJson,C=s+1,k=r.length-1,A=I=>{y!==I&&(!m||m({level:s,value:n,field:t,newExpandValue:I}))&&b(I)},O=I=>{if(I.key==="ArrowRight"||I.key==="ArrowLeft")I.preventDefault(),A(I.key==="ArrowRight");else if(I.key==="ArrowUp"||I.key==="ArrowDown"){I.preventDefault();const $=I.key==="ArrowUp"?-1:1;if(!p.current)return;const L=p.current.querySelectorAll("[role=button]");let N=-1;for(let j=0;j{var I;A(!y);const $=v.current;if(!$)return;const L=(I=p.current)===null||I===void 0?void 0:I.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),$.tabIndex=0,$.focus()};return T.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":y,"aria-selected":void 0},T.createElement("span",{className:E,onClick:P,onKeyDown:O,role:"button","aria-label":_,"aria-expanded":y,"aria-controls":y?x:void 0,ref:v,tabIndex:s===0?0:-1}),(t||t==="")&&(f?T.createElement("span",{className:c.clickableLabel,onClick:P,onKeyDown:O},ay(t,c.quotesForFieldNames),":"):T.createElement("span",{className:c.label},ay(t,c.quotesForFieldNames),":")),T.createElement("span",{className:c.punctuation},i),y?T.createElement("ul",{id:x,role:"group",className:c.childFieldsContainer},r.map((I,$)=>T.createElement(xS,{key:I[0]||$,field:I[0],value:I[1],style:c,lastElement:$===k,level:C,shouldExpandNode:u,clickToExpandNode:f,beforeExpandChange:m,outerRef:p}))):T.createElement("span",{className:c.collapsedContent,onClick:P,onKeyDown:O}),T.createElement("span",{className:c.punctuation},a),!o&&T.createElement("span",{className:c.punctuation},","))}function ise(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return T.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:i.label},ay(t,i.quotesForFieldNames),":"),T.createElement("span",{className:i.punctuation},n),T.createElement("span",{className:i.punctuation},r),!o&&T.createElement("span",{className:i.punctuation},","))}function ase(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:c,beforeExpandChange:u}=e;return i$({field:t,value:n,lastElement:o||!1,level:s,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:a,data:Object.keys(n).map(f=>[f,n[f]]),outerRef:c,beforeExpandChange:u})}function sse(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:c,beforeExpandChange:u}=e;return i$({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:s,data:n.map(f=>[void 0,f]),outerRef:c,beforeExpandChange:u})}function lse(e){let{field:t,value:n,style:r,lastElement:o}=e,i,a=r.otherValue;return n===null?(i="null",a=r.nullValue):n===void 0?(i="undefined",a=r.undefinedValue):nse(n)?(i=ose(n,!r.noQuotesForStringValues,r.stringifyStringValues),a=r.stringValue):Jae(n)?(i=n?"true":"false",a=r.booleanValue):ese(n)?(i=n.toString(),a=r.numberValue):tse(n)?(i=`${n.toString()}n`,a=r.numberValue):n$(n)?i=n.toISOString():o$(n)?i="function() { }":i=n.toString(),T.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:r.label},ay(t,r.quotesForFieldNames),":"),T.createElement("span",{className:a},i),!o&&T.createElement("span",{className:r.punctuation},","))}function xS(e){const t=e.value;return rse(t)?T.createElement(sse,Object.assign({},e)):r$(t)&&!n$(t)&&!o$(t)?T.createElement(ase,Object.assign({},e)):T.createElement(lse,Object.assign({},e))}var qt={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const a$={collapseJson:"collapse JSON",expandJson:"expand JSON"},wS={container:qt["container-light"],basicChildStyle:qt["basic-element-style"],childFieldsContainer:qt["child-fields-container"],label:qt["label-light"],clickableLabel:qt["clickable-label-light"],nullValue:qt["value-null-light"],undefinedValue:qt["value-undefined-light"],stringValue:qt["value-string-light"],booleanValue:qt["value-boolean-light"],numberValue:qt["value-number-light"],otherValue:qt["value-other-light"],punctuation:qt["punctuation-light"],collapseIcon:qt["collapse-icon-light"],expandIcon:qt["expand-icon-light"],collapsedContent:qt["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:a$,stringifyStringValues:!1},cse={container:qt["container-dark"],basicChildStyle:qt["basic-element-style"],childFieldsContainer:qt["child-fields-container"],label:qt["label-dark"],clickableLabel:qt["clickable-label-dark"],nullValue:qt["value-null-dark"],undefinedValue:qt["value-undefined-dark"],stringValue:qt["value-string-dark"],booleanValue:qt["value-boolean-dark"],numberValue:qt["value-number-dark"],otherValue:qt["value-other-dark"],punctuation:qt["punctuation-dark"],collapseIcon:qt["collapse-icon-dark"],expandIcon:qt["expand-icon-dark"],collapsedContent:qt["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:a$,stringifyStringValues:!1},use=()=>!0,dse=e=>e<1,fse=e=>{let{data:t,style:n=wS,shouldExpandNode:r=use,clickToExpandNode:o=!1,beforeExpandChange:i,compactTopLevel:a,...s}=e;const c=T.useRef(null);return T.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:c,role:"tree"}),a&&r$(t)?Object.entries(t).map(u=>{let[f,p]=u;return T.createElement(xS,{key:f,field:f,value:p,style:{...wS,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:i,outerRef:c})}):T.createElement(xS,{value:t,style:{...wS,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:c,beforeExpandChange:i}))};function pse(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function hse(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:pse(e)}const mse=({data:e,className:t="json-display"})=>S.jsx("div",{className:t,children:S.jsx(fse,{data:hse(e)?"":e,style:cse,shouldExpandNode:dse})});function gse(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const a=e.getBoundingClientRect(),s=a.width,c=a.height;let u=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=u+"px";let f=t.getBoundingClientRect();for(;(f.width>s||f.height>c)&&u>o;)u*=i,t.style.fontSize=u+"px",f=t.getBoundingClientRect()}function yse(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n=0,unit_scale:r=!1,elapsed:o=0,unit:i="it",unit_divisor:a=1e3,prefix:s="",rate:c=void 0,postfix:u=null,initial:f=0}=e;t!==null&&n>=t+.5&&(t=null);let p=n,m=t,g=c;r&&r!==!0&&r!==1&&(t!==null&&(m=t*r),p=n*r,c!==void 0&&(g=c*r));const y=s$(o);g===void 0&&o>0&&(g=(p-f)/o);const b=g?1/g:void 0,[v,x]=g?sy(g,a):[void 0,""],[E,_]=b?sy(b,1e3):[void 0,""],C=(v||"?")+`${x}${i}/s`,k=E?`${E}${_}s/`+i:"?",A=b&&b>1?k:C,O=r?sy(p,a).join(""):p.toString(),P=r&&m!==null?sy(m,a).join(""):m?.toString()??"?",I=g&&m!==null?(m-p)/g:0,$=g?s$(I):"?",L=s?`${s}: `:"";if(t!==null){const N=p/t*100,U=` ${O}/${P} [${y} < ${$}, ${A}${u??""}]`;return`${L}${N.toFixed(0)}%${U}`}return`${L}${O}${i} [${y}, ${A}${u??""}]`}function s$(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function sy(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r{const r=T.useRef(null),o=T.useRef(null);T.useEffect(()=>{const a=()=>{!r.current||!o.current||gse(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[e]);const i=e.total?(e.n??0)/e.total*100:0;return S.jsx("div",{ref:r,className:t,...n,children:S.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[S.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:S.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),S.jsx("div",{className:t+"-text",ref:o,children:yse(e)})]})})};var ly={};var l$;function bse(){if(l$)return ly;l$=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;ly.format=a,ly.parse=s;function a(p){if(!p||typeof p!="object")throw new TypeError("argument obj is required");var m=p.parameters,g=p.type;if(!g||!i.test(g))throw new TypeError("invalid type");var y=g;if(m&&typeof m=="object")for(var b,v=Object.keys(m).sort(),x=0;x0&&!t.test(m))throw new TypeError("invalid parameter value");return'"'+m.replace(o,"\\$1")+'"'}function f(p){this.parameters=Object.create(null),this.type=p}return ly}var xse=bse(),wu=new Map,c$=function(t){return t.cloneNode(!0)},u$=function(){return window.location.protocol==="file:"},d$=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var a=xse.parse(i).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(u$()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||u$()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(s){if(o.abort(),s instanceof Error)r(s,o);else throw s}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},ws={},f$=function(t,n){ws[t]=ws[t]||[],ws[t].push(n)},wse=function(t){for(var n=function(a,s){setTimeout(function(){if(Array.isArray(ws[t])){var c=wu.get(t),u=ws[t][a];c instanceof SVGSVGElement&&u(null,c$(c)),c instanceof Error&&u(c),a===ws[t].length-1&&delete ws[t]}},0)},r=0,o=ws[t].length;r0&&(n==="always"||n==="once"&&!p$[c])){for(var V=0,F=$.length;V desc");P&&O.removeChild(P);var I=document.createElement("desc");I.innerHTML=a,O.prepend(I)}if(p){var $=O.querySelector(":scope > title");$&&O.removeChild($);var L=document.createElement("title");L.innerHTML=p,O.prepend(L)}try{y(O)}catch(N){_(N)}};Tse(E,{afterEach:C,beforeEach:k,cacheRequests:m,evalScripts:s,httpRequestWithCredentials:c,renumerateIRIElements:u})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var i=this;Rse(Ke({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var i=o.fallback;o.httpRequestWithCredentials;var a=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var s=o.wrapper,c=ag(o,Ose),u=s;return T.createElement(u,Ke({},c,{ref:this.refCallback},s==="svg"?{xmlns:cy,xmlnsXlink:m$}:{}),this.state.isLoading&&a&&T.createElement(a,null),this.state.hasError&&i&&T.createElement(i,null))},t})(T.Component);_S.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},_S.propTypes={afterInjection:Gn.func,beforeInjection:Gn.func,desc:Gn.string,evalScripts:Gn.oneOf(["always","once","never"]),fallback:Gn.oneOfType([Gn.func,Gn.object,Gn.string]),httpRequestWithCredentials:Gn.bool,loading:Gn.oneOfType([Gn.func,Gn.object,Gn.string]),onError:Gn.func,renumerateIRIElements:Gn.bool,src:Gn.string.isRequired,title:Gn.string,useRequestCache:Gn.bool,wrapper:Gn.oneOf(["div","span","svg"])};const ES=({text:e="No image data provided"})=>S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:e}),Mse=T.memo(({value:e,format:t="jpeg",alt:n="Base64 image",onError:r,onLoad:o,...i})=>{const[a,s]=T.useState(!1),[c,u]=T.useState(!0),f=T.useRef(null),p=T.useMemo(()=>{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"data"in e){const b=e.data;if(b instanceof ArrayBuffer){const v=new Uint8Array(b);let x="";for(let E=0;Ep?`data:image/${t};base64,${p}`:"",[p,t]),g=T.useCallback(b=>{s(!0),u(!1),r?.(b)},[r]),y=T.useCallback(()=>{u(!1),s(!1),o?.()},[o]);return T.useEffect(()=>{const b=f.current;if(b)return b.addEventListener("error",g),b.addEventListener("load",y),()=>{b.removeEventListener("error",g),b.removeEventListener("load",y)}},[g,y,e]),T.useEffect(()=>{s(!1),u(!0)},[e]),p?a?S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load base64 image"}):S.jsx("img",{ref:f,src:m,alt:n,className:`base64-image-renderer image-renderer ${i.className||""} ${c?" loading":""}`,...i}):S.jsx(ES,{})}),Nse=T.memo(({value:e,alt:t="SVG image",onError:n,onLoad:r,...o})=>{const[i,a]=T.useState(!1),s=T.useMemo(()=>{if(!e)return"";try{return`data:image/svg+xml;base64,${btoa(e)}`}catch(u){return console.error("Failed to encode SVG to base64:",u),""}},[e]);T.useEffect(()=>{a(!1)},[e]);const c=T.useCallback(u=>{a(!0),n?.(u)},[n]);return e?i||!s?S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load SVG"}):S.jsx(_S,{src:s,className:`svg-renderer ${o.className||""}`,style:{maxWidth:"100%",maxHeight:"100%",...o.style},beforeInjection:u=>{u.classList.add("svg-renderer"),u.setAttribute("style","max-width: 100%; max-height: 100%;"),u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("aria-label",t);const f=()=>{a(!1),r?.()},p=m=>{a(!0),n?.(m)};try{u.addEventListener("load",f),u.addEventListener("error",p)}catch{f()}},onError:c}):S.jsx(ES,{})}),Pse=T.memo(({src:e,alt:t="Streaming image",onError:n,onLoad:r,...o})=>{const i=T.useRef(null),[a,s]=T.useState(!1),[c,u]=T.useState(!0);T.useEffect(()=>{i.current&&e&&(u(!0),s(!1),i.current.src=e)},[e]);const f=T.useCallback(m=>{s(!0),u(!1),n?.(m)},[n]),p=T.useCallback(()=>{u(!1),s(!1),r?.()},[r]);return T.useEffect(()=>{const m=i.current;if(m)return m.addEventListener("error",f),m.addEventListener("load",p),()=>{m.removeEventListener("error",f),m.removeEventListener("load",p)}},[f,p]),a?S.jsx(ES,{text:"Failed to load image"}):S.jsx("img",{ref:i,className:`streaming-image image-renderer ${o.className||""} ${c?" loading":""}`,alt:t,...o})});function uy(e){const t=e+"CollectionProvider",[n,r]=vi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:v,children:x}=b,E=kn.useRef(null),_=kn.useRef(new Map).current;return S.jsx(o,{scope:v,itemMap:_,collectionRef:E,children:x})};a.displayName=t;const s=e+"CollectionSlot",c=tu(s),u=kn.forwardRef((b,v)=>{const{scope:x,children:E}=b,_=i(s,x),C=an(v,_.collectionRef);return S.jsx(c,{ref:C,children:E})});u.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=tu(f),g=kn.forwardRef((b,v)=>{const{scope:x,children:E,..._}=b,C=kn.useRef(null),k=an(v,C),A=i(f,x);return kn.useEffect(()=>(A.itemMap.set(C,{ref:C,..._}),()=>{A.itemMap.delete(C)})),S.jsx(m,{[p]:"",ref:k,children:E})});g.displayName=f;function y(b){const v=i(e+"CollectionConsumer",b);return kn.useCallback(()=>{const E=v.collectionRef.current;if(!E)return[];const _=Array.from(E.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,O)=>_.indexOf(A.ref.current)-_.indexOf(O.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},y,r]}var Ise=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$se="VisuallyHidden",CS=T.forwardRef((e,t)=>S.jsx(bt.span,{...e,ref:t,style:{...Ise,...e.style}}));CS.displayName=$se;var kS="ToastProvider",[TS,jse,Dse]=uy("Toast"),[g$]=vi("Toast",[Dse]),[Fse,dy]=g$(kS),y$=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=T.useState(null),[u,f]=T.useState(0),p=T.useRef(!1),m=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${kS}\`. Expected non-empty \`string\`.`),S.jsx(TS.Provider,{scope:t,children:S.jsx(Fse,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:c,onToastAdd:T.useCallback(()=>f(g=>g+1),[]),onToastRemove:T.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:a})})};y$.displayName=kS;var v$="ToastViewport",Lse=["F8"],AS="toast.viewportPause",RS="toast.viewportResume",b$=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Lse,label:o="Notifications ({hotkey})",...i}=e,a=dy(v$,n),s=jse(n),c=T.useRef(null),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),m=an(t,p,a.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=a.toastCount>0;T.useEffect(()=>{const v=x=>{r.length!==0&&r.every(_=>x[_]||x.code===_)&&p.current?.focus()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),T.useEffect(()=>{const v=c.current,x=p.current;if(y&&v&&x){const E=()=>{if(!a.isClosePausedRef.current){const A=new CustomEvent(AS);x.dispatchEvent(A),a.isClosePausedRef.current=!0}},_=()=>{if(a.isClosePausedRef.current){const A=new CustomEvent(RS);x.dispatchEvent(A),a.isClosePausedRef.current=!1}},C=A=>{!v.contains(A.relatedTarget)&&_()},k=()=>{v.contains(document.activeElement)||_()};return v.addEventListener("focusin",E),v.addEventListener("focusout",C),v.addEventListener("pointermove",E),v.addEventListener("pointerleave",k),window.addEventListener("blur",E),window.addEventListener("focus",_),()=>{v.removeEventListener("focusin",E),v.removeEventListener("focusout",C),v.removeEventListener("pointermove",E),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",E),window.removeEventListener("focus",_)}}},[y,a.isClosePausedRef]);const b=T.useCallback(({tabbingDirection:v})=>{const E=s().map(_=>{const C=_.ref.current,k=[C,...Qse(C)];return v==="forwards"?k:k.reverse()});return(v==="forwards"?E.reverse():E).flat()},[s]);return T.useEffect(()=>{const v=p.current;if(v){const x=E=>{const _=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!_){const k=document.activeElement,A=E.shiftKey;if(E.target===v&&A){u.current?.focus();return}const I=b({tabbingDirection:A?"backwards":"forwards"}),$=I.findIndex(L=>L===k);NS(I.slice($+1))?E.preventDefault():A?u.current?.focus():f.current?.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[s,b]),S.jsxs(mZ,{ref:c,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&S.jsx(OS,{ref:u,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});NS(v)}}),S.jsx(TS.Slot,{scope:n,children:S.jsx(bt.ol,{tabIndex:-1,...i,ref:m})}),y&&S.jsx(OS,{ref:f,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});NS(v)}})]})});b$.displayName=v$;var x$="ToastFocusProxy",OS=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=dy(x$,n);return S.jsx(CS,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&r()}})});OS.displayName=x$;var Bf="Toast",zse="toast.swipeStart",Bse="toast.swipeMove",Use="toast.swipeCancel",Vse="toast.swipeEnd",w$=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s,c]=ps({prop:r,defaultProp:o??!0,onChange:i,caller:Bf});return S.jsx(Lo,{present:n||s,children:S.jsx(Wse,{open:s,...a,ref:t,onClose:()=>c(!1),onPause:Pr(e.onPause),onResume:Pr(e.onResume),onSwipeStart:Le(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Le(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Le(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Le(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})});w$.displayName=Bf;var[Hse,qse]=g$(Bf,{onClose(){}}),Wse=T.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:g,...y}=e,b=dy(Bf,n),[v,x]=T.useState(null),E=an(t,j=>x(j)),_=T.useRef(null),C=T.useRef(null),k=o||b.duration,A=T.useRef(0),O=T.useRef(k),P=T.useRef(0),{onToastAdd:I,onToastRemove:$}=b,L=Pr(()=>{v?.contains(document.activeElement)&&b.viewport?.focus(),a()}),N=T.useCallback(j=>{!j||j===1/0||(window.clearTimeout(P.current),A.current=new Date().getTime(),P.current=window.setTimeout(L,j))},[L]);T.useEffect(()=>{const j=b.viewport;if(j){const V=()=>{N(O.current),u?.()},F=()=>{const K=new Date().getTime()-A.current;O.current=O.current-K,window.clearTimeout(P.current),c?.()};return j.addEventListener(AS,F),j.addEventListener(RS,V),()=>{j.removeEventListener(AS,F),j.removeEventListener(RS,V)}}},[b.viewport,k,c,u,N]),T.useEffect(()=>{i&&!b.isClosePausedRef.current&&N(k)},[i,k,b.isClosePausedRef,N]),T.useEffect(()=>(I(),()=>$()),[I,$]);const U=T.useMemo(()=>v?A$(v):null,[v]);return b.viewport?S.jsxs(S.Fragment,{children:[U&&S.jsx(Gse,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:U}),S.jsx(Hse,{scope:n,onClose:L,children:xl.createPortal(S.jsx(TS.ItemSlot,{scope:n,children:S.jsx(hZ,{asChild:!0,onEscapeKeyDown:Le(s,()=>{b.isFocusedToastEscapeKeyDownRef.current||L(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(bt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":b.swipeDirection,...y,ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Le(e.onKeyDown,j=>{j.key==="Escape"&&(s?.(j.nativeEvent),j.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Le(e.onPointerDown,j=>{j.button===0&&(_.current={x:j.clientX,y:j.clientY})}),onPointerMove:Le(e.onPointerMove,j=>{if(!_.current)return;const V=j.clientX-_.current.x,F=j.clientY-_.current.y,K=!!C.current,W=["left","right"].includes(b.swipeDirection),Y=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,B=W?Y(0,V):0,D=W?0:Y(0,F),G=j.pointerType==="touch"?10:2,z={x:B,y:D},H={originalEvent:j,delta:z};K?(C.current=z,fy(Bse,p,H,{discrete:!1})):R$(z,b.swipeDirection,G)?(C.current=z,fy(zse,f,H,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(V)>G||Math.abs(F)>G)&&(_.current=null)}),onPointerUp:Le(e.onPointerUp,j=>{const V=C.current,F=j.target;if(F.hasPointerCapture(j.pointerId)&&F.releasePointerCapture(j.pointerId),C.current=null,_.current=null,V){const K=j.currentTarget,W={originalEvent:j,delta:V};R$(V,b.swipeDirection,b.swipeThreshold)?fy(Vse,g,W,{discrete:!0}):fy(Use,m,W,{discrete:!0}),K.addEventListener("click",Y=>Y.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),Gse=e=>{const{__scopeToast:t,children:n,...r}=e,o=dy(Bf,t),[i,a]=T.useState(!1),[s,c]=T.useState(!1);return Xse(()=>a(!0)),T.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:S.jsx(dg,{asChild:!0,children:S.jsx(CS,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},Kse="ToastTitle",S$=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(bt.div,{...r,ref:t})});S$.displayName=Kse;var Yse="ToastDescription",_$=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(bt.div,{...r,ref:t})});_$.displayName=Yse;var E$="ToastAction",C$=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(T$,{altText:n,asChild:!0,children:S.jsx(MS,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${E$}\`. Expected non-empty \`string\`.`),null)});C$.displayName=E$;var k$="ToastClose",MS=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=qse(k$,n);return S.jsx(T$,{asChild:!0,children:S.jsx(bt.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,o.onClose)})})});MS.displayName=k$;var T$=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(bt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function A$(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Zse(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...A$(r))}}),t}function fy(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kx(o,i):o.dispatchEvent(i)}var R$=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Xse(e=()=>{}){const t=Pr(e);ca(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Zse(e){return e.nodeType===e.ELEMENT_NODE}function Qse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NS(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Jse=y$,ele=b$,tle=w$,nle=S$,rle=_$,ole=C$,ile=MS;const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function ale(e,t=0){return(or[e[t+0]]+or[e[t+1]]+or[e[t+2]]+or[e[t+3]]+"-"+or[e[t+4]]+or[e[t+5]]+"-"+or[e[t+6]]+or[e[t+7]]+"-"+or[e[t+8]]+or[e[t+9]]+"-"+or[e[t+10]]+or[e[t+11]]+or[e[t+12]]+or[e[t+13]]+or[e[t+14]]+or[e[t+15]]).toLowerCase()}let PS;const sle=new Uint8Array(16);function lle(){if(!PS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");PS=crypto.getRandomValues.bind(crypto)}return PS(sle)}const O$={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cle(e,t,n){e=e||{};const r=e.random??e.rng?.()??lle();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ale(r)}function IS(e,t,n){return O$.randomUUID&&!e?O$.randomUUID():cle(e)}const M$=T.createContext(void 0),N$=T.createContext(void 0),ule=350,dle=({children:e,fixedHeight:t,duration:n=5e3,maxVisible:r=3,...o})=>{const[i,a]=T.useState(new Map),s=T.useRef(new Map),c=T.useRef(null),u=T.useRef(!0),f=T.useCallback(()=>{const x=Array.from(s.current).reverse();if(t){const E=t;x.forEach(([,_],C)=>{if(!_)return;_.setAttribute("data-front",String(C===0)),_.setAttribute("data-hidden",String(C>=r)),_.style.setProperty("--index",String(C)),_.style.setProperty("--height",`${t}px`),_.style.setProperty("--front-height",`${E}px`);const k=t*C;_.style.setProperty("--hover-offset-y",`-${k}px`)})}else{const E=x.map(([,C])=>{if(!C)return 0;const k=C.querySelector(".ToastInner");if(!k)return C.clientHeight;const A=k.style.height;k.style.height="auto";const O=C.clientHeight;return k.style.height=A,O}),_=E[0]||0;x.forEach(([,C],k)=>{if(!C)return;const A=E[k];C.setAttribute("data-front",String(k===0)),C.setAttribute("data-hidden",String(k>=r)),C.style.setProperty("--index",String(k)),C.style.setProperty("--height",`${A}px`),C.style.setProperty("--front-height",`${_}px`);const O=E.slice(0,k).reduce((P,I)=>P+I,0);C.style.setProperty("--hover-offset-y",`-${O}px`)})}},[t,r]),p=T.useCallback(x=>{a(E=>{const _=new Map(E);return _.set(IS(),{...x,duration:x.duration||n,open:!0}),_})},[n]),m=T.useCallback(x=>{u.current&&a(E=>{const _=new Map(E);return _.delete(x),_})},[]),g=T.useCallback(x=>p({...x,status:x.status||"default"}),[p]),y=T.useCallback(x=>p({...x,status:"success"}),[p]),b=T.useCallback(x=>p({...x,status:"error"}),[p]);T.useEffect(()=>(u.current=!0,()=>{u.current=!1}),[]),T.useEffect(()=>{const x=c.current;if(x){const E=()=>{s.current.forEach(k=>{k.setAttribute("data-hovering","true")})},_=k=>{(!x.contains(k.target)||x===k.target)&&s.current.forEach(A=>{A.setAttribute("data-hovering","false")})},C=()=>{s.current.forEach(k=>{k.setAttribute("data-hovering","false")})};return x.addEventListener("pointermove",E),x.addEventListener("pointerleave",C),x.addEventListener("focusin",E),x.addEventListener("focusout",_),()=>{x.removeEventListener("pointermove",E),x.removeEventListener("pointerleave",C),x.removeEventListener("focusin",E),x.removeEventListener("focusout",_)}}},[]);const v=T.useMemo(()=>Object.assign(g,{success:y,error:b}),[g,y,b]);return S.jsx(M$.Provider,{value:v,children:S.jsx(N$.Provider,{value:T.useMemo(()=>({toastElementsMapRef:s,sortToasts:f}),[f]),children:S.jsxs(Jse,{...o,children:[e,Array.from(i).map(([x,E])=>S.jsx(hle,{id:x,toast:E,onOpenChange:_=>{_||(s.current.delete(x),f(),a(C=>{const k=new Map(C),A=k.get(x);return A&&k.set(x,{...A,open:!1}),k}),setTimeout(()=>{m(x)},ule))}},x)),S.jsx(ele,{ref:c,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},fle=()=>{const e=T.useContext(M$);if(e)return e;throw new Error("useToast must be used within Toasts")},ple=()=>{const e=T.useContext(N$);if(e)return e;throw new Error("useToastContext must be used within Toasts")},hle=({onOpenChange:e,toast:t,id:n,...r})=>{const o=T.useRef(null),i=ple(),{sortToasts:a,toastElementsMapRef:s}=i,c=s.current;return T.useLayoutEffect(()=>(o.current&&(c.set(n,o.current),a()),()=>{c.delete(n),a()}),[n,a,c]),S.jsx(tle,{...r,ref:o,type:t.type,duration:t.duration,className:"ToastRoot",onOpenChange:e,open:t.open,children:S.jsxs("div",{className:"ToastInner","data-status":t.status,children:[S.jsx(mle,{status:t.status}),t.title&&S.jsx(nle,{className:"ToastTitle",children:t.title}),S.jsx(rle,{className:"ToastDescription",children:t.description}),t.action&&S.jsx(ole,{className:"ToastAction Button small green",altText:t.action.altText,onClick:t.action.onClick,asChild:!0,children:S.jsx("button",{children:t.action.label})}),S.jsx(ile,{"aria-label":"Close",className:"ToastClose",children:S.jsx(Lg,{style:{fontSize:"12px"}})})]})})},mle=({status:e})=>e!=="default"&&e?S.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&S.jsx(Mne,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&S.jsx(Nne,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,gle={},P$=e=>{let t;const n=new Set,r=(f,p)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(gle?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},I$=e=>e?P$(e):P$;var $S={exports:{}},jS={},DS={exports:{}},FS={};var $$;function yle(){if($$)return FS;$$=1;var e=Zd();function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(p,m){var g=m(),y=r({inst:{value:g,getSnapshot:m}}),b=y[0].inst,v=y[1];return i(function(){b.value=g,b.getSnapshot=m,c(b)&&v({inst:b})},[p,g,m]),o(function(){return c(b)&&v({inst:b}),p(function(){c(b)&&v({inst:b})})},[p]),a(g),g}function c(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!n(p,g)}catch{return!0}}function u(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return FS.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,FS}var j$;function vle(){return j$||(j$=1,DS.exports=yle()),DS.exports}var D$;function ble(){if(D$)return jS;D$=1;var e=Zd(),t=vle();function n(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;return jS.useSyncExternalStoreWithSelector=function(u,f,p,m,g){var y=i(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=s(function(){function x(A){if(!E){if(E=!0,_=A,A=m(A),g!==void 0&&b.hasValue){var O=b.value;if(g(O,A))return C=O}return C=A}if(O=C,r(_,A))return O;var P=m(A);return g!==void 0&&g(O,P)?(_=A,O):(_=A,C=P)}var E=!1,_,C,k=p===void 0?null:p;return[function(){return x(f())},k===null?void 0:function(){return x(k())}]},[f,p,m,g]);var v=o(u,y[0],y[1]);return a(function(){b.hasValue=!0,b.value=v},[v]),c(v),v},jS}var F$;function xle(){return F$||(F$=1,$S.exports=ble()),$S.exports}var wle=xle();const L$=Er(wle),z$={},{useDebugValue:Sle}=kn,{useSyncExternalStoreWithSelector:_le}=L$;let B$=!1;const Ele=e=>e;function Cle(e,t=Ele,n){(z$?"production":void 0)!=="production"&&n&&!B$&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),B$=!0);const r=_le(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Sle(r),r}const U$=e=>{(z$?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?I$(e):e,n=(r,o)=>Cle(t,r,o);return Object.assign(n,t),n},xo=e=>e?U$(e):U$;class xa{constructor(t){this.context=t}get communicationManager(){return this.context.worker.getCommunicationManager()}get eventManager(){return this.context.worker.getEventManager()}get hookManager(){return this.context.worker.getHookManager()}get nodeManager(){return this.context.worker.getNodeManager()}get syncManager(){return this.context.worker.getSyncManager()}get connectionHealthManager(){return this.context.worker.getConnectionHealthManager()}get edgeManager(){return this.context.worker.getEdgeManager()}get groupManager(){return this.context.worker.getGroupManager()}get libraryManager(){return this.context.worker.getLibraryManager()}}const py=2e3;class kle extends xa{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-py*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},py),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=py*3},py*2)}stop(){this.pingInterval&&clearInterval(this.pingInterval),this.responsivenessCheckInterval&&clearInterval(this.responsivenessCheckInterval)}receivePong(){this._last_pong=Date.now(),this._responsive=!0}isResponsive(){return this._responsive}}const V$=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),t.collapsed!==void 0&&(e.properties["frontend:collapsed"]=!!t.collapsed)},H$=2e3,q$=2e3;class Tle extends xa{constructor(t){super(t),this._local_nodeupdates=new Map,this._local_groupupdates=new Map,this.on_sync_complete=t.on_sync_complete||(async()=>{})}start(){this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},H$),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},q$)}stop(){this._nodeupdatetimer&&clearTimeout(this._nodeupdatetimer),this._groupupdatetimer&&clearTimeout(this._groupupdatetimer)}async stepwise_fullsync(){this.context.worker._zustand&&this.context.worker.is_open&&(await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this.context.worker))}async sync_lib(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});this.context.worker._zustand.add_packed_plugin(n,r)}}async sync_view_state(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this.context.worker._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};V$(o,n[r]),this.context.worker._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const o of t)this.eventManager._receive_node_added(o);const n=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const o of n)this.eventManager._receive_edge_added(...o);const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_groups",kwargs:{},wait_for_response:!0,unique:!0});this.eventManager._receive_groups(r)}async fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;let t;for(;;)try{t=await this.communicationManager._send_cmd({cmd:"full_state",unique:!0});break}catch(o){o instanceof Error?this.context.worker._zustand.logger.error("Error in fullsync",o):this.context.worker._zustand.logger.error("Error in fullsync",new Error(JSON.stringify(o)))}this.context.worker._zustand.logger.debug("Full state",t),this.context.worker._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this.context.worker._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const o of t.backend.nodes){const i=n[o.id];i!==void 0&&V$(o,i),this.eventManager._receive_node_added(o)}for(const o of t.backend.edges)this.eventManager._receive_edge_added(...o);const r=t.backend.groups;r&&this.eventManager._receive_groups(r)}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&Object.keys(r).length>0&&this.context.worker._zustand.on_node_action({type:"update",node:r,id:n,from_remote:!0})}),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},H$)}sync_local_group_updates(){clearTimeout(this._groupupdatetimer),this._local_groupupdates.forEach(async(t,n)=>{const r=await this.communicationManager._send_cmd({cmd:"update_group",kwargs:{gid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&this.context.worker._zustand.on_group_action({type:"update",group:r,id:n,from_remote:!0})}),this._local_groupupdates.clear(),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},q$)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=ls(n,t.node);o&&this._local_nodeupdates.set(t.id,r)}else this._local_nodeupdates.set(t.id,t.node);t.immediate&&this.sync_local_node_updates()}locally_update_group(t){const n=this._local_groupupdates.get(t.id);if(n){const{new_obj:r,change:o}=ls(n,t.group);o&&this._local_groupupdates.set(t.id,r)}else this._local_groupupdates.set(t.id,t.group);t.immediate&&this.sync_local_group_updates()}}class Ai{constructor({data:t,mime:n}){this._data=t,this._mime=n}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class W$ extends Ai{constructor({data:t,mime:n}){super({data:hy(t),mime:n})}get objectUrl(){if(this._objectUrl)return this._objectUrl;const t=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(t),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const hy=e=>{if(e instanceof ArrayBuffer)return e;const t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n},Ale={x:(e,t)=>null,c:(e,t)=>new DataView(e).getInt8(0),B:(e,t)=>new DataView(e).getUint8(0),"?":(e,t)=>new DataView(e).getInt8(0)===1,h:(e,t)=>new DataView(e).getInt16(0,t),H:(e,t)=>new DataView(e).getUint16(0,t),i:(e,t)=>new DataView(e).getInt32(0,t),I:(e,t)=>new DataView(e).getUint32(0,t),l:(e,t)=>new DataView(e).getInt32(0,t),L:(e,t)=>new DataView(e).getUint32(0,t),q:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),f:(e,t)=>new DataView(e).getFloat32(0,t),d:(e,t)=>new DataView(e).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(e),p:(e,t)=>new TextDecoder().decode(e),P:(e,t)=>Number(new DataView(e).getBigUint64(0,t))};class G$ extends Ai{constructor({data:t,mime:n}){super({data:hy(t),mime:n}),this._cType=n.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let t=!0,n=this._cType;return n.startsWith("<")&&(t=!0,n=n.slice(1)),n.startsWith(">")&&(t=!1,n=n.slice(1)),n.startsWith("!")&&(t=!1,n=n.slice(1)),n.startsWith("@")&&(t=!1,n=n.slice(1)),n.startsWith("=")&&(t=!1,n=n.slice(1)),this._value=Ale[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Ss extends Ai{constructor({data:t,mime:n}){const r=hy(t);super({data:r,mime:n}),r.byteLength===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(r)),this._json===""&&(this._json=void 0))}get value(){return this._json}static fromObject(t){const n=t===""?new Uint8Array(0):new TextEncoder().encode(JSON.stringify(t));return new Ss({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class K$ extends Ai{constructor({data:t,mime:n}){const r=hy(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const Y$=({data:e,mime:t})=>{const n=typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer;return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||n?t.startsWith("application/fn.struct.")?new G$({data:e,mime:t}):t.startsWith("application/json")?new Ss({data:e,mime:t}):t==="text"||t.startsWith("text/")?new K$({data:e,mime:t}):new W$({data:e,mime:t}):new Ai({data:e,mime:t})};class Rle extends xa{constructor(t){super(t),this.CHUNK_TIMEOUT=1e4,this._unique_cmd_outs={},this.blobChunks={},this.cleanupChunks=()=>{const n=Date.now();for(const r in this.blobChunks)n-this.blobChunks[r].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[r]},this.messagePromises=new Map}start(){this._chunk_cleanup_timer=setInterval(this.cleanupChunks.bind(this),this.CHUNK_TIMEOUT/2)}stop(){this._chunk_cleanup_timer&&clearInterval(this._chunk_cleanup_timer)}send(t){this.context.worker.send(t)}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:i=5e3,retries:a=2,unique:s=!1}){const c={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async u=>{if(this.context.worker.is_responsive)return u();const f=setInterval(()=>{this.context.worker.is_responsive&&(clearInterval(f),u())},100)}),o){if(s&&this._unique_cmd_outs[c.cmd]!==void 0)return this._unique_cmd_outs[c.cmd];a<0&&(a=0);const f=(async()=>{let p;for(;a>=0;){const m=c.id||IS();c.id=m;const g=new Promise((y,b)=>{const v=setTimeout(()=>{b("Timeout@wait_for_response for "+t)},i);this.messagePromises.set(m,{resolve:x=>{clearTimeout(v),y(x),this.messagePromises.delete(m)},reject:x=>{clearTimeout(v),b(x),this.messagePromises.delete(m)}})});await this.send(c);try{p=await g;break}catch(y){if(a===0)throw delete this._unique_cmd_outs[c.cmd],y;a-=1;continue}}return delete this._unique_cmd_outs[c.cmd],p})();return s&&(this._unique_cmd_outs[c.cmd]=f),f}return this.send(c)}async receive(t){let n;switch(this.connectionHealthManager.receivePong(),t.type){case"pong":return this.connectionHealthManager.receivePong();case"nsevent":return await this.context.worker.getEventManager().receive_nodespace_event(t);case"result":if(n=t.id&&this.messagePromises.get(t.id),n)return n.resolve(t.result);break;case"error":if(this.context.worker.on_error(t.tb+` +`]))),kie=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return Ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},fS=function(t){var n=t.delay,r=t.offset;return He("span",{css:df({animation:"".concat(Cie," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Tie=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=ba(t,yie);return He("div",Ke({},Rn(Ye(Ye({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),He(fS,{delay:0,offset:r}),He(fS,{delay:160,offset:!0}),He(fS,{delay:320,offset:!r}))},Aie=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,c=i.spacing;return Ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Rie=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return He("div",Ke({ref:i},Rn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},Oie=Rie,Mie=["data"],Nie=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Pie=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,c=t.innerProps,u=t.label,f=t.theme,p=t.selectProps;return He("div",Ke({},Rn(t,"group",{group:!0}),c),He(a,Ke({},s,{selectProps:p,theme:f,getStyles:o,getClassNames:i,cx:r}),u),He("div",null,n))},Iie=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return Ye({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},$ie=function(t){var n=vI(t);n.data;var r=ba(n,Mie);return He("div",Ke({},Rn(t,"groupHeading",{"group-heading":!0}),r))},jie=Pie,Die=["innerRef","isDisabled","isHidden","inputClassName"],Fie=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return Ye(Ye({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},Lie),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},OI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Lie={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},OI)},zie=function(t){return Ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},OI)},Bie=function(t){var n=t.cx,r=t.value,o=vI(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,c=o.inputClassName,u=ba(o,Die);return He("div",Ke({},Rn(t,"input",{"input-container":!0}),{"data-value":r||""}),He("input",Ke({className:n({input:!0},c),ref:i,style:zie(s),disabled:a},u)))},Uie=Bie,Vie=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ye({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Hie=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return Ye({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},qie=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=t.isFocused;return Ye({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},MI=function(t){var n=t.children,r=t.innerProps;return He("div",r,n)},Wie=MI,Gie=MI;function Kie(e){var t=e.children,n=e.innerProps;return He("div",Ke({role:"button"},n),t||He(dS,{size:14}))}var Yie=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,c=t.selectProps,u=r.Container,f=r.Label,p=r.Remove;return He(u,{data:o,innerProps:Ye(Ye({},Rn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:c},He(f,{data:o,innerProps:Ye({},Rn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),He(p,{data:o,innerProps:Ye(Ye({},Rn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},Xie=Yie,Zie=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,c=a.colors;return Ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:i?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?c.primary:c.primary50}})},Qie=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return He("div",Ke({},Rn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},Jie=Qie,eae=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return Ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},tae=function(t){var n=t.children,r=t.innerProps;return He("div",Ke({},Rn(t,"placeholder",{placeholder:!0}),r),n)},nae=tae,rae=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return Ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},oae=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return He("div",Ke({},Rn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},iae=oae,aae={ClearIndicator:Sie,Control:Oie,DropdownIndicator:xie,DownChevron:AI,CrossIcon:dS,Group:jie,GroupHeading:$ie,IndicatorsContainer:mie,IndicatorSeparator:Eie,Input:Uie,LoadingIndicator:Tie,Menu:tie,MenuList:rie,MenuPortal:cie,LoadingMessage:sie,NoOptionsMessage:aie,MultiValue:Xie,MultiValueContainer:Wie,MultiValueLabel:Gie,MultiValueRemove:Kie,Option:Jie,Placeholder:nae,SelectContainer:die,SingleValue:iae,ValueContainer:pie},sae=function(t){return Ye(Ye({},aae),t.components)},NI=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function lae(e,t){return!!(e===t||NI(e)&&NI(t))}function cae(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,c=t.isDisabled,u=t.isSelected,f=t.isAppleDevice,p=function(b,v){return b&&b.length?"".concat(b.indexOf(v)+1," of ").concat(b.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(p(s,r),".");if(n==="menu"&&f){var m=c?" disabled":"",g="".concat(u?" selected":"").concat(m);return"".concat(a).concat(g,", ").concat(p(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},hae=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,c=t.selectProps,u=t.id,f=t.isAppleDevice,p=c.ariaLiveMessages,m=c.getOptionLabel,g=c.inputValue,y=c.isMulti,b=c.isOptionDisabled,v=c.isSearchable,x=c.menuIsOpen,E=c.options,_=c.screenReaderStatus,C=c.tabSelectsValue,k=c.isLoading,A=c["aria-label"],O=c["aria-live"],P=T.useMemo(function(){return Ye(Ye({},pae),p||{})},[p]),I=T.useMemo(function(){var V="";if(n&&P.onChange){var F=n.option,K=n.options,W=n.removedValue,Y=n.removedValues,B=n.value,D=function(te){return Array.isArray(te)?null:te},G=W||F||D(B),z=G?m(G):"",H=K||Y||void 0,X=H?H.map(m):[],Q=Ye({isDisabled:G&&b(G,s),label:z,labels:X},n);V=P.onChange(Q)}return V},[n,P,b,s,m]),$=T.useMemo(function(){var V="",F=r||o,K=!!(r&&s&&s.includes(r));if(F&&P.onFocus){var W={focused:F,label:m(F),isDisabled:b(F,s),isSelected:K,options:i,context:F===r?"menu":"value",selectValue:s,isAppleDevice:f};V=P.onFocus(W)}return V},[r,o,m,b,P,i,s,f]),L=T.useMemo(function(){var V="";if(x&&E.length&&!k&&P.onFilter){var F=_({count:i.length});V=P.onFilter({inputValue:g,resultsMessage:F})}return V},[i,g,x,P,E,_,k]),N=n?.action==="initial-input-focus",U=T.useMemo(function(){var V="";if(P.guidance){var F=o?"value":x?"menu":"input";V=P.guidance({"aria-label":A,context:F,isDisabled:r&&b(r,s),isMulti:y,isSearchable:v,tabSelectsValue:C,isInitialFocus:N})}return V},[A,r,o,y,b,v,x,P,s,C,N]),j=He(T.Fragment,null,He("span",{id:"aria-selection"},I),He("span",{id:"aria-focused"},$),He("span",{id:"aria-results"},L),He("span",{id:"aria-guidance"},U));return He(T.Fragment,null,He(PI,{id:u},N&&j),He(PI,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&j))},mae=hae,pS=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gae=new RegExp("["+pS.map(function(e){return e.letters}).join("")+"]","g"),II={},hS=0;hS-1}},xae=["innerRef"];function wae(e){var t=e.innerRef,n=ba(e,xae),r=Goe(n,"onExited","in","enter","exit","appear");return He("input",Ke({ref:t},r,{css:df({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sae=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function _ae(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=T.useRef(!1),s=T.useRef(!1),c=T.useRef(0),u=T.useRef(null),f=T.useCallback(function(v,x){if(u.current!==null){var E=u.current,_=E.scrollTop,C=E.scrollHeight,k=E.clientHeight,A=u.current,O=x>0,P=C-k-_,I=!1;P>x&&a.current&&(r&&r(v),a.current=!1),O&&s.current&&(i&&i(v),s.current=!1),O&&x>P?(n&&!a.current&&n(v),A.scrollTop=C,I=!0,a.current=!0):!O&&-x>_&&(o&&!s.current&&o(v),A.scrollTop=0,I=!0,s.current=!0),I&&Sae(v)}},[n,r,o,i]),p=T.useCallback(function(v){f(v,v.deltaY)},[f]),m=T.useCallback(function(v){c.current=v.changedTouches[0].clientY},[]),g=T.useCallback(function(v){var x=c.current-v.changedTouches[0].clientY;f(v,x)},[f]),y=T.useCallback(function(v){if(v){var x=Hoe?{passive:!1}:!1;v.addEventListener("wheel",p,x),v.addEventListener("touchstart",m,x),v.addEventListener("touchmove",g,x)}},[g,m,p]),b=T.useCallback(function(v){v&&(v.removeEventListener("wheel",p,!1),v.removeEventListener("touchstart",m,!1),v.removeEventListener("touchmove",g,!1))},[g,m,p]);return T.useEffect(function(){if(t){var v=u.current;return y(v),function(){b(v)}}},[t,y,b]),function(v){u.current=v}}var DI=["boxSizing","height","overflow","paddingRight","position"],FI={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function LI(e){e.cancelable&&e.preventDefault()}function zI(e){e.stopPropagation()}function BI(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function UI(){return"ontouchstart"in window||navigator.maxTouchPoints}var VI=!!(typeof window<"u"&&window.document&&window.document.createElement),zf=0,xu={capture:!1,passive:!1};function Eae(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=T.useRef({}),i=T.useRef(null),a=T.useCallback(function(c){if(VI){var u=document.body,f=u&&u.style;if(r&&DI.forEach(function(y){var b=f&&f[y];o.current[y]=b}),r&&zf<1){var p=parseInt(o.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,g=window.innerWidth-m+p||0;Object.keys(FI).forEach(function(y){var b=FI[y];f&&(f[y]=b)}),f&&(f.paddingRight="".concat(g,"px"))}u&&UI()&&(u.addEventListener("touchmove",LI,xu),c&&(c.addEventListener("touchstart",BI,xu),c.addEventListener("touchmove",zI,xu))),zf+=1}},[r]),s=T.useCallback(function(c){if(VI){var u=document.body,f=u&&u.style;zf=Math.max(zf-1,0),r&&zf<1&&DI.forEach(function(p){var m=o.current[p];f&&(f[p]=m)}),u&&UI()&&(u.removeEventListener("touchmove",LI,xu),c&&(c.removeEventListener("touchstart",BI,xu),c.removeEventListener("touchmove",zI,xu)))}},[r]);return T.useEffect(function(){if(t){var c=i.current;return a(c),function(){s(c)}}},[t,a,s]),function(c){i.current=c}}var Cae=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},kae={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tae(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=_ae({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:c}),f=Eae({isEnabled:n}),p=function(g){u(g),f(g)};return He(T.Fragment,null,n&&He("div",{onClick:Cae,css:kae}),t(p))}var Aae={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Rae=function(t){var n=t.name,r=t.onFocus;return He("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Aae,value:"",onChange:function(){}})},Oae=Rae;function yS(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Mae(){return yS(/^iPhone/i)}function HI(){return yS(/^Mac/i)}function Nae(){return yS(/^iPad/i)||HI()&&navigator.maxTouchPoints>1}function Pae(){return Mae()||Nae()}function Iae(){return HI()||Pae()}var $ae=function(t){return t.label},jae=function(t){return t.label},Dae=function(t){return t.value},Fae=function(t){return!!t.isDisabled},Lae={clearIndicator:wie,container:uie,control:Aie,dropdownIndicator:bie,group:Nie,groupHeading:Iie,indicatorsContainer:hie,indicatorSeparator:_ie,input:Fie,loadingIndicator:kie,loadingMessage:iie,menu:Qoe,menuList:nie,menuPortal:lie,multiValue:Vie,multiValueLabel:Hie,multiValueRemove:qie,noOptionsMessage:oie,option:Zie,placeholder:eae,singleValue:rae,valueContainer:fie},zae={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Bae=4,qI=4,Uae=38,Vae=qI*2,Hae={baseUnit:qI,controlHeight:Uae,menuGutter:Vae},vS={borderRadius:Bae,colors:zae,spacing:Hae},qae={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wI(),captureMenuScroll:!wI(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bae(),formatGroupLabel:$ae,getOptionLabel:jae,getOptionValue:Dae,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Fae,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Uoe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function WI(e,t,n,r){var o=ZI(e,t,n),i=QI(e,t,n),a=XI(e,t),s=iy(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function oy(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return WI(e,a,t,s)}).filter(function(a){return YI(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=WI(e,n,t,r);return YI(e,i)?i:void 0}).filter(qoe)}function GI(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,cS(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function KI(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,cS(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Wae(e,t){return GI(oy(e,t))}function YI(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!e$(e)||!i)&&JI(e,{label:a,value:s,data:o},r)}function Gae(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o-1?n:t[0]}var bS=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},XI=function(t,n){return t.getOptionLabel(n)},iy=function(t,n){return t.getOptionValue(n)};function ZI(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function QI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=iy(e,t);return n.some(function(o){return iy(e,o)===r})}function JI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var e$=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Yae=1,t$=(function(e){Aoe(n,e);var t=Ooe(n);function n(r){var o;if(koe(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,u){var f=o.props,p=f.onChange,m=f.name;u.name=m,o.ariaOnChange(c,u),p(c,u)},o.setValue=function(c,u,f){var p=o.props,m=p.closeMenuOnSelect,g=p.isMulti,y=p.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:y}),m&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:u,option:f})},o.selectOption=function(c){var u=o.props,f=u.blurInputOnSelect,p=u.isMulti,m=u.name,g=o.state.selectValue,y=p&&o.isOptionSelected(c,g),b=o.isOptionDisabled(c,g);if(y){var v=o.getOptionValue(c);o.setValue(g.filter(function(x){return o.getOptionValue(x)!==v}),"deselect-option",c)}else if(!b)p?o.setValue([].concat(cS(g),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:m});return}f&&o.blurInput()},o.removeValue=function(c){var u=o.props.isMulti,f=o.state.selectValue,p=o.getOptionValue(c),m=f.filter(function(y){return o.getOptionValue(y)!==p}),g=ry(u,m,m[0]||null);o.onChange(g,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(ry(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,u=o.state.selectValue,f=u[u.length-1],p=u.slice(0,u.length-1),m=ry(c,p,p[0]||null);f&&o.onChange(m,{action:"pop-value",removedValue:f})},o.getFocusedOptionId=function(c){return bS(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return KI(oy(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,u=new Array(c),f=0;fg||m>g}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var u=o.props.inputValue,f=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(f,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var u=o.getFocusableOptions(),f=u.indexOf(c);o.setState({focusedOption:c,focusedOptionId:f>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return e$(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var u=o.props,f=u.isMulti,p=u.backspaceRemovesValue,m=u.escapeClearsValue,g=u.inputValue,y=u.isClearable,b=u.isDisabled,v=u.menuIsOpen,x=u.onKeyDown,E=u.tabSelectsValue,_=u.openMenuOnFocus,C=o.state,k=C.focusedOption,A=C.focusedValue,O=C.selectValue;if(!b&&!(typeof x=="function"&&(x(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!f||g)return;o.focusValue("previous");break;case"ArrowRight":if(!f||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(A)o.removeValue(A);else{if(!p)return;f?o.popValue():y&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!v||!E||!k||_&&o.isOptionSelected(k,O))return;o.selectOption(k);break;case"Enter":if(c.keyCode===229)break;if(v){if(!k||o.isComposing)return;o.selectOption(k);break}return;case"Escape":v?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):y&&m&&o.clearValue();break;case" ":if(g)return;if(!v){o.openMenu("first");break}if(!k)return;o.selectOption(k);break;case"ArrowUp":v?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":v?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!v)return;o.focusOption("pageup");break;case"PageDown":if(!v)return;o.focusOption("pagedown");break;case"Home":if(!v)return;o.focusOption("first");break;case"End":if(!v)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Yae),o.state.selectValue=yI(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=bS(i,a[s])}return o}return Toe(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xI(this.menuListRef,this.focusedOptionRef),Iae()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!a&&o.isDisabled||c&&s&&!o.menuIsOpen)&&this.focusInput(),c&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xI(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,c=a.isFocused,u=this.buildFocusableOptions(),f=o==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(s[0]);p>-1&&(f=p)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[f],focusedOptionId:this.getFocusedOptionId(u[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(s);s||(c=-1);var u=a.length-1,f=-1;if(a.length){switch(o){case"previous":c===0?f=0:c===-1?f=u:f=c-1;break;case"next":c>-1&&c0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,u=s.indexOf(a);a||(u=-1),o==="up"?c=u>0?u-1:s.length-1:o==="down"?c=(u+1)%s.length:o==="pageup"?(c=u-i,c<0&&(c=0)):o==="pagedown"?(c=u+i,c>s.length-1&&(c=s.length-1)):o==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(vS):Ye(Ye({},vS),this.props.theme):vS})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,c=this.getValue,u=this.selectOption,f=this.setValue,p=this.props,m=p.isMulti,g=p.isRtl,y=p.options,b=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:c,hasValue:b,isMulti:m,isRtl:g,options:y,selectOption:u,selectProps:p,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return ZI(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return QI(this.props,o,i)}},{key:"filterOption",value:function(o,i){return JI(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,c=o.inputValue,u=o.tabIndex,f=o.form,p=o.menuIsOpen,m=o.required,g=this.getComponents(),y=g.Input,b=this.state,v=b.inputIsHidden,x=b.ariaSelection,E=this.commonProps,_=s||this.getElementId("input"),C=Ye(Ye(Ye({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?x?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?T.createElement(y,Ke({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:f,type:"text",value:c},C)):T.createElement(wae,Ke({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qg,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:f,value:""},C))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,c=i.MultiValueLabel,u=i.MultiValueRemove,f=i.SingleValue,p=i.Placeholder,m=this.commonProps,g=this.props,y=g.controlShouldRenderValue,b=g.isDisabled,v=g.isMulti,x=g.inputValue,E=g.placeholder,_=this.state,C=_.selectValue,k=_.focusedValue,A=_.isFocused;if(!this.hasValue()||!y)return x?null:T.createElement(p,Ke({},m,{key:"placeholder",isDisabled:b,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),E);if(v)return C.map(function(P,I){var $=P===k,L="".concat(o.getOptionLabel(P),"-").concat(o.getOptionValue(P));return T.createElement(a,Ke({},m,{components:{Container:s,Label:c,Remove:u},isFocused:$,isDisabled:b,key:L,index:I,removeProps:{onClick:function(){return o.removeValue(P)},onTouchEnd:function(){return o.removeValue(P)},onMouseDown:function(U){U.preventDefault()}},data:P}),o.formatOptionLabel(P,"value"))});if(x)return null;var O=C[0];return T.createElement(f,Ke({},m,{data:O,isDisabled:b}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||c||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:p,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,f=this.state.isFocused;if(!i||!u)return null;var p={"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:p,isDisabled:c,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return T.createElement(a,Ke({},s,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,Ke({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,c=i.Menu,u=i.MenuList,f=i.MenuPortal,p=i.LoadingMessage,m=i.NoOptionsMessage,g=i.Option,y=this.commonProps,b=this.state.focusedOption,v=this.props,x=v.captureMenuScroll,E=v.inputValue,_=v.isLoading,C=v.loadingMessage,k=v.minMenuHeight,A=v.maxMenuHeight,O=v.menuIsOpen,P=v.menuPlacement,I=v.menuPosition,$=v.menuPortalTarget,L=v.menuShouldBlockScroll,N=v.menuShouldScrollIntoView,U=v.noOptionsMessage,j=v.onMenuScrollToTop,V=v.onMenuScrollToBottom;if(!O)return null;var F=function(z,H){var X=z.type,Q=z.data,ne=z.isDisabled,te=z.isSelected,se=z.label,ue=z.value,J=b===Q,ee=ne?void 0:function(){return o.onOptionHover(Q)},ie=ne?void 0:function(){return o.selectOption(Q)},le="".concat(o.getElementId("option"),"-").concat(H),ge={id:le,onClick:ie,onMouseMove:ee,onMouseOver:ee,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:te};return T.createElement(g,Ke({},y,{innerProps:ge,data:Q,isDisabled:ne,isSelected:te,key:le,label:se,type:X,value:ue,isFocused:J,innerRef:J?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(z.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var z=G.data,H=G.options,X=G.index,Q="".concat(o.getElementId("group"),"-").concat(X),ne="".concat(Q,"-heading");return T.createElement(a,Ke({},y,{key:Q,data:z,options:H,Heading:s,headingProps:{id:ne,data:G.data},label:o.formatGroupLabel(G.data)}),G.options.map(function(te){return F(te,"".concat(X,"-").concat(te.index))}))}else if(G.type==="option")return F(G,"".concat(G.index))});else if(_){var W=C({inputValue:E});if(W===null)return null;K=T.createElement(p,y,W)}else{var Y=U({inputValue:E});if(Y===null)return null;K=T.createElement(m,y,Y)}var B={minMenuHeight:k,maxMenuHeight:A,menuPlacement:P,menuPosition:I,menuShouldScrollIntoView:N},D=T.createElement(Joe,Ke({},y,B),function(G){var z=G.ref,H=G.placerProps,X=H.placement,Q=H.maxHeight;return T.createElement(c,Ke({},y,B,{innerRef:z,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:_,placement:X}),T.createElement(Tae,{captureEnabled:x,onTopArrive:j,onBottomArrive:V,lockEnabled:L},function(ne){return T.createElement(u,Ke({},y,{innerRef:function(se){o.getMenuListRef(se),ne(se)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:o.getElementId("listbox")},isLoading:_,maxHeight:Q,focusedOption:b}),K)}))});return $||I==="fixed"?T.createElement(f,Ke({},y,{appendTo:$,controlElement:this.controlRef,menuPlacement:P,menuPosition:I}),D):D}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,c=i.isMulti,u=i.name,f=i.required,p=this.state.selectValue;if(f&&!this.hasValue()&&!s)return T.createElement(Oae,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(c)if(a){var m=p.map(function(b){return o.getOptionValue(b)}).join(a);return T.createElement("input",{name:u,type:"hidden",value:m})}else{var g=p.length>0?p.map(function(b,v){return T.createElement("input",{key:"i-".concat(v),name:u,type:"hidden",value:o.getOptionValue(b)})}):T.createElement("input",{name:u,type:"hidden",value:""});return T.createElement("div",null,g)}else{var y=p[0]?this.getOptionValue(p[0]):"";return T.createElement("input",{name:u,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,c=i.focusedValue,u=i.isFocused,f=i.selectValue,p=this.getFocusableOptions();return T.createElement(mae,Ke({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:c,isFocused:u,selectValue:f,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,c=o.ValueContainer,u=this.props,f=u.className,p=u.id,m=u.isDisabled,g=u.menuIsOpen,y=this.state.isFocused,b=this.commonProps=this.getCommonProps();return T.createElement(s,Ke({},b,{className:f,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:y}),this.renderLiveRegion(),T.createElement(i,Ke({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:y,menuIsOpen:g}),T.createElement(c,Ke({},b,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(a,Ke({},b,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,c=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,f=i.isFocused,p=i.prevWasFocused,m=i.instancePrefix,g=o.options,y=o.value,b=o.menuIsOpen,v=o.inputValue,x=o.isMulti,E=yI(y),_={};if(a&&(y!==a.value||g!==a.options||b!==a.menuIsOpen||v!==a.inputValue)){var C=b?Wae(o,E):[],k=b?KI(oy(o,E),"".concat(m,"-option")):[],A=s?Gae(i,E):null,O=Kae(i,C),P=bS(k,O);_={selectValue:E,focusedOption:O,focusedOptionId:P,focusableOptionsWithIds:k,focusedValue:A,clearFocusValueOnUpdate:!1}}var I=c!=null&&o!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},$=u,L=f&&p;return f&&!L&&($={value:ry(x,E,E[0]||null),options:E,action:"initial-input-focus"},L=!p),u?.action==="initial-input-focus"&&($=null),Ye(Ye(Ye({},_),I),{},{prevProps:o,ariaSelection:$,prevWasFocused:L})}}]),n})(T.Component);t$.defaultProps=qae;var Xae=T.forwardRef(function(e,t){var n=Coe(e);return T.createElement(t$,Ke({ref:t},n))}),Zae=Xae;const Qae=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,a]=T.useState(""),[s,c]=T.useState(0),u=g=>{a(g.toLowerCase()),c(0)},f=e.filter(g=>g.label.toLowerCase().includes(i)||g.value.toLowerCase().includes(i));var p;t!==void 0?p=f.slice(s*t,(s+1)*t):p=f;const m={control:g=>({...g,minHeight:void 0})};return S.jsx(Zae,{options:p,onInputChange:u,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:m,classNamePrefix:"styled-select",defaultValue:r,value:r})},Jae=e=>typeof e=="boolean"||e instanceof Boolean,ese=e=>typeof e=="number"||e instanceof Number,tse=e=>typeof e=="bigint"||e instanceof BigInt,n$=e=>!!e&&e instanceof Date,nse=e=>typeof e=="string"||e instanceof String,rse=e=>Array.isArray(e),r$=e=>typeof e=="object"&&e!==null,o$=e=>!!e&&e instanceof Object&&typeof e=="function";function ay(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function ose(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function i$(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:a,level:s,style:c,shouldExpandNode:u,clickToExpandNode:f,outerRef:p,beforeExpandChange:m}=e;const g=T.useRef(!1),[y,b]=T.useState(()=>u(s,n,t)),v=T.useRef(null);T.useEffect(()=>{g.current?b(u(s,n,t)):g.current=!0},[u]);const x=T.useId();if(r.length===0)return ise({field:t,openBracket:i,closeBracket:a,lastElement:o,style:c});const E=y?c.collapseIcon:c.expandIcon,_=y?c.ariaLables.collapseJson:c.ariaLables.expandJson,C=s+1,k=r.length-1,A=I=>{y!==I&&(!m||m({level:s,value:n,field:t,newExpandValue:I}))&&b(I)},O=I=>{if(I.key==="ArrowRight"||I.key==="ArrowLeft")I.preventDefault(),A(I.key==="ArrowRight");else if(I.key==="ArrowUp"||I.key==="ArrowDown"){I.preventDefault();const $=I.key==="ArrowUp"?-1:1;if(!p.current)return;const L=p.current.querySelectorAll("[role=button]");let N=-1;for(let j=0;j{var I;A(!y);const $=v.current;if(!$)return;const L=(I=p.current)===null||I===void 0?void 0:I.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),$.tabIndex=0,$.focus()};return T.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":y,"aria-selected":void 0},T.createElement("span",{className:E,onClick:P,onKeyDown:O,role:"button","aria-label":_,"aria-expanded":y,"aria-controls":y?x:void 0,ref:v,tabIndex:s===0?0:-1}),(t||t==="")&&(f?T.createElement("span",{className:c.clickableLabel,onClick:P,onKeyDown:O},ay(t,c.quotesForFieldNames),":"):T.createElement("span",{className:c.label},ay(t,c.quotesForFieldNames),":")),T.createElement("span",{className:c.punctuation},i),y?T.createElement("ul",{id:x,role:"group",className:c.childFieldsContainer},r.map((I,$)=>T.createElement(xS,{key:I[0]||$,field:I[0],value:I[1],style:c,lastElement:$===k,level:C,shouldExpandNode:u,clickToExpandNode:f,beforeExpandChange:m,outerRef:p}))):T.createElement("span",{className:c.collapsedContent,onClick:P,onKeyDown:O}),T.createElement("span",{className:c.punctuation},a),!o&&T.createElement("span",{className:c.punctuation},","))}function ise(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return T.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:i.label},ay(t,i.quotesForFieldNames),":"),T.createElement("span",{className:i.punctuation},n),T.createElement("span",{className:i.punctuation},r),!o&&T.createElement("span",{className:i.punctuation},","))}function ase(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:c,beforeExpandChange:u}=e;return i$({field:t,value:n,lastElement:o||!1,level:s,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:a,data:Object.keys(n).map(f=>[f,n[f]]),outerRef:c,beforeExpandChange:u})}function sse(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:c,beforeExpandChange:u}=e;return i$({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:s,data:n.map(f=>[void 0,f]),outerRef:c,beforeExpandChange:u})}function lse(e){let{field:t,value:n,style:r,lastElement:o}=e,i,a=r.otherValue;return n===null?(i="null",a=r.nullValue):n===void 0?(i="undefined",a=r.undefinedValue):nse(n)?(i=ose(n,!r.noQuotesForStringValues,r.stringifyStringValues),a=r.stringValue):Jae(n)?(i=n?"true":"false",a=r.booleanValue):ese(n)?(i=n.toString(),a=r.numberValue):tse(n)?(i=`${n.toString()}n`,a=r.numberValue):n$(n)?i=n.toISOString():o$(n)?i="function() { }":i=n.toString(),T.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:r.label},ay(t,r.quotesForFieldNames),":"),T.createElement("span",{className:a},i),!o&&T.createElement("span",{className:r.punctuation},","))}function xS(e){const t=e.value;return rse(t)?T.createElement(sse,Object.assign({},e)):r$(t)&&!n$(t)&&!o$(t)?T.createElement(ase,Object.assign({},e)):T.createElement(lse,Object.assign({},e))}var qt={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const a$={collapseJson:"collapse JSON",expandJson:"expand JSON"},wS={container:qt["container-light"],basicChildStyle:qt["basic-element-style"],childFieldsContainer:qt["child-fields-container"],label:qt["label-light"],clickableLabel:qt["clickable-label-light"],nullValue:qt["value-null-light"],undefinedValue:qt["value-undefined-light"],stringValue:qt["value-string-light"],booleanValue:qt["value-boolean-light"],numberValue:qt["value-number-light"],otherValue:qt["value-other-light"],punctuation:qt["punctuation-light"],collapseIcon:qt["collapse-icon-light"],expandIcon:qt["expand-icon-light"],collapsedContent:qt["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:a$,stringifyStringValues:!1},cse={container:qt["container-dark"],basicChildStyle:qt["basic-element-style"],childFieldsContainer:qt["child-fields-container"],label:qt["label-dark"],clickableLabel:qt["clickable-label-dark"],nullValue:qt["value-null-dark"],undefinedValue:qt["value-undefined-dark"],stringValue:qt["value-string-dark"],booleanValue:qt["value-boolean-dark"],numberValue:qt["value-number-dark"],otherValue:qt["value-other-dark"],punctuation:qt["punctuation-dark"],collapseIcon:qt["collapse-icon-dark"],expandIcon:qt["expand-icon-dark"],collapsedContent:qt["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:a$,stringifyStringValues:!1},use=()=>!0,dse=e=>e<1,fse=e=>{let{data:t,style:n=wS,shouldExpandNode:r=use,clickToExpandNode:o=!1,beforeExpandChange:i,compactTopLevel:a,...s}=e;const c=T.useRef(null);return T.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:c,role:"tree"}),a&&r$(t)?Object.entries(t).map(u=>{let[f,p]=u;return T.createElement(xS,{key:f,field:f,value:p,style:{...wS,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:i,outerRef:c})}):T.createElement(xS,{value:t,style:{...wS,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:c,beforeExpandChange:i}))};function pse(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function hse(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:pse(e)}const mse=({data:e,className:t="json-display"})=>S.jsx("div",{className:t,children:S.jsx(fse,{data:hse(e)?"":e,style:cse,shouldExpandNode:dse})});function gse(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const a=e.getBoundingClientRect(),s=a.width,c=a.height;let u=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=u+"px";let f=t.getBoundingClientRect();for(;(f.width>s||f.height>c)&&u>o;)u*=i,t.style.fontSize=u+"px",f=t.getBoundingClientRect()}function yse(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n=0,unit_scale:r=!1,elapsed:o=0,unit:i="it",unit_divisor:a=1e3,prefix:s="",rate:c=void 0,postfix:u=null,initial:f=0}=e;t!==null&&n>=t+.5&&(t=null);let p=n,m=t,g=c;r&&r!==!0&&r!==1&&(t!==null&&(m=t*r),p=n*r,c!==void 0&&(g=c*r));const y=s$(o);g===void 0&&o>0&&(g=(p-f)/o);const b=g?1/g:void 0,[v,x]=g?sy(g,a):[void 0,""],[E,_]=b?sy(b,1e3):[void 0,""],C=(v||"?")+`${x}${i}/s`,k=E?`${E}${_}s/`+i:"?",A=b&&b>1?k:C,O=r?sy(p,a).join(""):p.toString(),P=r&&m!==null?sy(m,a).join(""):m?.toString()??"?",I=g&&m!==null?(m-p)/g:0,$=g?s$(I):"?",L=s?`${s}: `:"";if(t!==null){const N=p/t*100,U=` ${O}/${P} [${y} < ${$}, ${A}${u??""}]`;return`${L}${N.toFixed(0)}%${U}`}return`${L}${O}${i} [${y}, ${A}${u??""}]`}function s$(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function sy(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r{const r=T.useRef(null),o=T.useRef(null);T.useEffect(()=>{const a=()=>{!r.current||!o.current||gse(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[e]);const i=e.total?(e.n??0)/e.total*100:0;return S.jsx("div",{ref:r,className:t,...n,children:S.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[S.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:S.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),S.jsx("div",{className:t+"-text",ref:o,children:yse(e)})]})})};var ly={};var l$;function bse(){if(l$)return ly;l$=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;ly.format=a,ly.parse=s;function a(p){if(!p||typeof p!="object")throw new TypeError("argument obj is required");var m=p.parameters,g=p.type;if(!g||!i.test(g))throw new TypeError("invalid type");var y=g;if(m&&typeof m=="object")for(var b,v=Object.keys(m).sort(),x=0;x0&&!t.test(m))throw new TypeError("invalid parameter value");return'"'+m.replace(o,"\\$1")+'"'}function f(p){this.parameters=Object.create(null),this.type=p}return ly}var xse=bse(),wu=new Map,c$=function(t){return t.cloneNode(!0)},u$=function(){return window.location.protocol==="file:"},d$=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var a=xse.parse(i).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(u$()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||u$()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(s){if(o.abort(),s instanceof Error)r(s,o);else throw s}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},ws={},f$=function(t,n){ws[t]=ws[t]||[],ws[t].push(n)},wse=function(t){for(var n=function(a,s){setTimeout(function(){if(Array.isArray(ws[t])){var c=wu.get(t),u=ws[t][a];c instanceof SVGSVGElement&&u(null,c$(c)),c instanceof Error&&u(c),a===ws[t].length-1&&delete ws[t]}},0)},r=0,o=ws[t].length;r0&&(n==="always"||n==="once"&&!p$[c])){for(var V=0,F=$.length;V desc");P&&O.removeChild(P);var I=document.createElement("desc");I.innerHTML=a,O.prepend(I)}if(p){var $=O.querySelector(":scope > title");$&&O.removeChild($);var L=document.createElement("title");L.innerHTML=p,O.prepend(L)}try{y(O)}catch(N){_(N)}};Tse(E,{afterEach:C,beforeEach:k,cacheRequests:m,evalScripts:s,httpRequestWithCredentials:c,renumerateIRIElements:u})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var i=this;Rse(Ke({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var i=o.fallback;o.httpRequestWithCredentials;var a=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var s=o.wrapper,c=ag(o,Ose),u=s;return T.createElement(u,Ke({},c,{ref:this.refCallback},s==="svg"?{xmlns:cy,xmlnsXlink:m$}:{}),this.state.isLoading&&a&&T.createElement(a,null),this.state.hasError&&i&&T.createElement(i,null))},t})(T.Component);_S.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},_S.propTypes={afterInjection:Gn.func,beforeInjection:Gn.func,desc:Gn.string,evalScripts:Gn.oneOf(["always","once","never"]),fallback:Gn.oneOfType([Gn.func,Gn.object,Gn.string]),httpRequestWithCredentials:Gn.bool,loading:Gn.oneOfType([Gn.func,Gn.object,Gn.string]),onError:Gn.func,renumerateIRIElements:Gn.bool,src:Gn.string.isRequired,title:Gn.string,useRequestCache:Gn.bool,wrapper:Gn.oneOf(["div","span","svg"])};const ES=({text:e="No image data provided"})=>S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:e}),Mse=T.memo(({value:e,format:t="jpeg",alt:n="Base64 image",onError:r,onLoad:o,...i})=>{const[a,s]=T.useState(!1),[c,u]=T.useState(!0),f=T.useRef(null),p=T.useMemo(()=>{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"data"in e){const b=e.data;if(b instanceof ArrayBuffer){const v=new Uint8Array(b);let x="";for(let E=0;Ep?`data:image/${t};base64,${p}`:"",[p,t]),g=T.useCallback(b=>{s(!0),u(!1),r?.(b)},[r]),y=T.useCallback(()=>{u(!1),s(!1),o?.()},[o]);return T.useEffect(()=>{const b=f.current;if(b)return b.addEventListener("error",g),b.addEventListener("load",y),()=>{b.removeEventListener("error",g),b.removeEventListener("load",y)}},[g,y,e]),T.useEffect(()=>{s(!1),u(!0)},[e]),p?a?S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load base64 image"}):S.jsx("img",{ref:f,src:m,alt:n,className:`base64-image-renderer image-renderer ${i.className||""} ${c?" loading":""}`,...i}):S.jsx(ES,{})}),Nse=T.memo(({value:e,alt:t="SVG image",onError:n,onLoad:r,...o})=>{const[i,a]=T.useState(!1),s=T.useMemo(()=>{if(!e)return"";try{return`data:image/svg+xml;base64,${btoa(e)}`}catch(u){return console.error("Failed to encode SVG to base64:",u),""}},[e]);T.useEffect(()=>{a(!1)},[e]);const c=T.useCallback(u=>{a(!0),n?.(u)},[n]);return e?i||!s?S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load SVG"}):S.jsx(_S,{src:s,className:`svg-renderer ${o.className||""}`,style:{maxWidth:"100%",maxHeight:"100%",...o.style},beforeInjection:u=>{u.classList.add("svg-renderer"),u.setAttribute("style","max-width: 100%; max-height: 100%;"),u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("aria-label",t);const f=()=>{a(!1),r?.()},p=m=>{a(!0),n?.(m)};try{u.addEventListener("load",f),u.addEventListener("error",p)}catch{f()}},onError:c}):S.jsx(ES,{})}),Pse=T.memo(({src:e,alt:t="Streaming image",onError:n,onLoad:r,...o})=>{const i=T.useRef(null),[a,s]=T.useState(!1),[c,u]=T.useState(!0);T.useEffect(()=>{i.current&&e&&(u(!0),s(!1),i.current.src=e)},[e]);const f=T.useCallback(m=>{s(!0),u(!1),n?.(m)},[n]),p=T.useCallback(()=>{u(!1),s(!1),r?.()},[r]);return T.useEffect(()=>{const m=i.current;if(m)return m.addEventListener("error",f),m.addEventListener("load",p),()=>{m.removeEventListener("error",f),m.removeEventListener("load",p)}},[f,p]),a?S.jsx(ES,{text:"Failed to load image"}):S.jsx("img",{ref:i,className:`streaming-image image-renderer ${o.className||""} ${c?" loading":""}`,alt:t,...o})});function uy(e){const t=e+"CollectionProvider",[n,r]=vi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:v,children:x}=b,E=kn.useRef(null),_=kn.useRef(new Map).current;return S.jsx(o,{scope:v,itemMap:_,collectionRef:E,children:x})};a.displayName=t;const s=e+"CollectionSlot",c=tu(s),u=kn.forwardRef((b,v)=>{const{scope:x,children:E}=b,_=i(s,x),C=an(v,_.collectionRef);return S.jsx(c,{ref:C,children:E})});u.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=tu(f),g=kn.forwardRef((b,v)=>{const{scope:x,children:E,..._}=b,C=kn.useRef(null),k=an(v,C),A=i(f,x);return kn.useEffect(()=>(A.itemMap.set(C,{ref:C,..._}),()=>{A.itemMap.delete(C)})),S.jsx(m,{[p]:"",ref:k,children:E})});g.displayName=f;function y(b){const v=i(e+"CollectionConsumer",b);return kn.useCallback(()=>{const E=v.collectionRef.current;if(!E)return[];const _=Array.from(E.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,O)=>_.indexOf(A.ref.current)-_.indexOf(O.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},y,r]}var Ise=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$se="VisuallyHidden",CS=T.forwardRef((e,t)=>S.jsx(bt.span,{...e,ref:t,style:{...Ise,...e.style}}));CS.displayName=$se;var kS="ToastProvider",[TS,jse,Dse]=uy("Toast"),[g$]=vi("Toast",[Dse]),[Fse,dy]=g$(kS),y$=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=T.useState(null),[u,f]=T.useState(0),p=T.useRef(!1),m=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${kS}\`. Expected non-empty \`string\`.`),S.jsx(TS.Provider,{scope:t,children:S.jsx(Fse,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:c,onToastAdd:T.useCallback(()=>f(g=>g+1),[]),onToastRemove:T.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:a})})};y$.displayName=kS;var v$="ToastViewport",Lse=["F8"],AS="toast.viewportPause",RS="toast.viewportResume",b$=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Lse,label:o="Notifications ({hotkey})",...i}=e,a=dy(v$,n),s=jse(n),c=T.useRef(null),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),m=an(t,p,a.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=a.toastCount>0;T.useEffect(()=>{const v=x=>{r.length!==0&&r.every(_=>x[_]||x.code===_)&&p.current?.focus()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),T.useEffect(()=>{const v=c.current,x=p.current;if(y&&v&&x){const E=()=>{if(!a.isClosePausedRef.current){const A=new CustomEvent(AS);x.dispatchEvent(A),a.isClosePausedRef.current=!0}},_=()=>{if(a.isClosePausedRef.current){const A=new CustomEvent(RS);x.dispatchEvent(A),a.isClosePausedRef.current=!1}},C=A=>{!v.contains(A.relatedTarget)&&_()},k=()=>{v.contains(document.activeElement)||_()};return v.addEventListener("focusin",E),v.addEventListener("focusout",C),v.addEventListener("pointermove",E),v.addEventListener("pointerleave",k),window.addEventListener("blur",E),window.addEventListener("focus",_),()=>{v.removeEventListener("focusin",E),v.removeEventListener("focusout",C),v.removeEventListener("pointermove",E),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",E),window.removeEventListener("focus",_)}}},[y,a.isClosePausedRef]);const b=T.useCallback(({tabbingDirection:v})=>{const E=s().map(_=>{const C=_.ref.current,k=[C,...Qse(C)];return v==="forwards"?k:k.reverse()});return(v==="forwards"?E.reverse():E).flat()},[s]);return T.useEffect(()=>{const v=p.current;if(v){const x=E=>{const _=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!_){const k=document.activeElement,A=E.shiftKey;if(E.target===v&&A){u.current?.focus();return}const I=b({tabbingDirection:A?"backwards":"forwards"}),$=I.findIndex(L=>L===k);NS(I.slice($+1))?E.preventDefault():A?u.current?.focus():f.current?.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[s,b]),S.jsxs(mZ,{ref:c,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&S.jsx(OS,{ref:u,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});NS(v)}}),S.jsx(TS.Slot,{scope:n,children:S.jsx(bt.ol,{tabIndex:-1,...i,ref:m})}),y&&S.jsx(OS,{ref:f,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});NS(v)}})]})});b$.displayName=v$;var x$="ToastFocusProxy",OS=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=dy(x$,n);return S.jsx(CS,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&r()}})});OS.displayName=x$;var Bf="Toast",zse="toast.swipeStart",Bse="toast.swipeMove",Use="toast.swipeCancel",Vse="toast.swipeEnd",w$=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s,c]=ps({prop:r,defaultProp:o??!0,onChange:i,caller:Bf});return S.jsx(Lo,{present:n||s,children:S.jsx(Wse,{open:s,...a,ref:t,onClose:()=>c(!1),onPause:Pr(e.onPause),onResume:Pr(e.onResume),onSwipeStart:Le(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Le(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Le(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Le(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})});w$.displayName=Bf;var[Hse,qse]=g$(Bf,{onClose(){}}),Wse=T.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:g,...y}=e,b=dy(Bf,n),[v,x]=T.useState(null),E=an(t,j=>x(j)),_=T.useRef(null),C=T.useRef(null),k=o||b.duration,A=T.useRef(0),O=T.useRef(k),P=T.useRef(0),{onToastAdd:I,onToastRemove:$}=b,L=Pr(()=>{v?.contains(document.activeElement)&&b.viewport?.focus(),a()}),N=T.useCallback(j=>{!j||j===1/0||(window.clearTimeout(P.current),A.current=new Date().getTime(),P.current=window.setTimeout(L,j))},[L]);T.useEffect(()=>{const j=b.viewport;if(j){const V=()=>{N(O.current),u?.()},F=()=>{const K=new Date().getTime()-A.current;O.current=O.current-K,window.clearTimeout(P.current),c?.()};return j.addEventListener(AS,F),j.addEventListener(RS,V),()=>{j.removeEventListener(AS,F),j.removeEventListener(RS,V)}}},[b.viewport,k,c,u,N]),T.useEffect(()=>{i&&!b.isClosePausedRef.current&&N(k)},[i,k,b.isClosePausedRef,N]),T.useEffect(()=>(I(),()=>$()),[I,$]);const U=T.useMemo(()=>v?A$(v):null,[v]);return b.viewport?S.jsxs(S.Fragment,{children:[U&&S.jsx(Gse,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:U}),S.jsx(Hse,{scope:n,onClose:L,children:xl.createPortal(S.jsx(TS.ItemSlot,{scope:n,children:S.jsx(hZ,{asChild:!0,onEscapeKeyDown:Le(s,()=>{b.isFocusedToastEscapeKeyDownRef.current||L(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(bt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":b.swipeDirection,...y,ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Le(e.onKeyDown,j=>{j.key==="Escape"&&(s?.(j.nativeEvent),j.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Le(e.onPointerDown,j=>{j.button===0&&(_.current={x:j.clientX,y:j.clientY})}),onPointerMove:Le(e.onPointerMove,j=>{if(!_.current)return;const V=j.clientX-_.current.x,F=j.clientY-_.current.y,K=!!C.current,W=["left","right"].includes(b.swipeDirection),Y=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,B=W?Y(0,V):0,D=W?0:Y(0,F),G=j.pointerType==="touch"?10:2,z={x:B,y:D},H={originalEvent:j,delta:z};K?(C.current=z,fy(Bse,p,H,{discrete:!1})):R$(z,b.swipeDirection,G)?(C.current=z,fy(zse,f,H,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(V)>G||Math.abs(F)>G)&&(_.current=null)}),onPointerUp:Le(e.onPointerUp,j=>{const V=C.current,F=j.target;if(F.hasPointerCapture(j.pointerId)&&F.releasePointerCapture(j.pointerId),C.current=null,_.current=null,V){const K=j.currentTarget,W={originalEvent:j,delta:V};R$(V,b.swipeDirection,b.swipeThreshold)?fy(Vse,g,W,{discrete:!0}):fy(Use,m,W,{discrete:!0}),K.addEventListener("click",Y=>Y.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),Gse=e=>{const{__scopeToast:t,children:n,...r}=e,o=dy(Bf,t),[i,a]=T.useState(!1),[s,c]=T.useState(!1);return Xse(()=>a(!0)),T.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:S.jsx(dg,{asChild:!0,children:S.jsx(CS,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},Kse="ToastTitle",S$=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(bt.div,{...r,ref:t})});S$.displayName=Kse;var Yse="ToastDescription",_$=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(bt.div,{...r,ref:t})});_$.displayName=Yse;var E$="ToastAction",C$=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(T$,{altText:n,asChild:!0,children:S.jsx(MS,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${E$}\`. Expected non-empty \`string\`.`),null)});C$.displayName=E$;var k$="ToastClose",MS=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=qse(k$,n);return S.jsx(T$,{asChild:!0,children:S.jsx(bt.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,o.onClose)})})});MS.displayName=k$;var T$=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(bt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function A$(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Zse(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...A$(r))}}),t}function fy(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kx(o,i):o.dispatchEvent(i)}var R$=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Xse(e=()=>{}){const t=Pr(e);ca(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Zse(e){return e.nodeType===e.ELEMENT_NODE}function Qse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NS(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Jse=y$,ele=b$,tle=w$,nle=S$,rle=_$,ole=C$,ile=MS;const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function ale(e,t=0){return(or[e[t+0]]+or[e[t+1]]+or[e[t+2]]+or[e[t+3]]+"-"+or[e[t+4]]+or[e[t+5]]+"-"+or[e[t+6]]+or[e[t+7]]+"-"+or[e[t+8]]+or[e[t+9]]+"-"+or[e[t+10]]+or[e[t+11]]+or[e[t+12]]+or[e[t+13]]+or[e[t+14]]+or[e[t+15]]).toLowerCase()}let PS;const sle=new Uint8Array(16);function lle(){if(!PS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");PS=crypto.getRandomValues.bind(crypto)}return PS(sle)}const O$={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cle(e,t,n){e=e||{};const r=e.random??e.rng?.()??lle();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ale(r)}function IS(e,t,n){return O$.randomUUID&&!e?O$.randomUUID():cle(e)}const M$=T.createContext(void 0),N$=T.createContext(void 0),ule=350,dle=({children:e,fixedHeight:t,duration:n=5e3,maxVisible:r=3,...o})=>{const[i,a]=T.useState(new Map),s=T.useRef(new Map),c=T.useRef(null),u=T.useRef(!0),f=T.useCallback(()=>{const x=Array.from(s.current).reverse();if(t){const E=t;x.forEach(([,_],C)=>{if(!_)return;_.setAttribute("data-front",String(C===0)),_.setAttribute("data-hidden",String(C>=r)),_.style.setProperty("--index",String(C)),_.style.setProperty("--height",`${t}px`),_.style.setProperty("--front-height",`${E}px`);const k=t*C;_.style.setProperty("--hover-offset-y",`-${k}px`)})}else{const E=x.map(([,C])=>{if(!C)return 0;const k=C.querySelector(".ToastInner");if(!k)return C.clientHeight;const A=k.style.height;k.style.height="auto";const O=C.clientHeight;return k.style.height=A,O}),_=E[0]||0;x.forEach(([,C],k)=>{if(!C)return;const A=E[k];C.setAttribute("data-front",String(k===0)),C.setAttribute("data-hidden",String(k>=r)),C.style.setProperty("--index",String(k)),C.style.setProperty("--height",`${A}px`),C.style.setProperty("--front-height",`${_}px`);const O=E.slice(0,k).reduce((P,I)=>P+I,0);C.style.setProperty("--hover-offset-y",`-${O}px`)})}},[t,r]),p=T.useCallback(x=>{a(E=>{const _=new Map(E);return _.set(IS(),{...x,duration:x.duration||n,open:!0}),_})},[n]),m=T.useCallback(x=>{u.current&&a(E=>{const _=new Map(E);return _.delete(x),_})},[]),g=T.useCallback(x=>p({...x,status:x.status||"default"}),[p]),y=T.useCallback(x=>p({...x,status:"success"}),[p]),b=T.useCallback(x=>p({...x,status:"error"}),[p]);T.useEffect(()=>(u.current=!0,()=>{u.current=!1}),[]),T.useEffect(()=>{const x=c.current;if(x){const E=()=>{s.current.forEach(k=>{k.setAttribute("data-hovering","true")})},_=k=>{(!x.contains(k.target)||x===k.target)&&s.current.forEach(A=>{A.setAttribute("data-hovering","false")})},C=()=>{s.current.forEach(k=>{k.setAttribute("data-hovering","false")})};return x.addEventListener("pointermove",E),x.addEventListener("pointerleave",C),x.addEventListener("focusin",E),x.addEventListener("focusout",_),()=>{x.removeEventListener("pointermove",E),x.removeEventListener("pointerleave",C),x.removeEventListener("focusin",E),x.removeEventListener("focusout",_)}}},[]);const v=T.useMemo(()=>Object.assign(g,{success:y,error:b}),[g,y,b]);return S.jsx(M$.Provider,{value:v,children:S.jsx(N$.Provider,{value:T.useMemo(()=>({toastElementsMapRef:s,sortToasts:f}),[f]),children:S.jsxs(Jse,{...o,children:[e,Array.from(i).map(([x,E])=>S.jsx(hle,{id:x,toast:E,onOpenChange:_=>{_||(s.current.delete(x),f(),a(C=>{const k=new Map(C),A=k.get(x);return A&&k.set(x,{...A,open:!1}),k}),setTimeout(()=>{m(x)},ule))}},x)),S.jsx(ele,{ref:c,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},fle=()=>{const e=T.useContext(M$);if(e)return e;throw new Error("useToast must be used within Toasts")},ple=()=>{const e=T.useContext(N$);if(e)return e;throw new Error("useToastContext must be used within Toasts")},hle=({onOpenChange:e,toast:t,id:n,...r})=>{const o=T.useRef(null),i=ple(),{sortToasts:a,toastElementsMapRef:s}=i,c=s.current;return T.useLayoutEffect(()=>(o.current&&(c.set(n,o.current),a()),()=>{c.delete(n),a()}),[n,a,c]),S.jsx(tle,{...r,ref:o,type:t.type,duration:t.duration,className:"ToastRoot",onOpenChange:e,open:t.open,children:S.jsxs("div",{className:"ToastInner","data-status":t.status,children:[S.jsx(mle,{status:t.status}),t.title&&S.jsx(nle,{className:"ToastTitle",children:t.title}),S.jsx(rle,{className:"ToastDescription",children:t.description}),t.action&&S.jsx(ole,{className:"ToastAction Button small green",altText:t.action.altText,onClick:t.action.onClick,asChild:!0,children:S.jsx("button",{children:t.action.label})}),S.jsx(ile,{"aria-label":"Close",className:"ToastClose",children:S.jsx(Lg,{style:{fontSize:"12px"}})})]})})},mle=({status:e})=>e!=="default"&&e?S.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&S.jsx(Mne,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&S.jsx(Nne,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,gle={},P$=e=>{let t;const n=new Set,r=(f,p)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(gle?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},I$=e=>e?P$(e):P$;var $S={exports:{}},jS={},DS={exports:{}},FS={};var $$;function yle(){if($$)return FS;$$=1;var e=Zd();function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(p,m){var g=m(),y=r({inst:{value:g,getSnapshot:m}}),b=y[0].inst,v=y[1];return i(function(){b.value=g,b.getSnapshot=m,c(b)&&v({inst:b})},[p,g,m]),o(function(){return c(b)&&v({inst:b}),p(function(){c(b)&&v({inst:b})})},[p]),a(g),g}function c(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!n(p,g)}catch{return!0}}function u(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return FS.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,FS}var j$;function vle(){return j$||(j$=1,DS.exports=yle()),DS.exports}var D$;function ble(){if(D$)return jS;D$=1;var e=Zd(),t=vle();function n(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;return jS.useSyncExternalStoreWithSelector=function(u,f,p,m,g){var y=i(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=s(function(){function x(A){if(!E){if(E=!0,_=A,A=m(A),g!==void 0&&b.hasValue){var O=b.value;if(g(O,A))return C=O}return C=A}if(O=C,r(_,A))return O;var P=m(A);return g!==void 0&&g(O,P)?(_=A,O):(_=A,C=P)}var E=!1,_,C,k=p===void 0?null:p;return[function(){return x(f())},k===null?void 0:function(){return x(k())}]},[f,p,m,g]);var v=o(u,y[0],y[1]);return a(function(){b.hasValue=!0,b.value=v},[v]),c(v),v},jS}var F$;function xle(){return F$||(F$=1,$S.exports=ble()),$S.exports}var wle=xle();const L$=Er(wle),z$={},{useDebugValue:Sle}=kn,{useSyncExternalStoreWithSelector:_le}=L$;let B$=!1;const Ele=e=>e;function Cle(e,t=Ele,n){(z$?"production":void 0)!=="production"&&n&&!B$&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),B$=!0);const r=_le(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Sle(r),r}const U$=e=>{(z$?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?I$(e):e,n=(r,o)=>Cle(t,r,o);return Object.assign(n,t),n},xo=e=>e?U$(e):U$;class xa{constructor(t){this.context=t}get communicationManager(){return this.context.worker.getCommunicationManager()}get eventManager(){return this.context.worker.getEventManager()}get hookManager(){return this.context.worker.getHookManager()}get nodeManager(){return this.context.worker.getNodeManager()}get syncManager(){return this.context.worker.getSyncManager()}get connectionHealthManager(){return this.context.worker.getConnectionHealthManager()}get edgeManager(){return this.context.worker.getEdgeManager()}get groupManager(){return this.context.worker.getGroupManager()}get libraryManager(){return this.context.worker.getLibraryManager()}}const py=2e3;class kle extends xa{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-py*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},py),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=py*3},py*2)}stop(){this.pingInterval&&clearInterval(this.pingInterval),this.responsivenessCheckInterval&&clearInterval(this.responsivenessCheckInterval)}receivePong(){this._last_pong=Date.now(),this._responsive=!0}isResponsive(){return this._responsive}}const V$=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),t.collapsed!==void 0&&(e.properties["frontend:collapsed"]=!!t.collapsed)},H$=2e3,q$=2e3;class Tle extends xa{constructor(t){super(t),this._local_nodeupdates=new Map,this._local_groupupdates=new Map,this._after_next_sync=[],this.on_sync_complete=t.on_sync_complete||(async()=>{})}start(){this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},H$),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},q$)}stop(){this._nodeupdatetimer&&clearTimeout(this._nodeupdatetimer),this._groupupdatetimer&&clearTimeout(this._groupupdatetimer)}async stepwise_fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this.context.worker);const t=this._after_next_sync.splice(0);for(const n of t)await n(this.context.worker),this._after_next_sync.includes(n)&&this._after_next_sync.splice(this._after_next_sync.indexOf(n),1)}add_after_next_sync(t){this._after_next_sync.push(t)}remove_after_next_sync(t){this._after_next_sync=this._after_next_sync.filter(n=>n!==t)}async sync_lib(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});this.context.worker._zustand.add_packed_plugin(n,r)}}async sync_view_state(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this.context.worker._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};V$(o,n[r]),this.context.worker._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const o of t)this.eventManager._receive_node_added(o);const n=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const o of n)this.eventManager._receive_edge_added(...o);const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_groups",kwargs:{},wait_for_response:!0,unique:!0});this.eventManager._receive_groups(r)}async fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;let t;for(;;)try{t=await this.communicationManager._send_cmd({cmd:"full_state",unique:!0});break}catch(o){o instanceof Error?this.context.worker._zustand.logger.error("Error in fullsync",o):this.context.worker._zustand.logger.error("Error in fullsync",new Error(JSON.stringify(o)))}this.context.worker._zustand.logger.debug("Full state",t),this.context.worker._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this.context.worker._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const o of t.backend.nodes){const i=n[o.id];i!==void 0&&V$(o,i),this.eventManager._receive_node_added(o)}for(const o of t.backend.edges)this.eventManager._receive_edge_added(...o);const r=t.backend.groups;r&&this.eventManager._receive_groups(r)}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&Object.keys(r).length>0&&this.context.worker._zustand.on_node_action({type:"update",node:r,id:n,from_remote:!0})}),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},H$)}sync_local_group_updates(){clearTimeout(this._groupupdatetimer),this._local_groupupdates.forEach(async(t,n)=>{const r=await this.communicationManager._send_cmd({cmd:"update_group",kwargs:{gid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&this.context.worker._zustand.on_group_action({type:"update",group:r,id:n,from_remote:!0})}),this._local_groupupdates.clear(),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},q$)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=ls(n,t.node);o&&this._local_nodeupdates.set(t.id,r)}else this._local_nodeupdates.set(t.id,t.node);t.immediate&&this.sync_local_node_updates()}locally_update_group(t){const n=this._local_groupupdates.get(t.id);if(n){const{new_obj:r,change:o}=ls(n,t.group);o&&this._local_groupupdates.set(t.id,r)}else this._local_groupupdates.set(t.id,t.group);t.immediate&&this.sync_local_group_updates()}}class Ai{constructor({data:t,mime:n}){this._data=t,this._mime=n}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class W$ extends Ai{constructor({data:t,mime:n}){super({data:hy(t),mime:n})}get objectUrl(){if(this._objectUrl)return this._objectUrl;const t=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(t),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const hy=e=>{if(e instanceof ArrayBuffer)return e;const t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n},Ale={x:(e,t)=>null,c:(e,t)=>new DataView(e).getInt8(0),B:(e,t)=>new DataView(e).getUint8(0),"?":(e,t)=>new DataView(e).getInt8(0)===1,h:(e,t)=>new DataView(e).getInt16(0,t),H:(e,t)=>new DataView(e).getUint16(0,t),i:(e,t)=>new DataView(e).getInt32(0,t),I:(e,t)=>new DataView(e).getUint32(0,t),l:(e,t)=>new DataView(e).getInt32(0,t),L:(e,t)=>new DataView(e).getUint32(0,t),q:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),f:(e,t)=>new DataView(e).getFloat32(0,t),d:(e,t)=>new DataView(e).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(e),p:(e,t)=>new TextDecoder().decode(e),P:(e,t)=>Number(new DataView(e).getBigUint64(0,t))};class G$ extends Ai{constructor({data:t,mime:n}){super({data:hy(t),mime:n}),this._cType=n.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let t=!0,n=this._cType;return n.startsWith("<")&&(t=!0,n=n.slice(1)),n.startsWith(">")&&(t=!1,n=n.slice(1)),n.startsWith("!")&&(t=!1,n=n.slice(1)),n.startsWith("@")&&(t=!1,n=n.slice(1)),n.startsWith("=")&&(t=!1,n=n.slice(1)),this._value=Ale[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Ss extends Ai{constructor({data:t,mime:n}){const r=hy(t);super({data:r,mime:n}),r.byteLength===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(r)),this._json===""&&(this._json=void 0))}get value(){return this._json}static fromObject(t){const n=t===""?new Uint8Array(0):new TextEncoder().encode(JSON.stringify(t));return new Ss({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class K$ extends Ai{constructor({data:t,mime:n}){const r=hy(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const Y$=({data:e,mime:t})=>{const n=typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer;return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||n?t.startsWith("application/fn.struct.")?new G$({data:e,mime:t}):t.startsWith("application/json")?new Ss({data:e,mime:t}):t==="text"||t.startsWith("text/")?new K$({data:e,mime:t}):new W$({data:e,mime:t}):new Ai({data:e,mime:t})};class Rle extends xa{constructor(t){super(t),this.CHUNK_TIMEOUT=1e4,this._unique_cmd_outs={},this.blobChunks={},this.cleanupChunks=()=>{const n=Date.now();for(const r in this.blobChunks)n-this.blobChunks[r].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[r]},this.messagePromises=new Map}start(){this._chunk_cleanup_timer=setInterval(this.cleanupChunks.bind(this),this.CHUNK_TIMEOUT/2)}stop(){this._chunk_cleanup_timer&&clearInterval(this._chunk_cleanup_timer)}send(t){this.context.worker.send(t)}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:i=5e3,retries:a=2,unique:s=!1}){const c={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async u=>{if(this.context.worker.is_responsive)return u();const f=setInterval(()=>{this.context.worker.is_responsive&&(clearInterval(f),u())},100)}),o){if(s&&this._unique_cmd_outs[c.cmd]!==void 0)return this._unique_cmd_outs[c.cmd];a<0&&(a=0);const f=(async()=>{let p;for(;a>=0;){const m=c.id||IS();c.id=m;const g=new Promise((y,b)=>{const v=setTimeout(()=>{b("Timeout@wait_for_response for "+t)},i);this.messagePromises.set(m,{resolve:x=>{clearTimeout(v),y(x),this.messagePromises.delete(m)},reject:x=>{clearTimeout(v),b(x),this.messagePromises.delete(m)}})});await this.send(c);try{p=await g;break}catch(y){if(a===0)throw delete this._unique_cmd_outs[c.cmd],y;a-=1;continue}}return delete this._unique_cmd_outs[c.cmd],p})();return s&&(this._unique_cmd_outs[c.cmd]=f),f}return this.send(c)}async receive(t){let n;switch(this.connectionHealthManager.receivePong(),t.type){case"pong":return this.connectionHealthManager.receivePong();case"nsevent":return await this.context.worker.getEventManager().receive_nodespace_event(t);case"result":if(n=t.id&&this.messagePromises.get(t.id),n)return n.resolve(t.result);break;case"error":if(this.context.worker.on_error(t.tb+` `+t.error),n=t.id&&this.messagePromises.get(t.id),n)return n.reject(t.error);break;case"progress":if(!this.context.worker._zustand)return;this.context.worker._zustand.set_progress(t);break;case"workerevent":return await this.context.worker.getEventManager().receive_workerevent(t);case"large_message":return await this.context.worker.handle_large_message_hint(t);default:console.warn("Unhandled message",t);break}}async receive_bytes(t,n){const{type:r}=t;if(r==="io_value"){if(!this.context.worker._zustand)return;const{node:o,io:i,preview:a,mime:s}=t,c=a?"value":"fullvalue";(!o||!i)&&console.error("Invalid io_value message",t);const u=Y$({data:n,mime:s||"application/octet-stream"});this.context.worker._zustand.on_node_action({type:"update",node:{id:o,io:{[i]:{[c]:u}}},id:o,from_remote:!0})}else if(r=="result"){const o=t.id&&this.messagePromises.get(t.id);o&&o.resolve({bytes:n,header:t})}else console.warn("Unhandled bytes message",t)}async onbytes(t){try{const n=new TextDecoder("utf-8").decode(t),r=n.indexOf(`\r \r `);if(r===-1){console.error(`Header terminator not found for: @@ -831,4 +831,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${r} return FuncNodesPlugin; })(); - `)(bl,ra);this.add_plugin(t,i)}catch(o){o instanceof Error?this.context.rf.logger.error(`Error building plugin ${t}`,o):this.context.rf.logger.error(`Error building plugin ${t}`,new Error(String(o))),this.stateManager.toaster?.error({title:"Error",description:`Error building plugin ${t}: ${o}`,duration:5e3})}}}}class h4e extends fd{constructor(t){super(t),this.on_rf_node_change=n=>{const r=this.useReactFlowStore.getState();for(const o of n)switch(o.type){case"position":if(o.position){const i=r.getNode(o.id);if(i===void 0)continue;i.type==="group"?this.nodespaceManager.change_group_position(o):this.nodespaceManager.change_fn_node_position(o),i.data.groupID&&this.nodespaceManager.auto_resize_group(i.data.groupID)}break;case"dimensions":if(o.dimensions){const i=r.getNode(o.id);if(i===void 0)continue;i.type==="group"?this.nodespaceManager.change_group_dimensions(o):this.nodespaceManager.change_fn_node_dimensions(o),i.data.groupID&&this.nodespaceManager.auto_resize_group(i.data.groupID)}break}},this.on_rf_edge_change=n=>{},this.on_connect=n=>{n.source===null||n.target===null||n.sourceHandle===null||n.targetHandle===null||!this.workerManager.worker||this.workerManager.worker.api.edge.add_edge({src_nid:n.source,src_ioid:n.sourceHandle,trg_nid:n.target,trg_ioid:n.targetHandle,replace:!0})},this.useReactFlowStore=dPe({on_node_change:this.on_rf_node_change.bind(this),on_edge_change:this.on_rf_edge_change.bind(this),on_connect:this.on_connect.bind(this)})}}let m4e=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:fh()},this.options=t,this.logger=t.logger??new X1("fn",fh()?qR:WR);const n={rf:this};this._nodespaceManager=new a4e(n),this._libManager=new l4e(n),this._workerManager=new c4e(n),this._stateManager=new u4e(n),this._pluginManager=new p4e(n),this._reactFlowManager=new h4e(n)}getNodespaceManager(){return this._nodespaceManager}getLibManager(){return this._libManager}getWorkerManager(){return this._workerManager}getStateManager(){return this._stateManager}getPluginManager(){return this._pluginManager}getReactFlowManager(){return this._reactFlowManager}get nodespace(){return this._nodespaceManager.nodespace}get on_node_action(){return this._nodespaceManager.on_node_action.bind(this._nodespaceManager)}get on_edge_action(){return this._nodespaceManager.on_edge_action.bind(this._nodespaceManager)}get on_group_action(){return this._nodespaceManager.on_group_action.bind(this._nodespaceManager)}get clear_all(){return this._nodespaceManager.clear_all.bind(this._nodespaceManager)}get center_node(){return this._nodespaceManager.center_node.bind(this._nodespaceManager)}get center_all(){return this._nodespaceManager.center_all.bind(this._nodespaceManager)}get lib(){return this._libManager.lib}get set_worker(){return this._workerManager.set_worker.bind(this._workerManager)}get workermanager(){return this._workerManager.workermanager}set workermanager(t){this._workerManager.workermanager=t}get worker(){return this._workerManager.worker}get workers(){return this._workerManager.workers}get workerstate(){return this._workerManager.workerstate}get _unsubscribeFromWorker(){return this._workerManager._unsubscribeFromWorker?.bind(this._workerManager)}get set_progress(){return this._stateManager.set_progress.bind(this._stateManager)}get auto_progress(){return this._stateManager.auto_progress.bind(this._stateManager)}get progress_state(){return this._stateManager.progress_state}get local_settings(){return this._stateManager.local_settings}get local_state(){return this._stateManager.local_state}update_view_settings(t){this._stateManager.update_view_settings(t)}get plugins(){return this._pluginManager.plugins.bind(this._pluginManager)}get add_plugin(){return this._pluginManager.add_plugin.bind(this._pluginManager)}get add_packed_plugin(){return this._pluginManager.add_packed_plugin.bind(this._pluginManager)}get render_options(){return this._pluginManager.render_options.bind(this._pluginManager)}get update_render_options(){return this._pluginManager.update_render_options.bind(this._pluginManager)}get useReactFlowStore(){return this._reactFlowManager.useReactFlowStore.bind(this._reactFlowManager)}get rf_instance(){return this._reactFlowManager.rf_instance}set rf_instance(t){this._reactFlowManager.rf_instance=t}};const g4e=Em(aue,e=>(e.id=IS(),e)),y4e=e=>{if(!e.useWorkerManager&&e.worker===void 0)throw new Error("If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&e.workermanager_url===void 0)throw new Error("Error: If you use a worker manager, you must provide a worker managerurl.")},_T={};window.fnrf_zst===void 0&&(window.fnrf_zst=_T);const YU=e=>{const[t,n]=T.useState(void 0),[r,o]=T.useState(void 0),[i,a]=T.useState(!1);if(T.useEffect(()=>{const s=g4e(e);s.logger=s.logger||new X1("FuncNodes",s.debug?"debug":"info"),s.logger.debug("Initializing FuncNodes with props:",s),n(s),a(!1)},[e]),T.useEffect(()=>{if(!t)return;t.logger?.debug("Initializing/Getting Zustand store");const s=_T[t.id];if(s===void 0){const c=new m4e(t);_T[t.id]=c,o(c)}else o(s),s.options.debug=t.debug},[t?.id,t?.debug]),T.useEffect(()=>{if(!(!t||!r)&&!(t.useWorkerManager||!t.worker_url))if(t.logger?.debug("Worker effect running"),t.worker){t.worker.set_zustand(r);return}else{t.logger?.debug("Creating WebSocket worker");const s=new jj({url:t.worker_url,uuid:t.id,on_sync_complete:t.on_sync_complete});return s.set_zustand(r),n(c=>c&&{...c,worker:s,useWorkerManager:!1}),()=>{t.logger?.debug("Disconnecting worker"),s.disconnect(),n(c=>c&&{...c,worker:void 0})}}},[t?.worker_url,t?.id,t?.useWorkerManager,r,t?.on_sync_complete]),T.useEffect(()=>{if(!t?.fnw_url||!t.worker)return;t.logger?.debug("Loading fnw_url data");let s=!1;const c=t.worker.getSyncManager().on_sync_complete;return(async()=>{try{const f=await eW(t.fnw_url);!s&&t.worker&&(t.worker.getSyncManager().on_sync_complete=async p=>{await p.update_from_export(f),t.worker.getSyncManager().on_sync_complete=c,c&&c(p)})}catch(f){f instanceof Error?t.logger?.error("Failed to load fnw_url:",f):t.logger?.error("Failed to load fnw_url:",new Error(String(f)))}})(),()=>{s=!0,t.worker&&(t.worker.getSyncManager().on_sync_complete=c)}},[t?.fnw_url,t?.worker]),T.useEffect(()=>{if(!t||!r||!t.useWorkerManager)return;if(!t.workermanager_url)throw new Error("Error: If you use a worker manager, you must provide a worker manager url.");r.logger.info("Worker manager effect running");const s=!r.workermanager,c=r.workermanager&&r.workermanager.wsuri!==t.workermanager_url;if(s||c){r.workermanager&&(r.logger.info("Removing existing worker manager"),r.workermanager.remove(),r.workermanager=void 0),r.logger.info("Creating new worker manager");const u=new iue(t.workermanager_url,r);return r.workermanager=u,n(f=>f&&{...f,workermanager:u}),()=>{r.logger.info("Worker manager cleanup running"),r.workermanager===u?(r.logger.info("Removing worker manager instance"),u.remove(),r.workermanager=void 0):r.logger.info("Worker manager instance mismatch, skipping cleanup")}}else{r.logger.info("Worker manager already initialized with correct URL");return}},[t?.useWorkerManager,t?.workermanager_url,t?.id,r]),T.useEffect(()=>{if(!t||!r||i)return;(t.useWorkerManager?r.workermanager!==void 0:t.worker!==void 0)&&t.on_ready&&typeof t.on_ready=="function"&&(t.logger?.debug("Firing on_ready callback"),t.on_ready({fnrf_zst:r}),a(!0))},[t,r,i,t?.useWorkerManager,r?.workermanager,t?.worker]),t===void 0||r===void 0)return S.jsx("div",{children:"Loading..."});try{y4e(t)}catch(s){return S.jsx(tW,{error:s})}return S.jsx("div",{className:"FuncnodesApp",children:S.jsx(Ine,{available_themes:Dj,children:S.jsx(dle,{duration:5e3,children:S.jsx(o4e,{fnrf_zst:r,header:t.header,library:t.library,flow:t.flow})})})})},XU=(e,t)=>{t===void 0&&(t={});const{element:n,eleid:r}=typeof e=="string"?{element:document.getElementById(e),eleid:e}:{element:e,eleid:e.id};Uq.createRoot(n).render(S.jsx(T.StrictMode,{children:S.jsx(YU,{...t,id:t.id||r})}))};window.FuncNodes=XU,window.FuncNodes.version="2.2.0",window.FuncNodes.utils={logger:{ConsoleLogger:X1,DivLogger:Wq,BaseLogger:Y1,DEBUG:qR,INFO:WR,WARN:Vq,ERROR:Hq}}})(); + `)(bl,ra);this.add_plugin(t,i)}catch(o){o instanceof Error?this.context.rf.logger.error(`Error building plugin ${t}`,o):this.context.rf.logger.error(`Error building plugin ${t}`,new Error(String(o))),this.stateManager.toaster?.error({title:"Error",description:`Error building plugin ${t}: ${o}`,duration:5e3})}}}}class h4e extends fd{constructor(t){super(t),this.on_rf_node_change=n=>{const r=this.useReactFlowStore.getState();for(const o of n)switch(o.type){case"position":if(o.position){const i=r.getNode(o.id);if(i===void 0)continue;i.type==="group"?this.nodespaceManager.change_group_position(o):this.nodespaceManager.change_fn_node_position(o),i.data.groupID&&this.nodespaceManager.auto_resize_group(i.data.groupID)}break;case"dimensions":if(o.dimensions){const i=r.getNode(o.id);if(i===void 0)continue;i.type==="group"?this.nodespaceManager.change_group_dimensions(o):this.nodespaceManager.change_fn_node_dimensions(o),i.data.groupID&&this.nodespaceManager.auto_resize_group(i.data.groupID)}break}},this.on_rf_edge_change=n=>{},this.on_connect=n=>{n.source===null||n.target===null||n.sourceHandle===null||n.targetHandle===null||!this.workerManager.worker||this.workerManager.worker.api.edge.add_edge({src_nid:n.source,src_ioid:n.sourceHandle,trg_nid:n.target,trg_ioid:n.targetHandle,replace:!0})},this.useReactFlowStore=dPe({on_node_change:this.on_rf_node_change.bind(this),on_edge_change:this.on_rf_edge_change.bind(this),on_connect:this.on_connect.bind(this)})}}let m4e=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:fh()},this.options=t,this.logger=t.logger??new X1("fn",fh()?qR:WR);const n={rf:this};this._nodespaceManager=new a4e(n),this._libManager=new l4e(n),this._workerManager=new c4e(n),this._stateManager=new u4e(n),this._pluginManager=new p4e(n),this._reactFlowManager=new h4e(n)}getNodespaceManager(){return this._nodespaceManager}getLibManager(){return this._libManager}getWorkerManager(){return this._workerManager}getStateManager(){return this._stateManager}getPluginManager(){return this._pluginManager}getReactFlowManager(){return this._reactFlowManager}get nodespace(){return this._nodespaceManager.nodespace}get on_node_action(){return this._nodespaceManager.on_node_action.bind(this._nodespaceManager)}get on_edge_action(){return this._nodespaceManager.on_edge_action.bind(this._nodespaceManager)}get on_group_action(){return this._nodespaceManager.on_group_action.bind(this._nodespaceManager)}get clear_all(){return this._nodespaceManager.clear_all.bind(this._nodespaceManager)}get center_node(){return this._nodespaceManager.center_node.bind(this._nodespaceManager)}get center_all(){return this._nodespaceManager.center_all.bind(this._nodespaceManager)}get lib(){return this._libManager.lib}get set_worker(){return this._workerManager.set_worker.bind(this._workerManager)}get workermanager(){return this._workerManager.workermanager}set workermanager(t){this._workerManager.workermanager=t}get worker(){return this._workerManager.worker}get workers(){return this._workerManager.workers}get workerstate(){return this._workerManager.workerstate}get _unsubscribeFromWorker(){return this._workerManager._unsubscribeFromWorker?.bind(this._workerManager)}get set_progress(){return this._stateManager.set_progress.bind(this._stateManager)}get auto_progress(){return this._stateManager.auto_progress.bind(this._stateManager)}get progress_state(){return this._stateManager.progress_state}get local_settings(){return this._stateManager.local_settings}get local_state(){return this._stateManager.local_state}update_view_settings(t){this._stateManager.update_view_settings(t)}get plugins(){return this._pluginManager.plugins.bind(this._pluginManager)}get add_plugin(){return this._pluginManager.add_plugin.bind(this._pluginManager)}get add_packed_plugin(){return this._pluginManager.add_packed_plugin.bind(this._pluginManager)}get render_options(){return this._pluginManager.render_options.bind(this._pluginManager)}get update_render_options(){return this._pluginManager.update_render_options.bind(this._pluginManager)}get useReactFlowStore(){return this._reactFlowManager.useReactFlowStore.bind(this._reactFlowManager)}get rf_instance(){return this._reactFlowManager.rf_instance}set rf_instance(t){this._reactFlowManager.rf_instance=t}};const g4e=Em(aue,e=>(e.id=IS(),e)),y4e=e=>{if(!e.useWorkerManager&&e.worker===void 0)throw new Error("If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&e.workermanager_url===void 0)throw new Error("Error: If you use a worker manager, you must provide a worker managerurl.")},_T={};window.fnrf_zst===void 0&&(window.fnrf_zst=_T);const YU=e=>{const[t,n]=T.useState(void 0),[r,o]=T.useState(void 0),[i,a]=T.useState(!1);if(T.useEffect(()=>{const s=g4e(e);s.logger=s.logger||new X1("FuncNodes",s.debug?"debug":"info"),s.logger.debug("Initializing FuncNodes with props:",s),n(s),a(!1)},[e]),T.useEffect(()=>{if(!t)return;t.logger?.debug("Initializing/Getting Zustand store");const s=_T[t.id];if(s===void 0){const c=new m4e(t);_T[t.id]=c,o(c)}else o(s),s.options.debug=t.debug},[t?.id,t?.debug]),T.useEffect(()=>{if(!(!t||!r)&&!(t.useWorkerManager||!t.worker_url&&!t.worker))if(t.logger?.debug("Worker effect running"),!t.worker&&t.worker_url){t.logger?.debug("Creating WebSocket worker");const s=new jj({url:t.worker_url,uuid:t.id,on_sync_complete:t.on_sync_complete});return s.set_zustand(r),n(c=>c&&{...c,worker:s,useWorkerManager:!1}),()=>{t.logger?.debug("Disconnecting worker"),s.disconnect(),n(c=>c&&{...c,worker:void 0})}}else{t.worker?.set_zustand(r);return}},[t?.worker_url,t?.id,t?.useWorkerManager,r,t?.on_sync_complete]),T.useEffect(()=>{if(!t?.fnw_url||!t.worker)return;t.logger?.debug("Loading fnw_url data");let s=!1;const c=t.worker.getSyncManager();let u;return(async()=>{try{const p=await eW(t.fnw_url);if(s)return;u=async m=>{s||await m.update_from_export(p)},c.add_after_next_sync(u)}catch(p){p instanceof Error?t.logger?.error("Failed to load fnw_url:",p):t.logger?.error("Failed to load fnw_url:",new Error(String(p)))}})(),()=>{s=!0,u&&c.remove_after_next_sync(u)}},[t?.fnw_url,t?.worker]),T.useEffect(()=>{if(!t||!r||!t.useWorkerManager)return;if(!t.workermanager_url)throw new Error("Error: If you use a worker manager, you must provide a worker manager url.");r.logger.info("Worker manager effect running");const s=!r.workermanager,c=r.workermanager&&r.workermanager.wsuri!==t.workermanager_url;if(s||c){r.workermanager&&(r.logger.info("Removing existing worker manager"),r.workermanager.remove(),r.workermanager=void 0),r.logger.info("Creating new worker manager");const u=new iue(t.workermanager_url,r);return r.workermanager=u,n(f=>f&&{...f,workermanager:u}),()=>{r.logger.info("Worker manager cleanup running"),r.workermanager===u?(r.logger.info("Removing worker manager instance"),u.remove(),r.workermanager=void 0):r.logger.info("Worker manager instance mismatch, skipping cleanup")}}else{r.logger.info("Worker manager already initialized with correct URL");return}},[t?.useWorkerManager,t?.workermanager_url,t?.id,r]),T.useEffect(()=>{if(!t||!r||i)return;(t.useWorkerManager?r.workermanager!==void 0:t.worker!==void 0)&&t.on_ready&&typeof t.on_ready=="function"&&(t.logger?.debug("Firing on_ready callback"),t.on_ready({fnrf_zst:r}),a(!0))},[t,r,i,t?.useWorkerManager,r?.workermanager,t?.worker]),t===void 0||r===void 0)return S.jsx("div",{children:"Loading..."});try{y4e(t)}catch(s){return S.jsx(tW,{error:s})}return S.jsx("div",{className:"FuncnodesApp",children:S.jsx(Ine,{available_themes:Dj,children:S.jsx(dle,{duration:5e3,children:S.jsx(o4e,{fnrf_zst:r,header:t.header,library:t.library,flow:t.flow})})})})},XU=(e,t)=>{t===void 0&&(t={});const{element:n,eleid:r}=typeof e=="string"?{element:document.getElementById(e),eleid:e}:{element:e,eleid:e.id};Uq.createRoot(n).render(S.jsx(T.StrictMode,{children:S.jsx(YU,{...t,id:t.id||r})}))};window.FuncNodes=XU,window.FuncNodes.version="2.2.1a0",window.FuncNodes.utils={logger:{ConsoleLogger:X1,DivLogger:Wq,BaseLogger:Y1,DEBUG:qR,INFO:WR,WARN:Vq,ERROR:Hq}}})(); diff --git a/src/react/package.json b/src/react/package.json index 12989b5..10d1d8e 100755 --- a/src/react/package.json +++ b/src/react/package.json @@ -1,6 +1,6 @@ { "name": "funcnodes-react-flow-monorepo", - "version": "2.2.0", + "version": "2.2.1a0", "private": true, "packageManager": "yarn@4.9.2", "workspaces": [ diff --git a/src/react/packages/funcnodes-react-flow-plugin/package.json b/src/react/packages/funcnodes-react-flow-plugin/package.json index e817ed4..d63e17b 100644 --- a/src/react/packages/funcnodes-react-flow-plugin/package.json +++ b/src/react/packages/funcnodes-react-flow-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@linkdlab/funcnodes-react-flow-plugin", - "version": "2.2.0", + "version": "2.2.1a0", "type": "module", "description": "Type definitions for FuncNodes React Flow plugins", "repository": { diff --git a/src/react/packages/funcnodes-react-flow-plugin/src/rf_types.ts b/src/react/packages/funcnodes-react-flow-plugin/src/rf_types.ts index 0cb7c87..b1599af 100755 --- a/src/react/packages/funcnodes-react-flow-plugin/src/rf_types.ts +++ b/src/react/packages/funcnodes-react-flow-plugin/src/rf_types.ts @@ -2024,10 +2024,13 @@ declare class WorkerSyncManager extends AbstractWorkerHandler { _local_nodeupdates: Map; _local_groupupdates: Map>; _groupupdatetimer: ReturnType | undefined; + _after_next_sync: ((worker: FuncNodesWorker) => Promise)[]; constructor(context: WorkerSyncManagerContext); start(): void; stop(): void; stepwise_fullsync(): Promise; + add_after_next_sync(callback: (worker: FuncNodesWorker) => Promise): void; + remove_after_next_sync(callback: (worker: FuncNodesWorker) => Promise): void; sync_lib(): Promise; sync_external_worker(): Promise; sync_funcnodes_plugins(): Promise; diff --git a/src/react/packages/funcnodes-react-flow/package.json b/src/react/packages/funcnodes-react-flow/package.json index 2d0dc3e..9c5aa27 100644 --- a/src/react/packages/funcnodes-react-flow/package.json +++ b/src/react/packages/funcnodes-react-flow/package.json @@ -1,6 +1,6 @@ { "name": "@linkdlab/funcnodes_react_flow", - "version": "2.2.0", + "version": "2.2.1a0", "description": "Frontend with React Flow for FuncNodes", "repository": { "type": "git", diff --git a/src/react/packages/funcnodes-react-flow/src/app/app.fnw-url-cleanup.test.tsx b/src/react/packages/funcnodes-react-flow/src/app/app.fnw-url-cleanup.test.tsx new file mode 100644 index 0000000..d31c776 --- /dev/null +++ b/src/react/packages/funcnodes-react-flow/src/app/app.fnw-url-cleanup.test.tsx @@ -0,0 +1,58 @@ +import { describe, it, expect, vi } from "vitest"; +import * as React from "react"; +import { act, render, waitFor } from "@testing-library/react"; + +import { FuncNodes } from "@/app"; +import { FuncNodesWorker } from "@/workers"; + +vi.mock("@/data-helpers", () => ({ + remoteUrlToBase64: vi.fn(async () => "base64:dummy"), +})); + +import { remoteUrlToBase64 } from "@/data-helpers"; + +describe("FuncNodes (fnw_url cleanup)", () => { + it("removes the queued fnw_url import callback on unmount", async () => { + const worker = new FuncNodesWorker({ uuid: "worker-1" }); + + const { unmount } = render( +
+ +
+ ); + + const syncManager: any = worker.getSyncManager(); + + await waitFor(() => { + expect(remoteUrlToBase64).toHaveBeenCalledTimes(1); + }); + + await waitFor(() => { + expect(syncManager._after_next_sync?.length).toBe(1); + }); + + act(() => unmount()); + + expect(syncManager._after_next_sync?.length).toBe(0); + + worker.getSyncManager().stop(); + worker.getConnectionHealthManager().stop(); + worker.getCommunicationManager().stop(); + }); +}); diff --git a/src/react/packages/funcnodes-react-flow/src/app/app.tsx b/src/react/packages/funcnodes-react-flow/src/app/app.tsx index 0a7c450..910d006 100644 --- a/src/react/packages/funcnodes-react-flow/src/app/app.tsx +++ b/src/react/packages/funcnodes-react-flow/src/app/app.tsx @@ -99,13 +99,17 @@ export const FuncNodes = ( // Effect 3: Manage Worker lifecycle React.useEffect(() => { if (!fullProps || !fnrfzst) return; - // Skip if using worker manager or no worker URL provided - if (fullProps.useWorkerManager || !fullProps.worker_url) return; + // Skip if: a) a worker manager is used or b) no worker URL or worker is provided + if ( + fullProps.useWorkerManager || // a) a worker manager is used + (!fullProps.worker_url && !fullProps.worker) // b) no worker URL and no worker is provided + ) + return; fullProps.logger?.debug("Worker effect running"); // Check if we need to create a worker - if (!fullProps.worker) { + if (!fullProps.worker && fullProps.worker_url) { fullProps.logger?.debug("Creating WebSocket worker"); const worker = new WebSocketWorker({ @@ -129,7 +133,7 @@ export const FuncNodes = ( }; } else { // Worker already exists, just ensure zustand is set - fullProps.worker.set_zustand(fnrfzst); + fullProps.worker?.set_zustand(fnrfzst); return; // Explicit return for consistency } }, [ @@ -147,25 +151,20 @@ export const FuncNodes = ( fullProps.logger?.debug("Loading fnw_url data"); let cancelled = false; - const originalOnSyncComplete = - fullProps.worker.getSyncManager().on_sync_complete; + const syncManager = fullProps.worker.getSyncManager(); + let afterNextSyncCallback: + | ((worker: FuncNodesWorker) => Promise) + | undefined; const loadFnwData = async () => { try { const fnw_data = await remoteUrlToBase64(fullProps.fnw_url!); - - if (!cancelled && fullProps.worker) { - fullProps.worker.getSyncManager().on_sync_complete = async ( - worker: FuncNodesWorker - ) => { - await worker.update_from_export(fnw_data); - fullProps.worker!.getSyncManager().on_sync_complete = - originalOnSyncComplete; - if (originalOnSyncComplete) { - originalOnSyncComplete(worker); - } - }; - } + if (cancelled) return; + afterNextSyncCallback = async (worker: FuncNodesWorker) => { + if (cancelled) return; + await worker.update_from_export(fnw_data); + }; + syncManager.add_after_next_sync(afterNextSyncCallback); } catch (error) { if (error instanceof Error) { fullProps.logger?.error("Failed to load fnw_url:", error); @@ -182,9 +181,8 @@ export const FuncNodes = ( return () => { cancelled = true; - if (fullProps.worker) { - fullProps.worker.getSyncManager().on_sync_complete = - originalOnSyncComplete; + if (afterNextSyncCallback) { + syncManager.remove_after_next_sync(afterNextSyncCallback); } }; }, [fullProps?.fnw_url, fullProps?.worker]); diff --git a/src/react/packages/funcnodes-react-flow/src/core/workers/base/handlers/sync-manager.ts b/src/react/packages/funcnodes-react-flow/src/core/workers/base/handlers/sync-manager.ts index e22d493..0dee6af 100644 --- a/src/react/packages/funcnodes-react-flow/src/core/workers/base/handlers/sync-manager.ts +++ b/src/react/packages/funcnodes-react-flow/src/core/workers/base/handlers/sync-manager.ts @@ -40,6 +40,7 @@ export class WorkerSyncManager extends AbstractWorkerHandler { _local_nodeupdates: Map = new Map(); _local_groupupdates: Map> = new Map(); _groupupdatetimer: ReturnType | undefined; + _after_next_sync: ((worker: FuncNodesWorker) => Promise)[] = []; constructor(context: WorkerSyncManagerContext) { super(context); this.on_sync_complete = context.on_sync_complete || (async () => {}); @@ -69,6 +70,22 @@ export class WorkerSyncManager extends AbstractWorkerHandler { await this.sync_view_state(); await this.on_sync_complete(this.context.worker); + const callbacks = this._after_next_sync.splice(0); + for (const after_next_sync of callbacks) { + await after_next_sync(this.context.worker); + if (this._after_next_sync.includes(after_next_sync)) { + this._after_next_sync.splice(this._after_next_sync.indexOf(after_next_sync), 1); + } + } + } + + add_after_next_sync(callback: (worker: FuncNodesWorker) => Promise) { + this._after_next_sync.push(callback); + } + remove_after_next_sync(callback: (worker: FuncNodesWorker) => Promise) { + this._after_next_sync = this._after_next_sync.filter( + (c) => c !== callback + ); } async sync_lib() { diff --git a/uv.lock b/uv.lock index d9e26a5..d482892 100644 --- a/uv.lock +++ b/uv.lock @@ -423,7 +423,7 @@ wheels = [ [[package]] name = "funcnodes-react-flow" -version = "2.2.0" +version = "2.2.1a0" source = { editable = "." } dependencies = [ { name = "funcnodes" },