diff --git a/main.js b/main.js index 32c3a68..418ae3c 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -/*! For license information please see main.ab62df5e.js.LICENSE.txt */ +/*! For license information please see main.3bb17e64.js.LICENSE.txt */ (() => { const SC_TOOLBOX_ENABLED_LOCALIZATION = "en"; const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = false; @@ -67,17 +67,17 @@ var a = g.hasOwnProperty(t) ? g[t] : null; (null !== a ? 0 !== a.type : r || !(2 < t.length) || "o" !== t[0] && "O" !== t[0] || "n" !== t[1] && "N" !== t[1]) && (function(e, t, n, r) { if (null === t || "undefined" === typeof t || function(e, t, n, r) { - if (null !== n && 0 === n.type) return !1; - switch (typeof t) { - case "function": - case "symbol": - return !0; - case "boolean": - return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); - default: - return !1 - } - }(e, t, n, r)) return !0; + if (null !== n && 0 === n.type) return !1; + switch (typeof t) { + case "function": + case "symbol": + return !0; + case "boolean": + return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); + default: + return !1 + } + }(e, t, n, r)) return !0; if (r) return !1; if (null !== n) switch (n.type) { case 3: @@ -118,27 +118,27 @@ P = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), - C = Symbol.for("react.suspense_list"), - T = Symbol.for("react.memo"), - R = Symbol.for("react.lazy"); + R = Symbol.for("react.suspense_list"), + C = Symbol.for("react.memo"), + T = Symbol.for("react.lazy"); Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode"); var D = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"), Symbol.for("react.cache"), Symbol.for("react.tracing_marker"); var N = Symbol.iterator; - function j(e) { + function L(e) { return null === e || "object" !== typeof e ? null : "function" === typeof(e = N && e[N] || e["@@iterator"]) ? e : null } - var L, M = Object.assign; + var j, M = Object.assign; function z(e) { - if (void 0 === L) try { + if (void 0 === j) try { throw Error() } catch (n) { var t = n.stack.trim().match(/\n( *(at )?)/); - L = t && t[1] || "" + j = t && t[1] || "" } - return "\n" + L + e + return "\n" + j + e } var F = !1; @@ -150,12 +150,12 @@ try { if (t) if (t = function() { + throw Error() + }, Object.defineProperty(t.prototype, "props", { + set: function() { throw Error() - }, Object.defineProperty(t.prototype, "props", { - set: function() { - throw Error() - } - }), "object" === typeof Reflect && Reflect.construct) { + } + }), "object" === typeof Reflect && Reflect.construct) { try { Reflect.construct(t, []) } catch (c) { @@ -222,7 +222,7 @@ } } - function B(e) { + function G(e) { if (null == e) return null; if ("function" === typeof e) return e.displayName || e.name || null; if ("string" === typeof e) return e; @@ -237,7 +237,7 @@ return "StrictMode"; case A: return "Suspense"; - case C: + case R: return "SuspenseList" } if ("object" === typeof e) switch (e.$$typeof) { @@ -248,18 +248,18 @@ case I: var t = e.render; return (e = e.displayName) || (e = "" !== (e = t.displayName || t.name || "") ? "ForwardRef(" + e + ")" : "ForwardRef"), e; + case C: + return null !== (t = e.displayName || null) ? t : G(e.type) || "Memo"; case T: - return null !== (t = e.displayName || null) ? t : B(e.type) || "Memo"; - case R: t = e._payload, e = e._init; try { - return B(e(t)) + return G(e(t)) } catch (n) {} } return null } - function G(e) { + function B(e) { var t = e.type; switch (e.tag) { case 24: @@ -283,7 +283,7 @@ case 6: return "Text"; case 16: - return B(t); + return G(t); case 8: return t === E ? "StrictMode" : "Mode"; case 22: @@ -661,7 +661,7 @@ function Ie() {} var Ae = !1; - function Ce(e, t, n) { + function Re(e, t, n) { if (Ae) return e(t, n); Ae = !0; try { @@ -671,7 +671,7 @@ } } - function Te(e, t) { + function Ce(e, t) { var n = e.stateNode; if (null === n) return null; var r = va(n); @@ -698,16 +698,16 @@ if (n && "function" !== typeof n) throw Error(i(231, t, typeof n)); return n } - var Re = !1; + var Te = !1; if (u) try { var De = {}; Object.defineProperty(De, "passive", { get: function() { - Re = !0 + Te = !0 } }), window.addEventListener("test", De, De), window.removeEventListener("test", De, De) } catch (tu) { - Re = !1 + Te = !1 } function Ne(e, t, n, r, a, i, o, s, l) { @@ -718,18 +718,18 @@ this.onError(u) } } - var je = !1, - Le = null, + var Le = !1, + je = null, Me = !1, ze = null, Fe = { onError: function(e) { - je = !0, Le = e + Le = !0, je = e } }; function Ue(e, t, n, r, a, i, o, s, l) { - je = !1, Le = null, Ne.apply(Fe, arguments) + Le = !1, je = null, Ne.apply(Fe, arguments) } function Ve(e) { @@ -746,7 +746,7 @@ return 3 === t.tag ? n : null } - function Be(e) { + function Ge(e) { if (13 === e.tag) { var t = e.memoizedState; if (null === t && (null !== (e = e.alternate) && (t = e.memoizedState)), null !== t) return t.dehydrated @@ -754,7 +754,7 @@ return null } - function Ge(e) { + function Be(e) { if (Ve(e) !== e) throw Error(i(188)) } @@ -778,8 +778,8 @@ } if (a.child === o.child) { for (o = a.child; o;) { - if (o === n) return Ge(a), e; - if (o === r) return Ge(a), t; + if (o === n) return Be(a), e; + if (o === r) return Be(a), t; o = o.sibling } throw Error(i(188)) @@ -984,9 +984,9 @@ Pt = null, It = null, At = null, + Rt = new Map, Ct = new Map, - Tt = new Map, - Rt = [], + Tt = [], Dt = "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 submit".split(" "); function Nt(e, t) { @@ -1005,15 +1005,15 @@ break; case "pointerover": case "pointerout": - Ct.delete(t.pointerId); + Rt.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": - Tt.delete(t.pointerId) + Ct.delete(t.pointerId) } } - function jt(e, t, n, r, a, i) { + function Lt(e, t, n, r, a, i) { return null === e || e.nativeEvent !== i ? (e = { blockedOn: t, domEventName: n, @@ -1023,13 +1023,13 @@ }, null !== t && (null !== (t = ma(t)) && xt(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== a && -1 === t.indexOf(a) && t.push(a), e) } - function Lt(e) { + function jt(e) { var t = fa(e.target); if (null !== t) { var n = Ve(t); if (null !== n) if (13 === (t = n.tag)) { - if (null !== (t = Be(n))) return e.blockedOn = t, void Et(e.priority, (function() { + if (null !== (t = Ge(n))) return e.blockedOn = t, void Et(e.priority, (function() { wt(n) })) } else if (3 === t && n.stateNode.current.memoizedState.isDehydrated) return void(e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null) @@ -1053,7 +1053,7 @@ } function Ft() { - St = !1, null !== Pt && Mt(Pt) && (Pt = null), null !== It && Mt(It) && (It = null), null !== At && Mt(At) && (At = null), Ct.forEach(zt), Tt.forEach(zt) + St = !1, null !== Pt && Mt(Pt) && (Pt = null), null !== It && Mt(It) && (It = null), null !== At && Mt(At) && (At = null), Rt.forEach(zt), Ct.forEach(zt) } function Ut(e, t) { @@ -1071,54 +1071,54 @@ r.blockedOn === e && (r.blockedOn = null) } } - for (null !== Pt && Ut(Pt, e), null !== It && Ut(It, e), null !== At && Ut(At, e), Ct.forEach(t), Tt.forEach(t), n = 0; n < Rt.length; n++)(r = Rt[n]).blockedOn === e && (r.blockedOn = null); - for (; 0 < Rt.length && null === (n = Rt[0]).blockedOn;) Lt(n), null === n.blockedOn && Rt.shift() + for (null !== Pt && Ut(Pt, e), null !== It && Ut(It, e), null !== At && Ut(At, e), Rt.forEach(t), Ct.forEach(t), n = 0; n < Tt.length; n++)(r = Tt[n]).blockedOn === e && (r.blockedOn = null); + for (; 0 < Tt.length && null === (n = Tt[0]).blockedOn;) jt(n), null === n.blockedOn && Tt.shift() } - var Bt = b.ReactCurrentBatchConfig, - Gt = !0; + var Gt = b.ReactCurrentBatchConfig, + Bt = !0; function qt(e, t, n, r) { var a = yt, - i = Bt.transition; - Bt.transition = null; + i = Gt.transition; + Gt.transition = null; try { yt = 1, Wt(e, t, n, r) } finally { - yt = a, Bt.transition = i + yt = a, Gt.transition = i } } function $t(e, t, n, r) { var a = yt, - i = Bt.transition; - Bt.transition = null; + i = Gt.transition; + Gt.transition = null; try { yt = 4, Wt(e, t, n, r) } finally { - yt = a, Bt.transition = i + yt = a, Gt.transition = i } } function Wt(e, t, n, r) { - if (Gt) { + if (Bt) { var a = Yt(e, t, n, r); if (null === a) Ur(e, t, r, Ht, n), Nt(e, r); else if (function(e, t, n, r, a) { - switch (t) { - case "focusin": - return Pt = jt(Pt, e, t, n, r, a), !0; - case "dragenter": - return It = jt(It, e, t, n, r, a), !0; - case "mouseover": - return At = jt(At, e, t, n, r, a), !0; - case "pointerover": - var i = a.pointerId; - return Ct.set(i, jt(Ct.get(i) || null, e, t, n, r, a)), !0; - case "gotpointercapture": - return i = a.pointerId, Tt.set(i, jt(Tt.get(i) || null, e, t, n, r, a)), !0 - } - return !1 - }(a, e, t, n, r)) r.stopPropagation(); + switch (t) { + case "focusin": + return Pt = Lt(Pt, e, t, n, r, a), !0; + case "dragenter": + return It = Lt(It, e, t, n, r, a), !0; + case "mouseover": + return At = Lt(At, e, t, n, r, a), !0; + case "pointerover": + var i = a.pointerId; + return Rt.set(i, Lt(Rt.get(i) || null, e, t, n, r, a)), !0; + case "gotpointercapture": + return i = a.pointerId, Ct.set(i, Lt(Ct.get(i) || null, e, t, n, r, a)), !0 + } + return !1 + }(a, e, t, n, r)) r.stopPropagation(); else if (Nt(e, r), 4 & t && -1 < Dt.indexOf(e)) { for (; null !== a;) { var i = ma(a); @@ -1135,12 +1135,12 @@ if (Ht = null, null !== (e = fa(e = be(r)))) if (null === (t = Ve(e))) e = null; else if (13 === (n = t.tag)) { - if (null !== (e = Be(t))) return e; - e = null - } else if (3 === n) { - if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; - e = null - } else t !== e && (e = null); + if (null !== (e = Ge(t))) return e; + e = null + } else if (3 === n) { + if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; + e = null + } else t !== e && (e = null); return Ht = e, null } @@ -1476,15 +1476,15 @@ deltaMode: 0 })), An = [9, 13, 27, 32], - Cn = u && "CompositionEvent" in window, - Tn = null; - u && "documentMode" in document && (Tn = document.documentMode); - var Rn = u && "TextEvent" in window && !Tn, - Dn = u && (!Cn || Tn && 8 < Tn && 11 >= Tn), + Rn = u && "CompositionEvent" in window, + Cn = null; + u && "documentMode" in document && (Cn = document.documentMode); + var Tn = u && "TextEvent" in window && !Cn, + Dn = u && (!Rn || Cn && 8 < Cn && 11 >= Cn), Nn = String.fromCharCode(32), - jn = !1; + Ln = !1; - function Ln(e, t) { + function jn(e, t) { switch (e) { case "keyup": return -1 !== An.indexOf(t.keyCode); @@ -1527,13 +1527,13 @@ } function Vn(e, t, n, r) { - Se(r), 0 < (t = Br(t, "onChange")).length && (n = new cn("onChange", "change", null, n, r), e.push({ + Se(r), 0 < (t = Gr(t, "onChange")).length && (n = new cn("onChange", "change", null, n, r), e.push({ event: n, listeners: t })) } - var Bn = null, - Gn = null; + var Gn = null, + Bn = null; function qn(e) { Nr(e, 0) @@ -1561,22 +1561,22 @@ } function Zn() { - Bn && (Bn.detachEvent("onpropertychange", Xn), Gn = Bn = null) + Gn && (Gn.detachEvent("onpropertychange", Xn), Bn = Gn = null) } function Xn(e) { - if ("value" === e.propertyName && $n(Gn)) { + if ("value" === e.propertyName && $n(Bn)) { var t = []; - Vn(t, Gn, e, be(e)), Ce(qn, t) + Vn(t, Bn, e, be(e)), Re(qn, t) } } function Jn(e, t, n) { - "focusin" === e ? (Zn(), Gn = n, (Bn = t).attachEvent("onpropertychange", Xn)) : "focusout" === e && Zn() + "focusin" === e ? (Zn(), Bn = n, (Gn = t).attachEvent("onpropertychange", Xn)) : "focusout" === e && Zn() } function er(e) { - if ("selectionchange" === e || "keyup" === e || "keydown" === e) return $n(Gn) + if ("selectionchange" === e || "keyup" === e || "keydown" === e) return $n(Bn) } function tr(e, t) { @@ -1662,13 +1662,13 @@ if (null !== r && cr(n)) if (t = r.start, void 0 === (e = r.end) && (e = t), "selectionStart" in n) n.selectionStart = t, n.selectionEnd = Math.min(e, n.value.length); else if ((e = (t = n.ownerDocument || document) && t.defaultView || window).getSelection) { - e = e.getSelection(); - var a = n.textContent.length, - i = Math.min(r.start, a); - r = void 0 === r.end ? i : Math.min(r.end, a), !e.extend && i > r && (a = r, r = i, i = a), a = or(n, i); - var o = or(n, r); - a && o && (1 !== e.rangeCount || e.anchorNode !== a.node || e.anchorOffset !== a.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(a.node, a.offset), e.removeAllRanges(), i > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))) - } + e = e.getSelection(); + var a = n.textContent.length, + i = Math.min(r.start, a); + r = void 0 === r.end ? i : Math.min(r.end, a), !e.extend && i > r && (a = r, r = i, i = a), a = or(n, i); + var o = or(n, r); + a && o && (1 !== e.rangeCount || e.anchorNode !== a.node || e.anchorOffset !== a.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(a.node, a.offset), e.removeAllRanges(), i > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))) + } for (t = [], e = n; e = e.parentNode;) 1 === e.nodeType && t.push({ element: e, left: e.scrollLeft, @@ -1693,7 +1693,7 @@ anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset - }, fr && ar(fr, r) || (fr = r, 0 < (r = Br(hr, "onSelect")).length && (t = new cn("onSelect", "select", null, t, n), e.push({ + }, fr && ar(fr, r) || (fr = r, 0 < (r = Gr(hr, "onSelect")).length && (t = new cn("onSelect", "select", null, t, n), e.push({ event: t, listeners: r }), t.target = pr))) @@ -1732,21 +1732,21 @@ Or.set(e, t), l(t, [e]) } for (var Ar = 0; Ar < Pr.length; Ar++) { - var Cr = Pr[Ar]; - Ir(Cr.toLowerCase(), "on" + (Cr[0].toUpperCase() + Cr.slice(1))) + var Rr = Pr[Ar]; + Ir(Rr.toLowerCase(), "on" + (Rr[0].toUpperCase() + Rr.slice(1))) } Ir(wr, "onAnimationEnd"), Ir(kr, "onAnimationIteration"), Ir(Er, "onAnimationStart"), Ir("dblclick", "onDoubleClick"), Ir("focusin", "onFocus"), Ir("focusout", "onBlur"), Ir(Sr, "onTransitionEnd"), c("onMouseEnter", ["mouseout", "mouseover"]), c("onMouseLeave", ["mouseout", "mouseover"]), c("onPointerEnter", ["pointerout", "pointerover"]), c("onPointerLeave", ["pointerout", "pointerover"]), l("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), l("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), l("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), l("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); - var Tr = "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(" "), - Rr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr)); + var Cr = "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(" "), + Tr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr)); function Dr(e, t, n) { var r = e.type || "unknown-event"; e.currentTarget = n, function(e, t, n, r, a, o, s, l, c) { - if (Ue.apply(this, arguments), je) { - if (!je) throw Error(i(198)); - var u = Le; - je = !1, Le = null, Me || (Me = !0, ze = u) + if (Ue.apply(this, arguments), Le) { + if (!Le) throw Error(i(198)); + var u = je; + Le = !1, je = null, Me || (Me = !0, ze = u) } }(r, t, void 0, e), e.currentTarget = null } @@ -1767,23 +1767,23 @@ if (s = s.listener, l !== i && a.isPropagationStopped()) break e; Dr(a, s, c), i = l } else - for (o = 0; o < r.length; o++) { - if (l = (s = r[o]).instance, c = s.currentTarget, s = s.listener, l !== i && a.isPropagationStopped()) break e; - Dr(a, s, c), i = l - } + for (o = 0; o < r.length; o++) { + if (l = (s = r[o]).instance, c = s.currentTarget, s = s.listener, l !== i && a.isPropagationStopped()) break e; + Dr(a, s, c), i = l + } } } if (Me) throw e = ze, Me = !1, ze = null, e } - function jr(e, t) { + function Lr(e, t) { var n = t[da]; void 0 === n && (n = t[da] = new Set); var r = e + "__bubble"; n.has(r) || (Fr(t, e, 2, !1), n.add(r)) } - function Lr(e, t, n) { + function jr(e, t, n) { var r = 0; t && (r |= 4), Fr(n, e, r, t) } @@ -1792,10 +1792,10 @@ function zr(e) { if (!e[Mr]) { e[Mr] = !0, o.forEach((function(t) { - "selectionchange" !== t && (Rr.has(t) || Lr(t, !1, e), Lr(t, !0, e)) + "selectionchange" !== t && (Tr.has(t) || jr(t, !1, e), jr(t, !0, e)) })); var t = 9 === e.nodeType ? e : e.ownerDocument; - null === t || t[Mr] || (t[Mr] = !0, Lr("selectionchange", !1, t)) + null === t || t[Mr] || (t[Mr] = !0, jr("selectionchange", !1, t)) } } @@ -1810,7 +1810,7 @@ default: a = Wt } - n = a.bind(null, t, n, e), a = void 0, !Re || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (a = !0), r ? void 0 !== a ? e.addEventListener(t, n, { + n = a.bind(null, t, n, e), a = void 0, !Te || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (a = !0), r ? void 0 !== a ? e.addEventListener(t, n, { capture: !0, passive: a }) : e.addEventListener(t, n, !0) : void 0 !== a ? e.addEventListener(t, n, { @@ -1843,7 +1843,7 @@ } r = r.return } - Ce((function() { + Re((function() { var r = i, a = be(n), o = []; @@ -1932,7 +1932,7 @@ u = []; for (var h, f = r; null !== f;) { var m = (h = f).stateNode; - if (5 === h.tag && null !== m && (h = m, null !== p && (null != (m = Te(f, p)) && u.push(Vr(f, m, h)))), d) break; + if (5 === h.tag && null !== m && (h = m, null !== p && (null != (m = Ce(f, p)) && u.push(Vr(f, m, h)))), d) break; f = f.return } 0 < u.length && (s = new l(s, c, null, n, a), o.push({ @@ -1944,15 +1944,15 @@ if (0 === (7 & t)) { if (l = "mouseout" === e || "pointerout" === e, (!(s = "mouseover" === e || "pointerover" === e) || n === _e || !(c = n.relatedTarget || n.fromElement) || !fa(c) && !c[ua]) && (l || s) && (s = a.window === a ? a : (s = a.ownerDocument) ? s.defaultView || s.parentWindow : window, l ? (l = r, null !== (c = (c = n.relatedTarget || n.toElement) ? fa(c) : null) && (c !== (d = Ve(c)) || 5 !== c.tag && 6 !== c.tag) && (c = null)) : (l = null, c = r), l !== c)) { if (u = hn, m = "onMouseLeave", p = "onMouseEnter", f = "mouse", "pointerout" !== e && "pointerover" !== e || (u = Sn, m = "onPointerLeave", p = "onPointerEnter", f = "pointer"), d = null == l ? s : ga(l), h = null == c ? s : ga(c), (s = new u(m, f + "leave", l, n, a)).target = d, s.relatedTarget = h, m = null, fa(a) === r && ((u = new u(p, f + "enter", c, n, a)).target = h, u.relatedTarget = d, m = u), d = m, l && c) e: { - for (p = c, f = 0, h = u = l; h; h = Gr(h)) f++; - for (h = 0, m = p; m; m = Gr(m)) h++; - for (; 0 < f - h;) u = Gr(u), - f--; - for (; 0 < h - f;) p = Gr(p), - h--; + for (p = c, f = 0, h = u = l; h; h = Br(h)) f++; + for (h = 0, m = p; m; m = Br(m)) h++; + for (; 0 < f - h;) u = Br(u), + f--; + for (; 0 < h - f;) p = Br(p), + h--; for (; f--;) { if (u === p || null !== p && u === p.alternate) break e; - u = Gr(u), p = Gr(p) + u = Br(u), p = Br(p) } u = null } @@ -1989,7 +1989,7 @@ gr(o, n, a) } var y; - if (Cn) e: { + if (Rn) e: { switch (e) { case "compositionstart": var _ = "onCompositionStart"; @@ -2003,23 +2003,23 @@ } _ = void 0 } - else zn ? Ln(e, n) && (_ = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (_ = "onCompositionStart"); - _ && (Dn && "ko" !== n.locale && (zn || "onCompositionStart" !== _ ? "onCompositionEnd" === _ && zn && (y = Jt()) : (Zt = "value" in (Qt = a) ? Qt.value : Qt.textContent, zn = !0)), 0 < (v = Br(r, _)).length && (_ = new yn(_, e, null, n, a), o.push({ + else zn ? jn(e, n) && (_ = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (_ = "onCompositionStart"); + _ && (Dn && "ko" !== n.locale && (zn || "onCompositionStart" !== _ ? "onCompositionEnd" === _ && zn && (y = Jt()) : (Zt = "value" in (Qt = a) ? Qt.value : Qt.textContent, zn = !0)), 0 < (v = Gr(r, _)).length && (_ = new yn(_, e, null, n, a), o.push({ event: _, listeners: v - }), y ? _.data = y : null !== (y = Mn(n)) && (_.data = y))), (y = Rn ? function(e, t) { + }), y ? _.data = y : null !== (y = Mn(n)) && (_.data = y))), (y = Tn ? function(e, t) { switch (e) { case "compositionend": return Mn(t); case "keypress": - return 32 !== t.which ? null : (jn = !0, Nn); + return 32 !== t.which ? null : (Ln = !0, Nn); case "textInput": - return (e = t.data) === Nn && jn ? null : e; + return (e = t.data) === Nn && Ln ? null : e; default: return null } }(e, n) : function(e, t) { - if (zn) return "compositionend" === e || !Cn && Ln(e, t) ? (e = Jt(), Xt = Zt = Qt = null, zn = !1, e) : null; + if (zn) return "compositionend" === e || !Rn && jn(e, t) ? (e = Jt(), Xt = Zt = Qt = null, zn = !1, e) : null; switch (e) { case "paste": default: @@ -2033,7 +2033,7 @@ case "compositionend": return Dn && "ko" !== t.locale ? null : t.data } - }(e, n)) && (0 < (r = Br(r, "onBeforeInput")).length && (a = new yn("onBeforeInput", "beforeinput", null, n, a), o.push({ + }(e, n)) && (0 < (r = Gr(r, "onBeforeInput")).length && (a = new yn("onBeforeInput", "beforeinput", null, n, a), o.push({ event: a, listeners: r }), a.data = y)) @@ -2050,16 +2050,16 @@ } } - function Br(e, t) { + function Gr(e, t) { for (var n = t + "Capture", r = []; null !== e;) { var a = e, i = a.stateNode; - 5 === a.tag && null !== i && (a = i, null != (i = Te(e, n)) && r.unshift(Vr(e, i, a)), null != (i = Te(e, t)) && r.push(Vr(e, i, a))), e = e.return + 5 === a.tag && null !== i && (a = i, null != (i = Ce(e, n)) && r.unshift(Vr(e, i, a)), null != (i = Ce(e, t)) && r.push(Vr(e, i, a))), e = e.return } return r } - function Gr(e) { + function Br(e) { if (null === e) return null; do { e = e.return @@ -2073,7 +2073,7 @@ l = s.alternate, c = s.stateNode; if (null !== l && l === r) break; - 5 === s.tag && null !== c && (s = c, a ? null != (l = Te(n, i)) && o.unshift(Vr(n, l, s)) : a || null != (l = Te(n, i)) && o.push(Vr(n, l, s))), n = n.return + 5 === s.tag && null !== c && (s = c, a ? null != (l = Ce(n, i)) && o.unshift(Vr(n, l, s)) : a || null != (l = Ce(n, i)) && o.push(Vr(n, l, s))), n = n.return } 0 !== o.length && e.push({ event: t, @@ -2228,39 +2228,39 @@ xa(Sa), xa(Ea) } - function Ca(e, t, n) { + function Ra(e, t, n) { if (Ea.current !== ka) throw Error(i(168)); wa(Ea, t), wa(Sa, n) } - function Ta(e, t, n) { + function Ca(e, t, n) { var r = e.stateNode; if (t = t.childContextTypes, "function" !== typeof r.getChildContext) return n; for (var a in r = r.getChildContext()) - if (!(a in t)) throw Error(i(108, G(e) || "Unknown", a)); + if (!(a in t)) throw Error(i(108, B(e) || "Unknown", a)); return M({}, n, r) } - function Ra(e) { + function Ta(e) { return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || ka, Oa = Ea.current, wa(Ea, e), wa(Sa, Sa.current), !0 } function Da(e, t, n) { var r = e.stateNode; if (!r) throw Error(i(169)); - n ? (e = Ta(e, t, Oa), r.__reactInternalMemoizedMergedChildContext = e, xa(Sa), xa(Ea), wa(Ea, e)) : xa(Sa), wa(Sa, n) + n ? (e = Ca(e, t, Oa), r.__reactInternalMemoizedMergedChildContext = e, xa(Sa), xa(Ea), wa(Ea, e)) : xa(Sa), wa(Sa, n) } var Na = null, - ja = !1, - La = !1; + La = !1, + ja = !1; function Ma(e) { null === Na ? Na = [e] : Na.push(e) } function za() { - if (!La && null !== Na) { - La = !0; + if (!ja && null !== Na) { + ja = !0; var e = 0, t = yt; try { @@ -2271,11 +2271,11 @@ r = r(!0) } while (null !== r) } - Na = null, ja = !1 + Na = null, La = !1 } catch (a) { throw null !== Na && (Na = Na.slice(e + 1)), We(Xe, za), a } finally { - yt = t, La = !1 + yt = t, ja = !1 } } return null @@ -2283,19 +2283,19 @@ var Fa = [], Ua = 0, Va = null, - Ba = 0, - Ga = [], + Ga = 0, + Ba = [], qa = 0, $a = null, Wa = 1, Ha = ""; function Ya(e, t) { - Fa[Ua++] = Ba, Fa[Ua++] = Va, Va = e, Ba = t + Fa[Ua++] = Ga, Fa[Ua++] = Va, Va = e, Ga = t } function Ka(e, t, n) { - Ga[qa++] = Wa, Ga[qa++] = Ha, Ga[qa++] = $a, $a = e; + Ba[qa++] = Wa, Ba[qa++] = Ha, Ba[qa++] = $a, $a = e; var r = Wa; e = Ha; var a = 32 - it(r) - 1; @@ -2312,8 +2312,8 @@ } function Za(e) { - for (; e === Va;) Va = Fa[--Ua], Fa[Ua] = null, Ba = Fa[--Ua], Fa[Ua] = null; - for (; e === $a;) $a = Ga[--qa], Ga[qa] = null, Ha = Ga[--qa], Ga[qa] = null, Wa = Ga[--qa], Ga[qa] = null + for (; e === Va;) Va = Fa[--Ua], Fa[Ua] = null, Ga = Fa[--Ua], Fa[Ua] = null; + for (; e === $a;) $a = Ba[--qa], Ba[qa] = null, Ha = Ba[--qa], Ba[qa] = null, Wa = Ba[--qa], Ba[qa] = null } var Xa = null, Ja = null, @@ -2453,10 +2453,10 @@ var t = e._currentValue; if (gi !== e) if (e = { - context: e, - memoizedValue: t, - next: null - }, null === mi) { + context: e, + memoizedValue: t, + next: null + }, null === mi) { if (null === fi) throw Error(i(308)); mi = e, fi.dependencies = { lanes: 0, @@ -2519,7 +2519,7 @@ } } - function Ci(e, t, n) { + function Ri(e, t, n) { var r = e.updateQueue; if (null === r) return null; if (r = r.shared, 0 !== (2 & El)) { @@ -2529,14 +2529,14 @@ return null === (a = r.interleaved) ? (t.next = t, ki(r)) : (t.next = a.next, a.next = t), r.interleaved = t, Si(e, n) } - function Ti(e, t, n) { + function Ci(e, t, n) { if (null !== (t = t.updateQueue) && (t = t.shared, 0 !== (4194240 & n))) { var r = t.lanes; n |= r &= e.pendingLanes, t.lanes = n, vt(e, n) } } - function Ri(e, t) { + function Ti(e, t) { var n = e.updateQueue, r = e.alternate; if (null !== r && n === (r = r.updateQueue)) { @@ -2636,7 +2636,7 @@ o |= a.lane, a = a.next } while (a !== t) } else null === i && (a.shared.lanes = 0); - Rl |= o, e.lanes = o, e.memoizedState = d + Tl |= o, e.lanes = o, e.memoizedState = d } } @@ -2651,9 +2651,9 @@ } } } - var ji = (new r.Component).refs; + var Li = (new r.Component).refs; - function Li(e, t, n, r) { + function ji(e, t, n, r) { n = null === (n = n(r, t = e.memoizedState)) || void 0 === n ? t : M({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n) } var Mi = { @@ -2665,21 +2665,21 @@ var r = Ql(), a = Zl(e), i = Ai(r, a); - i.payload = t, void 0 !== n && null !== n && (i.callback = n), null !== (t = Ci(e, i, a)) && (Xl(t, e, a, r), Ti(t, e, a)) + i.payload = t, void 0 !== n && null !== n && (i.callback = n), null !== (t = Ri(e, i, a)) && (Xl(t, e, a, r), Ci(t, e, a)) }, enqueueReplaceState: function(e, t, n) { e = e._reactInternals; var r = Ql(), a = Zl(e), i = Ai(r, a); - i.tag = 1, i.payload = t, void 0 !== n && null !== n && (i.callback = n), null !== (t = Ci(e, i, a)) && (Xl(t, e, a, r), Ti(t, e, a)) + i.tag = 1, i.payload = t, void 0 !== n && null !== n && (i.callback = n), null !== (t = Ri(e, i, a)) && (Xl(t, e, a, r), Ci(t, e, a)) }, enqueueForceUpdate: function(e, t) { e = e._reactInternals; var n = Ql(), r = Zl(e), a = Ai(n, r); - a.tag = 2, void 0 !== t && null !== t && (a.callback = t), null !== (t = Ci(e, a, r)) && (Xl(t, e, r, n), Ti(t, e, r)) + a.tag = 2, void 0 !== t && null !== t && (a.callback = t), null !== (t = Ri(e, a, r)) && (Xl(t, e, r, n), Ci(t, e, r)) } }; @@ -2700,12 +2700,12 @@ function Vi(e, t, n, r) { var a = e.stateNode; - a.props = n, a.state = e.memoizedState, a.refs = ji, Pi(e); + a.props = n, a.state = e.memoizedState, a.refs = Li, Pi(e); var i = t.contextType; - "object" === typeof i && null !== i ? a.context = xi(i) : (i = Ia(t) ? Oa : Ea.current, a.context = Pa(e, i)), a.state = e.memoizedState, "function" === typeof(i = t.getDerivedStateFromProps) && (Li(e, t, i, n), a.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof a.getSnapshotBeforeUpdate || "function" !== typeof a.UNSAFE_componentWillMount && "function" !== typeof a.componentWillMount || (t = a.state, "function" === typeof a.componentWillMount && a.componentWillMount(), "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), t !== a.state && Mi.enqueueReplaceState(a, a.state, null), Di(e, n, a, r), a.state = e.memoizedState), "function" === typeof a.componentDidMount && (e.flags |= 4194308) + "object" === typeof i && null !== i ? a.context = xi(i) : (i = Ia(t) ? Oa : Ea.current, a.context = Pa(e, i)), a.state = e.memoizedState, "function" === typeof(i = t.getDerivedStateFromProps) && (ji(e, t, i, n), a.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof a.getSnapshotBeforeUpdate || "function" !== typeof a.UNSAFE_componentWillMount && "function" !== typeof a.componentWillMount || (t = a.state, "function" === typeof a.componentWillMount && a.componentWillMount(), "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), t !== a.state && Mi.enqueueReplaceState(a, a.state, null), Di(e, n, a, r), a.state = e.memoizedState), "function" === typeof a.componentDidMount && (e.flags |= 4194308) } - function Bi(e, t, n) { + function Gi(e, t, n) { if (null !== (e = n.ref) && "function" !== typeof e && "object" !== typeof e) { if (n._owner) { if (n = n._owner) { @@ -2717,7 +2717,7 @@ o = "" + e; return null !== t && null !== t.ref && "function" === typeof t.ref && t.ref._stringRef === o ? t.ref : (t = function(e) { var t = a.refs; - t === ji && (t = a.refs = {}), null === e ? delete t[o] : t[o] = e + t === Li && (t = a.refs = {}), null === e ? delete t[o] : t[o] = e }, t._stringRef = o, t) } if ("string" !== typeof e) throw Error(i(284)); @@ -2726,7 +2726,7 @@ return e } - function Gi(e, t) { + function Bi(e, t) { throw e = Object.prototype.toString.call(t), Error(i(31, "[object Object]" === e ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)) } @@ -2771,7 +2771,7 @@ function c(e, t, n, r) { var i = n.type; - return i === k ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === i || "object" === typeof i && null !== i && i.$$typeof === R && qi(i) === t.type) ? ((r = a(t, n.props)).ref = Bi(e, t, n), r.return = e, r) : ((r = Cc(n.type, n.key, n.props, null, e.mode, r)).ref = Bi(e, t, n), r.return = e, r) + return i === k ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === i || "object" === typeof i && null !== i && i.$$typeof === T && qi(i) === t.type) ? ((r = a(t, n.props)).ref = Gi(e, t, n), r.return = e, r) : ((r = Rc(n.type, n.key, n.props, null, e.mode, r)).ref = Gi(e, t, n), r.return = e, r) } function u(e, t, n, r) { @@ -2779,7 +2779,7 @@ } function d(e, t, n, r, i) { - return null === t || 7 !== t.tag ? ((t = Tc(n, e.mode, r, i)).return = e, t) : ((t = a(t, n)).return = e, t) + return null === t || 7 !== t.tag ? ((t = Cc(n, e.mode, r, i)).return = e, t) : ((t = a(t, n)).return = e, t) } function p(e, t, n) { @@ -2787,14 +2787,14 @@ if ("object" === typeof t && null !== t) { switch (t.$$typeof) { case x: - return (n = Cc(t.type, t.key, t.props, null, e.mode, n)).ref = Bi(e, null, t), n.return = e, n; + return (n = Rc(t.type, t.key, t.props, null, e.mode, n)).ref = Gi(e, null, t), n.return = e, n; case w: return (t = Nc(t, e.mode, n)).return = e, t; - case R: + case T: return p(e, (0, t._init)(t._payload), n) } - if (te(t) || j(t)) return (t = Tc(t, e.mode, n, null)).return = e, t; - Gi(e, t) + if (te(t) || L(t)) return (t = Cc(t, e.mode, n, null)).return = e, t; + Bi(e, t) } return null } @@ -2808,11 +2808,11 @@ return n.key === a ? c(e, t, n, r) : null; case w: return n.key === a ? u(e, t, n, r) : null; - case R: + case T: return h(e, t, (a = n._init)(n._payload), r) } - if (te(n) || j(n)) return null !== a ? null : d(e, t, n, r, null); - Gi(e, n) + if (te(n) || L(n)) return null !== a ? null : d(e, t, n, r, null); + Bi(e, n) } return null } @@ -2825,11 +2825,11 @@ return c(t, e = e.get(null === r.key ? n : r.key) || null, r, a); case w: return u(t, e = e.get(null === r.key ? n : r.key) || null, r, a); - case R: + case T: return f(e, t, n, (0, r._init)(r._payload), a) } - if (te(r) || j(r)) return d(t, e = e.get(n) || null, r, a, null); - Gi(t, r) + if (te(r) || L(r)) return d(t, e = e.get(n) || null, r, a, null); + Bi(t, r) } return null } @@ -2856,7 +2856,7 @@ } function g(a, s, l, c) { - var u = j(l); + var u = L(l); if ("function" !== typeof u) throw Error(i(150)); if (null == (l = u.call(l))) throw Error(i(151)); for (var d = u = null, m = s, g = s = 0, v = null, y = l.next(); null !== m && !y.done; g++, y = l.next()) { @@ -2890,8 +2890,8 @@ n(r, u.sibling), (i = a(u, o.props.children)).return = r, r = i; break e } - } else if (u.elementType === c || "object" === typeof c && null !== c && c.$$typeof === R && qi(c) === u.type) { - n(r, u.sibling), (i = a(u, o.props)).ref = Bi(r, u, o), i.return = r, r = i; + } else if (u.elementType === c || "object" === typeof c && null !== c && c.$$typeof === T && qi(c) === u.type) { + n(r, u.sibling), (i = a(u, o.props)).ref = Gi(r, u, o), i.return = r, r = i; break e } n(r, u); @@ -2899,7 +2899,7 @@ } t(r, u), u = u.sibling } - o.type === k ? ((i = Tc(o.props.children, r.mode, l, o.key)).return = r, r = i) : ((l = Cc(o.type, o.key, o.props, null, r.mode, l)).ref = Bi(r, i, o), l.return = r, r = l) + o.type === k ? ((i = Cc(o.props.children, r.mode, l, o.key)).return = r, r = i) : ((l = Rc(o.type, o.key, o.props, null, r.mode, l)).ref = Gi(r, i, o), l.return = r, r = l) } return s(r); case w: @@ -2915,15 +2915,15 @@ } t(r, i), i = i.sibling }(i = Nc(o, r.mode, l)).return = r, - r = i + r = i } return s(r); - case R: + case T: return e(r, i, (u = o._init)(o._payload), l) } if (te(o)) return m(r, i, o, l); - if (j(o)) return g(r, i, o, l); - Gi(r, o) + if (L(o)) return g(r, i, o, l); + Bi(r, o) } return "string" === typeof o && "" !== o || "number" === typeof o ? (o = "" + o, null !== i && 6 === i.tag ? (n(r, i.sibling), (i = a(i, o)).return = r, r = i) : (n(r, i), (i = Dc(o, r.mode, l)).return = r, r = i), s(r)) : n(r, i) } @@ -3105,7 +3105,7 @@ eagerState: u.eagerState, next: null }; - null === c ? (l = c = p, s = r) : c = c.next = p, uo.lanes |= d, Rl |= d + null === c ? (l = c = p, s = r) : c = c.next = p, uo.lanes |= d, Tl |= d } u = u.next } while (null !== u && u !== o); @@ -3114,7 +3114,7 @@ if (null !== (e = n.interleaved)) { a = e; do { - o = a.lane, uo.lanes |= o, Rl |= o, a = a.next + o = a.lane, uo.lanes |= o, Tl |= o, a = a.next } while (a !== e) } else null === a && (n.lanes = 0); return [t.memoizedState, n.dispatch] @@ -3146,8 +3146,8 @@ r = ko(), a = t(), o = !rr(r.memoizedState, a); - if (o && (r.memoizedState = a, gs = !0), r = r.queue, Uo(To.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== ho && 1 & ho.memoizedState.tag) { - if (n.flags |= 2048, jo(9, Co.bind(null, n, r, a, t), void 0, null), null === Sl) throw Error(i(349)); + if (o && (r.memoizedState = a, gs = !0), r = r.queue, Uo(Co.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== ho && 1 & ho.memoizedState.tag) { + if (n.flags |= 2048, Lo(9, Ro.bind(null, n, r, a, t), void 0, null), null === Sl) throw Error(i(349)); 0 !== (30 & co) || Ao(n, t, a) } return a @@ -3163,17 +3163,17 @@ }, uo.updateQueue = t, t.stores = [e]) : null === (n = t.stores) ? t.stores = [e] : n.push(e) } - function Co(e, t, n, r) { - t.value = n, t.getSnapshot = r, Ro(t) && Do(e) + function Ro(e, t, n, r) { + t.value = n, t.getSnapshot = r, To(t) && Do(e) } - function To(e, t, n) { + function Co(e, t, n) { return n((function() { - Ro(t) && Do(e) + To(t) && Do(e) })) } - function Ro(e) { + function To(e) { var t = e.getSnapshot; e = e.value; try { @@ -3201,7 +3201,7 @@ }, t.queue = e, e = e.dispatch = Xo.bind(null, uo, e), [t.memoizedState, e] } - function jo(e, t, n, r) { + function Lo(e, t, n, r) { return e = { tag: e, create: t, @@ -3214,13 +3214,13 @@ }, uo.updateQueue = t, t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e } - function Lo() { + function jo() { return ko().memoizedState } function Mo(e, t, n, r) { var a = wo(); - uo.flags |= e, a.memoizedState = jo(1 | t, n, void 0, void 0 === r ? null : r) + uo.flags |= e, a.memoizedState = Lo(1 | t, n, void 0, void 0 === r ? null : r) } function zo(e, t, n, r) { @@ -3229,9 +3229,9 @@ var i = void 0; if (null !== po) { var o = po.memoizedState; - if (i = o.destroy, null !== r && _o(r, o.deps)) return void(a.memoizedState = jo(t, n, i, r)) + if (i = o.destroy, null !== r && _o(r, o.deps)) return void(a.memoizedState = Lo(t, n, i, r)) } - uo.flags |= e, a.memoizedState = jo(1 | t, n, i, r) + uo.flags |= e, a.memoizedState = Lo(1 | t, n, i, r) } function Fo(e, t) { @@ -3246,11 +3246,11 @@ return zo(4, 2, e, t) } - function Bo(e, t) { + function Go(e, t) { return zo(4, 4, e, t) } - function Go(e, t) { + function Bo(e, t) { return "function" === typeof t ? (e = e(), t(e), function() { t(null) }) : null !== t && void 0 !== t ? (e = e(), t.current = e, function() { @@ -3259,7 +3259,7 @@ } function qo(e, t, n) { - return n = null !== n && void 0 !== n ? n.concat([e]) : null, zo(4, 4, Go.bind(null, t, e), n) + return n = null !== n && void 0 !== n ? n.concat([e]) : null, zo(4, 4, Bo.bind(null, t, e), n) } function $o() {} @@ -3279,7 +3279,7 @@ } function Yo(e, t, n) { - return 0 === (21 & co) ? (e.baseState && (e.baseState = !1, gs = !0), e.memoizedState = n) : (rr(n, t) || (n = ft(), uo.lanes |= n, Rl |= n, e.baseState = !0), t) + return 0 === (21 & co) ? (e.baseState && (e.baseState = !1, gs = !0), e.memoizedState = n) : (rr(n, t) || (n = ft(), uo.lanes |= n, Tl |= n, e.baseState = !0), t) } function Ko(e, t) { @@ -3301,12 +3301,12 @@ function Zo(e, t, n) { var r = Zl(e); if (n = { - lane: r, - action: n, - hasEagerState: !1, - eagerState: null, - next: null - }, Jo(e)) es(t, n); + lane: r, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }, Jo(e)) es(t, n); else if (null !== (n = Ei(e, t, n, r))) { Xl(n, e, r, Ql()), ts(n, t, r) } @@ -3381,7 +3381,7 @@ useContext: xi, useEffect: Fo, useImperativeHandle: function(e, t, n) { - return n = null !== n && void 0 !== n ? n.concat([e]) : null, Mo(4194308, 4, Go.bind(null, t, e), n) + return n = null !== n && void 0 !== n ? n.concat([e]) : null, Mo(4194308, 4, Bo.bind(null, t, e), n) }, useLayoutEffect: function(e, t) { return Mo(4194308, 4, e, t) @@ -3435,7 +3435,7 @@ value: n, getSnapshot: t }; - return a.queue = o, Fo(To.bind(null, r, o, e), [e]), r.flags |= 2048, jo(9, Co.bind(null, r, o, n, t), void 0, null), n + return a.queue = o, Fo(Co.bind(null, r, o, e), [e]), r.flags |= 2048, Lo(9, Ro.bind(null, r, o, n, t), void 0, null), n }, useId: function() { var e = wo(), @@ -3455,10 +3455,10 @@ useEffect: Uo, useImperativeHandle: qo, useInsertionEffect: Vo, - useLayoutEffect: Bo, + useLayoutEffect: Go, useMemo: Ho, useReducer: So, - useRef: Lo, + useRef: jo, useState: function() { return So(Eo) }, @@ -3481,10 +3481,10 @@ useEffect: Uo, useImperativeHandle: qo, useInsertionEffect: Vo, - useLayoutEffect: Bo, + useLayoutEffect: Go, useMemo: Ho, useReducer: Oo, - useRef: Lo, + useRef: jo, useState: function() { return Oo(Eo) }, @@ -3564,7 +3564,7 @@ } var i = e.stateNode; return null !== i && "function" === typeof i.componentDidCatch && (n.callback = function() { - ls(0, t), "function" !== typeof r && (null === Bl ? Bl = new Set([this]) : Bl.add(this)); + ls(0, t), "function" !== typeof r && (null === Gl ? Gl = new Set([this]) : Gl.add(this)); var e = t.stack; this.componentDidCatch(t.value, { componentStack: null !== e ? e : "" @@ -3592,7 +3592,7 @@ } function fs(e, t, n, r, a) { - return 0 === (1 & e.mode) ? (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, 1 === n.tag && (null === n.alternate ? n.tag = 17 : ((t = Ai(-1, 1)).tag = 2, Ci(n, t, 1))), n.lanes |= 1), e) : (e.flags |= 65536, e.lanes = a, e) + return 0 === (1 & e.mode) ? (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, 1 === n.tag && (null === n.alternate ? n.tag = 17 : ((t = Ai(-1, 1)).tag = 2, Ri(n, t, 1))), n.lanes |= 1), e) : (e.flags |= 65536, e.lanes = a, e) } var ms = b.ReactCurrentOwner, gs = !1; @@ -3610,7 +3610,7 @@ function _s(e, t, n, r, a) { if (null === e) { var i = n.type; - return "function" !== typeof i || Ic(i) || void 0 !== i.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = Cc(n.type, null, r, t, t.mode, a)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = i, bs(e, t, i, r, a)) + return "function" !== typeof i || Ic(i) || void 0 !== i.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = Rc(n.type, null, r, t, t.mode, a)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = i, bs(e, t, i, r, a)) } if (i = e.child, 0 === (e.lanes & a)) { var o = i.memoizedProps; @@ -3669,7 +3669,7 @@ function Es(e, t, n, r, a) { if (Ia(n)) { var i = !0; - Ra(t) + Ta(t) } else i = !1; if (bi(t, a), null === t.stateNode) Fs(e, t), Fi(t, n, r), Vi(t, n, r, a), r = !0; else if (null === e) { @@ -3683,13 +3683,13 @@ d = "function" === typeof u || "function" === typeof o.getSnapshotBeforeUpdate; d || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== r || l !== c) && Ui(t, o, r, c), Oi = !1; var p = t.memoizedState; - o.state = p, Di(t, r, o, a), l = t.memoizedState, s !== r || p !== l || Sa.current || Oi ? ("function" === typeof u && (Li(t, n, u, r), l = t.memoizedState), (s = Oi || zi(t, n, s, r, p, l, c)) ? (d || "function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), o.props = r, o.state = l, o.context = c, r = s) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), r = !1) + o.state = p, Di(t, r, o, a), l = t.memoizedState, s !== r || p !== l || Sa.current || Oi ? ("function" === typeof u && (ji(t, n, u, r), l = t.memoizedState), (s = Oi || zi(t, n, s, r, p, l, c)) ? (d || "function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), o.props = r, o.state = l, o.context = c, r = s) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), r = !1) } else { o = t.stateNode, Ii(e, t), s = t.memoizedProps, c = t.type === t.elementType ? s : pi(t.type, s), o.props = c, d = t.pendingProps, p = o.context, "object" === typeof(l = n.contextType) && null !== l ? l = xi(l) : l = Pa(t, l = Ia(n) ? Oa : Ea.current); var h = n.getDerivedStateFromProps; (u = "function" === typeof h || "function" === typeof o.getSnapshotBeforeUpdate) || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== d || p !== l) && Ui(t, o, r, l), Oi = !1, p = t.memoizedState, o.state = p, Di(t, r, o, a); var f = t.memoizedState; - s !== d || p !== f || Sa.current || Oi ? ("function" === typeof h && (Li(t, n, h, r), f = t.memoizedState), (c = Oi || zi(t, n, c, r, p, f, l) || !1) ? (u || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = f), o.props = r, o.state = f, o.context = l, r = c) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), r = !1) + s !== d || p !== f || Sa.current || Oi ? ("function" === typeof h && (ji(t, n, h, r), f = t.memoizedState), (c = Oi || zi(t, n, c, r, p, f, l) || !1) ? (u || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = f), o.props = r, o.state = f, o.context = l, r = c) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), r = !1) } return Ss(e, t, n, r, i, a) } @@ -3705,19 +3705,19 @@ function Os(e) { var t = e.stateNode; - t.pendingContext ? Ca(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Ca(0, t.context, !1), Ji(e, t.containerInfo) + t.pendingContext ? Ra(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Ra(0, t.context, !1), Ji(e, t.containerInfo) } function Ps(e, t, n, r, a) { return ci(), ui(a), t.flags |= 256, vs(e, t, n, r), t.child } - var Is, As, Cs, Ts = { + var Is, As, Rs, Cs = { dehydrated: null, treeContext: null, retryLane: 0 }; - function Rs(e) { + function Ts(e) { return { baseLanes: e, cachePool: null, @@ -3733,16 +3733,16 @@ if ((r = l) || (r = (null === e || null !== e.memoizedState) && 0 !== (2 & o)), r ? (s = !0, t.flags &= -129) : null !== e && null === e.memoizedState || (o |= 1), wa(ro, 1 & o), null === e) return ii(t), null !== (e = t.memoizedState) && null !== (e = e.dehydrated) ? (0 === (1 & t.mode) ? t.lanes = 1 : "$!" === e.data ? t.lanes = 8 : t.lanes = 1073741824, null) : (l = a.children, e = a.fallback, s ? (a = t.mode, s = t.child, l = { mode: "hidden", children: l - }, 0 === (1 & a) && null !== s ? (s.childLanes = 0, s.pendingProps = l) : s = Rc(l, a, 0, null), e = Tc(e, a, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = Rs(n), t.memoizedState = Ts, e) : Ns(t, l)); + }, 0 === (1 & a) && null !== s ? (s.childLanes = 0, s.pendingProps = l) : s = Tc(l, a, 0, null), e = Cc(e, a, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = Ts(n), t.memoizedState = Cs, e) : Ns(t, l)); if (null !== (o = e.memoizedState) && null !== (r = o.dehydrated)) return function(e, t, n, r, a, o, s) { - if (n) return 256 & t.flags ? (t.flags &= -257, js(e, t, s, r = ss(Error(i(422))))) : null !== t.memoizedState ? (t.child = e.child, t.flags |= 128, null) : (o = r.fallback, a = t.mode, r = Rc({ + if (n) return 256 & t.flags ? (t.flags &= -257, Ls(e, t, s, r = ss(Error(i(422))))) : null !== t.memoizedState ? (t.child = e.child, t.flags |= 128, null) : (o = r.fallback, a = t.mode, r = Tc({ mode: "visible", children: r.children - }, a, 0, null), (o = Tc(o, a, s, null)).flags |= 2, r.return = t, o.return = t, r.sibling = o, t.child = r, 0 !== (1 & t.mode) && Wi(t, e.child, null, s), t.child.memoizedState = Rs(s), t.memoizedState = Ts, o); - if (0 === (1 & t.mode)) return js(e, t, s, null); + }, a, 0, null), (o = Cc(o, a, s, null)).flags |= 2, r.return = t, o.return = t, r.sibling = o, t.child = r, 0 !== (1 & t.mode) && Wi(t, e.child, null, s), t.child.memoizedState = Ts(s), t.memoizedState = Cs, o); + if (0 === (1 & t.mode)) return Ls(e, t, s, null); if ("$!" === a.data) { if (r = a.nextSibling && a.nextSibling.dataset) var l = r.dgst; - return r = l, js(e, t, s, r = ss(o = Error(i(419)), r, void 0)) + return r = l, Ls(e, t, s, r = ss(o = Error(i(419)), r, void 0)) } if (l = 0 !== (s & e.childLanes), gs || l) { if (null !== (r = Sl)) { @@ -3784,9 +3784,9 @@ } 0 !== (a = 0 !== (a & (r.suspendedLanes | s)) ? 0 : a) && a !== o.retryLane && (o.retryLane = a, Si(e, a), Xl(r, e, a, -1)) } - return dc(), js(e, t, s, r = ss(Error(i(421)))) + return dc(), Ls(e, t, s, r = ss(Error(i(421)))) } - return "$?" === a.data ? (t.flags |= 128, t.child = e.child, t = kc.bind(null, e), a._reactRetry = t, null) : (e = o.treeContext, Ja = ia(a.nextSibling), Xa = t, ei = !0, ti = null, null !== e && (Ga[qa++] = Wa, Ga[qa++] = Ha, Ga[qa++] = $a, Wa = e.id, Ha = e.overflow, $a = t), t = Ns(t, r.children), t.flags |= 4096, t) + return "$?" === a.data ? (t.flags |= 128, t.child = e.child, t = kc.bind(null, e), a._reactRetry = t, null) : (e = o.treeContext, Ja = ia(a.nextSibling), Xa = t, ei = !0, ti = null, null !== e && (Ba[qa++] = Wa, Ba[qa++] = Ha, Ba[qa++] = $a, Wa = e.id, Ha = e.overflow, $a = t), t = Ns(t, r.children), t.flags |= 4096, t) }(e, t, l, a, r, o, n); if (s) { s = a.fallback, l = t.mode, r = (o = e.child).sibling; @@ -3794,11 +3794,11 @@ mode: "hidden", children: a.children }; - return 0 === (1 & l) && t.child !== o ? ((a = t.child).childLanes = 0, a.pendingProps = c, t.deletions = null) : (a = Ac(o, c)).subtreeFlags = 14680064 & o.subtreeFlags, null !== r ? s = Ac(r, s) : (s = Tc(s, l, n, null)).flags |= 2, s.return = t, a.return = t, a.sibling = s, t.child = a, a = s, s = t.child, l = null === (l = e.child.memoizedState) ? Rs(n) : { + return 0 === (1 & l) && t.child !== o ? ((a = t.child).childLanes = 0, a.pendingProps = c, t.deletions = null) : (a = Ac(o, c)).subtreeFlags = 14680064 & o.subtreeFlags, null !== r ? s = Ac(r, s) : (s = Cc(s, l, n, null)).flags |= 2, s.return = t, a.return = t, a.sibling = s, t.child = a, a = s, s = t.child, l = null === (l = e.child.memoizedState) ? Ts(n) : { baseLanes: l.baseLanes | n, cachePool: null, transitions: l.transitions - }, s.memoizedState = l, s.childLanes = e.childLanes & ~n, t.memoizedState = Ts, a + }, s.memoizedState = l, s.childLanes = e.childLanes & ~n, t.memoizedState = Cs, a } return e = (s = e.child).sibling, a = Ac(s, { mode: "visible", @@ -3807,17 +3807,17 @@ } function Ns(e, t) { - return (t = Rc({ + return (t = Tc({ mode: "visible", children: t }, e.mode, 0, null)).return = e, e.child = t } - function js(e, t, n, r) { + function Ls(e, t, n, r) { return null !== r && ui(r), Wi(t, e.child, null, n), (e = Ns(t, t.pendingProps.children)).flags |= 2, t.memoizedState = null, e } - function Ls(e, t, n) { + function js(e, t, n) { e.lanes |= t; var r = e.alternate; null !== r && (r.lanes |= t), _i(e.return, t, n) @@ -3842,8 +3842,8 @@ if (vs(e, t, r.children, n), 0 !== (2 & (r = ro.current))) r = 1 & r | 2, t.flags |= 128; else { if (null !== e && 0 !== (128 & e.flags)) e: for (e = t.child; null !== e;) { - if (13 === e.tag) null !== e.memoizedState && Ls(e, n, t); - else if (19 === e.tag) Ls(e, n, t); + if (13 === e.tag) null !== e.memoizedState && js(e, n, t); + else if (19 === e.tag) js(e, n, t); else if (null !== e.child) { e.child.return = e, e = e.child; continue @@ -3887,7 +3887,7 @@ } function Us(e, t, n) { - if (null !== e && (t.dependencies = e.dependencies), Rl |= t.lanes, 0 === (n & t.childLanes)) return null; + if (null !== e && (t.dependencies = e.dependencies), Tl |= t.lanes, 0 === (n & t.childLanes)) return null; if (null !== e && t.child !== e.child) throw Error(i(153)); if (null !== t.child) { for (n = Ac(e = t.child, e.pendingProps), t.child = n, n.return = t; null !== e.sibling;) e = e.sibling, (n = n.sibling = Ac(e, e.pendingProps)).return = t; @@ -3910,7 +3910,7 @@ } } - function Bs(e) { + function Gs(e) { var t = null !== e.alternate && e.alternate.child === e.child, n = 0, r = 0; @@ -3921,7 +3921,7 @@ return e.subtreeFlags |= r, e.childLanes = n, t } - function Gs(e, t, n) { + function Bs(e, t, n) { var r = t.pendingProps; switch (Za(t), t.tag) { case 2: @@ -3934,12 +3934,12 @@ case 12: case 9: case 14: - return Bs(t), null; + return Gs(t), null; case 1: case 17: - return Ia(t.type) && Aa(), Bs(t), null; + return Ia(t.type) && Aa(), Gs(t), null; case 3: - return r = t.stateNode, eo(), xa(Sa), xa(Ea), oo(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (si(t) ? t.flags |= 4 : null === e || e.memoizedState.isDehydrated && 0 === (256 & t.flags) || (t.flags |= 1024, null !== ti && (nc(ti), ti = null))), Bs(t), null; + return r = t.stateNode, eo(), xa(Sa), xa(Ea), oo(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (si(t) ? t.flags |= 4 : null === e || e.memoizedState.isDehydrated && 0 === (256 & t.flags) || (t.flags |= 1024, null !== ti && (nc(ti), ti = null))), Gs(t), null; case 5: no(t); var a = Xi(Zi.current); @@ -3947,50 +3947,50 @@ else { if (!r) { if (null === t.stateNode) throw Error(i(166)); - return Bs(t), null + return Gs(t), null } if (e = Xi(Ki.current), si(t)) { r = t.stateNode, n = t.type; var o = t.memoizedProps; switch (r[la] = t, r[ca] = o, e = 0 !== (1 & t.mode), n) { case "dialog": - jr("cancel", r), jr("close", r); + Lr("cancel", r), Lr("close", r); break; case "iframe": case "object": case "embed": - jr("load", r); + Lr("load", r); break; case "video": case "audio": - for (a = 0; a < Tr.length; a++) jr(Tr[a], r); + for (a = 0; a < Cr.length; a++) Lr(Cr[a], r); break; case "source": - jr("error", r); + Lr("error", r); break; case "img": case "image": case "link": - jr("error", r), jr("load", r); + Lr("error", r), Lr("load", r); break; case "details": - jr("toggle", r); + Lr("toggle", r); break; case "input": - Q(r, o), jr("invalid", r); + Q(r, o), Lr("invalid", r); break; case "select": r._wrapperState = { wasMultiple: !!o.multiple - }, jr("invalid", r); + }, Lr("invalid", r); break; case "textarea": - ae(r, o), jr("invalid", r) + ae(r, o), Lr("invalid", r) } for (var l in ve(n, o), a = null, o) if (o.hasOwnProperty(l)) { var c = o[l]; - "children" === l ? "string" === typeof c ? r.textContent !== c && (!0 !== o.suppressHydrationWarning && Yr(r.textContent, c, e), a = ["children", c]) : "number" === typeof c && r.textContent !== "" + c && (!0 !== o.suppressHydrationWarning && Yr(r.textContent, c, e), a = ["children", "" + c]) : s.hasOwnProperty(l) && null != c && "onScroll" === l && jr("scroll", r) + "children" === l ? "string" === typeof c ? r.textContent !== c && (!0 !== o.suppressHydrationWarning && Yr(r.textContent, c, e), a = ["children", c]) : "number" === typeof c && r.textContent !== "" + c && (!0 !== o.suppressHydrationWarning && Yr(r.textContent, c, e), a = ["children", "" + c]) : s.hasOwnProperty(l) && null != c && "onScroll" === l && Lr("scroll", r) } switch (n) { case "input": W(r), J(r, o, !0); @@ -4012,31 +4012,31 @@ e: { switch (l = ye(n, r), n) { case "dialog": - jr("cancel", e), jr("close", e), a = r; + Lr("cancel", e), Lr("close", e), a = r; break; case "iframe": case "object": case "embed": - jr("load", e), a = r; + Lr("load", e), a = r; break; case "video": case "audio": - for (a = 0; a < Tr.length; a++) jr(Tr[a], e); + for (a = 0; a < Cr.length; a++) Lr(Cr[a], e); a = r; break; case "source": - jr("error", e), a = r; + Lr("error", e), a = r; break; case "img": case "image": case "link": - jr("error", e), jr("load", e), a = r; + Lr("error", e), Lr("load", e), a = r; break; case "details": - jr("toggle", e), a = r; + Lr("toggle", e), a = r; break; case "input": - Q(e, r), a = K(e, r), jr("invalid", e); + Q(e, r), a = K(e, r), Lr("invalid", e); break; case "option": default: @@ -4047,15 +4047,15 @@ wasMultiple: !!r.multiple }, a = M({}, r, { value: void 0 - }), jr("invalid", e); + }), Lr("invalid", e); break; case "textarea": - ae(e, r), a = re(e, r), jr("invalid", e) + ae(e, r), a = re(e, r), Lr("invalid", e) } for (o in ve(n, a), c = a) if (c.hasOwnProperty(o)) { var u = c[o]; - "style" === o ? me(e, u) : "dangerouslySetInnerHTML" === o ? null != (u = u ? u.__html : void 0) && ue(e, u) : "children" === o ? "string" === typeof u ? ("textarea" !== n || "" !== u) && de(e, u) : "number" === typeof u && de(e, "" + u) : "suppressContentEditableWarning" !== o && "suppressHydrationWarning" !== o && "autoFocus" !== o && (s.hasOwnProperty(o) ? null != u && "onScroll" === o && jr("scroll", e) : null != u && _(e, o, u, l)) + "style" === o ? me(e, u) : "dangerouslySetInnerHTML" === o ? null != (u = u ? u.__html : void 0) && ue(e, u) : "children" === o ? "string" === typeof u ? ("textarea" !== n || "" !== u) && de(e, u) : "number" === typeof u && de(e, "" + u) : "suppressContentEditableWarning" !== o && "suppressHydrationWarning" !== o && "autoFocus" !== o && (s.hasOwnProperty(o) ? null != u && "onScroll" === o && Lr("scroll", e) : null != u && _(e, o, u, l)) } switch (n) { case "input": W(e), J(e, r, !1); @@ -4090,9 +4090,9 @@ } null !== t.ref && (t.flags |= 512, t.flags |= 2097152) } - return Bs(t), null; + return Gs(t), null; case 6: - if (e && null != t.stateNode) Cs(0, t, e.memoizedProps, r); + if (e && null != t.stateNode) Rs(0, t, e.memoizedProps, r); else { if ("string" !== typeof r && null === t.stateNode) throw Error(i(166)); if (n = Xi(Zi.current), Xi(Ki.current), si(t)) { @@ -4106,7 +4106,7 @@ o && (t.flags |= 4) } else(r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[la] = t, t.stateNode = r } - return Bs(t), null; + return Gs(t), null; case 13: if (xa(ro), r = t.memoizedState, null === e || null !== e.memoizedState && null !== e.memoizedState.dehydrated) { if (ei && null !== Ja && 0 !== (1 & t.mode) && 0 === (128 & t.flags)) li(), ci(), t.flags |= 98560, o = !1; @@ -4116,21 +4116,21 @@ if (!(o = null !== (o = t.memoizedState) ? o.dehydrated : null)) throw Error(i(317)); o[la] = t } else ci(), 0 === (128 & t.flags) && (t.memoizedState = null), t.flags |= 4; - Bs(t), o = !1 + Gs(t), o = !1 } else null !== ti && (nc(ti), ti = null), o = !0; if (!o) return 65536 & t.flags ? t : null } - return 0 !== (128 & t.flags) ? (t.lanes = n, t) : ((r = null !== r) !== (null !== e && null !== e.memoizedState) && r && (t.child.flags |= 8192, 0 !== (1 & t.mode) && (null === e || 0 !== (1 & ro.current) ? 0 === Cl && (Cl = 3) : dc())), null !== t.updateQueue && (t.flags |= 4), Bs(t), null); + return 0 !== (128 & t.flags) ? (t.lanes = n, t) : ((r = null !== r) !== (null !== e && null !== e.memoizedState) && r && (t.child.flags |= 8192, 0 !== (1 & t.mode) && (null === e || 0 !== (1 & ro.current) ? 0 === Rl && (Rl = 3) : dc())), null !== t.updateQueue && (t.flags |= 4), Gs(t), null); case 4: - return eo(), null === e && zr(t.stateNode.containerInfo), Bs(t), null; + return eo(), null === e && zr(t.stateNode.containerInfo), Gs(t), null; case 10: - return yi(t.type._context), Bs(t), null; + return yi(t.type._context), Gs(t), null; case 19: - if (xa(ro), null === (o = t.memoizedState)) return Bs(t), null; + if (xa(ro), null === (o = t.memoizedState)) return Gs(t), null; if (r = 0 !== (128 & t.flags), null === (l = o.rendering)) if (r) Vs(o, !1); else { - if (0 !== Cl || null !== e && 0 !== (128 & e.flags)) + if (0 !== Rl || null !== e && 0 !== (128 & e.flags)) for (e = t.child; null !== e;) { if (null !== (l = ao(e))) { for (t.flags |= 128, Vs(o, !1), null !== (r = l.updateQueue) && (t.updateQueue = r, t.flags |= 4), t.subtreeFlags = 0, r = n, n = t.child; null !== n;) e = r, (o = n).flags &= 14680066, null === (l = o.alternate) ? (o.childLanes = 0, o.lanes = e, o.child = null, o.subtreeFlags = 0, o.memoizedProps = null, o.memoizedState = null, o.updateQueue = null, o.dependencies = null, o.stateNode = null) : (o.childLanes = l.childLanes, o.lanes = l.lanes, o.child = l.child, o.subtreeFlags = 0, o.deletions = null, o.memoizedProps = l.memoizedProps, o.memoizedState = l.memoizedState, o.updateQueue = l.updateQueue, o.type = l.type, e = l.dependencies, o.dependencies = null === e ? null : { @@ -4146,14 +4146,14 @@ else { if (!r) if (null !== (e = ao(l))) { - if (t.flags |= 128, r = !0, null !== (n = e.updateQueue) && (t.updateQueue = n, t.flags |= 4), Vs(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ei) return Bs(t), null + if (t.flags |= 128, r = !0, null !== (n = e.updateQueue) && (t.updateQueue = n, t.flags |= 4), Vs(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ei) return Gs(t), null } else 2 * Qe() - o.renderingStartTime > zl && 1073741824 !== n && (t.flags |= 128, r = !0, Vs(o, !1), t.lanes = 4194304); o.isBackwards ? (l.sibling = t.child, t.child = l) : (null !== (n = o.last) ? n.sibling = l : t.child = l, o.last = l) } - return null !== o.tail ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = Qe(), t.sibling = null, n = ro.current, wa(ro, r ? 1 & n | 2 : 1 & n), t) : (Bs(t), null); + return null !== o.tail ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = Qe(), t.sibling = null, n = ro.current, wa(ro, r ? 1 & n | 2 : 1 & n), t) : (Gs(t), null); case 22: case 23: - return sc(), r = null !== t.memoizedState, null !== e && null !== e.memoizedState !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Il) && (Bs(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Bs(t), null; + return sc(), r = null !== t.memoizedState, null !== e && null !== e.memoizedState !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Il) && (Gs(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Gs(t), null; case 24: case 25: return null @@ -4238,13 +4238,13 @@ for (i in l) !l.hasOwnProperty(i) || c && c.hasOwnProperty(i) || (n || (n = {}), n[i] = ""); for (i in c) c.hasOwnProperty(i) && l[i] !== c[i] && (n || (n = {}), n[i] = c[i]) } else n || (o || (o = []), o.push(u, n)), n = c; - else "dangerouslySetInnerHTML" === u ? (c = c ? c.__html : void 0, l = l ? l.__html : void 0, null != c && l !== c && (o = o || []).push(u, c)) : "children" === u ? "string" !== typeof c && "number" !== typeof c || (o = o || []).push(u, "" + c) : "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && (s.hasOwnProperty(u) ? (null != c && "onScroll" === u && jr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(u, c)) + else "dangerouslySetInnerHTML" === u ? (c = c ? c.__html : void 0, l = l ? l.__html : void 0, null != c && l !== c && (o = o || []).push(u, c)) : "children" === u ? "string" !== typeof c && "number" !== typeof c || (o = o || []).push(u, "" + c) : "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && (s.hasOwnProperty(u) ? (null != c && "onScroll" === u && Lr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(u, c)) } n && (o = o || []).push("style", n); var u = o; (t.updateQueue = u) && (t.flags |= 4) } - }, Cs = function(e, t, n, r) { + }, Rs = function(e, t, n, r) { n !== r && (t.flags |= 4) }; var $s = !1, @@ -4842,20 +4842,20 @@ Pl = 0, Il = 0, Al = ba(0), - Cl = 0, - Tl = null, Rl = 0, + Cl = null, + Tl = 0, Dl = 0, Nl = 0, - jl = null, Ll = null, + jl = null, Ml = 0, zl = 1 / 0, Fl = null, Ul = !1, Vl = null, - Bl = null, - Gl = !1, + Gl = null, + Bl = !1, ql = null, $l = 0, Wl = 0, @@ -4873,7 +4873,7 @@ function Xl(e, t, n, r) { if (50 < Wl) throw Wl = 0, Hl = null, Error(i(185)); - gt(e, n, r), 0 !== (2 & El) && e === Sl || (e === Sl && (0 === (2 & El) && (Dl |= n), 4 === Cl && rc(e, Pl)), Jl(e, r), 1 === n && 0 === El && 0 === (1 & t.mode) && (zl = Qe() + 500, ja && za())) + gt(e, n, r), 0 !== (2 & El) && e === Sl || (e === Sl && (0 === (2 & El) && (Dl |= n), 4 === Rl && rc(e, Pl)), Jl(e, r), 1 === n && 0 === El && 0 === (1 & t.mode) && (zl = Qe() + 500, La && za())) } function Jl(e, t) { @@ -4889,7 +4889,7 @@ if (0 === r) null !== n && He(n), e.callbackNode = null, e.callbackPriority = 0; else if (t = r & -r, e.callbackPriority !== t) { if (null != n && He(n), 1 === t) 0 === e.tag ? function(e) { - ja = !0, Ma(e) + La = !0, Ma(e) }(ac.bind(null, e)) : Ma(ac.bind(null, e)), na((function() { 0 === (6 & El) && za() })), n = null; @@ -4932,47 +4932,47 @@ } catch (l) { cc(e, l) } - vi(), xl.current = o, El = a, null !== Ol ? t = 0 : (Sl = null, Pl = 0, t = Cl) + vi(), xl.current = o, El = a, null !== Ol ? t = 0 : (Sl = null, Pl = 0, t = Rl) } if (0 !== t) { - if (2 === t && (0 !== (a = ht(e)) && (r = a, t = tc(e, a))), 1 === t) throw n = Tl, lc(e, 0), rc(e, r), Jl(e, Qe()), n; + if (2 === t && (0 !== (a = ht(e)) && (r = a, t = tc(e, a))), 1 === t) throw n = Cl, lc(e, 0), rc(e, r), Jl(e, Qe()), n; if (6 === t) rc(e, r); else { if (a = e.current.alternate, 0 === (30 & r) && ! function(e) { - for (var t = e;;) { - if (16384 & t.flags) { - var n = t.updateQueue; - if (null !== n && null !== (n = n.stores)) - for (var r = 0; r < n.length; r++) { - var a = n[r], - i = a.getSnapshot; - a = a.value; - try { - if (!rr(i(), a)) return !1 - } catch (s) { - return !1 - } + for (var t = e;;) { + if (16384 & t.flags) { + var n = t.updateQueue; + if (null !== n && null !== (n = n.stores)) + for (var r = 0; r < n.length; r++) { + var a = n[r], + i = a.getSnapshot; + a = a.value; + try { + if (!rr(i(), a)) return !1 + } catch (s) { + return !1 } - } - if (n = t.child, 16384 & t.subtreeFlags && null !== n) n.return = t, t = n; - else { - if (t === e) break; - for (; null === t.sibling;) { - if (null === t.return || t.return === e) return !0; - t = t.return } - t.sibling.return = t.return, t = t.sibling - } } - return !0 - }(a) && (2 === (t = pc(e, r)) && (0 !== (o = ht(e)) && (r = o, t = tc(e, o))), 1 === t)) throw n = Tl, lc(e, 0), rc(e, r), Jl(e, Qe()), n; + if (n = t.child, 16384 & t.subtreeFlags && null !== n) n.return = t, t = n; + else { + if (t === e) break; + for (; null === t.sibling;) { + if (null === t.return || t.return === e) return !0; + t = t.return + } + t.sibling.return = t.return, t = t.sibling + } + } + return !0 + }(a) && (2 === (t = pc(e, r)) && (0 !== (o = ht(e)) && (r = o, t = tc(e, o))), 1 === t)) throw n = Cl, lc(e, 0), rc(e, r), Jl(e, Qe()), n; switch (e.finishedWork = a, e.finishedLanes = r, t) { case 0: case 1: throw Error(i(345)); case 2: case 5: - vc(e, Ll, Fl); + vc(e, jl, Fl); break; case 3: if (rc(e, r), (130023424 & r) === r && 10 < (t = Ml + 500 - Qe())) { @@ -4981,10 +4981,10 @@ Ql(), e.pingedLanes |= e.suspendedLanes & a; break } - e.timeoutHandle = Jr(vc.bind(null, e, Ll, Fl), t); + e.timeoutHandle = Jr(vc.bind(null, e, jl, Fl), t); break } - vc(e, Ll, Fl); + vc(e, jl, Fl); break; case 4: if (rc(e, r), (4194240 & r) === r) break; @@ -4993,10 +4993,10 @@ o = 1 << s, (s = t[s]) > a && (a = s), r &= ~o } if (r = a, 10 < (r = (120 > (r = Qe() - r) ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * bl(r / 1960)) - r)) { - e.timeoutHandle = Jr(vc.bind(null, e, Ll, Fl), r); + e.timeoutHandle = Jr(vc.bind(null, e, jl, Fl), r); break } - vc(e, Ll, Fl); + vc(e, jl, Fl); break; default: throw Error(i(329)) @@ -5007,12 +5007,12 @@ } function tc(e, t) { - var n = jl; - return e.current.memoizedState.isDehydrated && (lc(e, t).flags |= 256), 2 !== (e = pc(e, t)) && (t = Ll, Ll = n, null !== t && nc(t)), e + var n = Ll; + return e.current.memoizedState.isDehydrated && (lc(e, t).flags |= 256), 2 !== (e = pc(e, t)) && (t = jl, jl = n, null !== t && nc(t)), e } function nc(e) { - null === Ll ? Ll = e : Ll.push.apply(Ll, e) + null === jl ? jl = e : jl.push.apply(jl, e) } function rc(e, t) { @@ -5033,9 +5033,9 @@ var r = ht(e); 0 !== r && (t = r, n = tc(e, r)) } - if (1 === n) throw n = Tl, lc(e, 0), rc(e, t), Jl(e, Qe()), n; + if (1 === n) throw n = Cl, lc(e, 0), rc(e, t), Jl(e, Qe()), n; if (6 === n) throw Error(i(345)); - return e.finishedWork = e.current.alternate, e.finishedLanes = t, vc(e, Ll, Fl), Jl(e, Qe()), null + return e.finishedWork = e.current.alternate, e.finishedLanes = t, vc(e, jl, Fl), Jl(e, Qe()), null } function ic(e, t) { @@ -5044,7 +5044,7 @@ try { return e(t) } finally { - 0 === (El = n) && (zl = Qe() + 500, ja && za()) + 0 === (El = n) && (zl = Qe() + 500, La && za()) } } @@ -5097,7 +5097,7 @@ } n = n.return } - if (Sl = e, Ol = e = Ac(e.current, null), Pl = Il = t, Cl = 0, Tl = null, Nl = Dl = Rl = 0, Ll = jl = null, null !== wi) { + if (Sl = e, Ol = e = Ac(e.current, null), Pl = Il = t, Rl = 0, Cl = null, Nl = Dl = Tl = 0, jl = Ll = null, null !== wi) { for (t = 0; t < wi.length; t++) if (null !== (r = (n = wi[t]).interleaved)) { n.interleaved = null; @@ -5125,7 +5125,7 @@ fo = !1 } if (co = 0, ho = po = uo = null, mo = !1, go = 0, wl.current = null, null === n || null === n.return) { - Cl = 1, Tl = t, Ol = null; + Rl = 1, Cl = t, Ol = null; break } e: { @@ -5164,19 +5164,19 @@ } } o = c = os(c, l), - 4 !== Cl && (Cl = 2), - null === jl ? jl = [o] : jl.push(o), - o = s;do { + 4 !== Rl && (Rl = 2), + null === Ll ? Ll = [o] : Ll.push(o), + o = s;do { switch (o.tag) { case 3: - o.flags |= 65536, t &= -t, o.lanes |= t, Ri(o, us(0, c, t)); + o.flags |= 65536, t &= -t, o.lanes |= t, Ti(o, us(0, c, t)); break e; case 1: l = c; var y = o.type, _ = o.stateNode; - if (0 === (128 & o.flags) && ("function" === typeof y.getDerivedStateFromError || null !== _ && "function" === typeof _.componentDidCatch && (null === Bl || !Bl.has(_)))) { - o.flags |= 65536, t &= -t, o.lanes |= t, Ri(o, ds(o, l, t)); + if (0 === (128 & o.flags) && ("function" === typeof y.getDerivedStateFromError || null !== _ && "function" === typeof _.componentDidCatch && (null === Gl || !Gl.has(_)))) { + o.flags |= 65536, t &= -t, o.lanes |= t, Ti(o, ds(o, l, t)); break e } } @@ -5198,7 +5198,7 @@ } function dc() { - 0 !== Cl && 3 !== Cl && 2 !== Cl || (Cl = 4), null === Sl || 0 === (268435455 & Rl) && 0 === (268435455 & Dl) || rc(Sl, Pl) + 0 !== Rl && 3 !== Rl && 2 !== Rl || (Rl = 4), null === Sl || 0 === (268435455 & Tl) && 0 === (268435455 & Dl) || rc(Sl, Pl) } function pc(e, t) { @@ -5212,7 +5212,7 @@ cc(e, a) } if (vi(), El = n, xl.current = r, null !== Ol) throw Error(i(261)); - return Sl = null, Pl = 0, Cl + return Sl = null, Pl = 0, Rl } function hc() { @@ -5233,16 +5233,16 @@ do { var n = t.alternate; if (e = t.return, 0 === (32768 & t.flags)) { - if (null !== (n = Gs(n, t, Il))) return void(Ol = n) + if (null !== (n = Bs(n, t, Il))) return void(Ol = n) } else { if (null !== (n = qs(n, t))) return n.flags &= 32767, void(Ol = n); - if (null === e) return Cl = 6, void(Ol = null); + if (null === e) return Rl = 6, void(Ol = null); e.flags |= 32768, e.subtreeFlags = 0, e.deletions = null } if (null !== (t = t.sibling)) return void(Ol = t); Ol = t = e } while (null !== t); - 0 === Cl && (Cl = 5) + 0 === Rl && (Rl = 5) } function vc(e, t, n) { @@ -5262,24 +5262,24 @@ e.callbackNode = null, e.callbackPriority = 0; var o = n.lanes | n.childLanes; if (function(e, t) { - var n = e.pendingLanes & ~t; - e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements; - var r = e.eventTimes; - for (e = e.expirationTimes; 0 < n;) { - var a = 31 - it(n), - i = 1 << a; - t[a] = 0, r[a] = -1, e[a] = -1, n &= ~i - } - }(e, o), e === Sl && (Ol = Sl = null, Pl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Gl || (Gl = !0, Sc(et, (function() { - return yc(), null - }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { + var n = e.pendingLanes & ~t; + e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements; + var r = e.eventTimes; + for (e = e.expirationTimes; 0 < n;) { + var a = 31 - it(n), + i = 1 << a; + t[a] = 0, r[a] = -1, e[a] = -1, n &= ~i + } + }(e, o), e === Sl && (Ol = Sl = null, Pl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Bl || (Bl = !0, Sc(et, (function() { + return yc(), null + }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { o = kl.transition, kl.transition = null; var s = yt; yt = 1; var l = El; El |= 4, wl.current = null, function(e, t) { - if (Qr = Gt, cr(e = lr())) { + if (Qr = Bt, cr(e = lr())) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd @@ -5325,9 +5325,9 @@ } } else n = null; for (Zr = { - focusedElem: e, - selectionRange: n - }, Gt = !1, Ys = t; null !== Ys;) + focusedElem: e, + selectionRange: n + }, Bt = !1, Ys = t; null !== Ys;) if (e = (t = Ys).child, 0 !== (1028 & t.subtreeFlags) && null !== e) e.return = t, Ys = e; else for (; null !== Ys;) { @@ -5369,13 +5369,13 @@ Ys = t.return } m = Zs, Zs = !1 - }(e, n), pl(n, e), ur(Zr), Gt = !!Qr, Zr = Qr = null, e.current = n, fl(n, e, a), Ke(), El = l, yt = s, kl.transition = o + }(e, n), pl(n, e), ur(Zr), Bt = !!Qr, Zr = Qr = null, e.current = n, fl(n, e, a), Ke(), El = l, yt = s, kl.transition = o } else e.current = n; - if (Gl && (Gl = !1, ql = e, $l = a), o = e.pendingLanes, 0 === o && (Bl = null), function(e) { - if (at && "function" === typeof at.onCommitFiberRoot) try { - at.onCommitFiberRoot(rt, e, void 0, 128 === (128 & e.current.flags)) - } catch (t) {} - }(n.stateNode), Jl(e, Qe()), null !== t) + if (Bl && (Bl = !1, ql = e, $l = a), o = e.pendingLanes, 0 === o && (Gl = null), function(e) { + if (at && "function" === typeof at.onCommitFiberRoot) try { + at.onCommitFiberRoot(rt, e, void 0, 128 === (128 & e.current.flags)) + } catch (t) {} + }(n.stateNode), Jl(e, Qe()), null !== t) for (r = e.onRecoverableError, n = 0; n < t.length; n++) a = t[n], r(a.value, { componentStack: a.stack, digest: a.digest @@ -5504,7 +5504,7 @@ } function _c(e, t, n) { - e = Ci(e, t = us(0, t = os(n, t), 1), 1), t = Ql(), null !== e && (gt(e, 1, t), Jl(e, t)) + e = Ri(e, t = us(0, t = os(n, t), 1), 1), t = Ql(), null !== e && (gt(e, 1, t), Jl(e, t)) } function bc(e, t, n) { @@ -5517,8 +5517,8 @@ } if (1 === t.tag) { var r = t.stateNode; - if ("function" === typeof t.type.getDerivedStateFromError || "function" === typeof r.componentDidCatch && (null === Bl || !Bl.has(r))) { - t = Ci(t, e = ds(t, e = os(n, e), 1), 1), e = Ql(), null !== t && (gt(t, 1, e), Jl(t, e)); + if ("function" === typeof t.type.getDerivedStateFromError || "function" === typeof r.componentDidCatch && (null === Gl || !Gl.has(r))) { + t = Ri(t, e = ds(t, e = os(n, e), 1), 1), e = Ql(), null !== t && (gt(t, 1, e), Jl(t, e)); break } } @@ -5528,7 +5528,7 @@ function xc(e, t, n) { var r = e.pingCache; - null !== r && r.delete(t), t = Ql(), e.pingedLanes |= e.suspendedLanes & n, Sl === e && (Pl & n) === n && (4 === Cl || 3 === Cl && (130023424 & Pl) === Pl && 500 > Qe() - Ml ? lc(e, 0) : Nl |= n), Jl(e, t) + null !== r && r.delete(t), t = Ql(), e.pingedLanes |= e.suspendedLanes & n, Sl === e && (Pl & n) === n && (4 === Rl || 3 === Rl && (130023424 & Pl) === Pl && 500 > Qe() - Ml ? lc(e, 0) : Nl |= n), Jl(e, t) } function wc(e, t) { @@ -5584,52 +5584,52 @@ }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n } - function Cc(e, t, n, r, a, o) { + function Rc(e, t, n, r, a, o) { var s = 2; if (r = e, "function" === typeof e) Ic(e) && (s = 1); else if ("string" === typeof e) s = 5; else e: switch (e) { - case k: - return Tc(n.children, a, o, t); - case E: - s = 8, a |= 8; - break; - case S: - return (e = Pc(12, n, t, 2 | a)).elementType = S, e.lanes = o, e; - case A: - return (e = Pc(13, n, t, a)).elementType = A, e.lanes = o, e; - case C: - return (e = Pc(19, n, t, a)).elementType = C, e.lanes = o, e; - case D: - return Rc(n, a, o, t); - default: - if ("object" === typeof e && null !== e) switch (e.$$typeof) { - case O: - s = 10; - break e; - case P: - s = 9; - break e; - case I: - s = 11; - break e; - case T: - s = 14; - break e; - case R: - s = 16, r = null; - break e - } - throw Error(i(130, null == e ? e : typeof e, "")) - } + case k: + return Cc(n.children, a, o, t); + case E: + s = 8, a |= 8; + break; + case S: + return (e = Pc(12, n, t, 2 | a)).elementType = S, e.lanes = o, e; + case A: + return (e = Pc(13, n, t, a)).elementType = A, e.lanes = o, e; + case R: + return (e = Pc(19, n, t, a)).elementType = R, e.lanes = o, e; + case D: + return Tc(n, a, o, t); + default: + if ("object" === typeof e && null !== e) switch (e.$$typeof) { + case O: + s = 10; + break e; + case P: + s = 9; + break e; + case I: + s = 11; + break e; + case C: + s = 14; + break e; + case T: + s = 16, r = null; + break e + } + throw Error(i(130, null == e ? e : typeof e, "")) + } return (t = Pc(s, n, t, a)).elementType = e, t.type = r, t.lanes = o, t } - function Tc(e, t, n, r) { + function Cc(e, t, n, r) { return (e = Pc(7, e, r, t)).lanes = n, e } - function Rc(e, t, n, r) { + function Tc(e, t, n, r) { return (e = Pc(22, e, r, t)).elementType = D, e.lanes = n, e.stateNode = { isHidden: !1 }, e @@ -5647,12 +5647,12 @@ }, t } - function jc(e, t, n, r, a) { + function Lc(e, t, n, r, a) { this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = mt(0), this.expirationTimes = mt(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = mt(0), this.identifierPrefix = r, this.onRecoverableError = a, this.mutableSourceEagerHydrationData = null } - function Lc(e, t, n, r, a, i, o, s, l) { - return e = new jc(e, t, n, s, l), 1 === t ? (t = 1, !0 === i && (t |= 8)) : t = 0, i = Pc(3, null, null, t), e.current = i, i.stateNode = e, i.memoizedState = { + function jc(e, t, n, r, a, i, o, s, l) { + return e = new Lc(e, t, n, s, l), 1 === t ? (t = 1, !0 === i && (t |= 8)) : t = 0, i = Pc(3, null, null, t), e.current = i, i.stateNode = e, i.memoizedState = { element: r, isDehydrated: n, cache: null, @@ -5693,13 +5693,13 @@ } if (1 === e.tag) { var n = e.type; - if (Ia(n)) return Ta(e, n, t) + if (Ia(n)) return Ca(e, n, t) } return t } function Fc(e, t, n, r, a, i, o, s, l) { - return (e = Lc(n, r, !0, e, 0, i, 0, s, l)).context = zc(null), n = e.current, (i = Ai(r = Ql(), a = Zl(n))).callback = void 0 !== t && null !== t ? t : null, Ci(n, i, a), e.current.lanes = a, gt(e, a, r), Jl(e, r), e + return (e = jc(n, r, !0, e, 0, i, 0, s, l)).context = zc(null), n = e.current, (i = Ai(r = Ql(), a = Zl(n))).callback = void 0 !== t && null !== t ? t : null, Ri(n, i, a), e.current.lanes = a, gt(e, a, r), Jl(e, r), e } function Uc(e, t, n, r) { @@ -5708,22 +5708,22 @@ o = Zl(a); return n = zc(n), null === t.context ? t.context = n : t.pendingContext = n, (t = Ai(i, o)).payload = { element: e - }, null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = Ci(a, t, o)) && (Xl(e, a, o, i), Ti(e, a, o)), o + }, null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = Ri(a, t, o)) && (Xl(e, a, o, i), Ci(e, a, o)), o } function Vc(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null } - function Bc(e, t) { + function Gc(e, t) { if (null !== (e = e.memoizedState) && null !== e.dehydrated) { var n = e.retryLane; e.retryLane = 0 !== n && n < t ? n : t } } - function Gc(e, t) { - Bc(e, t), (e = e.alternate) && Bc(e, t) + function Bc(e, t) { + Gc(e, t), (e = e.alternate) && Gc(e, t) } _l = function(e, t, n) { if (null !== e) @@ -5739,7 +5739,7 @@ to(t); break; case 1: - Ia(t.type) && Ra(t); + Ia(t.type) && Ta(t); break; case 4: Ji(t, t.stateNode.containerInfo); @@ -5768,7 +5768,7 @@ }(e, t, n); gs = 0 !== (131072 & e.flags) } - else gs = !1, ei && 0 !== (1048576 & t.flags) && Ka(t, Ba, t.index); + else gs = !1, ei && 0 !== (1048576 & t.flags) && Ka(t, Ga, t.index); switch (t.lanes = 0, t.tag) { case 2: var r = t.type; @@ -5776,18 +5776,18 @@ var a = Pa(t, Ea.current); bi(t, n), a = bo(null, t, r, e, a, n); var o = xo(); - return t.flags |= 1, "object" === typeof a && null !== a && "function" === typeof a.render && void 0 === a.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ia(r) ? (o = !0, Ra(t)) : o = !1, t.memoizedState = null !== a.state && void 0 !== a.state ? a.state : null, Pi(t), a.updater = Mi, t.stateNode = a, a._reactInternals = t, Vi(t, r, e, n), t = Ss(null, t, r, !0, o, n)) : (t.tag = 0, ei && o && Qa(t), vs(null, t, a, n), t = t.child), t; + return t.flags |= 1, "object" === typeof a && null !== a && "function" === typeof a.render && void 0 === a.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ia(r) ? (o = !0, Ta(t)) : o = !1, t.memoizedState = null !== a.state && void 0 !== a.state ? a.state : null, Pi(t), a.updater = Mi, t.stateNode = a, a._reactInternals = t, Vi(t, r, e, n), t = Ss(null, t, r, !0, o, n)) : (t.tag = 0, ei && o && Qa(t), vs(null, t, a, n), t = t.child), t; case 16: r = t.elementType; e: { switch (Fs(e, t), e = t.pendingProps, r = (a = r._init)(r._payload), t.type = r, a = t.tag = function(e) { - if ("function" === typeof e) return Ic(e) ? 1 : 0; - if (void 0 !== e && null !== e) { - if ((e = e.$$typeof) === I) return 11; - if (e === T) return 14 - } - return 2 - }(r), e = pi(r, e), a) { + if ("function" === typeof e) return Ic(e) ? 1 : 0; + if (void 0 !== e && null !== e) { + if ((e = e.$$typeof) === I) return 11; + if (e === C) return 14 + } + return 2 + }(r), e = pi(r, e), a) { case 0: t = ks(null, t, r, e, n); break e; @@ -5811,18 +5811,18 @@ case 3: e: { if (Os(t), null === e) throw Error(i(387));r = t.pendingProps, - a = (o = t.memoizedState).element, - Ii(e, t), - Di(t, r, null, n); + a = (o = t.memoizedState).element, + Ii(e, t), + Di(t, r, null, n); var s = t.memoizedState; if (r = s.element, o.isDehydrated) { if (o = { - element: r, - isDehydrated: !1, - cache: s.cache, - pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, - transitions: s.transitions - }, t.updateQueue.baseState = o, t.memoizedState = o, 256 & t.flags) { + element: r, + isDehydrated: !1, + cache: s.cache, + pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, + transitions: s.transitions + }, t.updateQueue.baseState = o, t.memoizedState = o, 256 & t.flags) { t = Ps(e, t, r, n, a = os(Error(i(423)), t)); break e } @@ -5905,7 +5905,7 @@ o = s } vs(e, t, a.children, n), - t = t.child + t = t.child } return t; case 9: @@ -5915,7 +5915,7 @@ case 15: return bs(e, t, t.type, t.pendingProps, n); case 17: - return r = t.type, a = t.pendingProps, a = t.elementType === r ? a : pi(r, a), Fs(e, t), t.tag = 1, Ia(r) ? (e = !0, Ra(t)) : e = !1, bi(t, n), Fi(t, r, a), Vi(t, r, a, n), Ss(null, t, r, !0, e, n); + return r = t.type, a = t.pendingProps, a = t.elementType === r ? a : pi(r, a), Fs(e, t), t.tag = 1, Ia(r) ? (e = !0, Ta(t)) : e = !1, bi(t, n), Fi(t, r, a), Vi(t, r, a, n), Ss(null, t, r, !0, e, n); case 19: return zs(e, t, n); case 22: @@ -5977,7 +5977,7 @@ s.call(e) } } - var l = Lc(e, 0, !1, null, 0, !1, 0, "", Kc); + var l = jc(e, 0, !1, null, 0, !1, 0, "", Kc); return e._reactRootContainer = l, e[ua] = l.current, zr(8 === e.nodeType ? e.parentNode : e), oc((function() { Uc(t, l, n, r) })), l @@ -6005,8 +6005,8 @@ target: e, priority: t }; - for (var n = 0; n < Rt.length && 0 !== t && t < Rt[n].priority; n++); - Rt.splice(n, 0, e), 0 === n && Lt(e) + for (var n = 0; n < Tt.length && 0 !== t && t < Tt[n].priority; n++); + Tt.splice(n, 0, e), 0 === n && jt(e) } }, bt = function(e) { switch (e.tag) { @@ -6024,20 +6024,20 @@ var n = Ql(); Xl(t, e, 1, n) } - })), Gc(e, 1) + })), Bc(e, 1) } }, xt = function(e) { if (13 === e.tag) { var t = Si(e, 134217728); if (null !== t) Xl(t, e, 134217728, Ql()); - Gc(e, 134217728) + Bc(e, 134217728) } }, wt = function(e) { if (13 === e.tag) { var t = Zl(e), n = Si(e, t); if (null !== n) Xl(n, e, t, Ql()); - Gc(e, t) + Bc(e, t) } }, kt = function() { return yt @@ -6123,7 +6123,7 @@ var n = !1, r = "", a = qc; - return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (a = t.onRecoverableError)), t = Lc(e, 1, !1, null, 0, n, 0, r, a), e[ua] = t.current, zr(8 === e.nodeType ? e.parentNode : e), new $c(t) + return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (a = t.onRecoverableError)), t = jc(e, 1, !1, null, 0, n, 0, r, a), e[ua] = t.current, zr(8 === e.nodeType ? e.parentNode : e), new $c(t) }, t.findDOMNode = function(e) { if (null == e) return null; if (1 === e.nodeType) return e; @@ -6339,14 +6339,14 @@ var u = i + I(s = e[c], c); l += A(s, t, a, u, o) } else if (u = function(e) { - return null === e || "object" !== typeof e ? null : "function" === typeof(e = h && e[h] || e["@@iterator"]) ? e : null - }(e), "function" === typeof u) - for (e = u.call(e), c = 0; !(s = e.next()).done;) l += A(s = s.value, t, a, u = i + I(s, c++), o); - else if ("object" === s) throw t = String(e), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); + return null === e || "object" !== typeof e ? null : "function" === typeof(e = h && e[h] || e["@@iterator"]) ? e : null + }(e), "function" === typeof u) + for (e = u.call(e), c = 0; !(s = e.next()).done;) l += A(s = s.value, t, a, u = i + I(s, c++), o); + else if ("object" === s) throw t = String(e), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); return l } - function C(e, t, n) { + function R(e, t, n) { if (null == e) return e; var r = [], a = 0; @@ -6355,7 +6355,7 @@ })), r } - function T(e) { + function C(e) { if (-1 === e._status) { var t = e._result; (t = t()).then((function(t) { @@ -6367,32 +6367,32 @@ if (1 === e._status) return e._result.default; throw e._result } - var R = { + var T = { current: null }, D = { transition: null }, N = { - ReactCurrentDispatcher: R, + ReactCurrentDispatcher: T, ReactCurrentBatchConfig: D, ReactCurrentOwner: k }; t.Children = { - map: C, + map: R, forEach: function(e, t, n) { - C(e, (function() { + R(e, (function() { t.apply(this, arguments) }), n) }, count: function(e) { var t = 0; - return C(e, (function() { + return R(e, (function() { t++ })), t }, toArray: function(e) { - return C(e, (function(e) { + return R(e, (function(e) { return e })) || [] }, @@ -6458,7 +6458,7 @@ _status: -1, _result: e }, - _init: T + _init: C } }, t.memo = function(e, t) { return { @@ -6477,33 +6477,33 @@ }, t.unstable_act = function() { throw Error("act(...) is not supported in production builds of React.") }, t.useCallback = function(e, t) { - return R.current.useCallback(e, t) + return T.current.useCallback(e, t) }, t.useContext = function(e) { - return R.current.useContext(e) + return T.current.useContext(e) }, t.useDebugValue = function() {}, t.useDeferredValue = function(e) { - return R.current.useDeferredValue(e) + return T.current.useDeferredValue(e) }, t.useEffect = function(e, t) { - return R.current.useEffect(e, t) + return T.current.useEffect(e, t) }, t.useId = function() { - return R.current.useId() + return T.current.useId() }, t.useImperativeHandle = function(e, t, n) { - return R.current.useImperativeHandle(e, t, n) + return T.current.useImperativeHandle(e, t, n) }, t.useInsertionEffect = function(e, t) { - return R.current.useInsertionEffect(e, t) + return T.current.useInsertionEffect(e, t) }, t.useLayoutEffect = function(e, t) { - return R.current.useLayoutEffect(e, t) + return T.current.useLayoutEffect(e, t) }, t.useMemo = function(e, t) { - return R.current.useMemo(e, t) + return T.current.useMemo(e, t) }, t.useReducer = function(e, t, n) { - return R.current.useReducer(e, t, n) + return T.current.useReducer(e, t, n) }, t.useRef = function(e) { - return R.current.useRef(e) + return T.current.useRef(e) }, t.useState = function(e) { - return R.current.useState(e) + return T.current.useState(e) }, t.useSyncExternalStore = function(e, t, n) { - return R.current.useSyncExternalStore(e, t, n) + return T.current.useSyncExternalStore(e, t, n) }, t.useTransition = function() { - return R.current.useTransition() + return T.current.useTransition() }, t.version = "18.2.0" }, 1479: (e, t, n) => { @@ -6635,7 +6635,7 @@ return !(t.unstable_now() - I < P) } - function C() { + function R() { if (null !== S) { var e = t.unstable_now(); I = e; @@ -6648,16 +6648,16 @@ } else E = !1 } if ("function" === typeof _) k = function() { - _(C) + _(R) }; else if ("undefined" !== typeof MessageChannel) { - var T = new MessageChannel, - R = T.port2; - T.port1.onmessage = C, k = function() { - R.postMessage(null) + var C = new MessageChannel, + T = C.port2; + C.port1.onmessage = R, k = function() { + T.postMessage(null) } } else k = function() { - v(C, 0) + v(R, 0) }; function D(e) { @@ -7406,6 +7406,7 @@ rootUrl: "https://robertsspaceindustries.com", websiteUrl: "https://robertsspaceindustries.com", issueCouncilUrl: "https://issue-council.robertsspaceindustries.com", + installerErrorKnowledgeDatabaseUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/22514899089431-Error-2000", copyPTUAccountSupportUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360000668488-Install-the-Star-Citizen-PTU", spectrumUrl: "https://robertsspaceindustries.com/spectrum/community/SC", communityHubUrl: "https://robertsspaceindustries.com/community-hub", @@ -7923,6 +7924,7 @@ Object.defineProperty(t, "__esModule", { value: !0 }), t.signIn = void 0, t.signIn = { + USER_AUTO_SIGNIN: "user@auto-sign-in", USER_SIGNIN: "user@sign-in", USER_SIGNOUT: "user@signOut" } @@ -8081,53 +8083,139 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.AnalyticsEventName = void 0, + value: !0 + }), t.AnalyticsEventName = void 0, function(e) { - e.APP_OPEN = "App:Open", e.APP_CLOSE = "App:Close", e.APP_SIGNEDIN = "App:SignedIn", e.APP_SIGNEDOUT = "App:SignedOut", e.APP_INSTALL_START = "App:Install:Start", e.APP_INSTALL_SUCCESS = "App:Install:Success", e.APP_INSTALL_ERROR = "App:Install:Error", e.APP_VERIFY_START = "App:Verify:Start", e.APP_VERIFY_SUCCESS = "App:Verify:Success", e.APP_VERIFY_ERROR = "App:Verify:Error", e.APP_UPDATE_START = "App:Update:Start", e.APP_UPDATE_SUCCESS = "App:Update:Success", e.APP_UPDATE_ERROR = "App:Update:Error", e.APP_LAUNCH_START = "App:Launch:Start", e.APP_LAUNCH_STOP = "App:Launch:Stop", e.APP_LAUNCH_ERROR = "App:Launch:Error" + e.APP_OPEN = "App:Open", e.APP_CLOSE = "App:Close", e.APP_SIGNEDIN = "App:SignedIn", e.APP_SIGNEDOUT = "App:SignedOut", e.APP_INSTALL_START = "App:Install:Start", e.APP_INSTALL_STOP = "App:Install:Stop", e.APP_INSTALL_SUCCESS = "App:Install:Success", e.APP_INSTALL_ERROR = "App:Install:Error", e.APP_VERIFY_START = "App:Verify:Start", e.APP_VERIFY_STOP = "App:Verify:Stop", e.APP_VERIFY_SUCCESS = "App:Verify:Success", e.APP_VERIFY_ERROR = "App:Verify:Error", e.APP_UPDATE_START = "App:Update:Start", e.APP_UPDATE_STOP = "App:Update:Stop", e.APP_UPDATE_SUCCESS = "App:Update:Success", e.APP_UPDATE_ERROR = "App:Update:Error", e.APP_LAUNCH_START = "App:Launch:Start", e.APP_LAUNCH_STOP = "App:Launch:Stop", e.APP_LAUNCH_ERROR = "App:Launch:Error", e.OLD_APP_LAUNCH_START = "App:Launcher:Start", e.OLD_APP_LAUNCH_STOP = "App:Launcher:Stop", e.OLD_APP_LAUNCH_ERROR = "App:Launcher:Error" }(n || (t.AnalyticsEventName = n = {})) }, 5708: (e, t) => { "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.AutoUpdateDialogStates = void 0, + value: !0 + }), t.AutoUpdateDialogStates = void 0, function(e) { e.AVAILABLE = "available", e.NOT_AVAILABLE = "not-available", e.QUIT_GAME = "quit-game", e.ERROR = "error" }(n || (t.AutoUpdateDialogStates = n = {})) }, - 5597: (e, t, n) => { + 2700: (e, t) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 - }), t.CancelError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.InvalidMDFileError = t.InstallerError = t.GenericError = t.errorsCodes = t.errorsNames = void 0; - const r = n(4208); - t.errorsNames = Object.assign(Object.assign({}, r.InstallerErrorsNames), { + }), t.GenericError = t.errorsCodes = t.errorsNames = void 0, t.errorsNames = { ERR_UNKNOWN: "GenericError", ERR_LOGOUT_FAILED: "logoutFailed", ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr" - }), t.errorsCodes = Object.assign(Object.assign({}, r.InstallerErrorsCodes), { + }, t.errorsCodes = { ERR_UNKNOWN: "GenericError", ERR_LOGOUT_FAILED: "logoutFailed", ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr" - }); - class a extends Error { + }; + class n extends Error { constructor({ - message: e = "Unknown Error", - code: n = t.errorsNames.ERR_UNKNOWN, - payload: r = null - }) { - super(e), Object.setPrototypeOf(this, a.prototype), this.code = n, this.payload = r + message: e = "Unknown Error", + code: r = t.errorsNames.ERR_UNKNOWN, + payload: a = null + }) { + super(e), Object.setPrototypeOf(this, n.prototype), this.code = r, this.payload = a } } - t.GenericError = a; - class i extends a { + t.GenericError = n + }, + 6994: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n); + var a = Object.getOwnPropertyDescriptor(t, n); + a && !("get" in a ? !t.__esModule : a.writable || a.configurable) || (a = { + enumerable: !0, + get: function() { + return t[n] + } + }), Object.defineProperty(e, r, a) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + a = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), a(n(2700), t), a(n(728), t), a(n(6565), t), a(n(2358), t), a(n(2299), t) + }, + 728: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CancelError = t.Error21Error = t.NetworkDefaultError = t.NetworkTooManyFilesFailedError = t.NetworkFailedToRecieveHandshakeError = t.NetworkCouldNotResolveHostError = t.ExceptionU00Error = t.InvalidArgumentTypeError = t.P4KError = t.IOError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.NotMappedError = t.MDFileHeaderNotFoundError = t.InvalidMDFileHeaderError = t.InvalidMDFileError = t.InstallerError = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = void 0; + const r = n(2700); + t.PatcherErrorsNames = { + ERR_DISK_FULL: "DiskFullError", + ERR_WRITE_PERMISSION: "WritePermissionError", + ERR_FILE_IN_USE: "FileInUseError", + ERR_RETRIEVE_MANIFEST: "RetrieveManifestError", + ERR_P4K_CORRUPTED: "P4kCorruptedError", + ERR_BASE_P4K_CORRUPTED: "BaseP4kCorruptedError", + ERR_UNKNOWN_NETWORK_ERROR: "UnknownNetworkError", + ERR_PATCHER_UNKNOWN: "GenericPatchInstallerError", + ERR_DOWNLOAD_UNSUCCESSFULL: "DownloadUnsuccessfullError", + ERR_IO_ERROR: "IOError", + ERR_P4K_ERROR: "P4KError", + ERR_INVALID_ARGUMENT_TYPE: "InvalidArgumentTypeError", + ERR_EXCEPTION_U_00: "ExceptionU00Error", + ERR_NETWORK_COULD_NOT_RESOLVE_HOST: "NetworkCouldNotResolveHostError", + ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE: "NetworkFailedToReceiveHandshakeError", + ERR_NETWORK_TOO_MANY_FILES_FAILED: "NetworkTooMAnyFilesFailedError", + ERR_NETWORK_DEFAULT: "NetworkDefaultError", + ERR_ERROR_21: "Error21Error" + }, t.InitialDownloadErrorsNames = { + ERR_INIT_UNKNOWN: "GenericInitialDownloadError", + ERR_INVALID_MD_FILE: "InvalidMDFileError", + ERR_INVALID_MD_FILE_HEADER: "InvalidMDFileHeaderError", + ERR_MD_FILE_HEADER_NOT_FOUND: "MDFileHeaderNotFoundError", + ERR_NOT_MAPPED_ERRORS: "NotMappedErrors" + }, t.InstallerErrorsNames = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsNames), t.InitialDownloadErrorsNames), { + ERR_INSTALL_UNKNOWN: "GenericInstallerError", + ERR_FIX_PERMISSIONS: "FixPermissionsError", + ERR_CANCEL_FAIL: "CancelFailError" + }); + const a = Object.assign(Object.assign({ + ERR_INSTALL_UNKNOWN: "2000", + ERR_FIX_PERMISSIONS: "2001", + ERR_CANCEL_FAIL: "2002" + }, { + ERR_DISK_FULL: "5000", + ERR_WRITE_PERMISSION: "5001", + ERR_FILE_IN_USE: "5002", + ERR_RETRIEVE_MANIFEST: "5003", + ERR_P4K_CORRUPTED: "5004", + ERR_UNKNOWN_NETWORK_ERROR: "5005", + ERR_BASE_P4K_CORRUPTED: "5006", + ERR_PATCHER_UNKNOWN: "5007", + ERR_DOWNLOAD_UNSUCCESSFULL: "5008", + ERR_IO_ERROR: "5009", + ERR_P4K_ERROR: "5010", + ERR_INVALID_ARGUMENT_TYPE: "5011", + ERR_EXCEPTION_U_00: "5013", + ERR_NETWORK_COULD_NOT_RESOLVE_HOST: "5015", + ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE: "5016", + ERR_NETWORK_TOO_MANY_FILES_FAILED: "5017", + ERR_NETWORK_DEFAULT: "5018", + ERR_ERROR_21: "5021" + }), { + ERR_INIT_UNKNOWN: "3000", + ERR_INVALID_MD_FILE: "3001", + ERR_INVALID_MD_FILE_HEADER: "3003", + ERR_MD_FILE_HEADER_NOT_FOUND: "3004", + ERR_NOT_MAPPED_ERRORS: "3005" + }); + class i extends r.GenericError { constructor({ - message: e, - code: t = r.InstallerErrorsCodes.ERR_INSTALL_UNKNOWN, - payload: n - }) { + message: e, + code: t = a.ERR_INSTALL_UNKNOWN, + payload: n + }) { super({ message: e, code: t, @@ -8140,17 +8228,44 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_INVALID_MD_FILE, + code: a.ERR_INVALID_MD_FILE, payload: t }), Object.setPrototypeOf(this, o.prototype) } } t.InvalidMDFileError = o; + t.InvalidMDFileHeaderError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_INVALID_MD_FILE_HEADER, + payload: t + }), Object.setPrototypeOf(this, o.prototype) + } + }; + t.MDFileHeaderNotFoundError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_MD_FILE_HEADER_NOT_FOUND, + payload: t + }), Object.setPrototypeOf(this, o.prototype) + } + }; + t.NotMappedError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_NOT_MAPPED_ERRORS, + payload: t + }), Object.setPrototypeOf(this, o.prototype) + } + }; class s extends i { constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_DISK_FULL, + code: a.ERR_DISK_FULL, payload: t }), Object.setPrototypeOf(this, s.prototype) } @@ -8160,7 +8275,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_WRITE_PERMISSION, + code: a.ERR_WRITE_PERMISSION, payload: t }), Object.setPrototypeOf(this, l.prototype) } @@ -8170,7 +8285,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_FILE_IN_USE, + code: a.ERR_FILE_IN_USE, payload: t }), Object.setPrototypeOf(this, c.prototype) } @@ -8180,7 +8295,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_P4K_CORRUPTED, + code: a.ERR_P4K_CORRUPTED, payload: t }), Object.setPrototypeOf(this, u.prototype) } @@ -8190,7 +8305,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_RETRIEVE_MANIFEST, + code: a.ERR_RETRIEVE_MANIFEST, payload: t }), Object.setPrototypeOf(this, d.prototype) } @@ -8200,7 +8315,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_UNKNOWN_NETWORK_ERROR, + code: a.ERR_UNKNOWN_NETWORK_ERROR, payload: t }), Object.setPrototypeOf(this, p.prototype) } @@ -8210,7 +8325,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_BASE_P4K_CORRUPTED, + code: a.ERR_BASE_P4K_CORRUPTED, payload: t }), Object.setPrototypeOf(this, h.prototype) } @@ -8220,7 +8335,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_PATCHER_UNKNOWN, + code: a.ERR_PATCHER_UNKNOWN, payload: t }), Object.setPrototypeOf(this, f.prototype) } @@ -8230,7 +8345,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_DOWNLOAD_UNSUCCESSFULL, + code: a.ERR_DOWNLOAD_UNSUCCESSFULL, payload: t }), Object.setPrototypeOf(this, f.prototype) } @@ -8239,7 +8354,7 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_INIT_UNKNOWN, + code: a.ERR_INIT_UNKNOWN, payload: t }), Object.setPrototypeOf(this, m.prototype) } @@ -8249,22 +8364,257 @@ constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_FIX_PERMISSIONS, + code: a.ERR_FIX_PERMISSIONS, payload: t }), Object.setPrototypeOf(this, g.prototype) } } t.FixPermissionError = g; + t.IOError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_IO_ERROR, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.P4KError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_P4K_ERROR, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.InvalidArgumentTypeError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_INVALID_ARGUMENT_TYPE, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.ExceptionU00Error = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_EXCEPTION_U_00, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.NetworkCouldNotResolveHostError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_NETWORK_COULD_NOT_RESOLVE_HOST, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.NetworkFailedToRecieveHandshakeError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.NetworkTooManyFilesFailedError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_NETWORK_TOO_MANY_FILES_FAILED, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.NetworkDefaultError = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_NETWORK_DEFAULT, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; + t.Error21Error = class extends i { + constructor(e, t) { + super({ + message: e, + code: a.ERR_ERROR_21, + payload: t + }), Object.setPrototypeOf(this, g.prototype) + } + }; t.CancelError = class extends i { constructor(e, t) { super({ message: e, - code: r.InstallerErrorsCodes.ERR_CANCEL_FAIL, + code: a.ERR_CANCEL_FAIL, payload: t }), Object.setPrototypeOf(this, g.prototype) } } }, + 6565: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.serializerInstallerErrors = void 0; + const r = n(728); + t.serializerInstallerErrors = e => { + const { + code: t, + message: n, + payload: a + } = e; + switch (console.log(e), t) { + case r.InstallerErrorsNames.ERR_INVALID_MD_FILE: + return new r.InvalidMDFileError(n, a); + case r.InstallerErrorsNames.ERR_INVALID_MD_FILE_HEADER: + return new r.InvalidMDFileHeaderError(n, a); + case r.InstallerErrorsNames.ERR_MD_FILE_HEADER_NOT_FOUND: + return new r.MDFileHeaderNotFoundError(n, a); + case r.InstallerErrorsNames.ERR_NOT_MAPPED_ERRORS: + return new r.NotMappedError(n, a); + case r.InstallerErrorsNames.ERR_DISK_FULL: + return new r.DiskFullError(n, a); + case r.InstallerErrorsNames.ERR_FILE_IN_USE: + return new r.FileInUseError(n, a); + case r.InstallerErrorsNames.ERR_WRITE_PERMISSION: + return new r.WritePermissionsError(n, a); + case r.InstallerErrorsNames.ERR_P4K_CORRUPTED: + return new r.Pk4CorruptedError(n, a); + case r.InstallerErrorsNames.ERR_RETRIEVE_MANIFEST: + return new r.RetrieveManifestError(n, a); + case r.InstallerErrorsNames.ERR_UNKNOWN_NETWORK_ERROR: + return new r.PatcherUnknownNetworkError(n, a); + case r.InstallerErrorsNames.ERR_BASE_P4K_CORRUPTED: + return new r.BasePackP4kCorruptedError(n, a); + case r.InstallerErrorsNames.ERR_DOWNLOAD_UNSUCCESSFULL: + return new r.DownloadUnsuccessfullError(n, a); + case r.InstallerErrorsNames.ERR_PATCHER_UNKNOWN: + return new r.PatcherGenericError(n, a); + case r.InstallerErrorsNames.ERR_INIT_UNKNOWN: + return new r.BasePackGenericError(n, a); + case r.InstallerErrorsNames.ERR_FIX_PERMISSIONS: + return new r.FixPermissionError(n, a); + case r.InstallerErrorsNames.ERR_IO_ERROR: + return new r.IOError(n, a); + case r.InstallerErrorsNames.ERR_P4K_ERROR: + return new r.P4KError(n, a); + case r.InstallerErrorsNames.ERR_INVALID_ARGUMENT_TYPE: + return new r.InvalidArgumentTypeError(n, a); + case r.InstallerErrorsNames.ERR_EXCEPTION_U_00: + return new r.ExceptionU00Error(n, a); + case r.InstallerErrorsNames.ERR_NETWORK_COULD_NOT_RESOLVE_HOST: + case r.InstallerErrorsNames.ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE: + return new r.NetworkFailedToRecieveHandshakeError(n, a); + case r.InstallerErrorsNames.ERR_NETWORK_DEFAULT: + return new r.NetworkDefaultError(n, a); + case r.InstallerErrorsNames.ERR_ERROR_21: + return new r.Error21Error(n, a); + default: + return new r.InstallerError({ + code: r.InstallerErrorsNames.ERR_INSTALL_UNKNOWN, + message: n, + payload: a + }) + } + } + }, + 2358: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.GameCrashError = t.EACError = t.NoGameFilesError = t.LaunchError = t.LaunchErrorsNames = void 0; + const r = n(2700); + t.LaunchErrorsNames = { + ERR_LAUNCH_NO_GAME_FILES: "ENOENT", + ERR_LAUNCH_UNKNOWN: "UnknownLaunchError", + ERR_LAUNCH_EAC: "30", + ERR_LAUNCH_GAME_CRASH: "GameCrashLaunchError" + }; + const a = "6000", + i = "6001", + o = "6002", + s = "7000"; + class l extends r.GenericError { + constructor({ + message: e, + code: t = i, + payload: n + }) { + super({ + message: e, + code: t, + payload: n + }), Object.setPrototypeOf(this, l.prototype), this.code = t, this.payload = n + } + } + t.LaunchError = l; + class c extends l { + constructor(e, t) { + super({ + message: e, + code: a, + payload: t + }), Object.setPrototypeOf(this, c.prototype) + } + } + t.NoGameFilesError = c; + class u extends l { + constructor(e, t) { + super({ + message: e, + code: o, + payload: t + }), Object.setPrototypeOf(this, u.prototype) + } + } + t.EACError = u; + class d extends l { + constructor(e, t) { + super({ + message: e, + code: s, + payload: t + }), Object.setPrototypeOf(this, d.prototype) + } + } + t.GameCrashError = d + }, + 2299: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.serializerLaunchErrors = void 0; + const r = n(2358); + t.serializerLaunchErrors = e => { + const { + code: t, + message: n, + payload: a + } = e; + switch (t) { + case r.LaunchErrorsNames.ERR_LAUNCH_NO_GAME_FILES: + return new r.NoGameFilesError(n, a); + case r.LaunchErrorsNames.ERR_LAUNCH_EAC: + return new r.EACError(n, a); + default: + return new r.LaunchError({ + code: r.LaunchErrorsNames.ERR_LAUNCH_UNKNOWN, + message: n, + payload: a + }) + } + } + }, 2087: (e, t) => { "use strict"; Object.defineProperty(t, "__esModule", { @@ -8290,54 +8640,20 @@ }; Object.defineProperty(t, "__esModule", { value: !0 - }), a(n(8096), t), a(n(2087), t), a(n(5708), t), a(n(4208), t), a(n(7735), t), a(n(3010), t), a(n(4764), t), a(n(9056), t), a(n(4724), t), a(n(6840), t), a(n(5597), t) + }), a(n(6994), t), a(n(8096), t), a(n(2087), t), a(n(5708), t), a(n(4208), t), a(n(7735), t), a(n(3010), t), a(n(4764), t), a(n(9056), t), a(n(4724), t), a(n(6840), t) }, 4208: (e, t) => { "use strict"; var n, r, a; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.InstallerOptions = t.InstallerErrorsCodes = t.InitialDownloadErrorsCodes = t.PatcherErrorsCodes = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = t.InstallationStatus = t.InstallationType = void 0, + value: !0 + }), t.InstallerOptions = t.InstallationStatus = t.InstallationType = void 0, function(e) { e.INSTALL = "install", e.VERIFY = "verify", e.UPDATE = "update" }(n || (t.InstallationType = n = {})), function(e) { e.WAITING = "waiting", e.CANCELLING = "cancelling", e.IN_PROGRESS = "in-progress", e.PAUSED = "paused", e.COMPLETED = "completed", e.ERROR = "error" - }(r || (t.InstallationStatus = r = {})), t.PatcherErrorsNames = { - ERR_DISK_FULL: "DiskFullError", - ERR_WRITE_PERMISSION: "WritePermissionError", - ERR_FILE_IN_USE: "FileInUseError", - ERR_RETRIEVE_MANIFEST: "RetrieveManifestError", - ERR_P4K_CORRUPTED: "P4kCorruptedError", - ERR_BASE_P4K_CORRUPTED: "BaseP4kCorruptedError", - ERR_UNKNOWN_NETWORK_ERROR: "UnknownNetworkError", - ERR_PATCHER_UNKNOWN: "GenericPatchInstallerError", - ERR_DOWNLOAD_UNSUCCESSFULL: "DownloadUnsuccessfullError" - }, t.InitialDownloadErrorsNames = { - ERR_INVALID_MD_FILE: "InvalidMDFileError", - ERR_INIT_UNKNOWN: "GenericInitialDownloadError" - }, t.InstallerErrorsNames = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsNames), t.InitialDownloadErrorsNames), { - ERR_INSTALL_UNKNOWN: "GenericInstallerError", - ERR_FIX_PERMISSIONS: "FixPermissionsError", - ERR_CANCEL_FAIL: "CancelFailError" - }), t.PatcherErrorsCodes = { - ERR_DISK_FULL: "5000", - ERR_WRITE_PERMISSION: "5001", - ERR_FILE_IN_USE: "5002", - ERR_RETRIEVE_MANIFEST: "5003", - ERR_P4K_CORRUPTED: "5004", - ERR_UNKNOWN_NETWORK_ERROR: "5005", - ERR_BASE_P4K_CORRUPTED: "5006", - ERR_PATCHER_UNKNOWN: "5007", - ERR_DOWNLOAD_UNSUCCESSFULL: "5008" - }, t.InitialDownloadErrorsCodes = { - ERR_INIT_UNKNOWN: "3000", - ERR_INVALID_MD_FILE: "3001" - }, t.InstallerErrorsCodes = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsCodes), t.InitialDownloadErrorsCodes), { - ERR_INSTALL_UNKNOWN: "2000", - ERR_FIX_PERMISSIONS: "2001", - ERR_CANCEL_FAIL: "2002" - }), + }(r || (t.InstallationStatus = r = {})), function(e) { e.ConcurrentTransfers = "concurrentTransfers", e.MaximumDownloadBandwidth = "maximumDownloadBandwidth", e.MaximumTransfersInFlight = "maximumTransfersInFlight", e.RetriesPerFile = "retriesPerFile" }(a || (t.InstallerOptions = a = {})) @@ -8352,8 +8668,8 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.GameChannelStatus = void 0, + value: !0 + }), t.GameChannelStatus = void 0, function(e) { e.AVAILABLE = "available", e.INSTALLED = "installed", e.RUNNING = "running", e.UPDATE_AVAILABLE = "update-available" }(n || (t.GameChannelStatus = n = {})) @@ -8368,8 +8684,8 @@ "use strict"; var n, r, a; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = void 0, + value: !0 + }), t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = void 0, function(e) { e.MAJOR = "major", e.PARTIAL = "partial", e.DEGRADED = "degraded", e.MAINTENANCE = "maintenance", e.OPERATIONAL = "operational" }(n || (t.RSISystemStatus = n = {})), @@ -8619,9 +8935,9 @@ return t }, o = ({ - client: e, - children: t - }) => (r.useEffect((() => (e.mount(), () => { + client: e, + children: t + }) => (r.useEffect((() => (e.mount(), () => { e.unmount() })), [e]), r.createElement(a.Provider, { value: e @@ -8658,7 +8974,7 @@ var o = {}; e = e || [null, t({}), t([]), t(t)]; for (var s = 2 & a && r; - "object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e => o[e] = () => r[e])); + "object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e => o[e] = () => r[e])); return o.default = () => r, n.d(i, o), i } })(), n.d = (e, t) => { @@ -8753,22 +9069,22 @@ "use strict"; var e = {}; n.r(e), n.d(e, { - FunctionToString: () => qk, - InboundFilters: () => aE + FunctionToString: () => Xk, + InboundFilters: () => pE }); var t = {}; n.r(t), n.d(t, { - Breadcrumbs: () => SS, - Dedupe: () => NS, - GlobalHandlers: () => cS, - HttpContext: () => DS, - LinkedErrors: () => CS, - TryCatch: () => gS + Breadcrumbs: () => DS, + Dedupe: () => GS, + GlobalHandlers: () => vS, + HttpContext: () => VS, + LinkedErrors: () => zS, + TryCatch: () => ES }); var r = {}; n.r(r), n.d(r, { - EventToMain: () => YS, - ScopeToMain: () => HS + EventToMain: () => nO, + ScopeToMain: () => tO }); const a = { agreements: { @@ -8839,6 +9155,7 @@ dialog_warning_back_launcher: "Go back to Launcher", dialog_warning_exit_app_title: "Exit App", dialog_warning_exit_app_text: "Do you really want to exit the app ?", + dialog_warning_exit_app_checkbox: "Don't show this again", dialog_warning_exit_app_game_running_text: "Are you sure you want to exit the app while the game is still running?\u202f", dialog_warning_exit_app_confirm: "Exit the app", dialog_settings_reset_title: "Reset Settings", @@ -8853,7 +9170,9 @@ dialog_start_installation_content_location: "The game will be installed at the following location:", dialog_start_installation_content_location_settings: "You can change the game location in the Game Settings.", dialog_start_installation_action_go_to_settings: "Game Settings", - dialog_start_installation_action_install: "Install" + dialog_start_installation_action_install: "Install", + dialog_launch_check_update_available_title: "Game version update", + dialog_launch_check_update_available_content: "A new version of {{game}} - {{channel}} is available. Please update to access the game." }, download: { download_empty: "There is no download in the queue.", @@ -8927,6 +9246,7 @@ error_installer_init_download_title: "Initial Download - Base Pack - Error", error_installer_patcher_title: "Data Patcher Error", error_installer_title: "Installer Error", + error_installer_patcher_generic_content: "An error has occured during the installation process. Find more information on the <0>Knowledge base. Please <1>report a bug if the problem persists. Make sure to include your <2>logs. Error code: {{ code }}", error_installer_generic_content: "An error has occured during the installation process. Please <0>report a bug if the problem persists. Make sure to include your <1>logs. Error code: {{ code }}", error_generic_title: "Launcher Error", error_generic_content: "Something went wrong. Please <0>report a bug if the problem persists. Make sure to include your <1>logs. Error code: {{ code }}", @@ -8938,6 +9258,18 @@ error_launch_account_not_found_content: "In order to play in the Public Test Universe (PTU), you need to copy your account to the PTU. Please follow the steps <0>here and try again. Error code: {{ code }}", error_launch_game_title: "{{ game }} Has Stopped Running Unexpectedly", error_launch_game_content: "Try to relaunch the game. If this problem persists, please verify your installation files.", + error_launch_unknown_title: "Launcher - Unknown Error", + error_launch_unknown_content: "Something went wrong on Launch. Please, verify game files.<2> Please <0>report a bug if the problem persists. Make sure to include your <1>logs. Error code: {{ code }}", + error_launch_no_game_files_title: "Launch - Game Files Not Found", + error_launch_no_game_files_content: "Something went wrong on game launch. Could not retrieve game files. Please verify game files. Error code: {{ code }}", + error_launch_EAC_title: "Launch - EAC error", + error_launch_EAC_content: "Something went wrong on Launch. EAC detected corrupted files. Please verify game files. Error code: {{ code }}", + error_launch_game_crash_title: "Game error", + error_launch_game_crash_content: "Something went wrong while playing the game. Please <0>report a bug if the problem persists. Make sure to include your <1>logs. Error code: {{ code }}", + error_launch_game_running_title: "Game Is Already Running", + error_launch_game_running_content: "The game is already running", + error_launch_check_update_unavailable_title: "Check Game Version Failed", + error_launch_check_update_unavailable_content: "Something went wrong while checking your game version. Please <0>report a bug if the problem persists. Make sure to include your <1>logs. Error code: {{ code }}", error_api_denied_request_title: "API Denied Request", error_api_denied_request_content: "Something went wrong. It appears that your session is expired or has been denied. You have been logged out. Please try again.", error_api_validation_failed: "API Request validation failed", @@ -8949,10 +9281,8 @@ error_api_auth_expired_title: "Session Expired", error_api_platform_auth_title: "Platform Auth Error", error_api_platform_auth_content: "Not able to authenticate on {{ id }} platform : {{ error }}", - error_launch_game_running_title: "Game Is Already Running", - error_launch_game_running_content: "The game is already running", error_network_issue_title: "Network Issue", - error_network_issue_content: "Network connection cannot be established. Please check your network status and attempt to connect again" + error_network_issue_content: "Network connection cannot be established. Please check your network status and attempt to connect again." }, form: { sign_in_title: "Sign in to the RSI Launcher", @@ -9151,6 +9481,7 @@ dialog_warning_back_launcher: "Retour vers le launcher", dialog_warning_exit_app_title: "Quitter l'application", dialog_warning_exit_app_text: "\xcates-vous s\xfbr de vouloir quitter l'application lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.", + dialog_warning_exit_app_checkbox: "Ne plus afficher ce message", dialog_warning_exit_app_game_running_text: "\xcates-vous s\xfbr de vouloir quitter l'application ?", dialog_warning_exit_app_confirm: "Quitter l'application", dialog_settings_reset_title: "R\xe9initialiser les options", @@ -9163,7 +9494,9 @@ dialog_start_installation_content_location: "Le jeu va \xeatre install\xe9 \xe0 l'emplacement suivant:", dialog_start_installation_content_location_settings: "Vous pouvez changer l'emplacement du jeu dans les param\xe8tres de jeu.", dialog_start_installation_action_go_to_settings: "Param\xe8tres de Jeu", - dialog_start_installation_action_install: "Installer" + dialog_start_installation_action_install: "Installer", + dialog_launch_check_update_available_title: "Mise \xe0 jour du jeu", + dialog_launch_check_update_available_content: "Une nouvelle version de {{game}} - {{channel}} est disponible. S'il vous plait, mettez \xe0 jour votre jeu pour le lancer." }, download: { download_empty: "Il n'y a pas de t\xe9l\xe9chargment en attente.", @@ -9236,6 +9569,7 @@ error_installer_init_download_title: "T\xe9l\xe9chargement initial - Basepack - Erreur", error_installer_patcher_title: "Erreur de Data Patcher", error_installer_title: "Erreur de l'installateur", + error_installer_patcher_generic_content: "Une erreur s'est produite lors du processus d'installation. Trouvez plus d'information dans la <0>base de connaissances. Veuillez <1>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <2>journaux. Code d'erreur : {{ code }}", error_installer_generic_content: "Une erreur s'est produite lors du processus d'installation. Veuillez <0>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux. Code d'erreur : {{ code }}", error_generic_title: "Erreur du lanceur", error_generic_content: "Quelque chose s'est mal pass\xe9. Veuillez<0>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux. Code d'erreur\xa0: {{ code } }", @@ -9247,6 +9581,18 @@ error_launch_account_not_found_content: "Afin de pouvoir jouer sur l'environement de test (PTU) vous avez besoin de copier votre compte sur l'environement PTU. S'il vous plait, suivez les \xe9tapes <0>ici et r\xe9essayer. Code d'erreur\xa0: {{ code }}", error_launch_game_title: "{{ game }} a cess\xe9 de fonctionner de mani\xe8re inattendue", error_launch_game_content: "Essayez de relancer le jeu. Si ce probl\xe8me persiste, veuillez v\xe9rifier vos fichiers d'installation.", + error_launch_unknown_title: "Lanceur - Erreur inconnue", + error_launch_unknown_content: "Quelque chose s'est mal pass\xe9 lors du lancement. Veuillez v\xe9rifier les fichiers du jeu.<3/> Veuillez <0>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.<3/>Code d'erreur\xa0: {{ code }}", + error_launch_no_game_files_title: "Lancement - Fichiers de jeu introuvables", + error_launch_no_game_files_content: "Quelque chose s'est mal pass\xe9 lors du lancement du jeu. Impossible de r\xe9cup\xe9rer les fichiers du jeu. Veuillez v\xe9rifier les fichiers du jeu. Code d'erreur\xa0: {{ code }}", + error_launch_EAC_title: "Lancement - Erreur EAC", + error_launch_EAC_content: "Quelque chose s'est mal pass\xe9 au lancement. EAC a d\xe9tect\xe9 des fichiers corrompus. Veuillez v\xe9rifier les fichiers du jeu. Code d'erreur\xa0: {{ code }}", + error_launch_game_crash_title: "Erreur de jeu", + error_launch_game_crash_content: "Quelque chose s'est mal pass\xe9 pendant le jeu. Veuillez <0>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux. Code d'erreur\xa0: {{ code }}", + error_launch_game_running_title: "Le jeu est d\xe9j\xe0 en cours", + error_launch_game_running_content: "Le jeu est d\xe9j\xe0 en cours d'ex\xe9cution", + error_launch_check_update_unavailable_title: "V\xe9rification de la version a \xe9chou\xe9", + error_launch_check_update_unavailable_content: "Quelque chose s'est mal pass\xe9 pendant la v\xe9rification de la version du jeu. Veuillez <0>signaler un bug si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux. Code d'erreur\xa0: {{ code }}", error_api_denied_request_title: "Demande API refus\xe9e", error_api_denied_request_content: "Quelque chose s'est mal pass\xe9. Il semble que votre session a expir\xe9 ou a \xe9t\xe9 refus\xe9e. Vous avez \xe9t\xe9 d\xe9connect\xe9. Veuillez r\xe9essayer.", error_api_validation_failed: "La validation de la requ\xeate API a \xe9chou\xe9", @@ -9258,10 +9604,8 @@ error_api_auth_expired_title: "Session expir\xe9e", error_api_platform_auth_title: "Erreur d'authentification de la plateforme", error_api_platform_auth_content: "Impossible de s'authentifier sur la plateforme {{ id }}\xa0: {{ error }}", - error_launch_game_running_title: "Le jeu est d\xe9j\xe0 en cours", - error_launch_game_running_content: "Le jeu est d\xe9j\xe0 en cours d'ex\xe9cution", error_network_issue_title: "Probl\xe8me de r\xe9seau", - error_network_issue_content: "La connexion r\xe9seau ne peut pas \xeatre \xe9tablie. Veuillez v\xe9rifier l'\xe9tat de votre r\xe9seau et tenter de vous connecter \xe0 nouveau" + error_network_issue_content: "La connexion r\xe9seau ne peut pas \xeatre \xe9tablie. Veuillez v\xe9rifier l'\xe9tat de votre r\xe9seau et tenter de vous connecter \xe0 nouveau." }, form: { sign_in_title: "Se connecter au RSI Launcher", @@ -9399,314 +9743,328 @@ agreement_declined: "协议被拒绝" }, appHeader: { - app_header_menu: "菜单", - app_header_volume: "音量", - app_header_volume_mute: "静音", - app_header_volume_unmute: "取消静音", - app_header_account: "账户", - app_header_account_name: "用户名", - app_header_account_moniker: "@社区昵称", - app_header_menu_get_help: "获取帮助", - app_header_menu_spectrum: "光谱", - app_header_menu_issue_council: "问题理事会", - app_header_menu_exit_the_app: "退出程序", - app_header_menu_settings: "设置", - app_header_actions_download: "下载", - app_header_actions_menu_rsi_status: "RSI 状态", - app_header_actions_menu_rsi_account: "RSI 账户", - app_header_actions_menu_log_out: "登出", - app_header_loading: "正在进入宇宙…" - }, + app_header_menu: "菜单", + app_header_volume: "音量", + app_header_volume_mute: "静音", + app_header_volume_unmute: "取消静音", + app_header_account: "账户", + app_header_account_name: "用户名", + app_header_account_moniker: "@社区昵称", + app_header_menu_get_help: "获取帮助", + app_header_menu_spectrum: "光谱", + app_header_menu_issue_council: "问题理事会", + app_header_menu_exit_the_app: "退出程序", + app_header_menu_settings: "设置", + app_header_actions_download: "下载", + app_header_actions_menu_rsi_status: "RSI 状态", + app_header_actions_menu_rsi_account: "RSI 账户", + app_header_actions_menu_log_out: "登出", + app_header_loading: "正在进入宇宙…" + }, autoUpdate: { - auto_update_dialog_close: "关闭", - auto_update_dialog_title: "有可用的更新", - auto_update_dialog_sub_title: "版本{{version}}", - auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!", - auto_update_dialog_no_update_action_primary_label: "继续", - auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。", - auto_update_dialog_update_available_action_primary_label: "安装并重新启动", - auto_update_dialog_update_available_action_secondary_label: "稍后安装", - auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持", - auto_update_dialog_update_install_failed_action_primary_label: "重新安装", - auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装", - auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失", - auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装", - auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试", - auto_update_toast_update_installed: "成功安装新版本启动器" - }, + auto_update_dialog_close: "关闭", + auto_update_dialog_title: "有可用的更新", + auto_update_dialog_sub_title: "版本{{version}}", + auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!", + auto_update_dialog_no_update_action_primary_label: "继续", + auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。", + auto_update_dialog_update_available_action_primary_label: "安装并重新启动", + auto_update_dialog_update_available_action_secondary_label: "稍后安装", + auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持", + auto_update_dialog_update_install_failed_action_primary_label: "重新安装", + auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装", + auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失", + auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装", + auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试", + auto_update_toast_update_installed: "成功安装新版本启动器" + }, contextMenu: { - context_menu_copy: "复制", - context_menu_paste: "粘贴", - context_menu_cut: "剪切", - context_menu_select_all: "全选" - }, + context_menu_copy: "复制", + context_menu_paste: "粘贴", + context_menu_cut: "剪切", + context_menu_select_all: "全选" + }, dialog: { - dialog_warning_logout_title: "登出", - dialog_warning_logout_text: "你确定要登出账户吗?", - dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。", - dialog_warning_logout_confirm: "登出", - dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。", - dialog_action_cancel: "取消", - dialog_action_confirm: "确认", - dialog_action_acknowledge: "我已知悉", - dialog_action_ok: "OK", - dialog_action_retry: "再次尝试", - dialog_action_close: "关闭", - dialog_action_accept: "同意", - dialog_action_decline: "拒绝", - dialog_action_verify: "验证文件", - dialog_action_install: "安装游戏", - dialog_action_relaunch: "重新启动", - dialog_action_discard: "放弃", - dialog_action_cancel_download: "取消下载", - dialog_warning_back_launcher: "返回启动器", - dialog_warning_exit_app_title: "退出程序", - dialog_warning_exit_app_text: "你确定要退出应用吗?", - dialog_warning_exit_app_game_running_text: "你确定要在游戏运行时退出应用吗?", - dialog_warning_exit_app_confirm: "退出程序", - dialog_settings_reset_title: "重置设置", - dialog_settings_reset_content: "你确定要重置你的游戏设置吗?", - dialog_settings_reset_button: "重置至默认", - dialog_settings_game_not_installed_title: "游戏未安装", - dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。", - dialog_cancel_installation_title: "取消下载", - dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?", - dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件", - dialog_start_installation_title: "安装 {{game}} - {{channel}}", - dialog_start_installation_content_location: "游戏将安装在以下位置", - dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置", - dialog_start_installation_action_go_to_settings: "游戏设置", - dialog_start_installation_action_install: "安装" - }, + dialog_warning_logout_title: "登出", + dialog_warning_logout_text: "你确定要登出账户吗?", + dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。", + dialog_warning_logout_confirm: "登出", + dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。", + dialog_action_cancel: "取消", + dialog_action_confirm: "确认", + dialog_action_acknowledge: "我已知悉", + dialog_action_ok: "OK", + dialog_action_retry: "再次尝试", + dialog_action_close: "关闭", + dialog_action_accept: "同意", + dialog_action_decline: "拒绝", + dialog_action_verify: "验证文件", + dialog_action_install: "安装游戏", + dialog_action_relaunch: "重新启动", + dialog_action_discard: "放弃", + dialog_action_cancel_download: "取消下载", + dialog_warning_back_launcher: "返回启动器", + dialog_warning_exit_app_title: "退出程序", + dialog_warning_exit_app_text: "你确定要退出应用吗?", + dialog_warning_exit_app_checkbox: "不再显示", + dialog_warning_exit_app_game_running_text: "你确定要在游戏运行时退出应用吗?", + dialog_warning_exit_app_confirm: "退出程序", + dialog_settings_reset_title: "重置设置", + dialog_settings_reset_content: "你确定要重置你的游戏设置吗?", + dialog_settings_reset_button: "重置至默认", + dialog_settings_game_not_installed_title: "游戏未安装", + dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。", + dialog_cancel_installation_title: "取消下载", + dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?", + dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件", + dialog_start_installation_title: "安装 {{game}} - {{channel}}", + dialog_start_installation_content_location: "游戏将安装在以下位置", + dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置", + dialog_start_installation_action_go_to_settings: "游戏设置", + dialog_start_installation_action_install: "安装", + dialog_launch_check_update_available_title: "游戏版本更新", + dialog_launch_check_update_available_content: "一个新的游戏版本 {{game}} - {{channel}} 可用。请更新后再进入游戏。" + }, download: { - download_empty: "下载队列中没有下载任务。", - download_phase: "阶段", - download_status: "状态", - download_speed: "速度", - download_left: "剩余", - download_files_left: "剩余文件", - download_title: "下载任务", - download_settings: "下载设置", - download_play: "开始", - download_pause: "暂停", - download_initializing: "正在初始化…", - download_update_manifest: "正在下载更新文件清单", - download_manifest: "正在下载文件清单", - downloaded_update_manifest: "更新文件清单已下载", - download_analysing_install: "正在验证安装文件", - download_checking_files: "正在验证文件 - 需要几分钟", - download_base_pack: "正在下载基础文件包", - download_updating_game_files: "正在更新游戏文件", - download_updating_game_content: "正在更新游戏内容", - download_completed: "完成", - download_waiting: "正在排队", - download_cancelling: "正在取消", - download_resume: "继续", - download_cancel: "取消", - download_remove: "移除", - download_error: "错误", - download_toast_install_success: "安装已完成", - download_toast_update_success: "更新已完成", - download_toast_verify_success: "文件验证已完成", - download_toast_install_cancel_success: "下载已取消", - download_type_install: "安装", - download_type_update: "更新", - download_type_verify: "验证文件" - }, + download_empty: "下载队列中没有下载任务。", + download_phase: "阶段", + download_status: "状态", + download_speed: "速度", + download_left: "剩余", + download_files_left: "剩余文件", + download_title: "下载任务", + download_settings: "下载设置", + download_play: "开始", + download_pause: "暂停", + download_initializing: "正在初始化…", + download_update_manifest: "正在下载更新文件清单", + download_manifest: "正在下载文件清单", + downloaded_update_manifest: "更新文件清单已下载", + download_analysing_install: "正在验证安装文件", + download_checking_files: "正在验证文件 - 需要几分钟", + download_base_pack: "正在下载基础文件包", + download_updating_game_files: "正在更新游戏文件", + download_updating_game_content: "正在更新游戏内容", + download_completed: "完成", + download_waiting: "正在排队", + download_cancelling: "正在取消", + download_resume: "继续", + download_cancel: "取消", + download_remove: "移除", + download_error: "错误", + download_toast_install_success: "安装已完成", + download_toast_update_success: "更新已完成", + download_toast_verify_success: "文件验证已完成", + download_toast_install_cancel_success: "下载已取消", + download_type_install: "安装", + download_type_update: "更新", + download_type_verify: "验证文件" + }, errors: { - error_game_package_missing_title: "没有游戏资格包", - error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。前往<0>立即游玩", - error_game_package_missing_retry: "重试登录", - error_game_package_missing_support: "客户支持", - error_internal_error: "内部错误", - error_not_authenticated: "你未通过身份验证", - error_invalid_claims: "无效声明", - error_authentication_mfa: "身份验证需要mfa", - error_sign_in_failed: "登入失败。你可能输入了错误的凭证。", - error_sign_in_not_authorized: "你没有登入权限。", - error_captcha_invalid: "验证码无效", - error_session_expired: "你的会话已过期。请再次确认你的密码。", - error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活(1032)", - error_max_login_attempt: "已超过登入失败的最大次数。(1034)", - error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码(1037)", - error_captcha_required: "登入失败。你可能输入了错误的凭证。", - error_installer_basepack_invalid_title: "基础文件包 - 文件无效", - error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。错误代码:{{code}}", - error_installer_disc_full_title: "磁盘空间不足", - error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。错误代码:{{code}}", - error_installer_permissions_title: "文件系统权限错误", - error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。错误代码:{{code}}", - error_installer_permissions_action: "修复权限", - error_installer_file_in_use_title: "文件被占用", - error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。错误代码:{{code}}", - error_installer_pk4_corrupted_title: "游戏文件已损坏", - error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。错误代码:{{code}}", - error_installer_retrieve_manifest_title: "无法获取更新文件清单", - error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。错误代码:{{code}}", - error_installer_unknown_network_title: "未知网络错误", - error_installer_unknown_network_content: "请检查你的网络并重试。错误代码:{{code}}", - error_installer_base_p4k_corrupted_title: "基础文件包验证错误", - error_installer_base_p4k_corrupted_content: "基础文件包验证失败,请重试。如果问题依然存在,请<0>汇报漏洞。别忘了附上你的<1>日志文件。", - error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误", - error_installer_patcher_title: "数据修补程序错误", - error_installer_title: "安装程序错误", - error_installer_generic_content: "安装时出现错误。如果问题依然存在,请<0>汇报漏洞。别忘了附上你的<1>日志文件。错误代码:{{code}}", - error_generic_title: "启动器错误", - error_generic_content: "出现错误。如果问题依然存在,请<0>汇报漏洞。别忘了附上你的<1>日志文件。错误代码:{{code}}", - error_os_requirements_title: "未达到最低配置要求", - error_os_requirements_text: "你的电脑未达到运行星际公民的<0>最低配置要求", - error_cpu_requirements_title: "检测到不支持的硬件", - error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。", - error_launch_account_not_found_title: "复制你的账户到 PTU ", - error_launch_account_not_found_content: "想要游玩公共测试宇宙(PTU),你需要复制账户到 PTU。请按照以下步骤<0>这里并重试。错误代码:{{code}}", - error_launch_game_title: "{{game}} 意外停止运行", - error_launch_game_content: "尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", - error_api_denied_request_title: "API 拒绝请求", - error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。", - error_api_validation_failed: "API 请求验证失败", - error_api_too_many_requests_title: "请求过多", - error_api_too_many_requests_content: "API过载。请稍等几分钟后重试。", - error_api_unavailable: "API不可用。请稍等几分钟后重试。", - error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。", - error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。", - error_api_auth_expired_title: "会话已过期", - error_api_platform_auth_title: "平台验证错误", - error_api_platform_auth_content: "在 {{id}} 平台无法进行验证 {{error}}", - error_launch_game_running_title: "游戏正在运行", - error_launch_game_running_content: "游戏已经处于运行状态。", - error_network_issue_title: "网络问题", - error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。" - }, + error_game_package_missing_title: "没有游戏资格包", + error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。前往<0>立即游玩", + error_game_package_missing_retry: "重试登录", + error_game_package_missing_support: "客户支持", + error_internal_error: "内部错误", + error_not_authenticated: "你未通过身份验证", + error_invalid_claims: "无效声明", + error_authentication_mfa: "身份验证需要mfa", + error_sign_in_failed: "登入失败。你可能输入了错误的凭证。", + error_sign_in_not_authorized: "你没有登入权限。", + error_captcha_invalid: "验证码无效", + error_session_expired: "你的会话已过期。请再次确认你的密码。", + error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活(1032)", + error_max_login_attempt: "已超过登入失败的最大次数。(1034)", + error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码(1037)", + error_captcha_required: "登入失败。你可能输入了错误的凭证。", + error_installer_basepack_invalid_title: "基础文件包 - 文件无效", + error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。错误代码:{{code}}", + error_installer_disc_full_title: "磁盘空间不足", + error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。错误代码:{{code}}", + error_installer_permissions_title: "文件系统权限错误", + error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。错误代码:{{code}}", + error_installer_permissions_action: "修复权限", + error_installer_file_in_use_title: "文件被占用", + error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。错误代码:{{code}}", + error_installer_pk4_corrupted_title: "游戏文件已损坏", + error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。错误代码:{{code}}", + error_installer_retrieve_manifest_title: "无法获取更新文件清单", + error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。错误代码:{{code}}", + error_installer_unknown_network_title: "未知网络错误", + error_installer_unknown_network_content: "请检查你的网络并重试。错误代码:{{code}}", + error_installer_base_p4k_corrupted_title: "基础文件包验证错误", + error_installer_base_p4k_corrupted_content: "基础文件包验证失败,请重试。如果问题依然存在,请<0>汇报漏洞。别忘了附上你的<1>日志文件。", + error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误", + error_installer_patcher_title: "数据修补程序错误", + error_installer_title: "安装程序错误", + error_installer_patcher_generic_content: "安装时出现错误。可在<0>知识库中查阅更多相关信息。如果问题依然存在,请<1>汇报漏洞。请同时附上你的<2>日志文件。错误代码:{{code}}", + error_installer_generic_content: "安装时出现错误。如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。错误代码:{{code}}", + error_generic_title: "启动器错误", + error_generic_content: "出现错误。如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。错误代码:{{code}}", + error_os_requirements_title: "未达到最低配置要求", + error_os_requirements_text: "你的电脑未达到运行星际公民的<0>最低配置要求", + error_cpu_requirements_title: "检测到不支持的硬件", + error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。", + error_launch_account_not_found_title: "复制你的账户到 PTU ", + error_launch_account_not_found_content: "想要游玩公共测试宇宙(PTU),你需要复制账户到 PTU。请按照以下步骤<0>这里并重试。错误代码:{{code}}", + error_launch_game_title: "{{game}} 意外停止运行", + error_launch_game_content: "尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", + error_launch_unknown_title: "启动器 - 未知错误", + error_launch_unknown_content: "启动游戏时出现错误。请验证游戏文件完整性。<2> 如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。错误代码:{{code}}", + error_launch_no_game_files_title: "启动器 - 未找到游戏文件", + error_launch_no_game_files_content: "启动游戏时出现错误。无法检索到游戏文件。请验证游戏文件完整性。错误代码:{{code}}", + error_launch_EAC_title: "启动器 - EAC 错误", + error_launch_EAC_content: "启动游戏时出现错误。EAC 检测到文件损坏。请验证游戏文件完整性。错误代码:{{code}}", + error_launch_game_crash_title: "游戏错误", + error_launch_game_crash_content: "游戏运行时出现错误。如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。错误代码:{{code}}", + error_launch_game_running_title: "游戏正在运行", + error_launch_game_running_content: "游戏已经处于运行状态", + error_launch_check_update_unavailable_title: "检查游戏版本失败", + error_launch_check_update_unavailable_content: "检查游戏版本时出现错误。如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。错误代码:{{code}}", + error_api_denied_request_title: "API 拒绝请求", + error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。", + error_api_validation_failed: "API 请求验证失败", + error_api_too_many_requests_title: "请求过多", + error_api_too_many_requests_content: "API过载。请稍等几分钟后重试。", + error_api_unavailable: "API不可用。请稍等几分钟后重试。", + error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。", + error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。", + error_api_auth_expired_title: "会话已过期", + error_api_platform_auth_title: "平台验证错误", + error_api_platform_auth_content: "在 {{id}} 平台无法进行验证 {{error}}", + error_network_issue_title: "网络问题", + error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。" + }, form: { - sign_in_title: "登入 RSI 启动器", - sign_in_email: "邮箱", - sign_in_password: "密码", - sign_in_remember_me: "记住密码", - sign_in_forgot_password: "忘记密码?", - sign_in_captcha: "验证码", - sign_in_captcha_refresh: "刷新", - sign_in_captcha_help: "输入上方图像中的文本。", - sign_in_no_account: "没有账户?", - sign_in_create_account: "创建一个!", - sign_in_submit: "登入", - sign_in_loading: "正在登入…", - sign_in_mfa_title: "我们需要验证你的身份", - sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。", - sign_in_mfa_code_label: "验证码", - sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。", - sign_in_mfa_device_label: "设备名称", - sign_in_mfa_device_help: "为你当前设备输入一个名称。", - sign_in_mfa_duration_label: "信任这个设备", - sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备,我们建议你选择“仅当前会话”。", - sign_in_mfa_session: "仅当前会话", - sign_in_mfa_day: "一天", - sign_in_mfa_week: "一周", - sign_in_mfa_month: "一个月", - sign_in_mfa_year: "一年", - sign_in_mfa_back_sign_in: "返回", - sign_in_mfa_submit: "验证身份", - error_field_is_required: "必须输入该字段", - error_email_field_is_required: "需要输入一个邮箱地址", - error_password_field_is_required: "需要输入密码", - error_code_required: "你必须输入你的代码", - error_device_required: "你必须输入你的设备名称", - error_device_min_length: "你的设备名称最少需要3个字符", - text_field_show_password: "显示密码", - text_field_hide_password: "隐藏密码" - }, + sign_in_title: "登入 RSI 启动器", + sign_in_email: "邮箱", + sign_in_password: "密码", + sign_in_remember_me: "记住密码", + sign_in_forgot_password: "忘记密码?", + sign_in_captcha: "验证码", + sign_in_captcha_refresh: "刷新", + sign_in_captcha_help: "输入上方图像中的文本。", + sign_in_no_account: "没有账户?", + sign_in_create_account: "创建一个!", + sign_in_submit: "登入", + sign_in_loading: "正在登入…", + sign_in_mfa_title: "我们需要验证你的身份", + sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。", + sign_in_mfa_code_label: "验证码", + sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。", + sign_in_mfa_device_label: "设备名称", + sign_in_mfa_device_help: "为你当前设备输入一个名称。", + sign_in_mfa_duration_label: "信任这个设备", + sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备,我们建议你选择“仅当前会话”。", + sign_in_mfa_session: "仅当前会话", + sign_in_mfa_day: "一天", + sign_in_mfa_week: "一周", + sign_in_mfa_month: "一个月", + sign_in_mfa_year: "一年", + sign_in_mfa_back_sign_in: "返回", + sign_in_mfa_submit: "验证身份", + error_field_is_required: "必须输入该字段", + error_email_field_is_required: "需要输入一个邮箱地址", + error_password_field_is_required: "需要输入密码", + error_code_required: "你必须输入你的代码", + error_device_required: "你必须输入你的设备名称", + error_device_min_length: "你的设备名称最少需要3个字符", + text_field_show_password: "显示密码", + text_field_hide_password: "隐藏密码" + }, gamePage: { - game_page_title: "进入<0/><1>{{name}} 宇宙", - game_page_nav_title: "游戏", - game_page_nav_title_one: "游戏", - game_page_nav_title_other: "游戏", - game_page_game_is_running: "游戏正在运行", - game_page_installing: "正在安装…", - game_page_installing_paused: "安装已暂停", - game_page_updating: "正在更新…", - game_page_updating_paused: "更新已暂停", - game_page_verifying: "正在验证文件…", - game_page_verifying_paused: "验证已暂停", - game_page_update_game: "更新游戏", - game_page_launch_game: "启动游戏", - game_page_install_game: "安装游戏", - game_page_waiting_in_queue: "正在排队", - game_page_channels: "游戏环境", - game_page_settings: "设置", - game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明", - game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。", - game_page_status_issue: "我们正在解决一个问题。请自行承担风险。", - game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面", - game_page_cards_empty: "目前没有可用的内容", - game_page_cards_loading: "正在加载内容。", - game_page_cards_tab_community: "社区", - "game_page_cards_tab_comm-links": "通讯链接", - "game_page_cards_tab_new-citizens": "新手指南", - "game_page_cards_tab_patch-notes": "补丁说明", - game_page_card_button_label: "查看更多" - }, + game_page_title: "进入<0/><1>{{name}} 宇宙", + game_page_nav_title: "游戏", + game_page_nav_title_one: "游戏", + game_page_nav_title_other: "游戏", + game_page_game_is_running: "游戏正在运行", + game_page_installing: "正在安装…", + game_page_installing_paused: "安装已暂停", + game_page_updating: "正在更新…", + game_page_updating_paused: "更新已暂停", + game_page_verifying: "正在验证文件…", + game_page_verifying_paused: "验证已暂停", + game_page_update_game: "更新游戏", + game_page_launch_game: "启动游戏", + game_page_install_game: "安装游戏", + game_page_waiting_in_queue: "正在排队", + game_page_channels: "游戏环境", + game_page_settings: "设置", + game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明", + game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。", + game_page_status_issue: "我们正在解决一个问题。请自行承担风险。", + game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面", + game_page_cards_empty: "目前没有可用的内容", + game_page_cards_loading: "正在加载内容。", + game_page_cards_tab_community: "社区", + "game_page_cards_tab_comm-links": "通讯链接", + "game_page_cards_tab_new-citizens": "新手指南", + "game_page_cards_tab_patch-notes": "补丁说明", + game_page_card_button_label: "查看更多" + }, settingsPage: { - settings_about_title: "关于", - settings_application_title: "程序", - settings_games_title: "游戏", - settings_download_title: "下载", - settings_nav_items_application: "程序", - settings_nav_items_games: "游戏", - settings_nav_items_about: "关于", - settings_nav_items_download: "下载", - settings_about_logo_alt: "CloudImperium©", - settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", - settings_about_launcher_version: "启动器版本", - settings_application_window_behavior_title: "窗口行为", - settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。", - settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序", - settings_games_installation_title: "游戏位置", - settings_games_installation_description: "这是你的游戏文件夹的路径。", - settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。", - settings_games_installation_path_title: "游戏位置完整路径", - settings_games_installation_library_folder_success: "路径已更新", - settings_games_installation_library_folder_change: "更改", - settings_games_installation_library_folder_label: "RSI 目录位置", - settings_games_game_files_title: "游戏文件", - settings_games_game_files_description: "验证已安装的游戏文件完整性。如果游戏还未安装,将会安装游戏。", - settings_games_game_files_verify_files: "验证文件", - settings_games_game_files_verifying_files: "正在验证游戏文件", - settings_games_game_files_verifying_files_paused: "已暂停", - settings_common_reset: "重置所有更改", - settings_common_reset_confirmation: "此游戏频道的更改已被重置", - settings_common_accordion_open_all: "全部展开", - settings_common_accordion_close_all: "全部折叠", - settings_common_back: "返回", - settings_common_saved: "已保存", - settings_download_main_title: "带宽使用", - settings_download_main_content: "调整下行带宽以优化网速", - settings_download_concurrent_title: "同时下载数", - settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。", - settings_download_speed_title: "限制下载速度", - settings_download_speed_desc: "设置每秒数据传输速率上限以调节下载速率。" - }, + settings_about_title: "关于", + settings_application_title: "程序", + settings_games_title: "游戏", + settings_download_title: "下载", + settings_nav_items_application: "程序", + settings_nav_items_games: "游戏", + settings_nav_items_about: "关于", + settings_nav_items_download: "下载", + settings_about_logo_alt: "CloudImperium©", + settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", + settings_about_launcher_version: "启动器版本", + settings_application_window_behavior_title: "窗口行为", + settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。", + settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序", + settings_games_installation_title: "游戏位置", + settings_games_installation_description: "这是你的游戏文件夹的路径。", + settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。", + settings_games_installation_path_title: "游戏位置完整路径", + settings_games_installation_library_folder_success: "路径已更新", + settings_games_installation_library_folder_change: "更改", + settings_games_installation_library_folder_label: "RSI 目录位置", + settings_games_game_files_title: "游戏文件", + settings_games_game_files_description: "验证已安装的游戏文件完整性。如果游戏还未安装,将会安装游戏。", + settings_games_game_files_verify_files: "验证文件", + settings_games_game_files_verifying_files: "正在验证游戏文件", + settings_games_game_files_verifying_files_paused: "已暂停", + settings_common_reset: "重置所有更改", + settings_common_reset_confirmation: "此游戏频道的更改已被重置", + settings_common_accordion_open_all: "全部展开", + settings_common_accordion_close_all: "全部折叠", + settings_common_back: "返回", + settings_common_saved: "已保存", + settings_download_main_title: "带宽使用", + settings_download_main_content: "调整下行带宽以优化网速", + settings_download_concurrent_title: "同时下载数", + settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。", + settings_download_speed_title: "限制下载速度", + settings_download_speed_desc: "设置每秒数据传输速率上限以调节下载速率。" + }, status: { - status_title: "RSI 状态", - status_empty: "无状态可用。", - status_last_updated: "最后一次更新 {{time}}", - status_last_updated_empty: "当前无可用数据。", - status_more_information: "更多信息", - status_major: "完全中断", - status_partial: "部分中断", - status_degraded: "性能降低", - status_maintenance: "正在维护", - status_operational: "正常运行" - }, + status_title: "RSI 状态", + status_empty: "无状态可用。", + status_last_updated: "最后一次更新 {{time}}", + status_last_updated_empty: "当前无可用数据。", + status_more_information: "更多信息", + status_major: "完全中断", + status_partial: "部分中断", + status_degraded: "性能降低", + status_maintenance: "正在维护", + status_operational: "正常运行" + }, tray: { - tray_website: "访问网站", - tray_report_bug: "汇报漏洞", - tray_spectrum: "光谱", - tray_community_hub: "社区中心", - tray_support: "支持", - tray_mute: "静音", - tray_unmute: "取消静音", - tray_logout: "登出", - tray_quit: "退出" - } + tray_website: "访问网站", + tray_report_bug: "汇报漏洞", + tray_spectrum: "光谱", + tray_community_hub: "社区中心", + tray_support: "支持", + tray_mute: "静音", + tray_unmute: "取消静音", + tray_logout: "登出", + tray_quit: "退出" + } }; const SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = { agreements: { @@ -10312,17 +10670,17 @@ if (r) return r[a] } - function C(e, t, n) { + function R(e, t, n) { var r = A(e, n); return void 0 !== r ? r : A(t, n) } - function T(e, t, n) { - for (var r in t) "__proto__" !== r && "constructor" !== r && (r in e ? "string" === typeof e[r] || e[r] instanceof String || "string" === typeof t[r] || t[r] instanceof String ? n && (e[r] = t[r]) : T(e[r], t[r], n) : e[r] = t[r]); + function C(e, t, n) { + for (var r in t) "__proto__" !== r && "constructor" !== r && (r in e ? "string" === typeof e[r] || e[r] instanceof String || "string" === typeof t[r] || t[r] instanceof String ? n && (e[r] = t[r]) : C(e[r], t[r], n) : e[r] = t[r]); return e } - function R(e) { + function T(e) { return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") } var D = { @@ -10339,8 +10697,8 @@ return D[e] })) : e } - var j = "undefined" !== typeof window && window.navigator && "undefined" === typeof window.navigator.userAgentData && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, - L = [" ", ",", "?", "!", ";"]; + var L = "undefined" !== typeof window && window.navigator && "undefined" === typeof window.navigator.userAgentData && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, + j = [" ", ",", "?", "!", ";"]; function M(e, t) { var n = Object.keys(e); @@ -10418,7 +10776,7 @@ ns: ["translation"], defaultNS: "translation" }; - return s(this, n), r = t.call(this), j && k.call(d(r)), r.data = e || {}, r.options = a, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), void 0 === r.options.ignoreJSONStructure && (r.options.ignoreJSONStructure = !0), r + return s(this, n), r = t.call(this), L && k.call(d(r)), r.data = e || {}, r.options = a, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), void 0 === r.options.ignoreJSONStructure && (r.options.ignoreJSONStructure = !0), r } return u(n, [{ key: "addNamespaces", @@ -10473,7 +10831,7 @@ o = [e, t]; e.indexOf(".") > -1 && (r = n, n = t, t = (o = e.split("."))[1]), this.addNamespaces(t); var s = A(this.data, o) || {}; - r ? T(s, n, a) : s = z(z({}, s), n), I(this.data, o, s), i.silent || this.emit("added", e, t, n) + r ? C(s, n, a) : s = z(z({}, s), n), I(this.data, o, s), i.silent || this.emit("added", e, t, n) } }, { key: "removeResourceBundle", @@ -10510,7 +10868,7 @@ } }]), n }(k), - B = { + G = { processors: {}, addPostProcessor: function(e) { this.processors[e.name] = e @@ -10523,7 +10881,7 @@ } }; - function G(e, t) { + function B(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -10537,9 +10895,9 @@ function q(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; - t % 2 ? G(Object(n), !0).forEach((function(t) { + t % 2 ? B(Object(n), !0).forEach((function(t) { g(e, t, n[t]) - })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G(Object(n)).forEach((function(t) { + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) } @@ -10573,7 +10931,7 @@ function n(e) { var r, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - return s(this, n), r = t.call(this), j && k.call(d(r)), O(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, d(r)), r.options = a, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), r.logger = w.create("translator"), r + return s(this, n), r = t.call(this), L && k.call(d(r)), O(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, d(r)), r.options = a, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), r.logger = w.create("translator"), r } return u(n, [{ key: "changeLanguage", @@ -10600,7 +10958,7 @@ i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && ! function(e, t, n) { t = t || "", n = n || ""; - var r = L.filter((function(e) { + var r = j.filter((function(e) { return t.indexOf(e) < 0 && n.indexOf(e) < 0 })); if (0 === r.length) return !0; @@ -10681,18 +11039,18 @@ } } else if (w && "string" === typeof x && "[object Array]" === _)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, r)); else { - var C = !1, - T = !1, - R = void 0 !== t.count && "string" !== typeof t.count, + var R = !1, + C = !1, + T = void 0 !== t.count && "string" !== typeof t.count, D = n.hasDefaultValue(t), - N = R ? this.pluralResolver.getSuffix(p, t.count, t) : "", - j = t["defaultValue".concat(N)] || t.defaultValue; - !this.isValidLookup(g) && D && (C = !0, g = j), this.isValidLookup(g) || (T = !0, g = c); - var L = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, - M = L && T ? void 0 : g, - z = D && j !== g && this.options.updateMissing; - if (T || C || z) { - if (this.logger.log(z ? "updateKey" : "missingKey", p, d, c, z ? j : g), s) { + N = T ? this.pluralResolver.getSuffix(p, t.count, t) : "", + L = t["defaultValue".concat(N)] || t.defaultValue; + !this.isValidLookup(g) && D && (R = !0, g = L), this.isValidLookup(g) || (C = !0, g = c); + var j = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, + M = j && C ? void 0 : g, + z = D && L !== g && this.options.updateMissing; + if (C || R || z) { + if (this.logger.log(z ? "updateKey" : "missingKey", p, d, c, z ? L : g), s) { var F = this.resolve(c, q(q({}, t), {}, { keySeparator: !1 })); @@ -10701,19 +11059,19 @@ var U = [], V = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language); if ("fallback" === this.options.saveMissingTo && V && V[0]) - for (var B = 0; B < V.length; B++) U.push(V[B]); + for (var G = 0; G < V.length; G++) U.push(V[G]); else "all" === this.options.saveMissingTo ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language); - var G = function(e, n, r) { + var B = function(e, n, r) { var i = D && r !== g ? r : M; a.options.missingKeyHandler ? a.options.missingKeyHandler(e, d, n, i, z, t) : a.backendConnector && a.backendConnector.saveMissing && a.backendConnector.saveMissing(e, d, n, i, z, t), a.emit("missingKey", e, d, n, g) }; - this.options.saveMissing && (this.options.saveMissingPlurals && R ? U.forEach((function(e) { + this.options.saveMissing && (this.options.saveMissingPlurals && T ? U.forEach((function(e) { a.pluralResolver.getSuffixes(e, t).forEach((function(n) { - G([e], c + n, t["defaultValue".concat(n)] || j) + B([e], c + n, t["defaultValue".concat(n)] || L) })) - })) : G(U, c, j)) + })) : B(U, c, L)) } - g = this.extendTranslation(g, e, t, m, r), T && g === c && this.options.appendNamespaceToMissingKey && (g = "".concat(d, ":").concat(c)), (T || C) && this.options.parseMissingKeyHandler && (g = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(d, ":").concat(c) : c, C ? g : void 0) : this.options.parseMissingKeyHandler(g)) + g = this.extendTranslation(g, e, t, m, r), C && g === c && this.options.appendNamespaceToMissingKey && (g = "".concat(d, ":").concat(c)), (C || R) && this.options.parseMissingKeyHandler && (g = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(d, ":").concat(c) : c, R ? g : void 0) : this.options.parseMissingKeyHandler(g)) } return i ? (m.res = g, m) : g } @@ -10744,7 +11102,7 @@ } var d = n.postProcess || this.options.postProcess, p = "string" === typeof d ? [d] : d; - return void 0 !== e && null !== e && p && p.length && !1 !== n.applyPostProcessor && (e = B.handle(p, e, t, this.options && this.options.postProcessPassResolved ? q({ + return void 0 !== e && null !== e && p && p.length && !1 !== n.applyPostProcessor && (e = G.handle(p, e, t, this.options && this.options.postProcessPassResolved ? q({ i18nResolved: r }, n) : n, this)), e } @@ -11193,7 +11551,7 @@ escapeValue: !0 }); var t = e.interpolation; - this.escape = void 0 !== t.escape ? t.escape : N, this.escapeValue = void 0 === t.escapeValue || t.escapeValue, this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape, this.prefix = t.prefix ? R(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? R(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? R(t.nestingPrefix) : t.nestingPrefixEscaped || R("$t("), this.nestingSuffix = t.nestingSuffix ? R(t.nestingSuffix) : t.nestingSuffixEscaped || R(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat, this.resetRegExp() + this.escape = void 0 !== t.escape ? t.escape : N, this.escapeValue = void 0 === t.escapeValue || t.escapeValue, this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape, this.prefix = t.prefix ? T(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? T(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? T(t.nestingPrefix) : t.nestingPrefixEscaped || T("$t("), this.nestingSuffix = t.nestingSuffix ? T(t.nestingSuffix) : t.nestingSuffixEscaped || T(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat, this.resetRegExp() } }, { key: "reset", @@ -11221,7 +11579,7 @@ } var u = function(e) { if (e.indexOf(s.formatSeparator) < 0) { - var a = C(t, l, e); + var a = R(t, l, e); return s.alwaysFormat ? s.format(a, void 0, n, re(re(re({}, r), t), {}, { interpolationkey: e })) : a @@ -11229,7 +11587,7 @@ var i = e.split(s.formatSeparator), o = i.shift().trim(), c = i.join(s.formatSeparator).trim(); - return s.format(C(t, l, o), c, n, re(re(re({}, r), t), {}, { + return s.format(R(t, l, o), c, n, re(re(re({}, r), t), {}, { interpolationkey: o })) }; @@ -11254,13 +11612,13 @@ var l = d(e, a, r); i = "string" === typeof l ? l : "" } else if (r && r.hasOwnProperty(n)) i = ""; - else { - if (p) { - i = a[0]; - continue - } - s.logger.warn("missed to pass in variable ".concat(n, " for interpolating ").concat(e)), i = "" - } else "string" === typeof i || s.useRawValueToEscape || (i = S(i)); + else { + if (p) { + i = a[0]; + continue + } + s.logger.warn("missed to pass in variable ".concat(n, " for interpolating ").concat(e)), i = "" + } else "string" === typeof i || s.useRawValueToEscape || (i = S(i)); var c = t.safeValue(i); if (e = e.replace(a[0], c), p ? (t.regex.lastIndex += i.length, t.regex.lastIndex -= a[0].length) : t.regex.lastIndex = 0, ++o >= s.maxReplaces) break } @@ -11493,7 +11851,7 @@ function n(e, r, a) { var i, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; - return s(this, n), i = t.call(this), j && k.call(d(i)), i.backend = e, i.store = r, i.services = a, i.languageUtils = a.languageUtils, i.options = o, i.logger = w.create("backendConnector"), i.waitingReads = [], i.maxParallelReads = o.maxParallelReads || 10, i.readingCalls = 0, i.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, i.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(a, o.backend, o), i + return s(this, n), i = t.call(this), L && k.call(d(i)), i.backend = e, i.store = r, i.services = a, i.languageUtils = a.languageUtils, i.options = o, i.logger = w.create("backendConnector"), i.waitingReads = [], i.maxParallelReads = o.maxParallelReads || 10, i.readingCalls = 0, i.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, i.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(a, o.backend, o), i } return u(n, [{ key: "queueLoad", @@ -11537,9 +11895,9 @@ o = a.k; i[o] = i[o] || [], r && (i[o] = i[o].concat(n)), r || i[o].push(n) }(n.loaded, [a], i), - function(e, t) { - void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--) - }(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((function(e) { + function(e, t) { + void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--) + }(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((function(e) { o[e] || (o[e] = {}); var t = n.loaded[e]; t.length && t.forEach((function(t) { @@ -11778,9 +12136,9 @@ function n() { var e, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0; - if (s(this, n), e = t.call(this), j && k.call(d(e)), e.options = fe(r), e.services = {}, e.logger = w, e.modules = { - external: [] - }, _e(d(e)), a && !e.isInitialized && !r.isClone) { + if (s(this, n), e = t.call(this), L && k.call(d(e)), e.options = fe(r), e.services = {}, e.logger = w, e.modules = { + external: [] + }, _e(d(e)), a && !e.isInitialized && !r.isClone) { if (!e.options.initImmediate) return e.init(r, a), f(e, d(e)); setTimeout((function() { e.init(r, a) @@ -11893,7 +12251,7 @@ value: function(e) { if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); - return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && B.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this + return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && G.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this } }, { key: "setResolvedLanguage", @@ -12114,9 +12472,9 @@ Pe = n.t(Oe, 2), Ie = n(7399), Ae = n.n(Ie), - Ce = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g; + Re = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g; - function Te(e) { + function Ce(e) { var t = { type: "tag", name: "", @@ -12132,7 +12490,7 @@ comment: -1 !== r ? e.slice(4, r) : "" } } - for (var a = new RegExp(Ce), i = null; null !== (i = a.exec(e));) + for (var a = new RegExp(Re), i = null; null !== (i = a.exec(e));) if (i[0].trim()) if (i[1]) { var o = i[1].trim(), @@ -12141,11 +12499,11 @@ } else i[2] && (t.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1)); return t } - var Re = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, + var Te = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, De = /^\s*$/, Ne = Object.create(null); - function je(e, t) { + function Le(e, t) { switch (t.type) { case "text": return e + t.content; @@ -12154,12 +12512,12 @@ var t = []; for (var n in e) t.push(n + '="' + e[n] + '"'); return t.length ? " " + t.join(" ") : "" - }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(je, "") + ""; + }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(Le, "") + ""; case "comment": return e + "\x3c!--" + t.comment + "--\x3e" } } - var Le = { + var je = { parse: function(e, t) { t || (t = {}), t.components || (t.components = Ne); var n, r = [], @@ -12173,7 +12531,7 @@ content: -1 === s ? e : e.substring(0, s) }) } - return e.replace(Re, (function(s, l) { + return e.replace(Te, (function(s, l) { if (o) { if (s !== "") return; o = !1 @@ -12183,13 +12541,13 @@ p = l + s.length, h = e.charAt(p); if (d) { - var f = Te(s); + var f = Ce(s); return i < 0 ? (r.push(f), r) : ((c = a[i]).children.push(f), r) } - if (u && (i++, "tag" === (n = Te(s)).type && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !h || "<" === h || n.children.push({ - type: "text", - content: e.slice(p, e.indexOf("<", p)) - }), 0 === i && r.push(n), (c = a[i - 1]) && c.children.push(n), a[i] = n), (!u || n.voidElement) && (i > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (i--, n = -1 === i ? r : a[i]), !o && "<" !== h && h)) { + if (u && (i++, "tag" === (n = Ce(s)).type && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !h || "<" === h || n.children.push({ + type: "text", + content: e.slice(p, e.indexOf("<", p)) + }), 0 === i && r.push(n), (c = a[i - 1]) && c.children.push(n), a[i] = n), (!u || n.voidElement) && (i > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (i--, n = -1 === i ? r : a[i]), !o && "<" !== h && h)) { c = -1 === i ? r : a[i].children; var m = e.indexOf("<", p), g = e.slice(p, -1 === m ? void 0 : m); @@ -12202,11 +12560,11 @@ }, stringify: function(e) { return e.reduce((function(e, t) { - return e + je("", t) + return e + Le("", t) }), "") } }; - const Me = Le; + const Me = je; function ze() { if (console && console.warn) { @@ -12234,7 +12592,7 @@ })) } - function Be(e, t) { + function Ge(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = t.languages[0], a = !!t.options && t.options.fallbackLng, @@ -12247,7 +12605,7 @@ return !(n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, e)) && (!!t.hasResourceBundle(r, e) || (!(t.services.backendConnector.backend && (!t.options.resources || t.options.partialBundledLanguages)) || !(!o(r, e) || a && !o(i, e)))) } - function Ge(e, t) { + function Be(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; if (!t.languages || !t.languages.length) return Ue("i18n.languages were undefined or empty", t.languages), !0; var r = void 0 !== t.options.ignoreJSONStructure; @@ -12255,7 +12613,7 @@ precheck: function(t, r) { if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1 } - }) : Be(e, t, n) + }) : Ge(e, t, n) } var qe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, $e = { @@ -12381,10 +12739,10 @@ else if (s || o && 0 === i) if (e.props.i18nIsDynamicList) n += "<".concat(r, ">"); else if (o && 1 === i && "string" === typeof s) n += "<".concat(e.type, ">").concat(s, ""); - else { - var l = ot(s, t); - n += "<".concat(r, ">").concat(l, "") - } else n += "<".concat(r, ">") + else { + var l = ot(s, t); + n += "<".concat(r, ">").concat(l, "") + } else n += "<".concat(r, ">") } else if (null === e) ze("Trans: the passed in value is invalid - seems you passed in a null child."); else if ("object" === we(e)) { var c = e.format, @@ -12555,9 +12913,9 @@ var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; Qe = Ye(Ye({}, Qe), e) }(e.options.react), - function(e) { - Ke = e - }(e) + function(e) { + Ke = e + }(e) } }; var dt = (0, Oe.createContext)(), @@ -12740,7 +13098,7 @@ p = e || i || o.options && o.options.defaultNS; p = "string" === typeof p ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p); var h = (o.isInitialized || o.initializedStoreOnce) && p.every((function(e) { - return Ge(e, o, c) + return Be(e, o, c) })); function f() { @@ -12761,8 +13119,8 @@ x.current && y(f) } return x.current = !0, h || u || Ve(o, p, (function() { - x.current && y(f) - })), h && b && b !== _ && x.current && y(f), e && o && o.on(e, n), t && o && o.store.on(t, n), + x.current && y(f) + })), h && b && b !== _ && x.current && y(f), e && o && o.on(e, n), t && o && o.store.on(t, n), function() { x.current = !1, e && o && e.split(" ").forEach((function(e) { return o.off(e, n) @@ -12843,7 +13201,7 @@ It = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? (0, Et.YO)("logger", Pt) : Pt(); const At = Object.prototype.toString; - function Ct(e) { + function Rt(e) { switch (At.call(e)) { case "[object Error]": case "[object Exception]": @@ -12854,28 +13212,28 @@ } } - function Tt(e, t) { + function Ct(e, t) { return At.call(e) === `[object ${t}]` } - function Rt(e) { - return Tt(e, "ErrorEvent") + function Tt(e) { + return Ct(e, "ErrorEvent") } function Dt(e) { - return Tt(e, "DOMError") + return Ct(e, "DOMError") } function Nt(e) { - return Tt(e, "String") - } - - function jt(e) { - return null === e || "object" !== typeof e && "function" !== typeof e + return Ct(e, "String") } function Lt(e) { - return Tt(e, "Object") + return null === e || "object" !== typeof e && "function" !== typeof e + } + + function jt(e) { + return Ct(e, "Object") } function Mt(e) { @@ -12906,14 +13264,14 @@ const l = " > ", c = l.length; let u; - for (; n && o++ < r && (u = Bt(n, t), !("html" === u || o > 1 && s + i.length * c + u.length >= a));) i.push(u), s += u.length, n = n.parentNode; + for (; n && o++ < r && (u = Gt(n, t), !("html" === u || o > 1 && s + i.length * c + u.length >= a));) i.push(u), s += u.length, n = n.parentNode; return i.reverse().join(l) } catch (n) { return "" } } - function Bt(e, t) { + function Gt(e, t) { const n = e, r = []; let a, i, o, s, l; @@ -12930,7 +13288,7 @@ return r.join("") } - function Gt(e, t = 0) { + function Bt(e, t = 0) { return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.substr(0,t)}...` } @@ -12949,7 +13307,7 @@ } function $t(e, t) { - return !!Nt(e) && (Tt(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t)) + return !!Nt(e) && (Ct(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t)) } function Wt(e, t, n) { @@ -12980,7 +13338,7 @@ } function Qt(e) { - if (Ct(e)) return { + if (Rt(e)) return { message: e.message, name: e.name, stack: e.stack, @@ -13019,10 +13377,10 @@ function Jt(e, t = 40) { const n = Object.keys(Qt(e)); if (n.sort(), !n.length) return "[object has no keys]"; - if (n[0].length >= t) return Gt(n[0], t); + if (n[0].length >= t) return Bt(n[0], t); for (let r = n.length; r > 0; r--) { const e = n.slice(0, r).join(", "); - if (!(e.length > t)) return r === n.length ? e : Gt(e, t) + if (!(e.length > t)) return r === n.length ? e : Bt(e, t) } return "" } @@ -13032,7 +13390,7 @@ } function tn(e, t) { - if (Lt(e)) { + if (jt(e)) { const n = t.get(e); if (void 0 !== n) return n; const r = {}; @@ -13085,11 +13443,11 @@ if (!n) return; const r = n.mechanism; if (n.mechanism = { - type: "generic", - handled: !0, - ...r, - ...t - }, t && "data" in t) { + type: "generic", + handled: !0, + ...r, + ...t + }, t && "data" in t) { const e = { ...r && r.data, ...t.data @@ -13138,37 +13496,37 @@ }(t._options, a); return function(e, t) { if (t.ignoreInternal && function(e) { - try { - return "SentryError" === e.exception.values[0].type - } catch (t) {} - return !1 - }(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${an(e)}`), !0; + try { + return "SentryError" === e.exception.values[0].type + } catch (t) {} + return !1 + }(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${an(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - return function(e) { - if (e.message) return [e.message]; - if (e.exception) try { - const { - type: t = "", - value: n = "" - } = e.exception.values && e.exception.values[0] || {}; - return [`${n}`, `${t}: ${n}`] - } catch (ic) { - return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error(`Cannot extract message for event ${an(e)}`), [] - } - return [] - }(e).some((e => t.some((t => $t(e, t))))) - }(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${an(e)}`), !0; + if (!t || !t.length) return !1; + return function(e) { + if (e.message) return [e.message]; + if (e.exception) try { + const { + type: t = "", + value: n = "" + } = e.exception.values && e.exception.values[0] || {}; + return [`${n}`, `${t}: ${n}`] + } catch (Js) { + return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error(`Cannot extract message for event ${an(e)}`), [] + } + return [] + }(e).some((e => t.some((t => $t(e, t))))) + }(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${an(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - const n = pn(e); - return !!n && t.some((e => $t(n, e))) - }(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`), !0; + if (!t || !t.length) return !1; + const n = pn(e); + return !!n && t.some((e => $t(n, e))) + }(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`), !0; if (! function(e, t) { - if (!t || !t.length) return !0; - const n = pn(e); - return !n || t.some((e => $t(n, e))) - }(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`), !0; + if (!t || !t.length) return !0; + const n = pn(e); + return !n || t.some((e => $t(n, e))) + }(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`), !0; return !1 }(e, i) ? null : e } @@ -13192,7 +13550,7 @@ } return null }(n) : null - } catch (ic) { + } catch (Js) { return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error(`Cannot extract url for event ${an(e)}`), null } } @@ -13451,7 +13809,7 @@ }, this._contexts = { ...this._contexts, ...e._contexts - }, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : Lt(e) && (this._tags = { + }, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : jt(e) && (this._tags = { ...this._tags, ...e.tags }, this._extra = { @@ -13488,18 +13846,18 @@ } applyToEvent(e, t = {}) { if (this._extra && Object.keys(this._extra).length && (e.extra = { - ...this._extra, - ...e.extra - }), this._tags && Object.keys(this._tags).length && (e.tags = { - ...this._tags, - ...e.tags - }), this._user && Object.keys(this._user).length && (e.user = { - ...this._user, - ...e.user - }), this._contexts && Object.keys(this._contexts).length && (e.contexts = { - ...this._contexts, - ...e.contexts - }), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) { + ...this._extra, + ...e.extra + }), this._tags && Object.keys(this._tags).length && (e.tags = { + ...this._tags, + ...e.tags + }), this._user && Object.keys(this._user).length && (e.user = { + ...this._user, + ...e.user + }), this._contexts && Object.keys(this._contexts).length && (e.contexts = { + ...this._contexts, + ...e.contexts + }), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) { e.contexts = { trace: this._span.getTraceContext(), ...e.contexts @@ -13784,33 +14142,33 @@ function An(e) { const t = In(), - n = Rn(t); + n = Tn(t); return Dn(t, e), n } - function Cn() { + function Rn() { const e = In(); - return Tn(e) && !Rn(e).isOlderThan(4) || Dn(e, new Pn), (0, vn.KV)() ? function(e) { + return Cn(e) && !Tn(e).isOlderThan(4) || Dn(e, new Pn), (0, vn.KV)() ? function(e) { try { const t = In().__SENTRY__, n = t && t.extensions && t.extensions.domain && t.extensions.domain.active; - if (!n) return Rn(e); - if (!Tn(n) || Rn(n).isOlderThan(4)) { - const t = Rn(e).getStackTop(); + if (!n) return Tn(e); + if (!Cn(n) || Tn(n).isOlderThan(4)) { + const t = Tn(e).getStackTop(); Dn(n, new Pn(t.client, kn.clone(t.scope))) } - return Rn(n) + return Tn(n) } catch (t) { - return Rn(e) + return Tn(e) } - }(e) : Rn(e) + }(e) : Tn(e) } - function Tn(e) { + function Cn(e) { return !!(e && e.__SENTRY__ && e.__SENTRY__.hub) } - function Rn(e) { + function Tn(e) { return (0, Et.YO)("hub", (() => new Pn), e) } @@ -13820,7 +14178,7 @@ } const Nn = []; - function jn(e) { + function Ln(e) { const t = e.defaultIntegrations || [], n = e.integrations; let r; @@ -13843,7 +14201,7 @@ } return a } - class Ln extends Error { + class jn extends Error { constructor(e, t = "warn") { super(e), this.message = e, this.name = new.target.prototype.constructor.name, Object.setPrototypeOf(this, new.target.prototype), this.logLevel = t } @@ -13878,7 +14236,7 @@ function Un(e) { const t = "string" === typeof e ? function(e) { const t = Mn.exec(e); - if (!t) throw new Ln(`Invalid Sentry Dsn: ${e}`); + if (!t) throw new jn(`Invalid Sentry Dsn: ${e}`); const [n, r, a = "", i, o = "", s] = t.slice(1); let l = "", c = s; @@ -13905,12 +14263,12 @@ protocol: r } = e; if (["protocol", "publicKey", "host", "projectId"].forEach((t => { - if (!e[t]) throw new Ln(`Invalid Sentry Dsn: ${t} missing`) - })), !n.match(/^\d+$/)) throw new Ln(`Invalid Sentry Dsn: Invalid projectId ${n}`); + if (!e[t]) throw new jn(`Invalid Sentry Dsn: ${t} missing`) + })), !n.match(/^\d+$/)) throw new jn(`Invalid Sentry Dsn: Invalid projectId ${n}`); if (! function(e) { - return "http" === e || "https" === e - }(r)) throw new Ln(`Invalid Sentry Dsn: Invalid protocol ${r}`); - if (t && isNaN(parseInt(t, 10))) throw new Ln(`Invalid Sentry Dsn: Invalid port ${t}`) + return "http" === e || "https" === e + }(r)) throw new jn(`Invalid Sentry Dsn: Invalid protocol ${r}`); + if (t && isNaN(parseInt(t, 10))) throw new jn(`Invalid Sentry Dsn: Invalid port ${t}`) }(t), t } @@ -13920,7 +14278,7 @@ return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/` } - function Bn(e, t) { + function Gn(e, t) { return n = { sentry_key: e.publicKey, sentry_version: "7", @@ -13931,10 +14289,10 @@ var n } - function Gn(e, t = {}) { + function Bn(e, t = {}) { const n = "string" === typeof t ? t : t.tunnel, r = "string" !== typeof t && t._metadata ? t._metadata.sdk : void 0; - return n || `${function(e){return`${Vn(e)}${e.projectId}/envelope/`}(e)}?${Bn(e,r)}` + return n || `${function(e){return`${Vn(e)}${e.projectId}/envelope/`}(e)}?${Gn(e,r)}` } function qn(...e) { @@ -14091,18 +14449,18 @@ case "fetch": ! function() { if (! function() { - if (!Yn()) return !1; - if (Kn(Hn.fetch)) return !0; - let e = !1; - const t = Hn.document; - if (t && "function" === typeof t.createElement) try { - const n = t.createElement("iframe"); - n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = Kn(n.contentWindow.fetch)), t.head.removeChild(n) - } catch (n) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) - } - return e - }()) return; + if (!Yn()) return !1; + if (Kn(Hn.fetch)) return !0; + let e = !1; + const t = Hn.document; + if (t && "function" === typeof t.createElement) try { + const n = t.createElement("iframe"); + n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = Kn(n.contentWindow.fetch)), t.head.removeChild(n) + } catch (n) { + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) + } + return e + }()) return; Wt(Qn, "fetch", (function(e) { return function(...t) { const n = { @@ -14133,11 +14491,11 @@ case "history": ! function() { if (! function() { - const e = Hn.chrome, - t = e && e.app && e.app.runtime, - n = "history" in Hn && !!Hn.history.pushState && !!Hn.history.replaceState; - return !t && n - }()) return; + const e = Hn.chrome, + t = e && e.app && e.app.runtime, + n = "history" in Hn && !!Hn.history.pushState && !!Hn.history.replaceState; + return !t && n + }()) return; const e = Qn.onpopstate; function t(e) { @@ -14158,9 +14516,9 @@ const n = Qn.location.href, r = ar; if (ar = n, tr("history", { - from: r, - to: n - }), e) try { + from: r, + to: n + }), e) try { return e.apply(this, t) } catch (a) {} }, Wt(Qn.history, "pushState", t), Wt(Qn.history, "replaceState", t) @@ -14214,14 +14572,14 @@ return n => { if (!n || or === n) return; if (function(e) { - if ("keypress" !== e.type) return !1; - try { - const t = e.target; - if (!t || !t.tagName) return !0; - if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1 - } catch (t) {} - return !0 - }(n)) return; + if ("keypress" !== e.type) return !1; + try { + const t = e.target; + if (!t || !t.tagName) return !0; + if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1 + } catch (t) {} + return !0 + }(n)) return; const r = "keypress" === n.type ? "input" : n.type; (void 0 === ir || function(e, t) { if (!e) return !0; @@ -14285,7 +14643,7 @@ const c = function(e, t) { try { return "domain" === e && t && "object" === typeof t && t._events ? "[Domain]" : "domainEmitter" === e ? "[DomainEmitter]" : "undefined" !== typeof n.g && t === n.g ? "[Global]" : "undefined" !== typeof window && t === window ? "[Window]" : "undefined" !== typeof document && t === document ? "[Document]" : function(e) { - return Lt(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e + return jt(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e }(t) ? "[SyntheticEvent]" : "number" === typeof t && t !== t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" === typeof t ? `[Function: ${Wn(t)}]` : "symbol" === typeof t ? `[${String(t)}]` : "bigint" === typeof t ? `[BigInt: ${String(t)}]` : `[object ${Object.getPrototypeOf(t).constructor.name}]` } catch (r) { return `**non-serializable** (${r})` @@ -14447,7 +14805,7 @@ constructor(e) { if (Er.prototype.__init.call(this), Er.prototype.__init2.call(this), Er.prototype.__init3.call(this), Er.prototype.__init4.call(this), this._options = e, e.dsn) { this._dsn = Un(e.dsn); - const t = Gn(this._dsn, e); + const t = Bn(this._dsn, e); this._transport = e.transport({ recordDroppedEvent: this.recordDroppedEvent.bind(this), ...e.transportOptions, @@ -14464,7 +14822,7 @@ } captureMessage(e, t, n, r) { let a = n && n.event_id; - const i = jt(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n); + const i = Lt(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n); return this._process(i.then((e => this._captureEvent(e, n, r))).then((e => { a = e }))), a @@ -14501,7 +14859,7 @@ this._isEnabled() && !this._integrationsInitialized && (this._integrations = function(e) { const t = {}; return e.forEach((e => { - t[e.name] = e, -1 === Nn.indexOf(e.name) && (e.setupOnce(Sn, Cn), Nn.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.log(`Integration installed: ${e.name}`)) + t[e.name] = e, -1 === Nn.indexOf(e.name) && (e.setupOnce(Sn, Rn), Nn.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.log(`Integration installed: ${e.name}`)) })), t }(this._options.integrations), this._integrationsInitialized = !0) } @@ -14633,11 +14991,11 @@ dist: a, maxValueLength: i = 250 } = t; - "environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== a && (e.dist = a), e.message && (e.message = Gt(e.message, i)); + "environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== a && (e.dist = a), e.message && (e.message = Bt(e.message, i)); const o = e.exception && e.exception.values && e.exception.values[0]; - o && o.value && (o.value = Gt(o.value, i)); + o && o.value && (o.value = Bt(o.value, i)); const s = e.request; - s && s.url && (s.url = Gt(s.url, i)) + s && s.url && (s.url = Bt(s.url, i)) } _applyIntegrationsMetadata(e) { const t = Object.keys(this._integrations); @@ -14656,26 +15014,26 @@ { sampleRate: a } = r; - if (!this._isEnabled()) return _n(new Ln("SDK not enabled, will not capture event.", "log")); + if (!this._isEnabled()) return _n(new jn("SDK not enabled, will not capture event.", "log")); const i = "transaction" === e.type, o = i ? "beforeSendTransaction" : "beforeSend", s = r[o]; - return !i && "number" === typeof a && Math.random() > a ? (this.recordDroppedEvent("sample_rate", "error"), _n(new Ln(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"))) : this._prepareEvent(e, t, n).then((n => { - if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new Ln("An event processor returned `null`, will not send event.", "log"); + return !i && "number" === typeof a && Math.random() > a ? (this.recordDroppedEvent("sample_rate", "error"), _n(new jn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"))) : this._prepareEvent(e, t, n).then((n => { + if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new jn("An event processor returned `null`, will not send event.", "log"); if (t.data && !0 === t.data.__sentry__ || !s) return n; return function(e, t) { const n = `\`${t}\` must return \`null\` or a valid event.`; if (zt(e)) return e.then((e => { - if (!Lt(e) && null !== e) throw new Ln(n); + if (!jt(e) && null !== e) throw new jn(n); return e }), (e => { - throw new Ln(`\`${t}\` rejected with ${e}`) + throw new jn(`\`${t}\` rejected with ${e}`) })); - if (!Lt(e) && null !== e) throw new Ln(n); + if (!jt(e) && null !== e) throw new jn(n); return e }(s(n, t), o) })).then((r => { - if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new Ln(`\`${o}\` returned \`null\`, will not send event.`, "log"); + if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new jn(`\`${o}\` returned \`null\`, will not send event.`, "log"); const a = n && n.getSession(); !i && a && this._updateSessionFromEvent(a, r); const s = r.transaction_info; @@ -14693,13 +15051,13 @@ } return this.sendEvent(r, t), r })).then(null, (e => { - if (e instanceof Ln) throw e; + if (e instanceof jn) throw e; throw this.captureException(e, { data: { __sentry__: !0 }, originalException: e - }), new Ln(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) + }), new jn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) })) } _process(e) { @@ -14763,28 +15121,28 @@ return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message" } - function Cr(e, t, n, r, a) { + function Rr(e, t, n, r, a) { let i; - if (Rt(t) && t.error) { + if (Tt(t) && t.error) { return Or(e, t.error) } - if (Dt(t) || Tt(t, "DOMException")) { + if (Dt(t) || Ct(t, "DOMException")) { const a = t; if ("stack" in t) i = Or(e, t); else { const t = a.name || (Dt(a) ? "DOMError" : "DOMException"), o = a.message ? `${t}: ${a.message}` : t; - i = Tr(e, o, n, r), on(i, o) + i = Cr(e, o, n, r), on(i, o) } return "code" in a && (i.tags = { ...i.tags, "DOMException.code": `${a.code}` }), i } - if (Ct(t)) return Or(e, t); - if (Lt(t) || Mt(t)) { + if (Rt(t)) return Or(e, t); + if (jt(t) || Mt(t)) { return i = function(e, t, n, r) { - const a = Cn().getClient(), + const a = Rn().getClient(), i = a && a.getOptions().normalizeDepth, o = { exception: { @@ -14808,12 +15166,12 @@ synthetic: !0 }), i } - return i = Tr(e, t, n, r), on(i, `${t}`, void 0), sn(i, { + return i = Cr(e, t, n, r), on(i, `${t}`, void 0), sn(i, { synthetic: !0 }), i } - function Tr(e, t, n, r) { + function Cr(e, t, n, r) { const a = { message: t }; @@ -14831,25 +15189,25 @@ return a } - function Rr(e, t) { - return Cn().captureException(e, { + function Tr(e, t) { + return Rn().captureException(e, { captureContext: t }) } function Dr(e) { - Cn().withScope(e) + Rn().withScope(e) } const Nr = Et.n2; - let jr = 0; + let Lr = 0; - function Lr() { - return jr > 0 + function jr() { + return Lr > 0 } function Mr() { - jr += 1, setTimeout((() => { - jr -= 1 + Lr += 1, setTimeout((() => { + Lr -= 1 })) } @@ -14868,13 +15226,13 @@ n && "function" === typeof n && n.apply(this, arguments); const a = r.map((e => zr(e, t))); return e.apply(this, a) - } catch (Ri) { + } catch (Ti) { throw Mr(), Dr((n => { n.addEventProcessor((e => (t.mechanism && (on(e, void 0, void 0), sn(e, t.mechanism)), e.extra = { ...e.extra, arguments: r - }, e))), Rr(Ri) - })), Ri + }, e))), Tr(Ti) + })), Ti } }; try { @@ -14907,16 +15265,16 @@ relative: t[5] + n + r } } - const Br = "Breadcrumbs"; - class Gr { + const Gr = "Breadcrumbs"; + class Br { static __initStatic() { - this.id = Br + this.id = Gr } __init() { - this.name = Gr.id + this.name = Br.id } constructor(e) { - Gr.prototype.__init.call(this), this.options = { + Br.prototype.__init.call(this), this.options = { console: !0, dom: !0, fetch: !0, @@ -14936,7 +15294,7 @@ } catch (a) { n = "" } - 0 !== n.length && Cn().addBreadcrumb({ + 0 !== n.length && Rn().addBreadcrumb({ category: `ui.${t.name}`, message: n }, { @@ -14968,7 +15326,7 @@ if (!1 !== e.args[0]) return; t.message = `Assertion failed: ${qt(e.args.slice(1)," ")||"console.assert"}`, t.data.arguments = e.args.slice(1) } - Cn().addBreadcrumb(t, { + Rn().addBreadcrumb(t, { input: e.args, level: e.level }) @@ -14983,7 +15341,7 @@ status_code: r, body: a } = e.xhr.__sentry_xhr__ || {}; - Cn().addBreadcrumb({ + Rn().addBreadcrumb({ category: "xhr", data: { method: t, @@ -14999,7 +15357,7 @@ } function Wr(e) { - e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? Cn().addBreadcrumb({ + e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? Rn().addBreadcrumb({ category: "fetch", data: e.fetchData, level: "error", @@ -15007,7 +15365,7 @@ }, { data: e.error, input: e.args - }) : Cn().addBreadcrumb({ + }) : Rn().addBreadcrumb({ category: "fetch", data: { ...e.fetchData, @@ -15026,7 +15384,7 @@ const r = Vr(Nr.location.href); let a = Vr(t); const i = Vr(n); - a.path || (a = r), r.protocol === i.protocol && r.host === i.host && (n = i.relative), r.protocol === a.protocol && r.host === a.host && (t = a.relative), Cn().addBreadcrumb({ + a.path || (a = r), r.protocol === i.protocol && r.host === i.host && (n = i.relative), r.protocol === a.protocol && r.host === a.host && (t = a.relative), Rn().addBreadcrumb({ category: "navigation", data: { from: t, @@ -15034,7 +15392,7 @@ } }) } - Gr.__initStatic(); + Br.__initStatic(); class Yr extends Er { constructor(e) { e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || { @@ -15050,19 +15408,19 @@ } eventFromException(e, t) { return function(e, t, n, r) { - const a = Cr(e, t, n && n.syntheticException || void 0, r); + const a = Rr(e, t, n && n.syntheticException || void 0, r); return sn(a), a.level = "error", n && n.event_id && (a.event_id = n.event_id), yn(a) }(this._options.stackParser, e, t, this._options.attachStacktrace) } eventFromMessage(e, t = "info", n) { return function(e, t, n = "info", r, a) { - const i = Tr(e, t, r && r.syntheticException || void 0, a); + const i = Cr(e, t, r && r.syntheticException || void 0, a); return i.level = n, r && r.event_id && (i.event_id = r.event_id), yn(i) }(this._options.stackParser, e, t, n, this._options.attachStacktrace) } sendEvent(e, t) { - const n = this.getIntegrationById(Br); - n && n.options && n.options.sentry && Cn().addBreadcrumb({ + const n = this.getIntegrationById(Gr); + n && n.options && n.options.sentry && Rn().addBreadcrumb({ category: "sentry." + ("transaction" === e.type ? "transaction" : "event"), event_id: e.event_id, level: e.level, @@ -15079,7 +15437,7 @@ if (0 === e.length) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.log("No outcomes to send")); if (!this._dsn) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.log("No dsn provided, will not send outcomes")); ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.log("Sending outcomes:", e); - const t = Gn(this._dsn, this._options), + const t = Bn(this._dsn, this._options), n = (r = e, hr((a = this._options.tunnel && zn(this._dsn)) ? { dsn: a } : {}, [ @@ -15313,10 +15671,10 @@ column: s, error: l } = e; - if (Lr() || l && l.__sentry_own_request__) return; + if (jr() || l && l.__sentry_own_request__) return; const c = void 0 === l && Nt(a) ? function(e, t, n, r) { const a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i; - let i = Rt(e) ? e.message : e, + let i = Tt(e) ? e.message : e, o = "Error"; const s = i.match(a); s && (o = s[1], i = s[2]); @@ -15329,7 +15687,7 @@ } }; return ha(l, t, n, r) - }(a, i, o, s) : ha(Cr(n, l || a, void 0, r, !1), i, o, s); + }(a, i, o, s) : ha(Rr(n, l || a, void 0, r, !1), i, o, s); c.level = "error", fa(t, l, c, "onerror") })) } @@ -15342,15 +15700,15 @@ try { "reason" in e ? a = e.reason : "detail" in e && "reason" in e.detail && (a = e.detail.reason) } catch (o) {} - if (Lr() || a && a.__sentry_own_request__) return !0; - const i = jt(a) ? { + if (jr() || a && a.__sentry_own_request__) return !0; + const i = Lt(a) ? { exception: { values: [{ type: "UnhandledRejection", value: `Non-Error promise rejection captured with value: ${String(a)}` }] } - } : Cr(n, a, void 0, r, !0); + } : Rr(n, a, void 0, r, !0); i.level = "error", fa(t, a, i, "onunhandledrejection") })) } @@ -15366,7 +15724,7 @@ d = Nt(t) && t.length > 0 ? t : function() { try { return Ut.document.location.href - } catch (ic) { + } catch (Js) { return "" } }(); @@ -15389,7 +15747,7 @@ } function ma() { - const e = Cn(), + const e = Rn(), t = e.getClient(), n = t && t.getOptions() || { stackParser: () => [], @@ -15409,9 +15767,9 @@ ga.prototype.__init.call(this), this._key = e.key || "cause", this._limit = e.limit || 5 } setupOnce() { - const e = Cn().getClient(); + const e = Rn().getClient(); e && Sn(((t, n) => { - const r = Cn().getIntegration(ga); + const r = Rn().getIntegration(ga); return r ? function(e, t, n, r, a) { if (!r.exception || !r.exception.values || !a || !Ft(a.originalException, Error)) return r; const i = va(e, n, a.originalException, t); @@ -15443,28 +15801,28 @@ if (n) { try { if (function(e, t) { - if (!t) return !1; - if (function(e, t) { - const n = e.message, - r = t.message; - if (!n && !r) return !1; - if (n && !r || !n && r) return !1; - if (n !== r) return !1; - if (!ba(e, t)) return !1; - if (!_a(e, t)) return !1; - return !0 - }(e, t)) return !0; - if (function(e, t) { - const n = xa(t), - r = xa(e); - if (!n || !r) return !1; - if (n.type !== r.type || n.value !== r.value) return !1; - if (!ba(e, t)) return !1; - if (!_a(e, t)) return !1; - return !0 - }(e, t)) return !0; - return !1 - }(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn("Event dropped due to being a duplicate of previously captured event."), null + if (!t) return !1; + if (function(e, t) { + const n = e.message, + r = t.message; + if (!n && !r) return !1; + if (n && !r || !n && r) return !1; + if (n !== r) return !1; + if (!ba(e, t)) return !1; + if (!_a(e, t)) return !1; + return !0 + }(e, t)) return !0; + if (function(e, t) { + const n = xa(t), + r = xa(e); + if (!n || !r) return !1; + if (n.type !== r.type || n.value !== r.value) return !1; + if (!ba(e, t)) return !1; + if (!_a(e, t)) return !1; + return !0 + }(e, t)) return !0; + return !1 + }(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn("Event dropped due to being a duplicate of previously captured event."), null } catch (r) { return n._previousEvent = e } @@ -15527,7 +15885,7 @@ } setupOnce() { Sn((e => { - if (Cn().getIntegration(ka)) { + if (Rn().getIntegration(ka)) { if (!Nr.navigator && !Nr.location && !Nr.document) return e; const t = e.request && e.request.url || Nr.location && Nr.location.href, { @@ -15569,7 +15927,7 @@ return { $: t, add: function(r) { - if (!(void 0 === e || t.length < e)) return _n(new Ln("Not adding Promise because buffer limit was reached.")); + if (!(void 0 === e || t.length < e)) return _n(new jn("Not adding Promise because buffer limit was reached.")); const a = r(); return -1 === t.indexOf(a) && t.push(a), a.then((() => n(a))).then(null, (() => n(a).then(null, (() => {})))), a }, @@ -15607,11 +15965,11 @@ for (const o of t.split(";")) a[o] = r + i; else a.all = r + i } else o ? a.all = r + function(e, t = Date.now()) { - const n = parseInt(`${e}`, 10); - if (!isNaN(n)) return 1e3 * n; - const r = Date.parse(`${e}`); - return isNaN(r) ? 6e4 : r - t - }(o, r) : 429 === t && (a.all = r + 6e4); + const n = parseInt(`${e}`, 10); + if (!isNaN(n)) return 1e3 * n; + const r = Date.parse(`${e}`); + return isNaN(r) ? 6e4 : r - t + }(o, r) : 429 === t && (a.all = r + 6e4); return a } @@ -15621,13 +15979,13 @@ send: function(a) { const i = []; if (mr(a, ((t, n) => { - const a = br(n); - ! function(e, t, n = Date.now()) { - return function(e, t) { - return e[t] || e.all || 0 - }(e, t) > n - }(r, a) ? i.push(t): e.recordDroppedEvent("ratelimit_backoff", a) - })), 0 === i.length) return yn(); + const a = br(n); + ! function(e, t, n = Date.now()) { + return function(e, t) { + return e[t] || e.all || 0 + }(e, t) > n + }(r, a) ? i.push(t): e.recordDroppedEvent("ratelimit_backoff", a) + })), 0 === i.length) return yn(); const o = hr(a[0], i), s = t => { mr(o, ((n, r) => { @@ -15641,7 +15999,7 @@ }), (e => { ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error("Failed while sending event:", e), s("network_error") })))).then((e => e), (e => { - if (e instanceof Ln) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error("Skipped sending event because buffer is full."), s("queue_overflow"), yn(); + if (e instanceof jn) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error("Skipped sending event because buffer is full."), s("queue_overflow"), yn(); throw e })) }, @@ -15706,38 +16064,38 @@ })) })) } - const Ca = [new dn, new fn, new ia, new Gr, new ua, new ga, new ya, new ka]; + const Ra = [new dn, new fn, new ia, new Br, new ua, new ga, new ya, new ka]; - function Ta(e = {}) { - void 0 === e.defaultIntegrations && (e.defaultIntegrations = Ca), void 0 === e.release && Nr.SENTRY_RELEASE && Nr.SENTRY_RELEASE.id && (e.release = Nr.SENTRY_RELEASE.id), void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0), void 0 === e.sendClientReports && (e.sendClientReports = !0); + function Ca(e = {}) { + void 0 === e.defaultIntegrations && (e.defaultIntegrations = Ra), void 0 === e.release && Nr.SENTRY_RELEASE && Nr.SENTRY_RELEASE.id && (e.release = Nr.SENTRY_RELEASE.id), void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0), void 0 === e.sendClientReports && (e.sendClientReports = !0); const t = { ...e, stackParser: (n = e.stackParser || na, Array.isArray(n) ? qn(...n) : n), - integrations: jn(e), + integrations: Ln(e), transport: e.transport || (Yn() ? Ia : Aa) }; var n; ! function(e, t) { !0 === t.debug && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? It.enable() : console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")); - const n = Cn(), + const n = Rn(), r = n.getScope(); r && r.update(t.initialScope); const a = new e(t); n.bindClient(a) }(Yr, t), e.autoSessionTracking && function() { if ("undefined" === typeof Nr.document) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); - const e = Cn(); + const e = Rn(); if (!e.captureSession) return; Da(e), er("history", (({ - from: e, - to: t - }) => { - void 0 !== e && e !== t && Da(Cn()) + from: e, + to: t + }) => { + void 0 !== e && e !== t && Da(Rn()) })) }() } - function Ra(e = {}, t = Cn()) { + function Ta(e = {}, t = Rn()) { if (!Nr.document) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && It.error("Global document not defined in showReportDialog call")); const { client: n, @@ -15777,9 +16135,9 @@ error: null, eventId: null }; - class ja extends Oe.Component { + class La extends Oe.Component { constructor(...e) { - super(...e), ja.prototype.__init.call(this), ja.prototype.__init2.call(this) + super(...e), La.prototype.__init.call(this), La.prototype.__init2.call(this) } __init() { this.state = Na @@ -15795,21 +16153,21 @@ } = this.props; Dr((o => { if (function(e) { - const t = e.match(/^([^.]+)/); - return null !== t && parseInt(t[0]) >= 17 - }(Oe.version)) { + const t = e.match(/^([^.]+)/); + return null !== t && parseInt(t[0]) >= 17 + }(Oe.version)) { const n = new Error(e.message); n.name = `React ErrorBoundary ${n.name}`, n.stack = t, e.cause = n } n && n(o, e, t); - const s = Rr(e, { + const s = Tr(e, { contexts: { react: { componentStack: t } } }); - r && r(e, t, s), a && Ra({ + r && r(e, t, s), a && Ta({ ...i, eventId: s }), this.setState({ @@ -15868,8 +16226,8 @@ return "function" === typeof t ? t() : t } } - var La = n(8508), - Ma = n.t(La, 2); + var ja = n(8508), + Ma = n.t(ja, 2); function za(e, t) { void 0 === t && (t = {}); @@ -15880,8 +16238,8 @@ a.type = "text/css", "top" === n && r.firstChild ? r.insertBefore(a, r.firstChild) : r.appendChild(a), a.styleSheet ? a.styleSheet.cssText = e : a.appendChild(document.createTextNode(e)) } } - za("@layer reset, tokens, defaults, components, utilities, themes;@layer reset{*,:after,:before{box-sizing:border-box}:root{font-family:system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0;min-block-size:100vh;min-block-size:100dvh}a{color:inherit;text-decoration:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}h1,h2,h3,h4,h5,h6,p{font:inherit;overflow-wrap:break-word}ol,ul{list-style:none;padding:0}table{border-collapse:collapse;border-spacing:0}pre{white-space:pre-wrap}hr{block-size:0;border:0;border-block-start:1px solid;color:inherit}abbr[title]{text-decoration:underline dotted}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}summary{display:list-item}audio,canvas,embed,iframe,img,object,svg,video{display:block;max-inline-size:100%;vertical-align:middle}canvas,img,svg,video{block-size:auto}audio{block-size:100%}audio:not([controls]),source{display:none}picture{display:contents}iframe{border:0;color-scheme:normal}fieldset{border:0;margin:0}fieldset,legend{padding:0}button,input,select,textarea{border:0;color:inherit;font:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button;background-color:initial;background-image:none}textarea{resize:vertical;resize:block}progress{vertical-align:initial}[hidden]:not([hidden=until-found]){display:none}}@layer tokens{:root,[data-sol-theme]{--sol-border-0:0px;--sol-border-1:1px;--sol-border-2:2px;--sol-radius-0:0px;--sol-radius-4:4px;--sol-radius-8:8px;--sol-radius-16:16px;--sol-radius-24:24px;--sol-radius-rounded:9999px;--sol-radius-circle:50%;--sol-clip-radius-0:none;--sol-clip-radius-4:inset(0 round var(--sol-radius-4));--sol-clip-radius-8:inset(0 round var(--sol-radius-8));--sol-clip-radius-16:inset(0 round var(--sol-radius-16));--sol-clip-radius-24:inset(0 round var(--sol-radius-24));--sol-clip-radius-rounded:inset(0 round var(--sol-radius-rounded));--sol-clip-radius-circle:inset(0 round var(--sol-radius-circle));--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-1:#000;--sol-color-neutral-1-rgb:0 0 0;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-neutral-4:#fff;--sol-color-neutral-4-rgb:255 255 255;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250;--sol-color-negative-1:#ff8080;--sol-color-negative-1-rgb:255 128 128;--sol-color-negative-2:#f99;--sol-color-negative-2-rgb:255 153 153;--sol-color-negative-3:#ffb3b3;--sol-color-negative-3-rgb:255 179 179;--sol-color-notice-1:#e99449;--sol-color-notice-1-rgb:233 148 73;--sol-color-notice-2:#eeaf77;--sol-color-notice-2-rgb:238 175 119;--sol-color-notice-3:#f4c9a4;--sol-color-notice-3-rgb:244 201 164;--sol-color-positive-1:#85c6a2;--sol-color-positive-1-rgb:133 198 162;--sol-color-positive-2:#a8d6bd;--sol-color-positive-2-rgb:168 214 189;--sol-color-positive-3:#cbe7d8;--sol-color-positive-3-rgb:203 231 216;--sol-color-highlight-1:#8186e4;--sol-color-highlight-1-rgb:129 134 228;--sol-color-highlight-2:#abafed;--sol-color-highlight-2-rgb:171 175 237;--sol-color-highlight-3:#d5d7f6;--sol-color-highlight-3-rgb:213 215 246;--sol-color-background:var(--sol-color-primary-1);--sol-color-focused:var(--sol-color-primary-7);--sol-color-overlay:rgba(var(--sol-color-neutral-1-rgb)/0.7);--sol-color-surface-0:var(--sol-color-primary-1);--sol-color-surface-1:var(--sol-color-primary-2);--sol-color-surface-2:var(--sol-color-primary-3);--sol-color-surface-3:var(--sol-color-primary-4);--sol-color-surface-0-hovered:var(--sol-color-primary-2);--sol-color-surface-0-pressed:var(--sol-color-primary-3);--sol-color-surface-1-hovered:var(--sol-color-primary-3);--sol-color-surface-1-pressed:var(--sol-color-primary-4);--sol-color-surface-2-hovered:var(--sol-color-primary-4);--sol-color-surface-2-pressed:var(--sol-color-primary-5);--sol-color-surface-3-hovered:var(--sol-color-primary-5);--sol-color-surface-3-pressed:var(--sol-color-primary-6);--sol-color-interactive:var(--sol-color-accent-1);--sol-color-interactive-hovered:var(--sol-color-accent-3);--sol-color-interactive-pressed:var(--sol-color-accent-2);--sol-color-interactive-selected:var(--sol-color-neutral-4);--sol-color-interactive-contrast:var(--sol-color-neutral-1);--sol-color-interactive-opacity:rgba(var(--sol-color-neutral-1-rgb)/0);--sol-color-interactive-opacity-hovered:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-pressed:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-selected:rgba(var(--sol-color-neutral-1-rgb)/0.6);--sol-color-interactive-negative:var(--sol-color-negative-1);--sol-color-interactive-negative-hovered:var(--sol-color-negative-3);--sol-color-interactive-negative-pressed:var(--sol-color-negative-2);--sol-color-interactive-negative-selected:var(--sol-color-neutral-4);--sol-color-interactive-notice:var(--sol-color-notice-1);--sol-color-interactive-notice-hovered:var(--sol-color-notice-3);--sol-color-interactive-notice-pressed:var(--sol-color-notice-2);--sol-color-interactive-notice-selected:var(--sol-color-neutral-4);--sol-color-interactive-positive:var(--sol-color-positive-1);--sol-color-interactive-positive-hovered:var(--sol-color-positive-3);--sol-color-interactive-positive-pressed:var(--sol-color-positive-2);--sol-color-interactive-positive-selected:var(--sol-color-neutral-4);--sol-color-interactive-neutral:var(--sol-color-neutral-4);--sol-color-interactive-neutral-hovered:var(--sol-color-neutral-4);--sol-color-interactive-neutral-pressed:var(--sol-color-neutral-3);--sol-color-interactive-neutral-selected:var(--sol-color-neutral-4);--sol-color-status-informative:var(--sol-color-primary-7);--sol-color-status-informative-fill:var(--sol-color-primary-6);--sol-color-status-informative-fill-contrast:var(--sol-color-neutral-4);--sol-color-status-positive:var(--sol-color-positive-3);--sol-color-status-positive-fill:var(--sol-color-positive-1);--sol-color-status-positive-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-notice:var(--sol-color-notice-3);--sol-color-status-notice-fill:var(--sol-color-notice-1);--sol-color-status-notice-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-negative:var(--sol-color-negative-3);--sol-color-status-negative-fill:var(--sol-color-negative-1);--sol-color-status-negative-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-highlight:var(--sol-color-highlight-3);--sol-color-status-highlight-fill:var(--sol-color-highlight-1);--sol-color-status-highlight-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-neutral:var(--sol-color-neutral-3);--sol-color-status-neutral-fill:var(--sol-color-neutral-2);--sol-color-status-neutral-fill-contrast:var(--sol-color-neutral-4);--sol-color-foreground:var(--sol-color-neutral-4);--sol-color-foreground-weak:var(--sol-color-neutral-3);--sol-color-foreground-highlight:var(--sol-color-primary-7);--sol-font-family-primary:univia-pro,system-ui,sans-serif;--sol-font-family-secondary:roboto,system-ui,sans-serif;--sol-font-offset-primary:-0.075em;--sol-font-offset-secondary:-0.04em;--sol-font-size-050:0.5rem;--sol-font-size-0625:0.625rem;--sol-font-size-075:0.75rem;--sol-font-size-0875:0.875rem;--sol-font-size-100:1rem;--sol-font-size-125:1.25rem;--sol-font-size-150:1.5rem;--sol-font-size-200:2rem;--sol-font-size-250:2.5rem;--sol-line-height-075:0.75rem;--sol-line-height-100:1rem;--sol-line-height-125:1.25rem;--sol-line-height-150:1.5rem;--sol-line-height-200:2rem;--sol-line-height-250:2.5rem;--sol-line-height-300:3rem;--sol-letter-spacing-none:0em;--sol-letter-spacing-normal:0.005em;--sol-letter-spacing-button:0.02em;--sol-font-weight-4:400;--sol-font-weight-6:600;--sol-font-weight-7:700;--sol-font-style-normal:normal;--sol-font-style-italic:italic;--sol-text-decoration-none:none;--sol-text-decoration-underline:underline;--sol-text-decoration-strikethrough:line-through;--sol-text-transform-none:none;--sol-text-transform-lowercase:lowercase;--sol-text-transform-uppercase:uppercase;--sol-text-heading-l-font-size:var(--sol-font-size-250);--sol-text-heading-l-line-height:var(--sol-line-height-300);--sol-text-heading-l-font-offset:var(--sol-font-offset-primary);--sol-text-heading-l:var(--sol-font-weight-4) var(--sol-text-heading-l-font-size) /var(--sol-text-heading-l-line-height) var(--sol-font-family-primary);--sol-text-heading-m-font-size:var(--sol-font-size-200);--sol-text-heading-m-line-height:var(--sol-line-height-250);--sol-text-heading-m-font-offset:var(--sol-font-offset-primary);--sol-text-heading-m:var(--sol-font-weight-4) var(--sol-text-heading-m-font-size) /var(--sol-text-heading-m-line-height) var(--sol-font-family-primary);--sol-text-heading-s-font-size:var(--sol-font-size-150);--sol-text-heading-s-line-height:var(--sol-line-height-200);--sol-text-heading-s-font-offset:var(--sol-font-offset-primary);--sol-text-heading-s:var(--sol-font-weight-4) var(--sol-text-heading-s-font-size) /var(--sol-text-heading-s-line-height) var(--sol-font-family-primary);--sol-text-heading-xs-font-size:var(--sol-font-size-125);--sol-text-heading-xs-line-height:var(--sol-line-height-150);--sol-text-heading-xs-font-offset:var(--sol-font-offset-primary);--sol-text-heading-xs:var(--sol-font-weight-4) var(--sol-text-heading-xs-font-size) /var(--sol-text-heading-xs-line-height) var(--sol-font-family-primary);--sol-text-emphasis-l-font-size:var(--sol-font-size-150);--sol-text-emphasis-l-line-height:var(--sol-line-height-200);--sol-text-emphasis-l-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-l:var(--sol-font-weight-6) var(--sol-text-emphasis-l-font-size) /var(--sol-text-emphasis-l-line-height) var(--sol-font-family-primary);--sol-text-emphasis-m-font-size:var(--sol-font-size-125);--sol-text-emphasis-m-line-height:var(--sol-line-height-150);--sol-text-emphasis-m-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-m:var(--sol-font-weight-6) var(--sol-text-emphasis-m-font-size) /var(--sol-text-emphasis-m-line-height) var(--sol-font-family-primary);--sol-text-emphasis-s-font-size:var(--sol-font-size-100);--sol-text-emphasis-s-line-height:var(--sol-line-height-150);--sol-text-emphasis-s-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-s:var(--sol-font-weight-6) var(--sol-text-emphasis-s-font-size) /var(--sol-text-emphasis-s-line-height) var(--sol-font-family-primary);--sol-text-body-l-font-size:var(--sol-font-size-125);--sol-text-body-l-line-height:var(--sol-line-height-150);--sol-text-body-l-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l:var(--sol-font-weight-4) var(--sol-text-body-l-font-size) /var(--sol-text-body-l-line-height) var(--sol-font-family-secondary);--sol-text-body-l-bold-font-size:var(--sol-font-size-125);--sol-text-body-l-bold-line-height:var(--sol-line-height-150);--sol-text-body-l-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l-bold:var(--sol-font-weight-7) var(--sol-text-body-l-bold-font-size) /var(--sol-text-body-l-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-m-font-size:var(--sol-font-size-100);--sol-text-body-m-line-height:var(--sol-line-height-150);--sol-text-body-m-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m:var(--sol-font-weight-4) var(--sol-text-body-m-font-size) /var(--sol-text-body-m-line-height) var(--sol-font-family-secondary);--sol-text-body-m-bold-font-size:var(--sol-font-size-100);--sol-text-body-m-bold-line-height:var(--sol-line-height-150);--sol-text-body-m-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m-bold:var(--sol-font-weight-7) var(--sol-text-body-m-bold-font-size) /var(--sol-text-body-m-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-s-font-size:var(--sol-font-size-0875);--sol-text-body-s-line-height:var(--sol-line-height-125);--sol-text-body-s-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s:var(--sol-font-weight-4) var(--sol-text-body-s-font-size) /var(--sol-text-body-s-line-height) var(--sol-font-family-secondary);--sol-text-body-s-bold-font-size:var(--sol-font-size-0875);--sol-text-body-s-bold-line-height:var(--sol-line-height-125);--sol-text-body-s-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s-bold:var(--sol-font-weight-7) var(--sol-text-body-s-bold-font-size) /var(--sol-text-body-s-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-font-size:var(--sol-font-size-075);--sol-text-body-xs-line-height:var(--sol-line-height-100);--sol-text-body-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs:var(--sol-font-weight-4) var(--sol-text-body-xs-font-size) /var(--sol-text-body-xs-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-bold-font-size:var(--sol-font-size-075);--sol-text-body-xs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs-bold:var(--sol-font-weight-7) var(--sol-text-body-xs-bold-font-size) /var(--sol-text-body-xs-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-line-height:var(--sol-line-height-100);--sol-text-body-xxs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs:var(--sol-font-weight-4) var(--sol-text-body-xxs-font-size) /var(--sol-text-body-xxs-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-bold-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xxs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs-bold:var(--sol-font-weight-7) var(--sol-text-body-xxs-bold-font-size) /var(--sol-text-body-xxs-bold-line-height) var(--sol-font-family-secondary);--sol-text-button-m-font-size:var(--sol-font-size-100);--sol-text-button-m-line-height:var(--sol-line-height-150);--sol-text-button-m-font-offset:var(--sol-font-offset-primary);--sol-text-button-m:var(--sol-font-weight-6) var(--sol-text-button-m-font-size) /var(--sol-text-button-m-line-height) var(--sol-font-family-primary);--sol-text-button-s-font-size:var(--sol-font-size-0875);--sol-text-button-s-line-height:var(--sol-line-height-125);--sol-text-button-s-font-offset:var(--sol-font-offset-primary);--sol-text-button-s:var(--sol-font-weight-6) var(--sol-text-button-s-font-size) /var(--sol-text-button-s-line-height) var(--sol-font-family-primary);--sol-text-label-m-font-size:var(--sol-font-size-100);--sol-text-label-m-line-height:var(--sol-line-height-150);--sol-text-label-m-font-offset:var(--sol-font-offset-secondary);--sol-text-label-m:var(--sol-font-weight-4) var(--sol-text-label-m-font-size) /var(--sol-text-label-m-line-height) var(--sol-font-family-secondary);--sol-text-label-s-font-size:var(--sol-font-size-075);--sol-text-label-s-line-height:var(--sol-line-height-100);--sol-text-label-s-font-offset:var(--sol-font-offset-secondary);--sol-text-label-s:var(--sol-font-weight-4) var(--sol-text-label-s-font-size) /var(--sol-text-label-s-line-height) var(--sol-font-family-secondary);--sol-text-label-xs-font-size:var(--sol-font-size-0625);--sol-text-label-xs-line-height:var(--sol-line-height-075);--sol-text-label-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-label-xs:var(--sol-font-weight-4) var(--sol-text-label-xs-font-size) /var(--sol-text-label-xs-line-height) var(--sol-font-family-secondary);--sol-motion-0:0s;--sol-motion-150:150ms;--sol-motion-200:200ms;--sol-motion-250:250ms;--sol-motion-300:300ms;--sol-motion-350:350ms;--sol-motion-500:500ms;--sol-motion-1000:1000ms;--sol-motion-1500:1500ms;--sol-motion-4000:4000ms;--sol-motion-linear:cubic-bezier(0,0,1,1);--sol-motion-ease:cubic-bezier(0.25,0.1,0.25,1);--sol-motion-ease-in:cubic-bezier(0.42,0,1,1);--sol-motion-ease-out:cubic-bezier(.39,.01,.2,.98);--sol-motion-ease-in-out:cubic-bezier(.31,.01,.61,.99);--sol-motion-anim-wipe-duration:var(--sol-motion-1500);--sol-motion-anim-wipe-easing:cubic-bezier(.93,0,.5,.96);--sol-motion-angle:45deg;--sol-motion-spin:sol-motion-spin var(--sol-motion-500) var(--sol-motion-linear) infinite}@keyframes sol-motion-fade-in{0%{opacity:0;pointer-events:none;user-select:none}to{opacity:1;pointer-events:auto;transform:translate(0);user-select:auto}}@keyframes sol-motion-fade-out{to{opacity:0}}@keyframes sol-motion-spin{to{transform:rotate(1turn)}}:root,[data-sol-theme]{--sol-default-background:var(--sol-color-background);--sol-default-foreground:var(--sol-color-foreground);--sol-default-font-family:var(--sol-font-family-secondary);--sol-cursor-interactive:default;--sol-cursor-link:pointer;--sol-cursor-disabled:default;--sol-cursor-text:text;--sol-focus-width:2px;--sol-focus-offset:1px;--sol-focus-color:var(--sol-color-focused);--sol-scrollbar-track:var(--sol-color-surface-2);--sol-scrollbar-track-hovered:var(--sol-scrollbar-track);--sol-scrollbar-track-pressed:var(--sol-scrollbar-track);--sol-scrollbar-thumb:var(--sol-color-interactive);--sol-scrollbar-thumb-hovered:var(--sol-color-interactive-hovered);--sol-scrollbar-thumb-pressed:var(--sol-color-interactive-pressed);--sol-scrollbar-width:var(--sol-size-100);--sol-scrollbar-border:var(--sol-size-025);--sol-scrollbar-radius:var(--sol-radius-rounded);--sol-z-actions:70;--sol-z-tutorial:60;--sol-z-tooltip:50;--sol-z-toasts:40;--sol-z-menu:30;--sol-z-popover:20;--sol-z-dialog:10;--sol-shadow-0:none;--sol-shadow-050:0 0 var(--sol-size-050) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-100:0 0 var(--sol-size-100) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-150:0 0 var(--sol-size-150) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-size-0:0rem;--sol-size-0125:0.125rem;--sol-size-025:0.25rem;--sol-size-050:0.5rem;--sol-size-075:0.75rem;--sol-size-100:1rem;--sol-size-125:1.25rem;--sol-size-150:1.5rem;--sol-size-200:2rem;--sol-size-250:2.5rem;--sol-size-300:3rem;--sol-size-350:3.5rem;--sol-size-400:4rem;--sol-size-450:4.5rem;--sol-size-500:5rem;--sol-size-550:5.5rem;--sol-size-600:6rem;--sol-size-full:100%;--sol-size-three-quarters:75%;--sol-size-half:50%;--sol-size-quarter:25%;--sol-size-third:33.3333333333%;--sol-size-two-thirds:66.6666666667%;accent-color:var(--sol-color-accent-1);color-scheme:dark}}@layer defaults{:root{background:var(--sol-default-background);color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}:focus{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}:focus:not(:focus-visible){outline:none}:focus-visible{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}a{cursor:var(--sol-cursor-link)}[role=button],[role=option],button,label,select,summary{cursor:var(--sol-cursor-interactive)}:disabled,a:not([href]){cursor:var(--sol-cursor-disabled)}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sol-scrollbar-thumb) var(--sol-scrollbar-track);scrollbar-width:thin}}::-webkit-scrollbar,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-clip:padding-box;border:var(--sol-scrollbar-border) solid #0000;border-radius:var(--sol-scrollbar-radius);height:var(--sol-scrollbar-width);width:var(--sol-scrollbar-width)}::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-color:var(--sol-scrollbar-track)}::-webkit-scrollbar-track-piece:hover,::-webkit-scrollbar-track:hover{background-color:var(--sol-scrollbar-track-hovered)}::-webkit-scrollbar-track-piece:active,::-webkit-scrollbar-track:active{background-color:var(--sol-scrollbar-track-pressed)}::-webkit-scrollbar-thumb{background-color:var(--sol-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--sol-scrollbar-thumb-hovered)}::-webkit-scrollbar-thumb:active{background-color:var(--sol-scrollbar-thumb-pressed)}:root{--sol-prefers-reduced-motion:reduce}@media (prefers-reduced-motion:no-preference){:root{--sol-prefers-reduced-motion:no-preference}}}@layer utilities{@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-animation-wipe{--_in:wipeIn calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out:wipeOut calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_extra-width:60%;--_angle:25deg;--_background:var(--sol-color-surface-0);overflow-x:hidden}.sol-u-animation-wipe:before{background:var(--_background);content:\"\";filter:brightness(1.1);height:100%;left:0;opacity:1;pointer-events:none;position:absolute;top:0;transform:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));user-select:none;width:calc(100% + var(--_extra-width));will-change:transform;z-index:10}.sol-u-animation-wipe[data-sol-animation-wipe=in]:before{animation:var(--_in)}.sol-u-animation-wipe[data-sol-animation-wipe=out]:before{animation:var(--_out)}}@keyframes wipeIn{0%{opacity:1;transform:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1))}to{transform:translateX(calc(var(--_extra-width)/-2)) skew(calc(var(--_angle)*-1))}}@keyframes wipeOut{0%{opacity:1;transform:translateX(calc(var(--_extra-width)/-2)) skew(calc(var(--_angle)*-1))}to{transform:translateX(calc(100% + var(--_extra-width)/2)) skew(calc(var(--_angle)*-1))}}.sol-u-app-version{color:var(--sol-color-foreground-weak);font:var(--sol-text-body-xs);inset-block-end:var(--sol-size-050);inset-inline-start:var(--sol-size-050);position:fixed;z-index:var(--sol-z-actions)}.sol-u-background-surface-0{background-color:var(--sol-color-surface-0)}.sol-u-color-surface-0{color:var(--sol-color-surface-0)}.sol-u-background-surface-1{background-color:var(--sol-color-surface-1)}.sol-u-color-surface-1{color:var(--sol-color-surface-1)}.sol-u-background-surface-2{background-color:var(--sol-color-surface-2)}.sol-u-color-surface-2{color:var(--sol-color-surface-2)}.sol-u-background-surface-3{background-color:var(--sol-color-surface-3)}.sol-u-color-surface-3{color:var(--sol-color-surface-3)}.sol-u-background-status-informative{background-color:var(--sol-color-status-informative)}.sol-u-color-status-informative{color:var(--sol-color-status-informative)}.sol-u-background-status-informative-fill{background-color:var(--sol-color-status-informative-fill)}.sol-u-color-status-informative-fill{color:var(--sol-color-status-informative-fill)}.sol-u-background-status-informative-fill-contrast{background-color:var(--sol-color-status-informative-fill-contrast)}.sol-u-color-status-informative-fill-contrast{color:var(--sol-color-status-informative-fill-contrast)}.sol-u-background-status-positive{background-color:var(--sol-color-status-positive)}.sol-u-color-status-positive{color:var(--sol-color-status-positive)}.sol-u-background-status-positive-fill{background-color:var(--sol-color-status-positive-fill)}.sol-u-color-status-positive-fill{color:var(--sol-color-status-positive-fill)}.sol-u-background-status-positive-fill-contrast{background-color:var(--sol-color-status-positive-fill-contrast)}.sol-u-color-status-positive-fill-contrast{color:var(--sol-color-status-positive-fill-contrast)}.sol-u-background-status-notice{background-color:var(--sol-color-status-notice)}.sol-u-color-status-notice{color:var(--sol-color-status-notice)}.sol-u-background-status-notice-fill{background-color:var(--sol-color-status-notice-fill)}.sol-u-color-status-notice-fill{color:var(--sol-color-status-notice-fill)}.sol-u-background-status-notice-fill-contrast{background-color:var(--sol-color-status-notice-fill-contrast)}.sol-u-color-status-notice-fill-contrast{color:var(--sol-color-status-notice-fill-contrast)}.sol-u-background-status-negative{background-color:var(--sol-color-status-negative)}.sol-u-color-status-negative{color:var(--sol-color-status-negative)}.sol-u-background-status-negative-fill{background-color:var(--sol-color-status-negative-fill)}.sol-u-color-status-negative-fill{color:var(--sol-color-status-negative-fill)}.sol-u-background-status-negative-fill-contrast{background-color:var(--sol-color-status-negative-fill-contrast)}.sol-u-color-status-negative-fill-contrast{color:var(--sol-color-status-negative-fill-contrast)}.sol-u-background-status-highlight{background-color:var(--sol-color-status-highlight)}.sol-u-color-status-highlight{color:var(--sol-color-status-highlight)}.sol-u-background-status-highlight-fill{background-color:var(--sol-color-status-highlight-fill)}.sol-u-color-status-highlight-fill{color:var(--sol-color-status-highlight-fill)}.sol-u-background-status-highlight-fill-contrast{background-color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-color-status-highlight-fill-contrast{color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-background-status-neutral{background-color:var(--sol-color-status-neutral)}.sol-u-color-status-neutral{color:var(--sol-color-status-neutral)}.sol-u-background-status-neutral-fill{background-color:var(--sol-color-status-neutral-fill)}.sol-u-color-status-neutral-fill{color:var(--sol-color-status-neutral-fill)}.sol-u-background-status-neutral-fill-contrast{background-color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-color-status-neutral-fill-contrast{color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-background-foreground{background-color:var(--sol-color-foreground)}.sol-u-color-foreground{color:var(--sol-color-foreground)}.sol-u-background-foreground-weak{background-color:var(--sol-color-foreground-weak)}.sol-u-color-foreground-weak{color:var(--sol-color-foreground-weak)}.sol-u-background-foreground-highlight{background-color:var(--sol-color-foreground-highlight)}.sol-u-color-foreground-highlight{color:var(--sol-color-foreground-highlight)}.sol-u-display-none{display:none}.sol-u-display-block{display:block}.sol-u-display-inline{display:inline}.sol-u-display-inline-block{display:inline-block}.sol-u-display-flex{display:flex}.sol-u-display-inline-flex{display:inline-flex}.sol-u-display-grid{display:grid}.sol-u-display-inline-grid{display:inline-grid}.sol-u-display-contents{display:contents}.sol-u-disable-selection{cursor:default;user-select:none}.sol-u-disable-selection :is(a,img):not([draggable=true]){-webkit-user-drag:none}.sol-u-enable-selection{cursor:var(--sol-cursor-text);user-select:text}.sol-u-gap-0{gap:var(--sol-size-0)}.sol-u-gap-0125{gap:var(--sol-size-0125)}.sol-u-gap-025{gap:var(--sol-size-025)}.sol-u-gap-050{gap:var(--sol-size-050)}.sol-u-gap-075{gap:var(--sol-size-075)}.sol-u-gap-100{gap:var(--sol-size-100)}.sol-u-gap-125{gap:var(--sol-size-125)}.sol-u-gap-150{gap:var(--sol-size-150)}.sol-u-gap-200{gap:var(--sol-size-200)}.sol-u-gap-250{gap:var(--sol-size-250)}.sol-u-gap-300{gap:var(--sol-size-300)}.sol-u-gap-350{gap:var(--sol-size-350)}.sol-u-gap-400{gap:var(--sol-size-400)}.sol-u-gap-450{gap:var(--sol-size-450)}.sol-u-gap-500{gap:var(--sol-size-500)}.sol-u-gap-550{gap:var(--sol-size-550)}.sol-u-gap-600{gap:var(--sol-size-600)}.sol-u-padding-0{padding:var(--sol-size-0)}.sol-u-padding-0125{padding:var(--sol-size-0125)}.sol-u-padding-025{padding:var(--sol-size-025)}.sol-u-padding-050{padding:var(--sol-size-050)}.sol-u-padding-075{padding:var(--sol-size-075)}.sol-u-padding-100{padding:var(--sol-size-100)}.sol-u-padding-125{padding:var(--sol-size-125)}.sol-u-padding-150{padding:var(--sol-size-150)}.sol-u-padding-200{padding:var(--sol-size-200)}.sol-u-padding-250{padding:var(--sol-size-250)}.sol-u-padding-300{padding:var(--sol-size-300)}.sol-u-padding-350{padding:var(--sol-size-350)}.sol-u-padding-400{padding:var(--sol-size-400)}.sol-u-padding-450{padding:var(--sol-size-450)}.sol-u-padding-500{padding:var(--sol-size-500)}.sol-u-padding-550{padding:var(--sol-size-550)}.sol-u-padding-600{padding:var(--sol-size-600)}.sol-u-padding-b-0{padding-block:var(--sol-size-0)}.sol-u-padding-b-0125{padding-block:var(--sol-size-0125)}.sol-u-padding-b-025{padding-block:var(--sol-size-025)}.sol-u-padding-b-050{padding-block:var(--sol-size-050)}.sol-u-padding-b-075{padding-block:var(--sol-size-075)}.sol-u-padding-b-100{padding-block:var(--sol-size-100)}.sol-u-padding-b-125{padding-block:var(--sol-size-125)}.sol-u-padding-b-150{padding-block:var(--sol-size-150)}.sol-u-padding-b-200{padding-block:var(--sol-size-200)}.sol-u-padding-b-250{padding-block:var(--sol-size-250)}.sol-u-padding-b-300{padding-block:var(--sol-size-300)}.sol-u-padding-b-350{padding-block:var(--sol-size-350)}.sol-u-padding-b-400{padding-block:var(--sol-size-400)}.sol-u-padding-b-450{padding-block:var(--sol-size-450)}.sol-u-padding-b-500{padding-block:var(--sol-size-500)}.sol-u-padding-b-550{padding-block:var(--sol-size-550)}.sol-u-padding-b-600{padding-block:var(--sol-size-600)}.sol-u-padding-bs-0{padding-block-start:var(--sol-size-0)}.sol-u-padding-bs-0125{padding-block-start:var(--sol-size-0125)}.sol-u-padding-bs-025{padding-block-start:var(--sol-size-025)}.sol-u-padding-bs-050{padding-block-start:var(--sol-size-050)}.sol-u-padding-bs-075{padding-block-start:var(--sol-size-075)}.sol-u-padding-bs-100{padding-block-start:var(--sol-size-100)}.sol-u-padding-bs-125{padding-block-start:var(--sol-size-125)}.sol-u-padding-bs-150{padding-block-start:var(--sol-size-150)}.sol-u-padding-bs-200{padding-block-start:var(--sol-size-200)}.sol-u-padding-bs-250{padding-block-start:var(--sol-size-250)}.sol-u-padding-bs-300{padding-block-start:var(--sol-size-300)}.sol-u-padding-bs-350{padding-block-start:var(--sol-size-350)}.sol-u-padding-bs-400{padding-block-start:var(--sol-size-400)}.sol-u-padding-bs-450{padding-block-start:var(--sol-size-450)}.sol-u-padding-bs-500{padding-block-start:var(--sol-size-500)}.sol-u-padding-bs-550{padding-block-start:var(--sol-size-550)}.sol-u-padding-bs-600{padding-block-start:var(--sol-size-600)}.sol-u-padding-be-0{padding-block-end:var(--sol-size-0)}.sol-u-padding-be-0125{padding-block-end:var(--sol-size-0125)}.sol-u-padding-be-025{padding-block-end:var(--sol-size-025)}.sol-u-padding-be-050{padding-block-end:var(--sol-size-050)}.sol-u-padding-be-075{padding-block-end:var(--sol-size-075)}.sol-u-padding-be-100{padding-block-end:var(--sol-size-100)}.sol-u-padding-be-125{padding-block-end:var(--sol-size-125)}.sol-u-padding-be-150{padding-block-end:var(--sol-size-150)}.sol-u-padding-be-200{padding-block-end:var(--sol-size-200)}.sol-u-padding-be-250{padding-block-end:var(--sol-size-250)}.sol-u-padding-be-300{padding-block-end:var(--sol-size-300)}.sol-u-padding-be-350{padding-block-end:var(--sol-size-350)}.sol-u-padding-be-400{padding-block-end:var(--sol-size-400)}.sol-u-padding-be-450{padding-block-end:var(--sol-size-450)}.sol-u-padding-be-500{padding-block-end:var(--sol-size-500)}.sol-u-padding-be-550{padding-block-end:var(--sol-size-550)}.sol-u-padding-be-600{padding-block-end:var(--sol-size-600)}.sol-u-padding-i-0{padding-inline:var(--sol-size-0)}.sol-u-padding-i-0125{padding-inline:var(--sol-size-0125)}.sol-u-padding-i-025{padding-inline:var(--sol-size-025)}.sol-u-padding-i-050{padding-inline:var(--sol-size-050)}.sol-u-padding-i-075{padding-inline:var(--sol-size-075)}.sol-u-padding-i-100{padding-inline:var(--sol-size-100)}.sol-u-padding-i-125{padding-inline:var(--sol-size-125)}.sol-u-padding-i-150{padding-inline:var(--sol-size-150)}.sol-u-padding-i-200{padding-inline:var(--sol-size-200)}.sol-u-padding-i-250{padding-inline:var(--sol-size-250)}.sol-u-padding-i-300{padding-inline:var(--sol-size-300)}.sol-u-padding-i-350{padding-inline:var(--sol-size-350)}.sol-u-padding-i-400{padding-inline:var(--sol-size-400)}.sol-u-padding-i-450{padding-inline:var(--sol-size-450)}.sol-u-padding-i-500{padding-inline:var(--sol-size-500)}.sol-u-padding-i-550{padding-inline:var(--sol-size-550)}.sol-u-padding-i-600{padding-inline:var(--sol-size-600)}.sol-u-padding-is-0{padding-inline-start:var(--sol-size-0)}.sol-u-padding-is-0125{padding-inline-start:var(--sol-size-0125)}.sol-u-padding-is-025{padding-inline-start:var(--sol-size-025)}.sol-u-padding-is-050{padding-inline-start:var(--sol-size-050)}.sol-u-padding-is-075{padding-inline-start:var(--sol-size-075)}.sol-u-padding-is-100{padding-inline-start:var(--sol-size-100)}.sol-u-padding-is-125{padding-inline-start:var(--sol-size-125)}.sol-u-padding-is-150{padding-inline-start:var(--sol-size-150)}.sol-u-padding-is-200{padding-inline-start:var(--sol-size-200)}.sol-u-padding-is-250{padding-inline-start:var(--sol-size-250)}.sol-u-padding-is-300{padding-inline-start:var(--sol-size-300)}.sol-u-padding-is-350{padding-inline-start:var(--sol-size-350)}.sol-u-padding-is-400{padding-inline-start:var(--sol-size-400)}.sol-u-padding-is-450{padding-inline-start:var(--sol-size-450)}.sol-u-padding-is-500{padding-inline-start:var(--sol-size-500)}.sol-u-padding-is-550{padding-inline-start:var(--sol-size-550)}.sol-u-padding-is-600{padding-inline-start:var(--sol-size-600)}.sol-u-padding-ie-0{padding-inline-end:var(--sol-size-0)}.sol-u-padding-ie-0125{padding-inline-end:var(--sol-size-0125)}.sol-u-padding-ie-025{padding-inline-end:var(--sol-size-025)}.sol-u-padding-ie-050{padding-inline-end:var(--sol-size-050)}.sol-u-padding-ie-075{padding-inline-end:var(--sol-size-075)}.sol-u-padding-ie-100{padding-inline-end:var(--sol-size-100)}.sol-u-padding-ie-125{padding-inline-end:var(--sol-size-125)}.sol-u-padding-ie-150{padding-inline-end:var(--sol-size-150)}.sol-u-padding-ie-200{padding-inline-end:var(--sol-size-200)}.sol-u-padding-ie-250{padding-inline-end:var(--sol-size-250)}.sol-u-padding-ie-300{padding-inline-end:var(--sol-size-300)}.sol-u-padding-ie-350{padding-inline-end:var(--sol-size-350)}.sol-u-padding-ie-400{padding-inline-end:var(--sol-size-400)}.sol-u-padding-ie-450{padding-inline-end:var(--sol-size-450)}.sol-u-padding-ie-500{padding-inline-end:var(--sol-size-500)}.sol-u-padding-ie-550{padding-inline-end:var(--sol-size-550)}.sol-u-padding-ie-600{padding-inline-end:var(--sol-size-600)}.sol-u-margin-0{margin:var(--sol-size-0)}.sol-u-margin-0125{margin:var(--sol-size-0125)}.sol-u-margin-025{margin:var(--sol-size-025)}.sol-u-margin-050{margin:var(--sol-size-050)}.sol-u-margin-075{margin:var(--sol-size-075)}.sol-u-margin-100{margin:var(--sol-size-100)}.sol-u-margin-125{margin:var(--sol-size-125)}.sol-u-margin-150{margin:var(--sol-size-150)}.sol-u-margin-200{margin:var(--sol-size-200)}.sol-u-margin-250{margin:var(--sol-size-250)}.sol-u-margin-300{margin:var(--sol-size-300)}.sol-u-margin-350{margin:var(--sol-size-350)}.sol-u-margin-400{margin:var(--sol-size-400)}.sol-u-margin-450{margin:var(--sol-size-450)}.sol-u-margin-500{margin:var(--sol-size-500)}.sol-u-margin-550{margin:var(--sol-size-550)}.sol-u-margin-600{margin:var(--sol-size-600)}.sol-u-margin-b-0{margin-block:var(--sol-size-0)}.sol-u-margin-b-0125{margin-block:var(--sol-size-0125)}.sol-u-margin-b-025{margin-block:var(--sol-size-025)}.sol-u-margin-b-050{margin-block:var(--sol-size-050)}.sol-u-margin-b-075{margin-block:var(--sol-size-075)}.sol-u-margin-b-100{margin-block:var(--sol-size-100)}.sol-u-margin-b-125{margin-block:var(--sol-size-125)}.sol-u-margin-b-150{margin-block:var(--sol-size-150)}.sol-u-margin-b-200{margin-block:var(--sol-size-200)}.sol-u-margin-b-250{margin-block:var(--sol-size-250)}.sol-u-margin-b-300{margin-block:var(--sol-size-300)}.sol-u-margin-b-350{margin-block:var(--sol-size-350)}.sol-u-margin-b-400{margin-block:var(--sol-size-400)}.sol-u-margin-b-450{margin-block:var(--sol-size-450)}.sol-u-margin-b-500{margin-block:var(--sol-size-500)}.sol-u-margin-b-550{margin-block:var(--sol-size-550)}.sol-u-margin-b-600{margin-block:var(--sol-size-600)}.sol-u-margin-bs-0{margin-block-start:var(--sol-size-0)}.sol-u-margin-bs-0125{margin-block-start:var(--sol-size-0125)}.sol-u-margin-bs-025{margin-block-start:var(--sol-size-025)}.sol-u-margin-bs-050{margin-block-start:var(--sol-size-050)}.sol-u-margin-bs-075{margin-block-start:var(--sol-size-075)}.sol-u-margin-bs-100{margin-block-start:var(--sol-size-100)}.sol-u-margin-bs-125{margin-block-start:var(--sol-size-125)}.sol-u-margin-bs-150{margin-block-start:var(--sol-size-150)}.sol-u-margin-bs-200{margin-block-start:var(--sol-size-200)}.sol-u-margin-bs-250{margin-block-start:var(--sol-size-250)}.sol-u-margin-bs-300{margin-block-start:var(--sol-size-300)}.sol-u-margin-bs-350{margin-block-start:var(--sol-size-350)}.sol-u-margin-bs-400{margin-block-start:var(--sol-size-400)}.sol-u-margin-bs-450{margin-block-start:var(--sol-size-450)}.sol-u-margin-bs-500{margin-block-start:var(--sol-size-500)}.sol-u-margin-bs-550{margin-block-start:var(--sol-size-550)}.sol-u-margin-bs-600{margin-block-start:var(--sol-size-600)}.sol-u-margin-be-0{margin-block-end:var(--sol-size-0)}.sol-u-margin-be-0125{margin-block-end:var(--sol-size-0125)}.sol-u-margin-be-025{margin-block-end:var(--sol-size-025)}.sol-u-margin-be-050{margin-block-end:var(--sol-size-050)}.sol-u-margin-be-075{margin-block-end:var(--sol-size-075)}.sol-u-margin-be-100{margin-block-end:var(--sol-size-100)}.sol-u-margin-be-125{margin-block-end:var(--sol-size-125)}.sol-u-margin-be-150{margin-block-end:var(--sol-size-150)}.sol-u-margin-be-200{margin-block-end:var(--sol-size-200)}.sol-u-margin-be-250{margin-block-end:var(--sol-size-250)}.sol-u-margin-be-300{margin-block-end:var(--sol-size-300)}.sol-u-margin-be-350{margin-block-end:var(--sol-size-350)}.sol-u-margin-be-400{margin-block-end:var(--sol-size-400)}.sol-u-margin-be-450{margin-block-end:var(--sol-size-450)}.sol-u-margin-be-500{margin-block-end:var(--sol-size-500)}.sol-u-margin-be-550{margin-block-end:var(--sol-size-550)}.sol-u-margin-be-600{margin-block-end:var(--sol-size-600)}.sol-u-margin-i-0{margin-inline:var(--sol-size-0)}.sol-u-margin-i-0125{margin-inline:var(--sol-size-0125)}.sol-u-margin-i-025{margin-inline:var(--sol-size-025)}.sol-u-margin-i-050{margin-inline:var(--sol-size-050)}.sol-u-margin-i-075{margin-inline:var(--sol-size-075)}.sol-u-margin-i-100{margin-inline:var(--sol-size-100)}.sol-u-margin-i-125{margin-inline:var(--sol-size-125)}.sol-u-margin-i-150{margin-inline:var(--sol-size-150)}.sol-u-margin-i-200{margin-inline:var(--sol-size-200)}.sol-u-margin-i-250{margin-inline:var(--sol-size-250)}.sol-u-margin-i-300{margin-inline:var(--sol-size-300)}.sol-u-margin-i-350{margin-inline:var(--sol-size-350)}.sol-u-margin-i-400{margin-inline:var(--sol-size-400)}.sol-u-margin-i-450{margin-inline:var(--sol-size-450)}.sol-u-margin-i-500{margin-inline:var(--sol-size-500)}.sol-u-margin-i-550{margin-inline:var(--sol-size-550)}.sol-u-margin-i-600{margin-inline:var(--sol-size-600)}.sol-u-margin-is-0{margin-inline-start:var(--sol-size-0)}.sol-u-margin-is-0125{margin-inline-start:var(--sol-size-0125)}.sol-u-margin-is-025{margin-inline-start:var(--sol-size-025)}.sol-u-margin-is-050{margin-inline-start:var(--sol-size-050)}.sol-u-margin-is-075{margin-inline-start:var(--sol-size-075)}.sol-u-margin-is-100{margin-inline-start:var(--sol-size-100)}.sol-u-margin-is-125{margin-inline-start:var(--sol-size-125)}.sol-u-margin-is-150{margin-inline-start:var(--sol-size-150)}.sol-u-margin-is-200{margin-inline-start:var(--sol-size-200)}.sol-u-margin-is-250{margin-inline-start:var(--sol-size-250)}.sol-u-margin-is-300{margin-inline-start:var(--sol-size-300)}.sol-u-margin-is-350{margin-inline-start:var(--sol-size-350)}.sol-u-margin-is-400{margin-inline-start:var(--sol-size-400)}.sol-u-margin-is-450{margin-inline-start:var(--sol-size-450)}.sol-u-margin-is-500{margin-inline-start:var(--sol-size-500)}.sol-u-margin-is-550{margin-inline-start:var(--sol-size-550)}.sol-u-margin-is-600{margin-inline-start:var(--sol-size-600)}.sol-u-margin-ie-0{margin-inline-end:var(--sol-size-0)}.sol-u-margin-ie-0125{margin-inline-end:var(--sol-size-0125)}.sol-u-margin-ie-025{margin-inline-end:var(--sol-size-025)}.sol-u-margin-ie-050{margin-inline-end:var(--sol-size-050)}.sol-u-margin-ie-075{margin-inline-end:var(--sol-size-075)}.sol-u-margin-ie-100{margin-inline-end:var(--sol-size-100)}.sol-u-margin-ie-125{margin-inline-end:var(--sol-size-125)}.sol-u-margin-ie-150{margin-inline-end:var(--sol-size-150)}.sol-u-margin-ie-200{margin-inline-end:var(--sol-size-200)}.sol-u-margin-ie-250{margin-inline-end:var(--sol-size-250)}.sol-u-margin-ie-300{margin-inline-end:var(--sol-size-300)}.sol-u-margin-ie-350{margin-inline-end:var(--sol-size-350)}.sol-u-margin-ie-400{margin-inline-end:var(--sol-size-400)}.sol-u-margin-ie-450{margin-inline-end:var(--sol-size-450)}.sol-u-margin-ie-500{margin-inline-end:var(--sol-size-500)}.sol-u-margin-ie-550{margin-inline-end:var(--sol-size-550)}.sol-u-margin-ie-600{margin-inline-end:var(--sol-size-600)}.sol-u-margin-auto{margin:auto}.sol-u-margin-b-auto{margin-block:auto}.sol-u-margin-bs-auto{margin-block-start:auto}.sol-u-margin-be-auto{margin-block-end:auto}.sol-u-margin-i-auto{margin-inline:auto}.sol-u-margin-is-auto{margin-inline-start:auto}.sol-u-margin-ie-auto{margin-inline-end:auto}.sol-u-text-align-start{text-align:start}.sol-u-text-align-center{text-align:center}.sol-u-text-align-end{text-align:end}.sol-u-text-decoration-none{text-decoration:var(--sol-text-decoration-none)}.sol-u-text-decoration-underline{text-decoration:var(--sol-text-decoration-underline)}.sol-u-text-decoration-strikethrough{text-decoration:var(--sol-text-decoration-strikethrough)}.sol-u-font-style-normal{font-style:var(--sol-font-style-normal)}.sol-u-font-style-italic{font-style:var(--sol-font-style-italic)}.sol-u-text-transform-none{text-transform:var(--sol-text-transform-none)}.sol-u-text-transform-lowercase{text-transform:var(--sol-text-transform-lowercase)}.sol-u-text-transform-uppercase{text-transform:var(--sol-text-transform-uppercase)}.sol-u-text-truncate{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (display:-webkit-box){.sol-u-text-truncate[style*=\"--sol-u-text-truncate\"],[style*=\"--sol-u-text-truncate\"] .sol-u-text-truncate{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sol-u-text-truncate,1);display:-webkit-box;white-space:normal}}.sol-u-transition-floating{--_offset:var(--sol-u-transition-floating-offset,var(--sol-size-050));--_in:var(--sol-u-transition-floating-in,var(--sol-motion-250) var(--sol-motion-ease-out));--_out:var(--sol-u-transition-floating-out,var(--sol-motion-250) var(--sol-motion-ease))}.sol-u-transition-floating[data-sol-status=open]{transition:var(--_in);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close]{transition:var(--_out);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close],.sol-u-transition-floating[data-sol-status=initial]{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=top],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=top]{transform:translateY(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=bottom],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=bottom]{transform:translateY(calc(var(--_offset)*-1))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=left],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=left]{transform:translateX(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=right],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=right]{transform:translateX(calc(var(--_offset)*-1))}}.sol-u-hide-visually:not(:focus,:active,:focus-within,.sol-u-show-visually){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}}@layer themes{[data-sol-theme=orange]{--sol-color-primary-1:#1c1d16;--sol-color-primary-1-rgb:28 29 22;--sol-color-primary-2:#2b2b21;--sol-color-primary-2-rgb:43 43 33;--sol-color-primary-3:#393a2c;--sol-color-primary-3-rgb:57 58 44;--sol-color-primary-4:#474837;--sol-color-primary-4-rgb:71 72 55;--sol-color-primary-5:#555742;--sol-color-primary-5-rgb:85 87 66;--sol-color-primary-6:#717458;--sol-color-primary-6-rgb:113 116 88;--sol-color-primary-7:#b0b29a;--sol-color-primary-7-rgb:176 178 154;--sol-color-primary-8:#d2d3c5;--sol-color-primary-8-rgb:210 211 197;--sol-color-neutral-2:#746f58;--sol-color-neutral-2-rgb:116 111 88;--sol-color-neutral-3:#c2beae;--sol-color-neutral-3-rgb:194 190 174;--sol-color-accent-1:#f1ad0e;--sol-color-accent-1-rgb:241 173 14;--sol-color-accent-2:#f5c556;--sol-color-accent-2-rgb:245 197 86;--sol-color-accent-3:#f9de9f;--sol-color-accent-3-rgb:249 222 159;--sol-c-game-button-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-game-button-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill}[data-sol-theme=orange] .sol-c-game-button{letter-spacing:.1em}[data-sol-theme=orange] .sol-c-game-button__wrapper:before{display:none}[data-sol-theme=sc]{--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250}}"), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; - var Fa, Ua, Va, Ba, Ga, qa, $a, Wa, Ha = { + za("@layer reset, tokens, defaults, components, utilities, themes;@layer reset{*,:after,:before{box-sizing:border-box}:root{font-family:system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0;min-block-size:100vh;min-block-size:100dvh}a{color:inherit;text-decoration:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}h1,h2,h3,h4,h5,h6,p{font:inherit;overflow-wrap:break-word}ol,ul{list-style:none;padding:0}table{border-collapse:collapse;border-spacing:0}pre{white-space:pre-wrap}hr{block-size:0;border:0;border-block-start:1px solid;color:inherit}abbr[title]{text-decoration:underline dotted}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}summary{display:list-item}audio,canvas,embed,iframe,img,object,svg,video{display:block;max-inline-size:100%;vertical-align:middle}canvas,img,svg,video{block-size:auto}audio{block-size:100%}audio:not([controls]),source{display:none}picture{display:contents}iframe{border:0;color-scheme:normal}fieldset{border:0;margin:0}fieldset,legend{padding:0}button,input,select,textarea{border:0;color:inherit;font:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button;background-color:initial;background-image:none}textarea{resize:vertical;resize:block}progress{vertical-align:initial}[hidden]:not([hidden=until-found]){display:none}}@layer tokens{:root,[data-sol-theme]{--sol-border-0:0px;--sol-border-1:1px;--sol-border-2:2px;--sol-radius-0:0px;--sol-radius-4:4px;--sol-radius-8:8px;--sol-radius-16:16px;--sol-radius-24:24px;--sol-radius-rounded:9999px;--sol-radius-circle:50%;--sol-clip-radius-0:none;--sol-clip-radius-4:inset(0 round var(--sol-radius-4));--sol-clip-radius-8:inset(0 round var(--sol-radius-8));--sol-clip-radius-16:inset(0 round var(--sol-radius-16));--sol-clip-radius-24:inset(0 round var(--sol-radius-24));--sol-clip-radius-rounded:inset(0 round var(--sol-radius-rounded));--sol-clip-radius-circle:inset(0 round var(--sol-radius-circle));--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-1:#000;--sol-color-neutral-1-rgb:0 0 0;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-neutral-4:#fff;--sol-color-neutral-4-rgb:255 255 255;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250;--sol-color-negative-1:#ff8080;--sol-color-negative-1-rgb:255 128 128;--sol-color-negative-2:#f99;--sol-color-negative-2-rgb:255 153 153;--sol-color-negative-3:#ffb3b3;--sol-color-negative-3-rgb:255 179 179;--sol-color-notice-1:#e99449;--sol-color-notice-1-rgb:233 148 73;--sol-color-notice-2:#eeaf77;--sol-color-notice-2-rgb:238 175 119;--sol-color-notice-3:#f4c9a4;--sol-color-notice-3-rgb:244 201 164;--sol-color-positive-1:#85c6a2;--sol-color-positive-1-rgb:133 198 162;--sol-color-positive-2:#a8d6bd;--sol-color-positive-2-rgb:168 214 189;--sol-color-positive-3:#cbe7d8;--sol-color-positive-3-rgb:203 231 216;--sol-color-highlight-1:#8186e4;--sol-color-highlight-1-rgb:129 134 228;--sol-color-highlight-2:#abafed;--sol-color-highlight-2-rgb:171 175 237;--sol-color-highlight-3:#d5d7f6;--sol-color-highlight-3-rgb:213 215 246;--sol-color-background:var(--sol-color-primary-1);--sol-color-focused:var(--sol-color-primary-7);--sol-color-overlay:rgba(var(--sol-color-neutral-1-rgb)/0.7);--sol-color-surface-0:var(--sol-color-primary-1);--sol-color-surface-1:var(--sol-color-primary-2);--sol-color-surface-2:var(--sol-color-primary-3);--sol-color-surface-3:var(--sol-color-primary-4);--sol-color-surface-0-hovered:var(--sol-color-primary-2);--sol-color-surface-0-pressed:var(--sol-color-primary-3);--sol-color-surface-1-hovered:var(--sol-color-primary-3);--sol-color-surface-1-pressed:var(--sol-color-primary-4);--sol-color-surface-2-hovered:var(--sol-color-primary-4);--sol-color-surface-2-pressed:var(--sol-color-primary-5);--sol-color-surface-3-hovered:var(--sol-color-primary-5);--sol-color-surface-3-pressed:var(--sol-color-primary-6);--sol-color-interactive:var(--sol-color-accent-1);--sol-color-interactive-hovered:var(--sol-color-accent-3);--sol-color-interactive-pressed:var(--sol-color-accent-2);--sol-color-interactive-selected:var(--sol-color-neutral-4);--sol-color-interactive-contrast:var(--sol-color-neutral-1);--sol-color-interactive-opacity:rgba(var(--sol-color-neutral-1-rgb)/0);--sol-color-interactive-opacity-hovered:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-pressed:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-selected:rgba(var(--sol-color-neutral-1-rgb)/0.6);--sol-color-interactive-negative:var(--sol-color-negative-1);--sol-color-interactive-negative-hovered:var(--sol-color-negative-3);--sol-color-interactive-negative-pressed:var(--sol-color-negative-2);--sol-color-interactive-negative-selected:var(--sol-color-neutral-4);--sol-color-interactive-notice:var(--sol-color-notice-1);--sol-color-interactive-notice-hovered:var(--sol-color-notice-3);--sol-color-interactive-notice-pressed:var(--sol-color-notice-2);--sol-color-interactive-notice-selected:var(--sol-color-neutral-4);--sol-color-interactive-positive:var(--sol-color-positive-1);--sol-color-interactive-positive-hovered:var(--sol-color-positive-3);--sol-color-interactive-positive-pressed:var(--sol-color-positive-2);--sol-color-interactive-positive-selected:var(--sol-color-neutral-4);--sol-color-interactive-neutral:var(--sol-color-neutral-4);--sol-color-interactive-neutral-hovered:var(--sol-color-neutral-4);--sol-color-interactive-neutral-pressed:var(--sol-color-neutral-3);--sol-color-interactive-neutral-selected:var(--sol-color-neutral-4);--sol-color-status-informative:var(--sol-color-primary-7);--sol-color-status-informative-fill:var(--sol-color-primary-6);--sol-color-status-informative-fill-contrast:var(--sol-color-neutral-4);--sol-color-status-positive:var(--sol-color-positive-3);--sol-color-status-positive-fill:var(--sol-color-positive-1);--sol-color-status-positive-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-notice:var(--sol-color-notice-3);--sol-color-status-notice-fill:var(--sol-color-notice-1);--sol-color-status-notice-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-negative:var(--sol-color-negative-3);--sol-color-status-negative-fill:var(--sol-color-negative-1);--sol-color-status-negative-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-highlight:var(--sol-color-highlight-3);--sol-color-status-highlight-fill:var(--sol-color-highlight-1);--sol-color-status-highlight-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-neutral:var(--sol-color-neutral-3);--sol-color-status-neutral-fill:var(--sol-color-neutral-2);--sol-color-status-neutral-fill-contrast:var(--sol-color-neutral-4);--sol-color-foreground:var(--sol-color-neutral-4);--sol-color-foreground-weak:var(--sol-color-neutral-3);--sol-color-foreground-highlight:var(--sol-color-primary-7);--sol-font-family-primary:univia-pro,system-ui,sans-serif;--sol-font-family-secondary:roboto,system-ui,sans-serif;--sol-font-offset-primary:-0.075em;--sol-font-offset-secondary:-0.04em;--sol-font-size-050:0.5rem;--sol-font-size-0625:0.625rem;--sol-font-size-075:0.75rem;--sol-font-size-0875:0.875rem;--sol-font-size-100:1rem;--sol-font-size-125:1.25rem;--sol-font-size-150:1.5rem;--sol-font-size-200:2rem;--sol-font-size-250:2.5rem;--sol-line-height-075:0.75rem;--sol-line-height-100:1rem;--sol-line-height-125:1.25rem;--sol-line-height-150:1.5rem;--sol-line-height-200:2rem;--sol-line-height-250:2.5rem;--sol-line-height-300:3rem;--sol-letter-spacing-none:0em;--sol-letter-spacing-normal:0.005em;--sol-letter-spacing-button:0.02em;--sol-font-weight-4:400;--sol-font-weight-6:600;--sol-font-weight-7:700;--sol-font-style-normal:normal;--sol-font-style-italic:italic;--sol-text-decoration-none:none;--sol-text-decoration-underline:underline;--sol-text-decoration-strikethrough:line-through;--sol-text-transform-none:none;--sol-text-transform-lowercase:lowercase;--sol-text-transform-uppercase:uppercase;--sol-text-heading-l-font-size:var(--sol-font-size-250);--sol-text-heading-l-line-height:var(--sol-line-height-300);--sol-text-heading-l-font-offset:var(--sol-font-offset-primary);--sol-text-heading-l:var(--sol-font-weight-6) var(--sol-text-heading-l-font-size) /var(--sol-text-heading-l-line-height) var(--sol-font-family-primary);--sol-text-heading-m-font-size:var(--sol-font-size-200);--sol-text-heading-m-line-height:var(--sol-line-height-250);--sol-text-heading-m-font-offset:var(--sol-font-offset-primary);--sol-text-heading-m:var(--sol-font-weight-6) var(--sol-text-heading-m-font-size) /var(--sol-text-heading-m-line-height) var(--sol-font-family-primary);--sol-text-heading-s-font-size:var(--sol-font-size-150);--sol-text-heading-s-line-height:var(--sol-line-height-200);--sol-text-heading-s-font-offset:var(--sol-font-offset-primary);--sol-text-heading-s:var(--sol-font-weight-6) var(--sol-text-heading-s-font-size) /var(--sol-text-heading-s-line-height) var(--sol-font-family-primary);--sol-text-heading-xs-font-size:var(--sol-font-size-125);--sol-text-heading-xs-line-height:var(--sol-line-height-150);--sol-text-heading-xs-font-offset:var(--sol-font-offset-primary);--sol-text-heading-xs:var(--sol-font-weight-6) var(--sol-text-heading-xs-font-size) /var(--sol-text-heading-xs-line-height) var(--sol-font-family-primary);--sol-text-emphasis-l-font-size:var(--sol-font-size-150);--sol-text-emphasis-l-line-height:var(--sol-line-height-200);--sol-text-emphasis-l-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-l:var(--sol-font-weight-6) var(--sol-text-emphasis-l-font-size) /var(--sol-text-emphasis-l-line-height) var(--sol-font-family-primary);--sol-text-emphasis-m-font-size:var(--sol-font-size-125);--sol-text-emphasis-m-line-height:var(--sol-line-height-150);--sol-text-emphasis-m-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-m:var(--sol-font-weight-6) var(--sol-text-emphasis-m-font-size) /var(--sol-text-emphasis-m-line-height) var(--sol-font-family-primary);--sol-text-emphasis-s-font-size:var(--sol-font-size-100);--sol-text-emphasis-s-line-height:var(--sol-line-height-150);--sol-text-emphasis-s-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-s:var(--sol-font-weight-6) var(--sol-text-emphasis-s-font-size) /var(--sol-text-emphasis-s-line-height) var(--sol-font-family-primary);--sol-text-body-l-font-size:var(--sol-font-size-125);--sol-text-body-l-line-height:var(--sol-line-height-150);--sol-text-body-l-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l:var(--sol-font-weight-4) var(--sol-text-body-l-font-size) /var(--sol-text-body-l-line-height) var(--sol-font-family-secondary);--sol-text-body-l-bold-font-size:var(--sol-font-size-125);--sol-text-body-l-bold-line-height:var(--sol-line-height-150);--sol-text-body-l-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l-bold:var(--sol-font-weight-7) var(--sol-text-body-l-bold-font-size) /var(--sol-text-body-l-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-m-font-size:var(--sol-font-size-100);--sol-text-body-m-line-height:var(--sol-line-height-150);--sol-text-body-m-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m:var(--sol-font-weight-4) var(--sol-text-body-m-font-size) /var(--sol-text-body-m-line-height) var(--sol-font-family-secondary);--sol-text-body-m-bold-font-size:var(--sol-font-size-100);--sol-text-body-m-bold-line-height:var(--sol-line-height-150);--sol-text-body-m-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m-bold:var(--sol-font-weight-7) var(--sol-text-body-m-bold-font-size) /var(--sol-text-body-m-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-s-font-size:var(--sol-font-size-0875);--sol-text-body-s-line-height:var(--sol-line-height-125);--sol-text-body-s-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s:var(--sol-font-weight-4) var(--sol-text-body-s-font-size) /var(--sol-text-body-s-line-height) var(--sol-font-family-secondary);--sol-text-body-s-bold-font-size:var(--sol-font-size-0875);--sol-text-body-s-bold-line-height:var(--sol-line-height-125);--sol-text-body-s-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s-bold:var(--sol-font-weight-7) var(--sol-text-body-s-bold-font-size) /var(--sol-text-body-s-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-font-size:var(--sol-font-size-075);--sol-text-body-xs-line-height:var(--sol-line-height-100);--sol-text-body-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs:var(--sol-font-weight-4) var(--sol-text-body-xs-font-size) /var(--sol-text-body-xs-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-bold-font-size:var(--sol-font-size-075);--sol-text-body-xs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs-bold:var(--sol-font-weight-7) var(--sol-text-body-xs-bold-font-size) /var(--sol-text-body-xs-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-line-height:var(--sol-line-height-100);--sol-text-body-xxs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs:var(--sol-font-weight-4) var(--sol-text-body-xxs-font-size) /var(--sol-text-body-xxs-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-bold-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xxs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs-bold:var(--sol-font-weight-7) var(--sol-text-body-xxs-bold-font-size) /var(--sol-text-body-xxs-bold-line-height) var(--sol-font-family-secondary);--sol-text-button-m-font-size:var(--sol-font-size-100);--sol-text-button-m-line-height:var(--sol-line-height-150);--sol-text-button-m-font-offset:var(--sol-font-offset-primary);--sol-text-button-m:var(--sol-font-weight-6) var(--sol-text-button-m-font-size) /var(--sol-text-button-m-line-height) var(--sol-font-family-primary);--sol-text-button-s-font-size:var(--sol-font-size-0875);--sol-text-button-s-line-height:var(--sol-line-height-125);--sol-text-button-s-font-offset:var(--sol-font-offset-primary);--sol-text-button-s:var(--sol-font-weight-6) var(--sol-text-button-s-font-size) /var(--sol-text-button-s-line-height) var(--sol-font-family-primary);--sol-text-label-m-font-size:var(--sol-font-size-100);--sol-text-label-m-line-height:var(--sol-line-height-150);--sol-text-label-m-font-offset:var(--sol-font-offset-secondary);--sol-text-label-m:var(--sol-font-weight-4) var(--sol-text-label-m-font-size) /var(--sol-text-label-m-line-height) var(--sol-font-family-secondary);--sol-text-label-s-font-size:var(--sol-font-size-075);--sol-text-label-s-line-height:var(--sol-line-height-100);--sol-text-label-s-font-offset:var(--sol-font-offset-secondary);--sol-text-label-s:var(--sol-font-weight-4) var(--sol-text-label-s-font-size) /var(--sol-text-label-s-line-height) var(--sol-font-family-secondary);--sol-text-label-xs-font-size:var(--sol-font-size-0625);--sol-text-label-xs-line-height:var(--sol-line-height-075);--sol-text-label-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-label-xs:var(--sol-font-weight-4) var(--sol-text-label-xs-font-size) /var(--sol-text-label-xs-line-height) var(--sol-font-family-secondary);--sol-motion-0:0s;--sol-motion-150:150ms;--sol-motion-200:200ms;--sol-motion-250:250ms;--sol-motion-300:300ms;--sol-motion-350:350ms;--sol-motion-500:500ms;--sol-motion-1000:1000ms;--sol-motion-1500:1500ms;--sol-motion-4000:4000ms;--sol-motion-linear:cubic-bezier(0,0,1,1);--sol-motion-ease:cubic-bezier(0.25,0.1,0.25,1);--sol-motion-ease-in:cubic-bezier(0.42,0,1,1);--sol-motion-ease-out:cubic-bezier(.39,.01,.2,.98);--sol-motion-ease-in-out:cubic-bezier(.31,.01,.61,.99);--sol-motion-anim-wipe-duration:var(--sol-motion-1500);--sol-motion-anim-wipe-easing:cubic-bezier(.93,0,.5,.96);--sol-motion-angle:45deg;--sol-motion-spin:sol-motion-spin var(--sol-motion-500) var(--sol-motion-linear) infinite}@keyframes sol-motion-fade-in{0%{opacity:0;pointer-events:none;user-select:none}to{opacity:1;pointer-events:auto;transform:translate(0);user-select:auto}}@keyframes sol-motion-fade-out{to{opacity:0}}@keyframes sol-motion-spin{to{transform:rotate(1turn)}}:root,[data-sol-theme]{--sol-default-background:var(--sol-color-background);--sol-default-foreground:var(--sol-color-foreground);--sol-default-font-family:var(--sol-font-family-secondary);--sol-cursor-interactive:pointer;--sol-cursor-link:pointer;--sol-cursor-disabled:default;--sol-cursor-text:text;--sol-focus-width:2px;--sol-focus-offset:1px;--sol-focus-color:var(--sol-color-focused);--sol-scrollbar-track:var(--sol-color-surface-1);--sol-scrollbar-track-hovered:var(--sol-color-surface-1);--sol-scrollbar-track-pressed:var(--sol-color-surface-1);--sol-scrollbar-thumb:var(--sol-color-surface-3);--sol-scrollbar-thumb-hovered:var(--sol-color-surface-3);--sol-scrollbar-thumb-pressed:var(--sol-color-surface-3);--sol-scrollbar-width:var(--sol-size-100);--sol-scrollbar-border:var(--sol-size-025);--sol-scrollbar-radius:var(--sol-radius-rounded);--sol-z-actions:70;--sol-z-tutorial:60;--sol-z-tooltip:50;--sol-z-toasts:40;--sol-z-menu:30;--sol-z-popover:20;--sol-z-dialog:10;--sol-shadow-0:none;--sol-shadow-050:0 0 var(--sol-size-050) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-100:0 0 var(--sol-size-100) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-150:0 0 var(--sol-size-150) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-size-0:0rem;--sol-size-0125:0.125rem;--sol-size-025:0.25rem;--sol-size-050:0.5rem;--sol-size-075:0.75rem;--sol-size-100:1rem;--sol-size-125:1.25rem;--sol-size-150:1.5rem;--sol-size-200:2rem;--sol-size-250:2.5rem;--sol-size-300:3rem;--sol-size-350:3.5rem;--sol-size-400:4rem;--sol-size-450:4.5rem;--sol-size-500:5rem;--sol-size-550:5.5rem;--sol-size-600:6rem;--sol-size-full:100%;--sol-size-three-quarters:75%;--sol-size-half:50%;--sol-size-quarter:25%;--sol-size-third:33.3333333333%;--sol-size-two-thirds:66.6666666667%;accent-color:var(--sol-color-accent-1);color-scheme:dark}}@layer defaults{:root{background:var(--sol-default-background);color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}:focus{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}:focus:not(:focus-visible){outline:none}:focus-visible{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}a{cursor:var(--sol-cursor-link)}[role=button],[role=option],button,label,select,summary{cursor:var(--sol-cursor-interactive)}:disabled,a:not([href]){cursor:var(--sol-cursor-disabled)}@property --_track-color{syntax:\"\";inherits:true;initial-value:#0000}@property --_thumb-color{syntax:\"\";inherits:true;initial-value:#0000}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sol-scrollbar-thumb) var(--sol-scrollbar-track);scrollbar-width:thin}}::-webkit-scrollbar,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-clip:padding-box;border:var(--sol-scrollbar-border) solid #0000;border-radius:var(--sol-scrollbar-radius);height:var(--sol-scrollbar-width);width:var(--sol-scrollbar-width)}::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-color:var(--_track-color)}::-webkit-scrollbar-track-piece:hover,::-webkit-scrollbar-track:hover{--_track-color:var(--sol-scrollbar-track-hovered)}::-webkit-scrollbar-track-piece:active,::-webkit-scrollbar-track:active{background-color:var(--sol-scrollbar-track-pressed)}::-webkit-scrollbar-thumb{background-color:var(--sol-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--sol-scrollbar-thumb-hovered)}::-webkit-scrollbar-thumb:active{background-color:var(--sol-scrollbar-thumb-pressed)}[data-sol-scrollbar-hidden=true]{transition:--_thumb-color var(--sol-motion-250)}[data-sol-scrollbar-hidden=true]::-webkit-scrollbar-thumb{background-color:var(--_thumb-color)}[data-sol-scrollbar-hidden=true]:hover{--_thumb-color:var(--sol-scrollbar-thumb-hovered)}:root{--sol-prefers-reduced-motion:reduce}@media (prefers-reduced-motion:no-preference){:root{--sol-prefers-reduced-motion:no-preference}}}@layer utilities{@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-animation-wipe{--_in:wipeIn calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out:wipeOut calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_in-rtl:wipeInRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out-rtl:wipeOutRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_extra-width:60%;--_angle:25deg;--_background:var(--sol-color-surface-0);--_pos-out-left:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));--_pos-out-mid:translateX(calc(var(--_extra-width)/-2.2)) skew(calc(var(--_angle)*-1));--_pos-out-right:translateX(calc(100% + var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));overflow-x:hidden}.sol-u-animation-wipe:before{background:var(--_background);content:\"\";filter:brightness(1.1);height:100%;left:0;opacity:1;pointer-events:none;position:absolute;top:0;transform:var(--_pos-out-left);user-select:none;width:calc(100% + var(--_extra-width));will-change:transform;z-index:10}.sol-u-animation-wipe[data-sol-animation-wipe=in]:before{animation:var(--_in)}.sol-u-animation-wipe[data-sol-animation-wipe=out]:before{animation:var(--_out)}.sol-u-animation-wipe[data-sol-animation-wipe=in-rtl]:before{animation:var(--_in-rtl)}.sol-u-animation-wipe[data-sol-animation-wipe=out-rtl]:before{animation:var(--_out-rtl)}}@keyframes wipeIn{0%{opacity:1;transform:var(--_pos-out-left)}to{transform:var(--_pos-out-mid)}}@keyframes wipeInRtL{0%{opacity:1;transform:var(--_pos-out-right)}to{transform:var(--_pos-out-mid)}}@keyframes wipeOut{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-right)}}@keyframes wipeOutRtL{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-left)}}.sol-u-app-version{color:var(--sol-color-foreground-weak);font:var(--sol-text-body-xs);inset-block-end:var(--sol-size-050);inset-inline-start:var(--sol-size-050);position:fixed;z-index:var(--sol-z-actions)}.sol-u-background-surface-0{background-color:var(--sol-color-surface-0)}.sol-u-color-surface-0{color:var(--sol-color-surface-0)}.sol-u-background-surface-1{background-color:var(--sol-color-surface-1)}.sol-u-color-surface-1{color:var(--sol-color-surface-1)}.sol-u-background-surface-2{background-color:var(--sol-color-surface-2)}.sol-u-color-surface-2{color:var(--sol-color-surface-2)}.sol-u-background-surface-3{background-color:var(--sol-color-surface-3)}.sol-u-color-surface-3{color:var(--sol-color-surface-3)}.sol-u-background-status-informative{background-color:var(--sol-color-status-informative)}.sol-u-color-status-informative{color:var(--sol-color-status-informative)}.sol-u-background-status-informative-fill{background-color:var(--sol-color-status-informative-fill)}.sol-u-color-status-informative-fill{color:var(--sol-color-status-informative-fill)}.sol-u-background-status-informative-fill-contrast{background-color:var(--sol-color-status-informative-fill-contrast)}.sol-u-color-status-informative-fill-contrast{color:var(--sol-color-status-informative-fill-contrast)}.sol-u-background-status-positive{background-color:var(--sol-color-status-positive)}.sol-u-color-status-positive{color:var(--sol-color-status-positive)}.sol-u-background-status-positive-fill{background-color:var(--sol-color-status-positive-fill)}.sol-u-color-status-positive-fill{color:var(--sol-color-status-positive-fill)}.sol-u-background-status-positive-fill-contrast{background-color:var(--sol-color-status-positive-fill-contrast)}.sol-u-color-status-positive-fill-contrast{color:var(--sol-color-status-positive-fill-contrast)}.sol-u-background-status-notice{background-color:var(--sol-color-status-notice)}.sol-u-color-status-notice{color:var(--sol-color-status-notice)}.sol-u-background-status-notice-fill{background-color:var(--sol-color-status-notice-fill)}.sol-u-color-status-notice-fill{color:var(--sol-color-status-notice-fill)}.sol-u-background-status-notice-fill-contrast{background-color:var(--sol-color-status-notice-fill-contrast)}.sol-u-color-status-notice-fill-contrast{color:var(--sol-color-status-notice-fill-contrast)}.sol-u-background-status-negative{background-color:var(--sol-color-status-negative)}.sol-u-color-status-negative{color:var(--sol-color-status-negative)}.sol-u-background-status-negative-fill{background-color:var(--sol-color-status-negative-fill)}.sol-u-color-status-negative-fill{color:var(--sol-color-status-negative-fill)}.sol-u-background-status-negative-fill-contrast{background-color:var(--sol-color-status-negative-fill-contrast)}.sol-u-color-status-negative-fill-contrast{color:var(--sol-color-status-negative-fill-contrast)}.sol-u-background-status-highlight{background-color:var(--sol-color-status-highlight)}.sol-u-color-status-highlight{color:var(--sol-color-status-highlight)}.sol-u-background-status-highlight-fill{background-color:var(--sol-color-status-highlight-fill)}.sol-u-color-status-highlight-fill{color:var(--sol-color-status-highlight-fill)}.sol-u-background-status-highlight-fill-contrast{background-color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-color-status-highlight-fill-contrast{color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-background-status-neutral{background-color:var(--sol-color-status-neutral)}.sol-u-color-status-neutral{color:var(--sol-color-status-neutral)}.sol-u-background-status-neutral-fill{background-color:var(--sol-color-status-neutral-fill)}.sol-u-color-status-neutral-fill{color:var(--sol-color-status-neutral-fill)}.sol-u-background-status-neutral-fill-contrast{background-color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-color-status-neutral-fill-contrast{color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-background-foreground{background-color:var(--sol-color-foreground)}.sol-u-color-foreground{color:var(--sol-color-foreground)}.sol-u-background-foreground-weak{background-color:var(--sol-color-foreground-weak)}.sol-u-color-foreground-weak{color:var(--sol-color-foreground-weak)}.sol-u-background-foreground-highlight{background-color:var(--sol-color-foreground-highlight)}.sol-u-color-foreground-highlight{color:var(--sol-color-foreground-highlight)}.sol-u-display-none{display:none}.sol-u-display-block{display:block}.sol-u-display-inline{display:inline}.sol-u-display-inline-block{display:inline-block}.sol-u-display-flex{display:flex}.sol-u-display-inline-flex{display:inline-flex}.sol-u-display-grid{display:grid}.sol-u-display-inline-grid{display:inline-grid}.sol-u-display-contents{display:contents}.sol-u-disable-selection{cursor:default;user-select:none}.sol-u-disable-selection :is(a,img):not([draggable=true]){-webkit-user-drag:none}.sol-u-enable-selection{cursor:var(--sol-cursor-text);user-select:text}.sol-u-gap-0{gap:var(--sol-size-0)}.sol-u-gap-0125{gap:var(--sol-size-0125)}.sol-u-gap-025{gap:var(--sol-size-025)}.sol-u-gap-050{gap:var(--sol-size-050)}.sol-u-gap-075{gap:var(--sol-size-075)}.sol-u-gap-100{gap:var(--sol-size-100)}.sol-u-gap-125{gap:var(--sol-size-125)}.sol-u-gap-150{gap:var(--sol-size-150)}.sol-u-gap-200{gap:var(--sol-size-200)}.sol-u-gap-250{gap:var(--sol-size-250)}.sol-u-gap-300{gap:var(--sol-size-300)}.sol-u-gap-350{gap:var(--sol-size-350)}.sol-u-gap-400{gap:var(--sol-size-400)}.sol-u-gap-450{gap:var(--sol-size-450)}.sol-u-gap-500{gap:var(--sol-size-500)}.sol-u-gap-550{gap:var(--sol-size-550)}.sol-u-gap-600{gap:var(--sol-size-600)}.sol-u-padding-0{padding:var(--sol-size-0)}.sol-u-padding-0125{padding:var(--sol-size-0125)}.sol-u-padding-025{padding:var(--sol-size-025)}.sol-u-padding-050{padding:var(--sol-size-050)}.sol-u-padding-075{padding:var(--sol-size-075)}.sol-u-padding-100{padding:var(--sol-size-100)}.sol-u-padding-125{padding:var(--sol-size-125)}.sol-u-padding-150{padding:var(--sol-size-150)}.sol-u-padding-200{padding:var(--sol-size-200)}.sol-u-padding-250{padding:var(--sol-size-250)}.sol-u-padding-300{padding:var(--sol-size-300)}.sol-u-padding-350{padding:var(--sol-size-350)}.sol-u-padding-400{padding:var(--sol-size-400)}.sol-u-padding-450{padding:var(--sol-size-450)}.sol-u-padding-500{padding:var(--sol-size-500)}.sol-u-padding-550{padding:var(--sol-size-550)}.sol-u-padding-600{padding:var(--sol-size-600)}.sol-u-padding-b-0{padding-block:var(--sol-size-0)}.sol-u-padding-b-0125{padding-block:var(--sol-size-0125)}.sol-u-padding-b-025{padding-block:var(--sol-size-025)}.sol-u-padding-b-050{padding-block:var(--sol-size-050)}.sol-u-padding-b-075{padding-block:var(--sol-size-075)}.sol-u-padding-b-100{padding-block:var(--sol-size-100)}.sol-u-padding-b-125{padding-block:var(--sol-size-125)}.sol-u-padding-b-150{padding-block:var(--sol-size-150)}.sol-u-padding-b-200{padding-block:var(--sol-size-200)}.sol-u-padding-b-250{padding-block:var(--sol-size-250)}.sol-u-padding-b-300{padding-block:var(--sol-size-300)}.sol-u-padding-b-350{padding-block:var(--sol-size-350)}.sol-u-padding-b-400{padding-block:var(--sol-size-400)}.sol-u-padding-b-450{padding-block:var(--sol-size-450)}.sol-u-padding-b-500{padding-block:var(--sol-size-500)}.sol-u-padding-b-550{padding-block:var(--sol-size-550)}.sol-u-padding-b-600{padding-block:var(--sol-size-600)}.sol-u-padding-bs-0{padding-block-start:var(--sol-size-0)}.sol-u-padding-bs-0125{padding-block-start:var(--sol-size-0125)}.sol-u-padding-bs-025{padding-block-start:var(--sol-size-025)}.sol-u-padding-bs-050{padding-block-start:var(--sol-size-050)}.sol-u-padding-bs-075{padding-block-start:var(--sol-size-075)}.sol-u-padding-bs-100{padding-block-start:var(--sol-size-100)}.sol-u-padding-bs-125{padding-block-start:var(--sol-size-125)}.sol-u-padding-bs-150{padding-block-start:var(--sol-size-150)}.sol-u-padding-bs-200{padding-block-start:var(--sol-size-200)}.sol-u-padding-bs-250{padding-block-start:var(--sol-size-250)}.sol-u-padding-bs-300{padding-block-start:var(--sol-size-300)}.sol-u-padding-bs-350{padding-block-start:var(--sol-size-350)}.sol-u-padding-bs-400{padding-block-start:var(--sol-size-400)}.sol-u-padding-bs-450{padding-block-start:var(--sol-size-450)}.sol-u-padding-bs-500{padding-block-start:var(--sol-size-500)}.sol-u-padding-bs-550{padding-block-start:var(--sol-size-550)}.sol-u-padding-bs-600{padding-block-start:var(--sol-size-600)}.sol-u-padding-be-0{padding-block-end:var(--sol-size-0)}.sol-u-padding-be-0125{padding-block-end:var(--sol-size-0125)}.sol-u-padding-be-025{padding-block-end:var(--sol-size-025)}.sol-u-padding-be-050{padding-block-end:var(--sol-size-050)}.sol-u-padding-be-075{padding-block-end:var(--sol-size-075)}.sol-u-padding-be-100{padding-block-end:var(--sol-size-100)}.sol-u-padding-be-125{padding-block-end:var(--sol-size-125)}.sol-u-padding-be-150{padding-block-end:var(--sol-size-150)}.sol-u-padding-be-200{padding-block-end:var(--sol-size-200)}.sol-u-padding-be-250{padding-block-end:var(--sol-size-250)}.sol-u-padding-be-300{padding-block-end:var(--sol-size-300)}.sol-u-padding-be-350{padding-block-end:var(--sol-size-350)}.sol-u-padding-be-400{padding-block-end:var(--sol-size-400)}.sol-u-padding-be-450{padding-block-end:var(--sol-size-450)}.sol-u-padding-be-500{padding-block-end:var(--sol-size-500)}.sol-u-padding-be-550{padding-block-end:var(--sol-size-550)}.sol-u-padding-be-600{padding-block-end:var(--sol-size-600)}.sol-u-padding-i-0{padding-inline:var(--sol-size-0)}.sol-u-padding-i-0125{padding-inline:var(--sol-size-0125)}.sol-u-padding-i-025{padding-inline:var(--sol-size-025)}.sol-u-padding-i-050{padding-inline:var(--sol-size-050)}.sol-u-padding-i-075{padding-inline:var(--sol-size-075)}.sol-u-padding-i-100{padding-inline:var(--sol-size-100)}.sol-u-padding-i-125{padding-inline:var(--sol-size-125)}.sol-u-padding-i-150{padding-inline:var(--sol-size-150)}.sol-u-padding-i-200{padding-inline:var(--sol-size-200)}.sol-u-padding-i-250{padding-inline:var(--sol-size-250)}.sol-u-padding-i-300{padding-inline:var(--sol-size-300)}.sol-u-padding-i-350{padding-inline:var(--sol-size-350)}.sol-u-padding-i-400{padding-inline:var(--sol-size-400)}.sol-u-padding-i-450{padding-inline:var(--sol-size-450)}.sol-u-padding-i-500{padding-inline:var(--sol-size-500)}.sol-u-padding-i-550{padding-inline:var(--sol-size-550)}.sol-u-padding-i-600{padding-inline:var(--sol-size-600)}.sol-u-padding-is-0{padding-inline-start:var(--sol-size-0)}.sol-u-padding-is-0125{padding-inline-start:var(--sol-size-0125)}.sol-u-padding-is-025{padding-inline-start:var(--sol-size-025)}.sol-u-padding-is-050{padding-inline-start:var(--sol-size-050)}.sol-u-padding-is-075{padding-inline-start:var(--sol-size-075)}.sol-u-padding-is-100{padding-inline-start:var(--sol-size-100)}.sol-u-padding-is-125{padding-inline-start:var(--sol-size-125)}.sol-u-padding-is-150{padding-inline-start:var(--sol-size-150)}.sol-u-padding-is-200{padding-inline-start:var(--sol-size-200)}.sol-u-padding-is-250{padding-inline-start:var(--sol-size-250)}.sol-u-padding-is-300{padding-inline-start:var(--sol-size-300)}.sol-u-padding-is-350{padding-inline-start:var(--sol-size-350)}.sol-u-padding-is-400{padding-inline-start:var(--sol-size-400)}.sol-u-padding-is-450{padding-inline-start:var(--sol-size-450)}.sol-u-padding-is-500{padding-inline-start:var(--sol-size-500)}.sol-u-padding-is-550{padding-inline-start:var(--sol-size-550)}.sol-u-padding-is-600{padding-inline-start:var(--sol-size-600)}.sol-u-padding-ie-0{padding-inline-end:var(--sol-size-0)}.sol-u-padding-ie-0125{padding-inline-end:var(--sol-size-0125)}.sol-u-padding-ie-025{padding-inline-end:var(--sol-size-025)}.sol-u-padding-ie-050{padding-inline-end:var(--sol-size-050)}.sol-u-padding-ie-075{padding-inline-end:var(--sol-size-075)}.sol-u-padding-ie-100{padding-inline-end:var(--sol-size-100)}.sol-u-padding-ie-125{padding-inline-end:var(--sol-size-125)}.sol-u-padding-ie-150{padding-inline-end:var(--sol-size-150)}.sol-u-padding-ie-200{padding-inline-end:var(--sol-size-200)}.sol-u-padding-ie-250{padding-inline-end:var(--sol-size-250)}.sol-u-padding-ie-300{padding-inline-end:var(--sol-size-300)}.sol-u-padding-ie-350{padding-inline-end:var(--sol-size-350)}.sol-u-padding-ie-400{padding-inline-end:var(--sol-size-400)}.sol-u-padding-ie-450{padding-inline-end:var(--sol-size-450)}.sol-u-padding-ie-500{padding-inline-end:var(--sol-size-500)}.sol-u-padding-ie-550{padding-inline-end:var(--sol-size-550)}.sol-u-padding-ie-600{padding-inline-end:var(--sol-size-600)}.sol-u-margin-0{margin:var(--sol-size-0)}.sol-u-margin-0125{margin:var(--sol-size-0125)}.sol-u-margin-025{margin:var(--sol-size-025)}.sol-u-margin-050{margin:var(--sol-size-050)}.sol-u-margin-075{margin:var(--sol-size-075)}.sol-u-margin-100{margin:var(--sol-size-100)}.sol-u-margin-125{margin:var(--sol-size-125)}.sol-u-margin-150{margin:var(--sol-size-150)}.sol-u-margin-200{margin:var(--sol-size-200)}.sol-u-margin-250{margin:var(--sol-size-250)}.sol-u-margin-300{margin:var(--sol-size-300)}.sol-u-margin-350{margin:var(--sol-size-350)}.sol-u-margin-400{margin:var(--sol-size-400)}.sol-u-margin-450{margin:var(--sol-size-450)}.sol-u-margin-500{margin:var(--sol-size-500)}.sol-u-margin-550{margin:var(--sol-size-550)}.sol-u-margin-600{margin:var(--sol-size-600)}.sol-u-margin-b-0{margin-block:var(--sol-size-0)}.sol-u-margin-b-0125{margin-block:var(--sol-size-0125)}.sol-u-margin-b-025{margin-block:var(--sol-size-025)}.sol-u-margin-b-050{margin-block:var(--sol-size-050)}.sol-u-margin-b-075{margin-block:var(--sol-size-075)}.sol-u-margin-b-100{margin-block:var(--sol-size-100)}.sol-u-margin-b-125{margin-block:var(--sol-size-125)}.sol-u-margin-b-150{margin-block:var(--sol-size-150)}.sol-u-margin-b-200{margin-block:var(--sol-size-200)}.sol-u-margin-b-250{margin-block:var(--sol-size-250)}.sol-u-margin-b-300{margin-block:var(--sol-size-300)}.sol-u-margin-b-350{margin-block:var(--sol-size-350)}.sol-u-margin-b-400{margin-block:var(--sol-size-400)}.sol-u-margin-b-450{margin-block:var(--sol-size-450)}.sol-u-margin-b-500{margin-block:var(--sol-size-500)}.sol-u-margin-b-550{margin-block:var(--sol-size-550)}.sol-u-margin-b-600{margin-block:var(--sol-size-600)}.sol-u-margin-bs-0{margin-block-start:var(--sol-size-0)}.sol-u-margin-bs-0125{margin-block-start:var(--sol-size-0125)}.sol-u-margin-bs-025{margin-block-start:var(--sol-size-025)}.sol-u-margin-bs-050{margin-block-start:var(--sol-size-050)}.sol-u-margin-bs-075{margin-block-start:var(--sol-size-075)}.sol-u-margin-bs-100{margin-block-start:var(--sol-size-100)}.sol-u-margin-bs-125{margin-block-start:var(--sol-size-125)}.sol-u-margin-bs-150{margin-block-start:var(--sol-size-150)}.sol-u-margin-bs-200{margin-block-start:var(--sol-size-200)}.sol-u-margin-bs-250{margin-block-start:var(--sol-size-250)}.sol-u-margin-bs-300{margin-block-start:var(--sol-size-300)}.sol-u-margin-bs-350{margin-block-start:var(--sol-size-350)}.sol-u-margin-bs-400{margin-block-start:var(--sol-size-400)}.sol-u-margin-bs-450{margin-block-start:var(--sol-size-450)}.sol-u-margin-bs-500{margin-block-start:var(--sol-size-500)}.sol-u-margin-bs-550{margin-block-start:var(--sol-size-550)}.sol-u-margin-bs-600{margin-block-start:var(--sol-size-600)}.sol-u-margin-be-0{margin-block-end:var(--sol-size-0)}.sol-u-margin-be-0125{margin-block-end:var(--sol-size-0125)}.sol-u-margin-be-025{margin-block-end:var(--sol-size-025)}.sol-u-margin-be-050{margin-block-end:var(--sol-size-050)}.sol-u-margin-be-075{margin-block-end:var(--sol-size-075)}.sol-u-margin-be-100{margin-block-end:var(--sol-size-100)}.sol-u-margin-be-125{margin-block-end:var(--sol-size-125)}.sol-u-margin-be-150{margin-block-end:var(--sol-size-150)}.sol-u-margin-be-200{margin-block-end:var(--sol-size-200)}.sol-u-margin-be-250{margin-block-end:var(--sol-size-250)}.sol-u-margin-be-300{margin-block-end:var(--sol-size-300)}.sol-u-margin-be-350{margin-block-end:var(--sol-size-350)}.sol-u-margin-be-400{margin-block-end:var(--sol-size-400)}.sol-u-margin-be-450{margin-block-end:var(--sol-size-450)}.sol-u-margin-be-500{margin-block-end:var(--sol-size-500)}.sol-u-margin-be-550{margin-block-end:var(--sol-size-550)}.sol-u-margin-be-600{margin-block-end:var(--sol-size-600)}.sol-u-margin-i-0{margin-inline:var(--sol-size-0)}.sol-u-margin-i-0125{margin-inline:var(--sol-size-0125)}.sol-u-margin-i-025{margin-inline:var(--sol-size-025)}.sol-u-margin-i-050{margin-inline:var(--sol-size-050)}.sol-u-margin-i-075{margin-inline:var(--sol-size-075)}.sol-u-margin-i-100{margin-inline:var(--sol-size-100)}.sol-u-margin-i-125{margin-inline:var(--sol-size-125)}.sol-u-margin-i-150{margin-inline:var(--sol-size-150)}.sol-u-margin-i-200{margin-inline:var(--sol-size-200)}.sol-u-margin-i-250{margin-inline:var(--sol-size-250)}.sol-u-margin-i-300{margin-inline:var(--sol-size-300)}.sol-u-margin-i-350{margin-inline:var(--sol-size-350)}.sol-u-margin-i-400{margin-inline:var(--sol-size-400)}.sol-u-margin-i-450{margin-inline:var(--sol-size-450)}.sol-u-margin-i-500{margin-inline:var(--sol-size-500)}.sol-u-margin-i-550{margin-inline:var(--sol-size-550)}.sol-u-margin-i-600{margin-inline:var(--sol-size-600)}.sol-u-margin-is-0{margin-inline-start:var(--sol-size-0)}.sol-u-margin-is-0125{margin-inline-start:var(--sol-size-0125)}.sol-u-margin-is-025{margin-inline-start:var(--sol-size-025)}.sol-u-margin-is-050{margin-inline-start:var(--sol-size-050)}.sol-u-margin-is-075{margin-inline-start:var(--sol-size-075)}.sol-u-margin-is-100{margin-inline-start:var(--sol-size-100)}.sol-u-margin-is-125{margin-inline-start:var(--sol-size-125)}.sol-u-margin-is-150{margin-inline-start:var(--sol-size-150)}.sol-u-margin-is-200{margin-inline-start:var(--sol-size-200)}.sol-u-margin-is-250{margin-inline-start:var(--sol-size-250)}.sol-u-margin-is-300{margin-inline-start:var(--sol-size-300)}.sol-u-margin-is-350{margin-inline-start:var(--sol-size-350)}.sol-u-margin-is-400{margin-inline-start:var(--sol-size-400)}.sol-u-margin-is-450{margin-inline-start:var(--sol-size-450)}.sol-u-margin-is-500{margin-inline-start:var(--sol-size-500)}.sol-u-margin-is-550{margin-inline-start:var(--sol-size-550)}.sol-u-margin-is-600{margin-inline-start:var(--sol-size-600)}.sol-u-margin-ie-0{margin-inline-end:var(--sol-size-0)}.sol-u-margin-ie-0125{margin-inline-end:var(--sol-size-0125)}.sol-u-margin-ie-025{margin-inline-end:var(--sol-size-025)}.sol-u-margin-ie-050{margin-inline-end:var(--sol-size-050)}.sol-u-margin-ie-075{margin-inline-end:var(--sol-size-075)}.sol-u-margin-ie-100{margin-inline-end:var(--sol-size-100)}.sol-u-margin-ie-125{margin-inline-end:var(--sol-size-125)}.sol-u-margin-ie-150{margin-inline-end:var(--sol-size-150)}.sol-u-margin-ie-200{margin-inline-end:var(--sol-size-200)}.sol-u-margin-ie-250{margin-inline-end:var(--sol-size-250)}.sol-u-margin-ie-300{margin-inline-end:var(--sol-size-300)}.sol-u-margin-ie-350{margin-inline-end:var(--sol-size-350)}.sol-u-margin-ie-400{margin-inline-end:var(--sol-size-400)}.sol-u-margin-ie-450{margin-inline-end:var(--sol-size-450)}.sol-u-margin-ie-500{margin-inline-end:var(--sol-size-500)}.sol-u-margin-ie-550{margin-inline-end:var(--sol-size-550)}.sol-u-margin-ie-600{margin-inline-end:var(--sol-size-600)}.sol-u-margin-auto{margin:auto}.sol-u-margin-b-auto{margin-block:auto}.sol-u-margin-bs-auto{margin-block-start:auto}.sol-u-margin-be-auto{margin-block-end:auto}.sol-u-margin-i-auto{margin-inline:auto}.sol-u-margin-is-auto{margin-inline-start:auto}.sol-u-margin-ie-auto{margin-inline-end:auto}.sol-u-text-align-start{text-align:start}.sol-u-text-align-center{text-align:center}.sol-u-text-align-end{text-align:end}.sol-u-text-decoration-none{text-decoration:var(--sol-text-decoration-none)}.sol-u-text-decoration-underline{text-decoration:var(--sol-text-decoration-underline)}.sol-u-text-decoration-strikethrough{text-decoration:var(--sol-text-decoration-strikethrough)}.sol-u-font-style-normal{font-style:var(--sol-font-style-normal)}.sol-u-font-style-italic{font-style:var(--sol-font-style-italic)}.sol-u-text-transform-none{text-transform:var(--sol-text-transform-none)}.sol-u-text-transform-lowercase{text-transform:var(--sol-text-transform-lowercase)}.sol-u-text-transform-uppercase{text-transform:var(--sol-text-transform-uppercase)}.sol-u-text-truncate{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (display:-webkit-box){.sol-u-text-truncate[style*=\"--sol-u-text-truncate\"],[style*=\"--sol-u-text-truncate\"] .sol-u-text-truncate{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sol-u-text-truncate,1);display:-webkit-box;white-space:normal}}.sol-u-transition-floating{--_offset:var(--sol-u-transition-floating-offset,var(--sol-size-050));--_in:var(--sol-u-transition-floating-in,var(--sol-motion-250) var(--sol-motion-ease-out));--_out:var(--sol-u-transition-floating-out,var(--sol-motion-250) var(--sol-motion-ease))}.sol-u-transition-floating[data-sol-status=open]{transition:var(--_in);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close]{transition:var(--_out);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close],.sol-u-transition-floating[data-sol-status=initial]{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=top],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=top]{transform:translateY(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=bottom],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=bottom]{transform:translateY(calc(var(--_offset)*-1))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=left],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=left]{transform:translateX(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=right],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=right]{transform:translateX(calc(var(--_offset)*-1))}}.sol-u-hide-visually:not(:focus,:active,:focus-within,.sol-u-show-visually){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}}@layer themes{[data-sol-theme=orange]{--sol-color-primary-1:#1c1d16;--sol-color-primary-1-rgb:28 29 22;--sol-color-primary-2:#2b2b21;--sol-color-primary-2-rgb:43 43 33;--sol-color-primary-3:#393a2c;--sol-color-primary-3-rgb:57 58 44;--sol-color-primary-4:#474837;--sol-color-primary-4-rgb:71 72 55;--sol-color-primary-5:#555742;--sol-color-primary-5-rgb:85 87 66;--sol-color-primary-6:#717458;--sol-color-primary-6-rgb:113 116 88;--sol-color-primary-7:#b0b29a;--sol-color-primary-7-rgb:176 178 154;--sol-color-primary-8:#d2d3c5;--sol-color-primary-8-rgb:210 211 197;--sol-color-neutral-2:#746f58;--sol-color-neutral-2-rgb:116 111 88;--sol-color-neutral-3:#c2beae;--sol-color-neutral-3-rgb:194 190 174;--sol-color-accent-1:#f1ad0e;--sol-color-accent-1-rgb:241 173 14;--sol-color-accent-2:#f5c556;--sol-color-accent-2-rgb:245 197 86;--sol-color-accent-3:#f9de9f;--sol-color-accent-3-rgb:249 222 159;--sol-c-game-button-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-game-button-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill}[data-sol-theme=orange] .sol-c-game-button{letter-spacing:.1em}[data-sol-theme=orange] .sol-c-game-button__wrapper:before{display:none}[data-sol-theme=sc]{--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250}}"), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; + var Fa, Ua, Va, Ga, Ba, qa, $a, Wa, Ha = { exports: {} }, Ya = {}; @@ -16876,11 +17234,11 @@ })), (0, Oe.useCallback)(((...e) => n.current?.(...e)), t) }, _i = ({ - value: e, - defaultValue: t, - onChange: n, - shouldUpdate: r = ((e, t) => e !== t) - }) => { + value: e, + defaultValue: t, + onChange: n, + shouldUpdate: r = ((e, t) => e !== t) + }) => { let a = yi(n, []), i = yi(r), [o, s] = (0, Oe.useState)(t), @@ -16923,26 +17281,26 @@ }), g = (t = (0, Oe.useCallback)((function(t) { return u.current && u.current.box === e.box && u.current.round === c || (u.current = { - box: e.box, - round: c, - instance: new ResizeObserver((function(t) { - var n = t[0], - r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", - a = bi(n, r, "inlineSize"), - i = bi(n, r, "blockSize"), - o = a ? c(a) : void 0, - s = i ? c(i) : void 0; - if (m.current.width !== o || m.current.height !== s) { - var u = { - width: o, - height: s - }; - m.current.width = o, m.current.height = s, l.current ? l.current(u) : f.current || h(u) - } - })) - }), u.current.instance.observe(t, { - box: e.box - }), + box: e.box, + round: c, + instance: new ResizeObserver((function(t) { + var n = t[0], + r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", + a = bi(n, r, "inlineSize"), + i = bi(n, r, "blockSize"), + o = a ? c(a) : void 0, + s = i ? c(i) : void 0; + if (m.current.width !== o || m.current.height !== s) { + var u = { + width: o, + height: s + }; + m.current.width = o, m.current.height = s, l.current ? l.current(u) : f.current || h(u) + } + })) + }), u.current.instance.observe(t, { + box: e.box + }), function() { u.current && u.current.instance.unobserve(t) } @@ -16973,9 +17331,9 @@ }), [g, p.width, p.height]) } let wi = ({ - content: e, - ref: t - } = {}) => { + content: e, + ref: t + } = {}) => { let [n, r] = (0, Oe.useState)({ block: !1, inline: !1 @@ -17008,10 +17366,10 @@ Si = "loaded", Oi = "error", Pi = ({ - crossOrigin: e, - src: t, - srcSet: n - }) => { + crossOrigin: e, + src: t, + srcSet: n + }) => { let [r, a] = (0, Oe.useState)(Ei); return (0, Oe.useEffect)((() => { if (!t && !n) return void a(Oi); @@ -17029,11 +17387,11 @@ }, Ii = "undefined" != typeof document ? Oe.useLayoutEffect : Oe.useEffect, Ai = (0, Oe.createContext)(void 0), - Ci = Ai.Provider; - var Ti = { + Ri = Ai.Provider; + var Ci = { exports: {} }; - qa = Ti.exports, "undefined" != typeof navigator && (Ti.exports = function() { + qa = Ci.exports, "undefined" != typeof navigator && (Ci.exports = function() { var e, t, n, r, a, i, o, s, l, c, u = "", d = !1, p = function() { @@ -17054,57 +17412,57 @@ this.audios = [], this.audioFactory = e, this._volume = 1, this._isMuted = !1 } return e.prototype = { - addAudio: function(e) { - this.audios.push(e) - }, - pause: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].pause() - }, - resume: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].resume() - }, - setRate: function(e) { - var t, n = this.audios.length; - for (t = 0; t < n; t += 1) this.audios[t].setRate(e) - }, - createAudio: function(e) { - return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ - src: [e] - }) : { - isPlaying: !1, - play: function() { - this.isPlaying = !0 - }, - seek: function() { - this.isPlaying = !1 - }, - playing: function() {}, - rate: function() {}, - setVolume: function() {} - } - }, - setAudioFactory: function(e) { - this.audioFactory = e - }, - setVolume: function(e) { - this._volume = e, this._updateVolume() - }, - mute: function() { - this._isMuted = !0, this._updateVolume() - }, - unmute: function() { - this._isMuted = !1, this._updateVolume() - }, - getVolume: function() { - return this._volume - }, - _updateVolume: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1)) + addAudio: function(e) { + this.audios.push(e) + }, + pause: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].pause() + }, + resume: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].resume() + }, + setRate: function(e) { + var t, n = this.audios.length; + for (t = 0; t < n; t += 1) this.audios[t].setRate(e) + }, + createAudio: function(e) { + return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ + src: [e] + }) : { + isPlaying: !1, + play: function() { + this.isPlaying = !0 + }, + seek: function() { + this.isPlaying = !1 + }, + playing: function() {}, + rate: function() {}, + setVolume: function() {} } }, + setAudioFactory: function(e) { + this.audioFactory = e + }, + setVolume: function(e) { + this._volume = e, this._updateVolume() + }, + mute: function() { + this._isMuted = !0, this._updateVolume() + }, + unmute: function() { + this._isMuted = !1, this._updateVolume() + }, + getVolume: function() { + return this._volume + }, + _updateVolume: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1)) + } + }, function() { return new e } @@ -17153,15 +17511,15 @@ this.type = e, this.direction = t < 0 ? -1 : 1 } - function C(e, t, n, r) { + function R(e, t, n, r) { this.type = e, this.currentLoop = n, this.totalLoops = t, this.direction = r < 0 ? -1 : 1 } - function T(e, t, n) { + function C(e, t, n) { this.type = e, this.firstFrame = t, this.totalFrames = n } - function R(e, t) { + function T(e, t) { this.type = e, this.target = t } @@ -17172,11 +17530,11 @@ function N(e) { this.type = "configError", this.nativeError = e } - var j = (e = 0, function() { + var L = (e = 0, function() { return b + "__lottie_element_" + (e += 1) }); - function L(e, t, n) { + function j(e, t, n) { var r, a, i, o, s, l, c, u; switch (l = n * (1 - t), c = n * (1 - (s = 6 * e - (o = Math.floor(6 * e))) * t), u = n * (1 - (1 - s) * t), o % 6) { case 0: @@ -17222,17 +17580,17 @@ function z(e, t) { var n = M(255 * e[0], 255 * e[1], 255 * e[2]); - return n[1] += t, n[1] > 1 ? n[1] = 1 : n[1] <= 0 && (n[1] = 0), L(n[0], n[1], n[2]) + return n[1] += t, n[1] > 1 ? n[1] = 1 : n[1] <= 0 && (n[1] = 0), j(n[0], n[1], n[2]) } function F(e, t) { var n = M(255 * e[0], 255 * e[1], 255 * e[2]); - return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), L(n[0], n[1], n[2]) + return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), j(n[0], n[1], n[2]) } function U(e, t) { var n = M(255 * e[0], 255 * e[1], 255 * e[2]); - return n[0] += t / 360, n[0] > 1 ? n[0] -= 1 : n[0] < 0 && (n[0] += 1), L(n[0], n[1], n[2]) + return n[0] += t / 360, n[0] > 1 ? n[0] -= 1 : n[0] < 0 && (n[0] += 1), j(n[0], n[1], n[2]) }! function() { var e, t, n = []; for (e = 0; e < 256; e += 1) t = e.toString(16), n[e] = 1 === t.length ? "0" + t : t @@ -17240,10 +17598,10 @@ var V = function() { return _ }, - B = function(e) { + G = function(e) { O = e }, - G = function() { + B = function() { return O }; @@ -17289,255 +17647,255 @@ return e = t, a }((function(e) { if (i.dataManager || (i.dataManager = function() { - function e(a, i) { - var o, s, l, c, u, d, p = a.length; - for (s = 0; s < p; s += 1) - if ("ks" in (o = a[s]) && !o.completed) { - if (o.completed = !0, o.hasMask) { - var h = o.masksProperties; - for (l = 0, c = h.length; l < c; l += 1) - if (h[l].pt.k.i) r(h[l].pt.k); - else - for (u = 0, d = h[l].pt.k.length; u < d; u += 1) h[l].pt.k[u].s && r(h[l].pt.k[u].s[0]), h[l].pt.k[u].e && r(h[l].pt.k[u].e[0]) - } - 0 === o.ty ? (o.layers = t(o.refId, i), e(o.layers, i)) : 4 === o.ty ? n(o.shapes) : 5 === o.ty && 0 === o.t.a.length && o.t.p + function e(a, i) { + var o, s, l, c, u, d, p = a.length; + for (s = 0; s < p; s += 1) + if ("ks" in (o = a[s]) && !o.completed) { + if (o.completed = !0, o.hasMask) { + var h = o.masksProperties; + for (l = 0, c = h.length; l < c; l += 1) + if (h[l].pt.k.i) r(h[l].pt.k); + else + for (u = 0, d = h[l].pt.k.length; u < d; u += 1) h[l].pt.k[u].s && r(h[l].pt.k[u].s[0]), h[l].pt.k[u].e && r(h[l].pt.k[u].e[0]) } - } + 0 === o.ty ? (o.layers = t(o.refId, i), e(o.layers, i)) : 4 === o.ty ? n(o.shapes) : 5 === o.ty && 0 === o.t.a.length && o.t.p + } + } - function t(e, t) { - var n = function(e, t) { - for (var n = 0, r = t.length; n < r;) { - if (t[n].id === e) return t[n]; - n += 1 - } - return null - }(e, t); - return n ? n.layers.__used ? JSON.parse(JSON.stringify(n.layers)) : (n.layers.__used = !0, n.layers) : null - } + function t(e, t) { + var n = function(e, t) { + for (var n = 0, r = t.length; n < r;) { + if (t[n].id === e) return t[n]; + n += 1 + } + return null + }(e, t); + return n ? n.layers.__used ? JSON.parse(JSON.stringify(n.layers)) : (n.layers.__used = !0, n.layers) : null + } - function n(e) { - var t, a, i; - for (t = e.length - 1; t >= 0; t -= 1) - if ("sh" === e[t].ty) - if (e[t].ks.k.i) r(e[t].ks.k); - else - for (a = 0, i = e[t].ks.k.length; a < i; a += 1) e[t].ks.k[a].s && r(e[t].ks.k[a].s[0]), e[t].ks.k[a].e && r(e[t].ks.k[a].e[0]); + function n(e) { + var t, a, i; + for (t = e.length - 1; t >= 0; t -= 1) + if ("sh" === e[t].ty) + if (e[t].ks.k.i) r(e[t].ks.k); + else + for (a = 0, i = e[t].ks.k.length; a < i; a += 1) e[t].ks.k[a].s && r(e[t].ks.k[a].s[0]), e[t].ks.k[a].e && r(e[t].ks.k[a].e[0]); else "gr" === e[t].ty && n(e[t].it) - } + } - function r(e) { - var t, n = e.i.length; - for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1] - } + function r(e) { + var t, n = e.i.length; + for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1] + } - function a(e, t) { - var n = t ? t.split(".") : [100, 100, 100]; - return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null)) - } - var i, o = function() { - var e = [4, 4, 14]; + function a(e, t) { + var n = t ? t.split(".") : [100, 100, 100]; + return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null)) + } + var i, o = function() { + var e = [4, 4, 14]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { - var t = e.t.d; - e.t.d = { - k: [{ - s: t, - t: 0 - }] + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { + var t = e.t.d; + e.t.d = { + k: [{ + s: t, + t: 0 + }] + } + }(e[t]) + } + return function(n) { + if (a(e, n.v) && (t(n.layers), n.assets)) { + var r, i = n.assets.length; + for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + s = (i = [4, 7, 99], function(e) { + if (e.chars && !a(i, e.v)) { + var t, r = e.chars.length; + for (t = 0; t < r; t += 1) { + var o = e.chars[t]; + o.data && o.data.shapes && (n(o.data.shapes), o.data.ip = 0, o.data.op = 99999, o.data.st = 0, o.data.sr = 1, o.data.ks = { + p: { + k: [0, 0], + a: 0 + }, + s: { + k: [100, 100], + a: 0 + }, + a: { + k: [0, 0], + a: 0 + }, + r: { + k: 0, + a: 0 + }, + o: { + k: 100, + a: 0 } - }(e[t]) + }, e.chars[t].t || (o.data.shapes.push({ + ty: "no" + }), o.data.shapes[0].it.push({ + p: { + k: [0, 0], + a: 0 + }, + s: { + k: [100, 100], + a: 0 + }, + a: { + k: [0, 0], + a: 0 + }, + r: { + k: 0, + a: 0 + }, + o: { + k: 100, + a: 0 + }, + sk: { + k: 0, + a: 0 + }, + sa: { + k: 0, + a: 0 + }, + ty: "tr" + }))) } - return function(n) { - if (a(e, n.v) && (t(n.layers), n.assets)) { - var r, i = n.assets.length; - for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - s = (i = [4, 7, 99], function(e) { - if (e.chars && !a(i, e.v)) { - var t, r = e.chars.length; - for (t = 0; t < r; t += 1) { - var o = e.chars[t]; - o.data && o.data.shapes && (n(o.data.shapes), o.data.ip = 0, o.data.op = 99999, o.data.st = 0, o.data.sr = 1, o.data.ks = { - p: { - k: [0, 0], - a: 0 - }, - s: { - k: [100, 100], - a: 0 - }, - a: { - k: [0, 0], - a: 0 - }, - r: { - k: 0, - a: 0 - }, - o: { - k: 100, - a: 0 - } - }, e.chars[t].t || (o.data.shapes.push({ - ty: "no" - }), o.data.shapes[0].it.push({ - p: { - k: [0, 0], - a: 0 - }, - s: { - k: [100, 100], - a: 0 - }, - a: { - k: [0, 0], - a: 0 - }, - r: { - k: 0, - a: 0 - }, - o: { - k: 100, - a: 0 - }, - sk: { - k: 0, - a: 0 - }, - sa: { - k: 0, - a: 0 - }, - ty: "tr" - }))) - } - } - }), - l = function() { - var e = [5, 7, 15]; + } + }), + l = function() { + var e = [5, 7, 15]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { - var t = e.t.p; - "number" == typeof t.a && (t.a = { - a: 0, - k: t.a - }), "number" == typeof t.p && (t.p = { - a: 0, - k: t.p - }), "number" == typeof t.r && (t.r = { - a: 0, - k: t.r - }) - }(e[t]) + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { + var t = e.t.p; + "number" == typeof t.a && (t.a = { + a: 0, + k: t.a + }), "number" == typeof t.p && (t.p = { + a: 0, + k: t.p + }), "number" == typeof t.r && (t.r = { + a: 0, + k: t.r + }) + }(e[t]) + } + return function(n) { + if (a(e, n.v) && (t(n.layers), n.assets)) { + var r, i = n.assets.length; + for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) } - return function(n) { - if (a(e, n.v) && (t(n.layers), n.assets)) { - var r, i = n.assets.length; - for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - c = function() { - var e = [4, 1, 9]; + } + }(), + c = function() { + var e = [4, 1, 9]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 4 === e[t].ty && function e(t) { - var n, r, a, i = t.length; - for (n = 0; n < i; n += 1) - if ("gr" === t[n].ty) e(t[n].it); - else if ("fl" === t[n].ty || "st" === t[n].ty) + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 4 === e[t].ty && function e(t) { + var n, r, a, i = t.length; + for (n = 0; n < i; n += 1) + if ("gr" === t[n].ty) e(t[n].it); + else if ("fl" === t[n].ty || "st" === t[n].ty) if (t[n].c.k && t[n].c.k[0].i) for (r = 0, a = t[n].c.k.length; r < a; r += 1) t[n].c.k[r].s && (t[n].c.k[r].s[0] /= 255, t[n].c.k[r].s[1] /= 255, t[n].c.k[r].s[2] /= 255, t[n].c.k[r].s[3] /= 255), t[n].c.k[r].e && (t[n].c.k[r].e[0] /= 255, t[n].c.k[r].e[1] /= 255, t[n].c.k[r].e[2] /= 255, t[n].c.k[r].e[3] /= 255); else t[n].c.k[0] /= 255, t[n].c.k[1] /= 255, t[n].c.k[2] /= 255, t[n].c.k[3] /= 255 - }(e[t].shapes) - } - return function(n) { - if (a(e, n.v) && (t(n.layers), n.assets)) { - var r, i = n.assets.length; - for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - u = function() { - var e = [4, 4, 18]; - - function t(e) { - var t, n, r, a, i, o, s = e.length; - for (n = 0; n < s; n += 1) { - if ((t = e[n]).hasMask) { - var l = t.masksProperties; - for (r = 0, a = l.length; r < a; r += 1) - if (l[r].pt.k.i) l[r].pt.k.c = l[r].cl; - else - for (i = 0, o = l[r].pt.k.length; i < o; i += 1) l[r].pt.k[i].s && (l[r].pt.k[i].s[0].c = l[r].cl), l[r].pt.k[i].e && (l[r].pt.k[i].e[0].c = l[r].cl) - } - 4 === t.ty && function e(t) { - var n, r, a; - for (n = t.length - 1; n >= 0; n -= 1) - if ("sh" === t[n].ty) - if (t[n].ks.k.i) t[n].ks.k.c = t[n].closed; - else - for (r = 0, a = t[n].ks.k.length; r < a; r += 1) t[n].ks.k[r].s && (t[n].ks.k[r].s[0].c = t[n].closed), t[n].ks.k[r].e && (t[n].ks.k[r].e[0].c = t[n].closed); - else "gr" === t[n].ty && e(t[n].it) - }(t.shapes) - } - } - return function(n) { - if (a(e, n.v) && (t(n.layers), n.assets)) { - var r, i = n.assets.length; - for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - d = { - completeData: function(n) { - n.__complete || (c(n), o(n), s(n), l(n), u(n), e(n.layers, n.assets), function(n, r) { - if (n) { - var a = 0, - i = n.length; - for (a = 0; a < i; a += 1) 1 === n[a].t && (n[a].data.layers = t(n[a].data.refId, r), e(n[a].data.layers, r)) - } - }(n.chars, n.assets), n.__complete = !0) - } - }; - return d.checkColors = c, d.checkChars = s, d.checkPathProperties = l, d.checkShapes = u, d.completeLayers = e, d - }()), i.assetLoader || (i.assetLoader = function() { - function e(e) { - var t = e.getResponseHeader("content-type"); - return t && "json" === e.responseType && -1 !== t.indexOf("json") || e.response && "object" === $(e.response) ? e.response : e.response && "string" == typeof e.response ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null - } - return { - load: function(t, n, r, a) { - var i, o = new XMLHttpRequest; - try { - o.responseType = "json" - } catch (e) {} - o.onreadystatechange = function() { - if (4 === o.readyState) - if (200 === o.status) r(i = e(o)); - else try { - i = e(o), r(i) - } catch (e) { - a && a(e) - } - }; - try { - o.open("GET", t, !0) - } catch (e) { - o.open("GET", n + "/" + t, !0) - } - o.send() + }(e[t].shapes) } + return function(n) { + if (a(e, n.v) && (t(n.layers), n.assets)) { + var r, i = n.assets.length; + for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + u = function() { + var e = [4, 4, 18]; + + function t(e) { + var t, n, r, a, i, o, s = e.length; + for (n = 0; n < s; n += 1) { + if ((t = e[n]).hasMask) { + var l = t.masksProperties; + for (r = 0, a = l.length; r < a; r += 1) + if (l[r].pt.k.i) l[r].pt.k.c = l[r].cl; + else + for (i = 0, o = l[r].pt.k.length; i < o; i += 1) l[r].pt.k[i].s && (l[r].pt.k[i].s[0].c = l[r].cl), l[r].pt.k[i].e && (l[r].pt.k[i].e[0].c = l[r].cl) + } + 4 === t.ty && function e(t) { + var n, r, a; + for (n = t.length - 1; n >= 0; n -= 1) + if ("sh" === t[n].ty) + if (t[n].ks.k.i) t[n].ks.k.c = t[n].closed; + else + for (r = 0, a = t[n].ks.k.length; r < a; r += 1) t[n].ks.k[r].s && (t[n].ks.k[r].s[0].c = t[n].closed), t[n].ks.k[r].e && (t[n].ks.k[r].e[0].c = t[n].closed); + else "gr" === t[n].ty && e(t[n].it) + }(t.shapes) + } + } + return function(n) { + if (a(e, n.v) && (t(n.layers), n.assets)) { + var r, i = n.assets.length; + for (r = 0; r < i; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + d = { + completeData: function(n) { + n.__complete || (c(n), o(n), s(n), l(n), u(n), e(n.layers, n.assets), function(n, r) { + if (n) { + var a = 0, + i = n.length; + for (a = 0; a < i; a += 1) 1 === n[a].t && (n[a].data.layers = t(n[a].data.refId, r), e(n[a].data.layers, r)) + } + }(n.chars, n.assets), n.__complete = !0) + } + }; + return d.checkColors = c, d.checkChars = s, d.checkPathProperties = l, d.checkShapes = u, d.completeLayers = e, d + }()), i.assetLoader || (i.assetLoader = function() { + function e(e) { + var t = e.getResponseHeader("content-type"); + return t && "json" === e.responseType && -1 !== t.indexOf("json") || e.response && "object" === $(e.response) ? e.response : e.response && "string" == typeof e.response ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null + } + return { + load: function(t, n, r, a) { + var i, o = new XMLHttpRequest; + try { + o.responseType = "json" + } catch (e) {} + o.onreadystatechange = function() { + if (4 === o.readyState) + if (200 === o.status) r(i = e(o)); + else try { + i = e(o), r(i) + } catch (e) { + a && a(e) + } + }; + try { + o.open("GET", t, !0) + } catch (e) { + o.open("GET", n + "/" + t, !0) + } + o.send() } - }()), "loadAnimation" === e.data.type) i.assetLoader.load(e.data.path, e.data.fullPath, (function(t) { + } + }()), "loadAnimation" === e.data.type) i.assetLoader.load(e.data.path, e.data.fullPath, (function(t) { i.dataManager.completeData(t), i.postMessage({ id: e.data.id, payload: t, @@ -17763,7 +18121,7 @@ })(e) } var X = function() { - this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = j(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = y, this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = K(), this.imagePreloader = new H, this.audioController = m(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new I("drawnFrame", 0, 0, 0), this.expressionsPlugin = V() + this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = L(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = y, this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = K(), this.imagePreloader = new H, this.audioController = m(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new I("drawnFrame", 0, 0, 0), this.expressionsPlugin = V() }; f([Y], X), X.prototype.setParams = function(e) { (e.wrapper || e.container) && (this.wrapper = e.wrapper || e.container); @@ -17987,21 +18345,21 @@ this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(e, this.drawnFrameEvent); break; case "loopComplete": - this.triggerEvent(e, new C(e, this.loop, this.playCount, this.frameMult)); + this.triggerEvent(e, new R(e, this.loop, this.playCount, this.frameMult)); break; case "complete": this.triggerEvent(e, new A(e, this.frameMult)); break; case "segmentStart": - this.triggerEvent(e, new T(e, this.firstFrame, this.totalFrames)); + this.triggerEvent(e, new C(e, this.firstFrame, this.totalFrames)); break; case "destroy": - this.triggerEvent(e, new R(e, this)); + this.triggerEvent(e, new T(e, this)); break; default: this.triggerEvent(e) } - "enterFrame" === e && this.onEnterFrame && this.onEnterFrame.call(this, new I(e, this.currentFrame, this.totalFrames, this.frameMult)), "loopComplete" === e && this.onLoopComplete && this.onLoopComplete.call(this, new C(e, this.loop, this.playCount, this.frameMult)), "complete" === e && this.onComplete && this.onComplete.call(this, new A(e, this.frameMult)), "segmentStart" === e && this.onSegmentStart && this.onSegmentStart.call(this, new T(e, this.firstFrame, this.totalFrames)), "destroy" === e && this.onDestroy && this.onDestroy.call(this, new R(e, this)) + "enterFrame" === e && this.onEnterFrame && this.onEnterFrame.call(this, new I(e, this.currentFrame, this.totalFrames, this.frameMult)), "loopComplete" === e && this.onLoopComplete && this.onLoopComplete.call(this, new R(e, this.loop, this.playCount, this.frameMult)), "complete" === e && this.onComplete && this.onComplete.call(this, new A(e, this.frameMult)), "segmentStart" === e && this.onSegmentStart && this.onSegmentStart.call(this, new C(e, this.firstFrame, this.totalFrames)), "destroy" === e && this.onDestroy && this.onDestroy.call(this, new T(e, this)) }, X.prototype.triggerRenderFrameError = function(e) { var t = new D(e, this.currentFrame); this.triggerEvent("error", t), this.onError && this.onError.call(this, t) @@ -18203,8 +18561,8 @@ re = ne(8, (function() { return { addedLength: 0, - percents: g("float32", G()), - lengths: g("float32", G()) + percents: g("float32", B()), + lengths: g("float32", B()) } })), ae = ne(8, (function() { @@ -18225,7 +18583,7 @@ return o > -.001 && o < .001 } var r = function(e, t, n, r) { - var a, i, o, s, l, c, u = G(), + var a, i, o, s, l, c, u = B(), d = 0, p = [], h = [], @@ -18247,7 +18605,7 @@ var o = (e = {}, function(t, r, o, s) { var l = (t[0] + "_" + t[1] + "_" + r[0] + "_" + r[1] + "_" + o[0] + "_" + o[1] + "_" + s[0] + "_" + s[1]).replace(/\./g, "p"); if (!e[l]) { - var c, u, d, p, h, f, m, g = G(), + var c, u, d, p, h, f, m, g = B(), y = 0, _ = null; 2 === t.length && (t[0] !== r[0] || t[1] !== r[1]) && n(t[0], t[1], r[0], r[1], t[0] + o[0], t[1] + o[1]) && n(t[0], t[1], r[0], r[1], r[0] + s[0], r[1] + s[1]) && (g = 2); @@ -18310,9 +18668,9 @@ P = d * p * p, I = m * m * m, A = p * m * m + m * p * m + m * m * p, - C = p * p * m + m * p * p + p * m * p, - T = p * p * p; - for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * a[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * a[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (E * e[u] + S * r[u] + O * a[u] + P * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (I * e[u] + A * r[u] + C * a[u] + T * n[u])) / 1e3; + R = p * p * m + m * p * p + p * m * p, + C = p * p * p; + for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * a[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * a[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (E * e[u] + S * r[u] + O * a[u] + P * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (I * e[u] + A * r[u] + R * a[u] + C * n[u])) / 1e3; return l }, getPointInSegment: function(e, n, r, a, i, o) { @@ -18334,33 +18692,33 @@ oe = Math.abs; function se(e, t) { - var n, r, a, i, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, w, k, E, S, O, I, A, C, T, R = this.offsetTime; + var n, r, a, i, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, w, k, E, S, O, I, A, R, C, T = this.offsetTime; "multidimensional" === this.propType && (V = g("float32", this.pv.length)); - for (var D = t.lastIndex, N = D, j = this.keyframes.length - 1, L = !0; L;) { - if (B = this.keyframes[N], G = this.keyframes[N + 1], N === j - 1 && e >= G.t - R) { - B.h && (B = G), D = 0; + for (var D = t.lastIndex, N = D, L = this.keyframes.length - 1, j = !0; j;) { + if (G = this.keyframes[N], B = this.keyframes[N + 1], N === L - 1 && e >= B.t - T) { + G.h && (G = B), D = 0; break } - if (G.t - R > e) { + if (B.t - T > e) { D = N; break } - N < j - 1 ? N += 1 : (D = 0, L = !1) + N < L - 1 ? N += 1 : (D = 0, j = !1) } q = this.keyframesMetadata[N] || {}; - var M = G.t - R, - z = B.t - R; - if (B.to) { - q.bezierData || (q.bezierData = ie.buildBezierData(B.s, G.s || B.e, B.to, B.ti)); + var M = B.t - T, + z = G.t - T; + if (G.to) { + q.bezierData || (q.bezierData = ie.buildBezierData(G.s, B.s || G.e, G.to, G.ti)); var F = q.bezierData; if (e >= M || e < z) { var U = e >= M ? F.points.length - 1 : 0; for ($ = 0, W = F.points[U].point.length; $ < W; $ += 1) V[$] = F.points[U].point[$] } else { - q.__fnct ? Q = q.__fnct : (Q = ee.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y, B.n).get, q.__fnct = Q), H = Q((e - z) / (M - z)); - var V, B, G, q, $, W, H, Y, K, Q, Z, X, J = F.segmentLength * H, + q.__fnct ? Q = q.__fnct : (Q = ee.getBezierEasing(G.o.x, G.o.y, G.i.x, G.i.y, G.n).get, q.__fnct = Q), H = Q((e - z) / (M - z)); + var V, G, B, q, $, W, H, Y, K, Q, Z, X, J = F.segmentLength * H, te = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastAddedLength : 0; - for (K = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastPoint : 0, L = !0, Y = F.points.length; L;) { + for (K = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastPoint : 0, j = !0, Y = F.points.length; j;) { if (te += F.points[K].partialLength, 0 === J || 0 === H || K === F.points.length - 1) { for ($ = 0, W = F.points[K].point.length; $ < W; $ += 1) V[$] = F.points[K].point[$]; break @@ -18369,13 +18727,13 @@ for ($ = 0, X = (J - te) / F.points[K + 1].partialLength, W = F.points[K].point.length; $ < W; $ += 1) V[$] = F.points[K].point[$] + (F.points[K + 1].point[$] - F.points[K].point[$]) * X; break } - K < Y - 1 ? K += 1 : L = !1 + K < Y - 1 ? K += 1 : j = !1 } t._lastPoint = K, t._lastAddedLength = te - F.points[K].partialLength, t._lastKeyframeIndex = N } - } else if (j = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (V[0] = Z[0], V[1] = Z[1], V[2] = Z[2]) : e <= z ? (V[0] = B.s[0], V[1] = B.s[1], V[2] = B.s[2]) : (b = V, w = (n = le(B.s), r = le(Z), a = (e - z) / (M - z), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(i = Math.acos(o)), l = Math.sin((1 - a) * i) / s, c = Math.sin(a * i) / s) : (l = 1 - a, c = a), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], k = x[1], E = x[2], S = x[3], b[0] = Math.atan2(2 * k * S - 2 * w * E, 1 - 2 * k * k - 2 * E * E) / P, b[1] = Math.asin(2 * w * k + 2 * E * S) / P, b[2] = Math.atan2(2 * w * S - 2 * k * E, 1 - 2 * w * w - 2 * E * E) / P); + } else if (L = G.s.length, Z = B.s || G.e, this.sh && 1 !== G.h) e >= M ? (V[0] = Z[0], V[1] = Z[1], V[2] = Z[2]) : e <= z ? (V[0] = G.s[0], V[1] = G.s[1], V[2] = G.s[2]) : (b = V, w = (n = le(G.s), r = le(Z), a = (e - z) / (M - z), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(i = Math.acos(o)), l = Math.sin((1 - a) * i) / s, c = Math.sin(a * i) / s) : (l = 1 - a, c = a), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], k = x[1], E = x[2], S = x[3], b[0] = Math.atan2(2 * k * S - 2 * w * E, 1 - 2 * k * k - 2 * E * E) / P, b[1] = Math.asin(2 * w * k + 2 * E * S) / P, b[2] = Math.atan2(2 * w * S - 2 * k * E, 1 - 2 * w * w - 2 * E * E) / P); else - for (N = 0; N < j; N += 1) 1 !== B.h && (e >= M ? H = 1 : e < z ? H = 0 : (B.o.x.constructor === Array ? (q.__fnct || (q.__fnct = []), q.__fnct[N] ? Q = q.__fnct[N] : (O = void 0 === B.o.x[N] ? B.o.x[0] : B.o.x[N], I = void 0 === B.o.y[N] ? B.o.y[0] : B.o.y[N], A = void 0 === B.i.x[N] ? B.i.x[0] : B.i.x[N], C = void 0 === B.i.y[N] ? B.i.y[0] : B.i.y[N], Q = ee.getBezierEasing(O, I, A, C).get, q.__fnct[N] = Q)) : q.__fnct ? Q = q.__fnct : (O = B.o.x, I = B.o.y, A = B.i.x, C = B.i.y, Q = ee.getBezierEasing(O, I, A, C).get, B.keyframeMetadata = Q), H = Q((e - z) / (M - z)))), Z = G.s || B.e, T = 1 === B.h ? B.s[N] : B.s[N] + (Z[N] - B.s[N]) * H, "multidimensional" === this.propType ? V[N] = T : V = T; + for (N = 0; N < L; N += 1) 1 !== G.h && (e >= M ? H = 1 : e < z ? H = 0 : (G.o.x.constructor === Array ? (q.__fnct || (q.__fnct = []), q.__fnct[N] ? Q = q.__fnct[N] : (O = void 0 === G.o.x[N] ? G.o.x[0] : G.o.x[N], I = void 0 === G.o.y[N] ? G.o.y[0] : G.o.y[N], A = void 0 === G.i.x[N] ? G.i.x[0] : G.i.x[N], R = void 0 === G.i.y[N] ? G.i.y[0] : G.i.y[N], Q = ee.getBezierEasing(O, I, A, R).get, q.__fnct[N] = Q)) : q.__fnct ? Q = q.__fnct : (O = G.o.x, I = G.o.y, A = G.i.x, R = G.i.y, Q = ee.getBezierEasing(O, I, A, R).get, G.keyframeMetadata = Q), H = Q((e - z) / (M - z)))), Z = B.s || G.e, C = 1 === G.h ? G.s[N] : G.s[N] + (Z[N] - G.s[N]) * H, "multidimensional" === this.propType ? V[N] = C : V = C; return t.lastIndex = D, V } @@ -18821,10 +19179,10 @@ P = g[10], I = g[11], A = g[12], - C = g[13], - T = g[14], - R = g[15]; - return g[0] = v * e + y * a + _ * l + b * p, g[1] = v * t + y * i + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + w * a + k * l + E * p, g[5] = x * t + w * i + k * c + E * h, g[6] = x * n + w * o + k * u + E * f, g[7] = x * r + w * s + k * d + E * m, g[8] = S * e + O * a + P * l + I * p, g[9] = S * t + O * i + P * c + I * h, g[10] = S * n + O * o + P * u + I * f, g[11] = S * r + O * s + P * d + I * m, g[12] = A * e + C * a + T * l + R * p, g[13] = A * t + C * i + T * c + R * h, g[14] = A * n + C * o + T * u + R * f, g[15] = A * r + C * s + T * d + R * m, this._identityCalculated = !1, this + R = g[13], + C = g[14], + T = g[15]; + return g[0] = v * e + y * a + _ * l + b * p, g[1] = v * t + y * i + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + w * a + k * l + E * p, g[5] = x * t + w * i + k * c + E * h, g[6] = x * n + w * o + k * u + E * f, g[7] = x * r + w * s + k * d + E * m, g[8] = S * e + O * a + P * l + I * p, g[9] = S * t + O * i + P * c + I * h, g[10] = S * n + O * o + P * u + I * f, g[11] = S * r + O * s + P * d + I * m, g[12] = A * e + R * a + C * l + T * p, g[13] = A * t + R * i + C * c + T * h, g[14] = A * n + R * o + C * u + T * f, g[15] = A * r + R * s + C * d + T * m, this._identityCalculated = !1, this } function v(e) { @@ -18913,17 +19271,17 @@ return r } - function C(e, t, n) { + function R(e, t, n) { return this.isIdentity() ? [e, t, n] : [e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12], e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13], e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]] } - function T(e, t) { + function C(e, t) { if (this.isIdentity()) return e + "," + t; var n = this.props; return Math.round(100 * (e * n[0] + t * n[4] + n[12])) / 100 + "," + Math.round(100 * (e * n[1] + t * n[5] + n[13])) / 100 } - function R() { + function T() { for (var e = 0, t = this.props, n = "matrix3d("; e < 16;) n += r(1e4 * t[e]) / 1e4 + (15 === e ? ")" : ","), e += 1; return n } @@ -18937,7 +19295,7 @@ return "matrix(" + D(e[0]) + "," + D(e[1]) + "," + D(e[4]) + "," + D(e[5]) + "," + D(e[12]) + "," + D(e[13]) + ")" } return function() { - this.reset = a, this.rotate = i, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = w, this.applyToX = k, this.applyToY = E, this.applyToZ = S, this.applyToPointArray = C, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = N, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = I, this.inversePoint = P, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() + this.reset = a, this.rotate = i, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = w, this.applyToX = k, this.applyToY = E, this.applyToZ = S, this.applyToPointArray = R, this.applyToTriplePoints = A, this.applyToPointStringified = C, this.toCSS = T, this.to2dCSS = N, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = I, this.inversePoint = P, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() } }(); @@ -18966,15 +19324,15 @@ }, Pe.resize = J.resize, Pe.goToAndStop = J.goToAndStop, Pe.destroy = J.destroy, Pe.setQuality = function(e) { if ("string" == typeof e) switch (e) { case "high": - B(200); + G(200); break; default: case "medium": - B(50); + G(50); break; case "low": - B(10) - } else !isNaN(e) && e > 1 && B(e) + G(10) + } else !isNaN(e) && e > 1 && G(e) }, Pe.inBrowser = function() { return "undefined" != typeof navigator }, Pe.installPlugin = function(e, t) { @@ -19000,19 +19358,19 @@ } }, Pe.version = "5.12.2"; var Ae = "", - Ce = document.getElementsByTagName("script"), - Te = Ce[Ce.length - 1] || { + Re = document.getElementsByTagName("script"), + Ce = Re[Re.length - 1] || { src: "" }; - Ae = Te.src ? Te.src.replace(/^[^\?]+\??/, "") : "", + Ae = Ce.src ? Ce.src.replace(/^[^\?]+\??/, "") : "", function(e) { for (var t = Ae.split("&"), n = 0; n < t.length; n += 1) { var r = t[n].split("="); if ("renderer" == decodeURIComponent(r[0])) return decodeURIComponent(r[1]) } }(); - var Re = setInterval((function() { - "complete" === document.readyState && (clearInterval(Re), Ie()) + var Te = setInterval((function() { + "complete" === document.readyState && (clearInterval(Te), Ie()) }), 100); try { "object" !== Oe(qa) && (window.bodymovin = Pe) @@ -19025,9 +19383,9 @@ function Ne() {} - function je() {} - function Le() {} + + function je() {} Ne.prototype.initModifierProperties = function() {}, Ne.prototype.addShapeToModifier = function() {}, Ne.prototype.addShape = function(e) { if (!this.closed) { e.sh.container.addDynamicProperty(e.sh); @@ -19042,11 +19400,11 @@ this.shapes = [], this.elem = e, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t), this.frameId = -999999, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0) }, Ne.prototype.processKeys = function() { this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties()) - }, f([ye], Ne), f([Ne], je), je.prototype.initModifierProperties = function(e, t) { + }, f([ye], Ne), f([Ne], Le), Le.prototype.initModifierProperties = function(e, t) { this.s = ve.getProp(e, t.s, 0, .01, this), this.e = ve.getProp(e, t.e, 0, .01, this), this.o = ve.getProp(e, t.o, 0, 0, this), this.sValue = 0, this.eValue = 0, this.getValue = this.processKeys, this.m = t.m, this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length - }, je.prototype.addShapeToModifier = function(e) { + }, Le.prototype.addShapeToModifier = function(e) { e.pathsData = [] - }, je.prototype.calculateShapeEdges = function(e, t, n, r, a) { + }, Le.prototype.calculateShapeEdges = function(e, t, n, r, a) { var i, o, s = []; t <= 1 ? s.push({ s: e, @@ -19065,11 +19423,11 @@ c = s.length; for (i = 0; i < c; i += 1)(o = s[i]).e * a < r || o.s * a > r + n || l.push([o.s * a <= r ? 0 : (o.s * a - r) / n, o.e * a >= r + n ? 1 : (o.e * a - r) / n]); return l.length || l.push([0, 0]), l - }, je.prototype.releasePathsData = function(e) { + }, Le.prototype.releasePathsData = function(e) { var t, n = e.length; for (t = 0; t < n; t += 1) ae.release(e[t]); return e.length = 0, e - }, je.prototype.processShapes = function(e) { + }, Le.prototype.processShapes = function(e) { if (this._mdf || e) { var t = this.o.v % 360 / 360; if (t < 0 && (t += 1), (i = this.s.v > 1 ? 1 + t : this.s.v < 0 ? 0 + t : this.s.v + t) > (o = this.e.v > 1 ? 1 + t : this.e.v < 0 ? 0 + t : this.e.v + t)) { @@ -19102,8 +19460,8 @@ for (l = r - 1; l >= 0; l -= 1) if ((f = this.shapes[l]).shape._mdf) { for ((m = f.localShapeCollection).releaseShapes(), 2 === this.m && r > 1 ? (g = this.calculateShapeEdges(i, o, f.totalShapeLength, b, a), b += f.totalShapeLength) : g = [ - [y, _] - ], u = g.length, c = 0; c < u; c += 1) { + [y, _] + ], u = g.length, c = 0; c < u; c += 1) { y = g[c][0], _ = g[c][1], v.length = 0, _ <= 1 ? v.push({ s: f.totalShapeLength * y, e: f.totalShapeLength * _ @@ -19130,14 +19488,14 @@ f.shape.paths = m } } - }, je.prototype.addPaths = function(e, t) { + }, Le.prototype.addPaths = function(e, t) { var n, r = e.length; for (n = 0; n < r; n += 1) t.addShape(e[n]) - }, je.prototype.addSegment = function(e, t, n, r, a, i, o) { + }, Le.prototype.addSegment = function(e, t, n, r, a, i, o) { a.setXYAt(t[0], t[1], "o", i), a.setXYAt(n[0], n[1], "i", i + 1), o && a.setXYAt(e[0], e[1], "v", i), a.setXYAt(r[0], r[1], "v", i + 1) - }, je.prototype.addSegmentFromArray = function(e, t, n, r) { + }, Le.prototype.addSegmentFromArray = function(e, t, n, r) { t.setXYAt(e[1], e[5], "o", n), t.setXYAt(e[2], e[6], "i", n + 1), r && t.setXYAt(e[0], e[4], "v", n), t.setXYAt(e[3], e[7], "v", n + 1) - }, je.prototype.addShapes = function(e, t, n) { + }, Le.prototype.addShapes = function(e, t, n) { var r, a, i, o, s, l, c, u, d = e.pathsData, p = e.shape.paths.shapes, h = e.shape.paths._length, @@ -19164,9 +19522,9 @@ r < h - 1 && (n = xe.newElement(), g = !0, m.push(n), s = 0) } return m - }, f([Ne], Le), Le.prototype.initModifierProperties = function(e, t) { + }, f([Ne], je), je.prototype.initModifierProperties = function(e, t) { this.getValue = this.processKeys, this.amount = ve.getProp(e, t.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length - }, Le.prototype.processPath = function(e, t) { + }, je.prototype.processPath = function(e, t) { var n, r, a, i, o, s, l = t / 100, c = [0, 0], u = e._length, @@ -19176,7 +19534,7 @@ var p = xe.newElement(); for (d = 0, p.c = e.c; d < u; d += 1) n = e.v[d][0] + (c[0] - e.v[d][0]) * l, r = e.v[d][1] + (c[1] - e.v[d][1]) * l, a = e.o[d][0] + -(c[0] - e.o[d][0]) * l, i = e.o[d][1] + -(c[1] - e.o[d][1]) * l, o = e.i[d][0] + -(c[0] - e.i[d][0]) * l, s = e.i[d][1] + -(c[1] - e.i[d][1]) * l, p.setTripleAt(n, r, a, i, o, s, d); return p - }, Le.prototype.processShapes = function(e) { + }, je.prototype.processShapes = function(e) { var t, n, r, a, i, o, s = this.shapes.length, l = this.amount.v; if (0 !== l) @@ -19192,8 +19550,8 @@ function t(e, t, n) { if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new Se, this.pre = new Se, this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = ve.getProp(e, t.p.x, 0, 0, this), this.py = ve.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = ve.getProp(e, t.p.z, 0, 0, this))) : this.p = ve.getProp(e, t.p || { - k: [0, 0, 0] - }, 1, 0, this), t.rx) { + k: [0, 0, 0] + }, 1, 0, this), t.rx) { if (this.rx = ve.getProp(e, t.rx, 0, P, this), this.ry = ve.getProp(e, t.ry, 0, P, this), this.rz = ve.getProp(e, t.rz, 0, P, this), t.or.k[0].ti) { var r, a = t.or.k.length; for (r = 0; r < a; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null @@ -19266,11 +19624,11 @@ return 1e-5 >= Math.abs(e) } - function Be(e, t, n) { + function Ge(e, t, n) { return [e[0] * (1 - n) + t[0] * n, e[1] * (1 - n) + t[1] * n] } - function Ge(e, t, n, r) { + function Be(e, t, n, r) { return [3 * t - e - 3 * n + r, 3 * e - 6 * t + 3 * n, -3 * e + 3 * t, e] } @@ -19279,9 +19637,9 @@ } function $e(e, t, n, r, a) { - a && Je(e, t) && (t = Be(e, r, 1 / 3)), a && Je(n, r) && (n = Be(e, r, 2 / 3)); - var i = Ge(e[0], t[0], n[0], r[0]), - o = Ge(e[1], t[1], n[1], r[1]); + a && Je(e, t) && (t = Ge(e, r, 1 / 3)), a && Je(n, r) && (n = Ge(e, r, 2 / 3)); + var i = Be(e[0], t[0], n[0], r[0]), + o = Be(e[1], t[1], n[1], r[1]); this.a = [i[0], o[0]], this.b = [i[1], o[1]], this.c = [i[2], o[2]], this.d = [i[3], o[3]], this.points = [e, t, n, r] } @@ -19293,14 +19651,14 @@ r = n, n = a } for (var i = function(e, t, n) { - if (0 === e) return []; - var r = t * t - 4 * e * n; - if (r < 0) return []; - var a = -t / (2 * e); - if (0 === r) return [a]; - var i = Math.sqrt(r) / (2 * e); - return [a - i, a + i] - }(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < i.length; o += 1) + if (0 === e) return []; + var r = t * t - 4 * e * n; + if (r < 0) return []; + var a = -t / (2 * e); + if (0 === r) return [a]; + var i = Math.sqrt(r) / (2 * e); + return [a - i, a + i] + }(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < i.length; o += 1) if (i[o] > 0 && i[o] < 1) { var s = e.point(i[o])[t]; s < n ? n = s : s > r && (r = s) @@ -19612,12 +19970,12 @@ }, $e.prototype.split = function(e) { if (e <= 0) return [qe(this.points[0]), this]; if (e >= 1) return [this, qe(this.points[this.points.length - 1])]; - var t = Be(this.points[0], this.points[1], e), - n = Be(this.points[1], this.points[2], e), - r = Be(this.points[2], this.points[3], e), - a = Be(t, n, e), - i = Be(n, r, e), - o = Be(a, i, e); + var t = Ge(this.points[0], this.points[1], e), + n = Ge(this.points[1], this.points[2], e), + r = Ge(this.points[2], this.points[3], e), + a = Ge(t, n, e), + i = Ge(n, r, e), + o = Ge(a, i, e); return [new $e(this.points[0], t, a, o, !0), new $e(o, i, r, this.points[3], !0)] }, $e.prototype.bounds = function() { return { @@ -20073,7 +20431,7 @@ (this.baseElement || this.layerElement).style["mix-blend-mode"] = e }, initBaseData: function(e, t, n) { - this.globalData = t, this.comp = n, this.data = e, this.layerId = j(), this.data.sr || (this.data.sr = 1), this.effectsManager = new kt(this.data, this, this.dynamicProperties) + this.globalData = t, this.comp = n, this.data = e, this.layerId = L(), this.data.sr || (this.data.sr = 1), this.effectsManager = new kt(this.data, this, this.dynamicProperties) }, getType: function() { return this.type @@ -20203,11 +20561,11 @@ h: e.h } }; - var Ct = "transformEFfect"; + var Rt = "transformEFfect"; - function Tt() {} + function Ct() {} - function Rt(e, t, n) { + function Tt(e, t, n) { this.data = e, this.element = t, this.globalData = n, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null; var r = this.globalData.defs, a = this.masksProperties ? this.masksProperties.length : 0; @@ -20215,7 +20573,7 @@ var i = this.masksProperties, o = 0, s = [], - l = j(), + l = L(), c = "clipPath", u = "clip-path"; for (d = 0; d < a; d += 1) @@ -20226,15 +20584,15 @@ lastPath: "" }, r.appendChild(h); else { - if (o += 1, h.setAttribute("fill", "s" === i[d].mode ? "#000000" : "#ffffff"), h.setAttribute("clip-rule", "nonzero"), 0 !== i[d].x.k ? (c = "mask", u = "mask", b = ve.getProp(this.element, i[d].x, 0, null, this.element), x = j(), (y = q("filter")).setAttribute("id", x), (_ = q("feMorphology")).setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), y.appendChild(_), r.appendChild(y), h.setAttribute("stroke", "s" === i[d].mode ? "#000000" : "#ffffff")) : (_ = null, b = null), this.storedData[d] = { - elem: h, - x: b, - expan: _, - lastPath: "", - lastOperator: "", - filterId: x, - lastRadius: 0 - }, "i" === i[d].mode) { + if (o += 1, h.setAttribute("fill", "s" === i[d].mode ? "#000000" : "#ffffff"), h.setAttribute("clip-rule", "nonzero"), 0 !== i[d].x.k ? (c = "mask", u = "mask", b = ve.getProp(this.element, i[d].x, 0, null, this.element), x = L(), (y = q("filter")).setAttribute("id", x), (_ = q("feMorphology")).setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), y.appendChild(_), r.appendChild(y), h.setAttribute("stroke", "s" === i[d].mode ? "#000000" : "#ffffff")) : (_ = null, b = null), this.storedData[d] = { + elem: h, + x: b, + expan: _, + lastPath: "", + lastOperator: "", + filterId: x, + lastRadius: 0 + }, "i" === i[d].mode) { m = s.length; var d, h, f, m, g, y, _, b, x, w = q("g"); for (f = 0; f < m; f += 1) w.appendChild(s[f]); @@ -20251,7 +20609,7 @@ } for (d = 0, this.maskElement = q(c), a = s.length; d < a; d += 1) this.maskElement.appendChild(s[d]); o > 0 && (this.maskElement.setAttribute("id", l), this.element.maskedElement.setAttribute(u, "url(" + p() + "#" + l + ")"), r.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this) } - Tt.prototype = { + Ct.prototype = { initTransform: function() { var e = new Se; this.finalTransform = { @@ -20307,7 +20665,7 @@ }, searchEffectTransforms: function() { if (this.renderableEffectsManager) { - var e = this.renderableEffectsManager.getEffects(Ct); + var e = this.renderableEffectsManager.getEffects(Rt); if (e.length) { this.localTransforms = [], this.finalTransform.localMat = new Se; var t = 0, @@ -20325,9 +20683,9 @@ return e }, mHelper: new Se - }, Rt.prototype.getMaskProperty = function(e) { + }, Tt.prototype.getMaskProperty = function(e) { return this.viewData[e].prop - }, Rt.prototype.renderFrame = function(e) { + }, Tt.prototype.renderFrame = function(e) { var t, n = this.element.finalTransform.mat, r = this.masksProperties.length; for (t = 0; t < r; t += 1) @@ -20335,18 +20693,18 @@ var a = this.storedData[t].expan; this.storedData[t].x.v < 0 ? ("erode" !== this.storedData[t].lastOperator && (this.storedData[t].lastOperator = "erode", this.storedData[t].elem.setAttribute("filter", "url(" + p() + "#" + this.storedData[t].filterId + ")")), a.setAttribute("radius", -this.storedData[t].x.v)) : ("dilate" !== this.storedData[t].lastOperator && (this.storedData[t].lastOperator = "dilate", this.storedData[t].elem.setAttribute("filter", null)), this.storedData[t].elem.setAttribute("stroke-width", 2 * this.storedData[t].x.v)) } - }, Rt.prototype.getMaskelement = function() { + }, Tt.prototype.getMaskelement = function() { return this.maskElement - }, Rt.prototype.createLayerSolidPath = function() { + }, Tt.prototype.createLayerSolidPath = function() { return "M0,0 h" + this.globalData.compSize.w + " v" + this.globalData.compSize.h + " h-" + this.globalData.compSize.w + " v-" + this.globalData.compSize.h + " " - }, Rt.prototype.drawPath = function(e, t, n) { + }, Tt.prototype.drawPath = function(e, t, n) { var r, a, i = " M" + t.v[0][0] + "," + t.v[0][1]; for (r = 1, a = t._length; r < a; r += 1) i += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[r][0] + "," + t.i[r][1] + " " + t.v[r][0] + "," + t.v[r][1]; if (t.c && a > 1 && (i += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[0][0] + "," + t.i[0][1] + " " + t.v[0][0] + "," + t.v[0][1]), n.lastPath !== i) { var o = ""; n.elem && (t.c && (o = e.inv ? this.solidPath + i : i), n.elem.setAttribute("d", o)), n.lastPath = i } - }, Rt.prototype.destroy = function() { + }, Tt.prototype.destroy = function() { this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null }; var Dt = ((l = {}).createFilter = function(e, t) { @@ -20361,19 +20719,19 @@ svgLumaHidden: !0, offscreenCanvas: "undefined" != typeof OffscreenCanvas }, (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (c.maskType = !1), /firefox/i.test(navigator.userAgent) && (c.svgLumaHidden = !1), c), - jt = {}, - Lt = "filter_result_"; + Lt = {}, + jt = "filter_result_"; function Mt(e) { var t, n, r = "SourceGraphic", a = e.data.ef ? e.data.ef.length : 0, - i = j(), + i = L(), o = Dt.createFilter(i, !0), s = 0; for (t = 0, this.filters = []; t < a; t += 1) { n = null; var l = e.data.ef[t].ty; - jt[l] && (n = new jt[l].effect(o, e.effectsManager.effectElements[t], e, Lt + s, r), r = Lt + s, jt[l].countsAsEffect && (s += 1)), n && this.filters.push(n) + Lt[l] && (n = new Lt[l].effect(o, e.effectsManager.effectElements[t], e, jt + s, r), r = jt + s, Lt[l].countsAsEffect && (s += 1)), n && this.filters.push(n) } s && (e.globalData.defs.appendChild(o), e.layerElement.setAttribute("filter", "url(" + p() + "#" + i + ")")), this.filters.length && e.addRenderableComponent(this) } @@ -20393,11 +20751,11 @@ } } - function Bt(e, t) { + function Gt(e, t) { this.elem = e, this.pos = t } - function Gt() {} + function Bt() {} Mt.prototype.renderFrame = function(e) { var t, n = this.filters.length; for (t = 0; t < n; t += 1) this.filters[t].renderFrame(e) @@ -20422,7 +20780,7 @@ var n = q("clipPath"), r = q("path"); r.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z"); - var a = j(); + var a = L(); if (n.setAttribute("id", a), n.appendChild(r), this.globalData.defs.appendChild(n), this.checkMasks()) { var i = q("g"); i.setAttribute("clip-path", "url(" + p() + "#" + a + ")"), i.appendChild(this.layerElement), this.transformedElement = i, e ? e.appendChild(this.transformedElement) : this.baseElement = this.transformedElement @@ -20440,19 +20798,19 @@ return this.data.hd ? null : this.baseElement }, createRenderableComponents: function() { - this.maskManager = new Rt(this.data, this, this.globalData), this.renderableEffectsManager = new Mt(this), this.searchEffectTransforms() + this.maskManager = new Tt(this.data, this, this.globalData), this.renderableEffectsManager = new Mt(this), this.searchEffectTransforms() }, getMatte: function(e) { if (this.matteMasks || (this.matteMasks = {}), !this.matteMasks[e]) { var t, n, r, a, i = this.layerId + "_" + e; if (1 === e || 3 === e) { var o = q("mask"); - o.setAttribute("id", i), o.setAttribute("mask-type", 3 === e ? "luminance" : "alpha"), (r = q("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(r), this.globalData.defs.appendChild(o), Nt.maskType || 1 !== e || (o.setAttribute("mask-type", "luminance"), t = j(), n = Dt.createFilter(t), this.globalData.defs.appendChild(n), n.appendChild(Dt.createAlphaToLuminanceFilter()), (a = q("g")).appendChild(r), o.appendChild(a), a.setAttribute("filter", "url(" + p() + "#" + t + ")")) + o.setAttribute("id", i), o.setAttribute("mask-type", 3 === e ? "luminance" : "alpha"), (r = q("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(r), this.globalData.defs.appendChild(o), Nt.maskType || 1 !== e || (o.setAttribute("mask-type", "luminance"), t = L(), n = Dt.createFilter(t), this.globalData.defs.appendChild(n), n.appendChild(Dt.createAlphaToLuminanceFilter()), (a = q("g")).appendChild(r), o.appendChild(a), a.setAttribute("filter", "url(" + p() + "#" + t + ")")) } else if (2 === e) { var s = q("mask"); s.setAttribute("id", i), s.setAttribute("mask-type", "alpha"); var l = q("g"); - s.appendChild(l), t = j(), n = Dt.createFilter(t); + s.appendChild(l), t = L(), n = Dt.createFilter(t); var c = q("feComponentTransfer"); c.setAttribute("in", "SourceGraphic"), n.appendChild(c); var u = q("feFuncA"); @@ -20503,12 +20861,12 @@ this.innerElem = null, this.destroyBaseElement() } }, t - }()], Ut), f([St, Tt, zt, Ft, Ot, Ut], Vt), Vt.prototype.createContent = function() { + }()], Ut), f([St, Ct, zt, Ft, Ot, Ut], Vt), Vt.prototype.createContent = function() { var e = this.globalData.getAssetsPath(this.assetData); this.innerElem = q("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", e), this.layerElement.appendChild(this.innerElem) }, Vt.prototype.sourceRectAtTime = function() { return this.sourceRect - }, Gt.prototype = { + }, Bt.prototype = { addShapeToModifiers: function(e) { var t, n = this.shapeModifiers.length; for (t = 0; t < n; t += 1) this.shapeModifiers[t].addShape(e) @@ -20535,7 +20893,7 @@ addProcessedElement: function(e, t) { for (var n = this.processedElements, r = n.length; r;) if (n[r -= 1].elem === e) return void(n[r].pos = t); - n.push(new Bt(e, t)) + n.push(new Gt(e, t)) }, prepareFrame: function(e) { this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange) @@ -20653,7 +21011,7 @@ k: 0 }, 0, P, this), this.g = new Xt(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated }, Jt.prototype.setGradientData = function(e, t) { - var n, r, a, i = j(), + var n, r, a, i = L(), o = q(1 === t.t ? "linearGradient" : "radialGradient"); o.setAttribute("id", i), o.setAttribute("spreadMethod", "pad"), o.setAttribute("gradientUnits", "userSpaceOnUse"); var s = []; @@ -20664,8 +21022,8 @@ var n, r, a, i = q("mask"), o = q("path"); i.appendChild(o); - var s = j(), - l = j(); + var s = L(), + l = L(); i.setAttribute("id", l); var c = q(1 === e.t ? "linearGradient" : "radialGradient"); c.setAttribute("id", s), c.setAttribute("spreadMethod", "pad"), c.setAttribute("gradientUnits", "userSpaceOnUse"), a = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length; @@ -20834,7 +21192,7 @@ __complete: !1 }, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData) } - f([St, Tt, zt, Gt, Ft, Ot, Ut], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Se, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() { + f([St, Ct, zt, Bt, Ft, Ot, Ut], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Se, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() { this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes() }, on.prototype.filterUniqueShapes = function() { var e, t, n, r, a = this.shapes.length, @@ -20970,28 +21328,28 @@ E += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && I < E ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = S, v = e.finalText.length, O = !1) } u = -m, h = 0; - var C = 0; + var R = 0; for (g = 0; g < v; g += 1) - if (y = !1, 13 === (k = (D = e.finalText[g]).charCodeAt(0)) || 3 === k ? (C = 0, c.push(u), d = u > d ? u : d, u = -2 * m, _ = "", y = !0, l += 1) : _ = D, t.chars ? (w = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(_, e.f, e.finalSize), " " === D ? C += h + m : (u += h + m + C, C = 0), r.push({ - l: h, - an: h, - add: o, - n: y, - anIndexes: [], - val: _, - line: l, - animatorJustifyOffset: 0 - }), 2 == i) { + if (y = !1, 13 === (k = (D = e.finalText[g]).charCodeAt(0)) || 3 === k ? (R = 0, c.push(u), d = u > d ? u : d, u = -2 * m, _ = "", y = !0, l += 1) : _ = D, t.chars ? (w = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(_, e.f, e.finalSize), " " === D ? R += h + m : (u += h + m + R, R = 0), r.push({ + l: h, + an: h, + add: o, + n: y, + anIndexes: [], + val: _, + line: l, + animatorJustifyOffset: 0 + }), 2 == i) { if (o += h, "" === _ || " " === _ || g === v - 1) { for (("" === _ || " " === _) && (o -= h); s <= g;) r[s].an = o, r[s].ind = a, r[s].extra = h, s += 1; a += 1, o = 0 } } else if (3 == i) { - if (o += h, "" === _ || g === v - 1) { - for ("" === _ && (o -= h); s <= g;) r[s].an = o, r[s].ind = a, r[s].extra = h, s += 1; - o = 0, a += 1 - } - } else r[a].ind = a, r[a].extra = 0, a += 1; + if (o += h, "" === _ || g === v - 1) { + for ("" === _ && (o -= h); s <= g;) r[s].an = o, r[s].ind = a, r[s].extra = h, s += 1; + o = 0, a += 1 + } + } else r[a].ind = a, r[a].extra = 0, a += 1; if (e.l = r, d = u > d ? u : d, c.push(u), e.sz) e.boxWidth = e.sz[0], e.justifyOffset = 0; else switch (e.boxWidth = d, e.j) { case 1: @@ -21004,15 +21362,15 @@ e.justifyOffset = 0 } e.lineWidths = c; - var T = n.a; - x = T.length; - var R = []; + var C = n.a; + x = C.length; + var T = []; for (b = 0; b < x; b += 1) { - for ((N = T[b]).a.sc && (e.strokeColorAnim = !0), N.a.sw && (e.strokeWidthAnim = !0), (N.a.fc || N.a.fh || N.a.fs || N.a.fb) && (e.fillColorAnim = !0), M = 0, L = N.s.b, g = 0; g < v; g += 1)(j = r[g]).anIndexes[b] = M, (1 == L && "" !== j.val || 2 == L && "" !== j.val && " " !== j.val || 3 == L && (j.n || " " == j.val || g == v - 1) || 4 == L && (j.n || g == v - 1)) && (1 === N.s.rn && R.push(M), M += 1); + for ((N = C[b]).a.sc && (e.strokeColorAnim = !0), N.a.sw && (e.strokeWidthAnim = !0), (N.a.fc || N.a.fh || N.a.fs || N.a.fb) && (e.fillColorAnim = !0), M = 0, j = N.s.b, g = 0; g < v; g += 1)(L = r[g]).anIndexes[b] = M, (1 == j && "" !== L.val || 2 == j && "" !== L.val && " " !== L.val || 3 == j && (L.n || " " == L.val || g == v - 1) || 4 == j && (L.n || g == v - 1)) && (1 === N.s.rn && T.push(M), M += 1); n.a[b].s.totalChars = M; - var D, N, j, L, M, z, F = -1; + var D, N, L, j, M, z, F = -1; if (1 === N.s.rn) - for (g = 0; g < v; g += 1) F != (j = r[g]).anIndexes[b] && (F = j.anIndexes[b], z = R.splice(Math.floor(Math.random() * R.length), 1)[0]), j.anIndexes[b] = z + for (g = 0; g < v; g += 1) F != (L = r[g]).anIndexes[b] && (F = L.anIndexes[b], z = T.splice(Math.floor(Math.random() * T.length), 1)[0]), L.anIndexes[b] = z } e.yOffset = e.finalLineHeight || 1.2 * e.finalSize, e.ls = e.ls || 0, e.ascent = p.ascent * e.finalSize / 100 }, ln.prototype.updateDocumentData = function(e, t) { @@ -21157,25 +21515,25 @@ S = e.l; if (this._hasMaskedPath) { if (W = this._pathData.m, !this._pathData.n || this._pathData._mdf) { - var O, P, I, A, C, T, R, D, N, j, L, M, V, B, G, q, $, W, H, Y = W.v; - for (this._pathData.r.v && (Y = Y.reverse()), C = { - tLength: 0, - segments: [] - }, A = Y._length - 1, q = 0, I = 0; I < A; I += 1) H = ie.buildBezierData(Y.v[I], Y.v[I + 1], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[I + 1][0] - Y.v[I + 1][0], Y.i[I + 1][1] - Y.v[I + 1][1]]), C.tLength += H.segmentLength, C.segments.push(H), q += H.segmentLength; - I = A, W.v.c && (H = ie.buildBezierData(Y.v[I], Y.v[0], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[0][0] - Y.v[0][0], Y.i[0][1] - Y.v[0][1]]), C.tLength += H.segmentLength, C.segments.push(H), q += H.segmentLength), this._pathData.pi = C + var O, P, I, A, R, C, T, D, N, L, j, M, V, G, B, q, $, W, H, Y = W.v; + for (this._pathData.r.v && (Y = Y.reverse()), R = { + tLength: 0, + segments: [] + }, A = Y._length - 1, q = 0, I = 0; I < A; I += 1) H = ie.buildBezierData(Y.v[I], Y.v[I + 1], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[I + 1][0] - Y.v[I + 1][0], Y.i[I + 1][1] - Y.v[I + 1][1]]), R.tLength += H.segmentLength, R.segments.push(H), q += H.segmentLength; + I = A, W.v.c && (H = ie.buildBezierData(Y.v[I], Y.v[0], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[0][0] - Y.v[0][0], Y.i[0][1] - Y.v[0][1]]), R.tLength += H.segmentLength, R.segments.push(H), q += H.segmentLength), this._pathData.pi = R } - if (C = this._pathData.pi, T = this._pathData.f.v, L = 0, j = 1, D = 0, N = !0, B = C.segments, T < 0 && W.v.c) - for (C.tLength < Math.abs(T) && (T = -Math.abs(T) % C.tLength), j = (V = B[L = B.length - 1].points).length - 1; T < 0;) T += V[j].partialLength, (j -= 1) < 0 && (j = (V = B[L -= 1].points).length - 1); - M = (V = B[L].points)[j - 1], G = (R = V[j]).partialLength + if (R = this._pathData.pi, C = this._pathData.f.v, j = 0, L = 1, D = 0, N = !0, G = R.segments, C < 0 && W.v.c) + for (R.tLength < Math.abs(C) && (C = -Math.abs(C) % R.tLength), L = (V = G[j = G.length - 1].points).length - 1; C < 0;) C += V[L].partialLength, (L -= 1) < 0 && (L = (V = G[j -= 1].points).length - 1); + M = (V = G[j].points)[L - 1], B = (T = V[L]).partialLength } A = S.length, O = 0, P = 0; var K = 1.2 * e.finalSize * .714, Q = !0; a = b.length; var Z = -1, - X = T, - J = L, - ee = j, + X = C, + J = j, + ee = L, te = -1, ne = "", re = this.defaultPropsArray; @@ -21195,26 +21553,26 @@ } for (ae && (ae += oe); le < I;) S[le].animatorJustifyOffset = ae, le += 1 } for (I = 0; I < A; I += 1) { - if (w.reset(), u = 1, S[I].n) O = 0, P += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (j = ee, M = (V = B[L = J].points)[j - 1], G = (R = V[j]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; + if (w.reset(), u = 1, S[I].n) O = 0, P += e.yOffset + (Q ? 1 : 0), C = X, Q = !1, this._hasMaskedPath && (L = ee, M = (V = G[j = J].points)[L - 1], B = (T = V[L]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; else { if (this._hasMaskedPath) { if (te !== S[I].line) { switch (e.j) { case 1: - T += q - e.lineWidths[S[I].line]; + C += q - e.lineWidths[S[I].line]; break; case 2: - T += (q - e.lineWidths[S[I].line]) / 2 + C += (q - e.lineWidths[S[I].line]) / 2 } te = S[I].line } - Z !== S[I].ind && (S[Z] && (T += S[Z].extra), T += S[I].an / 2, Z = S[I].ind), T += _[0] * S[I].an * .005; + Z !== S[I].ind && (S[Z] && (C += S[Z].extra), C += S[I].an / 2, Z = S[I].ind), C += _[0] * S[I].an * .005; var ue = 0; for (r = 0; r < a; r += 1)(n = b[r].a).p.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.p.v[0] * o[0] : ue += n.p.v[0] * o), n.a.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.a.v[0] * o[0] : ue += n.a.v[0] * o); - for (N = !0, this._pathData.a.v && (T = .5 * S[0].an + (q - this._pathData.f.v - .5 * S[0].an - .5 * S[S.length - 1].an) * Z / (A - 1) + this._pathData.f.v); N;) D + G >= T + ue || !V ? ($ = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * $, c = M.point[1] + (R.point[1] - M.point[1]) * $, w.translate(-_[0] * S[I].an * .005, -_[1] * K * .01), N = !1) : V && (D += R.partialLength, (j += 1) >= V.length && (j = 0, B[L += 1] ? V = B[L].points : W.v.c ? (j = 0, V = B[L = 0].points) : (D -= R.partialLength, V = null)), V && (M = R, G = (R = V[j]).partialLength)); + for (N = !0, this._pathData.a.v && (C = .5 * S[0].an + (q - this._pathData.f.v - .5 * S[0].an - .5 * S[S.length - 1].an) * Z / (A - 1) + this._pathData.f.v); N;) D + B >= C + ue || !V ? ($ = (C + ue - D) / T.partialLength, l = M.point[0] + (T.point[0] - M.point[0]) * $, c = M.point[1] + (T.point[1] - M.point[1]) * $, w.translate(-_[0] * S[I].an * .005, -_[1] * K * .01), N = !1) : V && (D += T.partialLength, (L += 1) >= V.length && (L = 0, G[j += 1] ? V = G[j].points : W.v.c ? (L = 0, V = G[j = 0].points) : (D -= T.partialLength, V = null)), V && (M = T, B = (T = V[L]).partialLength)); s = S[I].an / 2 - S[I].add, w.translate(-s, 0, 0) } else s = S[I].an / 2 - S[I].add, w.translate(-s, 0, 0), w.translate(-_[0] * S[I].an * .005, -_[1] * K * .01, 0); - for (r = 0; r < a; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), (0 !== O || 0 !== e.j) && (this._hasMaskedPath ? o.length ? T += n.t.v * o[0] : T += n.t.v * o : o.length ? O += n.t.v * o[0] : O += n.t.v * o)); + for (r = 0; r < a; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), (0 !== O || 0 !== e.j) && (this._hasMaskedPath ? o.length ? C += n.t.v * o[0] : C += n.t.v * o : o.length ? O += n.t.v * o[0] : O += n.t.v * o)); for (e.strokeWidthAnim && (p = e.sw || 0), e.strokeColorAnim && (d = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (h = [e.fc[0], e.fc[1], e.fc[2]]), r = 0; r < a; r += 1)(n = b[r].a).a.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? w.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : w.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o)); for (r = 0; r < a; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? w.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : w.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1)); for (r = 0; r < a; r += 1) { @@ -21229,10 +21587,10 @@ for (r = 0; r < a; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? w.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : w.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? w.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : w.translate(n.p.v[0] * o, n.p.v[1] * o, -n.p.v[2] * o)); if (e.strokeWidthAnim && (m = p < 0 ? 0 : p), e.strokeColorAnim && (g = "rgb(" + Math.round(255 * d[0]) + "," + Math.round(255 * d[1]) + "," + Math.round(255 * d[2]) + ")"), e.fillColorAnim && e.fc && (v = "rgb(" + Math.round(255 * h[0]) + "," + Math.round(255 * h[1]) + "," + Math.round(255 * h[2]) + ")"), this._hasMaskedPath) { if (w.translate(0, -e.ls), w.translate(0, _[1] * K * .01 + P, 0), this._pathData.p.v) { - var de = 180 * Math.atan((R.point[1] - M.point[1]) / (R.point[0] - M.point[0])) / Math.PI; - R.point[0] < M.point[0] && (de += 180), w.rotate(-de * Math.PI / 180) + var de = 180 * Math.atan((T.point[1] - M.point[1]) / (T.point[0] - M.point[0])) / Math.PI; + T.point[0] < M.point[0] && (de += 180), w.rotate(-de * Math.PI / 180) } - w.translate(l, c, 0), T -= _[0] * S[I].an * .005, S[I + 1] && Z !== S[I + 1].ind && (T += S[I].an / 2 + .001 * e.tr * e.finalSize) + w.translate(l, c, 0), C -= _[0] * S[I].an * .005, S[I + 1] && Z !== S[I + 1].ind && (C += S[I].an / 2 + .001 * e.tr * e.finalSize) } else { switch (w.translate(O, P, 0), e.ps && w.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { case 1: @@ -21310,12 +21668,12 @@ var n = ""; if (t && t.title) { var r = q("title"), - a = j(); + a = L(); r.setAttribute("id", a), r.textContent = t.title, this.svgElement.appendChild(r), n += a } if (t && t.description) { var i = q("desc"), - o = j(); + o = L(); i.setAttribute("id", o), i.textContent = t.description, this.svgElement.appendChild(i), n += " " + o } n && this.svgElement.setAttribute("aria-labelledby", n); @@ -21349,7 +21707,7 @@ renderConfig: this.renderConfig }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg" } - return f([St, Tt, zt, Ft, Ot, Ut, pn], fn), fn.prototype.createContent = function() { + return f([St, Ct, zt, Ft, Ot, Ut, pn], fn), fn.prototype.createContent = function() { this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = q("text")) }, fn.prototype.buildTextContents = function(e) { for (var t = 0, n = e.length, r = [], a = ""; t < n;) "\r" === e[t] || "\x03" === e[t] ? (r.push(a), a = "") : a += e[t], t += 1; @@ -21389,10 +21747,10 @@ var p = this.textSpans.length; for (f = 0; f < m; f += 1) { if (this.textSpans[f] || (this.textSpans[f] = { - span: null, - childSpan: null, - glyph: null - }), !i || !s || 0 === f) { + span: null, + childSpan: null, + glyph: null + }), !i || !s || 0 === f) { if (g = p > f ? this.textSpans[f].span : q(i ? "g" : "text"), p <= f) { if (g.setAttribute("stroke-linecap", "butt"), g.setAttribute("stroke-linejoin", "round"), g.setAttribute("stroke-miterlimit", "4"), this.textSpans[f].span = g, i) { var h = q("g"); @@ -21468,7 +21826,7 @@ this.prepareProperties(e, !0) }, gn.prototype.renderFrame = function() {}, gn.prototype.getBaseElement = function() { return null - }, gn.prototype.destroy = function() {}, gn.prototype.sourceRectAtTime = function() {}, gn.prototype.hide = function() {}, f([St, Tt, Ft, Ot], gn), f([At], vn), vn.prototype.createNull = function(e) { + }, gn.prototype.destroy = function() {}, gn.prototype.sourceRectAtTime = function() {}, gn.prototype.hide = function() {}, f([St, Ct, Ft, Ot], gn), f([At], vn), vn.prototype.createNull = function(e) { return new gn(e, this.globalData, this) }, vn.prototype.createShape = function(e) { return new on(e, this.globalData, this) @@ -21485,7 +21843,7 @@ var n = q("clipPath"), r = q("rect"); r.setAttribute("width", e.w), r.setAttribute("height", e.h), r.setAttribute("x", 0), r.setAttribute("y", 0); - var a = j(); + var a = L(); n.setAttribute("id", a), n.appendChild(r), this.layerElement.setAttribute("clip-path", "url(" + p() + "#" + a + ")"), t.appendChild(n), this.layers = e.layers, this.elements = v(e.layers.length) }, vn.prototype.destroy = function() { this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), this.layerElement = null, this.globalData.defs = null; @@ -21544,7 +21902,7 @@ this.layerElement.style.display = "none" }, vn.prototype.show = function() { this.layerElement.style.display = "block" - }, f([St, Tt, Ft, Ot, Ut], yn), yn.prototype.initElement = function(e, t, n) { + }, f([St, Ct, Ft, Ot, Ut], yn), yn.prototype.initElement = function(e, t, n) { this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !t.progressiveLoad) && this.buildAllItems(), this.hide() }, yn.prototype.prepareFrame = function(e) { if (this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.isInRange || this.data.xt) { @@ -21572,9 +21930,9 @@ return new _n(e, this.globalData, this) }, f([vn], bn), bn.prototype.createComp = function(e) { return new _n(e, this.globalData, this) - }, Q.svg = bn, De.registerModifier("tm", je), De.registerModifier("pb", Le), De.registerModifier("rp", ze), De.registerModifier("rd", Fe), De.registerModifier("zz", et), De.registerModifier("op", ct), Pe + }, Q.svg = bn, De.registerModifier("tm", Le), De.registerModifier("pb", je), De.registerModifier("rp", ze), De.registerModifier("rd", Fe), De.registerModifier("zz", et), De.registerModifier("op", ct), Pe }()); - var Ri = ($a = Ti.exports) && $a.__esModule && Object.prototype.hasOwnProperty.call($a, "default") ? $a.default : $a; + var Ti = ($a = Ci.exports) && $a.__esModule && Object.prototype.hasOwnProperty.call($a, "default") ? $a.default : $a; let Di = (e, t) => { let [n, r] = (0, Oe.useState)(((e, t = !1) => "undefined" != typeof window ? window.matchMedia(e).matches : t)(e, t)); return (0, Oe.useEffect)((() => { @@ -21584,10 +21942,10 @@ }), [e]), n }, Ni = (0, Oe.createContext)(null), - ji = () => (0, Oe.useContext)(Ni) ?? {}, - Li = () => { + Li = () => (0, Oe.useContext)(Ni) ?? {}, + ji = () => { let e = Di("(prefers-reduced-motion: reduce)"); - return ji().prefersReducedMotion ?? e + return Li().prefersReducedMotion ?? e }, Mi = "loading", zi = "loaded", @@ -21608,12 +21966,12 @@ let h = (0, Oe.useRef)(), f = (0, Oe.useRef)(null), m = (0, Oe.useRef)(!1), - g = Li(), + g = ji(), [v, y] = (0, Oe.useState)(Mi), _ = !e || g || v === Fi; (0, Oe.useEffect)((() => { if (!f.current || !e || g && n) return; - h.current = Ri.loadAnimation({ + h.current = Ti.loadAnimation({ ..."string" == typeof e ? { path: e } : { @@ -21652,9 +22010,9 @@ }), [d, i]); (0, Oe.useEffect)((() => v === zi && a ? b() : w()), [a, g, b, v, w]); let k = (0, Oe.useCallback)((({ - children: e, - ...t - }) => (0, Oe.createElement)("span", { + children: e, + ...t + }) => (0, Oe.createElement)("span", { children: _ ? n ?? e : null, ref: _ ? void 0 : f, ...t @@ -21669,10 +22027,10 @@ })), [k, x, b, w]) }, Vi = (...e) => (0, Oe.useMemo)((() => gi(...e)), e), - Bi = ({ - ref: e, - onScroll: t - } = {}) => { + Gi = ({ + ref: e, + onScroll: t + } = {}) => { let [n, r] = (0, Oe.useState)({ blockStart: !0, blockEnd: !1, @@ -21726,11 +22084,11 @@ ...n })), [i, n]) }, - Gi = (0, Oe.createContext)(null), + Bi = (0, Oe.createContext)(null), qi = ({ - children: e, - ...t - }) => { + children: e, + ...t + }) => { let n = (e => { let { name: t @@ -21743,19 +22101,19 @@ getProps: r })), [e, n, r]) })(t); - return (0, Oe.createElement)(Gi.Provider, { + return (0, Oe.createElement)(Bi.Provider, { value: n }, "function" == typeof e ? e(n) : e) }, - $i = () => (0, Oe.useContext)(Gi) ?? {}, + $i = () => (0, Oe.useContext)(Bi) ?? {}, Wi = (0, Oe.forwardRef)((({ - children: e, - disabled: t, - external: n, - href: r, - onClick: a, - ...i - }, o) => { + children: e, + disabled: t, + external: n, + href: r, + onClick: a, + ...i + }, o) => { let s = (0, Oe.useContext)(Ai) ?? "a"; return t ? Ka.jsx("a", { "aria-disabled": "true", @@ -21774,12 +22132,12 @@ }) })), Hi = (0, Oe.forwardRef)((({ - decorative: e, - disabled: t, - disableFocus: n, - loading: r, - ...a - }, i) => { + decorative: e, + disabled: t, + disableFocus: n, + loading: r, + ...a + }, i) => { let o = !!r, s = t ?? o; if ((e => "href" in e)(a)) return Ka.jsx(Wi, { @@ -21805,10 +22163,10 @@ })); za("@layer components{.sol-c-icon{--_size:var(--sol-c-icon-size,var(--sol-size-100));display:inline-block;flex-shrink:0;height:var(--_size);width:var(--_size)}.sol-c-icon,.sol-c-icon [fill]:not([fill=none]){fill:currentColor}.sol-c-icon [stroke]:not([stroke=none]){stroke:currentColor}}"); let Yi = (0, Oe.forwardRef)((({ - isPlaying: e, - source: t, - ...n - }, r) => { + isPlaying: e, + source: t, + ...n + }, r) => { let { ref: a } = Ui(t, { @@ -21820,14 +22178,14 @@ }) })), Ki = (0, Oe.forwardRef)((({ - className: e, - color: t, - size: n, - source: r, - style: a, - isPlaying: i = !0, - ...o - }, s) => { + className: e, + color: t, + size: n, + source: r, + style: a, + isPlaying: i = !0, + ...o + }, s) => { let l = { "aria-hidden": !0, className: fi("sol-c-icon", t && `sol-u-color-${t}`, e), @@ -21851,22 +22209,22 @@ })); za("@layer components{.sol-c-text{--_font-offset:var(--sol-font-offset-primary);font-family:var(--sol-font-family-primary);font-variant-numeric:tabular-nums;letter-spacing:var(--sol-letter-spacing-normal)}.sol-c-text--offset{inset-block-start:var(--_font-offset,0);position:relative}.sol-c-text--heading-l{font:var(--sol-text-heading-l)}.sol-c-text--heading-m{font:var(--sol-text-heading-m)}.sol-c-text--heading-s{font:var(--sol-text-heading-s)}.sol-c-text--heading-xs{font:var(--sol-text-heading-xs)}.sol-c-text--emphasis-l{font:var(--sol-text-emphasis-l)}.sol-c-text--emphasis-m{font:var(--sol-text-emphasis-m)}.sol-c-text--emphasis-s{font:var(--sol-text-emphasis-s)}.sol-c-text--body-l{font:var(--sol-text-body-l)}.sol-c-text--body-l-bold{font:var(--sol-text-body-l-bold)}.sol-c-text--body-m{font:var(--sol-text-body-m)}.sol-c-text--body-m-bold{font:var(--sol-text-body-m-bold)}.sol-c-text--body-s{font:var(--sol-text-body-s)}.sol-c-text--body-s-bold{font:var(--sol-text-body-s-bold)}.sol-c-text--body-xs{font:var(--sol-text-body-xs)}.sol-c-text--body-xs-bold{font:var(--sol-text-body-xs-bold)}.sol-c-text--body-xxs{font:var(--sol-text-body-xxs)}.sol-c-text--body-xxs-bold{font:var(--sol-text-body-xxs-bold)}.sol-c-text--button-m{font:var(--sol-text-button-m)}.sol-c-text--button-s{font:var(--sol-text-button-s)}.sol-c-text--label-m{font:var(--sol-text-label-m)}.sol-c-text--label-s{font:var(--sol-text-label-s)}.sol-c-text--label-xs{font:var(--sol-text-label-xs)}.sol-c-text--body,.sol-c-text--label{--_font-offset:var(--sol-font-offset-secondary)}.sol-c-text--button{letter-spacing:var(--sol-letter-spacing-button)}.sol-c-text :is(h1,h2,h3,p,ul,ol,blockquote,pre,table):not(:first-child):not([class*=sol-c-]){margin-block-start:var(--sol-size-150)}.sol-c-text h1:not([class*=sol-c-]){font:var(--sol-text-body-l)}.sol-c-text h2:not([class*=sol-c-]){font:var(--sol-text-body-m)}.sol-c-text h3:not([class*=sol-c-]){font:var(--sol-text-body-s)}.sol-c-text :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-6)}.sol-c-text :is(h1,h2,h3):not([class*=sol-c-]),.sol-c-text.sol-c-text--body :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-7)}.sol-c-text a:not([class*=sol-c-]){border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-link);text-decoration:underline;transition:color var(--sol-motion-250)}.sol-c-text a:not([class*=sol-c-]):hover{color:var(--sol-color-interactive-hovered)}.sol-c-text a:not([class*=sol-c-]):active{color:var(--sol-color-interactive-pressed)}.sol-c-text :is(ul,ol):not([class*=sol-c-]){margin-inline-start:var(--sol-size-150)}.sol-c-text :is(ul,ol):not([class*=sol-c-]) :is(ul,ol):not(:first-child){margin-block-start:0}.sol-c-text :is(ul,ol):not([class*=sol-c-]) li,.sol-c-text :is(ul,ol):not([class*=sol-c-]):not(:first-child)+:is(ul,ol){margin-block:var(--sol-size-050)}.sol-c-text ul:not([class*=sol-c-]){list-style-type:disc}.sol-c-text ol:not([class*=sol-c-]){list-style-type:decimal}.sol-c-text blockquote:not([class*=sol-c-]){border-inline-start:var(--sol-border-2) solid var(--sol-color-accent-1);padding-inline-start:var(--sol-size-100)}.sol-c-text pre:not([class*=sol-c-]){background-color:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]){background-color:var(--sol-color-surface-2)!important;border-radius:var(--sol-radius-4)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) td{color:inherit!important;padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) [style*=color]{color:inherit!important}.sol-c-text hr:not([class*=sol-c-]){block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3);margin-block:var(--sol-size-150)}}"); let Qi = mi((({ - align: e, - as: t, - children: n, - className: r, - color: a, - decoration: i, - italic: o, - style: s, - multiline: l, - offset: c, - transform: u, - truncate: d, - variant: p = "body-m", - visuallyHidden: h, - ...f - }, m) => { + align: e, + as: t, + children: n, + className: r, + color: a, + decoration: i, + italic: o, + style: s, + multiline: l, + offset: c, + transform: u, + truncate: d, + variant: p = "body-m", + visuallyHidden: h, + ...f + }, m) => { let g = (0, Oe.useMemo)((() => t || (h && !l ? "span" : l ? "div" : "p")), [t, l, h]), v = fi("sol-c-text", `sol-c-text--${p.split("-").shift()}`, `sol-c-text--${p}`, l && "sol-c-text--multiline", c && "sol-c-text--offset", e && `sol-u-text-align-${e}`, a && `sol-u-color-${a}`, i && `sol-u-text-decoration-${i}`, o && (o ? "sol-u-font-style-italic" : "sol-u-font-style-normal"), u && `sol-u-text-transform-${u}`, d && "sol-u-text-truncate", h && "sol-u-hide-visually", r), y = { @@ -21887,27 +22245,27 @@ Ji = "medium", eo = "default", to = (0, Oe.forwardRef)((({ - align: e = Zi, - children: t, - className: n, - color: r = Xi, - controlled: a, - disableOffset: i, - endIcon: o, - fullWidth: s, - loading: l, - loadingIcon: c = si, - loadingIconAnimation: u = !0, - onMouseEnter: d, - onMouseLeave: p, - selected: h, - size: f = Ji, - icon: m, - iconAnimation: g = !0, - uppercase: v, - variant: y = eo, - ..._ - }, b) => { + align: e = Zi, + children: t, + className: n, + color: r = Xi, + controlled: a, + disableOffset: i, + endIcon: o, + fullWidth: s, + loading: l, + loadingIcon: c = si, + loadingIconAnimation: u = !0, + onMouseEnter: d, + onMouseLeave: p, + selected: h, + size: f = Ji, + icon: m, + iconAnimation: g = !0, + uppercase: v, + variant: y = eo, + ..._ + }, b) => { let [x, w] = (0, Oe.useState)(!1), k = (0, Oe.useCallback)((e => { w(!0), d?.(e) }), [d]), E = (0, Oe.useCallback)((e => { @@ -22042,10 +22400,10 @@ } })(e), A = "start" === s || "nearest" === s ? x - S : "end" === s ? k + P : x + _ / 2 - S + P, - C = "center" === l ? E + b / 2 - I + O : "end" === l ? w + O : E - I, - T = []; - for (let R = 0; R < h.length; R++) { - let e = h[R], + R = "center" === l ? E + b / 2 - I + O : "end" === l ? w + O : E - I, + C = []; + for (let T = 0; T < h.length; T++) { + let e = h[T], { height: t, width: n, @@ -22064,38 +22422,38 @@ I = 0, D = "offsetWidth" in e ? e.offsetWidth - e.clientWidth - d - S : 0, N = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0, - j = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0, - L = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; - if (p === e) P = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? io(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, I = "start" === l ? C : "center" === l ? C - m / 2 : "end" === l ? C - m : io(v, v + m, m, d, S, v + C, v + C + b, b), P = Math.max(0, P + y), I = Math.max(0, I + v); + L = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0, + j = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; + if (p === e) P = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? io(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, I = "start" === l ? R : "center" === l ? R - m / 2 : "end" === l ? R - m : io(v, v + m, m, d, S, v + R, v + R + b, b), P = Math.max(0, P + y), I = Math.max(0, I + v); else { - P = "start" === s ? A - r - f : "end" === s ? A - i + O + N : "nearest" === s ? io(r, i, t, f, O + N, A, A + _, _) : A - (r + t / 2) + N / 2, I = "start" === l ? C - c - d : "center" === l ? C - (c + n / 2) + D / 2 : "end" === l ? C - a + S + D : io(c, a, n, d, S + D, C, C + b, b); + P = "start" === s ? A - r - f : "end" === s ? A - i + O + N : "nearest" === s ? io(r, i, t, f, O + N, A, A + _, _) : A - (r + t / 2) + N / 2, I = "start" === l ? R - c - d : "center" === l ? R - (c + n / 2) + D / 2 : "end" === l ? R - a + S + D : io(c, a, n, d, S + D, R, R + b, b); let { scrollLeft: o, scrollTop: u } = e; - P = 0 === L ? 0 : Math.max(0, Math.min(u + P / L, e.scrollHeight - t / L + N)), I = 0 === j ? 0 : Math.max(0, Math.min(o + I / j, e.scrollWidth - n / j + D)), A += u - P, C += o - I + P = 0 === j ? 0 : Math.max(0, Math.min(u + P / j, e.scrollHeight - t / j + N)), I = 0 === L ? 0 : Math.max(0, Math.min(o + I / L, e.scrollWidth - n / L + D)), A += u - P, R += o - I } - T.push({ + C.push({ el: e, top: P, left: I }) } - return T + return C }, lo = (0, Oe.forwardRef)((({ - children: e, - className: t, - id: n, - keepMounted: r, - open: a, - onOpenChange: i, - prefix: o, - scrollIntoView: s, - suffix: l, - title: c, - ...u - }, d) => { + children: e, + className: t, + id: n, + keepMounted: r, + open: a, + onOpenChange: i, + prefix: o, + scrollIntoView: s, + suffix: l, + title: c, + ...u + }, d) => { let p = (0, Oe.useRef)(null), h = (0, Oe.useRef)(null), f = (0, Oe.useId)(), @@ -22115,13 +22473,13 @@ (0, Oe.useLayoutEffect)((() => (v(m, a), () => _(m))), [m, a, v, _]), (0, Oe.useEffect)((() => { b && (w(!0), s && p.current && function(e, t) { if (!e.isConnected || !(e => { - let t = e; - for (; t && t.parentNode;) { - if (t.parentNode === document) return !0; - t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode - } - return !1 - })(e)) return; + let t = e; + for (; t && t.parentNode;) { + if (t.parentNode === document) return !0; + t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode + } + return !1 + })(e)) return; let n = (e => { let t = window.getComputedStyle(e); return { @@ -22134,17 +22492,17 @@ if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(so(e, t)); let r = "boolean" == typeof t || null == t ? void 0 : t.behavior; for (let { - el: a, - top: i, - left: o - } + el: a, + top: i, + left: o + } of so(e, (e => !1 === e ? { - block: "end", - inline: "nearest" - } : e === Object(e) && 0 !== Object.keys(e).length ? e : { - block: "start", - inline: "nearest" - })(t))) { + block: "end", + inline: "nearest" + } : e === Object(e) && 0 !== Object.keys(e).length ? e : { + block: "start", + inline: "nearest" + })(t))) { let e = i - n.top + n.bottom, t = o - n.left + n.right; a.scroll({ @@ -22215,20 +22573,20 @@ }) })), co = (0, Oe.forwardRef)((({ - className: e, - closeAll: t, - children: n, - openAll: r, - ...a - }, i) => { + className: e, + closeAll: t, + children: n, + openAll: r, + ...a + }, i) => { let o = (() => { let [e, t] = (0, Oe.useState)({}), n = (0, Oe.useCallback)(((e, n) => t((t => ({ ...t, [e]: n ?? !1 })))), []), r = (0, Oe.useCallback)((e => t((({ - [e]: t, - ...n - }) => n))), []), a = (0, Oe.useCallback)((t => !!e[t]), [e]), i = (0, Oe.useCallback)(((e, n) => t((t => ({ + [e]: t, + ...n + }) => n))), []), a = (0, Oe.useCallback)((t => !!e[t]), [e]), i = (0, Oe.useCallback)(((e, n) => t((t => ({ ...t, [e]: n ?? !t[e] })))), []), o = (0, Oe.useCallback)((t => Object.entries(e).forEach((([e, n]) => i(e, t ?? !n)))), [e, i]); @@ -22277,13 +22635,13 @@ })); za('@layer components{.sol-c-app-header{-webkit-app-region:drag;background:var(--sol-color-surface-1);box-shadow:var(--sol-shadow-100);padding:var(--sol-size-050);position:relative}.sol-c-app-header>*{-webkit-app-region:no-drag;opacity:0}.sol-c-app-header>:first-child{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.4s}.sol-c-app-header>:nth-child(2){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.5s}.sol-c-app-header>:nth-child(3){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.6s}.sol-c-app-header>:nth-child(4){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.7s}.sol-c-app-header>:nth-child(5){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.8s}.sol-c-app-header>:nth-child(6){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.9s}.sol-c-app-header>:nth-child(7){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1s}.sol-c-app-header>:nth-child(8){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.1s}.sol-c-app-header>:nth-child(9){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.2s}.sol-c-app-header>:nth-child(10){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.3s}[data-sol-dialog] .sol-c-app-header:before{-webkit-app-region:drag;content:"";display:block;inset:0;position:absolute;z-index:var(--sol-z-actions)}.sol-c-app-header__actions{-webkit-app-region:drag;margin-inline-start:auto}.sol-c-app-header__item{-webkit-app-region:no-drag;position:relative;z-index:1}.sol-c-app-header__item--always-on-top{z-index:var(--sol-z-actions)}.sol-c-app-header__separator{background-color:var(--sol-color-surface-2);block-size:100%;inline-size:var(--sol-border-1)}}'), za("@layer components{.sol-c-stack{display:flex;gap:var(--sol-c-stack-gap);min-inline-size:0}.sol-c-stack--align-start{align-items:flex-start}.sol-c-stack--align-center{align-items:center}.sol-c-stack--align-end{align-items:flex-end}.sol-c-stack--align-stretch{align-items:stretch}.sol-c-stack--align-baseline{align-items:baseline}.sol-c-stack--justify-start{justify-content:flex-start}.sol-c-stack--justify-center{justify-content:center}.sol-c-stack--justify-end{justify-content:flex-end}.sol-c-stack--justify-space-between{justify-content:space-between}.sol-c-stack--justify-space-around{justify-content:space-around}.sol-c-stack--justify-space-evenly{justify-content:space-evenly}.sol-c-stack--vertical{flex-direction:column}.sol-c-stack--reverse{flex-direction:row-reverse}.sol-c-stack--reverse.sol-c-stack--vertical{flex-direction:column-reverse}.sol-c-stack--wrap{flex-wrap:wrap}.sol-c-stack__item{flex:0 0 auto}.sol-c-stack__item--start{align-self:flex-start}.sol-c-stack__item--center{align-self:center}.sol-c-stack__item--end{align-self:flex-end}.sol-c-stack__item--stretch{align-self:stretch}.sol-c-stack__item--baseline{align-self:baseline}.sol-c-stack__item--fill{flex:1 1 auto}}"); mi((({ - align: e, - as: t = "div", - className: n, - children: r, - fill: a, - ...i - }, o) => { + align: e, + as: t = "div", + className: n, + children: r, + fill: a, + ...i + }, o) => { let s = fi("sol-c-stack__item", e && `sol-c-stack__item--${e}`, a && "sol-c-stack__item--fill", n); return (0, Oe.createElement)(t, { className: s, @@ -22292,17 +22650,17 @@ }, r) })); let uo = mi((({ - align: e, - as: t = "div", - children: n, - className: r, - gap: a, - justify: i, - reverse: o, - vertical: s, - wrap: l, - ...c - }, u) => { + align: e, + as: t = "div", + children: n, + className: r, + gap: a, + justify: i, + reverse: o, + vertical: s, + wrap: l, + ...c + }, u) => { let d = fi("sol-c-stack", e && `sol-c-stack--align-${e}`, i && `sol-c-stack--justify-${i}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", a && `sol-u-gap-${a}`, r); return (0, Oe.createElement)(t, { className: d, @@ -22311,9 +22669,9 @@ }, n) })), po = (0, Oe.forwardRef)((({ - className: e, - ...t - }, n) => { + className: e, + ...t + }, n) => { let r = fi("sol-c-app-header__actions", e); return Ka.jsx(uo, { align: "center", @@ -22325,14 +22683,14 @@ }) })), ho = (0, Oe.forwardRef)((({ - alwaysOnTop: e, - children: t, - className: n, - hasAvatar: r, - label: a, - style: i, - ...o - }, s) => { + alwaysOnTop: e, + children: t, + className: n, + hasAvatar: r, + label: a, + style: i, + ...o + }, s) => { let l = fi("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n), c = { ...r && { @@ -22353,10 +22711,10 @@ }) })), fo = mi((({ - as: e = "div", - className: t, - ...n - }, r) => { + as: e = "div", + className: t, + ...n + }, r) => { let a = fi("sol-c-app-header__separator", t); return Ka.jsx(e, { "aria-hidden": "true", @@ -22366,11 +22724,11 @@ }) })), mo = (0, Oe.forwardRef)((({ - actions: e, - children: t, - className: n, - ...r - }, a) => { + actions: e, + children: t, + className: n, + ...r + }, a) => { let i = fi("sol-c-app-header", n); return Ka.jsxs(uo, { as: "header", @@ -22385,11 +22743,11 @@ })); za("@layer components{.sol-c-app-layout{background:var(--sol-color-background);block-size:100vh;block-size:100dvh;display:flex;flex-direction:column;position:relative}.sol-c-app-layout__header{flex:0;position:relative;z-index:var(--sol-z-header)}.sol-c-app-layout__main{display:flex;flex:1;flex-direction:column;min-block-size:0;overflow:auto;position:relative;z-index:var(--sol-z-main)}}"); let go = (0, Oe.forwardRef)((({ - children: e, - className: t, - header: n, - ...r - }, a) => { + children: e, + className: t, + header: n, + ...r + }, a) => { let i = fi("sol-c-app-layout", t); return Ka.jsxs("div", { className: i, @@ -22405,13 +22763,13 @@ })); za("@layer components{.sol-c-avatar{--_size:var(--sol-c-avatar-size,var(--sol-size-200));background-color:var(--sol-color-surface-2);border:var(--sol-border-1) solid;border-radius:var(--sol-radius-4);display:inline-block;height:var(--_size);overflow:hidden;position:relative;width:var(--_size)}.sol-c-avatar__image{display:block;height:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--sol-motion-250);width:100%}.sol-c-avatar__image--loaded{opacity:1}}"); let vo = mi((({ - as: e = "span", - alt: t, - className: n, - src: r, - srcSet: a, - ...i - }, o) => { + as: e = "span", + alt: t, + className: n, + src: r, + srcSet: a, + ...i + }, o) => { let s = Pi({ src: r, srcSet: a @@ -22485,18 +22843,18 @@ } function Po(e) { - return 0 === e.mozInputSource && !!e.isTrusted || (Co() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) + return 0 === e.mozInputSource && !!e.isTrusted || (Ro() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) } function Io(e) { - return !Co() && 0 === e.width && 0 === e.height || 1 === e.width && 1 === e.height && 0 === e.pressure && 0 === e.detail && "mouse" === e.pointerType || e.width < 1 && e.height < 1 && 0 === e.pressure && 0 === e.detail + return !Ro() && 0 === e.width && 0 === e.height || 1 === e.width && 1 === e.height && 0 === e.pressure && 0 === e.detail && "mouse" === e.pointerType || e.width < 1 && e.height < 1 && 0 === e.pressure && 0 === e.detail } function Ao() { return /apple/i.test(navigator.vendor) } - function Co() { + function Ro() { let e = /android/i; return e.test(Oo()) || e.test(function() { let e = navigator.userAgentData; @@ -22510,11 +22868,11 @@ }()) } - function To() { + function Co() { return Oo().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints } - function Ro(e, t) { + function To(e, t) { let n = ["mouse", "pen"]; return t || n.push("", void 0), n.includes(e) } @@ -22527,11 +22885,11 @@ return null != t && ("composedPath" in e ? e.composedPath().includes(t) : null != e.target && t.contains(e.target)) } - function jo(e) { + function Lo(e) { return "composedPath" in e ? e.composedPath()[0] : e.target } - function Lo(e) { + function jo(e) { return wo(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])") } @@ -22543,8 +22901,8 @@ Fo = Math.min, Uo = Math.max, Vo = Math.round, - Bo = Math.floor, - Go = e => ({ + Go = Math.floor, + Bo = e => ({ x: e, y: e }), @@ -23019,7 +23377,7 @@ function Ss(e) { let t = Es(e); - if (!hs(t)) return Go(1); + if (!hs(t)) return Bo(1); let n = t.getBoundingClientRect(), { width: r, @@ -23033,7 +23391,7 @@ y: s } } - let Os = Go(0); + let Os = Bo(0); function Ps(e) { let t = cs(e); @@ -23048,9 +23406,9 @@ void 0 === t && (t = !1), void 0 === n && (n = !1); let i = e.getBoundingClientRect(), o = Es(e), - s = Go(1); + s = Bo(1); t && (r ? ps(r) && (s = Ss(r)) : s = Ss(e)); - let l = (void 0 === (a = n) && (a = !1), !r || a && r !== cs(o) || !a ? Go(0) : Ps(o)), + let l = (void 0 === (a = n) && (a = !1), !r || a && r !== cs(o) || !a ? Bo(0) : Ps(o)), c = (i.left + l.x) / s.x, u = (i.top + l.y) / s.y, d = i.width / s.x, @@ -23080,7 +23438,7 @@ return Is(us(e)).left + bs(e).scrollLeft } - function Cs(e, t, n) { + function Rs(e, t, n) { let r; if ("viewport" === t) r = function(e, t) { let n = cs(e), @@ -23121,7 +23479,7 @@ let n = Is(e, !0, "fixed" === t), r = n.top + e.clientTop, a = n.left + e.clientLeft, - i = hs(e) ? Ss(e) : Go(1); + i = hs(e) ? Ss(e) : Bo(1); return { width: e.clientWidth * i.x, height: e.clientHeight * i.y, @@ -23140,15 +23498,15 @@ return ts(r) } - function Ts(e, t) { + function Cs(e, t) { return hs(e) && "fixed" !== _s(e).position ? t ? t(e) : e.offsetParent : null } - function Rs(e, t) { + function Ts(e, t) { let n = cs(e); if (!hs(e)) return n; - let r = Ts(e, t); - for (; r && ["table", "td", "th"].includes(ls(r)) && "static" === _s(r).position;) r = Ts(r, t); + let r = Cs(e, t); + for (; r && ["table", "td", "th"].includes(ls(r)) && "static" === _s(r).position;) r = Cs(r, t); return r && ("html" === ls(r) || "body" === ls(r) && "static" === _s(r).position && !gs(r)) ? n : r || function(e) { let t = xs(e); for (; hs(t) && !ys(t);) { @@ -23170,8 +23528,8 @@ scrollLeft: 0, scrollTop: 0 }, - s = Go(1), - l = Go(0); + s = Bo(1), + l = Bo(0); if ((a || !a && "fixed" !== r) && (("body" !== ls(n) || ms(i)) && (o = bs(n)), hs(n))) { let e = Is(n); s = Ss(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop @@ -23209,9 +23567,9 @@ } return t.set(e, r), r }(t, this._c) : [].concat(n), o = [...i, r], s = o[0], l = o.reduce(((e, n) => { - let r = Cs(t, n, a); + let r = Rs(t, n, a); return e.top = Uo(r.top, e.top), e.right = Fo(r.right, e.right), e.bottom = Fo(r.bottom, e.bottom), e.left = Uo(r.left, e.left), e - }), Cs(t, s, a)); + }), Rs(t, s, a)); return { width: l.right - l.left, height: l.bottom - l.top, @@ -23219,13 +23577,13 @@ y: l.top } }, - getOffsetParent: Rs, + getOffsetParent: Ts, getElementRects: async function(e) { let { reference: t, floating: n, strategy: r - } = e, a = this.getOffsetParent || Rs, i = this.getDimensions; + } = e, a = this.getOffsetParent || Ts, i = this.getDimensions; return { reference: function(e, t, n) { let r = hs(t), @@ -23236,7 +23594,7 @@ scrollLeft: 0, scrollTop: 0 }, - l = Go(0); + l = Bo(0); if (r || !r && !i) if (("body" !== ls(t) || ms(a)) && (s = bs(t)), r) { let e = Is(t, !0, i, t); @@ -23301,7 +23659,7 @@ } = e.getBoundingClientRect(); if (s || t(), !d || !p) return; let h = { - rootMargin: -Bo(u) + "px " + -Bo(a.clientWidth - (c + d)) + "px " + -Bo(a.clientHeight - (u + p)) + "px " + -Bo(c) + "px", + rootMargin: -Go(u) + "px " + -Go(a.clientWidth - (c + d)) + "px " + -Go(a.clientHeight - (u + p)) + "px " + -Go(c) + "px", threshold: Uo(0, Fo(1, l)) || 1 }, f = !0; @@ -23345,7 +23703,7 @@ })), p && p(), f && f.disconnect(), f = null, c && cancelAnimationFrame(a) } } - let js = (e, t, n) => { + let Ls = (e, t, n) => { let r = new Map, a = { platform: Ds, @@ -23419,7 +23777,7 @@ platform: i }) }, - Ls = e => ({ + js = e => ({ name: "arrow", options: e, fn(t) { @@ -23481,10 +23839,10 @@ t.current = e })), t } - var Bs = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', - Gs = "undefined" == typeof Element, - qs = Gs ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, - $s = !Gs && Element.prototype.getRootNode ? function(e) { + var Gs = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', + Bs = "undefined" == typeof Element, + qs = Bs ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, + $s = !Bs && Element.prototype.getRootNode ? function(e) { return e.getRootNode() } : function(e) { return e.ownerDocument @@ -23500,7 +23858,7 @@ candidates: l }) } else { - qs.call(o, Bs) && r.filter(o) && (n || !t.includes(o)) && a.push(o); + qs.call(o, Gs) && r.filter(o) && (n || !t.includes(o)) && a.push(o); var c = o.shadowRoot || "function" == typeof r.getShadowRoot && r.getShadowRoot(o), u = !r.shadowRootFilter || r.shadowRootFilter(o); if (c && u) { @@ -23548,9 +23906,9 @@ e = i } if (function(e) { - for (var t, n, r = $s(e).host, a = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !a && r;) a = !(null === (n = r = $s(r).host) || void 0 === n || !n.ownerDocument.contains(r)); - return a - }(e)) return !e.getClientRects().length; + for (var t, n, r = $s(e).host, a = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !a && r;) a = !(null === (n = r = $s(r).host) || void 0 === n || !n.ownerDocument.contains(r)); + return a + }(e)) return !e.getClientRects().length; if ("legacy-full" !== n) return !0 } return !1 @@ -23621,8 +23979,8 @@ getShadowRoot: t.getShadowRoot, shadowRootFilter: Js }) : function(e, t, n) { - var r = Array.prototype.slice.apply(e.querySelectorAll(Bs)); - return t && qs.call(e, Bs) && r.unshift(e), r.filter(n) + var r = Array.prototype.slice.apply(e.querySelectorAll(Gs)); + return t && qs.call(e, Gs) && r.unshift(e), r.filter(n) }(e, t.includeContainer, Xs.bind(null, t))) }; @@ -23896,16 +24254,16 @@ } let Il = Oe.createContext(null), Al = Oe.createContext(null), - Cl = () => { + Rl = () => { var e; return (null == (e = Oe.useContext(Il)) ? void 0 : e.id) || null }, - Tl = () => Oe.useContext(Al); + Cl = () => Oe.useContext(Al); - function Rl(e) { + function Tl(e) { let t = Sl(), - n = Tl(), - r = Cl(), + n = Cl(), + r = Rl(), a = e || r; return gl((() => { let e = { @@ -23922,7 +24280,7 @@ let { children: t, id: n - } = e, r = Cl(); + } = e, r = Rl(); return Oe.createElement(Il.Provider, { value: Oe.useMemo((() => ({ id: n, @@ -23949,20 +24307,20 @@ }, t) } - function jl(e) { + function Ll(e) { return "data-floating-ui-" + e } - function Ll(e) { + function jl(e) { let t = (0, Oe.useRef)(e); return gl((() => { t.current = e })), t } - let Ml = jl("safe-polygon"); + let Ml = Ll("safe-polygon"); function zl(e, t, n) { - return n && !Ro(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] + return n && !To(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] } function Fl(e, t) { @@ -23982,8 +24340,8 @@ } let Ul = new WeakMap, Vl = new WeakSet, - Bl = {}, - Gl = 0, + Gl = {}, + Bl = 0, ql = e => e && (e.host || ql(e.parentNode)); function $l(e, t, n) { @@ -24000,11 +24358,11 @@ s = new Set, l = new Set(o), c = []; - Bl[a] || (Bl[a] = new WeakMap); - let u = Bl[a]; + Gl[a] || (Gl[a] = new WeakMap); + let u = Gl[a]; return o.forEach((function e(t) { - t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode)) - })), + t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode)) + })), function e(t) { !t || l.has(t) || Array.prototype.forEach.call(t.children, (t => { if (s.has(t)) e(t); @@ -24016,13 +24374,13 @@ Ul.set(t, r), u.set(t, o), c.push(t), 1 === r && n && Vl.add(t), 1 === o && t.setAttribute(a, ""), !n && i && t.setAttribute(i, "true") } })) - }(t), s.clear(), Gl++, () => { - c.forEach((e => { - let t = (Ul.get(e) || 0) - 1, - n = (u.get(e) || 0) - 1; - Ul.set(e, t), u.set(e, n), t || (!Vl.has(e) && i && e.removeAttribute(i), Vl.delete(e)), n || e.removeAttribute(a) - })), --Gl || (Ul = new WeakMap, Ul = new WeakMap, Vl = new WeakSet, Bl = {}) - } + }(t), s.clear(), Bl++, () => { + c.forEach((e => { + let t = (Ul.get(e) || 0) - 1, + n = (u.get(e) || 0) - 1; + Ul.set(e, t), u.set(e, n), t || (!Vl.has(e) && i && e.removeAttribute(i), Vl.delete(e)), n || e.removeAttribute(a) + })), --Bl || (Ul = new WeakMap, Ul = new WeakMap, Vl = new WeakSet, Gl = {}) + } }(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n) } let Wl = () => ({ @@ -24077,7 +24435,7 @@ tabIndex: 0, role: n, "aria-hidden": !n || void 0, - [jl("focus-guard")]: "", + [Ll("focus-guard")]: "", style: Zl }; return Oe.createElement("span", xl({}, e, a)) @@ -24110,7 +24468,7 @@ root: t, portalContext: n, uniqueId: r - } = s, i = e ? document.getElementById(e) : null, o = jl("portal"); + } = s, i = e ? document.getElementById(e) : null, o = Ll("portal"); if (i) { let e = document.createElement("div"); e.id = r, e.setAttribute(o, ""), i.appendChild(e), a(e) @@ -24171,7 +24529,7 @@ }), p && i && Oe.createElement("span", { "aria-owns": i.id, style: Zl - }), i && (0, La.createPortal)(t, i), p && i && Oe.createElement(Jl, { + }), i && (0, ja.createPortal)(t, i), p && i && Oe.createElement(Jl, { "data-type": "outside", ref: c, onFocus: e => { @@ -24218,14 +24576,14 @@ domReference: v, floating: y } - } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && Lo(v) && _, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || i, k = Ll(a), E = Ll(o), S = Ll(s), O = Tl(), P = nc(), I = Oe.useRef(null), A = Oe.useRef(null), C = Oe.useRef(!1), T = Oe.useRef(null), R = Oe.useRef(!1), D = null != P, N = Oe.useCallback((function(e) { + } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && jo(v) && _, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || i, k = jl(a), E = jl(o), S = jl(s), O = Cl(), P = nc(), I = Oe.useRef(null), A = Oe.useRef(null), R = Oe.useRef(!1), C = Oe.useRef(null), T = Oe.useRef(!1), D = null != P, N = Oe.useCallback((function(e) { return void 0 === e && (e = y), e ? tl(e, Wl()) : [] - }), [y]), j = Oe.useCallback((e => { + }), [y]), L = Oe.useCallback((e => { let t = N(e); return k.current.map((e => v && "reference" === e ? v : y && "floating" === e ? y : t)).filter(Boolean).flat() }), [v, y, k, N]); - function L(e) { + function j(e) { return !r && c && x ? Oe.createElement(rc, { ref: "start" === e ? I : A, onClick: e => f(!1, e.nativeEvent) @@ -24237,8 +24595,8 @@ function e(e) { if ("Tab" === e.key) { So(y, Eo(Do(y))) && 0 === N().length && !b && Mo(e); - let t = j(), - n = jo(e); + let t = L(), + n = Lo(e); "reference" === k.current[0] && n === v && (Mo(e), e.shiftKey ? ml(t[t.length - 1]) : ml(t[1])), "floating" === k.current[1] && n === y && e.shiftKey && (Mo(e), ml(t[0])) } } @@ -24246,21 +24604,21 @@ return t.addEventListener("keydown", e), () => { t.removeEventListener("keydown", e) } - }), [r, v, y, x, k, p, b, N, j]), Oe.useEffect((() => { + }), [r, v, y, x, k, p, b, N, L]), Oe.useEffect((() => { if (!r && u && y && wo(v)) return v.addEventListener("focusout", t), v.addEventListener("pointerdown", e), x || y.addEventListener("focusout", t), () => { v.removeEventListener("focusout", t), v.removeEventListener("pointerdown", e), x || y.removeEventListener("focusout", t) }; function e() { - R.current = !0, setTimeout((() => { - R.current = !1 + T.current = !0, setTimeout((() => { + T.current = !1 })) } function t(e) { let t = e.relatedTarget; queueMicrotask((() => { - let n = !(So(v, t) || So(y, t) || So(t, y) || So(null == P ? void 0 : P.portalNode, t) || null != t && t.hasAttribute(jl("focus-guard")) || O && (Fl(O.nodesRef.current, h).find((e => { + let n = !(So(v, t) || So(y, t) || So(t, y) || So(null == P ? void 0 : P.portalNode, t) || null != t && t.hasAttribute(Ll("focus-guard")) || O && (Fl(O.nodesRef.current, h).find((e => { var n, r; return So(null == (n = e.context) ? void 0 : n.elements.floating, t) || So(null == (r = e.context) ? void 0 : r.elements.domReference, t) })) || function(e, t) { @@ -24276,13 +24634,13 @@ var n, r; return (null == (n = e.context) ? void 0 : n.elements.floating) === t || (null == (r = e.context) ? void 0 : r.elements.domReference) === t })))); - t && n && !R.current && t !== T.current && (C.current = !0, f(!1, e)) + t && n && !T.current && t !== C.current && (R.current = !0, f(!1, e)) })) } }), [r, v, y, x, h, O, P, f, u]), Oe.useEffect((() => { var e; if (r) return; - let t = Array.from((null == P || null == (e = P.portalNode) ? void 0 : e.querySelectorAll("[" + jl("portal") + "]")) || []); + let t = Array.from((null == P || null == (e = P.portalNode) ? void 0 : e.querySelectorAll("[" + Ll("portal") + "]")) || []); if (y) { let e = [y, ...t, I.current, A.current, k.current.includes("reference") || b ? v : null].filter((e => null != e)), n = l || b ? $l(e, w, !w) : $l(e); @@ -24294,7 +24652,7 @@ if (r || !y) return; let e = Eo(Do(y)); queueMicrotask((() => { - let t = j(y), + let t = L(y), n = E.current, r = ("number" == typeof n ? t[n] : n.current) || y, a = So(y, e); @@ -24302,7 +24660,7 @@ preventScroll: r === y }) })) - }), [r, d, y, _, j, E]), gl((() => { + }), [r, d, y, _, L, E]), gl((() => { if (r || !y) return; let e = !1, t = Do(y), @@ -24315,16 +24673,16 @@ event: r, nested: a } = t; - "escape-key" === n && p.domReference.current && (T.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (C.current = !0), "outside-press" === n && (a ? (C.current = !1, e = !0) : C.current = !(Po(r) || Io(r))) + "escape-key" === n && p.domReference.current && (C.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (R.current = !0), "outside-press" === n && (a ? (R.current = !1, e = !0) : R.current = !(Po(r) || Io(r))) } - return T.current = n, m.on("openchange", i), () => { + return C.current = n, m.on("openchange", i), () => { m.off("openchange", i); let r = Eo(t), o = So(y, r) || O && Fl(O.nodesRef.current, h).some((e => { var t; return So(null == (t = e.context) ? void 0 : t.elements.floating, r) })); - (o || a.openEvent && ["click", "mousedown"].includes(a.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), S.current && wo(T.current) && !C.current && (n === r || r === t.body || o) && ml(T.current, { + (o || a.openEvent && ["click", "mousedown"].includes(a.openEvent.type)) && p.domReference.current && (C.current = p.domReference.current), S.current && wo(C.current) && !R.current && (n === r || r === t.body || o) && ml(C.current, { cancelPrevious: !1, preventScroll: e }) @@ -24361,10 +24719,10 @@ ref: null == P ? void 0 : P.beforeInsideRef, onFocus: e => { if (x) { - let e = j(); + let e = L(); ml("reference" === a[0] ? e[0] : e[e.length - 1]) } else if (null != P && P.preserveTabOrder && P.portalNode) - if (C.current = !1, Ql(e, P.portalNode)) { + if (R.current = !1, Ql(e, P.portalNode)) { let e = Yl() || v; null == e || e.focus() } else { @@ -24372,13 +24730,13 @@ null == (t = P.beforeOutsideRef.current) || t.focus() } } - }), !b && L("start"), n, L("end"), M && Oe.createElement(Jl, { + }), !b && j("start"), n, j("end"), M && Oe.createElement(Jl, { "data-type": "inside", ref: null == P ? void 0 : P.afterInsideRef, onFocus: e => { - if (x) ml(j()[0]); + if (x) ml(L()[0]); else if (null != P && P.preserveTabOrder && P.portalNode) - if (u && (C.current = !0), Ql(e, P.portalNode)) { + if (u && (R.current = !0), Ql(e, P.portalNode)) { let e = Kl() || v; null == e || e.focus() } else { @@ -24466,16 +24824,16 @@ d.current = e.pointerType }, onMouseDown(e) { - 0 !== e.button || Ro(d.current, !0) && c || "click" === s || (!n || !l || a.current.openEvent && "mousedown" !== a.current.openEvent.type ? (e.preventDefault(), r(!0, e.nativeEvent, "click")) : r(!1, e.nativeEvent, "click")) + 0 !== e.button || To(d.current, !0) && c || "click" === s || (!n || !l || a.current.openEvent && "mousedown" !== a.current.openEvent.type ? (e.preventDefault(), r(!0, e.nativeEvent, "click")) : r(!1, e.nativeEvent, "click")) }, onClick(e) { - "mousedown" === s && d.current ? d.current = void 0 : Ro(d.current, !0) && c || (!n || !l || a.current.openEvent && "click" !== a.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) + "mousedown" === s && d.current ? d.current = void 0 : To(d.current, !0) && c || (!n || !l || a.current.openEvent && "click" !== a.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) }, onKeyDown(e) { - d.current = void 0, e.defaultPrevented || !u || sc(e) || (" " !== e.key || Lo(i) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) + d.current = void 0, e.defaultPrevented || !u || sc(e) || (" " !== e.key || jo(i) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) }, onKeyUp(e) { - !e.defaultPrevented && u && !sc(e) && !Lo(i) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) + !e.defaultPrevented && u && !sc(e) && !jo(i) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) } } } : {}), [o, a, s, c, u, i, l, n, r]) @@ -24520,7 +24878,7 @@ ancestorScroll: m = !1, bubbles: g, capture: v - } = t, y = Tl(), _ = al("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Oe.useRef(!1), w = Oe.useRef(!1), { + } = t, y = Cl(), _ = al("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Oe.useRef(!1), w = Oe.useRef(!1), { escapeKey: k, outsidePress: E } = dc(g), { @@ -24532,25 +24890,25 @@ if (!k && (e.stopPropagation(), t.length > 0)) { let e = !0; if (t.forEach((t => { - var n; - null == (n = t.context) || !n.open || t.context.dataRef.current.__escapeKeyBubbles || (e = !1) - })), !e) return + var n; + null == (n = t.context) || !n.open || t.context.dataRef.current.__escapeKeyBubbles || (e = !1) + })), !e) return } r(!1, "nativeEvent" in e ? e.nativeEvent : e, "escape-key") })), I = al((e => { var t; let n = () => { var t; - P(e), null == (t = jo(e)) || t.removeEventListener("keydown", n) + P(e), null == (t = Lo(e)) || t.removeEventListener("keydown", n) }; - null == (t = jo(e)) || t.addEventListener("keydown", n) + null == (t = Lo(e)) || t.addEventListener("keydown", n) })), A = al((e => { let t = x.current; x.current = !1; let n = w.current; if (w.current = !1, "click" === p && n || t || "function" == typeof b && !b(e)) return; - let i = jo(e), - l = "[" + jl("inert") + "]", + let i = Lo(e), + l = "[" + Ll("inert") + "]", c = Do(s).querySelectorAll(l), u = xo(i) ? i : null; for (; u && !["html", "body", "#document"].includes(yo(u));) { @@ -24582,18 +24940,18 @@ if (h.length > 0) { let e = !0; if (h.forEach((t => { - var n; - null == (n = t.context) || !n.open || t.context.dataRef.current.__outsidePressBubbles || (e = !1) - })), !e) return + var n; + null == (n = t.context) || !n.open || t.context.dataRef.current.__outsidePressBubbles || (e = !1) + })), !e) return } r(!1, e, "outside-press") - })), C = al((e => { + })), R = al((e => { var t; let n = () => { var t; - A(e), null == (t = jo(e)) || t.removeEventListener(p, n) + A(e), null == (t = Lo(e)) || t.removeEventListener(p, n) }; - null == (t = jo(e)) || t.addEventListener(p, n) + null == (t = Lo(e)) || t.addEventListener(p, n) })); return Oe.useEffect((() => { if (!n || !c) return; @@ -24603,7 +24961,7 @@ } l.current.__escapeKeyBubbles = k, l.current.__outsidePressBubbles = E; let t = Do(s); - u && t.addEventListener("keydown", S ? I : P, S), b && t.addEventListener(p, O ? C : A, O); + u && t.addEventListener("keydown", S ? I : P, S), b && t.addEventListener(p, O ? R : A, O); let a = []; return m && (xo(o) && (a = ws(o)), xo(s) && (a = a.concat(ws(s))), !xo(i) && i && i.contextElement && (a = a.concat(ws(i.contextElement)))), (a = a.filter((e => { var n; @@ -24613,11 +24971,11 @@ passive: !0 }) })), () => { - u && t.removeEventListener("keydown", S ? I : P, S), b && t.removeEventListener(p, O ? C : A, O), a.forEach((t => { + u && t.removeEventListener("keydown", S ? I : P, S), b && t.removeEventListener(p, O ? R : A, O), a.forEach((t => { t.removeEventListener("scroll", e) })) } - }), [l, s, o, i, u, b, p, n, r, m, c, k, E, P, S, I, A, O, C]), Oe.useEffect((() => { + }), [l, s, o, i, u, b, p, n, r, m, c, k, E, P, S, I, A, O, R]), Oe.useEffect((() => { x.current = !1 }), [b, p]), Oe.useMemo((() => c ? { reference: { @@ -24683,12 +25041,12 @@ strategy: n, middleware: p }; - O.current && (e.platform = O.current), js(w.current, k.current, e).then((e => { + O.current && (e.platform = O.current), Ls(w.current, k.current, e).then((e => { let t = { ...e, isPositioned: !0 }; - I.current && !zs(E.current, t) && (E.current = t, La.flushSync((() => { + I.current && !zs(E.current, t) && (E.current = t, ja.flushSync((() => { d(t) }))) })) @@ -24714,23 +25072,23 @@ setReference: y, setFloating: _ })), [y, _]), - C = Oe.useMemo((() => ({ + R = Oe.useMemo((() => ({ reference: b, floating: x })), [b, x]), - T = Oe.useMemo((() => { + C = Oe.useMemo((() => { let e = { position: n, left: 0, top: 0 }; - if (!C.floating) return e; - let t = Us(C.floating, u.x), - r = Us(C.floating, u.y); + if (!R.floating) return e; + let t = Us(R.floating, u.x), + r = Us(R.floating, u.y); return s ? { ...e, transform: "translate(" + t + "px, " + r + "px)", - ...Fs(C.floating) >= 1.5 && { + ...Fs(R.floating) >= 1.5 && { willChange: "transform" } } : { @@ -24738,15 +25096,15 @@ left: t, top: r } - }), [n, s, C.floating, u.x, u.y]); + }), [n, s, R.floating, u.x, u.y]); return Oe.useMemo((() => ({ ...u, update: P, refs: A, - elements: C, - floatingStyles: T - })), [u, P, A, C, T]) - }(e), c = Tl(), u = null != Cl(), d = al(((e, t, n) => { + elements: R, + floatingStyles: C + })), [u, P, A, R, C]) + }(e), c = Cl(), u = null != Rl(), d = al(((e, t, n) => { e && (h.current.openEvent = t), f.emit("openchange", { open: e, event: t, @@ -24874,15 +25232,15 @@ cols: w = 1, scrollItemIntoView: k = !0, virtualItemRef: E - } = t, S = Cl(), O = Tl(), P = al(c), I = Oe.useRef(v), A = Oe.useRef(null != d ? d : -1), C = Oe.useRef(null), T = Oe.useRef(!0), R = Oe.useRef(P), D = Oe.useRef(!!o), N = Oe.useRef(!1), j = Oe.useRef(!1), L = Ll(b), M = Ll(n), z = Ll(k), [F, U] = Oe.useState(), [V, B] = Oe.useState(), G = al((function(e, t, n) { + } = t, S = Rl(), O = Cl(), P = al(c), I = Oe.useRef(v), A = Oe.useRef(null != d ? d : -1), R = Oe.useRef(null), C = Oe.useRef(!0), T = Oe.useRef(P), D = Oe.useRef(!!o), N = Oe.useRef(!1), L = Oe.useRef(!1), j = jl(b), M = jl(n), z = jl(k), [F, U] = Oe.useState(), [V, G] = Oe.useState(), B = al((function(e, t, n) { void 0 === n && (n = !1); let r = e.current[t.current]; r && (g ? (U(r.id), null == O || O.events.emit("virtualfocus", r), E && (E.current = r)) : ml(r, { preventScroll: !0, - sync: !(!To() || !Ao()) && (gc || N.current) + sync: !(!Co() || !Ao()) && (gc || N.current) }), requestAnimationFrame((() => { let e = z.current; - e && r && (n || !T.current) && (null == r.scrollIntoView || r.scrollIntoView("boolean" == typeof e ? { + e && r && (n || !C.current) && (null == r.scrollIntoView || r.scrollIntoView("boolean" == typeof e ? { block: "nearest", inline: "nearest" } : e)) @@ -24895,11 +25253,11 @@ } }) }), []), gl((() => { - u && (n && o ? I.current && null != d && (j.current = !0, P(d)) : D.current && (A.current = -1, R.current(null))) + u && (n && o ? I.current && null != d && (L.current = !0, P(d)) : D.current && (A.current = -1, T.current(null))) }), [u, n, o, d, P]), gl((() => { if (u && n && o) if (null == l) { - if (N.current = !1, null == d && (D.current && (A.current = -1, G(s, A)), !D.current && I.current && (null != C.current || !0 === I.current && null == C.current))) { + if (N.current = !1, null == d && (D.current && (A.current = -1, B(s, A)), !D.current && I.current && (null != R.current || !0 === I.current && null == R.current))) { let e = 0, t = () => { if (null == s.current[0]) { @@ -24907,19 +25265,19 @@ (e ? requestAnimationFrame : queueMicrotask)(t) } e++ - } else A.current = null == C.current || _c(C.current, x, m) || f ? dl(s, L.current) : pl(s, L.current), C.current = null, P(A.current) + } else A.current = null == R.current || _c(R.current, x, m) || f ? dl(s, j.current) : pl(s, j.current), R.current = null, P(A.current) }; t() } - } else ul(s, l) || (A.current = l, G(s, A, j.current), j.current = !1) - }), [u, n, o, l, d, f, s, x, m, P, G, L]), gl((() => { + } else ul(s, l) || (A.current = l, B(s, A, L.current), L.current = !1) + }), [u, n, o, l, d, f, s, x, m, P, B, j]), gl((() => { var e, t; if (!u || o || !O || g || !D.current) return; let n = O.nodesRef.current, r = null == (e = n.find((e => e.id === S))) || null == (t = e.context) ? void 0 : t.elements.floating, a = Eo(Do(o)), i = n.some((e => e.context && So(e.context.elements.floating, a))); - r && !i && T.current && r.focus({ + r && !i && C.current && r.focus({ preventScroll: !0 }) }), [u, o, O, S, g]), gl((() => { @@ -24928,12 +25286,12 @@ }; function e(e) { - B(e.id), E && (E.current = e) + G(e.id), E && (E.current = e) } }), [u, O, g, S, E]), gl((() => { - R.current = P, D.current = !!o + T.current = P, D.current = !!o })), gl((() => { - n || (C.current = null) + n || (R.current = null) }), [n]); let q = null != l, $ = Oe.useMemo((() => { @@ -24941,7 +25299,7 @@ if (!n) return; let t = s.current.indexOf(e); - 1 !== t && P(t) } - return { + let t = { onFocus(t) { let { currentTarget: n @@ -24967,100 +25325,101 @@ let { pointerType: t } = e; - T.current && "touch" !== t && (A.current = -1, G(s, A), P(null), g || ml(a.floating.current, { + C.current && "touch" !== t && (A.current = -1, B(s, A), P(null), g || ml(a.floating.current, { preventScroll: !0 })) } } - } - }), [n, a, G, y, s, P, g]); + }; + return t + }), [n, a, B, y, s, P, g]); return Oe.useMemo((() => { if (!u) return {}; - let e = L.current; + let e = j.current; function t(t) { - if (T.current = !1, N.current = !0, !M.current && t.currentTarget === a.floating.current) return; + if (C.current = !1, N.current = !0, !M.current && t.currentTarget === a.floating.current) return; if (f && bc(t.key, x, m)) return Mo(t), r(!1, t.nativeEvent, "list-navigation"), void(wo(i) && !g && i.focus()); let o = A.current, l = dl(s, e), c = pl(s, e); if ("Home" === t.key && (Mo(t), A.current = l, P(A.current)), "End" === t.key && (Mo(t), A.current = c, P(A.current)), (!(w > 1) || (A.current = function(e, t) { - let { - event: n, - orientation: r, - loop: a, - cols: i, + let { + event: n, + orientation: r, + loop: a, + cols: i, + disabledIndices: o, + minIndex: s, + maxIndex: l, + prevIndex: c, + stopEvent: u = !1 + } = t, d = c; + if (n.key === il) { + if (u && Mo(n), -1 === c) d = l; + else if (d = hl(e, { + startingIndex: d, + amount: i, + decrement: !0, + disabledIndices: o + }), a && (c - i < s || d < 0)) { + let e = c % i, + t = l % i, + n = l - (t - e); + d = t === e ? l : t > e ? n : n - i + } + ul(e, d) && (d = c) + } + if (n.key === ol && (u && Mo(n), -1 === c ? d = s : (d = hl(e, { + startingIndex: c, + amount: i, + disabledIndices: o + }), a && c + i > l && (d = hl(e, { + startingIndex: c % i - i, + amount: i, + disabledIndices: o + }))), ul(e, d) && (d = c)), "both" === r) { + let t = zo(c / i); + n.key === ll && (u && Mo(n), c % i != i - 1 ? (d = hl(e, { + startingIndex: c, + disabledIndices: o + }), a && cl(d, i, t) && (d = hl(e, { + startingIndex: c - c % i - 1, + disabledIndices: o + }))) : a && (d = hl(e, { + startingIndex: c - c % i - 1, + disabledIndices: o + })), cl(d, i, t) && (d = c)), n.key === sl && (u && Mo(n), c % i != 0 ? (d = hl(e, { + startingIndex: c, disabledIndices: o, - minIndex: s, - maxIndex: l, - prevIndex: c, - stopEvent: u = !1 - } = t, d = c; - if (n.key === il) { - if (u && Mo(n), -1 === c) d = l; - else if (d = hl(e, { - startingIndex: d, - amount: i, - decrement: !0, - disabledIndices: o - }), a && (c - i < s || d < 0)) { - let e = c % i, - t = l % i, - n = l - (t - e); - d = t === e ? l : t > e ? n : n - i - } - ul(e, d) && (d = c) - } - if (n.key === ol && (u && Mo(n), -1 === c ? d = s : (d = hl(e, { - startingIndex: c, - amount: i, - disabledIndices: o - }), a && c + i > l && (d = hl(e, { - startingIndex: c % i - i, - amount: i, - disabledIndices: o - }))), ul(e, d) && (d = c)), "both" === r) { - let t = zo(c / i); - n.key === ll && (u && Mo(n), c % i != i - 1 ? (d = hl(e, { - startingIndex: c, - disabledIndices: o - }), a && cl(d, i, t) && (d = hl(e, { - startingIndex: c - c % i - 1, - disabledIndices: o - }))) : a && (d = hl(e, { - startingIndex: c - c % i - 1, - disabledIndices: o - })), cl(d, i, t) && (d = c)), n.key === sl && (u && Mo(n), c % i != 0 ? (d = hl(e, { - startingIndex: c, - disabledIndices: o, - decrement: !0 - }), a && cl(d, i, t) && (d = hl(e, { - startingIndex: c + (i - c % i), - decrement: !0, - disabledIndices: o - }))) : a && (d = hl(e, { - startingIndex: c + (i - c % i), - decrement: !0, - disabledIndices: o - })), cl(d, i, t) && (d = c)); - let r = zo(l / i) === t; - ul(e, d) && (d = a && r ? n.key === sl ? l : hl(e, { - startingIndex: c - c % i - 1, - disabledIndices: o - }) : c) - } - return d - }(s, { - event: t, - orientation: x, - loop: h, - cols: w, - disabledIndices: e, - minIndex: l, - maxIndex: c, - prevIndex: A.current, - stopEvent: !0 - }), P(A.current), "both" !== x)) && yc(t.key, x)) { + decrement: !0 + }), a && cl(d, i, t) && (d = hl(e, { + startingIndex: c + (i - c % i), + decrement: !0, + disabledIndices: o + }))) : a && (d = hl(e, { + startingIndex: c + (i - c % i), + decrement: !0, + disabledIndices: o + })), cl(d, i, t) && (d = c)); + let r = zo(l / i) === t; + ul(e, d) && (d = a && r ? n.key === sl ? l : hl(e, { + startingIndex: c - c % i - 1, + disabledIndices: o + }) : c) + } + return d + }(s, { + event: t, + orientation: x, + loop: h, + cols: w, + disabledIndices: e, + minIndex: l, + maxIndex: c, + prevIndex: A.current, + stopEvent: !0 + }), P(A.current), "both" !== x)) && yc(t.key, x)) { if (Mo(t), n && !g && Eo(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = _c(t.key, x, m) ? l : c, void P(A.current); _c(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : hl(s, { startingIndex: o, @@ -25092,7 +25451,7 @@ ...l, onKeyDown(a) { var i, o, l, u, p, h; - T.current = !1; + C.current = !1; let v = 0 === a.key.indexOf("Arrow"), y = (i = a.key, vc(x, m ? i === sl : i === ll, i === ol)), b = bc(a.key, x, m), @@ -25113,14 +25472,14 @@ if (y || b) { let t = (null == (u = i.context) ? void 0 : u.elements.domReference) === a.currentTarget, n = b && !t ? null == (p = i.context) ? void 0 : p.elements.domReference : y ? c : null; - n && (Mo(a), n.dispatchEvent(e), B(void 0)) + n && (Mo(a), n.dispatchEvent(e), G(void 0)) } if (w && i.context && i.context.open && i.parentId && a.currentTarget !== i.context.elements.domReference) return Mo(a), void(null == (h = i.context.elements.domReference) || h.dispatchEvent(e)) } return t(a) } if (n || _ || !v) { - if (k && (C.current = f && w ? null : a.key), f) return void(y && (Mo(a), n ? (A.current = dl(s, e), P(A.current)) : r(!0, a.nativeEvent, "list-navigation"))); + if (k && (R.current = f && w ? null : a.key), f) return void(y && (Mo(a), n ? (A.current = dl(s, e), P(A.current)) : r(!0, a.nativeEvent, "list-navigation"))); w && (null != d && (A.current = d), Mo(a), !n && _ ? r(!0, a.nativeEvent, "list-navigation") : t(a), n && P(A.current)) } }, @@ -25138,12 +25497,12 @@ ...l, onKeyDown: t, onPointerMove() { - T.current = !0 + C.current = !0 } }, item: $ } - }), [i, a, F, V, L, M, s, u, x, m, g, n, q, f, d, _, p, w, h, v, P, r, $, O, E]) + }), [i, a, F, V, j, M, s, u, x, m, g, n, q, f, d, _, p, w, h, v, P, r, $, O, E]) } function wc(e, t) { @@ -25244,7 +25603,7 @@ resetMs: d = 750, ignoreKeys: p = [], selectedIndex: h = null - } = t, f = Oe.useRef(), m = Oe.useRef(""), g = Oe.useRef(null != (n = null != h ? h : o) ? n : -1), v = Oe.useRef(null), y = al(s), _ = al(l), b = Ll(u), x = Ll(p); + } = t, f = Oe.useRef(), m = Oe.useRef(""), g = Oe.useRef(null != (n = null != h ? h : o) ? n : -1), v = Oe.useRef(null), y = al(s), _ = al(l), b = jl(u), x = jl(p); return gl((() => { r && (clearTimeout(f.current), v.current = null, m.current = "") }), [r]), gl((() => { @@ -25305,16 +25664,16 @@ large: 16 }, Pc = (0, Oe.forwardRef)((({ - children: e, - className: t, - content: n, - interactive: r = !0, - offset: a = "medium", - placement: i = "top", - style: o, - title: s, - ...l - }, c) => { + children: e, + className: t, + content: n, + interactive: r = !0, + offset: a = "medium", + placement: i = "top", + style: o, + title: s, + ...l + }, c) => { var u; let [d, p] = (0, Oe.useState)(!1), h = (0, Oe.useRef)(null), { floatingStyles: f, @@ -25326,7 +25685,7 @@ onOpenChange: p, placement: i, whileElementsMounted: Ns, - middleware: [Ls({ + middleware: [js({ element: h }), { name: "flip", @@ -25389,9 +25748,9 @@ S.push(E[e[0]], E[e[1]]) } if (O = [...O, { - placement: i, - overflows: S - }], !S.every((e => e <= 0))) { + placement: i, + overflows: S + }], !S.every((e => e <= 0))) { let e = ((null == (n = o.flip) ? void 0 : n.index) || 0) + 1, t = k[e]; if (t) return { @@ -25480,19 +25839,19 @@ }, onFocus(e) { if (u.current) return; - let t = jo(e.nativeEvent); + let t = Lo(e.nativeEvent); if (c && xo(t)) try { - if (Ao() && To()) throw Error(); + if (Ao() && Co()) throw Error(); if (!t.matches(":focus-visible")) return } catch (e) { - if (!p.current && !Lo(t)) return + if (!p.current && !jo(t)) return } r(!0, e.nativeEvent, "focus") }, onBlur(e) { u.current = !1; let t = e.relatedTarget, - n = xo(t) && t.hasAttribute(jl("focus-guard")) && "outside" === t.getAttribute("data-type"); + n = xo(t) && t.hasAttribute(Ll("focus-guard")) && "outside" === t.getAttribute("data-type"); d.current = window.setTimeout((() => { let a = Eo(s ? s.ownerDocument : document); if (t || a !== s) { @@ -25522,7 +25881,7 @@ mouseOnly: p = !1, restMs: h = 0, move: f = !0 - } = t, m = Tl(), g = Cl(), v = Ll(d), y = Ll(u), _ = Oe.useRef(), b = Oe.useRef(), x = Oe.useRef(), w = Oe.useRef(), k = Oe.useRef(!0), E = Oe.useRef(!1), S = Oe.useRef((() => {})), O = Oe.useCallback((() => { + } = t, m = Cl(), g = Rl(), v = jl(d), y = jl(u), _ = Oe.useRef(), b = Oe.useRef(), x = Oe.useRef(), w = Oe.useRef(), k = Oe.useRef(!0), E = Oe.useRef(!1), S = Oe.useRef((() => {})), O = Oe.useCallback((() => { var e; let t = null == (e = a.current.openEvent) ? void 0 : e.type; return (null == t ? void 0 : t.includes("mouse")) && "mousedown" !== t @@ -25575,7 +25934,7 @@ } function i(e) { - if (clearTimeout(b.current), k.current = !1, p && !Ro(_.current) || h > 0 && 0 === zl(y.current, "open")) return; + if (clearTimeout(b.current), k.current = !1, p && !To(_.current) || h > 0 && 0 === zl(y.current, "open")) return; let t = zl(y.current, "open", _.current); t ? b.current = setTimeout((() => { r(!0, e, "hover") @@ -25682,36 +26041,36 @@ let { clientX: g, clientY: v - } = e, y = [g, v], _ = jo(e), b = "mouseleave" === e.type, x = So(d.floating, _), w = So(d.domReference, _), k = d.domReference.getBoundingClientRect(), E = d.floating.getBoundingClientRect(), S = u.split("-")[0], O = r > E.right - E.width / 2, P = c > E.bottom - E.height / 2, I = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height, A = E.width > k.width, C = E.height > k.height, T = (A ? k : E).left, R = (A ? k : E).right, D = (C ? k : E).top, N = (C ? k : E).bottom; + } = e, y = [g, v], _ = Lo(e), b = "mouseleave" === e.type, x = So(d.floating, _), w = So(d.domReference, _), k = d.domReference.getBoundingClientRect(), E = d.floating.getBoundingClientRect(), S = u.split("-")[0], O = r > E.right - E.width / 2, P = c > E.bottom - E.height / 2, I = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height, A = E.width > k.width, R = E.height > k.height, C = (A ? k : E).left, T = (A ? k : E).right, D = (R ? k : E).top, N = (R ? k : E).bottom; if (x && (i = !0, !b)) return; if (w && (i = !1), w && !b) return void(i = !0); if (b && xo(e.relatedTarget) && So(d.floating, e.relatedTarget) || f && Fl(f.nodesRef.current, h).some((e => { - let { - context: t - } = e; - return null == t ? void 0 : t.open - }))) return; + let { + context: t + } = e; + return null == t ? void 0 : t.open + }))) return; if ("top" === S && c >= k.bottom - 1 || "bottom" === S && c <= k.top + 1 || "left" === S && r >= k.right - 1 || "right" === S && r <= k.left + 1) return m(); - let j = []; + let L = []; switch (S) { case "top": - j = [ - [T, k.top + 1], + L = [ + [C, k.top + 1], + [C, E.bottom - 1], [T, E.bottom - 1], - [R, E.bottom - 1], - [R, k.top + 1] + [T, k.top + 1] ]; break; case "bottom": - j = [ - [T, E.top + 1], + L = [ + [C, E.top + 1], + [C, k.bottom - 1], [T, k.bottom - 1], - [R, k.bottom - 1], - [R, E.top + 1] + [T, E.top + 1] ]; break; case "left": - j = [ + L = [ [E.right - 1, N], [E.right - 1, D], [k.left + 1, D], @@ -25719,14 +26078,14 @@ ]; break; case "right": - j = [ + L = [ [k.right - 1, N], [k.right - 1, D], [E.left + 1, D], [E.left + 1, N] ] } - if (!Sc([g, v], j)) { + if (!Sc([g, v], L)) { if (i && !I) return m(); if (!b && a) { let t = function(e, t) { @@ -25764,20 +26123,20 @@ } case "left": return [...[ - [P || C ? E.right - n : E.left, E.top], - [P ? C ? E.right - n : E.left : E.right - n, E.bottom] - ], - [t + n + 1, C ? r + n / 2 : P ? r + 4 * n : r - 4 * n], - [t + n + 1, C ? r - n / 2 : P ? r + 4 * n : r - 4 * n] + [P || R ? E.right - n : E.left, E.top], + [P ? R ? E.right - n : E.left : E.right - n, E.bottom] + ], + [t + n + 1, R ? r + n / 2 : P ? r + 4 * n : r - 4 * n], + [t + n + 1, R ? r - n / 2 : P ? r + 4 * n : r - 4 * n] ]; case "right": { let e = [ - [P || C ? E.left + n : E.right, E.top], - [P ? C ? E.left + n : E.right : E.left + n, E.bottom] + [P || R ? E.left + n : E.right, E.top], + [P ? R ? E.left + n : E.right : E.left + n, E.bottom] ]; return [ - [t - n, C ? r + n / 2 : P ? r + 4 * n : r - 4 * n], - [t - n, C ? r - n / 2 : P ? r + 4 * n : r - 4 * n], ...e + [t - n, R ? r + n / 2 : P ? r + 4 * n : r - 4 * n], + [t - n, R ? r - n / 2 : P ? r + 4 * n : r - 4 * n], ...e ] } } @@ -25832,30 +26191,30 @@ }) })), Ic = (0, Oe.forwardRef)((({ - enabled: e = !0, - children: t, - ...n - }, r) => e ? Ka.jsx(Pc, { + enabled: e = !0, + children: t, + ...n + }, r) => e ? Ka.jsx(Pc, { ref: r, ...n, children: t }) : t)), Ac = mi((({ - as: e = "article", - className: t, - excerpt: n, - external: r, - href: a, - icon: i, - id: o, - image: s, - label: l, - onClick: c, - overlay: u, - subtitle: d, - title: p, - ...h - }, f) => { + as: e = "article", + className: t, + excerpt: n, + external: r, + href: a, + icon: i, + id: o, + image: s, + label: l, + onClick: c, + overlay: u, + subtitle: d, + title: p, + ...h + }, f) => { let m = Pi({ ..."string" == typeof s ? { src: s @@ -25962,14 +26321,14 @@ })] }) })); - za('@layer components{.sol-c-choice{display:inline-flex;gap:var(--sol-size-150);position:relative;transition:opacity var(--sol-motion-250)}.sol-c-choice--disabled{opacity:.2;pointer-events:none}.sol-c-choice__wrapper{--_background:var(--sol-color-surface-0);--_foreground:var(--sol-color-interactive);--_border-width:var(--sol-border-1);display:flex;gap:var(--sol-size-100)}.sol-c-choice__wrapper:hover{--_foreground:var(--sol-color-interactive-hovered)}.sol-c-choice__wrapper:active{--_foreground:var(--sol-color-interactive-pressed)}.sol-c-choice__input{align-items:center;appearance:none;background-color:var(--_background);block-size:var(--sol-size-150);border-radius:var(--sol-radius-4);box-shadow:inset 0 0 0 var(--_border-width) currentColor;color:var(--_foreground);display:flex;flex-shrink:0;inline-size:var(--sol-size-150);justify-content:center;transition-duration:var(--sol-motion-250);transition-property:background-color,box-shadow,color}.sol-c-choice__icon{height:var(--sol-size-100);margin:var(--sol-size-025);pointer-events:none;position:absolute;width:var(--sol-size-100)}.sol-c-choice--checkbox{--sol-focus-offset:0}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:not(:checked),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--_foreground))}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--sol-color-surface-2))}.sol-c-choice--checkbox .sol-c-choice__icon path{stroke:var(--sol-color-interactive);stroke-dasharray:1;stroke-dashoffset:1;transition-duration:var(--sol-motion-250);transition-property:stroke}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--checkbox .sol-c-choice__icon path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke:var(--_success-not-hovering,var(--sol-color-interactive-contrast))}.sol-c-choice--checkbox .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke-dashoffset:0}.sol-c-choice--radio{--sol-focus-offset:0}.sol-c-choice--radio .sol-c-choice__input{border-radius:var(--sol-radius-circle)}.sol-c-choice--radio .sol-c-choice__input:before{background-color:currentColor;border-radius:inherit;content:"";display:block;height:var(--sol-size-075);opacity:0;transform:scale(0);transition-duration:var(--sol-motion-250);transition-property:opacity,transform;width:var(--sol-size-075)}.sol-c-choice--radio .sol-c-choice__input:checked{--_border-width:var(--sol-border-2)}.sol-c-choice--radio .sol-c-choice__input:checked:before{opacity:1;transform:scale(1)}.sol-c-choice--toggle{--_translate:100%}.sol-c-choice--toggle .sol-c-choice__input{border-radius:var(--sol-radius-rounded);inline-size:var(--sol-size-250)}.sol-c-choice--toggle .sol-c-choice__input:checked{background:var(--_foreground)}.sol-c-choice--toggle .sol-c-choice__icon{background:var(--_foreground);border-radius:var(--sol-radius-circle);color:var(--sol-color-interactive-contrast);padding:var(--sol-size-025);transition-duration:var(--sol-motion-250);transition-property:background-color,opacity;transition-timing-function:var(--sol-motion-ease-out)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--toggle .sol-c-choice__icon{transition-property:background-color,opacity,transform}}.sol-c-choice--toggle .sol-c-choice__icon--check{background:var(--sol-color-surface-0);color:var(--sol-color-foreground)}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon{transform:translateX(var(--_translate))}[dir=rtl] .sol-c-choice--toggle{--_translate:-100%}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--cross,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--check{opacity:0}.sol-c-choice__label{user-select:none}.sol-c-choice__success{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}'), za("@layer components{.sol-c-inline-message{--_icon-size:var(--sol-size-100);--_line-height:var(--sol-text-body-xs-line-height)}.sol-c-inline-message a:not([class]){color:inherit;cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-inline-message a:not([class]):hover{text-decoration:none}.sol-c-inline-message__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_line-height) - var(--_icon-size))/2)}}"); - let Cc = mi((({ - children: e, - className: t, - icon: n = ri, - type: r = "informative", - ...a - }, i) => { + za('@layer components{.sol-c-choice{display:inline-flex;gap:var(--sol-size-150);position:relative;transition:opacity var(--sol-motion-250)}.sol-c-choice--disabled{opacity:.2;pointer-events:none}.sol-c-choice__wrapper{--_background:var(--sol-color-surface-0);--_foreground:var(--sol-color-interactive);--_border-width:var(--sol-border-1);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100)}.sol-c-choice__wrapper:hover{--_foreground:var(--sol-color-interactive-hovered)}.sol-c-choice__wrapper:active{--_foreground:var(--sol-color-interactive-pressed)}.sol-c-choice__input{align-items:center;appearance:none;background-color:var(--_background);block-size:var(--sol-size-150);border-radius:var(--sol-radius-4);box-shadow:inset 0 0 0 var(--_border-width) currentColor;color:var(--_foreground);display:flex;flex-shrink:0;inline-size:var(--sol-size-150);justify-content:center;pointer-events:none;transition-duration:var(--sol-motion-250);transition-property:background-color,box-shadow,color;user-select:none}.sol-c-choice__icon{height:var(--sol-size-100);margin:var(--sol-size-025);pointer-events:none;position:absolute;width:var(--sol-size-100)}.sol-c-choice--checkbox{--sol-focus-offset:0}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:not(:checked),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--_foreground))}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--sol-color-surface-2))}.sol-c-choice--checkbox .sol-c-choice__icon path{stroke:var(--sol-color-interactive);stroke-dasharray:1;stroke-dashoffset:1;transition-duration:var(--sol-motion-250);transition-property:stroke}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--checkbox .sol-c-choice__icon path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke:var(--_success-not-hovering,var(--sol-color-interactive-contrast))}.sol-c-choice--checkbox .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke-dashoffset:0}.sol-c-choice--radio{--sol-focus-offset:0}.sol-c-choice--radio .sol-c-choice__input{border-radius:var(--sol-radius-circle)}.sol-c-choice--radio .sol-c-choice__input:before{background-color:currentColor;border-radius:inherit;content:"";display:block;height:var(--sol-size-075);opacity:0;transform:scale(0);transition-duration:var(--sol-motion-250);transition-property:opacity,transform;width:var(--sol-size-075)}.sol-c-choice--radio .sol-c-choice__input:checked{--_border-width:var(--sol-border-2)}.sol-c-choice--radio .sol-c-choice__input:checked:before{opacity:1;transform:scale(1)}.sol-c-choice--toggle{--_translate:100%}.sol-c-choice--toggle .sol-c-choice__input{border-radius:var(--sol-radius-rounded);inline-size:var(--sol-size-250)}.sol-c-choice--toggle .sol-c-choice__input:checked{background:var(--_foreground)}.sol-c-choice--toggle .sol-c-choice__icon{background:var(--_foreground);border-radius:var(--sol-radius-circle);color:var(--sol-color-interactive-contrast);padding:var(--sol-size-025);transition-duration:var(--sol-motion-250);transition-property:background-color,opacity;transition-timing-function:var(--sol-motion-ease-out)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--toggle .sol-c-choice__icon{transition-property:background-color,opacity,transform}}.sol-c-choice--toggle .sol-c-choice__icon--check{background:var(--sol-color-surface-0);color:var(--sol-color-foreground)}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon{transform:translateX(var(--_translate))}[dir=rtl] .sol-c-choice--toggle{--_translate:-100%}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--cross,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--check{opacity:0}.sol-c-choice__label{user-select:none}.sol-c-choice__success{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}'), za("@layer components{.sol-c-inline-message{--_icon-size:var(--sol-size-100);--_line-height:var(--sol-text-body-xs-line-height)}.sol-c-inline-message a:not([class]){color:inherit;cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-inline-message a:not([class]):hover{text-decoration:none}.sol-c-inline-message__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_line-height) - var(--_icon-size))/2)}}"); + let Rc = mi((({ + children: e, + className: t, + icon: n = ri, + type: r = "informative", + ...a + }, i) => { let o = fi("sol-c-inline-message", `sol-u-color-status-${r}`, t); return Ka.jsxs(uo, { className: o, @@ -25985,40 +26344,41 @@ })] }) })), - Tc = (0, Oe.createContext)(null), - Rc = e => (0, Oe.useContext)(Tc)?.getProps(e) ?? e; + Cc = (0, Oe.createContext)(null), + Tc = e => (0, Oe.useContext)(Cc)?.getProps(e) ?? e; za("@layer components{.sol-c-field-group__header{max-inline-size:32.5rem}}"); let Dc = (0, Oe.forwardRef)((({ - "aria-describedby": e, - "aria-labelledby": t, - children: n, - className: r, - description: a, - id: i, - title: o, - ...s - }, l) => { - let c = ki(i), - u = fi("sol-c-field-group", r), - d = (0, Oe.useMemo)((() => { - let t = e ? [e] : []; - return a && t.push(`${c}-description`), t.join(" ") - }), [e, a, c]), + "aria-describedby": e, + "aria-labelledby": t, + children: n, + className: r, + description: a, + id: i, + title: o, + gap: s = "150", + ...l + }, c) => { + let u = ki(i), + d = fi("sol-c-field-group", r), p = (0, Oe.useMemo)((() => { + let t = e ? [e] : []; + return a && t.push(`${u}-description`), t.join(" ") + }), [e, a, u]), + h = (0, Oe.useMemo)((() => { let e = t ? [t] : []; - return o && e.push(`${c}-title`), e.join(" ") - }), [t, c, o]); + return o && e.push(`${u}-title`), e.join(" ") + }), [t, u, o]); return Ka.jsxs(uo, { align: "start", - "aria-describedby": d, - "aria-labelledby": p, - className: u, - gap: "150", - id: c, - ref: l, + "aria-describedby": p, + "aria-labelledby": h, + className: d, + gap: s, + id: u, + ref: c, role: "group", vertical: !0, - ...s, + ...l, children: [(o || a) && Ka.jsxs(uo, { className: "sol-c-field-group__header", gap: "050", @@ -26026,13 +26386,13 @@ children: [o && Ka.jsx(Qi, { className: "sol-c-field-group__title", color: "foreground", - id: c + "-title", + id: u + "-title", variant: "emphasis-s", children: o }), a && Ka.jsx(Qi, { className: "sol-c-field-group__description", color: "foreground-weak", - id: c + "-description", + id: u + "-description", variant: "body-m", children: a })] @@ -26040,25 +26400,25 @@ }) })), Nc = mi((({ - as: e = "div", - className: t, - disabled: n, - required: r, - children: a, - visuallyHiddenLabel: i, - defaultChecked: o, - checked: s, - name: l, - value: c, - onBlur: u, - onChange: d, - onFocus: p, - success: h, - type: f = "checkbox", - inputProps: m = {}, - inputRef: g, - ...v - }, y) => { + as: e = "div", + className: t, + disabled: n, + required: r, + children: a, + visuallyHiddenLabel: i, + defaultChecked: o, + checked: s, + name: l, + value: c, + onBlur: u, + onChange: d, + onFocus: p, + success: h, + type: f = "checkbox", + inputProps: m = {}, + inputRef: g, + ...v + }, y) => { let _ = fi("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${f}`, t); return Ka.jsxs(e, { className: _, @@ -26066,7 +26426,7 @@ ...v, children: [Ka.jsxs("label", { className: "sol-c-choice__wrapper", - children: [(0, Oe.createElement)("input", Rc(vi(m, { + children: [(0, Oe.createElement)("input", Tc(vi(m, { "aria-required": !!r || void 0, checked: s, defaultChecked: o, @@ -26095,7 +26455,7 @@ children: "*" })] })] - }), h && Ka.jsx(Cc, { + }), h && Ka.jsx(Rc, { className: "sol-c-choice__success", icon: Ja, type: "positive", @@ -26103,24 +26463,24 @@ })] }) })), - jc = ({ - condition: e, - children: t, - wrap: n - }) => e ? (0, Oe.cloneElement)(n(t)) : t; - za('@layer components{.sol-c-dialog{--_overlay-duration:var(--sol-motion-150);--_element-duration:var(--sol-motion-250);display:flex;flex-direction:column;padding:var(--sol-size-150);transition:opacity var(--sol-motion-ease-out);z-index:var(--sol-z-dialog)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=open]:before{transition-duration:var(--_overlay-duration)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=initial]:before{opacity:0}.sol-c-dialog[data-sol-status=close]:before{transition-delay:calc(var(--_element-duration) - var(--_overlay-duration))}.sol-c-dialog--overlay:before{background:var(--sol-color-overlay);content:"";display:block;inset:0;position:absolute}.sol-c-dialog__element{background:var(--sol-color-surface-1);border-radius:var(--sol-radius-8);box-shadow:var(--sol-shadow-200);color:var(--sol-color-foreground);display:flex;flex-direction:column;flex-shrink:1;inline-size:100%;margin:auto;max-inline-size:35rem;min-block-size:14.5rem;transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog__element:focus,.sol-c-dialog__element:focus-visible{outline:none}.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{transform:translateY(var(--sol-size-200))}}.sol-c-dialog[data-sol-status=open] .sol-c-dialog__element{opacity:1;transform:translateY(0);transition-delay:var(--_overlay-duration);transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{opacity:0;transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{transform:translateY(calc(var(--sol-size-200)*-1))}}.sol-c-dialog__header{background:var(--sol-color-surface-2);border-start-end-radius:inherit;border-start-start-radius:inherit;flex:0;padding:var(--sol-size-100);padding-inline-start:var(--sol-size-150)}.sol-c-dialog__close{align-self:flex-start;margin-inline-start:auto}.sol-c-dialog__wrapper{display:flex;flex:1;overflow:hidden;position:relative}.sol-c-dialog__wrapper:after,.sol-c-dialog__wrapper:before{background:linear-gradient(var(--sol-color-primary-1),#0000);block-size:var(--sol-size-150);content:"";display:block;inline-size:100%;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-dialog__wrapper:before{inset-block-start:0}.sol-c-dialog__wrapper:after{inset-block-end:0;transform:scale(-1)}.sol-c-dialog__wrapper[data-sol-scroll-end=false]:after,.sol-c-dialog__wrapper[data-sol-scroll-start=false]:before{opacity:.6}.sol-c-dialog__content{flex:1;overflow:auto;padding:var(--sol-size-150);position:relative;scroll-padding-block:var(--sol-size-150);z-index:1}.sol-c-dialog--has-actions .sol-c-dialog__content{padding-block-end:0}.sol-c-dialog:not(.sol-c-dialog--has-actions) .sol-c-dialog__content{border-end-end-radius:inherit;border-end-start-radius:inherit}.sol-c-dialog__actions{flex:0;padding:var(--sol-size-150)}}'); - let Lc = (0, Oe.createContext)(null), + Lc = ({ + condition: e, + children: t, + wrap: n + }) => e ? (0, Oe.cloneElement)(n(t)) : t; + za('@layer components{.sol-c-dialog{--_overlay-duration:var(--sol-motion-150);--_element-duration:var(--sol-motion-250);display:flex;flex-direction:column;padding:var(--sol-size-150);transition:opacity var(--sol-motion-ease-out);z-index:var(--sol-z-dialog)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=open]:before{transition-duration:var(--_overlay-duration)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=initial]:before{opacity:0}.sol-c-dialog[data-sol-status=close]:before{transition-delay:calc(var(--_element-duration) - var(--_overlay-duration))}.sol-c-dialog--overlay:before{background:var(--sol-color-overlay);content:"";display:block;inset:0;position:absolute}.sol-c-dialog__element{background:var(--sol-color-surface-1);border-radius:var(--sol-radius-8);box-shadow:var(--sol-shadow-200);color:var(--sol-color-foreground);display:flex;flex-direction:column;flex-shrink:1;inline-size:100%;margin:auto;max-inline-size:35rem;min-block-size:14.5rem;transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog__element:focus,.sol-c-dialog__element:focus-visible{outline:none}.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{transform:translateY(var(--sol-size-200))}}.sol-c-dialog[data-sol-status=open] .sol-c-dialog__element{opacity:1;transform:translateY(0);transition-delay:var(--_overlay-duration);transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{opacity:0;transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{transform:translateY(calc(var(--sol-size-200)*-1))}}.sol-c-dialog__header{background:var(--sol-color-surface-2);border-start-end-radius:inherit;border-start-start-radius:inherit;flex:0;padding:var(--sol-size-100);padding-inline-start:var(--sol-size-150)}.sol-c-dialog__close{align-self:flex-start}.sol-c-dialog__close--wide-click{--_wide-size:calc(var(--sol-size-150)*2 + var(--sol-size-075));height:var(--_wide-size);margin:calc(var(--sol-size-100)*-1);margin-inline-start:auto;padding:0;width:var(--_wide-size)}.sol-c-dialog__close--wide-click:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;width:var(--sol-size-150)}.sol-c-dialog__wrapper{display:flex;flex:1;overflow:hidden;position:relative}.sol-c-dialog__wrapper:after,.sol-c-dialog__wrapper:before{background:linear-gradient(var(--sol-color-primary-1),#0000);block-size:var(--sol-size-150);content:"";display:block;inline-size:100%;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-dialog__wrapper:before{inset-block-start:0}.sol-c-dialog__wrapper:after{inset-block-end:0;transform:scale(-1)}.sol-c-dialog__wrapper[data-sol-scroll-end=false]:after,.sol-c-dialog__wrapper[data-sol-scroll-start=false]:before{opacity:.6}.sol-c-dialog__content{flex:1;overflow:auto;padding:var(--sol-size-150);position:relative;scroll-padding-block:var(--sol-size-150);z-index:1}.sol-c-dialog--has-actions .sol-c-dialog__content{padding-block-end:0}.sol-c-dialog:not(.sol-c-dialog--has-actions) .sol-c-dialog__content{border-end-end-radius:inherit;border-end-start-radius:inherit}.sol-c-dialog__actions{flex:0;padding:var(--sol-size-150)}}'); + let jc = (0, Oe.createContext)(null), Mc = () => { - let e = (0, Oe.useContext)(Lc); + let e = (0, Oe.useContext)(jc); if (!e) throw Error("Dialog components must be wrapped in "); return e }, zc = (mi((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, a) => { + as: e = "p", + id: t, + onClick: n, + ...r + }, a) => { let { setDescriptionId: i } = Mc(), o = (0, Oe.useId)(); @@ -26130,11 +26490,11 @@ ...r }) })), ({ - actions: e, - children: t, - onScrollToEnd: n, - type: r - }) => { + actions: e, + children: t, + onScrollToEnd: n, + type: r + }) => { let { setIsOpen: a } = Mc(), { @@ -26144,16 +26504,16 @@ once: { blockEnd: l } - } = Bi({ + } = Gi({ onScroll({ - blockEnd: e - }) { + blockEnd: e + }) { e && n && n() } }), c = (0, Oe.useCallback)((({ - close: e, - onClick: t - }) => n => { + close: e, + onClick: t + }) => n => { n.stopPropagation(), e && a(!1), t && t(n) }), [a]), u = (0, Oe.useCallback)((() => a(!1)), [a]); return Ka.jsxs(Ka.Fragment, { @@ -26177,13 +26537,13 @@ children: ("function" == typeof e ? e({ hasScrolled: l }) : e).map((({ - className: e, - close: t = !0, - disabledUntilScrolled: n, - label: a, - onClick: i, - ...o - }, s, u) => Ka.jsx(to, { + className: e, + close: t = !0, + disabledUntilScrolled: n, + label: a, + onClick: i, + ...o + }, s, u) => Ka.jsx(to, { className: fi("sol-c-dialog__action", e), color: r, disabled: n && !l, @@ -26200,29 +26560,29 @@ }) }), Fc = (0, Oe.forwardRef)((({ - actions: e, - alert: t, - children: n, - className: r, - close: a = true, - defaultOpen: i, - open: o, - onScrollToEnd: s, - onOpenChange: l, - overlay: c = true, - title: u, - trigger: d, - type: p, - ...h - }, f) => { + actions: e, + alert: t, + children: n, + className: r, + close: a = true, + defaultOpen: i, + open: o, + onScrollToEnd: s, + onOpenChange: l, + overlay: c = true, + title: u, + trigger: d, + type: p, + ...h + }, f) => { let m = (0, Oe.useId)(), g = (({ - alert: e = !1, - defaultOpen: t, - open: n, - onOpenChange: r - } = {}) => { - let [a, i] = (0, Oe.useState)(t), [o, s] = (0, Oe.useState)(), l = n ?? a, c = r ?? i, u = Rl(), d = hc({ + alert: e = !1, + defaultOpen: t, + open: n, + onOpenChange: r + } = {}) => { + let [a, i] = (0, Oe.useState)(t), [o, s] = (0, Oe.useState)(), l = n ?? a, c = r ?? i, u = Tl(), d = hc({ open: l, onOpenChange: c, nodeId: u @@ -26269,7 +26629,7 @@ name: I } = $i(), A = fi("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r); - return Ka.jsx(Lc.Provider, { + return Ka.jsx(jc.Provider, { value: g, children: Ka.jsxs(Dl, { id: O, @@ -26306,7 +26666,7 @@ children: u }), a && Ka.jsx(to, { "aria-label": "string" == typeof a ? a : "Close", - className: "sol-c-dialog__close", + className: "sol-c-dialog__close sol-c-dialog__close--wide-click", icon: ni, onClick: () => k(!1), size: "small", @@ -26325,7 +26685,7 @@ }) }) })), - Uc = (0, Oe.forwardRef)(((e, t) => null == Cl() ? Ka.jsx(Nl, { + Uc = (0, Oe.forwardRef)(((e, t) => null == Rl() ? Ka.jsx(Nl, { children: Ka.jsx(Fc, { ref: t, ...e @@ -26336,11 +26696,11 @@ }))); za("@layer components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}"); let Vc = (0, Oe.forwardRef)((({ - className: e, - color: t, - spacing: n, - ...r - }, a) => { + className: e, + color: t, + spacing: n, + ...r + }, a) => { let i = fi("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e); return Ka.jsx("hr", { className: i, @@ -26349,14 +26709,14 @@ }) })); za('@layer components{.sol-c-download-progress{align-items:center;display:grid;grid:"header header" " bar actions" "stats stats "/1fr auto}.sol-c-download-progress__header{grid-area:header;margin-block-end:var(--sol-size-025)}.sol-c-download-progress__title{flex:1}.sol-c-download-progress__subtitle{flex-shrink:0}.sol-c-download-progress__bar{grid-area:bar}.sol-c-download-progress__stats{grid-area:stats;margin-block-start:var(--sol-size-025)}.sol-c-download-progress__stat{flex-basis:33.3333333333%}.sol-c-download-progress__stat--fill,.sol-c-download-progress__stat:only-child{flex:1 1 100%}.sol-c-download-progress__actions{grid-area:actions;margin-inline-start:var(--sol-size-050)}}'), za('@layer components{.sol-c-progress{--_background:var(--sol-color-surface-1);--_foreground:var(--sol-c-progress-color,var(--sol-color-status-informative));--_radius:var(--sol-radius-8);appearance:none;background:var(--_background) none;block-size:var(--sol-size-050);border:0;border-radius:var(--_radius);color:var(--_foreground);display:block;inline-size:100%;overflow:hidden;transition:color var(--sol-motion-250)}.sol-c-progress::-webkit-progress-bar{background:#0000}.sol-c-progress--disabled{background-image:linear-gradient(135deg,var(--sol-color-surface-3) 25%,var(--sol-color-surface-3-hovered) 25% 50%,var(--sol-color-surface-3) 50% 75%,var(--sol-color-surface-3-hovered) 75%);background-size:40px 40px}.sol-c-progress--disabled::-moz-progress-bar{width:0}.sol-c-progress::-webkit-progress-value{background:currentColor;border-radius:var(--_radius)}.sol-c-progress::-moz-progress-bar{background:currentColor;border-radius:var(--_radius)}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate{overflow:hidden;position:relative}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate:before{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;background:currentColor;border-radius:var(--_radius);content:"";inset:0;position:absolute;width:20%}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate::-moz-progress-bar{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;width:20%}@keyframes progress-indeterminate{0%{margin-inline-start:-20%}to{margin-inline-start:100%}}}'); - let Bc = (0, Oe.forwardRef)((({ - className: e, - disabled: t, - max: n = 100, - value: r, - status: a, - ...i - }, o) => { + let Gc = (0, Oe.forwardRef)((({ + className: e, + disabled: t, + max: n = 100, + value: r, + status: a, + ...i + }, o) => { let s = fi("sol-c-progress", t && "sol-c-progress--disabled", a && `sol-u-color-status-${a}`, e); return Ka.jsx("progress", { className: s, @@ -26366,18 +26726,18 @@ ...i }) })), - Gc = mi((({ - actions: e, - as: t = "div", - state: n = "in-progress", - className: r, - id: a, - progress: i, - stats: o, - subtitle: s, - title: l, - ...c - }, u) => { + Bc = mi((({ + actions: e, + as: t = "div", + state: n = "in-progress", + className: r, + id: a, + progress: i, + stats: o, + subtitle: s, + title: l, + ...c + }, u) => { let d = ki(a), p = fi("sol-c-download-progress", r), h = "completed" === n, @@ -26410,7 +26770,7 @@ truncate: !0, children: s })] - }), Ka.jsx(Bc, { + }), Ka.jsx(Gc, { "aria-labelledby": y, className: fi("sol-c-download-progress__bar", (v || m) && "sol-u-margin-bs-050", (v || g) && "sol-u-margin-be-050"), disabled: "paused" === n, @@ -26421,10 +26781,10 @@ className: "sol-c-download-progress__stats", gap: "050", children: o.map((({ - fill: e, - label: t, - value: n - }, r) => Ka.jsxs(Qi, { + fill: e, + label: t, + value: n + }, r) => Ka.jsxs(Qi, { as: "li", className: fi("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"), color: "foreground-weak", @@ -26439,11 +26799,11 @@ gap: "050", className: "sol-c-download-progress__actions", children: e.map((({ - className: e, - label: t, - tooltip: n, - ...r - }, a) => Ka.jsx(Ic, { + className: e, + label: t, + tooltip: n, + ...r + }, a) => Ka.jsx(Ic, { content: n, enabled: !!n, interactive: !1, @@ -26462,17 +26822,17 @@ let qc = (0, Oe.createContext)(null), $c = () => (0, Oe.useContext)(qc), Wc = (0, Oe.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { + className: e, + id: t, + ...n + }, r) => { let { feedbackId: a, setHasFeedback: i } = $c(); (0, Oe.useLayoutEffect)((() => (i(!0, t), () => i(!1))), [t, i]); let o = fi("sol-c-field__feedback", e); - return Ka.jsx(Cc, { + return Ka.jsx(Rc, { "aria-live": "polite", className: o, id: a, @@ -26482,10 +26842,10 @@ }) })), Hc = (0, Oe.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { + className: e, + id: t, + ...n + }, r) => { let { helpId: a, setHasHelp: i @@ -26502,30 +26862,30 @@ }) })), Yc = (0, Oe.forwardRef)((({ - children: e, - className: t, - id: n, - disabled: r, - invalid: a, - required: i, - label: o, - labelType: s, - necessityIndicator: l, - horizontal: c, - error: u, - help: d, - success: p, - ...h - }, f) => { + children: e, + className: t, + id: n, + disabled: r, + invalid: a, + required: i, + label: o, + labelType: s, + necessityIndicator: l, + horizontal: c, + error: u, + help: d, + success: p, + ...h + }, f) => { let m = (({ - id: e, - disabled: t = !1, - invalid: n = !1, - required: r = !1, - label: a, - labelType: i = "floating", - necessityIndicator: o - }) => { + id: e, + disabled: t = !1, + invalid: n = !1, + required: r = !1, + label: a, + labelType: i = "floating", + necessityIndicator: o + }) => { let s = (0, Oe.useId)(), [l = (e ? `${e}-input` : s), c] = (0, Oe.useState)(), [u = `${e??l}-feedback`, d] = (0, Oe.useState)(), @@ -26546,12 +26906,12 @@ } : { htmlFor: l }), [l, S, m, P, f]), - C = S || "floating" !== i ? i : "classic", - T = (0, Oe.useCallback)((e => { + R = S || "floating" !== i ? i : "classic", + C = (0, Oe.useCallback)((e => { let t = e ? [e] : []; return x && t.push(u), k && t.push(p), t.length ? t.join(" ") : void 0 }), [u, x, k, p]), - R = (0, Oe.useCallback)((e => { + T = (0, Oe.useCallback)((e => { let t = e ? [e] : []; return "label" !== P && t.push(f, l), t.length ? t.join(" ") : void 0 }), [l, P, f]); @@ -26568,7 +26928,7 @@ label: a, labelElementType: P, labelProps: A, - labelType: C, + labelType: R, necessityIndicator: o, setInputId: c, setInputRef: O, @@ -26582,9 +26942,9 @@ setIsDisabled: g, setIsInvalid: y, setIsRequired: b, - getDescribedby: T, - getLabelledby: R - })), [l, u, p, f, x, k, m, v, _, a, P, C, A, o, T, R]) + getDescribedby: C, + getLabelledby: T + })), [l, u, p, f, x, k, m, v, _, a, P, R, A, o, C, T]) })({ id: n, disabled: r, @@ -26650,21 +27010,21 @@ })); za("@layer components{.sol-c-game-button{--_background-color:rgba(var(--sol-color-primary-1-rgb)/0.8);--_border-color:var(--sol-color-accent-1);--_foreground-color:var(--sol-color-neutral-4);--_border-radius:var(--sol-size-050);--_border-width:var(--sol-border-2);--_hologram-color:var(--sol-color-accent-1);--_hologram-offset:0;--_hologram-opacity:0;--_glow-color:var(--sol-color-neutral-4);--_glow-speed:var(--sol-motion-4000);--_glow-state:running;--_glow-opacity:1;--_light-color:var(--sol-color-accent-1);--_background-mask:var(--sol-c-game-button-background-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_border-mask:var(--sol-c-game-button-border-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);border-radius:var(--_border-radius);color:var(--_border-color);cursor:var(--sol-cursor-interactive);display:flex;position:relative;transition-duration:var(--sol-motion-250);transition-property:color,opacity,transform;transition-timing-function:var(--sol-motion-ease);user-select:none}.sol-c-game-button:hover{--_border-color:var(--sol-color-accent-3);--_hologram-offset:var(--sol-size-025);--_hologram-opacity:1}.sol-c-game-button--pressed,.sol-c-game-button:active{--_border-color:var(--sol-color-accent-2);--_hologram-offset:0;--_hologram-opacity:0}.sol-c-game-button:disabled,.sol-c-game-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-game-button[aria-busy=true]{--_background-color:rgba(var(--sol-color-primary-5-rgb)/0.8)}.sol-c-game-button:disabled,.sol-c-game-button:hover,.sol-c-game-button[aria-busy=true],.sol-c-game-button[aria-disabled=true]{--_glow-opacity:0;--_glow-state:paused}.sol-c-game-button__wrapper{-webkit-mask-box-image:var(--_background-mask);align-items:center;background:var(--_background-color);block-size:3.5rem;border-radius:inherit;color:var(--_foreground-color);display:flex;flex:1;gap:var(--sol-size-050);inline-size:18.5rem;justify-content:center;mask-border:var(--_background-mask);overflow:hidden;padding:0 var(--sol-size-150);position:relative;transition-duration:var(--sol-motion-250);transition-property:background-color,color,transform;transition-timing-function:var(--sol-motion-ease);z-index:2}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__wrapper{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1))}.sol-c-game-button--released .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:0;height:2rem;width:13rem}.sol-c-game-button--released .sol-c-game-button__wrapper:before,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{background:linear-gradient(to right,var(--_light-color),#0000) no-repeat 50%;content:\"\";opacity:0;position:absolute;transform:translateX(-100%) rotate(calc(var(--sol-motion-angle)*-1))}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:.9s;height:4rem;width:17rem}}@keyframes sol-c-game-button-sweep{50%{opacity:.4}to{opacity:0;transform:translateX(100%) rotate(calc(var(--sol-motion-angle)*-1))}}.sol-c-game-button__icon{--sol-c-icon-size:var(--sol-size-125);position:relative;z-index:3}.sol-c-game-button__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;font:var(--sol-text-button-m);position:relative;text-transform:var(--sol-text-transform-uppercase);top:var(--sol-text-button-m-font-offset);z-index:3}.sol-c-game-button__border{border:var(--_border-width) solid;border-radius:inherit;inset:0;overflow:hidden;position:absolute;z-index:4}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__border{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1));transition:transform var(--sol-motion-250) var(--sol-motion-ease)}}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__border{-webkit-mask-box-image:var(--_border-mask);background:currentColor;border:0;mask-border:var(--_border-mask)}@container style(--sol-prefers-reduced-motion: no-preference){@supports (offset-path:inset(0 round var(--_border-radius ))){.sol-c-game-button__border:before{animation:sol-c-game-button-glow var(--_glow-speed) var(--sol-motion-linear) infinite var(--_glow-state);backface-visibility:hidden;background:radial-gradient(farthest-side,var(--_glow-color),#0000);content:\"\";display:block;height:3.5rem;offset-distance:0;offset-path:inset(0 round var(--_border-radius));offset-rotate:0deg;opacity:var(--_glow-opacity);position:absolute;transition:opacity var(--sol-motion-250) var(--sol-motion-ease);width:11.625rem}}}@keyframes sol-c-game-button-glow{to{offset-distance:100%}}}.sol-c-game-button__holo{display:none}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__holo{border:var(--_border-width) solid;border-radius:inherit;color:var(--_hologram-color);display:block;filter:blur(2px);inset:0;opacity:var(--_hologram-opacity);position:absolute;transform:translate(calc(var(--_hologram-offset)*-1),var(--_hologram-offset));transition-duration:var(--sol-motion-250);transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease);z-index:1}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__holo{border:0}.sol-c-game-button__holo:before{-webkit-mask-box-image:var(--_border-mask);background:currentColor;content:\"\";inset:0;mask-border:var(--_border-mask);position:absolute}}}}"); let Kc = (0, Oe.forwardRef)((({ - children: e, - className: t, - icon: n, - iconAnimation: r = !0, - loading: a, - loadingIcon: i = si, - loadingIconAnimation: o = !0, - onKeyDown: s, - onKeyUp: l, - onMouseDown: c, - onMouseEnter: u, - onMouseLeave: d, - onMouseUp: p, - ...h - }, f) => { + children: e, + className: t, + icon: n, + iconAnimation: r = !0, + loading: a, + loadingIcon: i = si, + loadingIconAnimation: o = !0, + onKeyDown: s, + onKeyUp: l, + onMouseDown: c, + onMouseEnter: u, + onMouseLeave: d, + onMouseUp: p, + ...h + }, f) => { let [m, g] = (0, Oe.useState)(!1), [v, y] = (0, Oe.useState)(!1), [_, b] = (0, Oe.useState)(!1), x = (0, Oe.useCallback)((e => { ("Space" === e.code || "Enter" === e.code) && (y(!1), g(!0)), s && s(e) }), [s]), w = (0, Oe.useCallback)((e => { @@ -26725,13 +27085,13 @@ })] }) })); - za('@layer components{.sol-c-game-page{display:flex;flex:1 0 auto;flex-direction:column;overflow:hidden;position:relative;z-index:1}.sol-c-game-page__navigation{inset-block-start:0;inset-inline-start:0;position:absolute;z-index:2}.sol-c-game-page__wrapper{--_background:var(--sol-color-primary-1-rgb);--_gradient:rgb(var(--_background)/1) 0%,rgb(var(--_background)/0.991615) 11.79%,rgb(var(--_background)/0.967585) 21.38%,rgb(var(--_background)/0.9296) 29.12%,rgb(var(--_background)/0.879348) 35.34%,rgb(var(--_background)/0.818519) 40.37%,rgb(var(--_background)/0.7488) 44.56%,rgb(var(--_background)/0.671881) 48.24%,rgb(var(--_background)/0.589452) 51.76%,rgb(var(--_background)/0.5032) 55.44%,rgb(var(--_background)/0.414815) 59.63%,rgb(var(--_background)/0.325985) 64.66%,rgb(var(--_background)/0.2384) 70.88%,rgb(var(--_background)/0.153748) 78.62%,rgb(var(--_background)/0.0737185) 88.21%,rgb(var(--_background)/0) 100%;--_padding-inline:var(--sol-size-550);--_gutter-size:var(--sol-size-500);--_content-overflow-indicator-size:var(--sol-size-100);--_content-padding-inline-start:var(--_content-overflow-indicator-size);--_content-padding-inline-end:var(--_padding-inline);--_content-gap:var(--sol-size-200);background:rgb(var(--_background));column-gap:var(--_gutter-size);display:grid;flex:1;grid:"header header " 1fr "title tabs " auto "actions content" 23.5rem/18.5rem minmax(0,1fr);padding-block:0 var(--sol-size-250);padding-inline:var(--_padding-inline);position:relative;z-index:1}.sol-c-game-page__header{display:flex;grid-area:header;padding-block:var(--sol-size-250)}.sol-c-game-page__logo{display:block;flex:1;margin:auto;max-inline-size:35vw}.sol-c-game-page__logo svg{display:block;height:100%;width:100%}.sol-c-game-page__title{align-self:end;grid-area:title}.sol-c-game-page__tabs{align-self:end;column-gap:var(--sol-size-150);display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050)}.sol-c-game-page__tab{--_color:var(--sol-color-foreground-weak);--_scale:0;align-items:center;color:var(--_color);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:after{background:currentColor;block-size:var(--sol-border-2);content:"";inset-block-end:0;inset-inline:0;position:absolute;transform:scaleX(var(--_scale));transform-origin:left;transition:transform var(--sol-motion-250) var(--sol-motion-ease)}[dir=rtl] .sol-c-game-page__tab:after{transform-origin:right}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_color:var(--sol-color-interactive-selected);--_scale:1}.sol-c-game-page__tab:hover{--_color:var(--sol-color-interactive-hovered);--_scale:1}.sol-c-game-page__tab:active{--_color:var(--sol-color-interactive-pressed)}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.sol-c-game-page__content{align-self:flex-start;display:flex;flex:1;grid-area:content;position:relative}.sol-c-game-page__content[data-sol-scroll-start]:before{--_border:linear-gradient(#0000,var(--sol-color-accent-1) 25% 75%,#0000) no-repeat left /var(--sol-border-1) 100%;--_shadow:radial-gradient(100% 50% at 0% 50%,rgb(var(--sol-color-primary-1-rgb)/0.7),#0000);background:var(--_border),var(--_shadow);content:"";inline-size:var(--_content-overflow-indicator-size);inset-block-end:var(--sol-size-100);inset-block-start:var(--sol-size-150);inset-inline-start:calc(var(--_content-padding-inline-start)*-1);opacity:0;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-game-page__content[data-sol-scroll-start=false]:before{opacity:1}[dir=rtl] .sol-c-game-page__content[data-sol-scroll-start]:before{transform:scaleX(-1)}.sol-c-game-page__cards{display:flex;gap:var(--_content-gap);margin-inline-end:calc(var(--_content-padding-inline-end)*-1);margin-inline-start:calc(var(--_content-padding-inline-start)*-1);overflow:hidden;overflow-x:auto;overscroll-behavior-x:contain;padding-block-end:var(--sol-size-150);padding-block-start:var(--sol-size-300);padding-inline-end:var(--_content-padding-inline-end);padding-inline-start:var(--_content-padding-inline-start);position:relative;scroll-padding-inline-end:var(--_content-padding-inline-end);scroll-padding-inline-start:var(--_content-padding-inline-start);z-index:1}.sol-c-game-page__cards::-webkit-scrollbar-button:end:increment,.sol-c-game-page__cards::-webkit-scrollbar-button:start:decrement{display:block}.sol-c-game-page__cards::-webkit-scrollbar-button:end:decrement,.sol-c-game-page__cards::-webkit-scrollbar-button:start:increment{display:none}.sol-c-game-page__cards::-webkit-scrollbar-button:decrement,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:increment{width:calc(var(--_content-padding-inline-start) - var(--sol-scrollbar-border))}.sol-c-game-page__cards::-webkit-scrollbar-button:increment,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:decrement{width:calc(var(--_content-padding-inline-end) - var(--sol-scrollbar-border))}.sol-c-game-page__card{display:flex;flex:0 0 auto;flex-direction:column}.sol-c-game-page__empty{margin-block:auto;padding-block:var(--sol-size-300)}.sol-c-game-page__background{inset-block-start:0;inset-inline:0;padding-top:42.8571428571%;position:absolute;z-index:-1}.sol-c-game-page__background:before{background:linear-gradient(to top,var(--_gradient));content:"";inset:0;position:absolute;z-index:1}.sol-c-game-page__image,.sol-c-game-page__video{height:100%;left:0;object-fit:cover;object-position:top;position:absolute;top:0;width:100%}.sol-c-game-page__image{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page__video{display:none;opacity:0}.sol-c-game-page__video--is-loaded{animation:sol-motion-fade-in var(--sol-motion-500) linear forwards;display:block}}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__title{opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-500) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .5s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .6s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:first-child{animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .2s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + .5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + .6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content{animation-delay:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:first-child{animation-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(2){animation-delay:.1s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(3){animation-delay:.2s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(4){animation-delay:.3s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(5){animation-delay:.4s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(6){animation-delay:.5s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(7){animation-delay:.6s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(8){animation-delay:.7s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(9){animation-delay:.8s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(10){animation-delay:.9s}'); + za('@layer components{.sol-c-game-page{display:flex;flex:1 0 auto;flex-direction:column;overflow:hidden;position:relative;z-index:1}.sol-c-game-page__navigation{inset-block-start:0;inset-inline-start:0;position:absolute;z-index:2}.sol-c-game-page__wrapper{--_background:var(--sol-color-primary-1-rgb);--_gradient:rgb(var(--_background)/1) 0%,rgb(var(--_background)/0.991615) 11.79%,rgb(var(--_background)/0.967585) 21.38%,rgb(var(--_background)/0.9296) 29.12%,rgb(var(--_background)/0.879348) 35.34%,rgb(var(--_background)/0.818519) 40.37%,rgb(var(--_background)/0.7488) 44.56%,rgb(var(--_background)/0.671881) 48.24%,rgb(var(--_background)/0.589452) 51.76%,rgb(var(--_background)/0.5032) 55.44%,rgb(var(--_background)/0.414815) 59.63%,rgb(var(--_background)/0.325985) 64.66%,rgb(var(--_background)/0.2384) 70.88%,rgb(var(--_background)/0.153748) 78.62%,rgb(var(--_background)/0.0737185) 88.21%,rgb(var(--_background)/0) 100%;--_padding-inline:var(--sol-size-550) var(--sol-size-200);--_gutter-size:var(--sol-size-500);--_content-overflow-indicator-size:var(--sol-size-100);--_content-padding-inline-start:var(--_content-overflow-indicator-size);--_content-padding-inline-end:var(--sol-size-200);--_content-gap:var(--sol-size-200);background:rgb(var(--_background));column-gap:var(--_gutter-size);display:grid;flex:1;grid:"header header " 1fr "title tabs " auto "actions content" 23.5rem/18.5rem minmax(0,1fr);padding-block:0 var(--sol-size-250);padding-inline:var(--_padding-inline);position:relative;z-index:1}.sol-c-game-page__header{--_padding-inline:var(--sol-size-200) var(--sol-size-550);display:flex;grid-area:header;padding-block:var(--sol-size-250);padding-inline:var(--_padding-inline)}.sol-c-game-page__logo{display:block;flex:1;margin:auto;max-inline-size:35vw}.sol-c-game-page__logo svg{display:block;height:100%;width:100%}.sol-c-game-page__title{align-self:end;grid-area:title}.sol-c-game-page__tabs{align-self:end;column-gap:var(--sol-size-150);display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050)}.sol-c-game-page__tab{--_color:var(--sol-color-foreground-weak);--_scale:0;align-items:center;color:var(--_color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:after{background:currentColor;block-size:var(--sol-border-2);content:"";inset-block-end:0;inset-inline:0;position:absolute;transform:scaleX(var(--_scale));transform-origin:left;transition:transform var(--sol-motion-250) var(--sol-motion-ease)}[dir=rtl] .sol-c-game-page__tab:after{transform-origin:right}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_color:var(--sol-color-interactive-selected);--_scale:1}.sol-c-game-page__tab:hover{--_color:var(--sol-color-interactive-hovered);--_scale:1}.sol-c-game-page__tab:active{--_color:var(--sol-color-interactive-pressed)}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content>.sol-c-input{gap:0;padding-right:0}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__separator{margin-left:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button{cursor:pointer;display:block;padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;transition:all var(--sol-motion-250) var(--sol-motion-ease);width:var(--sol-size-150)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon{margin-top:-1px;transition:all var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:hover .sol-c-icon{transform:rotate(90deg)}.sol-c-game-page__content{align-self:flex-start;display:flex;flex:1;grid-area:content;position:relative}.sol-c-game-page__content[data-sol-scroll-start]:before{--_border:linear-gradient(#0000,var(--sol-color-accent-1) 25% 75%,#0000) no-repeat left /var(--sol-border-1) 100%;--_shadow:radial-gradient(100% 50% at 0% 50%,rgb(var(--sol-color-primary-1-rgb)/0.7),#0000);background:var(--_border),var(--_shadow);content:"";inline-size:var(--_content-overflow-indicator-size);inset-block-end:var(--sol-size-100);inset-block-start:var(--sol-size-150);inset-inline-start:calc(var(--_content-padding-inline-start)*-1);opacity:0;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-game-page__content[data-sol-scroll-start=false]:before{opacity:1}[dir=rtl] .sol-c-game-page__content[data-sol-scroll-start]:before{transform:scaleX(-1)}.sol-c-game-page__cards{display:flex;gap:var(--_content-gap);margin-inline-end:calc(var(--_content-padding-inline-end)*-1);margin-inline-start:calc(var(--_content-padding-inline-start)*-1);overflow:hidden;overflow-x:auto;overscroll-behavior-x:contain;padding-block-end:var(--sol-size-150);padding-block-start:var(--sol-size-300);padding-inline-end:var(--_content-padding-inline-end);padding-inline-start:var(--_content-padding-inline-start);position:relative;scroll-padding-inline-end:var(--_content-padding-inline-end);scroll-padding-inline-start:var(--_content-padding-inline-start);z-index:1}.sol-c-game-page__cards::-webkit-scrollbar-button:end:increment,.sol-c-game-page__cards::-webkit-scrollbar-button:start:decrement{display:block}.sol-c-game-page__cards::-webkit-scrollbar-button:end:decrement,.sol-c-game-page__cards::-webkit-scrollbar-button:start:increment{display:none}.sol-c-game-page__cards::-webkit-scrollbar-button:decrement,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:increment{width:calc(var(--_content-padding-inline-start) - var(--sol-scrollbar-border))}.sol-c-game-page__cards::-webkit-scrollbar-button:increment,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:decrement{width:calc(var(--_content-padding-inline-end) - var(--sol-scrollbar-border))}.sol-c-game-page__card{display:flex;flex:0 0 auto;flex-direction:column}.sol-c-game-page__empty{margin-block:auto;padding-block:var(--sol-size-300)}.sol-c-game-page__background{inset-block-start:0;inset-inline:0;padding-top:42.8571428571%;position:absolute;z-index:-1}.sol-c-game-page__background:before{background:linear-gradient(to top,var(--_gradient));content:"";inset:0;position:absolute;z-index:1}.sol-c-game-page__image,.sol-c-game-page__video{height:100%;left:0;object-fit:cover;object-position:top;position:absolute;top:0;width:100%}.sol-c-game-page__image{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page__video{display:none;opacity:0}.sol-c-game-page__video--is-loaded{animation:sol-motion-fade-in var(--sol-motion-500) linear forwards;display:block}}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__title{opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-500) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .5s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .6s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:first-child{animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .2s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + .5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + .6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content{animation-delay:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:first-child{animation-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(2){animation-delay:.1s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(3){animation-delay:.2s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(4){animation-delay:.3s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(5){animation-delay:.4s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(6){animation-delay:.5s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(7){animation-delay:.6s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(8){animation-delay:.7s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(9){animation-delay:.8s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(10){animation-delay:.9s}'); let Qc = mi((({ - children: e, - className: t, - title: n, - ...r - }, a) => { + children: e, + className: t, + title: n, + ...r + }, a) => { let i = fi("sol-c-game-page__actions", t); return Ka.jsx(uo, { className: i, @@ -26743,14 +27103,14 @@ }) })), Zc = mi((({ - as: e = "div", - className: t, - image: n, - video: r, - ...a - }, i) => { + as: e = "div", + className: t, + image: n, + video: r, + ...a + }, i) => { let o = fi("sol-c-game-page__background", t), - s = Li(), + s = ji(), [l, c] = (0, Oe.useState)(!0), u = (0, Oe.useRef)(null); return (0, Oe.useEffect)((() => { @@ -26785,18 +27145,18 @@ })); var Xc = "undefined" != typeof window ? Oe.useLayoutEffect : Oe.useEffect; let Jc = mi((({ - as: e = "div", - children: t, - className: n, - empty: r, - ...a - }, i) => { - var o, s, l, c, u, d, p, h, f, m, g, v, y, _, b, x, w, k, E, S, O, P, I, A, C, T, R, D, N, j, L, M; + as: e = "div", + children: t, + className: n, + empty: r, + ...a + }, i) => { + var o, s, l, c, u, d, p, h, f, m, g, v, y, _, b, x, w, k, E, S, O, P, I, A, R, C, T, D, N, L, j, M; let { ref: z, inlineStart: F, inlineEnd: U - } = Bi(), { + } = Gi(), { events: V } = (m = void 0 === (f = (h = { isMounted: !!t @@ -26816,13 +27176,13 @@ k && (S = "scroll" === window.getComputedStyle(z.current).overflowX, O = "scroll" === window.getComputedStyle(z.current).overflowY, P = z.current.scrollWidth - z.current.clientWidth, I = z.current.scrollHeight - z.current.clientHeight, o = window.getComputedStyle(z.current).cursor, s = [], l = [], c = [], z.current.childNodes.forEach((function(e) { s.push(window.getComputedStyle(e).cursor), l.push("none" === window.getComputedStyle(e).transform ? "" : window.getComputedStyle(e).transform), c.push("none" === window.getComputedStyle(e).transition ? "" : window.getComputedStyle(e).transition) }))) - }), [k]), C = function() { + }), [k]), R = function() { var e = E.current.scrollSpeedX * A, t = E.current.scrollSpeedY * A, n = z.current.scrollLeft + e, r = z.current.scrollTop + t; z.current.scrollLeft = n, z.current.scrollTop = r, E.current.lastScrollX = n, E.current.lastScrollY = r - }, T = function(e) { + }, C = function(e) { var t = e.clientX - E.current.initialMouseX, n = e.clientY - E.current.initialMouseY, r = z.current, @@ -26833,7 +27193,7 @@ S && O ? (o = .3 * a * Math.sign(t) * Math.log10(1 + .5 * Math.abs(t) / a), s = .3 * i * Math.sign(n) * Math.log10(1 + .5 * Math.abs(n) / i)) : S ? o = .3 * a * Math.sign(t) * Math.log10(1 + .5 * Math.abs(t) / a) : O && (s = .3 * i * Math.sign(n) * Math.log10(1 + .5 * Math.abs(n) / i)), z.current.childNodes.forEach((function(e) { e.style.transform = "translate3d(" + o + "px, " + s + "px, 0px)", e.style.transition = "transform 0ms" })) - }, R = function() { + }, T = function() { z.current.childNodes.forEach((function(e, t) { e.style.transform = l[t], e.style.transition = c[t] })) @@ -26843,19 +27203,19 @@ E.current.scrollSpeedX = e; var t = z.current.scrollLeft <= 0, n = z.current.scrollLeft >= P; - C(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedX = 0, clearInterval(d)) + R(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedX = 0, clearInterval(d)) }), A), p = setInterval((function() { var e = E.current.scrollSpeedY * m; E.current.scrollSpeedY = e; var t = z.current.scrollTop <= 0, n = z.current.scrollTop >= I; - C(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedY = 0, clearInterval(p)) + R(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedY = 0, clearInterval(p)) }), A), E.current.isDraggingX = !1, E.current.isDraggingY = !1, _ && (z.current.childNodes.forEach((function(e) { e.style.transform = "translate3d(0px, 0px, 0px)", e.style.transition = "transform 250ms" - })), u = setTimeout(R, 250)) + })), u = setTimeout(T, 250)) }, N = function(e) { e.preventDefault(), e.stopImmediatePropagation() - }, j = function(e) { + }, L = function(e) { var t = E.current.isDraggingX || E.current.isDraggingY, n = E.current.initialMouseX - e.clientX, r = E.current.initialMouseY - e.clientY, @@ -26867,7 +27227,7 @@ })), E.current.isMouseDown = !1, E.current.lastMouseX = 0, E.current.lastMouseY = 0, z.current.style.cursor = o, z.current.childNodes.forEach((function(e, t) { e.style.cursor = s[t] })), a && D() - }, L = function(e) { + }, j = function(e) { if (E.current.isMouseDown) { e.preventDefault(); var t = E.current.lastMouseX - e.clientX; @@ -26880,14 +27240,14 @@ a = z.current.scrollLeft >= P && S, i = z.current.scrollTop <= 0 && O, o = z.current.scrollTop >= I && O; - (r || a || i || o) && _ && T(e), C() + (r || a || i || o) && _ && C(e), R() } }, M = function() { P = z.current.scrollWidth - z.current.clientWidth, I = z.current.scrollHeight - z.current.clientHeight }, (0, Oe.useEffect)((function() { - return k && (window.addEventListener("mouseup", j), window.addEventListener("mousemove", L), window.addEventListener("resize", M)), + return k && (window.addEventListener("mouseup", L), window.addEventListener("mousemove", j), window.addEventListener("resize", M)), function() { - window.removeEventListener("mouseup", j), window.removeEventListener("mousemove", L), window.removeEventListener("resize", M), clearInterval(d), clearInterval(p), clearTimeout(u) + window.removeEventListener("mouseup", L), window.removeEventListener("mousemove", j), window.removeEventListener("resize", M), clearInterval(d), clearInterval(p), clearTimeout(u) } }), [k]), { events: { @@ -26896,15 +27256,16 @@ t = e.buttons, ("Left" === x && 1 === t || "Middle" === x && 4 === t || "Right" === x && 2 === t) && (E.current.isMouseDown = !0, E.current.lastMouseX = e.clientX, E.current.lastMouseY = e.clientY, E.current.initialMouseX = e.clientX, E.current.initialMouseY = e.clientY) } } - }), B = fi("sol-c-game-page__content", n); + }), G = fi("sol-c-game-page__content", n); return Ka.jsx(e, { - className: B, + className: G, "data-sol-scroll-start": F, "data-sol-scroll-end": U, ref: i, ...a, children: t ? Ka.jsx("ul", { className: "sol-c-game-page__cards", + "data-sol-scrollbar-hidden": "true", ref: z, ...V, children: Oe.Children.map(t, ((e, t) => Ka.jsx("li", { @@ -26919,13 +27280,13 @@ }) })), eu = mi((({ - as: e = "div", - animation: t, - playLottie: n = !1, - className: r, - logo: a, - ...i - }, o) => { + as: e = "div", + animation: t, + playLottie: n = !1, + className: r, + logo: a, + ...i + }, o) => { let s = fi("sol-c-game-page__header", r), [l, c] = (0, Oe.useState)(!1); (0, Oe.useEffect)((() => { @@ -26951,12 +27312,12 @@ })); za("@layer components{.sol-c-tag{align-items:center;background:var(--sol-color-surface-1);border-radius:var(--sol-radius-4);color:var(--sol-color-foregroud);display:inline-flex;justify-content:center;max-inline-size:100%;min-inline-size:var(--sol-size-150);padding-block:var(--sol-size-025);padding-inline:var(--sol-size-050)}}"); let tu = mi((({ - as: e = "p", - children: t, - className: n, - status: r, - ...a - }, i) => { + as: e = "p", + children: t, + className: n, + status: r, + ...a + }, i) => { let { ref: o, hasOverflow: s @@ -26980,11 +27341,11 @@ }) })), nu = mi((({ - className: e, - status: t, - title: n, - ...r - }, a) => { + className: e, + status: t, + title: n, + ...r + }, a) => { let i = fi("sol-c-game-page__message", e), o = Ka.jsx(Qi, { className: i, @@ -27005,12 +27366,12 @@ }) : o })), ru = (0, Oe.forwardRef)((({ - active: e, - className: t, - icon: n, - label: r, - ...a - }, i) => { + active: e, + className: t, + icon: n, + label: r, + ...a + }, i) => { let o = fi("sol-c-game-page__tab", t), s = { [a.href ? "aria-current" : "aria-pressed"]: !!e || void 0, @@ -27030,11 +27391,11 @@ }) })), au = mi((({ - as: e = "nav", - children: t, - className: n, - ...r - }, a) => { + as: e = "nav", + children: t, + className: n, + ...r + }, a) => { let i = fi("sol-c-game-page__tabs", n); return Ka.jsx(e, { className: i, @@ -27044,9 +27405,9 @@ }) })), iu = mi((({ - className: e, - ...t - }, n) => { + className: e, + ...t + }, n) => { let r = fi("sol-c-game-page__title", e); return Ka.jsx(Qi, { as: "h1", @@ -27058,13 +27419,13 @@ }) })), ou = mi((({ - as: e = "div", - children: t, - className: n, - navigation: r, - theme: a, - ...i - }, o) => { + as: e = "div", + children: t, + className: n, + navigation: r, + theme: a, + ...i + }, o) => { let s = fi("sol-c-game-page", n); return Ka.jsxs(e, { className: s, @@ -27076,8 +27437,8 @@ }), Ka.jsx(qi, { name: a, children: ({ - getProps: e - }) => Ka.jsx("div", { + getProps: e + }) => Ka.jsx("div", { ...e({ className: "sol-c-game-page__wrapper" }), @@ -27096,7 +27457,7 @@ }) })(lu, { assign: () => Fu, - colors: () => Lu, + colors: () => ju, createStringInterpolator: () => Ua, skipAnimation: () => Mu, to: () => Va, @@ -27219,44 +27580,44 @@ } return e === t } - var Cu = (e, t) => e.forEach(t); + var Ru = (e, t) => e.forEach(t); - function Tu(e, t, n) { + function Cu(e, t, n) { if (Iu.arr(e)) for (let r = 0; r < e.length; r++) t.call(n, e[r], `${r}`); else for (let r in e) e.hasOwnProperty(r) && t.call(n, e[r], r) } - var Ru = e => Iu.und(e) ? [] : Iu.arr(e) ? e : [e]; + var Tu = e => Iu.und(e) ? [] : Iu.arr(e) ? e : [e]; function Du(e, t) { if (e.size) { let n = Array.from(e); - e.clear(), Cu(n, t) + e.clear(), Ru(n, t) } } var Nu = (e, ...t) => Du(e, (e => e(...t))), - ju = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), - Lu = null, + Lu = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), + ju = null, Mu = !1, zu = Pu, Fu = e => { - e.to && (Va = e.to), e.now && (uu.now = e.now), void 0 !== e.colors && (Lu = e.colors), null != e.skipAnimation && (Mu = e.skipAnimation), e.createStringInterpolator && (Ua = e.createStringInterpolator), e.requestAnimationFrame && uu.use(e.requestAnimationFrame), e.batchedUpdates && (uu.batchedUpdates = e.batchedUpdates), e.willAdvance && (zu = e.willAdvance), e.frameLoop && (uu.frameLoop = e.frameLoop) + e.to && (Va = e.to), e.now && (uu.now = e.now), void 0 !== e.colors && (ju = e.colors), null != e.skipAnimation && (Mu = e.skipAnimation), e.createStringInterpolator && (Ua = e.createStringInterpolator), e.requestAnimationFrame && uu.use(e.requestAnimationFrame), e.batchedUpdates && (uu.batchedUpdates = e.batchedUpdates), e.willAdvance && (zu = e.willAdvance), e.frameLoop && (uu.frameLoop = e.frameLoop) }, Uu = new Set, Vu = [], - Bu = [], - Gu = 0, + Gu = [], + Bu = 0, qu = { get idle() { return !Uu.size && !Vu.length }, start(e) { - Gu > e.priority ? (Uu.add(e), uu.onStart($u)) : (Wu(e), uu(Yu)) + Bu > e.priority ? (Uu.add(e), uu.onStart($u)) : (Wu(e), uu(Yu)) }, advance: Yu, sort(e) { - if (Gu) uu.onFrame((() => qu.sort(e))); + if (Bu) uu.onFrame((() => qu.sort(e))); else { let t = Vu.indexOf(e); ~t && (Vu.splice(t, 1), Hu(e)) @@ -27283,12 +27644,12 @@ } function Yu(e) { - let t = Bu; + let t = Gu; for (let n = 0; n < Vu.length; n++) { let r = Vu[n]; - Gu = r.priority, r.idle || (zu(r), r.advance(e), r.idle || t.push(r)) + Bu = r.priority, r.idle || (zu(r), r.advance(e), r.idle || t.push(r)) } - return Gu = 0, (Bu = Vu).length = 0, (Vu = t).length > 0 + return Bu = 0, (Gu = Vu).length = 0, (Vu = t).length > 0 } var Ku = "[-+]?\\d*\\.?\\d+", Qu = Ku + "%"; @@ -27338,7 +27699,7 @@ } function pd(e) { - let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = ad.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : Lu && void 0 !== Lu[e] ? Lu[e] : (t = Xu.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | 255) >>> 0 : (t = Ju.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | ud(t[4])) >>> 0 : (t = nd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = id.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = rd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = ed.exec(e)) ? (255 | sd(cd(t[1]), dd(t[2]), dd(t[3]))) >>> 0 : (t = td.exec(e)) ? (sd(cd(t[1]), dd(t[2]), dd(t[3])) | ud(t[4])) >>> 0 : null; + let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = ad.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : ju && void 0 !== ju[e] ? ju[e] : (t = Xu.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | 255) >>> 0 : (t = Ju.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | ud(t[4])) >>> 0 : (t = nd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = id.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = rd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = ed.exec(e)) ? (255 | sd(cd(t[1]), dd(t[2]), dd(t[3]))) >>> 0 : (t = td.exec(e)) ? (sd(cd(t[1]), dd(t[2]), dd(t[3])) | ud(t[4])) >>> 0 : null; return null === n ? e : (n = n || 0, `rgba(${(4278190080&n)>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`) } var hd = (e, t, n) => { @@ -27418,30 +27779,30 @@ Pd = RegExp(`(${Sd.source})(%|[a-z]+)`, "i"), Id = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Ad = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, - Cd = e => { - let [t, n] = Td(e); - if (!t || ju()) return e; + Rd = e => { + let [t, n] = Cd(e); + if (!t || Lu()) return e; let r = window.getComputedStyle(document.documentElement).getPropertyValue(t); if (r) return r.trim(); if (n && n.startsWith("--")) { let e = window.getComputedStyle(document.documentElement).getPropertyValue(n); if (e) return e } else { - if (n && Ad.test(n)) return Cd(n); + if (n && Ad.test(n)) return Rd(n); if (n) return n } return e }, - Td = e => { + Cd = e => { let t = Ad.exec(e); if (!t) return [, ]; let [, n, r] = t; return [n, r] }, - Rd = (e, t, n, r, a) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`, + Td = (e, t, n, r, a) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`, Dd = e => { - Ba || (Ba = Lu ? RegExp(`(${Object.keys(Lu).join("|")})(?!\\w)`, "g") : /^\b$/); - let t = e.output.map((e => vd(e).replace(Ad, Cd).replace(Od, pd).replace(Ba, pd))), + Ga || (Ga = ju ? RegExp(`(${Object.keys(ju).join("|")})(?!\\w)`, "g") : /^\b$/); + let t = e.output.map((e => vd(e).replace(Ad, Rd).replace(Od, pd).replace(Ga, pd))), n = t.map((e => e.match(Sd).map(Number))), r = n[0].map(((e, t) => n.map((e => { if (!(t in e)) throw Error('The arity of each "output" value must be equal'); @@ -27454,24 +27815,24 @@ return e => { let n = !Pd.test(t[0]) && t.find((e => Pd.test(e)))?.replace(Sd, ""), r = 0; - return t[0].replace(Sd, (() => `${a[r++](e)}${n||""}`)).replace(Id, Rd) + return t[0].replace(Sd, (() => `${a[r++](e)}${n||""}`)).replace(Id, Td) } }, Nd = "react-spring: ", - jd = e => { + Ld = e => { let t = !1; if ("function" != typeof e) throw TypeError(`${Nd}once requires a function parameter`); return (...n) => { t || (e(...n), t = !0) } }, - Ld = jd(console.warn), - Md = jd(console.warn); + jd = Ld(console.warn), + Md = Ld(console.warn); function zd(e) { - return Iu.str(e) && ("#" == e[0] || /\d/.test(e) || !ju() && Ad.test(e) || e in (Lu || {})) + return Iu.str(e) && ("#" == e[0] || /\d/.test(e) || !Lu() && Ad.test(e) || e in (ju || {})) } - var Fd = ju() ? Oe.useEffect : Oe.useLayoutEffect; + var Fd = Lu() ? Oe.useEffect : Oe.useLayoutEffect; function Ud() { let e = (0, Oe.useState)()[1], @@ -27485,10 +27846,10 @@ t.current && e(Math.random()) } } - var Vd = e => (0, Oe.useEffect)(e, Bd), - Bd = []; + var Vd = e => (0, Oe.useEffect)(e, Gd), + Gd = []; - function Gd(e) { + function Bd(e) { let t = (0, Oe.useRef)(); return (0, Oe.useEffect)((() => { t.current = e @@ -27571,7 +27932,7 @@ } getValue(e) { let t = {}; - return Tu(this.source, ((n, r) => { + return Cu(this.source, ((n, r) => { (e => !!e && e[qd] === e)(n) ? t[r] = n.getValue(e): gd(n) ? t[r] = vd(n) : e || (t[r] = n) })), t } @@ -27579,18 +27940,18 @@ this.source = e, this.payload = this._makePayload(e) } reset() { - this.payload && Cu(this.payload, (e => e.reset())) + this.payload && Ru(this.payload, (e => e.reset())) } _makePayload(e) { if (e) { let t = new Set; - return Tu(e, this._addToPayload, t), Array.from(t) + return Cu(e, this._addToPayload, t), Array.from(t) } } _addToPayload(e) { Zd.dependencies && gd(e) && Zd.dependencies.add(e); let t = Hd(e); - t && Cu(t, (e => this.add(e))) + t && Ru(t, (e => this.add(e))) } }, Jd = class extends Xd { @@ -27638,11 +27999,11 @@ }, d = new rp(u, l), p = (0, Oe.useRef)(); - Fd((() => (p.current = d, Cu(l, (e => wd(e, d))), () => { - p.current && (Cu(p.current.deps, (e => kd(e, p.current))), uu.cancel(p.current.update)) + Fd((() => (p.current = d, Ru(l, (e => wd(e, d))), () => { + p.current && (Ru(p.current.deps, (e => kd(e, p.current))), uu.cancel(p.current.update)) }))), (0, Oe.useEffect)(u, []), Vd((() => () => { let e = p.current; - Cu(e.deps, (t => kd(t, e))) + Ru(e.deps, (t => kd(t, e))) })); let h = t.getComponentProps(s.getValue()); return Oe.createElement(e, { @@ -27665,7 +28026,7 @@ function op(e, ...t) { return Iu.fun(e) ? e(...t) : e } - var sp = (e, t) => !0 === e || !!(t && e && (Iu.fun(e) ? e(t) : Ru(e).includes(t))), + var sp = (e, t) => !0 === e || !!(t && e && (Iu.fun(e) ? e(t) : Tu(e).includes(t))), lp = (e, t) => Iu.obj(e) ? t && e[t] : e, cp = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0, up = e => e, @@ -27719,15 +28080,15 @@ let t = function(e) { let t = {}, n = 0; - if (Tu(e, ((e, r) => { - !hp[r] && (t[r] = e, n++) - })), n) return t + if (Cu(e, ((e, r) => { + !hp[r] && (t[r] = e, n++) + })), n) return t }(e); if (t) { let n = { to: t }; - return Tu(e, ((e, r) => r in t || (n[r] = e))), n + return Cu(e, ((e, r) => r in t || (n[r] = e))), n } return { ...e @@ -27849,8 +28210,8 @@ if (t) throw e.result = t, u(e), e }, m = (e, t) => { - let i = new Cp, - o = new Tp; + let i = new Rp, + o = new Cp; return (async () => { if (lu.skipAnimation) throw Ap(n), o.result = Op(r, !1), u(o), o; f(i); @@ -27860,7 +28221,7 @@ ...t, to: e }; - s.parentId = a, Tu(p, ((e, t) => { + s.parentId = a, Cu(p, ((e, t) => { Iu.und(s[t]) && (s[t] = e) })); let l = await r.start(s); @@ -27876,9 +28237,9 @@ for (let t of e) await m(t) })(e) : Promise.resolve(e(m, r.stop.bind(r))), await Promise.all([t.then(c), h]), d = Op(r.get(), !0, !1) } catch (e) { - if (e instanceof Cp) d = e.result; + if (e instanceof Rp) d = e.result; else { - if (!(e instanceof Tp)) throw e; + if (!(e instanceof Cp)) throw e; d = e.result } } finally { @@ -27893,17 +28254,17 @@ function Ap(e, t) { Du(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) } - var Cp = class extends Error { + var Rp = class extends Error { constructor() { super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.") } }, - Tp = class extends Error { + Cp = class extends Error { constructor() { super("SkipAnimationSignal") } }, - Rp = e => e instanceof Np, + Tp = e => e instanceof Np, Dp = 1, Np = class extends bd { constructor() { @@ -27923,7 +28284,7 @@ return lu.to(this, e) } interpolate(...e) { - return Ld(`${Nd}The "interpolate" function is deprecated in v9 (use "to" instead)`), lu.to(this, e) + return jd(`${Nd}The "interpolate" function is deprecated in v9 (use "to" instead)`), lu.to(this, e) } toJSON() { return this.get() @@ -27952,29 +28313,29 @@ }) } }, - jp = Symbol.for("SpringPhase"), - Lp = e => (1 & e[jp]) > 0, - Mp = e => (2 & e[jp]) > 0, - zp = e => (4 & e[jp]) > 0, - Fp = (e, t) => t ? e[jp] |= 3 : e[jp] &= -3, - Up = (e, t) => t ? e[jp] |= 4 : e[jp] &= -5, + Lp = Symbol.for("SpringPhase"), + jp = e => (1 & e[Lp]) > 0, + Mp = e => (2 & e[Lp]) > 0, + zp = e => (4 & e[Lp]) > 0, + Fp = (e, t) => t ? e[Lp] |= 3 : e[Lp] &= -3, + Up = (e, t) => t ? e[Lp] |= 4 : e[Lp] &= -5, Vp = class extends Np { constructor(e, t) { if (super(), this.animation = new class { - constructor() { - this.changed = !1, this.values = wp, this.toValues = null, this.fromValues = wp, this.config = new class { - constructor() { - this.velocity = 0, Object.assign(this, bp) - } - }, this.immediate = !1 - } - }, this.defaultProps = {}, this._state = { - paused: !1, - delayed: !1, - pauseQueue: new Set, - resumeQueue: new Set, - timeouts: new Set - }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !Iu.und(e) || !Iu.und(t)) { + constructor() { + this.changed = !1, this.values = wp, this.toValues = null, this.fromValues = wp, this.config = new class { + constructor() { + this.velocity = 0, Object.assign(this, bp) + } + }, this.immediate = !1 + } + }, this.defaultProps = {}, this._state = { + paused: !1, + delayed: !1, + pauseQueue: new Set, + resumeQueue: new Set, + timeouts: new Set + }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !Iu.und(e) || !Iu.und(t)) { let n = Iu.obj(e) ? { ...e } : { @@ -27995,7 +28356,7 @@ return e instanceof Kd ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0)) } get hasAnimated() { - return Lp(this) + return jp(this) } get isAnimating() { return Mp(this) @@ -28017,7 +28378,7 @@ config: i } = r, o = Hd(r.to); - !o && gd(r.to) && (a = Ru(vd(r.to))), r.values.forEach(((s, l) => { + !o && gd(r.to) && (a = Tu(vd(r.to))), r.values.forEach(((s, l) => { if (s.done) return; let c = s.constructor == Qd ? 1 : o ? o[l].lastPosition : a[l], u = r.immediate, @@ -28122,11 +28483,11 @@ to: n, from: r }; - return Lp(this) || (e.reverse && ([n, r] = [r, n]), r = vd(r), Iu.und(r) ? $d(this) || this._set(n) : this._set(r)), a + return jp(this) || (e.reverse && ([n, r] = [r, n]), r = vd(r), Iu.und(r) ? $d(this) || this._set(n) : this._set(r)), a } _update({ - ...e - }, t) { + ...e + }, t) { let { key: n, defaultProps: r @@ -28142,16 +28503,16 @@ state: i, actions: { pause: () => { - zp(this) || (Up(this, !0), Nu(i.pauseQueue), Yp(this, "onPause", Op(this, Bp(this, this.animation.to)), this)) + zp(this) || (Up(this, !0), Nu(i.pauseQueue), Yp(this, "onPause", Op(this, Gp(this, this.animation.to)), this)) }, resume: () => { - zp(this) && (Up(this, !1), Mp(this) && this._resume(), Nu(i.resumeQueue), Yp(this, "onResume", Op(this, Bp(this, this.animation.to)), this)) + zp(this) && (Up(this, !1), Mp(this) && this._resume(), Nu(i.resumeQueue), Yp(this, "onResume", Op(this, Gp(this, this.animation.to)), this)) }, start: this._merge.bind(this, a) } }).then((n => { if (e.loop && n.finished && (!t || !n.noop)) { - let t = Gp(e); + let t = Bp(e); if (t) return this._update(t, !0) } return n @@ -28191,11 +28552,11 @@ } = m; (r || a) && (m.velocity = 0), t.config && !f && function(e, t, n) { for (let o in n && (xp(n = { - ...n - }, t), t = { - ...n, - ...t - }), xp(e, t), Object.assign(e, t), bp) null == e[o] && (e[o] = bp[o]); + ...n + }, t), t = { + ...n, + ...t + }), xp(e, t), Object.assign(e, t), bp) null == e[o] && (e[o] = bp[o]); let { frequency: r, damping: a @@ -28222,15 +28583,15 @@ S = gd(u), O = !1; if (!S) { - let e = _ || !Lp(this) && p; + let e = _ || !jp(this) && p; (h || e) && (S = !(O = Au(mp(b), x))), (Au(s.immediate, k) || k) && Au(m.decay, g) && Au(m.velocity, v) || (S = !0) } - if (O && Mp(this) && (s.changed && !_ ? S = !0 : S || this._stop(l)), !f && ((S || gd(l)) && (s.values = y.getPayload(), s.toValues = gd(u) ? null : E == Qd ? [1] : Ru(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), S)) { + if (O && Mp(this) && (s.changed && !_ ? S = !0 : S || this._stop(l)), !f && ((S || gd(l)) && (s.values = y.getPayload(), s.toValues = gd(u) ? null : E == Qd ? [1] : Tu(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), S)) { let { onRest: e } = s; - Cu(Wp, (e => Hp(this, t, e))); - let r = Op(this, Bp(this, l)); + Ru(Wp, (e => Hp(this, t, e))); + let r = Op(this, Gp(this, l)); Nu(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && uu.batchedUpdates((() => { s.changed = !_, e?.(r, this), _ ? op(o.onRest, r) : s.onStart?.(r, this) })) @@ -28246,7 +28607,7 @@ { to: t } = this.animation; - gd(t) && (wd(t, this), Rp(t) && (e = t.priority + 1)), this.priority = e + gd(t) && (wd(t, this), Tp(t) && (e = t.priority + 1)), this.priority = e } _detach() { let { @@ -28269,7 +28630,7 @@ } _onStart() { let e = this.animation; - e.changed || (e.changed = !0, Yp(this, "onStart", Op(this, Bp(this, e.to)), this)) + e.changed || (e.changed = !0, Yp(this, "onStart", Op(this, Gp(this, e.to)), this)) } _onChange(e, t) { t || (this._onStart(), op(this.animation.onChange, e, this)), op(this.defaultProps.onChange, e, this), super._onChange(e, t) @@ -28285,24 +28646,24 @@ if (Mp(this)) { Fp(this, !1); let n = this.animation; - Cu(n.values, (e => { + Ru(n.values, (e => { e.done = !0 })), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), _d(this, { type: "idle", parent: this }); - let r = t ? Pp(this.get()) : Op(this.get(), Bp(this, e ?? n.to)); + let r = t ? Pp(this.get()) : Op(this.get(), Gp(this, e ?? n.to)); Nu(this._pendingCalls, r), n.changed && (n.changed = !1, Yp(this, "onRest", r, this)) } } }; - function Bp(e, t) { + function Gp(e, t) { let n = mp(t); return Au(mp(e.get()), n) } - function Gp(e, t = e.loop, n = e.to) { + function Bp(e, t = e.loop, n = e.to) { let r = op(t); if (r) { let a = !0 !== r && fp(r), @@ -28330,7 +28691,7 @@ } function $p(e, t) { - Tu(e, ((e, n) => null != e && t.add(n))) + Cu(e, ((e, n) => null != e && t.add(n))) } var Wp = ["onStart", "onRest", "onChange", "onPause", "onResume"]; @@ -28385,12 +28746,12 @@ let { queue: t } = this; - return e ? t = Ru(e).map(qp) : this.queue = [], this._flush ? this._flush(this, t) : (ah(this, t), Xp(this, t)) + return e ? t = Tu(e).map(qp) : this.queue = [], this._flush ? this._flush(this, t) : (ah(this, t), Xp(this, t)) } stop(e, t) { if (!!e !== e && (t = e), t) { let n = this.springs; - Cu(Ru(t), (t => n[t].stop(!!e))) + Ru(Tu(t), (t => n[t].stop(!!e))) } else Ap(this._state, this._lastAsyncId), this.each((t => t.stop(!!e))); return this } @@ -28400,7 +28761,7 @@ }); else { let t = this.springs; - Cu(Ru(e), (e => t[e].pause())) + Ru(Tu(e), (e => t[e].pause())) } return this } @@ -28410,12 +28771,12 @@ }); else { let t = this.springs; - Cu(Ru(e), (e => t[e].resume())) + Ru(Tu(e), (e => t[e].resume())) } return this } each(e) { - Tu(this.springs, e) + Cu(this.springs, e) } _onFrame() { let { @@ -28458,14 +28819,14 @@ } = t, c = Iu.obj(t.default) && t.default; o && (t.loop = !1), !1 === a && (t.to = null), !1 === i && (t.from = null); let u = Iu.arr(a) || Iu.fun(a) ? a : void 0; - u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Cu(Kp, (n => { + u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Ru(Kp, (n => { let r = t[n]; if (Iu.fun(r)) { let a = e._events[n]; t[n] = ({ - finished: e, - cancelled: t - }) => { + finished: e, + cancelled: t + }) => { let n = a.get(r); n ? (e || (n.finished = !1), t && (n.cancelled = !0)) : a.set(r, { value: null, @@ -28494,7 +28855,7 @@ })); let f = Ep(e, await Promise.all(p)); if (o && f.finished && (!n || !f.noop)) { - let n = Gp(t, o, a); + let n = Bp(t, o, a); if (n) return ah(e, [n]), Jp(e, n, !0) } return l && uu.batchedUpdates((() => l(f, e, e.item))), f @@ -28504,7 +28865,7 @@ let n = { ...e.springs }; - return t && Cu(Ru(t), (e => { + return t && Ru(Tu(t), (e => { Iu.und(e.keys) && (e = qp(e)), Iu.obj(e.to) || (e = { ...e, to: void 0 @@ -28513,7 +28874,7 @@ } function th(e, t) { - Tu(t, ((t, n) => { + Cu(t, ((t, n) => { e.springs[n] || (e.springs[n] = t, wd(t, e)) })) } @@ -28524,20 +28885,20 @@ } function rh(e, t, n) { - t.keys && Cu(t.keys, (r => { + t.keys && Ru(t.keys, (r => { (e[r] || (e[r] = n(r)))._prepareNode(t) })) } function ah(e, t) { - Cu(t, (t => { + Ru(t, (t => { rh(e.springs, t, (t => nh(t, e))) })) } var ih = ({ - children: e, - ...t - }) => { + children: e, + ...t + }) => { let n = (0, Oe.useContext)(oh), r = t.pause || !!n.pause, a = t.immediate || !!n.immediate; @@ -28579,7 +28940,7 @@ t = function(t) { Md(`${Nd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`); let r = []; - return Cu(e, ((e, a) => { + return Ru(e, ((e, a) => { if (Iu.und(t)) r.push(e.start()); else { let i = n(t, e, a); @@ -28593,17 +28954,17 @@ let n = e.indexOf(t); ~n && e.splice(n, 1) }, t.pause = function() { - return Cu(e, (e => e.pause(...arguments))), this + return Ru(e, (e => e.pause(...arguments))), this }, t.resume = function() { - return Cu(e, (e => e.resume(...arguments))), this + return Ru(e, (e => e.resume(...arguments))), this }, t.set = function(t) { - Cu(e, ((e, n) => { + Ru(e, ((e, n) => { let r = Iu.fun(t) ? t(n, e) : t; r && e.set(r) })) }, t.start = function(t) { let n = []; - return Cu(e, ((e, r) => { + return Ru(e, ((e, r) => { if (Iu.und(t)) n.push(e.start()); else { let a = this._getProps(t, e, r); @@ -28611,9 +28972,9 @@ } })), n }, t.stop = function() { - return Cu(e, (e => e.stop(...arguments))), this + return Ru(e, (e => e.stop(...arguments))), this }, t.update = function(t) { - return Cu(e, ((e, n) => e.update(this._getProps(t, e, n)))), this + return Ru(e, ((e, n) => e.update(this._getProps(t, e, n)))), this }; let n = function(e, t, n) { return Iu.fun(e) ? e(n, t) : e @@ -28633,27 +28994,27 @@ Au(t, this.get()) || ($d(this).setValue(t), this._onChange(t, this.idle)), !this.idle && dh(this._active) && ph(this) } _get() { - let e = Iu.arr(this.source) ? this.source.map(vd) : Ru(vd(this.source)); + let e = Iu.arr(this.source) ? this.source.map(vd) : Tu(vd(this.source)); return this.calc(...e) } _start() { - this.idle && !dh(this._active) && (this.idle = !1, Cu(Hd(this), (e => { + this.idle && !dh(this._active) && (this.idle = !1, Ru(Hd(this), (e => { e.done = !1 })), lu.skipAnimation ? (uu.batchedUpdates((() => this.advance())), ph(this)) : qu.start(this)) } _attach() { let e = 1; - Cu(Ru(this.source), (t => { - gd(t) && wd(t, this), Rp(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) + Ru(Tu(this.source), (t => { + gd(t) && wd(t, this), Tp(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) })), this.priority = e, this._start() } _detach() { - Cu(Ru(this.source), (e => { + Ru(Tu(this.source), (e => { gd(e) && kd(e, this) })), this._active.clear(), ph(this) } eventObserved(e) { - "change" == e.type ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : "idle" == e.type ? this._active.delete(e.parent) : "priority" == e.type && (this.priority = Ru(this.source).reduce(((e, t) => Math.max(e, (Rp(t) ? t.priority : 0) + 1)), 0)) + "change" == e.type ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : "idle" == e.type ? this._active.delete(e.parent) : "priority" == e.type && (this.priority = Tu(this.source).reduce(((e, t) => Math.max(e, (Tp(t) ? t.priority : 0) + 1)), 0)) } }; @@ -28666,7 +29027,7 @@ } function ph(e) { - e.idle || (e.idle = !0, Cu(Hd(e), (e => { + e.idle || (e.idle = !0, Ru(Hd(e), (e => { e.done = !0 })), _d(e, { type: "idle", @@ -28731,19 +29092,19 @@ xh = (e, t) => Iu.arr(e) ? e.every((e => xh(e, t))) : Iu.num(e) ? e === t : parseFloat(e) === t, wh = class extends Xd { constructor({ - x: e, - y: t, - z: n, - ...r - }) { + x: e, + y: t, + z: n, + ...r + }) { let a = [], i = []; - (e || t || n) && (a.push([e || 0, t || 0, n || 0]), i.push((e => [`translate3d(${e.map((e=>bh(e,"px"))).join(",")})`, xh(e, 0)]))), Tu(r, ((e, t) => { + (e || t || n) && (a.push([e || 0, t || 0, n || 0]), i.push((e => [`translate3d(${e.map((e=>bh(e,"px"))).join(",")})`, xh(e, 0)]))), Cu(r, ((e, t) => { if ("transform" === t) a.push([e || ""]), i.push((e => [e, "" === e])); else if (vh.test(t)) { if (delete r[t], Iu.und(e)) return; let n = yh.test(t) ? "px" : _h.test(t) ? "deg" : ""; - a.push(Ru(e)), i.push("rotate3d" === t ? ([e, t, r, a]) => [`rotate3d(${e},${t},${r},${bh(a,n)})`, xh(a, 0)] : e => [`${t}(${e.map((e=>bh(e,n))).join(",")})`, xh(e, t.startsWith("scale") ? 1 : 0)]) + a.push(Tu(e)), i.push("rotate3d" === t ? ([e, t, r, a]) => [`rotate3d(${e},${t},${r},${bh(a,n)})`, xh(a, 0)] : e => [`${t}(${e.map((e=>bh(e,n))).join(",")})`, xh(e, t.startsWith("scale") ? 1 : 0)]) } })), a.length && (r.transform = new kh(a, i)), super(r) } @@ -28758,24 +29119,24 @@ _get() { let e = "", t = !0; - return Cu(this.inputs, ((n, r) => { + return Ru(this.inputs, ((n, r) => { let a = vd(n[0]), [i, o] = this.transforms[r](Iu.arr(a) ? a : n.map(vd)); e += " " + i, t = t && o })), t ? "none" : e } observerAdded(e) { - 1 == e && Cu(this.inputs, (e => Cu(e, (e => gd(e) && wd(e, this))))) + 1 == e && Ru(this.inputs, (e => Ru(e, (e => gd(e) && wd(e, this))))) } observerRemoved(e) { - 0 == e && Cu(this.inputs, (e => Cu(e, (e => gd(e) && kd(e, this))))) + 0 == e && Ru(this.inputs, (e => Ru(e, (e => gd(e) && kd(e, this))))) } eventObserved(e) { "change" == e.type && (this._value = null), _d(this, e) } }; lu.assign({ - batchedUpdates: La.unstable_batchedUpdates, + batchedUpdates: ja.unstable_batchedUpdates, createStringInterpolator: Dd, colors: { transparent: 0, @@ -28944,7 +29305,7 @@ let t = ip(e) || "Anonymous"; return (e = Iu.str(e) ? i[e] || (i[e] = np(e, a)) : e[ap] || (e[ap] = np(e, a))).displayName = `Animated(${t})`, e }; - return Tu(e, ((t, n) => { + return Cu(e, ((t, n) => { Iu.arr(e) && (n = ip(t)), i[n] = i(t) })), { animated: i @@ -28974,18 +29335,18 @@ }, createAnimatedStyle: e => new wh(e), getComponentProps: ({ - scrollTop: e, - scrollLeft: t, - ...n - }) => n + scrollTop: e, + scrollLeft: t, + ...n + }) => n }).animated; let Sh = (0, Oe.forwardRef)((({ - active: e, - className: t, - logo: n, - name: r, - ...a - }, i) => { + active: e, + className: t, + logo: n, + name: r, + ...a + }, i) => { let o = fi("sol-c-game-switcher__item", t), s = Pi({ src: n @@ -29011,14 +29372,14 @@ }) })), Oh = mi((({ - as: e = "nav", - children: t, - className: n, - id: r, - items: a, - title: i, - ...o - }, s) => { + as: e = "nav", + children: t, + className: n, + id: r, + items: a, + title: i, + ...o + }, s) => { let l = ki(r) + "-label", c = fi("sol-c-game-switcher", n), u = (0, Oe.useRef)(null), @@ -29048,7 +29409,7 @@ })), []), l = (0, Oe.useRef)([...s.ctrls]), c = [], - u = Gd(e) || 0; + u = Bd(e) || 0; function d(e, n) { for (let a = e; a < n; a++) { @@ -29060,7 +29421,7 @@ }(n)) } }(0, Oe.useMemo)((() => { - Cu(l.current.slice(e, u), (e => { + Ru(l.current.slice(e, u), (e => { yp(e, a), e.stop(!0) })), l.current.length = e, d(u, e) }), [e]), (0, Oe.useMemo)((() => { @@ -29068,14 +29429,14 @@ }), n); let p = l.current.map(((e, t) => eh(e, c[t]))), h = (0, Oe.useContext)(ih), - f = Gd(h), + f = Bd(h), m = h !== f && gp(h); Fd((() => { i.current++, s.ctrls = l.current; let { queue: e } = s; - e.length && (s.queue = [], Cu(e, (e => e()))), Cu(l.current, ((e, t) => { + e.length && (s.queue = [], Ru(e, (e => e()))), Ru(l.current, ((e, t) => { a?.add(e), m && e.start({ default: h }); @@ -29083,7 +29444,7 @@ n && (_p(e, n.ref), e.ref ? e.queue.push(n) : e.start(n)) })) })), Vd((() => () => { - Cu(s.ctrls, (e => e.stop(!0))) + Ru(s.ctrls, (e => e.stop(!0))) })); let g = p.map((e => ({ ...e @@ -29136,25 +29497,25 @@ })); za('@layer components{.sol-c-input{--_border-color:var(--sol-color-interactive);--_border-width:var(--sol-border-1);--_block-size:var(--sol-size-300);--_icon-size:var(--sol-size-100);--_padding:var(--sol-size-100);--_separator-color:var(--sol-color-surface-2);--_separator-size:var(--sol-size-150);--_separator-width:var(--sol-border-1);align-items:flex-start;background:var(--sol-color-surface-0);border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;flex:1;gap:var(--_padding);padding-inline:var(--_padding);position:relative}.sol-c-input:before{border:var(--_border-width) solid var(--_border-color);border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute;transition:border-color var(--sol-motion-250)}.sol-c-input:hover{--_border-color:var(--sol-color-interactive-hovered)}.sol-c-input:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-pressed);--_border-width:var(--sol-focus-width)}.sol-c-input--disabled{opacity:.4;pointer-events:none}.sol-c-input--invalid{--_border-color:var(--sol-color-interactive-negative)}.sol-c-input--invalid:hover{--_border-color:var(--sol-color-interactive-negative-hovered)}.sol-c-input--invalid:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-negative-pressed)}.sol-c-input--has-start-icon,.sol-c-input:has(.sol-c-input__icon--start){--_offset-start:calc(var(--_icon-size) + var(--_padding))}.sol-c-input--has-end-icon,.sol-c-input:has(.sol-c-input__icon--end){--_offset-end:calc(var(--_padding) + var(--_icon-size))}.sol-c-input__element{align-items:center;background:#0000 none;border:0;border-radius:0;box-shadow:none;display:flex;flex:1;font:1rem/1.5 sans-serif;inline-size:100%;margin-block:0;margin-inline-end:calc((var(--_padding) + var(--_offset-end, 0px))*-1);margin-inline-start:calc((var(--_padding) + var(--_offset-start, 0px))*-1);min-block-size:var(--_block-size);padding-block:var(--sol-size-025);padding-inline-end:calc(var(--_padding) + var(--_offset-end, 0px));padding-inline-start:calc(var(--_padding) + var(--_offset-start, 0px));position:relative;text-align:start;text-overflow:ellipsis}.sol-c-input__element:is(textarea){block-size:calc(var(--_block-size)*2);padding-block:var(--sol-size-075);resize:vertical;scroll-padding-block:var(--sol-size-075)}.sol-c-input__element:is(select){appearance:none}.sol-c-input__element:is(select) optgroup,.sol-c-input__element:is(select) optgroup:checked,.sol-c-input__element:is(select) option,.sol-c-input__element:is(select) option:checked{background:var(--sol-color-surface-0)}.sol-c-input__element[type=number]{appearance:textfield}.sol-c-input__element[type=number]::-webkit-inner-spin-button,.sol-c-input__element[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.sol-c-input__element:is(button)[data-placeholder]:empty:before{content:attr(data-placeholder);display:block;pointer-events:none}.sol-c-input__element:is(button)[data-placeholder]:before,.sol-c-input__element:is(input,textarea)::placeholder,.sol-c-input__element:is(select):has(option[value=""]:not(:empty):checked){color:var(--sol-color-foreground-weak);opacity:1;transition:opacity var(--sol-motion-250)}.sol-c-input__element:focus,.sol-c-input__element:focus-visible{outline:none}.sol-c-input__floating{--_label-size:var(--sol-text-label-xs-line-height);--_label-offset:calc(var(--_label-size)/2);display:flex;flex:1;position:relative}.sol-c-input__floating .sol-c-input__element{padding-block-start:calc(var(--_label-offset) + var(--_label-size))}.sol-c-input__floating .sol-c-input__element:not(:focus):is(input,textarea)::placeholder,.sol-c-input__floating .sol-c-input__element:not(:focus):is(select):has(option[value=""]:not(:empty):checked),.sol-c-input__floating .sol-c-input__element:not(:focus,[aria-expanded=true]):is(button)[data-placeholder]:before{opacity:0}.sol-c-input__label{inset-block-start:var(--_label-offset);inset-inline:0;pointer-events:none;position:absolute;z-index:3}.sol-c-input__label-indicator,.sol-c-input__label-text{font:var(--sol-text-label-xs)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label{inset-block-start:var(--sol-size-075)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-text{font:var(--sol-text-label-m)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-indicator{font:var(--sol-text-label-s)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-input__label{transition:inset-block-start var(--sol-motion-250)}.sol-c-input__label-indicator,.sol-c-input__label-text{transition-duration:var(--sol-motion-250);transition-property:font-size,line-height}}.sol-c-input__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_block-size) - var(--_icon-size))/2);pointer-events:none}.sol-c-input__prefix,.sol-c-input__suffix{align-items:center;display:flex;min-block-size:var(--_block-size);pointer-events:none;position:relative}.sol-c-input__prefix>*,.sol-c-input__suffix>*{pointer-events:auto}.sol-c-input__separator{background:var(--_separator-color);block-size:var(--_separator-size);inline-size:var(--_separator-width);margin-block:calc((var(--_block-size) - var(--_separator-size))/2)}}'); let Ph = (0, Oe.forwardRef)((({ - as: e, - className: t, - id: n, - "aria-describedby": r, - "aria-labelledby": a, - disabled: i, - invalid: o, - required: s, - placeholder: l = " ", - type: c, - endIcon: u, - icon: d, - prefix: p, - suffix: h, - showPasswordLabel: f = "Show password", - hidePasswordLabel: m = "Hide password", - wrapperProps: g, - ...v - }, y) => { + as: e, + className: t, + id: n, + "aria-describedby": r, + "aria-labelledby": a, + disabled: i, + invalid: o, + required: s, + placeholder: l = " ", + type: c, + endIcon: u, + icon: d, + prefix: p, + suffix: h, + showPasswordLabel: f = "Show password", + hidePasswordLabel: m = "Hide password", + wrapperProps: g, + ...v + }, y) => { let _ = (0, Oe.useRef)(null), b = (0, Oe.useId)(), x = $c(), @@ -29174,8 +29535,8 @@ P = x?.isInvalid ?? o, I = x?.isRequired ?? s, A = x?.getDescribedby(r) ?? r, - C = x?.getLabelledby(a) ?? a, - T = (0, Oe.useMemo)((() => x ? Ka.jsxs(uo, { + R = x?.getLabelledby(a) ?? a, + C = (0, Oe.useMemo)((() => x ? Ka.jsxs(uo, { align: "baseline", as: x.labelElementType, className: "sol-c-input__label", @@ -29196,7 +29557,7 @@ children: ["(", x.necessityIndicator, ")"] })] }) : null), [x, I]), - R = (0, Oe.useMemo)((() => "password" === c ? Ka.jsxs(Ka.Fragment, { + T = (0, Oe.useMemo)((() => "password" === c ? Ka.jsxs(Ka.Fragment, { children: [Ka.jsx(to, { "aria-label": w ? m : f, color: P ? "negative" : void 0, @@ -29208,14 +29569,14 @@ }) : h), [m, P, w, f, h, c]), D = "select" === e ? ai : u, N = fi("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", P && "sol-c-input--invalid", I && "sol-c-input--required", g?.className), - j = fi("sol-c-input__element", t), - L = (0, Oe.createElement)(e ?? "input", { + L = fi("sol-c-input__element", t), + j = (0, Oe.createElement)(e ?? "input", { "aria-describedby": A, - "aria-labelledby": C, + "aria-labelledby": R, "aria-required": !!I || void 0, "aria-invalid": !!P || void 0, autoComplete: "password" === c ? "off" : void 0, - className: j, + className: L, disabled: O, id: E, placeholder: l, @@ -29238,29 +29599,29 @@ source: d }), x && x.label && "floating" === x.labelType ? Ka.jsxs("div", { className: "sol-c-input__floating", - children: [T, L] - }) : L, D && Ka.jsx(Ki, { + children: [C, j] + }) : j, D && Ka.jsx(Ki, { className: "sol-c-input__icon sol-c-input__icon--end", source: D - }), D && R && Ka.jsx("span", { + }), D && T && Ka.jsx("span", { "aria-hidden": !0, className: "sol-c-input__separator" - }), R && Ka.jsx("span", { + }), T && Ka.jsx("span", { className: "sol-c-input__suffix", - children: R + children: T })] }) })); za("@layer components{.sol-c-link{--_gap:var(--sol-size-025);border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-link:not(.sol-c-link--inherit){color:var(--sol-color-interactive);transition:color var(--sol-motion-250)}.sol-c-link:not(.sol-c-link--inherit):hover{color:var(--sol-color-interactive-hovered)}.sol-c-link:not(.sol-c-link--inherit):active{color:var(--sol-color-interactive-pressed)}.sol-c-link--inherit:hover{text-decoration:none}.sol-c-link--external{cursor:var(--sol-cursor-link)}.sol-c-link__icon{position:relative;top:-.125em}.sol-c-link__icon--start{margin-right:var(--_gap)}.sol-c-link__icon--end{margin-left:var(--_gap)}.sol-c-link__orphan{display:inline;white-space:nowrap}}"); let Ih = mi((({ - children: e, - className: t, - external: n, - icon: r, - startIcon: a, - inherit: i, - ...o - }, s) => { + children: e, + className: t, + external: n, + icon: r, + startIcon: a, + inherit: i, + ...o + }, s) => { let l = fi("sol-c-link", n && "sol-c-link--external", i && "sol-c-link--inherit", t); return Ka.jsxs(Wi, { className: l, @@ -29286,22 +29647,22 @@ medium: 12, large: 16 }, - Ch = (0, Oe.createContext)(null), - Th = () => { - let e = (0, Oe.useContext)(Ch); + Rh = (0, Oe.createContext)(null), + Ch = () => { + let e = (0, Oe.useContext)(Rh); if (!e) throw Error("Listbox components must be wrapped in "); return e }, - Rh = ((0, Oe.forwardRef)((({ - children: e, - className: t, - label: n, - ...r - }, a) => { + Th = ((0, Oe.forwardRef)((({ + children: e, + className: t, + label: n, + ...r + }, a) => { let i = (0, Oe.useId)(), { isMounted: o - } = Th(); + } = Ch(); if (!o) return Ka.jsx(Ka.Fragment, { children: e }); @@ -29326,14 +29687,14 @@ })] }) })), (0, Oe.memo)((0, Oe.forwardRef)((({ - children: e, - active: t, - disabled: n, - selected: r, - getItemProps: a, - onSelect: i, - ...o - }, s) => Ka.jsxs("li", { + children: e, + active: t, + disabled: n, + selected: r, + getItemProps: a, + onSelect: i, + ...o + }, s) => Ka.jsxs("li", { "aria-selected": r, "aria-disabled": n, ref: s, @@ -29363,14 +29724,14 @@ })] }))))), Dh = (0, Oe.forwardRef)((({ - children: e, - className: t, - disabled: n = !1, - id: r, - label: a, - value: i, - ...o - }, s) => { + children: e, + className: t, + disabled: n = !1, + id: r, + label: a, + value: i, + ...o + }, s) => { let { ref: l, index: c @@ -29387,7 +29748,7 @@ setLabel: v, allowEmpty: y, isMounted: _ - } = Th(); + } = Ch(); Ii((() => { i === m && c !== p && (h(c), v(e ?? a)) }), [e, c, m, a, p, v, h, i]); @@ -29402,7 +29763,7 @@ let w = !n && c === p, k = !n && c === d, E = fi("sol-c-listbox__item", k && "sol-c-listbox__item--active", t); - return Ka.jsx(Rh, { + return Ka.jsx(Th, { className: E, ref: x, active: k, @@ -29415,34 +29776,34 @@ }) })), Nh = (0, Oe.forwardRef)((({ - allowEmpty: e, - anchor: t, - children: n, - className: r, - defaultValue: a = "", - loop: i = !0, - name: o, - offset: s = "small", - onChange: l, - onValueChange: c, - overlay: u = !1, - placement: d = "bottom-start", - style: p, - trigger: h, - value: f, - empty: m = "", - ...g - }, v) => { + allowEmpty: e, + anchor: t, + children: n, + className: r, + defaultValue: a = "", + loop: i = !0, + name: o, + offset: s = "small", + onChange: l, + onValueChange: c, + overlay: u = !1, + placement: d = "bottom-start", + style: p, + trigger: h, + value: f, + empty: m = "", + ...g + }, v) => { let y = (({ - allowEmpty: e, - anchor: t, - loop: n, - offset: r = "small", - placement: a, - value: i, - defaultValue: o, - onValueChange: s - } = {}) => { + allowEmpty: e, + anchor: t, + loop: n, + offset: r = "small", + placement: a, + value: i, + defaultValue: o, + onValueChange: s + } = {}) => { let [l, c] = _i({ value: i, defaultValue: o, @@ -29459,11 +29820,11 @@ padding: Ah[r] }), ss({ apply({ - availableHeight: e, - availableWidth: t, - elements: n, - rects: r - }) { + availableHeight: e, + availableWidth: t, + elements: n, + rects: r + }) { n.floating.style.setProperty("--sol-c-listbox-available-height", `${e}px`), Object.assign(n.floating.style, { maxInlineSize: `${t}px`, inlineSize: `${r.reference.width}px` @@ -29544,27 +29905,27 @@ label: P, isMounted: I, status: A, - elementsRef: C, - labelsRef: T + elementsRef: R, + labelsRef: C } = y, - R = nl([v, b.setReference, h.ref]), + T = nl([v, b.setReference, h.ref]), { name: D } = $i(), N = fi("sol-c-listbox", "sol-u-transition-floating", r); return Ka.jsx(_l, { - elementsRef: C, - labelsRef: T, - children: Ka.jsxs(Ch.Provider, { + elementsRef: R, + labelsRef: C, + children: Ka.jsxs(Rh.Provider, { value: y, children: [(0, Oe.cloneElement)("function" == typeof h ? h({ isOpen: S, label: P, value: O }) : h, k({ - ref: R + ref: T }), h.props?.children || P || m), I ? Ka.jsx(tc, { - children: Ka.jsx(jc, { + children: Ka.jsx(Lc, { condition: u, wrap: e => Ka.jsx(oc, { "data-sol-listbox-overlay": !0, @@ -29601,7 +29962,7 @@ }) })); za("@layer components{.sol-c-loading{background:var(--sol-c-loading-background,var(--sol-color-surface-1));color:var(--sol-c-loading-foreground,var(--sol-color-foreground-highlight));flex:1;position:relative}.sol-c-loading__animation{width:19.25rem}}"); - var jh = { + var Lh = { v: "5.9.0", fr: 29.9700012207031, ip: 0, @@ -38659,16 +39020,16 @@ }], markers: [] }; - let Lh = mi((({ - as: e = "div", - children: t, - handleAnimWipeTrigger: n, - className: r, - ...a - }, i) => { + let jh = mi((({ + as: e = "div", + children: t, + handleAnimWipeTrigger: n, + className: r, + ...a + }, i) => { let o = fi("sol-c-loading", r); n?.(); - let s = Ui(jh, { + let s = Ui(Lh, { loop: !1 }); return Ka.jsxs(uo, { @@ -38689,7 +39050,7 @@ })] }) })); - za("@layer components{.sol-c-menu{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);color:var(--sol-color-foreground);display:flex;flex-direction:column;gap:var(--sol-size-025);inline-size:max-content;overflow:auto;padding:var(--sol-size-050)}.sol-c-menu :disabled:focus,.sol-c-menu :disabled:focus-visible,.sol-c-menu [aria-disabled=true]:focus,.sol-c-menu [aria-disabled=true]:focus-visible,.sol-c-menu:focus,.sol-c-menu:focus-visible{outline:none}.sol-c-menu,[data-sol-menu-overlay]{z-index:var(--sol-z-menu)}.sol-c-menu__title{max-inline-size:14rem;padding:var(--sol-size-075);word-break:break-all}}"); + za("@layer components{.sol-c-menu{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);color:var(--sol-color-foreground);display:flex;flex-direction:column;gap:var(--sol-size-025);inline-size:max-content;overflow:auto;padding:var(--sol-size-050)}.sol-c-menu :disabled:focus,.sol-c-menu :disabled:focus-visible,.sol-c-menu [aria-disabled=true]:focus,.sol-c-menu [aria-disabled=true]:focus-visible,.sol-c-menu:focus,.sol-c-menu:focus-visible{outline:none}.sol-c-menu,[data-sol-menu-overlay]{z-index:var(--sol-z-menu)}.sol-c-menu__title{max-inline-size:25rem;padding:var(--sol-size-075);word-break:break-all}}"); let Mh = { none: 0, small: 8, @@ -38703,13 +39064,13 @@ return e }, Uh = (0, Oe.forwardRef)((({ - className: e, - close: t = !0, - disabled: n, - label: r, - onClick: a, - ...i - }, o) => { + className: e, + close: t = !0, + disabled: n, + label: r, + onClick: a, + ...i + }, o) => { let { ref: s, index: l @@ -38739,13 +39100,13 @@ }) })), Vh = mi((({ - className: e, - close: t = !1, - onClick: n, - subtitle: r, - title: a, - ...i - }, o) => { + className: e, + close: t = !1, + onClick: n, + subtitle: r, + title: a, + ...i + }, o) => { let s = fi("sol-c-menu__title", e), { setIsOpen: l @@ -38763,6 +39124,7 @@ children: [Ka.jsx(Qi, { offset: !0, variant: "emphasis-m", + truncate: 1, children: a }), r && Ka.jsx(Qi, { color: "foreground-weak", @@ -38771,24 +39133,24 @@ })] }) })), - Bh = (0, Oe.forwardRef)((({ - anchor: e, - children: t, - className: n, - offset: r = "small", - overlay: a = !1, - placement: i = "bottom-start", - loop: o = !0, - style: s, - trigger: l, - ...c - }, u) => { + Gh = (0, Oe.forwardRef)((({ + anchor: e, + children: t, + className: n, + offset: r = "small", + overlay: a = !1, + placement: i = "bottom-start", + loop: o = !0, + style: s, + trigger: l, + ...c + }, u) => { let d = (({ - anchor: e, - loop: t, - offset: n = "small", - placement: r - } = {}) => { + anchor: e, + loop: t, + offset: n = "small", + placement: r + } = {}) => { let [a, i] = (0, Oe.useState)(null), [o, s] = (0, Oe.useState)(!1), l = (0, Oe.useRef)([]), c = (0, Oe.useRef)([]), u = hc({ open: o, onOpenChange: s, @@ -38799,11 +39161,11 @@ alignmentAxis: 0 }), ss({ apply({ - availableWidth: e, - availableHeight: t, - elements: n, - rects: r - }) { + availableWidth: e, + availableHeight: t, + elements: n, + rects: r + }) { Object.assign(n.floating.style, { maxInlineSize: `${e}px`, maxBlockSize: `${t}px` @@ -38879,7 +39241,7 @@ }) : l, g({ ref: k })), _ && Ka.jsx(tc, { - children: Ka.jsx(jc, { + children: Ka.jsx(Lc, { condition: a, wrap: e => Ka.jsx(oc, { "data-sol-menu-overlay": !0, @@ -38910,7 +39272,7 @@ }) })); za("@layer components{.sol-c-popover{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);display:flex;flex-direction:column;gap:var(--sol-size-100);inline-size:max-content;max-inline-size:36rem;min-inline-size:26.25rem;overflow:auto;padding:var(--sol-size-125)}.sol-c-popover:focus,.sol-c-popover:focus-visible{outline:none}.sol-c-popover,[data-sol-popover-overlay]{z-index:var(--sol-z-popover)}.sol-c-popover--full-width{inline-size:100%}.sol-c-popover__title{flex:1}.sol-c-popover__footer{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);padding-block-start:var(--sol-size-100)}}"); - let Gh = { + let Bh = { none: 0, small: 8, medium: 12, @@ -38923,11 +39285,11 @@ return e }, Wh = (mi((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, a) => { + as: e = "p", + id: t, + onClick: n, + ...r + }, a) => { let { setDescriptionId: i } = $h(), o = ki(t); @@ -38937,11 +39299,11 @@ ...r }) })), mi((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, a) => { + as: e = "p", + id: t, + onClick: n, + ...r + }, a) => { let { setLabelId: i } = $h(), o = ki(t); @@ -38952,53 +39314,53 @@ }) }))), Hh = (0, Oe.forwardRef)((({ - anchor: e, - children: t, - className: n, - close: r, - defaultOpen: a, - footer: i, - fullWidth: o, - modal: s = !0, - offset: l = "small", - open: c, - onOpenChange: u, - overlay: d = !1, - placement: p = "bottom-start", - style: h, - title: f, - trigger: m, - ...g - }, v) => { + anchor: e, + children: t, + className: n, + close: r, + defaultOpen: a, + footer: i, + fullWidth: o, + modal: s = !0, + offset: l = "small", + open: c, + onOpenChange: u, + overlay: d = !1, + placement: p = "bottom-start", + style: h, + title: f, + trigger: m, + ...g + }, v) => { let y = (({ - anchor: e, - defaultOpen: t, - offset: n = "small", - open: r, - onOpenChange: a, - placement: i - } = {}) => { - let [o, s] = (0, Oe.useState)(t), [l, c] = (0, Oe.useState)(), [u, d] = (0, Oe.useState)(), p = r ?? o, h = a ?? s, f = Rl(), m = hc({ + anchor: e, + defaultOpen: t, + offset: n = "small", + open: r, + onOpenChange: a, + placement: i + } = {}) => { + let [o, s] = (0, Oe.useState)(t), [l, c] = (0, Oe.useState)(), [u, d] = (0, Oe.useState)(), p = r ?? o, h = a ?? s, f = Tl(), m = hc({ open: p, onOpenChange: h, nodeId: f, placement: i, whileElementsMounted: Ns, middleware: [is({ - mainAxis: Gh[n], + mainAxis: Bh[n], alignmentAxis: 0 }), os({ - padding: Gh[n] + padding: Bh[n] }), ss({ apply({ - availableHeight: e, - elements: t - }) { + availableHeight: e, + elements: t + }) { Object.assign(t.floating.style, { maxBlockSize: `${e}px` }) }, - padding: Gh[n] + padding: Bh[n] })], transform: !1 }), { @@ -39047,10 +39409,10 @@ setIsOpen: P, status: I, labelId: A, - descriptionId: C, - nodeId: T + descriptionId: R, + nodeId: C } = y, - R = nl([b.setReference, (m ?? t).ref, v]), + T = nl([b.setReference, (m ?? t).ref, v]), { name: D } = $i(), @@ -39058,13 +39420,13 @@ return Ka.jsx(qh.Provider, { value: y, children: Ka.jsxs(Dl, { - id: T, + id: C, children: [(0, Oe.cloneElement)("function" == typeof m ? m({ isOpen: O }) : m, k({ - ref: R + ref: T })), S && Ka.jsx(tc, { - children: Ka.jsx(jc, { + children: Ka.jsx(Lc, { condition: d, wrap: e => Ka.jsx(oc, { "data-sol-popover-overlay": !0, @@ -39075,7 +39437,7 @@ modal: s, children: Ka.jsxs("div", { "aria-labelledby": A, - "aria-describedby": C, + "aria-describedby": R, className: N, "data-sol-placement": w, "data-sol-status": I, @@ -39126,7 +39488,7 @@ }) }) })), - Yh = (0, Oe.forwardRef)(((e, t) => null == Cl() ? Ka.jsx(Nl, { + Yh = (0, Oe.forwardRef)(((e, t) => null == Rl() ? Ka.jsx(Nl, { children: Ka.jsx(Hh, { ref: t, ...e @@ -39137,30 +39499,31 @@ }))); za("@layer components{.sol-c-rsi-logo{--_size:var(--sol-c-rsi-logo-size,var(--sol-size-100));fill:currentColor;block-size:var(--_size);display:inline-block;flex-shrink:0}}"); let Kh = ({ - className: e, - ...t - }) => { - let n = fi("sol-c-rsi-logo", e); - return Ka.jsxs("svg", { - className: n, - xmlns: "http://www.w3.org/2000/svg", - height: "16", - fill: "currentColor", - viewBox: "0 0 216 80", - ...t, - children: [Ka.jsx("path", { - d: "M80.53 0c5.2 0 8.5 3.67 7.57 8.26l-.16.63L82.5 28.4a15.11 15.11 0 0 1-7.42 9.25l-.8.4-15.88 7.37 3.47 13.77a3.2 3.2 0 0 0 2.56 2.13l.46.03H75.3L70.21 80H53.77c-3.81 0-7.53-2.69-8.72-5.99l-.2-.62-4.98-19.3-13.9 6.5L20.62 80H0L21.78 0h58.75Zm69.93 0-.01.04-5.1 18.53-.02.07h-.02l-30.95-.07c-1.85 0-3.24.65-3.7 2.38-.41 1.54.09 2.74 1.5 3.75l.58.37 33.07 20.48c3.15 1.93 4.97 6.24 4.42 9.71l-.14.69-4.74 17.44c-.87 3.37-4.61 6.25-8.52 6.58l-.73.03H94.46l5.1-18.64h25.09c1.85 0 3.24-1.19 3.58-2.27.42-1.27.18-2.27-1.22-3.33l-.5-.35L93.2 34.6c-3.15-1.94-4.97-6.25-4.43-9.72l.15-.69 4.74-17.55c.87-3.36 4.5-6.25 8.3-6.58l.72-.03L150.43 0h.03Zm24.29 0 20.68.04L173.47 80h-20.91L174.66.04h.08l.01-.04ZM88.68 61.48 83.64 80h-3.37l5.01-18.52h3.4Zm-6.73 0L76.73 80h-3.6l5.27-18.49.01-.03h3.54Zm13.87 0L90.64 80H87l5.19-18.52h3.63ZM61.14 18.52H37.43l-5.07 18.92L60.33 24.1c2.3-1.1 3.11-2.4 3.46-3.5.46-1.42-.8-2.08-2.65-2.08ZM171.05 0 166 18.52h-3.35L167.73 0h3.32Zm-7.14 0-5.04 18.52h-3.37L160.6 0h3.3Zm-6.8 0-.02.04h.1l-5.21 18.42-.02.06h-3.6l.01-.06L153.5.04V0h3.61Z" - }), Ka.jsx("path", { - d: "M200.57 7.74C200.57 2.42 203 0 208.3 0s7.7 2.43 7.7 7.74c0 5.31-2.41 7.74-7.71 7.74s-7.72-2.43-7.72-7.74Zm14.27 0c0-4.54-2.06-6.6-6.57-6.6-4.5 0-6.56 2.05-6.56 6.6 0 4.53 2.05 6.58 6.56 6.58 4.52 0 6.56-2.05 6.56-6.58Zm-3.45-1.32c0 1.52-.4 2.14-1.56 2.36l1.74 2.78c.09.08.05.17-.08.17h-1.44c-.18 0-.25-.04-.32-.18l-1.7-2.65h-.87v2.67c0 .13-.01.14-.12.14h-1.4c-.13 0-.14-.02-.14-.14V4.03c0-.08.03-.12.12-.12.93-.08 1.92-.1 2.8-.1 2.21 0 2.97.6 2.97 2.61Zm-4.23-1.17v2.4h1.08c1.11 0 1.45-.2 1.45-1.17 0-1-.34-1.23-1.45-1.23h-1.08Z" - })] - }) - }, - Qh = (0, Oe.forwardRef)((({ - children: e, - description: t, - label: n, - ...r - }, a) => Ka.jsx(Dh, { + className: e, + ...t + }) => { + let n = fi("sol-c-rsi-logo", e); + return Ka.jsxs("svg", { + className: n, + xmlns: "http://www.w3.org/2000/svg", + height: "16", + fill: "currentColor", + viewBox: "0 0 216 80", + ...t, + children: [Ka.jsx("path", { + d: "M80.53 0c5.2 0 8.5 3.67 7.57 8.26l-.16.63L82.5 28.4a15.11 15.11 0 0 1-7.42 9.25l-.8.4-15.88 7.37 3.47 13.77a3.2 3.2 0 0 0 2.56 2.13l.46.03H75.3L70.21 80H53.77c-3.81 0-7.53-2.69-8.72-5.99l-.2-.62-4.98-19.3-13.9 6.5L20.62 80H0L21.78 0h58.75Zm69.93 0-.01.04-5.1 18.53-.02.07h-.02l-30.95-.07c-1.85 0-3.24.65-3.7 2.38-.41 1.54.09 2.74 1.5 3.75l.58.37 33.07 20.48c3.15 1.93 4.97 6.24 4.42 9.71l-.14.69-4.74 17.44c-.87 3.37-4.61 6.25-8.52 6.58l-.73.03H94.46l5.1-18.64h25.09c1.85 0 3.24-1.19 3.58-2.27.42-1.27.18-2.27-1.22-3.33l-.5-.35L93.2 34.6c-3.15-1.94-4.97-6.25-4.43-9.72l.15-.69 4.74-17.55c.87-3.36 4.5-6.25 8.3-6.58l.72-.03L150.43 0h.03Zm24.29 0 20.68.04L173.47 80h-20.91L174.66.04h.08l.01-.04ZM88.68 61.48 83.64 80h-3.37l5.01-18.52h3.4Zm-6.73 0L76.73 80h-3.6l5.27-18.49.01-.03h3.54Zm13.87 0L90.64 80H87l5.19-18.52h3.63ZM61.14 18.52H37.43l-5.07 18.92L60.33 24.1c2.3-1.1 3.11-2.4 3.46-3.5.46-1.42-.8-2.08-2.65-2.08ZM171.05 0 166 18.52h-3.35L167.73 0h3.32Zm-7.14 0-5.04 18.52h-3.37L160.6 0h3.3Zm-6.8 0-.02.04h.1l-5.21 18.42-.02.06h-3.6l.01-.06L153.5.04V0h3.61Z" + }), Ka.jsx("path", { + d: "M200.57 7.74C200.57 2.42 203 0 208.3 0s7.7 2.43 7.7 7.74c0 5.31-2.41 7.74-7.71 7.74s-7.72-2.43-7.72-7.74Zm14.27 0c0-4.54-2.06-6.6-6.57-6.6-4.5 0-6.56 2.05-6.56 6.6 0 4.53 2.05 6.58 6.56 6.58 4.52 0 6.56-2.05 6.56-6.58Zm-3.45-1.32c0 1.52-.4 2.14-1.56 2.36l1.74 2.78c.09.08.05.17-.08.17h-1.44c-.18 0-.25-.04-.32-.18l-1.7-2.65h-.87v2.67c0 .13-.01.14-.12.14h-1.4c-.13 0-.14-.02-.14-.14V4.03c0-.08.03-.12.12-.12.93-.08 1.92-.1 2.8-.1 2.21 0 2.97.6 2.97 2.61Zm-4.23-1.17v2.4h1.08c1.11 0 1.45-.2 1.45-1.17 0-1-.34-1.23-1.45-1.23h-1.08Z" + })] + }) + }; + za("@layer components{.sol-c-select{cursor:var(--sol-cursor-interactive)}}"); + let Qh = (0, Oe.forwardRef)((({ + children: e, + description: t, + label: n, + ...r + }, a) => Ka.jsx(Dh, { label: n, ref: a, ...r, @@ -39183,19 +39546,19 @@ }) : e ?? n }))), Zh = (0, Oe.forwardRef)((({ - allowEmpty: e, - children: t, - className: n, - defaultValue: r, - empty: a, - listboxProps: i, - name: o, - onChange: s, - onValueChange: l, - value: c, - wrapperProps: u, - ...d - }, p) => { + allowEmpty: e, + children: t, + className: n, + defaultValue: r, + empty: a, + listboxProps: i, + name: o, + onChange: s, + onValueChange: l, + value: c, + wrapperProps: u, + ...d + }, p) => { let h = fi("sol-c-select", n), [f, m] = (0, Oe.useState)(null); return (0, Oe.createElement)(Nh, vi({ @@ -39222,11 +39585,11 @@ })); za('@layer components{.sol-c-settings{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);display:flex;flex:1;overflow:hidden}.sol-c-settings__navigation{background:var(--sol-color-surface-1);display:flex;flex:1 0 auto;flex-direction:column;gap:var(--sol-size-100);inline-size:25%;max-inline-size:25rem;min-inline-size:17.5rem;overflow:auto;padding:var(--sol-size-250);padding-inline:clamp(var(--sol-size-200),2.5vw,var(--sol-size-250))}.sol-c-settings__header{align-items:center;display:flex;gap:var(--sol-size-100);margin-block-end:var(--sol-size-300)}.sol-c-settings__header:has(.sol-c-settings__back):has(.sol-c-settings__label):before{background:var(--sol-color-surface-3);block-size:var(--sol-size-300);content:"";inline-size:var(--sol-border-1)}.sol-c-settings__back{order:-1}.sol-c-settings__label{padding-inline-start:var(--sol-size-075)}.sol-c-settings__content{flex:1;overflow:auto;padding:var(--sol-size-250)}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-settings__content{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-settings__title{margin-block-end:var(--sol-size-300)}.sol-c-settings__back,.sol-c-settings__content>*,.sol-c-settings__header,.sol-c-settings__item,.sol-c-settings__navigation,.sol-c-settings__navigation>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:calc(var(--sol-motion-anim-wipe-duration)/2);opacity:0}.sol-c-settings__back,.sol-c-settings__navigation,.sol-c-settings__navigation>*{transform:translateX(calc(var(--sol-size-125)*-1))}.sol-c-settings__back{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item{opacity:0}.sol-c-settings__item:first-child{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(2){animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(3){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(4){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(5){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(6){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(7){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(8){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(9){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(10){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:first-child{animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(2){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(3){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(4){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(5){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(6){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(7){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(8){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(9){animation-delay:calc(1.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(10){animation-delay:calc(1.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:first-child{animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(2){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(3){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(4){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(5){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(6){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(7){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(8){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(9){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(10){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>:first-child,.sol-c-settings__navigation>:first-child{animation-delay:.1s}.sol-c-settings__content>:nth-child(2),.sol-c-settings__navigation>:nth-child(2){animation-delay:.2s}.sol-c-settings__content>:nth-child(3),.sol-c-settings__navigation>:nth-child(3){animation-delay:.3s}.sol-c-settings__content>:nth-child(4),.sol-c-settings__navigation>:nth-child(4){animation-delay:.4s}.sol-c-settings__content>:nth-child(5),.sol-c-settings__navigation>:nth-child(5){animation-delay:.5s}.sol-c-settings__content>:nth-child(6),.sol-c-settings__navigation>:nth-child(6){animation-delay:.6s}.sol-c-settings__content>:nth-child(7),.sol-c-settings__navigation>:nth-child(7){animation-delay:.7s}.sol-c-settings__content>:nth-child(8),.sol-c-settings__navigation>:nth-child(8){animation-delay:.8s}.sol-c-settings__content>:nth-child(9),.sol-c-settings__navigation>:nth-child(9){animation-delay:.9s}.sol-c-settings__content>:nth-child(10),.sol-c-settings__navigation>:nth-child(10){animation-delay:1s}}'); let Xh = (0, Oe.forwardRef)((({ - children: e, - className: t, - title: n, - ...r - }, a) => { + children: e, + className: t, + title: n, + ...r + }, a) => { let i = fi("sol-c-settings__content", t); return Ka.jsxs("div", { className: i, @@ -39241,13 +39604,13 @@ }) })), Jh = (0, Oe.forwardRef)((({ - back: e, - children: t, - className: n, - title: r, - backCallback: a, - ...i - }, o) => { + back: e, + children: t, + className: n, + title: r, + backCallback: a, + ...i + }, o) => { let s = fi("sol-c-settings__navigation", n); return Ka.jsxs("div", { className: s, @@ -39275,11 +39638,11 @@ }) })), ef = (0, Oe.forwardRef)((({ - children: e, - className: t, - active: n, - ...r - }, a) => { + children: e, + className: t, + active: n, + ...r + }, a) => { let i = fi("sol-c-settings__item", t); return Ka.jsx(to, { "aria-current": n ? "true" : void 0, @@ -39295,11 +39658,11 @@ }) })), tf = mi((({ - as: e = "div", - children: t, - className: n, - ...r - }, a) => { + as: e = "div", + children: t, + className: n, + ...r + }, a) => { let i = fi("sol-c-settings", n), [o, s] = (0, Oe.useState)(!0); return (0, Oe.useEffect)((() => { @@ -39315,30 +39678,32 @@ })); za('@layer components{.sol-c-sign-in{background-color:var(--sol-color-surface-1);display:flex;flex:1;overflow:hidden}.sol-c-sign-in:before{background-color:var(--sol-color-surface-3);content:"";display:block;height:var(--sol-border-1);left:0;position:absolute;top:0;width:100%;z-index:1}.sol-c-sign-in__logo{box-sizing:initial;padding-left:var(--sol-size-500);padding-right:var(--sol-size-400)}}.sol-c-sign-in__content-wrapper{flex:1;position:relative}.sol-c-sign-in__content-wrapper:before{background-color:var(--sol-color-surface-3);content:"";display:block;height:100%;left:0;position:absolute;top:0;width:var(--sol-border-1);z-index:1}.sol-c-sign-in__content{display:flex;flex:0 0 auto;flex-direction:column;height:100%;justify-content:space-around}.sol-c-sign-in__wrapper{border-radius:inherit;display:flex;flex:1;overflow:hidden;position:relative}.sol-c-sign-in__wrapper:after{background:linear-gradient(#0000,var(--sol-color-primary-1));block-size:var(--sol-size-150);content:"";display:block;inline-size:100%;inset-block-end:0;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-sign-in__wrapper[data-sol-scroll-end=false]:after{opacity:.6}.sol-c-sign-in__content--has-footer .sol-c-sign-in__wrapper{border-end-end-radius:0;border-end-start-radius:0}.sol-c-sign-in__wrapper .sol-c-field{max-inline-size:none}.sol-c-sign-in__container{flex:1;overflow:auto;padding:var(--sol-size-250);position:relative;z-index:1}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-sign-in__container{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-sign-in__content--has-footer .sol-c-sign-in__container{padding-block-end:0}.sol-c-sign-in__footer{flex:0;padding:var(--sol-size-250)}.sol-c-sign-in__footer>:only-child{margin-inline-start:auto}.sol-c-sign-in__footer .footer__sign-up .sol-c-link{display:block}.sol-c-sign-in{--_anim-base-delay:.5s}.sol-c-sign-in:before,.sol-c-sign-in__content,.sol-c-sign-in__content-wrapper:before,.sol-c-sign-in__footer,.sol-c-sign-in__logo{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-sign-in__logo{animation-delay:var(--_anim-base-delay);animation-duration:var(--sol-motion-500);transform:translateX(-20px)}.sol-c-sign-in:before{animation-delay:calc(var(--_anim-base-delay) + .1s)}.sol-c-sign-in__content-wrapper:before{animation-delay:calc(var(--_anim-base-delay) + .15s)}.sol-c-sign-in__content{animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-sign-in__footer{animation-delay:calc(var(--_anim-base-delay) + .4s);transform:translateY(10px)}'); let nf = mi((({ - as: e = "div", - children: t, - className: n, - footer: r, - subtitle: a, - title: i, - ...o - }, s) => { + as: e = "div", + children: t, + className: n, + footer: r, + subtitle: a, + title: i, + ...o + }, s) => { let l = fi("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n), + c = (0, Oe.useRef)(null), { - blockEnd: c, - ref: u - } = Bi(); + blockEnd: u + } = Gi({ + ref: c + }); return Ka.jsxs(e, { className: l, ref: s, ...o, children: [Ka.jsx("div", { className: "sol-c-sign-in__wrapper", - "data-sol-scroll-end": c, + "data-sol-scroll-end": u, children: Ka.jsxs(uo, { className: "sol-c-sign-in__container", gap: "150", - ref: u, + ref: c, vertical: !0, children: [(i || a) && Ka.jsxs(uo, { className: "sol-c-sign-in__header", @@ -39367,11 +39732,11 @@ }) })), rf = mi((({ - as: e = "div", - children: t, - className: n, - ...r - }, a) => { + as: e = "div", + children: t, + className: n, + ...r + }, a) => { let i = fi("sol-c-sign-in", n); return Ka.jsxs(e, { className: i, @@ -39430,17 +39795,17 @@ za('@layer components{.sol-c-slider{--_thumb-size:var(--sol-c-slider-thumb-size,var(--sol-size-050));--_track-size:var(--sol-c-slider-track-size,var(--sol-size-025));--_size:var(--sol-c-slider-size,100%);--_background-color:var(--sol-color-surface-3);--_foreground-color:var(--sol-color-interactive);--_thumb-opacity:1;--_background-position:right;appearance:none;background:#0000;display:inline-block;inline-size:var(--_size);min-block-size:var(--_thumb-size);transition:opacity var(--sol-motion-250)}.sol-c-slider[style*="--sol-c-slider-progress"]{--_thumb-opacity:0}[dir=rtl] .sol-c-slider{--_background-position:left}.sol-c-slider::-webkit-slider-runnable-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-webkit-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-webkit-slider-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);margin-block-start:calc(var(--_thumb-size)/2*-1 - var(--_track-size)/2*-1);opacity:var(--_thumb-opacity);-webkit-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider::-moz-range-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-moz-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-moz-range-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);opacity:var(--_thumb-opacity);-moz-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider:hover{--_foreground-color:var(--sol-color-interactive-hovered);--_thumb-opacity:1}.sol-c-slider:active{--_foreground-color:var(--sol-color-interactive-pressed);--_thumb-opacity:1}.sol-c-slider:focus,.sol-c-slider:focus-visible{outline:none}.sol-c-slider:focus-visible{--_thumb-opacity:1}.sol-c-slider:focus-visible::-webkit-slider-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:focus-visible::-moz-range-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:disabled{opacity:.2;pointer-events:none}}'); let af = (e, t) => t < e ? e : e + (t - e) / 2, of = (0, Oe.forwardRef)((({ - className: e, - defaultValue: t, - max: n = 100, - min: r = 0, - style: a, - onChange: i, - onValueChange: o, - showProgress: s = !1, - value: l, - ...c - }, u) => { + className: e, + defaultValue: t, + max: n = 100, + min: r = 0, + style: a, + onChange: i, + onValueChange: o, + showProgress: s = !1, + value: l, + ...c + }, u) => { let [d, p] = _i({ value: l, defaultValue: t ?? af(r, n), @@ -39468,22 +39833,22 @@ za("@layer components{.sol-c-toast{--_border:var(--sol-size-075);--_color:var(--sol-color-status-informative);--_padding:var(--sol-size-100);align-items:flex-start;background-color:var(--sol-color-surface-1);border-inline-start:var(--_border) solid var(--_color);border-radius:var(--sol-radius-8);display:flex;filter:drop-shadow(var(--sol-shadow-100));gap:var(--_padding);padding:var(--_padding);position:relative;transition:border-color var(--sol-motion-250)}.sol-c-toast--negative{--_color:var(--sol-color-status-negative)}.sol-c-toast--notice{--_color:var(--sol-color-status-notice)}.sol-c-toast--positive{--_color:var(--sol-color-status-positive)}.sol-c-toast__icon{color:var(--_color)}.sol-c-toast__close{margin-inline-start:auto}}"); let sf = "informative", lf = (0, Oe.forwardRef)((({ - actions: e, - children: t, - className: n, - close: r = true, - closeOnClick: a = true, - closeOnEsc: i = true, - duration: o = 4e3, - icon: s, - id: l, - onClick: c, - onClose: u, - pauseOnBlur: d = true, - title: p, - type: h = sf, - ...f - }, m) => { + actions: e, + children: t, + className: n, + close: r = true, + closeOnClick: a = true, + closeOnEsc: i = true, + duration: o = 4e3, + icon: s, + id: l, + onClick: c, + onClose: u, + pauseOnBlur: d = true, + title: p, + type: h = sf, + ...f + }, m) => { let g = (0, Oe.useId)(), v = l ?? g, y = v + "-label", @@ -39542,17 +39907,17 @@ x() }), [x]), I = (0, Oe.useCallback)((({ - close: e, - onClick: t - }) => n => { + close: e, + onClick: t + }) => n => { n.stopPropagation(), e && k(), t && t(n) }), [k]), A = fi("sol-c-toast", h && h !== sf && `sol-c-toast--${h}`, n), - C = p || !p && t, - T = t && p; + R = p || !p && t, + C = t && p; return Ka.jsxs("div", { - "aria-describedby": T ? _ : void 0, - "aria-labelledby": C ? y : void 0, + "aria-describedby": C ? _ : void 0, + "aria-labelledby": R ? y : void 0, className: A, id: v, ref: m, @@ -39571,14 +39936,14 @@ children: [(p || t) && Ka.jsxs(uo, { gap: "025", vertical: !0, - children: [C && Ka.jsx(Qi, { + children: [R && Ka.jsx(Qi, { className: "sol-c-toast__title", color: "foreground", id: y, offset: !0, variant: "emphasis-m", children: p ?? t - }), T && Ka.jsx(Qi, { + }), C && Ka.jsx(Qi, { className: "sol-c-toast__content", color: "foreground-weak", id: _, @@ -39591,11 +39956,11 @@ gap: "050", wrap: !0, children: e.map((({ - close: e = !0, - label: t, - onClick: n, - ...r - }, a) => Ka.jsx(to, { + close: e = !0, + label: t, + onClick: n, + ...r + }, a) => Ka.jsx(to, { color: "informative" !== h ? h : "default", size: "medium", variant: a > 0 ? "monochrome" : "default", @@ -39620,12 +39985,12 @@ })); za('@layer components{.sol-c-toasts{align-items:flex-end;display:flex;flex-direction:column;inset:0;justify-content:flex-end;overflow:hidden;padding:var(--sol-size-100);pointer-events:none;position:fixed;z-index:var(--sol-z-toasts)}.sol-c-toasts__wrapper{flex:0 0 auto;inline-size:100%;max-inline-size:31rem}.sol-c-toasts__wrapper>*{pointer-events:auto}.sol-c-toasts__wrapper:before{content:"";display:block;height:var(--sol-size-100)}}'); let cf = (0, Oe.forwardRef)((({ - className: e, - style: t, - toasts: n, - component: r = lf, - ...a - }, i) => { + className: e, + style: t, + toasts: n, + component: r = lf, + ...a + }, i) => { let o = (0, Oe.useMemo)((() => new WeakMap), []), [s, l] = (0, Oe.useState)(0); Ii((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []); @@ -39642,16 +40007,16 @@ config: d } = r ? r() : t, p = (0, Oe.useMemo)((() => r || 3 == arguments.length ? sh() : void 0), []), - h = Ru(e), + h = Tu(e), f = [], m = (0, Oe.useRef)(null), g = a ? null : m.current; Fd((() => { m.current = f - })), Vd((() => (Cu(f, (e => { + })), Vd((() => (Ru(f, (e => { p?.add(e.ctrl), e.ctrl.ref = p })), () => { - Cu(m.current, (e => { + Ru(m.current, (e => { e.expired && clearTimeout(e.expirationId), yp(e.ctrl, p), e.ctrl.stop(!0) })) }))); @@ -39666,32 +40031,32 @@ return n ? (t.add(n), n.key) : lh++ })) } - return Iu.und(n) ? e : Iu.fun(n) ? e.map(n) : Ru(n) + return Iu.und(n) ? e : Iu.fun(n) ? e.map(n) : Tu(n) }(h, r ? r() : t, g), y = a && m.current || []; - Fd((() => Cu(y, (({ - ctrl: e, - item: t, - key: n - }) => { + Fd((() => Ru(y, (({ + ctrl: e, + item: t, + key: n + }) => { yp(e, p), op(c, t, n) })))); let _ = []; - if (g && Cu(g, ((e, t) => { - e.expired ? (clearTimeout(e.expirationId), y.push(e)) : ~(t = _[t] = v.indexOf(e.key)) && (f[t] = e) - })), Cu(h, ((e, t) => { - f[t] || (f[t] = { - key: v[t], - item: e, - phase: "mount", - ctrl: new Zp - }, f[t].ctrl.item = e) - })), _.length) { + if (g && Ru(g, ((e, t) => { + e.expired ? (clearTimeout(e.expirationId), y.push(e)) : ~(t = _[t] = v.indexOf(e.key)) && (f[t] = e) + })), Ru(h, ((e, t) => { + f[t] || (f[t] = { + key: v[t], + item: e, + phase: "mount", + ctrl: new Zp + }, f[t].ctrl.item = e) + })), _.length) { let e = -1, { leave: n } = r ? r() : t; - Cu(_, ((t, r) => { + Ru(_, ((t, r) => { let a = g[r]; ~t ? (e = f.indexOf(a), f[e] = { ...a, @@ -39706,7 +40071,7 @@ k = new Map, E = (0, Oe.useRef)(new Map), S = (0, Oe.useRef)(!1); - Cu(f, ((e, n) => { + Ru(f, ((e, n) => { let a, i, c = e.key, p = e.phase, h = r ? r() : t, @@ -39726,8 +40091,8 @@ } } if (a = op(a, e.item, n), !(a = Iu.obj(a) ? fp(a) : { - to: a - }).config) { + to: a + }).config) { let t = d || w.config; a.config = op(t, e.item, n, i) } @@ -39779,24 +40144,24 @@ }) })); let O = (0, Oe.useContext)(ih), - P = Gd(O), + P = Bd(O), I = O !== P && gp(O); Fd((() => { - I && Cu(f, (e => { + I && Ru(f, (e => { e.ctrl.start({ default: O }) })) - }), [O]), Cu(k, ((e, t) => { + }), [O]), Ru(k, ((e, t) => { if (E.current.size) { let e = f.findIndex((e => e.key === t.key)); f.splice(e, 1) } })), Fd((() => { - Cu(E.current.size ? E.current : k, (({ - phase: e, - payload: t - }, n) => { + Ru(E.current.size ? E.current : k, (({ + phase: e, + payload: t + }, n) => { let { ctrl: r } = n; @@ -39867,7 +40232,7 @@ }) })); za("@layer components{.sol-c-tutorial{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);inline-size:30rem;min-block-size:10rem;padding:var(--sol-size-100)}.sol-c-tutorial__footer{margin-block-start:auto}#walktour-portal{color:var(--sol-color-overlay);z-index:var(--sol-z-tutorial)!important}#walktour-tooltip-container{outline:none}}"); - (Wa = Ga || (Ga = {})).EAST = "east", Wa.SOUTH = "south", Wa.WEST = "west", Wa.NORTH = "north", Wa.CENTER = "center", Wa.EASTNORTH = "east-north", Wa.EASTSOUTH = "east-south", Wa.SOUTHEAST = "south-east", Wa.SOUTHWEST = "south-west", Wa.WESTSOUTH = "west-south", Wa.WESTNORTH = "west-north", Wa.NORTHWEST = "north-west", Wa.NORTHEAST = "north-east"; + (Wa = Ba || (Ba = {})).EAST = "east", Wa.SOUTH = "south", Wa.WEST = "west", Wa.NORTH = "north", Wa.CENTER = "center", Wa.EASTNORTH = "east-north", Wa.EASTSOUTH = "east-south", Wa.SOUTHEAST = "south-east", Wa.SOUTHWEST = "south-west", Wa.WESTSOUTH = "west-south", Wa.WESTNORTH = "west-north", Wa.NORTHWEST = "north-west", Wa.NORTHEAST = "north-east"; let uf = { cursor: "pointer", padding: "4px 16px", @@ -39880,17 +40245,17 @@ margin: 4 }; let df = mi((({ - buttonRef: e, - className: t, - disabled: n, - label: r = "Volume", - muteLabel: a = "Mute", - onChange: i, - sliderRef: o, - unmuteLabel: s = "Unmute", - value: l = 0, - ...c - }, u) => { + buttonRef: e, + className: t, + disabled: n, + label: r = "Volume", + muteLabel: a = "Mute", + onChange: i, + sliderRef: o, + unmuteLabel: s = "Unmute", + value: l = 0, + ...c + }, u) => { let d = (0, Oe.useId)(), [p, h] = _i({ value: l, @@ -39972,7 +40337,7 @@ }), (0, hf.jsx)("hr", {}), (0, hf.jsxs)("p", { children: [(0, hf.jsx)("strong", { children: t("settings_about_launcher_version") - }), " ", null !== (e = "2.0.0 (beta)") ? e : "\u2013"] + }), " ", null !== (e = "2.0.1 (beta)") ? e : "\u2013"] })] }) }) @@ -40057,32 +40422,32 @@ Of = (e, t) => { var n; return null !== (n = t.find((({ - id: t - }) => t === e))) && void 0 !== n ? n : null + id: t + }) => t === e))) && void 0 !== n ? n : null }, Pf = e => e.endsWith("\\") ? e : `${e}\\`, If = e => "expires" in e && e.expires && e.expires <= Date.now(), Af = 2e3, - Cf = { + Rf = { [pf.RSISystemStatus.MAJOR]: "negative", [pf.RSISystemStatus.PARTIAL]: "negative", [pf.RSISystemStatus.DEGRADED]: "notice", [pf.RSISystemStatus.MAINTENANCE]: "neutral", [pf.RSISystemStatus.OPERATIONAL]: "positive" }, - Tf = e => Cf[e], - Rf = "ErrMultiStepRequired", + Cf = e => Rf[e], + Tf = "ErrMultiStepRequired", Df = "ErrMultiStepWrongCode", Nf = "ErrConnectivity", - jf = "ErrNotAuthenticated", - Lf = "ErrClaimsInvalid", + Lf = "ErrNotAuthenticated", + jf = "ErrClaimsInvalid", Mf = "ErrUnknown", zf = "ErrMaxThrottleLogin", Ff = "errAuthExpired", Uf = "ErrCaptchaRequiredLauncher", Vf = "ErrInvalidChallengeCode", - Bf = "ErrDeprecatedApi", - Gf = "ErrAgreementsRequired", + Gf = "ErrDeprecatedApi", + Bf = "ErrAgreementsRequired", qf = "ErrExpiredToken", $f = "ErrNoGamePackage", Wf = "ErrWrongPassword_email", @@ -40099,7 +40464,7 @@ } class em extends Jf { constructor(e, t) { - super(e, Rf, t), Object.setPrototypeOf(this, em.prototype) + super(e, Tf, t), Object.setPrototypeOf(this, em.prototype) } } class tm extends Jf { @@ -40114,12 +40479,12 @@ } class rm extends Jf { constructor(e, t = null) { - super(e, Lf, t), Object.setPrototypeOf(this, rm.prototype) + super(e, jf, t), Object.setPrototypeOf(this, rm.prototype) } } class am extends Jf { constructor(e, t = null) { - super(e, jf, t), Object.setPrototypeOf(this, am.prototype) + super(e, Lf, t), Object.setPrototypeOf(this, am.prototype) } } class im extends Jf { @@ -40139,7 +40504,7 @@ } class lm extends Jf { constructor(e, t = null) { - super(e, Gf, t), Object.setPrototypeOf(this, lm.prototype) + super(e, Bf, t), Object.setPrototypeOf(this, lm.prototype) } } class cm extends Jf { @@ -40192,9 +40557,14 @@ super(e, Nf, t), Object.setPrototypeOf(this, ym.prototype) } } - const _m = e => { + class _m extends Jf { + constructor(e, t = null) { + super(e, Kf, t), Object.setPrototypeOf(this, _m.prototype) + } + } + const bm = e => { switch (e.code) { - case jf: + case Lf: return new am(wt.t("error_not_authenticated", { ns: "errors" }), e.data); @@ -40202,11 +40572,11 @@ return new im(wt.t("error_max_login_attempt", { ns: "errors" }), e.data); - case Lf: + case jf: return new rm(wt.t("error_invalid_claims", { ns: "errors" }), e.data); - case Rf: + case Tf: return new em(wt.t("error_authentication_mfa", { ns: "errors" }), e.data); @@ -40226,7 +40596,7 @@ return new nm(wt.t("error_session_expired", { ns: "errors" }), e.data); - case Gf: + case Bf: return new lm(e.msg, e.data); case qf: return new cm(e.msg, e.data); @@ -40248,7 +40618,7 @@ return new Jf(e.msg, e.code, e.data) } }; - class bm { + class xm { constructor(e) { this.baseUrl = void 0, this.baseUrl = e } @@ -40283,13 +40653,14 @@ headers: o, ...a }; + let l; "GET" !== t && (s.body = JSON.stringify(n)); try { - const e = await fetch(i, s); - return await this.handleResponse(e) - } catch (l) { - throw new ym("Could not connect to server", l) + l = await fetch(i, s) + } catch (c) { + throw new ym("Could not connect to server", c) } + return this.handleResponse(l) } async get(e) { return this.handleRequest(e, "GET", void 0, void 0, void 0) @@ -40298,7 +40669,7 @@ return this.handleRequest(e, "POST", t, n, r) } } - const xm = { + const wm = { ACCOUNT_CHECK: "account/check", ACCOUNT_CLAIMS: "account/claims", AGREEMENTS_ACCEPT: "agreements/accept", @@ -40318,7 +40689,7 @@ WARNINGS_GET: "warnings/get", WARNINGS: "warnings" }; - class wm extends bm { + class km extends xm { set session(e) { this._session = e } @@ -40341,30 +40712,30 @@ return this._endpoints } constructor() { - super(wm.BASE_URL), this._session = null, this._device = null, this._platformClaims = null, this._endpoints = void 0, this._endpoints = xm, this.init() + super(km.BASE_URL), this._session = null, this._device = null, this._platformClaims = null, this._endpoints = void 0, this._endpoints = wm, this.init() } async init() { const [e, t] = await Promise.all([window.launcherAPI.store.getValueFromStore("session"), window.launcherAPI.store.getValueFromStore("device")]); this._session = e, this._device = t } static getInstance() { - return wm.instance || (wm.instance = new wm), wm.instance + return km.instance || (km.instance = new km), km.instance } async call({ - platformId: e, - endpoint: t, - payload: n, - session: r = this._session, - device: a = this._device, - options: i - }) { + platformId: e, + endpoint: t, + payload: n, + session: r = this._session, + device: a = this._device, + options: i + }) { const o = this.handleSession(r, a); this.handleUrl(e); try { const e = await this.post(t, n, o, i); - if (e.code === Bf) throw new Jf("Launcher update required.", Bf, e); + if (e.code === Gf) throw new Jf("Launcher update required.", Gf, e); if (e.success) return e; - throw _m(e) + throw bm(e) } catch (s) { throw s instanceof cm && (this.platformClaims = null), s } @@ -40386,15 +40757,15 @@ }), n } handleUrl(e) { - this.baseUrl = `${wm.BASE_URL}${e?`+${e}`:""}` + this.baseUrl = `${km.BASE_URL}${e?`+${e}`:""}` } async callImage({ - endpoint: e, - payload: t = {}, - session: n = this._session, - device: r = this._device, - options: a - }) { + endpoint: e, + payload: t = {}, + session: n = this._session, + device: r = this._device, + options: a + }) { try { const i = this.handleSession(n, r), o = await this.post(e, t, i, a), @@ -40405,8 +40776,8 @@ } } } - wm.instance = void 0, wm.BASE_URL = "rsi"; - class km { + km.instance = void 0, km.BASE_URL = "rsi"; + class Em { constructor(e) { this.rsi = void 0, this.rsi = e } @@ -40447,60 +40818,60 @@ })).data } } - const Em = ({ - session_name: e, - session_id: t - }) => ({ + const Sm = ({ + session_name: e, + session_id: t + }) => ({ cookie: `${e}`, key: `X-${e}`, value: t, expires: Date.now() + pf.configuration.authenticationExpiry }); - class Sm { + class Om { constructor(e) { this.success = void 0, this.message = void 0, this.success = e.success, this.message = e.message || null } static success() { - return new Sm({ + return new Om({ success: !0 }) } static fail(e) { - return new Sm({ + return new Om({ success: !1, message: e }) } } - class Om extends Error { + class Pm extends Error { constructor(e, t) { super(e), this.result = void 0, Object.defineProperty(this, "name", { value: "AuthorizationError", writable: !0 - }), Error.captureStackTrace(this, Om), this.result = t + }), Error.captureStackTrace(this, Pm), this.result = t } } - function Pm({ - badges: e - }, t) { + function Im({ + badges: e + }, t) { const n = Object.values(e); for (const r of t) if (-1 === n.indexOf(r)) return !1; return !0 } - function Im({ - badges: e - }, t) { + function Am({ + badges: e + }, t) { const n = Object.values(e); for (const r of t) if (n.indexOf(r) > -1) return !0; return !1 } - function Am(e) { - return Im(e, ["Staff", "QA"]) + function Rm(e) { + return Am(e, ["Staff", "QA"]) } class Cm { constructor(e, t) { @@ -40516,12 +40887,12 @@ return this.rsi.session = null, e } async signIn({ - username: e, - password: t, - captcha: n, - remember: r, - launcherVersion: a - }) { + username: e, + password: t, + captcha: n, + remember: r, + launcherVersion: a + }) { try { const i = await this.rsi.call({ endpoint: this.rsi.endpoints.SIGN_IN, @@ -40535,7 +40906,7 @@ }); if (i.success) { await this.verifyPolicy(i.data); - const e = Em(i.data); + const e = Sm(i.data); return this.rsi.session = e, { code: i.code, success: i.success, @@ -40547,30 +40918,30 @@ trackingMetricsId: i.data.tracking_metrics_id, agreements: i.data.agreements, session: e, - privileged: Am(i.data), + privileged: Rm(i.data), displayname: i.data.displayname, nickname: i.data.nickname, avatar: i.data.avatar } } } - throw _m(i) + throw bm(i) } catch (i) { - throw i instanceof om && (this.rsi.session = Em(i.payload)), i instanceof em && (this.rsi.session = Em(i.payload), this.rsi.device = (({ - device_header: e, - device_id: t - }) => ({ + throw i instanceof om && (this.rsi.session = Sm(i.payload)), i instanceof em && (this.rsi.session = Sm(i.payload), this.rsi.device = (({ + device_header: e, + device_id: t + }) => ({ cookie: "_rsi_device", key: `${e}`, value: t - }))(i.payload)), i instanceof Om && (this.rsi.session = null, this.rsi.device = null), i + }))(i.payload)), i instanceof Pm && (this.rsi.session = null, this.rsi.device = null), i } } async signInMfa({ - codeMfa: e, - deviceName: t, - duration: n - }) { + codeMfa: e, + deviceName: t, + duration: n + }) { const r = await this.rsi.call({ endpoint: this.rsi.endpoints.SIGN_IN_MULTISTEP, payload: { @@ -40582,7 +40953,7 @@ }); if (r.success) { await this.verifyPolicy(r.data); - const e = Em(r.data); + const e = Sm(r.data); return this.rsi.session = e, { code: r.code, success: r.success, @@ -40594,14 +40965,14 @@ trackingMetricsId: r.data.tracking_metrics_id, agreements: r.data.agreements, session: e, - privileged: Am(r.data), + privileged: Rm(r.data), displayname: r.data.displayname, nickname: r.data.nickname, avatar: r.data.avatar } } } - throw _m(r) + throw bm(r) } async verifyPolicy(e) { const { @@ -40653,7 +41024,7 @@ } } } - class Rm { + class Dm { constructor(e) { this.rsi = void 0, this.libraryTimeout = 1e4, this.rsi = e } @@ -40680,7 +41051,7 @@ claims: t } }); - return Em(n.data) + return Sm(n.data) } async getLibrary() { const e = await this.getGameClaims(), @@ -40698,15 +41069,15 @@ name: n, channels: r } = e, a = Object.values(r).map((({ - id: e, - name: t, - version: n, - versionLabel: r, - platformId: a, - servicesEndpoint: i, - nid: o, - network: s - }) => ({ + id: e, + name: t, + version: n, + versionLabel: r, + platformId: a, + servicesEndpoint: i, + nid: o, + network: s + }) => ({ id: e, name: null !== t && void 0 !== t ? t : e, version: n, @@ -40726,9 +41097,9 @@ return t } async getRelease({ - gameId: e, - channelId: t - }) { + gameId: e, + channelId: t + }) { const n = await this.getGameClaims(); return (await this.rsi.call({ endpoint: this.rsi.endpoints.GAMES_RELEASE, @@ -40752,18 +41123,22 @@ })).data } } - const Dm = { + const Nm = { STATUS_PAGE: "index" }; - class Nm extends bm { + class Lm extends xm { constructor() { - super(Nm.BASE_URL), this._endpoints = void 0, this._endpoints = Dm + super(Lm.BASE_URL), this._endpoints = void 0, this._endpoints = Nm } async getStatus() { - return await this.get(this._endpoints.STATUS_PAGE) + try { + return await this.get(this._endpoints.STATUS_PAGE) + } catch (e) { + throw new _m("Could not connect to status API", e) + } } } - Nm.BASE_URL = "status"; + Lm.BASE_URL = "status"; class jm { constructor(...e) { this.handlers = void 0, this.name = "AnyPermissionEvaluator", this.handlers = (null !== e && void 0 !== e ? e : []).slice() @@ -40780,57 +41155,47 @@ const r = n.find((e => e.result.success)); if (r) return r.result; const a = n.map((e => `[${e.handlerName}] ${e.result.message}`)).join("\n"); - return Sm.fail(`At least one permission evaluator must succeed. Evaluation results:\n${a}`) + return Om.fail(`At least one permission evaluator must succeed. Evaluation results:\n${a}`) } } - class Lm { + class Mm { constructor() { this.name = "IsBackerPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return Im(e, ["Backer", "PU Alpha Access"]) - }(e) ? Sm.success() : Sm.fail() + return Am(e, ["Backer", "PU Alpha Access"]) + }(e) ? Om.success() : Om.fail() } } - class Mm { + class zm { constructor() { this.name = "IsStaffPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return Pm(e, ["Staff"]) - }(e) ? Sm.success() : Sm.fail() + return Im(e, ["Staff"]) + }(e) ? Om.success() : Om.fail() } } - class zm { + class Fm { constructor() { this.name = "IsQAPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return Pm(e, ["QA"]) - }(e) ? Sm.success() : Sm.fail() + return Im(e, ["QA"]) + }(e) ? Om.success() : Om.fail() } } - class Fm { + class Um { constructor() { this.name = "IsEvocatiPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return Pm(e, ["Evocati Test Flight"]) - }(e) ? Sm.success() : Sm.fail() - } - } - class Um { - constructor() { - this.name = "IsPTUWaveOnePermissionEvaluator" - } - evaluate(e) { - return e.badges && function(e) { - return Im(e, ["PTU - Wave 1 - 3.20", "CMTY Influencer", "Subscriber", "Legatus"]) - }(e) ? Sm.success() : Sm.fail() + return Im(e, ["Evocati Test Flight"]) + }(e) ? Om.success() : Om.fail() } } class Vm { @@ -40844,7 +41209,7 @@ } async verify(e, t) { const n = await this.evaluate(e, t); - if (!n.success) throw new Om(`Permission '${e}' verification failed`, n) + if (!n.success) throw new Pm(`Permission '${e}' verification failed`, n) } notNullEvaluator(e) { const t = this.evaluators.get(e); @@ -40852,28 +41217,27 @@ return t } } - let Bm, Gm; + let Gm, Bm; ! function(e) { e.COMM_LINKS = "Comm-Links", e.PATCH_NOTES = "Patch-Notes" - }(Bm || (Bm = {})), - function(e) { - e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer" - }(Gm || (Gm = {})); + }(Gm || (Gm = {})), + function(e) { + e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer" + }(Bm || (Bm = {})); const qm = new class { constructor() { - this.authentication = void 0, this.content = void 0, this.policy = void 0, this.games = void 0, this.rsi = void 0, this.agreements = void 0, this.status = void 0, this.rsi = wm.getInstance(), this.content = new Tm(this.rsi), this.policy = function() { - const e = new Mm, - t = new zm, - n = new Fm, - r = new Um, - a = new Lm, - i = new jm(e, t), - o = new Map([ - ["signin:release-candidate", new jm(i, n, r)], - ["signin:stable", a] + this.authentication = void 0, this.content = void 0, this.policy = void 0, this.games = void 0, this.rsi = void 0, this.agreements = void 0, this.status = void 0, this.rsi = km.getInstance(), this.content = new Tm(this.rsi), this.policy = function() { + const e = new zm, + t = new Fm, + n = new Um, + r = new Mm, + a = new jm(e, t), + i = new Map([ + ["signin:release-candidate", new jm(a, n)], + ["signin:stable", r] ]); - return new Vm(o) - }(), this.authentication = new Cm(this.rsi, this.policy), this.games = new Rm(this.rsi), this.agreements = new km(this.rsi), this.status = new Nm + return new Vm(i) + }(), this.authentication = new Cm(this.rsi, this.policy), this.games = new Dm(this.rsi), this.agreements = new Em(this.rsi), this.status = new Lm } }; class $m { @@ -40935,16 +41299,24 @@ e.DISPLAY_WARNING_DIALOG = "displayWarningDialog", e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog", e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage", e.EXECUTE_CALLBACK = "executeCallback" }(Wm || (Wm = {})); const Hm = async e => { - const t = ww.getState().dialog; - switch (e.handler.type) { - case Wm.DISPLAY_WARNING_DIALOG: - return void await t.actions.showWarningDialogErrorOccured(e.handler.args); - case Wm.DISPLAY_ACKNOWLEDGE_DIALOG: - return void await t.actions.showAcknowledgeDialogErrorOccured(e.handler.args); - case Wm.EXECUTE_CALLBACK: - return void e.handler.args.callback(); - default: - console.error("error", e.error.message) + const t = Pw.getState().dialog, + n = Array.isArray(e) ? e : [e]; + for (const { + handler: r, + error: a + } + of n) { + if (r.skip) return; + switch (r.type) { + case Wm.DISPLAY_WARNING_DIALOG: + return void await t.actions.showWarningDialogErrorOccured(r.args); + case Wm.DISPLAY_ACKNOWLEDGE_DIALOG: + return void await t.actions.showAcknowledgeDialogErrorOccured(r.args); + case Wm.EXECUTE_CALLBACK: + return void await r.args.callback(); + default: + console.error("error", a.message) + } } }, Ym = e => { switch (e.code) { @@ -40981,12 +41353,187 @@ }, error: e } } - }, Km = () => ({ - queryKey: ["library"], - queryFn: async () => qm.games.getLibrary() - }); - var Qm = n(5391); - var Zm = function() { + }; + var Km = n(1438), + Qm = n.n(Km); + const Zm = (e, t) => { + let n = { + ...t, + speed: e.info.speed > 0 ? Qm().format(e.info.speed, { + decimalPlaces: 1 + }) : "0" + }; + switch (e.phase) { + case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: + n = { + ...n, + currentPhase: wt.t("download_update_manifest", { + ns: "download" + }) + }; + break; + case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 107374182400; + n = { + ...n, + currentPhase: wt.t("download_manifest", { + ns: "download" + }), + showProgress: !0, + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0 + } + } + break; + case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: + n = { + ...n, + currentPhase: wt.t("downloaded_update_manifest", { + ns: "download" + }) + }; + break; + case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: + n = { + ...n, + currentPhase: wt.t("download_analysing_install", { + ns: "download" + }) + }; + break; + case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: + case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: + n = { + ...n, + isPausable: !1 + }; + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: + n = { + ...n, + isPausable: !1, + showProgress: !1, + progressUndeterminate: !0, + percentage: 4.48, + currentPhase: wt.t("download_checking_files", { + ns: "download" + }) + }; + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: + n = { + ...n, + isPausable: !1, + showProgress: !1, + progressUndeterminate: !1 + }; + break; + case pf.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 107374182400; + n = { + ...n, + isPausable: !0, + showProgress: !0, + currentPhase: wt.t("download_base_pack", { + ns: "download" + }), + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: 0, + filesTotal: 1 + } + } + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { + const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; + n = { + ...n, + showProgress: !0, + currentPhase: wt.t("download_updating_game_files", { + ns: "download" + }), + downloaded: r ? e.info.downloaded : 0, + total: r ? e.info.total : 0, + percentage: r ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: r ? e.info.filesDone : 0, + filesTotal: r ? e.info.filesTotal : 0, + isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) + } + } + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: + n = { + ...n, + isPausable: !1 + }; + break; + case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { + const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; + n = { + ...n, + showProgress: !0, + currentPhase: wt.t("download_updating_game_content", { + ns: "download" + }), + downloaded: r ? e.info.downloaded : 0, + total: r ? e.info.total : 0, + percentage: r ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: r ? e.info.filesDone : 0, + filesTotal: r ? e.info.filesTotal : 0, + isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) + } + } + } + return n + }, + Xm = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), + Jm = e => e.find((e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED || e.status === pf.InstallationStatus.CANCELLING)), + eg = e => e.find((e => e.status === pf.InstallationStatus.CANCELLING)), + tg = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, + ng = (e, t) => e.filter((e => !tg(e.game, t))), + rg = async (e, t) => { + var n, r; + const { + application: a, + agreements: i, + library: o + } = Pw.getState(), s = await a.actions.isMinimumWindowsVersion(), l = await a.actions.isRespectingCPUCapabilites(); + if (!s || !l) return !1; + if (!await i.actions.checkAgreements()) return !1; + const c = null !== (n = o.availableGames.find((({ + id: t + }) => t === e))) && void 0 !== n ? n : null, + u = null !== (r = null === c || void 0 === c ? void 0 : c.channels.find((({ + id: e + }) => e === t))) && void 0 !== r ? r : null; + return !(!u || !c) + }, ag = (e, t, n, r) => e.map((e => tg(e.game, t) ? { + ...e, + status: n, + options: null !== r && void 0 !== r ? r : e.options + } : e)), ig = () => ({ + queryKey: ["library"], + queryFn: async () => qm.games.getLibrary(), + enabled: sg() + }), og = (e, t) => ({ + queryKey: ["games", e, t], + queryFn: async () => qm.games.getRelease({ + gameId: e, + channelId: t + }) + }); + + function sg() { + return !Pw.getState().application.actions.isGameRunningAndWindowMinimzed() + } + var lg = n(5391); + var cg = function() { let e = [], t = 0, n = e => { @@ -40996,13 +41543,13 @@ e() }; const a = r => { - t ? e.push(r) : (0, Qm.A4)((() => { + t ? e.push(r) : (0, lg.A4)((() => { n(r) })) }, i = () => { const t = e; - e = [], t.length && (0, Qm.A4)((() => { + e = [], t.length && (0, lg.A4)((() => { r((() => { t.forEach((e => { n(e) @@ -41035,14 +41582,14 @@ } } }(), - Xm = n(8974), - Jm = new class extends Xm.l { + ug = n(8974), + dg = new class extends ug.l { #r; #t; #n; constructor() { super(), this.#n = e => { - if (!Qm.sk && window.addEventListener) { + if (!lg.sk && window.addEventListener) { const t = () => e(); return window.addEventListener("visibilitychange", t, !1), () => { window.removeEventListener("visibilitychange", t) @@ -41073,33 +41620,33 @@ return "boolean" === typeof this.#r ? this.#r : "hidden" !== globalThis.document?.visibilityState } }, - eg = n(1901); + pg = n(1901); - function tg(e) { + function hg(e) { return Math.min(1e3 * 2 ** e, 3e4) } - function ng(e) { - return "online" !== (e ?? "online") || eg.N.isOnline() + function fg(e) { + return "online" !== (e ?? "online") || pg.N.isOnline() } - var rg = class { + var mg = class { constructor(e) { this.revert = e?.revert, this.silent = e?.silent } }; - function ag(e) { - return e instanceof rg + function gg(e) { + return e instanceof mg } - function ig(e) { + function vg(e) { let t, n, r, a = !1, i = 0, o = !1; const s = new Promise(((e, t) => { n = e, r = t })), - l = () => !Jm.isFocused() || "always" !== e.networkMode && !eg.N.isOnline(), + l = () => !dg.isFocused() || "always" !== e.networkMode && !pg.N.isOnline(), c = r => { o || (o = !0, e.onSuccess?.(r), t?.(), n(r)) }, @@ -41124,21 +41671,21 @@ } Promise.resolve(t).then(c).catch((t => { if (o) return; - const n = e.retry ?? (Qm.sk ? 0 : 3), - r = e.retryDelay ?? tg, + const n = e.retry ?? (lg.sk ? 0 : 3), + r = e.retryDelay ?? hg, s = "function" === typeof r ? r(i, t) : r, c = !0 === n || "number" === typeof n && i < n || "function" === typeof n && n(i, t); - !a && c ? (i++, e.onFail?.(i, t), (0, Qm._v)(s).then((() => { + !a && c ? (i++, e.onFail?.(i, t), (0, lg._v)(s).then((() => { if (l()) return d() })).then((() => { a ? u(t) : p() }))) : u(t) })) }; - return ng(e.networkMode) ? p() : d().then(p), { + return fg(e.networkMode) ? p() : d().then(p), { promise: s, cancel: t => { - o || (u(new rg(t)), e.abort?.()) + o || (u(new mg(t)), e.abort?.()) }, continue: () => { const e = t?.(); @@ -41152,24 +41699,24 @@ } } } - var og = class { + var yg = class { #a; destroy() { this.clearGcTimeout() } scheduleGc() { - this.clearGcTimeout(), (0, Qm.PN)(this.gcTime) && (this.#a = setTimeout((() => { + this.clearGcTimeout(), (0, lg.PN)(this.gcTime) && (this.#a = setTimeout((() => { this.optionalRemove() }), this.gcTime)) } updateGcTime(e) { - this.gcTime = Math.max(this.gcTime || 0, e ?? (Qm.sk ? 1 / 0 : 3e5)) + this.gcTime = Math.max(this.gcTime || 0, e ?? (lg.sk ? 1 / 0 : 3e5)) } clearGcTimeout() { this.#a && (clearTimeout(this.#a), this.#a = void 0) } }, - sg = class extends og { + _g = class extends yg { constructor(e) { super(), this.#i = !1, this.#o = e.defaultOptions, this.#s(e.options), this.#l = [], this.#c = e.cache, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#u = e.state || function(e) { const t = "function" === typeof e.initialData ? e.initialData() : e.initialData, @@ -41212,7 +41759,7 @@ this.#l.length || "idle" !== this.state.fetchStatus || this.#c.remove(this) } setData(e, t) { - const n = (0, Qm.oE)(this.state.data, e, this.options); + const n = (0, lg.oE)(this.state.data, e, this.options); return this.#f({ data: n, type: "success", @@ -41229,7 +41776,7 @@ } cancel(e) { const t = this.#p; - return this.#h?.cancel(e), t ? t.then(Qm.ZT).catch(Qm.ZT) : Promise.resolve() + return this.#h?.cancel(e), t ? t.then(lg.ZT).catch(lg.ZT) : Promise.resolve() } destroy() { super.destroy(), this.cancel({ @@ -41249,7 +41796,7 @@ return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#l.some((e => e.getCurrentResult().isStale)) } isStaleByTime(e = 0) { - return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, Qm.Kp)(this.state.dataUpdatedAt, e) + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, lg.Kp)(this.state.dataUpdatedAt, e) } onFocus() { this.#l.find((e => e.shouldFetchOnWindowFocus()))?.refetch({ @@ -41319,12 +41866,12 @@ meta: i.fetchOptions?.meta }); const o = e => { - ag(e) && e.silent || this.#f({ + gg(e) && e.silent || this.#f({ type: "error", error: e - }), ag(e) || (this.#c.config.onError?.(e, this), this.#c.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 + }), gg(e) || (this.#c.config.onError?.(e, this), this.#c.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 }; - return this.#h = ig({ + return this.#h = vg({ fn: i.fetchFn, abort: n.abort.bind(n), onSuccess: e => { @@ -41370,7 +41917,7 @@ }; case "fetch": return { - ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: ng(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { + ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: fg(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { error: null, status: "pending" } @@ -41385,7 +41932,7 @@ }; case "error": const n = e.error; - return ag(n) && n.revert && this.#d ? { + return gg(n) && n.revert && this.#d ? { ...this.#d, fetchStatus: "idle" } : { @@ -41407,7 +41954,7 @@ ...t, ...e.state } } - })(this.state), Zm.batch((() => { + })(this.state), cg.batch((() => { this.#l.forEach((e => { e.onQueryUpdate() })), this.#c.notify({ @@ -41418,16 +41965,16 @@ })) } }; - var lg = class extends Xm.l { + var bg = class extends ug.l { constructor(e = {}) { super(), this.config = e, this.#m = new Map } #m; build(e, t, n) { const r = t.queryKey, - a = t.queryHash ?? (0, Qm.Rm)(r, t); + a = t.queryHash ?? (0, lg.Rm)(r, t); let i = this.get(a); - return i || (i = new sg({ + return i || (i = new _g({ cache: this, queryKey: r, queryHash: a, @@ -41450,7 +41997,7 @@ })) } clear() { - Zm.batch((() => { + cg.batch((() => { this.getAll().forEach((e => { this.remove(e) })) @@ -41467,35 +42014,35 @@ exact: !0, ...e }; - return this.getAll().find((e => (0, Qm._x)(t, e))) + return this.getAll().find((e => (0, lg._x)(t, e))) } findAll(e = {}) { const t = this.getAll(); - return Object.keys(e).length > 0 ? t.filter((t => (0, Qm._x)(e, t))) : t + return Object.keys(e).length > 0 ? t.filter((t => (0, lg._x)(e, t))) : t } notify(e) { - Zm.batch((() => { + cg.batch((() => { this.listeners.forEach((t => { t(e) })) })) } onFocus() { - Zm.batch((() => { + cg.batch((() => { this.getAll().forEach((e => { e.onFocus() })) })) } onOnline() { - Zm.batch((() => { + cg.batch((() => { this.getAll().forEach((e => { e.onOnline() })) })) } }, - cg = class extends og { + xg = class extends yg { constructor(e) { super(), this.mutationId = e.mutationId, this.#o = e.defaultOptions, this.#g = e.mutationCache, this.#l = [], this.state = e.state || { context: void 0, @@ -41543,7 +42090,7 @@ return this.#h?.continue() ?? this.execute(this.state.variables) } async execute(e) { - const t = () => (this.#h = ig({ + const t = () => (this.#h = vg({ fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")), onFail: (e, t) => { this.#f({ @@ -41613,7 +42160,7 @@ }; case "pending": return { - ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !ng(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() + ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !fg(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() }; case "success": return { @@ -41624,7 +42171,7 @@ ...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error" } } - })(this.state), Zm.batch((() => { + })(this.state), cg.batch((() => { this.#l.forEach((t => { t.onMutationUpdate(e) })), this.#g.notify({ @@ -41635,7 +42182,7 @@ })) } }; - var ug = class extends Xm.l { + var wg = class extends ug.l { constructor(e = {}) { super(), this.config = e, this.#v = [], this.#y = 0 } @@ -41643,7 +42190,7 @@ #y; #_; build(e, t, n) { - const r = new cg({ + const r = new xg({ mutationCache: this, mutationId: ++this.#y, options: e.defaultMutationOptions(t), @@ -41664,7 +42211,7 @@ }) } clear() { - Zm.batch((() => { + cg.batch((() => { this.#v.forEach((e => { this.remove(e) })) @@ -41678,13 +42225,13 @@ exact: !0, ...e }; - return this.#v.find((e => (0, Qm.X7)(t, e))) + return this.#v.find((e => (0, lg.X7)(t, e))) } findAll(e = {}) { - return this.#v.filter((t => (0, Qm.X7)(e, t))) + return this.#v.filter((t => (0, lg.X7)(e, t))) } notify(e) { - Zm.batch((() => { + cg.batch((() => { this.listeners.forEach((t => { t(e) })) @@ -41693,14 +42240,14 @@ resumePausedMutations() { return this.#_ = (this.#_ ?? Promise.resolve()).then((() => { const e = this.#v.filter((e => e.state.isPaused)); - return Zm.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(Qm.ZT)))), Promise.resolve()))) + return cg.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(lg.ZT)))), Promise.resolve()))) })).then((() => { this.#_ = void 0 })), this.#_ } }; - function dg(e) { + function kg(e) { return { onFetch: (t, n) => { const r = async () => { @@ -41734,7 +42281,7 @@ { maxPages: c } = t.options, - u = r ? Qm.Ht : Qm.VX; + u = r ? lg.Ht : lg.VX; return { pages: u(e.pages, o, c), pageParams: u(e.pageParams, n, c) @@ -41747,13 +42294,13 @@ pages: a, pageParams: i }, - o = (e ? hg : pg)(n, t); + o = (e ? Sg : Eg)(n, t); u = await c(t, o, e) } else { u = await c(o, i[0] ?? n.initialPageParam); const t = e ?? a.length; for (let e = 1; e < t; e++) { - const e = pg(n, u); + const e = Eg(n, u); u = await c(u, e) } } @@ -41768,7 +42315,7 @@ } } - function pg(e, { + function Eg(e, { pages: t, pageParams: n }) { @@ -41776,32 +42323,32 @@ return e.getNextPageParam(t[r], t, n[r], n) } - function hg(e, { + function Sg(e, { pages: t, pageParams: n }) { return e.getPreviousPageParam?.(t[0], t, n[0], n) } - var fg; + var Og; - function mg() { - return mg = Object.assign ? Object.assign.bind() : function(e) { + function Pg() { + return Pg = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, mg.apply(this, arguments) + }, Pg.apply(this, arguments) }! function(e) { e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE" - }(fg || (fg = {})); - const gg = "popstate"; + }(Og || (Og = {})); + const Ig = "popstate"; - function vg(e, t) { + function Ag(e, t) { if (!1 === e || null === e || "undefined" === typeof e) throw new Error(t) } - function yg(e, t) { + function Rg(e, t) { if (!e) { "undefined" !== typeof console && console.warn(t); try { @@ -41810,7 +42357,7 @@ } } - function _g(e, t) { + function Cg(e, t) { return { usr: e.state, key: e.key, @@ -41818,18 +42365,18 @@ } } - function bg(e, t, n, r) { - return void 0 === n && (n = null), mg({ + function Tg(e, t, n, r) { + return void 0 === n && (n = null), Pg({ pathname: "string" === typeof e ? e : e.pathname, search: "", hash: "" - }, "string" === typeof t ? wg(t) : t, { + }, "string" === typeof t ? Ng(t) : t, { state: n, key: t && t.key || r || Math.random().toString(36).substr(2, 8) }) } - function xg(e) { + function Dg(e) { let { pathname: t = "/", search: n = "", @@ -41838,7 +42385,7 @@ return n && "?" !== n && (t += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (t += "#" === r.charAt(0) ? r : "#" + r), t } - function wg(e) { + function Ng(e) { let t = {}; if (e) { let n = e.indexOf("#"); @@ -41849,12 +42396,12 @@ return t } - function kg(e, t, n, r) { + function Lg(e, t, n, r) { void 0 === r && (r = {}); let { window: a = document.defaultView, v5Compat: i = !1 - } = r, o = a.history, s = fg.Pop, l = null, c = u(); + } = r, o = a.history, s = Og.Pop, l = null, c = u(); function u() { return (o.state || { @@ -41863,7 +42410,7 @@ } function d() { - s = fg.Pop; + s = Og.Pop; let e = u(), t = null == e ? null : e - c; c = e, l && l({ @@ -41875,10 +42422,10 @@ function p(e) { let t = "null" !== a.location.origin ? a.location.origin : a.location.href, - n = "string" === typeof e ? e : xg(e); - return vg(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) + n = "string" === typeof e ? e : Dg(e); + return Ag(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) } - null == c && (c = 0, o.replaceState(mg({}, o.state, { + null == c && (c = 0, o.replaceState(Pg({}, o.state, { idx: c }), "")); let h = { @@ -41890,8 +42437,8 @@ }, listen(e) { if (l) throw new Error("A history only accepts one active listener"); - return a.addEventListener(gg, d), l = e, () => { - a.removeEventListener(gg, d), l = null + return a.addEventListener(Ig, d), l = e, () => { + a.removeEventListener(Ig, d), l = null } }, createHref: e => t(a, e), @@ -41905,10 +42452,10 @@ } }, push: function(e, t) { - s = fg.Push; - let r = bg(h.location, e, t); + s = Og.Push; + let r = Tg(h.location, e, t); n && n(r, e), c = u() + 1; - let d = _g(r, c), + let d = Cg(r, c), p = h.createHref(r); try { o.pushState(d, "", p) @@ -41923,10 +42470,10 @@ }) }, replace: function(e, t) { - s = fg.Replace; - let r = bg(h.location, e, t); + s = Og.Replace; + let r = Tg(h.location, e, t); n && n(r, e), c = u(); - let a = _g(r, c), + let a = Cg(r, c), d = h.createHref(r); o.replaceState(a, "", d), i && l && l({ action: s, @@ -41938,38 +42485,38 @@ }; return h } - var Eg; + var jg; ! function(e) { e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error" - }(Eg || (Eg = {})); - const Sg = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); + }(jg || (jg = {})); + const Mg = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); - function Og(e, t, n, r) { + function zg(e, t, n, r) { return void 0 === n && (n = []), void 0 === r && (r = {}), e.map(((e, a) => { let i = [...n, a], o = "string" === typeof e.id ? e.id : i.join("-"); - if (vg(!0 !== e.index || !e.children, "Cannot specify children on an index route"), vg(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { - return !0 === e.index - }(e)) { - let n = mg({}, e, t(e), { + if (Ag(!0 !== e.index || !e.children, "Cannot specify children on an index route"), Ag(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { + return !0 === e.index + }(e)) { + let n = Pg({}, e, t(e), { id: o }); return r[o] = n, n } { - let n = mg({}, e, t(e), { + let n = Pg({}, e, t(e), { id: o, children: void 0 }); - return r[o] = n, e.children && (n.children = Og(e.children, t, i, r)), n + return r[o] = n, e.children && (n.children = zg(e.children, t, i, r)), n } })) } - function Pg(e, t, n) { + function Fg(e, t, n) { void 0 === n && (n = "/"); - let r = Mg(("string" === typeof t ? wg(t) : t).pathname || "/", n); + let r = Kg(("string" === typeof t ? Ng(t) : t).pathname || "/", n); if (null == r) return null; - let a = Ig(e); + let a = Ug(e); ! function(e) { e.sort(((e, t) => e.score !== t.score ? t.score - e.score : function(e, t) { let n = e.length === t.length && e.slice(0, -1).every(((e, n) => e === t[n])); @@ -41977,11 +42524,11 @@ }(e.routesMeta.map((e => e.childrenIndex)), t.routesMeta.map((e => e.childrenIndex))))) }(a); let i = null; - for (let o = 0; null == i && o < a.length; ++o) i = Dg(a[o], Lg(r)); + for (let o = 0; null == i && o < a.length; ++o) i = $g(a[o], Yg(r)); return i } - function Ig(e, t, n, r) { + function Ug(e, t, n, r) { void 0 === t && (t = []), void 0 === n && (n = []), void 0 === r && (r = ""); let a = (e, a, i) => { let o = { @@ -41990,42 +42537,42 @@ childrenIndex: a, route: e }; - o.relativePath.startsWith("/") && (vg(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); - let s = Vg([r, o.relativePath]), + o.relativePath.startsWith("/") && (Ag(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); + let s = Jg([r, o.relativePath]), l = n.concat(o); - e.children && e.children.length > 0 && (vg(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), Ig(e.children, t, l, s)), (null != e.path || e.index) && t.push({ + e.children && e.children.length > 0 && (Ag(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), Ug(e.children, t, l, s)), (null != e.path || e.index) && t.push({ path: s, - score: Rg(s, e.index), + score: qg(s, e.index), routesMeta: l }) }; return e.forEach(((e, t) => { var n; if ("" !== e.path && null != (n = e.path) && n.includes("?")) - for (let r of Ag(e.path)) a(e, t, r); + for (let r of Vg(e.path)) a(e, t, r); else a(e, t) })), t } - function Ag(e) { + function Vg(e) { let t = e.split("/"); if (0 === t.length) return []; let [n, ...r] = t, a = n.endsWith("?"), i = n.replace(/\?$/, ""); if (0 === r.length) return a ? [i, ""] : [i]; - let o = Ag(r.join("/")), + let o = Vg(r.join("/")), s = []; return s.push(...o.map((e => "" === e ? i : [i, e].join("/")))), a && s.push(...o), s.map((t => e.startsWith("/") && "" === t ? "/" : t)) } - const Cg = /^:\w+$/, - Tg = e => "*" === e; + const Gg = /^:\w+$/, + Bg = e => "*" === e; - function Rg(e, t) { + function qg(e, t) { let n = e.split("/"), r = n.length; - return n.some(Tg) && (r += -2), t && (r += 2), n.filter((e => !Tg(e))).reduce(((e, t) => e + (Cg.test(t) ? 3 : "" === t ? 1 : 10)), r) + return n.some(Bg) && (r += -2), t && (r += 2), n.filter((e => !Bg(e))).reduce(((e, t) => e + (Gg.test(t) ? 3 : "" === t ? 1 : 10)), r) } - function Dg(e, t) { + function $g(e, t) { let { routesMeta: n } = e, r = {}, a = "/", i = []; @@ -42033,7 +42580,7 @@ let e = n[o], s = o === n.length - 1, l = "/" === a ? t : t.slice(a.length) || "/", - c = jg({ + c = Hg({ path: e.relativePath, caseSensitive: e.caseSensitive, end: s @@ -42043,18 +42590,18 @@ let u = e.route; i.push({ params: r, - pathname: Vg([a, c.pathname]), - pathnameBase: Bg(Vg([a, c.pathnameBase])), + pathname: Jg([a, c.pathname]), + pathnameBase: ev(Jg([a, c.pathnameBase])), route: u - }), "/" !== c.pathnameBase && (a = Vg([a, c.pathnameBase])) + }), "/" !== c.pathnameBase && (a = Jg([a, c.pathnameBase])) } return i } - function Ng(e, t) { + function Wg(e, t) { void 0 === t && (t = {}); let n = e; - n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (yg(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); + n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (Rg(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); const r = n.startsWith("/") ? "/" : "", a = e => null == e ? "" : "string" === typeof e ? e : String(e); return r + n.split(/\/+/).map(((e, n, r) => { @@ -42065,13 +42612,13 @@ if (i) { const [, e, n] = i; let r = t[e]; - return vg("?" === n || null != r, 'Missing ":' + e + '" param'), a(r) + return Ag("?" === n || null != r, 'Missing ":' + e + '" param'), a(r) } return e.replace(/\?$/g, "") })).filter((e => !!e)).join("/") } - function jg(e, t) { + function Hg(e, t) { "string" === typeof e && (e = { path: e, caseSensitive: !1, @@ -42080,7 +42627,7 @@ let [n, r] = function(e, t, n) { void 0 === t && (t = !1); void 0 === n && (n = !0); - yg("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); + Rg("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); let r = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, ((e, t, n) => (r.push({ paramName: t, @@ -42111,7 +42658,7 @@ try { return decodeURIComponent(e) } catch (n) { - return yg(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e + return Rg(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e } }(l || "", r), e }), {}), @@ -42121,15 +42668,15 @@ } } - function Lg(e) { + function Yg(e) { try { return decodeURI(e) } catch (t) { - return yg(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e + return Rg(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e } } - function Mg(e, t) { + function Kg(e, t) { if ("/" === t) return e; if (!e.toLowerCase().startsWith(t.toLowerCase())) return null; let n = t.endsWith("/") ? t.length - 1 : t.length, @@ -42137,17 +42684,17 @@ return r && "/" !== r ? null : e.slice(n) || "/" } - function zg(e, t, n, r) { + function Qg(e, t, n, r) { return "Cannot include a '" + e + "' character in a manually specified `to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the `to." + n + '` field. Alternatively you may provide the full path as a string in and the router will parse it for you.' } - function Fg(e) { + function Zg(e) { return e.filter(((e, t) => 0 === t || e.route.path && e.route.path.length > 0)) } - function Ug(e, t, n, r) { + function Xg(e, t, n, r) { let a; - void 0 === r && (r = !1), "string" === typeof e ? a = wg(e) : (a = mg({}, e), vg(!a.pathname || !a.pathname.includes("?"), zg("?", "pathname", "search", a)), vg(!a.pathname || !a.pathname.includes("#"), zg("#", "pathname", "hash", a)), vg(!a.search || !a.search.includes("#"), zg("#", "search", "hash", a))); + void 0 === r && (r = !1), "string" === typeof e ? a = Ng(e) : (a = Pg({}, e), Ag(!a.pathname || !a.pathname.includes("?"), Qg("?", "pathname", "search", a)), Ag(!a.pathname || !a.pathname.includes("#"), Qg("#", "pathname", "hash", a)), Ag(!a.search || !a.search.includes("#"), Qg("#", "search", "hash", a))); let i, o = "" === e || "" === a.pathname, s = o ? "/" : a.pathname; if (null == s) i = n; @@ -42176,7 +42723,7 @@ pathname: n, search: r = "", hash: a = "" - } = "string" === typeof e ? wg(e) : e, i = n ? n.startsWith("/") ? n : function(e, t) { + } = "string" === typeof e ? Ng(e) : e, i = n ? n.startsWith("/") ? n : function(e, t) { let n = t.replace(/\/+$/, "").split("/"); return e.split("/").forEach((e => { ".." === e ? n.length > 1 && n.pop() : "." !== e && n.push(e) @@ -42184,46 +42731,46 @@ }(n, t) : t; return { pathname: i, - search: Gg(r), - hash: qg(a) + search: tv(r), + hash: nv(a) } }(a, i), c = s && "/" !== s && s.endsWith("/"), u = (o || "." === s) && n.endsWith("/"); return l.pathname.endsWith("/") || !c && !u || (l.pathname += "/"), l } - const Vg = e => e.join("/").replace(/\/\/+/g, "/"), - Bg = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), - Gg = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", - qg = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; - class $g extends Error {} - const Wg = function(e, t) { + const Jg = e => e.join("/").replace(/\/\/+/g, "/"), + ev = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), + tv = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", + nv = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; + class rv extends Error {} + const av = function(e, t) { void 0 === t && (t = 302); let n = t; "number" === typeof n ? n = { status: n } : "undefined" === typeof n.status && (n.status = 302); let r = new Headers(n.headers); - return r.set("Location", e), new Response(null, mg({}, n, { + return r.set("Location", e), new Response(null, Pg({}, n, { headers: r })) }; - class Hg { + class iv { constructor(e, t, n, r) { void 0 === r && (r = !1), this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n } } - function Yg(e) { + function ov(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "boolean" === typeof e.internal && "data" in e } - const Kg = ["post", "put", "patch", "delete"], - Qg = new Set(Kg), - Zg = ["get", ...Kg], - Xg = new Set(Zg), - Jg = new Set([301, 302, 303, 307, 308]), - ev = new Set([307, 308]), - tv = { + const sv = ["post", "put", "patch", "delete"], + lv = new Set(sv), + cv = ["get", ...sv], + uv = new Set(cv), + dv = new Set([301, 302, 303, 307, 308]), + pv = new Set([307, 308]), + hv = { state: "idle", location: void 0, formMethod: void 0, @@ -42233,7 +42780,7 @@ json: void 0, text: void 0 }, - nv = { + fv = { state: "idle", data: void 0, formMethod: void 0, @@ -42243,34 +42790,34 @@ json: void 0, text: void 0 }, - rv = { + mv = { state: "unblocked", proceed: void 0, reset: void 0, location: void 0 }, - av = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - iv = e => ({ + gv = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + vv = e => ({ hasErrorBoundary: Boolean(e.hasErrorBoundary) }), - ov = "remix-router-transitions"; + yv = "remix-router-transitions"; - function sv(e) { + function _v(e) { const t = e.window ? e.window : "undefined" !== typeof window ? window : void 0, n = "undefined" !== typeof t && "undefined" !== typeof t.document && "undefined" !== typeof t.document.createElement, r = !n; let a; - if (vg(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) a = e.mapRouteProperties; + if (Ag(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) a = e.mapRouteProperties; else if (e.detectErrorBoundary) { let t = e.detectErrorBoundary; a = e => ({ hasErrorBoundary: t(e) }) - } else a = iv; + } else a = vv; let i, o = {}, - s = Og(e.routes, a, void 0, o), + s = zg(e.routes, a, void 0, o), l = e.basename || "/", - c = mg({ + c = Pg({ v7_fetcherPersist: !1, v7_normalizeFormMethod: !1, v7_prependBasename: !1 @@ -42281,16 +42828,16 @@ h = null, f = null, m = null != e.hydrationData, - g = Pg(s, e.history.location, l), + g = Fg(s, e.history.location, l), v = null; if (null == g) { - let t = Ev(404, { + let t = jv(404, { pathname: e.history.location.pathname }), { matches: n, route: r - } = kv(s); + } = Lv(s); g = n, v = { [r.id]: t } @@ -42301,7 +42848,7 @@ location: e.history.location, matches: g, initialized: b, - navigation: tv, + navigation: hv, restoreScrollPosition: null == e.hydrationData && null, preventScrollReset: !1, revalidation: "idle", @@ -42311,7 +42858,7 @@ fetchers: new Map, blockers: new Map }, - w = fg.Pop, + w = Og.Pop, k = !1, E = !1, S = new Map, @@ -42319,21 +42866,21 @@ P = !1, I = !1, A = [], - C = [], - T = new Map, - R = 0, + R = [], + C = new Map, + T = 0, D = -1, N = new Map, - j = new Set, - L = new Map, + L = new Set, + j = new Map, M = new Map, z = new Set, F = new Map, U = new Map, V = !1; - function B(e, t) { - void 0 === t && (t = {}), x = mg({}, x, e); + function G(e, t) { + void 0 === t && (t = {}), x = Pg({}, x, e); let n = [], r = []; c.v7_fetcherPersist && x.fetchers.forEach(((e, t) => { @@ -42345,18 +42892,18 @@ }))), c.v7_fetcherPersist && (n.forEach((e => x.fetchers.delete(e))), r.forEach((e => Z(e)))) } - function G(t, n, r) { + function B(t, n, r) { var a, o; let l, { flushSync: c } = void 0 === r ? {} : r, - u = null != x.actionData && null != x.navigation.formMethod && Rv(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (a = t.state) ? void 0 : a._isRedirect); + u = null != x.actionData && null != x.navigation.formMethod && qv(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (a = t.state) ? void 0 : a._isRedirect); l = n.actionData ? Object.keys(n.actionData).length > 0 ? n.actionData : null : u ? x.actionData : null; - let d = n.loaderData ? xv(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, + let d = n.loaderData ? Dv(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, p = x.blockers; - p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, rv)))); - let h, f = !0 === k || null != x.navigation.formMethod && Rv(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); - if (i && (s = i, i = void 0), P || w === fg.Pop || (w === fg.Push ? e.history.push(t, t.state) : w === fg.Replace && e.history.replace(t, t.state)), w === fg.Pop) { + p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, mv)))); + let h, f = !0 === k || null != x.navigation.formMethod && qv(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); + if (i && (s = i, i = void 0), P || w === Og.Pop || (w === Og.Push ? e.history.push(t, t.state) : w === Og.Replace && e.history.replace(t, t.state)), w === Og.Pop) { let e = S.get(x.location.pathname); e && e.has(t.pathname) ? h = { currentLocation: x.location, @@ -42372,13 +42919,13 @@ nextLocation: t } } - B(mg({}, n, { + G(Pg({}, n, { actionData: l, loaderData: d, historyAction: w, location: t, initialized: !0, - navigation: tv, + navigation: hv, revalidation: "idle", restoreScrollPosition: se(t, n.matches || x.matches), preventScrollReset: f, @@ -42386,7 +42933,7 @@ }), { viewTransitionOpts: h, flushSync: !0 === c - }), w = fg.Pop, k = !1, E = !1, P = !1, I = !1, A = [], C = [] + }), w = Og.Pop, k = !1, E = !1, P = !1, I = !1, A = [], R = [] } async function q(t, n, r) { _ && _.abort(), _ = null, w = t, P = !0 === (r && r.startUninterruptedRevalidation), @@ -42398,17 +42945,17 @@ }(x.location, x.matches), k = !0 === (r && r.preventScrollReset), E = !0 === (r && r.enableViewTransition); let c = i || s, u = r && r.overrideNavigation, - d = Pg(c, n, l), + d = Fg(c, n, l), h = !0 === (r && r.flushSync); if (!d) { - let e = Ev(404, { + let e = jv(404, { pathname: n.pathname }), { matches: t, route: r - } = kv(c); - return ie(), void G(n, { + } = Lv(c); + return ie(), void B(n, { matches: t, loaderData: {}, errors: { @@ -42419,22 +42966,22 @@ }) } if (x.initialized && !I && function(e, t) { - if (e.pathname !== t.pathname || e.search !== t.search) return !1; - if ("" === e.hash) return "" !== t.hash; - if (e.hash === t.hash) return !0; - if ("" !== t.hash) return !0; - return !1 - }(x.location, n) && !(r && r.submission && Rv(r.submission.formMethod))) return void G(n, { + if (e.pathname !== t.pathname || e.search !== t.search) return !1; + if ("" === e.hash) return "" !== t.hash; + if (e.hash === t.hash) return !0; + if ("" !== t.hash) return !0; + return !1 + }(x.location, n) && !(r && r.submission && qv(r.submission.formMethod))) return void B(n, { matches: d }, { flushSync: h }); _ = new AbortController; - let m, g, v = gv(e.history, n, _.signal, r && r.submission); + let m, g, v = Iv(e.history, n, _.signal, r && r.submission); if (r && r.pendingError) g = { - [wv(d).route.id]: r.pendingError + [Nv(d).route.id]: r.pendingError }; - else if (r && r.submission && Rv(r.submission.formMethod)) { + else if (r && r.submission && qv(r.submission.formMethod)) { let e = await async function(e, t, n, r, i) { void 0 === i && (i = {}); H(); @@ -42451,25 +42998,25 @@ }; return n }(t, n); - B({ + G({ navigation: c }, { flushSync: !0 === i.flushSync }); - let u = Lv(r, t); + let u = Yv(r, t); if (u.route.action || u.route.lazy) { - if (s = await mv("action", e, u, r, o, a, l), e.signal.aborted) return { + if (s = await Pv("action", e, u, r, o, a, l), e.signal.aborted) return { shortCircuited: !0 } } else s = { - type: Eg.error, - error: Ev(405, { + type: jg.error, + error: jv(405, { method: e.method, pathname: t.pathname, routeId: u.route.id }) }; - if (Av(s)) { + if (Vv(s)) { let e; return e = i && null != i.replace ? i.replace : s.location === x.location.pathname + x.location.search, await $(x, s, { submission: n, @@ -42478,16 +43025,16 @@ shortCircuited: !0 } } - if (Iv(s)) { - let e = wv(r, u.route.id); - return !0 !== (i && i.replace) && (w = fg.Push), { + if (Uv(s)) { + let e = Nv(r, u.route.id); + return !0 !== (i && i.replace) && (w = Og.Push), { pendingActionData: {}, pendingActionError: { [e.route.id]: s.error } } } - if (Pv(s)) throw Ev(400, { + if (Fv(s)) throw jv(400, { type: "defer-action" }); return { @@ -42500,7 +43047,7 @@ flushSync: h }); if (e.shortCircuited) return; - m = e.pendingActionData, g = e.pendingActionError, u = zv(n, r.submission), h = !1, v = new Request(v.url, { + m = e.pendingActionData, g = e.pendingActionError, u = Qv(n, r.submission), h = !1, v = new Request(v.url, { signal: v.signal }) } @@ -42509,13 +43056,13 @@ loaderData: b, errors: S } = await async function(t, n, r, a, o, c, u, d, p, h) { - let f = a || zv(n, o), - m = o || c || Mv(f), + let f = a || Qv(n, o), + m = o || c || Kv(f), g = i || s, - [v, y] = dv(e.history, x, r, m, n, I, A, C, z, L, j, g, l, p, h); - if (ie((e => !(r && r.some((t => t.route.id === e))) || v && v.some((t => t.route.id === e)))), D = ++R, 0 === v.length && 0 === y.length) { + [v, y] = kv(e.history, x, r, m, n, I, A, R, z, j, L, g, l, p, h); + if (ie((e => !(r && r.some((t => t.route.id === e))) || v && v.some((t => t.route.id === e)))), D = ++T, 0 === v.length && 0 === y.length) { let e = ee(); - return G(n, mg({ + return B(n, Pg({ matches: r, loaderData: {}, errors: h || null @@ -42532,11 +43079,11 @@ if (!P) { y.forEach((e => { let t = x.fetchers.get(e.key), - n = Fv(void 0, t ? t.data : void 0); + n = Zv(void 0, t ? t.data : void 0); x.fetchers.set(e.key, n) })); let e = p || x.actionData; - B(mg({ + G(Pg({ navigation: f }, e ? 0 === Object.keys(e).length ? { actionData: null @@ -42549,7 +43096,7 @@ }) } y.forEach((e => { - T.has(e.key) && X(e.key), e.controller && T.set(e.key, e.controller) + C.has(e.key) && X(e.key), e.controller && C.set(e.key, e.controller) })); let b = () => y.forEach((e => X(e.key))); _ && _.signal.addEventListener("abort", b); @@ -42562,12 +43109,12 @@ shortCircuited: !0 }; _ && _.signal.removeEventListener("abort", b); - y.forEach((e => T.delete(e.key))); - let S = Sv(w); + y.forEach((e => C.delete(e.key))); + let S = Mv(w); if (S) { if (S.idx >= v.length) { let e = y[S.idx - v.length].key; - j.add(e) + L.add(e) } return await $(x, S.result, { replace: u @@ -42578,7 +43125,7 @@ let { loaderData: O, errors: N - } = bv(x, r, v, k, h, y, E, F); + } = Tv(x, r, v, k, h, y, E, F); F.forEach(((e, t) => { e.subscribe((n => { (n || e.done) && F.delete(t) @@ -42587,14 +43134,14 @@ let M = ee(), U = te(D), V = M || U || y.length > 0; - return mg({ + return Pg({ loaderData: O, errors: N }, V ? { fetchers: new Map(x.fetchers) } : {}) }(v, n, d, u, r && r.submission, r && r.fetcherSubmission, r && r.replace, h, m, g); - y || (_ = null, G(n, mg({ + y || (_ = null, B(n, Pg({ matches: d }, m ? { actionData: m @@ -42610,35 +43157,35 @@ replace: c } = void 0 === i ? {} : i; a.revalidate && (I = !0); - let u = bg(r.location, a.location, { + let u = Tg(r.location, a.location, { _isRedirect: !0 }); - if (vg(u, "Expected a location on the redirect navigation"), n) { + if (Ag(u, "Expected a location on the redirect navigation"), n) { let n = !1; if (a.reloadDocument) n = !0; - else if (av.test(a.location)) { + else if (gv.test(a.location)) { const r = e.history.createURL(a.location); - n = r.origin !== t.location.origin || null == Mg(r.pathname, l) + n = r.origin !== t.location.origin || null == Kg(r.pathname, l) } if (n) return void(c ? t.location.replace(a.location) : t.location.assign(a.location)) } _ = null; - let d = !0 === c ? fg.Replace : fg.Push, + let d = !0 === c ? Og.Replace : Og.Push, { formMethod: p, formAction: h, formEncType: f } = r.navigation; - !o && !s && p && h && f && (o = Mv(r.navigation)); + !o && !s && p && h && f && (o = Kv(r.navigation)); let m = o || s; - if (ev.has(a.status) && m && Rv(m.formMethod)) await q(d, u, { - submission: mg({}, m, { + if (pv.has(a.status) && m && qv(m.formMethod)) await q(d, u, { + submission: Pg({}, m, { formAction: a.location }), preventScrollReset: k }); else { - let e = zv(u, o); + let e = Qv(u, o); await q(d, u, { overrideNavigation: e, fetcherSubmission: s, @@ -42647,18 +43194,18 @@ } } async function W(t, n, r, i, s) { - let c = await Promise.all([...r.map((e => mv("loader", s, e, n, o, a, l))), ...i.map((t => { - if (t.matches && t.match && t.controller) return mv("loader", gv(e.history, t.path, t.controller.signal), t.match, t.matches, o, a, l); + let c = await Promise.all([...r.map((e => Pv("loader", s, e, n, o, a, l))), ...i.map((t => { + if (t.matches && t.match && t.controller) return Pv("loader", Iv(e.history, t.path, t.controller.signal), t.match, t.matches, o, a, l); return { - type: Eg.error, - error: Ev(404, { + type: jg.error, + error: jv(404, { pathname: t.path }) } }))]), u = c.slice(0, r.length), d = c.slice(r.length); - return await Promise.all([Dv(t, r, u, u.map((() => s.signal)), !1, x.loaderData), Dv(t, i.map((e => e.match)), d, i.map((e => e.controller ? e.controller.signal : null)), !0)]), { + return await Promise.all([$v(t, r, u, u.map((() => s.signal)), !1, x.loaderData), $v(t, i.map((e => e.match)), d, i.map((e => e.controller ? e.controller.signal : null)), !0)]), { results: c, loaderResults: u, fetcherResults: d @@ -42666,13 +43213,13 @@ } function H() { - I = !0, A.push(...ie()), L.forEach(((e, t) => { - T.has(t) && (C.push(t), X(t)) + I = !0, A.push(...ie()), j.forEach(((e, t) => { + C.has(t) && (R.push(t), X(t)) })) } function Y(e, t, n) { - void 0 === n && (n = {}), x.fetchers.set(e, t), B({ + void 0 === n && (n = {}), x.fetchers.set(e, t), G({ fetchers: new Map(x.fetchers) }, { flushSync: !0 === (n && n.flushSync) @@ -42681,8 +43228,8 @@ function K(e, t, n, r) { void 0 === r && (r = {}); - let a = wv(x.matches, t); - Z(e), B({ + let a = Nv(x.matches, t); + Z(e), G({ errors: { [a.route.id]: n }, @@ -42693,22 +43240,22 @@ } function Q(e) { - return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), z.has(e) && z.delete(e)), x.fetchers.get(e) || nv + return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), z.has(e) && z.delete(e)), x.fetchers.get(e) || fv } function Z(e) { let t = x.fetchers.get(e); - !T.has(e) || t && "loading" === t.state && N.has(e) || X(e), L.delete(e), N.delete(e), j.delete(e), z.delete(e), x.fetchers.delete(e) + !C.has(e) || t && "loading" === t.state && N.has(e) || X(e), j.delete(e), N.delete(e), L.delete(e), z.delete(e), x.fetchers.delete(e) } function X(e) { - let t = T.get(e); - vg(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) + let t = C.get(e); + Ag(t, "Expected fetch controller: " + e), t.abort(), C.delete(e) } function J(e) { for (let t of e) { - let e = Uv(Q(t).data); + let e = Xv(Q(t).data); x.fetchers.set(t, e) } } @@ -42716,9 +43263,9 @@ function ee() { let e = [], t = !1; - for (let n of j) { + for (let n of L) { let r = x.fetchers.get(n); - vg(r, "Expected fetcher: " + n), "loading" === r.state && (j.delete(n), e.push(n), t = !0) + Ag(r, "Expected fetcher: " + n), "loading" === r.state && (L.delete(n), e.push(n), t = !0) } return J(e), t } @@ -42728,7 +43275,7 @@ for (let [n, r] of N) if (r < e) { let e = x.fetchers.get(n); - vg(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), N.delete(n), t.push(n)) + Ag(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), N.delete(n), t.push(n)) } return J(t), t.length > 0 } @@ -42737,10 +43284,10 @@ } function re(e, t) { - let n = x.blockers.get(e) || rv; - vg("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); + let n = x.blockers.get(e) || mv; + Ag("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); let r = new Map(x.blockers); - r.set(e, t), B({ + r.set(e, t), G({ blockers: r }) } @@ -42752,7 +43299,7 @@ historyAction: r } = e; if (0 === U.size) return; - U.size > 1 && yg(!1, "A router only supports one blocker at a time"); + U.size > 1 && Rg(!1, "A router only supports one blocker at a time"); let a = Array.from(U.entries()), [i, o] = a[a.length - 1], s = x.blockers.get(i); @@ -42813,40 +43360,40 @@ }, initialize: function() { if (u = e.history.listen((t => { - let { - action: n, - location: r, - delta: a - } = t; - if (V) return void(V = !1); - yg(0 === U.size || null != a, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); - let i = ae({ - currentLocation: x.location, - nextLocation: r, - historyAction: n - }); - return i && null != a ? (V = !0, e.history.go(-1 * a), void re(i, { - state: "blocked", - location: r, - proceed() { - re(i, { - state: "proceeding", - proceed: void 0, - reset: void 0, - location: r - }), e.history.go(a) - }, - reset() { - let e = new Map(x.blockers); - e.set(i, rv), B({ - blockers: e - }) - } - })) : q(n, r) - })), n) { + let { + action: n, + location: r, + delta: a + } = t; + if (V) return void(V = !1); + Rg(0 === U.size || null != a, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); + let i = ae({ + currentLocation: x.location, + nextLocation: r, + historyAction: n + }); + return i && null != a ? (V = !0, e.history.go(-1 * a), void re(i, { + state: "blocked", + location: r, + proceed() { + re(i, { + state: "proceeding", + proceed: void 0, + reset: void 0, + location: r + }), e.history.go(a) + }, + reset() { + let e = new Map(x.blockers); + e.set(i, mv), G({ + blockers: e + }) + } + })) : q(n, r) + })), n) { ! function(e, t) { try { - let n = e.sessionStorage.getItem(ov); + let n = e.sessionStorage.getItem(yv); if (n) { let e = JSON.parse(n); for (let [n, r] of Object.entries(e || {})) r && Array.isArray(r) && t.set(n, new Set(r || [])) @@ -42858,24 +43405,24 @@ let r = {}; for (let [e, n] of t) r[e] = [...n]; try { - e.sessionStorage.setItem(ov, JSON.stringify(r)) + e.sessionStorage.setItem(yv, JSON.stringify(r)) } catch (n) { - yg(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") + Rg(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") } } }(t, S); t.addEventListener("pagehide", e), O = () => t.removeEventListener("pagehide", e) } - return x.initialized || q(fg.Pop, x.location), y + return x.initialized || q(Og.Pop, x.location), y }, subscribe: function(e) { return d.add(e), () => d.delete(e) }, enableScrollRestoration: function(e, t, n) { - if (p = e, f = t, h = n || null, !m && x.navigation === tv) { + if (p = e, f = t, h = n || null, !m && x.navigation === hv) { m = !0; let e = se(x.location, x.matches); - null != e && B({ + null != e && G({ restoreScrollPosition: e }) } @@ -42885,18 +43432,18 @@ }, navigate: async function t(n, r) { if ("number" === typeof n) return void e.history.go(n); - let a = lv(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), + let a = bv(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), { path: i, submission: o, error: s - } = cv(c.v7_normalizeFormMethod, !1, a, r), + } = xv(c.v7_normalizeFormMethod, !1, a, r), u = x.location, - d = bg(x.location, i, r && r.state); - d = mg({}, d, e.history.encodeLocation(d)); + d = Tg(x.location, i, r && r.state); + d = Pg({}, d, e.history.encodeLocation(d)); let p = r && null != r.replace ? r.replace : void 0, - h = fg.Push; - !0 === p ? h = fg.Replace : !1 === p || null != o && Rv(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = fg.Replace); + h = Og.Push; + !0 === p ? h = Og.Replace : !1 === p || null != o && qv(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = Og.Replace); let f = r && "preventScrollReset" in r ? !0 === r.preventScrollReset : void 0, m = !0 === (r && r.unstable_flushSync), g = ae({ @@ -42925,7 +43472,7 @@ }, reset() { let e = new Map(x.blockers); - e.set(g, rv), B({ + e.set(g, mv), G({ blockers: e }) } @@ -42933,12 +43480,12 @@ }, fetch: function(t, n, u, d) { if (r) throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback."); - T.has(t) && X(t); + C.has(t) && X(t); let p = !0 === (d && d.unstable_flushSync), h = i || s, - f = lv(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), - m = Pg(h, f, l); - if (!m) return void K(t, n, Ev(404, { + f = bv(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), + m = Fg(h, f, l); + if (!m) return void K(t, n, jv(404, { pathname: f }), { flushSync: p @@ -42947,14 +43494,14 @@ path: g, submission: v, error: y - } = cv(c.v7_normalizeFormMethod, !0, f, d); + } = xv(c.v7_normalizeFormMethod, !0, f, d); if (y) return void K(t, n, y, { flushSync: p }); - let b = Lv(m, g); - k = !0 === (d && d.preventScrollReset), v && Rv(v.formMethod) ? async function(t, n, r, c, u, d, p) { - if (H(), L.delete(t), !c.route.action && !c.route.lazy) { - let e = Ev(405, { + let b = Yv(m, g); + k = !0 === (d && d.preventScrollReset), v && qv(v.formMethod) ? async function(t, n, r, c, u, d, p) { + if (H(), j.delete(t), !c.route.action && !c.route.lazy) { + let e = jv(405, { method: p.formMethod, pathname: r, routeId: n @@ -42980,37 +43527,37 @@ flushSync: d }); let f = new AbortController, - m = gv(e.history, r, f.signal, p); - T.set(t, f); - let g = R, - v = await mv("action", m, c, u, o, a, l); - if (m.signal.aborted) return void(T.get(t) === f && T.delete(t)); - if (z.has(t)) return void Y(t, Uv(void 0)); - if (Av(v)) return T.delete(t), D > g ? void Y(t, Uv(void 0)) : (j.add(t), Y(t, Fv(p)), $(x, v, { + m = Iv(e.history, r, f.signal, p); + C.set(t, f); + let g = T, + v = await Pv("action", m, c, u, o, a, l); + if (m.signal.aborted) return void(C.get(t) === f && C.delete(t)); + if (z.has(t)) return void Y(t, Xv(void 0)); + if (Vv(v)) return C.delete(t), D > g ? void Y(t, Xv(void 0)) : (L.add(t), Y(t, Zv(p)), $(x, v, { fetcherSubmission: p })); - if (Iv(v)) return void K(t, n, v.error); - if (Pv(v)) throw Ev(400, { + if (Uv(v)) return void K(t, n, v.error); + if (Fv(v)) throw jv(400, { type: "defer-action" }); let y = x.navigation.location || x.location, - b = gv(e.history, y, f.signal), + b = Iv(e.history, y, f.signal), k = i || s, - E = "idle" !== x.navigation.state ? Pg(k, x.navigation.location, l) : x.matches; - vg(E, "Didn't find any matches after fetcher action"); - let S = ++R; + E = "idle" !== x.navigation.state ? Fg(k, x.navigation.location, l) : x.matches; + Ag(E, "Didn't find any matches after fetcher action"); + let S = ++T; N.set(t, S); - let O = Fv(p, v.data); + let O = Zv(p, v.data); x.fetchers.set(t, O); - let [P, M] = dv(e.history, x, E, p, y, I, A, C, z, L, j, k, l, { + let [P, M] = kv(e.history, x, E, p, y, I, A, R, z, j, L, k, l, { [c.route.id]: v.data }, void 0); M.filter((e => e.key !== t)).forEach((e => { let t = e.key, n = x.fetchers.get(t), - r = Fv(void 0, n ? n.data : void 0); - x.fetchers.set(t, r), T.has(t) && X(t), e.controller && T.set(t, e.controller) - })), B({ + r = Zv(void 0, n ? n.data : void 0); + x.fetchers.set(t, r), C.has(t) && X(t), e.controller && C.set(t, e.controller) + })), G({ fetchers: new Map(x.fetchers) }); let U = () => M.forEach((e => X(e.key))); @@ -43021,57 +43568,57 @@ fetcherResults: Q } = await W(x.matches, E, P, M, b); if (f.signal.aborted) return; - f.signal.removeEventListener("abort", U), N.delete(t), T.delete(t), M.forEach((e => T.delete(e.key))); - let Z = Sv(V); + f.signal.removeEventListener("abort", U), N.delete(t), C.delete(t), M.forEach((e => C.delete(e.key))); + let Z = Mv(V); if (Z) { if (Z.idx >= P.length) { let e = M[Z.idx - P.length].key; - j.add(e) + L.add(e) } return $(x, Z.result) } let { loaderData: J, errors: ee - } = bv(x, x.matches, P, q, void 0, M, Q, F); + } = Tv(x, x.matches, P, q, void 0, M, Q, F); if (x.fetchers.has(t)) { - let e = Uv(v.data); + let e = Xv(v.data); x.fetchers.set(t, e) } - te(S), "loading" === x.navigation.state && S > D ? (vg(w, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { + te(S), "loading" === x.navigation.state && S > D ? (Ag(w, "Expected pending action"), _ && _.abort(), B(x.navigation.location, { matches: E, loaderData: J, errors: ee, fetchers: new Map(x.fetchers) - })) : (B({ + })) : (G({ errors: ee, - loaderData: xv(x.loaderData, J, E, ee), + loaderData: Dv(x.loaderData, J, E, ee), fetchers: new Map(x.fetchers) }), I = !1) - }(t, n, g, b, m, p, v): (L.set(t, { + }(t, n, g, b, m, p, v): (j.set(t, { routeId: n, path: g }), async function(t, n, r, i, s, c, u) { let d = x.fetchers.get(t); - Y(t, Fv(u, d ? d.data : void 0), { + Y(t, Zv(u, d ? d.data : void 0), { flushSync: c }); let p = new AbortController, - h = gv(e.history, r, p.signal); - T.set(t, p); - let f = R, - m = await mv("loader", h, i, s, o, a, l); - Pv(m) && (m = await Nv(m, h.signal, !0) || m); - T.get(t) === p && T.delete(t); + h = Iv(e.history, r, p.signal); + C.set(t, p); + let f = T, + m = await Pv("loader", h, i, s, o, a, l); + Fv(m) && (m = await Wv(m, h.signal, !0) || m); + C.get(t) === p && C.delete(t); if (h.signal.aborted) return; - if (z.has(t)) return void Y(t, Uv(void 0)); - if (Av(m)) return D > f ? void Y(t, Uv(void 0)) : (j.add(t), void await $(x, m)); - if (Iv(m)) return void K(t, n, m.error); - vg(!Pv(m), "Unhandled fetcher deferred data"), Y(t, Uv(m.data)) + if (z.has(t)) return void Y(t, Xv(void 0)); + if (Vv(m)) return D > f ? void Y(t, Xv(void 0)) : (L.add(t), void await $(x, m)); + if (Uv(m)) return void K(t, n, m.error); + Ag(!Fv(m), "Unhandled fetcher deferred data"), Y(t, Xv(m.data)) }(t, n, g, b, m, p, v)) }, revalidate: function() { - H(), B({ + H(), G({ revalidation: "loading" }), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? q(w || x.historyAction, x.navigation.location, { overrideNavigation: x.navigation @@ -43087,7 +43634,7 @@ let t = (M.get(e) || 0) - 1; t <= 0 ? (M.delete(e), z.add(e)) : M.set(e, t) } else Z(e); - B({ + G({ fetchers: new Map(x.fetchers) }) }, @@ -43095,20 +43642,20 @@ u && u(), O && O(), d.clear(), _ && _.abort(), x.fetchers.forEach(((e, t) => Z(t))), x.blockers.forEach(((e, t) => ne(t))) }, getBlocker: function(e, t) { - let n = x.blockers.get(e) || rv; + let n = x.blockers.get(e) || mv; return U.get(e) !== t && U.set(e, t), n }, deleteBlocker: ne, - _internalFetchControllers: T, + _internalFetchControllers: C, _internalActiveDeferreds: F, _internalSetRoutes: function(e) { - o = {}, i = Og(e, a, void 0, o) + o = {}, i = zg(e, a, void 0, o) } }, y } Symbol("deferred"); - function lv(e, t, n, r, a, i, o) { + function bv(e, t, n, r, a, i, o) { let s, l; if (i) { s = []; @@ -43118,34 +43665,34 @@ break } } else s = t, l = t[t.length - 1]; - let c = Ug(a || ".", Fg(s).map((e => e.pathnameBase)), Mg(e.pathname, n) || e.pathname, "path" === o); - return null == a && (c.search = e.search, c.hash = e.hash), null != a && "" !== a && "." !== a || !l || !l.route.index || jv(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : Vg([n, c.pathname])), xg(c) + let c = Xg(a || ".", Zg(s).map((e => e.pathnameBase)), Kg(e.pathname, n) || e.pathname, "path" === o); + return null == a && (c.search = e.search, c.hash = e.hash), null != a && "" !== a && "." !== a || !l || !l.route.index || Hv(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : Jg([n, c.pathname])), Dg(c) } - function cv(e, t, n, r) { + function xv(e, t, n, r) { if (!r || ! function(e) { - return null != e && ("formData" in e && null != e.formData || "body" in e && void 0 !== e.body) - }(r)) return { + return null != e && ("formData" in e && null != e.formData || "body" in e && void 0 !== e.body) + }(r)) return { path: n }; - if (r.formMethod && !Tv(r.formMethod)) return { + if (r.formMethod && !Bv(r.formMethod)) return { path: n, - error: Ev(405, { + error: jv(405, { method: r.formMethod }) }; let a, i, o = () => ({ path: n, - error: Ev(400, { + error: jv(400, { type: "invalid-body" }) }), s = r.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), - c = Ov(n); + c = zv(n); if (void 0 !== r.body) { if ("text/plain" === r.formEncType) { - if (!Rv(l)) return o(); + if (!qv(l)) return o(); let e = "string" === typeof r.body ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? Array.from(r.body.entries()).reduce(((e, t) => { let [n, r] = t; return "" + e + n + "=" + r + "\n" @@ -43163,7 +43710,7 @@ } } if ("application/json" === r.formEncType) { - if (!Rv(l)) return o(); + if (!qv(l)) return o(); try { let e = "string" === typeof r.body ? JSON.parse(r.body) : r.body; return { @@ -43182,15 +43729,15 @@ } } } - if (vg("function" === typeof FormData, "FormData is not available in this environment"), r.formData) a = vv(r.formData), i = r.formData; - else if (r.body instanceof FormData) a = vv(r.body), i = r.body; - else if (r.body instanceof URLSearchParams) a = r.body, i = yv(a); + if (Ag("function" === typeof FormData, "FormData is not available in this environment"), r.formData) a = Av(r.formData), i = r.formData; + else if (r.body instanceof FormData) a = Av(r.body), i = r.body; + else if (r.body instanceof URLSearchParams) a = r.body, i = Rv(a); else if (null == r.body) a = new URLSearchParams, i = new FormData; else try { - a = new URLSearchParams(r.body), i = yv(a) - } catch (p) { - return o() - } + a = new URLSearchParams(r.body), i = Rv(a) + } catch (p) { + return o() + } let u = { formMethod: l, formAction: c, @@ -43199,18 +43746,18 @@ json: void 0, text: void 0 }; - if (Rv(u.formMethod)) return { + if (qv(u.formMethod)) return { path: n, submission: u }; - let d = wg(n); - return t && d.search && jv(d.search) && a.append("index", ""), d.search = "?" + a, { - path: xg(d), + let d = Ng(n); + return t && d.search && Hv(d.search) && a.append("index", ""), d.search = "?" + a, { + path: Dg(d), submission: u } } - function uv(e, t) { + function wv(e, t) { let n = e; if (t) { let r = e.findIndex((e => e.route.id === t)); @@ -43219,35 +43766,35 @@ return n } - function dv(e, t, n, r, a, i, o, s, l, c, u, d, p, h, f) { + function kv(e, t, n, r, a, i, o, s, l, c, u, d, p, h, f) { let m = f ? Object.values(f)[0] : h ? Object.values(h)[0] : void 0, g = e.createURL(t.location), v = e.createURL(a), y = f ? Object.keys(f)[0] : void 0, - _ = uv(n, y).filter(((e, n) => { + _ = wv(n, y).filter(((e, n) => { if (e.route.lazy) return !0; if (null == e.route.loader) return !1; if (function(e, t, n) { - let r = !t || n.route.id !== t.route.id, - a = void 0 === e[n.route.id]; - return r || a - }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; + let r = !t || n.route.id !== t.route.id, + a = void 0 === e[n.route.id]; + return r || a + }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; let a = t.matches[n], s = e; - return hv(e, mg({ + return Sv(e, Pg({ currentUrl: g, currentParams: a.params, nextUrl: v, nextParams: s.params }, r, { actionResult: m, - defaultShouldRevalidate: i || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || pv(a, s) + defaultShouldRevalidate: i || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || Ev(a, s) })) })), b = []; return c.forEach(((e, a) => { if (!n.some((t => t.route.id === e.routeId)) || l.has(a)) return; - let o = Pg(d, e.path, p); + let o = Fg(d, e.path, p); if (!o) return void b.push({ key: a, routeId: e.routeId, @@ -43257,9 +43804,9 @@ controller: null }); let c = t.fetchers.get(a), - h = Lv(o, e.path), + h = Yv(o, e.path), f = !1; - f = !u.has(a) && (!!s.includes(a) || (c && "idle" !== c.state && void 0 === c.data ? i : hv(h, mg({ + f = !u.has(a) && (!!s.includes(a) || (c && "idle" !== c.state && void 0 === c.data ? i : Sv(h, Pg({ currentUrl: g, currentParams: t.matches[t.matches.length - 1].params, nextUrl: v, @@ -43278,34 +43825,34 @@ })), [_, b] } - function pv(e, t) { + function Ev(e, t) { let n = e.route.path; return e.pathname !== t.pathname || null != n && n.endsWith("*") && e.params["*"] !== t.params["*"] } - function hv(e, t) { + function Sv(e, t) { if (e.route.shouldRevalidate) { let n = e.route.shouldRevalidate(t); if ("boolean" === typeof n) return n } return t.defaultShouldRevalidate } - async function fv(e, t, n) { + async function Ov(e, t, n) { if (!e.lazy) return; let r = await e.lazy(); if (!e.lazy) return; let a = n[e.id]; - vg(a, "No route found in manifest"); + Ag(a, "No route found in manifest"); let i = {}; for (let o in r) { let e = void 0 !== a[o] && "hasErrorBoundary" !== o; - yg(!e, 'Route "' + a.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || Sg.has(o) || (i[o] = r[o]) + Rg(!e, 'Route "' + a.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || Mg.has(o) || (i[o] = r[o]) } - Object.assign(a, i), Object.assign(a, mg({}, t(a), { + Object.assign(a, i), Object.assign(a, Pg({}, t(a), { lazy: void 0 })) } - async function mv(e, t, n, r, a, i, o, s) { + async function Pv(e, t, n, r, a, i, o, s) { let l, c, u; void 0 === s && (s = {}); let d = e => { @@ -43322,22 +43869,22 @@ if (r) { let e, t = await Promise.all([d(r).catch((t => { e = t - })), fv(n.route, i, a)]); + })), Ov(n.route, i, a)]); if (e) throw e; c = t[0] } else { - if (await fv(n.route, i, a), r = n.route[e], !r) { + if (await Ov(n.route, i, a), r = n.route[e], !r) { if ("action" === e) { let e = new URL(t.url), r = e.pathname + e.search; - throw Ev(405, { + throw jv(405, { method: t.method, pathname: r, routeId: n.route.id }) } return { - type: Eg.data, + type: jg.data, data: void 0 } } @@ -43346,33 +43893,33 @@ else { if (!r) { let e = new URL(t.url); - throw Ev(404, { + throw jv(404, { pathname: e.pathname + e.search }) } c = await d(r) } - vg(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") + Ag(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") } catch (f) { - l = Eg.error, c = f + l = jg.error, c = f } finally { u && t.signal.removeEventListener("abort", u) } - if (Cv(c)) { + if (Gv(c)) { let e, a = c.status; - if (Jg.has(a)) { + if (dv.has(a)) { let e = c.headers.get("Location"); - if (vg(e, "Redirects returned/thrown from loaders/actions must have a Location header"), av.test(e)) { + if (Ag(e, "Redirects returned/thrown from loaders/actions must have a Location header"), gv.test(e)) { if (!s.isStaticRequest) { let n = new URL(t.url), r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e), - a = null != Mg(r.pathname, o); + a = null != Kg(r.pathname, o); r.origin === n.origin && a && (e = r.pathname + r.search + r.hash) } - } else e = lv(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); + } else e = bv(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); if (s.isStaticRequest) throw c.headers.set("Location", e), c; return { - type: Eg.redirect, + type: jg.redirect, status: a, location: e, revalidate: null !== c.headers.get("X-Remix-Revalidate"), @@ -43381,81 +43928,81 @@ } if (s.isRouteRequest) { throw { - type: l === Eg.error ? Eg.error : Eg.data, + type: l === jg.error ? jg.error : jg.data, response: c } } let i = c.headers.get("Content-Type"); - return e = i && /\bapplication\/json\b/.test(i) ? await c.json() : await c.text(), l === Eg.error ? { + return e = i && /\bapplication\/json\b/.test(i) ? await c.json() : await c.text(), l === jg.error ? { type: l, - error: new Hg(a, c.statusText, e), + error: new iv(a, c.statusText, e), headers: c.headers } : { - type: Eg.data, + type: jg.data, data: e, statusCode: c.status, headers: c.headers } } - return l === Eg.error ? { + return l === jg.error ? { type: l, error: c } : function(e) { let t = e; return t && "object" === typeof t && "object" === typeof t.data && "function" === typeof t.subscribe && "function" === typeof t.cancel && "function" === typeof t.resolveData }(c) ? { - type: Eg.deferred, + type: jg.deferred, deferredData: c, statusCode: null == (p = c.init) ? void 0 : p.status, headers: (null == (h = c.init) ? void 0 : h.headers) && new Headers(c.init.headers) } : { - type: Eg.data, + type: jg.data, data: c }; var p, h } - function gv(e, t, n, r) { - let a = e.createURL(Ov(t)).toString(), + function Iv(e, t, n, r) { + let a = e.createURL(zv(t)).toString(), i = { signal: n }; - if (r && Rv(r.formMethod)) { + if (r && qv(r.formMethod)) { let { formMethod: e, formEncType: t } = r; i.method = e.toUpperCase(), "application/json" === t ? (i.headers = new Headers({ "Content-Type": t - }), i.body = JSON.stringify(r.json)) : "text/plain" === t ? i.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? i.body = vv(r.formData) : i.body = r.formData + }), i.body = JSON.stringify(r.json)) : "text/plain" === t ? i.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? i.body = Av(r.formData) : i.body = r.formData } return new Request(a, i) } - function vv(e) { + function Av(e) { let t = new URLSearchParams; for (let [n, r] of e.entries()) t.append(n, "string" === typeof r ? r : r.name); return t } - function yv(e) { + function Rv(e) { let t = new FormData; for (let [n, r] of e.entries()) t.append(n, r); return t } - function _v(e, t, n, r, a) { + function Cv(e, t, n, r, a) { let i, o = {}, s = null, l = !1, c = {}; return n.forEach(((n, u) => { let d = t[u].route.id; - if (vg(!Av(n), "Cannot handle redirect results in processLoaderData"), Iv(n)) { - let t = wv(e, d), + if (Ag(!Vv(n), "Cannot handle redirect results in processLoaderData"), Uv(n)) { + let t = Nv(e, d), a = n.error; - r && (a = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = a), o[d] = void 0, l || (l = !0, i = Yg(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) - } else Pv(n) ? (a.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (i = n.statusCode), n.headers && (c[d] = n.headers) + r && (a = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = a), o[d] = void 0, l || (l = !0, i = ov(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) + } else Fv(n) ? (a.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (i = n.statusCode), n.headers && (c[d] = n.headers) })), r && (s = r, o[Object.keys(r)[0]] = void 0), { loaderData: o, errors: s, @@ -43464,31 +44011,31 @@ } } - function bv(e, t, n, r, a, i, o, s) { + function Tv(e, t, n, r, a, i, o, s) { let { loaderData: l, errors: c - } = _v(t, n, r, a, s); + } = Cv(t, n, r, a, s); for (let u = 0; u < i.length; u++) { let { key: t, match: n, controller: r } = i[u]; - vg(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); + Ag(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); let a = o[u]; if (!r || !r.signal.aborted) - if (Iv(a)) { - let r = wv(e.matches, null == n ? void 0 : n.route.id); - c && c[r.route.id] || (c = mg({}, c, { + if (Uv(a)) { + let r = Nv(e.matches, null == n ? void 0 : n.route.id); + c && c[r.route.id] || (c = Pg({}, c, { [r.route.id]: a.error })), e.fetchers.delete(t) - } else if (Av(a)) vg(!1, "Unhandled fetcher revalidation redirect"); - else if (Pv(a)) vg(!1, "Unhandled fetcher deferred data"); - else { - let n = Uv(a.data); - e.fetchers.set(t, n) - } + } else if (Vv(a)) Ag(!1, "Unhandled fetcher revalidation redirect"); + else if (Fv(a)) Ag(!1, "Unhandled fetcher deferred data"); + else { + let n = Xv(a.data); + e.fetchers.set(t, n) + } } return { loaderData: l, @@ -43496,8 +44043,8 @@ } } - function xv(e, t, n, r) { - let a = mg({}, t); + function Dv(e, t, n, r) { + let a = Pg({}, t); for (let i of n) { let n = i.route.id; if (t.hasOwnProperty(n) ? void 0 !== t[n] && (a[n] = t[n]) : void 0 !== e[n] && i.route.loader && (a[n] = e[n]), r && r.hasOwnProperty(n)) break @@ -43505,11 +44052,11 @@ return a } - function wv(e, t) { + function Nv(e, t) { return (t ? e.slice(0, e.findIndex((e => e.route.id === t)) + 1) : [...e]).reverse().find((e => !0 === e.route.hasErrorBoundary)) || e[0] } - function kv(e) { + function Lv(e) { let t = 1 === e.length ? e[0] : e.find((e => e.index || !e.path || "/" === e.path)) || { id: "__shim-error-route__" }; @@ -43524,102 +44071,102 @@ } } - function Ev(e, t) { + function jv(e, t) { let { pathname: n, routeId: r, method: a, type: i } = void 0 === t ? {} : t, o = "Unknown Server Error", s = "Unknown @remix-run/router error"; - return 400 === e ? (o = "Bad Request", a && n && r ? s = "You made a " + a + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === i ? s = "defer() is not supported in actions" : "invalid-body" === i && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", a && n && r ? s = "You made a " + a.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : a && (s = 'Invalid request method "' + a.toUpperCase() + '"')), new Hg(e || 500, o, new Error(s), !0) + return 400 === e ? (o = "Bad Request", a && n && r ? s = "You made a " + a + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === i ? s = "defer() is not supported in actions" : "invalid-body" === i && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", a && n && r ? s = "You made a " + a.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : a && (s = 'Invalid request method "' + a.toUpperCase() + '"')), new iv(e || 500, o, new Error(s), !0) } - function Sv(e) { + function Mv(e) { for (let t = e.length - 1; t >= 0; t--) { let n = e[t]; - if (Av(n)) return { + if (Vv(n)) return { result: n, idx: t } } } - function Ov(e) { - return xg(mg({}, "string" === typeof e ? wg(e) : e, { + function zv(e) { + return Dg(Pg({}, "string" === typeof e ? Ng(e) : e, { hash: "" })) } - function Pv(e) { - return e.type === Eg.deferred + function Fv(e) { + return e.type === jg.deferred } - function Iv(e) { - return e.type === Eg.error + function Uv(e) { + return e.type === jg.error } - function Av(e) { - return (e && e.type) === Eg.redirect + function Vv(e) { + return (e && e.type) === jg.redirect } - function Cv(e) { + function Gv(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body } - function Tv(e) { - return Xg.has(e.toLowerCase()) + function Bv(e) { + return uv.has(e.toLowerCase()) } - function Rv(e) { - return Qg.has(e.toLowerCase()) + function qv(e) { + return lv.has(e.toLowerCase()) } - async function Dv(e, t, n, r, a, i) { + async function $v(e, t, n, r, a, i) { for (let o = 0; o < n.length; o++) { let s = n[o], l = t[o]; if (!l) continue; let c = e.find((e => e.route.id === l.route.id)), - u = null != c && !pv(c, l) && void 0 !== (i && i[l.route.id]); - if (Pv(s) && (a || u)) { + u = null != c && !Ev(c, l) && void 0 !== (i && i[l.route.id]); + if (Fv(s) && (a || u)) { let e = r[o]; - vg(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await Nv(s, e, a).then((e => { + Ag(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await Wv(s, e, a).then((e => { e && (n[o] = e || n[o]) })) } } } - async function Nv(e, t, n) { + async function Wv(e, t, n) { if (void 0 === n && (n = !1), !await e.deferredData.resolveData(t)) { if (n) try { return { - type: Eg.data, + type: jg.data, data: e.deferredData.unwrappedData } } catch (r) { return { - type: Eg.error, + type: jg.error, error: r } } return { - type: Eg.data, + type: jg.data, data: e.deferredData.data } } } - function jv(e) { + function Hv(e) { return new URLSearchParams(e).getAll("index").some((e => "" === e)) } - function Lv(e, t) { - let n = "string" === typeof t ? wg(t).search : t.search; - if (e[e.length - 1].route.index && jv(n || "")) return e[e.length - 1]; - let r = Fg(e); + function Yv(e, t) { + let n = "string" === typeof t ? Ng(t).search : t.search; + if (e[e.length - 1].route.index && Hv(n || "")) return e[e.length - 1]; + let r = Zg(e); return r[r.length - 1] } - function Mv(e) { + function Kv(e) { let { formMethod: t, formAction: n, @@ -43652,7 +44199,7 @@ } : void 0 } - function zv(e, t) { + function Qv(e, t) { if (t) { return { state: "loading", @@ -43677,7 +44224,7 @@ } } - function Fv(e, t) { + function Zv(e, t) { if (e) { return { state: "loading", @@ -43702,7 +44249,7 @@ } } - function Uv(e) { + function Xv(e) { return { state: "idle", formMethod: void 0, @@ -43714,17 +44261,17 @@ data: e } } - const Vv = async e => { + const Jv = async e => { switch (!0) { case e instanceof fm: - return await ww.getState().authentication.actions.logout(), void await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + return await Pw.getState().authentication.actions.logout(), void await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_api_denied_request_title", { ns: "errors" }), content: e.message }); case e instanceof mm: - await ww.getState().authentication.actions.logout(), await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Pw.getState().authentication.actions.logout(), await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_api_too_many_requests_title", { ns: "errors" }), @@ -43732,15 +44279,23 @@ }); break; case e instanceof ym: + return await Pw.getState().authentication.actions.logout(), av(_k.HOME), void await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: wt.t("error_network_issue_title", { + ns: "errors" + }), + content: wt.t("error_network_issue_content", { + ns: "errors" + }) + }); case e instanceof nm: - return await ww.getState().authentication.actions.logout(), Wg(uk.HOME), void await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + return await Pw.getState().authentication.actions.logout(), av(_k.HOME), void await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_api_auth_expired_title", { ns: "errors" }), content: e.message }); case e instanceof cm: - await ww.getState().authentication.actions.logout(), await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Pw.getState().authentication.actions.logout(), await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_api_auth_expired_title", { ns: "errors" }), @@ -43752,13 +44307,13 @@ case e instanceof dm: case e instanceof em: case e instanceof um: - case e instanceof Om: + case e instanceof Pm: case e instanceof tm: case e instanceof om: case e instanceof sm: break; case e instanceof am: - ww.getState().authentication.actions.logout(), await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + Pw.getState().authentication.actions.logout(), await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_generic_title", { ns: "errors" }), @@ -43767,16 +44322,17 @@ break; case e instanceof im: case e instanceof lm: + case e instanceof _m: break; default: - await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: wt.t("error_generic_title", { ns: "errors" }), content: e.message }) } - }, Bv = new class { + }, ey = new class { #b; #g; #o; @@ -43786,13 +44342,13 @@ #E; #S; constructor(e = {}) { - this.#b = e.queryCache || new lg, this.#g = e.mutationCache || new ug, this.#o = e.defaultOptions || {}, this.#x = new Map, this.#w = new Map, this.#k = 0 + this.#b = e.queryCache || new bg, this.#g = e.mutationCache || new wg, this.#o = e.defaultOptions || {}, this.#x = new Map, this.#w = new Map, this.#k = 0 } mount() { - this.#k++, 1 === this.#k && (this.#E = Jm.subscribe((() => { - Jm.isFocused() && (this.resumePausedMutations(), this.#b.onFocus()) - })), this.#S = eg.N.subscribe((() => { - eg.N.isOnline() && (this.resumePausedMutations(), this.#b.onOnline()) + this.#k++, 1 === this.#k && (this.#E = dg.subscribe((() => { + dg.isFocused() && (this.resumePausedMutations(), this.#b.onFocus()) + })), this.#S = pg.N.subscribe((() => { + pg.N.isOnline() && (this.resumePausedMutations(), this.#b.onOnline()) }))) } unmount() { @@ -43821,15 +44377,15 @@ } getQueriesData(e) { return this.getQueryCache().findAll(e).map((({ - queryKey: e, - state: t - }) => [e, t.data])) + queryKey: e, + state: t + }) => [e, t.data])) } setQueryData(e, t, n) { const r = this.#b.find({ queryKey: e })?.state.data, - a = (0, Qm.SE)(t, r); + a = (0, lg.SE)(t, r); if ("undefined" === typeof a) return; const i = this.defaultQueryOptions({ queryKey: e @@ -43840,9 +44396,9 @@ }) } setQueriesData(e, t, n) { - return Zm.batch((() => this.getQueryCache().findAll(e).map((({ - queryKey: e - }) => [e, this.setQueryData(e, t, n)])))) + return cg.batch((() => this.getQueryCache().findAll(e).map((({ + queryKey: e + }) => [e, this.setQueryData(e, t, n)])))) } getQueryState(e) { return this.#b.find({ @@ -43851,7 +44407,7 @@ } removeQueries(e) { const t = this.#b; - Zm.batch((() => { + cg.batch((() => { t.findAll(e).forEach((e => { t.remove(e) })) @@ -43863,7 +44419,7 @@ type: "active", ...e }; - return Zm.batch((() => (n.findAll(e).forEach((e => { + return cg.batch((() => (n.findAll(e).forEach((e => { e.reset() })), this.refetchQueries(r, t)))) } @@ -43872,14 +44428,14 @@ revert: !0, ...t }, - r = Zm.batch((() => this.#b.findAll(e).map((e => e.cancel(n))))); - return Promise.all(r).then(Qm.ZT).catch(Qm.ZT) + r = cg.batch((() => this.#b.findAll(e).map((e => e.cancel(n))))); + return Promise.all(r).then(lg.ZT).catch(lg.ZT) } invalidateQueries(e = {}, t = {}) { - return Zm.batch((() => { + return cg.batch((() => { if (this.#b.findAll(e).forEach((e => { - e.invalidate() - })), "none" === e.refetchType) return Promise.resolve(); + e.invalidate() + })), "none" === e.refetchType) return Promise.resolve(); const n = { ...e, type: e.refetchType ?? e.type ?? "active" @@ -43892,11 +44448,11 @@ ...t, cancelRefetch: t?.cancelRefetch ?? !0 }, - r = Zm.batch((() => this.#b.findAll(e).filter((e => !e.isDisabled())).map((e => { + r = cg.batch((() => this.#b.findAll(e).filter((e => !e.isDisabled())).map((e => { let t = e.fetch(void 0, n); - return n.throwOnError || (t = t.catch(Qm.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t + return n.throwOnError || (t = t.catch(lg.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t })))); - return Promise.all(r).then(Qm.ZT) + return Promise.all(r).then(lg.ZT) } fetchQuery(e) { const t = this.defaultQueryOptions(e); @@ -43905,13 +44461,13 @@ return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data) } prefetchQuery(e) { - return this.fetchQuery(e).then(Qm.ZT).catch(Qm.ZT) + return this.fetchQuery(e).then(lg.ZT).catch(lg.ZT) } fetchInfiniteQuery(e) { - return e.behavior = dg(e.pages), this.fetchQuery(e) + return e.behavior = kg(e.pages), this.fetchQuery(e) } prefetchInfiniteQuery(e) { - return this.fetchInfiniteQuery(e).then(Qm.ZT).catch(Qm.ZT) + return this.fetchInfiniteQuery(e).then(lg.ZT).catch(lg.ZT) } resumePausedMutations() { return this.#g.resumePausedMutations() @@ -43929,7 +44485,7 @@ this.#o = e } setQueryDefaults(e, t) { - this.#x.set((0, Qm.Ym)(e), { + this.#x.set((0, lg.Ym)(e), { queryKey: e, defaultOptions: t }) @@ -43938,14 +44494,14 @@ const t = [...this.#x.values()]; let n = {}; return t.forEach((t => { - (0, Qm.to)(e, t.queryKey) && (n = { + (0, lg.to)(e, t.queryKey) && (n = { ...n, ...t.defaultOptions }) })), n } setMutationDefaults(e, t) { - this.#w.set((0, Qm.Ym)(e), { + this.#w.set((0, lg.Ym)(e), { mutationKey: e, defaultOptions: t }) @@ -43954,7 +44510,7 @@ const t = [...this.#w.values()]; let n = {}; return t.forEach((t => { - (0, Qm.to)(e, t.mutationKey) && (n = { + (0, lg.to)(e, t.mutationKey) && (n = { ...n, ...t.defaultOptions }) @@ -43968,7 +44524,7 @@ ...e, _defaulted: !0 }; - return t.queryHash || (t.queryHash = (0, Qm.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t + return t.queryHash || (t.queryHash = (0, lg.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t } defaultMutationOptions(e) { return e?._defaulted ? e : { @@ -43988,30 +44544,30 @@ staleTime: 3e5 } }, - mutationCache: new ug({ + mutationCache: new wg({ onError: async e => { - await Vv(e), window.launcherAPI.log.error("[Mutation] Error: ", e) + await Jv(e), window.launcherAPI.log.error("[Mutation] Error: ", e) } }), - queryCache: new lg({ + queryCache: new bg({ onError: async e => { - await Vv(e), window.launcherAPI.log.error("[Query] Error: ", e) + await Jv(e), window.launcherAPI.log.error("[Query] Error: ", e) } }) - }), Gv = (e, t) => ({ + }), ty = (e, t) => ({ agreements: { warningHasBeenAccepted: !1, actions: { checkWarnings: async () => { const n = t(); try { - const t = await Bv.fetchQuery({ + const t = await ey.fetchQuery({ queryKey: ["warnings"], queryFn: async () => qm.agreements.getWarnings() }), r = t ? t[0] : null; if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; - const a = await Bv.fetchQuery((e => ({ + const a = await ey.fetchQuery((e => ({ queryKey: ["warningInfo"], queryFn: async () => qm.agreements.getWarningInfo(e) }))(r.id)), @@ -44033,7 +44589,7 @@ checkAgreements: async () => { const e = t(); try { - const t = await Bv.fetchQuery({ + const t = await ey.fetchQuery({ queryKey: ["agreements"], queryFn: async () => qm.agreements.checkAgreements() }); @@ -44047,7 +44603,7 @@ const r = null !== (n = e.payload.agreements) && void 0 !== n ? n : [], a = t(); try { - const e = [Gm.EULA, Gm.TOS, Gm.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); + const e = [Bm.EULA, Bm.TOS, Bm.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); return await a.agreements.actions.displayAgreement(e) } catch (i) { return console.error("[Agreements] - error", i), !1 @@ -44063,7 +44619,7 @@ } }))); try { - const e = await Bv.fetchQuery(((e, t) => ({ + const e = await ey.fetchQuery(((e, t) => ({ queryKey: ["agreementInfo"], queryFn: async () => qm.agreements.getAgreementInfo(e, t) }))(a.id, a.type)), @@ -44074,7 +44630,7 @@ } = e, s = await r.dialog.actions.showAgreementsDialog(t, n, o); if (s.resolved) { - await Bv.fetchQuery(((e, t) => ({ + await ey.fetchQuery(((e, t) => ({ queryKey: ["agreementAccept"], queryFn: async () => qm.agreements.acceptAgreement(e, t) }))(a.id, a.type)); @@ -44098,7 +44654,7 @@ } } } - }), qv = (e = { + }), ny = (e = { launcherVersion: "unknown", patcherVersion: "unknown", environment: "prod" @@ -44122,16 +44678,16 @@ isAppInitialized: n, readyToPlay: o, animations: s - }), $v = (e, t) => ({ + }), ry = (e, t) => ({ application: { - ...qv(), + ...ny(), actions: { initializeApplication: async () => { const { launcherVersion: t, patcherVersion: n, environment: r - } = await window.launcherAPI.game.getGlobalConfig(), a = await window.launcherAPI.game.isGameProcessRunning(), i = qv({ + } = await window.launcherAPI.game.getGlobalConfig(), a = await window.launcherAPI.game.isGameProcessRunning(), i = ny({ launcherVersion: t, patcherVersion: n, environment: r @@ -44179,7 +44735,7 @@ resetApplication: () => e((e => ({ application: { ...e.application, - ...qv(), + ...ny(), launcherVersion: e.application.launcherVersion, patcherVersion: e.application.patcherVersion, platformMaster: e.application.platformMaster @@ -44199,6 +44755,7 @@ } = await window.launcherAPI.game.getGlobalConfig(); return n || (e.dialog.actions.showCpuRequirementsDialog(), !1) }, + isGameRunningAndWindowMinimzed: () => t().application.isGameRunning, setAnimatingAppLayoutWipe: (t, n) => { e((e => ({ application: { @@ -44227,16 +44784,16 @@ } } } - }), Wv = (e = null) => ({ + }), ay = (e = null) => ({ typeAuth: "password", captcha: null, mfaAuthenticationInfo: null, session: e, privileged: !1, trackingMetricsId: null - }), Hv = (e, t) => ({ + }), iy = (e, t) => ({ authentication: { - ...Wv(), + ...ay(), actions: { initializeAuthentication: async () => { const t = await window.launcherAPI.store.getValueFromStore("session"); @@ -44275,13 +44832,13 @@ resetAuthentication: () => e((e => ({ authentication: { ...e.authentication, - ...Wv() + ...ay() } }))) } } }); - let Yv = e => { + let oy = e => { var { title: t, titleId: n @@ -44331,7 +44888,7 @@ d: "m1.216 8.511 2.936 2.936a.748.748 0 0 0 1.326-.48.748.748 0 0 0-.247-.557L3.554 8.733h10.821v-.01a.75.75 0 0 0 0-1.48v-.01H3.555L5.23 5.556a.75.75 0 1 0-1.08-1.037L1.217 7.455a.748.748 0 0 0 0 1.056Z" })) }, - Kv = e => { + sy = e => { var { title: t, titleId: n @@ -44381,7 +44938,7 @@ d: "M8.782 11.124a1.002 1.002 0 0 1-1.564 0L3.226 6.15c-.532-.663-.064-1.65.782-1.65h7.984c.846 0 1.314.987.782 1.65l-3.992 4.974Z" })) }, - Qv = e => { + ly = e => { var { title: t, titleId: n @@ -44431,7 +44988,7 @@ d: "m8.182 1.444 2.23 2.35a.749.749 0 0 1-.002 1.145l-2.4 2.278a.748.748 0 0 1-1.312-.515.748.748 0 0 1 .26-.55l1.177-1.116c-2.425.182-3.462 1.14-3.945 2.018-.523.95-.504 1.968-.494 2.512a17.117 17.117 0 0 1 .002.143v.013a.18.18 0 0 1 0 .01v.009a.75.75 0 0 1-1.5 0l-.003-.13c-.014-.514-.053-1.946.68-3.28.784-1.424 2.347-2.598 5.229-2.796L7.076 2.452a.75.75 0 1 1 1.106-1.008ZM7.829 14.56l-2.23-2.35a.749.749 0 0 1-.064-1.082l.001-.001a.778.778 0 0 1 .065-.062L8 8.787a.748.748 0 0 1 1.312.515.748.748 0 0 1-.26.55l-1.177 1.117c2.425-.183 3.462-1.14 3.945-2.019.523-.95.504-1.968.494-2.511a15.313 15.313 0 0 1-.002-.144v-.013a.306.306 0 0 1 0-.018.75.75 0 0 1 1.5 0c0 .032 0 .076.002.13.014.514.054 1.945-.68 3.28-.783 1.423-2.347 2.597-5.228 2.796l1.028 1.082a.75.75 0 1 1-1.106 1.008Z" })) }, - Zv = e => { + cy = e => { var { title: t, titleId: n @@ -44483,7 +45040,7 @@ clipRule: "evenodd" })) }, - Xv = e => { + uy = e => { var { title: t, titleId: n @@ -44533,7 +45090,7 @@ d: "m1.186 2.288.002-.001a.78.78 0 0 1 1.1-1.1l.001-.002.035.035a.772.772 0 0 1 .017.017l5.66 5.66 5.71-5.711.002.002a.78.78 0 0 1 1.1 1.1l.002.001-.035.035a.973.973 0 0 1-.017.017L9.104 8l5.69 5.69h-.002a.78.78 0 1 1-1.155 1.05L8.002 9.103l-5.69 5.69H2.31a.78.78 0 1 1-1.05-1.155L6.898 8 1.186 2.288Z" })) }, - Jv = e => { + dy = e => { var { title: t, titleId: n @@ -44585,7 +45142,7 @@ clipRule: "evenodd" })) }, - ey = e => { + py = e => { var { title: t, titleId: n @@ -44635,7 +45192,7 @@ d: "M14.25 15a.75.75 0 0 0 0-1.5H1.75a.75.75 0 0 0 0 1.5h12.5ZM8 1a.75.75 0 0 1 .749.703h.001v7.712l1.677-1.678a.75.75 0 1 1 1.037 1.08l-2.936 2.935a.748.748 0 0 1-1.055 0L4.536 8.816a.748.748 0 0 1 .48-1.325.75.75 0 0 1 .557.246L7.25 9.415V1.703h.001A.75.75 0 0 1 8 1Z" })) }, - ty = e => { + hy = e => { var { title: t, titleId: n @@ -44689,7 +45246,7 @@ d: "M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-6a.75.75 0 0 1 1.5 0v3.75a.75.75 0 0 1-1.5 0V5Z" })) }, - ny = e => { + fy = e => { var { title: t, titleId: n @@ -44739,7 +45296,7 @@ d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z" })) }, - ry = e => { + my = e => { var { title: t, titleId: n @@ -44791,7 +45348,7 @@ d: "M13.769 1.313h-4.05a.732.732 0 0 0-.583.21.727.727 0 0 0 .553 1.243h2.314L7.822 6.931v.001a.727.727 0 0 0 .03 1 .734.734 0 0 0 1.003.029h.001l4.182-4.164v2.305a.72.72 0 0 0 .213.55.734.734 0 0 0 1.246-.58V2.039a.732.732 0 0 0-.728-.725Z" })) }, - ay = e => { + gy = e => { var { title: t, titleId: n @@ -44841,7 +45398,7 @@ d: "M3 2a1 1 0 0 1 2 0v12a1 1 0 1 1-2 0V2Zm8 0a1 1 0 1 1 2 0v12a1 1 0 1 1-2 0V2Z" })) }, - iy = e => { + vy = e => { var { title: t, titleId: n @@ -44893,7 +45450,7 @@ clipRule: "evenodd" })) }, - oy = e => { + yy = e => { var { title: t, titleId: n @@ -44949,20 +45506,20 @@ clipRule: "evenodd" })) }; - const sy = "autoUpdate", - ly = (e, t = {}) => wt.t(e, { - ns: sy, + const _y = "autoUpdate", + by = (e, t = {}) => wt.t(e, { + ns: _y, ...t }), - cy = (e, t) => { + xy = (e, t) => { var n; const { closeDialog: r } = e.autoUpdate.actions, a = null === (n = window.launcherAPI.autoUpdate) || void 0 === n ? void 0 : n.updateAndRestart, i = { open: !0, alert: !0, - close: ly("auto_update_dialog_close"), - title: ly("auto_update_dialog_title"), + close: by("auto_update_dialog_close"), + title: by("auto_update_dialog_title"), onOpenChange: () => { r() } @@ -44974,19 +45531,19 @@ children: [(0, hf.jsx)(Qi, { variant: "emphasis-s", as: "h4", - children: ly("auto_update_dialog_sub_title", { + children: by("auto_update_dialog_sub_title", { version: t.updateInfo.version }) }), (0, hf.jsx)(mt, { i18nKey: "auto_update_dialog_update_available_content", t: wt.t, - ns: sy, + ns: _y, components: [(0, hf.jsx)("br", {})] })] }), actions: [{ - label: ly("auto_update_dialog_update_available_action_secondary_label") + label: by("auto_update_dialog_update_available_action_secondary_label") }, { - label: ly("auto_update_dialog_update_available_action_primary_label"), + label: by("auto_update_dialog_update_available_action_primary_label"), onClick: () => a() }] }; @@ -44996,22 +45553,22 @@ children: [(0, hf.jsx)(Qi, { variant: "emphasis-s", as: "h4", - children: ly("auto_update_dialog_sub_title", { + children: by("auto_update_dialog_sub_title", { version: t.updateInfo.version }) }), (0, hf.jsx)(mt, { i18nKey: "auto_update_dialog_update_install_failed_content", t: wt.t, - ns: sy, + ns: _y, components: [(0, hf.jsx)(Ih, { href: pf.configuration.supportUrl, external: !0 })] })] }), actions: [{ - label: ly("auto_update_dialog_update_install_failed_action_secondary_label") + label: by("auto_update_dialog_update_install_failed_action_secondary_label") }, { - label: ly("auto_update_dialog_update_install_failed_action_primary_label"), + label: by("auto_update_dialog_update_install_failed_action_primary_label"), onClick: () => a() }] }; @@ -45021,14 +45578,14 @@ children: [(0, hf.jsx)(Qi, { variant: "emphasis-s", as: "h4", - children: ly("auto_update_dialog_sub_title", { + children: by("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), ly("auto_update_dialog_update_quit_game_content")] + }), by("auto_update_dialog_update_quit_game_content")] }), actions: [{ - label: ly("auto_update_dialog_update_quit_game_action_secondary_label") + label: by("auto_update_dialog_update_quit_game_action_secondary_label") }, { - label: ly("auto_update_dialog_update_quit_game_action_primary_label"), + label: by("auto_update_dialog_update_quit_game_action_primary_label"), onClick: () => a(!0) }] }; @@ -45038,27 +45595,27 @@ children: [(0, hf.jsx)(Qi, { variant: "emphasis-s", as: "h4", - children: ly("auto_update_dialog_sub_title", { + children: by("auto_update_dialog_sub_title", { version: t.updateInfo.version }) }), (0, hf.jsx)(mt, { i18nKey: "auto_update_dialog_no_update_content", t: wt.t, - ns: sy, + ns: _y, components: [(0, hf.jsx)("br", {})] })] }), actions: [{ - label: ly("auto_update_dialog_no_update_action_primary_label") + label: by("auto_update_dialog_no_update_action_primary_label") }] } } }, - uy = { + wy = { dialog: {} }, - dy = (e, t) => ({ + ky = (e, t) => ({ autoUpdate: { - ...uy, + ...wy, actions: { async closeDialog() { var n; @@ -45075,7 +45632,7 @@ e({ autoUpdate: { ...r.autoUpdate, - dialog: cy(r, n) + dialog: xy(r, n) } }) } @@ -45083,149 +45640,149 @@ } }); - function py() { - return py = Object.assign ? Object.assign.bind() : function(e) { + function Ey() { + return Ey = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, py.apply(this, arguments) + }, Ey.apply(this, arguments) } - const hy = Oe.createContext(null); - const fy = Oe.createContext(null); - const my = Oe.createContext(null); - const gy = Oe.createContext(null); - const vy = Oe.createContext({ + const Sy = Oe.createContext(null); + const Oy = Oe.createContext(null); + const Py = Oe.createContext(null); + const Iy = Oe.createContext(null); + const Ay = Oe.createContext({ outlet: null, matches: [], isDataRoute: !1 }); - const yy = Oe.createContext(null); + const Ry = Oe.createContext(null); - function _y() { - return null != Oe.useContext(gy) + function Cy() { + return null != Oe.useContext(Iy) } - function by() { - return _y() || vg(!1), Oe.useContext(gy).location + function Ty() { + return Cy() || Ag(!1), Oe.useContext(Iy).location } - function xy(e) { - Oe.useContext(my).static || Oe.useLayoutEffect(e) + function Dy(e) { + Oe.useContext(Py).static || Oe.useLayoutEffect(e) } - function wy() { + function Ny() { let { isDataRoute: e - } = Oe.useContext(vy); + } = Oe.useContext(Ay); return e ? function() { let { router: e - } = Ny(Ry.UseNavigateStable), t = Ly(Dy.UseNavigateStable), n = Oe.useRef(!1); - xy((() => { + } = Wy(qy.UseNavigateStable), t = Yy($y.UseNavigateStable), n = Oe.useRef(!1); + Dy((() => { n.current = !0 })); let r = Oe.useCallback((function(r, a) { - void 0 === a && (a = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, py({ + void 0 === a && (a = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, Ey({ fromRouteId: t }, a))) }), [e, t]); return r }() : function() { - _y() || vg(!1); - let e = Oe.useContext(hy), + Cy() || Ag(!1); + let e = Oe.useContext(Sy), { basename: t, navigator: n - } = Oe.useContext(my), + } = Oe.useContext(Py), { matches: r - } = Oe.useContext(vy), + } = Oe.useContext(Ay), { pathname: a - } = by(), - i = JSON.stringify(Fg(r).map((e => e.pathnameBase))), + } = Ty(), + i = JSON.stringify(Zg(r).map((e => e.pathnameBase))), o = Oe.useRef(!1); - xy((() => { + Dy((() => { o.current = !0 })); let s = Oe.useCallback((function(r, s) { if (void 0 === s && (s = {}), !o.current) return; if ("number" === typeof r) return void n.go(r); - let l = Ug(r, JSON.parse(i), a, "path" === s.relative); - null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : Vg([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) + let l = Xg(r, JSON.parse(i), a, "path" === s.relative); + null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : Jg([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) }), [t, n, i, a, e]); return s }() } - const ky = Oe.createContext(null); + const Ly = Oe.createContext(null); - function Ey() { + function jy() { let { matches: e - } = Oe.useContext(vy), t = e[e.length - 1]; + } = Oe.useContext(Ay), t = e[e.length - 1]; return t ? t.params : {} } - function Sy(e, t) { + function My(e, t) { let { relative: n } = void 0 === t ? {} : t, { matches: r - } = Oe.useContext(vy), { + } = Oe.useContext(Ay), { pathname: a - } = by(), i = JSON.stringify(Fg(r).map((e => e.pathnameBase))); - return Oe.useMemo((() => Ug(e, JSON.parse(i), a, "path" === n)), [e, i, a, n]) + } = Ty(), i = JSON.stringify(Zg(r).map((e => e.pathnameBase))); + return Oe.useMemo((() => Xg(e, JSON.parse(i), a, "path" === n)), [e, i, a, n]) } - function Oy(e, t, n) { - _y() || vg(!1); + function zy(e, t, n) { + Cy() || Ag(!1); let { navigator: r - } = Oe.useContext(my), { + } = Oe.useContext(Py), { matches: a - } = Oe.useContext(vy), i = a[a.length - 1], o = i ? i.params : {}, s = (i && i.pathname, i ? i.pathnameBase : "/"); + } = Oe.useContext(Ay), i = a[a.length - 1], o = i ? i.params : {}, s = (i && i.pathname, i ? i.pathnameBase : "/"); i && i.route; - let l, c = by(); + let l, c = Ty(); if (t) { var u; - let e = "string" === typeof t ? wg(t) : t; - "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || vg(!1), l = e + let e = "string" === typeof t ? Ng(t) : t; + "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || Ag(!1), l = e } else l = c; let d = l.pathname || "/", - p = Pg(e, { + p = Fg(e, { pathname: "/" === s ? d : d.slice(s.length) || "/" }); - let h = Ty(p && p.map((e => Object.assign({}, e, { + let h = By(p && p.map((e => Object.assign({}, e, { params: Object.assign({}, o, e.params), - pathname: Vg([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), - pathnameBase: "/" === e.pathnameBase ? s : Vg([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) + pathname: Jg([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), + pathnameBase: "/" === e.pathnameBase ? s : Jg([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) }))), a, n); - return t && h ? Oe.createElement(gy.Provider, { + return t && h ? Oe.createElement(Iy.Provider, { value: { - location: py({ + location: Ey({ pathname: "/", search: "", hash: "", state: null, key: "default" }, l), - navigationType: fg.Pop + navigationType: Og.Pop } }, h) : h } - function Py() { + function Fy() { let e = function() { var e; - let t = Oe.useContext(yy), - n = jy(Dy.UseRouteError), - r = Ly(Dy.UseRouteError); + let t = Oe.useContext(Ry), + n = Hy($y.UseRouteError), + r = Yy($y.UseRouteError); if (t) return t; return null == (e = n.errors) ? void 0 : e[r] }(), - t = Yg(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), + t = ov(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", a = { @@ -45240,8 +45797,8 @@ style: a }, n) : null, null) } - const Iy = Oe.createElement(Py, null); - class Ay extends Oe.Component { + const Uy = Oe.createElement(Fy, null); + class Vy extends Oe.Component { constructor(e) { super(e), this.state = { location: e.location, @@ -45269,27 +45826,27 @@ console.error("React Router caught the following error during render", e, t) } render() { - return this.state.error ? Oe.createElement(vy.Provider, { + return this.state.error ? Oe.createElement(Ay.Provider, { value: this.props.routeContext - }, Oe.createElement(yy.Provider, { + }, Oe.createElement(Ry.Provider, { value: this.state.error, children: this.props.component })) : this.props.children } } - function Cy(e) { + function Gy(e) { let { routeContext: t, match: n, children: r - } = e, a = Oe.useContext(hy); - return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), Oe.createElement(vy.Provider, { + } = e, a = Oe.useContext(Sy); + return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), Oe.createElement(Ay.Provider, { value: t }, r) } - function Ty(e, t, n) { + function By(e, t, n) { var r; if (void 0 === t && (t = []), void 0 === n && (n = null), null == e) { var a; @@ -45300,16 +45857,16 @@ o = null == (r = n) ? void 0 : r.errors; if (null != o) { let e = i.findIndex((e => e.route.id && (null == o ? void 0 : o[e.route.id]))); - e >= 0 || vg(!1), i = i.slice(0, Math.min(i.length, e + 1)) + e >= 0 || Ag(!1), i = i.slice(0, Math.min(i.length, e + 1)) } return i.reduceRight(((e, r, a) => { let s = r.route.id ? null == o ? void 0 : o[r.route.id] : null, l = null; - n && (l = r.route.errorElement || Iy); + n && (l = r.route.errorElement || Uy); let c = t.concat(i.slice(0, a + 1)), u = () => { let t; - return t = s ? l : r.route.Component ? Oe.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Oe.createElement(Cy, { + return t = s ? l : r.route.Component ? Oe.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Oe.createElement(Gy, { match: r, routeContext: { outlet: e, @@ -45319,7 +45876,7 @@ children: t }) }; - return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === a) ? Oe.createElement(Ay, { + return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === a) ? Oe.createElement(Vy, { location: n.location, revalidation: n.revalidation, component: l, @@ -45333,46 +45890,46 @@ }) : u() }), null) } - var Ry = function(e) { + var qy = function(e) { return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e - }(Ry || {}), - Dy = function(e) { + }(qy || {}), + $y = function(e) { return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e - }(Dy || {}); + }($y || {}); - function Ny(e) { - let t = Oe.useContext(hy); - return t || vg(!1), t + function Wy(e) { + let t = Oe.useContext(Sy); + return t || Ag(!1), t } - function jy(e) { - let t = Oe.useContext(fy); - return t || vg(!1), t + function Hy(e) { + let t = Oe.useContext(Oy); + return t || Ag(!1), t } - function Ly(e) { + function Yy(e) { let t = function(e) { - let t = Oe.useContext(vy); - return t || vg(!1), t + let t = Oe.useContext(Ay); + return t || Ag(!1), t }(), n = t.matches[t.matches.length - 1]; - return n.route.id || vg(!1), n.route.id + return n.route.id || Ag(!1), n.route.id } Pe.startTransition; - function My(e) { + function Ky(e) { let { to: t, replace: n, state: r, relative: a } = e; - _y() || vg(!1); + Cy() || Ag(!1); let { matches: i - } = Oe.useContext(vy), { + } = Oe.useContext(Ay), { pathname: o - } = by(), s = wy(), l = Ug(t, Fg(i).map((e => e.pathnameBase)), o, "path" === a), c = JSON.stringify(l); + } = Ty(), s = Ny(), l = Xg(t, Zg(i).map((e => e.pathnameBase)), o, "path" === a), c = JSON.stringify(l); return Oe.useEffect((() => s(JSON.parse(c), { replace: n, state: r, @@ -45380,32 +45937,32 @@ })), [s, c, a, n, r]), null } - function zy(e) { + function Qy(e) { return function(e) { - let t = Oe.useContext(vy).outlet; - return t ? Oe.createElement(ky.Provider, { + let t = Oe.useContext(Ay).outlet; + return t ? Oe.createElement(Ly.Provider, { value: e }, t) : t }(e.context) } - function Fy(e) { + function Zy(e) { let { basename: t = "/", children: n = null, location: r, - navigationType: a = fg.Pop, + navigationType: a = Og.Pop, navigator: i, static: o = !1 } = e; - _y() && vg(!1); + Cy() && Ag(!1); let s = t.replace(/^\/*/, "/"), l = Oe.useMemo((() => ({ basename: s, navigator: i, static: o })), [s, i, o]); - "string" === typeof r && (r = wg(r)); + "string" === typeof r && (r = Ng(r)); let { pathname: c = "/", search: u = "", @@ -45413,7 +45970,7 @@ state: p = null, key: h = "default" } = r, f = Oe.useMemo((() => { - let e = Mg(c, s); + let e = Kg(c, s); return null == e ? null : { location: { pathname: e, @@ -45425,15 +45982,15 @@ navigationType: a } }), [s, c, u, d, p, h, a]); - return null == f ? null : Oe.createElement(my.Provider, { + return null == f ? null : Oe.createElement(Py.Provider, { value: l - }, Oe.createElement(gy.Provider, { + }, Oe.createElement(Iy.Provider, { children: n, value: f })) } new Promise((() => {})); - class Uy extends Oe.Component { + class Xy extends Oe.Component { constructor(e) { super(e), this.state = { error: null @@ -45488,7 +46045,7 @@ } } - function Vy(e) { + function Jy(e) { let t = { hasErrorBoundary: null != e.ErrorBoundary || null != e.errorElement }; @@ -45501,17 +46058,17 @@ }), t } - function By() { - return By = Object.assign ? Object.assign.bind() : function(e) { + function e_() { + return e_ = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, By.apply(this, arguments) + }, e_.apply(this, arguments) } - function Gy(e, t) { + function t_(e, t) { if (null == e) return {}; var n, r, a = {}, i = Object.keys(e); @@ -45519,48 +46076,48 @@ return a } new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); - const qy = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; + const n_ = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; - function $y() { + function r_() { var e; let t = null == (e = window) ? void 0 : e.__staticRouterHydrationData; - return t && t.errors && (t = By({}, t, { - errors: Wy(t.errors) + return t && t.errors && (t = e_({}, t, { + errors: a_(t.errors) })), t } - function Wy(e) { + function a_(e) { if (!e) return null; let t = Object.entries(e), n = {}; for (let [a, i] of t) - if (i && "RouteErrorResponse" === i.__type) n[a] = new Hg(i.status, i.statusText, i.data, !0 === i.internal); + if (i && "RouteErrorResponse" === i.__type) n[a] = new iv(i.status, i.statusText, i.data, !0 === i.internal); else if (i && "Error" === i.__type) { - if (i.__subType) { - let e = window[i.__subType]; - if ("function" === typeof e) try { - let t = new e(i.message); - t.stack = "", n[a] = t - } catch (r) {} - } - if (null == n[a]) { - let e = new Error(i.message); - e.stack = "", n[a] = e - } - } else n[a] = i; + if (i.__subType) { + let e = window[i.__subType]; + if ("function" === typeof e) try { + let t = new e(i.message); + t.stack = "", n[a] = t + } catch (r) {} + } + if (null == n[a]) { + let e = new Error(i.message); + e.stack = "", n[a] = e + } + } else n[a] = i; return n } - const Hy = Oe.createContext({ + const i_ = Oe.createContext({ isTransitioning: !1 }); - const Yy = Oe.createContext(new Map); - const Ky = Pe.startTransition, - Qy = Ma.flushSync; + const o_ = Oe.createContext(new Map); + const s_ = Pe.startTransition, + l_ = Ma.flushSync; - function Zy(e) { - Qy ? Qy(e) : e() + function c_(e) { + l_ ? l_(e) : e() } - class Xy { + class u_ { constructor() { this.status = "pending", this.promise = new Promise(((e, t) => { this.resolve = t => { @@ -45572,7 +46129,7 @@ } } - function Jy(e) { + function d_(e) { let { fallbackElement: t, router: n, @@ -45583,7 +46140,7 @@ v7_startTransition: v } = r || {}, y = Oe.useCallback((e => { v ? function(e) { - Ky ? Ky(e) : e() + s_ ? s_(e) : e() }(e) : e() }), [v]), _ = Oe.useCallback(((e, t) => { let { @@ -45597,7 +46154,7 @@ let l = null == n.window || "function" !== typeof n.window.document.startViewTransition; if (o && !l) { if (a) { - Zy((() => { + c_((() => { p && (u && u.resolve(), p.skipTransition()), c({ isTransitioning: !0, flushSync: !0, @@ -45606,15 +46163,15 @@ }) })); let t = n.window.document.startViewTransition((() => { - Zy((() => i(e))) + c_((() => i(e))) })); return t.finished.finally((() => { - Zy((() => { + c_((() => { d(void 0), h(void 0), s(void 0), c({ isTransitioning: !1 }) })) - })), void Zy((() => h(t))) + })), void c_((() => h(t))) } p ? (u && u.resolve(), p.skipTransition(), m({ state: e, @@ -45626,10 +46183,10 @@ currentLocation: o.currentLocation, nextLocation: o.nextLocation })) - } else a ? Zy((() => i(e))) : y((() => i(e))) + } else a ? c_((() => i(e))) : y((() => i(e))) }), [n.window, p, u, g, y]); Oe.useLayoutEffect((() => n.subscribe(_)), [n, _]), Oe.useEffect((() => { - l.isTransitioning && !l.flushSync && d(new Xy) + l.isTransitioning && !l.flushSync && d(new u_) }), [l]), Oe.useEffect((() => { if (u && o && n.window) { let e = o, @@ -45674,35 +46231,35 @@ static: !1, basename: x })), [n, b, x]); - return Oe.createElement(Oe.Fragment, null, Oe.createElement(hy.Provider, { + return Oe.createElement(Oe.Fragment, null, Oe.createElement(Sy.Provider, { value: w - }, Oe.createElement(fy.Provider, { + }, Oe.createElement(Oy.Provider, { value: a - }, Oe.createElement(Yy.Provider, { + }, Oe.createElement(o_.Provider, { value: g.current - }, Oe.createElement(Hy.Provider, { + }, Oe.createElement(i_.Provider, { value: l - }, Oe.createElement(Fy, { + }, Oe.createElement(Zy, { basename: x, location: a.location, navigationType: a.historyAction, navigator: b - }, a.initialized ? Oe.createElement(e_, { + }, a.initialized ? Oe.createElement(p_, { routes: n.routes, state: a }) : t))))), null) } - function e_(e) { + function p_(e) { let { routes: t, state: n } = e; - return Oy(t, void 0, n) + return zy(t, void 0, n) } - const t_ = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, - n_ = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - r_ = Oe.forwardRef((function(e, t) { + const h_ = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, + f_ = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + m_ = Oe.forwardRef((function(e, t) { let n, { onClick: r, relative: a, @@ -45714,33 +46271,33 @@ preventScrollReset: u, unstable_viewTransition: d } = e, - p = Gy(e, qy), + p = t_(e, n_), { basename: h - } = Oe.useContext(my), + } = Oe.useContext(Py), f = !1; - if ("string" === typeof c && n_.test(c) && (n = c, t_)) try { + if ("string" === typeof c && f_.test(c) && (n = c, h_)) try { let e = new URL(window.location.href), t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c), - n = Mg(t.pathname, h); + n = Kg(t.pathname, h); t.origin === e.origin && null != n ? c = n + t.search + t.hash : f = !0 } catch (v) {} let m = function(e, t) { let { relative: n } = void 0 === t ? {} : t; - _y() || vg(!1); + Cy() || Ag(!1); let { basename: r, navigator: a - } = Oe.useContext(my), { + } = Oe.useContext(Py), { hash: i, pathname: o, search: s - } = Sy(e, { + } = My(e, { relative: n }), l = o; - return "/" !== r && (l = "/" === o ? r : Vg([r, o])), a.createHref({ + return "/" !== r && (l = "/" === o ? r : Jg([r, o])), a.createHref({ pathname: l, search: s, hash: i @@ -45756,17 +46313,17 @@ preventScrollReset: i, relative: o, unstable_viewTransition: s - } = void 0 === t ? {} : t, l = wy(), c = by(), u = Sy(e, { + } = void 0 === t ? {} : t, l = Ny(), c = Ty(), u = My(e, { relative: o }); return Oe.useCallback((t => { if (function(e, t) { - return 0 === e.button && (!t || "_self" === t) && ! function(e) { - return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) - }(e) - }(t, n)) { + return 0 === e.button && (!t || "_self" === t) && ! function(e) { + return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) + }(e) + }(t, n)) { t.preventDefault(); - let n = void 0 !== r ? r : xg(c) === xg(u); + let n = void 0 !== r ? r : Dg(c) === Dg(u); l(e, { replace: n, state: a, @@ -45784,7 +46341,7 @@ relative: a, unstable_viewTransition: d }); - return Oe.createElement("a", By({}, p, { + return Oe.createElement("a", e_({}, p, { href: n || m, onClick: f || i ? r : function(e) { r && r(e), e.defaultPrevented || g(e) @@ -45793,41 +46350,39 @@ target: l })) })); - var a_, i_; + var g_, v_; (function(e) { e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState" - })(a_ || (a_ = {})), - function(e) { - e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" - }(i_ || (i_ = {})); - const o_ = (0, Oe.forwardRef)((({ - children: e, - href: t = "", - ...n - }, r) => t.startsWith("http") ? (0, hf.jsx)("a", { + })(g_ || (g_ = {})), + function(e) { + e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" + }(v_ || (v_ = {})); + const y_ = (0, Oe.forwardRef)((({ + children: e, + href: t = "", + ...n + }, r) => t.startsWith("http") ? (0, hf.jsx)("a", { href: t, ref: r, rel: "noopener noreferrer", target: "_blank", ...n, children: e - }) : (0, hf.jsx)(r_, { + }) : (0, hf.jsx)(m_, { ref: r, to: t, ...n, children: e }))), - s_ = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'); - var l_ = n(1438), - c_ = n.n(l_); - const u_ = ({ - labelItem: e - }) => { + __ = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'), + b_ = ({ + labelItem: e + }) => { const [t, n] = (0, Oe.useState)(!1), { t: r - } = xt("download"), a = ww((e => e.installer)), i = ww((e => e.application)), o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = (0, Oe.useMemo)((() => a.installations.find((e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED))), [a.installations]), l = e => { + } = xt("download"), a = Pw((e => e.installer)), i = Pw((e => e.application)), o = (0, Oe.useMemo)((() => a.installations.find((e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED))), [a.installations]), s = e => { i.actions.setDownloadPopoverOpened(e) - }, c = (0, Oe.useCallback)((e => { + }, l = (0, Oe.useCallback)((e => { var t, n, i, o; return e.status === pf.InstallationStatus.COMPLETED ? [{ label: r("download_status"), @@ -45853,27 +46408,27 @@ value: `${a.progress.speed}/s` }, { label: r("download_left"), - value: c_()(Math.max((null !== (t = a.progress.total) && void 0 !== t ? t : 0) - (null !== (n = a.progress.downloaded) && void 0 !== n ? n : 0), 0)) + value: Qm()(Math.max((null !== (t = a.progress.total) && void 0 !== t ? t : 0) - (null !== (n = a.progress.downloaded) && void 0 !== n ? n : 0), 0)) }, { label: r("download_files_left"), value: Math.max((null !== (i = a.progress.filesTotal) && void 0 !== i ? i : 0) - (null !== (o = a.progress.filesDone) && void 0 !== o ? o : 0), 0) }] - }), [r, a.progress]), u = (0, Oe.useCallback)((e => { + }), [r, a.progress]), c = (0, Oe.useCallback)((e => { var t, n; return e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED || e.status === pf.InstallationStatus.CANCELLING ? [{ disabled: e.status === pf.InstallationStatus.CANCELLING || !(null !== (t = a.progress) && void 0 !== t && t.isPausable), - icon: e.status === pf.InstallationStatus.PAUSED ? iy : ay, + icon: e.status === pf.InstallationStatus.PAUSED ? vy : gy, label: e.status === pf.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"), tooltip: e.status === pf.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"), onClick: e.status === pf.InstallationStatus.PAUSED ? () => a.actions.resumeInstallation(e.game) : () => a.actions.pauseInstallation(e.game) }, { disabled: e.status === pf.InstallationStatus.CANCELLING || !(null !== (n = a.progress) && void 0 !== n && n.isPausable), - icon: Zv, + icon: cy, label: r("download_cancel"), tooltip: r("download_cancel"), onClick: () => a.actions.cancelInstallation(e.game) }] : [{ - icon: Xv, + icon: uy, label: r("download_remove"), tooltip: r("download_remove"), onClick: () => a.actions.cancelInstallation(e.game) @@ -45886,48 +46441,51 @@ footer: (0, hf.jsx)(to, { size: "small", variant: "plain", - icon: oy, - onClick: () => (l(!1), i.actions.setAnimatingAppLayoutWipe("full", !0), void setTimeout((() => { - window.location.hash = `${uk.SETTINGS}/${uk.SETTINGS_DOWNLOAD}` - }), o / 2)), + icon: yy, + onClick: () => (() => { + const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + s(!1), i.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { + window.location.hash = `${_k.SETTINGS}/${_k.SETTINGS_DOWNLOAD}` + }), e / 2) + })(), children: r("download_settings") }), fullWidth: !0, trigger: (0, hf.jsx)(ho, { "data-test-id": "download", icon: (0, hf.jsx)(Ki, { - source: s_, - isPlaying: void 0 !== s && !i.isDownloadPopoverOpened && !t + source: __, + isPlaying: void 0 !== o && !i.isDownloadPopoverOpened && !t }), label: e, onMouseEnter: () => n(!0), onMouseLeave: () => n(!1) }), open: i.isDownloadPopoverOpened, - onOpenChange: e => l(e), + onOpenChange: e => s(e), children: a.installations.length > 0 ? a.installations.map(((e, t) => ((e, t) => { var n; return (0, hf.jsxs)(hf.Fragment, { children: [0 !== e && (0, hf.jsx)(Vc, { spacing: "100" - }), (0, hf.jsx)(Gc, { + }), (0, hf.jsx)(Bc, { title: `${t.game.gameName} - ${t.release?t.release.versionLabel+" - ":""}${t.game.channelId}`, subtitle: r(`download_type_${t.type}`), state: t.status, - actions: u(t), + actions: c(t), progress: t.status === pf.InstallationStatus.IN_PROGRESS && null !== (n = a.progress) && void 0 !== n && n.showProgress ? a.progress.percentage : void 0, - stats: c(t) + stats: l(t) }, `${t.game.gameId}-${t.game.channelId}`)] }) })(t, e))) : r("download_empty") }) }, - d_ = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), - p_ = ({ - title: e, - status: t, - label: n - }) => (0, hf.jsxs)(uo, { + x_ = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), + w_ = ({ + title: e, + status: t, + label: n + }) => (0, hf.jsxs)(uo, { as: "dl", align: "center", gap: "100", @@ -45939,17 +46497,17 @@ children: e }), (0, hf.jsx)(tu, { as: "dd", - status: Tf(t), + status: Cf(t), children: null !== n && void 0 !== n ? n : "-" })] }), - h_ = ({ - labelItem: e - }) => { + k_ = ({ + labelItem: e + }) => { const [t, n] = (0, Oe.useState)(!1), { t: r - } = xt("status"), a = ww((e => e.status)), i = ww((e => e.application)), o = a.systems && a.systems.length > 0, s = (0, Oe.useMemo)((() => { - if (!t && !i.isStatusPopoverOpened && a.summaryStatus && a.summaryStatus !== pf.RSISystemStatus.OPERATIONAL) return "status-" + Tf(a.summaryStatus) + } = xt("status"), a = Pw((e => e.status)), i = Pw((e => e.application)), o = a.systems && a.systems.length > 0, s = (0, Oe.useMemo)((() => { + if (!t && !i.isStatusPopoverOpened && a.summaryStatus && a.summaryStatus !== pf.RSISystemStatus.OPERATIONAL) return "status-" + Cf(a.summaryStatus) }), [t, i.isStatusPopoverOpened, a.summaryStatus]); return (0, hf.jsx)(Yh, { title: r("status_title"), @@ -45960,7 +46518,7 @@ "data-test-id": "status", icon: (0, hf.jsx)(Ki, { color: s, - source: d_, + source: x_, isPlaying: !i.isStatusPopoverOpened && !t && a.summaryStatus !== pf.RSISystemStatus.OPERATIONAL }), label: e, @@ -45976,7 +46534,7 @@ external: !0, href: pf.configuration.statusUrl, size: "small", - endIcon: ry, + endIcon: my, variant: "plain", children: r("status_more_information") }), (0, hf.jsx)(Qi, { @@ -45990,7 +46548,7 @@ children: (0, hf.jsx)(uo, { vertical: !0, gap: "100", - children: o ? a.systems.map((e => (0, hf.jsx)(p_, { + children: o ? a.systems.map((e => (0, hf.jsx)(w_, { title: e.name, status: e.status, label: r("status_" + e.status) @@ -45998,7 +46556,7 @@ }) }) }, - f_ = () => { + E_ = () => { var e, t, n, r, a, i; const { t: o @@ -46006,48 +46564,48 @@ window: { setMinimizeWindow: l } - } = Sf(), c = ww((e => e.application)), u = ww((e => e.user)), d = ww((e => e.soundSystem)), p = ww((e => e.window)), { + } = Sf(), c = Pw((e => e.application)), u = Pw((e => e.user)), d = Pw((e => e.soundSystem)), p = Pw((e => e.window)), { isLoggedIn: h } = u.actions, f = (0, Oe.useMemo)((() => { var e; const t = null === (e = u.identity) || void 0 === e ? void 0 : e.avatar; - return t ? t.match(/^https?:\/\//) ? t : kw(t) : pf.configuration.defaultAvatarUrl + return t ? t.match(/^https?:\/\//) ? t : Iw(t) : pf.configuration.defaultAvatarUrl }), [null === (e = u.identity) || void 0 === e ? void 0 : e.avatar]), m = (0, Oe.useMemo)((() => { var e; const t = null === (e = u.identity) || void 0 === e ? void 0 : e.nickname; - return t ? kw(`/citizens/${t}`) : pf.configuration.playnowUrl + return t ? Iw(`/citizens/${t}`) : pf.configuration.playnowUrl }), [null === (t = u.identity) || void 0 === t ? void 0 : t.nickname]); return (0, hf.jsxs)(mo, { - children: [(0, hf.jsxs)(Bh, { + children: [(0, hf.jsxs)(Gh, { offset: "large", trigger: (0, hf.jsx)(ho, { "data-test-id": "rsi-menu", - endIcon: Kv, + endIcon: sy, label: o("app_header_menu"), children: (0, hf.jsx)(Kh, {}) }), children: [h() && (0, hf.jsx)(Uh, { onClick: () => { c.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { - window.location.hash = uk.SETTINGS + window.location.hash = _k.SETTINGS }), s / 2) }, label: o("app_header_menu_settings"), - disabled: window.location.hash.includes(uk.SETTINGS) + disabled: window.location.hash.includes(_k.SETTINGS) }), (0, hf.jsx)(Uh, { external: !0, - endIcon: ry, + endIcon: my, href: pf.configuration.supportUrl, label: o("app_header_menu_get_help"), "data-test-id": "rsi-menu-help" }), (0, hf.jsx)(Uh, { external: !0, - endIcon: ry, + endIcon: my, href: pf.configuration.spectrumUrl, label: o("app_header_menu_spectrum") }), (0, hf.jsx)(Uh, { external: !0, - endIcon: ry, + endIcon: my, href: pf.configuration.issueCouncilUrl, label: o("app_header_menu_issue_council") }), (0, hf.jsx)(Uh, { @@ -46067,11 +46625,11 @@ } }), (0, hf.jsxs)(po, { children: [h() && (0, hf.jsxs)(hf.Fragment, { - children: [(0, hf.jsx)(h_, { + children: [(0, hf.jsx)(k_, { labelItem: o("app_header_actions_menu_rsi_status") - }), (0, hf.jsx)(fo, {}), (0, hf.jsx)(u_, { + }), (0, hf.jsx)(fo, {}), (0, hf.jsx)(b_, { labelItem: o("app_header_actions_download") - }), (0, hf.jsxs)(Bh, { + }), (0, hf.jsxs)(Gh, { offset: "large", placement: "bottom-end", trigger: (0, hf.jsx)(ho, { @@ -46085,12 +46643,12 @@ }), children: [(0, hf.jsx)(Vh, { "data-test-id": "avatar-nickname", - title: null !== (n = null === (r = u.identity) || void 0 === r ? void 0 : r.nickname) && void 0 !== n ? n : o("app_header_account_name"), - subtitle: null !== (a = `@${null===(i=u.identity)||void 0===i?void 0:i.displayName}`) && void 0 !== a ? a : o("app_header_account_moniker") + title: null !== (n = null === (r = u.identity) || void 0 === r ? void 0 : r.displayName) && void 0 !== n ? n : o("app_header_account_moniker"), + subtitle: null !== (a = `@${null===(i=u.identity)||void 0===i?void 0:i.nickname}`) && void 0 !== a ? a : o("app_header_account_name") }), (0, hf.jsx)(Uh, { external: !0, href: m, - endIcon: ry, + endIcon: my, label: o("app_header_actions_menu_rsi_account"), "data-test-id": "avatar-url" }), (0, hf.jsx)(Uh, { @@ -46106,7 +46664,7 @@ "aria-label": "Minimize", onClick: l, disableFocus: !0, - icon: ny + icon: fy }), (0, hf.jsx)(ho, { alwaysOnTop: !0, "aria-label": "Close", @@ -46114,29 +46672,29 @@ e.preventDefault(), p.actions.closeLauncher() }, disableFocus: !0, - icon: Xv + icon: uy })] })] }) }, - m_ = () => { - const e = ww((e => e.autoUpdate)); - return Dw(), (0, hf.jsx)(Uc, { + S_ = () => { + const e = Pw((e => e.autoUpdate)); + return Vw(), (0, hf.jsx)(Uc, { ...e.dialog }) }, - g_ = e => { + O_ = e => { var t, n, r; - const a = ww((e => e.library)), - i = ww((e => e.application)), + const a = Pw((e => e.library)), + i = Pw((e => e.application)), o = null !== (t = null === (n = i.animations) || void 0 === n || null === (r = n.appLayoutWipe) || void 0 === r ? void 0 : r.isAnimating) && void 0 !== t && t, - s = Ey(), + s = jy(), { t: l } = xt("gamePage"), c = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [u, d] = (0, Oe.useState)(s.gameId), - p = Tw({ + p = jw({ location: `game-page/${u}`, delay: c / 2 }); @@ -46157,62 +46715,62 @@ }, e.id) : null)) }) }; - var v_ = e => "checkbox" === e.type, - y_ = e => e instanceof Date, - __ = e => null == e; - const b_ = e => "object" === typeof e; - var x_ = e => !__(e) && !Array.isArray(e) && b_(e) && !y_(e), - w_ = e => x_(e) && e.target ? v_(e.target) ? e.target.checked : e.target.value : e, - k_ = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), - E_ = e => Array.isArray(e) ? e.filter(Boolean) : [], - S_ = e => void 0 === e, - O_ = (e, t, n) => { - if (!t || !x_(e)) return n; - const r = E_(t.split(/[,[\].]+?/)).reduce(((e, t) => __(e) ? e : e[t]), e); - return S_(r) || r === e ? S_(e[t]) ? n : e[t] : r + var P_ = e => "checkbox" === e.type, + I_ = e => e instanceof Date, + A_ = e => null == e; + const R_ = e => "object" === typeof e; + var C_ = e => !A_(e) && !Array.isArray(e) && R_(e) && !I_(e), + T_ = e => C_(e) && e.target ? P_(e.target) ? e.target.checked : e.target.value : e, + D_ = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), + N_ = e => Array.isArray(e) ? e.filter(Boolean) : [], + L_ = e => void 0 === e, + j_ = (e, t, n) => { + if (!t || !C_(e)) return n; + const r = N_(t.split(/[,[\].]+?/)).reduce(((e, t) => A_(e) ? e : e[t]), e); + return L_(r) || r === e ? L_(e[t]) ? n : e[t] : r }; - const P_ = "blur", - I_ = "focusout", - A_ = "change", - C_ = "onBlur", - T_ = "onChange", - R_ = "onSubmit", - D_ = "onTouched", - N_ = "all", - j_ = "max", - L_ = "min", - M_ = "maxLength", - z_ = "minLength", - F_ = "pattern", - U_ = "required", - V_ = "validate", - B_ = Oe.createContext(null), - G_ = () => Oe.useContext(B_); - var q_ = (e, t, n, r = !0) => { + const M_ = "blur", + z_ = "focusout", + F_ = "change", + U_ = "onBlur", + V_ = "onChange", + G_ = "onSubmit", + B_ = "onTouched", + q_ = "all", + $_ = "max", + W_ = "min", + H_ = "maxLength", + Y_ = "minLength", + K_ = "pattern", + Q_ = "required", + Z_ = "validate", + X_ = Oe.createContext(null), + J_ = () => Oe.useContext(X_); + var eb = (e, t, n, r = !0) => { const a = { defaultValues: t._defaultValues }; for (const i in e) Object.defineProperty(a, i, { get: () => { const a = i; - return t._proxyFormState[a] !== N_ && (t._proxyFormState[a] = !r || N_), n && (n[a] = !0), e[a] + return t._proxyFormState[a] !== q_ && (t._proxyFormState[a] = !r || q_), n && (n[a] = !0), e[a] } }); return a }, - $_ = e => x_(e) && !Object.keys(e).length, - W_ = (e, t, n, r) => { + tb = e => C_(e) && !Object.keys(e).length, + nb = (e, t, n, r) => { n(e); const { name: a, ...i } = e; - return $_(i) || Object.keys(i).length >= Object.keys(t).length || Object.keys(i).find((e => t[e] === (!r || N_))) + return tb(i) || Object.keys(i).length >= Object.keys(t).length || Object.keys(i).find((e => t[e] === (!r || q_))) }, - H_ = e => Array.isArray(e) ? e : [e], - Y_ = (e, t, n) => n && t ? e === t : !e || !t || e === t || H_(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); + rb = e => Array.isArray(e) ? e : [e], + ab = (e, t, n) => n && t ? e === t : !e || !t || e === t || rb(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); - function K_(e) { + function ib(e) { const t = Oe.useRef(e); t.current = e, Oe.useEffect((() => { const n = !e.disabled && t.current.subject.subscribe({ @@ -46223,37 +46781,37 @@ } }), [e.disabled]) } - var Q_ = e => "string" === typeof e, - Z_ = (e, t, n, r, a) => Q_(e) ? (r && t.watch.add(e), O_(n, e, a)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), O_(n, e)))) : (r && (t.watchAll = !0), n), - X_ = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; + var ob = e => "string" === typeof e, + sb = (e, t, n, r, a) => ob(e) ? (r && t.watch.add(e), j_(n, e, a)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), j_(n, e)))) : (r && (t.watchAll = !0), n), + lb = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; - function J_(e) { + function cb(e) { let t; const n = Array.isArray(e); if (e instanceof Date) t = new Date(e); else if (e instanceof Set) t = new Set(e); else { - if (X_ && (e instanceof Blob || e instanceof FileList) || !n && !x_(e)) return e; + if (lb && (e instanceof Blob || e instanceof FileList) || !n && !C_(e)) return e; if (t = n ? [] : {}, Array.isArray(e) || (e => { - const t = e.constructor && e.constructor.prototype; - return x_(t) && t.hasOwnProperty("isPrototypeOf") - })(e)) - for (const n in e) t[n] = J_(e[n]); + const t = e.constructor && e.constructor.prototype; + return C_(t) && t.hasOwnProperty("isPrototypeOf") + })(e)) + for (const n in e) t[n] = cb(e[n]); else t = e } return t } - function eb(e) { - const t = G_(), + function ub(e) { + const t = J_(), { name: n, control: r = t.control, shouldUnregister: a } = e, - i = k_(r._names.array, n), + i = D_(r._names.array, n), o = function(e) { - const t = G_(), + const t = J_(), { control: n = t.control, name: r, @@ -46262,11 +46820,11 @@ exact: o } = e || {}, s = Oe.useRef(r); - s.current = r, K_({ + s.current = r, ib({ disabled: i, subject: n._subjects.watch, next: e => { - Y_(s.current, e.name, o) && c(J_(Z_(s.current, n._names, e.values || n._formValues, !1, a))) + ab(s.current, e.name, o) && c(cb(sb(s.current, n._names, e.values || n._formValues, !1, a))) } }); const [l, c] = Oe.useState(n._getWatch(r, a)); @@ -46274,11 +46832,11 @@ }({ control: r, name: n, - defaultValue: O_(r._formValues, n, O_(r._defaultValues, n, e.defaultValue)), + defaultValue: j_(r._formValues, n, j_(r._defaultValues, n, e.defaultValue)), exact: !0 }), s = function(e) { - const t = G_(), + const t = J_(), { control: n = t.control, disabled: r, @@ -46297,9 +46855,9 @@ errors: !1 }), u = Oe.useRef(a); - return u.current = a, K_({ + return u.current = a, ib({ disabled: r, - next: e => l.current && Y_(u.current, e.name, i) && W_(e, c.current, n._updateFormState) && s({ + next: e => l.current && ab(u.current, e.name, i) && nb(e, c.current, n._updateFormState) && s({ ...n._formState, ...e }), @@ -46312,7 +46870,7 @@ }), c.current.isValid && n._updateValid(!0), () => { l.current = !1 } - }), [n]), q_(o, n, c.current, !1) + }), [n]), eb(o, n, c.current, !1) }({ control: r, name: n @@ -46323,7 +46881,7 @@ })); return Oe.useEffect((() => { const e = (e, t) => { - const n = O_(r._fields, e); + const n = j_(r._fields, e); n && (n._f.mount = t) }; return e(n, !0), () => { @@ -46336,20 +46894,20 @@ value: o, onChange: Oe.useCallback((e => l.current.onChange({ target: { - value: w_(e), + value: T_(e), name: n }, - type: A_ + type: F_ })), [n]), onBlur: Oe.useCallback((() => l.current.onBlur({ target: { - value: O_(r._formValues, n), + value: j_(r._formValues, n), name: n }, - type: P_ + type: M_ })), [n, r]), ref: e => { - const t = O_(r._fields, n); + const t = j_(r._fields, n); t && e && (t._f.ref = { focus: () => e.focus(), select: () => e.select(), @@ -46362,36 +46920,36 @@ fieldState: Object.defineProperties({}, { invalid: { enumerable: !0, - get: () => !!O_(s.errors, n) + get: () => !!j_(s.errors, n) }, isDirty: { enumerable: !0, - get: () => !!O_(s.dirtyFields, n) + get: () => !!j_(s.dirtyFields, n) }, isTouched: { enumerable: !0, - get: () => !!O_(s.touchedFields, n) + get: () => !!j_(s.touchedFields, n) }, error: { enumerable: !0, - get: () => O_(s.errors, n) + get: () => j_(s.errors, n) } }) } } - var tb = (e, t, n, r, a) => t ? { + var db = (e, t, n, r, a) => t ? { ...n[e], types: { ...n[e] && n[e].types ? n[e].types : {}, [r]: a || !0 } } : {}, - nb = e => /^\w*$/.test(e), - rb = e => E_(e.replace(/["|']|\]/g, "").split(/\.|\[/)); + pb = e => /^\w*$/.test(e), + hb = e => N_(e.replace(/["|']|\]/g, "").split(/\.|\[/)); - function ab(e, t, n) { + function fb(e, t, n) { let r = -1; - const a = nb(t) ? [t] : rb(t), + const a = pb(t) ? [t] : hb(t), i = a.length, o = i - 1; for (; ++r < i;) { @@ -46399,15 +46957,15 @@ let i = n; if (r !== o) { const n = e[t]; - i = x_(n) || Array.isArray(n) ? n : isNaN(+a[r + 1]) ? {} : [] + i = C_(n) || Array.isArray(n) ? n : isNaN(+a[r + 1]) ? {} : [] } e[t] = i, e = e[t] } return e } - const ib = (e, t, n) => { + const mb = (e, t, n) => { for (const r of n || Object.keys(e)) { - const n = O_(e, r); + const n = j_(e, r); if (n) { const { _f: e, @@ -46422,42 +46980,42 @@ e.refs[0].focus(); break } - } else x_(r) && ib(r, t) + } else C_(r) && mb(r, t) } } }; - var ob = e => ({ - isOnSubmit: !e || e === R_, - isOnBlur: e === C_, - isOnChange: e === T_, - isOnAll: e === N_, - isOnTouch: e === D_ + var gb = e => ({ + isOnSubmit: !e || e === G_, + isOnBlur: e === U_, + isOnChange: e === V_, + isOnAll: e === q_, + isOnTouch: e === B_ }), - sb = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), - lb = (e, t, n) => { - const r = E_(O_(e, n)); - return ab(r, "root", t[n]), ab(e, n, r), e + vb = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), + yb = (e, t, n) => { + const r = N_(j_(e, n)); + return fb(r, "root", t[n]), fb(e, n, r), e }, - cb = e => "boolean" === typeof e, - ub = e => "file" === e.type, - db = e => "function" === typeof e, - pb = e => { - if (!X_) return !1; + _b = e => "boolean" === typeof e, + bb = e => "file" === e.type, + xb = e => "function" === typeof e, + wb = e => { + if (!lb) return !1; const t = e ? e.ownerDocument : 0; return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) }, - hb = e => Q_(e) || Oe.isValidElement(e), - fb = e => "radio" === e.type, - mb = e => e instanceof RegExp; - const gb = { + kb = e => ob(e) || Oe.isValidElement(e), + Eb = e => "radio" === e.type, + Sb = e => e instanceof RegExp; + const Ob = { value: !1, isValid: !1 }, - vb = { + Pb = { value: !0, isValid: !0 }; - var yb = e => { + var Ib = e => { if (Array.isArray(e)) { if (e.length > 1) { const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value)); @@ -46466,34 +47024,34 @@ isValid: !!t.length } } - return e[0].checked && !e[0].disabled ? e[0].attributes && !S_(e[0].attributes.value) ? S_(e[0].value) || "" === e[0].value ? vb : { + return e[0].checked && !e[0].disabled ? e[0].attributes && !L_(e[0].attributes.value) ? L_(e[0].value) || "" === e[0].value ? Pb : { value: e[0].value, isValid: !0 - } : vb : gb + } : Pb : Ob } - return gb + return Ob }; - const _b = { + const Ab = { isValid: !1, value: null }; - var bb = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { + var Rb = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { isValid: !0, value: t.value - } : e), _b) : _b; + } : e), Ab) : Ab; - function xb(e, t, n = "validate") { - if (hb(e) || Array.isArray(e) && e.every(hb) || cb(e) && !e) return { + function Cb(e, t, n = "validate") { + if (kb(e) || Array.isArray(e) && e.every(kb) || _b(e) && !e) return { type: n, - message: hb(e) ? e : "", + message: kb(e) ? e : "", ref: t } } - var wb = e => x_(e) && !mb(e) ? e : { + var Tb = e => C_(e) && !Sb(e) ? e : { value: e, message: "" }, - kb = async (e, t, n, r, a) => { + Db = async (e, t, n, r, a) => { const { ref: i, refs: o, @@ -46508,19 +47066,19 @@ valueAsNumber: m, mount: g, disabled: v - } = e._f, y = O_(t, f); + } = e._f, y = j_(t, f); if (!g || v) return {}; const _ = o ? o[0] : i, b = e => { - r && _.reportValidity && (_.setCustomValidity(cb(e) ? "" : e || ""), _.reportValidity()) + r && _.reportValidity && (_.setCustomValidity(_b(e) ? "" : e || ""), _.reportValidity()) }, x = {}, - w = fb(i), - k = v_(i), + w = Eb(i), + k = P_(i), E = w || k, - S = (m || ub(i)) && S_(i.value) && S_(y) || pb(i) && "" === i.value || "" === y || Array.isArray(y) && !y.length, - O = tb.bind(null, f, n, x), - P = (e, t, n, r = M_, a = z_) => { + S = (m || bb(i)) && L_(i.value) && L_(y) || wb(i) && "" === i.value || "" === y || Array.isArray(y) && !y.length, + O = db.bind(null, f, n, x), + P = (e, t, n, r = H_, a = Y_) => { const o = e ? t : n; x[f] = { type: e ? r : a, @@ -46529,99 +47087,99 @@ ...O(e ? r : a, o) } }; - if (a ? !Array.isArray(y) || !y.length : s && (!E && (S || __(y)) || cb(y) && !y || k && !yb(o).isValid || w && !bb(o).isValid)) { + if (a ? !Array.isArray(y) || !y.length : s && (!E && (S || A_(y)) || _b(y) && !y || k && !Ib(o).isValid || w && !Rb(o).isValid)) { const { value: e, message: t - } = hb(s) ? { + } = kb(s) ? { value: !!s, message: s - } : wb(s); + } : Tb(s); if (e && (x[f] = { - type: U_, - message: t, - ref: _, - ...O(U_, t) - }, !n)) return b(t), x + type: Q_, + message: t, + ref: _, + ...O(Q_, t) + }, !n)) return b(t), x } - if (!S && (!__(u) || !__(d))) { + if (!S && (!A_(u) || !A_(d))) { let e, t; - const r = wb(d), - a = wb(u); - if (__(y) || isNaN(y)) { + const r = Tb(d), + a = Tb(u); + if (A_(y) || isNaN(y)) { const n = i.valueAsDate || new Date(y), o = e => new Date((new Date).toDateString() + " " + e), s = "time" == i.type, l = "week" == i.type; - Q_(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), Q_(a.value) && y && (t = s ? o(y) < o(a.value) : l ? y < a.value : n < new Date(a.value)) + ob(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), ob(a.value) && y && (t = s ? o(y) < o(a.value) : l ? y < a.value : n < new Date(a.value)) } else { const n = i.valueAsNumber || (y ? +y : y); - __(r.value) || (e = n > r.value), __(a.value) || (t = n < a.value) + A_(r.value) || (e = n > r.value), A_(a.value) || (t = n < a.value) } - if ((e || t) && (P(!!e, r.message, a.message, j_, L_), !n)) return b(x[f].message), x + if ((e || t) && (P(!!e, r.message, a.message, $_, W_), !n)) return b(x[f].message), x } - if ((l || c) && !S && (Q_(y) || a && Array.isArray(y))) { - const e = wb(l), - t = wb(c), - r = !__(e.value) && y.length > e.value, - a = !__(t.value) && y.length < t.value; + if ((l || c) && !S && (ob(y) || a && Array.isArray(y))) { + const e = Tb(l), + t = Tb(c), + r = !A_(e.value) && y.length > e.value, + a = !A_(t.value) && y.length < t.value; if ((r || a) && (P(r, e.message, t.message), !n)) return b(x[f].message), x } - if (p && !S && Q_(y)) { + if (p && !S && ob(y)) { const { value: e, message: t - } = wb(p); - if (mb(e) && !y.match(e) && (x[f] = { - type: F_, - message: t, - ref: i, - ...O(F_, t) - }, !n)) return b(t), x + } = Tb(p); + if (Sb(e) && !y.match(e) && (x[f] = { + type: K_, + message: t, + ref: i, + ...O(K_, t) + }, !n)) return b(t), x } if (h) - if (db(h)) { - const e = xb(await h(y, t), _); + if (xb(h)) { + const e = Cb(await h(y, t), _); if (e && (x[f] = { - ...e, - ...O(V_, e.message) - }, !n)) return b(e.message), x - } else if (x_(h)) { - let e = {}; - for (const r in h) { - if (!$_(e) && !n) break; - const a = xb(await h[r](y, t), _, r); - a && (e = { - ...a, - ...O(r, a.message) - }, b(a.message), n && (x[f] = e)) - } - if (!$_(e) && (x[f] = { + ...e, + ...O(Z_, e.message) + }, !n)) return b(e.message), x + } else if (C_(h)) { + let e = {}; + for (const r in h) { + if (!tb(e) && !n) break; + const a = Cb(await h[r](y, t), _, r); + a && (e = { + ...a, + ...O(r, a.message) + }, b(a.message), n && (x[f] = e)) + } + if (!tb(e) && (x[f] = { ref: _, ...e }, !n)) return x - } + } return b(!0), x }; - function Eb(e, t) { - const n = Array.isArray(t) ? t : nb(t) ? [t] : rb(t), + function Nb(e, t) { + const n = Array.isArray(t) ? t : pb(t) ? [t] : hb(t), r = 1 === n.length ? e : function(e, t) { const n = t.slice(0, -1).length; let r = 0; - for (; r < n;) e = S_(e) ? r++ : e[t[r++]]; + for (; r < n;) e = L_(e) ? r++ : e[t[r++]]; return e }(e, n), a = n.length - 1, i = n[a]; - return r && delete r[i], 0 !== a && (x_(r) && $_(r) || Array.isArray(r) && function(e) { + return r && delete r[i], 0 !== a && (C_(r) && tb(r) || Array.isArray(r) && function(e) { for (const t in e) - if (!S_(e[t])) return !1; + if (!L_(e[t])) return !1; return !0 - }(r)) && Eb(e, n.slice(0, -1)), e + }(r)) && Nb(e, n.slice(0, -1)), e } - function Sb() { + function Lb() { let e = []; return { get observers() { @@ -46640,11 +47198,11 @@ } } } - var Ob = e => __(e) || !b_(e); + var jb = e => A_(e) || !R_(e); - function Pb(e, t) { - if (Ob(e) || Ob(t)) return e === t; - if (y_(e) && y_(t)) return e.getTime() === t.getTime(); + function Mb(e, t) { + if (jb(e) || jb(t)) return e === t; + if (I_(e) && I_(t)) return e.getTime() === t.getTime(); const n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; @@ -46653,60 +47211,60 @@ if (!r.includes(a)) return !1; if ("ref" !== a) { const e = t[a]; - if (y_(n) && y_(e) || x_(n) && x_(e) || Array.isArray(n) && Array.isArray(e) ? !Pb(n, e) : n !== e) return !1 + if (I_(n) && I_(e) || C_(n) && C_(e) || Array.isArray(n) && Array.isArray(e) ? !Mb(n, e) : n !== e) return !1 } } return !0 } - var Ib = e => "select-multiple" === e.type, - Ab = e => pb(e) && e.isConnected, - Cb = e => { + var zb = e => "select-multiple" === e.type, + Fb = e => wb(e) && e.isConnected, + Ub = e => { for (const t in e) - if (db(e[t])) return !0; + if (xb(e[t])) return !0; return !1 }; - function Tb(e, t = {}) { + function Vb(e, t = {}) { const n = Array.isArray(e); - if (x_(e) || n) - for (const r in e) Array.isArray(e[r]) || x_(e[r]) && !Cb(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, Tb(e[r], t[r])) : __(e[r]) || (t[r] = !0); + if (C_(e) || n) + for (const r in e) Array.isArray(e[r]) || C_(e[r]) && !Ub(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, Vb(e[r], t[r])) : A_(e[r]) || (t[r] = !0); return t } - function Rb(e, t, n) { + function Gb(e, t, n) { const r = Array.isArray(e); - if (x_(e) || r) - for (const a in e) Array.isArray(e[a]) || x_(e[a]) && !Cb(e[a]) ? S_(t) || Ob(n[a]) ? n[a] = Array.isArray(e[a]) ? Tb(e[a], []) : { - ...Tb(e[a]) - } : Rb(e[a], __(t) ? {} : t[a], n[a]) : Pb(e[a], t[a]) ? delete n[a] : n[a] = !0; + if (C_(e) || r) + for (const a in e) Array.isArray(e[a]) || C_(e[a]) && !Ub(e[a]) ? L_(t) || jb(n[a]) ? n[a] = Array.isArray(e[a]) ? Vb(e[a], []) : { + ...Vb(e[a]) + } : Gb(e[a], A_(t) ? {} : t[a], n[a]) : Mb(e[a], t[a]) ? delete n[a] : n[a] = !0; return n } - var Db = (e, t) => Rb(e, t, Tb(t)), - Nb = (e, { + var Bb = (e, t) => Gb(e, t, Vb(t)), + qb = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r - }) => S_(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && Q_(e) ? new Date(e) : r ? r(e) : e; + }) => L_(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && ob(e) ? new Date(e) : r ? r(e) : e; - function jb(e) { + function $b(e) { const t = e.ref; - if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return ub(t) ? t.files : fb(t) ? bb(e.refs).value : Ib(t) ? [...t.selectedOptions].map((({ - value: e - }) => e)) : v_(t) ? yb(e.refs).value : Nb(S_(t.value) ? e.ref.value : t.value, e) + if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return bb(t) ? t.files : Eb(t) ? Rb(e.refs).value : zb(t) ? [...t.selectedOptions].map((({ + value: e + }) => e)) : P_(t) ? Ib(e.refs).value : qb(L_(t.value) ? e.ref.value : t.value, e) } - var Lb = e => S_(e) ? e : mb(e) ? e.source : x_(e) ? mb(e.value) ? e.value.source : e.value : e; + var Wb = e => L_(e) ? e : Sb(e) ? e.source : C_(e) ? Sb(e.value) ? e.value.source : e.value : e; - function Mb(e, t, n) { - const r = O_(e, n); - if (r || nb(n)) return { + function Hb(e, t, n) { + const r = j_(e, n); + if (r || pb(n)) return { error: r, name: n }; const a = n.split("."); for (; a.length;) { const r = a.join("."), - i = O_(t, r), - o = O_(e, r); + i = j_(t, r), + o = j_(e, r); if (i && !Array.isArray(i) && n !== r) return { name: n }; @@ -46720,15 +47278,15 @@ name: n } } - const zb = { - mode: R_, - reValidateMode: T_, + const Yb = { + mode: G_, + reValidateMode: V_, shouldFocusError: !0 }; - function Fb(e = {}, t) { + function Kb(e = {}, t) { let n = { - ...zb, + ...Yb, ...e }; const r = e.resetOptions && e.resetOptions.keepDirtyValues; @@ -46746,8 +47304,8 @@ errors: {} }, o = {}, - s = x_(n.defaultValues) && J_(n.defaultValues) || {}, - l = n.shouldUnregister ? {} : J_(s), + s = C_(n.defaultValues) && cb(n.defaultValues) || {}, + l = n.shouldUnregister ? {} : cb(s), c = { action: !1, mount: !1, @@ -46769,16 +47327,16 @@ errors: !1 }, h = { - watch: Sb(), - array: Sb(), - state: Sb() + watch: Lb(), + array: Lb(), + state: Lb() }, - f = ob(n.mode), - m = ob(n.reValidateMode), - g = n.criteriaMode === N_, + f = gb(n.mode), + m = gb(n.reValidateMode), + g = n.criteriaMode === q_, v = async e => { if (p.isValid || e) { - const e = n.resolver ? $_((await w()).errors) : await k(o, !0); + const e = n.resolver ? tb((await w()).errors) : await k(o, !0); e !== i.isValid && (i.isValid = e, h.state.next({ isValid: e })) @@ -46786,10 +47344,10 @@ }, y = e => p.isValidating && h.state.next({ isValidating: e }), _ = (e, t, n, r) => { - const a = O_(o, e); + const a = j_(o, e); if (a) { - const i = O_(l, e, S_(n) ? O_(s, e) : n); - S_(i) || r && r.defaultChecked || t ? ab(l, e, t ? i : jb(a._f)) : O(e, i), c.mount && v() + const i = j_(l, e, L_(n) ? j_(s, e) : n); + L_(i) || r && r.defaultChecked || t ? fb(l, e, t ? i : $b(a._f)) : O(e, i), c.mount && v() } }, b = (e, t, n, r, a) => { let o = !1, @@ -46799,28 +47357,28 @@ }; if (!n || r) { p.isDirty && (l = i.isDirty, i.isDirty = c.isDirty = E(), o = l !== c.isDirty); - const n = Pb(O_(s, e), t); - l = O_(i.dirtyFields, e), n ? Eb(i.dirtyFields, e) : ab(i.dirtyFields, e, !0), c.dirtyFields = i.dirtyFields, o = o || p.dirtyFields && l !== !n + const n = Mb(j_(s, e), t); + l = j_(i.dirtyFields, e), n ? Nb(i.dirtyFields, e) : fb(i.dirtyFields, e, !0), c.dirtyFields = i.dirtyFields, o = o || p.dirtyFields && l !== !n } if (n) { - const t = O_(i.touchedFields, e); - t || (ab(i.touchedFields, e, n), c.touchedFields = i.touchedFields, o = o || p.touchedFields && t !== n) + const t = j_(i.touchedFields, e); + t || (fb(i.touchedFields, e, n), c.touchedFields = i.touchedFields, o = o || p.touchedFields && t !== n) } return o && a && h.state.next(c), o ? c : {} }, x = (t, n, r, o) => { - const s = O_(i.errors, t), - l = p.isValid && cb(n) && i.isValid !== n; + const s = j_(i.errors, t), + l = p.isValid && _b(n) && i.isValid !== n; var c; if (e.delayError && r ? (c = () => ((e, t) => { - ab(i.errors, e, t), h.state.next({ - errors: i.errors - }) - })(t, r), a = e => { - clearTimeout(d), d = window.setTimeout(c, e) - }, a(e.delayError)) : (clearTimeout(d), a = null, r ? ab(i.errors, t, r) : Eb(i.errors, t)), (r ? !Pb(s, r) : s) || !$_(o) || l) { + fb(i.errors, e, t), h.state.next({ + errors: i.errors + }) + })(t, r), a = e => { + clearTimeout(d), d = window.setTimeout(c, e) + }, a(e.delayError)) : (clearTimeout(d), a = null, r ? fb(i.errors, t, r) : Nb(i.errors, t)), (r ? !Mb(s, r) : s) || !tb(o) || l) { const e = { ...o, - ...l && cb(n) ? { + ...l && _b(n) ? { isValid: n } : {}, errors: i.errors, @@ -46835,8 +47393,8 @@ }, w = async e => await n.resolver(l, n.context, ((e, t, n, r) => { const a = {}; for (const i of e) { - const e = O_(t, i); - e && ab(a, i, e._f) + const e = j_(t, i); + e && fb(a, i, e._f) } return { criteriaMode: n, @@ -46856,80 +47414,80 @@ } = o; if (e) { const a = u.array.has(e.name), - s = await kb(o, l, g, n.shouldUseNativeValidation, a); + s = await Db(o, l, g, n.shouldUseNativeValidation, a); if (s[e.name] && (r.valid = !1, t)) break; - !t && (O_(s, e.name) ? a ? lb(i.errors, s, e.name) : ab(i.errors, e.name, s[e.name]) : Eb(i.errors, e.name)) + !t && (j_(s, e.name) ? a ? yb(i.errors, s, e.name) : fb(i.errors, e.name, s[e.name]) : Nb(i.errors, e.name)) } a && await k(a, t, r) } } return r.valid - }, E = (e, t) => (e && t && ab(l, e, t), !Pb(T(), s)), S = (e, t, n) => Z_(e, u, { - ...c.mount ? l : S_(t) ? s : Q_(e) ? { + }, E = (e, t) => (e && t && fb(l, e, t), !Mb(C(), s)), S = (e, t, n) => sb(e, u, { + ...c.mount ? l : L_(t) ? s : ob(e) ? { [e]: t } : t }, n, t), O = (e, t, n = {}) => { - const r = O_(o, e); + const r = j_(o, e); let a = t; if (r) { const n = r._f; - n && (!n.disabled && ab(l, e, Nb(t, n)), a = pb(n.ref) && __(t) ? "" : t, Ib(n.ref) ? [...n.ref.options].forEach((e => e.selected = a.includes(e.value))) : n.refs ? v_(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(a) ? !!a.find((t => t === e.value)) : a === e.value))) : n.refs[0] && (n.refs[0].checked = !!a) : n.refs.forEach((e => e.checked = e.value === a)) : ub(n.ref) ? n.ref.value = "" : (n.ref.value = a, n.ref.type || h.watch.next({ + n && (!n.disabled && fb(l, e, qb(t, n)), a = wb(n.ref) && A_(t) ? "" : t, zb(n.ref) ? [...n.ref.options].forEach((e => e.selected = a.includes(e.value))) : n.refs ? P_(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(a) ? !!a.find((t => t === e.value)) : a === e.value))) : n.refs[0] && (n.refs[0].checked = !!a) : n.refs.forEach((e => e.checked = e.value === a)) : bb(n.ref) ? n.ref.value = "" : (n.ref.value = a, n.ref.type || h.watch.next({ name: e }))) - }(n.shouldDirty || n.shouldTouch) && b(e, a, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && C(e) + }(n.shouldDirty || n.shouldTouch) && b(e, a, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && R(e) }, P = (e, t, n) => { for (const r in t) { const a = t[r], i = `${e}.${r}`, - s = O_(o, i); - !u.array.has(e) && Ob(a) && (!s || s._f) || y_(a) ? O(i, a, n) : P(i, a, n) + s = j_(o, i); + !u.array.has(e) && jb(a) && (!s || s._f) || I_(a) ? O(i, a, n) : P(i, a, n) } }, I = (e, n, r = {}) => { - const a = O_(o, e), + const a = j_(o, e), d = u.array.has(e), - f = J_(n); - ab(l, e, f), d ? (h.array.next({ + f = cb(n); + fb(l, e, f), d ? (h.array.next({ name: e, values: l - }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (i.dirtyFields = Db(s, l), h.state.next({ + }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (i.dirtyFields = Bb(s, l), h.state.next({ name: e, dirtyFields: i.dirtyFields, isDirty: E(e, f) - }))) : !a || a._f || __(f) ? O(e, f, r) : P(e, f, r), sb(e, u) && h.state.next({}), h.watch.next({ + }))) : !a || a._f || A_(f) ? O(e, f, r) : P(e, f, r), vb(e, u) && h.state.next({}), h.watch.next({ name: e }), !c.mount && t() }, A = async e => { const t = e.target; let r = t.name; - const s = O_(o, r); + const s = j_(o, r); if (s) { let d, _; - const E = t.type ? jb(s._f) : w_(e), - S = e.type === P_ || e.type === I_, - O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !O_(i.errors, r) && !s._f.deps || ((e, t, n, r, a) => !a.isOnAll && (!n && a.isOnTouch ? !(t || e) : (n ? r.isOnBlur : a.isOnBlur) ? !e : !(n ? r.isOnChange : a.isOnChange) || e))(S, O_(i.touchedFields, r), i.isSubmitted, m, f), - P = sb(r, u, S); - ab(l, r, E), S ? (s._f.onBlur && s._f.onBlur(e), a && a(0)) : s._f.onChange && s._f.onChange(e); + const E = t.type ? $b(s._f) : T_(e), + S = e.type === M_ || e.type === z_, + O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !j_(i.errors, r) && !s._f.deps || ((e, t, n, r, a) => !a.isOnAll && (!n && a.isOnTouch ? !(t || e) : (n ? r.isOnBlur : a.isOnBlur) ? !e : !(n ? r.isOnChange : a.isOnChange) || e))(S, j_(i.touchedFields, r), i.isSubmitted, m, f), + P = vb(r, u, S); + fb(l, r, E), S ? (s._f.onBlur && s._f.onBlur(e), a && a(0)) : s._f.onChange && s._f.onChange(e); const I = b(r, E, S, !1), - A = !$_(I) || P; + A = !tb(I) || P; if (!S && h.watch.next({ - name: r, - type: e.type - }), O) return p.isValid && v(), A && h.state.next({ + name: r, + type: e.type + }), O) return p.isValid && v(), A && h.state.next({ name: r, ...P ? {} : I }); if (!S && P && h.state.next({}), y(!0), n.resolver) { const { errors: e - } = await w([r]), t = Mb(i.errors, o, r), n = Mb(e, o, t.name || r); - d = n.error, r = n.name, _ = $_(e) - } else d = (await kb(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await k(o, !0)); - s._f.deps && C(s._f.deps), x(r, _, d, I) + } = await w([r]), t = Hb(i.errors, o, r), n = Hb(e, o, t.name || r); + d = n.error, r = n.name, _ = tb(e) + } else d = (await Db(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await k(o, !0)); + s._f.deps && R(s._f.deps), x(r, _, d, I) } var c - }, C = async (e, t = {}) => { + }, R = async (e, t = {}) => { let r, a; - const s = H_(e); + const s = rb(e); if (y(!0), n.resolver) { const t = await (async e => { const { @@ -46937,20 +47495,20 @@ } = await w(); if (e) for (const n of e) { - const e = O_(t, n); - e ? ab(i.errors, n, e) : Eb(i.errors, n) + const e = j_(t, n); + e ? fb(i.errors, n, e) : Nb(i.errors, n) } else i.errors = t; return t - })(S_(e) ? e : s); - r = $_(t), a = e ? !s.some((e => O_(t, e))) : r + })(L_(e) ? e : s); + r = tb(t), a = e ? !s.some((e => j_(t, e))) : r } else e ? (a = (await Promise.all(s.map((async e => { - const t = O_(o, e); + const t = j_(o, e); return await k(t && t._f ? { [e]: t } : t) })))).every(Boolean), (a || i.isValid) && v()) : a = r = await k(o); return h.state.next({ - ...!Q_(e) || p.isValid && r !== i.isValid ? {} : { + ...!ob(e) || p.isValid && r !== i.isValid ? {} : { name: e }, ...n.resolver || !e ? { @@ -46958,20 +47516,20 @@ } : {}, errors: i.errors, isValidating: !1 - }), t.shouldFocus && !a && ib(o, (e => e && O_(i.errors, e)), e ? s : u.mount), a - }, T = e => { + }), t.shouldFocus && !a && mb(o, (e => e && j_(i.errors, e)), e ? s : u.mount), a + }, C = e => { const t = { ...s, ...c.mount ? l : {} }; - return S_(e) ? t : Q_(e) ? O_(t, e) : e.map((e => O_(t, e))) - }, R = (e, t) => ({ - invalid: !!O_((t || i).errors, e), - isDirty: !!O_((t || i).dirtyFields, e), - isTouched: !!O_((t || i).touchedFields, e), - error: O_((t || i).errors, e) + return L_(e) ? t : ob(e) ? j_(t, e) : e.map((e => j_(t, e))) + }, T = (e, t) => ({ + invalid: !!j_((t || i).errors, e), + isDirty: !!j_((t || i).dirtyFields, e), + isTouched: !!j_((t || i).touchedFields, e), + error: j_((t || i).errors, e) }), D = (e, t = {}) => { - for (const r of e ? H_(e) : u.mount) u.mount.delete(r), u.array.delete(r), O_(o, r) && (t.keepValue || (Eb(o, r), Eb(l, r)), !t.keepError && Eb(i.errors, r), !t.keepDirty && Eb(i.dirtyFields, r), !t.keepTouched && Eb(i.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && Eb(s, r)); + for (const r of e ? rb(e) : u.mount) u.mount.delete(r), u.array.delete(r), j_(o, r) && (t.keepValue || (Nb(o, r), Nb(l, r)), !t.keepError && Nb(i.errors, r), !t.keepDirty && Nb(i.dirtyFields, r), !t.keepTouched && Nb(i.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && Nb(s, r)); h.watch.next({}), h.state.next({ ...i, ...t.keepDirty ? { @@ -46979,9 +47537,9 @@ } : {} }), !t.keepIsValid && v() }, N = (e, t = {}) => { - let r = O_(o, e); - const a = cb(t.disabled); - return ab(o, e, { + let r = j_(o, e); + const a = _b(t.disabled); + return fb(o, e, { ...r || {}, _f: { ...r && r._f ? r._f : { @@ -46993,33 +47551,33 @@ mount: !0, ...t } - }), u.mount.add(e), r ? a && ab(l, e, t.disabled ? void 0 : O_(l, e, jb(r._f))) : _(e, !0, t.value), { + }), u.mount.add(e), r ? a && fb(l, e, t.disabled ? void 0 : j_(l, e, $b(r._f))) : _(e, !0, t.value), { ...a ? { disabled: t.disabled } : {}, ...n.shouldUseNativeValidation ? { required: !!t.required, - min: Lb(t.min), - max: Lb(t.max), - minLength: Lb(t.minLength), - maxLength: Lb(t.maxLength), - pattern: Lb(t.pattern) + min: Wb(t.min), + max: Wb(t.max), + minLength: Wb(t.minLength), + maxLength: Wb(t.maxLength), + pattern: Wb(t.pattern) } : {}, name: e, onChange: A, onBlur: A, ref: a => { if (a) { - N(e, t), r = O_(o, e); - const n = S_(a.value) && a.querySelectorAll && a.querySelectorAll("input,select,textarea")[0] || a, - i = (e => fb(e) || v_(e))(n), + N(e, t), r = j_(o, e); + const n = L_(a.value) && a.querySelectorAll && a.querySelectorAll("input,select,textarea")[0] || a, + i = (e => Eb(e) || P_(e))(n), l = r._f.refs || []; if (i ? l.find((e => e === n)) : n === r._f.ref) return; - ab(o, e, { + fb(o, e, { _f: { ...r._f, ...i ? { - refs: [...l.filter(Ab), n, ...Array.isArray(O_(s, e)) ? [{}] : []], + refs: [...l.filter(Fb), n, ...Array.isArray(j_(s, e)) ? [{}] : []], ref: { type: n.type, name: e @@ -47029,23 +47587,23 @@ } } }), _(e, !1, void 0, n) - } else r = O_(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!k_(u.array, e) || !c.action) && u.unMount.add(e) + } else r = j_(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!D_(u.array, e) || !c.action) && u.unMount.add(e) } } - }, j = () => n.shouldFocusError && ib(o, (e => e && O_(i.errors, e)), u.mount), L = (n, a = {}) => { + }, L = () => n.shouldFocusError && mb(o, (e => e && j_(i.errors, e)), u.mount), j = (n, a = {}) => { const d = n || s, - f = J_(d), - m = n && !$_(n) ? f : s; + f = cb(d), + m = n && !tb(n) ? f : s; if (a.keepDefaultValues || (s = d), !a.keepValues) { if (a.keepDirtyValues || r) - for (const e of u.mount) O_(i.dirtyFields, e) ? ab(m, e, O_(l, e)) : I(e, O_(m, e)); + for (const e of u.mount) j_(i.dirtyFields, e) ? fb(m, e, j_(l, e)) : I(e, j_(m, e)); else { - if (X_ && S_(n)) + if (lb && L_(n)) for (const e of u.mount) { - const t = O_(o, e); + const t = j_(o, e); if (t && t._f) { const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref; - if (pb(e)) { + if (wb(e)) { const t = e.closest("form"); if (t) { t.reset(); @@ -47056,7 +47614,7 @@ } o = {} } - l = e.shouldUnregister ? a.keepDefaultValues ? J_(s) : {} : f, h.array.next({ + l = e.shouldUnregister ? a.keepDefaultValues ? cb(s) : {} : f, h.array.next({ values: m }), h.watch.next({ values: m @@ -47071,16 +47629,16 @@ focus: "" }, !c.mount && t(), c.mount = !p.isValid || !!a.keepIsValid, c.watch = !!e.shouldUnregister, h.state.next({ submitCount: a.keepSubmitCount ? i.submitCount : 0, - isDirty: a.keepDirty || a.keepDirtyValues ? i.isDirty : !(!a.keepDefaultValues || Pb(n, s)), + isDirty: a.keepDirty || a.keepDirtyValues ? i.isDirty : !(!a.keepDefaultValues || Mb(n, s)), isSubmitted: !!a.keepIsSubmitted && i.isSubmitted, - dirtyFields: a.keepDirty || a.keepDirtyValues ? i.dirtyFields : a.keepDefaultValues && n ? Db(s, n) : {}, + dirtyFields: a.keepDirty || a.keepDirtyValues ? i.dirtyFields : a.keepDefaultValues && n ? Bb(s, n) : {}, touchedFields: a.keepTouched ? i.touchedFields : {}, errors: a.keepErrors ? i.errors : {}, isSubmitting: !1, isSubmitSuccessful: !1 }) - }, M = (e, t) => L(db(e) ? e(l) : e, t); - return db(n.defaultValues) && n.defaultValues().then((e => { + }, M = (e, t) => j(xb(e) ? e(l) : e, t); + return xb(n.defaultValues) && n.defaultValues().then((e => { M(e, n.resetOptions), h.state.next({ isLoading: !1 }) @@ -47088,46 +47646,46 @@ control: { register: N, unregister: D, - getFieldState: R, + getFieldState: T, _executeSchema: w, - _focusError: j, + _focusError: L, _getWatch: S, _getDirty: E, _updateValid: v, _removeUnmounted: () => { for (const e of u.unMount) { - const t = O_(o, e); - t && (t._f.refs ? t._f.refs.every((e => !Ab(e))) : !Ab(t._f.ref)) && D(e) + const t = j_(o, e); + t && (t._f.refs ? t._f.refs.every((e => !Fb(e))) : !Fb(t._f.ref)) && D(e) } u.unMount = new Set }, _updateFieldArray: (e, t = [], n, r, a = !0, u = !0) => { if (r && n) { - if (c.action = !0, u && Array.isArray(O_(o, e))) { - const t = n(O_(o, e), r.argA, r.argB); - a && ab(o, e, t) + if (c.action = !0, u && Array.isArray(j_(o, e))) { + const t = n(j_(o, e), r.argA, r.argB); + a && fb(o, e, t) } - if (u && Array.isArray(O_(i.errors, e))) { - const t = n(O_(i.errors, e), r.argA, r.argB); - a && ab(i.errors, e, t), ((e, t) => { - !E_(O_(e, t)).length && Eb(e, t) + if (u && Array.isArray(j_(i.errors, e))) { + const t = n(j_(i.errors, e), r.argA, r.argB); + a && fb(i.errors, e, t), ((e, t) => { + !N_(j_(e, t)).length && Nb(e, t) })(i.errors, e) } - if (p.touchedFields && u && Array.isArray(O_(i.touchedFields, e))) { - const t = n(O_(i.touchedFields, e), r.argA, r.argB); - a && ab(i.touchedFields, e, t) + if (p.touchedFields && u && Array.isArray(j_(i.touchedFields, e))) { + const t = n(j_(i.touchedFields, e), r.argA, r.argB); + a && fb(i.touchedFields, e, t) } - p.dirtyFields && (i.dirtyFields = Db(s, l)), h.state.next({ + p.dirtyFields && (i.dirtyFields = Bb(s, l)), h.state.next({ name: e, isDirty: E(e, t), dirtyFields: i.dirtyFields, errors: i.errors, isValid: i.isValid }) - } else ab(l, e, t) + } else fb(l, e, t) }, - _getFieldArray: t => E_(O_(c.mount ? l : s, t, e.shouldUnregister ? O_(s, t, []) : [])), - _reset: L, + _getFieldArray: t => N_(j_(c.mount ? l : s, t, e.shouldUnregister ? j_(s, t, []) : [])), + _reset: j, _updateFormState: e => { i = { ...i, @@ -47173,54 +47731,54 @@ } } }, - trigger: C, + trigger: R, register: N, handleSubmit: (e, t) => async r => { r && (r.preventDefault && r.preventDefault(), r.persist && r.persist()); - let a = J_(l); + let a = cb(l); if (h.state.next({ - isSubmitting: !0 - }), n.resolver) { + isSubmitting: !0 + }), n.resolver) { const { errors: e, values: t } = await w(); i.errors = e, a = t } else await k(o); - $_(i.errors) ? (h.state.next({ + tb(i.errors) ? (h.state.next({ errors: {} }), await e(a, r)) : (t && await t({ ...i.errors - }, r), j()), h.state.next({ + }, r), L()), h.state.next({ isSubmitted: !0, isSubmitting: !1, - isSubmitSuccessful: $_(i.errors), + isSubmitSuccessful: tb(i.errors), submitCount: i.submitCount + 1, errors: i.errors }) }, - watch: (e, t) => db(e) ? h.watch.subscribe({ + watch: (e, t) => xb(e) ? h.watch.subscribe({ next: n => e(S(void 0, t), n) }) : S(e, t, !0), setValue: I, - getValues: T, + getValues: C, reset: M, resetField: (e, t = {}) => { - O_(o, e) && (S_(t.defaultValue) ? I(e, O_(s, e)) : (I(e, t.defaultValue), ab(s, e, t.defaultValue)), t.keepTouched || Eb(i.touchedFields, e), t.keepDirty || (Eb(i.dirtyFields, e), i.isDirty = t.defaultValue ? E(e, O_(s, e)) : E()), t.keepError || (Eb(i.errors, e), p.isValid && v()), h.state.next({ + j_(o, e) && (L_(t.defaultValue) ? I(e, j_(s, e)) : (I(e, t.defaultValue), fb(s, e, t.defaultValue)), t.keepTouched || Nb(i.touchedFields, e), t.keepDirty || (Nb(i.dirtyFields, e), i.isDirty = t.defaultValue ? E(e, j_(s, e)) : E()), t.keepError || (Nb(i.errors, e), p.isValid && v()), h.state.next({ ...i })) }, clearErrors: e => { - e ? H_(e).forEach((e => Eb(i.errors, e))) : i.errors = {}, h.state.next({ + e ? rb(e).forEach((e => Nb(i.errors, e))) : i.errors = {}, h.state.next({ errors: i.errors }) }, unregister: D, setError: (e, t, n) => { - const r = (O_(o, e, { + const r = (j_(o, e, { _f: {} })._f || {}).ref; - ab(i.errors, e, { + fb(i.errors, e, { ...t, ref: r }), h.state.next({ @@ -47230,18 +47788,18 @@ }), n && n.shouldFocus && r && r.focus && r.focus() }, setFocus: (e, t = {}) => { - const n = O_(o, e), + const n = j_(o, e), r = n && n._f; if (r) { const e = r.refs ? r.refs[0] : r.ref; e.focus && (e.focus(), t.shouldSelect && e.select()) } }, - getFieldState: R + getFieldState: T } } - function Ub(e = {}) { + function Qb(e = {}) { const t = Oe.useRef(), [n, r] = Oe.useState({ isDirty: !1, @@ -47255,40 +47813,40 @@ dirtyFields: {}, touchedFields: {}, errors: {}, - defaultValues: db(e.defaultValues) ? void 0 : e.defaultValues + defaultValues: xb(e.defaultValues) ? void 0 : e.defaultValues }); t.current || (t.current = { - ...Fb(e, (() => r((e => ({ + ...Kb(e, (() => r((e => ({ ...e }))))), formState: n }); const a = t.current.control; - return a._options = e, K_({ + return a._options = e, ib({ subject: a._subjects.state, next: e => { - W_(e, a._proxyFormState, a._updateFormState, !0) && r({ + nb(e, a._proxyFormState, a._updateFormState, !0) && r({ ...a._formState }) } }), Oe.useEffect((() => { a._stateFlags.mount || (a._updateValid(), a._stateFlags.mount = !0), a._stateFlags.watch && (a._stateFlags.watch = !1, a._subjects.state.next({})), a._removeUnmounted() })), Oe.useEffect((() => { - e.values && !Pb(e.values, a._defaultValues) && a._reset(e.values, a._options.resetOptions) + e.values && !Mb(e.values, a._defaultValues) && a._reset(e.values, a._options.resetOptions) }), [e.values, a]), Oe.useEffect((() => { n.submitCount && a._focusError() - }), [a, n.submitCount]), t.current.formState = q_(n, a), t.current + }), [a, n.submitCount]), t.current.formState = eb(n, a), t.current } - const Vb = ({ - children: e, - control: t, - name: n, - defaultValue: r, - required: a, - rules: i, - selectProps: o, - ...s - }) => { + const Zb = ({ + children: e, + control: t, + name: n, + defaultValue: r, + required: a, + rules: i, + selectProps: o, + ...s + }) => { var l; const { field: { @@ -47301,7 +47859,7 @@ error: h, invalid: f } - } = eb({ + } = ub({ name: n, control: t, defaultValue: r, @@ -47326,16 +47884,16 @@ }) }) }, - Bb = ({ - control: e, - name: t, - defaultValue: n, - required: r, - rules: a, - type: i, - inputProps: o, - ...s - }) => { + Xb = ({ + control: e, + name: t, + defaultValue: n, + required: r, + rules: a, + type: i, + inputProps: o, + ...s + }) => { var l; const { field: { @@ -47348,7 +47906,7 @@ error: h, invalid: f } - } = eb({ + } = ub({ name: t, control: e, defaultValue: n, @@ -47377,24 +47935,24 @@ }) }) }, - Gb = () => { + Jb = () => { const [e, t] = (0, Oe.useState)(""); return (0, Oe.useEffect)((() => { setTimeout((() => t("in")), pf.configuration.appLayoutLoaderWipeTrigger) })), (0, hf.jsx)(go, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": e, - children: (0, hf.jsx)(Lh, {}) + children: (0, hf.jsx)(jh, {}) }) }; - var qb = function() { - return qb = Object.assign || function(e) { + var ex = function() { + return ex = Object.assign || function(e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var a in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]); return e - }, qb.apply(this, arguments) + }, ex.apply(this, arguments) }, - $b = function(e, t) { + tx = function(e, t) { var n = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (null != e && "function" === typeof Object.getOwnPropertySymbols) { @@ -47403,141 +47961,141 @@ } return n }, - Wb = Symbol("NiceModalId"), - Hb = {}, - Yb = Oe.createContext(Hb), - Kb = Oe.createContext(null), - Qb = {}, - Zb = {}, - Xb = 0, - Jb = function() { + nx = Symbol("NiceModalId"), + rx = {}, + ax = Oe.createContext(rx), + ix = Oe.createContext(null), + ox = {}, + sx = {}, + lx = 0, + cx = function() { throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?") }, - ex = function() { - return "_nice_modal_" + Xb++ + ux = function() { + return "_nice_modal_" + lx++ }, - tx = function(e, t) { + dx = function(e, t) { var n, r, a; - switch (void 0 === e && (e = Hb), t.type) { + switch (void 0 === e && (e = rx), t.type) { case "nice-modal/show": var i = t.payload, o = i.modalId, s = i.args; - return qb(qb({}, e), ((n = {})[o] = qb(qb({}, e[o]), { + return ex(ex({}, e), ((n = {})[o] = ex(ex({}, e[o]), { id: o, args: s, - visible: !!Zb[o], - delayVisible: !Zb[o] + visible: !!sx[o], + delayVisible: !sx[o] }), n)); case "nice-modal/hide": - return e[o = t.payload.modalId] ? qb(qb({}, e), ((r = {})[o] = qb(qb({}, e[o]), { + return e[o = t.payload.modalId] ? ex(ex({}, e), ((r = {})[o] = ex(ex({}, e[o]), { visible: !1 }), r)) : e; case "nice-modal/remove": o = t.payload.modalId; - var l = qb({}, e); + var l = ex({}, e); return delete l[o], l; case "nice-modal/set-flags": var c = t.payload, u = (o = c.modalId, c.flags); - return qb(qb({}, e), ((a = {})[o] = qb(qb({}, e[o]), u), a)); + return ex(ex({}, e), ((a = {})[o] = ex(ex({}, e[o]), u), a)); default: return e } }; - var nx = {}, - rx = {}, - ax = function(e) { - return "string" === typeof e ? e : (e[Wb] || (e[Wb] = ex()), e[Wb]) + var px = {}, + hx = {}, + fx = function(e) { + return "string" === typeof e ? e : (e[nx] || (e[nx] = ux()), e[nx]) }; - function ix(e, t) { - var n = ax(e); - if ("string" === typeof e || Qb[n] || cx(n, e), Jb(function(e, t) { - return { - type: "nice-modal/show", - payload: { - modalId: e, - args: t - } + function mx(e, t) { + var n = fx(e); + if ("string" === typeof e || ox[n] || _x(n, e), cx(function(e, t) { + return { + type: "nice-modal/show", + payload: { + modalId: e, + args: t } - }(n, t)), !nx[n]) { + } + }(n, t)), !px[n]) { var r, a, i = new Promise((function(e, t) { r = e, a = t })); - nx[n] = { + px[n] = { resolve: r, reject: a, promise: i } } - return nx[n].promise + return px[n].promise } - function ox(e) { - var t = ax(e); - if (Jb(function(e) { - return { - type: "nice-modal/hide", - payload: { - modalId: e - } + function gx(e) { + var t = fx(e); + if (cx(function(e) { + return { + type: "nice-modal/hide", + payload: { + modalId: e } - }(t)), delete nx[t], !rx[t]) { + } + }(t)), delete px[t], !hx[t]) { var n, r, a = new Promise((function(e, t) { n = e, r = t })); - rx[t] = { + hx[t] = { resolve: n, reject: r, promise: a } } - return rx[t].promise + return hx[t].promise } - var sx = function(e) { - var t = ax(e); - Jb(function(e) { + var vx = function(e) { + var t = fx(e); + cx(function(e) { return { type: "nice-modal/remove", payload: { modalId: e } } - }(t)), delete nx[t], delete rx[t] + }(t)), delete px[t], delete hx[t] }; - function lx(e, t) { - var n = (0, Oe.useContext)(Yb), - r = (0, Oe.useContext)(Kb), + function yx(e, t) { + var n = (0, Oe.useContext)(ax), + r = (0, Oe.useContext)(ix), a = null, i = e && "string" !== typeof e; - if (!(a = e ? ax(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); + if (!(a = e ? fx(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); var o = a; (0, Oe.useEffect)((function() { - i && !Qb[o] && cx(o, e, t) + i && !ox[o] && _x(o, e, t) }), [i, o, e, t]); var s = n[o], l = (0, Oe.useCallback)((function(e) { - return ix(o, e) + return mx(o, e) }), [o]), c = (0, Oe.useCallback)((function() { - return ox(o) + return gx(o) }), [o]), u = (0, Oe.useCallback)((function() { - return sx(o) + return vx(o) }), [o]), d = (0, Oe.useCallback)((function(e) { var t; - null === (t = nx[o]) || void 0 === t || t.resolve(e), delete nx[o] + null === (t = px[o]) || void 0 === t || t.resolve(e), delete px[o] }), [o]), p = (0, Oe.useCallback)((function(e) { var t; - null === (t = nx[o]) || void 0 === t || t.reject(e), delete nx[o] + null === (t = px[o]) || void 0 === t || t.reject(e), delete px[o] }), [o]), h = (0, Oe.useCallback)((function(e) { var t; - null === (t = rx[o]) || void 0 === t || t.resolve(e), delete rx[o] + null === (t = hx[o]) || void 0 === t || t.resolve(e), delete hx[o] }), [o]); return (0, Oe.useMemo)((function() { return { @@ -47554,43 +48112,43 @@ } }), [o, null === s || void 0 === s ? void 0 : s.args, null === s || void 0 === s ? void 0 : s.visible, null === s || void 0 === s ? void 0 : s.keepMounted, l, c, u, d, p, h]) } - var cx = function(e, t, n) { - Qb[e] ? Qb[e].props = n : Qb[e] = { + var _x = function(e, t, n) { + ox[e] ? ox[e].props = n : ox[e] = { comp: t, props: n } }, - ux = function() { - var e = (0, Oe.useContext)(Yb), + bx = function() { + var e = (0, Oe.useContext)(ax), t = Object.keys(e).filter((function(t) { return !!e[t] })); t.forEach((function(e) { - Qb[e] || Zb[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") + ox[e] || sx[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") })); var n = t.filter((function(e) { - return Qb[e] + return ox[e] })).map((function(e) { - return qb({ + return ex({ id: e - }, Qb[e]) + }, ox[e]) })); return Oe.createElement(Oe.Fragment, null, n.map((function(e) { - return Oe.createElement(e.comp, qb({ + return Oe.createElement(e.comp, ex({ key: e.id, id: e.id }, e.props)) }))) }, - dx = function(e) { + xx = function(e) { var t = e.children, - n = (0, Oe.useReducer)(tx, Hb), + n = (0, Oe.useReducer)(dx, rx), r = n[0]; - return Jb = n[1], Oe.createElement(Yb.Provider, { + return cx = n[1], Oe.createElement(ax.Provider, { value: r - }, t, Oe.createElement(ux, null)) + }, t, Oe.createElement(bx, null)) }, - px = function(e) { + wx = function(e) { return { visible: e.visible, onOk: function() { @@ -47604,7 +48162,7 @@ } } }, - hx = function(e) { + kx = function(e) { return { visible: e.visible, onClose: function() { @@ -47615,23 +48173,23 @@ } } }, - fx = { + Ex = { Provider: function(e) { var t = e.children, n = e.dispatch, r = e.modals; - return n && r ? (Jb = n, Oe.createElement(Yb.Provider, { + return n && r ? (cx = n, Oe.createElement(ax.Provider, { value: r - }, t, Oe.createElement(ux, null))) : Oe.createElement(dx, null, t) + }, t, Oe.createElement(bx, null))) : Oe.createElement(xx, null, t) }, ModalDef: function(e) { var t = e.id, n = e.component; return (0, Oe.useEffect)((function() { - return cx(t, n), + return _x(t, n), function() { ! function(e) { - delete Qb[e] + delete ox[e] }(t) } }), [t, n]), null @@ -47640,40 +48198,40 @@ var t, n = e.modal, r = e.handler, a = void 0 === r ? {} : r, - i = $b(e, ["modal", "handler"]), + i = tx(e, ["modal", "handler"]), o = (0, Oe.useMemo)((function() { - return ex() + return ux() }), []), - s = "string" === typeof n ? null === (t = Qb[n]) || void 0 === t ? void 0 : t.comp : n; + s = "string" === typeof n ? null === (t = ox[n]) || void 0 === t ? void 0 : t.comp : n; if (!a) throw new Error("No handler found in NiceModal.ModalHolder."); if (!s) throw new Error("No modal found for id: " + n + " in NiceModal.ModalHolder."); return a.show = (0, Oe.useCallback)((function(e) { - return ix(o, e) + return mx(o, e) }), [o]), a.hide = (0, Oe.useCallback)((function() { - return ox(o) - }), [o]), Oe.createElement(s, qb({ + return gx(o) + }), [o]), Oe.createElement(s, ex({ id: o }, i)) }, - NiceModalContext: Yb, + NiceModalContext: ax, create: function(e) { return function(t) { var n, r = t.defaultVisible, a = t.keepMounted, i = t.id, - o = $b(t, ["defaultVisible", "keepMounted", "id"]), - s = lx(i), + o = tx(t, ["defaultVisible", "keepMounted", "id"]), + s = yx(i), l = s.args, c = s.show, - u = (0, Oe.useContext)(Yb), + u = (0, Oe.useContext)(ax), d = !!u[i]; (0, Oe.useEffect)((function() { - return r && c(), Zb[i] = !0, + return r && c(), sx[i] = !0, function() { - delete Zb[i] + delete sx[i] } }), [i, c, r]), (0, Oe.useEffect)((function() { - a && Jb(function(e, t) { + a && cx(function(e, t) { return { type: "nice-modal/set-flags", payload: { @@ -47688,23 +48246,23 @@ var p = null === (n = u[i]) || void 0 === n ? void 0 : n.delayVisible; return (0, Oe.useEffect)((function() { p && c(l) - }), [p, l, c]), d ? Oe.createElement(Kb.Provider, { + }), [p, l, c]), d ? Oe.createElement(ix.Provider, { value: i - }, Oe.createElement(e, qb({}, o, l))) : null + }, Oe.createElement(e, ex({}, o, l))) : null } }, - register: cx, + register: _x, getModal: function(e) { var t; - return null === (t = Qb[e]) || void 0 === t ? void 0 : t.comp + return null === (t = ox[e]) || void 0 === t ? void 0 : t.comp }, - show: ix, - hide: ox, - remove: sx, - useModal: lx, - reducer: tx, - antdModal: px, - antdDrawer: hx, + show: mx, + hide: gx, + remove: vx, + useModal: yx, + reducer: dx, + antdModal: wx, + antdDrawer: kx, muiDialog: function(e) { return { open: e.visible, @@ -47728,15 +48286,15 @@ } } }; - const mx = fx, - gx = mx.create((({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - typeDialog: a - }) => { - const i = lx(), + const Sx = Ex, + Ox = Sx.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: a + }) => { + const i = yx(), { t: o } = xt(["dialog"]), @@ -47761,18 +48319,73 @@ children: t }) })); - mx.register("acknowledgement-dialog", gx); - const vx = mx.create((({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - typeDialog: a, - secondaryCallback: i, - secondaryLabel: o, - disablePrimaryUntilScrolled: s - }) => { - const l = lx(), + Sx.register("acknowledgement-dialog", Ox); + const Px = Sx.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: a, + secondaryCallback: i, + secondaryLabel: o + }) => { + const s = yx(), + { + t: l + } = xt(["dialog"]), + c = [{ + label: null !== o && void 0 !== o ? o : l("dialog_warning_back_launcher", { + ns: "dialog" + }), + close: !1, + onClick: () => { + null === i || void 0 === i || i(), s.resolve({ + resolved: !1 + }), s.hide() + } + }, { + label: null !== r && void 0 !== r ? r : l("dialog_action_confirm", { + ns: "dialog" + }), + type: "submit", + form: "exitAppForm", + close: !1 + }]; + return (0, hf.jsx)(Uc, { + open: s.visible, + onOpenChange: e => s[e ? "show" : "hide"](), + title: e, + type: null !== a && void 0 !== a ? a : "negative", + close: l("dialog_action_close"), + actions: c, + children: (0, hf.jsx)("form", { + id: "exitAppForm", + onSubmit: e => { + e.preventDefault(); + const t = e.target, + r = new FormData(t), + a = Object.fromEntries(r.entries()); + s.resolve({ + resolved: !0, + results: a + }), s.hide(), null === n || void 0 === n || n() + }, + children: t + }) + }) + })); + Sx.register("form-dialog", Px); + const Ix = Sx.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: a, + secondaryCallback: i, + secondaryLabel: o, + disablePrimaryUntilScrolled: s + }) => { + const l = yx(), { t: c } = xt(["dialog"]), @@ -47809,1787 +48422,1821 @@ children: t }) })); - mx.register("warning-confirm-dialog", vx); - const yx = ({ - status: e - }) => { - const { - t: t - } = xt(["gamePage", "status"]), n = e === pf.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { - ns: "gamePage" - }) : t("game_page_status_issue", { - ns: "gamePage" - }); - return (0, hf.jsxs)(nu, { - title: t("status_" + e, { - ns: "status" - }), - status: Tf(e), - children: [n, " ", (0, hf.jsx)(mt, { - i18nKey: "game_page_status_more_information", - ns: "gamePage", - components: [(0, hf.jsx)(Ih, { - external: !0, - href: pf.configuration.statusUrl - })] + Sx.register("warning-confirm-dialog", Ix); + const Ax = ({ + status: e + }) => { + const { + t: t + } = xt(["gamePage", "status"]), n = e === pf.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { + ns: "gamePage" + }) : t("game_page_status_issue", { + ns: "gamePage" + }); + return (0, hf.jsxs)(nu, { + title: t("status_" + e, { + ns: "status" + }), + status: Cf(e), + children: [n, " ", (0, hf.jsx)(mt, { + i18nKey: "game_page_status_more_information", + ns: "gamePage", + components: [(0, hf.jsx)(Ih, { + external: !0, + href: pf.configuration.statusUrl })] - }) - }, - _x = (e, t) => { - const n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - return { - dialog: { - actions: { - showExitAppDialog: e => { - const r = t(); - return mx.show(vx, { - title: xe.t("dialog_warning_exit_app_title", { - ns: "dialog" - }), - content: xe.t(e ? "dialog_warning_exit_app_game_running_text" : "dialog_warning_exit_app_text", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_warning_exit_app_confirm", { - ns: "dialog" - }), - primaryCallback: () => { - r.application.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { - Sf().window.setQuitWindow() - }), n / 2) - } - }) - }, - showLogoutDialog: e => { - const r = t(); - return mx.show(vx, { - title: xe.t("dialog_warning_logout_title", { - ns: "dialog" - }), - content: xe.t(e ? "dialog_warning_logout_game_running_text" : "dialog_warning_logout_text", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_warning_logout_confirm", { - ns: "dialog" - }), - primaryCallback: () => { - r.application.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { - r.authentication.actions.logout() - }), n / 2) - } - }) - }, - showOsRequirementsDialog: () => mx.show(gx, { - title: xe.t("error_os_requirements_title", { - ns: "dialog" - }), - content: (0, hf.jsx)(mt, { - i18nKey: "error_os_requirements_text", - t: xe.t, - ns: "dialog", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.minimumRequirementsUrl, - external: !0 - })] - }) - }), - showCpuRequirementsDialog: () => mx.show(gx, { - title: xe.t("error_cpu_requirements_title", { - ns: "dialog" - }), - content: xe.t("error_cpu_requirements_text", { - ns: "dialog" - }) - }), - showWarningDialogErrorOccured: ({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - secondaryLabel: a, - secondaryCallback: i, - error: o - }) => mx.show(vx, { - title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", { - ns: "dialog" - }), - content: null !== t && void 0 !== t ? t : (0, hf.jsx)(mt, { - i18nKey: "error_generic_content", - t: xe.t, - ns: "errors", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.issueCouncilUrl, - external: !0 - }), (0, hf.jsx)(Ih, { - href: pf.configuration.filesSupportUrl, - external: !0 - })], - values: { - code: null === o || void 0 === o ? void 0 : o.code, - message: null === o || void 0 === o ? void 0 : o.message - } - }), - primaryLabel: null !== r && void 0 !== r ? r : xe.t("dialog_action_ok", { - ns: "dialog" - }), - primaryCallback: () => null === n || void 0 === n ? void 0 : n(), - secondaryLabel: null !== a && void 0 !== a ? a : xe.t("dialog_action_cancel", { - ns: "dialog" - }), - secondaryCallback: () => null === i || void 0 === i ? void 0 : i() - }), - showAcknowledgeDialogErrorOccured: ({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - error: a - }) => mx.show(gx, { - title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", { - ns: "errors" - }), - content: null !== t && void 0 !== t ? t : (0, hf.jsx)(mt, { - i18nKey: "error_generic_content", - t: xe.t, - ns: "errors", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.issueCouncilUrl, - external: !0 - }), (0, hf.jsx)(Ih, { - href: pf.configuration.filesSupportUrl, - external: !0 - })], - values: { - code: null === a || void 0 === a ? void 0 : a.code - } - }), - primaryCallback: () => null === n || void 0 === n ? void 0 : n(), - primaryLabel: null !== r && void 0 !== r ? r : void 0 - }), - showErrorLaunchGameFailed: e => { - const { - installer: n, - library: r - } = t(); - return mx.show(vx, { - title: xe.t("error_launch_game_title", { - game: e.gameName, - ns: "errors" - }), - content: xe.t("error_launch_game_content", { - ns: "errors" - }), - secondaryLabel: xe.t("dialog_action_verify", { - ns: "dialog" - }), - secondaryCallback: async () => { - n.actions.addInstallationToQueue(e, pf.InstallationType.VERIFY) - }, - primaryLabel: xe.t("dialog_action_relaunch", { - ns: "dialog" - }), - primaryCallback: () => { - r.actions.launchGame(e) - } - }) - }, - showWarningsDialog: (e, t) => mx.show(vx, { - title: e, - typeDialog: "positive", - content: xf(t), - secondaryLabel: xe.t("dialog_action_close", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_action_acknowledge", { - ns: "dialog" - }) - }), - showAgreementsDialog: (e, t, n) => mx.show(vx, { - title: e, - typeDialog: "positive", - content: xf(`

${t}

${n}`), - secondaryLabel: xe.t("dialog_action_decline", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_action_accept", { - ns: "dialog" - }), - disablePrimaryUntilScrolled: !0 - }), - showResetSettingsDialog: e => { - const n = t(); - return mx.show(vx, { - title: xe.t("dialog_settings_reset_title", { - ns: "dialog" - }), - content: xe.t("dialog_settings_reset_content", { - ns: "dialog" - }), - secondaryLabel: xe.t("dialog_action_cancel", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_settings_reset_button", { - ns: "dialog" - }), - primaryCallback: () => { - n.settings.actions.resetChannelGameSettings(e) - } - }) - }, - showGameNotInstalledDialog: e => { - const n = t(); - return mx.show(vx, { - title: xe.t("dialog_settings_game_not_installed_title", { - ns: "dialog" - }), - content: xe.t("dialog_settings_game_not_installed_content", { - ns: "dialog" - }), - secondaryLabel: xe.t("dialog_action_cancel", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_action_install", { - ns: "dialog" - }), - primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL) - } - }) - }, - showGameStartInstallationDialog: async e => { - const r = t(); - return mx.show(vx, { - typeDialog: "default", - title: xe.t("dialog_start_installation_title", { - ns: "dialog", - game: e.gameName, - channel: e.channelName - }), - content: (0, hf.jsxs)(uo, { - role: "group", - gap: "100", - vertical: !0, - children: [(0, hf.jsxs)(uo, { - role: "group", - gap: "0", - vertical: !0, - children: [(0, hf.jsx)("p", { - children: xe.t("dialog_start_installation_content_location", { - ns: "dialog" - }) - }), (0, hf.jsxs)("p", { - children: [(0, hf.jsx)("span", { - className: "sol-u-color-foreground", - children: Pf(r.settings.library.defaultLibraryFolder) - }), e.gameName, "\\", e.channelId] - })] - }), (0, hf.jsx)("p", { - children: xe.t("dialog_start_installation_content_location_settings", { - ns: "dialog" - }) - })] - }), - secondaryLabel: xe.t("dialog_start_installation_action_go_to_settings", { - ns: "dialog" - }), - secondaryCallback: () => { - const t = Ng(`/${uk.SETTINGS}/${uk.SETTINGS_GAMES}`, { - gameId: e.gameId, - channelId: e.channelId - }); - r.application.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { - window.location.hash = t - }), n / 2) - }, - primaryLabel: xe.t("dialog_start_installation_action_install", { - ns: "dialog" - }), - primaryCallback: () => { - r.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL) - } - }) - }, - showGameCancelInstallationDialog: e => { - const n = t(); - return mx.show(vx, { - title: xe.t("dialog_cancel_installation_title", { - ns: "dialog" - }), - content: (0, hf.jsxs)(uo, { - role: "group", - gap: "100", - vertical: !0, - children: [(0, hf.jsx)("p", { - children: xe.t("dialog_cancel_installation_content", { - ns: "dialog", - info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` - }) - }), e.type === pf.InstallationType.INSTALL && (0, hf.jsx)(Nc, { - type: "checkbox", - onChange: t => n.installer.actions.setInstallationOptions(e.game, { - keepFilesOnCancel: t.target.checked - }), - children: xe.t("dialog_cancel_installation_content_keep_files_downloaded", { - ns: "dialog" - }) - })] - }), - secondaryLabel: xe.t("dialog_action_discard", { - ns: "dialog" - }), - primaryLabel: xe.t("dialog_action_cancel_download", { - ns: "dialog" - }), - secondaryCallback: () => { - n.application.actions.setDownloadPopoverOpened(!0) - }, - primaryCallback: () => { - n.application.actions.setDownloadPopoverOpened(!0), n.installer.actions.removeInstallation(e.game) - } - }) - } - } - } - } - }, - bx = (e, t) => { - let n = { - ...t, - speed: e.info.speed > 0 ? c_().format(e.info.speed, { - decimalPlaces: 1 - }) : "0" + })] + }) + }; + class Rx extends Error {} + const Cx = async () => { + const e = Pw.getState().library, + t = Pw.getState().user, + n = e.channelSelected.platformId, + r = e.channelSelected.gameId; + if (!t.identity || !t.identity.username || !t.identity.heapAccountId) throw new Error("Identification of the user cannot be retrieved"); + const a = await t.actions.getSession(n), + i = await ey.fetchQuery(((e, t, n) => ({ + queryKey: [`gameToken-${e}-${t}-${n.value}`], + queryFn: async () => qm.games.getGameToken(e, t, n) + }))(n, r, a)); + return { + username: t.identity.username, + heapAccountId: t.identity.heapAccountId, + sessionToken: a, + gameToken: i + } + }, Tx = (e, t, n) => { + const r = e.find((({ + id: e + }) => e === t.gameId)), + a = null === r || void 0 === r ? void 0 : r.channels.find((({ + id: e + }) => e === t.channelId)); + if (!r || !a) return e; + const i = r.channels.filter((e => e.id !== t.channelId)), + o = { + ...r, + channels: [...i, { + ...a, + status: n + }] }; - switch (e.phase) { - case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: - n = { - ...n, - currentPhase: wt.t("download_update_manifest", { - ns: "download" - }) - }; - break; - case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { - const t = e.info.total > 0 && e.info.total < 107374182400; - n = { - ...n, - currentPhase: wt.t("download_manifest", { - ns: "download" - }), - showProgress: !0, - downloaded: t ? e.info.downloaded : 0, - total: t ? e.info.total : 0, - percentage: t ? e.info.downloaded / e.info.total * 100 : 0 - } - } - break; - case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: - n = { - ...n, - currentPhase: wt.t("downloaded_update_manifest", { - ns: "download" - }) - }; - break; - case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: - n = { - ...n, - currentPhase: wt.t("download_analysing_install", { - ns: "download" - }) - }; - break; - case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: - case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: - n = { - ...n, - isPausable: !1 - }; - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: - n = { - ...n, - isPausable: !1, - showProgress: !1, - progressUndeterminate: !0, - percentage: 4.48, - currentPhase: wt.t("download_checking_files", { - ns: "download" - }) - }; - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: - n = { - ...n, - isPausable: !1, - showProgress: !1, - progressUndeterminate: !1 - }; - break; - case pf.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { - const t = e.info.total > 0 && e.info.total < 107374182400; - n = { - ...n, - isPausable: !0, - showProgress: !0, - currentPhase: wt.t("download_base_pack", { - ns: "download" - }), - downloaded: t ? e.info.downloaded : 0, - total: t ? e.info.total : 0, - percentage: t ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: 0, - filesTotal: 1 - } - } - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { - const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; - n = { - ...n, - showProgress: !0, - currentPhase: wt.t("download_updating_game_files", { - ns: "download" - }), - downloaded: r ? e.info.downloaded : 0, - total: r ? e.info.total : 0, - percentage: r ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: r ? e.info.filesDone : 0, - filesTotal: r ? e.info.filesTotal : 0, - isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) - } - } - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: - n = { - ...n, - isPausable: !1 - }; - break; - case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { - const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; - n = { - ...n, - showProgress: !0, - currentPhase: wt.t("download_updating_game_content", { - ns: "download" - }), - downloaded: r ? e.info.downloaded : 0, - total: r ? e.info.total : 0, - percentage: r ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: r ? e.info.filesDone : 0, - filesTotal: r ? e.info.filesTotal : 0, - isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) - } - } - } - return n - }, - xx = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), - wx = e => e.find((e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED || e.status === pf.InstallationStatus.CANCELLING)), - kx = e => e.find((e => e.status === pf.InstallationStatus.CANCELLING)), - Ex = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, - Sx = (e, t) => e.filter((e => !Ex(e.game, t))), - Ox = async (e, t) => { - var n, r; - const { - application: a, - agreements: i, - library: o - } = ww.getState(), s = await a.actions.isMinimumWindowsVersion(), l = await a.actions.isRespectingCPUCapabilites(); - if (!s || !l) return !1; - if (!await i.actions.checkAgreements()) return !1; - const c = null !== (n = o.availableGames.find((({ - id: t - }) => t === e))) && void 0 !== n ? n : null, - u = null !== (r = null === c || void 0 === c ? void 0 : c.channels.find((({ - id: e - }) => e === t))) && void 0 !== r ? r : null; - return !(!u || !c) - }, Px = (e, t, n) => e.map((e => Ex(e.game, t) ? { - ...e, - status: n - } : e)), Ix = async () => { - const e = ww.getState().library, - t = ww.getState().user, - n = e.channelSelected.platformId, - r = e.channelSelected.gameId; - if (!t.identity || !t.identity.username || !t.identity.heapAccountId) throw new Error("Identification of the user cannot be retrieved"); - const a = await t.actions.getSession(n), - i = await Bv.fetchQuery(((e, t, n) => ({ - queryKey: [`gameToken-${e}-${t}-${n.value}`], - queryFn: async () => qm.games.getGameToken(e, t, n) - }))(n, r, a)); - return { - username: t.identity.username, - heapAccountId: t.identity.heapAccountId, - sessionToken: a, - gameToken: i - } - }, Ax = (e, t, n) => { - const r = e.find((({ - id: e - }) => e === t.gameId)), - a = null === r || void 0 === r ? void 0 : r.channels.find((({ - id: e - }) => e === t.channelId)); - if (!r || !a) return e; - const i = r.channels.filter((e => e.id !== t.channelId)), - o = { - ...r, - channels: [...i, { - ...a, - status: n - }] - }; - return [...e.filter((e => e.id !== t.gameId)), o] - }, Cx = async e => { - try { - var t, n, r, a, i, o, s; - const l = ww.getState().settings, - { - gameId: c, - channelId: u, - gameName: d, - channelName: p, - platformId: h - } = e, - f = await Bv.fetchQuery(((e, t) => ({ - queryKey: ["games", e, t], - queryFn: async () => qm.games.getRelease({ - gameId: e, - channelId: t - }) - }))(c, u)), - m = await l.actions.getChannelGameSettings({ - platformId: h, - gameId: c, - gameName: d, - channelId: u, - channelName: p - }); - return { - ...f, + return [...e.filter((e => e.id !== t.gameId)), o] + }, Dx = async e => { + try { + var t, n, r, a, i, o, s; + const l = Pw.getState().settings, + { + gameId: c, + channelId: u, + gameName: d, + channelName: p, + platformId: h + } = e, + f = await ey.fetchQuery(og(c, u)), + m = await l.actions.getChannelGameSettings({ + platformId: h, gameId: c, gameName: d, channelId: u, - channelName: p, - platformId: h, - hostname: null !== (t = f.universeHost) && void 0 !== t ? t : "", - port: null !== (n = f.universePort) && void 0 !== n ? n : 8e3, - servicesEndpoint: null !== (r = null === m || void 0 === m ? void 0 : m.servicesEndpoint) && void 0 !== r ? r : f.servicesEndpoint, - network: null !== (a = null === m || void 0 === m ? void 0 : m.network) && void 0 !== a ? a : f.network, - executable: null !== (i = null === m || void 0 === m ? void 0 : m.executable) && void 0 !== i ? i : f.executable, - launchOptions: null !== (o = null === m || void 0 === m ? void 0 : m.launchOptions) && void 0 !== o ? o : f.launchOptions, - eacSandbox: !1, - installDir: null !== (s = null === m || void 0 === m ? void 0 : m.installDir) && void 0 !== s ? s : f.installDir, - libraryFolder: l.library.defaultLibraryFolder - } - } catch (l) { - throw new Error("We could not get any information about the game") + channelName: p + }); + return { + ...f, + gameId: c, + gameName: d, + channelId: u, + channelName: p, + platformId: h, + hostname: null !== (t = f.universeHost) && void 0 !== t ? t : "", + port: null !== (n = f.universePort) && void 0 !== n ? n : 8e3, + servicesEndpoint: null !== (r = null === m || void 0 === m ? void 0 : m.servicesEndpoint) && void 0 !== r ? r : f.servicesEndpoint, + network: null !== (a = null === m || void 0 === m ? void 0 : m.network) && void 0 !== a ? a : f.network, + executable: null !== (i = null === m || void 0 === m ? void 0 : m.executable) && void 0 !== i ? i : f.executable, + launchOptions: null !== (o = null === m || void 0 === m ? void 0 : m.launchOptions) && void 0 !== o ? o : f.launchOptions, + eacSandbox: !1, + installDir: null !== (s = null === m || void 0 === m ? void 0 : m.installDir) && void 0 !== s ? s : f.installDir, + libraryFolder: l.library.defaultLibraryFolder } - }, Tx = { - LIVE: 20, - PTU: 19, - SHADOW: 18, - QA: 17, - DEV: 16, - EPTU: 15, - KOSMODROM: 14, - CANAVERAL: 13, - THE_OCHO: 12, - STARBASE: 11, - SQ42: 10 - }, Rx = (e, t) => (Tx[t] || 0) - (Tx[e] || 0), Dx = "LIVE", Nx = { - platformId: "prod", - gameId: "SC", - gameName: "Star Citizen", - channelId: Dx, - channelName: "Live Release" - }, jx = (e = [], t = []) => ({ - availableGames: t, - installedGames: e, - gameSelected: Nx.gameId, - channelSelected: Nx - }), Lx = (e, t) => ({ - library: { - ...jx(), - actions: { - initializeLibrary: async () => { - const t = await window.launcherAPI.store.getValueFromStore("library.installed"); - e((e => ({ - library: { - ...e.library, - ...jx(t, e.library.availableGames) - } - }))) - }, - setAvailableGames: t => { - var n; - const r = null !== (n = pf.configuration.gameAssets) && void 0 !== n ? n : [], - a = pf.configuration.assetsDirectory; - e((e => ({ - library: { - ...e.library, - availableGames: t.map((e => { - const t = r.find((t => t.id === e.id)); - return { - ...e, - logo: a + (null === t || void 0 === t ? void 0 : t.logo), - logoWide: a + (null === t || void 0 === t ? void 0 : t.logoWide), - logoAnimation: a + (null === t || void 0 === t ? void 0 : t.logoAnimation), - bgImage: a + (null === t || void 0 === t ? void 0 : t.bgImage), - bgVideo: a + (null === t || void 0 === t ? void 0 : t.bgVideo) - } - })) - } - }))) - }, - setGameSelected: t => e((e => ({ + } catch (l) { + throw new Rx("We could not get any information about the game") + } + }, Nx = (e, t) => t > e, Lx = { + LIVE: 20, + PTU: 19, + SHADOW: 18, + QA: 17, + DEV: 16, + EPTU: 15, + KOSMODROM: 14, + CANAVERAL: 13, + THE_OCHO: 12, + STARBASE: 11, + SQ42: 10 + }, jx = (e, t) => (Lx[t] || 0) - (Lx[e] || 0), Mx = "LIVE", zx = { + platformId: "prod", + gameId: "SC", + gameName: "Star Citizen", + channelId: Mx, + channelName: "Live Release" + }, Fx = (e = [], t = []) => ({ + availableGames: t, + installedGames: e, + gameSelected: zx.gameId, + channelSelected: zx + }), Ux = (e, t) => ({ + library: { + ...Fx(), + actions: { + initializeLibrary: async () => { + const t = await window.launcherAPI.store.getValueFromStore("library.installed"); + e((e => ({ library: { ...e.library, - gameSelected: t + ...Fx(t, e.library.availableGames) } - }))), - setGameChannelSelected: async t => { - e((e => ({ - library: { - ...e.library, - channelSelected: t - } - }))); - const n = await Cx(t), - r = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); - window.launcherAPI.store.setValueToStore("library.defaults", [...r, t]); - const a = { - gameId: t.gameId, - channelId: t.channelId, - libraryFolder: n.libraryFolder, - installDir: n.installDir - }; - window.launcherAPI.game.initializedWatcher(a) - }, - getAvailableChannelsSorted: e => { - var n; - const { - availableGames: r - } = t().library, a = r.find((t => t.id === e)); - return (null !== (n = null === a || void 0 === a ? void 0 : a.channels) && void 0 !== n ? n : []).sort(((e, t) => Rx(e.id, t.id))) - }, - getInstalledChannelsSorted: e => { - var n; - const { - installedGames: r - } = t().library, a = r.find((t => t.id === e)); - return (null !== (n = null === a || void 0 === a ? void 0 : a.channels) && void 0 !== n ? n : []).sort(((e, t) => Rx(e.id, t.id))) - }, - getAvailableGamesChannelsWeightSorted: () => { - const { - availableGames: e - } = t().library; - return e.map((e => ({ - ...e, - channels: e.channels.sort(((e, t) => Rx(e.id, t.id))) - }))) - }, - getAvailableChannel: e => { - const { - actions: n - } = t().library; - return n.getAvailableChannelsSorted(e.gameId).find((t => t.id === e.channelId)) - }, - getInstalledChannel: e => { - const { - actions: n - } = t().library; - return n.getInstalledChannelsSorted(e.gameId).find((t => t.id === e.channelId)) - }, - getChannels: e => t().library.actions.getAvailableChannelsSorted(e).map((e => ({ - label: e.id, - description: e.versionLabel, - value: e.id - }))), - addInstalledGameChannel: async n => { - var r, a, i; - const { - library: o - } = t(); - let s = {}; - const l = null !== (r = o.availableGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== r ? r : null, - c = null === l || void 0 === l ? void 0 : l.channels.find((({ - id: e, - platformId: t - }) => e === n.channelId && t === n.platformId)); - if (!c || !l) return; - const u = null !== (a = o.installedGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== a ? a : null, - d = null !== (i = null === u || void 0 === u ? void 0 : u.channels.find((({ - id: e, - platformId: t - }) => e === n.channelId && n.platformId === t))) && void 0 !== i ? i : null; - s = u ? { - ...u, - channels: [...u.channels, { - ...d || c, - status: pf.GameChannelStatus.AVAILABLE - }] - } : { - id: n.gameId, - name: n.gameName, - channels: [{ - ...c, - status: pf.GameChannelStatus.AVAILABLE - }] - }; - const p = [...o.installedGames.filter((e => e.id !== n.gameId)), s]; - e((e => ({ - library: { - ...e.library, - installedGames: p - } - }))) - }, - saveInstalledGameChannel: async n => { - const { - library: r - } = t(), a = Ax(r.installedGames, n, pf.GameChannelStatus.INSTALLED); - e((e => ({ - library: { - ...e.library, - installedGames: a - } - }))), window.launcherAPI.store.setValueToStore("library.installed", a) - }, - launchGame: async e => { - const { - library: n, - soundSystem: r, - dialog: a - } = t(); - try { - if (await window.launcherAPI.game.isGameProcessRunning()) return void await t().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: wt.t("error_launch_game_running_title", { - ns: "errors" - }), - content: wt.t("error_launch_game_running_content", { - ns: "errors" - }) - }); - if (!await Ox(e.gameId, e.channelId)) return; - const a = await Ix(); - await n.actions.checkForGameChannelUpdates(); - const o = n.actions.getAvailableChannel(e); - if (!Of(n.channelSelected.gameId, n.availableGames) || !o || o.status === pf.GameChannelStatus.UPDATE_AVAILABLE) return; - if (a && a.gameToken && a.sessionToken) { - var i; - const t = Sf(), - n = await Cx(e), - o = { - ...n, - libraryFolder: n.libraryFolder, - network: {}, - nickname: null !== (i = a.username) && void 0 !== i ? i : "", - token: a.sessionToken.value, - authToken: a.gameToken.token - }; - r.actions.changeVolume(0), t.window.setMinimizeWindow(), t.game.launchGame(o) - } - } catch (o) { - if (window.launcherAPI.log.error(`Not able to launch the game : ${o}`), o instanceof cm) throw console.error("[Launch Claims] - expired token error", o), o; - if (o instanceof hm) return void await a.actions.showAcknowledgeDialogErrorOccured({ - title: wt.t("error_launch_account_not_found_title", { - ns: "errors" - }), - content: (0, hf.jsx)(mt, { - i18nKey: "error_launch_account_not_found_content", - t: wt.t, - ns: "errors", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.copyPTUAccountSupportUrl, - external: !0 - })], - values: { - code: 8005 - } - }) - }); - await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: wt.t("error_api_platform_auth_title", { - ns: "errors" - }), - content: wt.t("error_api_platform_auth_content", { - ns: "errors", - id: e.platformId, - error: o - }) - }) + }))) + }, + setAvailableGames: t => { + var n; + const r = null !== (n = pf.configuration.gameAssets) && void 0 !== n ? n : [], + a = pf.configuration.assetsDirectory; + e((e => ({ + library: { + ...e.library, + availableGames: t.map((e => { + const t = r.find((t => t.id === e.id)); + return { + ...e, + logo: a + (null === t || void 0 === t ? void 0 : t.logo), + logoWide: a + (null === t || void 0 === t ? void 0 : t.logoWide), + logoAnimation: a + (null === t || void 0 === t ? void 0 : t.logoAnimation), + bgImage: a + (null === t || void 0 === t ? void 0 : t.bgImage), + bgVideo: a + (null === t || void 0 === t ? void 0 : t.bgVideo) + } + })) } - }, - setLaunchGameSuccessfull(t) { - e((e => ({ - agreements: { - ...e.agreements, - warningHasBeenAccepted: !1 - }, - application: { - ...e.application, - isGameRunning: t.isGameRunning - }, - library: { - ...e.library, - installedGames: Ax(e.library.installedGames, t, pf.GameChannelStatus.RUNNING) - } - }))) - }, - setLaunchGameFailed(n, r) { - const { - dialog: a - } = t(); - e((e => ({ - application: { - ...e.application, - isGameRunning: !1 - }, - library: { - ...e.library, - installedGames: Ax(e.library.installedGames, r, pf.GameChannelStatus.INSTALLED) - } - }))), window.launcherAPI.window.setRestoreWindow(), a.actions.showErrorLaunchGameFailed(r), window.launcherAPI.log.error(`Not able to launch the game : ${n}`) - }, - async setLaunchGameStopped(t) { - e((e => ({ - application: { - ...e.application, - isGameRunning: !1 - }, - library: { - ...e.library, - installedGames: Ax(e.library.installedGames, t, pf.GameChannelStatus.INSTALLED) - } - }))); - const n = await Cx(t), - r = { - gameId: t.gameId, - channelId: t.channelId, - installDir: null === n || void 0 === n ? void 0 : n.installDir, - libraryFolder: null === n || void 0 === n ? void 0 : n.libraryFolder - }; - window.launcherAPI.window.setRestoreWindow(), window.launcherAPI.game.initializedWatcher(r) - }, - checkForGameChannelUpdates: async () => { - try { - const { - library: n - } = t(), r = await Bv.fetchQuery(Km()), a = e => e.channels.map((t => { - const n = null === r || void 0 === r ? void 0 : r.find((({ - id: t - }) => t === e.id)), - a = null === n || void 0 === n ? void 0 : n.channels.find((({ - id: e - }) => e === t.id)); - return a && a.version > t.version ? { - ...t, - versionLabel: a.versionLabel, - version: a.version, - status: pf.GameChannelStatus.UPDATE_AVAILABLE - } : t - })), i = n.installedGames.map((e => ({ - ...e, - channels: a(e) - }))); - e((e => ({ + }))) + }, + setGameSelected: t => e((e => ({ + library: { + ...e.library, + gameSelected: t + } + }))), + setGameChannelSelected: async t => { + e((e => ({ + library: { + ...e.library, + channelSelected: t + } + }))); + const n = await Dx(t), + r = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); + window.launcherAPI.store.setValueToStore("library.defaults", [...r, t]); + const a = { + gameId: t.gameId, + channelId: t.channelId, + libraryFolder: n.libraryFolder, + installDir: n.installDir + }; + window.launcherAPI.game.initializedWatcher(a) + }, + getAvailableChannelsSorted: e => { + var n; + const { + availableGames: r + } = t().library, a = r.find((t => t.id === e)); + return (null !== (n = null === a || void 0 === a ? void 0 : a.channels) && void 0 !== n ? n : []).sort(((e, t) => jx(e.id, t.id))) + }, + getInstalledChannelsSorted: e => { + var n; + const { + installedGames: r + } = t().library, a = r.find((t => t.id === e)); + return (null !== (n = null === a || void 0 === a ? void 0 : a.channels) && void 0 !== n ? n : []).sort(((e, t) => jx(e.id, t.id))) + }, + getAvailableGamesChannelsWeightSorted: () => { + const { + availableGames: e + } = t().library; + return e.map((e => ({ + ...e, + channels: e.channels.sort(((e, t) => jx(e.id, t.id))) + }))) + }, + getAvailableChannel: e => { + const { + actions: n + } = t().library; + return n.getAvailableChannelsSorted(e.gameId).find((t => t.id === e.channelId)) + }, + getInstalledChannel: e => { + const { + actions: n + } = t().library; + return n.getInstalledChannelsSorted(e.gameId).find((t => t.id === e.channelId)) + }, + getChannels: e => t().library.actions.getAvailableChannelsSorted(e).map((e => ({ + label: e.id, + description: e.versionLabel, + value: e.id + }))), + addInstalledGameChannel: async n => { + var r, a, i, o; + const { + library: s + } = t(), l = null !== (r = s.availableGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== r ? r : null, c = null === l || void 0 === l ? void 0 : l.channels.find((({ + id: e, + platformId: t + }) => e === n.channelId && t === n.platformId)); + if (!c || !l) return; + const u = null !== (a = s.installedGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== a ? a : null, + d = null !== (i = null === u || void 0 === u ? void 0 : u.channels.find((({ + id: e + }) => e === n.channelId))) && void 0 !== i ? i : null; + if (d) return; + const p = { + ...null !== u && void 0 !== u ? u : l, + channels: [...null !== (o = null === u || void 0 === u ? void 0 : u.channels) && void 0 !== o ? o : [], { + ...c, + status: pf.GameChannelStatus.AVAILABLE + }] + }; + e((e => ({ + library: { + ...e.library, + installedGames: [...e.library.installedGames.filter((e => e.id !== p.id)), p] + } + }))) + }, + saveInstalledGameChannel: async n => { + const { + library: r + } = t(), a = Tx(r.installedGames, n, pf.GameChannelStatus.INSTALLED); + e((e => ({ + library: { + ...e.library, + installedGames: a + } + }))), window.launcherAPI.store.setValueToStore("library.installed", a) + }, + launchGame: async n => { + const { + library: r, + soundSystem: a, + dialog: i + } = t(), o = r.actions.getInstalledChannel(n); + if (!Of(r.channelSelected.gameId, r.availableGames) || !o) return; + if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: wt.t("error_launch_game_running_title", { + ns: "errors" + }), + content: wt.t("error_launch_game_running_content", { + ns: "errors" + }) + }); + else try { + var s; + const t = await Dx(n); + if (Nx(o.version, t.version)) { + const t = Tx(r.installedGames, n, pf.GameChannelStatus.UPDATE_AVAILABLE); + return e((e => ({ library: { ...e.library, - installedGames: i + installedGames: t } - }))); - const o = n.installedGames.map((e => ({ - ...e, - channels: a(e).map((e => ({ - ...e, - status: e.status === pf.GameChannelStatus.RUNNING ? pf.GameChannelStatus.INSTALLED : e.status - }))) - }))); - window.launcherAPI.store.setValueToStore("library.installed", o) - } catch (n) { - console.error(n) + }))), window.launcherAPI.store.setValueToStore("library.installed", t), void await i.actions.showGameChannelUpdateAvailableDialog(n) } + if (!await rg(n.gameId, n.channelId)) return; + const l = await Cx(), + c = Sf(), + u = { + ...t, + libraryFolder: t.libraryFolder, + network: {}, + nickname: null !== (s = l.username) && void 0 !== s ? s : "", + token: l.sessionToken.value, + authToken: l.gameToken.token + }; + a.actions.mute(), c.window.setMinimizeWindow(), c.game.launchGame(u) + } catch (l) { + if (window.launcherAPI.log.error(`Not able to launch the game : ${l}`), l instanceof cm) throw console.error("[Launch Claims] - expired token error", l), l; + if (l instanceof hm) return void await i.actions.showAcknowledgeDialogErrorOccured({ + title: wt.t("error_launch_account_not_found_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_launch_account_not_found_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.copyPTUAccountSupportUrl, + external: !0 + })], + values: { + code: 8005 + } + }) + }); + if (l instanceof Rx) return void await i.actions.showAcknowledgeDialogErrorOccured({ + title: wt.t("error_launch_check_update_unavailable_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_launch_check_update_unavailable_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: 6004 + } + }) + }); + await Pw.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: wt.t("error_launch_unknown_title"), + content: wt.t("error_launch_unknown_content", { + code: "6001" + }) + }) + } + }, + setLaunchGameSuccessfull(t) { + e((e => ({ + agreements: { + ...e.agreements, + warningHasBeenAccepted: !1 + }, + application: { + ...e.application, + isGameRunning: t.isGameRunning + }, + library: { + ...e.library, + installedGames: Tx(e.library.installedGames, t, pf.GameChannelStatus.RUNNING) + } + }))) + }, + async setLaunchGameFailed(n) { + const { + soundSystem: r + } = t(), { + payload: a + } = n, i = { + gameId: a.gameId, + channelId: a.channelId, + platformId: a.platformId, + gameName: a.gameName, + channelName: a.channelName + }; + e((e => ({ + application: { + ...e.application, + isGameRunning: !1 + }, + library: { + ...e.library, + installedGames: Tx(e.library.installedGames, i, pf.GameChannelStatus.INSTALLED) + } + }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(); + const o = (0, pf.serializerLaunchErrors)(n); + await Hm((e => { + const t = Pw.getState().installer, + { + gameId: n, + platformId: r, + channelId: a, + gameName: i, + channelName: o + } = e.payload, + s = { + gameId: n, + platformId: r, + channelId: a, + gameName: i, + channelName: o + }; + switch (!0) { + case e instanceof pf.NoGameFilesError: + return { + handler: { + type: Wm.DISPLAY_WARNING_DIALOG, + args: { + title: wt.t("error_launch_no_game_files_title", { + ns: "errors" + }), + content: wt.t("error_launch_no_game_files_content", { + code: e.code, + ns: "errors" + }), + primaryCallback: async () => { + t.actions.addInstallationToQueue(s, pf.InstallationType.VERIFY) + }, + primaryLabel: wt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + case e instanceof pf.EACError: + return { + handler: { + type: Wm.DISPLAY_WARNING_DIALOG, + args: { + title: wt.t("error_launch_EAC_title", { + ns: "errors" + }), + content: wt.t("error_launch_EAC_content", { + code: e.code, + ns: "errors" + }), + primaryCallback: async () => { + t.actions.addInstallationToQueue(s, pf.InstallationType.VERIFY) + }, + primaryLabel: wt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + default: + return { + handler: { + type: Wm.DISPLAY_WARNING_DIALOG, + args: { + title: wt.t("error_launch_unknown_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_launch_unknown_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + }), (0, hf.jsx)("br", {})], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } + }), + primaryCallback: async () => { + t.actions.addInstallationToQueue(s, pf.InstallationType.VERIFY) + }, + primaryLabel: wt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + } + } + })(o)) + }, + async setLaunchGameStopped(n) { + const { + soundSystem: r + } = t(); + e((e => ({ + application: { + ...e.application, + isGameRunning: !1 + }, + library: { + ...e.library, + installedGames: Tx(e.library.installedGames, n, pf.GameChannelStatus.INSTALLED) + } + }))); + const a = await Dx(n), + i = { + gameId: n.gameId, + channelId: n.channelId, + installDir: null === a || void 0 === a ? void 0 : a.installDir, + libraryFolder: null === a || void 0 === a ? void 0 : a.libraryFolder + }; + r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(), window.launcherAPI.game.initializedWatcher(i) + }, + checkForGameChannelUpdates: async () => { + try { + const { + library: n + } = t(), r = await ey.fetchQuery(ig()), a = e => e.channels.map((t => { + const n = null === r || void 0 === r ? void 0 : r.find((({ + id: t + }) => t === e.id)), + a = null === n || void 0 === n ? void 0 : n.channels.find((({ + id: e + }) => e === t.id)); + return a && Nx(t.version, a.version) ? { + ...t, + versionLabel: a.versionLabel, + version: a.version, + status: pf.GameChannelStatus.UPDATE_AVAILABLE + } : t + })), i = n.installedGames.map((e => ({ + ...e, + channels: a(e) + }))); + e((e => ({ + library: { + ...e.library, + installedGames: i + } + }))); + const o = n.installedGames.map((e => ({ + ...e, + channels: a(e).map((e => ({ + ...e, + status: e.status === pf.GameChannelStatus.RUNNING ? pf.GameChannelStatus.INSTALLED : e.status + }))) + }))); + window.launcherAPI.store.setValueToStore("library.installed", o) + } catch (n) { + throw new Rx } } } - }), Mx = (e, t) => ({ - installer: { - installations: [], - requirementsValidated: !1, + } + }), Vx = (e, t) => { + const n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + return { + dialog: { actions: { - initializeInstaller: () => {}, - resetInstaller: () => { - e((e => ({ - installer: { - ...e.installer, - installations: [], - requirementsValidated: !1 + showExitAppDialog: e => Sx.show(Px, { + title: xe.t("dialog_warning_exit_app_title", { + ns: "dialog" + }), + content: (0, hf.jsx)(Dc, { + description: xe.t(e ? "dialog_warning_exit_app_game_running_text" : "dialog_warning_exit_app_text", { + ns: "dialog" + }), + gap: "100", + children: (0, hf.jsx)(Nc, { + name: "hideDialog", + value: "checked", + children: (0, hf.jsx)(mt, { + i18nKey: "dialog_warning_exit_app_checkbox", + t: xe.t, + ns: "dialog" + }) + }) + }), + primaryLabel: xe.t("dialog_warning_exit_app_confirm", { + ns: "dialog" + }), + primaryCallback: () => { + t().application.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { + Sf().window.setQuitWindow() + }), n / 2) + } + }), + showLogoutDialog: e => { + const r = t(); + return Sx.show(Ix, { + title: xe.t("dialog_warning_logout_title", { + ns: "dialog" + }), + content: xe.t(e ? "dialog_warning_logout_game_running_text" : "dialog_warning_logout_text", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_warning_logout_confirm", { + ns: "dialog" + }), + primaryCallback: () => { + r.application.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { + r.authentication.actions.logout() + }), n / 2) } - }))) - }, - addInstallationToQueue: (n, r) => { - const { - installer: a, - application: i - } = t(); - xx(a.installations, n) || (e((e => ({ - installer: { - ...e.installer, - installations: [...e.installer.installations, { - game: n, - status: pf.InstallationStatus.WAITING, - type: r - }] - } - }))), i.actions.setDownloadPopoverOpened(!0), a.actions.processInstallationQueue()) - }, - processInstallationQueue: async () => { - const { - installer: e - } = t(); - if (wx(e.installations)) return void console.info("Noting to process in queue since there is already an installation in progress"); - const n = e.installations.filter((e => e.status === pf.InstallationStatus.WAITING)); - if (0 === n.length) return; - const r = n[0]; - await e.actions.startInstallation(r.game, { - skipRequirements: !0, - skipAnalitics: !1 }) }, - clearCompletedInstallations: () => { + showOsRequirementsDialog: () => Sx.show(Ox, { + title: xe.t("error_os_requirements_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_os_requirements_text", + t: xe.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.minimumRequirementsUrl, + external: !0 + })] + }) + }), + showCpuRequirementsDialog: () => Sx.show(Ox, { + title: xe.t("error_cpu_requirements_title", { + ns: "errors" + }), + content: xe.t("error_cpu_requirements_text", { + ns: "errors" + }) + }), + showWarningDialogErrorOccured: ({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + secondaryLabel: a, + secondaryCallback: i, + error: o + }) => Sx.show(Ix, { + title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", { + ns: "errors" + }), + content: null !== t && void 0 !== t ? t : (0, hf.jsx)(mt, { + i18nKey: "error_generic_content", + t: xe.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === o || void 0 === o ? void 0 : o.code, + message: null === o || void 0 === o ? void 0 : o.message + } + }), + primaryLabel: null !== r && void 0 !== r ? r : xe.t("dialog_action_ok", { + ns: "dialog" + }), + primaryCallback: () => null === n || void 0 === n ? void 0 : n(), + secondaryLabel: null !== a && void 0 !== a ? a : xe.t("dialog_action_cancel", { + ns: "dialog" + }), + secondaryCallback: () => null === i || void 0 === i ? void 0 : i() + }), + showAcknowledgeDialogErrorOccured: ({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + error: a + }) => Sx.show(Ox, { + title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", { + ns: "errors" + }), + content: null !== t && void 0 !== t ? t : (0, hf.jsx)(mt, { + i18nKey: "error_generic_content", + t: xe.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === a || void 0 === a ? void 0 : a.code + } + }), + primaryCallback: () => null === n || void 0 === n ? void 0 : n(), + primaryLabel: null !== r && void 0 !== r ? r : void 0 + }), + showWarningsDialog: (e, t) => Sx.show(Ix, { + title: e, + typeDialog: "positive", + content: xf(t), + secondaryLabel: xe.t("dialog_action_close", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_action_acknowledge", { + ns: "dialog" + }) + }), + showAgreementsDialog: (e, t, n) => Sx.show(Ix, { + title: e, + typeDialog: "positive", + content: xf(`

${t}

${n}`), + secondaryLabel: xe.t("dialog_action_decline", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_action_accept", { + ns: "dialog" + }), + disablePrimaryUntilScrolled: !0 + }), + showResetSettingsDialog: e => { + const n = t(); + return Sx.show(Ix, { + title: xe.t("dialog_settings_reset_title", { + ns: "dialog" + }), + content: xe.t("dialog_settings_reset_content", { + ns: "dialog" + }), + secondaryLabel: xe.t("dialog_action_cancel", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_settings_reset_button", { + ns: "dialog" + }), + primaryCallback: () => { + n.settings.actions.resetChannelGameSettings(e) + } + }) + }, + showGameNotInstalledDialog: e => { + const n = t(); + return Sx.show(Ix, { + title: xe.t("dialog_settings_game_not_installed_title", { + ns: "dialog" + }), + content: xe.t("dialog_settings_game_not_installed_content", { + ns: "dialog" + }), + secondaryLabel: xe.t("dialog_action_cancel", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_action_install", { + ns: "dialog" + }), + primaryCallback: () => { + n.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL) + } + }) + }, + showGameStartInstallationDialog: async e => { + const r = t(), + a = await Dx(e); + return Sx.show(Ix, { + typeDialog: "default", + title: xe.t("dialog_start_installation_title", { + ns: "dialog", + game: e.gameName, + channel: e.channelName + }), + content: (0, hf.jsxs)(uo, { + role: "group", + gap: "100", + vertical: !0, + children: [(0, hf.jsxs)(uo, { + role: "group", + gap: "0", + vertical: !0, + children: [(0, hf.jsx)("p", { + children: xe.t("dialog_start_installation_content_location", { + ns: "dialog" + }) + }), (0, hf.jsxs)("p", { + children: [(0, hf.jsx)("span", { + className: "sol-u-color-foreground", + children: Pf(r.settings.library.defaultLibraryFolder) + }), a.installDir, "\\", e.channelId] + })] + }), (0, hf.jsx)("p", { + children: xe.t("dialog_start_installation_content_location_settings", { + ns: "dialog" + }) + })] + }), + secondaryLabel: xe.t("dialog_start_installation_action_go_to_settings", { + ns: "dialog" + }), + secondaryCallback: () => { + const t = Wg(`/${_k.SETTINGS}/${_k.SETTINGS_GAMES}`, { + gameId: e.gameId, + channelId: e.channelId + }); + r.application.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { + window.location.hash = t + }), n / 2) + }, + primaryLabel: xe.t("dialog_start_installation_action_install", { + ns: "dialog" + }), + primaryCallback: () => { + r.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL) + } + }) + }, + showGameCancelInstallationDialog: e => { + const n = t(); + return Sx.show(Ix, { + title: xe.t("dialog_cancel_installation_title", { + ns: "dialog" + }), + content: (0, hf.jsxs)(uo, { + role: "group", + gap: "100", + vertical: !0, + children: [(0, hf.jsx)("p", { + children: xe.t("dialog_cancel_installation_content", { + ns: "dialog", + info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` + }) + }), e.type === pf.InstallationType.INSTALL && (0, hf.jsx)(Nc, { + type: "checkbox", + onChange: t => n.installer.actions.setInstallationOptions(e.game, { + keepFilesOnCancel: t.target.checked + }), + children: xe.t("dialog_cancel_installation_content_keep_files_downloaded", { + ns: "dialog" + }) + })] + }), + secondaryLabel: xe.t("dialog_action_discard", { + ns: "dialog" + }), + primaryLabel: xe.t("dialog_action_cancel_download", { + ns: "dialog" + }), + secondaryCallback: () => { + n.application.actions.setDownloadPopoverOpened(!0) + }, + primaryCallback: () => { + n.application.actions.setDownloadPopoverOpened(!0), n.installer.actions.removeInstallation(e.game) + } + }) + }, + showGameChannelUpdateAvailableDialog: e => Sx.show(Ox, { + typeDialog: "positive", + title: xe.t("dialog_launch_check_update_available_title", { + ns: "dialog" + }), + content: xe.t("dialog_launch_check_update_available_content", { + ns: "dialog", + game: e.gameName, + channel: e.channelName + }) + }) + } + } + } + }, Gx = (e, t) => ({ + installer: { + installations: [], + requirementsValidated: !1, + actions: { + initializeInstaller: () => {}, + resetInstaller: () => { + e((e => ({ + installer: { + ...e.installer, + installations: [], + requirementsValidated: !1 + } + }))) + }, + addInstallationToQueue: (n, r) => { + const { + installer: a, + application: i + } = t(); + Xm(a.installations, n) || (e((e => ({ + installer: { + ...e.installer, + installations: [...e.installer.installations, { + game: n, + status: pf.InstallationStatus.WAITING, + type: r + }] + } + }))), i.actions.setDownloadPopoverOpened(!0), a.actions.processInstallationQueue()) + }, + processInstallationQueue: async () => { + const { + installer: e + } = t(); + if (Jm(e.installations)) return void console.info("Noting to process in queue since there is already an installation in progress"); + const n = e.installations.filter((e => e.status === pf.InstallationStatus.WAITING)); + if (0 === n.length) return; + const r = n[0]; + await e.actions.startInstallation(r.game, { + skipRequirements: !0, + skipAnalitics: !1 + }) + }, + clearCompletedInstallations: () => { + e((e => ({ + installer: { + ...e.installer, + installations: e.installer.installations.filter((e => e.status !== pf.InstallationStatus.COMPLETED && e.status !== pf.InstallationStatus.ERROR)) + } + }))) + }, + startInstallation: async (n, r, a = { + skipRequirements: !1, + skipAnalitics: !1 + }) => { + const { + installer: { + installations: i, + requirementsValidated: o, + actions: s + }, + settings: l, + application: c, + library: u + } = t(), { + gameId: d, + gameName: p, + channelId: h, + channelName: f + } = n; + if (!o) { + c.actions.setDownloadPopoverOpened(!1); + const t = await rg(d, h); + if (c.actions.setDownloadPopoverOpened(!0), !t) return void s.cancelInstallation(n); e((e => ({ installer: { ...e.installer, - installations: e.installer.installations.filter((e => e.status !== pf.InstallationStatus.COMPLETED && e.status !== pf.InstallationStatus.ERROR)) + requirementsValidated: !0 } }))) - }, - startInstallation: async (n, r, a = { - skipRequirements: !1, - skipAnalitics: !1 - }) => { - const { - installer: { - installations: i, - requirementsValidated: o - }, - settings: s, - application: l, - library: c - } = t(), { - gameId: u, - gameName: d, - channelId: p, - channelName: h - } = n; - if (!o) { - l.actions.setDownloadPopoverOpened(!1); - const t = await Ox(u, p); - if (l.actions.setDownloadPopoverOpened(!0), !t) return; - e((e => ({ - installer: { - ...e.installer, - requirementsValidated: !0 - } - }))) - } - const f = wx(i); - if (f && !Ex(f.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); - const m = xx(i, n); - if (m) try { - const t = await Cx(n); - e((e => ({ - installer: { - ...e.installer, - installations: i.map((e => Ex(e.game, n) ? { - ...e, - status: pf.InstallationStatus.IN_PROGRESS, - release: t - } : e)) - } - }))), l.actions.setDownloadPopoverOpened(!0); - const r = { - ...t, - gameName: d, - channelName: h, - libraryFolder: s.library.defaultLibraryFolder, - forcePatcher: !1, - verify: m.type === pf.InstallationType.VERIFY - }; - if (Sf().installer.setInstall(r), c.actions.addInstalledGameChannel(n), !a.skipAnalitics) { - const e = { - [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_START, - [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_START, - [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_START - } [m.type]; - window.launcherAPI.analytics.setAnalyticsEvent(e) - } - } catch (g) { - console.error("[Start Installation] Error : ", g) - } else console.warn(`Cannot start the installation of ${n} since the installation is not in queue`) - }, - cancelInstallation: async n => { - const { - application: r, - installer: a, - dialog: i - } = t(), o = xx(a.installations, n); - o ? o.status === pf.InstallationStatus.IN_PROGRESS || o.status === pf.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await i.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ + } + const m = Jm(i); + if (m && !tg(m.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); + const g = Xm(i, n); + if (g) try { + const t = await Dx(n); + e((e => ({ installer: { ...e.installer, - installations: Sx(e.installer.installations, n) - } - }))), await a.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue") - }, - removeInstallation: n => { - var r, a; - const { - installer: i - } = t(), o = xx(i.installations, n); - if (!o || !o.release) return void console.warn("We could not remove the installation because the game is not in the queue"); - const s = { - ...o.release, - gameName: o.game.gameName, - channelName: o.game.channelName, - libraryFolder: o.release.libraryFolder, - forcePatcher: !1, - verify: o.type === pf.InstallationType.VERIFY - }, - l = o.type !== pf.InstallationType.INSTALL || null !== (r = null === (a = o.options) || void 0 === a ? void 0 : a.keepFilesOnCancel) && void 0 !== r && r; - window.launcherAPI.installer.setInstallerCancel(s, { - keepFiles: l - }), e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: o.type === pf.InstallationType.INSTALL ? Px(e.installer.installations, n, pf.InstallationStatus.CANCELLING) : Sx(e.installer.installations, n) - } - }))) - }, - pauseInstallation: n => { - const { - installer: { - installations: r, - progress: a - } - } = t(), i = xx(r, n); - if (i && i.status !== pf.InstallationStatus.PAUSED) { - if (e((e => ({ - installer: { - ...e.installer, - progress: e.installer.progress ? { - ...e.installer.progress, - speed: "0" - } : void 0, - installations: Px(e.installer.installations, n, pf.InstallationStatus.PAUSED) - } - }))), null !== a && void 0 !== a && a.isPausable) return window.launcherAPI.installer.setInstallPause() - } else console.warn("We could not pause the installation because the game is not in the queue or is already pause") - }, - resumeInstallation: n => { - const { - installer: { - installations: r - } - } = t(), a = xx(r, n); - if (a && a.status === pf.InstallationStatus.PAUSED) return e((e => ({ - installer: { - ...e.installer, - installations: Px(e.installer.installations, n, pf.InstallationStatus.IN_PROGRESS) - } - }))), window.launcherAPI.installer.setInstallResume(); - console.warn("We could not resume the installation because the game is not in the queue") - }, - setInstallationOptions: (n, r) => { - const { - installer: { - installations: a - } - } = t(); - xx(a, n) ? e((e => ({ - installer: { - ...e.installer, - installations: e.installer.installations.map((e => Ex(e.game, n) ? { + installations: i.map((e => tg(e.game, n) ? { ...e, - options: r + status: pf.InstallationStatus.IN_PROGRESS, + release: t } : e)) } - }))) : console.warn("We could not set options to the installation because the game is not in the queue") - }, - setInstallationProgress: n => { - const { - installer: { - installations: r, - progress: a - } - } = t(); - wx(r) ? e((e => ({ + }))), c.actions.setDownloadPopoverOpened(!0); + const r = { + ...t, + gameName: p, + channelName: f, + libraryFolder: l.library.defaultLibraryFolder, + forcePatcher: !1, + verify: g.type === pf.InstallationType.VERIFY + }; + if (Sf().installer.setInstall(r), u.actions.addInstalledGameChannel(n), !a.skipAnalitics) { + const e = { + [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_START, + [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_START, + [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_START + } [g.type]; + window.launcherAPI.analytics.setAnalyticsEvent(e, { + Game: g.game.gameId, + Channel: g.game.channelId, + Environment: g.game.platformId + }) + } + } catch (v) { + console.error("[Start Installation] Error : ", v) + } else console.warn(`Cannot start the installation of ${n} since the installation is not in queue`) + }, + cancelInstallation: async n => { + const { + application: r, + installer: a, + dialog: i + } = t(), o = Xm(a.installations, n); + o ? o.status === pf.InstallationStatus.IN_PROGRESS || o.status === pf.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await i.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ + installer: { + ...e.installer, + installations: ng(e.installer.installations, n) + } + }))), await a.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue") + }, + removeInstallation: n => { + var r, a; + const { + installer: i + } = t(), o = Xm(i.installations, n); + if (!o || !o.release) return void console.warn("We could not remove the installation because the game is not in the queue"); + const s = { + ...o.release, + gameName: o.game.gameName, + channelName: o.game.channelName, + libraryFolder: o.release.libraryFolder, + forcePatcher: !1, + verify: o.type === pf.InstallationType.VERIFY + }, + l = o.type !== pf.InstallationType.INSTALL || null !== (r = null === (a = o.options) || void 0 === a ? void 0 : a.keepFilesOnCancel) && void 0 !== r && r; + window.launcherAPI.installer.setInstallerCancel(s, { + keepFiles: l + }), e((e => ({ + installer: { + ...e.installer, + progress: void 0, + installations: o.type === pf.InstallationType.INSTALL ? ag(e.installer.installations, n, pf.InstallationStatus.CANCELLING) : ng(e.installer.installations, n) + } + }))); + const c = { + [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_STOP, + [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_STOP, + [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_STOP + } [o.type]; + window.launcherAPI.analytics.setAnalyticsEvent(c, { + Game: o.game.gameId, + Channel: o.game.channelId, + Environment: o.game.platformId + }) + }, + pauseInstallation: n => { + const { + installer: { + installations: r, + progress: a + } + } = t(), i = Xm(r, n); + if (i && i.status !== pf.InstallationStatus.PAUSED) { + if (e((e => ({ installer: { ...e.installer, - progress: bx(n, a) + progress: e.installer.progress ? { + ...e.installer.progress, + speed: "0" + } : void 0, + installations: ag(e.installer.installations, n, pf.InstallationStatus.PAUSED) } - }))) : console.warn("We could not update info about download progression since there is no installation in progress") - }, - setInstallationSuccess: async n => { - const { - installer: r, - library: a - } = t(); - if (!r.progress) return void console.warn("We could not end the installation because the event is strange", n); - const i = { - gameId: n.gameId, - gameName: n.gameName, - channelId: n.channelId, - channelName: n.channelName, - platformId: n.platformId - }, - o = xx(r.installations, i); - if (!o) return void console.warn("We could not end the installation because the game is not in the queue"); - if (n.isInitialDownload) return e((e => ({ + }))), null !== a && void 0 !== a && a.isPausable) return window.launcherAPI.installer.setInstallPause() + } else console.warn("We could not pause the installation because the game is not in the queue or is already pause") + }, + resumeInstallation: n => { + const { + installer: { + installations: r + } + } = t(), a = Xm(r, n); + if (a && a.status === pf.InstallationStatus.PAUSED) return e((e => ({ + installer: { + ...e.installer, + installations: ag(e.installer.installations, n, pf.InstallationStatus.IN_PROGRESS) + } + }))), window.launcherAPI.installer.setInstallResume(); + console.warn("We could not resume the installation because the game is not in the queue") + }, + retryFailedInstallation: n => { + var r; + const { + installer: { + installations: a + } + } = t(), i = Xm(a, n); + i && i.status === pf.InstallationStatus.ERROR ? 0 !== (null === (r = i.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { + var t, r; + return { installer: { ...e.installer, - progress: void 0 + installations: ag(e.installer.installations, n, pf.InstallationStatus.WAITING, { + ...i.options, + numberOfRetriesLeft: (null !== (t = null === (r = i.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== t ? t : 3) - 1 + }) } - }))), void r.actions.startInstallation(o.game, { - skipRequirements: !0, - skipAnalitics: !0 - }); - e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: Px(e.installer.installations, i, pf.InstallationStatus.COMPLETED) - } - }))), r.actions.setInstallSuccessToast(o.game), a.actions.saveInstalledGameChannel(i), await r.actions.processInstallationQueue(); - const s = { - [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_SUCCESS, - [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_SUCCESS, - [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_SUCCESS - } [o.type]; - window.launcherAPI.analytics.setAnalyticsEvent(s) - }, - setInstallationFailed: async n => { - const { - installer: r, - application: a - } = t(), i = xx(r.installations, n.payload); - if (!i) return void console.warn("We could not clear the installation because the game is not in the queue"); - a.actions.setDownloadPopoverOpened(!1); - const o = (e => { - const { - code: t, - message: n, - payload: r - } = e; - switch (t) { - case pf.InstallerErrorsNames.ERR_INVALID_MD_FILE: - return new pf.InvalidMDFileError(n, r); - case pf.InstallerErrorsNames.ERR_DISK_FULL: - return new pf.DiskFullError(n, r); - case pf.InstallerErrorsNames.ERR_FILE_IN_USE: - return new pf.FileInUseError(n, r); - case pf.InstallerErrorsNames.ERR_WRITE_PERMISSION: - return new pf.WritePermissionsError(n, r); - case pf.InstallerErrorsNames.ERR_P4K_CORRUPTED: - return new pf.Pk4CorruptedError(n, r); - case pf.InstallerErrorsNames.ERR_RETRIEVE_MANIFEST: - return new pf.RetrieveManifestError(n, r); - case pf.InstallerErrorsNames.ERR_UNKNOWN_NETWORK_ERROR: - return new pf.PatcherUnknownNetworkError(n, r); - case pf.InstallerErrorsNames.ERR_BASE_P4K_CORRUPTED: - return new pf.BasePackP4kCorruptedError(n, r); - case pf.InstallerErrorsNames.ERR_DOWNLOAD_UNSUCCESSFULL: - return new pf.DownloadUnsuccessfullError(n, r); - case pf.InstallerErrorsNames.ERR_PATCHER_UNKNOWN: - return new pf.PatcherGenericError(n, r); - case pf.InstallerErrorsNames.ERR_INIT_UNKNOWN: - return new pf.BasePackGenericError(n, r); - case pf.InstallerErrorsNames.ERR_FIX_PERMISSIONS: - return new pf.FixPermissionError(n, r); - default: - return new pf.InstallerError({ - code: pf.errorsCodes.ERR_INSTALL_UNKNOWN, - message: n, - payload: r - }) - } - })(n); - await Hm((e => { - var t; - const n = ww.getState().installer, - r = ww.getState().library, - { - gameId: a, - platformId: i, - channelId: o, - gameName: s, - channelName: l - } = e.payload, - c = null !== (t = { - gameId: a, - gameName: s, - channelId: o, - channelName: l, - platformId: i - }) && void 0 !== t ? t : r.channelSelected; - switch (!0) { - case e instanceof pf.InvalidMDFileError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_basepack_invalid_title", { - ns: "errors" - }), - content: wt.t("error_installer_basepack_invalid_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.DiskFullError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_disc_full_title", { - ns: "errors" - }), - content: wt.t("error_installer_disc_full_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.WritePermissionsError: - return { - handler: { - type: Wm.DISPLAY_WARNING_DIALOG, - args: { - title: wt.t("error_installer_permissions_title", { - ns: "errors" - }), - content: wt.t("error_installer_permissions_content", { - code: e.code, - ns: "errors" - }), - primaryCallback: async () => { - await n.actions.setPermissions(c) - }, - primaryLabel: wt.t("error_installer_permissions_action", { - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.FileInUseError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_file_in_use_title", { - ns: "errors" - }), - content: wt.t("error_installer_file_in_use_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.Pk4CorruptedError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_pk4_corrupted_title", { - ns: "errors" - }), - content: wt.t("error_installer_pk4_corrupted_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.RetrieveManifestError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_retrieve_manifest_title", { - ns: "errors" - }), - content: wt.t("error_installer_retrieve_manifest_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.PatcherUnknownNetworkError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_unknown_network_title", { - ns: "errors" - }), - content: wt.t("error_installer_unknown_network_content", { - code: e.code, - ns: "errors" - }) - } - }, error: e - }; - case e instanceof pf.BasePackP4kCorruptedError: - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: wt.t("error_installer_base_p4k_corrupted_title", { - ns: "errors" - }), - content: (0, hf.jsx)(mt, { - i18nKey: "error_installer_base_p4k_corrupted_content", - t: wt.t, - ns: "errors", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.issueCouncilUrl, - external: !0 - }), (0, hf.jsx)(Ih, { - href: pf.configuration.filesSupportUrl, - external: !0 - })], - values: { - code: null === e || void 0 === e ? void 0 : e.code - } - }) - } - }, error: e - }; - default: - const t = () => e.code === pf.errorsNames.ERR_INIT_UNKNOWN ? wt.t("error_installer_init_download_title", { + } + })) : console.warn("We could not resume the installation because the game is not in the queue") + }, + setInstallationOptions: (n, r) => { + const { + installer: { + installations: a + } + } = t(); + Xm(a, n) ? e((e => ({ + installer: { + ...e.installer, + installations: e.installer.installations.map((e => tg(e.game, n) ? { + ...e, + options: r + } : e)) + } + }))) : console.warn("We could not set options to the installation because the game is not in the queue") + }, + setInstallationProgress: n => { + const { + installer: { + installations: r, + progress: a + } + } = t(); + Jm(r) ? e((e => ({ + installer: { + ...e.installer, + progress: Zm(n, a) + } + }))) : console.warn("We could not update info about download progression since there is no installation in progress") + }, + setInstallationSuccess: async n => { + const { + installer: r, + library: a + } = t(); + if (!r.progress) return void console.warn("We could not end the installation because the event is strange", n); + const i = { + gameId: n.gameId, + gameName: n.gameName, + channelId: n.channelId, + channelName: n.channelName, + platformId: n.platformId + }, + o = Xm(r.installations, i); + if (!o) return void console.warn("We could not end the installation because the game is not in the queue"); + if (n.isInitialDownload) return e((e => ({ + installer: { + ...e.installer, + progress: void 0 + } + }))), void r.actions.startInstallation(o.game, { + skipRequirements: !0, + skipAnalitics: !0 + }); + e((e => ({ + installer: { + ...e.installer, + progress: void 0, + installations: ag(e.installer.installations, i, pf.InstallationStatus.COMPLETED) + } + }))), r.actions.setInstallSuccessToast(o.game), a.actions.saveInstalledGameChannel(i), await r.actions.processInstallationQueue(); + const s = { + [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_SUCCESS, + [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_SUCCESS, + [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_SUCCESS + } [o.type]; + window.launcherAPI.analytics.setAnalyticsEvent(s, { + Game: o.game.gameId, + Channel: o.game.channelId, + Environment: o.game.platformId + }) + }, + setInstallationFailed: async n => { + const { + installer: r, + application: a + } = t(), i = Xm(r.installations, n.payload); + if (!i) return void console.warn("We could not clear the installation because the game is not in the queue"); + a.actions.setDownloadPopoverOpened(!1), e((e => ({ + installer: { + ...e.installer, + progress: void 0, + installations: ag(e.installer.installations, i.game, pf.InstallationStatus.ERROR) + } + }))); + const o = (0, pf.serializerInstallerErrors)(n); + await Hm((e => { + var t, n, r; + const a = Pw.getState().installer, + i = Pw.getState().library, + { + gameId: o, + platformId: s, + channelId: l, + gameName: c, + channelName: u + } = e.payload, + d = null !== (t = { + gameId: o, + gameName: c, + channelId: l, + channelName: u, + platformId: s + }) && void 0 !== t ? t : i.channelSelected, + p = Xm(a.installations, d); + switch (!0) { + case e instanceof pf.InvalidMDFileError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_basepack_invalid_title", { + ns: "errors" + }), + content: wt.t("error_installer_basepack_invalid_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.InvalidMDFileHeaderError: + case e instanceof pf.NotMappedError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_init_download_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_installer_generic_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } + }) + } + }, error: e + }; + case e instanceof pf.DiskFullError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_disc_full_title", { + ns: "errors" + }), + content: wt.t("error_installer_disc_full_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.WritePermissionsError: + return { + handler: { + type: Wm.DISPLAY_WARNING_DIALOG, + args: { + title: wt.t("error_installer_permissions_title", { + ns: "errors" + }), + content: wt.t("error_installer_permissions_content", { + code: e.code, + ns: "errors" + }), + primaryCallback: async () => { + await a.actions.setPermissions(d) + }, + primaryLabel: wt.t("error_installer_permissions_action", { + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.FileInUseError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_file_in_use_title", { + ns: "errors" + }), + content: wt.t("error_installer_file_in_use_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.Pk4CorruptedError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_pk4_corrupted_title", { + ns: "errors" + }), + content: wt.t("error_installer_pk4_corrupted_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.RetrieveManifestError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_retrieve_manifest_title", { + ns: "errors" + }), + content: wt.t("error_installer_retrieve_manifest_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.PatcherUnknownNetworkError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_unknown_network_title", { + ns: "errors" + }), + content: wt.t("error_installer_unknown_network_content", { + code: e.code, + ns: "errors" + }) + } + }, error: e + }; + case e instanceof pf.BasePackP4kCorruptedError: + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: wt.t("error_installer_base_p4k_corrupted_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_installer_base_p4k_corrupted_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } + }) + } + }, error: e + }; + case e instanceof pf.DownloadUnsuccessfullError: + return [{ + handler: { + type: Wm.DISPLAY_WARNING_DIALOG, + skip: void 0 !== (null === p || void 0 === p || null === (n = p.options) || void 0 === n ? void 0 : n.numberOfRetriesLeft) && (null === p || void 0 === p || null === (r = p.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) > 0, + args: { + title: wt.t("error_installer_base_p4k_corrupted_title", { + ns: "errors" + }), + content: (0, hf.jsx)(mt, { + i18nKey: "error_installer_base_p4k_corrupted_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } + }), + primaryCallback: async () => { + a.actions.addInstallationToQueue(d, pf.InstallationType.VERIFY) + }, + primaryLabel: wt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, + error: e + }]; + default: + const t = () => e.code === pf.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? wt.t("error_installer_init_download_title", { ns: "errors" - }) : e.code === pf.errorsNames.ERR_PATCHER_UNKNOWN ? wt.t("error_installer_patcher_title", { + }) : e.code === pf.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? wt.t("error_installer_patcher_title", { ns: "errors" }) : wt.t("error_installer_title", { ns: "errors" + }), + i = () => e.code === pf.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, hf.jsx)(mt, { + i18nKey: "error_installer_patcher_generic_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } + }) : (0, hf.jsx)(mt, { + i18nKey: "error_installer_generic_content", + t: wt.t, + ns: "errors", + components: [(0, hf.jsx)(Ih, { + href: pf.configuration.issueCouncilUrl, + external: !0 + }), (0, hf.jsx)(Ih, { + href: pf.configuration.filesSupportUrl, + external: !0 + })], + values: { + code: null === e || void 0 === e ? void 0 : e.code + } }); - return { - handler: { - type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: t(), - content: (0, hf.jsx)(mt, { - i18nKey: "error_installer_generic_content", - t: wt.t, - ns: "errors", - components: [(0, hf.jsx)(Ih, { - href: pf.configuration.issueCouncilUrl, - external: !0 - }), (0, hf.jsx)(Ih, { - href: pf.configuration.filesSupportUrl, - external: !0 - })], - values: { - code: null === e || void 0 === e ? void 0 : e.code - } - }) - } - }, error: e - } - } - })(o)), a.actions.setDownloadPopoverOpened(!0), e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: Px(e.installer.installations, i.game, pf.InstallationStatus.ERROR) - } - }))), await r.actions.processInstallationQueue(); - const s = { - [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_ERROR, - [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_ERROR, - [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_ERROR - } [i.type]; - window.launcherAPI.analytics.setAnalyticsEvent(s) - }, - setCancelationSuccess: async () => { - const { - installer: n, - toasts: r - } = t(), a = kx(n.installations); - a && e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: [...Sx(e.installer.installations, a.game)] - } - }))), r.actions.add({ - type: "negative", - title: xe.t("download_toast_install_cancel_success", { - ns: "download" - }), - icon: ty - }), await n.actions.processInstallationQueue() - }, - setCancelationFailed: async n => { - const { - installer: r - } = t(); - console.error(n); - const a = kx(r.installations); - a && e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: [...Sx(e.installer.installations, a.game)] - } - }))), await r.actions.processInstallationQueue() - }, - setPermissions: async e => { - const t = await Ix(), - n = await Cx(e); - if (t) { - const e = { - ...n, - network: {}, - nickname: t.username, - token: t.sessionToken.value, - authToken: t.gameToken.token - }; - window.launcherAPI.installer.setFixPermissions(e) - } - }, - setInstallSuccessToast: e => { - const { - installer: { - installations: n - }, - toasts: r - } = t(), a = xx(n, e); - if (!a || a.status !== pf.InstallationStatus.COMPLETED) return void console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed"); - return r.actions.add({ - title: (() => { - switch (a.type) { - case pf.InstallationType.INSTALL: - return xe.t("download_toast_install_success", { - ns: "download" - }); - case pf.InstallationType.VERIFY: - return xe.t("download_toast_verify_success", { - ns: "download" - }); - case pf.InstallationType.UPDATE: - return xe.t("download_toast_update_success", { - ns: "download" - }) + return { + handler: { + type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: t(), + content: i() + } + }, error: e } - })(), - type: "positive", - closeOnClick: !1 - }) + } + })(o)), a.actions.setDownloadPopoverOpened(!0), await r.actions.processInstallationQueue(); + const s = { + [pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_ERROR, + [pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_ERROR, + [pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_ERROR + } [i.type]; + window.launcherAPI.analytics.setAnalyticsEvent(s, { + Game: i.game.gameId, + Channel: i.game.channelId, + Environment: i.game.platformId, + ErrorCode: o.code, + ErrorMessage: o.message + }) + }, + setCancelationSuccess: async () => { + const { + installer: n, + toasts: r + } = t(), a = eg(n.installations); + a && e((e => ({ + installer: { + ...e.installer, + progress: void 0, + installations: [...ng(e.installer.installations, a.game)] + } + }))), r.actions.add({ + type: "negative", + title: xe.t("download_toast_install_cancel_success", { + ns: "download" + }), + icon: hy + }), await n.actions.processInstallationQueue() + }, + setCancelationFailed: async n => { + const { + installer: r + } = t(); + console.error(n); + const a = eg(r.installations); + a && e((e => ({ + installer: { + ...e.installer, + progress: void 0, + installations: [...ng(e.installer.installations, a.game)] + } + }))), await r.actions.processInstallationQueue() + }, + setPermissions: async e => { + const t = await Cx(), + n = await Dx(e); + if (t) { + const e = { + ...n, + network: {}, + nickname: t.username, + token: t.sessionToken.value, + authToken: t.gameToken.token + }; + window.launcherAPI.installer.setFixPermissions(e) } + }, + setInstallSuccessToast: e => { + const { + installer: { + installations: n + }, + toasts: r + } = t(), a = Xm(n, e); + if (!a || a.status !== pf.InstallationStatus.COMPLETED) return void console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed"); + return r.actions.add({ + title: (() => { + switch (a.type) { + case pf.InstallationType.INSTALL: + return xe.t("download_toast_install_success", { + ns: "download" + }); + case pf.InstallationType.VERIFY: + return xe.t("download_toast_verify_success", { + ns: "download" + }); + case pf.InstallationType.UPDATE: + return xe.t("download_toast_update_success", { + ns: "download" + }) + } + })(), + type: "positive", + closeOnClick: !1 + }) } } - }), zx = [{ - label: "Unlimited", - value: 0 - }, { - label: "25 MB/s", - value: 26214400 - }, { - label: "15 MB/s", - value: 15728640 - }, { - label: "10 MB/s", - value: 10485760 - }, { - label: "5 MB/s", - value: 5242880 - }, { - label: "2 MB/s", - value: 2097152 - }, { - label: "1.5 MB/s", - value: 1572864 - }, { - label: "1 MB/s", - value: 1048576 - }, { - label: "512 KB/s", - value: 524288 - }, { - label: "256 KB/s", - value: 262144 - }, { - label: "128 KB/s", - value: 131072 - }], Fx = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ - label: "!1024", - value: 1024 - }, { - label: "!512", - value: 512 - }, - { + } + }), Bx = [{ + label: "Unlimited", + value: 0 + }, { + label: "25 MB/s", + value: 26214400 + }, { + label: "15 MB/s", + value: 15728640 + }, { + label: "10 MB/s", + value: 10485760 + }, { + label: "5 MB/s", + value: 5242880 + }, { + label: "2 MB/s", + value: 2097152 + }, { + label: "1.5 MB/s", + value: 1572864 + }, { + label: "1 MB/s", + value: 1048576 + }, { + label: "512 KB/s", + value: 524288 + }, { + label: "256 KB/s", + value: 262144 + }, { + label: "128 KB/s", + value: 131072 + }], qx = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ + label: "!1024", + value: 1024 + }, { + label: "!512", + value: 512 + }, { label: "!256", value: 256 - }, { + }, { label: "!128", value: 128 - }, { + }, { label: "CIG-MAX (25)", value: 25 - }, { + }, { label: "20", value: 20 - }, { + }, { label: "15", value: 15 - }, { + }, { label: "10", value: 10 - }, { + }, { label: "5", value: 5 }] : [{ - label: "Max (25)", - value: 25 - }, { - label: "20", - value: 20 - }, { - label: "15", - value: 15 - }, { - label: "10", - value: 10 - }, { - label: "5", - value: 5 - }], Ux = { - application: { - quitOnWindowClose: !1 - }, - library: { - defaultLibraryFolder: "" - } - }, Vx = { - concurrentTransfers: Fx[0].value, - maximumDownloadBandwidth: zx[0].value - }, Bx = ({ - defaultLibraryFolder: e = "", - gamesSettings: t = [], - quitOnWindowClose: n = !1, - downloadSettings: r = Vx - } = {}) => ({ - ...Ux, - application: { - quitOnWindowClose: n, - download: r - }, - library: { - ...Ux.library, - defaultLibraryFolder: e - }, - gamesSettings: t - }), Gx = (e, t) => ({ - settings: { - ...Bx(), - actions: { - initializeApplicationSettings: async () => { - var t; - const n = null !== (t = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== t ? t : `${pf.configuration.infoApp.defaultLibraryPath}${pf.configuration.infoApp.defaultLibraryFolder}`, - r = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), - a = await window.launcherAPI.store.getValueFromStore("application.download"); - e((e => ({ - settings: { - ...e.settings, - ...Bx({ - defaultLibraryFolder: Pf(n), - gamesSettings: e.settings.gamesSettings, - quitOnWindowClose: r, - downloadSettings: a - }) - } - }))) - }, - initializeGameSettings: async () => { - const n = t(), - { - settings: r - } = t(), - a = await window.launcherAPI.store.getValueFromStore("library.settings"), - i = n.library.actions.getAvailableGamesChannelsWeightSorted().map((e => e.channels.map((t => { - var n; - const i = null === a || void 0 === a ? void 0 : a.find((n => n.gameId === e.id && n.channelId === t.id)); - return { - gameId: e.id, - gameName: e.name, - channelId: t.id, - channelName: t.name, - platformId: t.platformId, - libraryFolder: null !== (n = null === i || void 0 === i ? void 0 : i.libraryFolder) && void 0 !== n ? n : r.library.defaultLibraryFolder - } - })))); - e((e => ({ - settings: { - ...e.settings, - gamesSettings: i.flat() - } - }))) - }, - getChannelDefaultGameSettings: async e => { - const { - settings: n - } = t(), { - gameId: r, - channelId: a, - platformId: i, - gameName: o, - channelName: s - } = e; + label: "Max (25)", + value: 25 + }, { + label: "20", + value: 20 + }, { + label: "15", + value: 15 + }, { + label: "10", + value: 10 + }, { + label: "5", + value: 5 + }], $x = { + application: { + quitOnWindowClose: !1, + hideQuitWarning: !1 + }, + library: { + defaultLibraryFolder: "" + } + }, Wx = { + concurrentTransfers: qx[0].value, + maximumDownloadBandwidth: Bx[0].value + }, Hx = ({ + defaultLibraryFolder: e = "", + gamesSettings: t = [], + quitOnWindowClose: n = !1, + hideQuitWarning: r = !1, + downloadSettings: a = Wx + } = {}) => ({ + ...$x, + application: { + quitOnWindowClose: n, + hideQuitWarning: r, + download: a + }, + library: { + ...$x.library, + defaultLibraryFolder: e + }, + gamesSettings: t + }), Yx = (e, t) => ({ + settings: { + ...Hx(), + actions: { + initializeApplicationSettings: async () => { + var t; + const n = null !== (t = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== t ? t : `${pf.configuration.infoApp.defaultLibraryPath}${pf.configuration.infoApp.defaultLibraryFolder}`, + r = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), + a = await window.launcherAPI.store.getValueFromStore("application.hideQuitWarning"), + i = await window.launcherAPI.store.getValueFromStore("application.download"); + e((e => ({ + settings: { + ...e.settings, + ...Hx({ + defaultLibraryFolder: Pf(n), + gamesSettings: e.settings.gamesSettings, + quitOnWindowClose: r, + hideQuitWarning: a, + downloadSettings: i + }) + } + }))) + }, + initializeGameSettings: async () => { + const { + library: n, + settings: r + } = t(), a = await window.launcherAPI.store.getValueFromStore("library.settings"), i = n.actions.getAvailableGamesChannelsWeightSorted(), o = await Promise.all(i.map((async e => await Promise.all(e.channels.map((async t => { + var n; + const i = await ey.fetchQuery(og(e.id, t.id)), + o = null === a || void 0 === a ? void 0 : a.find((n => n.gameId === e.id && n.channelId === t.id)); return { - gameId: r, - gameName: o, - channelId: a, - channelName: s, - platformId: i, - libraryFolder: n.library.defaultLibraryFolder + gameId: e.id, + gameName: e.name, + channelId: t.id, + channelName: t.name, + platformId: t.platformId, + libraryFolder: null !== (n = null === o || void 0 === o ? void 0 : o.libraryFolder) && void 0 !== n ? n : r.library.defaultLibraryFolder, + installDir: i.installDir } - }, - getChannelGameSettings: async e => { - var t; - const n = await window.launcherAPI.store.getValueFromStore("library.settings"); - return null !== (t = null === n || void 0 === n ? void 0 : n.find((({ - gameId: t, - channelId: n - }) => t === (null === e || void 0 === e ? void 0 : e.gameId) && n === e.channelId))) && void 0 !== t ? t : null - }, - resetChannelGameSettings: async n => { - const r = t(), - { - gameId: a, - channelId: i - } = n; - try { - const { - gamesSettings: t - } = r.settings, o = await r.settings.actions.getChannelDefaultGameSettings(n); - let s = [...t.filter((e => e.channelId !== i)), o].sort(((e, t) => Rx(e.channelId, t.channelId))); - e((e => ({ - settings: { - ...e.settings, - gamesSettings: s - } - }))); - const l = (await window.launcherAPI.store.getValueFromStore("library.settings")).filter((e => e.gameId !== a || e.channelId !== i)); - window.launcherAPI.store.setValueToStore("library.settings", l) - } catch (o) { - console.error("[ResetSettings - error]", o) + })))))); + e((e => ({ + settings: { + ...e.settings, + gamesSettings: o.flat() } - }, - saveLibraryFolder: async n => { - e((e => ({ - settings: { - ...e.settings, - library: { - ...e.library, - defaultLibraryFolder: n - } - } - }))), window.launcherAPI.store.setValueToStore("library.libraryFolder", n), window.launcherAPI.settings.setLibraryFolder(n), await t().settings.actions.initializeGameSettings() - }, - saveChannelGameSettings: async n => { + }))) + }, + getChannelDefaultGameSettings: async e => { + const { + settings: n + } = t(), { + gameId: r, + channelId: a, + platformId: i, + gameName: o, + channelName: s + } = e; + return { + gameId: r, + gameName: o, + channelId: a, + channelName: s, + platformId: i, + libraryFolder: n.library.defaultLibraryFolder + } + }, + getChannelGameSettings: async e => { + var t; + const n = await window.launcherAPI.store.getValueFromStore("library.settings"); + return null !== (t = null === n || void 0 === n ? void 0 : n.find((({ + gameId: t, + channelId: n + }) => t === (null === e || void 0 === e ? void 0 : e.gameId) && n === e.channelId))) && void 0 !== t ? t : null + }, + resetChannelGameSettings: async n => { + const r = t(), + { + gameId: a, + channelId: i + } = n; + try { const { - channelId: r - } = n, { - gamesSettings: a - } = t().settings; - let i = [...a.filter((e => e.channelId !== r)), n].sort(((e, t) => Rx(e.channelId, t.channelId))); + gamesSettings: t + } = r.settings, o = await r.settings.actions.getChannelDefaultGameSettings(n); + let s = [...t.filter((e => e.channelId !== i)), o].sort(((e, t) => jx(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, - gamesSettings: i + gamesSettings: s } }))); - const o = await window.launcherAPI.store.getValueFromStore("library.settings"); - if (o) { - const e = [...o.filter((e => e.channelId !== r)), { - gameId: n.gameId, - gameName: n.gameName, - channelName: n.channelName, - channelId: n.channelId, - platformId: n.platformId, - libraryFolder: n.libraryFolder - }].sort(((e, t) => Rx(e.channelId, t.channelId))); - window.launcherAPI.store.setValueToStore("library.settings", e) - } else window.launcherAPI.store.setValueToStore("library.settings", i) - }, - saveApplicationSettings: async t => { - e((e => ({ - settings: { - ...e.settings, - application: { - ...e.settings.application, - [t.name]: t.value - } - } - }))), window.launcherAPI.store.setValueToStore(`application.${t.name}`, t.value) - }, - setDownloadSettings: (e, t) => { - window.launcherAPI.installer.setDownloadOptions({ - name: e, - value: t - }) - }, - onSetDownloadSettingsSuccess: async e => { - const n = { - ...t().settings.application.download, - [e.name]: e.value - }; - await t().settings.actions.saveApplicationSettings({ - name: "download", - value: n - }) + const l = (await window.launcherAPI.store.getValueFromStore("library.settings")).filter((e => e.gameId !== a || e.channelId !== i)); + window.launcherAPI.store.setValueToStore("library.settings", l) + } catch (o) { + console.error("[ResetSettings - error]", o) } + }, + saveLibraryFolder: async n => { + e((e => ({ + settings: { + ...e.settings, + library: { + ...e.library, + defaultLibraryFolder: n + } + } + }))), window.launcherAPI.store.setValueToStore("library.libraryFolder", n), window.launcherAPI.settings.setLibraryFolder(n), await t().settings.actions.initializeGameSettings() + }, + saveChannelGameSettings: async n => { + const { + channelId: r + } = n, { + gamesSettings: a + } = t().settings; + let i = [...a.filter((e => e.channelId !== r)), n].sort(((e, t) => jx(e.channelId, t.channelId))); + e((e => ({ + settings: { + ...e.settings, + gamesSettings: i + } + }))); + const o = await window.launcherAPI.store.getValueFromStore("library.settings"); + if (o) { + const e = [...o.filter((e => e.channelId !== r)), { + gameId: n.gameId, + gameName: n.gameName, + channelName: n.channelName, + channelId: n.channelId, + platformId: n.platformId, + libraryFolder: n.libraryFolder + }].sort(((e, t) => jx(e.channelId, t.channelId))); + window.launcherAPI.store.setValueToStore("library.settings", e) + } else window.launcherAPI.store.setValueToStore("library.settings", i) + }, + saveApplicationSettings: async t => { + e((e => ({ + settings: { + ...e.settings, + application: { + ...e.settings.application, + [t.name]: t.value + } + } + }))), window.launcherAPI.store.setValueToStore(`application.${t.name}`, t.value) + }, + setDownloadSettings: (e, t) => { + window.launcherAPI.installer.setDownloadOptions({ + name: e, + value: t + }) + }, + onSetDownloadSettingsSuccess: async e => { + const n = { + ...t().settings.application.download, + [e.name]: e.value + }; + await t().settings.actions.saveApplicationSettings({ + name: "download", + value: n + }) } } - }); - let qx = null; - const $x = e => Object.entries(e).reduce(((e, [t, n]) => ({ + } + }); + let Kx = null; + const Qx = e => Object.entries(e).reduce(((e, [t, n]) => ({ ...e, [t]: `${pf.configuration.assetsDirectory}${n}` })), {}), - Wx = e => ({ + Zx = e => ({ volume: null !== e && void 0 !== e ? e : 50, previousVolume: null, system: null, - soundList: $x(pf.configuration.sounds), - trackList: $x(pf.configuration.musics) + soundList: Qx(pf.configuration.sounds), + trackList: Qx(pf.configuration.musics) }), - Hx = (e, t) => ({ + Xx = (e, t) => ({ soundSystem: { - ...Wx(), + ...Zx(), actions: { initializeSoundContext: async () => { var t; const n = await window.launcherAPI.store.getValueFromStore("application.volume"), - r = Wx(n); - qx = null !== (t = qx) && void 0 !== t ? t : new $m({ + r = Zx(n); + Kx = null !== (t = Kx) && void 0 !== t ? t : new $m({ sounds: r.soundList, musics: r.trackList, volume: r.volume @@ -49597,9 +50244,9 @@ soundSystem: { ...e.soundSystem, ...r, - system: qx + system: Kx } - }))), qx.playSound("open"), qx.playBackgroundTrack() + }))), Kx.playSound("open"), Kx.playBackgroundTrack() }, changeVolume: n => { const r = t().soundSystem.system; @@ -49630,20 +50277,22 @@ } } }), - Yx = async () => { + Jx = async () => { const { application: e, user: t, status: n - } = ww.getState(), r = t.actions.isLoggedIn(), a = e.isGameRunning, i = await window.launcherAPI.window.isMinimized(); - if (r || Kx(n.intervalId), !a && !i) try { - const t = await Bv.fetchQuery({ + } = Pw.getState(), r = t.actions.isLoggedIn(), { + isWindowMinimzed: a + } = await window.launcherAPI.window.isMinimized(); + if (r || ew(n.intervalId), !e.actions.isGameRunningAndWindowMinimzed() && !a) try { + const t = await ey.fetchQuery({ queryKey: ["rsiStatus"], queryFn: async () => qm.status.getStatus(), staleTime: 0 }), n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === pf.RSISystemName.PERSISTENTE_UNIVERSE || e.name === pf.RSISystemName.ARENA_COMMANDER) && e.status !== pf.RSISystemStatus.OPERATIONAL)).sort(((e, t) => pf.SystemStatusOrder[e.status.toUpperCase()] - pf.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); - e.actions.setNonOperationalStatus(n), ww.setState((e => ({ + e.actions.setNonOperationalStatus(n), Pw.setState((e => ({ ...e, status: { ...e.status, @@ -49651,19 +50300,19 @@ lastRequestDate: (new Date).toISOString() } }))) - } catch (o) { - console.error("ERROR", o), Kx(n.intervalId) + } catch (i) { + console.error("ERROR", i), ew(n.intervalId) } - }, Kx = e => { - const t = ww.getState().application; - clearInterval(e), t.actions.setNonOperationalStatus(void 0), ww.setState((e => ({ + }, ew = e => { + const t = Pw.getState().application; + clearInterval(e), t.actions.setNonOperationalStatus(void 0), Pw.setState((e => ({ ...e, status: { ...e.status, - ...Qx() + ...tw() } }))) - }, Qx = () => ({ + }, tw = () => ({ is: "", cStateVersion: "", apiVersion: "", @@ -49688,25 +50337,25 @@ googleAnalytics: "", lastRequestDate: "", intervalId: "" - }), Zx = e => ({ + }), nw = e => ({ status: { - ...Qx(), + ...tw(), actions: { initializeStatus: async () => { e((e => ({ status: { ...e.status, - ...Qx() + ...tw() } }))) }, checkStatus: async () => { - if (!ww.getState().status.intervalId) { - await Yx(); - const e = setInterval(Yx, pf.configuration.statusDataRefreshInterval); - ww.setState({ + if (!Pw.getState().status.intervalId) { + await Jx(); + const e = setInterval(Jx, pf.configuration.statusDataRefreshInterval); + Pw.setState({ status: { - ...ww.getState().status, + ...Pw.getState().status, intervalId: e } }) @@ -49714,46 +50363,46 @@ } } } - }), Xx = { + }), rw = { randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; - let Jx; - const ew = new Uint8Array(16); + let aw; + const iw = new Uint8Array(16); - function tw() { - if (!Jx && (Jx = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Jx)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - return Jx(ew) + function ow() { + if (!aw && (aw = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !aw)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); + return aw(iw) } - const nw = []; - for (let n = 0; n < 256; ++n) nw.push((n + 256).toString(16).slice(1)); + const sw = []; + for (let n = 0; n < 256; ++n) sw.push((n + 256).toString(16).slice(1)); - function rw(e, t = 0) { - return (nw[e[t + 0]] + nw[e[t + 1]] + nw[e[t + 2]] + nw[e[t + 3]] + "-" + nw[e[t + 4]] + nw[e[t + 5]] + "-" + nw[e[t + 6]] + nw[e[t + 7]] + "-" + nw[e[t + 8]] + nw[e[t + 9]] + "-" + nw[e[t + 10]] + nw[e[t + 11]] + nw[e[t + 12]] + nw[e[t + 13]] + nw[e[t + 14]] + nw[e[t + 15]]).toLowerCase() + function lw(e, t = 0) { + return (sw[e[t + 0]] + sw[e[t + 1]] + sw[e[t + 2]] + sw[e[t + 3]] + "-" + sw[e[t + 4]] + sw[e[t + 5]] + "-" + sw[e[t + 6]] + sw[e[t + 7]] + "-" + sw[e[t + 8]] + sw[e[t + 9]] + "-" + sw[e[t + 10]] + sw[e[t + 11]] + sw[e[t + 12]] + sw[e[t + 13]] + sw[e[t + 14]] + sw[e[t + 15]]).toLowerCase() } - const aw = function(e, t, n) { - if (Xx.randomUUID && !t && !e) return Xx.randomUUID(); - const r = (e = e || {}).random || (e.rng || tw)(); + const cw = function(e, t, n) { + if (rw.randomUUID && !t && !e) return rw.randomUUID(); + const r = (e = e || {}).random || (e.rng || ow)(); if (r[6] = 15 & r[6] | 64, r[8] = 63 & r[8] | 128, t) { n = n || 0; for (let e = 0; e < 16; ++e) t[n + e] = r[e]; return t } - return rw(r) + return lw(r) }, - iw = { + uw = { list: [] }, - ow = (e, t) => ({ + dw = (e, t) => ({ toasts: { - ...iw, + ...uw, actions: { async init() { const e = t(); window.launcherAPI.autoUpdate.onNewVersionInstalled((() => { e.toasts.actions.add({ - title: ly("auto_update_toast_update_installed"), + title: by("auto_update_toast_update_installed"), type: "positive", - icon: ty, + icon: hy, closeOnClick: !1 }, !0) })) @@ -49761,7 +50410,7 @@ async add(n, r = !1) { const a = await window.launcherAPI.window.isMinimized(), i = t(), - o = aw(); + o = cw(); r && window.launcherAPI.notification.show({ title: Ef(n.title), body: Ef(n.children) @@ -49788,19 +50437,19 @@ } } }), - sw = (e = null, t = null, n = {}) => ({ + pw = (e = null, t = null, n = {}) => ({ identity: e, device: t, sessions: n }), - lw = (e, t) => ({ + hw = (e, t) => ({ user: { - ...sw(), + ...pw(), actions: { initializeUser: async () => { const { environment: t - } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), a = await window.launcherAPI.store.getValueFromStore("session"), i = sw(n, r, a ? { + } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), a = await window.launcherAPI.store.getValueFromStore("session"), i = pw(n, r, a ? { [t]: a } : {}); e((e => ({ @@ -49824,7 +50473,7 @@ user: r } = t(), a = r.sessions[null !== e && void 0 !== e ? e : n.platformMaster]; if (a && (e => "key" in e && "value" in e && "cookie" in e && "expires" in e)(a) && !If(a)) return a; - const i = await Bv.fetchQuery((o = e, { + const i = await ey.fetchQuery((o = e, { queryKey: [`signinSession-${o}`], queryFn: async () => qm.games.getSignInSession(o) })); @@ -49863,19 +50512,19 @@ resetUser: () => e((e => ({ user: { ...e.user, - ...sw(), + ...pw(), device: e.user.device } }))) } } }), - cw = (e, t) => ({ + fw = (e, t) => ({ window: { actions: { openInternalWindow: async (e, t) => { - const n = ww.getState().application, - r = ww.getState().user, + const n = Pw.getState().application, + r = Pw.getState().user, a = n.platformMaster, i = r.sessions[a], o = r.device, @@ -49910,9 +50559,27 @@ Sf().window.setQuitWindow() }, closeLauncher: async () => { - const e = t(), - n = e.settings.application.quitOnWindowClose; - return !e.application.isGameRunning && n || e.application.isGameRunning && n ? e.dialog.actions.showExitAppDialog(e.application.isGameRunning) : void Sf().window.setCloseWindow() + const n = t(), + r = n.settings.application.quitOnWindowClose, + a = n.settings.application.hideQuitWarning, + i = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + if (a || !r) return n.application.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { + r ? Sf().window.setQuitWindow() : Sf().window.setCloseWindow() + }), i / 2); + const o = await n.dialog.actions.showExitAppDialog(n.application.isGameRunning), + s = Boolean(o.results && o.results.hideDialog); + s && (e((e => ({ + settings: { + ...e.settings, + application: { + ...e.settings.application, + hideQuitWarning: s + } + } + }))), await t().settings.actions.saveApplicationSettings({ + name: "hideQuitWarning", + value: s + })) }, logoutLauncher: () => { const e = t(); @@ -49921,7 +50588,7 @@ } } }), - uw = e => { + mw = e => { let t; const n = new Set, r = (e, r) => { @@ -49942,31 +50609,31 @@ }; return t = e(r, a, i), i }, - dw = e => e ? uw(e) : uw; - var pw = n(327); + gw = e => e ? mw(e) : mw; + var vw = n(327); const { - useDebugValue: hw + useDebugValue: yw } = Oe, { - useSyncExternalStoreWithSelector: fw - } = pw; - let mw = !1; - const gw = e => { + useSyncExternalStoreWithSelector: _w + } = vw; + let bw = !1; + const xw = e => { "function" !== typeof e && console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."); - const t = "function" === typeof e ? dw(e) : e, + const t = "function" === typeof e ? gw(e) : e, n = (e, n) => function(e, t = e.getState, n) { - n && !mw && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"), mw = !0); - const r = fw(e.subscribe, e.getState, e.getServerState || e.getState, t, n); - return hw(r), r + n && !bw && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"), bw = !0); + const r = _w(e.subscribe, e.getState, e.getServerState || e.getState, t, n); + return yw(r), r }(t, e, n); return Object.assign(n, t), n }, - vw = e => e ? gw(e) : gw; - const yw = new Map, - _w = e => { - const t = yw.get(e); + ww = e => e ? xw(e) : xw; + const kw = new Map, + Ew = e => { + const t = kw.get(e); return t ? Object.fromEntries(Object.entries(t.stores).map((([e, t]) => [e, t.getState()]))) : {} }, - bw = (e, t = {}) => (n, r, a) => { + Sw = (e, t = {}) => (n, r, a) => { const { enabled: i, anonymousActionType: o, @@ -49986,7 +50653,7 @@ type: "untracked", connection: t.connect(n) }; - const r = yw.get(n.name); + const r = kw.get(n.name); if (r) return { type: "tracked", store: e, @@ -49996,7 +50663,7 @@ connection: t.connect(n), stores: {} }; - return yw.set(n.name, a), { + return kw.set(n.name, a), { type: "tracked", store: e, ...a @@ -50015,7 +50682,7 @@ ...d, type: `${s}/${d.type}` }, { - ..._w(l.name), + ...Ew(l.name), [s]: a.getState() }), c) }; @@ -50035,7 +50702,7 @@ var t; switch (e.type) { case "ACTION": - return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : xw(e.payload, (e => { + return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : Ow(e.payload, (e => { if ("__setState" !== e.type) a.dispatchFromDevtools && "function" === typeof a.dispatch && a.dispatch(e); else { if (void 0 === s) return void h(e.state); @@ -50048,17 +50715,17 @@ case "DISPATCH": switch (e.payload.type) { case "RESET": - return h(f), void 0 === s ? null == u ? void 0 : u.init(a.getState()) : null == u ? void 0 : u.init(_w(l.name)); + return h(f), void 0 === s ? null == u ? void 0 : u.init(a.getState()) : null == u ? void 0 : u.init(Ew(l.name)); case "COMMIT": - return void 0 === s ? void(null == u || u.init(a.getState())) : null == u ? void 0 : u.init(_w(l.name)); + return void 0 === s ? void(null == u || u.init(a.getState())) : null == u ? void 0 : u.init(Ew(l.name)); case "ROLLBACK": - return xw(e.state, (e => { + return Ow(e.state, (e => { if (void 0 === s) return h(e), void(null == u || u.init(a.getState())); - h(e[s]), null == u || u.init(_w(l.name)) + h(e[s]), null == u || u.init(Ew(l.name)) })); case "JUMP_TO_STATE": case "JUMP_TO_ACTION": - return xw(e.state, (e => { + return Ow(e.state, (e => { void 0 !== s ? JSON.stringify(a.getState()) !== JSON.stringify(e[s]) && h(e[s]) : h(e) })); case "IMPORT_STATE": { @@ -50075,7 +50742,7 @@ } })), f }, - xw = (e, t) => { + Ow = (e, t) => { let n; try { n = JSON.parse(e) @@ -50084,42 +50751,42 @@ } void 0 !== n && t(n) }; - const ww = vw()(bw(((...e) => ({ - ...Gv(...e), - ...$v(...e), - ...Hv(...e), + const Pw = ww()(Sw(((...e) => ({ + ...ty(...e), + ...ry(...e), + ...iy(...e), + ...Yx(...e), + ...Xx(...e), + ...nw(...e), + ...hw(...e), + ...ky(...e), ...Gx(...e), - ...Hx(...e), - ...Zx(...e), - ...lw(...e), - ...dy(...e), - ...Mx(...e), - ..._x(...e), - ...ow(...e), - ...Lx(...e), - ...cw(...e) + ...Vx(...e), + ...dw(...e), + ...Ux(...e), + ...fw(...e) })), { name: "launcher-store", enabled: !0 })), - kw = e => { + Iw = e => { var t; - return (null !== (t = pf.configuration.env[ww.getState().application.platformMaster].rootUrl) && void 0 !== t ? t : pf.configuration.rootUrl) + e + return (null !== (t = pf.configuration.env[Pw.getState().application.platformMaster].rootUrl) && void 0 !== t ? t : pf.configuration.rootUrl) + e }; - var Ew = class extends Xm.l { + var Aw = class extends ug.l { constructor(e, t) { super(), this.#O = void 0, this.#P = e, this.setOptions(t), this.bindMethods(), this.#I() } #P; #O; #A; - #C; + #R; bindMethods() { this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this) } setOptions(e) { const t = this.options; - this.options = this.#P.defaultMutationOptions(e), (0, Qm.VS)(t, this.options) || this.#P.getMutationCache().notify({ + this.options = this.#P.defaultMutationOptions(e), (0, lg.VS)(t, this.options) || this.#P.getMutationCache().notify({ type: "observerOptionsUpdated", mutation: this.#A, observer: this @@ -50129,16 +50796,16 @@ this.hasListeners() || this.#A?.removeObserver(this) } onMutationUpdate(e) { - this.#I(), this.#T(e) + this.#I(), this.#C(e) } getCurrentResult() { return this.#O } reset() { - this.#A = void 0, this.#I(), this.#T() + this.#A = void 0, this.#I(), this.#C() } mutate(e, t) { - return this.#C = t, this.#A?.removeObserver(this), this.#A = this.#P.getMutationCache().build(this.#P, this.options), this.#A.addObserver(this), this.#A.execute(e) + return this.#R = t, this.#A?.removeObserver(this), this.#A = this.#P.getMutationCache().build(this.#P, this.options), this.#A.addObserver(this), this.#A.execute(e) } #I() { const e = this.#A?.state ?? { @@ -50162,31 +50829,31 @@ reset: this.reset } } - #T(e) { - Zm.batch((() => { - this.#C && this.hasListeners() && ("success" === e?.type ? (this.#C.onSuccess?.(e.data, this.#O.variables, this.#O.context), this.#C.onSettled?.(e.data, null, this.#O.variables, this.#O.context)) : "error" === e?.type && (this.#C.onError?.(e.error, this.#O.variables, this.#O.context), this.#C.onSettled?.(void 0, e.error, this.#O.variables, this.#O.context))), this.listeners.forEach((e => { + #C(e) { + cg.batch((() => { + this.#R && this.hasListeners() && ("success" === e?.type ? (this.#R.onSuccess?.(e.data, this.#O.variables, this.#O.context), this.#R.onSettled?.(e.data, null, this.#O.variables, this.#O.context)) : "error" === e?.type && (this.#R.onError?.(e.error, this.#O.variables, this.#O.context), this.#R.onSettled?.(void 0, e.error, this.#O.variables, this.#O.context))), this.listeners.forEach((e => { e(this.#O) })) })) } }, - Sw = n(3713); + Rw = n(3713); - function Ow(e, t) { + function Cw(e, t) { return "function" === typeof e ? e(...t) : !!e } - function Pw(e, t) { - const n = (0, Sw.NL)(t), - [r] = Oe.useState((() => new Ew(n, e))); + function Tw(e, t) { + const n = (0, Rw.NL)(t), + [r] = Oe.useState((() => new Aw(n, e))); Oe.useEffect((() => { r.setOptions(e) }), [r, e]); - const a = Oe.useSyncExternalStore(Oe.useCallback((e => r.subscribe(Zm.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), + const a = Oe.useSyncExternalStore(Oe.useCallback((e => r.subscribe(cg.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), i = Oe.useCallback(((e, t) => { - r.mutate(e, t).catch(Iw) + r.mutate(e, t).catch(Dw) }), [r]); - if (a.error && Ow(r.options.throwOnError, [a.error])) throw a.error; + if (a.error && Cw(r.options.throwOnError, [a.error])) throw a.error; return { ...a, mutate: i, @@ -50194,14 +50861,14 @@ } } - function Iw() {} - const Aw = { + function Dw() {} + const Nw = { cancelOnUnmount: !0, cancelOnConditionChange: !0 }, - Cw = (e, t, n, r = Aw) => { + Lw = (e, t, n, r = Nw) => { const a = { - ...Aw, + ...Nw, ...r || {} }, i = (0, Oe.useRef)(), @@ -50229,11 +50896,11 @@ a.cancelOnUnmount && u() }), []), [s, u] }, - Tw = ({ - location: e, - delay: t - }) => { - const n = wy(), + jw = ({ + location: e, + delay: t + }) => { + const n = Ny(), r = (0, Oe.useRef)(n); return (0, Oe.useEffect)((() => { const n = setTimeout((() => { @@ -50242,7 +50909,34 @@ return () => clearTimeout(n) }), [e, t]), r.current }, - Rw = [{ + Mw = (0, Oe.createContext)({}), + zw = ({ + children: e + }) => { + const { + window: { + onSetHideWindowSuccessFul: t, + onSetShowWindowSuccessFul: n + } + } = window.launcherAPI, [r, a] = (0, Oe.useState)(!1); + return (0, Oe.useEffect)((() => { + const e = t((() => { + a(!0) + })), + r = n((() => { + a(!1) + })); + return () => { + e(), r() + } + }), [t, n]), (0, hf.jsx)(Mw.Provider, { + value: { + isMinimized: r + }, + children: e + }) + }, + Fw = [{ id: "website", action: () => window.open(pf.configuration.websiteUrl, "_blank") }, { @@ -50258,8 +50952,65 @@ id: "support", action: () => window.open(pf.configuration.supportUrl, "_blank") }], - Dw = () => { - const e = ww((e => e.autoUpdate)), + Uw = () => { + const { + t: e + } = xt("tray"), { + tray: { + onMenuItemClicked: t, + updateMenu: n + } + } = Sf(), { + isMinimized: r + } = (() => { + const e = (0, Oe.useContext)(Mw); + if (!e) throw new Error("useTheme must be used within a ThemeProvider"); + return e + })(), { + exitLauncher: a, + logoutLauncher: i + } = Pw((e => e.window.actions)), { + identity: o + } = Pw((e => e.user)), { + volume: s, + actions: { + mute: l, + unmute: c + } + } = Pw((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Oe.useMemo)((() => [...Fw, { + id: "logout", + action: i, + visible: d + }, { + id: "mute", + action: l, + visible: !u && !r + }, { + id: "unmute", + action: c, + visible: u && !r + }, { + id: "quit", + action: a + }]), [a, r, u, d, i, l, c]), h = p.map((({ + action: t, + id: n, + visible: r + }) => ({ + id: n, + label: e(`tray_${n}`), + visible: r + }))); + n(h), (0, Oe.useEffect)((() => { + const e = t((e => { + var t; + return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() + })); + return e + }), [p, t]) + }, + Vw = () => { + const e = Pw((e => e.autoUpdate)), { onUpdateDownloaded: t, onQuitInstallError: n @@ -50267,7 +51018,7 @@ (0, Oe.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Oe.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) }; - function Nw(e, t, n) { + function Gw(e, t, n) { var r = this, a = (0, Oe.useRef)(null), i = (0, Oe.useRef)(0), @@ -50340,15 +51091,15 @@ }), [f, g, t, y, m, h, p, v]); return _ } - const jw = () => { - const e = ww((e => e.settings)), + const Bw = () => { + const e = Pw((e => e.settings)), [t, n] = (0, Oe.useState)(e.application.quitOnWindowClose), [r, a] = (0, Oe.useState)(!1), [i, o] = (0, Oe.useState)(null), { t: s } = xt("settingsPage"); - Cw((() => { + Lw((() => { o(null), a(!1) }), Af, r), (0, Oe.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { @@ -50363,12 +51114,14 @@ return () => { e(), t() } - }), []); + }), []), (0, Oe.useEffect)((() => { + n(e.application.quitOnWindowClose) + }), [e.application.quitOnWindowClose]); const l = function(e, t, n) { var r = void 0 === n ? {} : n, a = r.leading, i = r.trailing; - return Nw(e, t, { + return Gw(e, t, { maxWait: t, leading: void 0 === a || a, trailing: void 0 === i || i @@ -50389,84 +51142,85 @@ type: "toggle", checked: t, onChange: ({ - target: { - checked: e - } - }) => c(e), + target: { + checked: e + } + }) => c(e), success: i && i.message, children: s("settings_application_window_behavior_close_to_quit") }) }) }) }, - Lw = ({ - open: e = !1, - ...t - }) => { - const n = ww((e => e.application)), - r = ww((e => e.installer)), - a = ww((e => e.library)), + qw = ({ + open: e = !1, + ...t + }) => { + const n = Pw((e => e.application)), + r = Pw((e => e.installer)), + a = Pw((e => e.library)), { platformId: i, gameId: o, gameName: s, channelId: l, - channelName: c + channelName: c, + installDir: u } = t.item, { - t: u + t: d } = xt("settingsPage"), - d = (0, Oe.useMemo)((() => ({ + p = (0, Oe.useMemo)((() => ({ platformId: i, gameId: o, gameName: s, channelId: l, channelName: c })), [i, o, s, l, c]), - p = (0, Oe.useMemo)((() => xx(r.installations, d)), [r, d]), - h = (0, Oe.useCallback)((e => { + h = (0, Oe.useMemo)((() => Xm(r.installations, p)), [r, p]), + f = (0, Oe.useCallback)((e => { const t = a.availableGames.find((t => t.id === e.gameId)); return null === t || void 0 === t ? void 0 : t.logo - }), [a.availableGames])(d), - f = p && p.type === pf.InstallationType.VERIFY && p.status !== pf.InstallationStatus.COMPLETED && p.status !== pf.InstallationStatus.WAITING, - m = (0, Oe.useCallback)((() => p && p.type === pf.InstallationType.VERIFY ? n.actions.setDownloadPopoverOpened(!0) : r.actions.addInstallationToQueue(d, pf.InstallationType.VERIFY)), [n.actions, d, p, r.actions]), - g = (0, Oe.useMemo)((() => f && p.status === pf.InstallationStatus.PAUSED ? ey : f ? s_ : void 0), [null === p || void 0 === p ? void 0 : p.status, f]), - v = f && p.status === pf.InstallationStatus.PAUSED ? u("settings_games_game_files_verifying_files_paused") : u(f ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"); + }), [a.availableGames])(p), + m = h && h.type === pf.InstallationType.VERIFY && h.status !== pf.InstallationStatus.COMPLETED && h.status !== pf.InstallationStatus.WAITING, + g = (0, Oe.useCallback)((() => h && h.type === pf.InstallationType.VERIFY ? n.actions.setDownloadPopoverOpened(!0) : r.actions.addInstallationToQueue(p, pf.InstallationType.VERIFY)), [n.actions, p, h, r.actions]), + v = (0, Oe.useMemo)((() => m && h.status === pf.InstallationStatus.PAUSED ? py : m ? __ : void 0), [null === h || void 0 === h ? void 0 : h.status, m]), + y = m && h.status === pf.InstallationStatus.PAUSED ? d("settings_games_game_files_verifying_files_paused") : d(m ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"); return (0, hf.jsxs)(lo, { prefix: (0, hf.jsx)("img", { - src: h, + src: f, alt: "", width: "32" }), open: e, title: `${s} - ${l} `, children: [(0, hf.jsx)(Dc, { - title: u("settings_games_installation_path_title"), + title: d("settings_games_installation_path_title"), description: (0, hf.jsxs)(hf.Fragment, { children: [(0, hf.jsx)("span", { className: "sol-u-color-foreground", children: Pf(t.item.libraryFolder) - }), s, "\\", l] + }), u, "\\", l] }) }), (0, hf.jsx)(Vc, { spacing: "250" }), (0, hf.jsx)(Dc, { - title: u("settings_games_game_files_title"), - description: u("settings_games_game_files_description"), + title: d("settings_games_game_files_title"), + description: d("settings_games_game_files_description"), children: (0, hf.jsx)(to, { - onClick: m, - disabled: p && p.type !== pf.InstallationType.VERIFY || n.isGameRunning, - loading: f, - loadingIcon: g, - children: v + onClick: g, + disabled: h && h.type !== pf.InstallationType.VERIFY || n.isGameRunning, + loading: m, + loadingIcon: v, + children: y }) })] }, `${s}${l} `) }, - Mw = () => { - const e = ww((e => e.settings)), - t = ww((e => e.installer)), - n = ww((e => e.application)), + $w = () => { + const e = Pw((e => e.settings)), + t = Pw((e => e.installer)), + n = Pw((e => e.application)), r = e.gamesSettings, { t: a @@ -50474,12 +51228,12 @@ { gameId: i, channelId: o - } = Ey(), + } = jy(), [s, l] = (0, Oe.useState)(!1); - Cw((() => { + Lw((() => { u(null), l(!1) }), Af, s); - const [c, u] = (0, Oe.useState)(null), d = (0, Oe.useMemo)((() => r.find((e => e.gameId === i && e.channelId === o))), [o, i, r]), p = r.map((e => (0, hf.jsx)(Lw, { + const [c, u] = (0, Oe.useState)(null), d = (0, Oe.useMemo)((() => r.find((e => e.gameId === i && e.channelId === o))), [o, i, r]), p = r.map((e => (0, hf.jsx)(qw, { item: e, open: e === d }, `${e.gameName}${e.channelId}`))), h = (0, Oe.useCallback)((async () => { @@ -50498,7 +51252,7 @@ children: [(0, hf.jsxs)(Dc, { title: a("settings_games_installation_title"), description: a("settings_games_installation_description"), - children: [(0, hf.jsx)(Cc, { + children: [(0, hf.jsx)(Rc, { type: "informative", children: a("settings_games_installation_information") }), (0, hf.jsxs)(Yc, { @@ -50518,14 +51272,15 @@ }), (0, hf.jsx)(co, { openAll: a("settings_common_accordion_open_all"), closeAll: a("settings_common_accordion_close_all"), - children: p + children: p, + className: 1 === p.length ? "sol-u-margin-bs-250" : "" })] }) }, - zw = () => { + Ww = () => { const { t: e - } = xt("settingsPage"), t = ww((e => e.settings)), n = { + } = xt("settingsPage"), t = Pw((e => e.settings)), n = { [pf.InstallerOptions.ConcurrentTransfers]: t.application.download.concurrentTransfers, [pf.InstallerOptions.MaximumDownloadBandwidth]: t.application.download.maximumDownloadBandwidth }, [r, a] = (0, Oe.useState)(n), [i, o] = (0, Oe.useState)(!1), [s, l] = (0, Oe.useState)(null); @@ -50536,7 +51291,7 @@ return () => { e() } - }), [t.actions]), Cw((() => { + }), [t.actions]), Lw((() => { o(!1) }), Af, i); const c = (0, Oe.useCallback)(((e, n) => { @@ -50559,7 +51314,7 @@ children: (0, hf.jsx)(Zh, { onValueChange: e => c(pf.InstallerOptions.ConcurrentTransfers, e), value: r[pf.InstallerOptions.ConcurrentTransfers].toString(), - children: Fx.map((e => (0, hf.jsx)(Qh, { + children: qx.map((e => (0, hf.jsx)(Qh, { value: e.value.toString(), label: e.label }, e.label))) @@ -50572,7 +51327,7 @@ children: (0, hf.jsx)(Zh, { onValueChange: e => c(pf.InstallerOptions.MaximumDownloadBandwidth, e), value: r[pf.InstallerOptions.MaximumDownloadBandwidth].toString(), - children: zx.map((e => (0, hf.jsx)(Qh, { + children: Bx.map((e => (0, hf.jsx)(Qh, { value: e.value.toString(), label: e.label }, e.label))) @@ -50581,7 +51336,7 @@ }) }) }, - Fw = () => { + Hw = () => { const { t: e } = xt("form"), { @@ -50596,7 +51351,7 @@ } = (() => { const { t: e - } = xt("errors"), t = wy(), [n, r] = Oe.useState(null), a = ww((e => e.authentication)), { + } = xt("errors"), t = Ny(), [n, r] = Oe.useState(null), a = Pw((e => e.authentication)), { captcha: i, session: o, typeAuth: s, @@ -50604,13 +51359,13 @@ resetAuthentication: l, fetchCaptcha: c } - } = a, u = ww((e => e.user)), { + } = a, u = Pw((e => e.user)), { device: d, actions: { setSession: p, setIdentity: h } - } = u, f = ww((e => e.application)).launcherVersion, { + } = u, f = Pw((e => e.application)).launcherVersion, { handleSubmit: m, register: g, setError: v, @@ -50619,7 +51374,7 @@ }, resetField: _, control: b - } = Ub(), { + } = Qb(), { store: { setValueToStore: x }, @@ -50629,14 +51384,14 @@ } = Sf(), { mutate: k, isPending: E - } = Pw({ + } = Tw({ mutationFn: ({ - username: e, - password: t, - captcha: n, - remember: r, - launcherVersion: a - }) => qm.authentication.signIn({ + username: e, + password: t, + captcha: n, + remember: r, + launcherVersion: a + }) => qm.authentication.signIn({ username: e, password: t, captcha: n, @@ -50652,7 +51407,7 @@ } = a; if (o && c(), n instanceof om) { const e = await qm.authentication.getCaptcha(); - ww.setState((t => ({ + Pw.setState((t => ({ authentication: { ...t.authentication, captcha: e, @@ -50660,7 +51415,7 @@ } }))) } - if (n instanceof um) throw t(uk.SIGN_IN_GAME_PACKAGE_MISSING); + if (n instanceof um) throw t(_k.SIGN_IN_GAME_PACKAGE_MISSING); if (n instanceof sm) return v("captcha", { type: "custom", message: null === n || void 0 === n ? void 0 : n.message @@ -50672,12 +51427,12 @@ }); if (n instanceof em) { const e = (({ - device_id: e, - new_device: t, - prompt: n, - device_name: r, - device_type: a - }) => { + device_id: e, + new_device: t, + prompt: n, + device_name: r, + device_type: a + }) => { const i = !e && !t; return { type: n.includes("authenticator") ? "authenticator" : "email", @@ -50689,7 +51444,7 @@ } })(n.payload), r = "multi-factor"; - throw ww.setState((t => ({ + throw Pw.setState((t => ({ authentication: { ...t.authentication, typeAuth: r, @@ -50705,13 +51460,13 @@ }, device: qm.rsi.device } - }))), t(uk.SIGN_IN_MFA, { + }))), t(_k.SIGN_IN_MFA, { state: { remember: i } }) } - if (n instanceof Om) return r(e("error_sign_in_not_authorized")), void ww.setState((e => ({ + if (n instanceof Pm) return r(e("error_sign_in_not_authorized")), void Pw.setState((e => ({ authentication: { ...e.authentication, privileged: !1, @@ -50754,12 +51509,12 @@ privileged: a.privileged, heapAccountId: a.heapAccountId, trackingMetricsId: a.trackingMetricsId - }), ww.setState((e => ({ + }), Pw.setState((e => ({ authentication: { ...e.authentication, remember: i } - }))), t(uk.HOME) + }))), t(_k.HOME) }; return { refreshCaptcha: () => { @@ -50808,10 +51563,10 @@ title: e("sign_in_title"), footer: c, onSubmit: a(n), - children: [s && (0, hf.jsx)(Cc, { + children: [s && (0, hf.jsx)(Rc, { type: "negative", children: s - }), (0, hf.jsx)(Bb, { + }), (0, hf.jsx)(Xb, { control: l, name: "username", rules: { @@ -50826,7 +51581,7 @@ inputProps: { id: "email" } - }), (0, hf.jsx)(Bb, { + }), (0, hf.jsx)(Xb, { control: l, name: "password", rules: { @@ -50862,7 +51617,7 @@ id: "captcha", src: i, alt: "" - }), (0, hf.jsx)(Bb, { + }), (0, hf.jsx)(Xb, { control: l, name: "captcha", rules: { @@ -50881,7 +51636,7 @@ "aria-label": e("sign_in_captcha_refresh"), "aria-controls": "captcha", disabled: t, - icon: Qv, + icon: ly, variant: "plain", size: "small", onClick: o @@ -50891,9 +51646,9 @@ })] }) }, - Uw = () => { - const e = ww((e => e.application)), - t = ww((e => e.authentication)), + Yw = () => { + const e = Pw((e => e.application)), + t = Pw((e => e.authentication)), { t: n } = xt("form"), @@ -50904,20 +51659,20 @@ isPending: o, control: s } = (() => { - const e = wy(), + const e = Ny(), [t, n] = Oe.useState(null), - r = by(), + r = Ty(), { t: a } = xt("errors"), - i = ww((e => e.authentication)), + i = Pw((e => e.authentication)), { privileged: o, actions: { resetAuthentication: s } } = i, - l = ww((e => e.user)), + l = Pw((e => e.user)), { identity: c, device: u, @@ -50933,7 +51688,7 @@ errors: m }, control: g - } = Ub(), + } = Qb(), { store: { setValueToStore: v @@ -50945,12 +51700,12 @@ { mutate: _, isPending: b - } = Pw({ + } = Tw({ mutationFn: ({ - codeMfa: e, - deviceName: t, - duration: n - }) => qm.authentication.signInMfa({ + codeMfa: e, + deviceName: t, + duration: n + }) => qm.authentication.signInMfa({ codeMfa: e, deviceName: t, duration: n @@ -50961,8 +51716,8 @@ x = t => { if (t instanceof tm) n(a("error_wrong_mfa_code")); else { - if (t instanceof um) throw e(`../${uk.SIGN_IN_GAME_PACKAGE_MISSING}`); - n(t instanceof Om ? a("error_sign_in_not_authorized", { + if (t instanceof um) throw e(`../${_k.SIGN_IN_GAME_PACKAGE_MISSING}`); + n(t instanceof Pm ? a("error_sign_in_not_authorized", { ns: "errors" }) : t.message) } @@ -50981,7 +51736,8 @@ nickname: h.nickname, privileged: o, avatar: h.avatar, - heapAccountId: h.heapAccountId + heapAccountId: h.heapAccountId, + trackingMetricsId: h.trackingMetricsId }), v("session", { ...h.session, expires: l @@ -50997,7 +51753,7 @@ privileged: h.privileged, heapAccountId: h.heapAccountId, trackingMetricsId: h.trackingMetricsId - }), e(uk.HOME) + }), e(_k.HOME) }; return { isPending: b, @@ -51043,7 +51799,7 @@ onClick: u, variant: "plain", href: "..", - icon: Yv, + icon: oy, size: "large", children: n("sign_in_mfa_back_sign_in") }), (0, hf.jsx)(to, { @@ -51059,10 +51815,10 @@ subtitle: n("sign_in_mfa_subtitle"), footer: d, onSubmit: i(a), - children: [r && (0, hf.jsx)(Cc, { + children: [r && (0, hf.jsx)(Rc, { type: "negative", children: r - }), (0, hf.jsx)(Bb, { + }), (0, hf.jsx)(Xb, { control: s, name: "codeMfa", rules: { @@ -51073,7 +51829,7 @@ }, help: n("sign_in_mfa_code_help"), label: n("sign_in_mfa_code_label") - }), (0, hf.jsx)(Bb, { + }), (0, hf.jsx)(Xb, { control: s, name: "deviceName", rules: { @@ -51088,23 +51844,23 @@ }, help: n("sign_in_mfa_device_help"), label: n("sign_in_mfa_device_label") - }), (0, hf.jsx)(Vb, { + }), (0, hf.jsx)(Zb, { control: s, name: "duration", label: n("sign_in_mfa_duration_label"), help: n("sign_in_mfa_duration_help"), defaultValue: c, children: l.map((({ - label: e, - value: t - }) => (0, hf.jsx)(Qh, { + label: e, + value: t + }) => (0, hf.jsx)(Qh, { value: t, children: e }, t))) })] }) }, - Vw = () => { + Kw = () => { const { t: e } = xt("errors"); @@ -51123,11 +51879,11 @@ href: pf.configuration.supportUrl, external: !0, variant: "plain", - icon: Jv, + icon: dy, size: "large", children: e("error_game_package_missing_support") }), (0, hf.jsx)(to, { - href: `/${uk.SIGN_IN}`, + href: `/${_k.SIGN_IN}`, size: "large", children: e("error_game_package_missing_retry") })] @@ -51144,9 +51900,9 @@ }) }) }, - Bw = ({ - date: e - }) => (0, hf.jsx)(Ic, { + Qw = ({ + date: e + }) => (0, hf.jsx)(Ic, { content: kf(e, "long"), placement: "bottom", interactive: !1, @@ -51155,63 +51911,63 @@ children: kf(e, "relative") }) }); - var Gw = class extends Xm.l { + var Zw = class extends ug.l { constructor(e, t) { - super(), this.#R = void 0, this.#D = void 0, this.#O = void 0, this.#N = new Set, this.#P = e, this.options = t, this.#j = null, this.bindMethods(), this.setOptions(t) + super(), this.#T = void 0, this.#D = void 0, this.#O = void 0, this.#N = new Set, this.#P = e, this.options = t, this.#L = null, this.bindMethods(), this.setOptions(t) } #P; - #R; + #T; #D; #O; - #L; - #M; #j; + #M; + #L; #z; #F; #U; #V; - #B; #G; + #B; #N; bindMethods() { this.refetch = this.refetch.bind(this) } onSubscribe() { - 1 === this.listeners.size && (this.#R.addObserver(this), qw(this.#R, this.options) ? this.#q() : this.updateResult(), this.#$()) + 1 === this.listeners.size && (this.#T.addObserver(this), Xw(this.#T, this.options) ? this.#q() : this.updateResult(), this.#$()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { - return $w(this.#R, this.options, this.options.refetchOnReconnect) + return Jw(this.#T, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { - return $w(this.#R, this.options, this.options.refetchOnWindowFocus) + return Jw(this.#T, this.options, this.options.refetchOnWindowFocus) } destroy() { - this.listeners = new Set, this.#W(), this.#H(), this.#R.removeObserver(this) + this.listeners = new Set, this.#W(), this.#H(), this.#T.removeObserver(this) } setOptions(e, t) { const n = this.options, - r = this.#R; - if (this.options = this.#P.defaultQueryOptions(e), (0, Qm.VS)(n, this.options) || this.#P.getQueryCache().notify({ - type: "observerOptionsUpdated", - query: this.#R, - observer: this - }), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean"); + r = this.#T; + if (this.options = this.#P.defaultQueryOptions(e), (0, lg.VS)(n, this.options) || this.#P.getQueryCache().notify({ + type: "observerOptionsUpdated", + query: this.#T, + observer: this + }), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean"); this.options.queryKey || (this.options.queryKey = n.queryKey), this.#Y(); const a = this.hasListeners(); - a && Ww(this.#R, r, this.options, n) && this.#q(), this.updateResult(t), !a || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#K(); + a && ek(this.#T, r, this.options, n) && this.#q(), this.updateResult(t), !a || this.#T === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#K(); const i = this.#Q(); - !a || this.#R === r && this.options.enabled === n.enabled && i === this.#G || this.#Z(i) + !a || this.#T === r && this.options.enabled === n.enabled && i === this.#B || this.#Z(i) } getOptimisticResult(e) { const t = this.#P.getQueryCache().build(this.#P, e), n = this.createResult(t, e); return function(e, t) { - if (!(0, Qm.VS)(e.getCurrentResult(), t)) return !0; + if (!(0, lg.VS)(e.getCurrentResult(), t)) return !0; return !1 - }(this, n) && (this.#O = n, this.#M = this.options, this.#L = this.#R.state), n + }(this, n) && (this.#O = n, this.#M = this.options, this.#j = this.#T.state), n } getCurrentResult() { return this.#O @@ -51227,11 +51983,11 @@ })), t } getCurrentQuery() { - return this.#R + return this.#T } refetch({ - ...e - } = {}) { + ...e + } = {}) { return this.fetch({ ...e }) @@ -51249,23 +52005,23 @@ } #q(e) { this.#Y(); - let t = this.#R.fetch(this.options, e); - return e?.throwOnError || (t = t.catch(Qm.ZT)), t + let t = this.#T.fetch(this.options, e); + return e?.throwOnError || (t = t.catch(lg.ZT)), t } #K() { - if (this.#W(), Qm.sk || this.#O.isStale || !(0, Qm.PN)(this.options.staleTime)) return; - const e = (0, Qm.Kp)(this.#O.dataUpdatedAt, this.options.staleTime) + 1; + if (this.#W(), lg.sk || this.#O.isStale || !(0, lg.PN)(this.options.staleTime)) return; + const e = (0, lg.Kp)(this.#O.dataUpdatedAt, this.options.staleTime) + 1; this.#V = setTimeout((() => { this.#O.isStale || this.updateResult() }), e) } #Q() { - return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#R) : this.options.refetchInterval) ?? !1 + return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#T) : this.options.refetchInterval) ?? !1 } #Z(e) { - this.#H(), this.#G = e, !Qm.sk && !1 !== this.options.enabled && (0, Qm.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { - (this.options.refetchIntervalInBackground || Jm.isFocused()) && this.#q() - }), this.#G)) + this.#H(), this.#B = e, !lg.sk && !1 !== this.options.enabled && (0, lg.PN)(this.#B) && 0 !== this.#B && (this.#G = setInterval((() => { + (this.options.refetchIntervalInBackground || dg.isFocused()) && this.#q() + }), this.#B)) } #$() { this.#K(), this.#Z(this.#Q()) @@ -51274,13 +52030,13 @@ this.#V && (clearTimeout(this.#V), this.#V = void 0) } #H() { - this.#B && (clearInterval(this.#B), this.#B = void 0) + this.#G && (clearInterval(this.#G), this.#G = void 0) } createResult(e, t) { - const n = this.#R, + const n = this.#T, r = this.options, a = this.#O, - i = this.#L, + i = this.#j, o = this.#M, s = e !== n ? e.state : this.#D, { @@ -51295,28 +52051,28 @@ f = !1; if (t._optimisticResults) { const a = this.hasListeners(), - i = !a && qw(e, t), - o = a && Ww(e, n, t, r); - (i || o) && (p = ng(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") + i = !a && Xw(e, t), + o = a && ek(e, n, t, r); + (i || o) && (p = fg(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") } if (t.select && "undefined" !== typeof l.data) if (a && l.data === i?.data && t.select === this.#z) c = this.#F; else try { - this.#z = t.select, c = t.select(l.data), c = (0, Qm.oE)(a?.data, c, t), this.#F = c, this.#j = null + this.#z = t.select, c = t.select(l.data), c = (0, lg.oE)(a?.data, c, t), this.#F = c, this.#L = null } catch (_) { - this.#j = _ + this.#L = _ } else c = l.data; if ("undefined" !== typeof t.placeholderData && "undefined" === typeof c && "pending" === h) { let e; if (a?.isPlaceholderData && t.placeholderData === o?.placeholderData) e = a.data; else if (e = "function" === typeof t.placeholderData ? t.placeholderData(this.#U?.state.data, this.#U) : t.placeholderData, t.select && "undefined" !== typeof e) try { - e = t.select(e), this.#j = null + e = t.select(e), this.#L = null } catch (_) { - this.#j = _ + this.#L = _ } - "undefined" !== typeof e && (h = "success", c = (0, Qm.oE)(a?.data, e, t), f = !0) + "undefined" !== typeof e && (h = "success", c = (0, lg.oE)(a?.data, e, t), f = !0) } - this.#j && (u = this.#j, c = this.#F, d = Date.now(), h = "error"); + this.#L && (u = this.#L, c = this.#F, d = Date.now(), h = "error"); const m = "fetching" === p, g = "pending" === h, v = "error" === h, @@ -51344,15 +52100,15 @@ isPaused: "paused" === p, isPlaceholderData: f, isRefetchError: v && 0 !== l.dataUpdatedAt, - isStale: Hw(e, t), + isStale: tk(e, t), refetch: this.refetch } } updateResult(e) { const t = this.#O, - n = this.createResult(this.#R, this.options); - if (this.#L = this.#R.state, this.#M = this.options, (0, Qm.VS)(n, t)) return; - void 0 !== this.#L.data && (this.#U = this.#R), this.#O = n; + n = this.createResult(this.#T, this.options); + if (this.#j = this.#T.state, this.#M = this.options, (0, lg.VS)(n, t)) return; + void 0 !== this.#j.data && (this.#U = this.#T), this.#O = n; const r = {}; !1 !== e?.listeners && (() => { if (!t) return !0; @@ -51365,55 +52121,55 @@ const n = e; return this.#O[n] !== t[n] && r.has(n) })) - })() && (r.listeners = !0), this.#T({ + })() && (r.listeners = !0), this.#C({ ...r, ...e }) } #Y() { const e = this.#P.getQueryCache().build(this.#P, this.options); - if (e === this.#R) return; - const t = this.#R; - this.#R = e, this.#D = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this)) + if (e === this.#T) return; + const t = this.#T; + this.#T = e, this.#D = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this)) } onQueryUpdate() { this.updateResult(), this.hasListeners() && this.#$() } - #T(e) { - Zm.batch((() => { + #C(e) { + cg.batch((() => { e.listeners && this.listeners.forEach((e => { e(this.#O) })), this.#P.getQueryCache().notify({ - query: this.#R, + query: this.#T, type: "observerResultsUpdated" }) })) } }; - function qw(e, t) { + function Xw(e, t) { return function(e, t) { return !1 !== t.enabled && !e.state.dataUpdatedAt && !("error" === e.state.status && !1 === t.retryOnMount) - }(e, t) || e.state.dataUpdatedAt > 0 && $w(e, t, t.refetchOnMount) + }(e, t) || e.state.dataUpdatedAt > 0 && Jw(e, t, t.refetchOnMount) } - function $w(e, t, n) { + function Jw(e, t, n) { if (!1 !== t.enabled) { const r = "function" === typeof n ? n(e) : n; - return "always" === r || !1 !== r && Hw(e, t) + return "always" === r || !1 !== r && tk(e, t) } return !1 } - function Ww(e, t, n, r) { - return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && Hw(e, n) + function ek(e, t, n, r) { + return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && tk(e, n) } - function Hw(e, t) { + function tk(e, t) { return e.isStaleByTime(t.staleTime) } - function Yw() { + function nk() { let e = !1; return { clearReset: () => { @@ -51425,14 +52181,14 @@ isReset: () => e } } - var Kw = Oe.createContext(Yw()), - Qw = Oe.createContext(!1); - Qw.Provider; + var rk = Oe.createContext(nk()), + ak = Oe.createContext(!1); + ak.Provider; - function Zw(e, t, n) { - const r = (0, Sw.NL)(n), - a = Oe.useContext(Qw), - i = Oe.useContext(Kw), + function ik(e, t, n) { + const r = (0, Rw.NL)(n), + a = Oe.useContext(ak), + i = Oe.useContext(rk), o = r.defaultQueryOptions(e); o._optimisticResults = a ? "isRestoring" : "optimistic", (e => { e.suspense && "number" !== typeof e.staleTime && (e.staleTime = 1e3) @@ -51445,40 +52201,41 @@ })(i); const [s] = Oe.useState((() => new t(r, o))), l = s.getOptimisticResult(o); if (Oe.useSyncExternalStore(Oe.useCallback((e => { - const t = a ? () => {} : s.subscribe(Zm.batchCalls(e)); - return s.updateResult(), t - }), [s, a]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Oe.useEffect((() => { - s.setOptions(o, { - listeners: !1 - }) - }), [o, s]), ((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, a)) throw ((e, t, n) => t.fetchOptimistic(e).catch((() => { + const t = a ? () => {} : s.subscribe(cg.batchCalls(e)); + return s.updateResult(), t + }), [s, a]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Oe.useEffect((() => { + s.setOptions(o, { + listeners: !1 + }) + }), [o, s]), ((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, a)) throw ((e, t, n) => t.fetchOptimistic(e).catch((() => { n.clearReset() })))(o, s, i); if ((({ - result: e, - errorResetBoundary: t, - throwOnError: n, - query: r - }) => e.isError && !t.isReset() && !e.isFetching && Ow(n, [e.error, r]))({ - result: l, - errorResetBoundary: i, - throwOnError: o.throwOnError, - query: s.getCurrentQuery() - })) throw l.error; + result: e, + errorResetBoundary: t, + throwOnError: n, + query: r + }) => e.isError && !t.isReset() && !e.isFetching && Cw(n, [e.error, r]))({ + result: l, + errorResetBoundary: i, + throwOnError: o.throwOnError, + query: s.getCurrentQuery() + })) throw l.error; return o.notifyOnChangeProps ? l : s.trackResult(l) } - const Xw = ({ - channelId: e, - gameId: t - }) => { + const ok = ({ + channelId: e, + gameId: t + }) => { const { data: n, isLoading: r } = function(e, t) { - return Zw(e, Gw, t) + return ik(e, Zw, t) }(((e, t) => ({ queryKey: [`platformContent-${e}-${t}`], queryFn: async () => qm.content.getContent(e, t), + enabled: sg(), select: e => ({ commLinks: e.commLinks.map(bf), patchNotes: e.patchNotes.map(bf), @@ -51497,7 +52254,7 @@ o = null !== (r = null === n || void 0 === n ? void 0 : n.launcherCards) && void 0 !== r ? r : [], s = [], l = {}; - l[`${Bm.COMM_LINKS}`] = a.map(mf).sort(vf).slice(0, 8), l[`${Bm.PATCH_NOTES}`] = i, o.map(gf).forEach((e => { + l[`${Gm.COMM_LINKS}`] = a.map(mf).sort(vf).slice(0, 8), l[`${Gm.PATCH_NOTES}`] = i, o.map(gf).forEach((e => { var t, n; if (null === (t = e.channel) || void 0 === t || !t.name) return; const r = void 0 !== l[e.channel.name]; @@ -51511,21 +52268,21 @@ isLoading: r } }, - Jw = () => { + sk = () => { const { t: e } = xt("gamePage"), { channelSelected: t - } = ww().library, [n, r] = (0, Oe.useState)(Bm.COMM_LINKS), { + } = Pw().library, [n, r] = (0, Oe.useState)(Gm.COMM_LINKS), { dynamicContentSections: a, contents: i, isLoading: o - } = Xw({ + } = ok({ gameId: t.gameId, channelId: t.channelId }), s = (0, Oe.useMemo)((() => { - const e = [Bm.PATCH_NOTES], - t = [...a, Bm.COMM_LINKS, Bm.PATCH_NOTES].filter((t => { + const e = [Gm.PATCH_NOTES], + t = [...a, Gm.COMM_LINKS, Gm.PATCH_NOTES].filter((t => { const n = e.find((e => e === t)); return !(0 === i[t].length && n) })); @@ -51559,7 +52316,7 @@ title: t.title, excerpt: t.excerpt, external: !0, - subtitle: null !== t && void 0 !== t && t.publish_start ? (0, hf.jsx)(Bw, { + subtitle: null !== t && void 0 !== t && t.publish_start ? (0, hf.jsx)(Qw, { date: t.publish_start }) : void 0, image: c(t), @@ -51570,17 +52327,17 @@ })] }) }, - ek = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), - tk = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), - nk = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), - rk = (e, t, n, r) => { + lk = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), + ck = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), + uk = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), + dk = (e, t, n, r) => { var a; const { installer: i, library: o, application: s, dialog: l - } = ww.getState(), c = Sf(), u = e.find((e => e.id === n.gameId)), d = null === u || void 0 === u ? void 0 : u.channels.find((e => e.id === n.channelId)), p = xx(t, n), h = ((e, t) => { + } = Pw.getState(), c = Sf(), u = e.find((e => e.id === n.gameId)), d = null === u || void 0 === u ? void 0 : u.channels.find((e => e.id === n.channelId)), p = Xm(t, n), h = ((e, t) => { var n; return t && t.status !== pf.InstallationStatus.COMPLETED ? t.status : null !== (n = null === e || void 0 === e ? void 0 : e.status) && void 0 !== n ? n : pf.GameChannelStatus.AVAILABLE })(d, p), f = { @@ -51605,7 +52362,7 @@ ns: "gamePage" }), iconAnimation: !1, - icon: ey + icon: py }, action: () => s.actions.toggleDownloadPopoverOpened() }; case pf.InstallationStatus.CANCELLING: @@ -51617,7 +52374,7 @@ }), loading: !0, disabled: !1, - loadingIcon: s_ + loadingIcon: __ }, action: () => s.actions.toggleDownloadPopoverOpened() }; case pf.GameChannelStatus.INSTALLED: @@ -51627,7 +52384,7 @@ ns: "gamePage" }), disabled: r, - icon: tk + icon: ck }, action: () => { o.actions.launchGame(n) } @@ -51650,7 +52407,7 @@ children: wt.t("game_page_update_game", { ns: "gamePage" }), - icon: nk + icon: uk }, message: (0, hf.jsx)(mt, { i18nKey: "game_page_update_game_is_available", ns: "gamePage", @@ -51665,6 +52422,7 @@ i.actions.addInstallationToQueue(n, pf.InstallationType.UPDATE) } }; + case pf.InstallationStatus.ERROR: case pf.InstallationStatus.WAITING: return { status: h, buttonProps: { @@ -51683,20 +52441,20 @@ children: wt.t("game_page_install_game", { ns: "gamePage" }), - icon: ek + icon: lk }, action: async () => { await l.actions.showGameStartInstallationDialog(n) } } } }, - ak = () => { + pk = () => { var e, t, n, r; const { t: a } = xt("gamePage"), { gameId: i - } = Ey(), o = ww((e => e.library)), s = ww((e => e.installer)), l = ww((e => e.application)), c = null === (e = l.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, u = null === (t = l.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, { + } = jy(), o = Pw((e => e.library)), s = Pw((e => e.installer)), l = Pw((e => e.application)), c = null === (e = l.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, u = null === (t = l.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, { gameStatus: d, gameChannel: p, game: h, @@ -51707,8 +52465,8 @@ game: Of(null !== i && void 0 !== i ? i : o.channelSelected.gameId, o.availableGames), gameChannel: o.channelSelected, channels: o.actions.getChannels(null !== i && void 0 !== i ? i : o.channelSelected.gameId), - gameStatus: rk(o.installedGames, s.installations, o.channelSelected, l.isGameRunning), - settingsUrl: Ng(`/${uk.SETTINGS}/${uk.SETTINGS_GAMES}`, { + gameStatus: dk(o.installedGames, s.installations, o.channelSelected, l.isGameRunning), + settingsUrl: Wg(`/${_k.SETTINGS}/${_k.SETTINGS_GAMES}`, { gameId: null !== i && void 0 !== i ? i : o.channelSelected.gameId, channelId: o.channelSelected.channelId }), @@ -51727,11 +52485,16 @@ } })), [o.channelSelected, o.availableGames, o.installedGames, o.actions, o.gameSelected, s.installations, l.isGameRunning, i]), v = (0, hf.jsx)(to, { "aria-label": a("game_page_settings"), - href: m, - icon: oy, + icon: yy, size: "small", - variant: "plain" - }), y = "SC" === i && p.channelId === Dx && l.nonOperationalStatus, _ = d.status === pf.InstallationStatus.PAUSED || d.status === pf.InstallationStatus.IN_PROGRESS || d.status === pf.InstallationStatus.WAITING; + variant: "plain", + onClick: () => (() => { + const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + l.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { + window.location.hash = m + }), e / 2) + })() + }), y = "SC" === i && p.channelId === Mx && l.nonOperationalStatus, _ = d.status === pf.InstallationStatus.PAUSED || d.status === pf.InstallationStatus.IN_PROGRESS || d.status === pf.InstallationStatus.WAITING; return (0, hf.jsxs)(hf.Fragment, { children: [(0, hf.jsx)(Zc, { image: null === h || void 0 === h ? void 0 : h.bgImage, @@ -51753,15 +52516,16 @@ children: [o.availableGames.length > 0 && (0, hf.jsx)(Yc, { label: a("game_page_channels"), labelType: "classic", + className: "sol-c-game-page__channel-selector", children: (0, hf.jsx)(Zh, { onValueChange: f, value: p.channelId, suffix: v, children: g.map((({ - description: e, - label: t, - value: n - }) => (0, hf.jsx)(Qh, { + description: e, + label: t, + value: n + }) => (0, hf.jsx)(Qh, { description: e, label: t, value: n @@ -51771,7 +52535,7 @@ iconAnimation: "hover", onClick: () => d.action(), ...d.buttonProps - }), _ && s.progress && (0, hf.jsx)(Gc, { + }), _ && s.progress && (0, hf.jsx)(Bc, { state: d.status, progress: d.status === pf.InstallationStatus.IN_PROGRESS && s.progress.showProgress ? s.progress.percentage : void 0, stats: d.status === pf.InstallationStatus.WAITING ? [] : [{ @@ -51783,24 +52547,24 @@ label: a("download_left", { ns: "download" }), - value: c_()(Math.max((null !== (n = s.progress.total) && void 0 !== n ? n : 0) - (null !== (r = s.progress.downloaded) && void 0 !== r ? r : 0), 0)) + value: Qm()(Math.max((null !== (n = s.progress.total) && void 0 !== n ? n : 0) - (null !== (r = s.progress.downloaded) && void 0 !== r ? r : 0), 0)) }] }), !_ && d.message ? (0, hf.jsx)(nu, { children: d.message - }) : null, y && l.nonOperationalStatus && (0, hf.jsx)(yx, { + }) : null, y && l.nonOperationalStatus && (0, hf.jsx)(Ax, { status: l.nonOperationalStatus })] - }), (0, hf.jsx)(Jw, {})] + }), (0, hf.jsx)(sk, {})] }) }, - ik = () => { - const e = ww((e => e.toasts)), + hk = () => { + const e = Pw((e => e.toasts)), { wipeAnimType: t, isHeaderVisible: n } = (() => { var e, t; - const n = ww((e => e.application)), + const n = Pw((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, a = null === (t = n.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType, i = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), @@ -51808,13 +52572,22 @@ [l, c] = (0, Oe.useState)(""); return (0, Oe.useEffect)((() => { r ? (async () => { - switch (a) { + switch (n.actions.setAnimatingAppLayoutWipe("", !1), c(""), a) { case "in": c("in"); break; + case "in-rtl": + c("in-rtl"); + break; case "out": c("out"), s(!0); break; + case "out-rtl": + c("out-rtl"), s(!0); + break; + case "full-rtl": + c("in-rtl"), await new Promise((e => setTimeout(e, i / 2))), c("out-rtl"); + break; default: c("in"), await new Promise((e => setTimeout(e, i / 2))), c("out") } @@ -51825,68 +52598,18 @@ isHeaderVisible: o } })(); - return (() => { - const { - t: e - } = xt("tray"), { - tray: { - onMenuItemClicked: t, - updateMenu: n - } - } = Sf(), { - exitLauncher: r, - logoutLauncher: a - } = ww((e => e.window.actions)), { - identity: i - } = ww((e => e.user)), { - volume: o, - actions: { - mute: s, - unmute: l - } - } = ww((e => e.soundSystem)), c = 0 === o, u = !!i, d = (0, Oe.useMemo)((() => [...Rw, { - id: "logout", - action: a, - visible: u - }, { - id: "mute", - action: s, - visible: !c - }, { - id: "unmute", - action: l, - visible: c - }, { - id: "quit", - action: r - }]), [r, c, u, a, s, l]), p = d.map((({ - action: t, - id: n, - visible: r - }) => ({ - id: n, - label: e(`tray_${n}`), - visible: r - }))); - n(p), (0, Oe.useEffect)((() => { - const e = t((e => { - var t; - return null === (t = d.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() - })); - return e - }), [d, t]) - })(), (() => { + return Uw(), (() => { const { game: { onLaunchGameSuccessfull: e, onLaunchGameFailed: t, onLaunchGameStopped: n } - } = window.launcherAPI, r = ww((e => e.library)); + } = window.launcherAPI, r = Pw((e => e.library)); (0, Oe.useEffect)((() => e((e => { r.actions.setLaunchGameSuccessfull(e) - }))), [r.actions, e]), (0, Oe.useEffect)((() => t(((e, t) => { - r.actions.setLaunchGameFailed(e, t) + }))), [r.actions, e]), (0, Oe.useEffect)((() => t((e => { + r.actions.setLaunchGameFailed(e) }))), [r.actions, t]), (0, Oe.useEffect)((() => n((e => { r.actions.setLaunchGameStopped(e) }))), [r.actions, n]) @@ -51899,7 +52622,7 @@ onCancelationSuccess: r, onCancelationFailed: a } - } = window.launcherAPI, i = ww((e => e.installer)); + } = window.launcherAPI, i = Pw((e => e.installer)); (0, Oe.useEffect)((() => n((e => { i.actions.setInstallationProgress(e) }))), [i.actions, n]), (0, Oe.useEffect)((() => t((e => { @@ -51917,31 +52640,40 @@ children: (0, hf.jsxs)(go, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": t, - header: n ? (0, hf.jsx)(f_, {}) : void 0, - children: [(0, hf.jsx)(zy, {}), (0, hf.jsx)(m_, {}), (0, hf.jsx)(cf, { + header: n ? (0, hf.jsx)(E_, {}) : void 0, + children: [(0, hf.jsx)(Qy, {}), (0, hf.jsx)(S_, {}), (0, hf.jsx)(cf, { toasts: e.list })] }) }) }, - ok = () => { - const e = ww((e => e.application)), + fk = () => { + (0, Oe.useEffect)((() => { + Sf().window.setLargeWindow() + }), []) + }, + mk = () => { + const e = Pw((e => e.application)), t = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); return (0, Oe.useEffect)((() => { - setTimeout((() => { + Sf().window.setSmallWindow() + }), []), (0, Oe.useEffect)((() => { + const n = setTimeout((() => { e.actions.setAnimatingAppLayoutWipe("out", !1) - }), t) + }), t); + return () => clearTimeout(n) }), [e.actions, t]), (0, hf.jsx)(rf, { - children: (0, hf.jsx)(zy, {}) + children: (0, hf.jsx)(Qy, {}) }) }, - sk = () => { + gk = () => { var e, t; - const n = ww((e => e.library)), - r = ww((e => e.application)), + const n = Pw((e => e.library)), + r = Pw((e => e.application)), a = null === (e = r.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, - i = null === (t = r.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType, - o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), + i = null === (t = r.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType; + fk(); + const o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [s, l] = (0, Oe.useState)("is-init"), c = (0, Oe.useCallback)((async () => { await n.actions.checkForGameChannelUpdates() @@ -51965,20 +52697,21 @@ } }), [t]) })(c, n.installedGames.length > 0 ? 6e5 : null), (0, hf.jsx)(ou, { - navigation: (0, hf.jsx)(g_, {}), + navigation: (0, hf.jsx)(O_, {}), "data-sol-animation-gamepage": s, - children: (0, hf.jsx)(zy, {}) + children: (0, hf.jsx)(Qy, {}) }) }, - lk = () => { - const e = ww((e => e.application)), + vk = () => { + const e = Pw((e => e.application)), { pathname: t - } = by(), + } = Ty(), { t: n - } = xt("settingsPage"), - r = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), + } = xt("settingsPage"); + fk(); + const r = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), a = [{ title: n("settings_nav_items_application"), path: "application" @@ -52000,13 +52733,13 @@ }, title: "Settings", backCallback: () => { - e.actions.setAnimatingAppLayoutWipe("full", !0), setTimeout((() => { - window.location.hash = uk.HOME + e.actions.setAnimatingAppLayoutWipe("full-rtl", !0), setTimeout((() => { + window.location.hash = _k.HOME }), r / 2) }, children: a.map((e => { - const n = jg({ - path: `/${uk.SETTINGS}/${e.path}`, + const n = Hg({ + path: `/${_k.SETTINGS}/${e.path}`, end: !1 }, t); return (0, hf.jsx)(ef, { @@ -52015,12 +52748,12 @@ children: e.title }, e.path) })) - }), (0, hf.jsx)(zy, {})] + }), (0, hf.jsx)(Qy, {})] }) }; - const ck = () => { - const e = by(); - return ww((e => e.user)).actions.isLoggedIn() ? (0, hf.jsx)(zy, {}) : (0, hf.jsx)(My, { + const yk = () => { + const e = Ty(); + return Pw((e => e.user)).actions.isLoggedIn() ? (0, hf.jsx)(Qy, {}) : (0, hf.jsx)(Ky, { to: "sign-in", replace: !0, state: { @@ -52028,7 +52761,7 @@ } }) }, - uk = { + _k = { HOME: "/", SIGN_IN: "sign-in", SIGN_IN_MFA: "mfa", @@ -52040,22 +52773,21 @@ SETTINGS_ABOUT: "about", SETTINGS_DOWNLOAD: "download" }, - dk = () => ((0, Oe.useEffect)((() => (Sf().window.setLargeWindow(), () => Sf().window.setSmallWindow())), []), (0, hf.jsx)(zy, {})), - pk = function(e, t) { - return sv({ + bk = function(e, t) { + return _v({ basename: null == t ? void 0 : t.basename, - future: By({}, null == t ? void 0 : t.future, { + future: e_({}, null == t ? void 0 : t.future, { v7_prependBasename: !0 }), history: (n = { window: null == t ? void 0 : t.window - }, void 0 === n && (n = {}), kg((function(e, t) { + }, void 0 === n && (n = {}), Lg((function(e, t) { let { pathname: n = "/", search: r = "", hash: a = "" - } = wg(e.location.hash.substr(1)); - return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), bg("", { + } = Ng(e.location.hash.substr(1)); + return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), Tg("", { pathname: n, search: r, hash: a @@ -52068,185 +52800,182 @@ n = t.indexOf("#"); r = -1 === n ? t : t.slice(0, n) } - return r + "#" + ("string" === typeof t ? t : xg(t)) + return r + "#" + ("string" === typeof t ? t : Dg(t)) }), (function(e, t) { - yg("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") + Rg("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") }), n)), - hydrationData: (null == t ? void 0 : t.hydrationData) || $y(), + hydrationData: (null == t ? void 0 : t.hydrationData) || r_(), routes: e, - mapRouteProperties: Vy, + mapRouteProperties: Jy, window: null == t ? void 0 : t.window }).initialize(); var n }([{ - element: (0, hf.jsx)(ik, {}), + element: (0, hf.jsx)(hk, {}), loader: async () => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); try { - if (ww.getState().application.isAppInitialized) return; + if (Pw.getState().application.isAppInitialized) return; await new Promise((t => setTimeout(t, pf.configuration.appLayoutLoaderWipeTrigger + e / 2))) } finally { return null } }, children: [{ - path: uk.HOME, - element: (0, hf.jsx)(ck, {}), + path: _k.HOME, + element: (0, hf.jsx)(yk, {}), children: [{ - element: (0, hf.jsx)(dk, {}), + element: (0, hf.jsx)(gk, {}), children: [{ - element: (0, hf.jsx)(sk, {}), - children: [{ - index: !0, - loader: async () => { - const e = `/game-page/${ww.getState().library.gameSelected}`; - throw Wg(e) - } - }, { - path: uk.GAME_PAGE, - element: (0, hf.jsx)(ak, {}), - loader: async ({ - params: e - }) => { - try { - var t; - if (await async function(e = uk.SIGN_IN) { - const t = ww.getState().user, - n = await window.launcherAPI.store.getValueFromStore("session"), - r = await window.launcherAPI.store.getValueFromStore("identity"); - if (!t.actions.isLoggedIn(n, r)) throw Wg(e); - return t.identity - }(), !e.gameId) return null; - const n = ww.getState().library, - r = ww.getState().settings, - a = ww.getState().status; - n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId); - const i = null !== (t = Bv.getQueryData(Km().queryKey)) && void 0 !== t ? t : await Bv.fetchQuery(Km()); - if (!i) return null; - n.actions.setAvailableGames(i), r.actions.initializeGameSettings(); - const o = null === i || void 0 === i ? void 0 : i.find((({ - id: e - }) => n.gameSelected === e)); - if (!o) return null; - const s = (await window.launcherAPI.store.getValueFromStore("library.defaults")).find((t => t.gameId === e.gameId)); - if (s) n.actions.setGameChannelSelected(s); - else { - const t = o.channels[0], - r = e.gameId === n.channelSelected.gameId ? n.channelSelected : { - gameId: t.id, - gameName: t.name, - channelId: t.id, - platformId: t.platformId, - channelName: t.name - }; - n.actions.setGameChannelSelected(r) - } - return a.actions.checkStatus(), { - fetchedLibrary: i - } - } catch (n) { - return null - } - } - }] + index: !0, + loader: async () => { + const e = `/game-page/${Pw.getState().library.gameSelected}`; + throw av(e) + } }, { - element: (0, hf.jsx)(lk, {}), - path: uk.SETTINGS, - children: [{ - index: !0, - loader: async () => { - throw Wg(uk.SETTINGS_APPLICATION) + path: _k.GAME_PAGE, + element: (0, hf.jsx)(pk, {}), + loader: async ({ + params: e + }) => { + try { + var t; + if (await async function(e = _k.SIGN_IN) { + const t = Pw.getState().user, + n = await window.launcherAPI.store.getValueFromStore("session"), + r = await window.launcherAPI.store.getValueFromStore("identity"); + if (!t.actions.isLoggedIn(n, r)) throw av(e); + return t.identity + }(), !e.gameId) return null; + const n = Pw.getState().library, + r = Pw.getState().settings, + a = Pw.getState().status; + n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId); + const i = null !== (t = ey.getQueryData(ig().queryKey)) && void 0 !== t ? t : await ey.fetchQuery(ig()); + if (!i) return null; + n.actions.setAvailableGames(i), r.actions.initializeGameSettings(); + const o = null === i || void 0 === i ? void 0 : i.find((({ + id: e + }) => n.gameSelected === e)); + if (!o) return null; + const s = (await window.launcherAPI.store.getValueFromStore("library.defaults")).find((t => t.gameId === e.gameId)); + if (s) n.actions.setGameChannelSelected(s); + else { + const t = o.channels[0], + r = e.gameId === n.channelSelected.gameId ? n.channelSelected : { + gameId: t.id, + gameName: t.name, + channelId: t.id, + platformId: t.platformId, + channelName: t.name + }; + n.actions.setGameChannelSelected(r) + } + return a.actions.checkStatus(), { + fetchedLibrary: i + } + } catch (n) { + return null } - }, { - path: uk.SETTINGS_APPLICATION, - element: (0, hf.jsx)(jw, {}) - }, { - path: uk.SETTINGS_GAMES, - element: (0, hf.jsx)(Mw, {}) - }, { - path: uk.SETTINGS_DOWNLOAD, - element: (0, hf.jsx)(zw, {}) - }, { - path: uk.SETTINGS_ABOUT, - element: (0, hf.jsx)(ff, {}) - }] + } + }] + }, { + element: (0, hf.jsx)(vk, {}), + path: _k.SETTINGS, + children: [{ + index: !0, + loader: async () => { + throw av(_k.SETTINGS_APPLICATION) + } + }, { + path: _k.SETTINGS_APPLICATION, + element: (0, hf.jsx)(Bw, {}) + }, { + path: _k.SETTINGS_GAMES, + element: (0, hf.jsx)($w, {}) + }, { + path: _k.SETTINGS_DOWNLOAD, + element: (0, hf.jsx)(Ww, {}) + }, { + path: _k.SETTINGS_ABOUT, + element: (0, hf.jsx)(ff, {}) }] }] }, { - path: uk.SIGN_IN, - element: (0, hf.jsx)(ok, {}), + path: _k.SIGN_IN, + element: (0, hf.jsx)(mk, {}), loader: async () => { - const e = ww.getState().user, - t = `/game-page/${ww.getState().library.gameSelected}`; - return e.actions.isLoggedIn() ? Wg(t) : null + const e = Pw.getState().user, + t = `/game-page/${Pw.getState().library.gameSelected}`; + return e.actions.isLoggedIn() ? av(t) : null }, children: [{ index: !0, - element: (0, hf.jsx)(Fw, {}) + element: (0, hf.jsx)(Hw, {}) }, { - path: uk.SIGN_IN_MFA, - element: (0, hf.jsx)(Uw, {}) + path: _k.SIGN_IN_MFA, + element: (0, hf.jsx)(Yw, {}) }, { - path: uk.SIGN_IN_GAME_PACKAGE_MISSING, - element: (0, hf.jsx)(Vw, {}) + path: _k.SIGN_IN_GAME_PACKAGE_MISSING, + element: (0, hf.jsx)(Kw, {}) }] }] }]), - hk = () => (0, hf.jsx)(Jy, { - router: pk, - fallbackElement: (0, hf.jsx)(Gb, {}) + xk = () => (0, hf.jsx)(d_, { + router: bk, + fallbackElement: (0, hf.jsx)(Jb, {}) }); - var fk = n(95), - mk = function() { + var wk = n(95), + kk = function() { return null }, - gk = n(2968), - vk = Object.prototype.toString; + Ek = n(2968), + Sk = Object.prototype.toString; - function yk(e) { - switch (vk.call(e)) { + function Ok(e) { + switch (Sk.call(e)) { case "[object Error]": case "[object Exception]": case "[object DOMException]": return !0; default: - return Pk(e, Error) + return Lk(e, Error) } } - function _k(e, t) { - return vk.call(e) === `[object ${t}]` + function Pk(e, t) { + return Sk.call(e) === `[object ${t}]` } - function bk(e) { - return _k(e, "ErrorEvent") + function Ik(e) { + return Pk(e, "ErrorEvent") } - function xk(e) { - return _k(e, "DOMError") + function Ak(e) { + return Pk(e, "DOMError") } - function wk(e) { - return _k(e, "String") + function Rk(e) { + return Pk(e, "String") } - function kk(e) { + function Ck(e) { return null === e || "object" !== typeof e && "function" !== typeof e } - function Ek(e) { - return _k(e, "Object") + function Tk(e) { + return Pk(e, "Object") } - function Sk(e) { - return "undefined" !== typeof Event && Pk(e, Event) + function Dk(e) { + return "undefined" !== typeof Event && Lk(e, Event) } - function Ok(e) { + function Nk(e) { return Boolean(e && e.then && "function" === typeof e.then) } - function Pk(e, t) { + function Lk(e, t) { try { return e instanceof t } catch (n) { @@ -52254,7 +52983,7 @@ } } - function Ik(e, t) { + function jk(e, t) { try { let a = e; var n = []; @@ -52262,14 +52991,14 @@ o = 0; var r = " > ".length; let s; - for (; a && i++ < 5 && (s = Ak(a, t), !("html" === s || i > 1 && o + n.length * r + s.length >= 80));) n.push(s), o += s.length, a = a.parentNode; + for (; a && i++ < 5 && (s = Mk(a, t), !("html" === s || i > 1 && o + n.length * r + s.length >= 80));) n.push(s), o += s.length, a = a.parentNode; return n.reverse().join(" > ") } catch (a) { return "" } } - function Ak(e, t) { + function Mk(e, t) { var n = e, r = []; let a, i, o, s, l; @@ -52279,18 +53008,18 @@ if (c && c.length) c.forEach((e => { r.push(`[${e[0]}="${e[1]}"]`) })); - else if (n.id && r.push(`#${n.id}`), a = n.className, a && wk(a)) + else if (n.id && r.push(`#${n.id}`), a = n.className, a && Rk(a)) for (i = a.split(/\s+/), l = 0; l < i.length; l++) r.push(`.${i[l]}`); var u = ["type", "name", "title", "alt"]; for (l = 0; l < u.length; l++) o = u[l], s = n.getAttribute(o), s && r.push(`[${o}="${s}"]`); return r.join("") } - function Ck(e, t = 0) { + function zk(e, t = 0) { return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.substr(0,t)}...` } - function Tk(e, t) { + function Fk(e, t) { if (!Array.isArray(e)) return ""; var n = []; for (let i = 0; i < e.length; i++) { @@ -52304,22 +53033,22 @@ return n.join(t) } - function Rk(e, t) { - return !!wk(e) && (_k(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t)) + function Uk(e, t) { + return !!Rk(e) && (Pk(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t)) } - function Dk(e, t, n) { + function Vk(e, t, n) { if (t in e) { var r = e[t], a = n(r); if ("function" === typeof a) try { - jk(a, r) + Bk(a, r) } catch (i) {} e[t] = a } } - function Nk(e, t, n) { + function Gk(e, t, n) { Object.defineProperty(e, t, { value: n, writable: !0, @@ -52327,44 +53056,44 @@ }) } - function jk(e, t) { + function Bk(e, t) { var n = t.prototype || {}; - e.prototype = t.prototype = n, Nk(e, "__sentry_original__", t) + e.prototype = t.prototype = n, Gk(e, "__sentry_original__", t) } - function Lk(e) { + function qk(e) { return e.__sentry_original__ } - function Mk(e) { - if (yk(e)) return { + function $k(e) { + if (Ok(e)) return { message: e.message, name: e.name, stack: e.stack, - ...Fk(e) + ...Hk(e) }; - if (Sk(e)) { + if (Dk(e)) { var t = { type: e.type, - target: zk(e.target), - currentTarget: zk(e.currentTarget), - ...Fk(e) + target: Wk(e.target), + currentTarget: Wk(e.currentTarget), + ...Hk(e) }; - return "undefined" !== typeof CustomEvent && Pk(e, CustomEvent) && (t.detail = e.detail), t + return "undefined" !== typeof CustomEvent && Lk(e, CustomEvent) && (t.detail = e.detail), t } return e } - function zk(e) { + function Wk(e) { try { - return t = e, "undefined" !== typeof Element && Pk(t, Element) ? Ik(e) : Object.prototype.toString.call(e) + return t = e, "undefined" !== typeof Element && Lk(t, Element) ? jk(e) : Object.prototype.toString.call(e) } catch (n) { return "" } var t } - function Fk(e) { + function Hk(e) { if ("object" === typeof e && null !== e) { var t = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); @@ -52373,26 +53102,26 @@ return {} } - function Uk(e, t = 40) { - var n = Object.keys(Mk(e)); + function Yk(e, t = 40) { + var n = Object.keys($k(e)); if (n.sort(), !n.length) return "[object has no keys]"; - if (n[0].length >= t) return Ck(n[0], t); + if (n[0].length >= t) return zk(n[0], t); for (let a = n.length; a > 0; a--) { var r = n.slice(0, a).join(", "); - if (!(r.length > t)) return a === n.length ? r : Ck(r, t) + if (!(r.length > t)) return a === n.length ? r : zk(r, t) } return "" } - function Vk(e) { - return Bk(e, new Map) + function Kk(e) { + return Qk(e, new Map) } - function Bk(e, t) { - if (Ek(e)) { + function Qk(e, t) { + if (Tk(e)) { if (void 0 !== (a = t.get(e))) return a; var n = {}; - for (var r of (t.set(e, n), Object.keys(e))) "undefined" !== typeof e[r] && (n[r] = Bk(e[r], t)); + for (var r of (t.set(e, n), Object.keys(e))) "undefined" !== typeof e[r] && (n[r] = Qk(e[r], t)); return n } if (Array.isArray(e)) { @@ -52400,39 +53129,39 @@ if (void 0 !== (a = t.get(e))) return a; n = []; return t.set(e, n), e.forEach((e => { - n.push(Bk(e, t)) + n.push(Qk(e, t)) })), n } return e } - let Gk; - class qk { + let Zk; + class Xk { constructor() { - qk.prototype.__init.call(this) + Xk.prototype.__init.call(this) } static __initStatic() { this.id = "FunctionToString" } __init() { - this.name = qk.id + this.name = Xk.id } setupOnce() { - Gk = Function.prototype.toString, Function.prototype.toString = function(...e) { - var t = Lk(this) || this; - return Gk.apply(t, e) + Zk = Function.prototype.toString, Function.prototype.toString = function(...e) { + var t = qk(this) || this; + return Zk.apply(t, e) } } } - qk.__initStatic(); - var $k = (0, gk.R)(), - Wk = ["debug", "info", "warn", "error", "log", "assert", "trace"]; + Xk.__initStatic(); + var Jk = (0, Ek.R)(), + eE = ["debug", "info", "warn", "error", "log", "assert", "trace"]; - function Hk(e) { - var t = (0, gk.R)(); + function tE(e) { + var t = (0, Ek.R)(); if (!("console" in t)) return e(); var n = t.console, r = {}; - Wk.forEach((e => { + eE.forEach((e => { var a = n[e] && n[e].__sentry_original__; e in t.console && a && (r[e] = n[e], n[e] = a) })); @@ -52445,7 +53174,7 @@ } } - function Yk() { + function nE() { let e = !1; var t = { enable: () => { @@ -52455,57 +53184,57 @@ e = !1 } }; - return "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? Wk.forEach((n => { + return "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? eE.forEach((n => { t[n] = (...t) => { - e && Hk((() => { - $k.console[n](`Sentry Logger [${n}]:`, ...t) + e && tE((() => { + Jk.console[n](`Sentry Logger [${n}]:`, ...t) })) } - })) : Wk.forEach((e => { + })) : eE.forEach((e => { t[e] = () => {} })), t } - let Kk; + let rE; - function Qk() { - var e = (0, gk.R)(), + function aE() { + var e = (0, Ek.R)(), t = e.crypto || e.msCrypto; if (t && t.randomUUID) return t.randomUUID().replace(/-/g, ""); var n = t && t.getRandomValues ? () => t.getRandomValues(new Uint8Array(1))[0] : () => 16 * Math.random(); return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } - function Zk(e) { + function iE(e) { return e.exception && e.exception.values ? e.exception.values[0] : void 0 } - function Xk(e) { + function oE(e) { const { message: t, event_id: n } = e; if (t) return t; - var r = Zk(e); + var r = iE(e); return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "" : n || "" } - function Jk(e, t, n) { + function sE(e, t, n) { var r = e.exception = e.exception || {}, a = r.values = r.values || [], i = a[0] = a[0] || {}; i.value || (i.value = t || ""), i.type || (i.type = n || "Error") } - function eE(e, t) { - var n = Zk(e); + function lE(e, t) { + var n = iE(e); if (n) { var r = n.mechanism; if (n.mechanism = { - type: "generic", - handled: !0, - ...r, - ...t - }, t && "data" in t) { + type: "generic", + handled: !0, + ...r, + ...t + }, t && "data" in t) { var a = { ...r && r.data, ...t.data @@ -52514,35 +53243,35 @@ } } } - Kk = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? (0, gk.Y)("logger", Yk) : Yk(); + rE = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? (0, Ek.Y)("logger", nE) : nE(); - function tE(e) { + function cE(e) { if (e && e.__sentry_captured__) return !0; try { - Nk(e, "__sentry_captured__", !0) + Gk(e, "__sentry_captured__", !0) } catch (t) {} return !1 } - function nE(e) { + function uE(e) { return Array.isArray(e) ? e : [e] } - var rE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/]; - class aE { + var dE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/]; + class pE { static __initStatic() { this.id = "InboundFilters" } __init() { - this.name = aE.id + this.name = pE.id } constructor(e = {}) { - this._options = e, aE.prototype.__init.call(this) + this._options = e, pE.prototype.__init.call(this) } setupOnce(e, t) { var n = e => { var n = t(); if (n) { - var r = n.getIntegration(aE); + var r = n.getIntegration(pE); if (r) { var a = n.getClient(), i = a ? a.getOptions() : {}, @@ -52550,43 +53279,43 @@ return { allowUrls: [...e.allowUrls || [], ...t.allowUrls || []], denyUrls: [...e.denyUrls || [], ...t.denyUrls || []], - ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...rE], + ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...dE], ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal } }(r._options, i); return function(e, t) { if (t.ignoreInternal && function(e) { - try { - return "SentryError" === e.exception.values[0].type - } catch (t) {} - return !1 - }(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Xk(e)}`), !0; + try { + return "SentryError" === e.exception.values[0].type + } catch (t) {} + return !1 + }(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${oE(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - return function(e) { - if (e.message) return [e.message]; - if (e.exception) try { - const { - type: t = "", - value: n = "" - } = e.exception.values && e.exception.values[0] || {}; - return [`${n}`, `${t}: ${n}`] - } catch (ic) { - return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error(`Cannot extract message for event ${Xk(e)}`), [] - } - return [] - }(e).some((e => t.some((t => Rk(e, t))))) - }(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Xk(e)}`), !0; + if (!t || !t.length) return !1; + return function(e) { + if (e.message) return [e.message]; + if (e.exception) try { + const { + type: t = "", + value: n = "" + } = e.exception.values && e.exception.values[0] || {}; + return [`${n}`, `${t}: ${n}`] + } catch (Js) { + return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error(`Cannot extract message for event ${oE(e)}`), [] + } + return [] + }(e).some((e => t.some((t => Uk(e, t))))) + }(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${oE(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - var n = iE(e); - return !!n && t.some((e => Rk(n, e))) - }(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Xk(e)}.\nUrl: ${iE(e)}`), !0; + if (!t || !t.length) return !1; + var n = hE(e); + return !!n && t.some((e => Uk(n, e))) + }(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${oE(e)}.\nUrl: ${hE(e)}`), !0; if (! function(e, t) { - if (!t || !t.length) return !0; - var n = iE(e); - return !n || t.some((e => Rk(n, e))) - }(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Xk(e)}.\nUrl: ${iE(e)}`), !0; + if (!t || !t.length) return !0; + var n = hE(e); + return !n || t.some((e => Uk(n, e))) + }(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${oE(e)}.\nUrl: ${hE(e)}`), !0; return !1 }(e, o) ? null : e } @@ -52597,7 +53326,7 @@ } } - function iE(e) { + function hE(e) { try { let n; try { @@ -52610,38 +53339,38 @@ } return null }(n) : null - } catch (ic) { - return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error(`Cannot extract url for event ${Xk(e)}`), null + } catch (Js) { + return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error(`Cannot extract url for event ${oE(e)}`), null } } - aE.__initStatic(); - var oE, sE = n(9846), - lE = n(9509); + pE.__initStatic(); + var fE, mE = n(9846), + gE = n(9509); - function cE(e) { - return new dE((t => { + function vE(e) { + return new _E((t => { t(e) })) } - function uE(e) { - return new dE(((t, n) => { + function yE(e) { + return new _E(((t, n) => { n(e) })) }! function(e) { e[e.PENDING = 0] = "PENDING"; e[e.RESOLVED = 1] = "RESOLVED"; e[e.REJECTED = 2] = "REJECTED" - }(oE || (oE = {})); - class dE { + }(fE || (fE = {})); + class _E { __init() { - this._state = oE.PENDING + this._state = fE.PENDING } __init2() { this._handlers = [] } constructor(e) { - dE.prototype.__init.call(this), dE.prototype.__init2.call(this), dE.prototype.__init3.call(this), dE.prototype.__init4.call(this), dE.prototype.__init5.call(this), dE.prototype.__init6.call(this); + _E.prototype.__init.call(this), _E.prototype.__init2.call(this), _E.prototype.__init3.call(this), _E.prototype.__init4.call(this), _E.prototype.__init5.call(this), _E.prototype.__init6.call(this); try { e(this._resolve, this._reject) } catch (t) { @@ -52649,7 +53378,7 @@ } } then(e, t) { - return new dE(((n, r) => { + return new _E(((n, r) => { this._handlers.push([!1, t => { if (e) try { n(e(t)) @@ -52667,7 +53396,7 @@ } catch (e) { return this.then((e => e), e) } finally(e) { - return new dE(((t, n) => { + return new _E(((t, n) => { let r, a; return this.then((t => { a = !1, r = t, e && e() @@ -52680,35 +53409,35 @@ } __init3() { this._resolve = e => { - this._setResult(oE.RESOLVED, e) + this._setResult(fE.RESOLVED, e) } } __init4() { this._reject = e => { - this._setResult(oE.REJECTED, e) + this._setResult(fE.REJECTED, e) } } __init5() { this._setResult = (e, t) => { - this._state === oE.PENDING && (Ok(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) + this._state === fE.PENDING && (Nk(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) } } __init6() { this._executeHandlers = () => { - if (this._state !== oE.PENDING) { + if (this._state !== fE.PENDING) { var e = this._handlers.slice(); this._handlers = [], e.forEach((e => { - e[0] || (this._state === oE.RESOLVED && e[1](this._value), this._state === oE.REJECTED && e[2](this._value), e[0] = !0) + e[0] || (this._state === fE.RESOLVED && e[1](this._value), this._state === fE.REJECTED && e[2](this._value), e[0] = !0) })) } } } } - function pE(e) { - var t = (0, sE.ph)(), + function bE(e) { + var t = (0, mE.ph)(), n = { - sid: Qk(), + sid: aE(), init: !0, timestamp: t, started: t, @@ -52717,7 +53446,7 @@ errors: 0, ignoreDuration: !1, toJSON: () => function(e) { - return Vk({ + return Kk({ sid: `${e.sid}`, init: e.init, started: new Date(1e3 * e.started).toISOString(), @@ -52735,11 +53464,11 @@ }) }(n) }; - return e && hE(n, e), n + return e && xE(n, e), n } - function hE(e, t = {}) { - if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || (0, sE.ph)(), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : Qk()), void 0 !== t.init && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), "number" === typeof t.started && (e.started = t.started), e.ignoreDuration) e.duration = void 0; + function xE(e, t = {}) { + if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || (0, mE.ph)(), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : aE()), void 0 !== t.init && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), "number" === typeof t.started && (e.started = t.started), e.ignoreDuration) e.duration = void 0; else if ("number" === typeof t.duration) e.duration = t.duration; else { var n = e.timestamp - e.started; @@ -52747,12 +53476,12 @@ } t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), "number" === typeof t.errors && (e.errors = t.errors), t.status && (e.status = t.status) } - class fE { + class wE { constructor() { this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {} } static clone(e) { - var t = new fE; + var t = new wE; return e && (t._breadcrumbs = [...e._breadcrumbs], t._tags = { ...e._tags }, t._extra = { @@ -52768,7 +53497,7 @@ return this._eventProcessors.push(e), this } setUser(e) { - return this._user = e || {}, this._session && hE(this._session, { + return this._user = e || {}, this._session && xE(this._session, { user: e }), this._notifyScopeListeners(), this } @@ -52840,9 +53569,9 @@ if (!e) return this; if ("function" === typeof e) { var t = e(this); - return t instanceof fE ? t : this + return t instanceof wE ? t : this } - return e instanceof fE ? (this._tags = { + return e instanceof wE ? (this._tags = { ...this._tags, ...e._tags }, this._extra = { @@ -52851,7 +53580,7 @@ }, this._contexts = { ...this._contexts, ...e._contexts - }, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : Ek(e) && (this._tags = { + }, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : Tk(e) && (this._tags = { ...this._tags, ...e.tags }, this._extra = { @@ -52869,7 +53598,7 @@ var n = "number" === typeof t ? t : 100; if (n <= 0) return this; var r = { - timestamp: (0, sE.yW)(), + timestamp: (0, mE.yW)(), ...e }; return this._breadcrumbs = [...this._breadcrumbs, r].slice(-n), this._notifyScopeListeners(), this @@ -52888,18 +53617,18 @@ } applyToEvent(e, t = {}) { if (this._extra && Object.keys(this._extra).length && (e.extra = { - ...this._extra, - ...e.extra - }), this._tags && Object.keys(this._tags).length && (e.tags = { - ...this._tags, - ...e.tags - }), this._user && Object.keys(this._user).length && (e.user = { - ...this._user, - ...e.user - }), this._contexts && Object.keys(this._contexts).length && (e.contexts = { - ...this._contexts, - ...e.contexts - }), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) { + ...this._extra, + ...e.extra + }), this._tags && Object.keys(this._tags).length && (e.tags = { + ...this._tags, + ...e.tags + }), this._user && Object.keys(this._user).length && (e.user = { + ...this._user, + ...e.user + }), this._contexts && Object.keys(this._contexts).length && (e.contexts = { + ...this._contexts, + ...e.contexts + }), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) { e.contexts = { trace: this._span.getTraceContext(), ...e.contexts @@ -52913,7 +53642,7 @@ return this._applyFingerprint(e), e.breadcrumbs = [...e.breadcrumbs || [], ...this._breadcrumbs], e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : void 0, e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...this._sdkProcessingMetadata - }, this._notifyEventProcessors([...mE(), ...this._eventProcessors], e, t) + }, this._notifyEventProcessors([...kE(), ...this._eventProcessors], e, t) } setSDKProcessingMetadata(e) { return this._sdkProcessingMetadata = { @@ -52922,14 +53651,14 @@ }, this } _notifyEventProcessors(e, t, n, r = 0) { - return new dE(((a, i) => { + return new _E(((a, i) => { var o = e[r]; if (null === t || "function" !== typeof o) a(t); else { var s = o({ ...t }, n); - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && o.id && null === s && Kk.log(`Event processor "${o.id}" dropped event`), Ok(s) ? s.then((t => this._notifyEventProcessors(e, t, n, r + 1).then(a))).then(null, i) : this._notifyEventProcessors(e, s, n, r + 1).then(a).then(null, i) + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && o.id && null === s && rE.log(`Event processor "${o.id}" dropped event`), Nk(s) ? s.then((t => this._notifyEventProcessors(e, t, n, r + 1).then(a))).then(null, i) : this._notifyEventProcessors(e, s, n, r + 1).then(a).then(null, i) } })) } @@ -52939,24 +53668,24 @@ })), this._notifyingListeners = !1) } _applyFingerprint(e) { - e.fingerprint = e.fingerprint ? nE(e.fingerprint) : [], this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint + e.fingerprint = e.fingerprint ? uE(e.fingerprint) : [], this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint } } - function mE() { - return (0, gk.Y)("globalEventProcessors", (() => [])) + function kE() { + return (0, Ek.Y)("globalEventProcessors", (() => [])) } - function gE(e) { - mE().push(e) + function EE(e) { + kE().push(e) } - var vE = 100; - class yE { + var SE = 100; + class OE { __init() { this._stack = [{}] } - constructor(e, t = new fE, n = 4) { - this._version = n, yE.prototype.__init.call(this), this.getStackTop().scope = t, e && this.bindClient(e) + constructor(e, t = new wE, n = 4) { + this._version = n, OE.prototype.__init.call(this), this.getStackTop().scope = t, e && this.bindClient(e) } isOlderThan(e) { return this._version < e @@ -52965,7 +53694,7 @@ this.getStackTop().client = e, e && e.setupIntegrations && e.setupIntegrations() } pushScope() { - var e = fE.clone(this.getScope()); + var e = wE.clone(this.getScope()); return this.getStack().push({ client: this.getClient(), scope: e @@ -52995,7 +53724,7 @@ return this._stack[this._stack.length - 1] } captureException(e, t) { - var n = this._lastEventId = t && t.event_id ? t.event_id : Qk(), + var n = this._lastEventId = t && t.event_id ? t.event_id : aE(), r = new Error("Sentry syntheticException"); return this._withClient(((a, i) => { a.captureException(e, { @@ -53007,7 +53736,7 @@ })), n } captureMessage(e, t, n) { - var r = this._lastEventId = n && n.event_id ? n.event_id : Qk(), + var r = this._lastEventId = n && n.event_id ? n.event_id : aE(), a = new Error(e); return this._withClient(((i, o) => { i.captureMessage(e, t, { @@ -53019,7 +53748,7 @@ })), r } captureEvent(e, t) { - var n = t && t.event_id ? t.event_id : Qk(); + var n = t && t.event_id ? t.event_id : aE(); return "transaction" !== e.type && (this._lastEventId = n), this._withClient(((r, a) => { r.captureEvent(e, { ...t, @@ -53038,14 +53767,14 @@ if (!n || !r) return; const { beforeBreadcrumb: a = null, - maxBreadcrumbs: i = vE + maxBreadcrumbs: i = SE } = r.getOptions && r.getOptions() || {}; if (!(i <= 0)) { var o = { - timestamp: (0, sE.yW)(), + timestamp: (0, mE.yW)(), ...e }, - s = a ? Hk((() => a(o, t))) : o; + s = a ? tE((() => a(o, t))) : o; null !== s && n.addBreadcrumb(s, i) } } @@ -53081,11 +53810,11 @@ t && n && e(t) } run(e) { - var t = bE(this); + var t = IE(this); try { e(this) } finally { - bE(t) + IE(t) } } getIntegration(e) { @@ -53094,7 +53823,7 @@ try { return t.getIntegration(e) } catch (n) { - return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null + return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null } } startTransaction(e, t) { @@ -53117,7 +53846,7 @@ status: t } : "ok" === e.status && (n = { status: "exited" - }), hE(e, n) + }), xE(e, n) }(n), this._sendSessionUpdate(), t && t.setSession() } startSession(e) { @@ -53128,11 +53857,11 @@ release: r, environment: a } = n && n.getOptions() || {}; - var i = (0, gk.R)(); + var i = (0, Ek.R)(); const { userAgent: o } = i.navigator || {}; - var s = pE({ + var s = bE({ release: r, environment: a, ...t && { @@ -53145,7 +53874,7 @@ }); if (t) { var l = t.getSession && t.getSession(); - l && "ok" === l.status && hE(l, { + l && "ok" === l.status && xE(l, { status: "exited" }), this.endSession(), t.setSession(s) } @@ -53174,57 +53903,57 @@ n && e(n, t) } _callExtensionMethod(e, ...t) { - var n = _E().__SENTRY__; + var n = PE().__SENTRY__; if (n && n.extensions && "function" === typeof n.extensions[e]) return n.extensions[e].apply(this, t); - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Extension method ${e} couldn't be found, doing nothing.`) + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Extension method ${e} couldn't be found, doing nothing.`) } } - function _E() { - var e = (0, gk.R)(); + function PE() { + var e = (0, Ek.R)(); return e.__SENTRY__ = e.__SENTRY__ || { extensions: {}, hub: void 0 }, e } - function bE(e) { - var t = _E(), - n = kE(t); - return EE(t, e), n + function IE(e) { + var t = PE(), + n = CE(t); + return TE(t, e), n } - function xE() { - var e = _E(); - return wE(e) && !kE(e).isOlderThan(4) || EE(e, new yE), (0, lE.KV)() ? function(e) { + function AE() { + var e = PE(); + return RE(e) && !CE(e).isOlderThan(4) || TE(e, new OE), (0, gE.KV)() ? function(e) { try { - var t = _E().__SENTRY__, + var t = PE().__SENTRY__, n = t && t.extensions && t.extensions.domain && t.extensions.domain.active; - if (!n) return kE(e); - if (!wE(n) || kE(n).isOlderThan(4)) { - var r = kE(e).getStackTop(); - EE(n, new yE(r.client, fE.clone(r.scope))) + if (!n) return CE(e); + if (!RE(n) || CE(n).isOlderThan(4)) { + var r = CE(e).getStackTop(); + TE(n, new OE(r.client, wE.clone(r.scope))) } - return kE(n) + return CE(n) } catch (a) { - return kE(e) + return CE(e) } - }(e) : kE(e) + }(e) : CE(e) } - function wE(e) { + function RE(e) { return !!(e && e.__SENTRY__ && e.__SENTRY__.hub) } - function kE(e) { - return (0, gk.Y)("hub", (() => new yE), e) + function CE(e) { + return (0, Ek.Y)("hub", (() => new OE), e) } - function EE(e, t) { + function TE(e, t) { return !!e && ((e.__SENTRY__ = e.__SENTRY__ || {}).hub = t, !0) } - function SE(e) { + function DE(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -53236,7 +53965,7 @@ return n } - function OE(...e) { + function NE(...e) { var t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1])); return (e, n = 0) => { var r = []; @@ -53250,11 +53979,11 @@ } } } - return PE(r) + return LE(r) } } - function PE(e) { + function LE(e) { if (!e.length) return []; let t = e; var n = t[0].function || "", @@ -53265,17 +53994,17 @@ function: e.function || "?" }))).reverse() } - var IE = ""; + var jE = ""; - function AE(e) { + function ME(e) { try { - return e && "function" === typeof e && e.name || IE + return e && "function" === typeof e && e.name || jE } catch (t) { - return IE + return jE } } - function CE(e) { + function zE(e) { var t = /^\s*[-]{4,}$/, n = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/; return r => { @@ -53296,11 +54025,11 @@ l = void 0 } o && (l = i, c = o), "" === o && (c = void 0, s = void 0), void 0 === s && (c = c || "", s = l ? `${l}.${c}` : c); - var d = SE([a, "access", e => e[2], "optionalAccess", e => e.startsWith, "call", e => e("file://")]) ? a[2].substr(7) : a[2], + var d = DE([a, "access", e => e[2], "optionalAccess", e => e.startsWith, "call", e => e("file://")]) ? a[2].substr(7) : a[2], p = !("native" === a[5] || d && !d.startsWith("/") && !d.startsWith(".") && 1 !== d.indexOf(":\\")) && void 0 !== d && !d.includes("node_modules/"); return { filename: d, - module: SE([e, "optionalCall", e => e(d)]), + module: DE([e, "optionalCall", e => e(d)]), function: s, lineno: parseInt(a[3], 10) || void 0, colno: parseInt(a[4], 10) || void 0, @@ -53309,8 +54038,8 @@ } } - function TE() { - if (!("fetch" in (0, gk.R)())) return !1; + function FE() { + if (!("fetch" in (0, Ek.R)())) return !1; try { return new Headers, new Request("http://www.example.com"), new Response, !0 } catch (e) { @@ -53318,25 +54047,25 @@ } } - function RE(e) { + function UE(e) { return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()) } - var DE = (0, gk.R)(), - NE = {}, - jE = {}; + var VE = (0, Ek.R)(), + GE = {}, + BE = {}; - function LE(e) { - if (!jE[e]) switch (jE[e] = !0, e) { + function qE(e) { + if (!BE[e]) switch (BE[e] = !0, e) { case "console": ! function() { - if (!("console" in DE)) return; - Wk.forEach((function(e) { - e in DE.console && Dk(DE.console, e, (function(t) { + if (!("console" in VE)) return; + eE.forEach((function(e) { + e in VE.console && Vk(VE.console, e, (function(t) { return function(...n) { - zE("console", { + WE("console", { args: n, level: e - }), t && t.apply(DE.console, n) + }), t && t.apply(VE.console, n) } })) })) @@ -53344,12 +54073,12 @@ break; case "dom": ! function() { - if (!("document" in DE)) return; - var e = zE.bind(null, "dom"), - t = qE(e, !0); - DE.document.addEventListener("click", t, !1), DE.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { - var n = DE[t] && DE[t].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Dk(n, "addEventListener", (function(t) { + if (!("document" in VE)) return; + var e = WE.bind(null, "dom"), + t = XE(e, !0); + VE.document.addEventListener("click", t, !1), VE.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { + var n = VE[t] && VE[t].prototype; + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Vk(n, "addEventListener", (function(t) { return function(n, r, a) { if ("click" === n || "keypress" == n) try { var i = this, @@ -53358,14 +54087,14 @@ refCount: 0 }; if (!s.handler) { - var l = qE(e); + var l = XE(e); s.handler = l, t.call(this, n, l, a) } s.refCount += 1 } catch (c) {} return t.call(this, n, r, a) } - })), Dk(n, "removeEventListener", (function(e) { + })), Vk(n, "removeEventListener", (function(e) { return function(t, n, r) { if ("click" === t || "keypress" == t) try { var a = this, @@ -53381,23 +54110,23 @@ break; case "xhr": ! function() { - if (!("XMLHttpRequest" in DE)) return; + if (!("XMLHttpRequest" in VE)) return; var e = XMLHttpRequest.prototype; - Dk(e, "open", (function(e) { + Vk(e, "open", (function(e) { return function(...t) { var n = this, r = t[1], a = n.__sentry_xhr__ = { - method: wk(t[0]) ? t[0].toUpperCase() : t[0], + method: Rk(t[0]) ? t[0].toUpperCase() : t[0], url: t[1] }; - wk(r) && "POST" === a.method && r.match(/sentry_key/) && (n.__sentry_own_request__ = !0); + Rk(r) && "POST" === a.method && r.match(/sentry_key/) && (n.__sentry_own_request__ = !0); var i = function() { if (4 === n.readyState) { try { a.status_code = n.status } catch (e) {} - zE("xhr", { + WE("xhr", { args: t, endTimestamp: Date.now(), startTimestamp: Date.now(), @@ -53405,15 +54134,15 @@ }) } }; - return "onreadystatechange" in n && "function" === typeof n.onreadystatechange ? Dk(n, "onreadystatechange", (function(e) { + return "onreadystatechange" in n && "function" === typeof n.onreadystatechange ? Vk(n, "onreadystatechange", (function(e) { return function(...t) { return i(), e.apply(n, t) } })) : n.addEventListener("readystatechange", i), e.apply(n, t) } - })), Dk(e, "send", (function(e) { + })), Vk(e, "send", (function(e) { return function(...t) { - return this.__sentry_xhr__ && void 0 !== t[0] && (this.__sentry_xhr__.body = t[0]), zE("xhr", { + return this.__sentry_xhr__ && void 0 !== t[0] && (this.__sentry_xhr__.body = t[0]), WE("xhr", { args: t, startTimestamp: Date.now(), xhr: this @@ -53425,37 +54154,37 @@ case "fetch": ! function() { if (! function() { - if (!TE()) return !1; - var e = (0, gk.R)(); - if (RE(e.fetch)) return !0; - let t = !1; - var n = e.document; - if (n && "function" === typeof n.createElement) try { - var r = n.createElement("iframe"); - r.hidden = !0, n.head.appendChild(r), r.contentWindow && r.contentWindow.fetch && (t = RE(r.contentWindow.fetch)), n.head.removeChild(r) - } catch (a) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a) - } - return t - }()) return; - Dk(DE, "fetch", (function(e) { + if (!FE()) return !1; + var e = (0, Ek.R)(); + if (UE(e.fetch)) return !0; + let t = !1; + var n = e.document; + if (n && "function" === typeof n.createElement) try { + var r = n.createElement("iframe"); + r.hidden = !0, n.head.appendChild(r), r.contentWindow && r.contentWindow.fetch && (t = UE(r.contentWindow.fetch)), n.head.removeChild(r) + } catch (a) { + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a) + } + return t + }()) return; + Vk(VE, "fetch", (function(e) { return function(...t) { var n = { args: t, fetchData: { - method: FE(t), - url: UE(t) + method: HE(t), + url: YE(t) }, startTimestamp: Date.now() }; - return zE("fetch", { + return WE("fetch", { ...n - }), e.apply(DE, t).then((e => (zE("fetch", { + }), e.apply(VE, t).then((e => (WE("fetch", { ...n, endTimestamp: Date.now(), response: e }), e)), (e => { - throw zE("fetch", { + throw WE("fetch", { ...n, endTimestamp: Date.now(), error: e @@ -53468,21 +54197,21 @@ case "history": ! function() { if (! function() { - var e = (0, gk.R)(), - t = e.chrome, - n = t && t.app && t.app.runtime, - r = "history" in e && !!e.history.pushState && !!e.history.replaceState; - return !n && r - }()) return; - var e = DE.onpopstate; + var e = (0, Ek.R)(), + t = e.chrome, + n = t && t.app && t.app.runtime, + r = "history" in e && !!e.history.pushState && !!e.history.replaceState; + return !n && r + }()) return; + var e = VE.onpopstate; function t(e) { return function(...t) { var n = t.length > 2 ? t[2] : void 0; if (n) { - var r = VE, + var r = KE, a = String(n); - VE = a, zE("history", { + KE = a, WE("history", { from: r, to: a }) @@ -53490,97 +54219,97 @@ return e.apply(this, t) } } - DE.onpopstate = function(...t) { - var n = DE.location.href, - r = VE; - if (VE = n, zE("history", { - from: r, - to: n - }), e) try { + VE.onpopstate = function(...t) { + var n = VE.location.href, + r = KE; + if (KE = n, WE("history", { + from: r, + to: n + }), e) try { return e.apply(this, t) } catch (a) {} - }, Dk(DE.history, "pushState", t), Dk(DE.history, "replaceState", t) + }, Vk(VE.history, "pushState", t), Vk(VE.history, "replaceState", t) }(); break; case "error": - $E = DE.onerror, DE.onerror = function(e, t, n, r, a) { - return zE("error", { + JE = VE.onerror, VE.onerror = function(e, t, n, r, a) { + return WE("error", { column: r, error: a, line: n, msg: e, url: t - }), !!$E && $E.apply(this, arguments) + }), !!JE && JE.apply(this, arguments) }; break; case "unhandledrejection": - WE = DE.onunhandledrejection, DE.onunhandledrejection = function(e) { - return zE("unhandledrejection", e), !WE || WE.apply(this, arguments) + eS = VE.onunhandledrejection, VE.onunhandledrejection = function(e) { + return WE("unhandledrejection", e), !eS || eS.apply(this, arguments) }; break; default: - return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("unknown instrumentation type:", e)) + return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("unknown instrumentation type:", e)) } } - function ME(e, t) { - NE[e] = NE[e] || [], NE[e].push(t), LE(e) + function $E(e, t) { + GE[e] = GE[e] || [], GE[e].push(t), qE(e) } - function zE(e, t) { - if (e && NE[e]) - for (var n of NE[e] || []) try { + function WE(e, t) { + if (e && GE[e]) + for (var n of GE[e] || []) try { n(t) } catch (r) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${AE(n)}\nError:`, r) + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ME(n)}\nError:`, r) } } - function FE(e = []) { - return "Request" in DE && Pk(e[0], Request) && e[0].method ? String(e[0].method).toUpperCase() : e[1] && e[1].method ? String(e[1].method).toUpperCase() : "GET" + function HE(e = []) { + return "Request" in VE && Lk(e[0], Request) && e[0].method ? String(e[0].method).toUpperCase() : e[1] && e[1].method ? String(e[1].method).toUpperCase() : "GET" } - function UE(e = []) { - return "string" === typeof e[0] ? e[0] : "Request" in DE && Pk(e[0], Request) ? e[0].url : String(e[0]) + function YE(e = []) { + return "string" === typeof e[0] ? e[0] : "Request" in VE && Lk(e[0], Request) ? e[0].url : String(e[0]) } - let VE; - let BE, GE; + let KE; + let QE, ZE; - function qE(e, t = !1) { + function XE(e, t = !1) { return n => { - if (n && GE !== n && ! function(e) { - if ("keypress" !== e.type) return !1; - try { - var t = e.target; - if (!t || !t.tagName) return !0; - if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1 - } catch (n) {} - return !0 - }(n)) { + if (n && ZE !== n && ! function(e) { + if ("keypress" !== e.type) return !1; + try { + var t = e.target; + if (!t || !t.tagName) return !0; + if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1 + } catch (n) {} + return !0 + }(n)) { var r = "keypress" === n.type ? "input" : n.type; - (void 0 === BE || function(e, t) { + (void 0 === QE || function(e, t) { if (!e) return !0; if (e.type !== t.type) return !0; try { if (e.target !== t.target) return !0 } catch (n) {} return !1 - }(GE, n)) && (e({ + }(ZE, n)) && (e({ event: n, name: r, global: t - }), GE = n), clearTimeout(BE), BE = DE.setTimeout((() => { - BE = void 0 + }), ZE = n), clearTimeout(QE), QE = VE.setTimeout((() => { + QE = void 0 }), 1e3) } } } - let $E = null; - let WE = null; + let JE = null; + let eS = null; - function HE(e, t = 1 / 0, n = 1 / 0) { + function tS(e, t = 1 / 0, n = 1 / 0) { try { - return KE("", e, t, n) + return rS("", e, t, n) } catch (r) { return { ERROR: `**non-serializable** (${r})` @@ -53588,15 +54317,15 @@ } } - function YE(e, t = 3, n = 102400) { - var r, a = HE(e, t); + function nS(e, t = 3, n = 102400) { + var r, a = tS(e, t); return r = a, function(e) { return ~-encodeURI(e).split(/%..|./).length - }(JSON.stringify(r)) > n ? YE(e, t - 1, n) : a + }(JSON.stringify(r)) > n ? nS(e, t - 1, n) : a } - function KE(e, t, r = 1 / 0, a = 1 / 0, i = function() { + function rS(e, t, r = 1 / 0, a = 1 / 0, i = function() { var e = "function" === typeof WeakSet, t = e ? new WeakSet : []; return [function(n) { @@ -53619,8 +54348,8 @@ var l, c = function(e, t) { try { return "domain" === e && t && "object" === typeof t && t._events ? "[Domain]" : "domainEmitter" === e ? "[DomainEmitter]" : "undefined" !== typeof n.g && t === n.g ? "[Global]" : "undefined" !== typeof window && t === window ? "[Window]" : "undefined" !== typeof document && t === document ? "[Document]" : function(e) { - return Ek(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e - }(t) ? "[SyntheticEvent]" : "number" === typeof t && t !== t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" === typeof t ? `[Function: ${AE(t)}]` : "symbol" === typeof t ? `[${String(t)}]` : "bigint" === typeof t ? `[BigInt: ${String(t)}]` : `[object ${Object.getPrototypeOf(t).constructor.name}]` + return Tk(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e + }(t) ? "[SyntheticEvent]" : "number" === typeof t && t !== t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" === typeof t ? `[Function: ${ME(t)}]` : "symbol" === typeof t ? `[${String(t)}]` : "bigint" === typeof t ? `[BigInt: ${String(t)}]` : `[object ${Object.getPrototypeOf(t).constructor.name}]` } catch (r) { return `**non-serializable** (${r})` } @@ -53631,11 +54360,11 @@ if (o(t)) return "[Circular ~]"; var u = t; if (u && "function" === typeof u.toJSON) try { - return KE("", u.toJSON(), r - 1, a, i) + return rS("", u.toJSON(), r - 1, a, i) } catch (g) {} var d = Array.isArray(t) ? [] : {}; let p = 0; - var h = Mk(t); + var h = $k(t); for (var f in h) if (Object.prototype.hasOwnProperty.call(h, f)) { if (p >= a) { @@ -53643,35 +54372,35 @@ break } var m = h[f]; - d[f] = KE(f, m, r - 1, a, i), p += 1 + d[f] = rS(f, m, r - 1, a, i), p += 1 } return s(t), d } - function QE(e, t) { - var n = XE(e, t), + function aS(e, t) { + var n = oS(e, t), r = { type: t && t.name, - value: eS(t) + value: lS(t) }; return n.length && (r.stacktrace = { frames: n }), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r } - function ZE(e, t) { + function iS(e, t) { return { exception: { - values: [QE(e, t)] + values: [aS(e, t)] } } } - function XE(e, t) { + function oS(e, t) { var n = t.stacktrace || t.stack || "", r = function(e) { if (e) { if ("number" === typeof e.framesToPop) return e.framesToPop; - if (JE.test(e.message)) return 1 + if (sS.test(e.message)) return 1 } return 0 }(t); @@ -53680,63 +54409,63 @@ } catch (a) {} return [] } - var JE = /Minified React error #\d+;/i; + var sS = /Minified React error #\d+;/i; - function eS(e) { + function lS(e) { var t = e && e.message; return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message" } - function tS(e, t, n, r, a) { + function cS(e, t, n, r, a) { let i; - if (bk(t) && t.error) return ZE(e, t.error); - if (xk(t) || _k(t, "DOMException")) { + if (Ik(t) && t.error) return iS(e, t.error); + if (Ak(t) || Pk(t, "DOMException")) { var o = t; - if ("stack" in t) i = ZE(e, t); + if ("stack" in t) i = iS(e, t); else { - var s = o.name || (xk(o) ? "DOMError" : "DOMException"), + var s = o.name || (Ak(o) ? "DOMError" : "DOMException"), l = o.message ? `${s}: ${o.message}` : s; - i = nS(e, l, n, r), Jk(i, l) + i = uS(e, l, n, r), sE(i, l) } return "code" in o && (i.tags = { ...i.tags, "DOMException.code": `${o.code}` }), i } - return yk(t) ? ZE(e, t) : Ek(t) || Sk(t) ? (i = function(e, t, n, r) { - var a = xE().getClient(), + return Ok(t) ? iS(e, t) : Tk(t) || Dk(t) ? (i = function(e, t, n, r) { + var a = AE().getClient(), i = a && a.getOptions().normalizeDepth, o = { exception: { values: [{ - type: Sk(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", - value: `Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Uk(t)}` + type: Dk(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", + value: `Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Yk(t)}` }] }, extra: { - __serialized__: YE(t, i) + __serialized__: nS(t, i) } }; if (n) { - var s = XE(e, n); + var s = oS(e, n); s.length && (o.exception.values[0].stacktrace = { frames: s }) } return o - }(e, t, n, a), eE(i, { + }(e, t, n, a), lE(i, { synthetic: !0 - }), i) : (i = nS(e, t, n, r), Jk(i, `${t}`, void 0), eE(i, { + }), i) : (i = uS(e, t, n, r), sE(i, `${t}`, void 0), lE(i, { synthetic: !0 }), i) } - function nS(e, t, n, r) { + function uS(e, t, n, r) { var a = { message: t }; if (r && n) { - var i = XE(e, n); + var i = oS(e, n); i.length && (a.exception = { values: [{ value: t, @@ -53749,33 +54478,33 @@ return a } - function rS(e, t) { - return xE().captureException(e, { + function dS(e, t) { + return AE().captureException(e, { captureContext: t }) } - function aS(e) { - xE().withScope(e) + function pS(e) { + AE().withScope(e) } - let iS = 0; + let hS = 0; - function oS() { - return iS > 0 + function fS() { + return hS > 0 } - function sS() { - iS += 1, setTimeout((() => { - iS -= 1 + function mS() { + hS += 1, setTimeout((() => { + hS -= 1 })) } - function lS(e, t = {}, n) { + function gS(e, t = {}, n) { if ("function" !== typeof e) return e; try { var r = e.__sentry_wrapped__; if (r) return r; - if (Lk(e)) return e + if (qk(e)) return e } catch (o) { return e } @@ -53783,21 +54512,21 @@ var r = Array.prototype.slice.call(arguments); try { n && "function" === typeof n && n.apply(this, arguments); - var a = r.map((e => lS(e, t))); + var a = r.map((e => gS(e, t))); return e.apply(this, a) - } catch (Ri) { - throw sS(), aS((n => { - n.addEventProcessor((e => (t.mechanism && (Jk(e, void 0, void 0), eE(e, t.mechanism)), e.extra = { + } catch (Ti) { + throw mS(), pS((n => { + n.addEventProcessor((e => (t.mechanism && (sE(e, void 0, void 0), lE(e, t.mechanism)), e.extra = { ...e.extra, arguments: r - }, e))), rS(Ri) - })), Ri + }, e))), dS(Ti) + })), Ti } }; try { for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (a[i] = e[i]) } catch (s) {} - jk(a, e), Nk(e, "__sentry_wrapped__", a); + Bk(a, e), Gk(e, "__sentry_wrapped__", a); try { Object.getOwnPropertyDescriptor(a, "name").configurable && Object.defineProperty(a, "name", { get: () => e.name @@ -53805,21 +54534,21 @@ } catch (s) {} return a } - class cS { + class vS { static __initStatic() { this.id = "GlobalHandlers" } __init() { - this.name = cS.id + this.name = vS.id } __init2() { this._installFunc = { - onerror: uS, - onunhandledrejection: dS + onerror: yS, + onunhandledrejection: _S } } constructor(e) { - cS.prototype.__init.call(this), cS.prototype.__init2.call(this), this._options = { + vS.prototype.__init.call(this), vS.prototype.__init2.call(this), this._options = { onerror: !0, onunhandledrejection: !0, ...e @@ -53830,15 +54559,15 @@ var e, t = this._options; for (var n in t) { var r = this._installFunc[n]; - r && t[n] && (e = n, ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log(`Global Handler attached: ${e}`), r(), this._installFunc[n] = void 0) + r && t[n] && (e = n, ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log(`Global Handler attached: ${e}`), r(), this._installFunc[n] = void 0) } } } - function uS() { - ME("error", (e => { - const [t, n, r] = fS(); - if (!t.getIntegration(cS)) return; + function yS() { + $E("error", (e => { + const [t, n, r] = wS(); + if (!t.getIntegration(vS)) return; const { msg: a, url: i, @@ -53846,10 +54575,10 @@ column: s, error: l } = e; - if (!(oS() || l && l.__sentry_own_request__)) { - var c = void 0 === l && wk(a) ? function(e, t, n, r) { + if (!(fS() || l && l.__sentry_own_request__)) { + var c = void 0 === l && Rk(a) ? function(e, t, n, r) { var a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i; - let i = bk(e) ? e.message : e, + let i = Ik(e) ? e.message : e, o = "Error"; var s = i.match(a); s && (o = s[1], i = s[2]); @@ -53861,35 +54590,35 @@ }] } }; - return pS(l, t, n, r) - }(a, i, o, s) : pS(tS(n, l || a, void 0, r, !1), i, o, s); - c.level = "error", hS(t, l, c, "onerror") + return bS(l, t, n, r) + }(a, i, o, s) : bS(cS(n, l || a, void 0, r, !1), i, o, s); + c.level = "error", xS(t, l, c, "onerror") } })) } - function dS() { - ME("unhandledrejection", (e => { - const [t, n, r] = fS(); - if (!t.getIntegration(cS)) return; + function _S() { + $E("unhandledrejection", (e => { + const [t, n, r] = wS(); + if (!t.getIntegration(vS)) return; let a = e; try { "reason" in e ? a = e.reason : "detail" in e && "reason" in e.detail && (a = e.detail.reason) } catch (o) {} - if (oS() || a && a.__sentry_own_request__) return !0; - var i = kk(a) ? { + if (fS() || a && a.__sentry_own_request__) return !0; + var i = Ck(a) ? { exception: { values: [{ type: "UnhandledRejection", value: `Non-Error promise rejection captured with value: ${String(a)}` }] } - } : tS(n, a, void 0, r, !0); - i.level = "error", hS(t, a, i, "onunhandledrejection") + } : cS(n, a, void 0, r, !0); + i.level = "error", xS(t, a, i, "onunhandledrejection") })) } - function pS(e, t, n, r) { + function bS(e, t, n, r) { var a = e.exception = e.exception || {}, i = a.values = a.values || [], o = i[0] = i[0] || {}, @@ -53897,11 +54626,11 @@ l = s.frames = s.frames || [], c = isNaN(parseInt(r, 10)) ? void 0 : r, u = isNaN(parseInt(n, 10)) ? void 0 : n, - d = wk(t) && t.length > 0 ? t : function() { - var e = (0, gk.R)(); + d = Rk(t) && t.length > 0 ? t : function() { + var e = (0, Ek.R)(); try { return e.document.location.href - } catch (ic) { + } catch (Js) { return "" } }(); @@ -53914,8 +54643,8 @@ }), e } - function hS(e, t, n, r) { - eE(n, { + function xS(e, t, n, r) { + lE(n, { handled: !1, type: r }), e.captureEvent(n, { @@ -53923,8 +54652,8 @@ }) } - function fS() { - var e = xE(), + function wS() { + var e = AE(), t = e.getClient(), n = t && t.getOptions() || { stackParser: () => [], @@ -53932,17 +54661,17 @@ }; return [e, n.stackParser, n.attachStacktrace] } - cS.__initStatic(); - var mS = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"]; - class gS { + vS.__initStatic(); + var kS = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"]; + class ES { static __initStatic() { this.id = "TryCatch" } __init() { - this.name = gS.id + this.name = ES.id } constructor(e) { - gS.prototype.__init.call(this), this._options = { + ES.prototype.__init.call(this), this._options = { XMLHttpRequest: !0, eventTarget: !0, requestAnimationFrame: !0, @@ -53952,20 +54681,20 @@ } } setupOnce() { - var e = (0, gk.R)(); - this._options.setTimeout && Dk(e, "setTimeout", vS), this._options.setInterval && Dk(e, "setInterval", vS), this._options.requestAnimationFrame && Dk(e, "requestAnimationFrame", yS), this._options.XMLHttpRequest && "XMLHttpRequest" in e && Dk(XMLHttpRequest.prototype, "send", _S); + var e = (0, Ek.R)(); + this._options.setTimeout && Vk(e, "setTimeout", SS), this._options.setInterval && Vk(e, "setInterval", SS), this._options.requestAnimationFrame && Vk(e, "requestAnimationFrame", OS), this._options.XMLHttpRequest && "XMLHttpRequest" in e && Vk(XMLHttpRequest.prototype, "send", PS); var t = this._options.eventTarget; - t && (Array.isArray(t) ? t : mS).forEach(bS) + t && (Array.isArray(t) ? t : kS).forEach(IS) } } - function vS(e) { + function SS(e) { return function(...t) { var n = t[0]; - return t[0] = lS(n, { + return t[0] = gS(n, { mechanism: { data: { - function: AE(e) + function: ME(e) }, handled: !0, type: "instrument" @@ -53974,13 +54703,13 @@ } } - function yS(e) { + function OS(e) { return function(t) { - return e.apply(this, [lS(t, { + return e.apply(this, [gS(t, { mechanism: { data: { function: "requestAnimationFrame", - handler: AE(e) + handler: ME(e) }, handled: !0, type: "instrument" @@ -53989,39 +54718,39 @@ } } - function _S(e) { + function PS(e) { return function(...t) { var n = this; return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => { - e in n && "function" === typeof n[e] && Dk(n, e, (function(t) { + e in n && "function" === typeof n[e] && Vk(n, e, (function(t) { var n = { mechanism: { data: { function: e, - handler: AE(t) + handler: ME(t) }, handled: !0, type: "instrument" } }, - r = Lk(t); - return r && (n.mechanism.data.handler = AE(r)), lS(t, n) + r = qk(t); + return r && (n.mechanism.data.handler = ME(r)), gS(t, n) })) })), e.apply(this, t) } } - function bS(e) { - var t = (0, gk.R)(), + function IS(e) { + var t = (0, Ek.R)(), n = t[e] && t[e].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Dk(n, "addEventListener", (function(t) { + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Vk(n, "addEventListener", (function(t) { return function(n, r, a) { try { - "function" === typeof r.handleEvent && (r.handleEvent = lS(r.handleEvent, { + "function" === typeof r.handleEvent && (r.handleEvent = gS(r.handleEvent, { mechanism: { data: { function: "handleEvent", - handler: AE(r), + handler: ME(r), target: e }, handled: !0, @@ -54029,11 +54758,11 @@ } })) } catch (i) {} - return t.apply(this, [n, lS(r, { + return t.apply(this, [n, gS(r, { mechanism: { data: { function: "addEventListener", - handler: AE(r), + handler: ME(r), target: e }, handled: !0, @@ -54041,7 +54770,7 @@ } }), a]) } - })), Dk(n, "removeEventListener", (function(e) { + })), Vk(n, "removeEventListener", (function(e) { return function(t, n, r) { var a = n; try { @@ -54052,14 +54781,14 @@ } }))) } - gS.__initStatic(); - var xS = ["fatal", "error", "warning", "log", "info", "debug"]; + ES.__initStatic(); + var AS = ["fatal", "error", "warning", "log", "info", "debug"]; - function wS(e) { - return "warn" === e ? "warning" : xS.includes(e) ? e : "log" + function RS(e) { + return "warn" === e ? "warning" : AS.includes(e) ? e : "log" } - function kS(e) { + function CS(e) { if (!e) return {}; var t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); if (!t) return {}; @@ -54072,16 +54801,16 @@ relative: t[5] + n + r } } - var ES = "Breadcrumbs"; - class SS { + var TS = "Breadcrumbs"; + class DS { static __initStatic() { - this.id = ES + this.id = TS } __init() { - this.name = SS.id + this.name = DS.id } constructor(e) { - SS.prototype.__init.call(this), this.options = { + DS.prototype.__init.call(this), this.options = { console: !0, dom: !0, fetch: !0, @@ -54092,16 +54821,16 @@ } } setupOnce() { - this.options.console && ME("console", OS), this.options.dom && ME("dom", function(e) { + this.options.console && $E("console", NS), this.options.dom && $E("dom", function(e) { function t(t) { let n, r = "object" === typeof e ? e.serializeAttribute : void 0; "string" === typeof r && (r = [r]); try { - n = t.event.target ? Ik(t.event.target, r) : Ik(t.event, r) + n = t.event.target ? jk(t.event.target, r) : jk(t.event, r) } catch (a) { n = "" } - 0 !== n.length && xE().addBreadcrumb({ + 0 !== n.length && AE().addBreadcrumb({ category: `ui.${t.name}`, message: n }, { @@ -54111,31 +54840,31 @@ }) } return t - }(this.options.dom)), this.options.xhr && ME("xhr", PS), this.options.fetch && ME("fetch", IS), this.options.history && ME("history", AS) + }(this.options.dom)), this.options.xhr && $E("xhr", LS), this.options.fetch && $E("fetch", jS), this.options.history && $E("history", MS) } } - function OS(e) { + function NS(e) { var t = { category: "console", data: { arguments: e.args, logger: "console" }, - level: wS(e.level), - message: Tk(e.args, " ") + level: RS(e.level), + message: Fk(e.args, " ") }; if ("assert" === e.level) { if (!1 !== e.args[0]) return; - t.message = `Assertion failed: ${Tk(e.args.slice(1)," ")||"console.assert"}`, t.data.arguments = e.args.slice(1) + t.message = `Assertion failed: ${Fk(e.args.slice(1)," ")||"console.assert"}`, t.data.arguments = e.args.slice(1) } - xE().addBreadcrumb(t, { + AE().addBreadcrumb(t, { input: e.args, level: e.level }) } - function PS(e) { + function LS(e) { if (e.endTimestamp) { if (e.xhr.__sentry_own_request__) return; const { @@ -54144,7 +54873,7 @@ status_code: r, body: a } = e.xhr.__sentry_xhr__ || {}; - xE().addBreadcrumb({ + AE().addBreadcrumb({ category: "xhr", data: { method: t, @@ -54159,8 +54888,8 @@ } else; } - function IS(e) { - e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? xE().addBreadcrumb({ + function jS(e) { + e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? AE().addBreadcrumb({ category: "fetch", data: e.fetchData, level: "error", @@ -54168,7 +54897,7 @@ }, { data: e.error, input: e.args - }) : xE().addBreadcrumb({ + }) : AE().addBreadcrumb({ category: "fetch", data: { ...e.fetchData, @@ -54181,14 +54910,14 @@ }))) } - function AS(e) { - var t = (0, gk.R)(); + function MS(e) { + var t = (0, Ek.R)(); let n = e.from, r = e.to; - var a = kS(t.location.href); - let i = kS(n); - var o = kS(r); - i.path || (i = a), a.protocol === o.protocol && a.host === o.host && (r = o.relative), a.protocol === i.protocol && a.host === i.host && (n = i.relative), xE().addBreadcrumb({ + var a = CS(t.location.href); + let i = CS(n); + var o = CS(r); + i.path || (i = a), a.protocol === o.protocol && a.host === o.host && (r = o.relative), a.protocol === i.protocol && a.host === i.host && (n = i.relative), AE().addBreadcrumb({ category: "navigation", data: { from: n, @@ -54196,57 +54925,57 @@ } }) } - SS.__initStatic(); - class CS { + DS.__initStatic(); + class zS { static __initStatic() { this.id = "LinkedErrors" } __init() { - this.name = CS.id + this.name = zS.id } constructor(e = {}) { - CS.prototype.__init.call(this), this._key = e.key || "cause", this._limit = e.limit || 5 + zS.prototype.__init.call(this), this._key = e.key || "cause", this._limit = e.limit || 5 } setupOnce() { - var e = xE().getClient(); - e && gE(((t, n) => { - var r = xE().getIntegration(CS); + var e = AE().getClient(); + e && EE(((t, n) => { + var r = AE().getIntegration(zS); return r ? function(e, t, n, r, a) { - if (!r.exception || !r.exception.values || !a || !Pk(a.originalException, Error)) return r; - var i = TS(e, n, a.originalException, t); + if (!r.exception || !r.exception.values || !a || !Lk(a.originalException, Error)) return r; + var i = FS(e, n, a.originalException, t); return r.exception.values = [...i, ...r.exception.values], r }(e.getOptions().stackParser, r._key, r._limit, t, n) : t })) } } - function TS(e, t, n, r, a = []) { - if (!Pk(n[r], Error) || a.length + 1 >= t) return a; - var i = QE(e, n[r]); - return TS(e, t, n[r], r, [i, ...a]) + function FS(e, t, n, r, a = []) { + if (!Lk(n[r], Error) || a.length + 1 >= t) return a; + var i = aS(e, n[r]); + return FS(e, t, n[r], r, [i, ...a]) } - CS.__initStatic(); - var RS = (0, gk.R)(); - class DS { + zS.__initStatic(); + var US = (0, Ek.R)(); + class VS { constructor() { - DS.prototype.__init.call(this) + VS.prototype.__init.call(this) } static __initStatic() { this.id = "HttpContext" } __init() { - this.name = DS.id + this.name = VS.id } setupOnce() { - gE((e => { - if (xE().getIntegration(DS)) { - if (!RS.navigator && !RS.location && !RS.document) return e; - var t = e.request && e.request.url || RS.location && RS.location.href; + EE((e => { + if (AE().getIntegration(VS)) { + if (!US.navigator && !US.location && !US.document) return e; + var t = e.request && e.request.url || US.location && US.location.href; const { referrer: r - } = RS.document || {}, { + } = US.document || {}, { userAgent: a - } = RS.navigator || {}; + } = US.navigator || {}; var n = { ...t && { url: t @@ -54270,45 +54999,45 @@ })) } } - DS.__initStatic(); - class NS { + VS.__initStatic(); + class GS { constructor() { - NS.prototype.__init.call(this) + GS.prototype.__init.call(this) } static __initStatic() { this.id = "Dedupe" } __init() { - this.name = NS.id + this.name = GS.id } setupOnce(e, t) { var n = e => { - var n = t().getIntegration(NS); + var n = t().getIntegration(GS); if (n) { try { if (function(e, t) { - if (!t) return !1; - if (function(e, t) { - var n = e.message, - r = t.message; - if (!n && !r) return !1; - if (n && !r || !n && r) return !1; - if (n !== r) return !1; - if (!LS(e, t)) return !1; - if (!jS(e, t)) return !1; - return !0 - }(e, t)) return !0; - if (function(e, t) { - var n = MS(t), - r = MS(e); - if (!n || !r) return !1; - if (n.type !== r.type || n.value !== r.value) return !1; - if (!LS(e, t)) return !1; - if (!jS(e, t)) return !1; - return !0 - }(e, t)) return !0; - return !1 - }(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("Event dropped due to being a duplicate of previously captured event."), null + if (!t) return !1; + if (function(e, t) { + var n = e.message, + r = t.message; + if (!n && !r) return !1; + if (n && !r || !n && r) return !1; + if (n !== r) return !1; + if (!qS(e, t)) return !1; + if (!BS(e, t)) return !1; + return !0 + }(e, t)) return !0; + if (function(e, t) { + var n = $S(t), + r = $S(e); + if (!n || !r) return !1; + if (n.type !== r.type || n.value !== r.value) return !1; + if (!qS(e, t)) return !1; + if (!BS(e, t)) return !1; + return !0 + }(e, t)) return !0; + return !1 + }(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("Event dropped due to being a duplicate of previously captured event."), null } catch (r) { return n._previousEvent = e } @@ -54320,9 +55049,9 @@ } } - function jS(e, t) { - let n = zS(e), - r = zS(t); + function BS(e, t) { + let n = WS(e), + r = WS(t); if (!n && !r) return !0; if (n && !r || !n && r) return !1; if (r.length !== n.length) return !1; @@ -54334,7 +55063,7 @@ return !0 } - function LS(e, t) { + function qS(e, t) { let n = e.fingerprint, r = t.fingerprint; if (!n && !r) return !0; @@ -54346,11 +55075,11 @@ } } - function MS(e) { + function $S(e) { return e.exception && e.exception.values && e.exception.values[0] } - function zS(e) { + function WS(e) { var t = e.exception; if (t) try { return t.values[0].stacktrace.frames @@ -54358,79 +55087,79 @@ return } } - NS.__initStatic(); - let FS = {}; - var US = (0, gk.R)(); - US.Sentry && US.Sentry.Integrations && (FS = US.Sentry.Integrations); - var VS = { - ...FS, + GS.__initStatic(); + let HS = {}; + var YS = (0, Ek.R)(); + YS.Sentry && YS.Sentry.Integrations && (HS = YS.Sentry.Integrations); + var KS = { + ...HS, ...e, ...t }; - const BS = "sentry-ipc"; - var GS; + const QS = "sentry-ipc"; + var ZS; ! function(e) { e.PING = "sentry-electron.ping", e.EVENT = "sentry-electron.event", e.SCOPE = "sentry-electron.scope" - }(GS || (GS = {})); - var qS; + }(ZS || (ZS = {})); + var XS; n(9948); - let $S; + let JS; - function WS() { - return $S || ($S = window.__SENTRY_IPC__ ? window.__SENTRY_IPC__ : (Kk.log("IPC was not configured in preload script, falling back to custom protocol and fetch"), fetch(`${BS}://${GS.PING}/sentry_key`).catch((() => console.error("Sentry SDK failed to establish connection with the Electron main process.\n - Ensure you have initialized the SDK in the main process\n - If your renderers use custom sessions, be sure to set 'getSessions' in the main process options\n - If you are bundling your main process code and using Electron < v5, you'll need to manually configure a preload script"))), { + function eO() { + return JS || (JS = window.__SENTRY_IPC__ ? window.__SENTRY_IPC__ : (rE.log("IPC was not configured in preload script, falling back to custom protocol and fetch"), fetch(`${QS}://${ZS.PING}/sentry_key`).catch((() => console.error("Sentry SDK failed to establish connection with the Electron main process.\n - Ensure you have initialized the SDK in the main process\n - If your renderers use custom sessions, be sure to set 'getSessions' in the main process options\n - If you are bundling your main process code and using Electron < v5, you'll need to manually configure a preload script"))), { sendScope: e => { - fetch(`${BS}://${GS.SCOPE}/sentry_key`, { + fetch(`${QS}://${ZS.SCOPE}/sentry_key`, { method: "POST", body: e }).catch((() => {})) }, sendEvent: e => { - fetch(`${BS}://${GS.EVENT}/sentry_key`, { + fetch(`${QS}://${ZS.EVENT}/sentry_key`, { method: "POST", body: e }).catch((() => {})) } - })), $S + })), JS }! function(e) { e[e.Classic = 1] = "Classic", e[e.Protocol = 2] = "Protocol", e[e.Both = 3] = "Both" - }(qS || (qS = {})); - class HS { + }(XS || (XS = {})); + class tO { constructor() { - this.name = HS.id + this.name = tO.id } setupOnce() { this._setupScopeListener() } _setupScopeListener() { - const e = xE().getScope(); + const e = AE().getScope(); if (e) { - const t = WS(); + const t = eO(); e.addScopeListener((n => { - t.sendScope(JSON.stringify(HE(n, 20, 2e3))), e.clearBreadcrumbs(), e.clearAttachments() + t.sendScope(JSON.stringify(tS(n, 20, 2e3))), e.clearBreadcrumbs(), e.clearAttachments() })) } } } - HS.id = "ScopeToMain"; - class YS { + tO.id = "ScopeToMain"; + class nO { constructor() { - this.name = YS.id + this.name = nO.id } setupOnce(e) { - const t = WS(); - e((e => (e.breadcrumbs = e.breadcrumbs || [], delete e.environment, t.sendEvent(JSON.stringify(HE(e, 20, 2e3))), null))) + const t = eO(); + e((e => (e.breadcrumbs = e.breadcrumbs || [], delete e.environment, t.sendEvent(JSON.stringify(tS(e, 20, 2e3))), null))) } } - YS.id = "EventToMain"; - var KS = []; + nO.id = "EventToMain"; + var rO = []; - function QS(e) { + function aO(e) { var t = e.defaultIntegrations || [], n = e.integrations; let r; t.forEach((e => { e.isDefaultInstance = !0 - })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? nE(n(t)) : t; + })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? uE(n(t)) : t; var a = function(e) { var t = {}; return e.forEach((e => { @@ -54448,14 +55177,14 @@ } return a } - class ZS extends Error { + class iO extends Error { constructor(e, t = "warn") { super(e), this.message = e, this.name = new.target.prototype.constructor.name, Object.setPrototypeOf(this, new.target.prototype), this.logLevel = t } } - var XS = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; + var oO = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; - function JS(e, t = !1) { + function sO(e, t = !1) { const { host: n, path: r, @@ -54468,7 +55197,7 @@ return `${s}://${l}${t&&a?`:${a}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}` } - function eO(e) { + function lO(e) { return { protocol: e.protocol, publicKey: e.publicKey || "", @@ -54480,10 +55209,10 @@ } } - function tO(e) { + function cO(e) { var t = "string" === typeof e ? function(e) { - var t = XS.exec(e); - if (!t) throw new ZS(`Invalid Sentry Dsn: ${e}`); + var t = oO.exec(e); + if (!t) throw new iO(`Invalid Sentry Dsn: ${e}`); const [n, r, a = "", i, o = "", s] = t.slice(1); let l = "", c = s; @@ -54492,7 +55221,7 @@ var d = c.match(/^\d+/); d && (c = d[0]) } - return eO({ + return lO({ host: i, pass: a, path: l, @@ -54501,7 +55230,7 @@ protocol: n, publicKey: r }) - }(e) : eO(e); + }(e) : lO(e); return function(e) { if ("undefined" !== typeof __SENTRY_DEBUG__ && !__SENTRY_DEBUG__) return; const { @@ -54510,41 +55239,41 @@ protocol: r } = e; if (["protocol", "publicKey", "host", "projectId"].forEach((t => { - if (!e[t]) throw new ZS(`Invalid Sentry Dsn: ${t} missing`) - })), !n.match(/^\d+$/)) throw new ZS(`Invalid Sentry Dsn: Invalid projectId ${n}`); + if (!e[t]) throw new iO(`Invalid Sentry Dsn: ${t} missing`) + })), !n.match(/^\d+$/)) throw new iO(`Invalid Sentry Dsn: Invalid projectId ${n}`); if (! function(e) { - return "http" === e || "https" === e - }(r)) throw new ZS(`Invalid Sentry Dsn: Invalid protocol ${r}`); - if (t && isNaN(parseInt(t, 10))) throw new ZS(`Invalid Sentry Dsn: Invalid port ${t}`) + return "http" === e || "https" === e + }(r)) throw new iO(`Invalid Sentry Dsn: Invalid protocol ${r}`); + if (t && isNaN(parseInt(t, 10))) throw new iO(`Invalid Sentry Dsn: Invalid port ${t}`) }(t), t } - function nO(e, t = []) { + function uO(e, t = []) { return [e, t] } - function rO(e, t) { + function dO(e, t) { const [n, r] = e; return [n, [...r, t]] } - function aO(e, t) { + function pO(e, t) { e[1].forEach((e => { var n = e[0].type; t(e, n) })) } - function iO(e, t) { + function hO(e, t) { return (t || new TextEncoder).encode(e) } - function oO(e, t) { + function fO(e, t) { const [n, r] = e; let a = JSON.stringify(n); function i(e) { - "string" === typeof a ? a = "string" === typeof e ? a + e : [iO(a, t), e] : a.push("string" === typeof e ? iO(e, t) : e) + "string" === typeof a ? a = "string" === typeof e ? a + e : [hO(a, t), e] : a.push("string" === typeof e ? hO(e, t) : e) } for (var o of r) { const [e, t] = o; @@ -54554,7 +55283,7 @@ try { e = JSON.stringify(t) } catch (s) { - e = JSON.stringify(HE(t)) + e = JSON.stringify(tS(t)) } i(e) } @@ -54568,9 +55297,9 @@ }(a) } - function sO(e, t) { - var n = "string" === typeof e.data ? iO(e.data, t) : e.data; - return [Vk({ + function mO(e, t) { + var n = "string" === typeof e.data ? hO(e.data, t) : e.data; + return [Kk({ type: "attachment", length: n.length, filename: e.filename, @@ -54578,7 +55307,7 @@ attachment_type: e.attachmentType }), n] } - var lO = { + var gO = { session: "session", sessions: "session", attachment: "attachment", @@ -54588,17 +55317,17 @@ user_report: "default" }; - function cO(e) { - return lO[e] + function vO(e) { + return gO[e] } - function uO(e) { + function yO(e) { var t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : ""; return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/` } - function dO(e, t) { + function _O(e, t) { return n = { sentry_key: e.publicKey, sentry_version: "7", @@ -54609,13 +55338,13 @@ var n } - function pO(e, t = {}) { + function bO(e, t = {}) { var n = "string" === typeof t ? t : t.tunnel, r = "string" !== typeof t && t._metadata ? t._metadata.sdk : void 0; - return n || `${function(e){return`${uO(e)}${e.projectId}/envelope/`}(e)}?${dO(e,r)}` + return n || `${function(e){return`${yO(e)}${e.projectId}/envelope/`}(e)}?${_O(e,r)}` } - function hO(e) { + function xO(e) { if (!e || !e.sdk) return; const { name: t, @@ -54627,8 +55356,8 @@ } } - function fO(e, t, n, r) { - var a = hO(n), + function wO(e, t, n, r) { + var a = xO(n), i = e.type || "event"; ! function(e, t) { t && (e.sdk = e.sdk || {}, e.sdk.name = e.sdk.name || t.name, e.sdk.version = e.sdk.version || t.version, e.sdk.integrations = [...e.sdk.integrations || [], ...t.integrations || []], e.sdk.packages = [...e.sdk.packages || [], ...t.packages || []]) @@ -54642,23 +55371,23 @@ sdk: t }, ...!!n && { - dsn: JS(r) + dsn: sO(r) }, ..."transaction" === e.type && a && { - trace: Vk({ + trace: Kk({ ...a }) } } }(e, a, r, t); - return delete e.sdkProcessingMetadata, nO(o, [ + return delete e.sdkProcessingMetadata, uO(o, [ [{ type: i }, e] ]) } - var mO = "Not capturing exception because it's already been captured."; - class gO { + var kO = "Not capturing exception because it's already been captured."; + class EO { __init() { this._integrations = {} } @@ -54672,18 +55401,18 @@ this._outcomes = {} } constructor(e) { - if (gO.prototype.__init.call(this), gO.prototype.__init2.call(this), gO.prototype.__init3.call(this), gO.prototype.__init4.call(this), this._options = e, e.dsn) { - this._dsn = tO(e.dsn); - var t = pO(this._dsn, e); + if (EO.prototype.__init.call(this), EO.prototype.__init2.call(this), EO.prototype.__init3.call(this), EO.prototype.__init4.call(this), this._options = e, e.dsn) { + this._dsn = cO(e.dsn); + var t = bO(this._dsn, e); this._transport = e.transport({ recordDroppedEvent: this.recordDroppedEvent.bind(this), ...e.transportOptions, url: t }) - } else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("No DSN provided, client will not do anything.") + } else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("No DSN provided, client will not do anything.") } captureException(e, t, n) { - if (tE(e)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log(mO)); + if (cE(e)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log(kO)); let r = t && t.event_id; return this._process(this.eventFromException(e, t).then((e => this._captureEvent(e, t, n))).then((e => { r = e @@ -54691,22 +55420,22 @@ } captureMessage(e, t, n, r) { let a = n && n.event_id; - var i = kk(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n); + var i = Ck(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n); return this._process(i.then((e => this._captureEvent(e, n, r))).then((e => { a = e }))), a } captureEvent(e, t, n) { - if (t && t.originalException && tE(t.originalException)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log(mO)); + if (t && t.originalException && cE(t.originalException)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log(kO)); let r = t && t.event_id; return this._process(this._captureEvent(e, t, n).then((e => { r = e }))), r } captureSession(e) { - this._isEnabled() ? "string" !== typeof e.release ? ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), hE(e, { + this._isEnabled() ? "string" !== typeof e.release ? ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), xE(e, { init: !1 - })) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("SDK not enabled, will not capture session.") + })) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("SDK not enabled, will not capture session.") } getDsn() { return this._dsn @@ -54719,7 +55448,7 @@ } flush(e) { var t = this._transport; - return t ? this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e)))) : cE(!0) + return t ? this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e)))) : vE(!0) } close(e) { return this.flush(e).then((e => (this.getOptions().enabled = !1, e))) @@ -54728,7 +55457,7 @@ this._isEnabled() && !this._integrationsInitialized && (this._integrations = function(e) { var t = {}; return e.forEach((e => { - t[e.name] = e, -1 === KS.indexOf(e.name) && (e.setupOnce(gE, xE), KS.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log(`Integration installed: ${e.name}`)) + t[e.name] = e, -1 === rO.indexOf(e.name) && (e.setupOnce(EE, AE), rO.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log(`Integration installed: ${e.name}`)) })), t }(this._options.integrations), this._integrationsInitialized = !0) } @@ -54739,27 +55468,27 @@ try { return this._integrations[e.id] || null } catch (t) { - return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Cannot retrieve integration ${e.id} from the current Client`), null + return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Cannot retrieve integration ${e.id} from the current Client`), null } } sendEvent(e, t = {}) { if (this._dsn) { - let r = fO(e, this._dsn, this._options._metadata, this._options.tunnel); - for (var n of t.attachments || []) r = rO(r, sO(n, this._options.transportOptions && this._options.transportOptions.textEncoder)); + let r = wO(e, this._dsn, this._options._metadata, this._options.tunnel); + for (var n of t.attachments || []) r = dO(r, mO(n, this._options.transportOptions && this._options.transportOptions.textEncoder)); this._sendEnvelope(r) } } sendSession(e) { if (this._dsn) { var t = function(e, t, n, r) { - var a = hO(n); - return nO({ + var a = xO(n); + return uO({ sent_at: (new Date).toISOString(), ...a && { sdk: a }, ...!!r && { - dsn: JS(t) + dsn: sO(t) } }, ["aggregates" in e ? [{ type: "sessions" @@ -54773,7 +55502,7 @@ recordDroppedEvent(e, t) { if (this._options.sendClientReports) { var n = `${e}:${t}`; - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log(`Adding outcome: "${n}"`), this._outcomes[n] = this._outcomes[n] + 1 || 1 + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log(`Adding outcome: "${n}"`), this._outcomes[n] = this._outcomes[n] + 1 || 1 } } _updateSessionFromEvent(e, t) { @@ -54789,7 +55518,7 @@ } } var s = "ok" === e.status; - (s && 0 === e.errors || s && n) && (hE(e, { + (s && 0 === e.errors || s && n) && (xE(e, { ...n && { status: "crashed" }, @@ -54797,7 +55526,7 @@ }), this.captureSession(e)) } _isClientDoneProcessing(e) { - return new dE((t => { + return new _E((t => { let n = 0; var r = setInterval((() => { 0 == this._numProcessing ? (clearInterval(r), t(!0)) : (n += 1, e && n >= e && (clearInterval(r), t(!1))) @@ -54814,13 +55543,13 @@ } = this.getOptions(); var i = { ...e, - event_id: e.event_id || t.event_id || Qk(), - timestamp: e.timestamp || (0, sE.yW)() + event_id: e.event_id || t.event_id || aE(), + timestamp: e.timestamp || (0, mE.yW)() }; this._applyClientOptions(i), this._applyIntegrationsMetadata(i); let o = n; - t.captureContext && (o = fE.clone(o).update(t.captureContext)); - let s = cE(i); + t.captureContext && (o = wE.clone(o).update(t.captureContext)); + let s = vE(i); if (o) { var l = [...t.attachments || [], ...o.getAttachments()]; l.length && (t.attachments = l), s = o.applyToEvent(i, t) @@ -54835,21 +55564,21 @@ breadcrumbs: e.breadcrumbs.map((e => ({ ...e, ...e.data && { - data: HE(e.data, t, n) + data: tS(e.data, t, n) } }))) }, ...e.user && { - user: HE(e.user, t, n) + user: tS(e.user, t, n) }, ...e.contexts && { - contexts: HE(e.contexts, t, n) + contexts: tS(e.contexts, t, n) }, ...e.extra && { - extra: HE(e.extra, t, n) + extra: tS(e.extra, t, n) } }; - return e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = HE(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e => (e.data && (e.data = HE(e.data, t, n)), e)))), r + return e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = tS(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e => (e.data && (e.data = tS(e.data, t, n)), e)))), r } _applyClientOptions(e) { var t = this.getOptions(); @@ -54859,11 +55588,11 @@ dist: a, maxValueLength: i = 250 } = t; - "environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== a && (e.dist = a), e.message && (e.message = Ck(e.message, i)); + "environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== a && (e.dist = a), e.message && (e.message = zk(e.message, i)); var o = e.exception && e.exception.values && e.exception.values[0]; - o && o.value && (o.value = Ck(o.value, i)); + o && o.value && (o.value = zk(o.value, i)); var s = e.request; - s && s.url && (s.url = Ck(s.url, i)) + s && s.url && (s.url = zk(s.url, i)) } _applyIntegrationsMetadata(e) { var t = Object.keys(this._integrations); @@ -54873,7 +55602,7 @@ return this._processEvent(e, t, n).then((e => e.event_id), (e => { if ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) { var t = e; - "log" === t.logLevel ? Kk.log(t.message) : Kk.warn(t) + "log" === t.logLevel ? rE.log(t.message) : rE.warn(t) } })) } @@ -54882,23 +55611,23 @@ beforeSend: r, sampleRate: a } = this.getOptions(); - if (!this._isEnabled()) return uE(new ZS("SDK not enabled, will not capture event.", "log")); + if (!this._isEnabled()) return yE(new iO("SDK not enabled, will not capture event.", "log")); var i = "transaction" === e.type; - return !i && "number" === typeof a && Math.random() > a ? (this.recordDroppedEvent("sample_rate", "error"), uE(new ZS(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"))) : this._prepareEvent(e, t, n).then((n => { - if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new ZS("An event processor returned null, will not send event.", "log"); + return !i && "number" === typeof a && Math.random() > a ? (this.recordDroppedEvent("sample_rate", "error"), yE(new iO(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"))) : this._prepareEvent(e, t, n).then((n => { + if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new iO("An event processor returned null, will not send event.", "log"); return t.data && !0 === t.data.__sentry__ || i || !r ? n : function(e) { var t = "`beforeSend` method has to return `null` or a valid event."; - if (Ok(e)) return e.then((e => { - if (!Ek(e) && null !== e) throw new ZS(t); + if (Nk(e)) return e.then((e => { + if (!Tk(e) && null !== e) throw new iO(t); return e }), (e => { - throw new ZS(`beforeSend rejected with ${e}`) + throw new iO(`beforeSend rejected with ${e}`) })); - if (!Ek(e) && null !== e) throw new ZS(t); + if (!Tk(e) && null !== e) throw new iO(t); return e }(r(n, t)) })).then((r => { - if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new ZS("`beforeSend` returned `null`, will not send event.", "log"); + if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new iO("`beforeSend` returned `null`, will not send event.", "log"); var a = n && n.getSession(); !i && a && this._updateSessionFromEvent(a, r); var o = r.transaction_info; @@ -54916,13 +55645,13 @@ } return this.sendEvent(r, t), r })).then(null, (e => { - if (e instanceof ZS) throw e; + if (e instanceof iO) throw e; throw this.captureException(e, { data: { __sentry__: !0 }, originalException: e - }), new ZS(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) + }), new iO(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) })) } _process(e) { @@ -54930,8 +55659,8 @@ } _sendEnvelope(e) { this._transport && this._dsn ? this._transport.send(e).then(null, (e => { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error("Error while sending event:", e) - })) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error("Transport disabled") + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error("Error while sending event:", e) + })) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error("Transport disabled") } _clearOutcomes() { var e = this._outcomes; @@ -54945,40 +55674,40 @@ })) } } - var vO = "7.15.0"; - var yO = (0, gk.R)(); - class _O extends gO { + var SO = "7.15.0"; + var OO = (0, Ek.R)(); + class PO extends EO { constructor(e) { e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || { name: "sentry.javascript.browser", packages: [{ name: "npm:@sentry/browser", - version: vO + version: SO }], - version: vO - }, super(e), e.sendClientReports && yO.document && yO.document.addEventListener("visibilitychange", (() => { - "hidden" === yO.document.visibilityState && this._flushOutcomes() + version: SO + }, super(e), e.sendClientReports && OO.document && OO.document.addEventListener("visibilitychange", (() => { + "hidden" === OO.document.visibilityState && this._flushOutcomes() })) } eventFromException(e, t) { return function(e, t, n, r) { - var a = tS(e, t, n && n.syntheticException || void 0, r); - return eE(a), a.level = "error", n && n.event_id && (a.event_id = n.event_id), cE(a) + var a = cS(e, t, n && n.syntheticException || void 0, r); + return lE(a), a.level = "error", n && n.event_id && (a.event_id = n.event_id), vE(a) }(this._options.stackParser, e, t, this._options.attachStacktrace) } eventFromMessage(e, t = "info", n) { return function(e, t, n = "info", r, a) { - var i = nS(e, t, r && r.syntheticException || void 0, a); - return i.level = n, r && r.event_id && (i.event_id = r.event_id), cE(i) + var i = uS(e, t, r && r.syntheticException || void 0, a); + return i.level = n, r && r.event_id && (i.event_id = r.event_id), vE(i) }(this._options.stackParser, e, t, n, this._options.attachStacktrace) } sendEvent(e, t) { - var n = this.getIntegrationById(ES); - n && n.options && n.options.sentry && xE().addBreadcrumb({ + var n = this.getIntegrationById(TS); + n && n.options && n.options.sentry && AE().addBreadcrumb({ category: "sentry." + ("transaction" === e.type ? "transaction" : "event"), event_id: e.event_id, level: e.level, - message: Xk(e) + message: oE(e) }, { event: e }), super.sendEvent(e, t) @@ -54990,32 +55719,32 @@ var e = this._clearOutcomes(); if (0 !== e.length) if (this._dsn) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log("Sending outcomes:", e); - var t, n, r, a = pO(this._dsn, this._options), - i = (t = e, nO((n = this._options.tunnel && JS(this._dsn)) ? { + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log("Sending outcomes:", e); + var t, n, r, a = bO(this._dsn, this._options), + i = (t = e, uO((n = this._options.tunnel && sO(this._dsn)) ? { dsn: n } : {}, [ [{ type: "client_report" }, { - timestamp: r || (0, sE.yW)(), + timestamp: r || (0, mE.yW)(), discarded_events: t }] ])); try { - var o = (0, gk.R)(); - if ("[object Navigator]" === Object.prototype.toString.call(o && o.navigator) && "function" === typeof o.navigator.sendBeacon && !this._options.transportOptions) o.navigator.sendBeacon.bind(o.navigator)(a, oO(i)); + var o = (0, Ek.R)(); + if ("[object Navigator]" === Object.prototype.toString.call(o && o.navigator) && "function" === typeof o.navigator.sendBeacon && !this._options.transportOptions) o.navigator.sendBeacon.bind(o.navigator)(a, fO(i)); else this._sendEnvelope(i) } catch (s) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error(s) + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error(s) } - } else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log("No dsn provided, will not send outcomes"); - else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.log("No outcomes to send") + } else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log("No dsn provided, will not send outcomes"); + else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.log("No outcomes to send") } } - var bO = "?"; + var IO = "?"; - function xO(e, t, n, r) { + function AO(e, t, n, r) { var a = { filename: e, function: t, @@ -55023,46 +55752,46 @@ }; return void 0 !== n && (a.lineno = n), void 0 !== r && (a.colno = r), a } - var wO = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, - kO = /\((\S*)(?::(\d+))(?::(\d+))\)/, - EO = [30, e => { - var t = wO.exec(e); + var RO = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, + CO = /\((\S*)(?::(\d+))(?::(\d+))\)/, + TO = [30, e => { + var t = RO.exec(e); if (t) { if (t[2] && 0 === t[2].indexOf("eval")) { - var n = kO.exec(t[2]); + var n = CO.exec(t[2]); n && (t[2] = n[1], t[3] = n[2], t[4] = n[3]) } - const [e, r] = AO(t[1] || bO, t[2]); - return xO(r, e, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0) + const [e, r] = MO(t[1] || IO, t[2]); + return AO(r, e, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0) } }], - SO = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, - OO = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, - PO = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, - IO = OE(...[EO, [50, e => { - var t = SO.exec(e); - if (t) { - if (t[3] && t[3].indexOf(" > eval") > -1) { - var n = OO.exec(t[3]); - n && (t[1] = t[1] || "eval", t[3] = n[1], t[4] = n[2], t[5] = "") - } - let e = t[3], - r = t[1] || bO; - return [r, e] = AO(r, e), xO(e, r, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) + DO = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, + NO = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, + LO = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, + jO = NE(...[TO, [50, e => { + var t = DO.exec(e); + if (t) { + if (t[3] && t[3].indexOf(" > eval") > -1) { + var n = NO.exec(t[3]); + n && (t[1] = t[1] || "eval", t[3] = n[1], t[4] = n[2], t[5] = "") } - }], + let e = t[3], + r = t[1] || IO; + return [r, e] = MO(r, e), AO(e, r, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) + } + }], [40, e => { - var t = PO.exec(e); - return t ? xO(t[2], t[1] || bO, +t[3], t[4] ? +t[4] : void 0) : void 0 + var t = LO.exec(e); + return t ? AO(t[2], t[1] || IO, +t[3], t[4] ? +t[4] : void 0) : void 0 }] ]), - AO = (e, t) => { + MO = (e, t) => { var n = -1 !== e.indexOf("safari-extension"), r = -1 !== e.indexOf("safari-web-extension"); - return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : bO, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] + return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : IO, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] }; - function CO(e) { + function zO(e) { var t = []; function n(e) { @@ -55071,19 +55800,19 @@ return { $: t, add: function(r) { - if (!(void 0 === e || t.length < e)) return uE(new ZS("Not adding Promise because buffer limit was reached.")); + if (!(void 0 === e || t.length < e)) return yE(new iO("Not adding Promise because buffer limit was reached.")); var a = r(); return -1 === t.indexOf(a) && t.push(a), a.then((() => n(a))).then(null, (() => n(a).then(null, (() => {})))), a }, drain: function(e) { - return new dE(((n, r) => { + return new _E(((n, r) => { let a = t.length; if (!a) return n(!0); var i = setTimeout((() => { e && e > 0 && n(!1) }), e); t.forEach((e => { - cE(e).then((() => { + vE(e).then((() => { --a || (clearTimeout(i), n(!0)) }), r) })) @@ -55092,7 +55821,7 @@ } } - function TO(e, { + function FO(e, { statusCode: t, headers: n }, r = Date.now()) { @@ -55110,66 +55839,66 @@ for (var u of t.split(";")) a[u] = r + c; else a.all = r + c } else o ? a.all = r + function(e, t = Date.now()) { - var n = parseInt(`${e}`, 10); - if (!isNaN(n)) return 1e3 * n; - var r = Date.parse(`${e}`); - return isNaN(r) ? 6e4 : r - t - }(o, r) : 429 === t && (a.all = r + 6e4); + var n = parseInt(`${e}`, 10); + if (!isNaN(n)) return 1e3 * n; + var r = Date.parse(`${e}`); + return isNaN(r) ? 6e4 : r - t + }(o, r) : 429 === t && (a.all = r + 6e4); return a } - function RO(e, t, n = CO(e.bufferSize || 30)) { + function UO(e, t, n = zO(e.bufferSize || 30)) { let r = {}; return { send: function(a) { var i = []; - if (aO(a, ((t, n) => { - var a = cO(n); - ! function(e, t, n = Date.now()) { - return function(e, t) { - return e[t] || e.all || 0 - }(e, t) > n - }(r, a) ? i.push(t): e.recordDroppedEvent("ratelimit_backoff", a) - })), 0 === i.length) return cE(); - var o = nO(a[0], i), + if (pO(a, ((t, n) => { + var a = vO(n); + ! function(e, t, n = Date.now()) { + return function(e, t) { + return e[t] || e.all || 0 + }(e, t) > n + }(r, a) ? i.push(t): e.recordDroppedEvent("ratelimit_backoff", a) + })), 0 === i.length) return vE(); + var o = uO(a[0], i), s = t => { - aO(o, ((n, r) => { - e.recordDroppedEvent(t, cO(r)) + pO(o, ((n, r) => { + e.recordDroppedEvent(t, vO(r)) })) }; return n.add((() => t({ - body: oO(o, e.textEncoder) + body: fO(o, e.textEncoder) }).then((e => { - void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = TO(r, e) + void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = FO(r, e) }), (e => { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error("Failed while sending event:", e), s("network_error") + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error("Failed while sending event:", e), s("network_error") })))).then((e => e), (e => { - if (e instanceof ZS) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.error("Skipped sending event because buffer is full."), s("queue_overflow"), cE(); + if (e instanceof iO) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.error("Skipped sending event because buffer is full."), s("queue_overflow"), vE(); throw e })) }, flush: e => n.drain(e) } } - var DO = (0, gk.R)(); - let NO; + var VO = (0, Ek.R)(); + let GO; - function jO(e, t = function() { - if (NO) return NO; - if (RE(DO.fetch)) return NO = DO.fetch.bind(DO); - var e = DO.document; - let t = DO.fetch; + function BO(e, t = function() { + if (GO) return GO; + if (UE(VO.fetch)) return GO = VO.fetch.bind(VO); + var e = VO.document; + let t = VO.fetch; if (e && "function" === typeof e.createElement) try { var n = e.createElement("iframe"); n.hidden = !0, e.head.appendChild(n); var r = n.contentWindow; r && r.fetch && (t = r.fetch), e.head.removeChild(n) } catch (a) { - ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a) + ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a) } - return NO = t.bind(DO) + return GO = t.bind(VO) }()) { - return RO(e, (function(n) { + return UO(e, (function(n) { var r = { body: n.body, method: "POST", @@ -55188,93 +55917,93 @@ })) } - function LO(e) { - return RO(e, (function(t) { - return new dE(((n, r) => { + function qO(e) { + return UO(e, (function(t) { + return new _E(((n, r) => { var a = new XMLHttpRequest; for (var i in a.onerror = r, a.onreadystatechange = () => { - 4 === a.readyState && n({ - statusCode: a.status, - headers: { - "x-sentry-rate-limits": a.getResponseHeader("X-Sentry-Rate-Limits"), - "retry-after": a.getResponseHeader("Retry-After") - } - }) - }, a.open("POST", e.url), e.headers) Object.prototype.hasOwnProperty.call(e.headers, i) && a.setRequestHeader(i, e.headers[i]); + 4 === a.readyState && n({ + statusCode: a.status, + headers: { + "x-sentry-rate-limits": a.getResponseHeader("X-Sentry-Rate-Limits"), + "retry-after": a.getResponseHeader("Retry-After") + } + }) + }, a.open("POST", e.url), e.headers) Object.prototype.hasOwnProperty.call(e.headers, i) && a.setRequestHeader(i, e.headers[i]); a.send(t.body) })) })) } - var MO = [new aE, new qk, new gS, new SS, new cS, new CS, new NS, new DS]; + var $O = [new pE, new Xk, new ES, new DS, new vS, new zS, new GS, new VS]; - function zO(e = {}) { - if (void 0 === e.defaultIntegrations && (e.defaultIntegrations = MO), void 0 === e.release) { - var t = (0, gk.R)(); + function WO(e = {}) { + if (void 0 === e.defaultIntegrations && (e.defaultIntegrations = $O), void 0 === e.release) { + var t = (0, Ek.R)(); t.SENTRY_RELEASE && t.SENTRY_RELEASE.id && (e.release = t.SENTRY_RELEASE.id) } void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0), void 0 === e.sendClientReports && (e.sendClientReports = !0); var n, r = { ...e, - stackParser: (n = e.stackParser || IO, Array.isArray(n) ? OE(...n) : n), - integrations: QS(e), - transport: e.transport || (TE() ? jO : LO) + stackParser: (n = e.stackParser || jO, Array.isArray(n) ? NE(...n) : n), + integrations: aO(e), + transport: e.transport || (FE() ? BO : qO) }; ! function(e, t) { - !0 === t.debug && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? Kk.enable() : console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")); - var n = xE(), + !0 === t.debug && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? rE.enable() : console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")); + var n = AE(), r = n.getScope(); r && r.update(t.initialScope); var a = new e(t); n.bindClient(a) - }(_O, r), e.autoSessionTracking && function() { - var e = (0, gk.R)(), + }(PO, r), e.autoSessionTracking && function() { + var e = (0, Ek.R)(), t = e.document; - if ("undefined" === typeof t) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && Kk.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); - var n = xE(); + if ("undefined" === typeof t) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && rE.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); + var n = AE(); if (!n.captureSession) return; - FO(n), ME("history", (({ - from: e, - to: t - }) => { - void 0 !== e && e !== t && FO(xE()) + HO(n), $E("history", (({ + from: e, + to: t + }) => { + void 0 !== e && e !== t && HO(AE()) })) }() } - function FO(e) { + function HO(e) { e.startSession({ ignoreDuration: !0 }), e.captureSession() } - const [, UO] = EO, [, VO] = [90, CE(BO)]; - var BO; - const GO = (e, t = 0) => { + const [, YO] = TO, [, KO] = [90, zE(QO)]; + var QO; + const ZO = (e, t = 0) => { const n = []; for (const r of e.split("\n").slice(t)) { - const e = UO(r), - t = VO(r); - e && !1 !== (null === t || void 0 === t ? void 0 : t.in_app) ? n.push(e) : t && n.push(Vk(t)) + const e = YO(r), + t = KO(r); + e && !1 !== (null === t || void 0 === t ? void 0 : t.in_app) ? n.push(e) : t && n.push(Kk(t)) } - return PE(n) + return LE(n) }, - qO = [...MO, new HS, new YS]; - Object.assign(Object.assign({}, r), VS); - const $O = e => { + XO = [...$O, new tO, new nO]; + Object.assign(Object.assign({}, r), KS); + const JO = e => { e && e instanceof Function && n.e(496).then(n.bind(n, 1496)).then((({ - getCLS: t, - getFID: n, - getFCP: r, - getLCP: a, - getTTFB: i - }) => { + getCLS: t, + getFID: n, + getFCP: r, + getLCP: a, + getTTFB: i + }) => { t(e), n(e), r(e), a(e), i(e) })) }; - ! function(e = {}, t = zO) { + ! function(e = {}, t = WO) { ! function(e) { const t = "undefined" !== typeof window ? "renderer" : "main"; if (t !== e) throw new Error(`This code is intended to run in the Electron ${e} process but is currently running in the ${t} process.\nThis can occur if a bundler picks the wrong entry point.\n\nYou can work around this by using a relative import:\nimport * as Sentry from '@sentry/electron/${t}';`) - }("renderer"), (null === window || void 0 === window ? void 0 : window.__SENTRY__RENDERER_INIT__) ? Kk.warn("The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer"): (window.__SENTRY__RENDERER_INIT__ = !0, void 0 === e.autoSessionTracking && (e.autoSessionTracking = !1), e.sendClientReports = !1, void 0 === e.defaultIntegrations && (e.defaultIntegrations = qO), void 0 === e.stackParser && (e.stackParser = GO), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), delete e.initialScope, t(e)) + }("renderer"), (null === window || void 0 === window ? void 0 : window.__SENTRY__RENDERER_INIT__) ? rE.warn("The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer"): (window.__SENTRY__RENDERER_INIT__ = !0, void 0 === e.autoSessionTracking && (e.autoSessionTracking = !1), e.sendClientReports = !1, void 0 === e.defaultIntegrations && (e.defaultIntegrations = XO), void 0 === e.stackParser && (e.stackParser = ZO), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), delete e.initialScope, t(e)) }({ dsn: pf.configuration.sentry.dsn, environment: "production", @@ -55287,49 +56016,51 @@ version: kt }], version: kt - }, void Ta(t); + }, void Ca(t); var t })); - const WO = Oe.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ + const eP = Oe.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ default: e.ReactQueryDevtools }))))), - HO = () => { + tP = () => { const [e, t] = Oe.useState(!1); return Oe.useEffect((() => { window.toggleDevtools = () => t((e => !e)) }), []), (() => { - const e = ww.getState().application, - t = ww.getState().library, - n = ww.getState().soundSystem, - r = ww.getState().authentication, - a = ww.getState().settings, - i = ww.getState().installer, - o = ww.getState().status, - s = ww.getState().user; + const e = Pw.getState().application, + t = Pw.getState().library, + n = Pw.getState().soundSystem, + r = Pw.getState().authentication, + a = Pw.getState().settings, + i = Pw.getState().installer, + o = Pw.getState().status, + s = Pw.getState().user; e.isAppInitialized || Promise.all([e.actions.initializeApplication(), t.actions.initializeLibrary(), n.actions.initializeSoundContext(), r.actions.initializeAuthentication(), a.actions.initializeApplicationSettings(), i.actions.initializeInstaller(), o.actions.initializeStatus(), s.actions.initializeUser()]) })(), (0, hf.jsx)(Oe.StrictMode, { - children: (0, hf.jsx)(ja, { + children: (0, hf.jsx)(La, { fallback: (0, hf.jsx)("p", { children: "An error has occurred" }), - children: (0, hf.jsxs)(Sw.aH, { - client: Bv, - children: [(0, hf.jsx)(Ci, { - value: o_, - children: (0, hf.jsx)(mx.Provider, { - children: (0, hf.jsx)(hk, {}) - }) - }), (0, hf.jsx)(mk, { - initialIsOpen: !0 - }), e && (0, hf.jsx)(Oe.Suspense, { - fallback: null, - children: (0, hf.jsx)(WO, {}) - })] + children: (0, hf.jsx)(zw, { + children: (0, hf.jsxs)(Rw.aH, { + client: ey, + children: [(0, hf.jsx)(Ri, { + value: y_, + children: (0, hf.jsx)(Sx.Provider, { + children: (0, hf.jsx)(xk, {}) + }) + }), (0, hf.jsx)(kk, { + initialIsOpen: !0 + }), e && (0, hf.jsx)(Oe.Suspense, { + fallback: null, + children: (0, hf.jsx)(eP, {}) + })] + }) }) - }, aw()) + }, cw()) }) }; - fk.createRoot(document.getElementById("root")).render((0, hf.jsx)(HO, {})), $O() + wk.createRoot(document.getElementById("root")).render((0, hf.jsx)(tP, {})), JO() })() })(); -//# sourceMappingURL=main.ab62df5e.js.map \ No newline at end of file +//# sourceMappingURL=main.3bb17e64.js.map \ No newline at end of file