diff --git a/CLI/cmux_open.swift b/CLI/cmux_open.swift index c031aabcb8..29de2007ca 100644 --- a/CLI/cmux_open.swift +++ b/CLI/cmux_open.swift @@ -1324,17 +1324,23 @@ extension CMUXCLI { } let env = ProcessInfo.processInfo.environment let baselineStorePath = CMUXAgentTurnDiffBaselineFile.path(env: env) - let record = try latestAgentTurnDiffBaseline( + if let record = try latestAgentTurnDiffBaseline( repoRoot: repoRoot, workspaceId: workspaceId, surfaceId: surfaceId, env: env - ) - _ = try gitStdout(["cat-file", "-e", "\(record.baseCommit)^{tree}"], in: repoRoot) - patch = try joinedGitDiffPatches([ - gitStdout(gitDiffPatchArguments([record.baseCommit, "--"]), in: repoRoot), - gitUntrackedPatchSinceBaseline(record: record, in: repoRoot, storePath: baselineStorePath) - ]) + ) { + _ = try gitStdout(["cat-file", "-e", "\(record.baseCommit)^{tree}"], in: repoRoot) + patch = try joinedGitDiffPatches([ + gitStdout(gitDiffPatchArguments([record.baseCommit, "--"]), in: repoRoot), + gitUntrackedPatchSinceBaseline(record: record, in: repoRoot, storePath: baselineStorePath) + ]) + } else { + // No last-turn baseline recorded yet: emit an empty patch so the + // viewer renders the friendly empty diff state (with the source + // switcher) instead of throwing a developer-facing CLI error. + patch = "" + } sourceLabel = "git last-turn \(workspaceId) \(surfaceId)" } return DiffInput( @@ -2301,12 +2307,18 @@ extension CMUXCLI { "refs/cmux/last-turn/untracked/\(blob)" } + /// Returns the most recent last-turn diff baseline recorded for the given + /// workspace/surface, or `nil` when no baseline has been recorded yet. + /// + /// A missing baseline is not an error: it means there is simply nothing to + /// diff for the last turn, so callers render the friendly empty diff state + /// (with the source switcher) rather than surfacing a raw CLI error. private func latestAgentTurnDiffBaseline( repoRoot: String, workspaceId: String, surfaceId: String, env: [String: String] - ) throws -> CMUXAgentTurnDiffBaselineRecord { + ) throws -> CMUXAgentTurnDiffBaselineRecord? { let store = try readAgentTurnDiffBaselineStore(path: CMUXAgentTurnDiffBaselineFile.path(env: env)) let repoRoot = standardizedDiffSourcePath(repoRoot) let candidates = store.records.filter { record in @@ -2314,10 +2326,7 @@ extension CMUXCLI { && diffScopeIdentifierEquals(record.workspaceId, workspaceId) && diffScopeIdentifierEquals(record.surfaceId, surfaceId) } - guard let record = candidates.max(by: { $0.capturedAt < $1.capturedAt }) else { - throw CLIError(message: "No last-turn diff baseline recorded for this workspace and surface yet. Run another agent turn with cmux hooks active, or use --unstaged, --staged, or --branch.") - } - return record + return candidates.max(by: { $0.capturedAt < $1.capturedAt }) } private func readAgentTurnDiffBaselineStore(path: String) throws -> CMUXAgentTurnDiffBaselineStore { @@ -3189,26 +3198,39 @@ extension CMUXCLI { } var selectedContext = try sourceContext(for: selectedSource, repoRoot: repoRoot) var selectedInput: DiffInput? + // When non-nil, the selected source has no changes: render the friendly, + // non-error empty diff state (with the source switcher) instead of failing. + var selectedEmptyMessage: String? if !shouldDeferSelectedSource { do { selectedInput = try nonEmptyGitDiffInput(source: selectedSource, context: selectedContext) } catch let error as EmptyDiffSourceError { - guard selectedSource != .lastTurn else { - throw CLIError(message: error.message) - } - var fallback: (source: DiffSource, context: DiffSourceContext, input: DiffInput)? - for candidate in DiffSource.allCases where candidate != selectedSource { - guard let candidateContext = try? sourceContext(for: candidate, repoRoot: repoRoot), - let candidateInput = try? nonEmptyGitDiffInput(source: candidate, context: candidateContext) else { - continue + if selectedSource == .lastTurn { + // Last turn is the user's explicit intent, so never silently + // switch sources; show its empty state and keep the switcher. + selectedEmptyMessage = error.message + selectedInput = nil + } else { + var fallback: (source: DiffSource, context: DiffSourceContext, input: DiffInput)? + for candidate in DiffSource.allCases where candidate != selectedSource { + guard let candidateContext = try? sourceContext(for: candidate, repoRoot: repoRoot), + let candidateInput = try? nonEmptyGitDiffInput(source: candidate, context: candidateContext) else { + continue + } + fallback = (candidate, candidateContext, candidateInput) + break + } + if let fallback { + selectedSource = fallback.source + selectedContext = fallback.context + selectedInput = fallback.input + } else { + // Every source is empty: show the originally selected + // source's empty state rather than a raw error. + selectedEmptyMessage = error.message + selectedInput = nil } - fallback = (candidate, candidateContext, candidateInput) - break } - guard let fallback else { throw CLIError(message: error.message) } - selectedSource = fallback.source - selectedContext = fallback.context - selectedInput = fallback.input } } let fileURLs = Dictionary(uniqueKeysWithValues: DiffSource.allCases.map { source in @@ -3504,6 +3526,24 @@ extension CMUXCLI { repoRoot: repoRoot, branchBaseRef: selectedSource == .branch ? selectedContext.branchBaseRef : nil ) + } else if let selectedEmptyMessage { + // Friendly, non-error empty diff state: the panel shows plain-language + // text plus the source switcher so the user can pick another diff. + try writeDiffViewerStatusHTML( + to: selectedFileURL, + title: titleOverride ?? selectedSource.title, + sourceLabel: "git \(selectedSource.slug)", + message: selectedEmptyMessage, + isError: false, + pollForReplacement: false, + layout: layout, + appearance: appearance, + sourceOptions: sourceOptions, + repoOptions: selectedRepoOptions, + baseOptions: selectedSource == .branch ? baseOptions : [], + repoRoot: repoRoot, + branchBaseRef: selectedSource == .branch ? selectedContext.branchBaseRef : nil + ) } let assets = try ensureDiffViewerAssets(nextTo: selectedFileURL) let pageURLs = [selectedFileURL] + deferredPages.map(\.url) @@ -3674,21 +3714,11 @@ extension CMUXCLI { baseOptions: fallback.baseOptions, sourceSet: sourceSet ) - try? writeDiffViewerStatusHTML( - to: page.url, - title: page.titleOverride ?? page.source.title, - sourceLabel: "git \(page.source.slug)", - message: error.message, - isError: true, - pollForReplacement: false, - layout: sourceSet.layout, - appearance: sourceSet.appearance, - sourceOptions: page.sourceOptions, - repoOptions: page.repoOptions, - baseOptions: page.baseOptions, - repoRoot: page.context.repoRoot, - branchBaseRef: page.source == .branch ? page.context.branchBaseRef : nil - ) + // The originally selected source is empty; leave its own page as + // a friendly empty state so switching back to it never shows a + // raw error. This is a secondary page (the fallback page is the + // returned result), so a write failure here is best-effort. + try? writeDiffViewerEmptyStatePage(message: error.message, page: page, sourceSet: sourceSet) completion.completedPageURLs.insert(page.url) return completion } catch is EmptyDiffSourceError { @@ -3697,8 +3727,67 @@ extension CMUXCLI { throw fallbackError } } - throw error - } + // No source has changes: render the selected source's friendly empty + // state. A write failure must propagate so the deferred pipeline does + // not report success while a stale loading page remains. + try writeDiffViewerEmptyStatePage(message: error.message, page: page, sourceSet: sourceSet) + return deferredDiffViewerEmptyStateCompletion(message: error.message, page: page) + } catch let error as EmptyDiffSourceError { + // Sources that never fall back (last turn) still render their own + // friendly empty state rather than surfacing a developer-facing error. + try writeDiffViewerEmptyStatePage(message: error.message, page: page, sourceSet: sourceSet) + return deferredDiffViewerEmptyStateCompletion(message: error.message, page: page) + } + } + + /// Writes the friendly, non-error empty diff state for a deferred source page. + /// + /// Used when a source has no changes to show: the panel renders plain-language + /// text plus the source switcher instead of a raw error, and the CLI exits + /// successfully so the launcher never emits an error beep. Throws if the + /// replacement page cannot be written, so callers never report success while a + /// stale loading page remains. + private func writeDiffViewerEmptyStatePage( + message: String, + page: DiffViewerDeferredSourcePage, + sourceSet: DiffViewerDeferredSourceSet + ) throws { + try writeDiffViewerStatusHTML( + to: page.url, + title: page.titleOverride ?? page.source.title, + sourceLabel: "git \(page.source.slug)", + message: message, + isError: false, + pollForReplacement: false, + layout: sourceSet.layout, + appearance: sourceSet.appearance, + sourceOptions: page.sourceOptions, + repoOptions: page.repoOptions, + baseOptions: page.source == .branch ? page.baseOptions : [], + repoRoot: page.context.repoRoot, + branchBaseRef: page.source == .branch ? page.context.branchBaseRef : nil + ) + } + + /// Builds the completion describing a rendered empty diff state for a deferred + /// source page. Pure value construction; the page must already be written via + /// ``writeDiffViewerEmptyStatePage(message:page:sourceSet:)``. + private func deferredDiffViewerEmptyStateCompletion( + message: String, + page: DiffViewerDeferredSourcePage + ) -> DiffViewerDeferredCompletion { + DiffViewerDeferredCompletion( + input: DiffInput( + patch: "", + sourceLabel: "git \(page.source.slug)", + defaultTitle: page.titleOverride ?? page.source.title, + emptyMessage: message, + externalURL: nil + ), + fileURL: page.url, + viewerURL: page.viewerURL, + completedPageURLs: [page.url] + ) } private func writeDeferredDiffViewerSource( diff --git a/Resources/markdown-viewer/diff-viewer-app/main.mjs b/Resources/markdown-viewer/diff-viewer-app/main.mjs index 61c96b81f5..9ac69b6b9d 100644 --- a/Resources/markdown-viewer/diff-viewer-app/main.mjs +++ b/Resources/markdown-viewer/diff-viewer-app/main.mjs @@ -1,195 +1,195 @@ -var yo = { exports: {} }, Gi = {}; -var $d; +var vo = { exports: {} }, Yi = {}; +var Id; function ug() { - if ($d) return Gi; - $d = 1; + if (Id) return Yi; + Id = 1; var S = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.fragment"); - function D(s, G, k) { + function O(s, X, J) { var Q = null; - if (k !== void 0 && (Q = "" + k), G.key !== void 0 && (Q = "" + G.key), "key" in G) { - k = {}; - for (var lt in G) - lt !== "key" && (k[lt] = G[lt]); - } else k = G; - return G = k.ref, { + if (J !== void 0 && (Q = "" + J), X.key !== void 0 && (Q = "" + X.key), "key" in X) { + J = {}; + for (var et in X) + et !== "key" && (J[et] = X[et]); + } else J = X; + return X = J.ref, { $$typeof: S, type: s, key: Q, - ref: G !== void 0 ? G : null, - props: k + ref: X !== void 0 ? X : null, + props: J }; } - return Gi.Fragment = f, Gi.jsx = D, Gi.jsxs = D, Gi; + return Yi.Fragment = f, Yi.jsx = O, Yi.jsxs = O, Yi; } -var Id; +var Pd; function fg() { - return Id || (Id = 1, yo.exports = ug()), yo.exports; + return Pd || (Pd = 1, vo.exports = ug()), vo.exports; } -var K = fg(), vo = { exports: {} }, Yi = {}, bo = { exports: {} }, xo = {}; -var Pd; +var Z = fg(), bo = { exports: {} }, Li = {}, xo = { exports: {} }, So = {}; +var tm; function cg() { - return Pd || (Pd = 1, (function(S) { - function f(g, U) { - var Z = g.length; - g.push(U); - t: for (; 0 < Z; ) { - var W = Z - 1 >>> 1, et = g[W]; - if (0 < G(et, U)) - g[W] = U, g[Z] = et, Z = W; + return tm || (tm = 1, (function(S) { + function f(p, M) { + var j = p.length; + p.push(M); + t: for (; 0 < j; ) { + var ot = j - 1 >>> 1, W = p[ot]; + if (0 < X(W, M)) + p[ot] = M, p[j] = W, j = ot; else break t; } } - function D(g) { - return g.length === 0 ? null : g[0]; - } - function s(g) { - if (g.length === 0) return null; - var U = g[0], Z = g.pop(); - if (Z !== U) { - g[0] = Z; - t: for (var W = 0, et = g.length, m = et >>> 1; W < m; ) { - var A = 2 * (W + 1) - 1, N = g[A], q = A + 1, at = g[q]; - if (0 > G(N, Z)) - q < et && 0 > G(at, N) ? (g[W] = at, g[q] = Z, W = q) : (g[W] = N, g[A] = Z, W = A); - else if (q < et && 0 > G(at, Z)) - g[W] = at, g[q] = Z, W = q; + function O(p) { + return p.length === 0 ? null : p[0]; + } + function s(p) { + if (p.length === 0) return null; + var M = p[0], j = p.pop(); + if (j !== M) { + p[0] = j; + t: for (var ot = 0, W = p.length, m = W >>> 1; ot < m; ) { + var E = 2 * (ot + 1) - 1, B = p[E], q = E + 1, tt = p[q]; + if (0 > X(B, j)) + q < W && 0 > X(tt, B) ? (p[ot] = tt, p[q] = j, ot = q) : (p[ot] = B, p[E] = j, ot = E); + else if (q < W && 0 > X(tt, j)) + p[ot] = tt, p[q] = j, ot = q; else break t; } } - return U; + return M; } - function G(g, U) { - var Z = g.sortIndex - U.sortIndex; - return Z !== 0 ? Z : g.id - U.id; + function X(p, M) { + var j = p.sortIndex - M.sortIndex; + return j !== 0 ? j : p.id - M.id; } if (S.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") { - var k = performance; + var J = performance; S.unstable_now = function() { - return k.now(); + return J.now(); }; } else { - var Q = Date, lt = Q.now(); + var Q = Date, et = Q.now(); S.unstable_now = function() { - return Q.now() - lt; + return Q.now() - et; }; } - var C = [], z = [], L = 1, w = null, tt = 3, rt = !1, dt = !1, yt = !1, Gt = !1, ft = typeof setTimeout == "function" ? setTimeout : null, Yt = typeof clearTimeout == "function" ? clearTimeout : null, mt = typeof setImmediate < "u" ? setImmediate : null; - function Dt(g) { - for (var U = D(z); U !== null; ) { - if (U.callback === null) s(z); - else if (U.startTime <= g) - s(z), U.sortIndex = U.expirationTime, f(C, U); + var U = [], z = [], L = 1, H = null, P = 3, mt = !1, nt = !1, ht = !1, qt = !1, Ct = typeof setTimeout == "function" ? setTimeout : null, rt = typeof clearTimeout == "function" ? clearTimeout : null, xt = typeof setImmediate < "u" ? setImmediate : null; + function At(p) { + for (var M = O(z); M !== null; ) { + if (M.callback === null) s(z); + else if (M.startTime <= p) + s(z), M.sortIndex = M.expirationTime, f(U, M); else break; - U = D(z); + M = O(z); } } - function Ct(g) { - if (yt = !1, Dt(g), !dt) - if (D(C) !== null) - dt = !0, ht || (ht = !0, Zt()); + function _t(p) { + if (ht = !1, At(p), !nt) + if (O(U) !== null) + nt = !0, St || (St = !0, Yt()); else { - var U = D(z); - U !== null && X(Ct, U.startTime - g); + var M = O(z); + M !== null && ne(_t, M.startTime - p); } } - var ht = !1, $ = -1, Ut = 5, Pt = -1; - function Ft() { - return Gt ? !0 : !(S.unstable_now() - Pt < Ut); + var St = !1, k = -1, Zt = 5, Ht = -1; + function be() { + return qt ? !0 : !(S.unstable_now() - Ht < Zt); } - function Vt() { - if (Gt = !1, ht) { - var g = S.unstable_now(); - Pt = g; - var U = !0; + function Gt() { + if (qt = !1, St) { + var p = S.unstable_now(); + Ht = p; + var M = !0; try { t: { - dt = !1, yt && (yt = !1, Yt($), $ = -1), rt = !0; - var Z = tt; + nt = !1, ht && (ht = !1, rt(k), k = -1), mt = !0; + var j = P; try { e: { - for (Dt(g), w = D(C); w !== null && !(w.expirationTime > g && Ft()); ) { - var W = w.callback; - if (typeof W == "function") { - w.callback = null, tt = w.priorityLevel; - var et = W( - w.expirationTime <= g + for (At(p), H = O(U); H !== null && !(H.expirationTime > p && be()); ) { + var ot = H.callback; + if (typeof ot == "function") { + H.callback = null, P = H.priorityLevel; + var W = ot( + H.expirationTime <= p ); - if (g = S.unstable_now(), typeof et == "function") { - w.callback = et, Dt(g), U = !0; + if (p = S.unstable_now(), typeof W == "function") { + H.callback = W, At(p), M = !0; break e; } - w === D(C) && s(C), Dt(g); - } else s(C); - w = D(C); + H === O(U) && s(U), At(p); + } else s(U); + H = O(U); } - if (w !== null) U = !0; + if (H !== null) M = !0; else { - var m = D(z); - m !== null && X( - Ct, - m.startTime - g - ), U = !1; + var m = O(z); + m !== null && ne( + _t, + m.startTime - p + ), M = !1; } } break t; } finally { - w = null, tt = Z, rt = !1; + H = null, P = j, mt = !1; } - U = void 0; + M = void 0; } } finally { - U ? Zt() : ht = !1; + M ? Yt() : St = !1; } } } - var Zt; - if (typeof mt == "function") - Zt = function() { - mt(Vt); + var Yt; + if (typeof xt == "function") + Yt = function() { + xt(Gt); }; else if (typeof MessageChannel < "u") { - var oe = new MessageChannel(), ie = oe.port2; - oe.port1.onmessage = Vt, Zt = function() { - ie.postMessage(null); + var se = new MessageChannel(), ae = se.port2; + se.port1.onmessage = Gt, Yt = function() { + ae.postMessage(null); }; } else - Zt = function() { - ft(Vt, 0); + Yt = function() { + Ct(Gt, 0); }; - function X(g, U) { - $ = ft(function() { - g(S.unstable_now()); - }, U); - } - S.unstable_IdlePriority = 5, S.unstable_ImmediatePriority = 1, S.unstable_LowPriority = 4, S.unstable_NormalPriority = 3, S.unstable_Profiling = null, S.unstable_UserBlockingPriority = 2, S.unstable_cancelCallback = function(g) { - g.callback = null; - }, S.unstable_forceFrameRate = function(g) { - 0 > g || 125 < g ? console.error( + function ne(p, M) { + k = Ct(function() { + p(S.unstable_now()); + }, M); + } + S.unstable_IdlePriority = 5, S.unstable_ImmediatePriority = 1, S.unstable_LowPriority = 4, S.unstable_NormalPriority = 3, S.unstable_Profiling = null, S.unstable_UserBlockingPriority = 2, S.unstable_cancelCallback = function(p) { + p.callback = null; + }, S.unstable_forceFrameRate = function(p) { + 0 > p || 125 < p ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" - ) : Ut = 0 < g ? Math.floor(1e3 / g) : 5; + ) : Zt = 0 < p ? Math.floor(1e3 / p) : 5; }, S.unstable_getCurrentPriorityLevel = function() { - return tt; - }, S.unstable_next = function(g) { - switch (tt) { + return P; + }, S.unstable_next = function(p) { + switch (P) { case 1: case 2: case 3: - var U = 3; + var M = 3; break; default: - U = tt; + M = P; } - var Z = tt; - tt = U; + var j = P; + P = M; try { - return g(); + return p(); } finally { - tt = Z; + P = j; } }, S.unstable_requestPaint = function() { - Gt = !0; - }, S.unstable_runWithPriority = function(g, U) { - switch (g) { + qt = !0; + }, S.unstable_runWithPriority = function(p, M) { + switch (p) { case 1: case 2: case 3: @@ -197,69 +197,69 @@ function cg() { case 5: break; default: - g = 3; + p = 3; } - var Z = tt; - tt = g; + var j = P; + P = p; try { - return U(); + return M(); } finally { - tt = Z; + P = j; } - }, S.unstable_scheduleCallback = function(g, U, Z) { - var W = S.unstable_now(); - switch (typeof Z == "object" && Z !== null ? (Z = Z.delay, Z = typeof Z == "number" && 0 < Z ? W + Z : W) : Z = W, g) { + }, S.unstable_scheduleCallback = function(p, M, j) { + var ot = S.unstable_now(); + switch (typeof j == "object" && j !== null ? (j = j.delay, j = typeof j == "number" && 0 < j ? ot + j : ot) : j = ot, p) { case 1: - var et = -1; + var W = -1; break; case 2: - et = 250; + W = 250; break; case 5: - et = 1073741823; + W = 1073741823; break; case 4: - et = 1e4; + W = 1e4; break; default: - et = 5e3; + W = 5e3; } - return et = Z + et, g = { + return W = j + W, p = { id: L++, - callback: U, - priorityLevel: g, - startTime: Z, - expirationTime: et, + callback: M, + priorityLevel: p, + startTime: j, + expirationTime: W, sortIndex: -1 - }, Z > W ? (g.sortIndex = Z, f(z, g), D(C) === null && g === D(z) && (yt ? (Yt($), $ = -1) : yt = !0, X(Ct, Z - W))) : (g.sortIndex = et, f(C, g), dt || rt || (dt = !0, ht || (ht = !0, Zt()))), g; - }, S.unstable_shouldYield = Ft, S.unstable_wrapCallback = function(g) { - var U = tt; + }, j > ot ? (p.sortIndex = j, f(z, p), O(U) === null && p === O(z) && (ht ? (rt(k), k = -1) : ht = !0, ne(_t, j - ot))) : (p.sortIndex = W, f(U, p), nt || mt || (nt = !0, St || (St = !0, Yt()))), p; + }, S.unstable_shouldYield = be, S.unstable_wrapCallback = function(p) { + var M = P; return function() { - var Z = tt; - tt = U; + var j = P; + P = M; try { - return g.apply(this, arguments); + return p.apply(this, arguments); } finally { - tt = Z; + P = j; } }; }; - })(xo)), xo; + })(So)), So; } -var tm; +var em; function og() { - return tm || (tm = 1, bo.exports = cg()), bo.exports; + return em || (em = 1, xo.exports = cg()), xo.exports; } -var So = { exports: {} }, ut = {}; -var em; +var To = { exports: {} }, at = {}; +var lm; function rg() { - if (em) return ut; - em = 1; - var S = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.portal"), D = /* @__PURE__ */ Symbol.for("react.fragment"), s = /* @__PURE__ */ Symbol.for("react.strict_mode"), G = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), Q = /* @__PURE__ */ Symbol.for("react.context"), lt = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), w = /* @__PURE__ */ Symbol.for("react.activity"), tt = Symbol.iterator; - function rt(m) { - return m === null || typeof m != "object" ? null : (m = tt && m[tt] || m["@@iterator"], typeof m == "function" ? m : null); + if (lm) return at; + lm = 1; + var S = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.portal"), O = /* @__PURE__ */ Symbol.for("react.fragment"), s = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), J = /* @__PURE__ */ Symbol.for("react.consumer"), Q = /* @__PURE__ */ Symbol.for("react.context"), et = /* @__PURE__ */ Symbol.for("react.forward_ref"), U = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), P = Symbol.iterator; + function mt(m) { + return m === null || typeof m != "object" ? null : (m = P && m[P] || m["@@iterator"], typeof m == "function" ? m : null); } - var dt = { + var nt = { isMounted: function() { return !1; }, @@ -269,70 +269,70 @@ function rg() { }, enqueueSetState: function() { } - }, yt = Object.assign, Gt = {}; - function ft(m, A, N) { - this.props = m, this.context = A, this.refs = Gt, this.updater = N || dt; + }, ht = Object.assign, qt = {}; + function Ct(m, E, B) { + this.props = m, this.context = E, this.refs = qt, this.updater = B || nt; } - ft.prototype.isReactComponent = {}, ft.prototype.setState = function(m, A) { + Ct.prototype.isReactComponent = {}, Ct.prototype.setState = function(m, E) { if (typeof m != "object" && typeof m != "function" && m != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); - this.updater.enqueueSetState(this, m, A, "setState"); - }, ft.prototype.forceUpdate = function(m) { + this.updater.enqueueSetState(this, m, E, "setState"); + }, Ct.prototype.forceUpdate = function(m) { this.updater.enqueueForceUpdate(this, m, "forceUpdate"); }; - function Yt() { + function rt() { } - Yt.prototype = ft.prototype; - function mt(m, A, N) { - this.props = m, this.context = A, this.refs = Gt, this.updater = N || dt; + rt.prototype = Ct.prototype; + function xt(m, E, B) { + this.props = m, this.context = E, this.refs = qt, this.updater = B || nt; } - var Dt = mt.prototype = new Yt(); - Dt.constructor = mt, yt(Dt, ft.prototype), Dt.isPureReactComponent = !0; - var Ct = Array.isArray; - function ht() { + var At = xt.prototype = new rt(); + At.constructor = xt, ht(At, Ct.prototype), At.isPureReactComponent = !0; + var _t = Array.isArray; + function St() { } - var $ = { H: null, A: null, T: null, S: null }, Ut = Object.prototype.hasOwnProperty; - function Pt(m, A, N) { - var q = N.ref; + var k = { H: null, A: null, T: null, S: null }, Zt = Object.prototype.hasOwnProperty; + function Ht(m, E, B) { + var q = B.ref; return { $$typeof: S, type: m, - key: A, + key: E, ref: q !== void 0 ? q : null, - props: N + props: B }; } - function Ft(m, A) { - return Pt(m.type, A, m.props); + function be(m, E) { + return Ht(m.type, E, m.props); } - function Vt(m) { + function Gt(m) { return typeof m == "object" && m !== null && m.$$typeof === S; } - function Zt(m) { - var A = { "=": "=0", ":": "=2" }; - return "$" + m.replace(/[=:]/g, function(N) { - return A[N]; + function Yt(m) { + var E = { "=": "=0", ":": "=2" }; + return "$" + m.replace(/[=:]/g, function(B) { + return E[B]; }); } - var oe = /\/+/g; - function ie(m, A) { - return typeof m == "object" && m !== null && m.key != null ? Zt("" + m.key) : A.toString(36); + var se = /\/+/g; + function ae(m, E) { + return typeof m == "object" && m !== null && m.key != null ? Yt("" + m.key) : E.toString(36); } - function X(m) { + function ne(m) { switch (m.status) { case "fulfilled": return m.value; case "rejected": throw m.reason; default: - switch (typeof m.status == "string" ? m.then(ht, ht) : (m.status = "pending", m.then( - function(A) { - m.status === "pending" && (m.status = "fulfilled", m.value = A); + switch (typeof m.status == "string" ? m.then(St, St) : (m.status = "pending", m.then( + function(E) { + m.status === "pending" && (m.status = "fulfilled", m.value = E); }, - function(A) { - m.status === "pending" && (m.status = "rejected", m.reason = A); + function(E) { + m.status === "pending" && (m.status = "rejected", m.reason = E); } )), m.status) { case "fulfilled": @@ -343,174 +343,174 @@ function rg() { } throw m; } - function g(m, A, N, q, at) { + function p(m, E, B, q, tt) { var ct = typeof m; (ct === "undefined" || ct === "boolean") && (m = null); - var Tt = !1; - if (m === null) Tt = !0; + var vt = !1; + if (m === null) vt = !0; else switch (ct) { case "bigint": case "string": case "number": - Tt = !0; + vt = !0; break; case "object": switch (m.$$typeof) { case S: case f: - Tt = !0; + vt = !0; break; case L: - return Tt = m._init, g( - Tt(m._payload), - A, - N, + return vt = m._init, p( + vt(m._payload), + E, + B, q, - at + tt ); } } - if (Tt) - return at = at(m), Tt = q === "" ? "." + ie(m, 0) : q, Ct(at) ? (N = "", Tt != null && (N = Tt.replace(oe, "$&/") + "/"), g(at, A, N, "", function(gl) { - return gl; - })) : at != null && (Vt(at) && (at = Ft( - at, - N + (at.key == null || m && m.key === at.key ? "" : ("" + at.key).replace( - oe, + if (vt) + return tt = tt(m), vt = q === "" ? "." + ae(m, 0) : q, _t(tt) ? (B = "", vt != null && (B = vt.replace(se, "$&/") + "/"), p(tt, E, B, "", function(Ue) { + return Ue; + })) : tt != null && (Gt(tt) && (tt = be( + tt, + B + (tt.key == null || m && m.key === tt.key ? "" : ("" + tt.key).replace( + se, "$&/" - ) + "/") + Tt - )), A.push(at)), 1; - Tt = 0; - var fe = q === "" ? "." : q + ":"; - if (Ct(m)) - for (var Rt = 0; Rt < m.length; Rt++) - q = m[Rt], ct = fe + ie(q, Rt), Tt += g( + ) + "/") + vt + )), E.push(tt)), 1; + vt = 0; + var ie = q === "" ? "." : q + ":"; + if (_t(m)) + for (var Qt = 0; Qt < m.length; Qt++) + q = m[Qt], ct = ie + ae(q, Qt), vt += p( q, - A, - N, + E, + B, ct, - at + tt ); - else if (Rt = rt(m), typeof Rt == "function") - for (m = Rt.call(m), Rt = 0; !(q = m.next()).done; ) - q = q.value, ct = fe + ie(q, Rt++), Tt += g( + else if (Qt = mt(m), typeof Qt == "function") + for (m = Qt.call(m), Qt = 0; !(q = m.next()).done; ) + q = q.value, ct = ie + ae(q, Qt++), vt += p( q, - A, - N, + E, + B, ct, - at + tt ); else if (ct === "object") { if (typeof m.then == "function") - return g( - X(m), - A, - N, + return p( + ne(m), + E, + B, q, - at + tt ); - throw A = String(m), Error( - "Objects are not valid as a React child (found: " + (A === "[object Object]" ? "object with keys {" + Object.keys(m).join(", ") + "}" : A) + "). If you meant to render a collection of children, use an array instead." + throw E = String(m), Error( + "Objects are not valid as a React child (found: " + (E === "[object Object]" ? "object with keys {" + Object.keys(m).join(", ") + "}" : E) + "). If you meant to render a collection of children, use an array instead." ); } - return Tt; + return vt; } - function U(m, A, N) { + function M(m, E, B) { if (m == null) return m; - var q = [], at = 0; - return g(m, q, "", "", function(ct) { - return A.call(N, ct, at++); + var q = [], tt = 0; + return p(m, q, "", "", function(ct) { + return E.call(B, ct, tt++); }), q; } - function Z(m) { + function j(m) { if (m._status === -1) { - var A = m._result; - A = A(), A.then( - function(N) { - (m._status === 0 || m._status === -1) && (m._status = 1, m._result = N); + var E = m._result; + E = E(), E.then( + function(B) { + (m._status === 0 || m._status === -1) && (m._status = 1, m._result = B); }, - function(N) { - (m._status === 0 || m._status === -1) && (m._status = 2, m._result = N); + function(B) { + (m._status === 0 || m._status === -1) && (m._status = 2, m._result = B); } - ), m._status === -1 && (m._status = 0, m._result = A); + ), m._status === -1 && (m._status = 0, m._result = E); } if (m._status === 1) return m._result.default; throw m._result; } - var W = typeof reportError == "function" ? reportError : function(m) { + var ot = typeof reportError == "function" ? reportError : function(m) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { - var A = new window.ErrorEvent("error", { + var E = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof m == "object" && m !== null && typeof m.message == "string" ? String(m.message) : String(m), error: m }); - if (!window.dispatchEvent(A)) return; + if (!window.dispatchEvent(E)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", m); return; } console.error(m); - }, et = { - map: U, - forEach: function(m, A, N) { - U( + }, W = { + map: M, + forEach: function(m, E, B) { + M( m, function() { - A.apply(this, arguments); + E.apply(this, arguments); }, - N + B ); }, count: function(m) { - var A = 0; - return U(m, function() { - A++; - }), A; + var E = 0; + return M(m, function() { + E++; + }), E; }, toArray: function(m) { - return U(m, function(A) { - return A; + return M(m, function(E) { + return E; }) || []; }, only: function(m) { - if (!Vt(m)) + if (!Gt(m)) throw Error( "React.Children.only expected to receive a single React element child." ); return m; } }; - return ut.Activity = w, ut.Children = et, ut.Component = ft, ut.Fragment = D, ut.Profiler = G, ut.PureComponent = mt, ut.StrictMode = s, ut.Suspense = C, ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = $, ut.__COMPILER_RUNTIME = { + return at.Activity = H, at.Children = W, at.Component = Ct, at.Fragment = O, at.Profiler = X, at.PureComponent = xt, at.StrictMode = s, at.Suspense = U, at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = k, at.__COMPILER_RUNTIME = { __proto__: null, c: function(m) { - return $.H.useMemoCache(m); + return k.H.useMemoCache(m); } - }, ut.cache = function(m) { + }, at.cache = function(m) { return function() { return m.apply(null, arguments); }; - }, ut.cacheSignal = function() { + }, at.cacheSignal = function() { return null; - }, ut.cloneElement = function(m, A, N) { + }, at.cloneElement = function(m, E, B) { if (m == null) throw Error( "The argument must be a React element, but you passed " + m + "." ); - var q = yt({}, m.props), at = m.key; - if (A != null) - for (ct in A.key !== void 0 && (at = "" + A.key), A) - !Ut.call(A, ct) || ct === "key" || ct === "__self" || ct === "__source" || ct === "ref" && A.ref === void 0 || (q[ct] = A[ct]); + var q = ht({}, m.props), tt = m.key; + if (E != null) + for (ct in E.key !== void 0 && (tt = "" + E.key), E) + !Zt.call(E, ct) || ct === "key" || ct === "__self" || ct === "__source" || ct === "ref" && E.ref === void 0 || (q[ct] = E[ct]); var ct = arguments.length - 2; - if (ct === 1) q.children = N; + if (ct === 1) q.children = B; else if (1 < ct) { - for (var Tt = Array(ct), fe = 0; fe < ct; fe++) - Tt[fe] = arguments[fe + 2]; - q.children = Tt; + for (var vt = Array(ct), ie = 0; ie < ct; ie++) + vt[ie] = arguments[ie + 2]; + q.children = vt; } - return Pt(m.type, at, q); - }, ut.createContext = function(m) { + return Ht(m.type, tt, q); + }, at.createContext = function(m) { return m = { $$typeof: Q, _currentValue: m, @@ -519,205 +519,205 @@ function rg() { Provider: null, Consumer: null }, m.Provider = m, m.Consumer = { - $$typeof: k, + $$typeof: J, _context: m }, m; - }, ut.createElement = function(m, A, N) { - var q, at = {}, ct = null; - if (A != null) - for (q in A.key !== void 0 && (ct = "" + A.key), A) - Ut.call(A, q) && q !== "key" && q !== "__self" && q !== "__source" && (at[q] = A[q]); - var Tt = arguments.length - 2; - if (Tt === 1) at.children = N; - else if (1 < Tt) { - for (var fe = Array(Tt), Rt = 0; Rt < Tt; Rt++) - fe[Rt] = arguments[Rt + 2]; - at.children = fe; + }, at.createElement = function(m, E, B) { + var q, tt = {}, ct = null; + if (E != null) + for (q in E.key !== void 0 && (ct = "" + E.key), E) + Zt.call(E, q) && q !== "key" && q !== "__self" && q !== "__source" && (tt[q] = E[q]); + var vt = arguments.length - 2; + if (vt === 1) tt.children = B; + else if (1 < vt) { + for (var ie = Array(vt), Qt = 0; Qt < vt; Qt++) + ie[Qt] = arguments[Qt + 2]; + tt.children = ie; } if (m && m.defaultProps) - for (q in Tt = m.defaultProps, Tt) - at[q] === void 0 && (at[q] = Tt[q]); - return Pt(m, ct, at); - }, ut.createRef = function() { + for (q in vt = m.defaultProps, vt) + tt[q] === void 0 && (tt[q] = vt[q]); + return Ht(m, ct, tt); + }, at.createRef = function() { return { current: null }; - }, ut.forwardRef = function(m) { - return { $$typeof: lt, render: m }; - }, ut.isValidElement = Vt, ut.lazy = function(m) { + }, at.forwardRef = function(m) { + return { $$typeof: et, render: m }; + }, at.isValidElement = Gt, at.lazy = function(m) { return { $$typeof: L, _payload: { _status: -1, _result: m }, - _init: Z + _init: j }; - }, ut.memo = function(m, A) { + }, at.memo = function(m, E) { return { $$typeof: z, type: m, - compare: A === void 0 ? null : A + compare: E === void 0 ? null : E }; - }, ut.startTransition = function(m) { - var A = $.T, N = {}; - $.T = N; + }, at.startTransition = function(m) { + var E = k.T, B = {}; + k.T = B; try { - var q = m(), at = $.S; - at !== null && at(N, q), typeof q == "object" && q !== null && typeof q.then == "function" && q.then(ht, W); + var q = m(), tt = k.S; + tt !== null && tt(B, q), typeof q == "object" && q !== null && typeof q.then == "function" && q.then(St, ot); } catch (ct) { - W(ct); + ot(ct); } finally { - A !== null && N.types !== null && (A.types = N.types), $.T = A; - } - }, ut.unstable_useCacheRefresh = function() { - return $.H.useCacheRefresh(); - }, ut.use = function(m) { - return $.H.use(m); - }, ut.useActionState = function(m, A, N) { - return $.H.useActionState(m, A, N); - }, ut.useCallback = function(m, A) { - return $.H.useCallback(m, A); - }, ut.useContext = function(m) { - return $.H.useContext(m); - }, ut.useDebugValue = function() { - }, ut.useDeferredValue = function(m, A) { - return $.H.useDeferredValue(m, A); - }, ut.useEffect = function(m, A) { - return $.H.useEffect(m, A); - }, ut.useEffectEvent = function(m) { - return $.H.useEffectEvent(m); - }, ut.useId = function() { - return $.H.useId(); - }, ut.useImperativeHandle = function(m, A, N) { - return $.H.useImperativeHandle(m, A, N); - }, ut.useInsertionEffect = function(m, A) { - return $.H.useInsertionEffect(m, A); - }, ut.useLayoutEffect = function(m, A) { - return $.H.useLayoutEffect(m, A); - }, ut.useMemo = function(m, A) { - return $.H.useMemo(m, A); - }, ut.useOptimistic = function(m, A) { - return $.H.useOptimistic(m, A); - }, ut.useReducer = function(m, A, N) { - return $.H.useReducer(m, A, N); - }, ut.useRef = function(m) { - return $.H.useRef(m); - }, ut.useState = function(m) { - return $.H.useState(m); - }, ut.useSyncExternalStore = function(m, A, N) { - return $.H.useSyncExternalStore( + E !== null && B.types !== null && (E.types = B.types), k.T = E; + } + }, at.unstable_useCacheRefresh = function() { + return k.H.useCacheRefresh(); + }, at.use = function(m) { + return k.H.use(m); + }, at.useActionState = function(m, E, B) { + return k.H.useActionState(m, E, B); + }, at.useCallback = function(m, E) { + return k.H.useCallback(m, E); + }, at.useContext = function(m) { + return k.H.useContext(m); + }, at.useDebugValue = function() { + }, at.useDeferredValue = function(m, E) { + return k.H.useDeferredValue(m, E); + }, at.useEffect = function(m, E) { + return k.H.useEffect(m, E); + }, at.useEffectEvent = function(m) { + return k.H.useEffectEvent(m); + }, at.useId = function() { + return k.H.useId(); + }, at.useImperativeHandle = function(m, E, B) { + return k.H.useImperativeHandle(m, E, B); + }, at.useInsertionEffect = function(m, E) { + return k.H.useInsertionEffect(m, E); + }, at.useLayoutEffect = function(m, E) { + return k.H.useLayoutEffect(m, E); + }, at.useMemo = function(m, E) { + return k.H.useMemo(m, E); + }, at.useOptimistic = function(m, E) { + return k.H.useOptimistic(m, E); + }, at.useReducer = function(m, E, B) { + return k.H.useReducer(m, E, B); + }, at.useRef = function(m) { + return k.H.useRef(m); + }, at.useState = function(m) { + return k.H.useState(m); + }, at.useSyncExternalStore = function(m, E, B) { + return k.H.useSyncExternalStore( m, - A, - N + E, + B ); - }, ut.useTransition = function() { - return $.H.useTransition(); - }, ut.version = "19.2.3", ut; -} -var lm; -function ff() { - return lm || (lm = 1, So.exports = rg()), So.exports; + }, at.useTransition = function() { + return k.H.useTransition(); + }, at.version = "19.2.3", at; } -var To = { exports: {} }, be = {}; var am; +function mf() { + return am || (am = 1, To.exports = rg()), To.exports; +} +var zo = { exports: {} }, xe = {}; +var nm; function sg() { - if (am) return be; - am = 1; - var S = ff(); - function f(C) { - var z = "https://react.dev/errors/" + C; + if (nm) return xe; + nm = 1; + var S = mf(); + function f(U) { + var z = "https://react.dev/errors/" + U; if (1 < arguments.length) { z += "?args[]=" + encodeURIComponent(arguments[1]); for (var L = 2; L < arguments.length; L++) z += "&args[]=" + encodeURIComponent(arguments[L]); } - return "Minified React error #" + C + "; visit " + z + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + return "Minified React error #" + U + "; visit " + z + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - function D() { + function O() { } var s = { d: { - f: D, + f: O, r: function() { throw Error(f(522)); }, - D, - C: D, - L: D, - m: D, - X: D, - S: D, - M: D + D: O, + C: O, + L: O, + m: O, + X: O, + S: O, + M: O }, p: 0, findDOMNode: null - }, G = /* @__PURE__ */ Symbol.for("react.portal"); - function k(C, z, L) { - var w = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; + }, X = /* @__PURE__ */ Symbol.for("react.portal"); + function J(U, z, L) { + var H = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { - $$typeof: G, - key: w == null ? null : "" + w, - children: C, + $$typeof: X, + key: H == null ? null : "" + H, + children: U, containerInfo: z, implementation: L }; } var Q = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; - function lt(C, z) { - if (C === "font") return ""; + function et(U, z) { + if (U === "font") return ""; if (typeof z == "string") return z === "use-credentials" ? z : ""; } - return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, be.createPortal = function(C, z) { + return xe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, xe.createPortal = function(U, z) { var L = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!z || z.nodeType !== 1 && z.nodeType !== 9 && z.nodeType !== 11) throw Error(f(299)); - return k(C, z, null, L); - }, be.flushSync = function(C) { + return J(U, z, null, L); + }, xe.flushSync = function(U) { var z = Q.T, L = s.p; try { - if (Q.T = null, s.p = 2, C) return C(); + if (Q.T = null, s.p = 2, U) return U(); } finally { Q.T = z, s.p = L, s.d.f(); } - }, be.preconnect = function(C, z) { - typeof C == "string" && (z ? (z = z.crossOrigin, z = typeof z == "string" ? z === "use-credentials" ? z : "" : void 0) : z = null, s.d.C(C, z)); - }, be.prefetchDNS = function(C) { - typeof C == "string" && s.d.D(C); - }, be.preinit = function(C, z) { - if (typeof C == "string" && z && typeof z.as == "string") { - var L = z.as, w = lt(L, z.crossOrigin), tt = typeof z.integrity == "string" ? z.integrity : void 0, rt = typeof z.fetchPriority == "string" ? z.fetchPriority : void 0; + }, xe.preconnect = function(U, z) { + typeof U == "string" && (z ? (z = z.crossOrigin, z = typeof z == "string" ? z === "use-credentials" ? z : "" : void 0) : z = null, s.d.C(U, z)); + }, xe.prefetchDNS = function(U) { + typeof U == "string" && s.d.D(U); + }, xe.preinit = function(U, z) { + if (typeof U == "string" && z && typeof z.as == "string") { + var L = z.as, H = et(L, z.crossOrigin), P = typeof z.integrity == "string" ? z.integrity : void 0, mt = typeof z.fetchPriority == "string" ? z.fetchPriority : void 0; L === "style" ? s.d.S( - C, + U, typeof z.precedence == "string" ? z.precedence : void 0, { - crossOrigin: w, - integrity: tt, - fetchPriority: rt - } - ) : L === "script" && s.d.X(C, { - crossOrigin: w, - integrity: tt, - fetchPriority: rt, + crossOrigin: H, + integrity: P, + fetchPriority: mt + } + ) : L === "script" && s.d.X(U, { + crossOrigin: H, + integrity: P, + fetchPriority: mt, nonce: typeof z.nonce == "string" ? z.nonce : void 0 }); } - }, be.preinitModule = function(C, z) { - if (typeof C == "string") + }, xe.preinitModule = function(U, z) { + if (typeof U == "string") if (typeof z == "object" && z !== null) { if (z.as == null || z.as === "script") { - var L = lt( + var L = et( z.as, z.crossOrigin ); - s.d.M(C, { + s.d.M(U, { crossOrigin: L, integrity: typeof z.integrity == "string" ? z.integrity : void 0, nonce: typeof z.nonce == "string" ? z.nonce : void 0 }); } - } else z == null && s.d.M(C); - }, be.preload = function(C, z) { - if (typeof C == "string" && typeof z == "object" && z !== null && typeof z.as == "string") { - var L = z.as, w = lt(L, z.crossOrigin); - s.d.L(C, L, { - crossOrigin: w, + } else z == null && s.d.M(U); + }, xe.preload = function(U, z) { + if (typeof U == "string" && typeof z == "object" && z !== null && typeof z.as == "string") { + var L = z.as, H = et(L, z.crossOrigin); + s.d.L(U, L, { + crossOrigin: H, integrity: typeof z.integrity == "string" ? z.integrity : void 0, nonce: typeof z.nonce == "string" ? z.nonce : void 0, type: typeof z.type == "string" ? z.type : void 0, @@ -728,30 +728,30 @@ function sg() { media: typeof z.media == "string" ? z.media : void 0 }); } - }, be.preloadModule = function(C, z) { - if (typeof C == "string") + }, xe.preloadModule = function(U, z) { + if (typeof U == "string") if (z) { - var L = lt(z.as, z.crossOrigin); - s.d.m(C, { + var L = et(z.as, z.crossOrigin); + s.d.m(U, { as: typeof z.as == "string" && z.as !== "script" ? z.as : void 0, crossOrigin: L, integrity: typeof z.integrity == "string" ? z.integrity : void 0 }); - } else s.d.m(C); - }, be.requestFormReset = function(C) { - s.d.r(C); - }, be.unstable_batchedUpdates = function(C, z) { - return C(z); - }, be.useFormState = function(C, z, L) { - return Q.H.useFormState(C, z, L); - }, be.useFormStatus = function() { + } else s.d.m(U); + }, xe.requestFormReset = function(U) { + s.d.r(U); + }, xe.unstable_batchedUpdates = function(U, z) { + return U(z); + }, xe.useFormState = function(U, z, L) { + return Q.H.useFormState(U, z, L); + }, xe.useFormStatus = function() { return Q.H.useHostTransitionStatus(); - }, be.version = "19.2.3", be; + }, xe.version = "19.2.3", xe; } -var nm; +var im; function dg() { - if (nm) return To.exports; - nm = 1; + if (im) return zo.exports; + im = 1; function S() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { @@ -760,13 +760,13 @@ function dg() { console.error(f); } } - return S(), To.exports = sg(), To.exports; + return S(), zo.exports = sg(), zo.exports; } -var im; +var um; function mg() { - if (im) return Yi; - im = 1; - var S = og(), f = ff(), D = dg(); + if (um) return Li; + um = 1; + var S = og(), f = mf(), O = dg(); function s(t) { var e = "https://react.dev/errors/" + t; if (1 < arguments.length) { @@ -776,10 +776,10 @@ function mg() { } return "Minified React error #" + t + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - function G(t) { + function X(t) { return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11); } - function k(t) { + function J(t) { var e = t, l = t; if (t.alternate) for (; e.return; ) e = e.return; else { @@ -797,21 +797,21 @@ function mg() { } return null; } - function lt(t) { + function et(t) { if (t.tag === 31) { var e = t.memoizedState; if (e === null && (t = t.alternate, t !== null && (e = t.memoizedState)), e !== null) return e.dehydrated; } return null; } - function C(t) { - if (k(t) !== t) + function U(t) { + if (J(t) !== t) throw Error(s(188)); } function z(t) { var e = t.alternate; if (!e) { - if (e = k(t), e === null) throw Error(s(188)); + if (e = J(t), e === null) throw Error(s(188)); return e !== t ? null : t; } for (var l = t, a = e; ; ) { @@ -827,8 +827,8 @@ function mg() { } if (n.child === i.child) { for (i = n.child; i; ) { - if (i === l) return C(n), t; - if (i === a) return C(n), e; + if (i === l) return U(n), t; + if (i === a) return U(n), e; i = i.sibling; } throw Error(s(188)); @@ -875,77 +875,77 @@ function mg() { } return null; } - var w = Object.assign, tt = /* @__PURE__ */ Symbol.for("react.element"), rt = /* @__PURE__ */ Symbol.for("react.transitional.element"), dt = /* @__PURE__ */ Symbol.for("react.portal"), yt = /* @__PURE__ */ Symbol.for("react.fragment"), Gt = /* @__PURE__ */ Symbol.for("react.strict_mode"), ft = /* @__PURE__ */ Symbol.for("react.profiler"), Yt = /* @__PURE__ */ Symbol.for("react.consumer"), mt = /* @__PURE__ */ Symbol.for("react.context"), Dt = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ct = /* @__PURE__ */ Symbol.for("react.suspense"), ht = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), Ut = /* @__PURE__ */ Symbol.for("react.lazy"), Pt = /* @__PURE__ */ Symbol.for("react.activity"), Ft = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), Vt = Symbol.iterator; - function Zt(t) { - return t === null || typeof t != "object" ? null : (t = Vt && t[Vt] || t["@@iterator"], typeof t == "function" ? t : null); + var H = Object.assign, P = /* @__PURE__ */ Symbol.for("react.element"), mt = /* @__PURE__ */ Symbol.for("react.transitional.element"), nt = /* @__PURE__ */ Symbol.for("react.portal"), ht = /* @__PURE__ */ Symbol.for("react.fragment"), qt = /* @__PURE__ */ Symbol.for("react.strict_mode"), Ct = /* @__PURE__ */ Symbol.for("react.profiler"), rt = /* @__PURE__ */ Symbol.for("react.consumer"), xt = /* @__PURE__ */ Symbol.for("react.context"), At = /* @__PURE__ */ Symbol.for("react.forward_ref"), _t = /* @__PURE__ */ Symbol.for("react.suspense"), St = /* @__PURE__ */ Symbol.for("react.suspense_list"), k = /* @__PURE__ */ Symbol.for("react.memo"), Zt = /* @__PURE__ */ Symbol.for("react.lazy"), Ht = /* @__PURE__ */ Symbol.for("react.activity"), be = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), Gt = Symbol.iterator; + function Yt(t) { + return t === null || typeof t != "object" ? null : (t = Gt && t[Gt] || t["@@iterator"], typeof t == "function" ? t : null); } - var oe = /* @__PURE__ */ Symbol.for("react.client.reference"); - function ie(t) { + var se = /* @__PURE__ */ Symbol.for("react.client.reference"); + function ae(t) { if (t == null) return null; if (typeof t == "function") - return t.$$typeof === oe ? null : t.displayName || t.name || null; + return t.$$typeof === se ? null : t.displayName || t.name || null; if (typeof t == "string") return t; switch (t) { - case yt: + case ht: return "Fragment"; - case ft: + case Ct: return "Profiler"; - case Gt: + case qt: return "StrictMode"; - case Ct: + case _t: return "Suspense"; - case ht: + case St: return "SuspenseList"; - case Pt: + case Ht: return "Activity"; } if (typeof t == "object") switch (t.$$typeof) { - case dt: + case nt: return "Portal"; - case mt: + case xt: return t.displayName || "Context"; - case Yt: + case rt: return (t._context.displayName || "Context") + ".Consumer"; - case Dt: + case At: var e = t.render; return t = t.displayName, t || (t = e.displayName || e.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t; - case $: - return e = t.displayName || null, e !== null ? e : ie(t.type) || "Memo"; - case Ut: + case k: + return e = t.displayName || null, e !== null ? e : ae(t.type) || "Memo"; + case Zt: e = t._payload, t = t._init; try { - return ie(t(e)); + return ae(t(e)); } catch { } } return null; } - var X = Array.isArray, g = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = D.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = { + var ne = Array.isArray, p = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = { pending: !1, data: null, method: null, action: null - }, W = [], et = -1; + }, ot = [], W = -1; function m(t) { return { current: t }; } - function A(t) { - 0 > et || (t.current = W[et], W[et] = null, et--); + function E(t) { + 0 > W || (t.current = ot[W], ot[W] = null, W--); } - function N(t, e) { - et++, W[et] = t.current, t.current = e; + function B(t, e) { + W++, ot[W] = t.current, t.current = e; } - var q = m(null), at = m(null), ct = m(null), Tt = m(null); - function fe(t, e) { - switch (N(ct, e), N(at, t), N(q, null), e.nodeType) { + var q = m(null), tt = m(null), ct = m(null), vt = m(null); + function ie(t, e) { + switch (B(ct, e), B(tt, t), B(q, null), e.nodeType) { case 9: case 11: - t = (t = e.documentElement) && (t = t.namespaceURI) ? xd(t) : 0; + t = (t = e.documentElement) && (t = t.namespaceURI) ? Sd(t) : 0; break; default: if (t = e.tagName, e = e.namespaceURI) - e = xd(e), t = Sd(e, t); + e = Sd(e), t = Td(e, t); else switch (t) { case "svg": @@ -958,36 +958,36 @@ function mg() { t = 0; } } - A(q), N(q, t); + E(q), B(q, t); } - function Rt() { - A(q), A(at), A(ct); + function Qt() { + E(q), E(tt), E(ct); } - function gl(t) { - t.memoizedState !== null && N(Tt, t); - var e = q.current, l = Sd(e, t.type); - e !== l && (N(at, t), N(q, l)); + function Ue(t) { + t.memoizedState !== null && B(vt, t); + var e = q.current, l = Td(e, t.type); + e !== l && (B(tt, t), B(q, l)); } - function Ve(t) { - at.current === t && (A(q), A(at)), Tt.current === t && (A(Tt), wi._currentValue = Z); + function Yl(t) { + tt.current === t && (E(q), E(tt)), vt.current === t && (E(vt), Hi._currentValue = j); } - var ul, Xn; - function pl(t) { - if (ul === void 0) + var Ie, vl; + function il(t) { + if (Ie === void 0) try { throw Error(); } catch (l) { var e = l.stack.trim().match(/\n( *(at )?)/); - ul = e && e[1] || "", Xn = -1 < l.stack.indexOf(` + Ie = e && e[1] || "", vl = -1 < l.stack.indexOf(` at`) ? " ()" : -1 < l.stack.indexOf("@") ? "@unknown:0:0" : ""; } return ` -` + ul + t + Xn; +` + Ie + t + vl; } - var Ne = !1; - function Qn(t, e) { - if (!t || Ne) return ""; - Ne = !0; + var Yn = !1; + function Re(t, e) { + if (!t || Yn) return ""; + Yn = !0; var l = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { @@ -995,40 +995,40 @@ function mg() { DetermineComponentFrameRoot: function() { try { if (e) { - var O = function() { + var C = function() { throw Error(); }; - if (Object.defineProperty(O.prototype, "props", { + if (Object.defineProperty(C.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(O, []); + Reflect.construct(C, []); } catch (T) { - var x = T; + var b = T; } - Reflect.construct(t, [], O); + Reflect.construct(t, [], C); } else { try { - O.call(); + C.call(); } catch (T) { - x = T; + b = T; } - t.call(O.prototype); + t.call(C.prototype); } } else { try { throw Error(); } catch (T) { - x = T; + b = T; } - (O = t()) && typeof O.catch == "function" && O.catch(function() { + (C = t()) && typeof C.catch == "function" && C.catch(function() { }); } } catch (T) { - if (T && x && typeof T.stack == "string") - return [T.stack, x.stack]; + if (T && b && typeof T.stack == "string") + return [T.stack, b.stack]; } return [null, null]; } @@ -1062,49 +1062,49 @@ function mg() { if (a !== 1 || n !== 1) do if (a--, n--, 0 > n || r[a] !== v[n]) { - var M = ` + var A = ` ` + r[a].replace(" at new ", " at "); - return t.displayName && M.includes("") && (M = M.replace("", t.displayName)), M; + return t.displayName && A.includes("") && (A = A.replace("", t.displayName)), A; } while (1 <= a && 0 <= n); break; } } } finally { - Ne = !1, Error.prepareStackTrace = l; + Yn = !1, Error.prepareStackTrace = l; } - return (l = t ? t.displayName || t.name : "") ? pl(l) : ""; + return (l = t ? t.displayName || t.name : "") ? il(l) : ""; } - function cf(t, e) { + function hf(t, e) { switch (t.tag) { case 26: case 27: case 5: - return pl(t.type); + return il(t.type); case 16: - return pl("Lazy"); + return il("Lazy"); case 13: - return t.child !== e && e !== null ? pl("Suspense Fallback") : pl("Suspense"); + return t.child !== e && e !== null ? il("Suspense Fallback") : il("Suspense"); case 19: - return pl("SuspenseList"); + return il("SuspenseList"); case 0: case 15: - return Qn(t.type, !1); + return Re(t.type, !1); case 11: - return Qn(t.type.render, !1); + return Re(t.type.render, !1); case 1: - return Qn(t.type, !0); + return Re(t.type, !0); case 31: - return pl("Activity"); + return il("Activity"); default: return ""; } } - function Li(t) { + function Xi(t) { try { var e = "", l = null; do - e += cf(t, l), l = t, t = t.return; + e += hf(t, l), l = t, t = t.return; while (t); return e; } catch (a) { @@ -1113,19 +1113,19 @@ Error generating stack: ` + a.message + ` ` + a.stack; } } - var Vn = Object.prototype.hasOwnProperty, ya = S.unstable_scheduleCallback, va = S.unstable_cancelCallback, Xi = S.unstable_shouldYield, Zn = S.unstable_requestPaint, pe = S.unstable_now, of = S.unstable_getCurrentPriorityLevel, Fa = S.unstable_ImmediatePriority, Kn = S.unstable_UserBlockingPriority, Wa = S.unstable_NormalPriority, rf = S.unstable_LowPriority, Qi = S.unstable_IdlePriority, Vi = S.log, sf = S.unstable_setDisableYieldValue, ba = null, xe = null; - function Ee(t) { - if (typeof Vi == "function" && sf(t), xe && typeof xe.setStrictMode == "function") + var Ln = Object.prototype.hasOwnProperty, Xn = S.unstable_scheduleCallback, ga = S.unstable_cancelCallback, Qn = S.unstable_shouldYield, Qi = S.unstable_requestPaint, de = S.unstable_now, Vi = S.unstable_getCurrentPriorityLevel, Zi = S.unstable_ImmediatePriority, Ja = S.unstable_UserBlockingPriority, pa = S.unstable_NormalPriority, gf = S.unstable_LowPriority, Ki = S.unstable_IdlePriority, pf = S.log, Ji = S.unstable_setDisableYieldValue, ya = null, Se = null; + function ul(t) { + if (typeof pf == "function" && Ji(t), Se && typeof Se.setStrictMode == "function") try { - xe.setStrictMode(ba, t); + Se.setStrictMode(ya, t); } catch { } } - var ye = Math.clz32 ? Math.clz32 : Ia, $a = Math.log, df = Math.LN2; - function Ia(t) { - return t >>>= 0, t === 0 ? 32 : 31 - ($a(t) / df | 0) | 0; + var ue = Math.clz32 ? Math.clz32 : yf, ki = Math.log, ka = Math.LN2; + function yf(t) { + return t >>>= 0, t === 0 ? 32 : 31 - (ki(t) / ka | 0) | 0; } - var Pa = 256, tn = 262144, xa = 4194304; + var bl = 256, Fa = 262144, Wa = 4194304; function fl(t) { var e = t & 42; if (e !== 0) return e; @@ -1181,7 +1181,7 @@ Error generating stack: ` + a.message + ` return t; } } - function en(t, e, l) { + function va(t, e, l) { var a = t.pendingLanes; if (a === 0) return 0; var n = 0, i = t.suspendedLanes, u = t.pingedLanes; @@ -1189,10 +1189,10 @@ Error generating stack: ` + a.message + ` var c = a & 134217727; return c !== 0 ? (a = c & ~i, a !== 0 ? n = fl(a) : (u &= c, u !== 0 ? n = fl(u) : l || (l = c & ~t, l !== 0 && (n = fl(l))))) : (c = a & ~i, c !== 0 ? n = fl(c) : u !== 0 ? n = fl(u) : l || (l = a & ~t, l !== 0 && (n = fl(l)))), n === 0 ? 0 : e !== 0 && e !== n && (e & i) === 0 && (i = n & -n, l = e & -e, i >= l || i === 32 && (l & 4194048) !== 0) ? e : n; } - function we(t, e) { + function ba(t, e) { return (t.pendingLanes & ~(t.suspendedLanes & ~t.pingedLanes) & e) === 0; } - function Zi(t, e) { + function xl(t, e) { switch (t) { case 1: case 2: @@ -1233,51 +1233,51 @@ Error generating stack: ` + a.message + ` return -1; } } - function Ki() { - var t = xa; - return xa <<= 1, (xa & 62914560) === 0 && (xa = 4194304), t; + function Vn() { + var t = Wa; + return Wa <<= 1, (Wa & 62914560) === 0 && (Wa = 4194304), t; } - function Yl(t) { + function Zn(t) { for (var e = [], l = 0; 31 > l; l++) e.push(t); return e; } - function Ll(t, e) { + function cl(t, e) { t.pendingLanes |= e, e !== 268435456 && (t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0); } - function mf(t, e, l, a, n, i) { + function Fi(t, e, l, a, n, i) { var u = t.pendingLanes; t.pendingLanes = l, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= l, t.entangledLanes &= l, t.errorRecoveryDisabledLanes &= l, t.shellSuspendCounter = 0; var c = t.entanglements, r = t.expirationTimes, v = t.hiddenUpdates; for (l = u & ~l; 0 < l; ) { - var M = 31 - ye(l), O = 1 << M; - c[M] = 0, r[M] = -1; - var x = v[M]; - if (x !== null) - for (v[M] = null, M = 0; M < x.length; M++) { - var T = x[M]; + var A = 31 - ue(l), C = 1 << A; + c[A] = 0, r[A] = -1; + var b = v[A]; + if (b !== null) + for (v[A] = null, A = 0; A < b.length; A++) { + var T = b[A]; T !== null && (T.lane &= -536870913); } - l &= ~O; + l &= ~C; } - a !== 0 && Se(t, a, 0), i !== 0 && n === 0 && t.tag !== 0 && (t.suspendedLanes |= i & ~(u & ~e)); + a !== 0 && Wi(t, a, 0), i !== 0 && n === 0 && t.tag !== 0 && (t.suspendedLanes |= i & ~(u & ~e)); } - function Se(t, e, l) { + function Wi(t, e, l) { t.pendingLanes |= e, t.suspendedLanes &= ~e; - var a = 31 - ye(e); + var a = 31 - ue(e); t.entangledLanes |= e, t.entanglements[a] = t.entanglements[a] | 1073741824 | l & 261930; } - function ln(t, e) { + function Te(t, e) { var l = t.entangledLanes |= e; for (t = t.entanglements; l; ) { - var a = 31 - ye(l), n = 1 << a; + var a = 31 - ue(l), n = 1 << a; n & e | t[a] & e && (t[a] |= e), l &= ~n; } } - function an(t, e) { + function $a(t, e) { var l = e & -e; - return l = (l & 42) !== 0 ? 1 : Jn(l), (l & (t.suspendedLanes | e)) !== 0 ? 0 : l; + return l = (l & 42) !== 0 ? 1 : xa(l), (l & (t.suspendedLanes | e)) !== 0 ? 0 : l; } - function Jn(t) { + function xa(t) { switch (t) { case 2: t = 1; @@ -1316,34 +1316,34 @@ Error generating stack: ` + a.message + ` } return t; } - function kn(t) { + function Kn(t) { return t &= -t, 2 < t ? 8 < t ? (t & 134217727) !== 0 ? 32 : 268435456 : 8 : 2; } - function Fn() { - var t = U.p; - return t !== 0 ? t : (t = window.event, t === void 0 ? 32 : Vd(t.type)); + function $i() { + var t = M.p; + return t !== 0 ? t : (t = window.event, t === void 0 ? 32 : Zd(t.type)); } - function Ji(t, e) { - var l = U.p; + function Jn(t, e) { + var l = M.p; try { - return U.p = t, e(); + return M.p = t, e(); } finally { - U.p = l; + M.p = l; } } - var Pe = Math.random().toString(36).slice(2), te = "__reactFiber$" + Pe, re = "__reactProps$" + Pe, Xl = "__reactContainer$" + Pe, Wn = "__reactEvents$" + Pe, hf = "__reactListeners$" + Pe, gf = "__reactHandles$" + Pe, ki = "__reactResources$" + Pe, Ql = "__reactMarker$" + Pe; - function Sa(t) { - delete t[te], delete t[re], delete t[Wn], delete t[hf], delete t[gf]; + var ol = Math.random().toString(36).slice(2), It = "__reactFiber$" + ol, me = "__reactProps$" + ol, Sl = "__reactContainer$" + ol, kn = "__reactEvents$" + ol, vf = "__reactListeners$" + ol, bf = "__reactHandles$" + ol, Ii = "__reactResources$" + ol, Sa = "__reactMarker$" + ol; + function Ia(t) { + delete t[It], delete t[me], delete t[kn], delete t[vf], delete t[bf]; } - function cl(t) { - var e = t[te]; + function rl(t) { + var e = t[It]; if (e) return e; for (var l = t.parentNode; l; ) { - if (e = l[Xl] || l[te]) { + if (e = l[Sl] || l[It]) { if (l = e.alternate, e.child !== null || l !== null && l.child !== null) - for (t = Dd(t); t !== null; ) { - if (l = t[te]) return l; - t = Dd(t); + for (t = Od(t); t !== null; ) { + if (l = t[It]) return l; + t = Od(t); } return e; } @@ -1351,42 +1351,42 @@ Error generating stack: ` + a.message + ` } return null; } - function yl(t) { - if (t = t[te] || t[Xl]) { + function sl(t) { + if (t = t[It] || t[Sl]) { var e = t.tag; if (e === 5 || e === 6 || e === 13 || e === 31 || e === 26 || e === 27 || e === 3) return t; } return null; } - function ol(t) { + function Ll(t) { var e = t.tag; if (e === 5 || e === 26 || e === 27 || e === 6) return t.stateNode; throw Error(s(33)); } - function vl(t) { - var e = t[ki]; - return e || (e = t[ki] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), e; + function Pe(t) { + var e = t[Ii]; + return e || (e = t[Ii] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), e; } - function Wt(t) { - t[Ql] = !0; + function Ft(t) { + t[Sa] = !0; } - var Fi = /* @__PURE__ */ new Set(), $n = {}; - function bl(t, e) { - xl(t, e), xl(t + "Capture", e); + var Fn = /* @__PURE__ */ new Set(), Pi = {}; + function dl(t, e) { + Xl(t, e), Xl(t + "Capture", e); } - function xl(t, e) { - for ($n[t] = e, t = 0; t < e.length; t++) - Fi.add(e[t]); + function Xl(t, e) { + for (Pi[t] = e, t = 0; t < e.length; t++) + Fn.add(e[t]); } - var pf = RegExp( + var tu = 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]*$" - ), Wi = {}, nn = {}; - function yf(t) { - return Vn.call(nn, t) ? !0 : Vn.call(Wi, t) ? !1 : pf.test(t) ? nn[t] = !0 : (Wi[t] = !0, !1); + ), eu = {}, lu = {}; + function Wn(t) { + return Ln.call(lu, t) ? !0 : Ln.call(eu, t) ? !1 : tu.test(t) ? lu[t] = !0 : (eu[t] = !0, !1); } - function Ta(t, e, l) { - if (yf(e)) + function Pa(t, e, l) { + if (Wn(e)) if (l === null) t.removeAttribute(e); else { switch (typeof l) { @@ -1405,7 +1405,7 @@ Error generating stack: ` + a.message + ` t.setAttribute(e, "" + l); } } - function un(t, e, l) { + function Ta(t, e, l) { if (l === null) t.removeAttribute(e); else { switch (typeof l) { @@ -1419,7 +1419,7 @@ Error generating stack: ` + a.message + ` t.setAttribute(e, "" + l); } } - function Te(t, e, l, a) { + function tl(t, e, l, a) { if (a === null) t.removeAttribute(l); else { switch (typeof a) { @@ -1433,7 +1433,7 @@ Error generating stack: ` + a.message + ` t.setAttributeNS(e, l, "" + a); } } - function Ae(t) { + function oe(t) { switch (typeof t) { case "bigint": case "boolean": @@ -1447,11 +1447,11 @@ Error generating stack: ` + a.message + ` return ""; } } - function $i(t) { + function au(t) { var e = t.type; return (t = t.nodeName) && t.toLowerCase() === "input" && (e === "checkbox" || e === "radio"); } - function Ii(t, e, l) { + function xf(t, e, l) { var a = Object.getOwnPropertyDescriptor( t.constructor.prototype, e @@ -1481,24 +1481,24 @@ Error generating stack: ` + a.message + ` }; } } - function Sl(t) { + function tn(t) { if (!t._valueTracker) { - var e = $i(t) ? "checked" : "value"; - t._valueTracker = Ii( + var e = au(t) ? "checked" : "value"; + t._valueTracker = xf( t, e, "" + t[e] ); } } - function Pi(t) { + function Ql(t) { if (!t) return !1; var e = t._valueTracker; if (!e) return !0; var l = e.getValue(), a = ""; - return t && (a = $i(t) ? t.checked ? "true" : "false" : t.value), t = a, t !== l ? (e.setValue(t), !0) : !1; + return t && (a = au(t) ? t.checked ? "true" : "false" : t.value), t = a, t !== l ? (e.setValue(t), !0) : !1; } - function ve(t) { + function en(t) { if (t = t || (typeof document < "u" ? document : void 0), typeof t > "u") return null; try { return t.activeElement || t.body; @@ -1506,32 +1506,32 @@ Error generating stack: ` + a.message + ` return t.body; } } - var fn = /[\n"\\]/g; - function _e(t) { + var we = /[\n"\\]/g; + function he(t) { return t.replace( - fn, + we, function(e) { return "\\" + e.charCodeAt(0).toString(16) + " "; } ); } - function In(t, e, l, a, n, i, u, c) { - t.name = "", u != null && typeof u != "function" && typeof u != "symbol" && typeof u != "boolean" ? t.type = u : t.removeAttribute("type"), e != null ? u === "number" ? (e === 0 && t.value === "" || t.value != e) && (t.value = "" + Ae(e)) : t.value !== "" + Ae(e) && (t.value = "" + Ae(e)) : u !== "submit" && u !== "reset" || t.removeAttribute("value"), e != null ? d(t, u, Ae(e)) : l != null ? d(t, u, Ae(l)) : a != null && t.removeAttribute("value"), n == null && i != null && (t.defaultChecked = !!i), n != null && (t.checked = n && typeof n != "function" && typeof n != "symbol"), c != null && typeof c != "function" && typeof c != "symbol" && typeof c != "boolean" ? t.name = "" + Ae(c) : t.removeAttribute("name"); + function $n(t, e, l, a, n, i, u, c) { + t.name = "", u != null && typeof u != "function" && typeof u != "symbol" && typeof u != "boolean" ? t.type = u : t.removeAttribute("type"), e != null ? u === "number" ? (e === 0 && t.value === "" || t.value != e) && (t.value = "" + oe(e)) : t.value !== "" + oe(e) && (t.value = "" + oe(e)) : u !== "submit" && u !== "reset" || t.removeAttribute("value"), e != null ? o(t, u, oe(e)) : l != null ? o(t, u, oe(l)) : a != null && t.removeAttribute("value"), n == null && i != null && (t.defaultChecked = !!i), n != null && (t.checked = n && typeof n != "function" && typeof n != "symbol"), c != null && typeof c != "function" && typeof c != "symbol" && typeof c != "boolean" ? t.name = "" + oe(c) : t.removeAttribute("name"); } - function o(t, e, l, a, n, i, u, c) { + function nu(t, e, l, a, n, i, u, c) { if (i != null && typeof i != "function" && typeof i != "symbol" && typeof i != "boolean" && (t.type = i), e != null || l != null) { if (!(i !== "submit" && i !== "reset" || e != null)) { - Sl(t); + tn(t); return; } - l = l != null ? "" + Ae(l) : "", e = e != null ? "" + Ae(e) : l, c || e === t.value || (t.value = e), t.defaultValue = e; + l = l != null ? "" + oe(l) : "", e = e != null ? "" + oe(e) : l, c || e === t.value || (t.value = e), t.defaultValue = e; } - a = a ?? n, a = typeof a != "function" && typeof a != "symbol" && !!a, t.checked = c ? t.checked : !!a, t.defaultChecked = !!a, u != null && typeof u != "function" && typeof u != "symbol" && typeof u != "boolean" && (t.name = u), Sl(t); + a = a ?? n, a = typeof a != "function" && typeof a != "symbol" && !!a, t.checked = c ? t.checked : !!a, t.defaultChecked = !!a, u != null && typeof u != "function" && typeof u != "symbol" && typeof u != "boolean" && (t.name = u), tn(t); } - function d(t, e, l) { - e === "number" && ve(t.ownerDocument) === t || t.defaultValue === "" + l || (t.defaultValue = "" + l); + function o(t, e, l) { + e === "number" && en(t.ownerDocument) === t || t.defaultValue === "" + l || (t.defaultValue = "" + l); } - function b(t, e, l, a) { + function d(t, e, l, a) { if (t = t.options, e) { e = {}; for (var n = 0; n < l.length; n++) @@ -1539,7 +1539,7 @@ Error generating stack: ` + a.message + ` for (l = 0; l < t.length; l++) n = e.hasOwnProperty("$" + t[l].value), t[l].selected !== n && (t[l].selected = n), n && a && (t[l].defaultSelected = !0); } else { - for (l = "" + Ae(l), e = null, n = 0; n < t.length; n++) { + for (l = "" + oe(l), e = null, n = 0; n < t.length; n++) { if (t[n].value === l) { t[n].selected = !0, a && (t[n].defaultSelected = !0); return; @@ -1549,18 +1549,18 @@ Error generating stack: ` + a.message + ` e !== null && (e.selected = !0); } } - function B(t, e, l) { - if (e != null && (e = "" + Ae(e), e !== t.value && (t.value = e), l == null)) { + function x(t, e, l) { + if (e != null && (e = "" + oe(e), e !== t.value && (t.value = e), l == null)) { t.defaultValue !== e && (t.defaultValue = e); return; } - t.defaultValue = l != null ? "" + Ae(l) : ""; + t.defaultValue = l != null ? "" + oe(l) : ""; } - function H(t, e, l, a) { + function w(t, e, l, a) { if (e == null) { if (a != null) { if (l != null) throw Error(s(92)); - if (X(a)) { + if (ne(a)) { if (1 < a.length) throw Error(s(93)); a = a[0]; } @@ -1568,9 +1568,9 @@ Error generating stack: ` + a.message + ` } l == null && (l = ""), e = l; } - l = Ae(e), t.defaultValue = l, a = t.textContent, a === l && a !== "" && a !== null && (t.value = a), Sl(t); + l = oe(e), t.defaultValue = l, a = t.textContent, a === l && a !== "" && a !== null && (t.value = a), tn(t); } - function j(t, e) { + function N(t, e) { if (e) { var l = t.firstChild; if (l && l === t.lastChild && l.nodeType === 3) { @@ -1580,28 +1580,28 @@ Error generating stack: ` + a.message + ` } t.textContent = e; } - var J = new Set( + var G = 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 nt(t, e, l) { + function K(t, e, l) { var a = e.indexOf("--") === 0; - l == null || typeof l == "boolean" || l === "" ? a ? t.setProperty(e, "") : e === "float" ? t.cssFloat = "" : t[e] = "" : a ? t.setProperty(e, l) : typeof l != "number" || l === 0 || J.has(e) ? e === "float" ? t.cssFloat = l : t[e] = ("" + l).trim() : t[e] = l + "px"; + l == null || typeof l == "boolean" || l === "" ? a ? t.setProperty(e, "") : e === "float" ? t.cssFloat = "" : t[e] = "" : a ? t.setProperty(e, l) : typeof l != "number" || l === 0 || G.has(e) ? e === "float" ? t.cssFloat = l : t[e] = ("" + l).trim() : t[e] = l + "px"; } - function xt(t, e, l) { + function lt(t, e, l) { if (e != null && typeof e != "object") throw Error(s(62)); if (t = t.style, l != null) { for (var a in l) !l.hasOwnProperty(a) || e != null && e.hasOwnProperty(a) || (a.indexOf("--") === 0 ? t.setProperty(a, "") : a === "float" ? t.cssFloat = "" : t[a] = ""); for (var n in e) - a = e[n], e.hasOwnProperty(n) && l[n] !== a && nt(t, n, a); + a = e[n], e.hasOwnProperty(n) && l[n] !== a && K(t, n, a); } else for (var i in e) - e.hasOwnProperty(i) && nt(t, i, e[i]); + e.hasOwnProperty(i) && K(t, i, e[i]); } - function zt(t) { + function gt(t) { if (t.indexOf("-") === -1) return !1; switch (t) { case "annotation-xml": @@ -1617,7 +1617,7 @@ Error generating stack: ` + a.message + ` return !0; } } - var Vl = /* @__PURE__ */ new Map([ + var Dt = /* @__PURE__ */ new Map([ ["acceptCharset", "accept-charset"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], @@ -1696,24 +1696,24 @@ Error generating stack: ` + a.message + ` ["writingMode", "writing-mode"], ["xmlnsXlink", "xmlns:xlink"], ["xHeight", "x-height"] - ]), vf = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; - function cn(t) { - return vf.test("" + t) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : t; + ]), Vl = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; + function ln(t) { + return Vl.test("" + t) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : t; } - function tl() { + function el() { } - var on = null; - function Pn(t) { + var In = null; + function an(t) { return t = t.target || t.srcElement || window, t.correspondingUseElement && (t = t.correspondingUseElement), t.nodeType === 3 ? t.parentNode : t; } - var Tl = null, Zl = null; - function rn(t) { - var e = yl(t); + var Zl = null, Tl = null; + function iu(t) { + var e = sl(t); if (e && (t = e.stateNode)) { - var l = t[re] || null; + var l = t[me] || null; t: switch (t = e.stateNode, e.type) { case "input": - if (In( + if ($n( t, l.value, l.defaultValue, @@ -1725,15 +1725,15 @@ Error generating stack: ` + a.message + ` ), e = l.name, l.type === "radio" && e != null) { for (l = t; l.parentNode; ) l = l.parentNode; for (l = l.querySelectorAll( - 'input[name="' + _e( + 'input[name="' + he( "" + e ) + '"][type="radio"]' ), e = 0; e < l.length; e++) { var a = l[e]; if (a !== t && a.form === t.form) { - var n = a[re] || null; + var n = a[me] || null; if (!n) throw Error(s(90)); - In( + $n( a, n.value, n.defaultValue, @@ -1746,33 +1746,33 @@ Error generating stack: ` + a.message + ` } } for (e = 0; e < l.length; e++) - a = l[e], a.form === t.form && Pi(a); + a = l[e], a.form === t.form && Ql(a); } break t; case "textarea": - B(t, l.value, l.defaultValue); + x(t, l.value, l.defaultValue); break t; case "select": - e = l.value, e != null && b(t, !!l.multiple, e, !1); + e = l.value, e != null && d(t, !!l.multiple, e, !1); } } } var za = !1; - function tu(t, e, l) { + function nn(t, e, l) { if (za) return t(e, l); za = !0; try { var a = t(e); return a; } finally { - if (za = !1, (Tl !== null || Zl !== null) && (ju(), Tl && (e = Tl, t = Zl, Zl = Tl = null, rn(e), t))) - for (e = 0; e < t.length; e++) rn(t[e]); + if (za = !1, (Zl !== null || Tl !== null) && (Qu(), Zl && (e = Zl, t = Tl, Tl = Zl = null, iu(e), t))) + for (e = 0; e < t.length; e++) iu(t[e]); } } - function Kl(t, e) { + function Ma(t, e) { var l = t.stateNode; if (l === null) return null; - var a = l[re] || null; + var a = l[me] || null; if (a === null) return null; l = a[e]; t: switch (e) { @@ -1799,60 +1799,60 @@ Error generating stack: ` + a.message + ` ); return l; } - var He = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), Ma = !1; - if (He) + var Xe = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), Ea = !1; + if (Xe) try { - var el = {}; - Object.defineProperty(el, "passive", { + var zl = {}; + Object.defineProperty(zl, "passive", { get: function() { - Ma = !0; + Ea = !0; } - }), window.addEventListener("test", el, el), window.removeEventListener("test", el, el); + }), window.addEventListener("test", zl, zl), window.removeEventListener("test", zl, zl); } catch { - Ma = !1; + Ea = !1; } - var ll = null, ti = null, Ea = null; - function ei() { - if (Ea) return Ea; - var t, e = ti, l = e.length, a, n = "value" in ll ? ll.value : ll.textContent, i = n.length; + var Ee = null, un = null, fn = null; + function Pn() { + if (fn) return fn; + var t, e = un, l = e.length, a, n = "value" in Ee ? Ee.value : Ee.textContent, i = n.length; for (t = 0; t < l && e[t] === n[t]; t++) ; var u = l - t; for (a = 1; a <= u && e[l - a] === n[i - a]; a++) ; - return Ea = n.slice(t, 1 < a ? 1 - a : void 0); + return fn = n.slice(t, 1 < a ? 1 - a : void 0); } - function sn(t) { + function Aa(t) { var e = t.keyCode; return "charCode" in t ? (t = t.charCode, t === 0 && e === 13 && (t = 13)) : t = e, t === 10 && (t = 13), 32 <= t || t === 13 ? t : 0; } - function Aa() { + function cn() { return !0; } - function _a() { + function ti() { return !1; } - function se(t) { + function fe(t) { function e(l, a, n, i, u) { this._reactName = l, this._targetInst = n, this.type = a, this.nativeEvent = i, this.target = u, this.currentTarget = null; for (var c in t) t.hasOwnProperty(c) && (l = t[c], this[c] = l ? l(i) : i[c]); - return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? Aa : _a, this.isPropagationStopped = _a, this; + return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? cn : ti, this.isPropagationStopped = ti, this; } - return w(e.prototype, { + return H(e.prototype, { preventDefault: function() { this.defaultPrevented = !0; var l = this.nativeEvent; - l && (l.preventDefault ? l.preventDefault() : typeof l.returnValue != "unknown" && (l.returnValue = !1), this.isDefaultPrevented = Aa); + l && (l.preventDefault ? l.preventDefault() : typeof l.returnValue != "unknown" && (l.returnValue = !1), this.isDefaultPrevented = cn); }, stopPropagation: function() { var l = this.nativeEvent; - l && (l.stopPropagation ? l.stopPropagation() : typeof l.cancelBubble != "unknown" && (l.cancelBubble = !0), this.isPropagationStopped = Aa); + l && (l.stopPropagation ? l.stopPropagation() : typeof l.cancelBubble != "unknown" && (l.cancelBubble = !0), this.isPropagationStopped = cn); }, persist: function() { }, - isPersistent: Aa + isPersistent: cn }), e; } - var zl = { + var ml = { eventPhase: 0, bubbles: 0, cancelable: 0, @@ -1861,7 +1861,7 @@ Error generating stack: ` + a.message + ` }, defaultPrevented: 0, isTrusted: 0 - }, dn = se(zl), Jl = w({}, zl, { view: 0, detail: 0 }), bf = se(Jl), Da, rl, kl, Oa = w({}, Jl, { + }, on = fe(ml), _a = H({}, ml, { view: 0, detail: 0 }), uu = fe(_a), ei, Da, Qe, Oa = H({}, _a, { screenX: 0, screenY: 0, clientX: 0, @@ -1872,27 +1872,27 @@ Error generating stack: ` + a.message + ` shiftKey: 0, altKey: 0, metaKey: 0, - getModifierState: Sf, + getModifierState: Tf, button: 0, buttons: 0, relatedTarget: function(t) { return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget; }, movementX: function(t) { - return "movementX" in t ? t.movementX : (t !== kl && (kl && t.type === "mousemove" ? (Da = t.screenX - kl.screenX, rl = t.screenY - kl.screenY) : rl = Da = 0, kl = t), Da); + return "movementX" in t ? t.movementX : (t !== Qe && (Qe && t.type === "mousemove" ? (ei = t.screenX - Qe.screenX, Da = t.screenY - Qe.screenY) : Da = ei = 0, Qe = t), ei); }, movementY: function(t) { - return "movementY" in t ? t.movementY : rl; + return "movementY" in t ? t.movementY : Da; } - }), Ca = se(Oa), _ = w({}, Oa, { dataTransfer: 0 }), R = se(_), P = w({}, Jl, { relatedTarget: 0 }), it = se(P), Mt = w({}, zl, { + }), li = fe(Oa), rn = H({}, Oa, { dataTransfer: 0 }), D = fe(rn), R = H({}, _a, { relatedTarget: 0 }), I = fe(R), it = H({}, ml, { animationName: 0, elapsedTime: 0, pseudoElement: 0 - }), Et = se(Mt), Kt = w({}, zl, { + }), Tt = fe(it), zt = H({}, ml, { clipboardData: function(t) { return "clipboardData" in t ? t.clipboardData : window.clipboardData; } - }), ze = se(Kt), Ua = w({}, zl, { data: 0 }), De = se(Ua), eu = { + }), Kt = fe(zt), ze = H({}, ml, { data: 0 }), Kl = fe(ze), Be = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", @@ -1905,7 +1905,7 @@ Error generating stack: ` + a.message + ` Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" - }, xf = { + }, fu = { 8: "Backspace", 9: "Tab", 12: "Clear", @@ -1942,7 +1942,7 @@ Error generating stack: ` + a.message + ` 144: "NumLock", 145: "ScrollLock", 224: "Meta" - }, gm = { + }, Sf = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", @@ -1950,18 +1950,18 @@ Error generating stack: ` + a.message + ` }; function pm(t) { var e = this.nativeEvent; - return e.getModifierState ? e.getModifierState(t) : (t = gm[t]) ? !!e[t] : !1; + return e.getModifierState ? e.getModifierState(t) : (t = Sf[t]) ? !!e[t] : !1; } - function Sf() { + function Tf() { return pm; } - var ym = w({}, Jl, { + var ym = H({}, _a, { key: function(t) { if (t.key) { - var e = eu[t.key] || t.key; + var e = Be[t.key] || t.key; if (e !== "Unidentified") return e; } - return t.type === "keypress" ? (t = sn(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? xf[t.keyCode] || "Unidentified" : ""; + return t.type === "keypress" ? (t = Aa(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? fu[t.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, @@ -1971,17 +1971,17 @@ Error generating stack: ` + a.message + ` metaKey: 0, repeat: 0, locale: 0, - getModifierState: Sf, + getModifierState: Tf, charCode: function(t) { - return t.type === "keypress" ? sn(t) : 0; + return t.type === "keypress" ? Aa(t) : 0; }, keyCode: function(t) { return t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0; }, which: function(t) { - return t.type === "keypress" ? sn(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0; + return t.type === "keypress" ? Aa(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0; } - }), vm = se(ym), bm = w({}, Oa, { + }), vm = fe(ym), bm = H({}, Oa, { pointerId: 0, width: 0, height: 0, @@ -1992,7 +1992,7 @@ Error generating stack: ` + a.message + ` twist: 0, pointerType: 0, isPrimary: 0 - }), Eo = se(bm), xm = w({}, Jl, { + }), Ao = fe(bm), xm = H({}, _a, { touches: 0, targetTouches: 0, changedTouches: 0, @@ -2000,12 +2000,12 @@ Error generating stack: ` + a.message + ` metaKey: 0, ctrlKey: 0, shiftKey: 0, - getModifierState: Sf - }), Sm = se(xm), Tm = w({}, zl, { + getModifierState: Tf + }), Sm = fe(xm), Tm = H({}, ml, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 - }), zm = se(Tm), Mm = w({}, Oa, { + }), zm = fe(Tm), Mm = H({}, Oa, { deltaX: function(t) { return "deltaX" in t ? t.deltaX : "wheelDeltaX" in t ? -t.wheelDeltaX : 0; }, @@ -2014,13 +2014,13 @@ Error generating stack: ` + a.message + ` }, deltaZ: 0, deltaMode: 0 - }), Em = se(Mm), Am = w({}, zl, { + }), Em = fe(Mm), Am = H({}, ml, { newState: 0, oldState: 0 - }), _m = se(Am), Dm = [9, 13, 27, 32], Tf = He && "CompositionEvent" in window, li = null; - He && "documentMode" in document && (li = document.documentMode); - var Om = He && "TextEvent" in window && !li, Ao = He && (!Tf || li && 8 < li && 11 >= li), _o = " ", Do = !1; - function Oo(t, e) { + }), _m = fe(Am), Dm = [9, 13, 27, 32], zf = Xe && "CompositionEvent" in window, ai = null; + Xe && "documentMode" in document && (ai = document.documentMode); + var Om = Xe && "TextEvent" in window && !ai, _o = Xe && (!zf || ai && 8 < ai && 11 >= ai), Do = " ", Oo = !1; + function Co(t, e) { switch (t) { case "keyup": return Dm.indexOf(e.keyCode) !== -1; @@ -2034,25 +2034,25 @@ Error generating stack: ` + a.message + ` return !1; } } - function Co(t) { + function Uo(t) { return t = t.detail, typeof t == "object" && "data" in t ? t.data : null; } - var mn = !1; + var sn = !1; function Cm(t, e) { switch (t) { case "compositionend": - return Co(e); + return Uo(e); case "keypress": - return e.which !== 32 ? null : (Do = !0, _o); + return e.which !== 32 ? null : (Oo = !0, Do); case "textInput": - return t = e.data, t === _o && Do ? null : t; + return t = e.data, t === Do && Oo ? null : t; default: return null; } } function Um(t, e) { - if (mn) - return t === "compositionend" || !Tf && Oo(t, e) ? (t = ei(), Ea = ti = ll = null, mn = !1, t) : null; + if (sn) + return t === "compositionend" || !zf && Co(t, e) ? (t = Pn(), fn = un = Ee = null, sn = !1, t) : null; switch (t) { case "paste": return null; @@ -2064,7 +2064,7 @@ Error generating stack: ` + a.message + ` } return null; case "compositionend": - return Ao && e.locale !== "ko" ? null : e.data; + return _o && e.locale !== "ko" ? null : e.data; default: return null; } @@ -2086,12 +2086,12 @@ Error generating stack: ` + a.message + ` url: !0, week: !0 }; - function Uo(t) { + function Ro(t) { var e = t && t.nodeName && t.nodeName.toLowerCase(); return e === "input" ? !!Rm[t.type] : e === "textarea"; } - function Ro(t, e, l, a) { - Tl ? Zl ? Zl.push(a) : Zl = [a] : Tl = a, e = Vu(e, "onChange"), 0 < e.length && (l = new dn( + function wo(t, e, l, a) { + Zl ? Tl ? Tl.push(a) : Tl = [a] : Zl = a, e = Wu(e, "onChange"), 0 < e.length && (l = new on( "onChange", "change", null, @@ -2099,81 +2099,81 @@ Error generating stack: ` + a.message + ` a ), t.push({ event: l, listeners: e })); } - var ai = null, ni = null; - function Bm(t) { - hd(t, 0); + var ni = null, ii = null; + function wm(t) { + gd(t, 0); } - function lu(t) { - var e = ol(t); - if (Pi(e)) return t; + function cu(t) { + var e = Ll(t); + if (Ql(e)) return t; } function Bo(t, e) { if (t === "change") return e; } var No = !1; - if (He) { - var zf; - if (He) { - var Mf = "oninput" in document; - if (!Mf) { - var wo = document.createElement("div"); - wo.setAttribute("oninput", "return;"), Mf = typeof wo.oninput == "function"; - } - zf = Mf; - } else zf = !1; - No = zf && (!document.documentMode || 9 < document.documentMode); - } - function Ho() { - ai && (ai.detachEvent("onpropertychange", jo), ni = ai = null); - } - function jo(t) { - if (t.propertyName === "value" && lu(ni)) { + if (Xe) { + var Mf; + if (Xe) { + var Ef = "oninput" in document; + if (!Ef) { + var Ho = document.createElement("div"); + Ho.setAttribute("oninput", "return;"), Ef = typeof Ho.oninput == "function"; + } + Mf = Ef; + } else Mf = !1; + No = Mf && (!document.documentMode || 9 < document.documentMode); + } + function jo() { + ni && (ni.detachEvent("onpropertychange", qo), ii = ni = null); + } + function qo(t) { + if (t.propertyName === "value" && cu(ii)) { var e = []; - Ro( + wo( e, - ni, + ii, t, - Pn(t) - ), tu(Bm, e); + an(t) + ), nn(wm, e); } } - function Nm(t, e, l) { - t === "focusin" ? (Ho(), ai = e, ni = l, ai.attachEvent("onpropertychange", jo)) : t === "focusout" && Ho(); + function Bm(t, e, l) { + t === "focusin" ? (jo(), ni = e, ii = l, ni.attachEvent("onpropertychange", qo)) : t === "focusout" && jo(); } - function wm(t) { + function Nm(t) { if (t === "selectionchange" || t === "keyup" || t === "keydown") - return lu(ni); + return cu(ii); } function Hm(t, e) { - if (t === "click") return lu(e); + if (t === "click") return cu(e); } function jm(t, e) { if (t === "input" || t === "change") - return lu(e); + return cu(e); } function qm(t, e) { return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e; } - var je = typeof Object.is == "function" ? Object.is : qm; - function ii(t, e) { - if (je(t, e)) return !0; + var Ne = typeof Object.is == "function" ? Object.is : qm; + function ui(t, e) { + if (Ne(t, e)) return !0; if (typeof t != "object" || t === null || typeof e != "object" || e === null) return !1; var l = Object.keys(t), a = Object.keys(e); if (l.length !== a.length) return !1; for (a = 0; a < l.length; a++) { var n = l[a]; - if (!Vn.call(e, n) || !je(t[n], e[n])) + if (!Ln.call(e, n) || !Ne(t[n], e[n])) return !1; } return !0; } - function qo(t) { + function Go(t) { for (; t && t.firstChild; ) t = t.firstChild; return t; } - function Go(t, e) { - var l = qo(t); + function Yo(t, e) { + var l = Go(t); t = 0; for (var a; l; ) { if (l.nodeType === 3) { @@ -2191,15 +2191,15 @@ Error generating stack: ` + a.message + ` } l = void 0; } - l = qo(l); + l = Go(l); } } - function Yo(t, e) { - return t && e ? t === e ? !0 : t && t.nodeType === 3 ? !1 : e && e.nodeType === 3 ? Yo(t, e.parentNode) : "contains" in t ? t.contains(e) : t.compareDocumentPosition ? !!(t.compareDocumentPosition(e) & 16) : !1 : !1; + function Lo(t, e) { + return t && e ? t === e ? !0 : t && t.nodeType === 3 ? !1 : e && e.nodeType === 3 ? Lo(t, e.parentNode) : "contains" in t ? t.contains(e) : t.compareDocumentPosition ? !!(t.compareDocumentPosition(e) & 16) : !1 : !1; } - function Lo(t) { + function Xo(t) { t = t != null && t.ownerDocument != null && t.ownerDocument.defaultView != null ? t.ownerDocument.defaultView : window; - for (var e = ve(t.document); e instanceof t.HTMLIFrameElement; ) { + for (var e = en(t.document); e instanceof t.HTMLIFrameElement; ) { try { var l = typeof e.contentWindow.location.href == "string"; } catch { @@ -2207,61 +2207,61 @@ Error generating stack: ` + a.message + ` } if (l) t = e.contentWindow; else break; - e = ve(t.document); + e = en(t.document); } return e; } - function Ef(t) { + function Af(t) { var e = t && t.nodeName && t.nodeName.toLowerCase(); return e && (e === "input" && (t.type === "text" || t.type === "search" || t.type === "tel" || t.type === "url" || t.type === "password") || e === "textarea" || t.contentEditable === "true"); } - var Gm = He && "documentMode" in document && 11 >= document.documentMode, hn = null, Af = null, ui = null, _f = !1; - function Xo(t, e, l) { + var Gm = Xe && "documentMode" in document && 11 >= document.documentMode, dn = null, _f = null, fi = null, Df = !1; + function Qo(t, e, l) { var a = l.window === l ? l.document : l.nodeType === 9 ? l : l.ownerDocument; - _f || hn == null || hn !== ve(a) || (a = hn, "selectionStart" in a && Ef(a) ? a = { start: a.selectionStart, end: a.selectionEnd } : (a = (a.ownerDocument && a.ownerDocument.defaultView || window).getSelection(), a = { + Df || dn == null || dn !== en(a) || (a = dn, "selectionStart" in a && Af(a) ? a = { start: a.selectionStart, end: a.selectionEnd } : (a = (a.ownerDocument && a.ownerDocument.defaultView || window).getSelection(), a = { anchorNode: a.anchorNode, anchorOffset: a.anchorOffset, focusNode: a.focusNode, focusOffset: a.focusOffset - }), ui && ii(ui, a) || (ui = a, a = Vu(Af, "onSelect"), 0 < a.length && (e = new dn( + }), fi && ui(fi, a) || (fi = a, a = Wu(_f, "onSelect"), 0 < a.length && (e = new on( "onSelect", "select", null, e, l - ), t.push({ event: e, listeners: a }), e.target = hn))); + ), t.push({ event: e, listeners: a }), e.target = dn))); } - function Ra(t, e) { + function Ca(t, e) { var l = {}; return l[t.toLowerCase()] = e.toLowerCase(), l["Webkit" + t] = "webkit" + e, l["Moz" + t] = "moz" + e, l; } - var gn = { - animationend: Ra("Animation", "AnimationEnd"), - animationiteration: Ra("Animation", "AnimationIteration"), - animationstart: Ra("Animation", "AnimationStart"), - transitionrun: Ra("Transition", "TransitionRun"), - transitionstart: Ra("Transition", "TransitionStart"), - transitioncancel: Ra("Transition", "TransitionCancel"), - transitionend: Ra("Transition", "TransitionEnd") - }, Df = {}, Qo = {}; - He && (Qo = document.createElement("div").style, "AnimationEvent" in window || (delete gn.animationend.animation, delete gn.animationiteration.animation, delete gn.animationstart.animation), "TransitionEvent" in window || delete gn.transitionend.transition); - function Ba(t) { - if (Df[t]) return Df[t]; - if (!gn[t]) return t; - var e = gn[t], l; + var mn = { + animationend: Ca("Animation", "AnimationEnd"), + animationiteration: Ca("Animation", "AnimationIteration"), + animationstart: Ca("Animation", "AnimationStart"), + transitionrun: Ca("Transition", "TransitionRun"), + transitionstart: Ca("Transition", "TransitionStart"), + transitioncancel: Ca("Transition", "TransitionCancel"), + transitionend: Ca("Transition", "TransitionEnd") + }, Of = {}, Vo = {}; + Xe && (Vo = document.createElement("div").style, "AnimationEvent" in window || (delete mn.animationend.animation, delete mn.animationiteration.animation, delete mn.animationstart.animation), "TransitionEvent" in window || delete mn.transitionend.transition); + function Ua(t) { + if (Of[t]) return Of[t]; + if (!mn[t]) return t; + var e = mn[t], l; for (l in e) - if (e.hasOwnProperty(l) && l in Qo) - return Df[t] = e[l]; + if (e.hasOwnProperty(l) && l in Vo) + return Of[t] = e[l]; return t; } - var Vo = Ba("animationend"), Zo = Ba("animationiteration"), Ko = Ba("animationstart"), Ym = Ba("transitionrun"), Lm = Ba("transitionstart"), Xm = Ba("transitioncancel"), Jo = Ba("transitionend"), ko = /* @__PURE__ */ new Map(), Of = "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 Zo = Ua("animationend"), Ko = Ua("animationiteration"), Jo = Ua("animationstart"), Ym = Ua("transitionrun"), Lm = Ua("transitionstart"), Xm = Ua("transitioncancel"), ko = Ua("transitionend"), Fo = /* @__PURE__ */ new Map(), Cf = "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( " " ); - Of.push("scrollEnd"); - function al(t, e) { - ko.set(t, e), bl(e, [t]); + Cf.push("scrollEnd"); + function ll(t, e) { + Fo.set(t, e), dl(e, [t]); } - var au = typeof reportError == "function" ? reportError : function(t) { + var ou = typeof reportError == "function" ? reportError : function(t) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var e = new window.ErrorEvent("error", { bubbles: !0, @@ -2275,67 +2275,67 @@ Error generating stack: ` + a.message + ` return; } console.error(t); - }, Ze = [], pn = 0, Cf = 0; - function nu() { - for (var t = pn, e = Cf = pn = 0; e < t; ) { - var l = Ze[e]; - Ze[e++] = null; - var a = Ze[e]; - Ze[e++] = null; - var n = Ze[e]; - Ze[e++] = null; - var i = Ze[e]; - if (Ze[e++] = null, a !== null && n !== null) { + }, Ve = [], hn = 0, Uf = 0; + function ru() { + for (var t = hn, e = Uf = hn = 0; e < t; ) { + var l = Ve[e]; + Ve[e++] = null; + var a = Ve[e]; + Ve[e++] = null; + var n = Ve[e]; + Ve[e++] = null; + var i = Ve[e]; + if (Ve[e++] = null, a !== null && n !== null) { var u = a.pending; u === null ? n.next = n : (n.next = u.next, u.next = n), a.pending = n; } - i !== 0 && Fo(l, n, i); + i !== 0 && Wo(l, n, i); } } - function iu(t, e, l, a) { - Ze[pn++] = t, Ze[pn++] = e, Ze[pn++] = l, Ze[pn++] = a, Cf |= a, t.lanes |= a, t = t.alternate, t !== null && (t.lanes |= a); + function su(t, e, l, a) { + Ve[hn++] = t, Ve[hn++] = e, Ve[hn++] = l, Ve[hn++] = a, Uf |= a, t.lanes |= a, t = t.alternate, t !== null && (t.lanes |= a); } - function Uf(t, e, l, a) { - return iu(t, e, l, a), uu(t); + function Rf(t, e, l, a) { + return su(t, e, l, a), du(t); } - function Na(t, e) { - return iu(t, null, null, e), uu(t); + function Ra(t, e) { + return su(t, null, null, e), du(t); } - function Fo(t, e, l) { + function Wo(t, e, l) { t.lanes |= l; var a = t.alternate; a !== null && (a.lanes |= l); for (var n = !1, i = t.return; i !== null; ) i.childLanes |= l, a = i.alternate, a !== null && (a.childLanes |= l), i.tag === 22 && (t = i.stateNode, t === null || t._visibility & 1 || (n = !0)), t = i, i = i.return; - return t.tag === 3 ? (i = t.stateNode, n && e !== null && (n = 31 - ye(l), t = i.hiddenUpdates, a = t[n], a === null ? t[n] = [e] : a.push(e), e.lane = l | 536870912), i) : null; + return t.tag === 3 ? (i = t.stateNode, n && e !== null && (n = 31 - ue(l), t = i.hiddenUpdates, a = t[n], a === null ? t[n] = [e] : a.push(e), e.lane = l | 536870912), i) : null; } - function uu(t) { - if (50 < Di) - throw Di = 0, Yc = null, Error(s(185)); + function du(t) { + if (50 < Oi) + throw Oi = 0, Lc = null, Error(s(185)); for (var e = t.return; e !== null; ) t = e, e = t.return; return t.tag === 3 ? t.stateNode : null; } - var yn = {}; + var gn = {}; function Qm(t, e, l, a) { this.tag = t, this.key = l, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = e, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = a, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } - function qe(t, e, l, a) { + function He(t, e, l, a) { return new Qm(t, e, l, a); } - function Rf(t) { + function wf(t) { return t = t.prototype, !(!t || !t.isReactComponent); } function Ml(t, e) { var l = t.alternate; - return l === null ? (l = qe( + return l === null ? (l = He( t.tag, e, t.key, t.mode ), l.elementType = t.elementType, l.type = t.type, l.stateNode = t.stateNode, l.alternate = t, t.alternate = l) : (l.pendingProps = e, l.type = t.type, l.flags = 0, l.subtreeFlags = 0, l.deletions = null), l.flags = t.flags & 65011712, l.childLanes = t.childLanes, l.lanes = t.lanes, l.child = t.child, l.memoizedProps = t.memoizedProps, l.memoizedState = t.memoizedState, l.updateQueue = t.updateQueue, e = t.dependencies, l.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }, l.sibling = t.sibling, l.index = t.index, l.ref = t.ref, l.refCleanup = t.refCleanup, l; } - function Wo(t, e) { + function $o(t, e) { t.flags &= 65011714; var l = t.alternate; return l === null ? (t.childLanes = 0, t.lanes = e, t.child = null, t.subtreeFlags = 0, t.memoizedProps = null, t.memoizedState = null, t.updateQueue = null, t.dependencies = null, t.stateNode = null) : (t.childLanes = l.childLanes, t.lanes = l.lanes, t.child = l.child, t.subtreeFlags = 0, t.deletions = null, t.memoizedProps = l.memoizedProps, t.memoizedState = l.memoizedState, t.updateQueue = l.updateQueue, t.type = l.type, e = l.dependencies, t.dependencies = e === null ? null : { @@ -2343,9 +2343,9 @@ Error generating stack: ` + a.message + ` firstContext: e.firstContext }), t; } - function fu(t, e, l, a, n, i) { + function mu(t, e, l, a, n, i) { var u = 0; - if (a = t, typeof t == "function") Rf(t) && (u = 1); + if (a = t, typeof t == "function") wf(t) && (u = 1); else if (typeof t == "string") u = kh( t, @@ -2354,35 +2354,35 @@ Error generating stack: ` + a.message + ` ) ? 26 : t === "html" || t === "head" || t === "body" ? 27 : 5; else t: switch (t) { - case Pt: - return t = qe(31, l, e, n), t.elementType = Pt, t.lanes = i, t; - case yt: + case Ht: + return t = He(31, l, e, n), t.elementType = Ht, t.lanes = i, t; + case ht: return wa(l.children, n, i, e); - case Gt: + case qt: u = 8, n |= 24; break; - case ft: - return t = qe(12, l, e, n | 2), t.elementType = ft, t.lanes = i, t; case Ct: - return t = qe(13, l, e, n), t.elementType = Ct, t.lanes = i, t; - case ht: - return t = qe(19, l, e, n), t.elementType = ht, t.lanes = i, t; + return t = He(12, l, e, n | 2), t.elementType = Ct, t.lanes = i, t; + case _t: + return t = He(13, l, e, n), t.elementType = _t, t.lanes = i, t; + case St: + return t = He(19, l, e, n), t.elementType = St, t.lanes = i, t; default: if (typeof t == "object" && t !== null) switch (t.$$typeof) { - case mt: + case xt: u = 10; break t; - case Yt: + case rt: u = 9; break t; - case Dt: + case At: u = 11; break t; - case $: + case k: u = 14; break t; - case Ut: + case Zt: u = 16, a = null; break t; } @@ -2390,20 +2390,20 @@ Error generating stack: ` + a.message + ` s(130, t === null ? "null" : typeof t, "") ), a = null; } - return e = qe(u, l, e, n), e.elementType = t, e.type = a, e.lanes = i, e; + return e = He(u, l, e, n), e.elementType = t, e.type = a, e.lanes = i, e; } function wa(t, e, l, a) { - return t = qe(7, t, a, e), t.lanes = l, t; + return t = He(7, t, a, e), t.lanes = l, t; } function Bf(t, e, l) { - return t = qe(6, t, null, e), t.lanes = l, t; + return t = He(6, t, null, e), t.lanes = l, t; } - function $o(t) { - var e = qe(18, null, null, 0); + function Io(t) { + var e = He(18, null, null, 0); return e.stateNode = t, e; } function Nf(t, e, l) { - return e = qe( + return e = He( 4, t.children !== null ? t.children : [], t.key, @@ -2414,53 +2414,53 @@ Error generating stack: ` + a.message + ` implementation: t.implementation }, e; } - var Io = /* @__PURE__ */ new WeakMap(); - function Ke(t, e) { + var Po = /* @__PURE__ */ new WeakMap(); + function Ze(t, e) { if (typeof t == "object" && t !== null) { - var l = Io.get(t); + var l = Po.get(t); return l !== void 0 ? l : (e = { value: t, source: e, - stack: Li(e) - }, Io.set(t, e), e); + stack: Xi(e) + }, Po.set(t, e), e); } return { value: t, source: e, - stack: Li(e) + stack: Xi(e) }; } - var vn = [], bn = 0, cu = null, fi = 0, Je = [], ke = 0, Fl = null, sl = 1, dl = ""; + var pn = [], yn = 0, hu = null, ci = 0, Ke = [], Je = 0, Jl = null, hl = 1, gl = ""; function El(t, e) { - vn[bn++] = fi, vn[bn++] = cu, cu = t, fi = e; + pn[yn++] = ci, pn[yn++] = hu, hu = t, ci = e; } - function Po(t, e, l) { - Je[ke++] = sl, Je[ke++] = dl, Je[ke++] = Fl, Fl = t; - var a = sl; - t = dl; - var n = 32 - ye(a) - 1; + function tr(t, e, l) { + Ke[Je++] = hl, Ke[Je++] = gl, Ke[Je++] = Jl, Jl = t; + var a = hl; + t = gl; + var n = 32 - ue(a) - 1; a &= ~(1 << n), l += 1; - var i = 32 - ye(e) + n; + var i = 32 - ue(e) + n; if (30 < i) { var u = n - n % 5; - i = (a & (1 << u) - 1).toString(32), a >>= u, n -= u, sl = 1 << 32 - ye(e) + n | l << n | a, dl = i + t; + i = (a & (1 << u) - 1).toString(32), a >>= u, n -= u, hl = 1 << 32 - ue(e) + n | l << n | a, gl = i + t; } else - sl = 1 << i | l << n | a, dl = t; - } - function wf(t) { - t.return !== null && (El(t, 1), Po(t, 1, 0)); + hl = 1 << i | l << n | a, gl = t; } function Hf(t) { - for (; t === cu; ) - cu = vn[--bn], vn[bn] = null, fi = vn[--bn], vn[bn] = null; - for (; t === Fl; ) - Fl = Je[--ke], Je[ke] = null, dl = Je[--ke], Je[ke] = null, sl = Je[--ke], Je[ke] = null; + t.return !== null && (El(t, 1), tr(t, 1, 0)); + } + function jf(t) { + for (; t === hu; ) + hu = pn[--yn], pn[yn] = null, ci = pn[--yn], pn[yn] = null; + for (; t === Jl; ) + Jl = Ke[--Je], Ke[Je] = null, gl = Ke[--Je], Ke[Je] = null, hl = Ke[--Je], Ke[Je] = null; } - function tr(t, e) { - Je[ke++] = sl, Je[ke++] = dl, Je[ke++] = Fl, sl = e.id, dl = e.overflow, Fl = t; + function er(t, e) { + Ke[Je++] = hl, Ke[Je++] = gl, Ke[Je++] = Jl, hl = e.id, gl = e.overflow, Jl = t; } - var de = null, Lt = null, St = !1, Wl = null, Fe = !1, jf = Error(s(519)); - function $l(t) { + var ge = null, Lt = null, bt = !1, kl = null, ke = !1, qf = Error(s(519)); + function Fl(t) { var e = Error( s( 418, @@ -2468,37 +2468,37 @@ Error generating stack: ` + a.message + ` "" ) ); - throw ci(Ke(e, t)), jf; + throw oi(Ze(e, t)), qf; } - function er(t) { + function lr(t) { var e = t.stateNode, l = t.type, a = t.memoizedProps; - switch (e[te] = t, e[re] = a, l) { + switch (e[It] = t, e[me] = a, l) { case "dialog": - pt("cancel", e), pt("close", e); + dt("cancel", e), dt("close", e); break; case "iframe": case "object": case "embed": - pt("load", e); + dt("load", e); break; case "video": case "audio": - for (l = 0; l < Ci.length; l++) - pt(Ci[l], e); + for (l = 0; l < Ui.length; l++) + dt(Ui[l], e); break; case "source": - pt("error", e); + dt("error", e); break; case "img": case "image": case "link": - pt("error", e), pt("load", e); + dt("error", e), dt("load", e); break; case "details": - pt("toggle", e); + dt("toggle", e); break; case "input": - pt("invalid", e), o( + dt("invalid", e), nu( e, a.value, a.defaultValue, @@ -2510,71 +2510,71 @@ Error generating stack: ` + a.message + ` ); break; case "select": - pt("invalid", e); + dt("invalid", e); break; case "textarea": - pt("invalid", e), H(e, a.value, a.defaultValue, a.children); + dt("invalid", e), w(e, a.value, a.defaultValue, a.children); } - l = a.children, typeof l != "string" && typeof l != "number" && typeof l != "bigint" || e.textContent === "" + l || a.suppressHydrationWarning === !0 || vd(e.textContent, l) ? (a.popover != null && (pt("beforetoggle", e), pt("toggle", e)), a.onScroll != null && pt("scroll", e), a.onScrollEnd != null && pt("scrollend", e), a.onClick != null && (e.onclick = tl), e = !0) : e = !1, e || $l(t, !0); + l = a.children, typeof l != "string" && typeof l != "number" && typeof l != "bigint" || e.textContent === "" + l || a.suppressHydrationWarning === !0 || bd(e.textContent, l) ? (a.popover != null && (dt("beforetoggle", e), dt("toggle", e)), a.onScroll != null && dt("scroll", e), a.onScrollEnd != null && dt("scrollend", e), a.onClick != null && (e.onclick = el), e = !0) : e = !1, e || Fl(t, !0); } - function lr(t) { - for (de = t.return; de; ) - switch (de.tag) { + function ar(t) { + for (ge = t.return; ge; ) + switch (ge.tag) { case 5: case 31: case 13: - Fe = !1; + ke = !1; return; case 27: case 3: - Fe = !0; + ke = !0; return; default: - de = de.return; + ge = ge.return; } } - function xn(t) { - if (t !== de) return !1; - if (!St) return lr(t), St = !0, !1; + function vn(t) { + if (t !== ge) return !1; + if (!bt) return ar(t), bt = !0, !1; var e = t.tag, l; - if ((l = e !== 3 && e !== 27) && ((l = e === 5) && (l = t.type, l = !(l !== "form" && l !== "button") || eo(t.type, t.memoizedProps)), l = !l), l && Lt && $l(t), lr(t), e === 13) { + if ((l = e !== 3 && e !== 27) && ((l = e === 5) && (l = t.type, l = !(l !== "form" && l !== "button") || lo(t.type, t.memoizedProps)), l = !l), l && Lt && Fl(t), ar(t), e === 13) { if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(s(317)); - Lt = _d(t); + Lt = Dd(t); } else if (e === 31) { if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(s(317)); - Lt = _d(t); + Lt = Dd(t); } else - e === 27 ? (e = Lt, sa(t.type) ? (t = uo, uo = null, Lt = t) : Lt = e) : Lt = de ? $e(t.stateNode.nextSibling) : null; + e === 27 ? (e = Lt, oa(t.type) ? (t = fo, fo = null, Lt = t) : Lt = e) : Lt = ge ? We(t.stateNode.nextSibling) : null; return !0; } - function Ha() { - Lt = de = null, St = !1; + function Ba() { + Lt = ge = null, bt = !1; } - function qf() { - var t = Wl; - return t !== null && (Re === null ? Re = t : Re.push.apply( - Re, + function Gf() { + var t = kl; + return t !== null && (Oe === null ? Oe = t : Oe.push.apply( + Oe, t - ), Wl = null), t; + ), kl = null), t; } - function ci(t) { - Wl === null ? Wl = [t] : Wl.push(t); + function oi(t) { + kl === null ? kl = [t] : kl.push(t); } - var Gf = m(null), ja = null, Al = null; - function Il(t, e, l) { - N(Gf, e._currentValue), e._currentValue = l; + var Yf = m(null), Na = null, Al = null; + function Wl(t, e, l) { + B(Yf, e._currentValue), e._currentValue = l; } function _l(t) { - t._currentValue = Gf.current, A(Gf); + t._currentValue = Yf.current, E(Yf); } - function Yf(t, e, l) { + function Lf(t, e, l) { for (; t !== null; ) { var a = t.alternate; if ((t.childLanes & e) !== e ? (t.childLanes |= e, a !== null && (a.childLanes |= e)) : a !== null && (a.childLanes & e) !== e && (a.childLanes |= e), t === l) break; t = t.return; } } - function Lf(t, e, l, a) { + function Xf(t, e, l, a) { var n = t.child; for (n !== null && (n.return = t); n !== null; ) { var i = n.dependencies; @@ -2586,7 +2586,7 @@ Error generating stack: ` + a.message + ` i = n; for (var r = 0; r < e.length; r++) if (c.context === e[r]) { - i.lanes |= l, c = i.alternate, c !== null && (c.lanes |= l), Yf( + i.lanes |= l, c = i.alternate, c !== null && (c.lanes |= l), Lf( i.return, l, t @@ -2597,7 +2597,7 @@ Error generating stack: ` + a.message + ` } } else if (n.tag === 18) { if (u = n.return, u === null) throw Error(s(341)); - u.lanes |= l, i = u.alternate, i !== null && (i.lanes |= l), Yf(u, l, t), u = null; + u.lanes |= l, i = u.alternate, i !== null && (i.lanes |= l), Lf(u, l, t), u = null; } else u = n.child; if (u !== null) u.return = n; else @@ -2615,7 +2615,7 @@ Error generating stack: ` + a.message + ` n = u; } } - function Sn(t, e, l, a) { + function bn(t, e, l, a) { t = null; for (var n = e, i = !1; n !== null; ) { if (!i) { @@ -2627,24 +2627,24 @@ Error generating stack: ` + a.message + ` if (u === null) throw Error(s(387)); if (u = u.memoizedProps, u !== null) { var c = n.type; - je(n.pendingProps.value, u.value) || (t !== null ? t.push(c) : t = [c]); + Ne(n.pendingProps.value, u.value) || (t !== null ? t.push(c) : t = [c]); } - } else if (n === Tt.current) { + } else if (n === vt.current) { if (u = n.alternate, u === null) throw Error(s(387)); - u.memoizedState.memoizedState !== n.memoizedState.memoizedState && (t !== null ? t.push(wi) : t = [wi]); + u.memoizedState.memoizedState !== n.memoizedState.memoizedState && (t !== null ? t.push(Hi) : t = [Hi]); } n = n.return; } - t !== null && Lf( + t !== null && Xf( e, t, l, a ), e.flags |= 262144; } - function ou(t) { + function gu(t) { for (t = t.firstContext; t !== null; ) { - if (!je( + if (!Ne( t.context._currentValue, t.memoizedValue )) @@ -2653,16 +2653,16 @@ Error generating stack: ` + a.message + ` } return !1; } - function qa(t) { - ja = t, Al = null, t = t.dependencies, t !== null && (t.firstContext = null); + function Ha(t) { + Na = t, Al = null, t = t.dependencies, t !== null && (t.firstContext = null); } - function me(t) { - return ar(ja, t); + function pe(t) { + return nr(Na, t); } - function ru(t, e) { - return ja === null && qa(t), ar(t, e); + function pu(t, e) { + return Na === null && Ha(t), nr(t, e); } - function ar(t, e) { + function nr(t, e) { var l = e._currentValue; if (e = { context: e, memoizedValue: l, next: null }, Al === null) { if (t === null) throw Error(s(308)); @@ -2682,31 +2682,31 @@ Error generating stack: ` + a.message + ` return l(); }); }; - }, Zm = S.unstable_scheduleCallback, Km = S.unstable_NormalPriority, ee = { - $$typeof: mt, + }, Zm = S.unstable_scheduleCallback, Km = S.unstable_NormalPriority, Pt = { + $$typeof: xt, Consumer: null, Provider: null, _currentValue: null, _currentValue2: null, _threadCount: 0 }; - function Xf() { + function Qf() { return { controller: new Vm(), data: /* @__PURE__ */ new Map(), refCount: 0 }; } - function oi(t) { + function ri(t) { t.refCount--, t.refCount === 0 && Zm(Km, function() { t.controller.abort(); }); } - var ri = null, Qf = 0, Tn = 0, zn = null; + var si = null, Vf = 0, xn = 0, Sn = null; function Jm(t, e) { - if (ri === null) { - var l = ri = []; - Qf = 0, Tn = Kc(), zn = { + if (si === null) { + var l = si = []; + Vf = 0, xn = Jc(), Sn = { status: "pending", value: void 0, then: function(a) { @@ -2714,13 +2714,13 @@ Error generating stack: ` + a.message + ` } }; } - return Qf++, e.then(nr, nr), e; + return Vf++, e.then(ir, ir), e; } - function nr() { - if (--Qf === 0 && ri !== null) { - zn !== null && (zn.status = "fulfilled"); - var t = ri; - ri = null, Tn = 0, zn = null; + function ir() { + if (--Vf === 0 && si !== null) { + Sn !== null && (Sn.status = "fulfilled"); + var t = si; + si = null, xn = 0, Sn = null; for (var e = 0; e < t.length; e++) (0, t[e])(); } } @@ -2744,37 +2744,37 @@ Error generating stack: ` + a.message + ` } ), a; } - var ir = g.S; - g.S = function(t, e) { - Xs = pe(), typeof e == "object" && e !== null && typeof e.then == "function" && Jm(t, e), ir !== null && ir(t, e); + var ur = p.S; + p.S = function(t, e) { + Qs = de(), typeof e == "object" && e !== null && typeof e.then == "function" && Jm(t, e), ur !== null && ur(t, e); }; - var Ga = m(null); - function Vf() { - var t = Ga.current; - return t !== null ? t : qt.pooledCache; + var ja = m(null); + function Zf() { + var t = ja.current; + return t !== null ? t : jt.pooledCache; } - function su(t, e) { - e === null ? N(Ga, Ga.current) : N(Ga, e.pool); + function yu(t, e) { + e === null ? B(ja, ja.current) : B(ja, e.pool); } - function ur() { - var t = Vf(); - return t === null ? null : { parent: ee._currentValue, pool: t }; + function fr() { + var t = Zf(); + return t === null ? null : { parent: Pt._currentValue, pool: t }; } - var Mn = Error(s(460)), Zf = Error(s(474)), du = Error(s(542)), mu = { then: function() { + var Tn = Error(s(460)), Kf = Error(s(474)), vu = Error(s(542)), bu = { then: function() { } }; - function fr(t) { + function cr(t) { return t = t.status, t === "fulfilled" || t === "rejected"; } - function cr(t, e, l) { - switch (l = t[l], l === void 0 ? t.push(e) : l !== e && (e.then(tl, tl), e = l), e.status) { + function or(t, e, l) { + switch (l = t[l], l === void 0 ? t.push(e) : l !== e && (e.then(el, el), e = l), e.status) { case "fulfilled": return e.value; case "rejected": - throw t = e.reason, rr(t), t; + throw t = e.reason, sr(t), t; default: - if (typeof e.status == "string") e.then(tl, tl); + if (typeof e.status == "string") e.then(el, el); else { - if (t = qt, t !== null && 100 < t.shellSuspendCounter) + if (t = jt, t !== null && 100 < t.shellSuspendCounter) throw Error(s(482)); t = e, t.status = "pending", t.then( function(a) { @@ -2795,420 +2795,420 @@ Error generating stack: ` + a.message + ` case "fulfilled": return e.value; case "rejected": - throw t = e.reason, rr(t), t; + throw t = e.reason, sr(t), t; } - throw La = e, Mn; + throw Ga = e, Tn; } } - function Ya(t) { + function qa(t) { try { var e = t._init; return e(t._payload); } catch (l) { - throw l !== null && typeof l == "object" && typeof l.then == "function" ? (La = l, Mn) : l; + throw l !== null && typeof l == "object" && typeof l.then == "function" ? (Ga = l, Tn) : l; } } - var La = null; - function or() { - if (La === null) throw Error(s(459)); - var t = La; - return La = null, t; + var Ga = null; + function rr() { + if (Ga === null) throw Error(s(459)); + var t = Ga; + return Ga = null, t; } - function rr(t) { - if (t === Mn || t === du) + function sr(t) { + if (t === Tn || t === vu) throw Error(s(483)); } - var En = null, si = 0; - function hu(t) { - var e = si; - return si += 1, En === null && (En = []), cr(En, t, e); + var zn = null, di = 0; + function xu(t) { + var e = di; + return di += 1, zn === null && (zn = []), or(zn, t, e); } - function di(t, e) { + function mi(t, e) { e = e.props.ref, t.ref = e !== void 0 ? e : null; } - function gu(t, e) { - throw e.$$typeof === tt ? Error(s(525)) : (t = Object.prototype.toString.call(e), Error( + function Su(t, e) { + throw e.$$typeof === P ? Error(s(525)) : (t = Object.prototype.toString.call(e), Error( s( 31, t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t ) )); } - function sr(t) { - function e(p, h) { + function dr(t) { + function e(g, h) { if (t) { - var y = p.deletions; - y === null ? (p.deletions = [h], p.flags |= 16) : y.push(h); + var y = g.deletions; + y === null ? (g.deletions = [h], g.flags |= 16) : y.push(h); } } - function l(p, h) { + function l(g, h) { if (!t) return null; for (; h !== null; ) - e(p, h), h = h.sibling; + e(g, h), h = h.sibling; return null; } - function a(p) { - for (var h = /* @__PURE__ */ new Map(); p !== null; ) - p.key !== null ? h.set(p.key, p) : h.set(p.index, p), p = p.sibling; + function a(g) { + for (var h = /* @__PURE__ */ new Map(); g !== null; ) + g.key !== null ? h.set(g.key, g) : h.set(g.index, g), g = g.sibling; return h; } - function n(p, h) { - return p = Ml(p, h), p.index = 0, p.sibling = null, p; + function n(g, h) { + return g = Ml(g, h), g.index = 0, g.sibling = null, g; } - function i(p, h, y) { - return p.index = y, t ? (y = p.alternate, y !== null ? (y = y.index, y < h ? (p.flags |= 67108866, h) : y) : (p.flags |= 67108866, h)) : (p.flags |= 1048576, h); + function i(g, h, y) { + return g.index = y, t ? (y = g.alternate, y !== null ? (y = y.index, y < h ? (g.flags |= 67108866, h) : y) : (g.flags |= 67108866, h)) : (g.flags |= 1048576, h); } - function u(p) { - return t && p.alternate === null && (p.flags |= 67108866), p; + function u(g) { + return t && g.alternate === null && (g.flags |= 67108866), g; } - function c(p, h, y, E) { - return h === null || h.tag !== 6 ? (h = Bf(y, p.mode, E), h.return = p, h) : (h = n(h, y), h.return = p, h); + function c(g, h, y, _) { + return h === null || h.tag !== 6 ? (h = Bf(y, g.mode, _), h.return = g, h) : (h = n(h, y), h.return = g, h); } - function r(p, h, y, E) { + function r(g, h, y, _) { var F = y.type; - return F === yt ? M( - p, + return F === ht ? A( + g, h, y.props.children, - E, + _, y.key - ) : h !== null && (h.elementType === F || typeof F == "object" && F !== null && F.$$typeof === Ut && Ya(F) === h.type) ? (h = n(h, y.props), di(h, y), h.return = p, h) : (h = fu( + ) : h !== null && (h.elementType === F || typeof F == "object" && F !== null && F.$$typeof === Zt && qa(F) === h.type) ? (h = n(h, y.props), mi(h, y), h.return = g, h) : (h = mu( y.type, y.key, y.props, null, - p.mode, - E - ), di(h, y), h.return = p, h); + g.mode, + _ + ), mi(h, y), h.return = g, h); } - function v(p, h, y, E) { - return h === null || h.tag !== 4 || h.stateNode.containerInfo !== y.containerInfo || h.stateNode.implementation !== y.implementation ? (h = Nf(y, p.mode, E), h.return = p, h) : (h = n(h, y.children || []), h.return = p, h); + function v(g, h, y, _) { + return h === null || h.tag !== 4 || h.stateNode.containerInfo !== y.containerInfo || h.stateNode.implementation !== y.implementation ? (h = Nf(y, g.mode, _), h.return = g, h) : (h = n(h, y.children || []), h.return = g, h); } - function M(p, h, y, E, F) { + function A(g, h, y, _, F) { return h === null || h.tag !== 7 ? (h = wa( y, - p.mode, - E, + g.mode, + _, F - ), h.return = p, h) : (h = n(h, y), h.return = p, h); + ), h.return = g, h) : (h = n(h, y), h.return = g, h); } - function O(p, h, y) { + function C(g, h, y) { if (typeof h == "string" && h !== "" || typeof h == "number" || typeof h == "bigint") return h = Bf( "" + h, - p.mode, + g.mode, y - ), h.return = p, h; + ), h.return = g, h; if (typeof h == "object" && h !== null) { switch (h.$$typeof) { - case rt: - return y = fu( + case mt: + return y = mu( h.type, h.key, h.props, null, - p.mode, + g.mode, y - ), di(y, h), y.return = p, y; - case dt: + ), mi(y, h), y.return = g, y; + case nt: return h = Nf( h, - p.mode, + g.mode, y - ), h.return = p, h; - case Ut: - return h = Ya(h), O(p, h, y); + ), h.return = g, h; + case Zt: + return h = qa(h), C(g, h, y); } - if (X(h) || Zt(h)) + if (ne(h) || Yt(h)) return h = wa( h, - p.mode, + g.mode, y, null - ), h.return = p, h; + ), h.return = g, h; if (typeof h.then == "function") - return O(p, hu(h), y); - if (h.$$typeof === mt) - return O( - p, - ru(p, h), + return C(g, xu(h), y); + if (h.$$typeof === xt) + return C( + g, + pu(g, h), y ); - gu(p, h); + Su(g, h); } return null; } - function x(p, h, y, E) { + function b(g, h, y, _) { var F = h !== null ? h.key : null; if (typeof y == "string" && y !== "" || typeof y == "number" || typeof y == "bigint") - return F !== null ? null : c(p, h, "" + y, E); + return F !== null ? null : c(g, h, "" + y, _); if (typeof y == "object" && y !== null) { switch (y.$$typeof) { - case rt: - return y.key === F ? r(p, h, y, E) : null; - case dt: - return y.key === F ? v(p, h, y, E) : null; - case Ut: - return y = Ya(y), x(p, h, y, E); - } - if (X(y) || Zt(y)) - return F !== null ? null : M(p, h, y, E, null); + case mt: + return y.key === F ? r(g, h, y, _) : null; + case nt: + return y.key === F ? v(g, h, y, _) : null; + case Zt: + return y = qa(y), b(g, h, y, _); + } + if (ne(y) || Yt(y)) + return F !== null ? null : A(g, h, y, _, null); if (typeof y.then == "function") - return x( - p, + return b( + g, h, - hu(y), - E + xu(y), + _ ); - if (y.$$typeof === mt) - return x( - p, + if (y.$$typeof === xt) + return b( + g, h, - ru(p, y), - E + pu(g, y), + _ ); - gu(p, y); + Su(g, y); } return null; } - function T(p, h, y, E, F) { - if (typeof E == "string" && E !== "" || typeof E == "number" || typeof E == "bigint") - return p = p.get(y) || null, c(h, p, "" + E, F); - if (typeof E == "object" && E !== null) { - switch (E.$$typeof) { - case rt: - return p = p.get( - E.key === null ? y : E.key - ) || null, r(h, p, E, F); - case dt: - return p = p.get( - E.key === null ? y : E.key - ) || null, v(h, p, E, F); - case Ut: - return E = Ya(E), T( - p, + function T(g, h, y, _, F) { + if (typeof _ == "string" && _ !== "" || typeof _ == "number" || typeof _ == "bigint") + return g = g.get(y) || null, c(h, g, "" + _, F); + if (typeof _ == "object" && _ !== null) { + switch (_.$$typeof) { + case mt: + return g = g.get( + _.key === null ? y : _.key + ) || null, r(h, g, _, F); + case nt: + return g = g.get( + _.key === null ? y : _.key + ) || null, v(h, g, _, F); + case Zt: + return _ = qa(_), T( + g, h, y, - E, + _, F ); } - if (X(E) || Zt(E)) - return p = p.get(y) || null, M(h, p, E, F, null); - if (typeof E.then == "function") + if (ne(_) || Yt(_)) + return g = g.get(y) || null, A(h, g, _, F, null); + if (typeof _.then == "function") return T( - p, + g, h, y, - hu(E), + xu(_), F ); - if (E.$$typeof === mt) + if (_.$$typeof === xt) return T( - p, + g, h, y, - ru(h, E), + pu(h, _), F ); - gu(h, E); + Su(h, _); } return null; } - function Y(p, h, y, E) { - for (var F = null, At = null, V = h, st = h = 0, bt = null; V !== null && st < y.length; st++) { - V.index > st ? (bt = V, V = null) : bt = V.sibling; - var _t = x( - p, + function Y(g, h, y, _) { + for (var F = null, Mt = null, V = h, ft = h = 0, yt = null; V !== null && ft < y.length; ft++) { + V.index > ft ? (yt = V, V = null) : yt = V.sibling; + var Et = b( + g, V, - y[st], - E + y[ft], + _ ); - if (_t === null) { - V === null && (V = bt); + if (Et === null) { + V === null && (V = yt); break; } - t && V && _t.alternate === null && e(p, V), h = i(_t, h, st), At === null ? F = _t : At.sibling = _t, At = _t, V = bt; + t && V && Et.alternate === null && e(g, V), h = i(Et, h, ft), Mt === null ? F = Et : Mt.sibling = Et, Mt = Et, V = yt; } - if (st === y.length) - return l(p, V), St && El(p, st), F; + if (ft === y.length) + return l(g, V), bt && El(g, ft), F; if (V === null) { - for (; st < y.length; st++) - V = O(p, y[st], E), V !== null && (h = i( + for (; ft < y.length; ft++) + V = C(g, y[ft], _), V !== null && (h = i( V, h, - st - ), At === null ? F = V : At.sibling = V, At = V); - return St && El(p, st), F; + ft + ), Mt === null ? F = V : Mt.sibling = V, Mt = V); + return bt && El(g, ft), F; } - for (V = a(V); st < y.length; st++) - bt = T( + for (V = a(V); ft < y.length; ft++) + yt = T( V, - p, - st, - y[st], - E - ), bt !== null && (t && bt.alternate !== null && V.delete( - bt.key === null ? st : bt.key + g, + ft, + y[ft], + _ + ), yt !== null && (t && yt.alternate !== null && V.delete( + yt.key === null ? ft : yt.key ), h = i( - bt, + yt, h, - st - ), At === null ? F = bt : At.sibling = bt, At = bt); - return t && V.forEach(function(pa) { - return e(p, pa); - }), St && El(p, st), F; + ft + ), Mt === null ? F = yt : Mt.sibling = yt, Mt = yt); + return t && V.forEach(function(ha) { + return e(g, ha); + }), bt && El(g, ft), F; } - function I(p, h, y, E) { + function $(g, h, y, _) { if (y == null) throw Error(s(151)); - for (var F = null, At = null, V = h, st = h = 0, bt = null, _t = y.next(); V !== null && !_t.done; st++, _t = y.next()) { - V.index > st ? (bt = V, V = null) : bt = V.sibling; - var pa = x(p, V, _t.value, E); - if (pa === null) { - V === null && (V = bt); + for (var F = null, Mt = null, V = h, ft = h = 0, yt = null, Et = y.next(); V !== null && !Et.done; ft++, Et = y.next()) { + V.index > ft ? (yt = V, V = null) : yt = V.sibling; + var ha = b(g, V, Et.value, _); + if (ha === null) { + V === null && (V = yt); break; } - t && V && pa.alternate === null && e(p, V), h = i(pa, h, st), At === null ? F = pa : At.sibling = pa, At = pa, V = bt; + t && V && ha.alternate === null && e(g, V), h = i(ha, h, ft), Mt === null ? F = ha : Mt.sibling = ha, Mt = ha, V = yt; } - if (_t.done) - return l(p, V), St && El(p, st), F; + if (Et.done) + return l(g, V), bt && El(g, ft), F; if (V === null) { - for (; !_t.done; st++, _t = y.next()) - _t = O(p, _t.value, E), _t !== null && (h = i(_t, h, st), At === null ? F = _t : At.sibling = _t, At = _t); - return St && El(p, st), F; + for (; !Et.done; ft++, Et = y.next()) + Et = C(g, Et.value, _), Et !== null && (h = i(Et, h, ft), Mt === null ? F = Et : Mt.sibling = Et, Mt = Et); + return bt && El(g, ft), F; } - for (V = a(V); !_t.done; st++, _t = y.next()) - _t = T(V, p, st, _t.value, E), _t !== null && (t && _t.alternate !== null && V.delete(_t.key === null ? st : _t.key), h = i(_t, h, st), At === null ? F = _t : At.sibling = _t, At = _t); + for (V = a(V); !Et.done; ft++, Et = y.next()) + Et = T(V, g, ft, Et.value, _), Et !== null && (t && Et.alternate !== null && V.delete(Et.key === null ? ft : Et.key), h = i(Et, h, ft), Mt === null ? F = Et : Mt.sibling = Et, Mt = Et); return t && V.forEach(function(ig) { - return e(p, ig); - }), St && El(p, st), F; + return e(g, ig); + }), bt && El(g, ft), F; } - function jt(p, h, y, E) { - if (typeof y == "object" && y !== null && y.type === yt && y.key === null && (y = y.props.children), typeof y == "object" && y !== null) { + function Nt(g, h, y, _) { + if (typeof y == "object" && y !== null && y.type === ht && y.key === null && (y = y.props.children), typeof y == "object" && y !== null) { switch (y.$$typeof) { - case rt: + case mt: t: { for (var F = y.key; h !== null; ) { if (h.key === F) { - if (F = y.type, F === yt) { + if (F = y.type, F === ht) { if (h.tag === 7) { l( - p, + g, h.sibling - ), E = n( + ), _ = n( h, y.props.children - ), E.return = p, p = E; + ), _.return = g, g = _; break t; } - } else if (h.elementType === F || typeof F == "object" && F !== null && F.$$typeof === Ut && Ya(F) === h.type) { + } else if (h.elementType === F || typeof F == "object" && F !== null && F.$$typeof === Zt && qa(F) === h.type) { l( - p, + g, h.sibling - ), E = n(h, y.props), di(E, y), E.return = p, p = E; + ), _ = n(h, y.props), mi(_, y), _.return = g, g = _; break t; } - l(p, h); + l(g, h); break; - } else e(p, h); + } else e(g, h); h = h.sibling; } - y.type === yt ? (E = wa( + y.type === ht ? (_ = wa( y.props.children, - p.mode, - E, + g.mode, + _, y.key - ), E.return = p, p = E) : (E = fu( + ), _.return = g, g = _) : (_ = mu( y.type, y.key, y.props, null, - p.mode, - E - ), di(E, y), E.return = p, p = E); + g.mode, + _ + ), mi(_, y), _.return = g, g = _); } - return u(p); - case dt: + return u(g); + case nt: t: { for (F = y.key; h !== null; ) { if (h.key === F) if (h.tag === 4 && h.stateNode.containerInfo === y.containerInfo && h.stateNode.implementation === y.implementation) { l( - p, + g, h.sibling - ), E = n(h, y.children || []), E.return = p, p = E; + ), _ = n(h, y.children || []), _.return = g, g = _; break t; } else { - l(p, h); + l(g, h); break; } - else e(p, h); + else e(g, h); h = h.sibling; } - E = Nf(y, p.mode, E), E.return = p, p = E; + _ = Nf(y, g.mode, _), _.return = g, g = _; } - return u(p); - case Ut: - return y = Ya(y), jt( - p, + return u(g); + case Zt: + return y = qa(y), Nt( + g, h, y, - E + _ ); } - if (X(y)) + if (ne(y)) return Y( - p, + g, h, y, - E + _ ); - if (Zt(y)) { - if (F = Zt(y), typeof F != "function") throw Error(s(150)); - return y = F.call(y), I( - p, + if (Yt(y)) { + if (F = Yt(y), typeof F != "function") throw Error(s(150)); + return y = F.call(y), $( + g, h, y, - E + _ ); } if (typeof y.then == "function") - return jt( - p, + return Nt( + g, h, - hu(y), - E + xu(y), + _ ); - if (y.$$typeof === mt) - return jt( - p, + if (y.$$typeof === xt) + return Nt( + g, h, - ru(p, y), - E + pu(g, y), + _ ); - gu(p, y); + Su(g, y); } - return typeof y == "string" && y !== "" || typeof y == "number" || typeof y == "bigint" ? (y = "" + y, h !== null && h.tag === 6 ? (l(p, h.sibling), E = n(h, y), E.return = p, p = E) : (l(p, h), E = Bf(y, p.mode, E), E.return = p, p = E), u(p)) : l(p, h); + return typeof y == "string" && y !== "" || typeof y == "number" || typeof y == "bigint" ? (y = "" + y, h !== null && h.tag === 6 ? (l(g, h.sibling), _ = n(h, y), _.return = g, g = _) : (l(g, h), _ = Bf(y, g.mode, _), _.return = g, g = _), u(g)) : l(g, h); } - return function(p, h, y, E) { + return function(g, h, y, _) { try { - si = 0; - var F = jt( - p, + di = 0; + var F = Nt( + g, h, y, - E + _ ); - return En = null, F; + return zn = null, F; } catch (V) { - if (V === Mn || V === du) throw V; - var At = qe(29, V, null, p.mode); - return At.lanes = E, At.return = p, At; + if (V === Tn || V === vu) throw V; + var Mt = He(29, V, null, g.mode); + return Mt.lanes = _, Mt.return = g, Mt; } }; } - var Xa = sr(!0), dr = sr(!1), Pl = !1; - function Kf(t) { + var Ya = dr(!0), mr = dr(!1), $l = !1; + function Jf(t) { t.updateQueue = { baseState: t.memoizedState, firstBaseUpdate: null, @@ -3217,7 +3217,7 @@ Error generating stack: ` + a.message + ` callbacks: null }; } - function Jf(t, e) { + function kf(t, e) { t = t.updateQueue, e.updateQueue === t && (e.updateQueue = { baseState: t.baseState, firstBaseUpdate: t.firstBaseUpdate, @@ -3226,25 +3226,25 @@ Error generating stack: ` + a.message + ` callbacks: null }); } - function ta(t) { + function Il(t) { return { lane: t, tag: 0, payload: null, callback: null, next: null }; } - function ea(t, e, l) { + function Pl(t, e, l) { var a = t.updateQueue; if (a === null) return null; if (a = a.shared, (Ot & 2) !== 0) { var n = a.pending; - return n === null ? e.next = e : (e.next = n.next, n.next = e), a.pending = e, e = uu(t), Fo(t, null, l), e; + return n === null ? e.next = e : (e.next = n.next, n.next = e), a.pending = e, e = du(t), Wo(t, null, l), e; } - return iu(t, a, e, l), uu(t); + return su(t, a, e, l), du(t); } - function mi(t, e, l) { + function hi(t, e, l) { if (e = e.updateQueue, e !== null && (e = e.shared, (l & 4194048) !== 0)) { var a = e.lanes; - a &= t.pendingLanes, l |= a, e.lanes = l, ln(t, l); + a &= t.pendingLanes, l |= a, e.lanes = l, Te(t, l); } } - function kf(t, e) { + function Ff(t, e) { var l = t.updateQueue, a = t.alternate; if (a !== null && (a = a.updateQueue, l === a)) { var n = null, i = null; @@ -3272,32 +3272,32 @@ Error generating stack: ` + a.message + ` } t = l.lastBaseUpdate, t === null ? l.firstBaseUpdate = e : t.next = e, l.lastBaseUpdate = e; } - var Ff = !1; - function hi() { - if (Ff) { - var t = zn; + var Wf = !1; + function gi() { + if (Wf) { + var t = Sn; if (t !== null) throw t; } } - function gi(t, e, l, a) { - Ff = !1; + function pi(t, e, l, a) { + Wf = !1; var n = t.updateQueue; - Pl = !1; + $l = !1; var i = n.firstBaseUpdate, u = n.lastBaseUpdate, c = n.shared.pending; if (c !== null) { n.shared.pending = null; var r = c, v = r.next; r.next = null, u === null ? i = v : u.next = v, u = r; - var M = t.alternate; - M !== null && (M = M.updateQueue, c = M.lastBaseUpdate, c !== u && (c === null ? M.firstBaseUpdate = v : c.next = v, M.lastBaseUpdate = r)); + var A = t.alternate; + A !== null && (A = A.updateQueue, c = A.lastBaseUpdate, c !== u && (c === null ? A.firstBaseUpdate = v : c.next = v, A.lastBaseUpdate = r)); } if (i !== null) { - var O = n.baseState; - u = 0, M = v = r = null, c = i; + var C = n.baseState; + u = 0, A = v = r = null, c = i; do { - var x = c.lane & -536870913, T = x !== c.lane; - if (T ? (vt & x) === x : (a & x) === x) { - x !== 0 && x === Tn && (Ff = !0), M !== null && (M = M.next = { + var b = c.lane & -536870913, T = b !== c.lane; + if (T ? (pt & b) === b : (a & b) === b) { + b !== 0 && b === xn && (Wf = !0), A !== null && (A = A.next = { lane: 0, tag: c.tag, payload: c.payload, @@ -3305,89 +3305,89 @@ Error generating stack: ` + a.message + ` next: null }); t: { - var Y = t, I = c; - x = e; - var jt = l; - switch (I.tag) { + var Y = t, $ = c; + b = e; + var Nt = l; + switch ($.tag) { case 1: - if (Y = I.payload, typeof Y == "function") { - O = Y.call(jt, O, x); + if (Y = $.payload, typeof Y == "function") { + C = Y.call(Nt, C, b); break t; } - O = Y; + C = Y; break t; case 3: Y.flags = Y.flags & -65537 | 128; case 0: - if (Y = I.payload, x = typeof Y == "function" ? Y.call(jt, O, x) : Y, x == null) break t; - O = w({}, O, x); + if (Y = $.payload, b = typeof Y == "function" ? Y.call(Nt, C, b) : Y, b == null) break t; + C = H({}, C, b); break t; case 2: - Pl = !0; + $l = !0; } } - x = c.callback, x !== null && (t.flags |= 64, T && (t.flags |= 8192), T = n.callbacks, T === null ? n.callbacks = [x] : T.push(x)); + b = c.callback, b !== null && (t.flags |= 64, T && (t.flags |= 8192), T = n.callbacks, T === null ? n.callbacks = [b] : T.push(b)); } else T = { - lane: x, + lane: b, tag: c.tag, payload: c.payload, callback: c.callback, next: null - }, M === null ? (v = M = T, r = O) : M = M.next = T, u |= x; + }, A === null ? (v = A = T, r = C) : A = A.next = T, u |= b; if (c = c.next, c === null) { if (c = n.shared.pending, c === null) break; T = c, c = T.next, T.next = null, n.lastBaseUpdate = T, n.shared.pending = null; } } while (!0); - M === null && (r = O), n.baseState = r, n.firstBaseUpdate = v, n.lastBaseUpdate = M, i === null && (n.shared.lanes = 0), ua |= u, t.lanes = u, t.memoizedState = O; + A === null && (r = C), n.baseState = r, n.firstBaseUpdate = v, n.lastBaseUpdate = A, i === null && (n.shared.lanes = 0), na |= u, t.lanes = u, t.memoizedState = C; } } - function mr(t, e) { + function hr(t, e) { if (typeof t != "function") throw Error(s(191, t)); t.call(e); } - function hr(t, e) { + function gr(t, e) { var l = t.callbacks; if (l !== null) for (t.callbacks = null, t = 0; t < l.length; t++) - mr(l[t], e); - } - var An = m(null), pu = m(0); - function gr(t, e) { - t = Hl, N(pu, t), N(An, e), Hl = t | e.baseLanes; + hr(l[t], e); } - function Wf() { - N(pu, Hl), N(An, An.current); + var Mn = m(null), Tu = m(0); + function pr(t, e) { + t = Hl, B(Tu, t), B(Mn, e), Hl = t | e.baseLanes; } function $f() { - Hl = pu.current, A(An), A(pu); + B(Tu, Hl), B(Mn, Mn.current); + } + function If() { + Hl = Tu.current, E(Mn), E(Tu); } - var Ge = m(null), We = null; - function la(t) { + var je = m(null), Fe = null; + function ta(t) { var e = t.alternate; - N($t, $t.current & 1), N(Ge, t), We === null && (e === null || An.current !== null || e.memoizedState !== null) && (We = t); + B(Wt, Wt.current & 1), B(je, t), Fe === null && (e === null || Mn.current !== null || e.memoizedState !== null) && (Fe = t); } - function If(t) { - N($t, $t.current), N(Ge, t), We === null && (We = t); + function Pf(t) { + B(Wt, Wt.current), B(je, t), Fe === null && (Fe = t); } - function pr(t) { - t.tag === 22 ? (N($t, $t.current), N(Ge, t), We === null && (We = t)) : aa(); + function yr(t) { + t.tag === 22 ? (B(Wt, Wt.current), B(je, t), Fe === null && (Fe = t)) : ea(); } - function aa() { - N($t, $t.current), N(Ge, Ge.current); + function ea() { + B(Wt, Wt.current), B(je, je.current); } - function Ye(t) { - A(Ge), We === t && (We = null), A($t); + function qe(t) { + E(je), Fe === t && (Fe = null), E(Wt); } - var $t = m(0); - function yu(t) { + var Wt = m(0); + function zu(t) { for (var e = t; e !== null; ) { if (e.tag === 13) { var l = e.memoizedState; - if (l !== null && (l = l.dehydrated, l === null || no(l) || io(l))) + if (l !== null && (l = l.dehydrated, l === null || io(l) || uo(l))) return e; } else if (e.tag === 19 && (e.memoizedProps.revealOrder === "forwards" || e.memoizedProps.revealOrder === "backwards" || e.memoizedProps.revealOrder === "unstable_legacy-backwards" || e.memoizedProps.revealOrder === "together")) { if ((e.flags & 128) !== 0) return e; @@ -3404,63 +3404,63 @@ Error generating stack: ` + a.message + ` } return null; } - var Dl = 0, ot = null, wt = null, le = null, vu = !1, _n = !1, Qa = !1, bu = 0, pi = 0, Dn = null, Fm = 0; + var Dl = 0, ut = null, wt = null, te = null, Mu = !1, En = !1, La = !1, Eu = 0, yi = 0, An = null, Fm = 0; function Jt() { throw Error(s(321)); } - function Pf(t, e) { + function tc(t, e) { if (e === null) return !1; for (var l = 0; l < e.length && l < t.length; l++) - if (!je(t[l], e[l])) return !1; + if (!Ne(t[l], e[l])) return !1; return !0; } - function tc(t, e, l, a, n, i) { - return Dl = i, ot = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, g.H = t === null || t.memoizedState === null ? Pr : gc, Qa = !1, i = l(a, n), Qa = !1, _n && (i = vr( + function ec(t, e, l, a, n, i) { + return Dl = i, ut = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, p.H = t === null || t.memoizedState === null ? ts : pc, La = !1, i = l(a, n), La = !1, En && (i = br( e, l, a, n - )), yr(t), i; + )), vr(t), i; } - function yr(t) { - g.H = bi; + function vr(t) { + p.H = xi; var e = wt !== null && wt.next !== null; - if (Dl = 0, le = wt = ot = null, vu = !1, pi = 0, Dn = null, e) throw Error(s(300)); - t === null || ae || (t = t.dependencies, t !== null && ou(t) && (ae = !0)); + if (Dl = 0, te = wt = ut = null, Mu = !1, yi = 0, An = null, e) throw Error(s(300)); + t === null || ee || (t = t.dependencies, t !== null && gu(t) && (ee = !0)); } - function vr(t, e, l, a) { - ot = t; + function br(t, e, l, a) { + ut = t; var n = 0; do { - if (_n && (Dn = null), pi = 0, _n = !1, 25 <= n) throw Error(s(301)); - if (n += 1, le = wt = null, t.updateQueue != null) { + if (En && (An = null), yi = 0, En = !1, 25 <= n) throw Error(s(301)); + if (n += 1, te = wt = null, t.updateQueue != null) { var i = t.updateQueue; i.lastEffect = null, i.events = null, i.stores = null, i.memoCache != null && (i.memoCache.index = 0); } - g.H = ts, i = e(l, a); - } while (_n); + p.H = es, i = e(l, a); + } while (En); return i; } function Wm() { - var t = g.H, e = t.useState()[0]; - return e = typeof e.then == "function" ? yi(e) : e, t = t.useState()[0], (wt !== null ? wt.memoizedState : null) !== t && (ot.flags |= 1024), e; + var t = p.H, e = t.useState()[0]; + return e = typeof e.then == "function" ? vi(e) : e, t = t.useState()[0], (wt !== null ? wt.memoizedState : null) !== t && (ut.flags |= 1024), e; } - function ec() { - var t = bu !== 0; - return bu = 0, t; + function lc() { + var t = Eu !== 0; + return Eu = 0, t; } - function lc(t, e, l) { + function ac(t, e, l) { e.updateQueue = t.updateQueue, e.flags &= -2053, t.lanes &= ~l; } - function ac(t) { - if (vu) { + function nc(t) { + if (Mu) { for (t = t.memoizedState; t !== null; ) { var e = t.queue; e !== null && (e.pending = null), t = t.next; } - vu = !1; + Mu = !1; } - Dl = 0, le = wt = ot = null, _n = !1, pi = bu = 0, Dn = null; + Dl = 0, te = wt = ut = null, En = !1, yi = Eu = 0, An = null; } function Me() { var t = { @@ -3470,47 +3470,47 @@ Error generating stack: ` + a.message + ` queue: null, next: null }; - return le === null ? ot.memoizedState = le = t : le = le.next = t, le; + return te === null ? ut.memoizedState = te = t : te = te.next = t, te; } - function It() { + function $t() { if (wt === null) { - var t = ot.alternate; + var t = ut.alternate; t = t !== null ? t.memoizedState : null; } else t = wt.next; - var e = le === null ? ot.memoizedState : le.next; + var e = te === null ? ut.memoizedState : te.next; if (e !== null) - le = e, wt = t; + te = e, wt = t; else { if (t === null) - throw ot.alternate === null ? Error(s(467)) : Error(s(310)); + throw ut.alternate === null ? Error(s(467)) : Error(s(310)); wt = t, t = { memoizedState: wt.memoizedState, baseState: wt.baseState, baseQueue: wt.baseQueue, queue: wt.queue, next: null - }, le === null ? ot.memoizedState = le = t : le = le.next = t; + }, te === null ? ut.memoizedState = te = t : te = te.next = t; } - return le; + return te; } - function xu() { + function Au() { return { lastEffect: null, events: null, stores: null, memoCache: null }; } - function yi(t) { - var e = pi; - return pi += 1, Dn === null && (Dn = []), t = cr(Dn, t, e), e = ot, (le === null ? e.memoizedState : le.next) === null && (e = e.alternate, g.H = e === null || e.memoizedState === null ? Pr : gc), t; + function vi(t) { + var e = yi; + return yi += 1, An === null && (An = []), t = or(An, t, e), e = ut, (te === null ? e.memoizedState : te.next) === null && (e = e.alternate, p.H = e === null || e.memoizedState === null ? ts : pc), t; } - function Su(t) { + function _u(t) { if (t !== null && typeof t == "object") { - if (typeof t.then == "function") return yi(t); - if (t.$$typeof === mt) return me(t); + if (typeof t.then == "function") return vi(t); + if (t.$$typeof === xt) return pe(t); } throw Error(s(438, String(t))); } - function nc(t) { - var e = null, l = ot.updateQueue; + function ic(t) { + var e = null, l = ut.updateQueue; if (l !== null && (e = l.memoCache), e == null) { - var a = ot.alternate; + var a = ut.alternate; a !== null && (a = a.updateQueue, a !== null && (a = a.memoCache, a != null && (e = { data: a.data.map(function(n) { return n.slice(); @@ -3518,19 +3518,19 @@ Error generating stack: ` + a.message + ` index: 0 }))); } - if (e == null && (e = { data: [], index: 0 }), l === null && (l = xu(), ot.updateQueue = l), l.memoCache = e, l = e.data[e.index], l === void 0) + if (e == null && (e = { data: [], index: 0 }), l === null && (l = Au(), ut.updateQueue = l), l.memoCache = e, l = e.data[e.index], l === void 0) for (l = e.data[e.index] = Array(t), a = 0; a < t; a++) - l[a] = Ft; + l[a] = be; return e.index++, l; } function Ol(t, e) { return typeof e == "function" ? e(t) : e; } - function Tu(t) { - var e = It(); - return ic(e, wt, t); + function Du(t) { + var e = $t(); + return uc(e, wt, t); } - function ic(t, e, l) { + function uc(t, e, l) { var a = t.queue; if (a === null) throw Error(s(311)); a.lastRenderedReducer = l; @@ -3545,12 +3545,12 @@ Error generating stack: ` + a.message + ` if (i = t.baseState, n === null) t.memoizedState = i; else { e = n.next; - var c = u = null, r = null, v = e, M = !1; + var c = u = null, r = null, v = e, A = !1; do { - var O = v.lane & -536870913; - if (O !== v.lane ? (vt & O) === O : (Dl & O) === O) { - var x = v.revertLane; - if (x === 0) + var C = v.lane & -536870913; + if (C !== v.lane ? (pt & C) === C : (Dl & C) === C) { + var b = v.revertLane; + if (b === 0) r !== null && (r = r.next = { lane: 0, revertLane: 0, @@ -3559,12 +3559,12 @@ Error generating stack: ` + a.message + ` hasEagerState: v.hasEagerState, eagerState: v.eagerState, next: null - }), O === Tn && (M = !0); - else if ((Dl & x) === x) { - v = v.next, x === Tn && (M = !0); + }), C === xn && (A = !0); + else if ((Dl & b) === b) { + v = v.next, b === xn && (A = !0); continue; } else - O = { + C = { lane: 0, revertLane: v.revertLane, gesture: null, @@ -3572,28 +3572,28 @@ Error generating stack: ` + a.message + ` hasEagerState: v.hasEagerState, eagerState: v.eagerState, next: null - }, r === null ? (c = r = O, u = i) : r = r.next = O, ot.lanes |= x, ua |= x; - O = v.action, Qa && l(i, O), i = v.hasEagerState ? v.eagerState : l(i, O); + }, r === null ? (c = r = C, u = i) : r = r.next = C, ut.lanes |= b, na |= b; + C = v.action, La && l(i, C), i = v.hasEagerState ? v.eagerState : l(i, C); } else - x = { - lane: O, + b = { + lane: C, revertLane: v.revertLane, gesture: v.gesture, action: v.action, hasEagerState: v.hasEagerState, eagerState: v.eagerState, next: null - }, r === null ? (c = r = x, u = i) : r = r.next = x, ot.lanes |= O, ua |= O; + }, r === null ? (c = r = b, u = i) : r = r.next = b, ut.lanes |= C, na |= C; v = v.next; } while (v !== null && v !== e); - if (r === null ? u = i : r.next = c, !je(i, t.memoizedState) && (ae = !0, M && (l = zn, l !== null))) + if (r === null ? u = i : r.next = c, !Ne(i, t.memoizedState) && (ee = !0, A && (l = Sn, l !== null))) throw l; t.memoizedState = i, t.baseState = u, t.baseQueue = r, a.lastRenderedState = i; } return n === null && (a.lanes = 0), [t.memoizedState, a.dispatch]; } - function uc(t) { - var e = It(), l = e.queue; + function fc(t) { + var e = $t(), l = e.queue; if (l === null) throw Error(s(311)); l.lastRenderedReducer = t; var a = l.dispatch, n = l.pending, i = e.memoizedState; @@ -3603,27 +3603,27 @@ Error generating stack: ` + a.message + ` do i = t(i, u.action), u = u.next; while (u !== n); - je(i, e.memoizedState) || (ae = !0), e.memoizedState = i, e.baseQueue === null && (e.baseState = i), l.lastRenderedState = i; + Ne(i, e.memoizedState) || (ee = !0), e.memoizedState = i, e.baseQueue === null && (e.baseState = i), l.lastRenderedState = i; } return [i, a]; } - function br(t, e, l) { - var a = ot, n = It(), i = St; + function xr(t, e, l) { + var a = ut, n = $t(), i = bt; if (i) { if (l === void 0) throw Error(s(407)); l = l(); } else l = e(); - var u = !je( + var u = !Ne( (wt || n).memoizedState, l ); - if (u && (n.memoizedState = l, ae = !0), n = n.queue, oc(Tr.bind(null, a, n, t), [ + if (u && (n.memoizedState = l, ee = !0), n = n.queue, rc(zr.bind(null, a, n, t), [ t - ]), n.getSnapshot !== e || u || le !== null && le.memoizedState.tag & 1) { - if (a.flags |= 2048, On( + ]), n.getSnapshot !== e || u || te !== null && te.memoizedState.tag & 1) { + if (a.flags |= 2048, _n( 9, { destroy: void 0 }, - Sr.bind( + Tr.bind( null, a, n, @@ -3631,46 +3631,46 @@ Error generating stack: ` + a.message + ` e ), null - ), qt === null) throw Error(s(349)); - i || (Dl & 127) !== 0 || xr(a, e, l); + ), jt === null) throw Error(s(349)); + i || (Dl & 127) !== 0 || Sr(a, e, l); } return l; } - function xr(t, e, l) { - t.flags |= 16384, t = { getSnapshot: e, value: l }, e = ot.updateQueue, e === null ? (e = xu(), ot.updateQueue = e, e.stores = [t]) : (l = e.stores, l === null ? e.stores = [t] : l.push(t)); + function Sr(t, e, l) { + t.flags |= 16384, t = { getSnapshot: e, value: l }, e = ut.updateQueue, e === null ? (e = Au(), ut.updateQueue = e, e.stores = [t]) : (l = e.stores, l === null ? e.stores = [t] : l.push(t)); } - function Sr(t, e, l, a) { - e.value = l, e.getSnapshot = a, zr(e) && Mr(t); + function Tr(t, e, l, a) { + e.value = l, e.getSnapshot = a, Mr(e) && Er(t); } - function Tr(t, e, l) { + function zr(t, e, l) { return l(function() { - zr(e) && Mr(t); + Mr(e) && Er(t); }); } - function zr(t) { + function Mr(t) { var e = t.getSnapshot; t = t.value; try { var l = e(); - return !je(t, l); + return !Ne(t, l); } catch { return !0; } } - function Mr(t) { - var e = Na(t, 2); - e !== null && Be(e, t, 2); + function Er(t) { + var e = Ra(t, 2); + e !== null && Ce(e, t, 2); } - function fc(t) { + function cc(t) { var e = Me(); if (typeof t == "function") { var l = t; - if (t = l(), Qa) { - Ee(!0); + if (t = l(), La) { + ul(!0); try { l(); } finally { - Ee(!1); + ul(!1); } } } @@ -3682,15 +3682,15 @@ Error generating stack: ` + a.message + ` lastRenderedState: t }, e; } - function Er(t, e, l, a) { - return t.baseState = l, ic( + function Ar(t, e, l, a) { + return t.baseState = l, uc( t, wt, typeof a == "function" ? a : Ol ); } function $m(t, e, l, a, n) { - if (Eu(t)) throw Error(s(485)); + if (Uu(t)) throw Error(s(485)); if (t = e.action, t !== null) { var i = { payload: n, @@ -3705,74 +3705,74 @@ Error generating stack: ` + a.message + ` i.listeners.push(u); } }; - g.T !== null ? l(!0) : i.isTransition = !1, a(i), l = e.pending, l === null ? (i.next = e.pending = i, Ar(e, i)) : (i.next = l.next, e.pending = l.next = i); + p.T !== null ? l(!0) : i.isTransition = !1, a(i), l = e.pending, l === null ? (i.next = e.pending = i, _r(e, i)) : (i.next = l.next, e.pending = l.next = i); } } - function Ar(t, e) { + function _r(t, e) { var l = e.action, a = e.payload, n = t.state; if (e.isTransition) { - var i = g.T, u = {}; - g.T = u; + var i = p.T, u = {}; + p.T = u; try { - var c = l(n, a), r = g.S; - r !== null && r(u, c), _r(t, e, c); + var c = l(n, a), r = p.S; + r !== null && r(u, c), Dr(t, e, c); } catch (v) { - cc(t, e, v); + oc(t, e, v); } finally { - i !== null && u.types !== null && (i.types = u.types), g.T = i; + i !== null && u.types !== null && (i.types = u.types), p.T = i; } } else try { - i = l(n, a), _r(t, e, i); + i = l(n, a), Dr(t, e, i); } catch (v) { - cc(t, e, v); + oc(t, e, v); } } - function _r(t, e, l) { + function Dr(t, e, l) { l !== null && typeof l == "object" && typeof l.then == "function" ? l.then( function(a) { - Dr(t, e, a); + Or(t, e, a); }, function(a) { - return cc(t, e, a); + return oc(t, e, a); } - ) : Dr(t, e, l); + ) : Or(t, e, l); } - function Dr(t, e, l) { - e.status = "fulfilled", e.value = l, Or(e), t.state = l, e = t.pending, e !== null && (l = e.next, l === e ? t.pending = null : (l = l.next, e.next = l, Ar(t, l))); + function Or(t, e, l) { + e.status = "fulfilled", e.value = l, Cr(e), t.state = l, e = t.pending, e !== null && (l = e.next, l === e ? t.pending = null : (l = l.next, e.next = l, _r(t, l))); } - function cc(t, e, l) { + function oc(t, e, l) { var a = t.pending; if (t.pending = null, a !== null) { a = a.next; do - e.status = "rejected", e.reason = l, Or(e), e = e.next; + e.status = "rejected", e.reason = l, Cr(e), e = e.next; while (e !== a); } t.action = null; } - function Or(t) { + function Cr(t) { t = t.listeners; for (var e = 0; e < t.length; e++) (0, t[e])(); } - function Cr(t, e) { + function Ur(t, e) { return e; } - function Ur(t, e) { - if (St) { - var l = qt.formState; + function Rr(t, e) { + if (bt) { + var l = jt.formState; if (l !== null) { t: { - var a = ot; - if (St) { + var a = ut; + if (bt) { if (Lt) { e: { - for (var n = Lt, i = Fe; n.nodeType !== 8; ) { + for (var n = Lt, i = ke; n.nodeType !== 8; ) { if (!i) { n = null; break e; } - if (n = $e( + if (n = We( n.nextSibling ), n === null) { n = null; @@ -3782,13 +3782,13 @@ Error generating stack: ` + a.message + ` i = n.data, n = i === "F!" || i === "F" ? n : null; } if (n) { - Lt = $e( + Lt = We( n.nextSibling ), a = n.data === "F!"; break t; } } - $l(a); + Fl(a); } a = !1; } @@ -3799,15 +3799,15 @@ Error generating stack: ` + a.message + ` pending: null, lanes: 0, dispatch: null, - lastRenderedReducer: Cr, + lastRenderedReducer: Ur, lastRenderedState: e - }, l.queue = a, l = Wr.bind( + }, l.queue = a, l = $r.bind( null, - ot, + ut, a - ), a.dispatch = l, a = fc(!1), i = hc.bind( + ), a.dispatch = l, a = cc(!1), i = gc.bind( null, - ot, + ut, !1, a.queue ), a = Me(), n = { @@ -3817,31 +3817,31 @@ Error generating stack: ` + a.message + ` pending: null }, a.queue = n, l = $m.bind( null, - ot, + ut, n, i, l ), n.dispatch = l, a.memoizedState = t, [e, l, !1]; } - function Rr(t) { - var e = It(); + function wr(t) { + var e = $t(); return Br(e, wt, t); } function Br(t, e, l) { - if (e = ic( + if (e = uc( t, e, - Cr - )[0], t = Tu(Ol)[0], typeof e == "object" && e !== null && typeof e.then == "function") + Ur + )[0], t = Du(Ol)[0], typeof e == "object" && e !== null && typeof e.then == "function") try { - var a = yi(e); + var a = vi(e); } catch (u) { - throw u === Mn ? du : u; + throw u === Tn ? vu : u; } else a = e; - e = It(); + e = $t(); var n = e.queue, i = n.dispatch; - return l !== e.memoizedState && (ot.flags |= 2048, On( + return l !== e.memoizedState && (ut.flags |= 2048, _n( 9, { destroy: void 0 }, Im.bind(null, n, l), @@ -3852,69 +3852,69 @@ Error generating stack: ` + a.message + ` t.action = e; } function Nr(t) { - var e = It(), l = wt; + var e = $t(), l = wt; if (l !== null) return Br(e, l, t); - It(), e = e.memoizedState, l = It(); + $t(), e = e.memoizedState, l = $t(); var a = l.queue.dispatch; return l.memoizedState = t, [e, a, !1]; } - function On(t, e, l, a) { - return t = { tag: t, create: l, deps: a, inst: e, next: null }, e = ot.updateQueue, e === null && (e = xu(), ot.updateQueue = e), l = e.lastEffect, l === null ? e.lastEffect = t.next = t : (a = l.next, l.next = t, t.next = a, e.lastEffect = t), t; + function _n(t, e, l, a) { + return t = { tag: t, create: l, deps: a, inst: e, next: null }, e = ut.updateQueue, e === null && (e = Au(), ut.updateQueue = e), l = e.lastEffect, l === null ? e.lastEffect = t.next = t : (a = l.next, l.next = t, t.next = a, e.lastEffect = t), t; } - function wr() { - return It().memoizedState; + function Hr() { + return $t().memoizedState; } - function zu(t, e, l, a) { + function Ou(t, e, l, a) { var n = Me(); - ot.flags |= t, n.memoizedState = On( + ut.flags |= t, n.memoizedState = _n( 1 | e, { destroy: void 0 }, l, a === void 0 ? null : a ); } - function Mu(t, e, l, a) { - var n = It(); + function Cu(t, e, l, a) { + var n = $t(); a = a === void 0 ? null : a; var i = n.memoizedState.inst; - wt !== null && a !== null && Pf(a, wt.memoizedState.deps) ? n.memoizedState = On(e, i, l, a) : (ot.flags |= t, n.memoizedState = On( + wt !== null && a !== null && tc(a, wt.memoizedState.deps) ? n.memoizedState = _n(e, i, l, a) : (ut.flags |= t, n.memoizedState = _n( 1 | e, i, l, a )); } - function Hr(t, e) { - zu(8390656, 8, t, e); + function jr(t, e) { + Ou(8390656, 8, t, e); } - function oc(t, e) { - Mu(2048, 8, t, e); + function rc(t, e) { + Cu(2048, 8, t, e); } function Pm(t) { - ot.flags |= 4; - var e = ot.updateQueue; + ut.flags |= 4; + var e = ut.updateQueue; if (e === null) - e = xu(), ot.updateQueue = e, e.events = [t]; + e = Au(), ut.updateQueue = e, e.events = [t]; else { var l = e.events; l === null ? e.events = [t] : l.push(t); } } - function jr(t) { - var e = It().memoizedState; + function qr(t) { + var e = $t().memoizedState; return Pm({ ref: e, nextImpl: t }), function() { if ((Ot & 2) !== 0) throw Error(s(440)); return e.impl.apply(void 0, arguments); }; } - function qr(t, e) { - return Mu(4, 2, t, e); - } function Gr(t, e) { - return Mu(4, 4, t, e); + return Cu(4, 2, t, e); } function Yr(t, e) { + return Cu(4, 4, t, e); + } + function Lr(t, e) { if (typeof e == "function") { t = t(); var l = e(t); @@ -3927,104 +3927,104 @@ Error generating stack: ` + a.message + ` e.current = null; }; } - function Lr(t, e, l) { - l = l != null ? l.concat([t]) : null, Mu(4, 4, Yr.bind(null, e, t), l); + function Xr(t, e, l) { + l = l != null ? l.concat([t]) : null, Cu(4, 4, Lr.bind(null, e, t), l); } - function rc() { + function sc() { } - function Xr(t, e) { - var l = It(); + function Qr(t, e) { + var l = $t(); e = e === void 0 ? null : e; var a = l.memoizedState; - return e !== null && Pf(e, a[1]) ? a[0] : (l.memoizedState = [t, e], t); + return e !== null && tc(e, a[1]) ? a[0] : (l.memoizedState = [t, e], t); } - function Qr(t, e) { - var l = It(); + function Vr(t, e) { + var l = $t(); e = e === void 0 ? null : e; var a = l.memoizedState; - if (e !== null && Pf(e, a[1])) + if (e !== null && tc(e, a[1])) return a[0]; - if (a = t(), Qa) { - Ee(!0); + if (a = t(), La) { + ul(!0); try { t(); } finally { - Ee(!1); + ul(!1); } } return l.memoizedState = [a, e], a; } - function sc(t, e, l) { - return l === void 0 || (Dl & 1073741824) !== 0 && (vt & 261930) === 0 ? t.memoizedState = e : (t.memoizedState = l, t = Vs(), ot.lanes |= t, ua |= t, l); + function dc(t, e, l) { + return l === void 0 || (Dl & 1073741824) !== 0 && (pt & 261930) === 0 ? t.memoizedState = e : (t.memoizedState = l, t = Zs(), ut.lanes |= t, na |= t, l); } - function Vr(t, e, l, a) { - return je(l, e) ? l : An.current !== null ? (t = sc(t, l, a), je(t, e) || (ae = !0), t) : (Dl & 42) === 0 || (Dl & 1073741824) !== 0 && (vt & 261930) === 0 ? (ae = !0, t.memoizedState = l) : (t = Vs(), ot.lanes |= t, ua |= t, e); + function Zr(t, e, l, a) { + return Ne(l, e) ? l : Mn.current !== null ? (t = dc(t, l, a), Ne(t, e) || (ee = !0), t) : (Dl & 42) === 0 || (Dl & 1073741824) !== 0 && (pt & 261930) === 0 ? (ee = !0, t.memoizedState = l) : (t = Zs(), ut.lanes |= t, na |= t, e); } - function Zr(t, e, l, a, n) { - var i = U.p; - U.p = i !== 0 && 8 > i ? i : 8; - var u = g.T, c = {}; - g.T = c, hc(t, !1, e, l); + function Kr(t, e, l, a, n) { + var i = M.p; + M.p = i !== 0 && 8 > i ? i : 8; + var u = p.T, c = {}; + p.T = c, gc(t, !1, e, l); try { - var r = n(), v = g.S; + var r = n(), v = p.S; if (v !== null && v(c, r), r !== null && typeof r == "object" && typeof r.then == "function") { - var M = km( + var A = km( r, a ); - vi( + bi( t, e, - M, - Qe(t) + A, + Le(t) ); } else - vi( + bi( t, e, a, - Qe(t) + Le(t) ); - } catch (O) { - vi( + } catch (C) { + bi( t, e, { then: function() { - }, status: "rejected", reason: O }, - Qe() + }, status: "rejected", reason: C }, + Le() ); } finally { - U.p = i, u !== null && c.types !== null && (u.types = c.types), g.T = u; + M.p = i, u !== null && c.types !== null && (u.types = c.types), p.T = u; } } function th() { } - function dc(t, e, l, a) { + function mc(t, e, l, a) { if (t.tag !== 5) throw Error(s(476)); - var n = Kr(t).queue; - Zr( + var n = Jr(t).queue; + Kr( t, n, e, - Z, + j, l === null ? th : function() { - return Jr(t), l(a); + return kr(t), l(a); } ); } - function Kr(t) { + function Jr(t) { var e = t.memoizedState; if (e !== null) return e; e = { - memoizedState: Z, - baseState: Z, + memoizedState: j, + baseState: j, baseQueue: null, queue: { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: Ol, - lastRenderedState: Z + lastRenderedState: j }, next: null }; @@ -4043,40 +4043,40 @@ Error generating stack: ` + a.message + ` next: null }, t.memoizedState = e, t = t.alternate, t !== null && (t.memoizedState = e), e; } - function Jr(t) { - var e = Kr(t); - e.next === null && (e = t.alternate.memoizedState), vi( + function kr(t) { + var e = Jr(t); + e.next === null && (e = t.alternate.memoizedState), bi( t, e.next.queue, {}, - Qe() + Le() ); } - function mc() { - return me(wi); - } - function kr() { - return It().memoizedState; + function hc() { + return pe(Hi); } function Fr() { - return It().memoizedState; + return $t().memoizedState; + } + function Wr() { + return $t().memoizedState; } function eh(t) { for (var e = t.return; e !== null; ) { switch (e.tag) { case 24: case 3: - var l = Qe(); - t = ta(l); - var a = ea(e, t, l); - a !== null && (Be(a, e, l), mi(a, e, l)), e = { cache: Xf() }, t.payload = e; + var l = Le(); + t = Il(l); + var a = Pl(e, t, l); + a !== null && (Ce(a, e, l), hi(a, e, l)), e = { cache: Qf() }, t.payload = e; return; } e = e.return; } } function lh(t, e, l) { - var a = Qe(); + var a = Le(); l = { lane: a, revertLane: 0, @@ -4085,13 +4085,13 @@ Error generating stack: ` + a.message + ` hasEagerState: !1, eagerState: null, next: null - }, Eu(t) ? $r(e, l) : (l = Uf(t, e, l, a), l !== null && (Be(l, t, a), Ir(l, e, a))); + }, Uu(t) ? Ir(e, l) : (l = Rf(t, e, l, a), l !== null && (Ce(l, t, a), Pr(l, e, a))); } - function Wr(t, e, l) { - var a = Qe(); - vi(t, e, l, a); + function $r(t, e, l) { + var a = Le(); + bi(t, e, l, a); } - function vi(t, e, l, a) { + function bi(t, e, l, a) { var n = { lane: a, revertLane: 0, @@ -4101,58 +4101,58 @@ Error generating stack: ` + a.message + ` eagerState: null, next: null }; - if (Eu(t)) $r(e, n); + if (Uu(t)) Ir(e, n); else { var i = t.alternate; if (t.lanes === 0 && (i === null || i.lanes === 0) && (i = e.lastRenderedReducer, i !== null)) try { var u = e.lastRenderedState, c = i(u, l); - if (n.hasEagerState = !0, n.eagerState = c, je(c, u)) - return iu(t, e, n, 0), qt === null && nu(), !1; + if (n.hasEagerState = !0, n.eagerState = c, Ne(c, u)) + return su(t, e, n, 0), jt === null && ru(), !1; } catch { } - if (l = Uf(t, e, n, a), l !== null) - return Be(l, t, a), Ir(l, e, a), !0; + if (l = Rf(t, e, n, a), l !== null) + return Ce(l, t, a), Pr(l, e, a), !0; } return !1; } - function hc(t, e, l, a) { + function gc(t, e, l, a) { if (a = { lane: 2, - revertLane: Kc(), + revertLane: Jc(), gesture: null, action: a, hasEagerState: !1, eagerState: null, next: null - }, Eu(t)) { + }, Uu(t)) { if (e) throw Error(s(479)); } else - e = Uf( + e = Rf( t, l, a, 2 - ), e !== null && Be(e, t, 2); + ), e !== null && Ce(e, t, 2); } - function Eu(t) { + function Uu(t) { var e = t.alternate; - return t === ot || e !== null && e === ot; + return t === ut || e !== null && e === ut; } - function $r(t, e) { - _n = vu = !0; + function Ir(t, e) { + En = Mu = !0; var l = t.pending; l === null ? e.next = e : (e.next = l.next, l.next = e), t.pending = e; } - function Ir(t, e, l) { + function Pr(t, e, l) { if ((l & 4194048) !== 0) { var a = e.lanes; - a &= t.pendingLanes, l |= a, e.lanes = l, ln(t, l); + a &= t.pendingLanes, l |= a, e.lanes = l, Te(t, l); } } - var bi = { - readContext: me, - use: Su, + var xi = { + readContext: pe, + use: _u, useCallback: Jt, useContext: Jt, useEffect: Jt, @@ -4175,42 +4175,42 @@ Error generating stack: ` + a.message + ` useMemoCache: Jt, useCacheRefresh: Jt }; - bi.useEffectEvent = Jt; - var Pr = { - readContext: me, - use: Su, + xi.useEffectEvent = Jt; + var ts = { + readContext: pe, + use: _u, useCallback: function(t, e) { return Me().memoizedState = [ t, e === void 0 ? null : e ], t; }, - useContext: me, - useEffect: Hr, + useContext: pe, + useEffect: jr, useImperativeHandle: function(t, e, l) { - l = l != null ? l.concat([t]) : null, zu( + l = l != null ? l.concat([t]) : null, Ou( 4194308, 4, - Yr.bind(null, e, t), + Lr.bind(null, e, t), l ); }, useLayoutEffect: function(t, e) { - return zu(4194308, 4, t, e); + return Ou(4194308, 4, t, e); }, useInsertionEffect: function(t, e) { - zu(4, 2, t, e); + Ou(4, 2, t, e); }, useMemo: function(t, e) { var l = Me(); e = e === void 0 ? null : e; var a = t(); - if (Qa) { - Ee(!0); + if (La) { + ul(!0); try { t(); } finally { - Ee(!1); + ul(!1); } } return l.memoizedState = [a, e], a; @@ -4219,12 +4219,12 @@ Error generating stack: ` + a.message + ` var a = Me(); if (l !== void 0) { var n = l(e); - if (Qa) { - Ee(!0); + if (La) { + ul(!0); try { l(e); } finally { - Ee(!1); + ul(!1); } } } else n = e; @@ -4236,7 +4236,7 @@ Error generating stack: ` + a.message + ` lastRenderedState: n }, a.queue = t, t = t.dispatch = lh.bind( null, - ot, + ut, t ), [a.memoizedState, t]; }, @@ -4245,44 +4245,44 @@ Error generating stack: ` + a.message + ` return t = { current: t }, e.memoizedState = t; }, useState: function(t) { - t = fc(t); - var e = t.queue, l = Wr.bind(null, ot, e); + t = cc(t); + var e = t.queue, l = $r.bind(null, ut, e); return e.dispatch = l, [t.memoizedState, l]; }, - useDebugValue: rc, + useDebugValue: sc, useDeferredValue: function(t, e) { var l = Me(); - return sc(l, t, e); + return dc(l, t, e); }, useTransition: function() { - var t = fc(!1); - return t = Zr.bind( + var t = cc(!1); + return t = Kr.bind( null, - ot, + ut, t.queue, !0, !1 ), Me().memoizedState = t, [!1, t]; }, useSyncExternalStore: function(t, e, l) { - var a = ot, n = Me(); - if (St) { + var a = ut, n = Me(); + if (bt) { if (l === void 0) throw Error(s(407)); l = l(); } else { - if (l = e(), qt === null) + if (l = e(), jt === null) throw Error(s(349)); - (vt & 127) !== 0 || xr(a, e, l); + (pt & 127) !== 0 || Sr(a, e, l); } n.memoizedState = l; var i = { value: l, getSnapshot: e }; - return n.queue = i, Hr(Tr.bind(null, a, i, t), [ + return n.queue = i, jr(zr.bind(null, a, i, t), [ t - ]), a.flags |= 2048, On( + ]), a.flags |= 2048, _n( 9, { destroy: void 0 }, - Sr.bind( + Tr.bind( null, a, i, @@ -4293,17 +4293,17 @@ Error generating stack: ` + a.message + ` ), l; }, useId: function() { - var t = Me(), e = qt.identifierPrefix; - if (St) { - var l = dl, a = sl; - l = (a & ~(1 << 32 - ye(a) - 1)).toString(32) + l, e = "_" + e + "R_" + l, l = bu++, 0 < l && (e += "H" + l.toString(32)), e += "_"; + var t = Me(), e = jt.identifierPrefix; + if (bt) { + var l = gl, a = hl; + l = (a & ~(1 << 32 - ue(a) - 1)).toString(32) + l, e = "_" + e + "R_" + l, l = Eu++, 0 < l && (e += "H" + l.toString(32)), e += "_"; } else l = Fm++, e = "_" + e + "r_" + l.toString(32) + "_"; return t.memoizedState = e; }, - useHostTransitionStatus: mc, - useFormState: Ur, - useActionState: Ur, + useHostTransitionStatus: hc, + useFormState: Rr, + useActionState: Rr, useOptimistic: function(t) { var e = Me(); e.memoizedState = e.baseState = t; @@ -4314,18 +4314,18 @@ Error generating stack: ` + a.message + ` lastRenderedReducer: null, lastRenderedState: null }; - return e.queue = l, e = hc.bind( + return e.queue = l, e = gc.bind( null, - ot, + ut, !0, l ), l.dispatch = e, [t, e]; }, - useMemoCache: nc, + useMemoCache: ic, useCacheRefresh: function() { return Me().memoizedState = eh.bind( null, - ot + ut ); }, useEffectEvent: function(t) { @@ -4336,25 +4336,25 @@ Error generating stack: ` + a.message + ` return l.impl.apply(void 0, arguments); }; } - }, gc = { - readContext: me, - use: Su, - useCallback: Xr, - useContext: me, - useEffect: oc, - useImperativeHandle: Lr, - useInsertionEffect: qr, - useLayoutEffect: Gr, - useMemo: Qr, - useReducer: Tu, - useRef: wr, + }, pc = { + readContext: pe, + use: _u, + useCallback: Qr, + useContext: pe, + useEffect: rc, + useImperativeHandle: Xr, + useInsertionEffect: Gr, + useLayoutEffect: Yr, + useMemo: Vr, + useReducer: Du, + useRef: Hr, useState: function() { - return Tu(Ol); + return Du(Ol); }, - useDebugValue: rc, + useDebugValue: sc, useDeferredValue: function(t, e) { - var l = It(); - return Vr( + var l = $t(); + return Zr( l, wt.memoizedState, t, @@ -4362,44 +4362,44 @@ Error generating stack: ` + a.message + ` ); }, useTransition: function() { - var t = Tu(Ol)[0], e = It().memoizedState; + var t = Du(Ol)[0], e = $t().memoizedState; return [ - typeof t == "boolean" ? t : yi(t), + typeof t == "boolean" ? t : vi(t), e ]; }, - useSyncExternalStore: br, - useId: kr, - useHostTransitionStatus: mc, - useFormState: Rr, - useActionState: Rr, + useSyncExternalStore: xr, + useId: Fr, + useHostTransitionStatus: hc, + useFormState: wr, + useActionState: wr, useOptimistic: function(t, e) { - var l = It(); - return Er(l, wt, t, e); + var l = $t(); + return Ar(l, wt, t, e); }, - useMemoCache: nc, - useCacheRefresh: Fr + useMemoCache: ic, + useCacheRefresh: Wr }; - gc.useEffectEvent = jr; - var ts = { - readContext: me, - use: Su, - useCallback: Xr, - useContext: me, - useEffect: oc, - useImperativeHandle: Lr, - useInsertionEffect: qr, - useLayoutEffect: Gr, - useMemo: Qr, - useReducer: uc, - useRef: wr, + pc.useEffectEvent = qr; + var es = { + readContext: pe, + use: _u, + useCallback: Qr, + useContext: pe, + useEffect: rc, + useImperativeHandle: Xr, + useInsertionEffect: Gr, + useLayoutEffect: Yr, + useMemo: Vr, + useReducer: fc, + useRef: Hr, useState: function() { - return uc(Ol); + return fc(Ol); }, - useDebugValue: rc, + useDebugValue: sc, useDeferredValue: function(t, e) { - var l = It(); - return wt === null ? sc(l, t, e) : Vr( + var l = $t(); + return wt === null ? dc(l, t, e) : Zr( l, wt.memoizedState, t, @@ -4407,52 +4407,52 @@ Error generating stack: ` + a.message + ` ); }, useTransition: function() { - var t = uc(Ol)[0], e = It().memoizedState; + var t = fc(Ol)[0], e = $t().memoizedState; return [ - typeof t == "boolean" ? t : yi(t), + typeof t == "boolean" ? t : vi(t), e ]; }, - useSyncExternalStore: br, - useId: kr, - useHostTransitionStatus: mc, + useSyncExternalStore: xr, + useId: Fr, + useHostTransitionStatus: hc, useFormState: Nr, useActionState: Nr, useOptimistic: function(t, e) { - var l = It(); - return wt !== null ? Er(l, wt, t, e) : (l.baseState = t, [t, l.queue.dispatch]); + var l = $t(); + return wt !== null ? Ar(l, wt, t, e) : (l.baseState = t, [t, l.queue.dispatch]); }, - useMemoCache: nc, - useCacheRefresh: Fr + useMemoCache: ic, + useCacheRefresh: Wr }; - ts.useEffectEvent = jr; - function pc(t, e, l, a) { - e = t.memoizedState, l = l(a, e), l = l == null ? e : w({}, e, l), t.memoizedState = l, t.lanes === 0 && (t.updateQueue.baseState = l); + es.useEffectEvent = qr; + function yc(t, e, l, a) { + e = t.memoizedState, l = l(a, e), l = l == null ? e : H({}, e, l), t.memoizedState = l, t.lanes === 0 && (t.updateQueue.baseState = l); } - var yc = { + var vc = { enqueueSetState: function(t, e, l) { t = t._reactInternals; - var a = Qe(), n = ta(a); - n.payload = e, l != null && (n.callback = l), e = ea(t, n, a), e !== null && (Be(e, t, a), mi(e, t, a)); + var a = Le(), n = Il(a); + n.payload = e, l != null && (n.callback = l), e = Pl(t, n, a), e !== null && (Ce(e, t, a), hi(e, t, a)); }, enqueueReplaceState: function(t, e, l) { t = t._reactInternals; - var a = Qe(), n = ta(a); - n.tag = 1, n.payload = e, l != null && (n.callback = l), e = ea(t, n, a), e !== null && (Be(e, t, a), mi(e, t, a)); + var a = Le(), n = Il(a); + n.tag = 1, n.payload = e, l != null && (n.callback = l), e = Pl(t, n, a), e !== null && (Ce(e, t, a), hi(e, t, a)); }, enqueueForceUpdate: function(t, e) { t = t._reactInternals; - var l = Qe(), a = ta(l); - a.tag = 2, e != null && (a.callback = e), e = ea(t, a, l), e !== null && (Be(e, t, l), mi(e, t, l)); + var l = Le(), a = Il(l); + a.tag = 2, e != null && (a.callback = e), e = Pl(t, a, l), e !== null && (Ce(e, t, l), hi(e, t, l)); } }; - function es(t, e, l, a, n, i, u) { - return t = t.stateNode, typeof t.shouldComponentUpdate == "function" ? t.shouldComponentUpdate(a, i, u) : e.prototype && e.prototype.isPureReactComponent ? !ii(l, a) || !ii(n, i) : !0; + function ls(t, e, l, a, n, i, u) { + return t = t.stateNode, typeof t.shouldComponentUpdate == "function" ? t.shouldComponentUpdate(a, i, u) : e.prototype && e.prototype.isPureReactComponent ? !ui(l, a) || !ui(n, i) : !0; } - function ls(t, e, l, a) { - t = e.state, typeof e.componentWillReceiveProps == "function" && e.componentWillReceiveProps(l, a), typeof e.UNSAFE_componentWillReceiveProps == "function" && e.UNSAFE_componentWillReceiveProps(l, a), e.state !== t && yc.enqueueReplaceState(e, e.state, null); + function as(t, e, l, a) { + t = e.state, typeof e.componentWillReceiveProps == "function" && e.componentWillReceiveProps(l, a), typeof e.UNSAFE_componentWillReceiveProps == "function" && e.UNSAFE_componentWillReceiveProps(l, a), e.state !== t && vc.enqueueReplaceState(e, e.state, null); } - function Va(t, e) { + function Xa(t, e) { var l = e; if ("ref" in e) { l = {}; @@ -4460,22 +4460,22 @@ Error generating stack: ` + a.message + ` a !== "ref" && (l[a] = e[a]); } if (t = t.defaultProps) { - l === e && (l = w({}, l)); + l === e && (l = H({}, l)); for (var n in t) l[n] === void 0 && (l[n] = t[n]); } return l; } - function as(t) { - au(t); - } function ns(t) { - console.error(t); + ou(t); } function is(t) { - au(t); + console.error(t); + } + function us(t) { + ou(t); } - function Au(t, e) { + function Ru(t, e) { try { var l = t.onUncaughtError; l(e.value, { componentStack: e.stack }); @@ -4485,7 +4485,7 @@ Error generating stack: ` + a.message + ` }); } } - function us(t, e, l) { + function fs(t, e, l) { try { var a = t.onCaughtError; a(l.value, { @@ -4498,27 +4498,27 @@ Error generating stack: ` + a.message + ` }); } } - function vc(t, e, l) { - return l = ta(l), l.tag = 3, l.payload = { element: null }, l.callback = function() { - Au(t, e); + function bc(t, e, l) { + return l = Il(l), l.tag = 3, l.payload = { element: null }, l.callback = function() { + Ru(t, e); }, l; } - function fs(t) { - return t = ta(t), t.tag = 3, t; + function cs(t) { + return t = Il(t), t.tag = 3, t; } - function cs(t, e, l, a) { + function os(t, e, l, a) { var n = l.type.getDerivedStateFromError; if (typeof n == "function") { var i = a.value; t.payload = function() { return n(i); }, t.callback = function() { - us(e, l, a); + fs(e, l, a); }; } var u = l.stateNode; u !== null && typeof u.componentDidCatch == "function" && (t.callback = function() { - us(e, l, a), typeof n != "function" && (fa === null ? fa = /* @__PURE__ */ new Set([this]) : fa.add(this)); + fs(e, l, a), typeof n != "function" && (ia === null ? ia = /* @__PURE__ */ new Set([this]) : ia.add(this)); var c = a.stack; this.componentDidCatch(a.value, { componentStack: c !== null ? c : "" @@ -4527,67 +4527,67 @@ Error generating stack: ` + a.message + ` } function ah(t, e, l, a, n) { if (l.flags |= 32768, a !== null && typeof a == "object" && typeof a.then == "function") { - if (e = l.alternate, e !== null && Sn( + if (e = l.alternate, e !== null && bn( e, l, n, !0 - ), l = Ge.current, l !== null) { + ), l = je.current, l !== null) { switch (l.tag) { case 31: case 13: - return We === null ? qu() : l.alternate === null && kt === 0 && (kt = 3), l.flags &= -257, l.flags |= 65536, l.lanes = n, a === mu ? l.flags |= 16384 : (e = l.updateQueue, e === null ? l.updateQueue = /* @__PURE__ */ new Set([a]) : e.add(a), Qc(t, a, n)), !1; + return Fe === null ? Vu() : l.alternate === null && kt === 0 && (kt = 3), l.flags &= -257, l.flags |= 65536, l.lanes = n, a === bu ? l.flags |= 16384 : (e = l.updateQueue, e === null ? l.updateQueue = /* @__PURE__ */ new Set([a]) : e.add(a), Vc(t, a, n)), !1; case 22: - return l.flags |= 65536, a === mu ? l.flags |= 16384 : (e = l.updateQueue, e === null ? (e = { + return l.flags |= 65536, a === bu ? l.flags |= 16384 : (e = l.updateQueue, e === null ? (e = { transitions: null, markerInstances: null, retryQueue: /* @__PURE__ */ new Set([a]) - }, l.updateQueue = e) : (l = e.retryQueue, l === null ? e.retryQueue = /* @__PURE__ */ new Set([a]) : l.add(a)), Qc(t, a, n)), !1; + }, l.updateQueue = e) : (l = e.retryQueue, l === null ? e.retryQueue = /* @__PURE__ */ new Set([a]) : l.add(a)), Vc(t, a, n)), !1; } throw Error(s(435, l.tag)); } - return Qc(t, a, n), qu(), !1; + return Vc(t, a, n), Vu(), !1; } - if (St) - return e = Ge.current, e !== null ? ((e.flags & 65536) === 0 && (e.flags |= 256), e.flags |= 65536, e.lanes = n, a !== jf && (t = Error(s(422), { cause: a }), ci(Ke(t, l)))) : (a !== jf && (e = Error(s(423), { + if (bt) + return e = je.current, e !== null ? ((e.flags & 65536) === 0 && (e.flags |= 256), e.flags |= 65536, e.lanes = n, a !== qf && (t = Error(s(422), { cause: a }), oi(Ze(t, l)))) : (a !== qf && (e = Error(s(423), { cause: a - }), ci( - Ke(e, l) - )), t = t.current.alternate, t.flags |= 65536, n &= -n, t.lanes |= n, a = Ke(a, l), n = vc( + }), oi( + Ze(e, l) + )), t = t.current.alternate, t.flags |= 65536, n &= -n, t.lanes |= n, a = Ze(a, l), n = bc( t.stateNode, a, n - ), kf(t, n), kt !== 4 && (kt = 2)), !1; + ), Ff(t, n), kt !== 4 && (kt = 2)), !1; var i = Error(s(520), { cause: a }); - if (i = Ke(i, l), _i === null ? _i = [i] : _i.push(i), kt !== 4 && (kt = 2), e === null) return !0; - a = Ke(a, l), l = e; + if (i = Ze(i, l), Di === null ? Di = [i] : Di.push(i), kt !== 4 && (kt = 2), e === null) return !0; + a = Ze(a, l), l = e; do { switch (l.tag) { case 3: - return l.flags |= 65536, t = n & -n, l.lanes |= t, t = vc(l.stateNode, a, t), kf(l, t), !1; + return l.flags |= 65536, t = n & -n, l.lanes |= t, t = bc(l.stateNode, a, t), Ff(l, t), !1; case 1: - if (e = l.type, i = l.stateNode, (l.flags & 128) === 0 && (typeof e.getDerivedStateFromError == "function" || i !== null && typeof i.componentDidCatch == "function" && (fa === null || !fa.has(i)))) - return l.flags |= 65536, n &= -n, l.lanes |= n, n = fs(n), cs( + if (e = l.type, i = l.stateNode, (l.flags & 128) === 0 && (typeof e.getDerivedStateFromError == "function" || i !== null && typeof i.componentDidCatch == "function" && (ia === null || !ia.has(i)))) + return l.flags |= 65536, n &= -n, l.lanes |= n, n = cs(n), os( n, t, l, a - ), kf(l, n), !1; + ), Ff(l, n), !1; } l = l.return; } while (l !== null); return !1; } - var bc = Error(s(461)), ae = !1; - function he(t, e, l, a) { - e.child = t === null ? dr(e, null, l, a) : Xa( + var xc = Error(s(461)), ee = !1; + function ye(t, e, l, a) { + e.child = t === null ? mr(e, null, l, a) : Ya( e, t.child, l, a ); } - function os(t, e, l, a, n) { + function rs(t, e, l, a, n) { l = l.render; var i = e.ref; if ("ref" in a) { @@ -4595,25 +4595,25 @@ Error generating stack: ` + a.message + ` for (var c in a) c !== "ref" && (u[c] = a[c]); } else u = a; - return qa(e), a = tc( + return Ha(e), a = ec( t, e, l, u, i, n - ), c = ec(), t !== null && !ae ? (lc(t, e, n), Cl(t, e, n)) : (St && c && wf(e), e.flags |= 1, he(t, e, a, n), e.child); + ), c = lc(), t !== null && !ee ? (ac(t, e, n), Cl(t, e, n)) : (bt && c && Hf(e), e.flags |= 1, ye(t, e, a, n), e.child); } - function rs(t, e, l, a, n) { + function ss(t, e, l, a, n) { if (t === null) { var i = l.type; - return typeof i == "function" && !Rf(i) && i.defaultProps === void 0 && l.compare === null ? (e.tag = 15, e.type = i, ss( + return typeof i == "function" && !wf(i) && i.defaultProps === void 0 && l.compare === null ? (e.tag = 15, e.type = i, ds( t, e, i, a, n - )) : (t = fu( + )) : (t = mu( l.type, null, a, @@ -4622,23 +4622,23 @@ Error generating stack: ` + a.message + ` n ), t.ref = e.ref, t.return = e, e.child = t); } - if (i = t.child, !_c(t, n)) { + if (i = t.child, !Dc(t, n)) { var u = i.memoizedProps; - if (l = l.compare, l = l !== null ? l : ii, l(u, a) && t.ref === e.ref) + if (l = l.compare, l = l !== null ? l : ui, l(u, a) && t.ref === e.ref) return Cl(t, e, n); } return e.flags |= 1, t = Ml(i, a), t.ref = e.ref, t.return = e, e.child = t; } - function ss(t, e, l, a, n) { + function ds(t, e, l, a, n) { if (t !== null) { var i = t.memoizedProps; - if (ii(i, a) && t.ref === e.ref) - if (ae = !1, e.pendingProps = a = i, _c(t, n)) - (t.flags & 131072) !== 0 && (ae = !0); + if (ui(i, a) && t.ref === e.ref) + if (ee = !1, e.pendingProps = a = i, Dc(t, n)) + (t.flags & 131072) !== 0 && (ee = !0); else return e.lanes = t.lanes, Cl(t, e, n); } - return xc( + return Sc( t, e, l, @@ -4646,7 +4646,7 @@ Error generating stack: ` + a.message + ` n ); } - function ds(t, e, l, a) { + function ms(t, e, l, a) { var n = a.children, i = t !== null ? t.memoizedState : null; if (t === null && e.stateNode === null && (e.stateNode = { _visibility: 1, @@ -4660,7 +4660,7 @@ Error generating stack: ` + a.message + ` n = n | a.lanes | a.childLanes, a = a.sibling; a = n & ~i; } else a = 0, e.child = null; - return ms( + return hs( t, e, i, @@ -4669,12 +4669,12 @@ Error generating stack: ` + a.message + ` ); } if ((l & 536870912) !== 0) - e.memoizedState = { baseLanes: 0, cachePool: null }, t !== null && su( + e.memoizedState = { baseLanes: 0, cachePool: null }, t !== null && yu( e, i !== null ? i.cachePool : null - ), i !== null ? gr(e, i) : Wf(), pr(e); + ), i !== null ? pr(e, i) : $f(), yr(e); else - return a = e.lanes = 536870912, ms( + return a = e.lanes = 536870912, hs( t, e, i !== null ? i.baseLanes | l : l, @@ -4682,10 +4682,10 @@ Error generating stack: ` + a.message + ` a ); } else - i !== null ? (su(e, i.cachePool), gr(e, i), aa(), e.memoizedState = null) : (t !== null && su(e, null), Wf(), aa()); - return he(t, e, n, l), e.child; + i !== null ? (yu(e, i.cachePool), pr(e, i), ea(), e.memoizedState = null) : (t !== null && yu(e, null), $f(), ea()); + return ye(t, e, n, l), e.child; } - function xi(t, e) { + function Si(t, e) { return t !== null && t.tag === 22 || e.stateNode !== null || (e.stateNode = { _visibility: 1, _pendingMarkers: null, @@ -4693,47 +4693,47 @@ Error generating stack: ` + a.message + ` _transitions: null }), e.sibling; } - function ms(t, e, l, a, n) { - var i = Vf(); - return i = i === null ? null : { parent: ee._currentValue, pool: i }, e.memoizedState = { + function hs(t, e, l, a, n) { + var i = Zf(); + return i = i === null ? null : { parent: Pt._currentValue, pool: i }, e.memoizedState = { baseLanes: l, cachePool: i - }, t !== null && su(e, null), Wf(), pr(e), t !== null && Sn(t, e, a, !0), e.childLanes = n, null; + }, t !== null && yu(e, null), $f(), yr(e), t !== null && bn(t, e, a, !0), e.childLanes = n, null; } - function _u(t, e) { - return e = Ou( + function wu(t, e) { + return e = Nu( { mode: e.mode, children: e.children }, t.mode ), e.ref = t.ref, t.child = e, e.return = t, e; } - function hs(t, e, l) { - return Xa(e, t.child, null, l), t = _u(e, e.pendingProps), t.flags |= 2, Ye(e), e.memoizedState = null, t; + function gs(t, e, l) { + return Ya(e, t.child, null, l), t = wu(e, e.pendingProps), t.flags |= 2, qe(e), e.memoizedState = null, t; } function nh(t, e, l) { var a = e.pendingProps, n = (e.flags & 128) !== 0; if (e.flags &= -129, t === null) { - if (St) { + if (bt) { if (a.mode === "hidden") - return t = _u(e, a), e.lanes = 536870912, xi(null, t); - if (If(e), (t = Lt) ? (t = Ad( + return t = wu(e, a), e.lanes = 536870912, Si(null, t); + if (Pf(e), (t = Lt) ? (t = _d( t, - Fe + ke ), t = t !== null && t.data === "&" ? t : null, t !== null && (e.memoizedState = { dehydrated: t, - treeContext: Fl !== null ? { id: sl, overflow: dl } : null, + treeContext: Jl !== null ? { id: hl, overflow: gl } : null, retryLane: 536870912, hydrationErrors: null - }, l = $o(t), l.return = e, e.child = l, de = e, Lt = null)) : t = null, t === null) throw $l(e); + }, l = Io(t), l.return = e, e.child = l, ge = e, Lt = null)) : t = null, t === null) throw Fl(e); return e.lanes = 536870912, null; } - return _u(e, a); + return wu(e, a); } var i = t.memoizedState; if (i !== null) { var u = i.dehydrated; - if (If(e), n) + if (Pf(e), n) if (e.flags & 256) - e.flags &= -257, e = hs( + e.flags &= -257, e = gs( t, e, l @@ -4741,16 +4741,16 @@ Error generating stack: ` + a.message + ` else if (e.memoizedState !== null) e.child = t.child, e.flags |= 128, e = null; else throw Error(s(558)); - else if (ae || Sn(t, e, l, !1), n = (l & t.childLanes) !== 0, ae || n) { - if (a = qt, a !== null && (u = an(a, l), u !== 0 && u !== i.retryLane)) - throw i.retryLane = u, Na(t, u), Be(a, t, u), bc; - qu(), e = hs( + else if (ee || bn(t, e, l, !1), n = (l & t.childLanes) !== 0, ee || n) { + if (a = jt, a !== null && (u = $a(a, l), u !== 0 && u !== i.retryLane)) + throw i.retryLane = u, Ra(t, u), Ce(a, t, u), xc; + Vu(), e = gs( t, e, l ); } else - t = i.treeContext, Lt = $e(u.nextSibling), de = e, St = !0, Wl = null, Fe = !1, t !== null && tr(e, t), e = _u(e, a), e.flags |= 4096; + t = i.treeContext, Lt = We(u.nextSibling), ge = e, bt = !0, kl = null, ke = !1, t !== null && er(e, t), e = wu(e, a), e.flags |= 4096; return e; } return t = Ml(t.child, { @@ -4758,7 +4758,7 @@ Error generating stack: ` + a.message + ` children: a.children }), t.ref = e.ref, e.child = t, t.return = e, t; } - function Du(t, e) { + function Bu(t, e) { var l = e.ref; if (l === null) t !== null && t.ref !== null && (e.flags |= 4194816); @@ -4768,136 +4768,136 @@ Error generating stack: ` + a.message + ` (t === null || t.ref !== l) && (e.flags |= 4194816); } } - function xc(t, e, l, a, n) { - return qa(e), l = tc( + function Sc(t, e, l, a, n) { + return Ha(e), l = ec( t, e, l, a, void 0, n - ), a = ec(), t !== null && !ae ? (lc(t, e, n), Cl(t, e, n)) : (St && a && wf(e), e.flags |= 1, he(t, e, l, n), e.child); + ), a = lc(), t !== null && !ee ? (ac(t, e, n), Cl(t, e, n)) : (bt && a && Hf(e), e.flags |= 1, ye(t, e, l, n), e.child); } - function gs(t, e, l, a, n, i) { - return qa(e), e.updateQueue = null, l = vr( + function ps(t, e, l, a, n, i) { + return Ha(e), e.updateQueue = null, l = br( e, a, l, n - ), yr(t), a = ec(), t !== null && !ae ? (lc(t, e, i), Cl(t, e, i)) : (St && a && wf(e), e.flags |= 1, he(t, e, l, i), e.child); + ), vr(t), a = lc(), t !== null && !ee ? (ac(t, e, i), Cl(t, e, i)) : (bt && a && Hf(e), e.flags |= 1, ye(t, e, l, i), e.child); } - function ps(t, e, l, a, n) { - if (qa(e), e.stateNode === null) { - var i = yn, u = l.contextType; - typeof u == "object" && u !== null && (i = me(u)), i = new l(a, i), e.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, i.updater = yc, e.stateNode = i, i._reactInternals = e, i = e.stateNode, i.props = a, i.state = e.memoizedState, i.refs = {}, Kf(e), u = l.contextType, i.context = typeof u == "object" && u !== null ? me(u) : yn, i.state = e.memoizedState, u = l.getDerivedStateFromProps, typeof u == "function" && (pc( + function ys(t, e, l, a, n) { + if (Ha(e), e.stateNode === null) { + var i = gn, u = l.contextType; + typeof u == "object" && u !== null && (i = pe(u)), i = new l(a, i), e.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, i.updater = vc, e.stateNode = i, i._reactInternals = e, i = e.stateNode, i.props = a, i.state = e.memoizedState, i.refs = {}, Jf(e), u = l.contextType, i.context = typeof u == "object" && u !== null ? pe(u) : gn, i.state = e.memoizedState, u = l.getDerivedStateFromProps, typeof u == "function" && (yc( e, l, u, a - ), i.state = e.memoizedState), typeof l.getDerivedStateFromProps == "function" || typeof i.getSnapshotBeforeUpdate == "function" || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (u = i.state, typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount(), u !== i.state && yc.enqueueReplaceState(i, i.state, null), gi(e, a, i, n), hi(), i.state = e.memoizedState), typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !0; + ), i.state = e.memoizedState), typeof l.getDerivedStateFromProps == "function" || typeof i.getSnapshotBeforeUpdate == "function" || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (u = i.state, typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount(), u !== i.state && vc.enqueueReplaceState(i, i.state, null), pi(e, a, i, n), gi(), i.state = e.memoizedState), typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !0; } else if (t === null) { i = e.stateNode; - var c = e.memoizedProps, r = Va(l, c); + var c = e.memoizedProps, r = Xa(l, c); i.props = r; - var v = i.context, M = l.contextType; - u = yn, typeof M == "object" && M !== null && (u = me(M)); - var O = l.getDerivedStateFromProps; - M = typeof O == "function" || typeof i.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, M || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c || v !== u) && ls( + var v = i.context, A = l.contextType; + u = gn, typeof A == "object" && A !== null && (u = pe(A)); + var C = l.getDerivedStateFromProps; + A = typeof C == "function" || typeof i.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, A || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c || v !== u) && as( e, i, a, u - ), Pl = !1; - var x = e.memoizedState; - i.state = x, gi(e, a, i, n), hi(), v = e.memoizedState, c || x !== v || Pl ? (typeof O == "function" && (pc( + ), $l = !1; + var b = e.memoizedState; + i.state = b, pi(e, a, i, n), gi(), v = e.memoizedState, c || b !== v || $l ? (typeof C == "function" && (yc( e, l, - O, + C, a - ), v = e.memoizedState), (r = Pl || es( + ), v = e.memoizedState), (r = $l || ls( e, l, r, a, - x, + b, v, u - )) ? (M || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = a, e.memoizedState = v), i.props = a, i.state = v, i.context = u, a = r) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !1); + )) ? (A || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = a, e.memoizedState = v), i.props = a, i.state = v, i.context = u, a = r) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !1); } else { - i = e.stateNode, Jf(t, e), u = e.memoizedProps, M = Va(l, u), i.props = M, O = e.pendingProps, x = i.context, v = l.contextType, r = yn, typeof v == "object" && v !== null && (r = me(v)), c = l.getDerivedStateFromProps, (v = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (u !== O || x !== r) && ls( + i = e.stateNode, kf(t, e), u = e.memoizedProps, A = Xa(l, u), i.props = A, C = e.pendingProps, b = i.context, v = l.contextType, r = gn, typeof v == "object" && v !== null && (r = pe(v)), c = l.getDerivedStateFromProps, (v = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (u !== C || b !== r) && as( e, i, a, r - ), Pl = !1, x = e.memoizedState, i.state = x, gi(e, a, i, n), hi(); + ), $l = !1, b = e.memoizedState, i.state = b, pi(e, a, i, n), gi(); var T = e.memoizedState; - u !== O || x !== T || Pl || t !== null && t.dependencies !== null && ou(t.dependencies) ? (typeof c == "function" && (pc( + u !== C || b !== T || $l || t !== null && t.dependencies !== null && gu(t.dependencies) ? (typeof c == "function" && (yc( e, l, c, a - ), T = e.memoizedState), (M = Pl || es( + ), T = e.memoizedState), (A = $l || ls( e, l, - M, + A, a, - x, + b, T, r - ) || t !== null && t.dependencies !== null && ou(t.dependencies)) ? (v || typeof i.UNSAFE_componentWillUpdate != "function" && typeof i.componentWillUpdate != "function" || (typeof i.componentWillUpdate == "function" && i.componentWillUpdate(a, T, r), typeof i.UNSAFE_componentWillUpdate == "function" && i.UNSAFE_componentWillUpdate( + ) || t !== null && t.dependencies !== null && gu(t.dependencies)) ? (v || typeof i.UNSAFE_componentWillUpdate != "function" && typeof i.componentWillUpdate != "function" || (typeof i.componentWillUpdate == "function" && i.componentWillUpdate(a, T, r), typeof i.UNSAFE_componentWillUpdate == "function" && i.UNSAFE_componentWillUpdate( a, T, r - )), typeof i.componentDidUpdate == "function" && (e.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (e.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || u === t.memoizedProps && x === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || u === t.memoizedProps && x === t.memoizedState || (e.flags |= 1024), e.memoizedProps = a, e.memoizedState = T), i.props = a, i.state = T, i.context = r, a = M) : (typeof i.componentDidUpdate != "function" || u === t.memoizedProps && x === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || u === t.memoizedProps && x === t.memoizedState || (e.flags |= 1024), a = !1); + )), typeof i.componentDidUpdate == "function" && (e.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (e.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || u === t.memoizedProps && b === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || u === t.memoizedProps && b === t.memoizedState || (e.flags |= 1024), e.memoizedProps = a, e.memoizedState = T), i.props = a, i.state = T, i.context = r, a = A) : (typeof i.componentDidUpdate != "function" || u === t.memoizedProps && b === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || u === t.memoizedProps && b === t.memoizedState || (e.flags |= 1024), a = !1); } - return i = a, Du(t, e), a = (e.flags & 128) !== 0, i || a ? (i = e.stateNode, l = a && typeof l.getDerivedStateFromError != "function" ? null : i.render(), e.flags |= 1, t !== null && a ? (e.child = Xa( + return i = a, Bu(t, e), a = (e.flags & 128) !== 0, i || a ? (i = e.stateNode, l = a && typeof l.getDerivedStateFromError != "function" ? null : i.render(), e.flags |= 1, t !== null && a ? (e.child = Ya( e, t.child, null, n - ), e.child = Xa( + ), e.child = Ya( e, null, l, n - )) : he(t, e, l, n), e.memoizedState = i.state, t = e.child) : t = Cl( + )) : ye(t, e, l, n), e.memoizedState = i.state, t = e.child) : t = Cl( t, e, n ), t; } - function ys(t, e, l, a) { - return Ha(), e.flags |= 256, he(t, e, l, a), e.child; + function vs(t, e, l, a) { + return Ba(), e.flags |= 256, ye(t, e, l, a), e.child; } - var Sc = { + var Tc = { dehydrated: null, treeContext: null, retryLane: 0, hydrationErrors: null }; - function Tc(t) { - return { baseLanes: t, cachePool: ur() }; + function zc(t) { + return { baseLanes: t, cachePool: fr() }; } - function zc(t, e, l) { - return t = t !== null ? t.childLanes & ~l : 0, e && (t |= Xe), t; + function Mc(t, e, l) { + return t = t !== null ? t.childLanes & ~l : 0, e && (t |= Ye), t; } - function vs(t, e, l) { + function bs(t, e, l) { var a = e.pendingProps, n = !1, i = (e.flags & 128) !== 0, u; - if ((u = i) || (u = t !== null && t.memoizedState === null ? !1 : ($t.current & 2) !== 0), u && (n = !0, e.flags &= -129), u = (e.flags & 32) !== 0, e.flags &= -33, t === null) { - if (St) { - if (n ? la(e) : aa(), (t = Lt) ? (t = Ad( + if ((u = i) || (u = t !== null && t.memoizedState === null ? !1 : (Wt.current & 2) !== 0), u && (n = !0, e.flags &= -129), u = (e.flags & 32) !== 0, e.flags &= -33, t === null) { + if (bt) { + if (n ? ta(e) : ea(), (t = Lt) ? (t = _d( t, - Fe + ke ), t = t !== null && t.data !== "&" ? t : null, t !== null && (e.memoizedState = { dehydrated: t, - treeContext: Fl !== null ? { id: sl, overflow: dl } : null, + treeContext: Jl !== null ? { id: hl, overflow: gl } : null, retryLane: 536870912, hydrationErrors: null - }, l = $o(t), l.return = e, e.child = l, de = e, Lt = null)) : t = null, t === null) throw $l(e); - return io(t) ? e.lanes = 32 : e.lanes = 536870912, null; + }, l = Io(t), l.return = e, e.child = l, ge = e, Lt = null)) : t = null, t === null) throw Fl(e); + return uo(t) ? e.lanes = 32 : e.lanes = 536870912, null; } var c = a.children; - return a = a.fallback, n ? (aa(), n = e.mode, c = Ou( + return a = a.fallback, n ? (ea(), n = e.mode, c = Nu( { mode: "hidden", children: c }, n ), a = wa( @@ -4905,20 +4905,20 @@ Error generating stack: ` + a.message + ` n, l, null - ), c.return = e, a.return = e, c.sibling = a, e.child = c, a = e.child, a.memoizedState = Tc(l), a.childLanes = zc( + ), c.return = e, a.return = e, c.sibling = a, e.child = c, a = e.child, a.memoizedState = zc(l), a.childLanes = Mc( t, u, l - ), e.memoizedState = Sc, xi(null, a)) : (la(e), Mc(e, c)); + ), e.memoizedState = Tc, Si(null, a)) : (ta(e), Ec(e, c)); } var r = t.memoizedState; if (r !== null && (c = r.dehydrated, c !== null)) { if (i) - e.flags & 256 ? (la(e), e.flags &= -257, e = Ec( + e.flags & 256 ? (ta(e), e.flags &= -257, e = Ac( t, e, l - )) : e.memoizedState !== null ? (aa(), e.child = t.child, e.flags |= 128, e = null) : (aa(), c = a.fallback, n = e.mode, a = Ou( + )) : e.memoizedState !== null ? (ea(), e.child = t.child, e.flags |= 128, e = null) : (ea(), c = a.fallback, n = e.mode, a = Nu( { mode: "visible", children: a.children }, n ), c = wa( @@ -4926,41 +4926,41 @@ Error generating stack: ` + a.message + ` n, l, null - ), c.flags |= 2, a.return = e, c.return = e, a.sibling = c, e.child = a, Xa( + ), c.flags |= 2, a.return = e, c.return = e, a.sibling = c, e.child = a, Ya( e, t.child, null, l - ), a = e.child, a.memoizedState = Tc(l), a.childLanes = zc( + ), a = e.child, a.memoizedState = zc(l), a.childLanes = Mc( t, u, l - ), e.memoizedState = Sc, e = xi(null, a)); - else if (la(e), io(c)) { + ), e.memoizedState = Tc, e = Si(null, a)); + else if (ta(e), uo(c)) { if (u = c.nextSibling && c.nextSibling.dataset, u) var v = u.dgst; - u = v, a = Error(s(419)), a.stack = "", a.digest = u, ci({ value: a, source: null, stack: null }), e = Ec( + u = v, a = Error(s(419)), a.stack = "", a.digest = u, oi({ value: a, source: null, stack: null }), e = Ac( t, e, l ); - } else if (ae || Sn(t, e, l, !1), u = (l & t.childLanes) !== 0, ae || u) { - if (u = qt, u !== null && (a = an(u, l), a !== 0 && a !== r.retryLane)) - throw r.retryLane = a, Na(t, a), Be(u, t, a), bc; - no(c) || qu(), e = Ec( + } else if (ee || bn(t, e, l, !1), u = (l & t.childLanes) !== 0, ee || u) { + if (u = jt, u !== null && (a = $a(u, l), a !== 0 && a !== r.retryLane)) + throw r.retryLane = a, Ra(t, a), Ce(u, t, a), xc; + io(c) || Vu(), e = Ac( t, e, l ); } else - no(c) ? (e.flags |= 192, e.child = t.child, e = null) : (t = r.treeContext, Lt = $e( + io(c) ? (e.flags |= 192, e.child = t.child, e = null) : (t = r.treeContext, Lt = We( c.nextSibling - ), de = e, St = !0, Wl = null, Fe = !1, t !== null && tr(e, t), e = Mc( + ), ge = e, bt = !0, kl = null, ke = !1, t !== null && er(e, t), e = Ec( e, a.children ), e.flags |= 4096); return e; } - return n ? (aa(), c = a.fallback, n = e.mode, r = t.child, v = r.sibling, a = Ml(r, { + return n ? (ea(), c = a.fallback, n = e.mode, r = t.child, v = r.sibling, a = Ml(r, { mode: "hidden", children: a.children }), a.subtreeFlags = r.subtreeFlags & 65011712, v !== null ? c = Ml( @@ -4971,39 +4971,39 @@ Error generating stack: ` + a.message + ` n, l, null - ), c.flags |= 2), c.return = e, a.return = e, a.sibling = c, e.child = a, xi(null, a), a = e.child, c = t.child.memoizedState, c === null ? c = Tc(l) : (n = c.cachePool, n !== null ? (r = ee._currentValue, n = n.parent !== r ? { parent: r, pool: r } : n) : n = ur(), c = { + ), c.flags |= 2), c.return = e, a.return = e, a.sibling = c, e.child = a, Si(null, a), a = e.child, c = t.child.memoizedState, c === null ? c = zc(l) : (n = c.cachePool, n !== null ? (r = Pt._currentValue, n = n.parent !== r ? { parent: r, pool: r } : n) : n = fr(), c = { baseLanes: c.baseLanes | l, cachePool: n - }), a.memoizedState = c, a.childLanes = zc( + }), a.memoizedState = c, a.childLanes = Mc( t, u, l - ), e.memoizedState = Sc, xi(t.child, a)) : (la(e), l = t.child, t = l.sibling, l = Ml(l, { + ), e.memoizedState = Tc, Si(t.child, a)) : (ta(e), l = t.child, t = l.sibling, l = Ml(l, { mode: "visible", children: a.children }), l.return = e, l.sibling = null, t !== null && (u = e.deletions, u === null ? (e.deletions = [t], e.flags |= 16) : u.push(t)), e.child = l, e.memoizedState = null, l); } - function Mc(t, e) { - return e = Ou( + function Ec(t, e) { + return e = Nu( { mode: "visible", children: e }, t.mode ), e.return = t, t.child = e; } - function Ou(t, e) { - return t = qe(22, t, null, e), t.lanes = 0, t; + function Nu(t, e) { + return t = He(22, t, null, e), t.lanes = 0, t; } - function Ec(t, e, l) { - return Xa(e, t.child, null, l), t = Mc( + function Ac(t, e, l) { + return Ya(e, t.child, null, l), t = Ec( e, e.pendingProps.children ), t.flags |= 2, e.memoizedState = null, t; } - function bs(t, e, l) { + function xs(t, e, l) { t.lanes |= e; var a = t.alternate; - a !== null && (a.lanes |= e), Yf(t.return, e, l); + a !== null && (a.lanes |= e), Lf(t.return, e, l); } - function Ac(t, e, l, a, n, i) { + function _c(t, e, l, a, n, i) { var u = t.memoizedState; u === null ? t.memoizedState = { isBackwards: e, @@ -5015,16 +5015,16 @@ Error generating stack: ` + a.message + ` treeForkCount: i } : (u.isBackwards = e, u.rendering = null, u.renderingStartTime = 0, u.last = a, u.tail = l, u.tailMode = n, u.treeForkCount = i); } - function xs(t, e, l) { + function Ss(t, e, l) { var a = e.pendingProps, n = a.revealOrder, i = a.tail; a = a.children; - var u = $t.current, c = (u & 2) !== 0; - if (c ? (u = u & 1 | 2, e.flags |= 128) : u &= 1, N($t, u), he(t, e, a, l), a = St ? fi : 0, !c && t !== null && (t.flags & 128) !== 0) + var u = Wt.current, c = (u & 2) !== 0; + if (c ? (u = u & 1 | 2, e.flags |= 128) : u &= 1, B(Wt, u), ye(t, e, a, l), a = bt ? ci : 0, !c && t !== null && (t.flags & 128) !== 0) t: for (t = e.child; t !== null; ) { if (t.tag === 13) - t.memoizedState !== null && bs(t, l, e); + t.memoizedState !== null && xs(t, l, e); else if (t.tag === 19) - bs(t, l, e); + xs(t, l, e); else if (t.child !== null) { t.child.return = t, t = t.child; continue; @@ -5040,8 +5040,8 @@ Error generating stack: ` + a.message + ` switch (n) { case "forwards": for (l = e.child, n = null; l !== null; ) - t = l.alternate, t !== null && yu(t) === null && (n = l), l = l.sibling; - l = n, l === null ? (n = e.child, e.child = null) : (n = l.sibling, l.sibling = null), Ac( + t = l.alternate, t !== null && zu(t) === null && (n = l), l = l.sibling; + l = n, l === null ? (n = e.child, e.child = null) : (n = l.sibling, l.sibling = null), _c( e, !1, n, @@ -5053,13 +5053,13 @@ Error generating stack: ` + a.message + ` case "backwards": case "unstable_legacy-backwards": for (l = null, n = e.child, e.child = null; n !== null; ) { - if (t = n.alternate, t !== null && yu(t) === null) { + if (t = n.alternate, t !== null && zu(t) === null) { e.child = n; break; } t = n.sibling, n.sibling = l, l = n, n = t; } - Ac( + _c( e, !0, l, @@ -5069,7 +5069,7 @@ Error generating stack: ` + a.message + ` ); break; case "together": - Ac( + _c( e, !1, null, @@ -5084,9 +5084,9 @@ Error generating stack: ` + a.message + ` return e.child; } function Cl(t, e, l) { - if (t !== null && (e.dependencies = t.dependencies), ua |= e.lanes, (l & e.childLanes) === 0) + if (t !== null && (e.dependencies = t.dependencies), na |= e.lanes, (l & e.childLanes) === 0) if (t !== null) { - if (Sn( + if (bn( t, e, l, @@ -5103,23 +5103,23 @@ Error generating stack: ` + a.message + ` } return e.child; } - function _c(t, e) { - return (t.lanes & e) !== 0 ? !0 : (t = t.dependencies, !!(t !== null && ou(t))); + function Dc(t, e) { + return (t.lanes & e) !== 0 ? !0 : (t = t.dependencies, !!(t !== null && gu(t))); } function ih(t, e, l) { switch (e.tag) { case 3: - fe(e, e.stateNode.containerInfo), Il(e, ee, t.memoizedState.cache), Ha(); + ie(e, e.stateNode.containerInfo), Wl(e, Pt, t.memoizedState.cache), Ba(); break; case 27: case 5: - gl(e); + Ue(e); break; case 4: - fe(e, e.stateNode.containerInfo); + ie(e, e.stateNode.containerInfo); break; case 10: - Il( + Wl( e, e.type, e.memoizedProps.value @@ -5127,75 +5127,75 @@ Error generating stack: ` + a.message + ` break; case 31: if (e.memoizedState !== null) - return e.flags |= 128, If(e), null; + return e.flags |= 128, Pf(e), null; break; case 13: var a = e.memoizedState; if (a !== null) - return a.dehydrated !== null ? (la(e), e.flags |= 128, null) : (l & e.child.childLanes) !== 0 ? vs(t, e, l) : (la(e), t = Cl( + return a.dehydrated !== null ? (ta(e), e.flags |= 128, null) : (l & e.child.childLanes) !== 0 ? bs(t, e, l) : (ta(e), t = Cl( t, e, l ), t !== null ? t.sibling : null); - la(e); + ta(e); break; case 19: var n = (t.flags & 128) !== 0; - if (a = (l & e.childLanes) !== 0, a || (Sn( + if (a = (l & e.childLanes) !== 0, a || (bn( t, e, l, !1 ), a = (l & e.childLanes) !== 0), n) { if (a) - return xs( + return Ss( t, e, l ); e.flags |= 128; } - if (n = e.memoizedState, n !== null && (n.rendering = null, n.tail = null, n.lastEffect = null), N($t, $t.current), a) break; + if (n = e.memoizedState, n !== null && (n.rendering = null, n.tail = null, n.lastEffect = null), B(Wt, Wt.current), a) break; return null; case 22: - return e.lanes = 0, ds( + return e.lanes = 0, ms( t, e, l, e.pendingProps ); case 24: - Il(e, ee, t.memoizedState.cache); + Wl(e, Pt, t.memoizedState.cache); } return Cl(t, e, l); } - function Ss(t, e, l) { + function Ts(t, e, l) { if (t !== null) if (t.memoizedProps !== e.pendingProps) - ae = !0; + ee = !0; else { - if (!_c(t, l) && (e.flags & 128) === 0) - return ae = !1, ih( + if (!Dc(t, l) && (e.flags & 128) === 0) + return ee = !1, ih( t, e, l ); - ae = (t.flags & 131072) !== 0; + ee = (t.flags & 131072) !== 0; } else - ae = !1, St && (e.flags & 1048576) !== 0 && Po(e, fi, e.index); + ee = !1, bt && (e.flags & 1048576) !== 0 && tr(e, ci, e.index); switch (e.lanes = 0, e.tag) { case 16: t: { var a = e.pendingProps; - if (t = Ya(e.elementType), e.type = t, typeof t == "function") - Rf(t) ? (a = Va(t, a), e.tag = 1, e = ps( + if (t = qa(e.elementType), e.type = t, typeof t == "function") + wf(t) ? (a = Xa(t, a), e.tag = 1, e = ys( null, e, t, a, l - )) : (e.tag = 0, e = xc( + )) : (e.tag = 0, e = Sc( null, e, t, @@ -5205,8 +5205,8 @@ Error generating stack: ` + a.message + ` else { if (t != null) { var n = t.$$typeof; - if (n === Dt) { - e.tag = 11, e = os( + if (n === At) { + e.tag = 11, e = rs( null, e, t, @@ -5214,8 +5214,8 @@ Error generating stack: ` + a.message + ` l ); break t; - } else if (n === $) { - e.tag = 14, e = rs( + } else if (n === k) { + e.tag = 14, e = ss( null, e, t, @@ -5225,12 +5225,12 @@ Error generating stack: ` + a.message + ` break t; } } - throw e = ie(t) || t, Error(s(306, e, "")); + throw e = ae(t) || t, Error(s(306, e, "")); } } return e; case 0: - return xc( + return Sc( t, e, e.type, @@ -5238,10 +5238,10 @@ Error generating stack: ` + a.message + ` l ); case 1: - return a = e.type, n = Va( + return a = e.type, n = Xa( a, e.pendingProps - ), ps( + ), ys( t, e, a, @@ -5250,26 +5250,26 @@ Error generating stack: ` + a.message + ` ); case 3: t: { - if (fe( + if (ie( e, e.stateNode.containerInfo ), t === null) throw Error(s(387)); a = e.pendingProps; var i = e.memoizedState; - n = i.element, Jf(t, e), gi(e, a, null, l); + n = i.element, kf(t, e), pi(e, a, null, l); var u = e.memoizedState; - if (a = u.cache, Il(e, ee, a), a !== i.cache && Lf( + if (a = u.cache, Wl(e, Pt, a), a !== i.cache && Xf( e, - [ee], + [Pt], l, !0 - ), hi(), a = u.element, i.isDehydrated) + ), gi(), a = u.element, i.isDehydrated) if (i = { element: a, isDehydrated: !1, cache: u.cache }, e.updateQueue.baseState = i, e.memoizedState = i, e.flags & 256) { - e = ys( + e = vs( t, e, a, @@ -5277,10 +5277,10 @@ Error generating stack: ` + a.message + ` ); break t; } else if (a !== n) { - n = Ke( + n = Ze( Error(s(424)), e - ), ci(n), e = ys( + ), oi(n), e = vs( t, e, a, @@ -5288,7 +5288,7 @@ Error generating stack: ` + a.message + ` ); break t; } else - for (t = e.stateNode.containerInfo, t.nodeType === 9 ? t = t.body : t = t.nodeName === "HTML" ? t.ownerDocument.body : t, Lt = $e(t.firstChild), de = e, St = !0, Wl = null, Fe = !0, l = dr( + for (t = e.stateNode.containerInfo, t.nodeType === 9 ? t = t.body : t = t.nodeName === "HTML" ? t.ownerDocument.body : t, Lt = We(t.firstChild), ge = e, bt = !0, kl = null, ke = !0, l = mr( e, null, a, @@ -5296,7 +5296,7 @@ Error generating stack: ` + a.message + ` ), e.child = l; l; ) l.flags = l.flags & -3 | 4096, l = l.sibling; else { - if (Ha(), a === n) { + if (Ba(), a === n) { e = Cl( t, e, @@ -5304,70 +5304,70 @@ Error generating stack: ` + a.message + ` ); break t; } - he(t, e, a, l); + ye(t, e, a, l); } e = e.child; } return e; case 26: - return Du(t, e), t === null ? (l = Rd( + return Bu(t, e), t === null ? (l = wd( e.type, null, e.pendingProps, null - )) ? e.memoizedState = l : St || (l = e.type, t = e.pendingProps, a = Zu( + )) ? e.memoizedState = l : bt || (l = e.type, t = e.pendingProps, a = $u( ct.current - ).createElement(l), a[te] = e, a[re] = t, ge(a, l, t), Wt(a), e.stateNode = a) : e.memoizedState = Rd( + ).createElement(l), a[It] = e, a[me] = t, ve(a, l, t), Ft(a), e.stateNode = a) : e.memoizedState = wd( e.type, t.memoizedProps, e.pendingProps, t.memoizedState ), null; case 27: - return gl(e), t === null && St && (a = e.stateNode = Od( + return Ue(e), t === null && bt && (a = e.stateNode = Cd( e.type, e.pendingProps, ct.current - ), de = e, Fe = !0, n = Lt, sa(e.type) ? (uo = n, Lt = $e(a.firstChild)) : Lt = n), he( + ), ge = e, ke = !0, n = Lt, oa(e.type) ? (fo = n, Lt = We(a.firstChild)) : Lt = n), ye( t, e, e.pendingProps.children, l - ), Du(t, e), t === null && (e.flags |= 4194304), e.child; + ), Bu(t, e), t === null && (e.flags |= 4194304), e.child; case 5: - return t === null && St && ((n = a = Lt) && (a = wh( + return t === null && bt && ((n = a = Lt) && (a = Nh( a, e.type, e.pendingProps, - Fe - ), a !== null ? (e.stateNode = a, de = e, Lt = $e(a.firstChild), Fe = !1, n = !0) : n = !1), n || $l(e)), gl(e), n = e.type, i = e.pendingProps, u = t !== null ? t.memoizedProps : null, a = i.children, eo(n, i) ? a = null : u !== null && eo(n, u) && (e.flags |= 32), e.memoizedState !== null && (n = tc( + ke + ), a !== null ? (e.stateNode = a, ge = e, Lt = We(a.firstChild), ke = !1, n = !0) : n = !1), n || Fl(e)), Ue(e), n = e.type, i = e.pendingProps, u = t !== null ? t.memoizedProps : null, a = i.children, lo(n, i) ? a = null : u !== null && lo(n, u) && (e.flags |= 32), e.memoizedState !== null && (n = ec( t, e, Wm, null, null, l - ), wi._currentValue = n), Du(t, e), he(t, e, a, l), e.child; + ), Hi._currentValue = n), Bu(t, e), ye(t, e, a, l), e.child; case 6: - return t === null && St && ((t = l = Lt) && (l = Hh( + return t === null && bt && ((t = l = Lt) && (l = Hh( l, e.pendingProps, - Fe - ), l !== null ? (e.stateNode = l, de = e, Lt = null, t = !0) : t = !1), t || $l(e)), null; + ke + ), l !== null ? (e.stateNode = l, ge = e, Lt = null, t = !0) : t = !1), t || Fl(e)), null; case 13: - return vs(t, e, l); + return bs(t, e, l); case 4: - return fe( + return ie( e, e.stateNode.containerInfo - ), a = e.pendingProps, t === null ? e.child = Xa( + ), a = e.pendingProps, t === null ? e.child = Ya( e, null, a, l - ) : he(t, e, a, l), e.child; + ) : ye(t, e, a, l), e.child; case 11: - return os( + return rs( t, e, e.type, @@ -5375,32 +5375,32 @@ Error generating stack: ` + a.message + ` l ); case 7: - return he( + return ye( t, e, e.pendingProps, l ), e.child; case 8: - return he( + return ye( t, e, e.pendingProps.children, l ), e.child; case 12: - return he( + return ye( t, e, e.pendingProps.children, l ), e.child; case 10: - return a = e.pendingProps, Il(e, e.type, a.value), he(t, e, a.children, l), e.child; + return a = e.pendingProps, Wl(e, e.type, a.value), ye(t, e, a.children, l), e.child; case 9: - return n = e.type._context, a = e.pendingProps.children, qa(e), n = me(n), a = a(n), e.flags |= 1, he(t, e, a, l), e.child; + return n = e.type._context, a = e.pendingProps.children, Ha(e), n = pe(n), a = a(n), e.flags |= 1, ye(t, e, a, l), e.child; case 14: - return rs( + return ss( t, e, e.type, @@ -5408,7 +5408,7 @@ Error generating stack: ` + a.message + ` l ); case 15: - return ss( + return ds( t, e, e.type, @@ -5416,23 +5416,23 @@ Error generating stack: ` + a.message + ` l ); case 19: - return xs(t, e, l); + return Ss(t, e, l); case 31: return nh(t, e, l); case 22: - return ds( + return ms( t, e, l, e.pendingProps ); case 24: - return qa(e), a = me(ee), t === null ? (n = Vf(), n === null && (n = qt, i = Xf(), n.pooledCache = i, i.refCount++, i !== null && (n.pooledCacheLanes |= l), n = i), e.memoizedState = { parent: a, cache: n }, Kf(e), Il(e, ee, n)) : ((t.lanes & l) !== 0 && (Jf(t, e), gi(e, null, null, l), hi()), n = t.memoizedState, i = e.memoizedState, n.parent !== a ? (n = { parent: a, cache: a }, e.memoizedState = n, e.lanes === 0 && (e.memoizedState = e.updateQueue.baseState = n), Il(e, ee, a)) : (a = i.cache, Il(e, ee, a), a !== n.cache && Lf( + return Ha(e), a = pe(Pt), t === null ? (n = Zf(), n === null && (n = jt, i = Qf(), n.pooledCache = i, i.refCount++, i !== null && (n.pooledCacheLanes |= l), n = i), e.memoizedState = { parent: a, cache: n }, Jf(e), Wl(e, Pt, n)) : ((t.lanes & l) !== 0 && (kf(t, e), pi(e, null, null, l), gi()), n = t.memoizedState, i = e.memoizedState, n.parent !== a ? (n = { parent: a, cache: a }, e.memoizedState = n, e.lanes === 0 && (e.memoizedState = e.updateQueue.baseState = n), Wl(e, Pt, a)) : (a = i.cache, Wl(e, Pt, a), a !== n.cache && Xf( e, - [ee], + [Pt], l, !0 - ))), he( + ))), ye( t, e, e.pendingProps.children, @@ -5446,28 +5446,28 @@ Error generating stack: ` + a.message + ` function Ul(t) { t.flags |= 4; } - function Dc(t, e, l, a, n) { + function Oc(t, e, l, a, n) { if ((e = (t.mode & 32) !== 0) && (e = !1), e) { if (t.flags |= 16777216, (n & 335544128) === n) if (t.stateNode.complete) t.flags |= 8192; - else if (ks()) t.flags |= 8192; + else if (Fs()) t.flags |= 8192; else - throw La = mu, Zf; + throw Ga = bu, Kf; } else t.flags &= -16777217; } - function Ts(t, e) { + function zs(t, e) { if (e.type !== "stylesheet" || (e.state.loading & 4) !== 0) t.flags &= -16777217; - else if (t.flags |= 16777216, !jd(e)) - if (ks()) t.flags |= 8192; + else if (t.flags |= 16777216, !qd(e)) + if (Fs()) t.flags |= 8192; else - throw La = mu, Zf; + throw Ga = bu, Kf; } - function Cu(t, e) { - e !== null && (t.flags |= 4), t.flags & 16384 && (e = t.tag !== 22 ? Ki() : 536870912, t.lanes |= e, Bn |= e); + function Hu(t, e) { + e !== null && (t.flags |= 4), t.flags & 16384 && (e = t.tag !== 22 ? Vn() : 536870912, t.lanes |= e, Un |= e); } - function Si(t, e) { - if (!St) + function Ti(t, e) { + if (!bt) switch (t.tailMode) { case "hidden": e = t.tail; @@ -5494,7 +5494,7 @@ Error generating stack: ` + a.message + ` } function uh(t, e, l) { var a = e.pendingProps; - switch (Hf(e), e.tag) { + switch (jf(e), e.tag) { case 16: case 15: case 0: @@ -5508,16 +5508,16 @@ Error generating stack: ` + a.message + ` case 1: return Xt(e), null; case 3: - return l = e.stateNode, a = null, t !== null && (a = t.memoizedState.cache), e.memoizedState.cache !== a && (e.flags |= 2048), _l(ee), Rt(), l.pendingContext && (l.context = l.pendingContext, l.pendingContext = null), (t === null || t.child === null) && (xn(e) ? Ul(e) : t === null || t.memoizedState.isDehydrated && (e.flags & 256) === 0 || (e.flags |= 1024, qf())), Xt(e), null; + return l = e.stateNode, a = null, t !== null && (a = t.memoizedState.cache), e.memoizedState.cache !== a && (e.flags |= 2048), _l(Pt), Qt(), l.pendingContext && (l.context = l.pendingContext, l.pendingContext = null), (t === null || t.child === null) && (vn(e) ? Ul(e) : t === null || t.memoizedState.isDehydrated && (e.flags & 256) === 0 || (e.flags |= 1024, Gf())), Xt(e), null; case 26: var n = e.type, i = e.memoizedState; - return t === null ? (Ul(e), i !== null ? (Xt(e), Ts(e, i)) : (Xt(e), Dc( + return t === null ? (Ul(e), i !== null ? (Xt(e), zs(e, i)) : (Xt(e), Oc( e, n, null, a, l - ))) : i ? i !== t.memoizedState ? (Ul(e), Xt(e), Ts(e, i)) : (Xt(e), e.flags &= -16777217) : (t = t.memoizedProps, t !== a && Ul(e), Xt(e), Dc( + ))) : i ? i !== t.memoizedState ? (Ul(e), Xt(e), zs(e, i)) : (Xt(e), e.flags &= -16777217) : (t = t.memoizedProps, t !== a && Ul(e), Xt(e), Oc( e, n, t, @@ -5525,7 +5525,7 @@ Error generating stack: ` + a.message + ` l )), null; case 27: - if (Ve(e), l = ct.current, n = e.type, t !== null && e.stateNode != null) + if (Yl(e), l = ct.current, n = e.type, t !== null && e.stateNode != null) t.memoizedProps !== a && Ul(e); else { if (!a) { @@ -5533,11 +5533,11 @@ Error generating stack: ` + a.message + ` throw Error(s(166)); return Xt(e), null; } - t = q.current, xn(e) ? er(e) : (t = Od(n, a, l), e.stateNode = t, Ul(e)); + t = q.current, vn(e) ? lr(e) : (t = Cd(n, a, l), e.stateNode = t, Ul(e)); } return Xt(e), null; case 5: - if (Ve(e), n = e.type, t !== null && e.stateNode != null) + if (Yl(e), n = e.type, t !== null && e.stateNode != null) t.memoizedProps !== a && Ul(e); else { if (!a) { @@ -5545,10 +5545,10 @@ Error generating stack: ` + a.message + ` throw Error(s(166)); return Xt(e), null; } - if (i = q.current, xn(e)) - er(e); + if (i = q.current, vn(e)) + lr(e); else { - var u = Zu( + var u = $u( ct.current ); switch (i) { @@ -5592,7 +5592,7 @@ Error generating stack: ` + a.message + ` i = typeof a.is == "string" ? u.createElement(n, { is: a.is }) : u.createElement(n); } } - i[te] = e, i[re] = a; + i[It] = e, i[me] = a; t: for (u = e.child; u !== null; ) { if (u.tag === 5 || u.tag === 6) i.appendChild(u.stateNode); @@ -5609,7 +5609,7 @@ Error generating stack: ` + a.message + ` u.sibling.return = u.return, u = u.sibling; } e.stateNode = i; - t: switch (ge(i, n, a), n) { + t: switch (ve(i, n, a), n) { case "button": case "input": case "select": @@ -5625,7 +5625,7 @@ Error generating stack: ` + a.message + ` a && Ul(e); } } - return Xt(e), Dc( + return Xt(e), Oc( e, e.type, t === null ? null : t.memoizedProps, @@ -5638,95 +5638,95 @@ Error generating stack: ` + a.message + ` else { if (typeof a != "string" && e.stateNode === null) throw Error(s(166)); - if (t = ct.current, xn(e)) { - if (t = e.stateNode, l = e.memoizedProps, a = null, n = de, n !== null) + if (t = ct.current, vn(e)) { + if (t = e.stateNode, l = e.memoizedProps, a = null, n = ge, n !== null) switch (n.tag) { case 27: case 5: a = n.memoizedProps; } - t[te] = e, t = !!(t.nodeValue === l || a !== null && a.suppressHydrationWarning === !0 || vd(t.nodeValue, l)), t || $l(e, !0); + t[It] = e, t = !!(t.nodeValue === l || a !== null && a.suppressHydrationWarning === !0 || bd(t.nodeValue, l)), t || Fl(e, !0); } else - t = Zu(t).createTextNode( + t = $u(t).createTextNode( a - ), t[te] = e, e.stateNode = t; + ), t[It] = e, e.stateNode = t; } return Xt(e), null; case 31: if (l = e.memoizedState, t === null || t.memoizedState !== null) { - if (a = xn(e), l !== null) { + if (a = vn(e), l !== null) { if (t === null) { if (!a) throw Error(s(318)); if (t = e.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(s(557)); - t[te] = e; + t[It] = e; } else - Ha(), (e.flags & 128) === 0 && (e.memoizedState = null), e.flags |= 4; + Ba(), (e.flags & 128) === 0 && (e.memoizedState = null), e.flags |= 4; Xt(e), t = !1; } else - l = qf(), t !== null && t.memoizedState !== null && (t.memoizedState.hydrationErrors = l), t = !0; + l = Gf(), t !== null && t.memoizedState !== null && (t.memoizedState.hydrationErrors = l), t = !0; if (!t) - return e.flags & 256 ? (Ye(e), e) : (Ye(e), null); + return e.flags & 256 ? (qe(e), e) : (qe(e), null); if ((e.flags & 128) !== 0) throw Error(s(558)); } return Xt(e), null; case 13: if (a = e.memoizedState, t === null || t.memoizedState !== null && t.memoizedState.dehydrated !== null) { - if (n = xn(e), a !== null && a.dehydrated !== null) { + if (n = vn(e), a !== null && a.dehydrated !== null) { if (t === null) { if (!n) throw Error(s(318)); if (n = e.memoizedState, n = n !== null ? n.dehydrated : null, !n) throw Error(s(317)); - n[te] = e; + n[It] = e; } else - Ha(), (e.flags & 128) === 0 && (e.memoizedState = null), e.flags |= 4; + Ba(), (e.flags & 128) === 0 && (e.memoizedState = null), e.flags |= 4; Xt(e), n = !1; } else - n = qf(), t !== null && t.memoizedState !== null && (t.memoizedState.hydrationErrors = n), n = !0; + n = Gf(), t !== null && t.memoizedState !== null && (t.memoizedState.hydrationErrors = n), n = !0; if (!n) - return e.flags & 256 ? (Ye(e), e) : (Ye(e), null); + return e.flags & 256 ? (qe(e), e) : (qe(e), null); } - return Ye(e), (e.flags & 128) !== 0 ? (e.lanes = l, e) : (l = a !== null, t = t !== null && t.memoizedState !== null, l && (a = e.child, n = null, a.alternate !== null && a.alternate.memoizedState !== null && a.alternate.memoizedState.cachePool !== null && (n = a.alternate.memoizedState.cachePool.pool), i = null, a.memoizedState !== null && a.memoizedState.cachePool !== null && (i = a.memoizedState.cachePool.pool), i !== n && (a.flags |= 2048)), l !== t && l && (e.child.flags |= 8192), Cu(e, e.updateQueue), Xt(e), null); + return qe(e), (e.flags & 128) !== 0 ? (e.lanes = l, e) : (l = a !== null, t = t !== null && t.memoizedState !== null, l && (a = e.child, n = null, a.alternate !== null && a.alternate.memoizedState !== null && a.alternate.memoizedState.cachePool !== null && (n = a.alternate.memoizedState.cachePool.pool), i = null, a.memoizedState !== null && a.memoizedState.cachePool !== null && (i = a.memoizedState.cachePool.pool), i !== n && (a.flags |= 2048)), l !== t && l && (e.child.flags |= 8192), Hu(e, e.updateQueue), Xt(e), null); case 4: - return Rt(), t === null && Wc(e.stateNode.containerInfo), Xt(e), null; + return Qt(), t === null && $c(e.stateNode.containerInfo), Xt(e), null; case 10: return _l(e.type), Xt(e), null; case 19: - if (A($t), a = e.memoizedState, a === null) return Xt(e), null; + if (E(Wt), a = e.memoizedState, a === null) return Xt(e), null; if (n = (e.flags & 128) !== 0, i = a.rendering, i === null) - if (n) Si(a, !1); + if (n) Ti(a, !1); else { if (kt !== 0 || t !== null && (t.flags & 128) !== 0) for (t = e.child; t !== null; ) { - if (i = yu(t), i !== null) { - for (e.flags |= 128, Si(a, !1), t = i.updateQueue, e.updateQueue = t, Cu(e, t), e.subtreeFlags = 0, t = l, l = e.child; l !== null; ) - Wo(l, t), l = l.sibling; - return N( - $t, - $t.current & 1 | 2 - ), St && El(e, a.treeForkCount), e.child; + if (i = zu(t), i !== null) { + for (e.flags |= 128, Ti(a, !1), t = i.updateQueue, e.updateQueue = t, Hu(e, t), e.subtreeFlags = 0, t = l, l = e.child; l !== null; ) + $o(l, t), l = l.sibling; + return B( + Wt, + Wt.current & 1 | 2 + ), bt && El(e, a.treeForkCount), e.child; } t = t.sibling; } - a.tail !== null && pe() > wu && (e.flags |= 128, n = !0, Si(a, !1), e.lanes = 4194304); + a.tail !== null && de() > Lu && (e.flags |= 128, n = !0, Ti(a, !1), e.lanes = 4194304); } else { if (!n) - if (t = yu(i), t !== null) { - if (e.flags |= 128, n = !0, t = t.updateQueue, e.updateQueue = t, Cu(e, t), Si(a, !0), a.tail === null && a.tailMode === "hidden" && !i.alternate && !St) + if (t = zu(i), t !== null) { + if (e.flags |= 128, n = !0, t = t.updateQueue, e.updateQueue = t, Hu(e, t), Ti(a, !0), a.tail === null && a.tailMode === "hidden" && !i.alternate && !bt) return Xt(e), null; } else - 2 * pe() - a.renderingStartTime > wu && l !== 536870912 && (e.flags |= 128, n = !0, Si(a, !1), e.lanes = 4194304); + 2 * de() - a.renderingStartTime > Lu && l !== 536870912 && (e.flags |= 128, n = !0, Ti(a, !1), e.lanes = 4194304); a.isBackwards ? (i.sibling = e.child, e.child = i) : (t = a.last, t !== null ? t.sibling = i : e.child = i, a.last = i); } - return a.tail !== null ? (t = a.tail, a.rendering = t, a.tail = t.sibling, a.renderingStartTime = pe(), t.sibling = null, l = $t.current, N( - $t, + return a.tail !== null ? (t = a.tail, a.rendering = t, a.tail = t.sibling, a.renderingStartTime = de(), t.sibling = null, l = Wt.current, B( + Wt, n ? l & 1 | 2 : l & 1 - ), St && El(e, a.treeForkCount), t) : (Xt(e), null); + ), bt && El(e, a.treeForkCount), t) : (Xt(e), null); case 22: case 23: - return Ye(e), $f(), a = e.memoizedState !== null, t !== null ? t.memoizedState !== null !== a && (e.flags |= 8192) : a && (e.flags |= 8192), a ? (l & 536870912) !== 0 && (e.flags & 128) === 0 && (Xt(e), e.subtreeFlags & 6 && (e.flags |= 8192)) : Xt(e), l = e.updateQueue, l !== null && Cu(e, l.retryQueue), l = null, t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (l = t.memoizedState.cachePool.pool), a = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), a !== l && (e.flags |= 2048), t !== null && A(Ga), null; + return qe(e), If(), a = e.memoizedState !== null, t !== null ? t.memoizedState !== null !== a && (e.flags |= 8192) : a && (e.flags |= 8192), a ? (l & 536870912) !== 0 && (e.flags & 128) === 0 && (Xt(e), e.subtreeFlags & 6 && (e.flags |= 8192)) : Xt(e), l = e.updateQueue, l !== null && Hu(e, l.retryQueue), l = null, t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (l = t.memoizedState.cachePool.pool), a = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), a !== l && (e.flags |= 2048), t !== null && E(ja), null; case 24: - return l = null, t !== null && (l = t.memoizedState.cache), e.memoizedState.cache !== l && (e.flags |= 2048), _l(ee), Xt(e), null; + return l = null, t !== null && (l = t.memoizedState.cache), e.memoizedState.cache !== l && (e.flags |= 2048), _l(Pt), Xt(e), null; case 25: return null; case 30: @@ -5735,80 +5735,80 @@ Error generating stack: ` + a.message + ` throw Error(s(156, e.tag)); } function fh(t, e) { - switch (Hf(e), e.tag) { + switch (jf(e), e.tag) { case 1: return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null; case 3: - return _l(ee), Rt(), t = e.flags, (t & 65536) !== 0 && (t & 128) === 0 ? (e.flags = t & -65537 | 128, e) : null; + return _l(Pt), Qt(), t = e.flags, (t & 65536) !== 0 && (t & 128) === 0 ? (e.flags = t & -65537 | 128, e) : null; case 26: case 27: case 5: - return Ve(e), null; + return Yl(e), null; case 31: if (e.memoizedState !== null) { - if (Ye(e), e.alternate === null) + if (qe(e), e.alternate === null) throw Error(s(340)); - Ha(); + Ba(); } return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null; case 13: - if (Ye(e), t = e.memoizedState, t !== null && t.dehydrated !== null) { + if (qe(e), t = e.memoizedState, t !== null && t.dehydrated !== null) { if (e.alternate === null) throw Error(s(340)); - Ha(); + Ba(); } return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null; case 19: - return A($t), null; + return E(Wt), null; case 4: - return Rt(), null; + return Qt(), null; case 10: return _l(e.type), null; case 22: case 23: - return Ye(e), $f(), t !== null && A(Ga), t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null; + return qe(e), If(), t !== null && E(ja), t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null; case 24: - return _l(ee), null; + return _l(Pt), null; case 25: return null; default: return null; } } - function zs(t, e) { - switch (Hf(e), e.tag) { + function Ms(t, e) { + switch (jf(e), e.tag) { case 3: - _l(ee), Rt(); + _l(Pt), Qt(); break; case 26: case 27: case 5: - Ve(e); + Yl(e); break; case 4: - Rt(); + Qt(); break; case 31: - e.memoizedState !== null && Ye(e); + e.memoizedState !== null && qe(e); break; case 13: - Ye(e); + qe(e); break; case 19: - A($t); + E(Wt); break; case 10: _l(e.type); break; case 22: case 23: - Ye(e), $f(), t !== null && A(Ga); + qe(e), If(), t !== null && E(ja); break; case 24: - _l(ee); + _l(Pt); } } - function Ti(t, e) { + function zi(t, e) { try { var l = e.updateQueue, a = l !== null ? l.lastEffect : null; if (a !== null) { @@ -5824,10 +5824,10 @@ Error generating stack: ` + a.message + ` } while (l !== n); } } catch (c) { - Nt(e, e.return, c); + Rt(e, e.return, c); } } - function na(t, e, l) { + function la(t, e, l) { try { var a = e.updateQueue, n = a !== null ? a.lastEffect : null; if (n !== null) { @@ -5841,11 +5841,11 @@ Error generating stack: ` + a.message + ` var r = l, v = c; try { v(); - } catch (M) { - Nt( + } catch (A) { + Rt( n, r, - M + A ); } } @@ -5853,33 +5853,33 @@ Error generating stack: ` + a.message + ` a = a.next; } while (a !== i); } - } catch (M) { - Nt(e, e.return, M); + } catch (A) { + Rt(e, e.return, A); } } - function Ms(t) { + function Es(t) { var e = t.updateQueue; if (e !== null) { var l = t.stateNode; try { - hr(e, l); + gr(e, l); } catch (a) { - Nt(t, t.return, a); + Rt(t, t.return, a); } } } - function Es(t, e, l) { - l.props = Va( + function As(t, e, l) { + l.props = Xa( t.type, t.memoizedProps ), l.state = t.memoizedState; try { l.componentWillUnmount(); } catch (a) { - Nt(t, e, a); + Rt(t, e, a); } } - function zi(t, e) { + function Mi(t, e) { try { var l = t.ref; if (l !== null) { @@ -5898,17 +5898,17 @@ Error generating stack: ` + a.message + ` typeof l == "function" ? t.refCleanup = l(a) : l.current = a; } } catch (n) { - Nt(t, e, n); + Rt(t, e, n); } } - function ml(t, e) { + function pl(t, e) { var l = t.ref, a = t.refCleanup; if (l !== null) if (typeof a == "function") try { a(); } catch (n) { - Nt(t, e, n); + Rt(t, e, n); } finally { t.refCleanup = null, t = t.alternate, t != null && (t.refCleanup = null); } @@ -5916,11 +5916,11 @@ Error generating stack: ` + a.message + ` try { l(null); } catch (n) { - Nt(t, e, n); + Rt(t, e, n); } else l.current = null; } - function As(t) { + function _s(t) { var e = t.type, l = t.memoizedProps, a = t.stateNode; try { t: switch (e) { @@ -5934,62 +5934,62 @@ Error generating stack: ` + a.message + ` l.src ? a.src = l.src : l.srcSet && (a.srcset = l.srcSet); } } catch (n) { - Nt(t, t.return, n); + Rt(t, t.return, n); } } - function Oc(t, e, l) { + function Cc(t, e, l) { try { var a = t.stateNode; - Oh(a, t.type, l, e), a[re] = e; + Oh(a, t.type, l, e), a[me] = e; } catch (n) { - Nt(t, t.return, n); + Rt(t, t.return, n); } } - function _s(t) { - return t.tag === 5 || t.tag === 3 || t.tag === 26 || t.tag === 27 && sa(t.type) || t.tag === 4; + function Ds(t) { + return t.tag === 5 || t.tag === 3 || t.tag === 26 || t.tag === 27 && oa(t.type) || t.tag === 4; } - function Cc(t) { + function Uc(t) { t: for (; ; ) { for (; t.sibling === null; ) { - if (t.return === null || _s(t.return)) return null; + if (t.return === null || Ds(t.return)) return null; t = t.return; } for (t.sibling.return = t.return, t = t.sibling; t.tag !== 5 && t.tag !== 6 && t.tag !== 18; ) { - if (t.tag === 27 && sa(t.type) || t.flags & 2 || t.child === null || t.tag === 4) continue t; + if (t.tag === 27 && oa(t.type) || t.flags & 2 || t.child === null || t.tag === 4) continue t; t.child.return = t, t = t.child; } if (!(t.flags & 2)) return t.stateNode; } } - function Uc(t, e, l) { + function Rc(t, e, l) { var a = t.tag; if (a === 5 || a === 6) - t = t.stateNode, e ? (l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l).insertBefore(t, e) : (e = l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l, e.appendChild(t), l = l._reactRootContainer, l != null || e.onclick !== null || (e.onclick = tl)); - else if (a !== 4 && (a === 27 && sa(t.type) && (l = t.stateNode, e = null), t = t.child, t !== null)) - for (Uc(t, e, l), t = t.sibling; t !== null; ) - Uc(t, e, l), t = t.sibling; + t = t.stateNode, e ? (l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l).insertBefore(t, e) : (e = l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l, e.appendChild(t), l = l._reactRootContainer, l != null || e.onclick !== null || (e.onclick = el)); + else if (a !== 4 && (a === 27 && oa(t.type) && (l = t.stateNode, e = null), t = t.child, t !== null)) + for (Rc(t, e, l), t = t.sibling; t !== null; ) + Rc(t, e, l), t = t.sibling; } - function Uu(t, e, l) { + function ju(t, e, l) { var a = t.tag; if (a === 5 || a === 6) t = t.stateNode, e ? l.insertBefore(t, e) : l.appendChild(t); - else if (a !== 4 && (a === 27 && sa(t.type) && (l = t.stateNode), t = t.child, t !== null)) - for (Uu(t, e, l), t = t.sibling; t !== null; ) - Uu(t, e, l), t = t.sibling; + else if (a !== 4 && (a === 27 && oa(t.type) && (l = t.stateNode), t = t.child, t !== null)) + for (ju(t, e, l), t = t.sibling; t !== null; ) + ju(t, e, l), t = t.sibling; } - function Ds(t) { + function Os(t) { var e = t.stateNode, l = t.memoizedProps; try { for (var a = t.type, n = e.attributes; n.length; ) e.removeAttributeNode(n[0]); - ge(e, a, l), e[te] = t, e[re] = l; + ve(e, a, l), e[It] = t, e[me] = l; } catch (i) { - Nt(t, t.return, i); + Rt(t, t.return, i); } } - var Rl = !1, ne = !1, Rc = !1, Os = typeof WeakSet == "function" ? WeakSet : Set, ce = null; + var Rl = !1, le = !1, wc = !1, Cs = typeof WeakSet == "function" ? WeakSet : Set, re = null; function ch(t, e) { - if (t = t.containerInfo, Pc = Iu, t = Lo(t), Ef(t)) { + if (t = t.containerInfo, to = nf, t = Xo(t), Af(t)) { if ("selectionStart" in t) var l = { start: t.selectionStart, @@ -6009,28 +6009,28 @@ Error generating stack: ` + a.message + ` l = null; break t; } - var u = 0, c = -1, r = -1, v = 0, M = 0, O = t, x = null; + var u = 0, c = -1, r = -1, v = 0, A = 0, C = t, b = null; e: for (; ; ) { - for (var T; O !== l || n !== 0 && O.nodeType !== 3 || (c = u + n), O !== i || a !== 0 && O.nodeType !== 3 || (r = u + a), O.nodeType === 3 && (u += O.nodeValue.length), (T = O.firstChild) !== null; ) - x = O, O = T; + for (var T; C !== l || n !== 0 && C.nodeType !== 3 || (c = u + n), C !== i || a !== 0 && C.nodeType !== 3 || (r = u + a), C.nodeType === 3 && (u += C.nodeValue.length), (T = C.firstChild) !== null; ) + b = C, C = T; for (; ; ) { - if (O === t) break e; - if (x === l && ++v === n && (c = u), x === i && ++M === a && (r = u), (T = O.nextSibling) !== null) break; - O = x, x = O.parentNode; + if (C === t) break e; + if (b === l && ++v === n && (c = u), b === i && ++A === a && (r = u), (T = C.nextSibling) !== null) break; + C = b, b = C.parentNode; } - O = T; + C = T; } l = c === -1 || r === -1 ? null : { start: c, end: r }; } else l = null; } l = l || { start: 0, end: 0 }; } else l = null; - for (to = { focusedElem: t, selectionRange: l }, Iu = !1, ce = e; ce !== null; ) - if (e = ce, t = e.child, (e.subtreeFlags & 1028) !== 0 && t !== null) - t.return = e, ce = t; + for (eo = { focusedElem: t, selectionRange: l }, nf = !1, re = e; re !== null; ) + if (e = re, t = e.child, (e.subtreeFlags & 1028) !== 0 && t !== null) + t.return = e, re = t; else - for (; ce !== null; ) { - switch (e = ce, i = e.alternate, t = e.flags, e.tag) { + for (; re !== null; ) { + switch (e = re, i = e.alternate, t = e.flags, e.tag) { case 0: if ((t & 4) !== 0 && (t = e.updateQueue, t = t !== null ? t.events : null, t !== null)) for (l = 0; l < t.length; l++) @@ -6043,7 +6043,7 @@ Error generating stack: ` + a.message + ` if ((t & 1024) !== 0 && i !== null) { t = void 0, l = e, n = i.memoizedProps, i = i.memoizedState, a = l.stateNode; try { - var Y = Va( + var Y = Xa( l.type, n ); @@ -6051,11 +6051,11 @@ Error generating stack: ` + a.message + ` Y, i ), a.__reactInternalSnapshotBeforeUpdate = t; - } catch (I) { - Nt( + } catch ($) { + Rt( l, l.return, - I + $ ); } } @@ -6063,13 +6063,13 @@ Error generating stack: ` + a.message + ` case 3: if ((t & 1024) !== 0) { if (t = e.stateNode.containerInfo, l = t.nodeType, l === 9) - ao(t); + no(t); else if (l === 1) switch (t.nodeName) { case "HEAD": case "HTML": case "BODY": - ao(t); + no(t); break; default: t.textContent = ""; @@ -6087,30 +6087,30 @@ Error generating stack: ` + a.message + ` if ((t & 1024) !== 0) throw Error(s(163)); } if (t = e.sibling, t !== null) { - t.return = e.return, ce = t; + t.return = e.return, re = t; break; } - ce = e.return; + re = e.return; } } - function Cs(t, e, l) { + function Us(t, e, l) { var a = l.flags; switch (l.tag) { case 0: case 11: case 15: - Nl(t, l), a & 4 && Ti(5, l); + Bl(t, l), a & 4 && zi(5, l); break; case 1: - if (Nl(t, l), a & 4) + if (Bl(t, l), a & 4) if (t = l.stateNode, e === null) try { t.componentDidMount(); } catch (u) { - Nt(l, l.return, u); + Rt(l, l.return, u); } else { - var n = Va( + var n = Xa( l.type, e.memoizedProps ); @@ -6122,17 +6122,17 @@ Error generating stack: ` + a.message + ` t.__reactInternalSnapshotBeforeUpdate ); } catch (u) { - Nt( + Rt( l, l.return, u ); } } - a & 64 && Ms(l), a & 512 && zi(l, l.return); + a & 64 && Es(l), a & 512 && Mi(l, l.return); break; case 3: - if (Nl(t, l), a & 64 && (t = l.updateQueue, t !== null)) { + if (Bl(t, l), a & 64 && (t = l.updateQueue, t !== null)) { if (e = null, l.child !== null) switch (l.child.tag) { case 27: @@ -6143,92 +6143,92 @@ Error generating stack: ` + a.message + ` e = l.child.stateNode; } try { - hr(t, e); + gr(t, e); } catch (u) { - Nt(l, l.return, u); + Rt(l, l.return, u); } } break; case 27: - e === null && a & 4 && Ds(l); + e === null && a & 4 && Os(l); case 26: case 5: - Nl(t, l), e === null && a & 4 && As(l), a & 512 && zi(l, l.return); + Bl(t, l), e === null && a & 4 && _s(l), a & 512 && Mi(l, l.return); break; case 12: - Nl(t, l); + Bl(t, l); break; case 31: - Nl(t, l), a & 4 && Bs(t, l); + Bl(t, l), a & 4 && Bs(t, l); break; case 13: - Nl(t, l), a & 4 && Ns(t, l), a & 64 && (t = l.memoizedState, t !== null && (t = t.dehydrated, t !== null && (l = yh.bind( + Bl(t, l), a & 4 && Ns(t, l), a & 64 && (t = l.memoizedState, t !== null && (t = t.dehydrated, t !== null && (l = yh.bind( null, l ), jh(t, l)))); break; case 22: if (a = l.memoizedState !== null || Rl, !a) { - e = e !== null && e.memoizedState !== null || ne, n = Rl; - var i = ne; - Rl = a, (ne = e) && !i ? wl( + e = e !== null && e.memoizedState !== null || le, n = Rl; + var i = le; + Rl = a, (le = e) && !i ? Nl( t, l, (l.subtreeFlags & 8772) !== 0 - ) : Nl(t, l), Rl = n, ne = i; + ) : Bl(t, l), Rl = n, le = i; } break; case 30: break; default: - Nl(t, l); + Bl(t, l); } } - function Us(t) { + function Rs(t) { var e = t.alternate; - e !== null && (t.alternate = null, Us(e)), t.child = null, t.deletions = null, t.sibling = null, t.tag === 5 && (e = t.stateNode, e !== null && Sa(e)), t.stateNode = null, t.return = null, t.dependencies = null, t.memoizedProps = null, t.memoizedState = null, t.pendingProps = null, t.stateNode = null, t.updateQueue = null; + e !== null && (t.alternate = null, Rs(e)), t.child = null, t.deletions = null, t.sibling = null, t.tag === 5 && (e = t.stateNode, e !== null && Ia(e)), t.stateNode = null, t.return = null, t.dependencies = null, t.memoizedProps = null, t.memoizedState = null, t.pendingProps = null, t.stateNode = null, t.updateQueue = null; } - var Qt = null, Oe = !1; - function Bl(t, e, l) { + var Vt = null, Ae = !1; + function wl(t, e, l) { for (l = l.child; l !== null; ) - Rs(t, e, l), l = l.sibling; + ws(t, e, l), l = l.sibling; } - function Rs(t, e, l) { - if (xe && typeof xe.onCommitFiberUnmount == "function") + function ws(t, e, l) { + if (Se && typeof Se.onCommitFiberUnmount == "function") try { - xe.onCommitFiberUnmount(ba, l); + Se.onCommitFiberUnmount(ya, l); } catch { } switch (l.tag) { case 26: - ne || ml(l, e), Bl( + le || pl(l, e), wl( t, e, l ), l.memoizedState ? l.memoizedState.count-- : l.stateNode && (l = l.stateNode, l.parentNode.removeChild(l)); break; case 27: - ne || ml(l, e); - var a = Qt, n = Oe; - sa(l.type) && (Qt = l.stateNode, Oe = !1), Bl( + le || pl(l, e); + var a = Vt, n = Ae; + oa(l.type) && (Vt = l.stateNode, Ae = !1), wl( t, e, l - ), Ri(l.stateNode), Qt = a, Oe = n; + ), wi(l.stateNode), Vt = a, Ae = n; break; case 5: - ne || ml(l, e); + le || pl(l, e); case 6: - if (a = Qt, n = Oe, Qt = null, Bl( + if (a = Vt, n = Ae, Vt = null, wl( t, e, l - ), Qt = a, Oe = n, Qt !== null) - if (Oe) + ), Vt = a, Ae = n, Vt !== null) + if (Ae) try { - (Qt.nodeType === 9 ? Qt.body : Qt.nodeName === "HTML" ? Qt.ownerDocument.body : Qt).removeChild(l.stateNode); + (Vt.nodeType === 9 ? Vt.body : Vt.nodeName === "HTML" ? Vt.ownerDocument.body : Vt).removeChild(l.stateNode); } catch (i) { - Nt( + Rt( l, e, i @@ -6236,9 +6236,9 @@ Error generating stack: ` + a.message + ` } else try { - Qt.removeChild(l.stateNode); + Vt.removeChild(l.stateNode); } catch (i) { - Nt( + Rt( l, e, i @@ -6246,55 +6246,55 @@ Error generating stack: ` + a.message + ` } break; case 18: - Qt !== null && (Oe ? (t = Qt, Md( + Vt !== null && (Ae ? (t = Vt, Ed( t.nodeType === 9 ? t.body : t.nodeName === "HTML" ? t.ownerDocument.body : t, l.stateNode - ), Ln(t)) : Md(Qt, l.stateNode)); + ), Gn(t)) : Ed(Vt, l.stateNode)); break; case 4: - a = Qt, n = Oe, Qt = l.stateNode.containerInfo, Oe = !0, Bl( + a = Vt, n = Ae, Vt = l.stateNode.containerInfo, Ae = !0, wl( t, e, l - ), Qt = a, Oe = n; + ), Vt = a, Ae = n; break; case 0: case 11: case 14: case 15: - na(2, l, e), ne || na(4, l, e), Bl( + la(2, l, e), le || la(4, l, e), wl( t, e, l ); break; case 1: - ne || (ml(l, e), a = l.stateNode, typeof a.componentWillUnmount == "function" && Es( + le || (pl(l, e), a = l.stateNode, typeof a.componentWillUnmount == "function" && As( l, e, a - )), Bl( + )), wl( t, e, l ); break; case 21: - Bl( + wl( t, e, l ); break; case 22: - ne = (a = ne) || l.memoizedState !== null, Bl( + le = (a = le) || l.memoizedState !== null, wl( t, e, l - ), ne = a; + ), le = a; break; default: - Bl( + wl( t, e, l @@ -6305,18 +6305,18 @@ Error generating stack: ` + a.message + ` if (e.memoizedState === null && (t = e.alternate, t !== null && (t = t.memoizedState, t !== null))) { t = t.dehydrated; try { - Ln(t); + Gn(t); } catch (l) { - Nt(e, e.return, l); + Rt(e, e.return, l); } } } function Ns(t, e) { if (e.memoizedState === null && (t = e.alternate, t !== null && (t = t.memoizedState, t !== null && (t = t.dehydrated, t !== null)))) try { - Ln(t); + Gn(t); } catch (l) { - Nt(e, e.return, l); + Rt(e, e.return, l); } } function oh(t) { @@ -6325,14 +6325,14 @@ Error generating stack: ` + a.message + ` case 13: case 19: var e = t.stateNode; - return e === null && (e = t.stateNode = new Os()), e; + return e === null && (e = t.stateNode = new Cs()), e; case 22: - return t = t.stateNode, e = t._retryCache, e === null && (e = t._retryCache = new Os()), e; + return t = t.stateNode, e = t._retryCache, e === null && (e = t._retryCache = new Cs()), e; default: throw Error(s(435, t.tag)); } } - function Ru(t, e) { + function qu(t, e) { var l = oh(t); e.forEach(function(a) { if (!l.has(a)) { @@ -6342,7 +6342,7 @@ Error generating stack: ` + a.message + ` } }); } - function Ce(t, e) { + function _e(t, e) { var l = e.deletions; if (l !== null) for (var a = 0; a < l.length; a++) { @@ -6350,44 +6350,44 @@ Error generating stack: ` + a.message + ` t: for (; c !== null; ) { switch (c.tag) { case 27: - if (sa(c.type)) { - Qt = c.stateNode, Oe = !1; + if (oa(c.type)) { + Vt = c.stateNode, Ae = !1; break t; } break; case 5: - Qt = c.stateNode, Oe = !1; + Vt = c.stateNode, Ae = !1; break t; case 3: case 4: - Qt = c.stateNode.containerInfo, Oe = !0; + Vt = c.stateNode.containerInfo, Ae = !0; break t; } c = c.return; } - if (Qt === null) throw Error(s(160)); - Rs(i, u, n), Qt = null, Oe = !1, i = n.alternate, i !== null && (i.return = null), n.return = null; + if (Vt === null) throw Error(s(160)); + ws(i, u, n), Vt = null, Ae = !1, i = n.alternate, i !== null && (i.return = null), n.return = null; } if (e.subtreeFlags & 13886) for (e = e.child; e !== null; ) - ws(e, t), e = e.sibling; + Hs(e, t), e = e.sibling; } - var nl = null; - function ws(t, e) { + var al = null; + function Hs(t, e) { var l = t.alternate, a = t.flags; switch (t.tag) { case 0: case 11: case 14: case 15: - Ce(e, t), Ue(t), a & 4 && (na(3, t, t.return), Ti(3, t), na(5, t, t.return)); + _e(e, t), De(t), a & 4 && (la(3, t, t.return), zi(3, t), la(5, t, t.return)); break; case 1: - Ce(e, t), Ue(t), a & 512 && (ne || l === null || ml(l, l.return)), a & 64 && Rl && (t = t.updateQueue, t !== null && (a = t.callbacks, a !== null && (l = t.shared.hiddenCallbacks, t.shared.hiddenCallbacks = l === null ? a : l.concat(a)))); + _e(e, t), De(t), a & 512 && (le || l === null || pl(l, l.return)), a & 64 && Rl && (t = t.updateQueue, t !== null && (a = t.callbacks, a !== null && (l = t.shared.hiddenCallbacks, t.shared.hiddenCallbacks = l === null ? a : l.concat(a)))); break; case 26: - var n = nl; - if (Ce(e, t), Ue(t), a & 512 && (ne || l === null || ml(l, l.return)), a & 4) { + var n = al; + if (_e(e, t), De(t), a & 512 && (le || l === null || pl(l, l.return)), a & 4) { var i = l !== null ? l.memoizedState : null; if (a = t.memoizedState, l === null) if (a === null) @@ -6396,13 +6396,13 @@ Error generating stack: ` + a.message + ` a = t.type, l = t.memoizedProps, n = n.ownerDocument || n; e: switch (a) { case "title": - i = n.getElementsByTagName("title")[0], (!i || i[Ql] || i[te] || i.namespaceURI === "http://www.w3.org/2000/svg" || i.hasAttribute("itemprop")) && (i = n.createElement(a), n.head.insertBefore( + i = n.getElementsByTagName("title")[0], (!i || i[Sa] || i[It] || i.namespaceURI === "http://www.w3.org/2000/svg" || i.hasAttribute("itemprop")) && (i = n.createElement(a), n.head.insertBefore( i, n.querySelector("head > title") - )), ge(i, a, l), i[te] = t, Wt(i), a = i; + )), ve(i, a, l), i[It] = t, Ft(i), a = i; break t; case "link": - var u = wd( + var u = Hd( "link", "href", n @@ -6414,10 +6414,10 @@ Error generating stack: ` + a.message + ` break e; } } - i = n.createElement(a), ge(i, a, l), n.head.appendChild(i); + i = n.createElement(a), ve(i, a, l), n.head.appendChild(i); break; case "meta": - if (u = wd( + if (u = Hd( "meta", "content", n @@ -6428,16 +6428,16 @@ Error generating stack: ` + a.message + ` break e; } } - i = n.createElement(a), ge(i, a, l), n.head.appendChild(i); + i = n.createElement(a), ve(i, a, l), n.head.appendChild(i); break; default: throw Error(s(468, a)); } - i[te] = t, Wt(i), a = i; + i[It] = t, Ft(i), a = i; } t.stateNode = a; } else - Hd( + jd( n, t.type, t.stateNode @@ -6449,7 +6449,7 @@ Error generating stack: ` + a.message + ` t.memoizedProps ); else - i !== a ? (i === null ? l.stateNode !== null && (l = l.stateNode, l.parentNode.removeChild(l)) : i.count--, a === null ? Hd( + i !== a ? (i === null ? l.stateNode !== null && (l = l.stateNode, l.parentNode.removeChild(l)) : i.count--, a === null ? jd( n, t.type, t.stateNode @@ -6457,7 +6457,7 @@ Error generating stack: ` + a.message + ` n, a, t.memoizedProps - )) : a === null && t.stateNode !== null && Oc( + )) : a === null && t.stateNode !== null && Cc( t, t.memoizedProps, l.memoizedProps @@ -6465,67 +6465,67 @@ Error generating stack: ` + a.message + ` } break; case 27: - Ce(e, t), Ue(t), a & 512 && (ne || l === null || ml(l, l.return)), l !== null && a & 4 && Oc( + _e(e, t), De(t), a & 512 && (le || l === null || pl(l, l.return)), l !== null && a & 4 && Cc( t, t.memoizedProps, l.memoizedProps ); break; case 5: - if (Ce(e, t), Ue(t), a & 512 && (ne || l === null || ml(l, l.return)), t.flags & 32) { + if (_e(e, t), De(t), a & 512 && (le || l === null || pl(l, l.return)), t.flags & 32) { n = t.stateNode; try { - j(n, ""); + N(n, ""); } catch (Y) { - Nt(t, t.return, Y); + Rt(t, t.return, Y); } } - a & 4 && t.stateNode != null && (n = t.memoizedProps, Oc( + a & 4 && t.stateNode != null && (n = t.memoizedProps, Cc( t, n, l !== null ? l.memoizedProps : n - )), a & 1024 && (Rc = !0); + )), a & 1024 && (wc = !0); break; case 6: - if (Ce(e, t), Ue(t), a & 4) { + if (_e(e, t), De(t), a & 4) { if (t.stateNode === null) throw Error(s(162)); a = t.memoizedProps, l = t.stateNode; try { l.nodeValue = a; } catch (Y) { - Nt(t, t.return, Y); + Rt(t, t.return, Y); } } break; case 3: - if (ku = null, n = nl, nl = Ku(e.containerInfo), Ce(e, t), nl = n, Ue(t), a & 4 && l !== null && l.memoizedState.isDehydrated) + if (tf = null, n = al, al = Iu(e.containerInfo), _e(e, t), al = n, De(t), a & 4 && l !== null && l.memoizedState.isDehydrated) try { - Ln(e.containerInfo); + Gn(e.containerInfo); } catch (Y) { - Nt(t, t.return, Y); + Rt(t, t.return, Y); } - Rc && (Rc = !1, Hs(t)); + wc && (wc = !1, js(t)); break; case 4: - a = nl, nl = Ku( + a = al, al = Iu( t.stateNode.containerInfo - ), Ce(e, t), Ue(t), nl = a; + ), _e(e, t), De(t), al = a; break; case 12: - Ce(e, t), Ue(t); + _e(e, t), De(t); break; case 31: - Ce(e, t), Ue(t), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, Ru(t, a))); + _e(e, t), De(t), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, qu(t, a))); break; case 13: - Ce(e, t), Ue(t), t.child.flags & 8192 && t.memoizedState !== null != (l !== null && l.memoizedState !== null) && (Nu = pe()), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, Ru(t, a))); + _e(e, t), De(t), t.child.flags & 8192 && t.memoizedState !== null != (l !== null && l.memoizedState !== null) && (Yu = de()), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, qu(t, a))); break; case 22: n = t.memoizedState !== null; - var r = l !== null && l.memoizedState !== null, v = Rl, M = ne; - if (Rl = v || n, ne = M || r, Ce(e, t), ne = M, Rl = v, Ue(t), a & 8192) - t: for (e = t.stateNode, e._visibility = n ? e._visibility & -2 : e._visibility | 1, n && (l === null || r || Rl || ne || Za(t)), l = null, e = t; ; ) { + var r = l !== null && l.memoizedState !== null, v = Rl, A = le; + if (Rl = v || n, le = A || r, _e(e, t), le = A, Rl = v, De(t), a & 8192) + t: for (e = t.stateNode, e._visibility = n ? e._visibility & -2 : e._visibility | 1, n && (l === null || r || Rl || le || Qa(t)), l = null, e = t; ; ) { if (e.tag === 5 || e.tag === 26) { if (l === null) { r = l = e; @@ -6534,11 +6534,11 @@ Error generating stack: ` + a.message + ` u = i.style, typeof u.setProperty == "function" ? u.setProperty("display", "none", "important") : u.display = "none"; else { c = r.stateNode; - var O = r.memoizedProps.style, x = O != null && O.hasOwnProperty("display") ? O.display : null; - c.style.display = x == null || typeof x == "boolean" ? "" : ("" + x).trim(); + var C = r.memoizedProps.style, b = C != null && C.hasOwnProperty("display") ? C.display : null; + c.style.display = b == null || typeof b == "boolean" ? "" : ("" + b).trim(); } } catch (Y) { - Nt(r, r.return, Y); + Rt(r, r.return, Y); } } } else if (e.tag === 6) { @@ -6547,7 +6547,7 @@ Error generating stack: ` + a.message + ` try { r.stateNode.nodeValue = n ? "" : r.memoizedProps; } catch (Y) { - Nt(r, r.return, Y); + Rt(r, r.return, Y); } } } else if (e.tag === 18) { @@ -6555,9 +6555,9 @@ Error generating stack: ` + a.message + ` r = e; try { var T = r.stateNode; - n ? Ed(T, !0) : Ed(r.stateNode, !1); + n ? Ad(T, !0) : Ad(r.stateNode, !1); } catch (Y) { - Nt(r, r.return, Y); + Rt(r, r.return, Y); } } } else if ((e.tag !== 22 && e.tag !== 23 || e.memoizedState === null || e === t) && e.child !== null) { @@ -6571,25 +6571,25 @@ Error generating stack: ` + a.message + ` } l === e && (l = null), e.sibling.return = e.return, e = e.sibling; } - a & 4 && (a = t.updateQueue, a !== null && (l = a.retryQueue, l !== null && (a.retryQueue = null, Ru(t, l)))); + a & 4 && (a = t.updateQueue, a !== null && (l = a.retryQueue, l !== null && (a.retryQueue = null, qu(t, l)))); break; case 19: - Ce(e, t), Ue(t), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, Ru(t, a))); + _e(e, t), De(t), a & 4 && (a = t.updateQueue, a !== null && (t.updateQueue = null, qu(t, a))); break; case 30: break; case 21: break; default: - Ce(e, t), Ue(t); + _e(e, t), De(t); } } - function Ue(t) { + function De(t) { var e = t.flags; if (e & 2) { try { for (var l, a = t.return; a !== null; ) { - if (_s(a)) { + if (Ds(a)) { l = a; break; } @@ -6598,19 +6598,19 @@ Error generating stack: ` + a.message + ` if (l == null) throw Error(s(160)); switch (l.tag) { case 27: - var n = l.stateNode, i = Cc(t); - Uu(t, i, n); + var n = l.stateNode, i = Uc(t); + ju(t, i, n); break; case 5: var u = l.stateNode; - l.flags & 32 && (j(u, ""), l.flags &= -33); - var c = Cc(t); - Uu(t, c, u); + l.flags & 32 && (N(u, ""), l.flags &= -33); + var c = Uc(t); + ju(t, c, u); break; case 3: case 4: - var r = l.stateNode.containerInfo, v = Cc(t); - Uc( + var r = l.stateNode.containerInfo, v = Uc(t); + Rc( t, v, r @@ -6619,26 +6619,26 @@ Error generating stack: ` + a.message + ` default: throw Error(s(161)); } - } catch (M) { - Nt(t, t.return, M); + } catch (A) { + Rt(t, t.return, A); } t.flags &= -3; } e & 4096 && (t.flags &= -4097); } - function Hs(t) { + function js(t) { if (t.subtreeFlags & 1024) for (t = t.child; t !== null; ) { var e = t; - Hs(e), e.tag === 5 && e.flags & 1024 && e.stateNode.reset(), t = t.sibling; + js(e), e.tag === 5 && e.flags & 1024 && e.stateNode.reset(), t = t.sibling; } } - function Nl(t, e) { + function Bl(t, e) { if (e.subtreeFlags & 8772) for (e = e.child; e !== null; ) - Cs(t, e.alternate, e), e = e.sibling; + Us(t, e.alternate, e), e = e.sibling; } - function Za(t) { + function Qa(t) { for (t = t.child; t !== null; ) { var e = t; switch (e.tag) { @@ -6646,50 +6646,50 @@ Error generating stack: ` + a.message + ` case 11: case 14: case 15: - na(4, e, e.return), Za(e); + la(4, e, e.return), Qa(e); break; case 1: - ml(e, e.return); + pl(e, e.return); var l = e.stateNode; - typeof l.componentWillUnmount == "function" && Es( + typeof l.componentWillUnmount == "function" && As( e, e.return, l - ), Za(e); + ), Qa(e); break; case 27: - Ri(e.stateNode); + wi(e.stateNode); case 26: case 5: - ml(e, e.return), Za(e); + pl(e, e.return), Qa(e); break; case 22: - e.memoizedState === null && Za(e); + e.memoizedState === null && Qa(e); break; case 30: - Za(e); + Qa(e); break; default: - Za(e); + Qa(e); } t = t.sibling; } } - function wl(t, e, l) { + function Nl(t, e, l) { for (l = l && (e.subtreeFlags & 8772) !== 0, e = e.child; e !== null; ) { var a = e.alternate, n = t, i = e, u = i.flags; switch (i.tag) { case 0: case 11: case 15: - wl( + Nl( n, i, l - ), Ti(4, i); + ), zi(4, i); break; case 1: - if (wl( + if (Nl( n, i, l @@ -6697,7 +6697,7 @@ Error generating stack: ` + a.message + ` try { n.componentDidMount(); } catch (v) { - Nt(a, a.return, v); + Rt(a, a.return, v); } if (a = i, n = a.updateQueue, n !== null) { var c = a.stateNode; @@ -6705,55 +6705,55 @@ Error generating stack: ` + a.message + ` var r = n.shared.hiddenCallbacks; if (r !== null) for (n.shared.hiddenCallbacks = null, n = 0; n < r.length; n++) - mr(r[n], c); + hr(r[n], c); } catch (v) { - Nt(a, a.return, v); + Rt(a, a.return, v); } } - l && u & 64 && Ms(i), zi(i, i.return); + l && u & 64 && Es(i), Mi(i, i.return); break; case 27: - Ds(i); + Os(i); case 26: case 5: - wl( + Nl( n, i, l - ), l && a === null && u & 4 && As(i), zi(i, i.return); + ), l && a === null && u & 4 && _s(i), Mi(i, i.return); break; case 12: - wl( + Nl( n, i, l ); break; case 31: - wl( + Nl( n, i, l ), l && u & 4 && Bs(n, i); break; case 13: - wl( + Nl( n, i, l ), l && u & 4 && Ns(n, i); break; case 22: - i.memoizedState === null && wl( + i.memoizedState === null && Nl( n, i, l - ), zi(i, i.return); + ), Mi(i, i.return); break; case 30: break; default: - wl( + Nl( n, i, l @@ -6764,36 +6764,36 @@ Error generating stack: ` + a.message + ` } function Bc(t, e) { var l = null; - t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (l = t.memoizedState.cachePool.pool), t = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (t = e.memoizedState.cachePool.pool), t !== l && (t != null && t.refCount++, l != null && oi(l)); + t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (l = t.memoizedState.cachePool.pool), t = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (t = e.memoizedState.cachePool.pool), t !== l && (t != null && t.refCount++, l != null && ri(l)); } function Nc(t, e) { - t = null, e.alternate !== null && (t = e.alternate.memoizedState.cache), e = e.memoizedState.cache, e !== t && (e.refCount++, t != null && oi(t)); + t = null, e.alternate !== null && (t = e.alternate.memoizedState.cache), e = e.memoizedState.cache, e !== t && (e.refCount++, t != null && ri(t)); } - function il(t, e, l, a) { + function nl(t, e, l, a) { if (e.subtreeFlags & 10256) for (e = e.child; e !== null; ) - js( + qs( t, e, l, a ), e = e.sibling; } - function js(t, e, l, a) { + function qs(t, e, l, a) { var n = e.flags; switch (e.tag) { case 0: case 11: case 15: - il( + nl( t, e, l, a - ), n & 2048 && Ti(9, e); + ), n & 2048 && zi(9, e); break; case 1: - il( + nl( t, e, l, @@ -6801,16 +6801,16 @@ Error generating stack: ` + a.message + ` ); break; case 3: - il( + nl( t, e, l, a - ), n & 2048 && (t = null, e.alternate !== null && (t = e.alternate.memoizedState.cache), e = e.memoizedState.cache, e !== t && (e.refCount++, t != null && oi(t))); + ), n & 2048 && (t = null, e.alternate !== null && (t = e.alternate.memoizedState.cache), e = e.memoizedState.cache, e !== t && (e.refCount++, t != null && ri(t))); break; case 12: if (n & 2048) { - il( + nl( t, e, l, @@ -6825,10 +6825,10 @@ Error generating stack: ` + a.message + ` -0 ); } catch (r) { - Nt(e, e.return, r); + Rt(e, e.return, r); } } else - il( + nl( t, e, l, @@ -6836,7 +6836,7 @@ Error generating stack: ` + a.message + ` ); break; case 31: - il( + nl( t, e, l, @@ -6844,7 +6844,7 @@ Error generating stack: ` + a.message + ` ); break; case 13: - il( + nl( t, e, l, @@ -6854,17 +6854,17 @@ Error generating stack: ` + a.message + ` case 23: break; case 22: - i = e.stateNode, u = e.alternate, e.memoizedState !== null ? i._visibility & 2 ? il( + i = e.stateNode, u = e.alternate, e.memoizedState !== null ? i._visibility & 2 ? nl( t, e, l, a - ) : Mi(t, e) : i._visibility & 2 ? il( + ) : Ei(t, e) : i._visibility & 2 ? nl( t, e, l, a - ) : (i._visibility |= 2, Cn( + ) : (i._visibility |= 2, Dn( t, e, l, @@ -6873,7 +6873,7 @@ Error generating stack: ` + a.message + ` )), n & 2048 && Bc(u, e); break; case 24: - il( + nl( t, e, l, @@ -6881,7 +6881,7 @@ Error generating stack: ` + a.message + ` ), n & 2048 && Nc(e.alternate, e); break; default: - il( + nl( t, e, l, @@ -6889,35 +6889,35 @@ Error generating stack: ` + a.message + ` ); } } - function Cn(t, e, l, a, n) { + function Dn(t, e, l, a, n) { for (n = n && ((e.subtreeFlags & 10256) !== 0 || !1), e = e.child; e !== null; ) { var i = t, u = e, c = l, r = a, v = u.flags; switch (u.tag) { case 0: case 11: case 15: - Cn( + Dn( i, u, c, r, n - ), Ti(8, u); + ), zi(8, u); break; case 23: break; case 22: - var M = u.stateNode; - u.memoizedState !== null ? M._visibility & 2 ? Cn( + var A = u.stateNode; + u.memoizedState !== null ? A._visibility & 2 ? Dn( i, u, c, r, n - ) : Mi( + ) : Ei( i, u - ) : (M._visibility |= 2, Cn( + ) : (A._visibility |= 2, Dn( i, u, c, @@ -6929,7 +6929,7 @@ Error generating stack: ` + a.message + ` ); break; case 24: - Cn( + Dn( i, u, c, @@ -6938,7 +6938,7 @@ Error generating stack: ` + a.message + ` ), n && v & 2048 && Nc(u.alternate, u); break; default: - Cn( + Dn( i, u, c, @@ -6949,52 +6949,52 @@ Error generating stack: ` + a.message + ` e = e.sibling; } } - function Mi(t, e) { + function Ei(t, e) { if (e.subtreeFlags & 10256) for (e = e.child; e !== null; ) { var l = t, a = e, n = a.flags; switch (a.tag) { case 22: - Mi(l, a), n & 2048 && Bc( + Ei(l, a), n & 2048 && Bc( a.alternate, a ); break; case 24: - Mi(l, a), n & 2048 && Nc(a.alternate, a); + Ei(l, a), n & 2048 && Nc(a.alternate, a); break; default: - Mi(l, a); + Ei(l, a); } e = e.sibling; } } - var Ei = 8192; - function Un(t, e, l) { - if (t.subtreeFlags & Ei) + var Ai = 8192; + function On(t, e, l) { + if (t.subtreeFlags & Ai) for (t = t.child; t !== null; ) - qs( + Gs( t, e, l ), t = t.sibling; } - function qs(t, e, l) { + function Gs(t, e, l) { switch (t.tag) { case 26: - Un( + On( t, e, l - ), t.flags & Ei && t.memoizedState !== null && Fh( + ), t.flags & Ai && t.memoizedState !== null && Fh( l, - nl, + al, t.memoizedState, t.memoizedProps ); break; case 5: - Un( + On( t, e, l @@ -7002,33 +7002,33 @@ Error generating stack: ` + a.message + ` break; case 3: case 4: - var a = nl; - nl = Ku(t.stateNode.containerInfo), Un( + var a = al; + al = Iu(t.stateNode.containerInfo), On( t, e, l - ), nl = a; + ), al = a; break; case 22: - t.memoizedState === null && (a = t.alternate, a !== null && a.memoizedState !== null ? (a = Ei, Ei = 16777216, Un( + t.memoizedState === null && (a = t.alternate, a !== null && a.memoizedState !== null ? (a = Ai, Ai = 16777216, On( t, e, l - ), Ei = a) : Un( + ), Ai = a) : On( t, e, l )); break; default: - Un( + On( t, e, l ); } } - function Gs(t) { + function Ys(t) { var e = t.alternate; if (e !== null && (t = e.child, t !== null)) { e.child = null; @@ -7037,81 +7037,81 @@ Error generating stack: ` + a.message + ` while (t !== null); } } - function Ai(t) { + function _i(t) { var e = t.deletions; if ((t.flags & 16) !== 0) { if (e !== null) for (var l = 0; l < e.length; l++) { var a = e[l]; - ce = a, Ls( + re = a, Xs( a, t ); } - Gs(t); + Ys(t); } if (t.subtreeFlags & 10256) for (t = t.child; t !== null; ) - Ys(t), t = t.sibling; + Ls(t), t = t.sibling; } - function Ys(t) { + function Ls(t) { switch (t.tag) { case 0: case 11: case 15: - Ai(t), t.flags & 2048 && na(9, t, t.return); + _i(t), t.flags & 2048 && la(9, t, t.return); break; case 3: - Ai(t); + _i(t); break; case 12: - Ai(t); + _i(t); break; case 22: var e = t.stateNode; - t.memoizedState !== null && e._visibility & 2 && (t.return === null || t.return.tag !== 13) ? (e._visibility &= -3, Bu(t)) : Ai(t); + t.memoizedState !== null && e._visibility & 2 && (t.return === null || t.return.tag !== 13) ? (e._visibility &= -3, Gu(t)) : _i(t); break; default: - Ai(t); + _i(t); } } - function Bu(t) { + function Gu(t) { var e = t.deletions; if ((t.flags & 16) !== 0) { if (e !== null) for (var l = 0; l < e.length; l++) { var a = e[l]; - ce = a, Ls( + re = a, Xs( a, t ); } - Gs(t); + Ys(t); } for (t = t.child; t !== null; ) { switch (e = t, e.tag) { case 0: case 11: case 15: - na(8, e, e.return), Bu(e); + la(8, e, e.return), Gu(e); break; case 22: - l = e.stateNode, l._visibility & 2 && (l._visibility &= -3, Bu(e)); + l = e.stateNode, l._visibility & 2 && (l._visibility &= -3, Gu(e)); break; default: - Bu(e); + Gu(e); } t = t.sibling; } } - function Ls(t, e) { - for (; ce !== null; ) { - var l = ce; + function Xs(t, e) { + for (; re !== null; ) { + var l = re; switch (l.tag) { case 0: case 11: case 15: - na(8, l, e); + la(8, l, e); break; case 23: case 22: @@ -7121,68 +7121,68 @@ Error generating stack: ` + a.message + ` } break; case 24: - oi(l.memoizedState.cache); + ri(l.memoizedState.cache); } - if (a = l.child, a !== null) a.return = l, ce = a; + if (a = l.child, a !== null) a.return = l, re = a; else - t: for (l = t; ce !== null; ) { - a = ce; + t: for (l = t; re !== null; ) { + a = re; var n = a.sibling, i = a.return; - if (Us(a), a === l) { - ce = null; + if (Rs(a), a === l) { + re = null; break t; } if (n !== null) { - n.return = i, ce = n; + n.return = i, re = n; break t; } - ce = i; + re = i; } } } var rh = { getCacheForType: function(t) { - var e = me(ee), l = e.data.get(t); + var e = pe(Pt), l = e.data.get(t); return l === void 0 && (l = t(), e.data.set(t, l)), l; }, cacheSignal: function() { - return me(ee).controller.signal; - } - }, sh = typeof WeakMap == "function" ? WeakMap : Map, Ot = 0, qt = null, gt = null, vt = 0, Bt = 0, Le = null, ia = !1, Rn = !1, wc = !1, Hl = 0, kt = 0, ua = 0, Ka = 0, Hc = 0, Xe = 0, Bn = 0, _i = null, Re = null, jc = !1, Nu = 0, Xs = 0, wu = 1 / 0, Hu = null, fa = null, ue = 0, ca = null, Nn = null, jl = 0, qc = 0, Gc = null, Qs = null, Di = 0, Yc = null; - function Qe() { - return (Ot & 2) !== 0 && vt !== 0 ? vt & -vt : g.T !== null ? Kc() : Fn(); - } - function Vs() { - if (Xe === 0) - if ((vt & 536870912) === 0 || St) { - var t = tn; - tn <<= 1, (tn & 3932160) === 0 && (tn = 262144), Xe = t; - } else Xe = 536870912; - return t = Ge.current, t !== null && (t.flags |= 32), Xe; - } - function Be(t, e, l) { - (t === qt && (Bt === 2 || Bt === 9) || t.cancelPendingCommit !== null) && (wn(t, 0), oa( + return pe(Pt).controller.signal; + } + }, sh = typeof WeakMap == "function" ? WeakMap : Map, Ot = 0, jt = null, st = null, pt = 0, Ut = 0, Ge = null, aa = !1, Cn = !1, Hc = !1, Hl = 0, kt = 0, na = 0, Va = 0, jc = 0, Ye = 0, Un = 0, Di = null, Oe = null, qc = !1, Yu = 0, Qs = 0, Lu = 1 / 0, Xu = null, ia = null, ce = 0, ua = null, Rn = null, jl = 0, Gc = 0, Yc = null, Vs = null, Oi = 0, Lc = null; + function Le() { + return (Ot & 2) !== 0 && pt !== 0 ? pt & -pt : p.T !== null ? Jc() : $i(); + } + function Zs() { + if (Ye === 0) + if ((pt & 536870912) === 0 || bt) { + var t = Fa; + Fa <<= 1, (Fa & 3932160) === 0 && (Fa = 262144), Ye = t; + } else Ye = 536870912; + return t = je.current, t !== null && (t.flags |= 32), Ye; + } + function Ce(t, e, l) { + (t === jt && (Ut === 2 || Ut === 9) || t.cancelPendingCommit !== null) && (wn(t, 0), fa( t, - vt, - Xe, + pt, + Ye, !1 - )), Ll(t, l), ((Ot & 2) === 0 || t !== qt) && (t === qt && ((Ot & 2) === 0 && (Ka |= l), kt === 4 && oa( + )), cl(t, l), ((Ot & 2) === 0 || t !== jt) && (t === jt && ((Ot & 2) === 0 && (Va |= l), kt === 4 && fa( t, - vt, - Xe, + pt, + Ye, !1 - )), hl(t)); + )), yl(t)); } - function Zs(t, e, l) { + function Ks(t, e, l) { if ((Ot & 6) !== 0) throw Error(s(327)); - var a = !l && (e & 127) === 0 && (e & t.expiredLanes) === 0 || we(t, e), n = a ? hh(t, e) : Xc(t, e, !0), i = a; + var a = !l && (e & 127) === 0 && (e & t.expiredLanes) === 0 || ba(t, e), n = a ? hh(t, e) : Qc(t, e, !0), i = a; do { if (n === 0) { - Rn && !a && oa(t, e, 0, !1); + Cn && !a && fa(t, e, 0, !1); break; } else { if (l = t.current.alternate, i && !dh(l)) { - n = Xc(t, e, !1), i = !1; + n = Qc(t, e, !1), i = !1; continue; } if (n === 2) { @@ -7194,19 +7194,19 @@ Error generating stack: ` + a.message + ` e = u; t: { var c = t; - n = _i; + n = Di; var r = c.current.memoizedState.isDehydrated; - if (r && (wn(c, u).flags |= 256), u = Xc( + if (r && (wn(c, u).flags |= 256), u = Qc( c, u, !1 ), u !== 2) { - if (wc && !r) { - c.errorRecoveryDisabledLanes |= i, Ka |= i, n = 4; + if (Hc && !r) { + c.errorRecoveryDisabledLanes |= i, Va |= i, n = 4; break t; } - i = Re, Re = n, i !== null && (Re === null ? Re = i : Re.push.apply( - Re, + i = Oe, Oe = n, i !== null && (Oe === null ? Oe = i : Oe.push.apply( + Oe, i )); } @@ -7216,7 +7216,7 @@ Error generating stack: ` + a.message + ` } } if (n === 1) { - wn(t, 0), oa(t, e, 0, !0); + wn(t, 0), fa(t, e, 0, !0); break; } t: { @@ -7227,15 +7227,15 @@ Error generating stack: ` + a.message + ` case 4: if ((e & 4194048) !== e) break; case 6: - oa( + fa( a, e, - Xe, - !ia + Ye, + !aa ); break t; case 2: - Re = null; + Oe = null; break; case 3: case 5: @@ -7243,26 +7243,26 @@ Error generating stack: ` + a.message + ` default: throw Error(s(329)); } - if ((e & 62914560) === e && (n = Nu + 300 - pe(), 10 < n)) { - if (oa( + if ((e & 62914560) === e && (n = Yu + 300 - de(), 10 < n)) { + if (fa( a, e, - Xe, - !ia - ), en(a, 0, !0) !== 0) break t; - jl = e, a.timeoutHandle = Td( - Ks.bind( + Ye, + !aa + ), va(a, 0, !0) !== 0) break t; + jl = e, a.timeoutHandle = zd( + Js.bind( null, a, l, - Re, - Hu, - jc, + Oe, + Xu, + qc, e, - Xe, - Ka, - Bn, - ia, + Ye, + Va, + Un, + aa, i, "Throttled", -0, @@ -7272,17 +7272,17 @@ Error generating stack: ` + a.message + ` ); break t; } - Ks( + Js( a, l, - Re, - Hu, - jc, + Oe, + Xu, + qc, e, - Xe, - Ka, - Bn, - ia, + Ye, + Va, + Un, + aa, i, null, -0, @@ -7292,11 +7292,11 @@ Error generating stack: ` + a.message + ` } break; } while (!0); - hl(t); + yl(t); } - function Ks(t, e, l, a, n, i, u, c, r, v, M, O, x, T) { - if (t.timeoutHandle = -1, O = e.subtreeFlags, O & 8192 || (O & 16785408) === 16785408) { - O = { + function Js(t, e, l, a, n, i, u, c, r, v, A, C, b, T) { + if (t.timeoutHandle = -1, C = e.subtreeFlags, C & 8192 || (C & 16785408) === 16785408) { + C = { stylesheets: null, count: 0, imgCount: 0, @@ -7304,19 +7304,19 @@ Error generating stack: ` + a.message + ` suspenseyImages: [], waitingForImages: !0, waitingForViewTransition: !1, - unsuspend: tl - }, qs( + unsuspend: el + }, Gs( e, i, - O + C ); - var Y = (i & 62914560) === i ? Nu - pe() : (i & 4194048) === i ? Xs - pe() : 0; + var Y = (i & 62914560) === i ? Yu - de() : (i & 4194048) === i ? Qs - de() : 0; if (Y = Wh( - O, + C, Y ), Y !== null) { jl = i, t.cancelPendingCommit = Y( - td.bind( + ed.bind( null, t, e, @@ -7327,17 +7327,17 @@ Error generating stack: ` + a.message + ` u, c, r, - M, - O, + A, + C, null, - x, + b, T ) - ), oa(t, i, u, !v); + ), fa(t, i, u, !v); return; } } - td( + ed( t, e, i, @@ -7357,7 +7357,7 @@ Error generating stack: ` + a.message + ` var n = l[a], i = n.getSnapshot; n = n.value; try { - if (!je(i(), n)) return !1; + if (!Ne(i(), n)) return !1; } catch { return !1; } @@ -7375,167 +7375,167 @@ Error generating stack: ` + a.message + ` } return !0; } - function oa(t, e, l, a) { - e &= ~Hc, e &= ~Ka, t.suspendedLanes |= e, t.pingedLanes &= ~e, a && (t.warmLanes |= e), a = t.expirationTimes; + function fa(t, e, l, a) { + e &= ~jc, e &= ~Va, t.suspendedLanes |= e, t.pingedLanes &= ~e, a && (t.warmLanes |= e), a = t.expirationTimes; for (var n = e; 0 < n; ) { - var i = 31 - ye(n), u = 1 << i; + var i = 31 - ue(n), u = 1 << i; a[i] = -1, n &= ~u; } - l !== 0 && Se(t, l, e); + l !== 0 && Wi(t, l, e); } - function ju() { - return (Ot & 6) === 0 ? (Oi(0), !1) : !0; + function Qu() { + return (Ot & 6) === 0 ? (Ci(0), !1) : !0; } - function Lc() { - if (gt !== null) { - if (Bt === 0) - var t = gt.return; + function Xc() { + if (st !== null) { + if (Ut === 0) + var t = st.return; else - t = gt, Al = ja = null, ac(t), En = null, si = 0, t = gt; + t = st, Al = Na = null, nc(t), zn = null, di = 0, t = st; for (; t !== null; ) - zs(t.alternate, t), t = t.return; - gt = null; + Ms(t.alternate, t), t = t.return; + st = null; } } function wn(t, e) { var l = t.timeoutHandle; - l !== -1 && (t.timeoutHandle = -1, Rh(l)), l = t.cancelPendingCommit, l !== null && (t.cancelPendingCommit = null, l()), jl = 0, Lc(), qt = t, gt = l = Ml(t.current, null), vt = e, Bt = 0, Le = null, ia = !1, Rn = we(t, e), wc = !1, Bn = Xe = Hc = Ka = ua = kt = 0, Re = _i = null, jc = !1, (e & 8) !== 0 && (e |= e & 32); + l !== -1 && (t.timeoutHandle = -1, Rh(l)), l = t.cancelPendingCommit, l !== null && (t.cancelPendingCommit = null, l()), jl = 0, Xc(), jt = t, st = l = Ml(t.current, null), pt = e, Ut = 0, Ge = null, aa = !1, Cn = ba(t, e), Hc = !1, Un = Ye = jc = Va = na = kt = 0, Oe = Di = null, qc = !1, (e & 8) !== 0 && (e |= e & 32); var a = t.entangledLanes; if (a !== 0) for (t = t.entanglements, a &= e; 0 < a; ) { - var n = 31 - ye(a), i = 1 << n; + var n = 31 - ue(a), i = 1 << n; e |= t[n], a &= ~i; } - return Hl = e, nu(), l; + return Hl = e, ru(), l; } - function Js(t, e) { - ot = null, g.H = bi, e === Mn || e === du ? (e = or(), Bt = 3) : e === Zf ? (e = or(), Bt = 4) : Bt = e === bc ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, Le = e, gt === null && (kt = 1, Au( + function ks(t, e) { + ut = null, p.H = xi, e === Tn || e === vu ? (e = rr(), Ut = 3) : e === Kf ? (e = rr(), Ut = 4) : Ut = e === xc ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, Ge = e, st === null && (kt = 1, Ru( t, - Ke(e, t.current) + Ze(e, t.current) )); } - function ks() { - var t = Ge.current; - return t === null ? !0 : (vt & 4194048) === vt ? We === null : (vt & 62914560) === vt || (vt & 536870912) !== 0 ? t === We : !1; - } function Fs() { - var t = g.H; - return g.H = bi, t === null ? bi : t; + var t = je.current; + return t === null ? !0 : (pt & 4194048) === pt ? Fe === null : (pt & 62914560) === pt || (pt & 536870912) !== 0 ? t === Fe : !1; } function Ws() { - var t = g.A; - return g.A = rh, t; - } - function qu() { - kt = 4, ia || (vt & 4194048) !== vt && Ge.current !== null || (Rn = !0), (ua & 134217727) === 0 && (Ka & 134217727) === 0 || qt === null || oa( - qt, - vt, - Xe, + var t = p.H; + return p.H = xi, t === null ? xi : t; + } + function $s() { + var t = p.A; + return p.A = rh, t; + } + function Vu() { + kt = 4, aa || (pt & 4194048) !== pt && je.current !== null || (Cn = !0), (na & 134217727) === 0 && (Va & 134217727) === 0 || jt === null || fa( + jt, + pt, + Ye, !1 ); } - function Xc(t, e, l) { + function Qc(t, e, l) { var a = Ot; Ot |= 2; - var n = Fs(), i = Ws(); - (qt !== t || vt !== e) && (Hu = null, wn(t, e)), e = !1; + var n = Ws(), i = $s(); + (jt !== t || pt !== e) && (Xu = null, wn(t, e)), e = !1; var u = kt; t: do try { - if (Bt !== 0 && gt !== null) { - var c = gt, r = Le; - switch (Bt) { + if (Ut !== 0 && st !== null) { + var c = st, r = Ge; + switch (Ut) { case 8: - Lc(), u = 6; + Xc(), u = 6; break t; case 3: case 2: case 9: case 6: - Ge.current === null && (e = !0); - var v = Bt; - if (Bt = 0, Le = null, Hn(t, c, r, v), l && Rn) { + je.current === null && (e = !0); + var v = Ut; + if (Ut = 0, Ge = null, Bn(t, c, r, v), l && Cn) { u = 0; break t; } break; default: - v = Bt, Bt = 0, Le = null, Hn(t, c, r, v); + v = Ut, Ut = 0, Ge = null, Bn(t, c, r, v); } } mh(), u = kt; break; - } catch (M) { - Js(t, M); + } catch (A) { + ks(t, A); } while (!0); - return e && t.shellSuspendCounter++, Al = ja = null, Ot = a, g.H = n, g.A = i, gt === null && (qt = null, vt = 0, nu()), u; + return e && t.shellSuspendCounter++, Al = Na = null, Ot = a, p.H = n, p.A = i, st === null && (jt = null, pt = 0, ru()), u; } function mh() { - for (; gt !== null; ) $s(gt); + for (; st !== null; ) Is(st); } function hh(t, e) { var l = Ot; Ot |= 2; - var a = Fs(), n = Ws(); - qt !== t || vt !== e ? (Hu = null, wu = pe() + 500, wn(t, e)) : Rn = we( + var a = Ws(), n = $s(); + jt !== t || pt !== e ? (Xu = null, Lu = de() + 500, wn(t, e)) : Cn = ba( t, e ); t: do try { - if (Bt !== 0 && gt !== null) { - e = gt; - var i = Le; - e: switch (Bt) { + if (Ut !== 0 && st !== null) { + e = st; + var i = Ge; + e: switch (Ut) { case 1: - Bt = 0, Le = null, Hn(t, e, i, 1); + Ut = 0, Ge = null, Bn(t, e, i, 1); break; case 2: case 9: - if (fr(i)) { - Bt = 0, Le = null, Is(e); + if (cr(i)) { + Ut = 0, Ge = null, Ps(e); break; } e = function() { - Bt !== 2 && Bt !== 9 || qt !== t || (Bt = 7), hl(t); + Ut !== 2 && Ut !== 9 || jt !== t || (Ut = 7), yl(t); }, i.then(e, e); break t; case 3: - Bt = 7; + Ut = 7; break t; case 4: - Bt = 5; + Ut = 5; break t; case 7: - fr(i) ? (Bt = 0, Le = null, Is(e)) : (Bt = 0, Le = null, Hn(t, e, i, 7)); + cr(i) ? (Ut = 0, Ge = null, Ps(e)) : (Ut = 0, Ge = null, Bn(t, e, i, 7)); break; case 5: var u = null; - switch (gt.tag) { + switch (st.tag) { case 26: - u = gt.memoizedState; + u = st.memoizedState; case 5: case 27: - var c = gt; - if (u ? jd(u) : c.stateNode.complete) { - Bt = 0, Le = null; + var c = st; + if (u ? qd(u) : c.stateNode.complete) { + Ut = 0, Ge = null; var r = c.sibling; - if (r !== null) gt = r; + if (r !== null) st = r; else { var v = c.return; - v !== null ? (gt = v, Gu(v)) : gt = null; + v !== null ? (st = v, Zu(v)) : st = null; } break e; } } - Bt = 0, Le = null, Hn(t, e, i, 5); + Ut = 0, Ge = null, Bn(t, e, i, 5); break; case 6: - Bt = 0, Le = null, Hn(t, e, i, 6); + Ut = 0, Ge = null, Bn(t, e, i, 6); break; case 8: - Lc(), kt = 6; + Xc(), kt = 6; break t; default: throw Error(s(462)); @@ -7543,53 +7543,53 @@ Error generating stack: ` + a.message + ` } gh(); break; - } catch (M) { - Js(t, M); + } catch (A) { + ks(t, A); } while (!0); - return Al = ja = null, g.H = a, g.A = n, Ot = l, gt !== null ? 0 : (qt = null, vt = 0, nu(), kt); + return Al = Na = null, p.H = a, p.A = n, Ot = l, st !== null ? 0 : (jt = null, pt = 0, ru(), kt); } function gh() { - for (; gt !== null && !Xi(); ) - $s(gt); - } - function $s(t) { - var e = Ss(t.alternate, t, Hl); - t.memoizedProps = t.pendingProps, e === null ? Gu(t) : gt = e; + for (; st !== null && !Qn(); ) + Is(st); } function Is(t) { + var e = Ts(t.alternate, t, Hl); + t.memoizedProps = t.pendingProps, e === null ? Zu(t) : st = e; + } + function Ps(t) { var e = t, l = e.alternate; switch (e.tag) { case 15: case 0: - e = gs( + e = ps( l, e, e.pendingProps, e.type, void 0, - vt + pt ); break; case 11: - e = gs( + e = ps( l, e, e.pendingProps, e.type.render, e.ref, - vt + pt ); break; case 5: - ac(e); + nc(e); default: - zs(l, e), e = gt = Wo(e, Hl), e = Ss(l, e, Hl); + Ms(l, e), e = st = $o(e, Hl), e = Ts(l, e, Hl); } - t.memoizedProps = t.pendingProps, e === null ? Gu(t) : gt = e; + t.memoizedProps = t.pendingProps, e === null ? Zu(t) : st = e; } - function Hn(t, e, l, a) { - Al = ja = null, ac(e), En = null, si = 0; + function Bn(t, e, l, a) { + Al = Na = null, nc(e), zn = null, di = 0; var n = e.return; try { if (ah( @@ -7597,31 +7597,31 @@ Error generating stack: ` + a.message + ` n, e, l, - vt + pt )) { - kt = 1, Au( + kt = 1, Ru( t, - Ke(l, t.current) - ), gt = null; + Ze(l, t.current) + ), st = null; return; } } catch (i) { - if (n !== null) throw gt = n, i; - kt = 1, Au( + if (n !== null) throw st = n, i; + kt = 1, Ru( t, - Ke(l, t.current) - ), gt = null; + Ze(l, t.current) + ), st = null; return; } - e.flags & 32768 ? (St || a === 1 ? t = !0 : Rn || (vt & 536870912) !== 0 ? t = !1 : (ia = t = !0, (a === 2 || a === 9 || a === 3 || a === 6) && (a = Ge.current, a !== null && a.tag === 13 && (a.flags |= 16384))), Ps(e, t)) : Gu(e); + e.flags & 32768 ? (bt || a === 1 ? t = !0 : Cn || (pt & 536870912) !== 0 ? t = !1 : (aa = t = !0, (a === 2 || a === 9 || a === 3 || a === 6) && (a = je.current, a !== null && a.tag === 13 && (a.flags |= 16384))), td(e, t)) : Zu(e); } - function Gu(t) { + function Zu(t) { var e = t; do { if ((e.flags & 32768) !== 0) { - Ps( + td( e, - ia + aa ); return; } @@ -7632,151 +7632,151 @@ Error generating stack: ` + a.message + ` Hl ); if (l !== null) { - gt = l; + st = l; return; } if (e = e.sibling, e !== null) { - gt = e; + st = e; return; } - gt = e = t; + st = e = t; } while (e !== null); kt === 0 && (kt = 5); } - function Ps(t, e) { + function td(t, e) { do { var l = fh(t.alternate, t); if (l !== null) { - l.flags &= 32767, gt = l; + l.flags &= 32767, st = l; return; } if (l = t.return, l !== null && (l.flags |= 32768, l.subtreeFlags = 0, l.deletions = null), !e && (t = t.sibling, t !== null)) { - gt = t; + st = t; return; } - gt = t = l; + st = t = l; } while (t !== null); - kt = 6, gt = null; + kt = 6, st = null; } - function td(t, e, l, a, n, i, u, c, r) { + function ed(t, e, l, a, n, i, u, c, r) { t.cancelPendingCommit = null; do - Yu(); - while (ue !== 0); + Ku(); + while (ce !== 0); if ((Ot & 6) !== 0) throw Error(s(327)); if (e !== null) { if (e === t.current) throw Error(s(177)); - if (i = e.lanes | e.childLanes, i |= Cf, mf( + if (i = e.lanes | e.childLanes, i |= Uf, Fi( t, l, i, u, c, r - ), t === qt && (gt = qt = null, vt = 0), Nn = e, ca = t, jl = l, qc = i, Gc = n, Qs = a, (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? (t.callbackNode = null, t.callbackPriority = 0, bh(Wa, function() { - return id(), null; + ), t === jt && (st = jt = null, pt = 0), Rn = e, ua = t, jl = l, Gc = i, Yc = n, Vs = a, (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? (t.callbackNode = null, t.callbackPriority = 0, bh(pa, function() { + return ud(), null; })) : (t.callbackNode = null, t.callbackPriority = 0), a = (e.flags & 13878) !== 0, (e.subtreeFlags & 13878) !== 0 || a) { - a = g.T, g.T = null, n = U.p, U.p = 2, u = Ot, Ot |= 4; + a = p.T, p.T = null, n = M.p, M.p = 2, u = Ot, Ot |= 4; try { ch(t, e, l); } finally { - Ot = u, U.p = n, g.T = a; + Ot = u, M.p = n, p.T = a; } } - ue = 1, ed(), ld(), ad(); + ce = 1, ld(), ad(), nd(); } } - function ed() { - if (ue === 1) { - ue = 0; - var t = ca, e = Nn, l = (e.flags & 13878) !== 0; + function ld() { + if (ce === 1) { + ce = 0; + var t = ua, e = Rn, l = (e.flags & 13878) !== 0; if ((e.subtreeFlags & 13878) !== 0 || l) { - l = g.T, g.T = null; - var a = U.p; - U.p = 2; + l = p.T, p.T = null; + var a = M.p; + M.p = 2; var n = Ot; Ot |= 4; try { - ws(e, t); - var i = to, u = Lo(t.containerInfo), c = i.focusedElem, r = i.selectionRange; - if (u !== c && c && c.ownerDocument && Yo( + Hs(e, t); + var i = eo, u = Xo(t.containerInfo), c = i.focusedElem, r = i.selectionRange; + if (u !== c && c && c.ownerDocument && Lo( c.ownerDocument.documentElement, c )) { - if (r !== null && Ef(c)) { - var v = r.start, M = r.end; - if (M === void 0 && (M = v), "selectionStart" in c) + if (r !== null && Af(c)) { + var v = r.start, A = r.end; + if (A === void 0 && (A = v), "selectionStart" in c) c.selectionStart = v, c.selectionEnd = Math.min( - M, + A, c.value.length ); else { - var O = c.ownerDocument || document, x = O && O.defaultView || window; - if (x.getSelection) { - var T = x.getSelection(), Y = c.textContent.length, I = Math.min(r.start, Y), jt = r.end === void 0 ? I : Math.min(r.end, Y); - !T.extend && I > jt && (u = jt, jt = I, I = u); - var p = Go( + var C = c.ownerDocument || document, b = C && C.defaultView || window; + if (b.getSelection) { + var T = b.getSelection(), Y = c.textContent.length, $ = Math.min(r.start, Y), Nt = r.end === void 0 ? $ : Math.min(r.end, Y); + !T.extend && $ > Nt && (u = Nt, Nt = $, $ = u); + var g = Yo( c, - I - ), h = Go( + $ + ), h = Yo( c, - jt + Nt ); - if (p && h && (T.rangeCount !== 1 || T.anchorNode !== p.node || T.anchorOffset !== p.offset || T.focusNode !== h.node || T.focusOffset !== h.offset)) { - var y = O.createRange(); - y.setStart(p.node, p.offset), T.removeAllRanges(), I > jt ? (T.addRange(y), T.extend(h.node, h.offset)) : (y.setEnd(h.node, h.offset), T.addRange(y)); + if (g && h && (T.rangeCount !== 1 || T.anchorNode !== g.node || T.anchorOffset !== g.offset || T.focusNode !== h.node || T.focusOffset !== h.offset)) { + var y = C.createRange(); + y.setStart(g.node, g.offset), T.removeAllRanges(), $ > Nt ? (T.addRange(y), T.extend(h.node, h.offset)) : (y.setEnd(h.node, h.offset), T.addRange(y)); } } } } - for (O = [], T = c; T = T.parentNode; ) - T.nodeType === 1 && O.push({ + for (C = [], T = c; T = T.parentNode; ) + T.nodeType === 1 && C.push({ element: T, left: T.scrollLeft, top: T.scrollTop }); - for (typeof c.focus == "function" && c.focus(), c = 0; c < O.length; c++) { - var E = O[c]; - E.element.scrollLeft = E.left, E.element.scrollTop = E.top; + for (typeof c.focus == "function" && c.focus(), c = 0; c < C.length; c++) { + var _ = C[c]; + _.element.scrollLeft = _.left, _.element.scrollTop = _.top; } } - Iu = !!Pc, to = Pc = null; + nf = !!to, eo = to = null; } finally { - Ot = n, U.p = a, g.T = l; + Ot = n, M.p = a, p.T = l; } } - t.current = e, ue = 2; + t.current = e, ce = 2; } } - function ld() { - if (ue === 2) { - ue = 0; - var t = ca, e = Nn, l = (e.flags & 8772) !== 0; + function ad() { + if (ce === 2) { + ce = 0; + var t = ua, e = Rn, l = (e.flags & 8772) !== 0; if ((e.subtreeFlags & 8772) !== 0 || l) { - l = g.T, g.T = null; - var a = U.p; - U.p = 2; + l = p.T, p.T = null; + var a = M.p; + M.p = 2; var n = Ot; Ot |= 4; try { - Cs(t, e.alternate, e); + Us(t, e.alternate, e); } finally { - Ot = n, U.p = a, g.T = l; + Ot = n, M.p = a, p.T = l; } } - ue = 3; + ce = 3; } } - function ad() { - if (ue === 4 || ue === 3) { - ue = 0, Zn(); - var t = ca, e = Nn, l = jl, a = Qs; - (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? ue = 5 : (ue = 0, Nn = ca = null, nd(t, t.pendingLanes)); + function nd() { + if (ce === 4 || ce === 3) { + ce = 0, Qi(); + var t = ua, e = Rn, l = jl, a = Vs; + (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? ce = 5 : (ce = 0, Rn = ua = null, id(t, t.pendingLanes)); var n = t.pendingLanes; - if (n === 0 && (fa = null), kn(l), e = e.stateNode, xe && typeof xe.onCommitFiberRoot == "function") + if (n === 0 && (ia = null), Kn(l), e = e.stateNode, Se && typeof Se.onCommitFiberRoot == "function") try { - xe.onCommitFiberRoot( - ba, + Se.onCommitFiberRoot( + ya, e, void 0, (e.current.flags & 128) === 128 @@ -7784,7 +7784,7 @@ Error generating stack: ` + a.message + ` } catch { } if (a !== null) { - e = g.T, n = U.p, U.p = 2, g.T = null; + e = p.T, n = M.p, M.p = 2, p.T = null; try { for (var i = t.onRecoverableError, u = 0; u < a.length; u++) { var c = a[u]; @@ -7793,53 +7793,53 @@ Error generating stack: ` + a.message + ` }); } } finally { - g.T = e, U.p = n; + p.T = e, M.p = n; } } - (jl & 3) !== 0 && Yu(), hl(t), n = t.pendingLanes, (l & 261930) !== 0 && (n & 42) !== 0 ? t === Yc ? Di++ : (Di = 0, Yc = t) : Di = 0, Oi(0); + (jl & 3) !== 0 && Ku(), yl(t), n = t.pendingLanes, (l & 261930) !== 0 && (n & 42) !== 0 ? t === Lc ? Oi++ : (Oi = 0, Lc = t) : Oi = 0, Ci(0); } } - function nd(t, e) { - (t.pooledCacheLanes &= e) === 0 && (e = t.pooledCache, e != null && (t.pooledCache = null, oi(e))); + function id(t, e) { + (t.pooledCacheLanes &= e) === 0 && (e = t.pooledCache, e != null && (t.pooledCache = null, ri(e))); } - function Yu() { - return ed(), ld(), ad(), id(); + function Ku() { + return ld(), ad(), nd(), ud(); } - function id() { - if (ue !== 5) return !1; - var t = ca, e = qc; - qc = 0; - var l = kn(jl), a = g.T, n = U.p; + function ud() { + if (ce !== 5) return !1; + var t = ua, e = Gc; + Gc = 0; + var l = Kn(jl), a = p.T, n = M.p; try { - U.p = 32 > l ? 32 : l, g.T = null, l = Gc, Gc = null; - var i = ca, u = jl; - if (ue = 0, Nn = ca = null, jl = 0, (Ot & 6) !== 0) throw Error(s(331)); + M.p = 32 > l ? 32 : l, p.T = null, l = Yc, Yc = null; + var i = ua, u = jl; + if (ce = 0, Rn = ua = null, jl = 0, (Ot & 6) !== 0) throw Error(s(331)); var c = Ot; - if (Ot |= 4, Ys(i.current), js( + if (Ot |= 4, Ls(i.current), qs( i, i.current, u, l - ), Ot = c, Oi(0, !1), xe && typeof xe.onPostCommitFiberRoot == "function") + ), Ot = c, Ci(0, !1), Se && typeof Se.onPostCommitFiberRoot == "function") try { - xe.onPostCommitFiberRoot(ba, i); + Se.onPostCommitFiberRoot(ya, i); } catch { } return !0; } finally { - U.p = n, g.T = a, nd(t, e); + M.p = n, p.T = a, id(t, e); } } - function ud(t, e, l) { - e = Ke(l, e), e = vc(t.stateNode, e, 2), t = ea(t, e, 2), t !== null && (Ll(t, 2), hl(t)); + function fd(t, e, l) { + e = Ze(l, e), e = bc(t.stateNode, e, 2), t = Pl(t, e, 2), t !== null && (cl(t, 2), yl(t)); } - function Nt(t, e, l) { + function Rt(t, e, l) { if (t.tag === 3) - ud(t, t, l); + fd(t, t, l); else for (; e !== null; ) { if (e.tag === 3) { - ud( + fd( e, t, l @@ -7847,20 +7847,20 @@ Error generating stack: ` + a.message + ` break; } else if (e.tag === 1) { var a = e.stateNode; - if (typeof e.type.getDerivedStateFromError == "function" || typeof a.componentDidCatch == "function" && (fa === null || !fa.has(a))) { - t = Ke(l, t), l = fs(2), a = ea(e, l, 2), a !== null && (cs( + if (typeof e.type.getDerivedStateFromError == "function" || typeof a.componentDidCatch == "function" && (ia === null || !ia.has(a))) { + t = Ze(l, t), l = cs(2), a = Pl(e, l, 2), a !== null && (os( l, a, e, t - ), Ll(a, 2), hl(a)); + ), cl(a, 2), yl(a)); break; } } e = e.return; } } - function Qc(t, e, l) { + function Vc(t, e, l) { var a = t.pingCache; if (a === null) { a = t.pingCache = new sh(); @@ -7868,18 +7868,18 @@ Error generating stack: ` + a.message + ` a.set(e, n); } else n = a.get(e), n === void 0 && (n = /* @__PURE__ */ new Set(), a.set(e, n)); - n.has(l) || (wc = !0, n.add(l), t = ph.bind(null, t, e, l), e.then(t, t)); + n.has(l) || (Hc = !0, n.add(l), t = ph.bind(null, t, e, l), e.then(t, t)); } function ph(t, e, l) { var a = t.pingCache; - a !== null && a.delete(e), t.pingedLanes |= t.suspendedLanes & l, t.warmLanes &= ~l, qt === t && (vt & l) === l && (kt === 4 || kt === 3 && (vt & 62914560) === vt && 300 > pe() - Nu ? (Ot & 2) === 0 && wn(t, 0) : Hc |= l, Bn === vt && (Bn = 0)), hl(t); + a !== null && a.delete(e), t.pingedLanes |= t.suspendedLanes & l, t.warmLanes &= ~l, jt === t && (pt & l) === l && (kt === 4 || kt === 3 && (pt & 62914560) === pt && 300 > de() - Yu ? (Ot & 2) === 0 && wn(t, 0) : jc |= l, Un === pt && (Un = 0)), yl(t); } - function fd(t, e) { - e === 0 && (e = Ki()), t = Na(t, e), t !== null && (Ll(t, e), hl(t)); + function cd(t, e) { + e === 0 && (e = Vn()), t = Ra(t, e), t !== null && (cl(t, e), yl(t)); } function yh(t) { var e = t.memoizedState, l = 0; - e !== null && (l = e.retryLane), fd(t, l); + e !== null && (l = e.retryLane), cd(t, l); } function vh(t, e) { var l = 0; @@ -7898,130 +7898,130 @@ Error generating stack: ` + a.message + ` default: throw Error(s(314)); } - a !== null && a.delete(e), fd(t, l); + a !== null && a.delete(e), cd(t, l); } function bh(t, e) { - return ya(t, e); + return Xn(t, e); } - var Lu = null, jn = null, Vc = !1, Xu = !1, Zc = !1, ra = 0; - function hl(t) { - t !== jn && t.next === null && (jn === null ? Lu = jn = t : jn = jn.next = t), Xu = !0, Vc || (Vc = !0, Sh()); + var Ju = null, Nn = null, Zc = !1, ku = !1, Kc = !1, ca = 0; + function yl(t) { + t !== Nn && t.next === null && (Nn === null ? Ju = Nn = t : Nn = Nn.next = t), ku = !0, Zc || (Zc = !0, Sh()); } - function Oi(t, e) { - if (!Zc && Xu) { - Zc = !0; + function Ci(t, e) { + if (!Kc && ku) { + Kc = !0; do - for (var l = !1, a = Lu; a !== null; ) { + for (var l = !1, a = Ju; a !== null; ) { if (t !== 0) { var n = a.pendingLanes; if (n === 0) var i = 0; else { var u = a.suspendedLanes, c = a.pingedLanes; - i = (1 << 31 - ye(42 | t) + 1) - 1, i &= n & ~(u & ~c), i = i & 201326741 ? i & 201326741 | 1 : i ? i | 2 : 0; + i = (1 << 31 - ue(42 | t) + 1) - 1, i &= n & ~(u & ~c), i = i & 201326741 ? i & 201326741 | 1 : i ? i | 2 : 0; } - i !== 0 && (l = !0, sd(a, i)); + i !== 0 && (l = !0, dd(a, i)); } else - i = vt, i = en( + i = pt, i = va( a, - a === qt ? i : 0, + a === jt ? i : 0, a.cancelPendingCommit !== null || a.timeoutHandle !== -1 - ), (i & 3) === 0 || we(a, i) || (l = !0, sd(a, i)); + ), (i & 3) === 0 || ba(a, i) || (l = !0, dd(a, i)); a = a.next; } while (l); - Zc = !1; + Kc = !1; } } function xh() { - cd(); + od(); } - function cd() { - Xu = Vc = !1; + function od() { + ku = Zc = !1; var t = 0; - ra !== 0 && Uh() && (t = ra); - for (var e = pe(), l = null, a = Lu; a !== null; ) { - var n = a.next, i = od(a, e); - i === 0 ? (a.next = null, l === null ? Lu = n : l.next = n, n === null && (jn = l)) : (l = a, (t !== 0 || (i & 3) !== 0) && (Xu = !0)), a = n; + ca !== 0 && Uh() && (t = ca); + for (var e = de(), l = null, a = Ju; a !== null; ) { + var n = a.next, i = rd(a, e); + i === 0 ? (a.next = null, l === null ? Ju = n : l.next = n, n === null && (Nn = l)) : (l = a, (t !== 0 || (i & 3) !== 0) && (ku = !0)), a = n; } - ue !== 0 && ue !== 5 || Oi(t), ra !== 0 && (ra = 0); + ce !== 0 && ce !== 5 || Ci(t), ca !== 0 && (ca = 0); } - function od(t, e) { + function rd(t, e) { for (var l = t.suspendedLanes, a = t.pingedLanes, n = t.expirationTimes, i = t.pendingLanes & -62914561; 0 < i; ) { - var u = 31 - ye(i), c = 1 << u, r = n[u]; - r === -1 ? ((c & l) === 0 || (c & a) !== 0) && (n[u] = Zi(c, e)) : r <= e && (t.expiredLanes |= c), i &= ~c; + var u = 31 - ue(i), c = 1 << u, r = n[u]; + r === -1 ? ((c & l) === 0 || (c & a) !== 0) && (n[u] = xl(c, e)) : r <= e && (t.expiredLanes |= c), i &= ~c; } - if (e = qt, l = vt, l = en( + if (e = jt, l = pt, l = va( t, t === e ? l : 0, t.cancelPendingCommit !== null || t.timeoutHandle !== -1 - ), a = t.callbackNode, l === 0 || t === e && (Bt === 2 || Bt === 9) || t.cancelPendingCommit !== null) - return a !== null && a !== null && va(a), t.callbackNode = null, t.callbackPriority = 0; - if ((l & 3) === 0 || we(t, l)) { + ), a = t.callbackNode, l === 0 || t === e && (Ut === 2 || Ut === 9) || t.cancelPendingCommit !== null) + return a !== null && a !== null && ga(a), t.callbackNode = null, t.callbackPriority = 0; + if ((l & 3) === 0 || ba(t, l)) { if (e = l & -l, e === t.callbackPriority) return e; - switch (a !== null && va(a), kn(l)) { + switch (a !== null && ga(a), Kn(l)) { case 2: case 8: - l = Kn; + l = Ja; break; case 32: - l = Wa; + l = pa; break; case 268435456: - l = Qi; + l = Ki; break; default: - l = Wa; + l = pa; } - return a = rd.bind(null, t), l = ya(l, a), t.callbackPriority = e, t.callbackNode = l, e; + return a = sd.bind(null, t), l = Xn(l, a), t.callbackPriority = e, t.callbackNode = l, e; } - return a !== null && a !== null && va(a), t.callbackPriority = 2, t.callbackNode = null, 2; + return a !== null && a !== null && ga(a), t.callbackPriority = 2, t.callbackNode = null, 2; } - function rd(t, e) { - if (ue !== 0 && ue !== 5) + function sd(t, e) { + if (ce !== 0 && ce !== 5) return t.callbackNode = null, t.callbackPriority = 0, null; var l = t.callbackNode; - if (Yu() && t.callbackNode !== l) + if (Ku() && t.callbackNode !== l) return null; - var a = vt; - return a = en( + var a = pt; + return a = va( t, - t === qt ? a : 0, + t === jt ? a : 0, t.cancelPendingCommit !== null || t.timeoutHandle !== -1 - ), a === 0 ? null : (Zs(t, a, e), od(t, pe()), t.callbackNode != null && t.callbackNode === l ? rd.bind(null, t) : null); + ), a === 0 ? null : (Ks(t, a, e), rd(t, de()), t.callbackNode != null && t.callbackNode === l ? sd.bind(null, t) : null); } - function sd(t, e) { - if (Yu()) return null; - Zs(t, e, !0); + function dd(t, e) { + if (Ku()) return null; + Ks(t, e, !0); } function Sh() { - Bh(function() { - (Ot & 6) !== 0 ? ya( - Fa, + wh(function() { + (Ot & 6) !== 0 ? Xn( + Zi, xh - ) : cd(); + ) : od(); }); } - function Kc() { - if (ra === 0) { - var t = Tn; - t === 0 && (t = Pa, Pa <<= 1, (Pa & 261888) === 0 && (Pa = 256)), ra = t; + function Jc() { + if (ca === 0) { + var t = xn; + t === 0 && (t = bl, bl <<= 1, (bl & 261888) === 0 && (bl = 256)), ca = t; } - return ra; + return ca; } - function dd(t) { - return t == null || typeof t == "symbol" || typeof t == "boolean" ? null : typeof t == "function" ? t : cn("" + t); + function md(t) { + return t == null || typeof t == "symbol" || typeof t == "boolean" ? null : typeof t == "function" ? t : ln("" + t); } - function md(t, e) { + function hd(t, e) { var l = e.ownerDocument.createElement("input"); return l.name = e.name, l.value = e.value, t.id && l.setAttribute("form", t.id), e.parentNode.insertBefore(l, e), t = new FormData(t), l.parentNode.removeChild(l), t; } function Th(t, e, l, a, n) { if (e === "submit" && l && l.stateNode === n) { - var i = dd( - (n[re] || null).action + var i = md( + (n[me] || null).action ), u = a.submitter; - u && (e = (e = u[re] || null) ? dd(e.formAction) : u.getAttribute("formAction"), e !== null && (i = e, u = null)); - var c = new dn( + u && (e = (e = u[me] || null) ? md(e.formAction) : u.getAttribute("formAction"), e !== null && (i = e, u = null)); + var c = new on( "action", "action", null, @@ -8035,9 +8035,9 @@ Error generating stack: ` + a.message + ` instance: null, listener: function() { if (a.defaultPrevented) { - if (ra !== 0) { - var r = u ? md(n, u) : new FormData(n); - dc( + if (ca !== 0) { + var r = u ? hd(n, u) : new FormData(n); + mc( l, { pending: !0, @@ -8050,7 +8050,7 @@ Error generating stack: ` + a.message + ` ); } } else - typeof i == "function" && (c.preventDefault(), r = u ? md(n, u) : new FormData(n), dc( + typeof i == "function" && (c.preventDefault(), r = u ? hd(n, u) : new FormData(n), mc( l, { pending: !0, @@ -8068,42 +8068,42 @@ Error generating stack: ` + a.message + ` }); } } - for (var Jc = 0; Jc < Of.length; Jc++) { - var kc = Of[Jc], zh = kc.toLowerCase(), Mh = kc[0].toUpperCase() + kc.slice(1); - al( + for (var kc = 0; kc < Cf.length; kc++) { + var Fc = Cf[kc], zh = Fc.toLowerCase(), Mh = Fc[0].toUpperCase() + Fc.slice(1); + ll( zh, "on" + Mh ); } - al(Vo, "onAnimationEnd"), al(Zo, "onAnimationIteration"), al(Ko, "onAnimationStart"), al("dblclick", "onDoubleClick"), al("focusin", "onFocus"), al("focusout", "onBlur"), al(Ym, "onTransitionRun"), al(Lm, "onTransitionStart"), al(Xm, "onTransitionCancel"), al(Jo, "onTransitionEnd"), xl("onMouseEnter", ["mouseout", "mouseover"]), xl("onMouseLeave", ["mouseout", "mouseover"]), xl("onPointerEnter", ["pointerout", "pointerover"]), xl("onPointerLeave", ["pointerout", "pointerover"]), bl( + ll(Zo, "onAnimationEnd"), ll(Ko, "onAnimationIteration"), ll(Jo, "onAnimationStart"), ll("dblclick", "onDoubleClick"), ll("focusin", "onFocus"), ll("focusout", "onBlur"), ll(Ym, "onTransitionRun"), ll(Lm, "onTransitionStart"), ll(Xm, "onTransitionCancel"), ll(ko, "onTransitionEnd"), Xl("onMouseEnter", ["mouseout", "mouseover"]), Xl("onMouseLeave", ["mouseout", "mouseover"]), Xl("onPointerEnter", ["pointerout", "pointerover"]), Xl("onPointerLeave", ["pointerout", "pointerover"]), dl( "onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ") - ), bl( + ), dl( "onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( " " ) - ), bl("onBeforeInput", [ + ), dl("onBeforeInput", [ "compositionend", "keypress", "textInput", "paste" - ]), bl( + ]), dl( "onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ") - ), bl( + ), dl( "onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ") - ), bl( + ), dl( "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ") ); - var Ci = "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 Ui = "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( " " ), Eh = new Set( - "beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ci) + "beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui) ); - function hd(t, e) { + function gd(t, e) { e = (e & 4) !== 0; for (var l = 0; l < t.length; l++) { var a = t[l], n = a.event; @@ -8118,8 +8118,8 @@ Error generating stack: ` + a.message + ` i = c, n.currentTarget = v; try { i(n); - } catch (M) { - au(M); + } catch (A) { + ou(A); } n.currentTarget = null, i = r; } @@ -8130,41 +8130,41 @@ Error generating stack: ` + a.message + ` i = c, n.currentTarget = v; try { i(n); - } catch (M) { - au(M); + } catch (A) { + ou(A); } n.currentTarget = null, i = r; } } } } - function pt(t, e) { - var l = e[Wn]; - l === void 0 && (l = e[Wn] = /* @__PURE__ */ new Set()); + function dt(t, e) { + var l = e[kn]; + l === void 0 && (l = e[kn] = /* @__PURE__ */ new Set()); var a = t + "__bubble"; - l.has(a) || (gd(e, t, 2, !1), l.add(a)); + l.has(a) || (pd(e, t, 2, !1), l.add(a)); } - function Fc(t, e, l) { + function Wc(t, e, l) { var a = 0; - e && (a |= 4), gd( + e && (a |= 4), pd( l, t, a, e ); } - var Qu = "_reactListening" + Math.random().toString(36).slice(2); - function Wc(t) { - if (!t[Qu]) { - t[Qu] = !0, Fi.forEach(function(l) { - l !== "selectionchange" && (Eh.has(l) || Fc(l, !1, t), Fc(l, !0, t)); + var Fu = "_reactListening" + Math.random().toString(36).slice(2); + function $c(t) { + if (!t[Fu]) { + t[Fu] = !0, Fn.forEach(function(l) { + l !== "selectionchange" && (Eh.has(l) || Wc(l, !1, t), Wc(l, !0, t)); }); var e = t.nodeType === 9 ? t : t.ownerDocument; - e === null || e[Qu] || (e[Qu] = !0, Fc("selectionchange", !1, e)); + e === null || e[Fu] || (e[Fu] = !0, Wc("selectionchange", !1, e)); } } - function gd(t, e, l, a) { - switch (Vd(e)) { + function pd(t, e, l, a) { + switch (Zd(e)) { case 2: var n = Ph; break; @@ -8172,21 +8172,21 @@ Error generating stack: ` + a.message + ` n = tg; break; default: - n = so; + n = mo; } l = n.bind( null, e, l, t - ), n = void 0, !Ma || e !== "touchstart" && e !== "touchmove" && e !== "wheel" || (n = !0), a ? n !== void 0 ? t.addEventListener(e, l, { + ), n = void 0, !Ea || e !== "touchstart" && e !== "touchmove" && e !== "wheel" || (n = !0), a ? n !== void 0 ? t.addEventListener(e, l, { capture: !0, passive: n }) : t.addEventListener(e, l, !0) : n !== void 0 ? t.addEventListener(e, l, { passive: n }) : t.addEventListener(e, l, !1); } - function $c(t, e, l, a, n) { + function Ic(t, e, l, a, n) { var i = a; if ((e & 1) === 0 && (e & 2) === 0 && a !== null) t: for (; ; ) { @@ -8203,7 +8203,7 @@ Error generating stack: ` + a.message + ` u = u.return; } for (; c !== null; ) { - if (u = cl(c), u === null) return; + if (u = rl(c), u === null) return; if (r = u.tag, r === 5 || r === 6 || r === 26 || r === 27) { a = i = u; continue t; @@ -8213,28 +8213,28 @@ Error generating stack: ` + a.message + ` } a = a.return; } - tu(function() { - var v = i, M = Pn(l), O = []; + nn(function() { + var v = i, A = an(l), C = []; t: { - var x = ko.get(t); - if (x !== void 0) { - var T = dn, Y = t; + var b = Fo.get(t); + if (b !== void 0) { + var T = on, Y = t; switch (t) { case "keypress": - if (sn(l) === 0) break t; + if (Aa(l) === 0) break t; case "keydown": case "keyup": T = vm; break; case "focusin": - Y = "focus", T = it; + Y = "focus", T = I; break; case "focusout": - Y = "blur", T = it; + Y = "blur", T = I; break; case "beforeblur": case "afterblur": - T = it; + T = I; break; case "click": if (l.button === 2) break t; @@ -8246,7 +8246,7 @@ Error generating stack: ` + a.message + ` case "mouseout": case "mouseover": case "contextmenu": - T = Ca; + T = li; break; case "drag": case "dragend": @@ -8256,7 +8256,7 @@ Error generating stack: ` + a.message + ` case "dragover": case "dragstart": case "drop": - T = R; + T = D; break; case "touchcancel": case "touchend": @@ -8264,17 +8264,17 @@ Error generating stack: ` + a.message + ` case "touchstart": T = Sm; break; - case Vo: case Zo: case Ko: - T = Et; - break; case Jo: + T = Tt; + break; + case ko: T = zm; break; case "scroll": case "scrollend": - T = bf; + T = uu; break; case "wheel": T = Em; @@ -8282,7 +8282,7 @@ Error generating stack: ` + a.message + ` case "copy": case "cut": case "paste": - T = ze; + T = Kt; break; case "gotpointercapture": case "lostpointercapture": @@ -8292,185 +8292,185 @@ Error generating stack: ` + a.message + ` case "pointerout": case "pointerover": case "pointerup": - T = Eo; + T = Ao; break; case "toggle": case "beforetoggle": T = _m; } - var I = (e & 4) !== 0, jt = !I && (t === "scroll" || t === "scrollend"), p = I ? x !== null ? x + "Capture" : null : x; - I = []; + var $ = (e & 4) !== 0, Nt = !$ && (t === "scroll" || t === "scrollend"), g = $ ? b !== null ? b + "Capture" : null : b; + $ = []; for (var h = v, y; h !== null; ) { - var E = h; - if (y = E.stateNode, E = E.tag, E !== 5 && E !== 26 && E !== 27 || y === null || p === null || (E = Kl(h, p), E != null && I.push( - Ui(h, E, y) - )), jt) break; + var _ = h; + if (y = _.stateNode, _ = _.tag, _ !== 5 && _ !== 26 && _ !== 27 || y === null || g === null || (_ = Ma(h, g), _ != null && $.push( + Ri(h, _, y) + )), Nt) break; h = h.return; } - 0 < I.length && (x = new T( - x, + 0 < $.length && (b = new T( + b, Y, null, l, - M - ), O.push({ event: x, listeners: I })); + A + ), C.push({ event: b, listeners: $ })); } } if ((e & 7) === 0) { t: { - if (x = t === "mouseover" || t === "pointerover", T = t === "mouseout" || t === "pointerout", x && l !== on && (Y = l.relatedTarget || l.fromElement) && (cl(Y) || Y[Xl])) + if (b = t === "mouseover" || t === "pointerover", T = t === "mouseout" || t === "pointerout", b && l !== In && (Y = l.relatedTarget || l.fromElement) && (rl(Y) || Y[Sl])) break t; - if ((T || x) && (x = M.window === M ? M : (x = M.ownerDocument) ? x.defaultView || x.parentWindow : window, T ? (Y = l.relatedTarget || l.toElement, T = v, Y = Y ? cl(Y) : null, Y !== null && (jt = k(Y), I = Y.tag, Y !== jt || I !== 5 && I !== 27 && I !== 6) && (Y = null)) : (T = null, Y = v), T !== Y)) { - if (I = Ca, E = "onMouseLeave", p = "onMouseEnter", h = "mouse", (t === "pointerout" || t === "pointerover") && (I = Eo, E = "onPointerLeave", p = "onPointerEnter", h = "pointer"), jt = T == null ? x : ol(T), y = Y == null ? x : ol(Y), x = new I( - E, + if ((T || b) && (b = A.window === A ? A : (b = A.ownerDocument) ? b.defaultView || b.parentWindow : window, T ? (Y = l.relatedTarget || l.toElement, T = v, Y = Y ? rl(Y) : null, Y !== null && (Nt = J(Y), $ = Y.tag, Y !== Nt || $ !== 5 && $ !== 27 && $ !== 6) && (Y = null)) : (T = null, Y = v), T !== Y)) { + if ($ = li, _ = "onMouseLeave", g = "onMouseEnter", h = "mouse", (t === "pointerout" || t === "pointerover") && ($ = Ao, _ = "onPointerLeave", g = "onPointerEnter", h = "pointer"), Nt = T == null ? b : Ll(T), y = Y == null ? b : Ll(Y), b = new $( + _, h + "leave", T, l, - M - ), x.target = jt, x.relatedTarget = y, E = null, cl(M) === v && (I = new I( - p, + A + ), b.target = Nt, b.relatedTarget = y, _ = null, rl(A) === v && ($ = new $( + g, h + "enter", Y, l, - M - ), I.target = y, I.relatedTarget = jt, E = I), jt = E, T && Y) + A + ), $.target = y, $.relatedTarget = Nt, _ = $), Nt = _, T && Y) e: { - for (I = Ah, p = T, h = Y, y = 0, E = p; E; E = I(E)) + for ($ = Ah, g = T, h = Y, y = 0, _ = g; _; _ = $(_)) y++; - E = 0; - for (var F = h; F; F = I(F)) - E++; - for (; 0 < y - E; ) - p = I(p), y--; - for (; 0 < E - y; ) - h = I(h), E--; + _ = 0; + for (var F = h; F; F = $(F)) + _++; + for (; 0 < y - _; ) + g = $(g), y--; + for (; 0 < _ - y; ) + h = $(h), _--; for (; y--; ) { - if (p === h || h !== null && p === h.alternate) { - I = p; + if (g === h || h !== null && g === h.alternate) { + $ = g; break e; } - p = I(p), h = I(h); + g = $(g), h = $(h); } - I = null; + $ = null; } - else I = null; - T !== null && pd( - O, - x, + else $ = null; + T !== null && yd( + C, + b, T, - I, + $, !1 - ), Y !== null && jt !== null && pd( - O, - jt, + ), Y !== null && Nt !== null && yd( + C, + Nt, Y, - I, + $, !0 ); } } t: { - if (x = v ? ol(v) : window, T = x.nodeName && x.nodeName.toLowerCase(), T === "select" || T === "input" && x.type === "file") - var At = Bo; - else if (Uo(x)) + if (b = v ? Ll(v) : window, T = b.nodeName && b.nodeName.toLowerCase(), T === "select" || T === "input" && b.type === "file") + var Mt = Bo; + else if (Ro(b)) if (No) - At = jm; + Mt = jm; else { - At = wm; - var V = Nm; + Mt = Nm; + var V = Bm; } else - T = x.nodeName, !T || T.toLowerCase() !== "input" || x.type !== "checkbox" && x.type !== "radio" ? v && zt(v.elementType) && (At = Bo) : At = Hm; - if (At && (At = At(t, v))) { - Ro( - O, - At, + T = b.nodeName, !T || T.toLowerCase() !== "input" || b.type !== "checkbox" && b.type !== "radio" ? v && gt(v.elementType) && (Mt = Bo) : Mt = Hm; + if (Mt && (Mt = Mt(t, v))) { + wo( + C, + Mt, l, - M + A ); break t; } - V && V(t, x, v), t === "focusout" && v && x.type === "number" && v.memoizedProps.value != null && d(x, "number", x.value); + V && V(t, b, v), t === "focusout" && v && b.type === "number" && v.memoizedProps.value != null && o(b, "number", b.value); } - switch (V = v ? ol(v) : window, t) { + switch (V = v ? Ll(v) : window, t) { case "focusin": - (Uo(V) || V.contentEditable === "true") && (hn = V, Af = v, ui = null); + (Ro(V) || V.contentEditable === "true") && (dn = V, _f = v, fi = null); break; case "focusout": - ui = Af = hn = null; + fi = _f = dn = null; break; case "mousedown": - _f = !0; + Df = !0; break; case "contextmenu": case "mouseup": case "dragend": - _f = !1, Xo(O, l, M); + Df = !1, Qo(C, l, A); break; case "selectionchange": if (Gm) break; case "keydown": case "keyup": - Xo(O, l, M); + Qo(C, l, A); } - var st; - if (Tf) + var ft; + if (zf) t: { switch (t) { case "compositionstart": - var bt = "onCompositionStart"; + var yt = "onCompositionStart"; break t; case "compositionend": - bt = "onCompositionEnd"; + yt = "onCompositionEnd"; break t; case "compositionupdate": - bt = "onCompositionUpdate"; + yt = "onCompositionUpdate"; break t; } - bt = void 0; + yt = void 0; } else - mn ? Oo(t, l) && (bt = "onCompositionEnd") : t === "keydown" && l.keyCode === 229 && (bt = "onCompositionStart"); - bt && (Ao && l.locale !== "ko" && (mn || bt !== "onCompositionStart" ? bt === "onCompositionEnd" && mn && (st = ei()) : (ll = M, ti = "value" in ll ? ll.value : ll.textContent, mn = !0)), V = Vu(v, bt), 0 < V.length && (bt = new De( - bt, + sn ? Co(t, l) && (yt = "onCompositionEnd") : t === "keydown" && l.keyCode === 229 && (yt = "onCompositionStart"); + yt && (_o && l.locale !== "ko" && (sn || yt !== "onCompositionStart" ? yt === "onCompositionEnd" && sn && (ft = Pn()) : (Ee = A, un = "value" in Ee ? Ee.value : Ee.textContent, sn = !0)), V = Wu(v, yt), 0 < V.length && (yt = new Kl( + yt, t, null, l, - M - ), O.push({ event: bt, listeners: V }), st ? bt.data = st : (st = Co(l), st !== null && (bt.data = st)))), (st = Om ? Cm(t, l) : Um(t, l)) && (bt = Vu(v, "onBeforeInput"), 0 < bt.length && (V = new De( + A + ), C.push({ event: yt, listeners: V }), ft ? yt.data = ft : (ft = Uo(l), ft !== null && (yt.data = ft)))), (ft = Om ? Cm(t, l) : Um(t, l)) && (yt = Wu(v, "onBeforeInput"), 0 < yt.length && (V = new Kl( "onBeforeInput", "beforeinput", null, l, - M - ), O.push({ + A + ), C.push({ event: V, - listeners: bt - }), V.data = st)), Th( - O, + listeners: yt + }), V.data = ft)), Th( + C, t, v, l, - M + A ); } - hd(O, e); + gd(C, e); }); } - function Ui(t, e, l) { + function Ri(t, e, l) { return { instance: t, listener: e, currentTarget: l }; } - function Vu(t, e) { + function Wu(t, e) { for (var l = e + "Capture", a = []; t !== null; ) { var n = t, i = n.stateNode; - if (n = n.tag, n !== 5 && n !== 26 && n !== 27 || i === null || (n = Kl(t, l), n != null && a.unshift( - Ui(t, n, i) - ), n = Kl(t, e), n != null && a.push( - Ui(t, n, i) + if (n = n.tag, n !== 5 && n !== 26 && n !== 27 || i === null || (n = Ma(t, l), n != null && a.unshift( + Ri(t, n, i) + ), n = Ma(t, e), n != null && a.push( + Ri(t, n, i) )), t.tag === 3) return a; t = t.return; } @@ -8483,50 +8483,50 @@ Error generating stack: ` + a.message + ` while (t && t.tag !== 5 && t.tag !== 27); return t || null; } - function pd(t, e, l, a, n) { + function yd(t, e, l, a, n) { for (var i = e._reactName, u = []; l !== null && l !== a; ) { var c = l, r = c.alternate, v = c.stateNode; if (c = c.tag, r !== null && r === a) break; - c !== 5 && c !== 26 && c !== 27 || v === null || (r = v, n ? (v = Kl(l, i), v != null && u.unshift( - Ui(l, v, r) - )) : n || (v = Kl(l, i), v != null && u.push( - Ui(l, v, r) + c !== 5 && c !== 26 && c !== 27 || v === null || (r = v, n ? (v = Ma(l, i), v != null && u.unshift( + Ri(l, v, r) + )) : n || (v = Ma(l, i), v != null && u.push( + Ri(l, v, r) ))), l = l.return; } u.length !== 0 && t.push({ event: e, listeners: u }); } var _h = /\r\n?/g, Dh = /\u0000|\uFFFD/g; - function yd(t) { + function vd(t) { return (typeof t == "string" ? t : "" + t).replace(_h, ` `).replace(Dh, ""); } - function vd(t, e) { - return e = yd(e), yd(t) === e; + function bd(t, e) { + return e = vd(e), vd(t) === e; } - function Ht(t, e, l, a, n, i) { + function Bt(t, e, l, a, n, i) { switch (l) { case "children": - typeof a == "string" ? e === "body" || e === "textarea" && a === "" || j(t, a) : (typeof a == "number" || typeof a == "bigint") && e !== "body" && j(t, "" + a); + typeof a == "string" ? e === "body" || e === "textarea" && a === "" || N(t, a) : (typeof a == "number" || typeof a == "bigint") && e !== "body" && N(t, "" + a); break; case "className": - un(t, "class", a); + Ta(t, "class", a); break; case "tabIndex": - un(t, "tabindex", a); + Ta(t, "tabindex", a); break; case "dir": case "role": case "viewBox": case "width": case "height": - un(t, l, a); + Ta(t, l, a); break; case "style": - xt(t, a, i); + lt(t, a, i); break; case "data": if (e !== "object") { - un(t, "data", a); + Ta(t, "data", a); break; } case "src": @@ -8539,7 +8539,7 @@ Error generating stack: ` + a.message + ` t.removeAttribute(l); break; } - a = cn("" + a), t.setAttribute(l, a); + a = ln("" + a), t.setAttribute(l, a); break; case "action": case "formAction": @@ -8550,42 +8550,42 @@ Error generating stack: ` + a.message + ` ); break; } else - typeof i == "function" && (l === "formAction" ? (e !== "input" && Ht(t, e, "name", n.name, n, null), Ht( + typeof i == "function" && (l === "formAction" ? (e !== "input" && Bt(t, e, "name", n.name, n, null), Bt( t, e, "formEncType", n.formEncType, n, null - ), Ht( + ), Bt( t, e, "formMethod", n.formMethod, n, null - ), Ht( + ), Bt( t, e, "formTarget", n.formTarget, n, null - )) : (Ht(t, e, "encType", n.encType, n, null), Ht(t, e, "method", n.method, n, null), Ht(t, e, "target", n.target, n, null))); + )) : (Bt(t, e, "encType", n.encType, n, null), Bt(t, e, "method", n.method, n, null), Bt(t, e, "target", n.target, n, null))); if (a == null || typeof a == "symbol" || typeof a == "boolean") { t.removeAttribute(l); break; } - a = cn("" + a), t.setAttribute(l, a); + a = ln("" + a), t.setAttribute(l, a); break; case "onClick": - a != null && (t.onclick = tl); + a != null && (t.onclick = el); break; case "onScroll": - a != null && pt("scroll", t); + a != null && dt("scroll", t); break; case "onScrollEnd": - a != null && pt("scrollend", t); + a != null && dt("scrollend", t); break; case "dangerouslySetInnerHTML": if (a != null) { @@ -8617,7 +8617,7 @@ Error generating stack: ` + a.message + ` t.removeAttribute("xlink:href"); break; } - l = cn("" + a), t.setAttributeNS( + l = ln("" + a), t.setAttributeNS( "http://www.w3.org/1999/xlink", "xlink:href", l @@ -8673,10 +8673,10 @@ Error generating stack: ` + a.message + ` a == null || typeof a == "function" || typeof a == "symbol" || isNaN(a) ? t.removeAttribute(l) : t.setAttribute(l, a); break; case "popover": - pt("beforetoggle", t), pt("toggle", t), Ta(t, "popover", a); + dt("beforetoggle", t), dt("toggle", t), Pa(t, "popover", a); break; case "xlinkActuate": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:actuate", @@ -8684,7 +8684,7 @@ Error generating stack: ` + a.message + ` ); break; case "xlinkArcrole": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:arcrole", @@ -8692,7 +8692,7 @@ Error generating stack: ` + a.message + ` ); break; case "xlinkRole": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:role", @@ -8700,7 +8700,7 @@ Error generating stack: ` + a.message + ` ); break; case "xlinkShow": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:show", @@ -8708,7 +8708,7 @@ Error generating stack: ` + a.message + ` ); break; case "xlinkTitle": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:title", @@ -8716,7 +8716,7 @@ Error generating stack: ` + a.message + ` ); break; case "xlinkType": - Te( + tl( t, "http://www.w3.org/1999/xlink", "xlink:type", @@ -8724,7 +8724,7 @@ Error generating stack: ` + a.message + ` ); break; case "xmlBase": - Te( + tl( t, "http://www.w3.org/XML/1998/namespace", "xml:base", @@ -8732,7 +8732,7 @@ Error generating stack: ` + a.message + ` ); break; case "xmlLang": - Te( + tl( t, "http://www.w3.org/XML/1998/namespace", "xml:lang", @@ -8740,7 +8740,7 @@ Error generating stack: ` + a.message + ` ); break; case "xmlSpace": - Te( + tl( t, "http://www.w3.org/XML/1998/namespace", "xml:space", @@ -8748,19 +8748,19 @@ Error generating stack: ` + a.message + ` ); break; case "is": - Ta(t, "is", a); + Pa(t, "is", a); break; case "innerText": case "textContent": break; default: - (!(2 < l.length) || l[0] !== "o" && l[0] !== "O" || l[1] !== "n" && l[1] !== "N") && (l = Vl.get(l) || l, Ta(t, l, a)); + (!(2 < l.length) || l[0] !== "o" && l[0] !== "O" || l[1] !== "n" && l[1] !== "N") && (l = Dt.get(l) || l, Pa(t, l, a)); } } - function Ic(t, e, l, a, n, i) { + function Pc(t, e, l, a, n, i) { switch (l) { case "style": - xt(t, a, i); + lt(t, a, i); break; case "dangerouslySetInnerHTML": if (a != null) { @@ -8773,16 +8773,16 @@ Error generating stack: ` + a.message + ` } break; case "children": - typeof a == "string" ? j(t, a) : (typeof a == "number" || typeof a == "bigint") && j(t, "" + a); + typeof a == "string" ? N(t, a) : (typeof a == "number" || typeof a == "bigint") && N(t, "" + a); break; case "onScroll": - a != null && pt("scroll", t); + a != null && dt("scroll", t); break; case "onScrollEnd": - a != null && pt("scrollend", t); + a != null && dt("scrollend", t); break; case "onClick": - a != null && (t.onclick = tl); + a != null && (t.onclick = el); break; case "suppressContentEditableWarning": case "suppressHydrationWarning": @@ -8793,17 +8793,17 @@ Error generating stack: ` + a.message + ` case "textContent": break; default: - if (!$n.hasOwnProperty(l)) + if (!Pi.hasOwnProperty(l)) t: { - if (l[0] === "o" && l[1] === "n" && (n = l.endsWith("Capture"), e = l.slice(2, n ? l.length - 7 : void 0), i = t[re] || null, i = i != null ? i[l] : null, typeof i == "function" && t.removeEventListener(e, i, n), typeof a == "function")) { + if (l[0] === "o" && l[1] === "n" && (n = l.endsWith("Capture"), e = l.slice(2, n ? l.length - 7 : void 0), i = t[me] || null, i = i != null ? i[l] : null, typeof i == "function" && t.removeEventListener(e, i, n), typeof a == "function")) { typeof i != "function" && i !== null && (l in t ? t[l] = null : t.hasAttribute(l) && t.removeAttribute(l)), t.addEventListener(e, a, n); break t; } - l in t ? t[l] = a : a === !0 ? t.setAttribute(l, "") : Ta(t, l, a); + l in t ? t[l] = a : a === !0 ? t.setAttribute(l, "") : Pa(t, l, a); } } } - function ge(t, e, l) { + function ve(t, e, l) { switch (e) { case "div": case "span": @@ -8815,7 +8815,7 @@ Error generating stack: ` + a.message + ` case "li": break; case "img": - pt("error", t), pt("load", t); + dt("error", t), dt("load", t); var a = !1, n = !1, i; for (i in l) if (l.hasOwnProperty(i)) { @@ -8832,47 +8832,47 @@ Error generating stack: ` + a.message + ` case "dangerouslySetInnerHTML": throw Error(s(137, e)); default: - Ht(t, e, i, u, l, null); + Bt(t, e, i, u, l, null); } } - n && Ht(t, e, "srcSet", l.srcSet, l, null), a && Ht(t, e, "src", l.src, l, null); + n && Bt(t, e, "srcSet", l.srcSet, l, null), a && Bt(t, e, "src", l.src, l, null); return; case "input": - pt("invalid", t); + dt("invalid", t); var c = i = u = n = null, r = null, v = null; for (a in l) if (l.hasOwnProperty(a)) { - var M = l[a]; - if (M != null) + var A = l[a]; + if (A != null) switch (a) { case "name": - n = M; + n = A; break; case "type": - u = M; + u = A; break; case "checked": - r = M; + r = A; break; case "defaultChecked": - v = M; + v = A; break; case "value": - i = M; + i = A; break; case "defaultValue": - c = M; + c = A; break; case "children": case "dangerouslySetInnerHTML": - if (M != null) + if (A != null) throw Error(s(137, e)); break; default: - Ht(t, e, a, M, l, null); + Bt(t, e, a, A, l, null); } } - o( + nu( t, i, c, @@ -8884,7 +8884,7 @@ Error generating stack: ` + a.message + ` ); return; case "select": - pt("invalid", t), a = u = i = null; + dt("invalid", t), a = u = i = null; for (n in l) if (l.hasOwnProperty(n) && (c = l[n], c != null)) switch (n) { @@ -8897,12 +8897,12 @@ Error generating stack: ` + a.message + ` case "multiple": a = c; default: - Ht(t, e, n, c, l, null); + Bt(t, e, n, c, l, null); } - e = i, l = u, t.multiple = !!a, e != null ? b(t, !!a, e, !1) : l != null && b(t, !!a, l, !0); + e = i, l = u, t.multiple = !!a, e != null ? d(t, !!a, e, !1) : l != null && d(t, !!a, l, !0); return; case "textarea": - pt("invalid", t), i = n = a = null; + dt("invalid", t), i = n = a = null; for (u in l) if (l.hasOwnProperty(u) && (c = l[u], c != null)) switch (u) { @@ -8919,36 +8919,36 @@ Error generating stack: ` + a.message + ` if (c != null) throw Error(s(91)); break; default: - Ht(t, e, u, c, l, null); + Bt(t, e, u, c, l, null); } - H(t, a, n, i); + w(t, a, n, i); return; case "option": for (r in l) - l.hasOwnProperty(r) && (a = l[r], a != null) && (r === "selected" ? t.selected = a && typeof a != "function" && typeof a != "symbol" : Ht(t, e, r, a, l, null)); + l.hasOwnProperty(r) && (a = l[r], a != null) && (r === "selected" ? t.selected = a && typeof a != "function" && typeof a != "symbol" : Bt(t, e, r, a, l, null)); return; case "dialog": - pt("beforetoggle", t), pt("toggle", t), pt("cancel", t), pt("close", t); + dt("beforetoggle", t), dt("toggle", t), dt("cancel", t), dt("close", t); break; case "iframe": case "object": - pt("load", t); + dt("load", t); break; case "video": case "audio": - for (a = 0; a < Ci.length; a++) - pt(Ci[a], t); + for (a = 0; a < Ui.length; a++) + dt(Ui[a], t); break; case "image": - pt("error", t), pt("load", t); + dt("error", t), dt("load", t); break; case "details": - pt("toggle", t); + dt("toggle", t); break; case "embed": case "source": case "link": - pt("error", t), pt("load", t); + dt("error", t), dt("load", t); case "area": case "base": case "br": @@ -8967,16 +8967,16 @@ Error generating stack: ` + a.message + ` case "dangerouslySetInnerHTML": throw Error(s(137, e)); default: - Ht(t, e, v, a, l, null); + Bt(t, e, v, a, l, null); } return; default: - if (zt(e)) { - for (M in l) - l.hasOwnProperty(M) && (a = l[M], a !== void 0 && Ic( + if (gt(e)) { + for (A in l) + l.hasOwnProperty(A) && (a = l[A], a !== void 0 && Pc( t, e, - M, + A, a, l, void 0 @@ -8985,7 +8985,7 @@ Error generating stack: ` + a.message + ` } } for (c in l) - l.hasOwnProperty(c) && (a = l[c], a != null && Ht(t, e, c, a, l, null)); + l.hasOwnProperty(c) && (a = l[c], a != null && Bt(t, e, c, a, l, null)); } function Oh(t, e, l, a) { switch (e) { @@ -8999,25 +8999,25 @@ Error generating stack: ` + a.message + ` case "li": break; case "input": - var n = null, i = null, u = null, c = null, r = null, v = null, M = null; + var n = null, i = null, u = null, c = null, r = null, v = null, A = null; for (T in l) { - var O = l[T]; - if (l.hasOwnProperty(T) && O != null) + var C = l[T]; + if (l.hasOwnProperty(T) && C != null) switch (T) { case "checked": break; case "value": break; case "defaultValue": - r = O; + r = C; default: - a.hasOwnProperty(T) || Ht(t, e, T, null, a, O); + a.hasOwnProperty(T) || Bt(t, e, T, null, a, C); } } - for (var x in a) { - var T = a[x]; - if (O = l[x], a.hasOwnProperty(x) && (T != null || O != null)) - switch (x) { + for (var b in a) { + var T = a[b]; + if (C = l[b], a.hasOwnProperty(b) && (T != null || C != null)) + switch (b) { case "type": i = T; break; @@ -9028,7 +9028,7 @@ Error generating stack: ` + a.message + ` v = T; break; case "defaultChecked": - M = T; + A = T; break; case "value": u = T; @@ -9042,29 +9042,29 @@ Error generating stack: ` + a.message + ` throw Error(s(137, e)); break; default: - T !== O && Ht( + T !== C && Bt( t, e, - x, + b, T, a, - O + C ); } } - In( + $n( t, u, c, r, v, - M, + A, i, n ); return; case "select": - T = u = c = x = null; + T = u = c = b = null; for (i in l) if (r = l[i], l.hasOwnProperty(i) && r != null) switch (i) { @@ -9073,7 +9073,7 @@ Error generating stack: ` + a.message + ` case "multiple": T = r; default: - a.hasOwnProperty(i) || Ht( + a.hasOwnProperty(i) || Bt( t, e, i, @@ -9086,7 +9086,7 @@ Error generating stack: ` + a.message + ` if (i = a[n], r = l[n], a.hasOwnProperty(n) && (i != null || r != null)) switch (n) { case "value": - x = i; + b = i; break; case "defaultValue": c = i; @@ -9094,7 +9094,7 @@ Error generating stack: ` + a.message + ` case "multiple": u = i; default: - i !== r && Ht( + i !== r && Bt( t, e, n, @@ -9103,10 +9103,10 @@ Error generating stack: ` + a.message + ` r ); } - e = c, l = u, a = T, x != null ? b(t, !!l, x, !1) : !!a != !!l && (e != null ? b(t, !!l, e, !0) : b(t, !!l, l ? [] : "", !1)); + e = c, l = u, a = T, b != null ? d(t, !!l, b, !1) : !!a != !!l && (e != null ? d(t, !!l, e, !0) : d(t, !!l, l ? [] : "", !1)); return; case "textarea": - T = x = null; + T = b = null; for (c in l) if (n = l[c], l.hasOwnProperty(c) && n != null && !a.hasOwnProperty(c)) switch (c) { @@ -9115,13 +9115,13 @@ Error generating stack: ` + a.message + ` case "children": break; default: - Ht(t, e, c, null, a, n); + Bt(t, e, c, null, a, n); } for (u in a) if (n = a[u], i = l[u], a.hasOwnProperty(u) && (n != null || i != null)) switch (u) { case "value": - x = n; + b = n; break; case "defaultValue": T = n; @@ -9132,26 +9132,26 @@ Error generating stack: ` + a.message + ` if (n != null) throw Error(s(91)); break; default: - n !== i && Ht(t, e, u, n, a, i); + n !== i && Bt(t, e, u, n, a, i); } - B(t, x, T); + x(t, b, T); return; case "option": for (var Y in l) - x = l[Y], l.hasOwnProperty(Y) && x != null && !a.hasOwnProperty(Y) && (Y === "selected" ? t.selected = !1 : Ht( + b = l[Y], l.hasOwnProperty(Y) && b != null && !a.hasOwnProperty(Y) && (Y === "selected" ? t.selected = !1 : Bt( t, e, Y, null, a, - x + b )); for (r in a) - x = a[r], T = l[r], a.hasOwnProperty(r) && x !== T && (x != null || T != null) && (r === "selected" ? t.selected = x && typeof x != "function" && typeof x != "symbol" : Ht( + b = a[r], T = l[r], a.hasOwnProperty(r) && b !== T && (b != null || T != null) && (r === "selected" ? t.selected = b && typeof b != "function" && typeof b != "symbol" : Bt( t, e, r, - x, + b, a, T )); @@ -9171,56 +9171,56 @@ Error generating stack: ` + a.message + ` case "track": case "wbr": case "menuitem": - for (var I in l) - x = l[I], l.hasOwnProperty(I) && x != null && !a.hasOwnProperty(I) && Ht(t, e, I, null, a, x); + for (var $ in l) + b = l[$], l.hasOwnProperty($) && b != null && !a.hasOwnProperty($) && Bt(t, e, $, null, a, b); for (v in a) - if (x = a[v], T = l[v], a.hasOwnProperty(v) && x !== T && (x != null || T != null)) + if (b = a[v], T = l[v], a.hasOwnProperty(v) && b !== T && (b != null || T != null)) switch (v) { case "children": case "dangerouslySetInnerHTML": - if (x != null) + if (b != null) throw Error(s(137, e)); break; default: - Ht( + Bt( t, e, v, - x, + b, a, T ); } return; default: - if (zt(e)) { - for (var jt in l) - x = l[jt], l.hasOwnProperty(jt) && x !== void 0 && !a.hasOwnProperty(jt) && Ic( + if (gt(e)) { + for (var Nt in l) + b = l[Nt], l.hasOwnProperty(Nt) && b !== void 0 && !a.hasOwnProperty(Nt) && Pc( t, e, - jt, + Nt, void 0, a, - x + b ); - for (M in a) - x = a[M], T = l[M], !a.hasOwnProperty(M) || x === T || x === void 0 && T === void 0 || Ic( + for (A in a) + b = a[A], T = l[A], !a.hasOwnProperty(A) || b === T || b === void 0 && T === void 0 || Pc( t, e, - M, - x, + A, + b, a, T ); return; } } - for (var p in l) - x = l[p], l.hasOwnProperty(p) && x != null && !a.hasOwnProperty(p) && Ht(t, e, p, null, a, x); - for (O in a) - x = a[O], T = l[O], !a.hasOwnProperty(O) || x === T || x == null && T == null || Ht(t, e, O, x, a, T); + for (var g in l) + b = l[g], l.hasOwnProperty(g) && b != null && !a.hasOwnProperty(g) && Bt(t, e, g, null, a, b); + for (C in a) + b = a[C], T = l[C], !a.hasOwnProperty(C) || b === T || b == null && T == null || Bt(t, e, C, b, a, T); } - function bd(t) { + function xd(t) { switch (t) { case "css": case "script": @@ -9238,12 +9238,12 @@ Error generating stack: ` + a.message + ` if (typeof performance.getEntriesByType == "function") { for (var t = 0, e = 0, l = performance.getEntriesByType("resource"), a = 0; a < l.length; a++) { var n = l[a], i = n.transferSize, u = n.initiatorType, c = n.duration; - if (i && c && bd(u)) { + if (i && c && xd(u)) { for (u = 0, c = n.responseEnd, a += 1; a < l.length; a++) { var r = l[a], v = r.startTime; if (v > c) break; - var M = r.transferSize, O = r.initiatorType; - M && bd(O) && (r = r.responseEnd, u += M * (r < c ? 1 : (c - v) / (r - v))); + var A = r.transferSize, C = r.initiatorType; + A && xd(C) && (r = r.responseEnd, u += A * (r < c ? 1 : (c - v) / (r - v))); } if (--a, e += 8 * (i + u) / (n.duration / 1e3), t++, 10 < t) break; } @@ -9252,11 +9252,11 @@ Error generating stack: ` + a.message + ` } return navigator.connection && (t = navigator.connection.downlink, typeof t == "number") ? t : 5; } - var Pc = null, to = null; - function Zu(t) { + var to = null, eo = null; + function $u(t) { return t.nodeType === 9 ? t : t.ownerDocument; } - function xd(t) { + function Sd(t) { switch (t) { case "http://www.w3.org/2000/svg": return 1; @@ -9266,7 +9266,7 @@ Error generating stack: ` + a.message + ` return 0; } } - function Sd(t, e) { + function Td(t, e) { if (t === 0) switch (e) { case "svg": @@ -9278,53 +9278,53 @@ Error generating stack: ` + a.message + ` } return t === 1 && e === "foreignObject" ? 0 : t; } - function eo(t, e) { + function lo(t, e) { return t === "textarea" || t === "noscript" || typeof e.children == "string" || typeof e.children == "number" || typeof e.children == "bigint" || typeof e.dangerouslySetInnerHTML == "object" && e.dangerouslySetInnerHTML !== null && e.dangerouslySetInnerHTML.__html != null; } - var lo = null; + var ao = null; function Uh() { var t = window.event; - return t && t.type === "popstate" ? t === lo ? !1 : (lo = t, !0) : (lo = null, !1); + return t && t.type === "popstate" ? t === ao ? !1 : (ao = t, !0) : (ao = null, !1); } - var Td = typeof setTimeout == "function" ? setTimeout : void 0, Rh = typeof clearTimeout == "function" ? clearTimeout : void 0, zd = typeof Promise == "function" ? Promise : void 0, Bh = typeof queueMicrotask == "function" ? queueMicrotask : typeof zd < "u" ? function(t) { - return zd.resolve(null).then(t).catch(Nh); - } : Td; - function Nh(t) { + var zd = typeof setTimeout == "function" ? setTimeout : void 0, Rh = typeof clearTimeout == "function" ? clearTimeout : void 0, Md = typeof Promise == "function" ? Promise : void 0, wh = typeof queueMicrotask == "function" ? queueMicrotask : typeof Md < "u" ? function(t) { + return Md.resolve(null).then(t).catch(Bh); + } : zd; + function Bh(t) { setTimeout(function() { throw t; }); } - function sa(t) { + function oa(t) { return t === "head"; } - function Md(t, e) { + function Ed(t, e) { var l = e, a = 0; do { var n = l.nextSibling; if (t.removeChild(l), n && n.nodeType === 8) if (l = n.data, l === "/$" || l === "/&") { if (a === 0) { - t.removeChild(n), Ln(e); + t.removeChild(n), Gn(e); return; } a--; } else if (l === "$" || l === "$?" || l === "$~" || l === "$!" || l === "&") a++; else if (l === "html") - Ri(t.ownerDocument.documentElement); + wi(t.ownerDocument.documentElement); else if (l === "head") { - l = t.ownerDocument.head, Ri(l); + l = t.ownerDocument.head, wi(l); for (var i = l.firstChild; i; ) { var u = i.nextSibling, c = i.nodeName; - i[Ql] || c === "SCRIPT" || c === "STYLE" || c === "LINK" && i.rel.toLowerCase() === "stylesheet" || l.removeChild(i), i = u; + i[Sa] || c === "SCRIPT" || c === "STYLE" || c === "LINK" && i.rel.toLowerCase() === "stylesheet" || l.removeChild(i), i = u; } } else - l === "body" && Ri(t.ownerDocument.body); + l === "body" && wi(t.ownerDocument.body); l = n; } while (l); - Ln(e); + Gn(e); } - function Ed(t, e) { + function Ad(t, e) { var l = t; t = 0; do { @@ -9338,7 +9338,7 @@ Error generating stack: ` + a.message + ` l = a; } while (l); } - function ao(t) { + function no(t) { var e = t.firstChild; for (e && e.nodeType === 10 && (e = e.nextSibling); e; ) { var l = e; @@ -9346,7 +9346,7 @@ Error generating stack: ` + a.message + ` case "HTML": case "HEAD": case "BODY": - ao(l), Sa(l); + no(l), Ia(l); continue; case "SCRIPT": case "STYLE": @@ -9357,14 +9357,14 @@ Error generating stack: ` + a.message + ` t.removeChild(l); } } - function wh(t, e, l, a) { + function Nh(t, e, l, a) { for (; t.nodeType === 1; ) { var n = l; if (t.nodeName.toLowerCase() !== e.toLowerCase()) { if (!a && (t.nodeName !== "INPUT" || t.type !== "hidden")) break; } else if (a) { - if (!t[Ql]) + if (!t[Sa]) switch (e) { case "meta": if (!t.hasAttribute("itemprop")) break; @@ -9390,25 +9390,25 @@ Error generating stack: ` + a.message + ` if (n.type === "hidden" && t.getAttribute("name") === i) return t; } else return t; - if (t = $e(t.nextSibling), t === null) break; + if (t = We(t.nextSibling), t === null) break; } return null; } function Hh(t, e, l) { if (e === "") return null; for (; t.nodeType !== 3; ) - if ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") && !l || (t = $e(t.nextSibling), t === null)) return null; + if ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") && !l || (t = We(t.nextSibling), t === null)) return null; return t; } - function Ad(t, e) { + function _d(t, e) { for (; t.nodeType !== 8; ) - if ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") && !e || (t = $e(t.nextSibling), t === null)) return null; + if ((t.nodeType !== 1 || t.nodeName !== "INPUT" || t.type !== "hidden") && !e || (t = We(t.nextSibling), t === null)) return null; return t; } - function no(t) { + function io(t) { return t.data === "$?" || t.data === "$~"; } - function io(t) { + function uo(t) { return t.data === "$!" || t.data === "$?" && t.ownerDocument.readyState !== "loading"; } function jh(t, e) { @@ -9423,7 +9423,7 @@ Error generating stack: ` + a.message + ` l.addEventListener("DOMContentLoaded", a), t._reactRetry = a; } } - function $e(t) { + function We(t) { for (; t != null; t = t.nextSibling) { var e = t.nodeType; if (e === 1 || e === 3) break; @@ -9435,15 +9435,15 @@ Error generating stack: ` + a.message + ` } return t; } - var uo = null; - function _d(t) { + var fo = null; + function Dd(t) { t = t.nextSibling; for (var e = 0; t; ) { if (t.nodeType === 8) { var l = t.data; if (l === "/$" || l === "/&") { if (e === 0) - return $e(t.nextSibling); + return We(t.nextSibling); e--; } else l !== "$" && l !== "$!" && l !== "$?" && l !== "$~" && l !== "&" || e++; @@ -9452,7 +9452,7 @@ Error generating stack: ` + a.message + ` } return null; } - function Dd(t) { + function Od(t) { t = t.previousSibling; for (var e = 0; t; ) { if (t.nodeType === 8) { @@ -9466,8 +9466,8 @@ Error generating stack: ` + a.message + ` } return null; } - function Od(t, e, l) { - switch (e = Zu(l), t) { + function Cd(t, e, l) { + switch (e = $u(l), t) { case "html": if (t = e.documentElement, !t) throw Error(s(452)); return t; @@ -9481,17 +9481,17 @@ Error generating stack: ` + a.message + ` throw Error(s(451)); } } - function Ri(t) { + function wi(t) { for (var e = t.attributes; e.length; ) t.removeAttributeNode(e[0]); - Sa(t); + Ia(t); } - var Ie = /* @__PURE__ */ new Map(), Cd = /* @__PURE__ */ new Set(); - function Ku(t) { + var $e = /* @__PURE__ */ new Map(), Ud = /* @__PURE__ */ new Set(); + function Iu(t) { return typeof t.getRootNode == "function" ? t.getRootNode() : t.nodeType === 9 ? t : t.ownerDocument; } - var ql = U.d; - U.d = { + var ql = M.d; + M.d = { f: qh, r: Gh, D: Yh, @@ -9503,60 +9503,60 @@ Error generating stack: ` + a.message + ` M: Kh }; function qh() { - var t = ql.f(), e = ju(); + var t = ql.f(), e = Qu(); return t || e; } function Gh(t) { - var e = yl(t); - e !== null && e.tag === 5 && e.type === "form" ? Jr(e) : ql.r(t); + var e = sl(t); + e !== null && e.tag === 5 && e.type === "form" ? kr(e) : ql.r(t); } - var qn = typeof document > "u" ? null : document; - function Ud(t, e, l) { - var a = qn; + var Hn = typeof document > "u" ? null : document; + function Rd(t, e, l) { + var a = Hn; if (a && typeof e == "string" && e) { - var n = _e(e); - n = 'link[rel="' + t + '"][href="' + n + '"]', typeof l == "string" && (n += '[crossorigin="' + l + '"]'), Cd.has(n) || (Cd.add(n), t = { rel: t, crossOrigin: l, href: e }, a.querySelector(n) === null && (e = a.createElement("link"), ge(e, "link", t), Wt(e), a.head.appendChild(e))); + var n = he(e); + n = 'link[rel="' + t + '"][href="' + n + '"]', typeof l == "string" && (n += '[crossorigin="' + l + '"]'), Ud.has(n) || (Ud.add(n), t = { rel: t, crossOrigin: l, href: e }, a.querySelector(n) === null && (e = a.createElement("link"), ve(e, "link", t), Ft(e), a.head.appendChild(e))); } } function Yh(t) { - ql.D(t), Ud("dns-prefetch", t, null); + ql.D(t), Rd("dns-prefetch", t, null); } function Lh(t, e) { - ql.C(t, e), Ud("preconnect", t, e); + ql.C(t, e), Rd("preconnect", t, e); } function Xh(t, e, l) { ql.L(t, e, l); - var a = qn; + var a = Hn; if (a && t && e) { - var n = 'link[rel="preload"][as="' + _e(e) + '"]'; - e === "image" && l && l.imageSrcSet ? (n += '[imagesrcset="' + _e( + var n = 'link[rel="preload"][as="' + he(e) + '"]'; + e === "image" && l && l.imageSrcSet ? (n += '[imagesrcset="' + he( l.imageSrcSet - ) + '"]', typeof l.imageSizes == "string" && (n += '[imagesizes="' + _e( + ) + '"]', typeof l.imageSizes == "string" && (n += '[imagesizes="' + he( l.imageSizes - ) + '"]')) : n += '[href="' + _e(t) + '"]'; + ) + '"]')) : n += '[href="' + he(t) + '"]'; var i = n; switch (e) { case "style": - i = Gn(t); + i = jn(t); break; case "script": - i = Yn(t); + i = qn(t); } - Ie.has(i) || (t = w( + $e.has(i) || (t = H( { rel: "preload", href: e === "image" && l && l.imageSrcSet ? void 0 : t, as: e }, l - ), Ie.set(i, t), a.querySelector(n) !== null || e === "style" && a.querySelector(Bi(i)) || e === "script" && a.querySelector(Ni(i)) || (e = a.createElement("link"), ge(e, "link", t), Wt(e), a.head.appendChild(e))); + ), $e.set(i, t), a.querySelector(n) !== null || e === "style" && a.querySelector(Bi(i)) || e === "script" && a.querySelector(Ni(i)) || (e = a.createElement("link"), ve(e, "link", t), Ft(e), a.head.appendChild(e))); } } function Qh(t, e) { ql.m(t, e); - var l = qn; + var l = Hn; if (l && t) { - var a = e && typeof e.as == "string" ? e.as : "script", n = 'link[rel="modulepreload"][as="' + _e(a) + '"][href="' + _e(t) + '"]', i = n; + var a = e && typeof e.as == "string" ? e.as : "script", n = 'link[rel="modulepreload"][as="' + he(a) + '"][href="' + he(t) + '"]', i = n; switch (a) { case "audioworklet": case "paintworklet": @@ -9564,9 +9564,9 @@ Error generating stack: ` + a.message + ` case "sharedworker": case "worker": case "script": - i = Yn(t); + i = qn(t); } - if (!Ie.has(i) && (t = w({ rel: "modulepreload", href: t }, e), Ie.set(i, t), l.querySelector(n) === null)) { + if (!$e.has(i) && (t = H({ rel: "modulepreload", href: t }, e), $e.set(i, t), l.querySelector(n) === null)) { switch (a) { case "audioworklet": case "paintworklet": @@ -9577,15 +9577,15 @@ Error generating stack: ` + a.message + ` if (l.querySelector(Ni(i))) return; } - a = l.createElement("link"), ge(a, "link", t), Wt(a), l.head.appendChild(a); + a = l.createElement("link"), ve(a, "link", t), Ft(a), l.head.appendChild(a); } } } function Vh(t, e, l) { ql.S(t, e, l); - var a = qn; + var a = Hn; if (a && t) { - var n = vl(a).hoistableStyles, i = Gn(t); + var n = Pe(a).hoistableStyles, i = jn(t); e = e || "default"; var u = n.get(i); if (!u) { @@ -9595,18 +9595,18 @@ Error generating stack: ` + a.message + ` )) c.loading = 5; else { - t = w( + t = H( { rel: "stylesheet", href: t, "data-precedence": e }, l - ), (l = Ie.get(i)) && fo(t, l); + ), (l = $e.get(i)) && co(t, l); var r = u = a.createElement("link"); - Wt(r), ge(r, "link", t), r._p = new Promise(function(v, M) { - r.onload = v, r.onerror = M; + Ft(r), ve(r, "link", t), r._p = new Promise(function(v, A) { + r.onload = v, r.onerror = A; }), r.addEventListener("load", function() { c.loading |= 1; }), r.addEventListener("error", function() { c.loading |= 2; - }), c.loading |= 4, Ju(u, e, a); + }), c.loading |= 4, Pu(u, e, a); } u = { type: "stylesheet", @@ -9619,10 +9619,10 @@ Error generating stack: ` + a.message + ` } function Zh(t, e) { ql.X(t, e); - var l = qn; + var l = Hn; if (l && t) { - var a = vl(l).hoistableScripts, n = Yn(t), i = a.get(n); - i || (i = l.querySelector(Ni(n)), i || (t = w({ src: t, async: !0 }, e), (e = Ie.get(n)) && co(t, e), i = l.createElement("script"), Wt(i), ge(i, "link", t), l.head.appendChild(i)), i = { + var a = Pe(l).hoistableScripts, n = qn(t), i = a.get(n); + i || (i = l.querySelector(Ni(n)), i || (t = H({ src: t, async: !0 }, e), (e = $e.get(n)) && oo(t, e), i = l.createElement("script"), Ft(i), ve(i, "link", t), l.head.appendChild(i)), i = { type: "script", instance: i, count: 1, @@ -9632,10 +9632,10 @@ Error generating stack: ` + a.message + ` } function Kh(t, e) { ql.M(t, e); - var l = qn; + var l = Hn; if (l && t) { - var a = vl(l).hoistableScripts, n = Yn(t), i = a.get(n); - i || (i = l.querySelector(Ni(n)), i || (t = w({ src: t, async: !0, type: "module" }, e), (e = Ie.get(n)) && co(t, e), i = l.createElement("script"), Wt(i), ge(i, "link", t), l.head.appendChild(i)), i = { + var a = Pe(l).hoistableScripts, n = qn(t), i = a.get(n); + i || (i = l.querySelector(Ni(n)), i || (t = H({ src: t, async: !0, type: "module" }, e), (e = $e.get(n)) && oo(t, e), i = l.createElement("script"), Ft(i), ve(i, "link", t), l.head.appendChild(i)), i = { type: "script", instance: i, count: 1, @@ -9643,15 +9643,15 @@ Error generating stack: ` + a.message + ` }, a.set(n, i)); } } - function Rd(t, e, l, a) { - var n = (n = ct.current) ? Ku(n) : null; + function wd(t, e, l, a) { + var n = (n = ct.current) ? Iu(n) : null; if (!n) throw Error(s(446)); switch (t) { case "meta": case "title": return null; case "style": - return typeof l.precedence == "string" && typeof l.href == "string" ? (e = Gn(l.href), l = vl( + return typeof l.precedence == "string" && typeof l.href == "string" ? (e = jn(l.href), l = Pe( n ).hoistableStyles, a = l.get(e), a || (a = { type: "style", @@ -9661,8 +9661,8 @@ Error generating stack: ` + a.message + ` }, l.set(e, a)), a) : { type: "void", instance: null, count: 0, state: null }; case "link": if (l.rel === "stylesheet" && typeof l.href == "string" && typeof l.precedence == "string") { - t = Gn(l.href); - var i = vl( + t = jn(l.href); + var i = Pe( n ).hoistableStyles, u = i.get(t); if (u || (n = n.ownerDocument || n, u = { @@ -9672,7 +9672,7 @@ Error generating stack: ` + a.message + ` state: { loading: 0, preload: null } }, i.set(t, u), (i = n.querySelector( Bi(t) - )) && !i._p && (u.instance = i, u.state.loading = 5), Ie.has(t) || (l = { + )) && !i._p && (u.instance = i, u.state.loading = 5), $e.has(t) || (l = { rel: "preload", as: "style", href: l.href, @@ -9681,7 +9681,7 @@ Error generating stack: ` + a.message + ` media: l.media, hrefLang: l.hrefLang, referrerPolicy: l.referrerPolicy - }, Ie.set(t, l), i || Jh( + }, $e.set(t, l), i || Jh( n, t, l, @@ -9694,7 +9694,7 @@ Error generating stack: ` + a.message + ` throw Error(s(529, "")); return null; case "script": - return e = l.async, l = l.src, typeof l == "string" && e && typeof e != "function" && typeof e != "symbol" ? (e = Yn(l), l = vl( + return e = l.async, l = l.src, typeof l == "string" && e && typeof e != "function" && typeof e != "symbol" ? (e = qn(l), l = Pe( n ).hoistableScripts, a = l.get(e), a || (a = { type: "script", @@ -9706,14 +9706,14 @@ Error generating stack: ` + a.message + ` throw Error(s(444, t)); } } - function Gn(t) { - return 'href="' + _e(t) + '"'; + function jn(t) { + return 'href="' + he(t) + '"'; } function Bi(t) { return 'link[rel="stylesheet"][' + t + "]"; } function Bd(t) { - return w({}, t, { + return H({}, t, { "data-precedence": t.precedence, precedence: null }); @@ -9723,10 +9723,10 @@ Error generating stack: ` + a.message + ` return a.loading |= 1; }), e.addEventListener("error", function() { return a.loading |= 2; - }), ge(e, "link", l), Wt(e), t.head.appendChild(e)); + }), ve(e, "link", l), Ft(e), t.head.appendChild(e)); } - function Yn(t) { - return '[src="' + _e(t) + '"]'; + function qn(t) { + return '[src="' + he(t) + '"]'; } function Ni(t) { return "script[async]" + t; @@ -9736,11 +9736,11 @@ Error generating stack: ` + a.message + ` switch (e.type) { case "style": var a = t.querySelector( - 'style[data-href~="' + _e(l.href) + '"]' + 'style[data-href~="' + he(l.href) + '"]' ); if (a) - return e.instance = a, Wt(a), a; - var n = w({}, l, { + return e.instance = a, Ft(a), a; + var n = H({}, l, { "data-href": l.href, "data-precedence": l.precedence, href: null, @@ -9748,33 +9748,33 @@ Error generating stack: ` + a.message + ` }); return a = (t.ownerDocument || t).createElement( "style" - ), Wt(a), ge(a, "style", n), Ju(a, l.precedence, t), e.instance = a; + ), Ft(a), ve(a, "style", n), Pu(a, l.precedence, t), e.instance = a; case "stylesheet": - n = Gn(l.href); + n = jn(l.href); var i = t.querySelector( Bi(n) ); if (i) - return e.state.loading |= 4, e.instance = i, Wt(i), i; - a = Bd(l), (n = Ie.get(n)) && fo(a, n), i = (t.ownerDocument || t).createElement("link"), Wt(i); + return e.state.loading |= 4, e.instance = i, Ft(i), i; + a = Bd(l), (n = $e.get(n)) && co(a, n), i = (t.ownerDocument || t).createElement("link"), Ft(i); var u = i; return u._p = new Promise(function(c, r) { u.onload = c, u.onerror = r; - }), ge(i, "link", a), e.state.loading |= 4, Ju(i, l.precedence, t), e.instance = i; + }), ve(i, "link", a), e.state.loading |= 4, Pu(i, l.precedence, t), e.instance = i; case "script": - return i = Yn(l.src), (n = t.querySelector( + return i = qn(l.src), (n = t.querySelector( Ni(i) - )) ? (e.instance = n, Wt(n), n) : (a = l, (n = Ie.get(i)) && (a = w({}, l), co(a, n)), t = t.ownerDocument || t, n = t.createElement("script"), Wt(n), ge(n, "link", a), t.head.appendChild(n), e.instance = n); + )) ? (e.instance = n, Ft(n), n) : (a = l, (n = $e.get(i)) && (a = H({}, l), oo(a, n)), t = t.ownerDocument || t, n = t.createElement("script"), Ft(n), ve(n, "link", a), t.head.appendChild(n), e.instance = n); case "void": return null; default: throw Error(s(443, e.type)); } else - e.type === "stylesheet" && (e.state.loading & 4) === 0 && (a = e.instance, e.state.loading |= 4, Ju(a, l.precedence, t)); + e.type === "stylesheet" && (e.state.loading & 4) === 0 && (a = e.instance, e.state.loading |= 4, Pu(a, l.precedence, t)); return e.instance; } - function Ju(t, e, l) { + function Pu(t, e, l) { for (var a = l.querySelectorAll( 'link[rel="stylesheet"][data-precedence],style[data-precedence]' ), n = a.length ? a[a.length - 1] : null, i = n, u = 0; u < a.length; u++) { @@ -9784,23 +9784,23 @@ Error generating stack: ` + a.message + ` } i ? i.parentNode.insertBefore(t, i.nextSibling) : (e = l.nodeType === 9 ? l.head : l, e.insertBefore(t, e.firstChild)); } - function fo(t, e) { + function co(t, e) { t.crossOrigin == null && (t.crossOrigin = e.crossOrigin), t.referrerPolicy == null && (t.referrerPolicy = e.referrerPolicy), t.title == null && (t.title = e.title); } - function co(t, e) { + function oo(t, e) { t.crossOrigin == null && (t.crossOrigin = e.crossOrigin), t.referrerPolicy == null && (t.referrerPolicy = e.referrerPolicy), t.integrity == null && (t.integrity = e.integrity); } - var ku = null; - function wd(t, e, l) { - if (ku === null) { - var a = /* @__PURE__ */ new Map(), n = ku = /* @__PURE__ */ new Map(); + var tf = null; + function Hd(t, e, l) { + if (tf === null) { + var a = /* @__PURE__ */ new Map(), n = tf = /* @__PURE__ */ new Map(); n.set(l, a); } else - n = ku, a = n.get(l), a || (a = /* @__PURE__ */ new Map(), n.set(l, a)); + n = tf, a = n.get(l), a || (a = /* @__PURE__ */ new Map(), n.set(l, a)); if (a.has(t)) return a; for (a.set(t, null), l = l.getElementsByTagName(t), n = 0; n < l.length; n++) { var i = l[n]; - if (!(i[Ql] || i[te] || t === "link" && i.getAttribute("rel") === "stylesheet") && i.namespaceURI !== "http://www.w3.org/2000/svg") { + if (!(i[Sa] || i[It] || t === "link" && i.getAttribute("rel") === "stylesheet") && i.namespaceURI !== "http://www.w3.org/2000/svg") { var u = i.getAttribute(e) || ""; u = t + u; var c = a.get(u); @@ -9809,7 +9809,7 @@ Error generating stack: ` + a.message + ` } return a; } - function Hd(t, e, l) { + function jd(t, e, l) { t = t.ownerDocument || t, t.head.insertBefore( l, e === "title" ? t.querySelector("head > title") : null @@ -9835,71 +9835,71 @@ Error generating stack: ` + a.message + ` } return !1; } - function jd(t) { + function qd(t) { return !(t.type === "stylesheet" && (t.state.loading & 3) === 0); } function Fh(t, e, l, a) { if (l.type === "stylesheet" && (typeof a.media != "string" || matchMedia(a.media).matches !== !1) && (l.state.loading & 4) === 0) { if (l.instance === null) { - var n = Gn(a.href), i = e.querySelector( + var n = jn(a.href), i = e.querySelector( Bi(n) ); if (i) { - e = i._p, e !== null && typeof e == "object" && typeof e.then == "function" && (t.count++, t = Fu.bind(t), e.then(t, t)), l.state.loading |= 4, l.instance = i, Wt(i); + e = i._p, e !== null && typeof e == "object" && typeof e.then == "function" && (t.count++, t = ef.bind(t), e.then(t, t)), l.state.loading |= 4, l.instance = i, Ft(i); return; } - i = e.ownerDocument || e, a = Bd(a), (n = Ie.get(n)) && fo(a, n), i = i.createElement("link"), Wt(i); + i = e.ownerDocument || e, a = Bd(a), (n = $e.get(n)) && co(a, n), i = i.createElement("link"), Ft(i); var u = i; u._p = new Promise(function(c, r) { u.onload = c, u.onerror = r; - }), ge(i, "link", a), l.instance = i; + }), ve(i, "link", a), l.instance = i; } - t.stylesheets === null && (t.stylesheets = /* @__PURE__ */ new Map()), t.stylesheets.set(l, e), (e = l.state.preload) && (l.state.loading & 3) === 0 && (t.count++, l = Fu.bind(t), e.addEventListener("load", l), e.addEventListener("error", l)); + t.stylesheets === null && (t.stylesheets = /* @__PURE__ */ new Map()), t.stylesheets.set(l, e), (e = l.state.preload) && (l.state.loading & 3) === 0 && (t.count++, l = ef.bind(t), e.addEventListener("load", l), e.addEventListener("error", l)); } } - var oo = 0; + var ro = 0; function Wh(t, e) { - return t.stylesheets && t.count === 0 && $u(t, t.stylesheets), 0 < t.count || 0 < t.imgCount ? function(l) { + return t.stylesheets && t.count === 0 && af(t, t.stylesheets), 0 < t.count || 0 < t.imgCount ? function(l) { var a = setTimeout(function() { - if (t.stylesheets && $u(t, t.stylesheets), t.unsuspend) { + if (t.stylesheets && af(t, t.stylesheets), t.unsuspend) { var i = t.unsuspend; t.unsuspend = null, i(); } }, 6e4 + e); - 0 < t.imgBytes && oo === 0 && (oo = 62500 * Ch()); + 0 < t.imgBytes && ro === 0 && (ro = 62500 * Ch()); var n = setTimeout( function() { - if (t.waitingForImages = !1, t.count === 0 && (t.stylesheets && $u(t, t.stylesheets), t.unsuspend)) { + if (t.waitingForImages = !1, t.count === 0 && (t.stylesheets && af(t, t.stylesheets), t.unsuspend)) { var i = t.unsuspend; t.unsuspend = null, i(); } }, - (t.imgBytes > oo ? 50 : 800) + e + (t.imgBytes > ro ? 50 : 800) + e ); return t.unsuspend = l, function() { t.unsuspend = null, clearTimeout(a), clearTimeout(n); }; } : null; } - function Fu() { + function ef() { if (this.count--, this.count === 0 && (this.imgCount === 0 || !this.waitingForImages)) { - if (this.stylesheets) $u(this, this.stylesheets); + if (this.stylesheets) af(this, this.stylesheets); else if (this.unsuspend) { var t = this.unsuspend; this.unsuspend = null, t(); } } } - var Wu = null; - function $u(t, e) { - t.stylesheets = null, t.unsuspend !== null && (t.count++, Wu = /* @__PURE__ */ new Map(), e.forEach($h, t), Wu = null, Fu.call(t)); + var lf = null; + function af(t, e) { + t.stylesheets = null, t.unsuspend !== null && (t.count++, lf = /* @__PURE__ */ new Map(), e.forEach($h, t), lf = null, ef.call(t)); } function $h(t, e) { if (!(e.state.loading & 4)) { - var l = Wu.get(t); + var l = lf.get(t); if (l) var a = l.get(null); else { - l = /* @__PURE__ */ new Map(), Wu.set(t, l); + l = /* @__PURE__ */ new Map(), lf.set(t, l); for (var n = t.querySelectorAll( "link[data-precedence],style[data-precedence]" ), i = 0; i < n.length; i++) { @@ -9908,21 +9908,21 @@ Error generating stack: ` + a.message + ` } a && l.set(null, a); } - n = e.instance, u = n.getAttribute("data-precedence"), i = l.get(u) || a, i === a && l.set(null, n), l.set(u, n), this.count++, a = Fu.bind(this), n.addEventListener("load", a), n.addEventListener("error", a), i ? i.parentNode.insertBefore(n, i.nextSibling) : (t = t.nodeType === 9 ? t.head : t, t.insertBefore(n, t.firstChild)), e.state.loading |= 4; + n = e.instance, u = n.getAttribute("data-precedence"), i = l.get(u) || a, i === a && l.set(null, n), l.set(u, n), this.count++, a = ef.bind(this), n.addEventListener("load", a), n.addEventListener("error", a), i ? i.parentNode.insertBefore(n, i.nextSibling) : (t = t.nodeType === 9 ? t.head : t, t.insertBefore(n, t.firstChild)), e.state.loading |= 4; } } - var wi = { - $$typeof: mt, + var Hi = { + $$typeof: xt, Provider: null, Consumer: null, - _currentValue: Z, - _currentValue2: Z, + _currentValue: j, + _currentValue2: j, _threadCount: 0 }; function Ih(t, e, l, a, n, i, u, c, r) { - this.tag = 1, this.containerInfo = t, 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 = Yl(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Yl(0), this.hiddenUpdates = Yl(null), this.identifierPrefix = a, this.onUncaughtError = n, this.onCaughtError = i, this.onRecoverableError = u, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = r, this.incompleteTransitions = /* @__PURE__ */ new Map(); + this.tag = 1, this.containerInfo = t, 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 = Zn(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Zn(0), this.hiddenUpdates = Zn(null), this.identifierPrefix = a, this.onUncaughtError = n, this.onCaughtError = i, this.onRecoverableError = u, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = r, this.incompleteTransitions = /* @__PURE__ */ new Map(); } - function qd(t, e, l, a, n, i, u, c, r, v, M, O) { + function Gd(t, e, l, a, n, i, u, c, r, v, A, C) { return t = new Ih( t, e, @@ -9930,76 +9930,76 @@ Error generating stack: ` + a.message + ` u, r, v, - M, - O, + A, + C, c - ), e = 1, i === !0 && (e |= 24), i = qe(3, null, null, e), t.current = i, i.stateNode = t, e = Xf(), e.refCount++, t.pooledCache = e, e.refCount++, i.memoizedState = { + ), e = 1, i === !0 && (e |= 24), i = He(3, null, null, e), t.current = i, i.stateNode = t, e = Qf(), e.refCount++, t.pooledCache = e, e.refCount++, i.memoizedState = { element: a, isDehydrated: l, cache: e - }, Kf(i), t; + }, Jf(i), t; } - function Gd(t) { - return t ? (t = yn, t) : yn; + function Yd(t) { + return t ? (t = gn, t) : gn; } - function Yd(t, e, l, a, n, i) { - n = Gd(n), a.context === null ? a.context = n : a.pendingContext = n, a = ta(e), a.payload = { element: l }, i = i === void 0 ? null : i, i !== null && (a.callback = i), l = ea(t, a, e), l !== null && (Be(l, t, e), mi(l, t, e)); + function Ld(t, e, l, a, n, i) { + n = Yd(n), a.context === null ? a.context = n : a.pendingContext = n, a = Il(e), a.payload = { element: l }, i = i === void 0 ? null : i, i !== null && (a.callback = i), l = Pl(t, a, e), l !== null && (Ce(l, t, e), hi(l, t, e)); } - function Ld(t, e) { + function Xd(t, e) { if (t = t.memoizedState, t !== null && t.dehydrated !== null) { var l = t.retryLane; t.retryLane = l !== 0 && l < e ? l : e; } } - function ro(t, e) { - Ld(t, e), (t = t.alternate) && Ld(t, e); + function so(t, e) { + Xd(t, e), (t = t.alternate) && Xd(t, e); } - function Xd(t) { + function Qd(t) { if (t.tag === 13 || t.tag === 31) { - var e = Na(t, 67108864); - e !== null && Be(e, t, 67108864), ro(t, 67108864); + var e = Ra(t, 67108864); + e !== null && Ce(e, t, 67108864), so(t, 67108864); } } - function Qd(t) { + function Vd(t) { if (t.tag === 13 || t.tag === 31) { - var e = Qe(); - e = Jn(e); - var l = Na(t, e); - l !== null && Be(l, t, e), ro(t, e); + var e = Le(); + e = xa(e); + var l = Ra(t, e); + l !== null && Ce(l, t, e), so(t, e); } } - var Iu = !0; + var nf = !0; function Ph(t, e, l, a) { - var n = g.T; - g.T = null; - var i = U.p; + var n = p.T; + p.T = null; + var i = M.p; try { - U.p = 2, so(t, e, l, a); + M.p = 2, mo(t, e, l, a); } finally { - U.p = i, g.T = n; + M.p = i, p.T = n; } } function tg(t, e, l, a) { - var n = g.T; - g.T = null; - var i = U.p; + var n = p.T; + p.T = null; + var i = M.p; try { - U.p = 8, so(t, e, l, a); + M.p = 8, mo(t, e, l, a); } finally { - U.p = i, g.T = n; + M.p = i, p.T = n; } } - function so(t, e, l, a) { - if (Iu) { - var n = mo(a); + function mo(t, e, l, a) { + if (nf) { + var n = ho(a); if (n === null) - $c( + Ic( t, e, a, - Pu, + uf, l - ), Zd(t, a); + ), Kd(t, a); else if (lg( n, t, @@ -10008,9 +10008,9 @@ Error generating stack: ` + a.message + ` a )) a.stopPropagation(); - else if (Zd(t, a), e & 4 && -1 < eg.indexOf(t)) { + else if (Kd(t, a), e & 4 && -1 < eg.indexOf(t)) { for (; n !== null; ) { - var i = yl(n); + var i = sl(n); if (i !== null) switch (i.tag) { case 3: @@ -10019,29 +10019,29 @@ Error generating stack: ` + a.message + ` if (u !== 0) { var c = i; for (c.pendingLanes |= 2, c.entangledLanes |= 2; u; ) { - var r = 1 << 31 - ye(u); + var r = 1 << 31 - ue(u); c.entanglements[1] |= r, u &= ~r; } - hl(i), (Ot & 6) === 0 && (wu = pe() + 500, Oi(0)); + yl(i), (Ot & 6) === 0 && (Lu = de() + 500, Ci(0)); } } break; case 31: case 13: - c = Na(i, 2), c !== null && Be(c, i, 2), ju(), ro(i, 2); + c = Ra(i, 2), c !== null && Ce(c, i, 2), Qu(), so(i, 2); } - if (i = mo(a), i === null && $c( + if (i = ho(a), i === null && Ic( t, e, a, - Pu, + uf, l ), i === n) break; n = i; } n !== null && a.stopPropagation(); } else - $c( + Ic( t, e, a, @@ -10050,13 +10050,13 @@ Error generating stack: ` + a.message + ` ); } } - function mo(t) { - return t = Pn(t), ho(t); - } - var Pu = null; function ho(t) { - if (Pu = null, t = cl(t), t !== null) { - var e = k(t); + return t = an(t), go(t); + } + var uf = null; + function go(t) { + if (uf = null, t = rl(t), t !== null) { + var e = J(t); if (e === null) t = null; else { var l = e.tag; @@ -10064,7 +10064,7 @@ Error generating stack: ` + a.message + ` if (t = Q(e), t !== null) return t; t = null; } else if (l === 31) { - if (t = lt(e), t !== null) return t; + if (t = et(e), t !== null) return t; t = null; } else if (l === 3) { if (e.stateNode.current.memoizedState.isDehydrated) @@ -10073,9 +10073,9 @@ Error generating stack: ` + a.message + ` } else e !== t && (t = null); } } - return Pu = t, null; + return uf = t, null; } - function Vd(t) { + function Zd(t) { switch (t) { case "beforetoggle": case "cancel": @@ -10151,15 +10151,15 @@ Error generating stack: ` + a.message + ` case "pointerleave": return 8; case "message": - switch (of()) { - case Fa: + switch (Vi()) { + case Zi: return 2; - case Kn: + case Ja: return 8; - case Wa: - case rf: + case pa: + case gf: return 32; - case Qi: + case Ki: return 268435456; default: return 32; @@ -10168,46 +10168,46 @@ Error generating stack: ` + a.message + ` return 32; } } - var go = !1, da = null, ma = null, ha = null, Hi = /* @__PURE__ */ new Map(), ji = /* @__PURE__ */ new Map(), ga = [], eg = "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 po = !1, ra = null, sa = null, da = null, ji = /* @__PURE__ */ new Map(), qi = /* @__PURE__ */ new Map(), ma = [], eg = "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 Zd(t, e) { + function Kd(t, e) { switch (t) { case "focusin": case "focusout": - da = null; + ra = null; break; case "dragenter": case "dragleave": - ma = null; + sa = null; break; case "mouseover": case "mouseout": - ha = null; + da = null; break; case "pointerover": case "pointerout": - Hi.delete(e.pointerId); + ji.delete(e.pointerId); break; case "gotpointercapture": case "lostpointercapture": - ji.delete(e.pointerId); + qi.delete(e.pointerId); } } - function qi(t, e, l, a, n, i) { + function Gi(t, e, l, a, n, i) { return t === null || t.nativeEvent !== i ? (t = { blockedOn: e, domEventName: l, eventSystemFlags: a, nativeEvent: i, targetContainers: [n] - }, e !== null && (e = yl(e), e !== null && Xd(e)), t) : (t.eventSystemFlags |= a, e = t.targetContainers, n !== null && e.indexOf(n) === -1 && e.push(n), t); + }, e !== null && (e = sl(e), e !== null && Qd(e)), t) : (t.eventSystemFlags |= a, e = t.targetContainers, n !== null && e.indexOf(n) === -1 && e.push(n), t); } function lg(t, e, l, a, n) { switch (e) { case "focusin": - return da = qi( - da, + return ra = Gi( + ra, t, e, l, @@ -10215,8 +10215,8 @@ Error generating stack: ` + a.message + ` n ), !0; case "dragenter": - return ma = qi( - ma, + return sa = Gi( + sa, t, e, l, @@ -10224,8 +10224,8 @@ Error generating stack: ` + a.message + ` n ), !0; case "mouseover": - return ha = qi( - ha, + return da = Gi( + da, t, e, l, @@ -10234,10 +10234,10 @@ Error generating stack: ` + a.message + ` ), !0; case "pointerover": var i = n.pointerId; - return Hi.set( + return ji.set( i, - qi( - Hi.get(i) || null, + Gi( + ji.get(i) || null, t, e, l, @@ -10246,10 +10246,10 @@ Error generating stack: ` + a.message + ` ) ), !0; case "gotpointercapture": - return i = n.pointerId, ji.set( + return i = n.pointerId, qi.set( i, - qi( - ji.get(i) || null, + Gi( + qi.get(i) || null, t, e, l, @@ -10260,22 +10260,22 @@ Error generating stack: ` + a.message + ` } return !1; } - function Kd(t) { - var e = cl(t.target); + function Jd(t) { + var e = rl(t.target); if (e !== null) { - var l = k(e); + var l = J(e); if (l !== null) { if (e = l.tag, e === 13) { if (e = Q(l), e !== null) { - t.blockedOn = e, Ji(t.priority, function() { - Qd(l); + t.blockedOn = e, Jn(t.priority, function() { + Vd(l); }); return; } } else if (e === 31) { - if (e = lt(l), e !== null) { - t.blockedOn = e, Ji(t.priority, function() { - Qd(l); + if (e = et(l), e !== null) { + t.blockedOn = e, Jn(t.priority, function() { + Vd(l); }); return; } @@ -10287,50 +10287,50 @@ Error generating stack: ` + a.message + ` } t.blockedOn = null; } - function tf(t) { + function ff(t) { if (t.blockedOn !== null) return !1; for (var e = t.targetContainers; 0 < e.length; ) { - var l = mo(t.nativeEvent); + var l = ho(t.nativeEvent); if (l === null) { l = t.nativeEvent; var a = new l.constructor( l.type, l ); - on = a, l.target.dispatchEvent(a), on = null; + In = a, l.target.dispatchEvent(a), In = null; } else - return e = yl(l), e !== null && Xd(e), t.blockedOn = l, !1; + return e = sl(l), e !== null && Qd(e), t.blockedOn = l, !1; e.shift(); } return !0; } - function Jd(t, e, l) { - tf(t) && l.delete(e); + function kd(t, e, l) { + ff(t) && l.delete(e); } function ag() { - go = !1, da !== null && tf(da) && (da = null), ma !== null && tf(ma) && (ma = null), ha !== null && tf(ha) && (ha = null), Hi.forEach(Jd), ji.forEach(Jd); + po = !1, ra !== null && ff(ra) && (ra = null), sa !== null && ff(sa) && (sa = null), da !== null && ff(da) && (da = null), ji.forEach(kd), qi.forEach(kd); } - function ef(t, e) { - t.blockedOn === e && (t.blockedOn = null, go || (go = !0, S.unstable_scheduleCallback( + function cf(t, e) { + t.blockedOn === e && (t.blockedOn = null, po || (po = !0, S.unstable_scheduleCallback( S.unstable_NormalPriority, ag ))); } - var lf = null; - function kd(t) { - lf !== t && (lf = t, S.unstable_scheduleCallback( + var of = null; + function Fd(t) { + of !== t && (of = t, S.unstable_scheduleCallback( S.unstable_NormalPriority, function() { - lf === t && (lf = null); + of === t && (of = null); for (var e = 0; e < t.length; e += 3) { var l = t[e], a = t[e + 1], n = t[e + 2]; if (typeof a != "function") { - if (ho(a || l) === null) + if (go(a || l) === null) continue; break; } - var i = yl(l); - i !== null && (t.splice(e, 3), e -= 3, dc( + var i = sl(l); + i !== null && (t.splice(e, 3), e -= 3, mc( i, { pending: !0, @@ -10345,34 +10345,34 @@ Error generating stack: ` + a.message + ` } )); } - function Ln(t) { + function Gn(t) { function e(r) { - return ef(r, t); + return cf(r, t); } - da !== null && ef(da, t), ma !== null && ef(ma, t), ha !== null && ef(ha, t), Hi.forEach(e), ji.forEach(e); - for (var l = 0; l < ga.length; l++) { - var a = ga[l]; + ra !== null && cf(ra, t), sa !== null && cf(sa, t), da !== null && cf(da, t), ji.forEach(e), qi.forEach(e); + for (var l = 0; l < ma.length; l++) { + var a = ma[l]; a.blockedOn === t && (a.blockedOn = null); } - for (; 0 < ga.length && (l = ga[0], l.blockedOn === null); ) - Kd(l), l.blockedOn === null && ga.shift(); + for (; 0 < ma.length && (l = ma[0], l.blockedOn === null); ) + Jd(l), l.blockedOn === null && ma.shift(); if (l = (t.ownerDocument || t).$$reactFormReplay, l != null) for (a = 0; a < l.length; a += 3) { - var n = l[a], i = l[a + 1], u = n[re] || null; + var n = l[a], i = l[a + 1], u = n[me] || null; if (typeof i == "function") - u || kd(l); + u || Fd(l); else if (u) { var c = null; if (i && i.hasAttribute("formAction")) { - if (n = i, u = i[re] || null) + if (n = i, u = i[me] || null) c = u.formAction; - else if (ho(n) !== null) continue; + else if (go(n) !== null) continue; } else c = u.action; - typeof c == "function" ? l[a + 1] = c : (l.splice(a, 3), a -= 3), kd(l); + typeof c == "function" ? l[a + 1] = c : (l.splice(a, 3), a -= 3), Fd(l); } } } - function Fd() { + function Wd() { function t(i) { i.canIntercept && i.info === "react-transition" && i.intercept({ handler: function() { @@ -10404,43 +10404,43 @@ Error generating stack: ` + a.message + ` }; } } - function po(t) { + function yo(t) { this._internalRoot = t; } - af.prototype.render = po.prototype.render = function(t) { + rf.prototype.render = yo.prototype.render = function(t) { var e = this._internalRoot; if (e === null) throw Error(s(409)); - var l = e.current, a = Qe(); - Yd(l, a, t, e, null, null); - }, af.prototype.unmount = po.prototype.unmount = function() { + var l = e.current, a = Le(); + Ld(l, a, t, e, null, null); + }, rf.prototype.unmount = yo.prototype.unmount = function() { var t = this._internalRoot; if (t !== null) { this._internalRoot = null; var e = t.containerInfo; - Yd(t.current, 2, null, t, null, null), ju(), e[Xl] = null; + Ld(t.current, 2, null, t, null, null), Qu(), e[Sl] = null; } }; - function af(t) { + function rf(t) { this._internalRoot = t; } - af.prototype.unstable_scheduleHydration = function(t) { + rf.prototype.unstable_scheduleHydration = function(t) { if (t) { - var e = Fn(); + var e = $i(); t = { blockedOn: null, target: t, priority: e }; - for (var l = 0; l < ga.length && e !== 0 && e < ga[l].priority; l++) ; - ga.splice(l, 0, t), l === 0 && Kd(t); + for (var l = 0; l < ma.length && e !== 0 && e < ma[l].priority; l++) ; + ma.splice(l, 0, t), l === 0 && Jd(t); } }; - var Wd = f.version; - if (Wd !== "19.2.3") + var $d = f.version; + if ($d !== "19.2.3") throw Error( s( 527, - Wd, + $d, "19.2.3" ) ); - U.findDOMNode = function(t) { + M.findDOMNode = function(t) { var e = t._reactInternals; if (e === void 0) throw typeof t.render == "function" ? Error(s(188)) : (t = Object.keys(t).join(","), Error(s(268, t))); @@ -10450,23 +10450,23 @@ Error generating stack: ` + a.message + ` bundleType: 0, version: "19.2.3", rendererPackageName: "react-dom", - currentDispatcherRef: g, + currentDispatcherRef: p, reconcilerVersion: "19.2.3" }; if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") { - var nf = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (!nf.isDisabled && nf.supportsFiber) + var sf = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!sf.isDisabled && sf.supportsFiber) try { - ba = nf.inject( + ya = sf.inject( ng - ), xe = nf; + ), Se = sf; } catch { } } - return Yi.createRoot = function(t, e) { - if (!G(t)) throw Error(s(299)); - var l = !1, a = "", n = as, i = ns, u = is; - return e != null && (e.unstable_strictMode === !0 && (l = !0), e.identifierPrefix !== void 0 && (a = e.identifierPrefix), e.onUncaughtError !== void 0 && (n = e.onUncaughtError), e.onCaughtError !== void 0 && (i = e.onCaughtError), e.onRecoverableError !== void 0 && (u = e.onRecoverableError)), e = qd( + return Li.createRoot = function(t, e) { + if (!X(t)) throw Error(s(299)); + var l = !1, a = "", n = ns, i = is, u = us; + return e != null && (e.unstable_strictMode === !0 && (l = !0), e.identifierPrefix !== void 0 && (a = e.identifierPrefix), e.onUncaughtError !== void 0 && (n = e.onUncaughtError), e.onCaughtError !== void 0 && (i = e.onCaughtError), e.onRecoverableError !== void 0 && (u = e.onRecoverableError)), e = Gd( t, 1, !1, @@ -10478,12 +10478,12 @@ Error generating stack: ` + a.message + ` n, i, u, - Fd - ), t[Xl] = e.current, Wc(t), new po(e); - }, Yi.hydrateRoot = function(t, e, l) { - if (!G(t)) throw Error(s(299)); - var a = !1, n = "", i = as, u = ns, c = is, r = null; - return l != null && (l.unstable_strictMode === !0 && (a = !0), l.identifierPrefix !== void 0 && (n = l.identifierPrefix), l.onUncaughtError !== void 0 && (i = l.onUncaughtError), l.onCaughtError !== void 0 && (u = l.onCaughtError), l.onRecoverableError !== void 0 && (c = l.onRecoverableError), l.formState !== void 0 && (r = l.formState)), e = qd( + Wd + ), t[Sl] = e.current, $c(t), new yo(e); + }, Li.hydrateRoot = function(t, e, l) { + if (!X(t)) throw Error(s(299)); + var a = !1, n = "", i = ns, u = is, c = us, r = null; + return l != null && (l.unstable_strictMode === !0 && (a = !0), l.identifierPrefix !== void 0 && (n = l.identifierPrefix), l.onUncaughtError !== void 0 && (i = l.onUncaughtError), l.onCaughtError !== void 0 && (u = l.onCaughtError), l.onRecoverableError !== void 0 && (c = l.onRecoverableError), l.formState !== void 0 && (r = l.formState)), e = Gd( t, 1, !0, @@ -10495,14 +10495,14 @@ Error generating stack: ` + a.message + ` i, u, c, - Fd - ), e.context = Gd(null), l = e.current, a = Qe(), a = Jn(a), n = ta(a), n.callback = null, ea(l, n, a), l = a, e.current.lanes = l, Ll(e, l), hl(e), t[Xl] = e.current, Wc(t), new af(e); - }, Yi.version = "19.2.3", Yi; + Wd + ), e.context = Yd(null), l = e.current, a = Le(), a = xa(a), n = Il(a), n.callback = null, Pl(l, n, a), l = a, e.current.lanes = l, cl(e, l), yl(e), t[Sl] = e.current, $c(t), new rf(e); + }, Li.version = "19.2.3", Li; } -var um; +var fm; function hg() { - if (um) return vo.exports; - um = 1; + if (fm) return bo.exports; + fm = 1; function S() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { @@ -10511,23 +10511,23 @@ function hg() { console.error(f); } } - return S(), vo.exports = mg(), vo.exports; + return S(), bo.exports = mg(), bo.exports; } -var gg = hg(), zo = { exports: {} }, Mo = {}; -var fm; +var gg = hg(), Mo = { exports: {} }, Eo = {}; +var cm; function pg() { - if (fm) return Mo; - fm = 1; - var S = ff().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; - return Mo.c = function(f) { + if (cm) return Eo; + cm = 1; + var S = mf().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + return Eo.c = function(f) { return S.H.useMemoCache(f); - }, Mo; + }, Eo; } -var cm; +var om; function yg() { - return cm || (cm = 1, zo.exports = pg()), zo.exports; + return om || (om = 1, Mo.exports = pg()), Mo.exports; } -var ka = yg(), vg = ff(); +var Ka = yg(), vg = mf(); const bg = { additions: "Additions", bars: "Bars", @@ -10575,17 +10575,17 @@ const bg = { switchToUnifiedDiff: "Switch to unified diff", untitled: "Untitled" }; -function om() { +function rm() { return !1; } -function rm(S, f = {}) { - const D = /* @__PURE__ */ new Set(); +function sm(S, f = {}) { + const O = /* @__PURE__ */ new Set(); return (s) => { - const G = S?.[s]; - if (typeof G == "string" && G.trim() !== "") - return G; - if (f.assertMissing && !D.has(s)) - throw D.add(s), new Error(`Missing cmux diff viewer label: ${s}`); + const X = S?.[s]; + if (typeof X == "string" && X.trim() !== "") + return X; + if (f.assertMissing && !O.has(s)) + throw O.add(s), new Error(`Missing cmux diff viewer label: ${s}`); return bg[s]; }; } @@ -10608,70 +10608,70 @@ const xg = { selectionForeground: "#ffffff", type: "dark" }; -function sm(S) { +function dm(S) { const f = { ...xg, ...S?.themes?.light - }, D = { + }, O = { ...Sg, ...S?.themes?.dark }; return { - backgroundOpacity: mm(S?.backgroundOpacity), + backgroundOpacity: hm(S?.backgroundOpacity), fontFamily: S?.fontFamily ?? "Menlo", - fontSize: uf(S?.fontSize, 10), - lineHeight: uf(S?.lineHeight, 20), + fontSize: df(S?.fontSize, 10), + lineHeight: df(S?.lineHeight, 20), theme: { light: S?.theme?.light ?? f.name ?? "cmux-ghostty-light", - dark: S?.theme?.dark ?? D.name ?? "cmux-ghostty-dark" + dark: S?.theme?.dark ?? O.name ?? "cmux-ghostty-dark" }, themes: { light: f, - dark: D + dark: O } }; } -function dm(S) { +function mm(S) { if (!S) return; - const f = S.themes?.light ?? {}, D = S.themes?.dark ?? {}, s = document.documentElement.style; - s.setProperty("--cmux-diff-bg-light", Ja(f.background, "#ffffff")), s.setProperty("--cmux-diff-bg-dark", Ja(D.background, "#000000")), s.setProperty("--cmux-diff-fg-light", Ja(f.foreground, "#000000")), s.setProperty("--cmux-diff-fg-dark", Ja(D.foreground, "#ffffff")), s.setProperty("--cmux-diff-selection-bg-light", Ja(f.selectionBackground, "#abd8ff")), s.setProperty("--cmux-diff-selection-bg-dark", Ja(D.selectionBackground, "#3f638b")), s.setProperty("--cmux-diff-code-font-family", zg(S.fontFamily)), s.setProperty("--cmux-diff-font-size", `${uf(S.fontSize, 10)}px`), s.setProperty("--cmux-diff-line-height", `${uf(S.lineHeight, 20)}px`); + const f = S.themes?.light ?? {}, O = S.themes?.dark ?? {}, s = document.documentElement.style; + s.setProperty("--cmux-diff-bg-light", Za(f.background, "#ffffff")), s.setProperty("--cmux-diff-bg-dark", Za(O.background, "#000000")), s.setProperty("--cmux-diff-fg-light", Za(f.foreground, "#000000")), s.setProperty("--cmux-diff-fg-dark", Za(O.foreground, "#ffffff")), s.setProperty("--cmux-diff-selection-bg-light", Za(f.selectionBackground, "#abd8ff")), s.setProperty("--cmux-diff-selection-bg-dark", Za(O.selectionBackground, "#3f638b")), s.setProperty("--cmux-diff-code-font-family", zg(S.fontFamily)), s.setProperty("--cmux-diff-font-size", `${df(S.fontSize, 10)}px`), s.setProperty("--cmux-diff-line-height", `${df(S.lineHeight, 20)}px`); } function Tg(S, f) { - return mm(f?.backgroundOpacity) < 0.999 ? "transparent" : Ja(S, "#000000"); + return hm(f?.backgroundOpacity) < 0.999 ? "transparent" : Za(S, "#000000"); } -function Ja(S, f) { +function Za(S, f) { return typeof S == "string" && S.trim() !== "" ? S.trim() : f; } function zg(S) { const f = typeof S == "string" && S.trim() !== "" ? S.trim() : "Menlo"; return `${JSON.stringify(f)}, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`; } -function uf(S, f) { +function df(S, f) { return typeof S == "number" && Number.isFinite(S) && S > 0 ? S : f; } -function mm(S) { +function hm(S) { return typeof S != "number" || !Number.isFinite(S) ? 1 : Math.max(0, Math.min(1, S)); } -function Mg(S, f, D) { +function Mg(S, f, O) { if (!S) return { kind: "reset" }; - const s = S.pathCount ?? S.paths?.length ?? 0, G = f.pathCount ?? D.length; - return !(f.previousSource === S || Eg(S, f)) || G < s ? { + const s = S.pathCount ?? S.paths?.length ?? 0, X = f.pathCount ?? O.length; + return !(f.previousSource === S || Eg(S, f)) || X < s ? { kind: "reset" } : { - addedPaths: D.slice(s, G), + addedPaths: O.slice(s, X), kind: "append" }; } function Eg(S, f) { - const D = S.paths, s = f.paths, G = S.pathCount ?? D?.length ?? 0, k = f.pathCount ?? s?.length ?? 0; - if (!Array.isArray(D) || !Array.isArray(s) || G > k) + const O = S.paths, s = f.paths, X = S.pathCount ?? O?.length ?? 0, J = f.pathCount ?? s?.length ?? 0; + if (!Array.isArray(O) || !Array.isArray(s) || X > J) return !1; - for (let Q = 0; Q < G; Q += 1) - if (D[Q] !== s[Q]) + for (let Q = 0; Q < X; Q += 1) + if (O[Q] !== s[Q]) return !1; return !0; } @@ -10681,14 +10681,14 @@ function Ag(S) { if (!d) throw new Error(`Missing cmux diff viewer element: ${o}`); return d; - }, D = S.assets ?? {}, s = (o, d) => { + }, O = S.assets ?? {}, s = (o, d) => { if (typeof o != "string" || o.length === 0) throw new Error(`Missing cmux diff viewer asset: ${d}`); return new URL(o, window.location.href).href; - }, G = s(D.diffsModuleURL, "diffsModuleURL"), k = s(D.treesModuleURL, "treesModuleURL"), Q = s(D.workerPoolModuleURL, "workerPoolModuleURL"), lt = s(D.workerModuleURL, "workerModuleURL"), C = S.payload ?? {}, z = sm(C.appearance), L = f("viewer"), w = f("status"), tt = f("toolbar"), rt = f("source-select"), dt = f("repo-select"), yt = f("base-select"), Gt = f("source-detail"), ft = f("jump-select"), Yt = f("external-link"), mt = f("files-toggle"), Dt = f("layout-toggle"), Ct = f("options-button"), ht = f("options-menu"), $ = f("files-sidebar"), Ut = f("file-list"), Pt = f("files-count"), Ft = f("file-search-toggle"), Vt = f("file-collapse-toggle"), Zt = f("stats-files"), oe = f("stats-added"), ie = f("stats-deleted"), X = rm(C.labels, { - assertMissing: om() - }), g = { - layout: C.layout === "unified" ? "unified" : "split", + }, X = s(O.diffsModuleURL, "diffsModuleURL"), J = s(O.treesModuleURL, "treesModuleURL"), Q = s(O.workerPoolModuleURL, "workerPoolModuleURL"), et = s(O.workerModuleURL, "workerModuleURL"), U = S.payload ?? {}, z = dm(U.appearance), L = f("viewer"), H = f("status"), P = f("status-text"), mt = f("toolbar"), nt = f("source-select"), ht = f("repo-select"), qt = f("base-select"), Ct = f("source-detail"), rt = f("jump-select"), xt = f("external-link"), At = f("files-toggle"), _t = f("layout-toggle"), St = f("options-button"), k = f("options-menu"), Zt = f("files-sidebar"), Ht = f("file-list"), be = f("files-count"), Gt = f("file-search-toggle"), Yt = f("file-collapse-toggle"), se = f("stats-files"), ae = f("stats-added"), ne = f("stats-deleted"), p = sm(U.labels, { + assertMissing: rm() + }), M = { + layout: U.layout === "unified" ? "unified" : "split", filesVisible: !0, wordWrap: !1, collapsed: !1, @@ -10699,398 +10699,398 @@ function Ag(S) { wordDiffs: !1, fileSearchOpen: !1 }; - let U, Z, W; - const et = [], m = [], A = /* @__PURE__ */ new Map(); - let N = /* @__PURE__ */ new Set(), q = null, at = null, ct = /* @__PURE__ */ new Map(), Tt = { + let j, ot, W; + const m = [], E = [], B = /* @__PURE__ */ new Map(); + let q = /* @__PURE__ */ new Set(), tt = null, ct = null, vt = /* @__PURE__ */ new Map(), ie = { value: null - }, fe = "", Rt = "", gl = !1, Ve = /* @__PURE__ */ new Map(), ul = /* @__PURE__ */ new Map(); - typeof C.title == "string" && C.title.trim() !== "" && (document.title = C.title), dm(z), ba(), Ji(C.sourceOptions ?? []), re(dt, C.repoOptions ?? [], C.repoRoot ?? "", X("repoPath")), re(yt, C.baseOptions ?? [], C.branchBaseRef ?? "", X("branchBase")); - const Xn = globalThis.queueMicrotask ?? ((o) => setTimeout(o, 0)); - C.pendingReplacement === !0 ? (Ne(C.statusMessage ?? X("loadingDiff"), { + }, Qt = "", Ue = "", Yl = !1, Ie = /* @__PURE__ */ new Map(), vl = /* @__PURE__ */ new Map(); + typeof U.title == "string" && U.title.trim() !== "" && (document.title = U.title), mm(z), Se(), ol(U.sourceOptions ?? []), Sl(ht, U.repoOptions ?? [], U.repoRoot ?? "", p("repoPath")), Sl(qt, U.baseOptions ?? [], U.branchBaseRef ?? "", p("branchBase")); + const il = globalThis.queueMicrotask ?? ((o) => setTimeout(o, 0)); + U.pendingReplacement === !0 ? (Re(U.statusMessage ?? p("loadingDiff"), { loading: !0, pending: !0 - }), cf()) : typeof C.statusMessage == "string" && C.statusMessage.length > 0 ? Ne(C.statusMessage, { - error: C.statusIsError === !0, + }), Xi()) : typeof U.statusMessage == "string" && U.statusMessage.length > 0 ? Re(U.statusMessage, { + error: U.statusIsError === !0, loading: !1, statusOnly: !0 - }) : Xn(() => { - pl().catch((o) => { - console.error("cmux diff viewer render failed", o), Ne(X("renderFailed"), { + }) : il(() => { + Yn().catch((o) => { + console.error("cmux diff viewer render failed", o), Re(p("renderFailed"), { error: !0, loading: !1, statusOnly: !0 }); }); }); - async function pl() { - Ne(X("loadingRenderer"), { + async function Yn() { + Re(p("loadingRenderer"), { loading: !0 }); const [{ CodeView: o, getFiletypeFromFileName: d, - parsePatchFiles: b, - preloadHighlighter: B, - processFile: H, - registerCustomTheme: j - }, J] = await Promise.all([ + parsePatchFiles: x, + preloadHighlighter: w, + processFile: N, + registerCustomTheme: G + }, K] = await Promise.all([ // oxlint-disable-next-line react-doctor/no-dynamic-import-path -- cmux serves this external module URL from its bundled resources at runtime. - import(G), + import(X), // oxlint-disable-next-line react-doctor/no-dynamic-import-path -- cmux serves this external module URL from its bundled resources at runtime. - import(k).catch((xt) => (console.warn("cmux diff file tree import failed", xt), null)) + import(J).catch((gt) => (console.warn("cmux diff file tree import failed", gt), null)) ]); - if (fn(j, z.themes.light), fn(j, z.themes.dark), Ne(X("parsingDiff"), { + if (he(G, z.themes.light), he(G, z.themes.dark), Re(p("parsingDiff"), { loading: !0 - }), ya("loading"), Z = await Li(), xl(et), Se(), window.__cmuxDiffViewer = { - codeView: U, - items: et, - state: g, - workerPool: Z - }, Vn(Z), Z?.initialize?.()?.then?.(() => va(Z?.getStats?.()))?.catch?.((xt) => console.warn("cmux diff worker pool initialization failed", xt)), window.addEventListener("pagehide", () => Z?.terminate?.(), { + }), ga("loading"), ot = await Ln(), tu(m), Te(), window.__cmuxDiffViewer = { + codeView: j, + items: m, + state: M, + workerPool: ot + }, Xn(ot), ot?.initialize?.()?.then?.(() => Qn(ot?.getStats?.()))?.catch?.((gt) => console.warn("cmux diff worker pool initialization failed", gt)), window.addEventListener("pagehide", () => ot?.terminate?.(), { once: !0 - }), await of({ + }), await Zi({ CodeView: o, - parsePatchFiles: b, - processFile: H, - treesModule: J - }), et.length === 0) - throw new Error(X("noFileDiffs")); - Z || _e(z, m.length > 0 ? m : et, d, B).catch((xt) => console.warn("cmux diff highlighter preload failed", xt)); - } - function Ne(o, d = {}) { - w.isConnected || L.replaceChildren(w), document.body.dataset.loading = d.loading === !0 || d.pending === !0 ? "true" : "false", document.body.dataset.statusOnly = d.statusOnly === !0 ? "true" : "false", w.dataset.error = d.error === !0 ? "true" : "false", w.dataset.pending = d.pending === !0 ? "true" : "false", w.textContent = o; - } - async function Qn(o) { - return o.ok ? (await o.text()).includes('data-cmux-diff-pending="true"') ? !1 : (window.location.reload(), !0) : (Ne(X("renderFailed"), { + parsePatchFiles: x, + processFile: N, + treesModule: K + }), m.length === 0) + throw new Error(p("noFileDiffs")); + ot || $n(z, E.length > 0 ? E : m, d, w).catch((gt) => console.warn("cmux diff highlighter preload failed", gt)); + } + function Re(o, d = {}) { + H.isConnected || L.replaceChildren(H), document.body.dataset.loading = d.loading === !0 || d.pending === !0 ? "true" : "false", document.body.dataset.statusOnly = d.statusOnly === !0 ? "true" : "false", H.dataset.error = d.error === !0 ? "true" : "false", H.dataset.pending = d.pending === !0 ? "true" : "false", P.textContent = o; + } + async function hf(o) { + return o.ok ? (await o.text()).includes('data-cmux-diff-pending="true"') ? !1 : (window.location.reload(), !0) : (Re(p("renderFailed"), { error: !0, loading: !1, statusOnly: !0 }), !1); } - async function cf() { + async function Xi() { try { const o = await fetch("/__cmux_diff_viewer_wait" + location.pathname, { cache: "no-store" }); - await Qn(o); + await hf(o); } catch (o) { - document.documentElement.dataset.cmuxDiffWait = "failed", Ne(X("renderFailed"), { + document.documentElement.dataset.cmuxDiffWait = "failed", Re(p("renderFailed"), { error: !0, loading: !1, statusOnly: !0 }), console.warn("cmux diff viewer deferred load failed", o); } } - async function Li() { + async function Ln() { if (typeof Worker > "u") return null; try { const o = await import(Q); - fn(o.registerCustomTheme, z.themes.light), fn(o.registerCustomTheme, z.themes.dark); - const d = new URL(lt, window.location.href).href; + he(o.registerCustomTheme, z.themes.light), he(o.registerCustomTheme, z.themes.dark); + const d = new URL(et, window.location.href).href; return o.createDiffWorkerPool({ workerURL: d, - highlighterOptions: Xi() + highlighterOptions: Qi() }) ?? null; } catch (o) { return console.warn("cmux diff worker pool unavailable; falling back to main-thread highlighting", o), null; } } - function Vn(o) { + function Xn(o) { if (!o) { - ya("fallback"); + ga("fallback"); return; } - ya("enabled"), va(o.getStats?.()); - const d = o.subscribeToStatChanges?.((b) => { - va(b); + ga("enabled"), Qn(o.getStats?.()); + const d = o.subscribeToStatChanges?.((x) => { + Qn(x); }); typeof d == "function" && window.addEventListener("pagehide", d, { once: !0 }); } - function ya(o) { + function ga(o) { document.body.dataset.workerPool = o; } - function va(o) { + function Qn(o) { !o || typeof o != "object" || (typeof o.managerState == "string" && (document.body.dataset.workerPoolState = o.managerState), Number.isFinite(o.totalWorkers) && (document.body.dataset.workerPoolWorkers = String(o.totalWorkers)), typeof o.workersFailed == "boolean" && (document.body.dataset.workerPoolFailed = String(o.workersFailed))); } - function Xi() { + function Qi() { return { theme: z.theme, preferredHighlighter: "shiki-wasm", - lineDiffType: g.wordDiffs ? "word" : "none", + lineDiffType: M.wordDiffs ? "word" : "none", maxLineDiffLength: 1e3, tokenizeMaxLineLength: 1e3, useTokenTransformer: !1 }; } - const Zn = /^From\s+([a-f0-9]+)\s/im; - function pe(o, d) { - const b = o?.match(Zn); - return b?.[1] ? new TextDecoder().decode(new TextEncoder().encode(b[1].slice(0, 5))) : `${X("commit")} ${d + 1}`; + const de = /^From\s+([a-f0-9]+)\s/im; + function Vi(o, d) { + const x = o?.match(de); + return x?.[1] ? new TextDecoder().decode(new TextEncoder().encode(x[1].slice(0, 5))) : `${p("commit")} ${d + 1}`; } - async function of({ + async function Zi({ CodeView: o, parsePatchFiles: d, - processFile: b, - treesModule: B + processFile: x, + treesModule: w }) { - const H = Wa(), j = { + const N = gf(), G = { dirtyCount: 0, lastRefreshAt: 0, timeout: 0, treesModule: null - }, J = { + }, K = { startedAt: performance.now(), completedAt: 0, flushCount: 0, maxBatchSize: 0, treeRefreshCount: 0 }; - let nt = performance.now(), xt = performance.now(), zt = !0; + let lt = performance.now(), gt = performance.now(), Dt = !0; const Vl = { - initialBatchSize: Wt(), + initialBatchSize: Fn(), incrementalBatchSize: 25, initialMaxWait: 500, incrementalMaxWait: 100 }; - function vf(_, R) { - const P = cn(H, _, R); - return P?.renamedItem && Zl(P.renamedItem), P?.item; + function ln(D, R) { + const I = el(N, D, R); + return I?.renamedItem && iu(I.renamedItem), I?.item; } - function cn(_, R, P) { + function el(D, R, I) { if (!R) return null; - const it = Te(R), Mt = P == null ? it : `${P}/${it}`, Et = it.length === 0 ? void 0 : _.pathStateByTreePath.get(Mt), Kt = Et == null ? void 0 : tl(_, Mt, Et), ze = Sl(R), De = { - id: _.itemIdToFile.has(Mt) ? on(_, `${Mt}?2`) : Mt, + const it = oe(R), Tt = I == null ? it : `${I}/${it}`, zt = it.length === 0 ? void 0 : D.pathStateByTreePath.get(Tt), Kt = zt == null ? void 0 : In(D, Tt, zt), ze = Ql(R), Be = { + id: D.itemIdToFile.has(Tt) ? an(D, `${Tt}?2`) : Tt, type: "diff", fileDiff: R, version: 0, // Inherit the current collapse state so items flushed after "Collapse all // diffs" (while a large diff is still streaming) render collapsed too. - collapsed: g.collapsed - }, eu = _.items.length; - _.fileIndex += 1, _.items.push(De), _.pendingItems.push(De), _.pendingItemById.set(De.id, De), _.itemIdToFile.set(De.id, { - fileOrder: eu, + collapsed: M.collapsed + }, fu = D.items.length; + D.fileIndex += 1, D.items.push(Be), D.pendingItems.push(Be), D.pendingItemById.set(Be.id, Be), D.itemIdToFile.set(Be.id, { + fileOrder: fu, path: it - }), _.itemIdByTreePath.set(Mt, De.id), _.treePathByItemId.set(De.id, Mt), _.diffStats.addedLines += ze.added, _.diffStats.deletedLines += ze.deleted, _.diffStats.fileCount += 1, _.diffStats.totalLinesOfCode += R.unifiedLineCount ?? R.splitLineCount ?? 0; - const xf = _.statsByPath.get(Mt); - return _.statsByPath.set(Mt, ze), Et != null && !Pi(xf, ze) && (_.pendingStatsChanged = !0), it.length > 0 && (Et == null && _.paths.push(Mt), _.pathToItemId.set(Mt, De.id), Pn(_, Mt, R.type, Et?.sawDeleted === !0), _.pathStateByTreePath.set(Mt, { - currentItem: De, - currentItemId: De.id, + }), D.itemIdByTreePath.set(Tt, Be.id), D.treePathByItemId.set(Be.id, Tt), D.diffStats.addedLines += ze.added, D.diffStats.deletedLines += ze.deleted, D.diffStats.fileCount += 1, D.diffStats.totalLinesOfCode += R.unifiedLineCount ?? R.splitLineCount ?? 0; + const Sf = D.statsByPath.get(Tt); + return D.statsByPath.set(Tt, ze), zt != null && !en(Sf, ze) && (D.pendingStatsChanged = !0), it.length > 0 && (zt == null && D.paths.push(Tt), D.pathToItemId.set(Tt, Be.id), Zl(D, Tt, R.type, zt?.sawDeleted === !0), D.pathStateByTreePath.set(Tt, { + currentItem: Be, + currentItemId: Be.id, currentType: R.type, - fileOrder: eu, - sawDeleted: Et?.sawDeleted === !0 || R.type === "deleted" + fileOrder: fu, + sawDeleted: zt?.sawDeleted === !0 || R.type === "deleted" })), { - item: De, + item: Be, renamedItem: Kt }; } - function tl(_, R, P) { - const it = P.currentItemId, Mt = P.currentType === "deleted" ? "?deleted" : "?previous", Et = on(_, `${R}${Mt}`); - if (P.currentItem.id = Et, P.currentItemId = Et, _.itemIdToFile.has(it)) { - const Kt = _.itemIdToFile.get(it); - _.itemIdToFile.delete(it), _.itemIdToFile.set(Et, Kt); + function In(D, R, I) { + const it = I.currentItemId, Tt = I.currentType === "deleted" ? "?deleted" : "?previous", zt = an(D, `${R}${Tt}`); + if (I.currentItem.id = zt, I.currentItemId = zt, D.itemIdToFile.has(it)) { + const Kt = D.itemIdToFile.get(it); + D.itemIdToFile.delete(it), D.itemIdToFile.set(zt, Kt); } - if (_.treePathByItemId.has(it) && (_.treePathByItemId.delete(it), _.treePathByItemId.set(Et, R)), _.pendingItemById.has(it)) { - const Kt = _.pendingItemById.get(it); - _.pendingItemById.delete(it), _.pendingItemById.set(Et, Kt); + if (D.treePathByItemId.has(it) && (D.treePathByItemId.delete(it), D.treePathByItemId.set(zt, R)), D.pendingItemById.has(it)) { + const Kt = D.pendingItemById.get(it); + D.pendingItemById.delete(it), D.pendingItemById.set(zt, Kt); return; } return { oldId: it, - newId: Et + newId: zt }; } - function on(_, R) { - if (!_.itemIdToFile.has(R)) + function an(D, R) { + if (!D.itemIdToFile.has(R)) return R; - let P = _.nextCollisionSuffixByBase.get(R) ?? 2, it = `${R}-${P}`; - for (; _.itemIdToFile.has(it); ) - P += 1, it = `${R}-${P}`; - return _.nextCollisionSuffixByBase.set(R, P + 1), it; - } - function Pn(_, R, P, it) { - if (it && P !== "deleted") { - _.gitStatusByPath.delete(R) && Tl(_, R); + let I = D.nextCollisionSuffixByBase.get(R) ?? 2, it = `${R}-${I}`; + for (; D.itemIdToFile.has(it); ) + I += 1, it = `${R}-${I}`; + return D.nextCollisionSuffixByBase.set(R, I + 1), it; + } + function Zl(D, R, I, it) { + if (it && I !== "deleted") { + D.gitStatusByPath.delete(R) && Tl(D, R); return; } - const Mt = Ii(P); - if (Mt === "modified") { - _.gitStatusByPath.delete(R) && Tl(_, R); + const Tt = tn(I); + if (Tt === "modified") { + D.gitStatusByPath.delete(R) && Tl(D, R); return; } - if (_.gitStatusByPath.get(R)?.status === Mt) + if (D.gitStatusByPath.get(R)?.status === Tt) return; const Kt = { path: R, - status: Mt + status: Tt }; - _.gitStatusByPath.set(R, Kt), _.pendingGitStatusRemovePaths.delete(R), _.pendingGitStatusSetByPath.set(R, Kt); + D.gitStatusByPath.set(R, Kt), D.pendingGitStatusRemovePaths.delete(R), D.pendingGitStatusSetByPath.set(R, Kt); } - function Tl(_, R) { - _.pendingGitStatusSetByPath.delete(R), _.pendingGitStatusRemovePaths.add(R); + function Tl(D, R) { + D.pendingGitStatusSetByPath.delete(R), D.pendingGitStatusRemovePaths.add(R); } - function Zl(_) { - if (N.delete(_.oldId) && N.add(_.newId), A.has(_.oldId)) { - const R = A.get(_.oldId); - A.delete(_.oldId), R && A.set(_.newId, R); + function iu(D) { + if (q.delete(D.oldId) && q.add(D.newId), B.has(D.oldId)) { + const R = B.get(D.oldId); + B.delete(D.oldId), R && B.set(D.newId, R); } - Wi(_.oldId, _.newId), U?.updateItemId?.(_.oldId, _.newId); + lu(D.oldId, D.newId), j?.updateItemId?.(D.oldId, D.newId); } - async function rn(_, R) { - vf(_, R) && await za(!1); + async function za(D, R) { + ln(D, R) && await nn(!1); } - async function za(_) { - if (H.pendingItems.length === 0) + async function nn(D) { + if (N.pendingItems.length === 0) return; const R = performance.now(); - if (!_ && zt && R - nt >= 8 && H.pendingItems.length < Vl.initialBatchSize && R - xt < Vl.initialMaxWait) { - await Vi(), nt = performance.now(); + if (!D && Dt && R - lt >= 8 && N.pendingItems.length < Vl.initialBatchSize && R - gt < Vl.initialMaxWait) { + await Ji(), lt = performance.now(); return; } - const P = zt ? Vl.initialBatchSize : Vl.incrementalBatchSize, it = zt ? Vl.initialMaxWait : Vl.incrementalMaxWait; - if (_ || H.pendingItems.length >= P || R - xt >= it) { - tu(), await Vi(), nt = performance.now(); + const I = Dt ? Vl.initialBatchSize : Vl.incrementalBatchSize, it = Dt ? Vl.initialMaxWait : Vl.incrementalMaxWait; + if (D || N.pendingItems.length >= I || R - gt >= it) { + Ma(), await Ji(), lt = performance.now(); return; } } - function tu() { - if (H.pendingItems.length === 0) + function Ma() { + if (N.pendingItems.length === 0) return; - const _ = H.pendingItems.splice(0, H.pendingItems.length); - H.pendingItemById.clear(); - const R = _, P = m.length > 0; - et.push(..._); - for (const it of _) - A.set(it.id, it); + const D = N.pendingItems.splice(0, N.pendingItems.length); + N.pendingItemById.clear(); + const R = D, I = E.length > 0; + m.push(...D); + for (const it of D) + B.set(it.id, it); if (R.length > 0) { - m.push(...R); + E.push(...R); for (const it of R) - N.add(it.id); - U ? U.addItems(R) : (U = new o(fl(), Z ?? void 0), U.setup(L), U.setItems(m), U.render(!0), window.__cmuxDiffViewer && (window.__cmuxDiffViewer.codeView = U)); + q.add(it.id); + j ? j.addItems(R) : (j = new o(va(), ot ?? void 0), j.setup(L), j.setItems(E), j.render(!0), window.__cmuxDiffViewer && (window.__cmuxDiffViewer.codeView = j)); } - pf(_), He(B, !1, _.length), J.flushCount += 1, J.maxBatchSize = Math.max(J.maxBatchSize, _.length), J.fileCount = et.length, J.renderableFileCount = m.length, Fa(J), xt = performance.now(), zt && (zt = !1, document.body.dataset.loading = "false", w.remove()), P || Ta(m[0]?.id ?? et[0]?.id ?? ""), window.__cmuxDiffViewer && (window.__cmuxDiffViewer.items = et, window.__cmuxDiffViewer.codeViewItems = m, window.__cmuxDiffViewer.streamMetrics = J); + eu(D), Ea(w, !1, D.length), K.flushCount += 1, K.maxBatchSize = Math.max(K.maxBatchSize, D.length), K.fileCount = m.length, K.renderableFileCount = E.length, Ja(K), gt = performance.now(), Dt && (Dt = !1, document.body.dataset.loading = "false", H.remove()), I || Ta(E[0]?.id ?? m[0]?.id ?? ""), window.__cmuxDiffViewer && (window.__cmuxDiffViewer.items = m, window.__cmuxDiffViewer.codeViewItems = E, window.__cmuxDiffViewer.streamMetrics = K); } - function Kl() { - U && (U.syncContainerHeight?.(), U.render(!0)); + function Xe() { + j && (j.syncContainerHeight?.(), j.render(!0)); } - function He(_, R, P = 1) { - if (j.treesModule = _, j.dirtyCount += P, R || j.lastRefreshAt === 0) { - Ma(j.treesModule); + function Ea(D, R, I = 1) { + if (G.treesModule = D, G.dirtyCount += I, R || G.lastRefreshAt === 0) { + zl(G.treesModule); return; } - const it = performance.now() - j.lastRefreshAt; - if (j.dirtyCount >= 1e3 || it >= 1e3) { - Ma(j.treesModule); + const it = performance.now() - G.lastRefreshAt; + if (G.dirtyCount >= 1e3 || it >= 1e3) { + zl(G.treesModule); return; } - if (j.timeout !== 0) + if (G.timeout !== 0) return; - const Mt = Math.max(0, 1e3 - it); - j.timeout = window.setTimeout(() => { - j.timeout = 0, Ma(j.treesModule); - }, Mt); + const Tt = Math.max(0, 1e3 - it); + G.timeout = window.setTimeout(() => { + G.timeout = 0, zl(G.treesModule); + }, Tt); } - function Ma(_) { - j.timeout !== 0 && (window.clearTimeout(j.timeout), j.timeout = 0), j.dirtyCount = 0, j.lastRefreshAt = performance.now(), J.treeRefreshCount += 1, at = rf(H), Wn(at, _), Se(), Fa(J); + function zl(D) { + G.timeout !== 0 && (window.clearTimeout(G.timeout), G.timeout = 0), G.dirtyCount = 0, G.lastRefreshAt = performance.now(), K.treeRefreshCount += 1, ct = Ki(N), vf(ct, D), Te(), Ja(K); } - const el = await fetch(C.patchURL, { + const Ee = await fetch(U.patchURL, { cache: "no-store" }); - if (!el.ok) - throw new Error(`${X("loadingDiff")} (${el.status})`); - if (!el.body?.getReader) { - const _ = await el.text(); - await Kn(_, d, rn), await za(!0), Kl(), He(B, !0), J.completedAt = performance.now(); + if (!Ee.ok) + throw new Error(`${p("loadingDiff")} (${Ee.status})`); + if (!Ee.body?.getReader) { + const D = await Ee.text(); + await pa(D, d, za), await nn(!0), Xe(), Ea(w, !0), K.completedAt = performance.now(); return; } - const ll = new TextDecoder(), ti = el.body.getReader(), Ea = "diff --git ", ei = ` -` + Ea, sn = ei.length - 1, Aa = /\S/; - function _a(_, R) { - const P = Math.max(R, 0); - if (P === 0 && _.startsWith(Ea)) + const un = new TextDecoder(), fn = Ee.body.getReader(), Pn = "diff --git ", Aa = ` +` + Pn, cn = Aa.length - 1, ti = /\S/; + function fe(D, R) { + const I = Math.max(R, 0); + if (I === 0 && D.startsWith(Pn)) return 0; - const it = _.indexOf(ei, P); + const it = D.indexOf(Aa, I); return it === -1 ? void 0 : it + 1; } - function se(_, R) { - return Math.max(R, _.length - sn); + function ml(D, R) { + return Math.max(R, D.length - cn); } - function zl(_, R, P) { - const it = Math.max(R, 0), Mt = Math.min(P, _.length); - if (it >= Mt) + function on(D, R, I) { + const it = Math.max(R, 0), Tt = Math.min(I, D.length); + if (it >= Tt) return; - let Et = _.lastIndexOf(` -From `, Mt - 1); - for (; Et !== -1; ) { - const Kt = Et + 1; + let zt = D.lastIndexOf(` +From `, Tt - 1); + for (; zt !== -1; ) { + const Kt = zt + 1; if (Kt < it) return; - if (Kt >= Mt) { - Et = _.lastIndexOf(` -From `, Et - 1); + if (Kt >= Tt) { + zt = D.lastIndexOf(` +From `, zt - 1); continue; } - const ze = _.indexOf(` -`, Kt + 1), Ua = _.slice(Kt, ze === -1 || ze > Mt ? Mt : ze); - if (Zn.test(Ua)) + const ze = D.indexOf(` +`, Kt + 1), Kl = D.slice(Kt, ze === -1 || ze > Tt ? Tt : ze); + if (de.test(Kl)) return Kt; - Et = _.lastIndexOf(` -From `, Et - 1); + zt = D.lastIndexOf(` +From `, zt - 1); } } - function dn(_) { - const R = _a(_, 0); + function _a(D) { + const R = fe(D, 0); if (R == null || R <= 0) return; - const P = _.slice(0, R); - return Zn.test(P) ? P : void 0; + const I = D.slice(0, R); + return de.test(I) ? I : void 0; } - async function Jl(_) { - if (_.trim() === "") + async function uu(D) { + if (D.trim() === "") return; - const R = dn(_); - R != null && (kl = pe(R, Oa), Oa += 1); - const P = `cmux-diff-file-${H.fileIndex}`; - await rn(b(_, { - cacheKey: P, + const R = _a(D); + R != null && (Oa = Vi(R, li), li += 1); + const I = `cmux-diff-file-${N.fileIndex}`; + await za(x(D, { + cacheKey: I, isGitDiff: !0 - }), kl); + }), Oa); } - function bf() { - let _, R = "", P = 0, it = !1; - function Mt() { - if (_ == null) { - if (_ = _a(R, P), _ == null) - return P = se(R, 0), null; - it = !0, P = _ + 1; + function ei() { + let D, R = "", I = 0, it = !1; + function Tt() { + if (D == null) { + if (D = fe(R, I), D == null) + return I = ml(R, 0), null; + it = !0, I = D + 1; } for (; ; ) { - const Et = _; - if (Et == null) + const zt = D; + if (zt == null) return null; - const Kt = _a(R, P); + const Kt = fe(R, I); if (Kt == null) - return P = se(R, Et + 1), null; - const ze = zl(R, Et + 1, Kt) ?? Kt, Ua = R.slice(0, ze); - if (R = R.slice(ze), _ = _a(R, 0), P = _ == null ? 0 : _ + 1, Aa.test(Ua)) - return Ua; + return I = ml(R, zt + 1), null; + const ze = on(R, zt + 1, Kt) ?? Kt, Kl = R.slice(0, ze); + if (R = R.slice(ze), D = fe(R, 0), I = D == null ? 0 : D + 1, ti.test(Kl)) + return Kl; } } return { - push(Et) { - Et.length > 0 && (R += Et); + push(zt) { + zt.length > 0 && (R += zt); }, - takeAvailableFile: Mt, + takeAvailableFile: Tt, finish() { - const Et = Mt(); - if (Et != null) + const zt = Tt(); + if (zt != null) return { - fileText: Et + fileText: zt }; - if (!Aa.test(R)) + if (!ti.test(R)) return R = "", {}; if (!it) { const ze = R; @@ -11105,42 +11105,42 @@ From `, Et - 1); } }; } - async function Da(_) { + async function Da(D) { let R; - for (; (R = _.takeAvailableFile()) != null; ) - await Jl(R); + for (; (R = D.takeAvailableFile()) != null; ) + await uu(R); } - const rl = bf(); - let kl, Oa = 0; + const Qe = ei(); + let Oa, li = 0; for (; ; ) { const { - done: _, + done: D, value: R - } = await ti.read(); - if (_) { - const P = ll.decode(); - P.length > 0 && (rl.push(P), await Da(rl)); + } = await fn.read(); + if (D) { + const I = un.decode(); + I.length > 0 && (Qe.push(I), await Da(Qe)); break; } - rl.push(ll.decode(R, { + Qe.push(un.decode(R, { stream: !0 - })), await Da(rl); + })), await Da(Qe); } - const Ca = rl.finish(); - Ca.fileText != null ? (await Jl(Ca.fileText), await Da(rl)) : Ca.fallbackPatchContent != null && await Kn(Ca.fallbackPatchContent, d, rn), await za(!0), Kl(), He(B, !0), J.completedAt = performance.now(), Fa(J); + const rn = Qe.finish(); + rn.fileText != null ? (await uu(rn.fileText), await Da(Qe)) : rn.fallbackPatchContent != null && await pa(rn.fallbackPatchContent, d, za), await nn(!0), Xe(), Ea(w, !0), K.completedAt = performance.now(), Ja(K); } - function Fa(o) { - document.body.dataset.streamFileCount = String(o.fileCount ?? et.length), document.body.dataset.streamRenderableFileCount = String(o.renderableFileCount ?? m.length), document.body.dataset.streamFlushCount = String(o.flushCount ?? 0), document.body.dataset.streamMaxBatchSize = String(o.maxBatchSize ?? 0), document.body.dataset.streamTreeRefreshCount = String(o.treeRefreshCount ?? 0), Number.isFinite(o.completedAt) && o.completedAt > 0 && (document.body.dataset.streamElapsedMs = String(Math.round(o.completedAt - o.startedAt))); + function Ja(o) { + document.body.dataset.streamFileCount = String(o.fileCount ?? m.length), document.body.dataset.streamRenderableFileCount = String(o.renderableFileCount ?? E.length), document.body.dataset.streamFlushCount = String(o.flushCount ?? 0), document.body.dataset.streamMaxBatchSize = String(o.maxBatchSize ?? 0), document.body.dataset.streamTreeRefreshCount = String(o.treeRefreshCount ?? 0), Number.isFinite(o.completedAt) && o.completedAt > 0 && (document.body.dataset.streamElapsedMs = String(Math.round(o.completedAt - o.startedAt))); } - async function Kn(o, d, b) { - const B = d(o, "cmux-diff"), H = B.length > 1; - for (const [j, J] of B.entries()) { - const nt = H ? pe(J.patchMetadata, j) : void 0; - for (const xt of J.files ?? []) - await b(xt, nt); + async function pa(o, d, x) { + const w = d(o, "cmux-diff"), N = w.length > 1; + for (const [G, K] of w.entries()) { + const lt = N ? Vi(K.patchMetadata, G) : void 0; + for (const gt of K.files ?? []) + await x(gt, lt); } } - function Wa() { + function gf() { return { diffStats: { addedLines: 0, @@ -11167,13 +11167,13 @@ From `, Et - 1); treePathByItemId: /* @__PURE__ */ new Map() }; } - function rf(o) { - const d = o.lastTreeSource, b = Qi(o), B = { + function Ki(o) { + const d = o.lastTreeSource, x = pf(o), w = { diffStats: { ...o.diffStats }, gitStatus: Array.from(o.gitStatusByPath.values()), - gitStatusPatch: b, + gitStatusPatch: x, pathCount: o.paths.length, paths: o.paths, pathToItemId: o.pathToItemId, @@ -11182,93 +11182,93 @@ From `, Et - 1); statsByPath: o.statsByPath, treePathByItemId: o.treePathByItemId }; - return o.pendingStatsChanged = !1, o.lastTreeSource = B, B; + return o.pendingStatsChanged = !1, o.lastTreeSource = w, w; } - function Qi(o) { + function pf(o) { if (o.pendingGitStatusRemovePaths.size === 0 && o.pendingGitStatusSetByPath.size === 0) return; const d = {}; return o.pendingGitStatusRemovePaths.size > 0 && (d.remove = Array.from(o.pendingGitStatusRemovePaths), o.pendingGitStatusRemovePaths.clear()), o.pendingGitStatusSetByPath.size > 0 && (d.set = Array.from(o.pendingGitStatusSetByPath.values()), o.pendingGitStatusSetByPath.clear()), d; } - function Vi() { + function Ji() { return new Promise((o) => { - let d = !1, b = 0; - const B = () => { - d || (d = !0, b !== 0 && window.clearTimeout(b), o()); + let d = !1, x = 0; + const w = () => { + d || (d = !0, x !== 0 && window.clearTimeout(x), o()); }; if (document.visibilityState === "visible" && document.hasFocus()) - b = window.setTimeout(B, 50), window.requestAnimationFrame(B); + x = window.setTimeout(w, 50), window.requestAnimationFrame(w); else if (typeof MessageChannel < "u") { - const H = new MessageChannel(); - H.port1.onmessage = B, H.port2.postMessage(void 0); + const N = new MessageChannel(); + N.port1.onmessage = w, N.port2.postMessage(void 0); } else - queueMicrotask(B); + queueMicrotask(w); }); } - async function sf() { - return Tt.value == null && (Tt.value = fetch(C.patchURL, { + async function ya() { + return ie.value == null && (ie.value = fetch(U.patchURL, { cache: "no-store" }).then(async (o) => { if (!o.ok) - throw new Error(`${X("loadingDiff")} (${o.status})`); + throw new Error(`${p("loadingDiff")} (${o.status})`); return o.text(); - })), Tt.value; + })), ie.value; } - function ba() { - mt.innerHTML = ve("files"), Ft.innerHTML = ve("search"), Vt.innerHTML = ve("sidebarCollapse"), Dt.innerHTML = ve(g.layout), Ct.innerHTML = ve("dots"), typeof C.externalURL == "string" && C.externalURL.length > 0 && (Yt.href = C.externalURL, Yt.innerHTML = ve("external"), Yt.hidden = !1), mt.addEventListener("click", () => Yl(!g.filesVisible)), Vt.addEventListener("click", () => Yl(!1)), Ft.addEventListener("click", () => Ll(!g.fileSearchOpen)), Dt.addEventListener("click", () => Ki(g.layout === "split" ? "unified" : "split")), Ct.addEventListener("click", () => ln(ht.hidden)), document.addEventListener("click", (o) => { - ht.hidden || o.target instanceof Node && tt.contains(o.target) || ln(!1); + function Se() { + At.innerHTML = we("files"), Gt.innerHTML = we("search"), Yt.innerHTML = we("sidebarCollapse"), _t.innerHTML = we(M.layout), St.innerHTML = we("dots"), typeof U.externalURL == "string" && U.externalURL.length > 0 && (xt.href = U.externalURL, xt.innerHTML = we("external"), xt.hidden = !1), At.addEventListener("click", () => cl(!M.filesVisible)), Yt.addEventListener("click", () => cl(!1)), Gt.addEventListener("click", () => Fi(!M.fileSearchOpen)), _t.addEventListener("click", () => Zn(M.layout === "split" ? "unified" : "split")), St.addEventListener("click", () => $a(k.hidden)), document.addEventListener("click", (o) => { + k.hidden || o.target instanceof Node && mt.contains(o.target) || $a(!1); }), document.addEventListener("keydown", (o) => { - o.key === "Escape" && ln(!1); - }), xe(), Se(); - } - function xe() { - const o = C.shortcuts ?? {}, d = Ee(o.diffViewerScrollDown), b = Ee(o.diffViewerScrollUp), B = Ee(o.diffViewerScrollToBottom), H = Ee(o.diffViewerScrollToTop), j = Ee(o.diffViewerOpenFileSearch); - let J = null, nt = 0; - document.addEventListener("keydown", (zt) => { - if (!(zt.defaultPrevented || tn(zt.target))) { - if (J && !Ia(J.shortcut.second, zt) && xt(), J && Ia(J.shortcut.second, zt)) { - zt.preventDefault(), J.action(), xt(); + o.key === "Escape" && $a(!1); + }), ul(), Te(); + } + function ul() { + const o = U.shortcuts ?? {}, d = ue(o.diffViewerScrollDown), x = ue(o.diffViewerScrollUp), w = ue(o.diffViewerScrollToBottom), N = ue(o.diffViewerScrollToTop), G = ue(o.diffViewerOpenFileSearch); + let K = null, lt = 0; + document.addEventListener("keydown", (Dt) => { + if (!(Dt.defaultPrevented || Wa(Dt.target))) { + if (K && !bl(K.shortcut.second, Dt) && gt(), K && bl(K.shortcut.second, Dt)) { + Dt.preventDefault(), K.action(), gt(); return; } - if ($a(d, zt)) { - zt.preventDefault(), xa(1); + if (ka(d, Dt)) { + Dt.preventDefault(), fl(1); return; } - if ($a(b, zt)) { - zt.preventDefault(), xa(-1); + if (ka(x, Dt)) { + Dt.preventDefault(), fl(-1); return; } - if ($a(B, zt)) { - zt.preventDefault(), L.scrollTo({ + if (ka(w, Dt)) { + Dt.preventDefault(), L.scrollTo({ top: L.scrollHeight, behavior: "auto" }); return; } - if ($a(j, zt) && W) { - zt.preventDefault(), Yl(!0), Ll(!0); + if (ka(G, Dt) && W) { + Dt.preventDefault(), cl(!0), Fi(!0); return; } - H && df(H, zt) && (zt.preventDefault(), J = { - shortcut: H, + N && yf(N, Dt) && (Dt.preventDefault(), K = { + shortcut: N, action: () => L.scrollTo({ top: 0, behavior: "auto" }) - }, nt = window.setTimeout(xt, 700)); + }, lt = window.setTimeout(gt, 700)); } }); - function xt() { - J = null, nt !== 0 && (window.clearTimeout(nt), nt = 0); + function gt() { + K = null, lt !== 0 && (window.clearTimeout(lt), lt = 0); } } - function Ee(o) { + function ue(o) { return !o || o.unbound === !0 || !o.first ? null : { - first: ye(o.first), - second: o.second ? ye(o.second) : null + first: ki(o.first), + second: o.second ? ki(o.second) : null }; } - function ye(o) { + function ki(o) { return { key: String(o?.key ?? "").toLowerCase(), command: o?.command === !0, @@ -11277,53 +11277,53 @@ From `, Et - 1); control: o?.control === !0 }; } - function $a(o, d) { - return o && !o.second && Ia(o.first, d); + function ka(o, d) { + return o && !o.second && bl(o.first, d); } - function df(o, d) { - return o && o.second && Ia(o.first, d); + function yf(o, d) { + return o && o.second && bl(o.first, d); } - function Ia(o, d) { - return !o || d.metaKey !== o.command || d.ctrlKey !== o.control || d.altKey !== o.option || d.shiftKey !== o.shift ? !1 : Pa(d) === o.key; + function bl(o, d) { + return !o || d.metaKey !== o.command || d.ctrlKey !== o.control || d.altKey !== o.option || d.shiftKey !== o.shift ? !1 : Fa(d) === o.key; } - function Pa(o) { + function Fa(o) { return o.code === "Space" ? "space" : typeof o.key != "string" || o.key.length === 0 ? "" : (o.key.length === 1, o.key.toLowerCase()); } - function tn(o) { + function Wa(o) { const d = o instanceof Element ? o : null; return d ? !!d.closest("input, textarea, select, [contenteditable='true']") : !1; } - function xa(o) { + function fl(o) { const d = Math.max(80, Math.floor(L.clientHeight * 0.38)); L.scrollBy({ top: o * d, behavior: "auto" }); } - function fl() { + function va() { return { layout: { paddingTop: 0, gap: 1, paddingBottom: 0 }, - diffStyle: g.layout, - diffIndicators: g.diffIndicators, - overflow: g.wordWrap ? "wrap" : "scroll", - expandUnchanged: g.expandUnchanged, - disableBackground: !g.showBackgrounds, - disableLineNumbers: !g.lineNumbers, + diffStyle: M.layout, + diffIndicators: M.diffIndicators, + overflow: M.wordWrap ? "wrap" : "scroll", + expandUnchanged: M.expandUnchanged, + disableBackground: !M.showBackgrounds, + disableLineNumbers: !M.lineNumbers, lineHoverHighlight: "number", enableLineSelection: !0, enableGutterUtility: !0, - lineDiffType: g.wordDiffs ? "word" : "none", + lineDiffType: M.wordDiffs ? "word" : "none", stickyHeaders: !0, - unsafeCSS: en(), + unsafeCSS: ba(), theme: z.theme, themeType: "system" }; } - function en() { + function ba() { return ` [data-diffs-header] { container-type: scroll-state; @@ -11351,395 +11351,395 @@ From `, Et - 1); } `; } - function we() { - const o = fl(); - if (!U) { - Zi(); + function xl() { + const o = va(); + if (!j) { + Vn(); return; } - U.setOptions(o), Zi(), U.render(!0); + j.setOptions(o), Vn(), j.render(!0); } - function Zi() { - Z?.setRenderOptions && Z.setRenderOptions(Xi()).then(() => U?.render(!0)).catch((o) => console.warn("cmux diff worker render options update failed", o)); + function Vn() { + ot?.setRenderOptions && ot.setRenderOptions(Qi()).then(() => j?.render(!0)).catch((o) => console.warn("cmux diff worker render options update failed", o)); } - function Ki(o) { - g.layout = o === "unified" ? "unified" : "split", Se(), we(); + function Zn(o) { + M.layout = o === "unified" ? "unified" : "split", Te(), xl(); } - function Yl(o) { - g.filesVisible = o, document.body.dataset.filesHidden = o ? "false" : "true", $.setAttribute("aria-hidden", String(!o)), o ? $.removeAttribute("inert") : $.setAttribute("inert", ""), Se(); + function cl(o) { + M.filesVisible = o, document.body.dataset.filesHidden = o ? "false" : "true", Zt.setAttribute("aria-hidden", String(!o)), o ? Zt.removeAttribute("inert") : Zt.setAttribute("inert", ""), Te(); } - function Ll(o) { - g.fileSearchOpen = !!o, W && (g.fileSearchOpen ? W.openSearch("") : W.closeSearch()), Se(); + function Fi(o) { + M.fileSearchOpen = !!o, W && (M.fileSearchOpen ? W.openSearch("") : W.closeSearch()), Te(); } - function mf(o) { - g.collapsed = o; - const d = m.map((H) => ({ - ...H, + function Wi(o) { + M.collapsed = o; + const d = E.map((N) => ({ + ...N, collapsed: o, - version: (H.version ?? 0) + 1 - })), b = new Map(d.map((H) => [H.id, H])), B = et.map((H) => b.get(H.id) ?? { - ...H, + version: (N.version ?? 0) + 1 + })), x = new Map(d.map((N) => [N.id, N])), w = m.map((N) => x.get(N.id) ?? { + ...N, collapsed: o, - version: (H.version ?? 0) + 1 + version: (N.version ?? 0) + 1 }); - m.splice(0, m.length, ...d), et.splice(0, et.length, ...B), U && (U.setItems(m), U.render(!0)), Se(); + E.splice(0, E.length, ...d), m.splice(0, m.length, ...w), j && (j.setItems(E), j.render(!0)), Te(); } - function Se() { - mt.setAttribute("aria-pressed", String(g.filesVisible)), mt.title = g.filesVisible ? X("hideFiles") : X("showFiles"), mt.setAttribute("aria-label", mt.title), Vt.title = X("hideFiles"), Vt.setAttribute("aria-label", Vt.title), Dt.innerHTML = ve(g.layout), Dt.title = g.layout === "split" ? X("switchToUnifiedDiff") : X("switchToSplitDiff"), Dt.setAttribute("aria-label", Dt.title), Ct.setAttribute("aria-expanded", String(!ht.hidden)), document.documentElement.dataset.layout = g.layout, document.documentElement.dataset.wordWrap = String(g.wordWrap), document.documentElement.dataset.diffIndicators = g.diffIndicators, Ft.disabled = !W, Ft.setAttribute("aria-pressed", String(g.fileSearchOpen)), Ft.title = g.fileSearchOpen ? X("hideFileSearch") : X("showFileSearch"), Ft.setAttribute("aria-label", Ft.title); + function Te() { + At.setAttribute("aria-pressed", String(M.filesVisible)), At.title = M.filesVisible ? p("hideFiles") : p("showFiles"), At.setAttribute("aria-label", At.title), Yt.title = p("hideFiles"), Yt.setAttribute("aria-label", Yt.title), _t.innerHTML = we(M.layout), _t.title = M.layout === "split" ? p("switchToUnifiedDiff") : p("switchToSplitDiff"), _t.setAttribute("aria-label", _t.title), St.setAttribute("aria-expanded", String(!k.hidden)), document.documentElement.dataset.layout = M.layout, document.documentElement.dataset.wordWrap = String(M.wordWrap), document.documentElement.dataset.diffIndicators = M.diffIndicators, Gt.disabled = !W, Gt.setAttribute("aria-pressed", String(M.fileSearchOpen)), Gt.title = M.fileSearchOpen ? p("hideFileSearch") : p("showFileSearch"), Gt.setAttribute("aria-label", Gt.title); } - function ln(o) { - o && an(), ht.hidden = !o, Se(); + function $a(o) { + o && xa(), k.hidden = !o, Te(); } - function an() { - ht.textContent = ""; + function xa() { + k.textContent = ""; const o = [{ - label: X("refresh"), + label: p("refresh"), icon: "refresh", action: () => window.location.reload() }, { - label: g.wordWrap ? X("disableWordWrap") : X("enableWordWrap"), + label: M.wordWrap ? p("disableWordWrap") : p("enableWordWrap"), icon: "wrap", - checked: g.wordWrap, + checked: M.wordWrap, action: () => { - g.wordWrap = !g.wordWrap, we(); + M.wordWrap = !M.wordWrap, xl(); } }, { - label: g.collapsed ? X("expandAllDiffs") : X("collapseAllDiffs"), + label: M.collapsed ? p("expandAllDiffs") : p("collapseAllDiffs"), icon: "collapse", - checked: g.collapsed, - action: () => mf(!g.collapsed) + checked: M.collapsed, + action: () => Wi(!M.collapsed) }, "separator", { - label: g.filesVisible ? X("hideFiles") : X("showFiles"), + label: M.filesVisible ? p("hideFiles") : p("showFiles"), icon: "files", - checked: g.filesVisible, - action: () => Yl(!g.filesVisible) + checked: M.filesVisible, + action: () => cl(!M.filesVisible) }, { - label: g.expandUnchanged ? X("collapseUnchangedContext") : X("expandUnchangedContext"), + label: M.expandUnchanged ? p("collapseUnchangedContext") : p("expandUnchangedContext"), icon: "document", - checked: g.expandUnchanged, + checked: M.expandUnchanged, action: () => { - g.expandUnchanged = !g.expandUnchanged, we(); + M.expandUnchanged = !M.expandUnchanged, xl(); } }, { - label: g.showBackgrounds ? X("hideBackgrounds") : X("showBackgrounds"), + label: M.showBackgrounds ? p("hideBackgrounds") : p("showBackgrounds"), icon: "background", - checked: g.showBackgrounds, + checked: M.showBackgrounds, action: () => { - g.showBackgrounds = !g.showBackgrounds, we(); + M.showBackgrounds = !M.showBackgrounds, xl(); } }, { - label: g.lineNumbers ? X("hideLineNumbers") : X("showLineNumbers"), + label: M.lineNumbers ? p("hideLineNumbers") : p("showLineNumbers"), icon: "numbers", - checked: g.lineNumbers, + checked: M.lineNumbers, action: () => { - g.lineNumbers = !g.lineNumbers, we(); + M.lineNumbers = !M.lineNumbers, xl(); } }, { - label: g.wordDiffs ? X("disableWordDiffs") : X("enableWordDiffs"), + label: M.wordDiffs ? p("disableWordDiffs") : p("enableWordDiffs"), icon: "word", - checked: g.wordDiffs, + checked: M.wordDiffs, action: () => { - g.wordDiffs = !g.wordDiffs, we(); + M.wordDiffs = !M.wordDiffs, xl(); } }, { kind: "segment", - label: X("indicatorStyle"), + label: p("indicatorStyle"), icon: "bars", options: [{ value: "bars", icon: "bars", - label: X("bars") + label: p("bars") }, { value: "classic", icon: "classic", - label: X("classic") + label: p("classic") }, { value: "none", icon: "eye", - label: X("none") + label: p("none") }] }, "separator", { - label: X("copyGitApplyCommand"), + label: p("copyGitApplyCommand"), icon: "clipboard", - action: kn + action: $i }]; for (const d of o) { if (d === "separator") { - const H = document.createElement("div"); - H.className = "menu-separator", ht.append(H); + const N = document.createElement("div"); + N.className = "menu-separator", k.append(N); continue; } if (d.kind === "segment") { - const H = document.createElement("div"); - H.className = "menu-item menu-segment", H.setAttribute("role", "presentation"), H.innerHTML = `${ve(d.icon)}`; - const j = H.querySelector(".menu-label"); - j && (j.textContent = d.label); - const J = H.querySelector(".menu-segment-controls"); - if (!J) + const N = document.createElement("div"); + N.className = "menu-item menu-segment", N.setAttribute("role", "presentation"), N.innerHTML = `${we(d.icon)}`; + const G = N.querySelector(".menu-label"); + G && (G.textContent = d.label); + const K = N.querySelector(".menu-segment-controls"); + if (!K) continue; - for (const nt of d.options) { - const xt = document.createElement("button"); - xt.type = "button", xt.className = "segment-button", xt.title = nt.label, xt.setAttribute("aria-label", nt.label), xt.setAttribute("aria-pressed", String(g.diffIndicators === nt.value)), xt.innerHTML = ve(nt.icon), xt.addEventListener("click", () => { - g.diffIndicators = nt.value, we(), an(), Se(); - }), J.append(xt); + for (const lt of d.options) { + const gt = document.createElement("button"); + gt.type = "button", gt.className = "segment-button", gt.title = lt.label, gt.setAttribute("aria-label", lt.label), gt.setAttribute("aria-pressed", String(M.diffIndicators === lt.value)), gt.innerHTML = we(lt.icon), gt.addEventListener("click", () => { + M.diffIndicators = lt.value, xl(), xa(), Te(); + }), K.append(gt); } - ht.append(H); + k.append(N); continue; } - const b = document.createElement("button"); - b.type = "button", b.className = "menu-item", b.setAttribute("role", d.checked == null ? "menuitem" : "menuitemcheckbox"), d.checked != null && b.setAttribute("aria-checked", String(!!d.checked)), b.disabled = !!d.disabled, b.innerHTML = `${ve(d.icon)}${d.checked ? ve("check") : ""}`; - const B = b.querySelector(".menu-label"); - B && (B.textContent = d.label), b.addEventListener("click", () => { - b.disabled || (d.action?.(), an(), Se()); - }), ht.append(b); + const x = document.createElement("button"); + x.type = "button", x.className = "menu-item", x.setAttribute("role", d.checked == null ? "menuitem" : "menuitemcheckbox"), d.checked != null && x.setAttribute("aria-checked", String(!!d.checked)), x.disabled = !!d.disabled, x.innerHTML = `${we(d.icon)}${d.checked ? we("check") : ""}`; + const w = x.querySelector(".menu-label"); + w && (w.textContent = d.label), x.addEventListener("click", () => { + x.disabled || (d.action?.(), xa(), Te()); + }), k.append(x); } } - function Jn(o) { + function Kn(o) { const d = new Set(o.split(/\r?\n/)); - let b = "CMUX_DIFF_PATCH", B = 0; - for (; d.has(b); ) - B += 1, b = `CMUX_DIFF_PATCH_${B}`; - return b; + let x = "CMUX_DIFF_PATCH", w = 0; + for (; d.has(x); ) + w += 1, x = `CMUX_DIFF_PATCH_${w}`; + return x; } - async function kn() { - const d = await sf(), b = d.endsWith(` + async function $i() { + const d = await ya(), x = d.endsWith(` `) ? d : `${d} -`, B = Jn(b), H = `git apply <<'${B}' -${b}${B}`; +`, w = Kn(x), N = `git apply <<'${w}' +${x}${w}`; if (navigator.clipboard?.writeText) try { - await navigator.clipboard.writeText(H); + await navigator.clipboard.writeText(N); } catch { - Fn(H); + Jn(N); } else - Fn(H); - Ct.title = X("copiedGitApplyCommand"), Ct.setAttribute("aria-label", X("copiedGitApplyCommand")); + Jn(N); + St.title = p("copiedGitApplyCommand"), St.setAttribute("aria-label", p("copiedGitApplyCommand")); } - function Fn(o) { + function Jn(o) { const d = document.createElement("textarea"); d.value = o, d.setAttribute("readonly", ""), d.style.position = "fixed", d.style.left = "-9999px", document.body.append(d), d.select(), document.execCommand("copy"), d.remove(); } - function Ji(o) { - if (Gt.textContent = te(), !Array.isArray(o) || o.length < 2) + function ol(o) { + if (Ct.textContent = me(), !Array.isArray(o) || o.length < 2) return; - rt.textContent = ""; - const d = o.find((b) => b.selected) ?? o.find((b) => !b.disabled); - for (const b of o) { - const B = document.createElement("option"); - B.value = b.value, B.textContent = b.label, B.disabled = b.disabled || !b.url, B.selected = b.value === d?.value, b.message && (B.title = b.message), rt.append(B); - } - Gt.textContent = d?.sourceLabel ?? te(), rt.hidden = !1, rt.addEventListener("change", () => { - const b = o.find((B) => B.value === rt.value); - if (!b?.url) { - rt.value = d?.value ?? ""; + nt.textContent = ""; + const d = o.find((x) => x.selected) ?? o.find((x) => !x.disabled); + for (const x of o) { + const w = document.createElement("option"); + w.value = x.value, w.textContent = x.label, w.disabled = x.disabled || !x.url, w.selected = x.value === d?.value, x.message && (w.title = x.message), nt.append(w); + } + Ct.textContent = d?.sourceLabel ?? me(), nt.hidden = !1, nt.addEventListener("change", () => { + const x = o.find((w) => w.value === nt.value); + if (!x?.url) { + nt.value = d?.value ?? ""; return; } - Ne(X("loadingDiff"), { + Re(p("loadingDiff"), { pending: !0 - }), window.location.href = Pe(b.url); + }), window.location.href = It(x.url); }); } - function Pe(o) { + function It(o) { try { const d = new URL(o, window.location.href); if (window.location.protocol === "cmux-diff-viewer:" && (d.protocol === "http:" || d.protocol === "https:")) { - const b = d.pathname.split("/").filter(Boolean).slice(1).join("/"); - return `cmux-diff-viewer://${window.location.host}/${b}`; + const x = d.pathname.split("/").filter(Boolean).slice(1).join("/"); + return `cmux-diff-viewer://${window.location.host}/${x}`; } return d.href; } catch { return o; } } - function te() { - return [C.sourceLabel, C.repoRoot, C.branchBaseRef].filter((d) => typeof d == "string" && d.trim() !== "").join(" | "); + function me() { + return [U.sourceLabel, U.repoRoot, U.branchBaseRef].filter((d) => typeof d == "string" && d.trim() !== "").join(" | "); } - function re(o, d, b, B) { + function Sl(o, d, x, w) { if (!o || !Array.isArray(d) || d.length < 2) return; o.textContent = ""; - const H = d.find((j) => j.selected) ?? d.find((j) => !j.disabled); - for (const j of d) { - const J = document.createElement("option"); - J.value = j.value, J.textContent = j.label, J.disabled = j.disabled || !j.url, J.selected = j.value === H?.value, j.message && (J.title = j.message), o.append(J); - } - o.hidden = !1, o.title = B, o.addEventListener("change", () => { - const j = d.find((J) => J.value === o.value); - if (!j?.url) { - o.value = H?.value ?? b ?? ""; + const N = d.find((G) => G.selected) ?? d.find((G) => !G.disabled); + for (const G of d) { + const K = document.createElement("option"); + K.value = G.value, K.textContent = G.label, K.disabled = G.disabled || !G.url, K.selected = G.value === N?.value, G.message && (K.title = G.message), o.append(K); + } + o.hidden = !1, o.title = w, o.addEventListener("change", () => { + const G = d.find((K) => K.value === o.value); + if (!G?.url) { + o.value = N?.value ?? x ?? ""; return; } - Ne(X("loadingDiff"), { + Re(p("loadingDiff"), { pending: !0 - }), window.location.href = Pe(j.url); + }), window.location.href = It(G.url); }); } - function Xl(o, d) { - const b = Ql(o), B = ki(d); - if (ol(o, []), W && (W.cleanUp?.(), W = null), q = null, g.fileSearchOpen = !1, Ut.textContent = "", Pt.textContent = `${b}`, $n(o), B) + function kn(o, d) { + const x = Ia(o), w = Sa(d); + if (Pe(o, []), W && (W.cleanUp?.(), W = null), tt = null, M.fileSearchOpen = !1, Ht.textContent = "", be.textContent = `${x}`, dl(o), w) try { - hf(o, d), Se(); + bf(o, d), Te(); return; - } catch (j) { - console.warn("cmux diff file tree setup failed", j); + } catch (G) { + console.warn("cmux diff file tree setup failed", G); } - const H = Sa(o); - ol(o, H), vl(H), Se(); + const N = rl(o); + Pe(o, N), Ft(N), Te(); } - function Wn(o, d) { - const b = Ql(o); - if (ol(o, []), Pt.textContent = `${b}`, $n(o), W && Ut.dataset.treeMode === "pierre" && d?.preparePresortedFileTreeInput) { - gf(o, d); + function vf(o, d) { + const x = Ia(o); + if (Pe(o, []), be.textContent = `${x}`, dl(o), W && Ht.dataset.treeMode === "pierre" && d?.preparePresortedFileTreeInput) { + Ii(o, d); return; } - if (W || Ut.childElementCount === 0) { - Xl(o, d); + if (W || Ht.childElementCount === 0) { + kn(o, d); return; } - const B = Sa(o); - ol(o, B), Ut.textContent = "", vl(B); + const w = rl(o); + Pe(o, w), Ht.textContent = "", Ft(w); } - function hf(o, d) { + function bf(o, d) { const { - FileTree: b, - preparePresortedFileTreeInput: B - } = d, H = cl(o); - q = o; - const j = H[0]; - yl(o), Ut.dataset.treeMode = "pierre", W = new b({ + FileTree: x, + preparePresortedFileTreeInput: w + } = d, N = sl(o); + tt = o; + const G = N[0]; + Ll(o), Ht.dataset.treeMode = "pierre", W = new x({ flattenEmptyDirectories: !0, id: "cmux-diff-file-tree", initialExpansion: "open", - initialSelectedPaths: j ? [j] : [], - initialVisibleRowCount: Wt(), + initialSelectedPaths: G ? [G] : [], + initialVisibleRowCount: Fn(), itemHeight: 24, overscan: 12, - preparedInput: B(H), + preparedInput: w(N), search: !0, searchBlurBehavior: "retain", stickyFolders: !0, gitStatus: o.gitStatus, - renderRowDecoration(J) { - if (J.item.kind !== "file") + renderRowDecoration(K) { + if (K.item.kind !== "file") return null; - const nt = ct.get(J.item.path); - return nt == null || nt.added === 0 && nt.deleted === 0 ? null : { - text: `+${nt.added} -${nt.deleted}`, - title: `${nt.added} ${X("additions")}, ${nt.deleted} ${X("deletions")}` + const lt = vt.get(K.item.path); + return lt == null || lt.added === 0 && lt.deleted === 0 ? null : { + text: `+${lt.added} -${lt.deleted}`, + title: `${lt.added} ${p("additions")}, ${lt.deleted} ${p("deletions")}` }; }, sort: () => 0, - unsafeCSS: Fi(), - onSelectionChange(J) { - if (gl) + unsafeCSS: Pi(), + onSelectionChange(K) { + if (Yl) return; - const nt = J[J.length - 1], xt = Ve.get(nt); - xt && nn(xt); + const lt = K[K.length - 1], gt = Ie.get(lt); + gt && Wn(gt); } }), W.render({ - containerWrapper: Ut + containerWrapper: Ht }); } - function gf(o, d) { - const b = q, B = cl(o); - q = o, yl(o); - let H = !1; - const j = Mg(b, o, B); - if (j.kind === "append") { - const J = j.addedPaths; - if (J.length > 0) + function Ii(o, d) { + const x = tt, w = sl(o); + tt = o, Ll(o); + let N = !1; + const G = Mg(x, o, w); + if (G.kind === "append") { + const K = G.addedPaths; + if (K.length > 0) try { - W.batch(J.map((nt) => ({ + W.batch(K.map((lt) => ({ type: "add", - path: nt + path: lt }))); - } catch (nt) { - console.warn("cmux diff file tree incremental update failed; resetting paths", nt), W.resetPaths(B, { - preparedInput: d.preparePresortedFileTreeInput(B) - }), H = !0; + } catch (lt) { + console.warn("cmux diff file tree incremental update failed; resetting paths", lt), W.resetPaths(w, { + preparedInput: d.preparePresortedFileTreeInput(w) + }), N = !0; } } else - W.resetPaths(B, { - preparedInput: d.preparePresortedFileTreeInput(B) - }), H = !0; - o.gitStatusPatch ? typeof W.applyGitStatusPatch == "function" ? W.applyGitStatusPatch(o.gitStatusPatch) : W.setGitStatus(o.gitStatus) : (H || o.statsChanged === !0) && W.setGitStatus(o.gitStatus); + W.resetPaths(w, { + preparedInput: d.preparePresortedFileTreeInput(w) + }), N = !0; + o.gitStatusPatch ? typeof W.applyGitStatusPatch == "function" ? W.applyGitStatusPatch(o.gitStatusPatch) : W.setGitStatus(o.gitStatus) : (N || o.statsChanged === !0) && W.setGitStatus(o.gitStatus); } - function ki(o) { + function Sa(o) { return !!(o?.FileTree && o?.preparePresortedFileTreeInput); } - function Ql(o) { + function Ia(o) { return o?.pathCount ?? o?.entries?.length ?? 0; } - function Sa(o) { - const d = o?.pathCount ?? o?.entries?.length ?? 0, b = o?.entries ?? []; - if (b.length > 0) - return b.length === d ? b : b.slice(0, d); - const B = cl(o), H = o?.pathToItemId, j = o?.statsByPath; - return B.map((J) => { - const nt = H instanceof Map ? H.get(J) : void 0, xt = nt ? A.get(nt) : void 0, zt = xt?.fileDiff ?? {}; + function rl(o) { + const d = o?.pathCount ?? o?.entries?.length ?? 0, x = o?.entries ?? []; + if (x.length > 0) + return x.length === d ? x : x.slice(0, d); + const w = sl(o), N = o?.pathToItemId, G = o?.statsByPath; + return w.map((K) => { + const lt = N instanceof Map ? N.get(K) : void 0, gt = lt ? B.get(lt) : void 0, Dt = gt?.fileDiff ?? {}; return { - item: xt ?? { - id: nt ?? J, - fileDiff: zt + item: gt ?? { + id: lt ?? K, + fileDiff: Dt }, - path: J, - status: $i(zt), - stats: j instanceof Map ? j.get(J) ?? Sl(zt) : Sl(zt) + path: K, + status: xf(Dt), + stats: G instanceof Map ? G.get(K) ?? Ql(Dt) : Ql(Dt) }; }); } - function cl(o) { - const d = o?.pathCount ?? o?.paths?.length ?? 0, b = o?.paths ?? []; - return b.length === d ? b : b.slice(0, d); + function sl(o) { + const d = o?.pathCount ?? o?.paths?.length ?? 0, x = o?.paths ?? []; + return x.length === d ? x : x.slice(0, d); } - function yl(o) { + function Ll(o) { if (o?.statsByPath instanceof Map) { - ct = o.statsByPath; + vt = o.statsByPath; return; } - ct = /* @__PURE__ */ new Map(); - const d = Sa(o); - for (const b of d) - ct.set(b.path, b.stats); + vt = /* @__PURE__ */ new Map(); + const d = rl(o); + for (const x of d) + vt.set(x.path, x.stats); } - function ol(o, d) { + function Pe(o, d) { if (o?.pathToItemId instanceof Map && o?.treePathByItemId instanceof Map) - Ve = o.pathToItemId, ul = o.treePathByItemId; + Ie = o.pathToItemId, vl = o.treePathByItemId; else if (o?.pathToItemId instanceof Map) { - Ve = o.pathToItemId, ul = /* @__PURE__ */ new Map(); - for (const [b, B] of Ve) - ul.set(B, b); + Ie = o.pathToItemId, vl = /* @__PURE__ */ new Map(); + for (const [x, w] of Ie) + vl.set(w, x); } else { - Ve = /* @__PURE__ */ new Map(), ul = /* @__PURE__ */ new Map(); - for (const b of d) { - const B = b.item?.id; - B && (Ve.set(b.path, B), ul.set(B, b.path)); + Ie = /* @__PURE__ */ new Map(), vl = /* @__PURE__ */ new Map(); + for (const x of d) { + const w = x.item?.id; + w && (Ie.set(x.path, w), vl.set(w, x.path)); } } - Rt && !Ve.has(Rt) && (Rt = ""); + Ue && !Ie.has(Ue) && (Ue = ""); } - function vl(o) { - delete Ut.dataset.treeMode; + function Ft(o) { + delete Ht.dataset.treeMode; for (const d of o) { - const b = d.item, B = b.fileDiff ?? {}, H = d.stats ?? Sl(B), j = document.createElement("button"); - j.type = "button", j.className = "file-entry", j.dataset.itemId = b.id, j.title = Te(B), j.innerHTML = ` - ${Ae(B)} + const x = d.item, w = x.fileDiff ?? {}, N = d.stats ?? Ql(w), G = document.createElement("button"); + G.type = "button", G.className = "file-entry", G.dataset.itemId = x.id, G.title = oe(w), G.innerHTML = ` + ${au(w)} - +${H.added} - -${H.deleted} + +${N.added} + -${N.deleted} `; - const J = j.querySelector(".file-name"); - J && (J.textContent = Te(B)), j.addEventListener("click", () => nn(b.id)), Ut.append(j); + const K = G.querySelector(".file-name"); + K && (K.textContent = oe(w)), G.addEventListener("click", () => Wn(x.id)), Ht.append(G); } } - function Wt() { + function Fn() { const o = window.visualViewport?.height ?? window.innerHeight; return !Number.isFinite(o) || o <= 0 ? 25 : Math.min(96, Math.max(25, Math.ceil(o / 24))); } - function Fi() { + function Pi() { return ` [data-file-tree-search-container][data-open='false'] { display: none; @@ -11766,111 +11766,111 @@ ${b}${B}`; } `; } - function $n(o) { + function dl(o) { const d = o?.diffStats; if (d && Number.isFinite(d.addedLines) && Number.isFinite(d.deletedLines) && Number.isFinite(d.fileCount)) { - Zt.textContent = `${d.fileCount}`, oe.textContent = `+${d.addedLines}`, ie.textContent = `-${d.deletedLines}`; + se.textContent = `${d.fileCount}`, ae.textContent = `+${d.addedLines}`, ne.textContent = `-${d.deletedLines}`; return; } - bl(o?.entries ?? []); + Xl(o?.entries ?? []); } - function bl(o) { - const d = o.reduce((b, B) => { - const H = B.stats ?? Sl(B.item?.fileDiff ?? {}); - return b.added += H.added, b.deleted += H.deleted, b; + function Xl(o) { + const d = o.reduce((x, w) => { + const N = w.stats ?? Ql(w.item?.fileDiff ?? {}); + return x.added += N.added, x.deleted += N.deleted, x; }, { added: 0, deleted: 0 }); - Zt.textContent = `${o.length}`, oe.textContent = `+${d.added}`, ie.textContent = `-${d.deleted}`; + se.textContent = `${o.length}`, ae.textContent = `+${d.added}`, ne.textContent = `-${d.deleted}`; } - function xl(o) { - ft.textContent = ""; + function tu(o) { + rt.textContent = ""; const d = document.createElement("option"); - d.value = "", d.textContent = X("jumpToFile"), ft.append(d), ft.dataset.initialized = "true"; - for (const b of o) { - const B = document.createElement("option"); - B.value = b.id, B.textContent = Te(b.fileDiff ?? {}), ft.append(B); + d.value = "", d.textContent = p("jumpToFile"), rt.append(d), rt.dataset.initialized = "true"; + for (const x of o) { + const w = document.createElement("option"); + w.value = x.id, w.textContent = oe(x.fileDiff ?? {}), rt.append(w); } - ft.hidden = o.length === 0, ft.onchange = () => { - ft.value && nn(ft.value); + rt.hidden = o.length === 0, rt.onchange = () => { + rt.value && Wn(rt.value); }; } - function pf(o) { + function eu(o) { if (o.length === 0) return; - ft.dataset.initialized !== "true" && xl([]); + rt.dataset.initialized !== "true" && tu([]); const d = document.createDocumentFragment(); - for (const b of o) { - const B = document.createElement("option"); - B.value = b.id, B.textContent = Te(b.fileDiff ?? {}), d.append(B); + for (const x of o) { + const w = document.createElement("option"); + w.value = x.id, w.textContent = oe(x.fileDiff ?? {}), d.append(w); } - ft.append(d), ft.hidden = !1; + rt.append(d), rt.hidden = !1; } - function Wi(o, d) { - if (ft.dataset.initialized === "true") { - for (const b of ft.options) - if (b.value === o) { - b.value = d; + function lu(o, d) { + if (rt.dataset.initialized === "true") { + for (const x of rt.options) + if (x.value === o) { + x.value = d; return; } } } - function nn(o) { - if (!U) + function Wn(o) { + if (!j) return; - const d = yf(o); - d && (U.scrollTo({ + const d = Pa(o); + d && (j.scrollTo({ type: "item", id: d, align: "start", behavior: "smooth-auto" }), Ta(d)); } - function yf(o) { - if (N.has(o)) + function Pa(o) { + if (q.has(o)) return o; - const d = et.findIndex((b) => b.id === o); + const d = m.findIndex((x) => x.id === o); if (d === -1) - return m[0]?.id ?? ""; - for (let b = d + 1; b < et.length; b += 1) - if (N.has(et[b].id)) - return et[b].id; - for (let b = d - 1; b >= 0; b -= 1) - if (N.has(et[b].id)) - return et[b].id; + return E[0]?.id ?? ""; + for (let x = d + 1; x < m.length; x += 1) + if (q.has(m[x].id)) + return m[x].id; + for (let x = d - 1; x >= 0; x -= 1) + if (q.has(m[x].id)) + return m[x].id; return ""; } function Ta(o) { - if (!(!o || fe === o)) { - fe = o, un(o); - for (const d of Ut.querySelectorAll(".file-entry")) + if (!(!o || Qt === o)) { + Qt = o, tl(o); + for (const d of Ht.querySelectorAll(".file-entry")) d.setAttribute("aria-current", d.dataset.itemId === o ? "true" : "false"); - ft.value !== o && (ft.value = o); + rt.value !== o && (rt.value = o); } } - function un(o) { + function tl(o) { if (!W) return; - const d = ul.get(o); - if (!(!d || d === Rt)) { - gl = !0; + const d = vl.get(o); + if (!(!d || d === Ue)) { + Yl = !0; try { - Rt && W.getItem(Rt)?.deselect(), W.getItem(d)?.select(), W.scrollToPath(d, { + Ue && W.getItem(Ue)?.deselect(), W.getItem(d)?.select(), W.scrollToPath(d, { focus: !1, offset: "nearest" - }), Rt = d; + }), Ue = d; } finally { - Xn(() => { - gl = !1; + il(() => { + Yl = !1; }); } } } - function Te(o) { - return o.name ?? o.newName ?? o.oldName ?? o.prevName ?? X("untitled"); + function oe(o) { + return o.name ?? o.newName ?? o.oldName ?? o.prevName ?? p("untitled"); } - function Ae(o) { + function au(o) { switch (o.type) { case "new": return "A"; @@ -11883,10 +11883,10 @@ ${b}${B}`; return "M"; } } - function $i(o) { - return Ii(o.type); + function xf(o) { + return tn(o.type); } - function Ii(o) { + function tn(o) { switch (o) { case "new": return "added"; @@ -11899,19 +11899,19 @@ ${b}${B}`; return "modified"; } } - function Sl(o) { + function Ql(o) { const d = { added: 0, deleted: 0 }; - for (const b of o.hunks ?? []) - d.added += b.additionLines ?? 0, d.deleted += b.deletionLines ?? 0; + for (const x of o.hunks ?? []) + d.added += x.additionLines ?? 0, d.deleted += x.deletionLines ?? 0; return d; } - function Pi(o, d) { + function en(o, d) { return o?.added === d.added && o?.deleted === d.deleted; } - function ve(o) { + function we(o) { return ``; } - function fn(o, d) { - o(d.name, () => Promise.resolve(In(d))); + function he(o, d) { + o(d.name, () => Promise.resolve(nu(d))); } - function _e(o, d, b, B) { - const H = Array.from(new Set([o.theme?.light, o.theme?.dark].filter(Boolean))), j = Array.from(new Set(d.flatMap((J) => { - const nt = J.fileDiff ?? {}, xt = nt.name ?? nt.newName ?? nt.oldName ?? nt.prevName ?? "", zt = nt.lang ?? b(xt) ?? "text"; - return zt ? [zt] : []; + function $n(o, d, x, w) { + const N = Array.from(new Set([o.theme?.light, o.theme?.dark].filter(Boolean))), G = Array.from(new Set(d.flatMap((K) => { + const lt = K.fileDiff ?? {}, gt = lt.name ?? lt.newName ?? lt.oldName ?? lt.prevName ?? "", Dt = lt.lang ?? x(gt) ?? "text"; + return Dt ? [Dt] : []; }))); - return B({ - themes: H, - langs: j.length > 0 ? j : ["text"] + return w({ + themes: N, + langs: G.length > 0 ? G : ["text"] }); } - function In(o) { - const d = o.palette ?? {}, b = o.foreground, B = Tg(o.background, z); + function nu(o) { + const d = o.palette ?? {}, x = o.foreground, w = Tg(o.background, z); return { name: o.name, displayName: o.ghosttyName, type: o.type, colors: { - "editor.background": B, - "editor.foreground": b, - "terminal.background": B, - "terminal.foreground": b, - "terminal.ansiBlack": d[0] ?? b, - "terminal.ansiRed": d[1] ?? b, - "terminal.ansiGreen": d[2] ?? b, - "terminal.ansiYellow": d[3] ?? b, - "terminal.ansiBlue": d[4] ?? b, - "terminal.ansiMagenta": d[5] ?? b, - "terminal.ansiCyan": d[6] ?? b, - "terminal.ansiWhite": d[7] ?? b, - "terminal.ansiBrightBlack": d[8] ?? b, - "terminal.ansiBrightRed": d[9] ?? d[1] ?? b, - "terminal.ansiBrightGreen": d[10] ?? d[2] ?? b, - "terminal.ansiBrightYellow": d[11] ?? d[3] ?? b, - "terminal.ansiBrightBlue": d[12] ?? d[4] ?? b, - "terminal.ansiBrightMagenta": d[13] ?? d[5] ?? b, - "terminal.ansiBrightCyan": d[14] ?? d[6] ?? b, - "terminal.ansiBrightWhite": d[15] ?? b, + "editor.background": w, + "editor.foreground": x, + "terminal.background": w, + "terminal.foreground": x, + "terminal.ansiBlack": d[0] ?? x, + "terminal.ansiRed": d[1] ?? x, + "terminal.ansiGreen": d[2] ?? x, + "terminal.ansiYellow": d[3] ?? x, + "terminal.ansiBlue": d[4] ?? x, + "terminal.ansiMagenta": d[5] ?? x, + "terminal.ansiCyan": d[6] ?? x, + "terminal.ansiWhite": d[7] ?? x, + "terminal.ansiBrightBlack": d[8] ?? x, + "terminal.ansiBrightRed": d[9] ?? d[1] ?? x, + "terminal.ansiBrightGreen": d[10] ?? d[2] ?? x, + "terminal.ansiBrightYellow": d[11] ?? d[3] ?? x, + "terminal.ansiBrightBlue": d[12] ?? d[4] ?? x, + "terminal.ansiBrightMagenta": d[13] ?? d[5] ?? x, + "terminal.ansiBrightCyan": d[14] ?? d[6] ?? x, + "terminal.ansiBrightWhite": d[15] ?? x, "gitDecoration.addedResourceForeground": d[10] ?? d[2] ?? "#32d74b", "gitDecoration.deletedResourceForeground": d[9] ?? d[1] ?? "#ff453a", "gitDecoration.modifiedResourceForeground": d[12] ?? d[4] ?? "#0a84ff", @@ -11983,49 +11983,49 @@ ${b}${B}`; }, tokenColors: [{ settings: { - foreground: b, - background: B + foreground: x, + background: w } }, { scope: ["comment", "punctuation.definition.comment"], settings: { - foreground: d[8] ?? b, + foreground: d[8] ?? x, fontStyle: "italic" } }, { scope: ["string", "constant.other.symbol"], settings: { - foreground: d[2] ?? b + foreground: d[2] ?? x } }, { scope: ["constant.numeric", "constant.language", "support.constant"], settings: { - foreground: d[3] ?? b + foreground: d[3] ?? x } }, { scope: ["keyword", "storage", "storage.type"], settings: { - foreground: d[5] ?? b + foreground: d[5] ?? x } }, { scope: ["entity.name.function", "support.function"], settings: { - foreground: d[4] ?? b + foreground: d[4] ?? x } }, { scope: ["entity.name.type", "entity.name.class", "support.type"], settings: { - foreground: d[6] ?? b + foreground: d[6] ?? x } }, { scope: ["variable", "meta.definition.variable"], settings: { - foreground: b + foreground: x } }, { scope: ["invalid", "message.error"], settings: { - foreground: d[9] ?? d[1] ?? b + foreground: d[9] ?? d[1] ?? x } }] }; @@ -12033,266 +12033,271 @@ ${b}${B}`; } const _g = ["82%", "64%", "76%", "58%", "70%", "46%"], Dg = ["58%", "88%", "72%", "94%", "64%", "82%", "52%", "78%"]; function Og() { - const S = ka.c(1); + const S = Ka.c(1); let f; - return S[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ K.jsx("div", { className: "diff-loading-placeholder", "aria-hidden": "true", children: _g.map(Cg) }), S[0] = f) : f = S[0], f; + return S[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Z.jsx("div", { className: "diff-loading-placeholder", "aria-hidden": "true", children: _g.map(Cg) }), S[0] = f) : f = S[0], f; } function Cg(S, f) { - return /* @__PURE__ */ K.jsxs("div", { className: "grid h-6 grid-cols-[16px_minmax(0,1fr)_44px] items-center gap-2 rounded-[5px] px-[7px]", children: [ - /* @__PURE__ */ K.jsx("span", { className: "size-4 rounded-[5px] border border-[color-mix(in_lab,var(--cmux-diff-fg)_18%,transparent)]" }), - /* @__PURE__ */ K.jsx("span", { className: "h-[11px] rounded bg-[var(--cmux-diff-muted-bg)]", style: { + return /* @__PURE__ */ Z.jsxs("div", { className: "grid h-6 grid-cols-[16px_minmax(0,1fr)_44px] items-center gap-2 rounded-[5px] px-[7px]", children: [ + /* @__PURE__ */ Z.jsx("span", { className: "size-4 rounded-[5px] border border-[color-mix(in_lab,var(--cmux-diff-fg)_18%,transparent)]" }), + /* @__PURE__ */ Z.jsx("span", { className: "h-[11px] rounded bg-[var(--cmux-diff-muted-bg)]", style: { width: S } }), - /* @__PURE__ */ K.jsx("span", { className: "h-[11px] justify-self-end rounded bg-[var(--cmux-diff-muted-bg)] opacity-70", style: { + /* @__PURE__ */ Z.jsx("span", { className: "h-[11px] justify-self-end rounded bg-[var(--cmux-diff-muted-bg)] opacity-70", style: { width: f % 2 === 0 ? "34px" : "24px" } }) ] }, `${S}-${f}`); } function Ug() { - const S = ka.c(2); + const S = Ka.c(2); let f; - S[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ K.jsxs("div", { className: "mb-3 grid h-9 grid-cols-[72px_minmax(0,1fr)_96px] items-center gap-3 rounded-md bg-[color-mix(in_lab,var(--cmux-diff-fg)_5%,transparent)] px-3", children: [ - /* @__PURE__ */ K.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)]" }), - /* @__PURE__ */ K.jsx("span", { className: "h-3 w-2/5 rounded bg-[var(--cmux-diff-muted-bg)]" }), - /* @__PURE__ */ K.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)] opacity-70" }) + S[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Z.jsxs("div", { className: "mb-3 grid h-9 grid-cols-[72px_minmax(0,1fr)_96px] items-center gap-3 rounded-md bg-[color-mix(in_lab,var(--cmux-diff-fg)_5%,transparent)] px-3", children: [ + /* @__PURE__ */ Z.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)]" }), + /* @__PURE__ */ Z.jsx("span", { className: "h-3 w-2/5 rounded bg-[var(--cmux-diff-muted-bg)]" }), + /* @__PURE__ */ Z.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)] opacity-70" }) ] }), S[0] = f) : f = S[0]; - let D; - return S[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ K.jsxs("div", { className: "diff-loading-placeholder mx-3.5 mt-3.5 border-t border-[var(--cmux-diff-border)] pt-3", "aria-hidden": "true", children: [ + let O; + return S[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Z.jsxs("div", { className: "diff-loading-placeholder mx-3.5 mt-3.5 border-t border-[var(--cmux-diff-border)] pt-3", "aria-hidden": "true", children: [ f, - /* @__PURE__ */ K.jsx("div", { className: "space-y-[13px] px-3 py-1", children: Dg.map(Rg) }) - ] }), S[1] = D) : D = S[1], D; + /* @__PURE__ */ Z.jsx("div", { className: "space-y-[13px] px-3 py-1", children: Dg.map(Rg) }) + ] }), S[1] = O) : O = S[1], O; } function Rg(S, f) { - return /* @__PURE__ */ K.jsxs("div", { className: "grid grid-cols-[42px_minmax(0,1fr)] items-center gap-4", children: [ - /* @__PURE__ */ K.jsx("span", { className: "h-px bg-[color-mix(in_lab,var(--cmux-diff-fg)_10%,transparent)]" }), - /* @__PURE__ */ K.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)]", style: { + return /* @__PURE__ */ Z.jsxs("div", { className: "grid grid-cols-[42px_minmax(0,1fr)] items-center gap-4", children: [ + /* @__PURE__ */ Z.jsx("span", { className: "h-px bg-[color-mix(in_lab,var(--cmux-diff-fg)_10%,transparent)]" }), + /* @__PURE__ */ Z.jsx("span", { className: "h-3 rounded bg-[var(--cmux-diff-muted-bg)]", style: { width: S } }) ] }, `${S}-${f}`); } -function Bg(S) { - const f = ka.c(8), { - config: D, +function wg(S) { + const f = Ka.c(9), { + config: O, label: s } = S; - let G; - f[0] !== D.payload?.statusMessage || f[1] !== s ? (G = D.payload?.statusMessage ?? s("loadingDiff"), f[0] = D.payload?.statusMessage, f[1] = s, f[2] = G) : G = f[2]; - let k; - f[3] !== G ? (k = /* @__PURE__ */ K.jsx("div", { id: "status", children: G }), f[3] = G, f[4] = k) : k = f[4]; + let X; + f[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ Z.jsx("span", { id: "status-icon", "aria-hidden": "true" }), f[0] = X) : X = f[0]; + let J; + f[1] !== O.payload?.statusMessage || f[2] !== s ? (J = O.payload?.statusMessage ?? s("loadingDiff"), f[1] = O.payload?.statusMessage, f[2] = s, f[3] = J) : J = f[3]; let Q; - f[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ K.jsx(Ug, {}), f[5] = Q) : Q = f[5]; - let lt; - return f[6] !== k ? (lt = /* @__PURE__ */ K.jsxs("div", { id: "loading-layer", "aria-live": "polite", children: [ - k, - Q - ] }), f[6] = k, f[7] = lt) : lt = f[7], lt; + f[4] !== J ? (Q = /* @__PURE__ */ Z.jsxs("div", { id: "status", children: [ + X, + /* @__PURE__ */ Z.jsx("span", { id: "status-text", children: J }) + ] }), f[4] = J, f[5] = Q) : Q = f[5]; + let et; + f[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (et = /* @__PURE__ */ Z.jsx(Ug, {}), f[6] = et) : et = f[6]; + let U; + return f[7] !== Q ? (U = /* @__PURE__ */ Z.jsxs("div", { id: "loading-layer", "aria-live": "polite", children: [ + Q, + et + ] }), f[7] = Q, f[8] = U) : U = f[8], U; } -function Ng(S) { - const f = ka.c(17), { - label: D +function Bg(S) { + const f = Ka.c(17), { + label: O } = S; let s; - f[0] !== D ? (s = D("diffTarget"), f[0] = D, f[1] = s) : s = f[1]; - let G; - f[2] !== s ? (G = /* @__PURE__ */ K.jsx("select", { id: "source-select", "aria-label": s, hidden: !0 }), f[2] = s, f[3] = G) : G = f[3]; - let k; - f[4] !== D ? (k = D("repoPath"), f[4] = D, f[5] = k) : k = f[5]; + f[0] !== O ? (s = O("diffTarget"), f[0] = O, f[1] = s) : s = f[1]; + let X; + f[2] !== s ? (X = /* @__PURE__ */ Z.jsx("select", { id: "source-select", "aria-label": s, hidden: !0 }), f[2] = s, f[3] = X) : X = f[3]; + let J; + f[4] !== O ? (J = O("repoPath"), f[4] = O, f[5] = J) : J = f[5]; let Q; - f[6] !== k ? (Q = /* @__PURE__ */ K.jsx("select", { id: "repo-select", "aria-label": k, hidden: !0 }), f[6] = k, f[7] = Q) : Q = f[7]; - let lt; - f[8] !== D ? (lt = D("branchBase"), f[8] = D, f[9] = lt) : lt = f[9]; - let C; - f[10] !== lt ? (C = /* @__PURE__ */ K.jsx("select", { id: "base-select", "aria-label": lt, hidden: !0 }), f[10] = lt, f[11] = C) : C = f[11]; + f[6] !== J ? (Q = /* @__PURE__ */ Z.jsx("select", { id: "repo-select", "aria-label": J, hidden: !0 }), f[6] = J, f[7] = Q) : Q = f[7]; + let et; + f[8] !== O ? (et = O("branchBase"), f[8] = O, f[9] = et) : et = f[9]; + let U; + f[10] !== et ? (U = /* @__PURE__ */ Z.jsx("select", { id: "base-select", "aria-label": et, hidden: !0 }), f[10] = et, f[11] = U) : U = f[11]; let z; - f[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ K.jsx("span", { id: "source-detail" }), f[12] = z) : z = f[12]; + f[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ Z.jsx("span", { id: "source-detail" }), f[12] = z) : z = f[12]; let L; - return f[13] !== G || f[14] !== Q || f[15] !== C ? (L = /* @__PURE__ */ K.jsxs("div", { className: "toolbar-left flex min-w-0 items-center gap-1.5", children: [ - G, + return f[13] !== X || f[14] !== Q || f[15] !== U ? (L = /* @__PURE__ */ Z.jsxs("div", { className: "toolbar-left flex min-w-0 items-center gap-1.5", children: [ + X, Q, - C, + U, z - ] }), f[13] = G, f[14] = Q, f[15] = C, f[16] = L) : L = f[16], L; + ] }), f[13] = X, f[14] = Q, f[15] = U, f[16] = L) : L = f[16], L; } -function wg(S) { - const f = ka.c(50), { - config: D, +function Ng(S) { + const f = Ka.c(50), { + config: O, label: s } = S; - let G; - f[0] !== D || f[1] !== s ? (G = /* @__PURE__ */ K.jsx(Ng, { config: D, label: s }), f[0] = D, f[1] = s, f[2] = G) : G = f[2]; - let k; - f[3] !== s ? (k = s("jumpToFile"), f[3] = s, f[4] = k) : k = f[4]; + let X; + f[0] !== O || f[1] !== s ? (X = /* @__PURE__ */ Z.jsx(Bg, { config: O, label: s }), f[0] = O, f[1] = s, f[2] = X) : X = f[2]; + let J; + f[3] !== s ? (J = s("jumpToFile"), f[3] = s, f[4] = J) : J = f[4]; let Q; - f[5] !== k ? (Q = /* @__PURE__ */ K.jsx("div", { className: "toolbar-middle flex min-w-0 flex-1 items-center justify-center gap-1.5", children: /* @__PURE__ */ K.jsx("select", { id: "jump-select", "aria-label": k, hidden: !0 }) }), f[5] = k, f[6] = Q) : Q = f[6]; - const lt = D.payload?.externalURL ?? "#"; - let C; - f[7] !== s ? (C = s("openSourceURL"), f[7] = s, f[8] = C) : C = f[8]; + f[5] !== J ? (Q = /* @__PURE__ */ Z.jsx("div", { className: "toolbar-middle flex min-w-0 flex-1 items-center justify-center gap-1.5", children: /* @__PURE__ */ Z.jsx("select", { id: "jump-select", "aria-label": J, hidden: !0 }) }), f[5] = J, f[6] = Q) : Q = f[6]; + const et = O.payload?.externalURL ?? "#"; + let U; + f[7] !== s ? (U = s("openSourceURL"), f[7] = s, f[8] = U) : U = f[8]; let z; f[9] !== s ? (z = s("openSourceURL"), f[9] = s, f[10] = z) : z = f[10]; let L; - f[11] !== lt || f[12] !== C || f[13] !== z ? (L = /* @__PURE__ */ K.jsx("a", { id: "external-link", className: "toolbar-icon", href: lt, target: "_blank", rel: "noreferrer", title: C, "aria-label": z, hidden: !0 }), f[11] = lt, f[12] = C, f[13] = z, f[14] = L) : L = f[14]; - let w; - f[15] !== s ? (w = s("hideFiles"), f[15] = s, f[16] = w) : w = f[16]; - let tt; - f[17] !== s ? (tt = s("hideFiles"), f[17] = s, f[18] = tt) : tt = f[18]; - let rt; - f[19] !== w || f[20] !== tt ? (rt = /* @__PURE__ */ K.jsx("button", { id: "files-toggle", className: "toolbar-icon", type: "button", title: w, "aria-label": tt, "aria-pressed": "true" }), f[19] = w, f[20] = tt, f[21] = rt) : rt = f[21]; - let dt; - f[22] !== s ? (dt = s("switchToUnifiedDiff"), f[22] = s, f[23] = dt) : dt = f[23]; - let yt; - f[24] !== s ? (yt = s("switchToUnifiedDiff"), f[24] = s, f[25] = yt) : yt = f[25]; - let Gt; - f[26] !== dt || f[27] !== yt ? (Gt = /* @__PURE__ */ K.jsx("button", { id: "layout-toggle", className: "toolbar-icon", type: "button", title: dt, "aria-label": yt }), f[26] = dt, f[27] = yt, f[28] = Gt) : Gt = f[28]; - let ft; - f[29] !== s ? (ft = s("options"), f[29] = s, f[30] = ft) : ft = f[30]; - let Yt; - f[31] !== s ? (Yt = s("options"), f[31] = s, f[32] = Yt) : Yt = f[32]; + f[11] !== et || f[12] !== U || f[13] !== z ? (L = /* @__PURE__ */ Z.jsx("a", { id: "external-link", className: "toolbar-icon", href: et, target: "_blank", rel: "noreferrer", title: U, "aria-label": z, hidden: !0 }), f[11] = et, f[12] = U, f[13] = z, f[14] = L) : L = f[14]; + let H; + f[15] !== s ? (H = s("hideFiles"), f[15] = s, f[16] = H) : H = f[16]; + let P; + f[17] !== s ? (P = s("hideFiles"), f[17] = s, f[18] = P) : P = f[18]; let mt; - f[33] !== ft || f[34] !== Yt ? (mt = /* @__PURE__ */ K.jsx("button", { id: "options-button", className: "toolbar-icon", type: "button", title: ft, "aria-label": Yt, "aria-expanded": "false", "aria-haspopup": "menu" }), f[33] = ft, f[34] = Yt, f[35] = mt) : mt = f[35]; - let Dt; - f[36] !== rt || f[37] !== Gt || f[38] !== mt || f[39] !== L ? (Dt = /* @__PURE__ */ K.jsxs("div", { className: "toolbar-actions flex shrink-0 items-center gap-1.5", children: [ - L, - rt, - Gt, - mt - ] }), f[36] = rt, f[37] = Gt, f[38] = mt, f[39] = L, f[40] = Dt) : Dt = f[40]; - let Ct; - f[41] !== s ? (Ct = s("options"), f[41] = s, f[42] = Ct) : Ct = f[42]; + f[19] !== H || f[20] !== P ? (mt = /* @__PURE__ */ Z.jsx("button", { id: "files-toggle", className: "toolbar-icon", type: "button", title: H, "aria-label": P, "aria-pressed": "true" }), f[19] = H, f[20] = P, f[21] = mt) : mt = f[21]; + let nt; + f[22] !== s ? (nt = s("switchToUnifiedDiff"), f[22] = s, f[23] = nt) : nt = f[23]; let ht; - f[43] !== Ct ? (ht = /* @__PURE__ */ K.jsx("div", { id: "options-menu", role: "menu", "aria-label": Ct, hidden: !0 }), f[43] = Ct, f[44] = ht) : ht = f[44]; - let $; - return f[45] !== G || f[46] !== Dt || f[47] !== ht || f[48] !== Q ? ($ = /* @__PURE__ */ K.jsxs("header", { id: "toolbar", children: [ - G, + f[24] !== s ? (ht = s("switchToUnifiedDiff"), f[24] = s, f[25] = ht) : ht = f[25]; + let qt; + f[26] !== nt || f[27] !== ht ? (qt = /* @__PURE__ */ Z.jsx("button", { id: "layout-toggle", className: "toolbar-icon", type: "button", title: nt, "aria-label": ht }), f[26] = nt, f[27] = ht, f[28] = qt) : qt = f[28]; + let Ct; + f[29] !== s ? (Ct = s("options"), f[29] = s, f[30] = Ct) : Ct = f[30]; + let rt; + f[31] !== s ? (rt = s("options"), f[31] = s, f[32] = rt) : rt = f[32]; + let xt; + f[33] !== Ct || f[34] !== rt ? (xt = /* @__PURE__ */ Z.jsx("button", { id: "options-button", className: "toolbar-icon", type: "button", title: Ct, "aria-label": rt, "aria-expanded": "false", "aria-haspopup": "menu" }), f[33] = Ct, f[34] = rt, f[35] = xt) : xt = f[35]; + let At; + f[36] !== mt || f[37] !== qt || f[38] !== xt || f[39] !== L ? (At = /* @__PURE__ */ Z.jsxs("div", { className: "toolbar-actions flex shrink-0 items-center gap-1.5", children: [ + L, + mt, + qt, + xt + ] }), f[36] = mt, f[37] = qt, f[38] = xt, f[39] = L, f[40] = At) : At = f[40]; + let _t; + f[41] !== s ? (_t = s("options"), f[41] = s, f[42] = _t) : _t = f[42]; + let St; + f[43] !== _t ? (St = /* @__PURE__ */ Z.jsx("div", { id: "options-menu", role: "menu", "aria-label": _t, hidden: !0 }), f[43] = _t, f[44] = St) : St = f[44]; + let k; + return f[45] !== X || f[46] !== At || f[47] !== St || f[48] !== Q ? (k = /* @__PURE__ */ Z.jsxs("header", { id: "toolbar", children: [ + X, Q, - Dt, - ht - ] }), f[45] = G, f[46] = Dt, f[47] = ht, f[48] = Q, f[49] = $) : $ = f[49], $; + At, + St + ] }), f[45] = X, f[46] = At, f[47] = St, f[48] = Q, f[49] = k) : k = f[49], k; } function Hg(S) { - const f = ka.c(62), { - label: D + const f = Ka.c(62), { + label: O } = S; let s; - f[0] !== D ? (s = D("changedFiles"), f[0] = D, f[1] = s) : s = f[1]; - let G; - f[2] !== D ? (G = D("files"), f[2] = D, f[3] = G) : G = f[3]; - let k; - f[4] !== G ? (k = /* @__PURE__ */ K.jsx("span", { children: G }), f[4] = G, f[5] = k) : k = f[5]; + f[0] !== O ? (s = O("changedFiles"), f[0] = O, f[1] = s) : s = f[1]; + let X; + f[2] !== O ? (X = O("files"), f[2] = O, f[3] = X) : X = f[3]; + let J; + f[4] !== X ? (J = /* @__PURE__ */ Z.jsx("span", { children: X }), f[4] = X, f[5] = J) : J = f[5]; let Q; - f[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ K.jsx("span", { id: "files-count" }), f[6] = Q) : Q = f[6]; - let lt; - f[7] !== k ? (lt = /* @__PURE__ */ K.jsxs("span", { id: "files-title", children: [ - k, + f[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ Z.jsx("span", { id: "files-count" }), f[6] = Q) : Q = f[6]; + let et; + f[7] !== J ? (et = /* @__PURE__ */ Z.jsxs("span", { id: "files-title", children: [ + J, Q - ] }), f[7] = k, f[8] = lt) : lt = f[8]; - let C; - f[9] !== D ? (C = D("showFileSearch"), f[9] = D, f[10] = C) : C = f[10]; + ] }), f[7] = J, f[8] = et) : et = f[8]; + let U; + f[9] !== O ? (U = O("showFileSearch"), f[9] = O, f[10] = U) : U = f[10]; let z; - f[11] !== D ? (z = D("showFileSearch"), f[11] = D, f[12] = z) : z = f[12]; + f[11] !== O ? (z = O("showFileSearch"), f[11] = O, f[12] = z) : z = f[12]; let L; - f[13] !== C || f[14] !== z ? (L = /* @__PURE__ */ K.jsx("button", { id: "file-search-toggle", type: "button", title: C, "aria-label": z, "aria-pressed": "false" }), f[13] = C, f[14] = z, f[15] = L) : L = f[15]; - let w; - f[16] !== D ? (w = D("hideFiles"), f[16] = D, f[17] = w) : w = f[17]; - let tt; - f[18] !== D ? (tt = D("hideFiles"), f[18] = D, f[19] = tt) : tt = f[19]; - let rt; - f[20] !== tt || f[21] !== w ? (rt = /* @__PURE__ */ K.jsx("button", { id: "file-collapse-toggle", type: "button", title: w, "aria-label": tt }), f[20] = tt, f[21] = w, f[22] = rt) : rt = f[22]; - let dt; - f[23] !== rt || f[24] !== L ? (dt = /* @__PURE__ */ K.jsxs("span", { id: "files-header-actions", children: [ - L, - rt - ] }), f[23] = rt, f[24] = L, f[25] = dt) : dt = f[25]; - let yt; - f[26] !== dt || f[27] !== lt ? (yt = /* @__PURE__ */ K.jsxs("div", { id: "files-header", children: [ - lt, - dt - ] }), f[26] = dt, f[27] = lt, f[28] = yt) : yt = f[28]; - let Gt; - f[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Gt = /* @__PURE__ */ K.jsx("div", { id: "file-list", children: /* @__PURE__ */ K.jsx(Og, {}) }), f[29] = Gt) : Gt = f[29]; - let ft; - f[30] !== D ? (ft = D("diffStats"), f[30] = D, f[31] = ft) : ft = f[31]; - let Yt; - f[32] !== D ? (Yt = D("files"), f[32] = D, f[33] = Yt) : Yt = f[33]; + f[13] !== U || f[14] !== z ? (L = /* @__PURE__ */ Z.jsx("button", { id: "file-search-toggle", type: "button", title: U, "aria-label": z, "aria-pressed": "false" }), f[13] = U, f[14] = z, f[15] = L) : L = f[15]; + let H; + f[16] !== O ? (H = O("hideFiles"), f[16] = O, f[17] = H) : H = f[17]; + let P; + f[18] !== O ? (P = O("hideFiles"), f[18] = O, f[19] = P) : P = f[19]; let mt; - f[34] !== Yt ? (mt = /* @__PURE__ */ K.jsx("span", { children: Yt }), f[34] = Yt, f[35] = mt) : mt = f[35]; - let Dt; - f[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Dt = /* @__PURE__ */ K.jsx("strong", { id: "stats-files", children: "0" }), f[36] = Dt) : Dt = f[36]; - let Ct; - f[37] !== mt ? (Ct = /* @__PURE__ */ K.jsxs("div", { className: "stats-row", children: [ - mt, - Dt - ] }), f[37] = mt, f[38] = Ct) : Ct = f[38]; + f[20] !== P || f[21] !== H ? (mt = /* @__PURE__ */ Z.jsx("button", { id: "file-collapse-toggle", type: "button", title: H, "aria-label": P }), f[20] = P, f[21] = H, f[22] = mt) : mt = f[22]; + let nt; + f[23] !== mt || f[24] !== L ? (nt = /* @__PURE__ */ Z.jsxs("span", { id: "files-header-actions", children: [ + L, + mt + ] }), f[23] = mt, f[24] = L, f[25] = nt) : nt = f[25]; let ht; - f[39] !== D ? (ht = D("additions"), f[39] = D, f[40] = ht) : ht = f[40]; - let $; - f[41] !== ht ? ($ = /* @__PURE__ */ K.jsx("span", { children: ht }), f[41] = ht, f[42] = $) : $ = f[42]; - let Ut; - f[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ut = /* @__PURE__ */ K.jsx("strong", { id: "stats-added", className: "stat-add", children: "+0" }), f[43] = Ut) : Ut = f[43]; - let Pt; - f[44] !== $ ? (Pt = /* @__PURE__ */ K.jsxs("div", { className: "stats-row", children: [ - $, - Ut - ] }), f[44] = $, f[45] = Pt) : Pt = f[45]; - let Ft; - f[46] !== D ? (Ft = D("deletions"), f[46] = D, f[47] = Ft) : Ft = f[47]; - let Vt; - f[48] !== Ft ? (Vt = /* @__PURE__ */ K.jsx("span", { children: Ft }), f[48] = Ft, f[49] = Vt) : Vt = f[49]; + f[26] !== nt || f[27] !== et ? (ht = /* @__PURE__ */ Z.jsxs("div", { id: "files-header", children: [ + et, + nt + ] }), f[26] = nt, f[27] = et, f[28] = ht) : ht = f[28]; + let qt; + f[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qt = /* @__PURE__ */ Z.jsx("div", { id: "file-list", children: /* @__PURE__ */ Z.jsx(Og, {}) }), f[29] = qt) : qt = f[29]; + let Ct; + f[30] !== O ? (Ct = O("diffStats"), f[30] = O, f[31] = Ct) : Ct = f[31]; + let rt; + f[32] !== O ? (rt = O("files"), f[32] = O, f[33] = rt) : rt = f[33]; + let xt; + f[34] !== rt ? (xt = /* @__PURE__ */ Z.jsx("span", { children: rt }), f[34] = rt, f[35] = xt) : xt = f[35]; + let At; + f[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (At = /* @__PURE__ */ Z.jsx("strong", { id: "stats-files", children: "0" }), f[36] = At) : At = f[36]; + let _t; + f[37] !== xt ? (_t = /* @__PURE__ */ Z.jsxs("div", { className: "stats-row", children: [ + xt, + At + ] }), f[37] = xt, f[38] = _t) : _t = f[38]; + let St; + f[39] !== O ? (St = O("additions"), f[39] = O, f[40] = St) : St = f[40]; + let k; + f[41] !== St ? (k = /* @__PURE__ */ Z.jsx("span", { children: St }), f[41] = St, f[42] = k) : k = f[42]; let Zt; - f[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Zt = /* @__PURE__ */ K.jsx("strong", { id: "stats-deleted", className: "stat-del", children: "-0" }), f[50] = Zt) : Zt = f[50]; - let oe; - f[51] !== Vt ? (oe = /* @__PURE__ */ K.jsxs("div", { className: "stats-row", children: [ - Vt, + f[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Zt = /* @__PURE__ */ Z.jsx("strong", { id: "stats-added", className: "stat-add", children: "+0" }), f[43] = Zt) : Zt = f[43]; + let Ht; + f[44] !== k ? (Ht = /* @__PURE__ */ Z.jsxs("div", { className: "stats-row", children: [ + k, Zt - ] }), f[51] = Vt, f[52] = oe) : oe = f[52]; - let ie; - f[53] !== ft || f[54] !== Ct || f[55] !== Pt || f[56] !== oe ? (ie = /* @__PURE__ */ K.jsxs("div", { id: "files-footer", "aria-label": ft, children: [ - Ct, - Pt, - oe - ] }), f[53] = ft, f[54] = Ct, f[55] = Pt, f[56] = oe, f[57] = ie) : ie = f[57]; - let X; - return f[58] !== s || f[59] !== yt || f[60] !== ie ? (X = /* @__PURE__ */ K.jsxs("aside", { id: "files-sidebar", "aria-label": s, children: [ - yt, + ] }), f[44] = k, f[45] = Ht) : Ht = f[45]; + let be; + f[46] !== O ? (be = O("deletions"), f[46] = O, f[47] = be) : be = f[47]; + let Gt; + f[48] !== be ? (Gt = /* @__PURE__ */ Z.jsx("span", { children: be }), f[48] = be, f[49] = Gt) : Gt = f[49]; + let Yt; + f[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Yt = /* @__PURE__ */ Z.jsx("strong", { id: "stats-deleted", className: "stat-del", children: "-0" }), f[50] = Yt) : Yt = f[50]; + let se; + f[51] !== Gt ? (se = /* @__PURE__ */ Z.jsxs("div", { className: "stats-row", children: [ Gt, - ie - ] }), f[58] = s, f[59] = yt, f[60] = ie, f[61] = X) : X = f[61], X; + Yt + ] }), f[51] = Gt, f[52] = se) : se = f[52]; + let ae; + f[53] !== Ct || f[54] !== _t || f[55] !== Ht || f[56] !== se ? (ae = /* @__PURE__ */ Z.jsxs("div", { id: "files-footer", "aria-label": Ct, children: [ + _t, + Ht, + se + ] }), f[53] = Ct, f[54] = _t, f[55] = Ht, f[56] = se, f[57] = ae) : ae = f[57]; + let ne; + return f[58] !== s || f[59] !== ht || f[60] !== ae ? (ne = /* @__PURE__ */ Z.jsxs("aside", { id: "files-sidebar", "aria-label": s, children: [ + ht, + qt, + ae + ] }), f[58] = s, f[59] = ht, f[60] = ae, f[61] = ne) : ne = f[61], ne; } function jg(S) { - const f = ka.c(25), { - config: D - } = S, s = vg.useRef(!1), G = D.payload?.labels; - let k; - f[0] !== G ? (k = rm(G, { - assertMissing: om() - }), f[0] = G, f[1] = k) : k = f[1]; - const Q = k; - let lt; - f[2] !== D ? (lt = (Gt) => { - !Gt || s.current || (s.current = !0, Ag(D)); - }, f[2] = D, f[3] = lt) : lt = f[3]; - const C = lt; + const f = Ka.c(25), { + config: O + } = S, s = vg.useRef(!1), X = O.payload?.labels; + let J; + f[0] !== X ? (J = sm(X, { + assertMissing: rm() + }), f[0] = X, f[1] = J) : J = f[1]; + const Q = J; + let et; + f[2] !== O ? (et = (qt) => { + !qt || s.current || (s.current = !0, Ag(O)); + }, f[2] = O, f[3] = et) : et = f[3]; + const U = et; let z; - f[4] !== D || f[5] !== Q ? (z = /* @__PURE__ */ K.jsx(wg, { config: D, label: Q }), f[4] = D, f[5] = Q, f[6] = z) : z = f[6]; + f[4] !== O || f[5] !== Q ? (z = /* @__PURE__ */ Z.jsx(Ng, { config: O, label: Q }), f[4] = O, f[5] = Q, f[6] = z) : z = f[6]; let L; - f[7] !== D || f[8] !== Q ? (L = /* @__PURE__ */ K.jsx(Hg, { config: D, label: Q }), f[7] = D, f[8] = Q, f[9] = L) : L = f[9]; - let w; - f[10] !== Q ? (w = Q("diffViewer"), f[10] = Q, f[11] = w) : w = f[11]; - let tt; - f[12] !== D || f[13] !== Q ? (tt = /* @__PURE__ */ K.jsx(Bg, { config: D, label: Q }), f[12] = D, f[13] = Q, f[14] = tt) : tt = f[14]; - let rt; - f[15] !== w || f[16] !== tt ? (rt = /* @__PURE__ */ K.jsx("main", { id: "viewer", "aria-label": w, children: tt }), f[15] = w, f[16] = tt, f[17] = rt) : rt = f[17]; - let dt; - f[18] !== L || f[19] !== rt ? (dt = /* @__PURE__ */ K.jsxs("section", { id: "content", children: [ + f[7] !== O || f[8] !== Q ? (L = /* @__PURE__ */ Z.jsx(Hg, { config: O, label: Q }), f[7] = O, f[8] = Q, f[9] = L) : L = f[9]; + let H; + f[10] !== Q ? (H = Q("diffViewer"), f[10] = Q, f[11] = H) : H = f[11]; + let P; + f[12] !== O || f[13] !== Q ? (P = /* @__PURE__ */ Z.jsx(wg, { config: O, label: Q }), f[12] = O, f[13] = Q, f[14] = P) : P = f[14]; + let mt; + f[15] !== H || f[16] !== P ? (mt = /* @__PURE__ */ Z.jsx("main", { id: "viewer", "aria-label": H, children: P }), f[15] = H, f[16] = P, f[17] = mt) : mt = f[17]; + let nt; + f[18] !== L || f[19] !== mt ? (nt = /* @__PURE__ */ Z.jsxs("section", { id: "content", children: [ L, - rt - ] }), f[18] = L, f[19] = rt, f[20] = dt) : dt = f[20]; - let yt; - return f[21] !== C || f[22] !== z || f[23] !== dt ? (yt = /* @__PURE__ */ K.jsxs("div", { id: "app", ref: C, children: [ + mt + ] }), f[18] = L, f[19] = mt, f[20] = nt) : nt = f[20]; + let ht; + return f[21] !== U || f[22] !== z || f[23] !== nt ? (ht = /* @__PURE__ */ Z.jsxs("div", { id: "app", ref: U, children: [ z, - dt - ] }), f[21] = C, f[22] = z, f[23] = dt, f[24] = yt) : yt = f[24], yt; + nt + ] }), f[21] = U, f[22] = z, f[23] = nt, f[24] = ht) : ht = f[24], ht; } -const qg = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.mx-3\\.5{margin-inline:calc(var(--spacing) * 3.5)}.mt-3\\.5{margin-top:calc(var(--spacing) * 3.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-3{height:calc(var(--spacing) * 3)}.h-6{height:calc(var(--spacing) * 6)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[11px\\]{height:11px}.h-px{height:1px}.w-2\\/5{width:40%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grid-cols-\\[16px_minmax\\(0\\,1fr\\)_44px\\]{grid-template-columns:16px minmax(0,1fr) 44px}.grid-cols-\\[42px_minmax\\(0\\,1fr\\)\\]{grid-template-columns:42px minmax(0,1fr)}.grid-cols-\\[72px_minmax\\(0\\,1fr\\)_96px\\]{grid-template-columns:72px minmax(0,1fr) 96px}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-\\[13px\\]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(13px * var(--tw-space-y-reverse));margin-block-end:calc(13px * calc(1 - var(--tw-space-y-reverse)))}.justify-self-end{justify-self:flex-end}.rounded{border-radius:.25rem}.rounded-\\[5px\\]{border-radius:5px}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_18\\%\\,transparent\\)\\]{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.border-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_18\\%\\,transparent\\)\\]{border-color:color-mix(in lab,var(--cmux-diff-fg) 18%,transparent)}}.border-\\[var\\(--cmux-diff-border\\)\\]{border-color:var(--cmux-diff-border)}.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_5\\%\\,transparent\\)\\]{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_5\\%\\,transparent\\)\\]{background-color:color-mix(in lab,var(--cmux-diff-fg) 5%,transparent)}}.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_10\\%\\,transparent\\)\\]{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_10\\%\\,transparent\\)\\]{background-color:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}.bg-\\[var\\(--cmux-diff-muted-bg\\)\\]{background-color:var(--cmux-diff-muted-bg)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-\\[7px\\]{padding-inline:7px}.py-1{padding-block:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.italic{font-style:italic}.opacity-70{opacity:.7}}:root{color-scheme:light dark;--cmux-diff-bg-light:#fff;--cmux-diff-bg-dark:#000;--cmux-diff-fg-light:#000;--cmux-diff-fg-dark:#fff;--cmux-diff-selection-bg-light:#abd8ff;--cmux-diff-selection-bg-dark:#3f638b;--cmux-diff-ui-font-family:system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;--cmux-diff-ui-font-size:12px;--cmux-diff-ui-line-height:16px;--cmux-diff-code-font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;--cmux-diff-font-size:10px;--cmux-diff-line-height:20px;--cmux-diff-bg:var(--cmux-diff-bg-light);--cmux-diff-fg:var(--cmux-diff-fg-light);--cmux-diff-border:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-border:color-mix(in lab, var(--cmux-diff-fg) 12%, transparent)}}:root{--cmux-diff-sidebar-bg:transparent;--cmux-diff-muted-bg:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-muted-bg:color-mix(in lab, var(--cmux-diff-fg) 8%, transparent)}}:root{--cmux-diff-hover-bg:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-hover-bg:color-mix(in lab, var(--cmux-diff-fg) 10%, transparent)}}:root{--cmux-diff-accent:light-dark(#0a84ff,#7ab7ff);color:var(--cmux-diff-fg);background:0 0}@media(prefers-color-scheme:dark){:root{--cmux-diff-bg:var(--cmux-diff-bg-dark);--cmux-diff-fg:var(--cmux-diff-fg-dark)}}*{box-sizing:border-box}html,body{background:0 0;height:100%;overflow:hidden}body{height:100vh;min-height:0;color:var(--cmux-diff-fg);font-family:var(--cmux-diff-ui-font-family);font-size:var(--cmux-diff-ui-font-size);line-height:var(--cmux-diff-ui-line-height);background:0 0;flex-direction:column;margin:0;display:flex;overflow:hidden}#root{background:0 0;height:100%;min-height:0}#app{overscroll-behavior:contain;contain:strict;height:100vh;min-height:0;color:inherit;background:0 0;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}#toolbar{border-bottom:1px solid var(--cmux-diff-fg);flex:none;align-items:center;gap:7px;min-height:32px;padding:3px 8px;display:flex;position:relative}@supports (color:color-mix(in lab,red,red)){#toolbar{border-bottom:1px solid color-mix(in lab,var(--cmux-diff-fg) 14%,transparent)}}#toolbar{color:var(--cmux-diff-fg);background:0 0}@supports (color:color-mix(in lab,red,red)){#toolbar{color:color-mix(in lab,var(--cmux-diff-fg) 76%,var(--cmux-diff-bg))}}#toolbar{z-index:50}.toolbar-left,.toolbar-middle,.toolbar-actions{align-items:center;gap:6px;min-width:0;display:flex}.toolbar-left{flex:0 36%}.toolbar-middle{flex:auto;justify-content:center}.toolbar-actions{flex:none}#source-select,#repo-select,#base-select,#jump-select{appearance:none;background:linear-gradient(45deg,transparent 50%,currentColor 50%) right 11px center / 4px 4px no-repeat,linear-gradient(135deg,currentColor 50%,transparent 50%) right 7px center / 4px 4px no-repeat,var(--cmux-diff-fg);border:1px solid #0000;border-radius:6px;min-width:118px;max-width:min(30vw,320px);height:24px;padding:0 24px 0 9px}@supports (color:color-mix(in lab,red,red)){#source-select,#repo-select,#base-select,#jump-select{background:linear-gradient(45deg,transparent 50%,currentColor 50%) right 11px center / 4px 4px no-repeat,linear-gradient(135deg,currentColor 50%,transparent 50%) right 7px center / 4px 4px no-repeat,color-mix(in lab,var(--cmux-diff-fg) 7%,transparent)}}#source-select,#repo-select,#base-select,#jump-select{color:inherit;font:inherit}#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{border-color:color-mix(in lab,var(--cmux-diff-fg) 24%,transparent)}}#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{background-color:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#source-select[hidden],#repo-select[hidden],#base-select[hidden],#jump-select[hidden]{display:none}#jump-select{min-width:min(250px,30vw)}#repo-select{min-width:132px;max-width:min(26vw,320px)}#base-select{min-width:120px;max-width:min(22vw,260px)}#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline:2px solid var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline:2px solid color-mix(in lab,var(--cmux-diff-fg) 36%,transparent)}}#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline-offset:1px}#source-detail{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--cmux-diff-fg);overflow:hidden}@supports (color:color-mix(in lab,red,red)){#source-detail{color:color-mix(in lab,var(--cmux-diff-fg) 52%,var(--cmux-diff-bg))}}.toolbar-icon{width:28px;height:26px;color:var(--cmux-diff-fg);background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.toolbar-icon{color:color-mix(in lab,var(--cmux-diff-fg) 60%,var(--cmux-diff-bg))}}.toolbar-icon{cursor:pointer;padding:0}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{border-color:color-mix(in lab,var(--cmux-diff-fg) 14%,transparent)}}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{background:color-mix(in lab,var(--cmux-diff-fg) 9%,transparent)}}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true],.toolbar-icon[aria-pressed=true]{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon[aria-pressed=true]{color:color-mix(in lab,var(--cmux-diff-fg) 78%,var(--cmux-diff-bg))}}.toolbar-icon[hidden]{display:none}.toolbar-icon svg,.menu-item svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px;display:block}#layout-toggle svg [data-accent]{stroke:light-dark(#0a84ff,#7ab7ff)}#options-menu{border:1px solid var(--cmux-diff-fg);min-width:246px;padding:8px;position:absolute;top:calc(100% + 7px);right:10px}@supports (color:color-mix(in lab,red,red)){#options-menu{border:1px solid color-mix(in lab,var(--cmux-diff-fg) 13%,transparent)}}#options-menu{background:var(--cmux-diff-bg);z-index:100;border-radius:8px;box-shadow:0 16px 34px lab(0% none none/.28)}#options-menu[hidden]{display:none}.menu-separator{background:var(--cmux-diff-fg);height:1px;margin:7px 6px}@supports (color:color-mix(in lab,red,red)){.menu-separator{background:color-mix(in lab,var(--cmux-diff-fg) 12%,transparent)}}.menu-item{width:100%;min-height:31px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:6px;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:10px;display:grid}@supports (color:color-mix(in lab,red,red)){.menu-item{color:color-mix(in lab,var(--cmux-diff-fg) 86%,var(--cmux-diff-bg))}}.menu-item{font:inherit;text-align:left;padding:0 7px}.menu-item:hover:not(:disabled){background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.menu-item:hover:not(:disabled){background:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}.menu-item:hover:not(:disabled){color:var(--cmux-diff-fg)}.menu-segment{cursor:default}.menu-segment:hover{background:0 0}.menu-segment-controls{background:0 0;border-radius:7px;justify-self:end;align-items:center;gap:2px;padding:2px;display:inline-flex}.segment-button{width:27px;height:24px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.segment-button{color:color-mix(in lab,var(--cmux-diff-fg) 62%,var(--cmux-diff-bg))}}.segment-button{padding:0}.segment-button:hover,.segment-button[aria-pressed=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.segment-button:hover,.segment-button[aria-pressed=true]{background:color-mix(in lab,var(--cmux-diff-fg) 12%,transparent)}}.segment-button:hover,.segment-button[aria-pressed=true],.menu-item:disabled{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.menu-item:disabled{color:color-mix(in lab,var(--cmux-diff-fg) 36%,var(--cmux-diff-bg))}}.menu-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.menu-check{justify-self:end}#content{--cmux-diff-files-width:clamp(190px, 22vw, 252px);grid-template-columns:minmax(0,1fr) var(--cmux-diff-files-width);overscroll-behavior:contain;contain:strict;background:0 0;flex:auto;grid-template-rows:minmax(0,1fr);grid-template-areas:"viewer files";min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}body[data-files-hidden=true] #content{grid-template-columns:minmax(0,1fr) 0}body[data-status-only=true] #content{grid-template-columns:minmax(0,1fr);grid-template-areas:"viewer"}#files-sidebar{border-left:1px solid var(--cmux-diff-border);contain:strict;opacity:1;background:0 0;flex-direction:column;grid-area:files;width:100%;min-width:0;height:100%;min-height:0;transition:opacity .1s,visibility linear;display:flex;position:relative;overflow:hidden}body[data-files-hidden=true] #files-sidebar{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .1s,visibility 0s linear .1s}body[data-status-only=true] #files-sidebar{display:none}#files-header{z-index:1;border-bottom:1px solid var(--cmux-diff-fg);justify-content:space-between;align-items:center;gap:8px;min-height:30px;padding:0 7px 0 10px;display:flex;position:relative}@supports (color:color-mix(in lab,red,red)){#files-header{border-bottom:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#files-header{color:var(--cmux-diff-fg);background:0 0}@supports (color:color-mix(in lab,red,red)){#files-header{color:color-mix(in lab,var(--cmux-diff-fg) 52%,var(--cmux-diff-bg))}}#files-title{align-items:center;gap:6px;min-width:0;display:inline-flex}#files-header-actions{flex:none;align-items:center;gap:2px;display:inline-flex}#file-search-toggle,#file-collapse-toggle{width:24px;height:24px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){#file-search-toggle,#file-collapse-toggle{color:color-mix(in lab,var(--cmux-diff-fg) 54%,var(--cmux-diff-bg))}}#file-search-toggle,#file-collapse-toggle{padding:0}#file-search-toggle:hover,#file-search-toggle[aria-pressed=true],#file-collapse-toggle:hover{background:var(--cmux-diff-hover-bg);color:var(--cmux-diff-fg)}#file-search-toggle svg,#file-collapse-toggle svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:15px;height:15px}#file-list{--trees-bg-override:var(--cmux-diff-sidebar-bg);--trees-fg-override:var(--cmux-diff-fg);flex:auto;min-height:0;padding:6px 4px 6px 6px;overflow:hidden}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-fg-override:color-mix(in lab, var(--cmux-diff-fg) 72%, var(--cmux-diff-bg))}}#file-list{--trees-fg-muted-override:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-fg-muted-override:color-mix(in lab, var(--cmux-diff-fg) 48%, var(--cmux-diff-bg))}}#file-list{--trees-bg-muted-override:var(--cmux-diff-hover-bg);--trees-selected-bg-override:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-selected-bg-override:color-mix(in lab, var(--cmux-diff-fg) 11%, transparent)}}#file-list{--trees-selected-fg-override:var(--cmux-diff-fg);--trees-selected-focused-border-color-override:transparent;--trees-border-color-override:var(--cmux-diff-border);--trees-focus-ring-color-override:var(--cmux-diff-accent)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-focus-ring-color-override:color-mix(in lab, var(--cmux-diff-accent) 72%, transparent)}}#file-list{--trees-font-family-override:var(--cmux-diff-ui-font-family);--trees-font-size-override:var(--cmux-diff-ui-font-size);--trees-font-weight-semibold-override:500;--trees-density-override:.78;--trees-border-radius-override:5px;--trees-item-padding-x-override:7px;--trees-item-margin-x-override:0;--trees-padding-inline-override:0;--trees-search-bg-override:var(--cmux-diff-bg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-search-bg-override:color-mix(in lab, var(--cmux-diff-bg) 92%, var(--cmux-diff-fg))}}#file-list{--trees-status-added-override:light-dark(#257a3e,#8fd88f);--trees-status-modified-override:var(--cmux-diff-accent);--trees-status-renamed-override:light-dark(#a26300,#ffd166);--trees-status-deleted-override:light-dark(#b42318,#ff8a80)}body[data-loading=false] .diff-loading-placeholder,body[data-loading=false]:not([data-status-only=true]) #loading-layer{display:none}#file-list file-tree-container{width:100%;height:100%}#files-footer{border-top:1px solid var(--cmux-diff-fg);flex:none;padding:7px 10px 8px}@supports (color:color-mix(in lab,red,red)){#files-footer{border-top:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#files-footer{background:0 0}.stats-row{min-height:19px;color:var(--cmux-diff-fg);justify-content:space-between;align-items:center;gap:10px;display:flex}@supports (color:color-mix(in lab,red,red)){.stats-row{color:color-mix(in lab,var(--cmux-diff-fg) 54%,var(--cmux-diff-bg))}}.stats-row strong{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.stats-row strong{color:color-mix(in lab,var(--cmux-diff-fg) 82%,var(--cmux-diff-bg))}}.stats-row strong{font-weight:600}.file-entry{width:100%;min-height:30px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:3px 7px;display:grid}.file-entry:hover,.file-entry[aria-current=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.file-entry:hover,.file-entry[aria-current=true]{background:color-mix(in lab,var(--cmux-diff-fg) 9%,transparent)}}.file-status{width:17px;height:17px;color:var(--cmux-diff-fg);border:1px solid;border-radius:5px;justify-content:center;align-items:center;font-size:9px;line-height:1;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.file-status{color:color-mix(in lab,var(--cmux-diff-fg) 62%,var(--cmux-diff-bg))}}.file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-stats{color:var(--cmux-diff-fg);gap:5px;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.file-stats{color:color-mix(in lab,var(--cmux-diff-fg) 50%,var(--cmux-diff-bg))}}.stat-add{color:light-dark(#257a3e,#8fd88f)}.stat-del{color:light-dark(#b42318,#ff8a80)}#viewer{--diffs-font-family:var(--cmux-diff-code-font-family);--diffs-header-font-family:var(--cmux-diff-ui-font-family);--diffs-font-size:var(--cmux-diff-font-size);--diffs-line-height:var(--cmux-diff-line-height);--diffs-bg-selection-override:light-dark(var(--cmux-diff-selection-bg-light),var(--cmux-diff-selection-bg-dark));overscroll-behavior:contain;overflow-anchor:none;contain:strict;border-bottom:1px solid var(--cmux-diff-border);background:0 0;grid-area:viewer;width:100%;min-width:0;height:100%;min-height:0;position:relative;overflow:clip auto}@media(max-width:520px){#content,body[data-files-hidden=true] #content{grid-template-columns:minmax(0,1fr);grid-template-areas:"viewer"}#files-sidebar{display:none}}@media(prefers-reduced-motion:reduce){#files-sidebar{transition:none}}#viewer diffs-container{--diffs-font-family:var(--cmux-diff-code-font-family);--diffs-header-font-family:var(--cmux-diff-ui-font-family);--diffs-font-size:var(--cmux-diff-font-size);--diffs-line-height:var(--cmux-diff-line-height);--diffs-bg-selection-override:light-dark(var(--cmux-diff-selection-bg-light),var(--cmux-diff-selection-bg-dark));contain:layout paint style;box-shadow:0 -1px 0 var(--cmux-diff-border),0 1px 0 var(--cmux-diff-border);display:block;overflow:clip}#loading-layer{z-index:4;pointer-events:none;contain:strict;background:0 0;position:absolute;inset:0;overflow:hidden}body[data-status-only=true] #loading-layer{pointer-events:auto;width:100%;height:100%;display:flex;position:static}#status{z-index:5;border:1px solid var(--cmux-diff-fg);align-items:center;gap:10px;max-width:calc(100% - 24px);min-height:32px;padding:8px 12px;display:flex;position:absolute;top:10px;left:12px}@supports (color:color-mix(in lab,red,red)){#status{border:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#status{background:var(--cmux-diff-bg);font-family:var(--cmux-diff-ui-font-family);font-size:13px;line-height:var(--cmux-diff-ui-line-height);color:var(--cmux-diff-fg);border-radius:7px}@supports (color:color-mix(in lab,red,red)){#status{color:color-mix(in lab,var(--cmux-diff-fg) 70%,var(--cmux-diff-bg))}}body[data-status-only=true] #status{border:0;border-bottom:1px solid var(--cmux-diff-fg);width:100%;max-width:none;min-height:40px;position:static}@supports (color:color-mix(in lab,red,red)){body[data-status-only=true] #status{border-bottom:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}body[data-status-only=true] #status{border-radius:0;padding:10px 14px}#status[data-pending=true]:before,body[data-loading=true] #status:before{content:"";border:2px solid var(--cmux-diff-fg);flex:none;width:14px;height:14px}@supports (color:color-mix(in lab,red,red)){#status[data-pending=true]:before,body[data-loading=true] #status:before{border:2px solid color-mix(in lab,var(--cmux-diff-fg) 20%,transparent)}}#status[data-pending=true]:before,body[data-loading=true] #status:before{border-top-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#status[data-pending=true]:before,body[data-loading=true] #status:before{border-top-color:color-mix(in lab,var(--cmux-diff-fg) 70%,var(--cmux-diff-bg))}}#status[data-pending=true]:before,body[data-loading=true] #status:before{border-radius:50%;animation:.8s linear infinite cmuxDiffPendingSpin}#status[data-error=true]{color:light-dark(#b42318,#ff8a80)}@keyframes cmuxDiffPendingSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#status[data-pending=true]:before,body[data-loading=true] #status:before{animation:none}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}'; +const qg = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.mx-3\\.5{margin-inline:calc(var(--spacing) * 3.5)}.mt-3\\.5{margin-top:calc(var(--spacing) * 3.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-3{height:calc(var(--spacing) * 3)}.h-6{height:calc(var(--spacing) * 6)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[11px\\]{height:11px}.h-px{height:1px}.w-2\\/5{width:40%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grid-cols-\\[16px_minmax\\(0\\,1fr\\)_44px\\]{grid-template-columns:16px minmax(0,1fr) 44px}.grid-cols-\\[42px_minmax\\(0\\,1fr\\)\\]{grid-template-columns:42px minmax(0,1fr)}.grid-cols-\\[72px_minmax\\(0\\,1fr\\)_96px\\]{grid-template-columns:72px minmax(0,1fr) 96px}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-\\[13px\\]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(13px * var(--tw-space-y-reverse));margin-block-end:calc(13px * calc(1 - var(--tw-space-y-reverse)))}.justify-self-end{justify-self:flex-end}.rounded{border-radius:.25rem}.rounded-\\[5px\\]{border-radius:5px}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_18\\%\\,transparent\\)\\]{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.border-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_18\\%\\,transparent\\)\\]{border-color:color-mix(in lab,var(--cmux-diff-fg) 18%,transparent)}}.border-\\[var\\(--cmux-diff-border\\)\\]{border-color:var(--cmux-diff-border)}.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_5\\%\\,transparent\\)\\]{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_5\\%\\,transparent\\)\\]{background-color:color-mix(in lab,var(--cmux-diff-fg) 5%,transparent)}}.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_10\\%\\,transparent\\)\\]{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.bg-\\[color-mix\\(in_lab\\,var\\(--cmux-diff-fg\\)_10\\%\\,transparent\\)\\]{background-color:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}.bg-\\[var\\(--cmux-diff-muted-bg\\)\\]{background-color:var(--cmux-diff-muted-bg)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-\\[7px\\]{padding-inline:7px}.py-1{padding-block:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.italic{font-style:italic}.opacity-70{opacity:.7}}:root{color-scheme:light dark;--cmux-diff-bg-light:#fff;--cmux-diff-bg-dark:#000;--cmux-diff-fg-light:#000;--cmux-diff-fg-dark:#fff;--cmux-diff-selection-bg-light:#abd8ff;--cmux-diff-selection-bg-dark:#3f638b;--cmux-diff-ui-font-family:system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;--cmux-diff-ui-font-size:12px;--cmux-diff-ui-line-height:16px;--cmux-diff-code-font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;--cmux-diff-font-size:10px;--cmux-diff-line-height:20px;--cmux-diff-bg:var(--cmux-diff-bg-light);--cmux-diff-fg:var(--cmux-diff-fg-light);--cmux-diff-border:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-border:color-mix(in lab, var(--cmux-diff-fg) 12%, transparent)}}:root{--cmux-diff-sidebar-bg:transparent;--cmux-diff-muted-bg:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-muted-bg:color-mix(in lab, var(--cmux-diff-fg) 8%, transparent)}}:root{--cmux-diff-hover-bg:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){:root{--cmux-diff-hover-bg:color-mix(in lab, var(--cmux-diff-fg) 10%, transparent)}}:root{--cmux-diff-accent:light-dark(#0a84ff,#7ab7ff);color:var(--cmux-diff-fg);background:0 0}@media(prefers-color-scheme:dark){:root{--cmux-diff-bg:var(--cmux-diff-bg-dark);--cmux-diff-fg:var(--cmux-diff-fg-dark)}}*{box-sizing:border-box}html,body{background:0 0;height:100%;overflow:hidden}body{height:100vh;min-height:0;color:var(--cmux-diff-fg);font-family:var(--cmux-diff-ui-font-family);font-size:var(--cmux-diff-ui-font-size);line-height:var(--cmux-diff-ui-line-height);background:0 0;flex-direction:column;margin:0;display:flex;overflow:hidden}#root{background:0 0;height:100%;min-height:0}#app{overscroll-behavior:contain;contain:strict;height:100vh;min-height:0;color:inherit;background:0 0;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}#toolbar{border-bottom:1px solid var(--cmux-diff-fg);flex:none;align-items:center;gap:7px;min-height:32px;padding:3px 8px;display:flex;position:relative}@supports (color:color-mix(in lab,red,red)){#toolbar{border-bottom:1px solid color-mix(in lab,var(--cmux-diff-fg) 14%,transparent)}}#toolbar{color:var(--cmux-diff-fg);background:0 0}@supports (color:color-mix(in lab,red,red)){#toolbar{color:color-mix(in lab,var(--cmux-diff-fg) 76%,var(--cmux-diff-bg))}}#toolbar{z-index:50}.toolbar-left,.toolbar-middle,.toolbar-actions{align-items:center;gap:6px;min-width:0;display:flex}.toolbar-left{flex:0 36%}.toolbar-middle{flex:auto;justify-content:center}.toolbar-actions{flex:none}#source-select,#repo-select,#base-select,#jump-select{appearance:none;background:linear-gradient(45deg,transparent 50%,currentColor 50%) right 11px center / 4px 4px no-repeat,linear-gradient(135deg,currentColor 50%,transparent 50%) right 7px center / 4px 4px no-repeat,var(--cmux-diff-fg);border:1px solid #0000;border-radius:6px;min-width:118px;max-width:min(30vw,320px);height:24px;padding:0 24px 0 9px}@supports (color:color-mix(in lab,red,red)){#source-select,#repo-select,#base-select,#jump-select{background:linear-gradient(45deg,transparent 50%,currentColor 50%) right 11px center / 4px 4px no-repeat,linear-gradient(135deg,currentColor 50%,transparent 50%) right 7px center / 4px 4px no-repeat,color-mix(in lab,var(--cmux-diff-fg) 7%,transparent)}}#source-select,#repo-select,#base-select,#jump-select{color:inherit;font:inherit}#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{border-color:color-mix(in lab,var(--cmux-diff-fg) 24%,transparent)}}#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{background-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:hover,#repo-select:hover,#base-select:hover,#jump-select:hover{background-color:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#source-select[hidden],#repo-select[hidden],#base-select[hidden],#jump-select[hidden]{display:none}#jump-select{min-width:min(250px,30vw)}#repo-select{min-width:132px;max-width:min(26vw,320px)}#base-select{min-width:120px;max-width:min(22vw,260px)}#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline:2px solid var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline:2px solid color-mix(in lab,var(--cmux-diff-fg) 36%,transparent)}}#source-select:focus,#repo-select:focus,#base-select:focus,#jump-select:focus,.toolbar-icon:focus-visible,.menu-item:focus-visible,.file-entry:focus-visible{outline-offset:1px}#source-detail{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--cmux-diff-fg);overflow:hidden}@supports (color:color-mix(in lab,red,red)){#source-detail{color:color-mix(in lab,var(--cmux-diff-fg) 52%,var(--cmux-diff-bg))}}.toolbar-icon{width:28px;height:26px;color:var(--cmux-diff-fg);background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.toolbar-icon{color:color-mix(in lab,var(--cmux-diff-fg) 60%,var(--cmux-diff-bg))}}.toolbar-icon{cursor:pointer;padding:0}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{border-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{border-color:color-mix(in lab,var(--cmux-diff-fg) 14%,transparent)}}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon:hover,.toolbar-icon[aria-expanded=true]{background:color-mix(in lab,var(--cmux-diff-fg) 9%,transparent)}}.toolbar-icon:hover,.toolbar-icon[aria-expanded=true],.toolbar-icon[aria-pressed=true]{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.toolbar-icon[aria-pressed=true]{color:color-mix(in lab,var(--cmux-diff-fg) 78%,var(--cmux-diff-bg))}}.toolbar-icon[hidden]{display:none}.toolbar-icon svg,.menu-item svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px;display:block}#layout-toggle svg [data-accent]{stroke:light-dark(#0a84ff,#7ab7ff)}#options-menu{border:1px solid var(--cmux-diff-fg);min-width:246px;padding:8px;position:absolute;top:calc(100% + 7px);right:10px}@supports (color:color-mix(in lab,red,red)){#options-menu{border:1px solid color-mix(in lab,var(--cmux-diff-fg) 13%,transparent)}}#options-menu{background:var(--cmux-diff-bg);z-index:100;border-radius:8px;box-shadow:0 16px 34px lab(0% none none/.28)}#options-menu[hidden]{display:none}.menu-separator{background:var(--cmux-diff-fg);height:1px;margin:7px 6px}@supports (color:color-mix(in lab,red,red)){.menu-separator{background:color-mix(in lab,var(--cmux-diff-fg) 12%,transparent)}}.menu-item{width:100%;min-height:31px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:6px;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:10px;display:grid}@supports (color:color-mix(in lab,red,red)){.menu-item{color:color-mix(in lab,var(--cmux-diff-fg) 86%,var(--cmux-diff-bg))}}.menu-item{font:inherit;text-align:left;padding:0 7px}.menu-item:hover:not(:disabled){background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.menu-item:hover:not(:disabled){background:color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}.menu-item:hover:not(:disabled){color:var(--cmux-diff-fg)}.menu-segment{cursor:default}.menu-segment:hover{background:0 0}.menu-segment-controls{background:0 0;border-radius:7px;justify-self:end;align-items:center;gap:2px;padding:2px;display:inline-flex}.segment-button{width:27px;height:24px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.segment-button{color:color-mix(in lab,var(--cmux-diff-fg) 62%,var(--cmux-diff-bg))}}.segment-button{padding:0}.segment-button:hover,.segment-button[aria-pressed=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.segment-button:hover,.segment-button[aria-pressed=true]{background:color-mix(in lab,var(--cmux-diff-fg) 12%,transparent)}}.segment-button:hover,.segment-button[aria-pressed=true],.menu-item:disabled{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.menu-item:disabled{color:color-mix(in lab,var(--cmux-diff-fg) 36%,var(--cmux-diff-bg))}}.menu-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.menu-check{justify-self:end}#content{--cmux-diff-files-width:clamp(190px, 22vw, 252px);grid-template-columns:minmax(0,1fr) var(--cmux-diff-files-width);overscroll-behavior:contain;contain:strict;background:0 0;flex:auto;grid-template-rows:minmax(0,1fr);grid-template-areas:"viewer files";min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}body[data-files-hidden=true] #content{grid-template-columns:minmax(0,1fr) 0}body[data-status-only=true] #content{grid-template-columns:minmax(0,1fr);grid-template-areas:"viewer"}#files-sidebar{border-left:1px solid var(--cmux-diff-border);contain:strict;opacity:1;background:0 0;flex-direction:column;grid-area:files;width:100%;min-width:0;height:100%;min-height:0;transition:opacity .1s,visibility linear;display:flex;position:relative;overflow:hidden}body[data-files-hidden=true] #files-sidebar{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .1s,visibility 0s linear .1s}body[data-status-only=true] #files-sidebar{display:none}#files-header{z-index:1;border-bottom:1px solid var(--cmux-diff-fg);justify-content:space-between;align-items:center;gap:8px;min-height:30px;padding:0 7px 0 10px;display:flex;position:relative}@supports (color:color-mix(in lab,red,red)){#files-header{border-bottom:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#files-header{color:var(--cmux-diff-fg);background:0 0}@supports (color:color-mix(in lab,red,red)){#files-header{color:color-mix(in lab,var(--cmux-diff-fg) 52%,var(--cmux-diff-bg))}}#files-title{align-items:center;gap:6px;min-width:0;display:inline-flex}#files-header-actions{flex:none;align-items:center;gap:2px;display:inline-flex}#file-search-toggle,#file-collapse-toggle{width:24px;height:24px;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}@supports (color:color-mix(in lab,red,red)){#file-search-toggle,#file-collapse-toggle{color:color-mix(in lab,var(--cmux-diff-fg) 54%,var(--cmux-diff-bg))}}#file-search-toggle,#file-collapse-toggle{padding:0}#file-search-toggle:hover,#file-search-toggle[aria-pressed=true],#file-collapse-toggle:hover{background:var(--cmux-diff-hover-bg);color:var(--cmux-diff-fg)}#file-search-toggle svg,#file-collapse-toggle svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:15px;height:15px}#file-list{--trees-bg-override:var(--cmux-diff-sidebar-bg);--trees-fg-override:var(--cmux-diff-fg);flex:auto;min-height:0;padding:6px 4px 6px 6px;overflow:hidden}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-fg-override:color-mix(in lab, var(--cmux-diff-fg) 72%, var(--cmux-diff-bg))}}#file-list{--trees-fg-muted-override:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-fg-muted-override:color-mix(in lab, var(--cmux-diff-fg) 48%, var(--cmux-diff-bg))}}#file-list{--trees-bg-muted-override:var(--cmux-diff-hover-bg);--trees-selected-bg-override:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-selected-bg-override:color-mix(in lab, var(--cmux-diff-fg) 11%, transparent)}}#file-list{--trees-selected-fg-override:var(--cmux-diff-fg);--trees-selected-focused-border-color-override:transparent;--trees-border-color-override:var(--cmux-diff-border);--trees-focus-ring-color-override:var(--cmux-diff-accent)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-focus-ring-color-override:color-mix(in lab, var(--cmux-diff-accent) 72%, transparent)}}#file-list{--trees-font-family-override:var(--cmux-diff-ui-font-family);--trees-font-size-override:var(--cmux-diff-ui-font-size);--trees-font-weight-semibold-override:500;--trees-density-override:.78;--trees-border-radius-override:5px;--trees-item-padding-x-override:7px;--trees-item-margin-x-override:0;--trees-padding-inline-override:0;--trees-search-bg-override:var(--cmux-diff-bg)}@supports (color:color-mix(in lab,red,red)){#file-list{--trees-search-bg-override:color-mix(in lab, var(--cmux-diff-bg) 92%, var(--cmux-diff-fg))}}#file-list{--trees-status-added-override:light-dark(#257a3e,#8fd88f);--trees-status-modified-override:var(--cmux-diff-accent);--trees-status-renamed-override:light-dark(#a26300,#ffd166);--trees-status-deleted-override:light-dark(#b42318,#ff8a80)}body[data-loading=false] .diff-loading-placeholder,body[data-loading=false]:not([data-status-only=true]) #loading-layer{display:none}#file-list file-tree-container{width:100%;height:100%}#files-footer{border-top:1px solid var(--cmux-diff-fg);flex:none;padding:7px 10px 8px}@supports (color:color-mix(in lab,red,red)){#files-footer{border-top:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#files-footer{background:0 0}.stats-row{min-height:19px;color:var(--cmux-diff-fg);justify-content:space-between;align-items:center;gap:10px;display:flex}@supports (color:color-mix(in lab,red,red)){.stats-row{color:color-mix(in lab,var(--cmux-diff-fg) 54%,var(--cmux-diff-bg))}}.stats-row strong{color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.stats-row strong{color:color-mix(in lab,var(--cmux-diff-fg) 82%,var(--cmux-diff-bg))}}.stats-row strong{font-weight:600}.file-entry{width:100%;min-height:30px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:3px 7px;display:grid}.file-entry:hover,.file-entry[aria-current=true]{background:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){.file-entry:hover,.file-entry[aria-current=true]{background:color-mix(in lab,var(--cmux-diff-fg) 9%,transparent)}}.file-status{width:17px;height:17px;color:var(--cmux-diff-fg);border:1px solid;border-radius:5px;justify-content:center;align-items:center;font-size:9px;line-height:1;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.file-status{color:color-mix(in lab,var(--cmux-diff-fg) 62%,var(--cmux-diff-bg))}}.file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-stats{color:var(--cmux-diff-fg);gap:5px;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.file-stats{color:color-mix(in lab,var(--cmux-diff-fg) 50%,var(--cmux-diff-bg))}}.stat-add{color:light-dark(#257a3e,#8fd88f)}.stat-del{color:light-dark(#b42318,#ff8a80)}#viewer{--diffs-font-family:var(--cmux-diff-code-font-family);--diffs-header-font-family:var(--cmux-diff-ui-font-family);--diffs-font-size:var(--cmux-diff-font-size);--diffs-line-height:var(--cmux-diff-line-height);--diffs-bg-selection-override:light-dark(var(--cmux-diff-selection-bg-light),var(--cmux-diff-selection-bg-dark));overscroll-behavior:contain;overflow-anchor:none;contain:strict;border-bottom:1px solid var(--cmux-diff-border);background:0 0;grid-area:viewer;width:100%;min-width:0;height:100%;min-height:0;position:relative;overflow:clip auto}@media(max-width:520px){#content,body[data-files-hidden=true] #content{grid-template-columns:minmax(0,1fr);grid-template-areas:"viewer"}#files-sidebar{display:none}}@media(prefers-reduced-motion:reduce){#files-sidebar{transition:none}}#viewer diffs-container{--diffs-font-family:var(--cmux-diff-code-font-family);--diffs-header-font-family:var(--cmux-diff-ui-font-family);--diffs-font-size:var(--cmux-diff-font-size);--diffs-line-height:var(--cmux-diff-line-height);--diffs-bg-selection-override:light-dark(var(--cmux-diff-selection-bg-light),var(--cmux-diff-selection-bg-dark));contain:layout paint style;box-shadow:0 -1px 0 var(--cmux-diff-border),0 1px 0 var(--cmux-diff-border);display:block;overflow:clip}#loading-layer{z-index:4;pointer-events:none;contain:strict;background:0 0;position:absolute;inset:0;overflow:hidden}body[data-status-only=true] #loading-layer{pointer-events:auto;justify-content:center;align-items:center;width:100%;height:100%;padding:32px;display:flex;position:static}#status{z-index:5;border:1px solid var(--cmux-diff-fg);align-items:center;gap:10px;max-width:calc(100% - 24px);min-height:32px;padding:8px 12px;display:flex;position:absolute;top:10px;left:12px}@supports (color:color-mix(in lab,red,red)){#status{border:1px solid color-mix(in lab,var(--cmux-diff-fg) 10%,transparent)}}#status{background:var(--cmux-diff-bg);font-family:var(--cmux-diff-ui-font-family);font-size:13px;line-height:var(--cmux-diff-ui-line-height);color:var(--cmux-diff-fg);border-radius:7px}@supports (color:color-mix(in lab,red,red)){#status{color:color-mix(in lab,var(--cmux-diff-fg) 70%,var(--cmux-diff-bg))}}body[data-status-only=true] #status{text-align:center;text-wrap:balance;width:auto;max-width:340px;min-height:0;color:var(--cmux-diff-fg);background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:0;font-size:14px;line-height:1.55;position:static}@supports (color:color-mix(in lab,red,red)){body[data-status-only=true] #status{color:color-mix(in lab,var(--cmux-diff-fg) 58%,var(--cmux-diff-bg))}}body[data-status-only=true] #status-text{letter-spacing:.005em;font-weight:500}#status-icon{display:none}body[data-status-only=true] #status:not([data-error=true]):not([data-pending=true]) #status-icon{background:var(--cmux-diff-fg);border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;display:flex}@supports (color:color-mix(in lab,red,red)){body[data-status-only=true] #status:not([data-error=true]):not([data-pending=true]) #status-icon{background:color-mix(in lab,var(--cmux-diff-fg) 5%,transparent)}}body[data-status-only=true] #status:not([data-error=true]):not([data-pending=true]) #status-icon{border:1px solid var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){body[data-status-only=true] #status:not([data-error=true]):not([data-pending=true]) #status-icon{border:1px solid color-mix(in lab,var(--cmux-diff-fg) 8%,transparent)}}body[data-status-only=true] #status:not([data-error=true]):not([data-pending=true]) #status-icon:before{content:"";opacity:.8;background-color:currentColor;width:26px;height:26px;display:block;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E") 50%/contain no-repeat}#status[data-pending=true]:before,body[data-loading=true] #status:before{content:"";border:2px solid var(--cmux-diff-fg);flex:none;width:14px;height:14px}@supports (color:color-mix(in lab,red,red)){#status[data-pending=true]:before,body[data-loading=true] #status:before{border:2px solid color-mix(in lab,var(--cmux-diff-fg) 20%,transparent)}}#status[data-pending=true]:before,body[data-loading=true] #status:before{border-top-color:var(--cmux-diff-fg)}@supports (color:color-mix(in lab,red,red)){#status[data-pending=true]:before,body[data-loading=true] #status:before{border-top-color:color-mix(in lab,var(--cmux-diff-fg) 70%,var(--cmux-diff-bg))}}#status[data-pending=true]:before,body[data-loading=true] #status:before{border-radius:50%;animation:.8s linear infinite cmuxDiffPendingSpin}#status[data-error=true]{color:light-dark(#b42318,#ff8a80)}@keyframes cmuxDiffPendingSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#status[data-pending=true]:before,body[data-loading=true] #status:before{animation:none}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`; function Gg() { const S = document.getElementById("cmux-diff-viewer-config"); if (!S?.textContent) @@ -12305,12 +12310,12 @@ function Yg() { } const Gl = Gg(); Yg(); -dm(sm(Gl.payload?.appearance)); +mm(dm(Gl.payload?.appearance)); typeof Gl.payload?.title == "string" && Gl.payload.title.trim() !== "" && (document.title = Gl.payload.title); document.body.dataset.filesHidden = "false"; document.body.dataset.loading = Gl.payload?.pendingReplacement || !Gl.payload?.statusMessage ? "true" : "false"; document.body.dataset.statusOnly = Gl.payload?.statusMessage && !Gl.payload.pendingReplacement ? "true" : "false"; -const hm = document.getElementById("root"); -if (!hm) +const gm = document.getElementById("root"); +if (!gm) throw new Error("Missing cmux diff viewer root"); -gg.createRoot(hm).render(/* @__PURE__ */ K.jsx(jg, { config: Gl })); +gg.createRoot(gm).render(/* @__PURE__ */ Z.jsx(jg, { config: Gl })); diff --git a/cmuxTests/CMUXOpenCommandTests.swift b/cmuxTests/CMUXOpenCommandTests.swift index 24ec8da0b9..6cd4cdc3fd 100644 --- a/cmuxTests/CMUXOpenCommandTests.swift +++ b/cmuxTests/CMUXOpenCommandTests.swift @@ -679,7 +679,7 @@ final class CMUXOpenCommandTests: XCTestCase { XCTAssertFalse(gitLog.contains(plainSiblingURL.path), gitLog) } - func testDiffCommandKeepsSelectedEmptyErrorWhenFallbackProbeFails() throws { + func testDiffCommandShowsFriendlyEmptyStateWhenEveryGitSourceIsEmpty() throws { let cliPath = try bundledCLIPath() let rootURL = FileManager.default.temporaryDirectory .appendingPathComponent(UUID().uuidString, isDirectory: true) @@ -729,11 +729,12 @@ final class CMUXOpenCommandTests: XCTestCase { wait(for: [serverHandled], timeout: 5) XCTAssertFalse(result.timedOut, result.stderr) - XCTAssertNotEqual(result.status, 0) - XCTAssertFalse(result.stdout.contains("OK surface="), result.stdout) - XCTAssertTrue(result.stderr.contains("No unstaged changes to diff."), result.stderr) + // Empty diffs are a friendly state, not an error: the CLI exits 0 (so the + // launcher never emits the "unable to click" beep) and prints nothing to + // stderr. (issue #5246) + XCTAssertEqual(result.status, 0, result.stderr) + XCTAssertFalse(result.stderr.contains("No unstaged changes to diff."), result.stderr) XCTAssertFalse(result.stderr.contains("EmptyDiffSourceError"), result.stderr) - XCTAssertFalse(result.stderr.contains("workspace and surface"), result.stderr) let commandPayload = try XCTUnwrap( state.commands.compactMap { Self.v2Payload(from: $0) }.first { payload in @@ -747,9 +748,16 @@ final class CMUXOpenCommandTests: XCTestCase { let html = try String(contentsOf: viewerFileURL, encoding: .utf8) XCTAssertTrue(html.contains("No unstaged changes to diff."), html) XCTAssertFalse(html.contains("No last-turn diff baseline recorded"), html) + let payload = try diffViewerPayload(from: html) + XCTAssertEqual(payload["statusIsError"] as? Bool, false, html) } - func testDiffCommandDoesNotFallbackFromLastTurnBaselineError() throws { + func testDiffCommandShowsFriendlyEmptyStateForLastTurnWithoutBaseline() throws { + // Regression: a last-turn diff with no recorded baseline must render the + // friendly empty diff state (with the source switcher) and exit 0, not + // surface the raw "No last-turn diff baseline recorded" CLI error. The + // non-zero exit is what triggered the launcher's "unable to click" beep, + // so a clean exit fixes both the bad copy and the beep (issue #5246). let cliPath = try bundledCLIPath() let rootURL = FileManager.default.temporaryDirectory .appendingPathComponent(UUID().uuidString, isDirectory: true) @@ -765,10 +773,12 @@ final class CMUXOpenCommandTests: XCTestCase { try "one\n".write(to: fileURL, atomically: true, encoding: .utf8) try runGit(["add", "story.txt"], in: repoURL) try runGit(["commit", "-m", "initial"], in: repoURL) + // Staged changes exist on another source; last turn must NOT silently fall + // back to them — it stays on its own empty state. try "one\ntwo\n".write(to: fileURL, atomically: true, encoding: .utf8) try runGit(["add", "story.txt"], in: repoURL) - let result = runDiffCLIExpectingNoOpen( + let result = try runDiffCLIAndReadHTML( cliPath: cliPath, arguments: ["diff", "--last-turn"], environmentOverrides: [ @@ -776,15 +786,16 @@ final class CMUXOpenCommandTests: XCTestCase { "CMUX_WORKSPACE_ID": UUID().uuidString.lowercased(), "CMUX_SURFACE_ID": UUID().uuidString.lowercased() ], - currentDirectoryURL: repoURL + currentDirectoryURL: repoURL, + readPatchSidecar: false ) - XCTAssertNotEqual(result.status, 0) - XCTAssertTrue(result.stderr.contains("No last-turn diff baseline recorded for this workspace and surface yet"), result.stderr) - XCTAssertFalse(result.stdout.contains("surface="), result.stdout) + try assertFriendlyLastTurnEmptyState(html: result.html) + // No silent fallback to the staged "+two" change. + XCTAssertFalse(result.html.contains("+two"), result.html) } - func testDiffCommandDoesNotFallbackFromEmptyLastTurnDiff() throws { + func testDiffCommandShowsFriendlyEmptyStateForEmptyLastTurnDiff() throws { let cliPath = try bundledCLIPath() let rootURL = FileManager.default.temporaryDirectory .appendingPathComponent(UUID().uuidString, isDirectory: true) @@ -821,7 +832,7 @@ final class CMUXOpenCommandTests: XCTestCase { baseCommit: featureCommit ) - let result = runDiffCLIExpectingNoOpen( + let result = try runDiffCLIAndReadHTML( cliPath: cliPath, arguments: ["diff", "--last-turn"], environmentOverrides: [ @@ -829,12 +840,11 @@ final class CMUXOpenCommandTests: XCTestCase { "CMUX_WORKSPACE_ID": workspaceId, "CMUX_SURFACE_ID": surfaceId ], - currentDirectoryURL: repoURL + currentDirectoryURL: repoURL, + readPatchSidecar: false ) - XCTAssertNotEqual(result.status, 0) - XCTAssertTrue(result.stderr.contains("No last-turn changes to diff."), result.stderr) - XCTAssertFalse(result.stdout.contains("surface="), result.stdout) + try assertFriendlyLastTurnEmptyState(html: result.html) } func testDiffCommandSupportsGitSourcesAndSurfaceScopedLastTurn() throws { @@ -1140,7 +1150,7 @@ final class CMUXOpenCommandTests: XCTestCase { XCTAssertTrue(homeLastTurn.html.contains("Last turn diff"), homeLastTurn.html) XCTAssertTrue(homeLastTurn.patch.contains("new-turn-file.txt"), homeLastTurn.patch) - let wrongSurfaceResult = runDiffCLIExpectingNoOpen( + let wrongSurfaceResult = try runDiffCLIAndReadHTML( cliPath: cliPath, arguments: ["diff", "--last-turn"], environmentOverrides: [ @@ -1148,10 +1158,26 @@ final class CMUXOpenCommandTests: XCTestCase { "CMUX_WORKSPACE_ID": workspaceId, "CMUX_SURFACE_ID": UUID().uuidString.lowercased() ], - currentDirectoryURL: repoURL + currentDirectoryURL: repoURL, + readPatchSidecar: false + ) + try assertFriendlyLastTurnEmptyState(html: wrongSurfaceResult.html) + } + + /// Asserts the diff viewer HTML renders the friendly, non-error last-turn empty + /// state: plain-language copy (never the raw baseline CLI error), `statusIsError` + /// false, and the source switcher still present with last turn selected. + private func assertFriendlyLastTurnEmptyState(html: String) throws { + XCTAssertFalse(html.contains("No last-turn diff baseline recorded"), html) + let payload = try diffViewerPayload(from: html) + XCTAssertEqual(payload["statusMessage"] as? String, "No last-turn changes to diff.", html) + XCTAssertEqual(payload["statusIsError"] as? Bool, false, html) + let sourceOptions = try XCTUnwrap(payload["sourceOptions"] as? [[String: Any]], html) + let lastTurnOption = try XCTUnwrap( + sourceOptions.first { $0["value"] as? String == "last-turn" }, + html ) - XCTAssertNotEqual(wrongSurfaceResult.status, 0) - XCTAssertTrue(wrongSurfaceResult.stderr.contains("No last-turn diff baseline recorded for this workspace and surface yet"), wrongSurfaceResult.stderr) + XCTAssertEqual(lastTurnOption["selected"] as? Bool, true, html) } func testAgentTurnDiffBaselineStoresUntrackedSnapshotsOutsideGit() throws { diff --git a/diff-viewer/src/App.tsx b/diff-viewer/src/App.tsx index e11555271e..4cbb7fdb5d 100644 --- a/diff-viewer/src/App.tsx +++ b/diff-viewer/src/App.tsx @@ -52,7 +52,10 @@ function LoadingDiffSkeleton() { function LoadingLayer({ config, label }: ShellProps) { return (
-
{config.payload?.statusMessage ?? label("loadingDiff")}
+
+
); diff --git a/diff-viewer/src/styles.css b/diff-viewer/src/styles.css index af1a0c876b..23ace42955 100644 --- a/diff-viewer/src/styles.css +++ b/diff-viewer/src/styles.css @@ -552,6 +552,9 @@ body[data-status-only="true"] #loading-layer { position: static; width: 100%; height: 100%; + align-items: center; + justify-content: center; + padding: 32px; pointer-events: auto; } #status { @@ -573,15 +576,54 @@ body[data-status-only="true"] #loading-layer { line-height: var(--cmux-diff-ui-line-height); color: color-mix(in lab, var(--cmux-diff-fg) 70%, var(--cmux-diff-bg)); } +/* Centered empty state (no diff to show): icon badge + message, like a polished + "nothing here" page rather than a thin status strip. */ body[data-status-only="true"] #status { position: static; - width: 100%; - max-width: none; - min-height: 40px; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 14px; + width: auto; + max-width: 340px; + min-height: 0; border: 0; - border-bottom: 1px solid color-mix(in lab, var(--cmux-diff-fg) 10%, transparent); border-radius: 0; - padding: 10px 14px; + padding: 0; + background: transparent; + text-align: center; + text-wrap: balance; + font-size: 14px; + line-height: 1.55; + color: color-mix(in lab, var(--cmux-diff-fg) 58%, var(--cmux-diff-bg)); +} +body[data-status-only="true"] #status-text { + font-weight: 500; + letter-spacing: 0.005em; +} +/* Icon badge: only for the friendly empty state, not errors or while loading. */ +#status-icon { + display: none; +} +body[data-status-only="true"] #status:not([data-error="true"]):not([data-pending="true"]) #status-icon { + display: flex; + align-items: center; + justify-content: center; + width: 56px; + height: 56px; + border-radius: 16px; + background: color-mix(in lab, var(--cmux-diff-fg) 5%, transparent); + border: 1px solid color-mix(in lab, var(--cmux-diff-fg) 8%, transparent); +} +body[data-status-only="true"] #status:not([data-error="true"]):not([data-pending="true"]) #status-icon::before { + content: ""; + display: block; + width: 26px; + height: 26px; + background-color: currentColor; + opacity: 0.8; + -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat; + mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat; } #status[data-pending="true"]::before, body[data-loading="true"] #status::before { diff --git a/diff-viewer/src/viewer-controller.ts b/diff-viewer/src/viewer-controller.ts index 421344665f..4e7841b33a 100644 --- a/diff-viewer/src/viewer-controller.ts +++ b/diff-viewer/src/viewer-controller.ts @@ -162,6 +162,7 @@ export function startDiffViewer(config: DiffViewerConfig): void { const appearance = resolveDiffViewerAppearance(payload.appearance); const viewerElement = requireElement("viewer"); const status = requireElement("status"); +const statusText = requireElement("status-text"); const toolbar = requireElement("toolbar"); const sourceSelect = requireElement("source-select"); const repoSelect = requireElement("repo-select"); @@ -298,7 +299,8 @@ function showStatusMessage(message: string, options: StatusMessageOptions = {}): document.body.dataset.statusOnly = options.statusOnly === true ? "true" : "false"; status.dataset.error = options.error === true ? "true" : "false"; status.dataset.pending = options.pending === true ? "true" : "false"; - status.textContent = message; + // Write into the dedicated text node so the empty-state icon child survives. + statusText.textContent = message; } async function applyReplacementFrom(response: Response): Promise {